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.

Compare the drafter path with forward slashes on Windows too (#8056)

Daniel Hand4f75e93f978
diff --git a/studio/backend/tests/test_mtp_drafter_companion.py b/studio/backend/tests/test_mtp_drafter_companion.py
index 69338fe066a..b066f945698 100644
--- a/studio/backend/tests/test_mtp_drafter_companion.py
+++ b/studio/backend/tests/test_mtp_drafter_companion.py
@@ -1421,8 +1421,13 @@ def test_cached_dspark_lookup_prefers_q8_and_excludes_dflash(tmp_path, monkeypat
)
backend = llama_cpp_module.LlamaCppBackend.__new__(llama_cpp_module.LlamaCppBackend)
- assert backend._cached_repo_dspark_drafter("some/repo").endswith(
- "dspark/dspark-model-Q8_0.gguf"
+ # `as_posix()`, because the lookup returns an OS-native path: on Windows it
+ # comes back with backslashes and the literal below never matched, so this
+ # was the one red in an otherwise green cross-platform run.
+ assert (
+ Path(backend._cached_repo_dspark_drafter("some/repo"))
+ .as_posix()
+ .endswith("dspark/dspark-model-Q8_0.gguf")
)