Skip to content

Add hasattr(torch.backends.cudnn, "conv") to conftest.py#45263

Merged
ydshieh merged 1 commit intomainfrom
fix_conf
Apr 6, 2026
Merged

Add hasattr(torch.backends.cudnn, "conv") to conftest.py#45263
ydshieh merged 1 commit intomainfrom
fix_conf

Conversation

@ydshieh
Copy link
Copy Markdown
Collaborator

@ydshieh ydshieh commented Apr 6, 2026

What does this PR do?

Fix tf32 issue: set torch.backends.cudnn.conv.fp32_precision explicitly. (#45248) breaks when running on torch 2.8 or older ...

@ydshieh ydshieh marked this pull request as draft April 6, 2026 10:10
@ydshieh ydshieh changed the title Add hasattr(torch.backends.cudnn, "conv") to conftest.py [DON'T MERGE YET] Add hasattr(torch.backends.cudnn, "conv") to conftest.py Apr 6, 2026
@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.

@ydshieh ydshieh marked this pull request as ready for review April 6, 2026 19:30
@ydshieh ydshieh changed the title [DON'T MERGE YET] Add hasattr(torch.backends.cudnn, "conv") to conftest.py Add hasattr(torch.backends.cudnn, "conv") to conftest.py Apr 6, 2026
@ydshieh ydshieh merged commit b9f0fbf into main Apr 6, 2026
27 of 29 checks passed
@ydshieh ydshieh deleted the fix_conf branch April 6, 2026 19:46
louzongzhi pushed a commit to louzongzhi/transformers that referenced this pull request Apr 7, 2026
…face#45263)

clean

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
sirzechs66 pushed a commit to sirzechs66/transformers that referenced this pull request Apr 18, 2026
…face#45263)

clean

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
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.

2 participants