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 Han6c0b8a57e473
diff --git a/unsloth/__init__.py b/unsloth/__init__.py
index 5daddbfbc1c..713453cc0e2 100644
--- a/unsloth/__init__.py
+++ b/unsloth/__init__.py
@@ -61,6 +61,15 @@ if "HF_HUB_ENABLE_HF_TRANSFER" not in os.environ:
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
pass
+# XET is slower in Colab - investigate why
+keynames = "\n" + "\n".join(os.environ.keys())
+if "HF_XET_HIGH_PERFORMANCE" not in os.environ:
+ os.environ["HF_XET_HIGH_PERFORMANCE"] = "1"
+pass
+if "\nCOLAB_" in keynames:
+ os.environ["HF_XET_CHUNK_CACHE_SIZE_BYTES"] = "0"
+pass
+
# Log Unsloth is being used
os.environ["UNSLOTH_IS_PRESENT"] = "1"