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
8d2cf38c
Unverified
Commit
8d2cf38c
authored
Jul 14, 2025
by
Lianmin Zheng
Committed by
GitHub
Jul 14, 2025
Browse files
[Minor] Remove redundant print (#8005)
parent
2117f82d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
python/sglang/srt/hf_transformers_utils.py
python/sglang/srt/hf_transformers_utils.py
+0
-1
python/sglang/srt/layers/vocab_parallel_embedding.py
python/sglang/srt/layers/vocab_parallel_embedding.py
+0
-2
No files found.
python/sglang/srt/hf_transformers_utils.py
View file @
8d2cf38c
...
@@ -167,7 +167,6 @@ def get_generation_config(
...
@@ -167,7 +167,6 @@ def get_generation_config(
model
,
trust_remote_code
=
trust_remote_code
,
revision
=
revision
,
**
kwargs
model
,
trust_remote_code
=
trust_remote_code
,
revision
=
revision
,
**
kwargs
)
)
except
OSError
as
e
:
except
OSError
as
e
:
logging
.
info
(
"model doesn't have generation_config.json"
)
return
None
return
None
...
...
python/sglang/srt/layers/vocab_parallel_embedding.py
View file @
8d2cf38c
...
@@ -569,8 +569,6 @@ class ParallelLMHead(VocabParallelEmbedding):
...
@@ -569,8 +569,6 @@ class ParallelLMHead(VocabParallelEmbedding):
if
_is_cpu
and
_is_cpu_amx_available
:
if
_is_cpu
and
_is_cpu_amx_available
:
if
hasattr
(
self
,
"weight"
)
and
self
.
weight
.
dtype
==
torch
.
bfloat16
:
if
hasattr
(
self
,
"weight"
)
and
self
.
weight
.
dtype
==
torch
.
bfloat16
:
self
.
quant_method
=
PackWeightMethod
(
weight_names
=
[
"weight"
])
self
.
quant_method
=
PackWeightMethod
(
weight_names
=
[
"weight"
])
else
:
logger
.
warning
(
"The weight of LmHead is not packed"
)
if
bias
:
if
bias
:
self
.
bias
=
Parameter
(
self
.
bias
=
Parameter
(
...
...
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