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.

CLI: --parallel help describes the shared KV cache (#14340)

Daniel Han42932414044c
diff --git a/unsloth_cli/commands/studio.py b/unsloth_cli/commands/studio.py
index 9c694deb7f9..cf1a51e4c2e 100644
--- a/unsloth_cli/commands/studio.py
+++ b/unsloth_cli/commands/studio.py
@@ -2585,9 +2585,11 @@ def run(
rich_help_panel = _RUN_PANEL_SERVER,
help = (
"llama-server parallel decode slots. N requests share one "
- "loaded model; each slot gets ctx/N KV cache. Default "
- f"{_PARALLEL_DEFAULT_RUN} (pre-PR hardcoded value). The Unsloth "
- "run settings (Parallel Slots) can override it per load."
+ "loaded model and one KV cache of the full context "
+ "(--kv-unified), so a single request can use all of it. "
+ "llama.cpp builds without --kv-unified fall back to one slot. "
+ "The Unsloth run settings (Parallel Slots) can override it per "
+ "load."
),
),
cloudflare: Optional[bool] = typer.Option(
diff --git a/unsloth_cli/tests/test_studio_run_parallel_flag.py b/unsloth_cli/tests/test_studio_run_parallel_flag.py
index f7fdb06bd4a..784ba247d86 100644
--- a/unsloth_cli/tests/test_studio_run_parallel_flag.py
+++ b/unsloth_cli/tests/test_studio_run_parallel_flag.py
@@ -108,6 +108,18 @@ def test_parallel_range_guards_are_set():
assert getattr(opt, "max", None) == 64, "max must be 64 (KV split sanity cap)"
+def test_parallel_help_describes_the_shared_kv_cache():
+ """Multi-slot launches add --kv-unified; builds lacking it run one slot (load_model), never ctx/N."""
+ studio_mod = _load_run_command()
+ import inspect
+
+ sig = inspect.signature(studio_mod.run)
+ help_text = " ".join(sig.parameters["parallel"].default.help.split())
+ assert "--kv-unified" in help_text
+ assert "ctx/N" not in help_text
+ assert "fall back to one slot" in help_text
+
+
def test_typer_parallel_aliases_are_subset_of_backend_denylist():
"""Backend must deny every --parallel alias, or /load can smuggle it in via llama_extra_args."""
studio_mod = _load_run_command()