diff --git a/vllm/model_executor/models/gemma.py b/vllm/model_executor/models/gemma.py index da17646c540fd..d741880c00d2d 100644 --- a/vllm/model_executor/models/gemma.py +++ b/vllm/model_executor/models/gemma.py @@ -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 diff --git a/vllm/model_executor/models/gemma2.py b/vllm/model_executor/models/gemma2.py index cf744fc2b9d12..d125c666f3cd1 100644 --- a/vllm/model_executor/models/gemma2.py +++ b/vllm/model_executor/models/gemma2.py @@ -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 diff --git a/vllm/model_executor/models/gemma3.py b/vllm/model_executor/models/gemma3.py index f1ecf7fa821d9..55c96f649fbeb 100644 --- a/vllm/model_executor/models/gemma3.py +++ b/vllm/model_executor/models/gemma3.py @@ -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