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
c2c98725
Unverified
Commit
c2c98725
authored
Apr 12, 2024
by
OlivierDehaene
Committed by
GitHub
Apr 12, 2024
Browse files
fix(router): fix a possible deadlock in next_batch (#1731)
parent
6c2c44b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
router/src/queue.rs
router/src/queue.rs
+4
-0
No files found.
router/src/queue.rs
View file @
c2c98725
...
...
@@ -200,6 +200,10 @@ impl State {
}
}
// Pad prefill_token_budget to be a multiple of block size
let
prefill_token_budget
=
((
prefill_token_budget
+
self
.block_size
-
1
)
/
self
.block_size
)
*
self
.block_size
;
// Create span for this batch to add context to inference calls
let
next_batch_span
=
info_span!
(
parent
:
None
,
"batch"
,
batch_size
=
tracing
::
field
::
Empty
);
next_batch_span
.follows_from
(
&
Span
::
current
());
...
...
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