[Bug] Revert torch warning fix (#31585)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-01-05 22:31:21 +00:00
committed by GitHub
parent 276e03b92c
commit af9a7ec255
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class Worker(WorkerBase):
# configure float32 matmul precision according to vLLM env.
precision = envs.VLLM_FLOAT32_MATMUL_PRECISION
torch.backends.cuda.matmul.fp32_precision = precision
torch.set_float32_matmul_precision(precision)
if self.model_config.trust_remote_code:
# note: lazy import to avoid importing torch before initializing