这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@shantanugupta2004
Copy link
Contributor

@shantanugupta2004 shantanugupta2004 commented Oct 14, 2025

Fixes #2835
This PR addresses the deprecation of the torch_dtype argument in favor of dtype. The changes are applied across documentation, examples, and tests to maintain compatibility and ensure future-proofness.

Key changes:

  • Replaced all instances of torch_dtype with dtype.
  • Updated documentation and examples to reflect the new argument.
  • Ensured that tests are updated to use the dtype argument.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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.

Thanks for working on this PR to take care of the deprecated torch_dtype argument. I checked the changes and found a couple of instances where the change has to be reverted, but most look good. I haven't checked if you missed anything, but even so, those instances can be updated later.

@shantanugupta2004
Copy link
Contributor Author

I have reverted the files stated above. Please re-review and suggest any changes if required. @BenjaminBossan

@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

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

Thanks for working on this deprecation, LGTM.

@BenjaminBossan BenjaminBossan merged commit 1a1f972 into huggingface:main Oct 16, 2025
13 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.

Update deprecated torch_dtype argument

3 participants