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
364d3d72
"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "319124847216a57a6ae12b567689aa72b28f1c02"
Unverified
Commit
364d3d72
authored
Aug 22, 2024
by
Liangsheng Yin
Committed by
GitHub
Aug 22, 2024
Browse files
Fix broken penalty (#1184)
parent
5623826f
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 @
364d3d72
...
@@ -615,7 +615,7 @@ class ScheduleBatch:
...
@@ -615,7 +615,7 @@ class ScheduleBatch:
for
r
in
self
.
reqs
for
r
in
self
.
reqs
]
]
else
:
else
:
self
.
penalizer_orchestrator
.
cumulate_input_tokens
(
input_ids
)
self
.
sampling_info
.
penalizer_orchestrator
.
cumulate_input_tokens
(
input_ids
)
self
.
input_ids
=
torch
.
tensor
(
input_ids
,
dtype
=
torch
.
int32
,
device
=
"cuda"
)
self
.
input_ids
=
torch
.
tensor
(
input_ids
,
dtype
=
torch
.
int32
,
device
=
"cuda"
)
self
.
seq_lens
.
add_
(
1
)
self
.
seq_lens
.
add_
(
1
)
...
...
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