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
d036198e
Unverified
Commit
d036198e
authored
Apr 09, 2024
by
Roy
Committed by
GitHub
Apr 09, 2024
Browse files
[BugFix][Model] Fix commandr RoPE max_position_embeddings (#3919)
parent
59a6abf3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/model_executor/models/commandr.py
vllm/model_executor/models/commandr.py
+3
-1
No files found.
vllm/model_executor/models/commandr.py
View file @
d036198e
...
...
@@ -140,7 +140,9 @@ class CohereAttention(nn.Module):
self
.
q_size
=
self
.
num_heads
*
self
.
head_dim
self
.
kv_size
=
self
.
num_kv_heads
*
self
.
head_dim
self
.
scaling
=
self
.
head_dim
**-
0.5
self
.
max_position_embeddings
=
config
.
max_position_embeddings
self
.
max_position_embeddings
=
getattr
(
config
,
"model_max_length"
,
None
)
or
getattr
(
config
,
"max_position_embeddings"
,
8192
)
self
.
rope_theta
=
config
.
rope_theta
self
.
rope_scaling
=
getattr
(
config
,
"rope_scaling"
,
None
)
self
.
use_qk_norm
=
getattr
(
config
,
"use_qk_norm"
,
False
)
...
...
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