Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
97ac781c
Unverified
Commit
97ac781c
authored
Mar 15, 2025
by
Isotr0py
Committed by
GitHub
Mar 14, 2025
Browse files
[Misc] Remove misleading message in gemma2 and gemma3 (#14850)
Signed-off-by:
Isotr0py
<
2037008807@qq.com
>
parent
776dcec8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
15 deletions
+1
-15
vllm/model_executor/models/gemma.py
vllm/model_executor/models/gemma.py
+1
-5
vllm/model_executor/models/gemma2.py
vllm/model_executor/models/gemma2.py
+0
-5
vllm/model_executor/models/gemma3.py
vllm/model_executor/models/gemma3.py
+0
-5
No files found.
vllm/model_executor/models/gemma.py
View file @
97ac781c
...
@@ -424,9 +424,5 @@ class GemmaForCausalLM(nn.Module, SupportsLoRA, SupportsPP):
...
@@ -424,9 +424,5 @@ class GemmaForCausalLM(nn.Module, SupportsLoRA, SupportsPP):
default_weight_loader
)
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
loaded_params
.
add
(
name
)
loaded_params
.
add
(
name
)
unloaded_params
=
params_dict
.
keys
()
-
loaded_params
if
unloaded_params
:
logger
.
warning
(
"Some weights are not initialized from checkpoints: %s"
,
unloaded_params
)
return
loaded_params
return
loaded_params
vllm/model_executor/models/gemma2.py
View file @
97ac781c
...
@@ -358,11 +358,6 @@ class Gemma2Model(nn.Module):
...
@@ -358,11 +358,6 @@ class Gemma2Model(nn.Module):
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
loaded_params
.
add
(
name
)
loaded_params
.
add
(
name
)
unloaded_params
=
params_dict
.
keys
()
-
loaded_params
if
unloaded_params
:
logger
.
warning
(
"Some weights are not initialized from checkpoints: %s"
,
unloaded_params
)
return
loaded_params
return
loaded_params
...
...
vllm/model_executor/models/gemma3.py
View file @
97ac781c
...
@@ -452,11 +452,6 @@ class Gemma3Model(nn.Module):
...
@@ -452,11 +452,6 @@ class Gemma3Model(nn.Module):
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
loaded_params
.
add
(
name
)
loaded_params
.
add
(
name
)
unloaded_params
=
params_dict
.
keys
()
-
loaded_params
if
unloaded_params
:
logger
.
warning
(
"Some weights are not initialized from checkpoints: %s"
,
unloaded_params
)
return
loaded_params
return
loaded_params
...
...
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