huggingface / huggingface/audio-transformers-course

Error while using TrainingArguments in Unit4

Open
#158 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
521
Forks
155
Avg merge
6m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Unit-4 TrainingArguments construction and checking the installed PyTorch and accelerate versions after running the pip commands mentioned in the issue. Done means the TrainingArguments instance can be created without the reported ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.