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: bump the tensor-abort mtime by 1ms so the case runs on Windows (#7556)
Daniel Han8746b13e76b8
diff --git a/studio/backend/tests/test_tp_vision_regression.py b/studio/backend/tests/test_tp_vision_regression.pyindex 1781bd70aea..239da44ed18 100644--- a/studio/backend/tests/test_tp_vision_regression.py+++ b/studio/backend/tests/test_tp_vision_regression.py@@ -24,6 +24,8 @@ import textwrapimport types as _typesfrom pathlib import Path+import pytest+_BACKEND_DIR = str(Path(__file__).resolve().parent.parent)if _BACKEND_DIR not in sys.path:sys.path.insert(0, _BACKEND_DIR)@@ -327,14 +329,18 @@ def test_tensor_abort_cache_invalidated_on_binary_mtime_change(tmp_path):), "a binary swapped in place (new mtime) must be re-probed"# A same-second replacement (sub-second mtime bump) must also re-probe:# second-resolution mtime would inherit the stale abort (reviewer.py P2).+ # Bump by 1ms, not 1ns: NTFS stores mtime as 100ns FILETIME ticks, so a 1ns+ # bump rounds away on Windows and the key never changes.sec_ns = (binp.stat().st_mtime_ns // 1_000_000_000) * 1_000_000_000os.utime(p, ns = (sec_ns, sec_ns))LlamaCppBackend._record_tensor_split_abort(p, "m")binp.write_text("v2")- os.utime(p, ns = (sec_ns, sec_ns + 1))+ os.utime(p, ns = (sec_ns, sec_ns + 1_000_000))+ if binp.stat().st_mtime_ns == sec_ns:+ pytest.skip("filesystem cannot record a sub-second mtime change")assert (LlamaCppBackend._tensor_split_aborts(p, "m") is False- ), "a same-second in-place swap (ns mtime bump) must be re-probed"+ ), "a same-second in-place swap (sub-second mtime bump) must be re-probed"finally:for key in list(LlamaCppBackend._tensor_split_abort_keys):if key and key[0] == p: