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
327f7b7c
Unverified
Commit
327f7b7c
authored
Aug 23, 2025
by
Vincent Zhong
Committed by
GitHub
Aug 23, 2025
Browse files
fix(grok): remove duplicate replicate_lm_head configuration (#9549)
parent
80425e59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
python/sglang/srt/models/grok.py
python/sglang/srt/models/grok.py
+0
-4
No files found.
python/sglang/srt/models/grok.py
View file @
327f7b7c
...
@@ -842,10 +842,6 @@ class Grok1ForCausalLM(nn.Module):
...
@@ -842,10 +842,6 @@ class Grok1ForCausalLM(nn.Module):
if
self
.
is_weights_presharded
:
if
self
.
is_weights_presharded
:
setattr
(
DefaultModelLoader
,
"_prepare_weights"
,
_prepare_presharded_weights
)
setattr
(
DefaultModelLoader
,
"_prepare_weights"
,
_prepare_presharded_weights
)
default_replicate_lm_head
=
False
self
.
replicate_lm_head
=
getattr
(
config
,
"replicate_lm_head"
,
default_replicate_lm_head
)
self
.
replicate_embedding
=
getattr
(
config
,
"replicate_embedding"
,
False
)
self
.
replicate_embedding
=
getattr
(
config
,
"replicate_embedding"
,
False
)
self
.
model
=
Grok1Model
(
self
.
model
=
Grok1Model
(
...
...
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