Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
1dde34e0
Unverified
Commit
1dde34e0
authored
Jul 25, 2023
by
leegohi04517
Committed by
GitHub
Jul 24, 2023
Browse files
GPTJConfig has no attribute rotary. (#532)
parent
6fc2a38b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/gpt_j.py
vllm/model_executor/models/gpt_j.py
+1
-1
No files found.
vllm/model_executor/models/gpt_j.py
View file @
1dde34e0
...
...
@@ -65,7 +65,7 @@ class GPTJAttention(nn.Module):
self
.
num_heads
=
self
.
total_num_heads
//
tp_world_size
scaling
=
self
.
head_size
**-
0.5
assert
config
.
rotary
assert
getattr
(
config
,
"
rotary
"
,
True
)
assert
config
.
rotary_dim
%
2
==
0
self
.
attn
=
PagedAttentionWithRoPE
(
self
.
num_heads
,
self
.
head_size
,
scaling
,
config
.
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