[Fix] Suppress dynamo logging when using flashinfer backend with torch compile (#5992)
This commit is contained in:
1 parent
8ebde73f7d
commit
bf203cb7a2
2 files changed
+4
-2
No files matched your search
@@ -16,8 +16,9 @@ from typing import TYPE_CHECKING, Callable, List, Optional, Union
|
||||
import torch
|
||||
|
||||
if os.environ["SGLANG_ENABLE_TORCH_COMPILE"] == "1":
|
||||
import torch._dynamo
|
||||
import logging
|
||||
|
||||
torch._logging.set_logs(dynamo=logging.ERROR)
|
||||
torch._dynamo.config.suppress_errors = True
|
||||
|
||||
from sglang.global_config import global_config
|
||||
|
||||
@@ -18,8 +18,9 @@ import torch
|
||||
import triton
|
||||
|
||||
if os.environ["SGLANG_ENABLE_TORCH_COMPILE"] == "1":
|
||||
import torch._dynamo
|
||||
import logging
|
||||
|
||||
torch._logging.set_logs(dynamo=logging.ERROR)
|
||||
torch._dynamo.config.suppress_errors = True
|
||||
|
||||
from sglang.global_config import global_config
|
||||
|
||||
Reference in new issue
Block a user