Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Re-run the kwarg-spacing formatter on three files that landed unformatted (#11207)

Daniel Han32cca45d8246
diff --git a/studio/backend/tests/test_kv_cache_estimate_attention_plan.py b/studio/backend/tests/test_kv_cache_estimate_attention_plan.py
index e1a91d7e250..e7c97c5a0cb 100644
--- a/studio/backend/tests/test_kv_cache_estimate_attention_plan.py
+++ b/studio/backend/tests/test_kv_cache_estimate_attention_plan.py
@@ -198,7 +198,6 @@ class TestTheOtherTwoLayoutKnobs:
class TestTheContract:
def test_the_new_parameters_are_all_optional(self):
import inspect
-
signature = inspect.signature(models_routes.get_kv_cache_estimate)
for name in ("flash_attn", "kv_unified", "swa_full", "no_mmproj_offload"):
assert name in signature.parameters, f"{name} is not on the route"
diff --git a/tests/studio/install/test_install_node_prebuilt_logic.py b/tests/studio/install/test_install_node_prebuilt_logic.py
index 3f278aee2c3..9562355dab6 100644
--- a/tests/studio/install/test_install_node_prebuilt_logic.py
+++ b/tests/studio/install/test_install_node_prebuilt_logic.py
@@ -928,6 +928,8 @@ def test_a_denial_without_a_filename_still_exits_denied(capsys, tmp_path):
)
# Nothing to classify, so the caller keeps its default and is told no lie.
assert M.DENIED_SCOPE_MARKER not in "".join(capsys.readouterr())
+
+
# The recorded runtime check: the 110 MB interpreter start it saves per run.
def _real_node_tree(root: Path, host) -> None:
"""The two files existing_install_matches spawns, as real bytes on disk.
diff --git a/unsloth/models/sentence_transformer.py b/unsloth/models/sentence_transformer.py
index 884bab4c903..a4841aac5be 100644
--- a/unsloth/models/sentence_transformer.py
+++ b/unsloth/models/sentence_transformer.py
@@ -1846,6 +1846,7 @@ class FastSentenceTransformer(FastModel):
# unsloth.save closes an import cycle, which is why the two shims above are
# deferred too. See tests/test_cold_import_order.py.
from ..save import _is_adapter_save_method
+
if _is_adapter_save_method(save_method):
# Refused because nothing here writes base weights: self.save_pretrained writes the
# sentence-transformers scaffolding and, for a PEFT auto_model, an adapter, and the