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
d0cfec7a
Unverified
Commit
d0cfec7a
authored
Mar 25, 2025
by
youkaichao
Committed by
GitHub
Mar 25, 2025
Browse files
[bugfix] fix inductor cache on max_position_embeddings (#15436)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
a6081600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/config.py
vllm/config.py
+3
-0
No files found.
vllm/config.py
View file @
d0cfec7a
...
@@ -221,6 +221,9 @@ class ModelConfig:
...
@@ -221,6 +221,9 @@ class ModelConfig:
factors
.
append
(
self
.
trust_remote_code
)
factors
.
append
(
self
.
trust_remote_code
)
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
factors
.
append
(
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