"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "824fd44fc314b0d13b1ef91e8122d35d14af5ad9"
Unverified Commit e9dbd392 authored by Akshay Chintalapati's avatar Akshay Chintalapati Committed by GitHub
Browse files

Update sequence_classification.md (#27281)

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.
parent 147f7746
...@@ -44,7 +44,7 @@ The task illustrated in this tutorial is supported by the following model archit ...@@ -44,7 +44,7 @@ The task illustrated in this tutorial is supported by the following model archit
Before you begin, make sure you have all the necessary libraries installed: Before you begin, make sure you have all the necessary libraries installed:
```bash ```bash
pip install transformers datasets evaluate pip install transformers datasets evaluate accelerate
``` ```
We encourage you to login to your Hugging Face account so you can upload and share your model with the community. When prompted, enter your token to login: We encourage you to login to your Hugging Face account so you can upload and share your model with the community. When prompted, enter your token to login:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment