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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Tests: fix three checks that fail for reasons other than a regression (#13265)
Daniel Hanf0db334022b9
diff --git a/.github/scripts/compare_installer_evidence.py b/.github/scripts/compare_installer_evidence.pyindex d7265259501..6a018c5ec82 100644--- a/.github/scripts/compare_installer_evidence.py+++ b/.github/scripts/compare_installer_evidence.py@@ -217,6 +217,12 @@ _SPINNER_FRAMES = frozenset("-\\|/")# ends on still compares, as does any line with other text on it._PARTIAL_PROGRESS_FRAME = re.compile(r"[█▒]*▒[█▒]*\s+(?:<percent>|<size> / <size>)")+# The full bar itself can also be drawn twice when winget's last redraw lands after the 100% frame:+# a run of the same uv download left it once on one side and twice in a row on the other. Only a full+# bar that repeats the line kept right before it is dropped, so a download that never finishes, or a+# second download (its own "Downloading" line sits between the bars), still compares.+_FULL_PROGRESS_FRAME = re.compile(r"█+\s+(?:<percent>|<size> / <size>)")+def normalise_transcript(text: str) -> list[str]:lines = []@@ -226,6 +232,7 @@ def normalise_transcript(text: str) -> list[str]:not line.strip()or line.strip() in _SPINNER_FRAMESor _PARTIAL_PROGRESS_FRAME.fullmatch(line.strip())+ or (lines and line == lines[-1] and _FULL_PROGRESS_FRAME.fullmatch(line.strip()))):continue# Runner-injected noise, and ONLY what the runner injects. These carry the workflow's owndiff --git a/studio/backend/tests/test_studio_api.py b/studio/backend/tests/test_studio_api.pyindex c707bd9166d..0972bcfca6e 100644--- a/studio/backend/tests/test_studio_api.py+++ b/studio/backend/tests/test_studio_api.py@@ -130,11 +130,14 @@ def _stream_http(def test_help_output():"""``unsloth studio run --help`` should show all documented options."""+ # Rich lays the help out at 80 columns when stdout is not a terminal and cuts the+ # "--max-seq-length, --context-length" cell to "--max-seq-lengt…".result = subprocess.run(["unsloth", "studio", "run", "--help"],capture_output = True,text = True,timeout = 15,+ env = {**os.environ, "COLUMNS": "200"},)out = result.stdoutassert result.returncode == 0, f"--help exited with {result.returncode}"diff --git a/tests/python/test_installer_differential_comparer.py b/tests/python/test_installer_differential_comparer.pyindex bd3664d1a5f..07ee4b85d4c 100644--- a/tests/python/test_installer_differential_comparer.py+++ b/tests/python/test_installer_differential_comparer.py@@ -236,6 +236,26 @@ def test_winget_partial_progress_frames_do_not_fail(tmp_path: Path) -> None:assert result.returncode == 0, f"partial progress frames failed the lane: {result.stdout}"+def test_a_repeated_full_bar_does_not_fail(tmp_path: Path) -> None:+ """winget can redraw the finished bar once more; a second copy right after the first is noise."""+ full = " ██████████████████████████████ 17.2 MB / 17.2 MB"+ lines = BASELINE.split("\n")+ base = _write(tmp_path / "base", transcript = "\n".join(lines[:1] + [full, full] + lines[1:]))+ head = _write(tmp_path / "head", transcript = "\n".join(lines[:1] + [full] + lines[1:]))+ result = _run(base, head)+ assert result.returncode == 0, f"a repeated full bar failed the lane: {result.stdout}"+++def test_a_second_download_still_compares(tmp_path: Path) -> None:+ """Two downloads leave two full bars with a "Downloading" line between them; losing one is reported."""+ full = " ██████████████████████████████ 17.2 MB / 17.2 MB"+ lines = BASELINE.split("\n")+ twice = [full, "Downloading https://example.invalid/uv.zip", full]+ base = _write(tmp_path / "base", transcript = "\n".join(lines[:1] + twice + lines[1:]))+ head = _write(tmp_path / "head", transcript = "\n".join(lines[:1] + twice[:2] + lines[1:]))+ assert _run(base, head).returncode == 2++def test_a_download_that_never_finishes_still_compares(tmp_path: Path) -> None:"""The full bar a finished download ends on is kept, so losing it is reported."""lines = BASELINE.split("\n")diff --git a/tests/utils/test_varlen_int32_overflow_guard.py b/tests/utils/test_varlen_int32_overflow_guard.pyindex 57c362c9bbb..26c0e287a8d 100644--- a/tests/utils/test_varlen_int32_overflow_guard.py+++ b/tests/utils/test_varlen_int32_overflow_guard.py@@ -205,7 +205,9 @@ def test_padded_tail_segment_counts_toward_the_bound(monkeypatch, backend):q = torch.zeros((1, 16, total, 128), requires_grad = True)config = ad.AttentionConfig(backend = backend, n_kv_heads = 16, n_groups = 1)ad.run_attention(config = config, context = context, Q = q, K = q, V = q)- assert taken == [ad.SDPA]+ # SDPA attends packed rows one segment length at a time (#12740): the 8127 one-token+ # documents and the padded tail are two calls, and neither may reach the varlen kernel.+ assert taken and set(taken) == {ad.SDPA}@pytest.mark.parametrize("backend", [ad.XFORMERS, ad.FLASH_VARLEN])