Library import issue on running the training code
paridahimanshu0610 opened this issue · 0 comments
paridahimanshu0610 commented
In working nb 04_model_trainer.ipynb, when I evaluate the last cell which does the training, I get the below error:
ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.20.1`: Please run `pip install transformers[torch]` or `pip install accelerate -U`
I have already installed the required libraries:
pip install --upgrade accelerate
pip uninstall -y transformers accelerate
pip install transformers accelerate
In fact, the error message itself seems to be a bit strange because the accelerate version on my machine is 0.23.0