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

Initialize AcceleratorConfig in optimum TrainingArgs. #1750

Merged

Conversation

AdamLouly
Copy link
Contributor

@AdamLouly AdamLouly commented Mar 7, 2024

What does this PR do?

Transformers Introduced AccelerateConfigure dataclass huggingface/transformers#28664
So we need to initialize it in Optimum Training Args.

Check this issue for reference: #1749

Copy link
Member

@IlyasMoutawwakil IlyasMoutawwakil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@JingyaHuang JingyaHuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AdamLouly, the changes look good to me.

Just the code quality CI is failing, could you install the styling tool with
pip install .[quality] and then fix the style with make style? Thx!

@AdamLouly
Copy link
Contributor Author

make style

Done!
Thank you

@JingyaHuang JingyaHuang merged commit d87efb2 into huggingface:main Mar 12, 2024
36 of 45 checks passed
young-developer pushed a commit to young-developer/optimum that referenced this pull request May 10, 2024
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

Successfully merging this pull request may close these issues.

3 participants