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
f7ac3949
Unverified
Commit
f7ac3949
authored
Jan 17, 2023
by
Nick Hill
Committed by
GitHub
Jan 17, 2023
Browse files
fix(router): Obey max batch size (#23)
parent
e6d3eb5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
router/src/batcher.rs
router/src/batcher.rs
+1
-1
No files found.
router/src/batcher.rs
View file @
f7ac3949
...
...
@@ -127,7 +127,7 @@ async fn batching_task(
// Try to get a new batch
if
let
Some
((
new_request_ids
,
new_batch
))
=
db
.next_batch
(
min_size
,
max_batch_size
)
db
.next_batch
(
min_size
,
max_batch_size
-
batch_size
as
usize
)
{
// Generate one token for this new batch to have the attention past in cache
let
new_cached_batch
=
...
...
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