:orphan: .. _transformers_torch_trainer_basic_example : Fine-tune a Text Classifier with Hugging Face Transformers ========================================================== This basic example of distributed training with Ray Train and Hugging Face (HF) Transformers fine-tunes a text classifier on the Yelp review dataset using HF Transformers and Ray Train. Code example ------------ .. literalinclude:: /../../python/ray/train/examples/transformers/transformers_torch_trainer_basic.py See also -------- * :ref:`Get Started with Hugging Face Transformers ` for a tutorial * :ref:`Ray Train Examples ` for more use cases