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
b590adfd
Unverified
Commit
b590adfd
authored
Apr 15, 2025
by
Richard Zou
Committed by
GitHub
Apr 14, 2025
Browse files
Fix vLLM x torch.compile config caching (#16491)
Signed-off-by:
rzou
<
zou3519@gmail.com
>
parent
b4fe16c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
vllm/config.py
vllm/config.py
+9
-3
No files found.
vllm/config.py
View file @
b590adfd
...
@@ -298,12 +298,18 @@ class ModelConfig:
...
@@ -298,12 +298,18 @@ class ModelConfig:
factors
.
append
(
self
.
quantization
)
factors
.
append
(
self
.
quantization
)
factors
.
append
(
self
.
revision
)
factors
.
append
(
self
.
revision
)
factors
.
append
(
self
.
code_revision
)
factors
.
append
(
self
.
code_revision
)
factors
.
append
(
self
.
max_model_len
)
factors
.
append
(
self
.
max_logprobs
)
factors
.
append
(
self
.
disable_sliding_window
)
factors
.
append
(
self
.
trust_remote_code
)
factors
.
append
(
self
.
trust_remote_code
)
factors
.
append
(
self
.
mm_processor_kwargs
)
factors
.
append
(
self
.
generation_config
)
factors
.
append
(
self
.
model_impl
)
factors
.
append
(
self
.
override_generation_config
)
factors
.
append
(
self
.
rope_scaling
)
factors
.
append
(
self
.
rope_scaling
)
factors
.
append
(
self
.
rope_theta
)
factors
.
append
(
self
.
rope_theta
)
# rope cos/sin cache depends on the max_position_embeddings
# hf_config can control how the model looks!
factors
.
append
(
factors
.
append
(
self
.
hf_config
.
to_json_string
())
getattr
(
self
.
hf_config
,
"max_position_embeddings"
,
"None"
))
return
hashlib
.
sha256
(
str
(
factors
).
encode
()).
hexdigest
()
return
hashlib
.
sha256
(
str
(
factors
).
encode
()).
hexdigest
()
def
__init__
(
def
__init__
(
...
...
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