@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 97ac781c62
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 15, 18:30 UTC

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

Signed-off-by: Isotr0py <2037008807@qq.com>

Isotr0py committed Mar 15, 2025 at 12:35 UTC 97ac781c6213f1774f6559585ed166852e2ecc78
3 files changed +1 -15
vllm/model_executor/models/gemma.py
+1 -5
@@ -424,9 +424,5 @@ class GemmaForCausalLM(nn.Module, SupportsLoRA, SupportsPP):
424 default_weight_loader)
425 weight_loader(param, loaded_weight)
426 loaded_params.add(name)
427 - unloaded_params = params_dict.keys() - loaded_params
428 - if unloaded_params:
429 - logger.warning(
430 - "Some weights are not initialized from checkpoints: %s",
431 - unloaded_params)
427 +
428 return loaded_params
vllm/model_executor/models/gemma2.py
-5
@@ -358,11 +358,6 @@ class Gemma2Model(nn.Module):
358 weight_loader(param, loaded_weight)
359 loaded_params.add(name)
360
361 - unloaded_params = params_dict.keys() - loaded_params
362 - if unloaded_params:
363 - logger.warning(
364 - "Some weights are not initialized from checkpoints: %s",
365 - unloaded_params)
361 return loaded_params
362
363
vllm/model_executor/models/gemma3.py
-5
@@ -452,11 +452,6 @@ class Gemma3Model(nn.Module):
452 weight_loader(param, loaded_weight)
453 loaded_params.add(name)
454
455 - unloaded_params = params_dict.keys() - loaded_params
456 - if unloaded_params:
457 - logger.warning(
458 - "Some weights are not initialized from checkpoints: %s",
459 - unloaded_params)
455 return loaded_params
456
457