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
change
sglang
Commits
b6b40946
Unverified
Commit
b6b40946
authored
Oct 15, 2024
by
Liangsheng Yin
Committed by
GitHub
Oct 15, 2024
Browse files
Fix filter_batch function call (#1681)
parent
f1088e0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/managers/schedule_batch.py
python/sglang/srt/managers/schedule_batch.py
+1
-1
No files found.
python/sglang/srt/managers/schedule_batch.py
View file @
b6b40946
...
...
@@ -649,7 +649,7 @@ class ScheduleBatch:
req
.
last_update_decode_tokens
=
0
req
.
logprob_start_len
=
10
**
9
self
.
filter_batch
(
sorted_indices
)
self
.
filter_batch
(
keep_indices
=
sorted_indices
)
# Reqs in batch are filtered
total_decoded_tokens
=
sum
(
len
(
r
.
output_ids
)
for
r
in
self
.
reqs
)
...
...
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