From b715eaad6de326ac15ca730477abfa2deececc51 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 13:22:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth/models/_utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 5595766360..8978e3be34 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -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.