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
c411def2
Unverified
Commit
c411def2
authored
Nov 27, 2024
by
youkaichao
Committed by
GitHub
Nov 27, 2024
Browse files
[torch.compile] fix shape specialization (#10722)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
308cc5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
vllm/config.py
vllm/config.py
+3
-4
No files found.
vllm/config.py
View file @
c411def2
...
@@ -2151,7 +2151,7 @@ class CompilationConfig(BaseModel):
...
@@ -2151,7 +2151,7 @@ class CompilationConfig(BaseModel):
use_inductor
:
bool
=
True
use_inductor
:
bool
=
True
inductor_specialize_for_cudagraph_no_more_than
:
Optional
[
int
]
=
None
inductor_specialize_for_cudagraph_no_more_than
:
Optional
[
int
]
=
None
inductor_compile_sizes
:
Optional
[
List
[
int
]]
=
Field
(
default
_factory
=
dict
)
inductor_compile_sizes
:
Optional
[
List
[
int
]]
=
Field
(
default
=
None
)
inductor_compile_config
:
Dict
=
Field
(
default_factory
=
dict
)
inductor_compile_config
:
Dict
=
Field
(
default_factory
=
dict
)
inductor_passes
:
Dict
[
str
,
str
]
=
Field
(
default_factory
=
dict
)
inductor_passes
:
Dict
[
str
,
str
]
=
Field
(
default_factory
=
dict
)
...
@@ -2290,9 +2290,8 @@ class CompilationConfig(BaseModel):
...
@@ -2290,9 +2290,8 @@ class CompilationConfig(BaseModel):
if
x
<=
self
.
inductor_specialize_for_cudagraph_no_more_than
if
x
<=
self
.
inductor_specialize_for_cudagraph_no_more_than
]
]
else
:
else
:
assert
self
.
inductor_compile_sizes
is
not
None
,
(
if
self
.
inductor_compile_sizes
is
None
:
"inductor_compile_sizes should not be None when "
self
.
inductor_compile_sizes
=
[]
"inductor_specialize_for_cudagraph_no_more_than is None"
)
self
.
compile_sizes
=
self
.
inductor_compile_sizes
self
.
compile_sizes
=
self
.
inductor_compile_sizes
...
...
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