Skip to content

Fix and uniformize hub kwargs#2276

Merged
echarlaix merged 2 commits into
mainfrom
fix-force-download
May 20, 2025
Merged

Fix and uniformize hub kwargs#2276
echarlaix merged 2 commits into
mainfrom
fix-force-download

Conversation

@IlyasMoutawwakil

@IlyasMoutawwakil IlyasMoutawwakil commented May 20, 2025

Copy link
Copy Markdown
Member

What does this PR do?

In my last PR I must have changed some defaults by mistake (e.g. force_download for CausalLM)
maybe it makes sense to start using something like this for the hub kwargs to guarantee they are the same across the lib
https://github.com/huggingface/transformers/blob/46a4b7c909fab58355936e1c7109bb5e2e558267/src/transformers/models/glm4/modular_glm4.py#L63

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Who can review?

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@echarlaix echarlaix left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

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