huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
128.5k stars 25.49k forks source link

Minimum required accelerate library is not compatible #31433

Open danielnelson opened 2 weeks ago

danielnelson commented 2 weeks ago

System Info

Who can help?

No response

Information

Tasks

Reproduction

Expected behavior

There should be no error unexpected keyword.

The requirement in setup.py for accelerate is set to >=0.21.0, but it seems that it needs to be at least 0.26.0.

This issue is mentioned in #29216 #28111

amyeroberts commented 2 weeks ago

Hi @danielnelson, thanks for raising this issue!

Indeed, we might have to update our accelerate versions cc @ydshieh

cc @muellerzr @SunMarc When does use_seedable_sampler come in?

SunMarc commented 2 weeks ago

Hi, use_seedable_sampler was introduced in this PR, so in v0.26 of accelerate. We introduced 4 months ago AcceleratorConfig which have use_seedable_sampler as arg. Then we initialize the accelerator based on this config, hence the issue. It should be fixed with the above PR @danielnelson, could you give it a try ?