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
Studio: assert the write ordering, not what the write resolves to (#10289)
Daniel Han1e8eda349984
diff --git a/tests/studio/test_model_picker_contracts.py b/tests/studio/test_model_picker_contracts.pyindex d56c8d26104..926848d02ba 100644--- a/tests/studio/test_model_picker_contracts.py+++ b/tests/studio/test_model_picker_contracts.py@@ -2781,7 +2781,11 @@ def test_override_writes_are_ordered_per_model():requests with no sequencing, so the older response could commit last and resurrectthe entry the newer one meant to replace."""src = " ".join(_read("features/model-picker/api/model-overrides.ts").split())- assert "const writesByKey = new Map<string, Promise<void>>();" in src+ # One in-flight promise per key is the ordering; what it resolves to is not,+ # so pinning the old `void` failed #10160, which reordered nothing.+ assert (+ "const writesByKey = new Map<string, Promise<" in src+ ), "writes are no longer serialised through one in-flight promise per model"# Keyed by the same override key the server stores under.assert ("const key = modelOverrideKey( normalizeModelIdentity(modelId), normalizeGgufVariantIdentity(ggufVariant), );"@@ -2789,6 +2793,8 @@ def test_override_writes_are_ordered_per_model():)# Chained on the settled tail, so one failed write cannot cancel the next.assert "previous .catch(() => {}) .then(() => sendModelOverride(" in src+ # The tail is stored, or every writer chains on the same empty slot.+ assert "writesByKey.set(key, write);" in src# Only the last writer clears the slot, or a queue still building loses order.assert "if (writesByKey.get(key) === write) { writesByKey.delete(key); }" in src