[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-06-21 13:22:55 +00:00
commit b715eaad6d

View file

@ -3281,8 +3281,6 @@ def is_moe_model(model) -> bool:
return num_experts is not None and num_experts > 0
def is_gemma4_shared_kv_model(model) -> bool:
"""
Detect Gemma 4 E-series models (E2B / E4B) that share KV across layers.
@ -3307,8 +3305,6 @@ def is_gemma4_shared_kv_model(model) -> bool:
return (_config_get(text_config, "num_kv_shared_layers", 0) or 0) > 0
def _resolve_moe_parameter_name(model, default_name: str, alternate_name: str) -> str:
"""
Resolve the actual parameter path for MoE expert weights.