Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
bf203cb7
"src/vscode:/vscode.git/clone" did not exist on "7dc52ea7691ee1a70728377e7f5e678260114bc8"
Unverified
Commit
bf203cb7
authored
May 04, 2025
by
Baizhou Zhang
Committed by
GitHub
May 04, 2025
Browse files
[Fix] Suppress dynamo logging when using flashinfer backend with torch compile (#5992)
parent
8ebde73f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
python/sglang/srt/layers/attention/flashinfer_backend.py
python/sglang/srt/layers/attention/flashinfer_backend.py
+2
-1
python/sglang/srt/layers/attention/flashinfer_mla_backend.py
python/sglang/srt/layers/attention/flashinfer_mla_backend.py
+2
-1
No files found.
python/sglang/srt/layers/attention/flashinfer_backend.py
View file @
bf203cb7
...
...
@@ -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
...
...
python/sglang/srt/layers/attention/flashinfer_mla_backend.py
View file @
bf203cb7
...
...
@@ -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
...
...
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