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
8116804e
Unverified
Commit
8116804e
authored
Sep 08, 2025
by
Xinyuan Tong
Committed by
GitHub
Sep 07, 2025
Browse files
Fix: (glm4v) Add missing field (#10147)
parent
8c5930f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/sglang/srt/models/glm4v.py
python/sglang/srt/models/glm4v.py
+3
-0
No files found.
python/sglang/srt/models/glm4v.py
View file @
8116804e
...
...
@@ -497,6 +497,9 @@ class Glm4vForConditionalGeneration(Qwen2_5_VLForConditionalGeneration):
self
.
pooler
=
Pooler
(
pooling_type
=
PoolingType
.
LAST
,
normalize
=
True
)
self
.
is_mrope_enabled
=
"mrope_section"
in
self
.
config
.
rope_scaling
# For EAGLE3 support
self
.
capture_aux_hidden_states
=
False
def
get_image_feature
(
self
,
items
:
List
[
MultimodalDataItem
])
->
torch
.
Tensor
:
pixel_values
=
torch
.
cat
(
[
item
.
feature
.
squeeze
(
0
)
for
item
in
items
],
dim
=
0
...
...
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