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
OpenDAS
text-generation-inference
Commits
08b7e4a2
"git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "5fd4fd2870b45a41c2d0cd4d2b6b4ca8434c4bd2"
Unverified
Commit
08b7e4a2
authored
Mar 30, 2023
by
OlivierDehaene
Committed by
GitHub
Mar 30, 2023
Browse files
fix(server): fix flash neox rotary embeddings (#150)
parent
610bb1f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
server/text_generation_server/models/flash_neox_modeling.py
server/text_generation_server/models/flash_neox_modeling.py
+4
-4
No files found.
server/text_generation_server/models/flash_neox_modeling.py
View file @
08b7e4a2
...
...
@@ -319,12 +319,12 @@ class FlashNeoxAttention(torch.nn.Module):
layer_past
[...]
=
qkv_rot
[:,
1
:]
# output
attn_output
=
torch
.
empty_like
(
qkv
[:,
0
])
attn_output
=
torch
.
empty_like
(
qkv
_rot
[:,
0
])
# flash attention
flash_attn_cuda
.
fwd
(
qkv
[:,
0
],
qkv
[:,
1
],
qkv
[:,
2
],
qkv
_rot
[:,
0
],
qkv
_rot
[:,
1
],
qkv
_rot
[:,
2
],
attn_output
,
cu_seqlens
,
cu_seqlens
,
...
...
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