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.

Unbreak main: three files drifted out of the formatter, and one reads a file with the platform encoding (#10913)

Daniel Han85d0255ed6bd
diff --git a/tests/version_compat/test_bitsandbytes_pinned_symbols.py b/tests/version_compat/test_bitsandbytes_pinned_symbols.py
index f6a225b89ed..51d9edadecb 100644
--- a/tests/version_compat/test_bitsandbytes_pinned_symbols.py
+++ b/tests/version_compat/test_bitsandbytes_pinned_symbols.py
@@ -287,7 +287,7 @@ def test_bnb_optimizer2state_options_are_not_passed_positionally(tag: str):
removed = [n for n in ("percentile_clipping", "block_wise") if n not in signature]
caller = (
Path(__file__).resolve().parents[2] / "unsloth" / "optimizers" / "q_galore_adamw.py"
- ).read_text()
+ ).read_text(encoding = "utf-8")
call = _super_init_call(caller, "QGaLoreAdamW8bit")
assert call is not None, "could not find QGaLoreAdamW8bit's super().__init__ call"