Skip to content

Conversation

@qgallouedec
Copy link
Member

Fixes the warning

  /fsx/qgallouedec/miniconda3/envs/trl/lib/python3.12/site-packages/transformers/integrations/flash_attention.py:54: DeprecationWarning: torch.get_autocast_dtype('cuda') is deprecated. Please use torch.get_autocast_dtype('cuda') instead. (Triggered internally at /pytorch/torch/csrc/autograd/init.cpp:852.)
    target_dtype = torch.get_autocast_dtype('cuda')

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

@remi-or remi-or left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@qgallouedec qgallouedec enabled auto-merge (squash) November 13, 2025 20:16
@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

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.

4 participants