[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2ef4039911
commit
b715eaad6d
1 changed files with 0 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue