[Misc] Remove misleading message in gemma2 and gemma3 (#14850)

Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
Isotr0py 2025-03-15 12:35:12 +08:00 committed by GitHub
parent 776dcec8fe
commit 97ac781c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 15 deletions

View File

@ -424,9 +424,5 @@ class GemmaForCausalLM(nn.Module, SupportsLoRA, SupportsPP):
default_weight_loader)
weight_loader(param, loaded_weight)
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

View File

@ -358,11 +358,6 @@ class Gemma2Model(nn.Module):
weight_loader(param, loaded_weight)
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

View File

@ -452,11 +452,6 @@ class Gemma3Model(nn.Module):
weight_loader(param, loaded_weight)
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