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
1ffea36e
Unverified
Commit
1ffea36e
authored
Apr 21, 2023
by
OlivierDehaene
Committed by
GitHub
Apr 21, 2023
Browse files
fix(server): fix flash causal (#219)
parent
86bca365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
server/text_generation_server/models/flash_causal_lm.py
server/text_generation_server/models/flash_causal_lm.py
+2
-0
No files found.
server/text_generation_server/models/flash_causal_lm.py
View file @
1ffea36e
...
@@ -225,6 +225,7 @@ class FlashCausalLMBatch(Batch):
...
@@ -225,6 +225,7 @@ class FlashCausalLMBatch(Batch):
return
FlashCausalLMBatch
(
return
FlashCausalLMBatch
(
batch_id
=
self
.
batch_id
,
batch_id
=
self
.
batch_id
,
past_pad
=
self
.
past_pad
,
requests
=
requests
,
requests
=
requests
,
requests_idx_mapping
=
requests_idx_mapping
,
requests_idx_mapping
=
requests_idx_mapping
,
input_ids
=
input_ids
,
input_ids
=
input_ids
,
...
@@ -311,6 +312,7 @@ class FlashCausalLMBatch(Batch):
...
@@ -311,6 +312,7 @@ class FlashCausalLMBatch(Batch):
return
FlashCausalLMBatch
(
return
FlashCausalLMBatch
(
batch_id
=
batches
[
0
].
batch_id
,
batch_id
=
batches
[
0
].
batch_id
,
past_pad
=
batches
[
0
].
past_pad
,
requests
=
requests
,
requests
=
requests
,
requests_idx_mapping
=
requests_idx_mapping
,
requests_idx_mapping
=
requests_idx_mapping
,
input_ids
=
input_ids
,
input_ids
=
input_ids
,
...
...
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