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
b8347b40
Unverified
Commit
b8347b40
authored
Sep 14, 2025
by
Yuxuan Zhang
Committed by
GitHub
Sep 13, 2025
Browse files
Add self.capture_aux_hidden_states For GLM-4.5V (#10228)
parent
72dfa96a
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_moe.py
python/sglang/srt/models/glm4v_moe.py
+3
-0
No files found.
python/sglang/srt/models/glm4v_moe.py
View file @
b8347b40
...
@@ -74,6 +74,9 @@ class Glm4vMoeForConditionalGeneration(Glm4vForConditionalGeneration):
...
@@ -74,6 +74,9 @@ class Glm4vMoeForConditionalGeneration(Glm4vForConditionalGeneration):
self
.
pooler
=
Pooler
(
pooling_type
=
PoolingType
.
LAST
,
normalize
=
True
)
self
.
pooler
=
Pooler
(
pooling_type
=
PoolingType
.
LAST
,
normalize
=
True
)
self
.
is_mrope_enabled
=
"mrope_section"
in
self
.
config
.
rope_scaling
self
.
is_mrope_enabled
=
"mrope_section"
in
self
.
config
.
rope_scaling
# For EAGLE3 support
self
.
capture_aux_hidden_states
=
False
def
determine_num_fused_shared_experts
(
def
determine_num_fused_shared_experts
(
self
,
architecture
:
str
=
"Glm4MoeForCausalLM"
self
,
architecture
:
str
=
"Glm4MoeForCausalLM"
):
):
...
...
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