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
f11eb90f
Unverified
Commit
f11eb90f
authored
Nov 09, 2024
by
Enrique Shockwave
Committed by
GitHub
Nov 09, 2024
Browse files
Initialize model_worker_batch variable (#1973)
parent
95a4ed12
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/scheduler.py
python/sglang/srt/managers/scheduler.py
+1
-1
No files found.
python/sglang/srt/managers/scheduler.py
View file @
f11eb90f
...
...
@@ -787,8 +787,8 @@ class Scheduler:
self
.
forward_ct
+=
1
if
self
.
is_generation
:
model_worker_batch
=
batch
.
get_model_worker_batch
()
if
batch
.
forward_mode
.
is_decode
()
or
batch
.
extend_num_tokens
!=
0
:
model_worker_batch
=
batch
.
get_model_worker_batch
()
batch
.
mark_reqs_started
()
logits_output
,
next_token_ids
=
self
.
tp_worker
.
forward_batch_generation
(
model_worker_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