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
74692421
Unverified
Commit
74692421
authored
Oct 22, 2024
by
Falko1
Committed by
GitHub
Oct 22, 2024
Browse files
[Bugfix]: phi.py get rope_theta from config file (#9503)
Co-authored-by:
Isotr0py
<
2037008807@qq.com
>
parent
29acd2c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/models/phi.py
vllm/model_executor/models/phi.py
+3
-2
No files found.
vllm/model_executor/models/phi.py
View file @
74692421
...
@@ -102,8 +102,9 @@ class PhiAttention(nn.Module):
...
@@ -102,8 +102,9 @@ class PhiAttention(nn.Module):
# pylint: disable=C0301
# pylint: disable=C0301
# Refer to:
# Refer to:
# https://huggingface.co/microsoft/phi-1_5/blob/d212a789620c380ff32ca1d1ee9943a777360987/modeling_phi.py#L518
# https://huggingface.co/microsoft/phi-1_5/blob/d212a789620c380ff32ca1d1ee9943a777360987/modeling_phi.py#L518
rope_theta
=
10000
rope_theta
=
getattr
(
config
,
"rope_theta"
,
10000.0
)
max_position_embeddings
=
getattr
(
config
,
"n_positions"
,
2048
)
max_position_embeddings
=
getattr
(
config
,
"max_position_embeddings"
,
2048
)
self
.
rotary_emb
=
get_rope
(
self
.
rotary_emb
=
get_rope
(
self
.
head_size
,
self
.
head_size
,
rotary_dim
=
rotary_dim
,
rotary_dim
=
rotary_dim
,
...
...
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