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

Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
Isotr0py
2025-03-14 21:35:12 -07:00
committed by GitHub
parent 776dcec8fe
commit 97ac781c62
3 changed files with 1 additions and 15 deletions
-5
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