Skip to content

Improve use of torch.is_autocast_enabled#43930

Merged
Rocketknight1 merged 2 commits intohuggingface:mainfrom
cyyever:autocast
Feb 16, 2026
Merged

Improve use of torch.is_autocast_enabled#43930
Rocketknight1 merged 2 commits intohuggingface:mainfrom
cyyever:autocast

Conversation

@cyyever
Copy link
Contributor

@cyyever cyyever commented Feb 12, 2026

What does this PR do?

We can use PT 2.4.0 is_autocast_enabled changes to improve code.

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

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: diffllama, esm, falcon, gpt_neo, gptj, kyutai_speech_to_text, mimi, moshi

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

Yep, LGTM now!

@Rocketknight1 Rocketknight1 enabled auto-merge (squash) February 16, 2026 13:46
@Rocketknight1 Rocketknight1 merged commit 3955dc7 into huggingface:main Feb 16, 2026
25 checks passed
@cyyever cyyever deleted the autocast branch February 17, 2026 00:42
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