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

fix bnb #3186

Merged
merged 4 commits into from
Oct 23, 2024
Merged

fix bnb #3186

merged 4 commits into from
Oct 23, 2024

Conversation

eljandoubi
Copy link
Contributor

@eljandoubi eljandoubi commented Oct 22, 2024

What does this PR do?

Fixed the type of bnb_4bit_compute_dtype, which was incorrectly set as bool. Changed it to str to ensure that transformers.HfArgumentParser can parse it from the CLI, as Union is not valid in this context.

Who can review?

@eljandoubi eljandoubi changed the title bnb_4bit_compute_dtype is str fix bnb Oct 23, 2024
Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks for fixing ! Left a comment

src/accelerate/utils/bnb.py Outdated Show resolved Hide resolved
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks !

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@SunMarc SunMarc merged commit 39dc2b1 into huggingface:main Oct 23, 2024
25 checks passed
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.

4 participants