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.

Update __init__.py

Daniel Han9611ee433ebe
diff --git a/unsloth/__init__.py b/unsloth/__init__.py
index 10bcd250881..afd255dc354 100644
--- a/unsloth/__init__.py
+++ b/unsloth/__init__.py
@@ -106,12 +106,12 @@ try:
text = f.read()
# See https://github.com/facebookresearch/xformers/issues/1176#issuecomment-2545829591
if "num_splits_key=-1," in text:
- print("Unsloth: Patching Xformers to fix some performance issues.")
text = text.replace("num_splits_key=-1,", "num_splits_key=None,")
+ f.seek(0)
+ f.write(text)
+ f.truncate()
+ print("Unsloth: Patching Xformers to fix some performance issues.")
pass
- f.seek(0)
- f.write(text)
- f.truncate()
pass
pass
pass