Skip to content

torch.dtype alias#14162

Open
stevhliu wants to merge 2 commits into
huggingface:mainfrom
stevhliu:dtype-alias
Open

torch.dtype alias#14162
stevhliu wants to merge 2 commits into
huggingface:mainfrom
stevhliu:dtype-alias

Conversation

@stevhliu

Copy link
Copy Markdown
Member

Alias dtype to torch.dtype so our Hub snippets work properly (see huggingface/huggingface.js#2280 for more details)

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

@stevhliu stevhliu requested a review from sayakpaul July 10, 2026 16:42

@sayakpaul sayakpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm, should we consider deprecating torch_dtype following what transformers did? @DN6 @yiyixuxu WDYT?

PR looks alright to me (and it also unblock and internal collaboration).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants