Skip to content

Conversation

namgyu-youn
Copy link
Contributor

Summary:
In from_pretrained() method in huggingface/transformers, torch_dtype is deprecated and dtype replaces it. To prevent deprecation warnings, this PR replaces torch_dtype with dtype.

Test plan: CI

Reference: huggingface/transformers#39782

In `from_pretrained()` method in `huggingface/transformers`, `torch_dtype`
is deprecated and `dtype` replaces it. To prevent deprecation warnings,
this PR replaces `torch_dtype` with `dtype`.

Test plan: CI

Reference: huggingface/transformers#39782
Copy link

pytorch-bot bot commented Sep 11, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2982

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit 1ee4443 with merge base 045c959 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 11, 2025
@namgyu-youn
Copy link
Contributor Author

The following source code shows dtype substitutes torch_dtype with overwrite.

https://github.com/huggingface/transformers/blob/cf084f5b40e19b5a5f946cee75bead6d4247b071/src/transformers/configuration_utils.py#L264-L274

@jerryzh168
Copy link
Contributor

please rebase and resolve merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants