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

Revert workaround for TF safetensors loading #30128

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Conversation

Rocketknight1
Copy link
Member

In #30118 @amyeroberts skipped safetensors loading on TF models. I believe I've worked out the cause, and it was that the safetensors weights in that repo were a bit malformed. I tried fixing them by loading and saving them again with a torch AutoModelForCausalLM, so hopefully we can use the fixed weights and revert the changes.

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

@Rocketknight1
Copy link
Member Author

Rocketknight1 commented Apr 8, 2024

After testing on the PR branch, this looked good, so I merged the changes to hf-internal-testing/tiny-random-gpt2

@Rocketknight1
Copy link
Member Author

All the actual tests are passing, but we have some rate limit errors on other tests. Raised the issue internally!

Copy link
Collaborator

@amyeroberts amyeroberts 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 handling!

@amyeroberts
Copy link
Collaborator

amyeroberts commented Apr 9, 2024

Merging as the failing tests are unrelated

@amyeroberts amyeroberts merged commit ec59a42 into main Apr 9, 2024
16 of 18 checks passed
@amyeroberts amyeroberts deleted the revert_amy_workaround branch April 9, 2024 10:04
ArthurZucker pushed a commit that referenced this pull request Apr 22, 2024
* See if we can get tests to pass with the fixed weights

* See if we can get tests to pass with the fixed weights

* Replace the revisions now that we don't need them anymore
itazap pushed a commit that referenced this pull request May 14, 2024
* See if we can get tests to pass with the fixed weights

* See if we can get tests to pass with the fixed weights

* Replace the revisions now that we don't need them anymore
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