-
Notifications
You must be signed in to change notification settings - Fork 1k
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
AttributeError: 'Accelerator' object has no attribute 'gather_for_metrics' #854
Comments
@Arij-Aladel what version of accelerate do you have? ( |
the last one I guess it is exactly as requirements file of the example |
The requirements file doesn't have a version specified, so it won't install a new version on the system if it exists. Can you please show the output of |
|
Since it's running |
Ok now another issue at this line I am getting the error
This is because after gathering on this line we get emplty lists |
Can you open a separate issue on the transformers repo for this and @ mention me? Thanks! |
@muellerzr I have already opened it and mention this issue I will mention you there too. |
@Arij-Aladel is it safe to say this can be closed now? 😄 |
System Info
Information
Tasks
no_trainer
script in theexamples
folder of thetransformers
repo (such asrun_no_trainer_glue.py
)Reproduction
Go to run_summarization_no_trainer.py
run
accelerate launch --config_file='./accelerate.yaml' run_summarization_notrainer.py --seed=42 --preprocessing_num_workers=1 --weight_decay='0.001' --output_dir="draft/" --per_device_train_batch_size=4 --per_device_eval_batch_size=8 --dataset_name="cnn_dailymail" --dataset_config "3.0.0" --num_train_epochs=10 --model_name_or_path 't5-small'
Expected behavior
run the script normally. The error I got explained in this [issue](https://github.com/huggingface/transformers/issues/18189)
The text was updated successfully, but these errors were encountered: