Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
43227236
Unverified
Commit
43227236
authored
Sep 29, 2025
by
Jiangyun Zhu
Committed by
GitHub
Sep 29, 2025
Browse files
[torch.compile] serialize cudagraph_mode as its enum name instead of value (#25868)
Signed-off-by:
zjy0516
<
riverclouds.zhu@qq.com
>
parent
8616300a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
vllm/config/compilation.py
vllm/config/compilation.py
+8
-4
No files found.
vllm/config/compilation.py
View file @
43227236
...
@@ -73,6 +73,9 @@ class CUDAGraphMode(enum.Enum):
...
@@ -73,6 +73,9 @@ class CUDAGraphMode(enum.Enum):
CUDAGraphMode
.
NONE
,
CUDAGraphMode
.
PIECEWISE
,
CUDAGraphMode
.
FULL
CUDAGraphMode
.
NONE
,
CUDAGraphMode
.
PIECEWISE
,
CUDAGraphMode
.
FULL
]
]
def
__str__
(
self
)
->
str
:
return
self
.
name
@
config
@
config
@
dataclass
@
dataclass
...
@@ -417,10 +420,11 @@ class CompilationConfig:
...
@@ -417,10 +420,11 @@ class CompilationConfig:
if
pass_config_exclude
:
if
pass_config_exclude
:
exclude
[
"pass_config"
]
=
pass_config_exclude
exclude
[
"pass_config"
]
=
pass_config_exclude
return
TypeAdapter
(
CompilationConfig
).
dump_json
(
config
=
TypeAdapter
(
CompilationConfig
).
dump_python
(
self
,
self
,
exclude
=
exclude
,
exclude
=
exclude
,
# type: ignore[arg-type]
exclude_unset
=
True
)
exclude_unset
=
True
).
decode
()
return
str
(
config
)
__str__
=
__repr__
__str__
=
__repr__
...
...
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