Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while using TrainingArguments in Unit4 #158

Open
avipul751 opened this issue Jan 14, 2024 · 2 comments
Open

Error while using TrainingArguments in Unit4 #158

avipul751 opened this issue Jan 14, 2024 · 2 comments

Comments

@avipul751
Copy link

I'm getting the following error while creating an instance of TrainingArguments in Unit-4:

ImportError: Using the Trainer with PyTorch requires accelerate>=0.21.0: Please run pip install transformers[torch] or pip install accelerate -U

I've tried doing both "pip install transformers[torch]" as well as "pip install accelerate -U" but the same error pops up still.

There is no issue in importing TrainingArguments, the error pops up while creating an instance only.

@Aryan-Deshpande
Copy link

I have the same issue, please do update if there any fixes !

@Ayoub-etoullali
Copy link

"!pip install -U accelerate transformers" work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants