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
1f963d7f
Unverified
Commit
1f963d7f
authored
Apr 26, 2025
by
Yi Zhang
Committed by
GitHub
Apr 26, 2025
Browse files
Bugfix for minicpmo vision test (#5760)
parent
04d0123f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
python/sglang/srt/managers/multimodal_processors/minicpm.py
python/sglang/srt/managers/multimodal_processors/minicpm.py
+1
-1
python/sglang/srt/managers/schedule_batch.py
python/sglang/srt/managers/schedule_batch.py
+6
-0
No files found.
python/sglang/srt/managers/multimodal_processors/minicpm.py
View file @
1f963d7f
...
@@ -97,7 +97,7 @@ class MiniCPMMultimodalProcessor(BaseMultimodalProcessor):
...
@@ -97,7 +97,7 @@ class MiniCPMMultimodalProcessor(BaseMultimodalProcessor):
audio_start_id
=
tokenizer
.
audio_start_id
audio_start_id
=
tokenizer
.
audio_start_id
audio_end_id
=
tokenizer
.
audio_end_id
audio_end_id
=
tokenizer
.
audio_end_id
im_token_id
=
tokenizer
.
unk_
token_
id
im_token_id
=
tokenizer
.
unk_id
pixel_values
=
res
[
"pixel_values"
]
pixel_values
=
res
[
"pixel_values"
]
tgt_sizes
=
res
[
"tgt_sizes"
]
tgt_sizes
=
res
[
"tgt_sizes"
]
...
...
python/sglang/srt/managers/schedule_batch.py
View file @
1f963d7f
...
@@ -374,6 +374,12 @@ class MultimodalInputs:
...
@@ -374,6 +374,12 @@ class MultimodalInputs:
self
.
mrope_position_delta
=
torch
.
cat
(
self
.
mrope_position_delta
=
torch
.
cat
(
[
self
.
mrope_position_delta
,
other
.
mrope_position_delta
],
dim
=
0
[
self
.
mrope_position_delta
,
other
.
mrope_position_delta
],
dim
=
0
)
)
for
key
,
val
in
other
.
__dict__
.
items
():
if
"_id"
in
key
:
# set token_ids
if
getattr
(
self
,
key
,
None
)
is
None
:
setattr
(
self
,
key
,
getattr
(
other
,
key
,
None
))
# other args would be kept intact
# other args would be kept intact
...
...
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