mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-05 22:00:09 +06:00
![]() I'm adding accelerate as one of the libraries to install because otherwise when running the Trainer, the model errorr out with the error. ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.20.1`: Please run `pip install transformers[torch]` or `pip install accelerate -U` Further context: 1. I've tried this across different environments so I believe that the environment is not the issue. 2. I had the latest transformers library version running. 3. Typically even after install accelerate and import it, it wouldn't resolve the issue until I restart the notebook and try again. |
||
---|---|---|
.. | ||
asr.md | ||
audio_classification.md | ||
document_question_answering.md | ||
idefics.md | ||
image_captioning.md | ||
image_classification.md | ||
image_to_image.md | ||
knowledge_distillation_for_image_classification.md | ||
language_modeling.md | ||
masked_language_modeling.md | ||
monocular_depth_estimation.md | ||
multiple_choice.md | ||
object_detection.md | ||
prompting.md | ||
question_answering.md | ||
semantic_segmentation.md | ||
sequence_classification.md | ||
summarization.md | ||
text-to-speech.md | ||
token_classification.md | ||
translation.md | ||
video_classification.md | ||
visual_question_answering.md | ||
zero_shot_image_classification.md | ||
zero_shot_object_detection.md |