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

Require safetensors>=0.4.3 #2957

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

byi8220
Copy link
Contributor

@byi8220 byi8220 commented Jul 24, 2024

What does this PR do?

Fixes #2939

Changes made in accelerate PR #2875 require passing the arg device into safetensors.torch.load_model. This was not supported until after the safetensors PR huggingface/safetensors#449 which is contained starting from release v0.4.3

Note: conda does not contain this release yet.

@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
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Thanks!

@muellerzr muellerzr merged commit 32f368e into huggingface:main Jul 29, 2024
20 of 25 checks passed
@byi8220 byi8220 deleted the fix-load-model branch July 29, 2024 15:24
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.

Accelerator unit tests are failing due to TypeError: load_model() got an unexpected keyword argument 'device'
3 participants