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: read checked-in sources as UTF-8 in three new test files (#14414)
Daniel Hanb26ee31ddb17
diff --git a/studio/backend/tests/test_diffusion_vae_oom.py b/studio/backend/tests/test_diffusion_vae_oom.pyindex 78adf8e9fc7..476563fd140 100644--- a/studio/backend/tests/test_diffusion_vae_oom.py+++ b/studio/backend/tests/test_diffusion_vae_oom.py@@ -1723,7 +1723,7 @@ def test_every_decode_rewrap_site_restores_the_oom_scope():for f in root.glob("*.py"):if f.name in skip:continue- tree = ast.parse(f.read_text())+ tree = ast.parse(f.read_text(encoding = "utf-8"))for node in tree.body:if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):funcs[(f.name, node.name)] = nodediff --git a/tests/test_grouped_gemm_mixed_tma_device.py b/tests/test_grouped_gemm_mixed_tma_device.pyindex eaf9770b621..ab6a7a7262f 100644--- a/tests/test_grouped_gemm_mixed_tma_device.py+++ b/tests/test_grouped_gemm_mixed_tma_device.py@@ -215,7 +215,7 @@ def test_device_properties_are_read_per_card(monkeypatch):import astfrom dataclasses import dataclass- source = (GG_DIR / "kernels" / "tuning.py").read_text()+ source = (GG_DIR / "kernels" / "tuning.py").read_text(encoding = "utf-8")wanted = {"DeviceProperties", "_DEVICE_PROPERTIES", "get_device_properties"}nodes = [node@@ -259,7 +259,7 @@ def test_autotune_cache_reads_the_per_card_tuners_config():# The selected config lives on the per-card copy on multi-GPU hosts; reading the shared kernel misses it.import ast- tree = ast.parse((GG_DIR.parent / "autotune_cache.py").read_text())+ tree = ast.parse((GG_DIR.parent / "autotune_cache.py").read_text(encoding = "utf-8"))reads = [n for n in ast.walk(tree) if isinstance(n, ast.Attribute) and n.attr == "best_config"]assert reads and all(isinstance(n.value, ast.Call) and getattr(n.value.func, "id", None) == "_autotuner_for"@@ -271,7 +271,7 @@ def test_benchmark_postprocesses_the_per_card_tuner():# postprocess_autotune_results reads .cache; on several GPUs only the per-card copy has it.import ast- tree = ast.parse((GG_DIR.parent / "benchmark" / "utils.py").read_text())+ tree = ast.parse((GG_DIR.parent / "benchmark" / "utils.py").read_text(encoding = "utf-8"))fn = next(n for n in tree.body if isinstance(n, ast.FunctionDef) and n.name == "get_autotuner")kernels = [ndiff --git a/tests/test_legacy_block_compile_install.py b/tests/test_legacy_block_compile_install.pyindex d9c812ac168..4bee932bf26 100644--- a/tests/test_legacy_block_compile_install.py+++ b/tests/test_legacy_block_compile_install.py@@ -12,7 +12,7 @@ _LLAMA = pathlib.Path(__file__).resolve().parents[1] / "unsloth" / "models" / "ldef test_patch_peft_model_installs_block_compile():- tree = ast.parse(_LLAMA.read_text())+ tree = ast.parse(_LLAMA.read_text(encoding = "utf-8"))cls = next(n for n in tree.body if isinstance(n, ast.ClassDef) and n.name == "FastLlamaModel")fn = next(n for n in cls.body if isinstance(n, ast.FunctionDef) and n.name == "patch_peft_model"