[NVIDIA] Support TF32 matmul to improve MiniMax gate gemm performance (#22744)
This commit is contained in:
@@ -533,6 +533,10 @@ class ModelRunner(ModelRunnerKVCacheMixin):
|
||||
if self.device == "cpu":
|
||||
self.init_threads_binding()
|
||||
|
||||
# Set float32 matmul precision
|
||||
if server_args.enable_tf32_matmul:
|
||||
torch.set_float32_matmul_precision("high")
|
||||
|
||||
# Get available memory before model loading.
|
||||
# Stored for later use by alloc_memory_pool().
|
||||
self.pre_model_load_memory = self.init_torch_distributed()
|
||||
|
||||
Reference in New Issue
Block a user