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 tests: pin the card name in the learned-peaks store fixture (#14804)
Daniel Han93a57f1b8ed6
diff --git a/studio/backend/tests/test_diffusion_learned_peaks.py b/studio/backend/tests/test_diffusion_learned_peaks.pyindex bb7146ad825..6abfb154ea1 100644--- a/studio/backend/tests/test_diffusion_learned_peaks.py+++ b/studio/backend/tests/test_diffusion_learned_peaks.py@@ -59,6 +59,9 @@ def store(tmp_path, monkeypatch):monkeypatch.setattr(mp, "current_device_name", lambda: "NVIDIA L4", raising = False) # the planner's card+ # Video keys read the card per device; without this a host with a real GPU records under None (stubbed torch)+ # and reads under its own card name.+ monkeypatch.setattr(mp, "device_name", lambda dev: "NVIDIA L4")return path@@ -248,6 +251,9 @@ def test_video_request_peaks_persist_across_processes(store, monkeypatch):assert vsr.record_request_peak(types.SimpleNamespace(transformer = module)) == 3000monkeypatch.undo()monkeypatch.setenv(mp.LEARNED_PEAKS_FILE_ENV, str(store))+ monkeypatch.setattr(+ mp, "device_name", lambda dev: "NVIDIA L4"+ ) # undo() dropped the fixture's cardmonkeypatch.setattr(vsr, "_PEAKS", {}) # a new processmp._cache.update(path = None, mtime = None, data = None)assert vsr.measured_extra_mib(key, work) == 3000