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
8aa5ae6b
"tests/python/common/transforms/test_transform.py" did not exist on "3d8377062c82cca2bf9f8591ba16f000c1e84e9e"
Unverified
Commit
8aa5ae6b
authored
Jul 18, 2025
by
yilian49
Committed by
GitHub
Jul 17, 2025
Browse files
load draft model fix (#7506)
parent
8a323557
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
python/sglang/srt/model_loader/loader.py
python/sglang/srt/model_loader/loader.py
+7
-1
No files found.
python/sglang/srt/model_loader/loader.py
View file @
8aa5ae6b
...
@@ -575,7 +575,13 @@ class DummyModelLoader(BaseModelLoader):
...
@@ -575,7 +575,13 @@ class DummyModelLoader(BaseModelLoader):
# 2. Post-processing of weights, including assigning specific member variables.
# 2. Post-processing of weights, including assigning specific member variables.
# For `dummy_init`, only the second stage is required.
# For `dummy_init`, only the second stage is required.
if
hasattr
(
model
,
"post_load_weights"
):
if
hasattr
(
model
,
"post_load_weights"
):
model
.
post_load_weights
()
if
(
model_config
.
hf_config
.
architectures
[
0
]
==
"DeepseekV3ForCausalLMNextN"
):
model
.
post_load_weights
(
is_nextn
=
True
)
else
:
model
.
post_load_weights
()
return
model
.
eval
()
return
model
.
eval
()
...
...
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