Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e1eefa4c
Unverified
Commit
e1eefa4c
authored
Nov 20, 2025
by
Wentao Ye
Committed by
GitHub
Nov 21, 2025
Browse files
[Bug] Fix torch warning of tf32 usage (#29112)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
ed6ae1e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/layers/batch_invariant.py
vllm/model_executor/layers/batch_invariant.py
+3
-2
No files found.
vllm/model_executor/layers/batch_invariant.py
View file @
e1eefa4c
...
...
@@ -852,5 +852,6 @@ def init_batch_invariance():
enable_batch_invariant_mode
()
# Disable TF32 for batch invariance - it causes non-deterministic rounding
torch
.
backends
.
cuda
.
matmul
.
allow_tf32
=
False
torch
.
backends
.
cudnn
.
allow_tf32
=
False
torch
.
backends
.
cuda
.
matmul
.
fp32_precision
=
"ieee"
torch
.
backends
.
cudnn
.
conv
.
fp32_precision
=
"ieee"
torch
.
backends
.
cudnn
.
rnn
.
fp32_precision
=
"ieee"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment