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.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

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

3 participants