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
b4cf832c
Unverified
Commit
b4cf832c
authored
Apr 27, 2023
by
Nick Hill
Committed by
GitHub
Apr 27, 2023
Browse files
fix(server): fix reshaping of bloom past_key_values in concatenate() (#252)
Introduced in #214 Fixes #249
parent
db2b4e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/text_generation_server/models/causal_lm.py
server/text_generation_server/models/causal_lm.py
+1
-1
No files found.
server/text_generation_server/models/causal_lm.py
View file @
b4cf832c
...
...
@@ -335,7 +335,7 @@ class CausalLMBatch(Batch):
[
t
.
view
(
len
(
batch
),
-
1
,
*
t
.
shape
[
-
2
:])
for
t
in
layer
]
for
layer
in
batch
.
past_key_values
]
elif
batch
.
past_key_values
[
0
][
0
].
shape
==
3
:
elif
len
(
batch
.
past_key_values
[
0
][
0
].
shape
)
==
3
:
for
layer
in
batch
.
past_key_values
:
for
k
,
t
in
enumerate
(
layer
):
layer
[
k
]
=
t
.
view
(
len
(
batch
),
-
1
,
*
t
.
shape
[
-
2
:])
...
...
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