mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-23 09:24:28 +08:00
[Bug] Fix torch warning of tf32 usage (#29112)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
ed6ae1e36a
commit
e1eefa4c40
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user