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
Update __init__.py
Daniel Hana919f176484c
diff --git a/unsloth/__init__.py b/unsloth/__init__.pyindex 109e1c6d2fd..23f54d213ef 100644--- a/unsloth/__init__.py+++ b/unsloth/__init__.py@@ -53,6 +53,13 @@ pass# Reduce VRAM usage by reducing fragmentationos.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"+# Hugging Face Hub faster downloads (only enable during Colab and Kaggle sessions)+keynames = "\n" + "\n".join(os.environ.keys())+if "\nCOLAB_" in keynames or "\nKAGGLE_" in keynames:+ os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"+ print("Hello")+pass+try:import torchexcept ModuleNotFoundError:@@ -64,12 +71,6 @@ except Exception as exception:raise exceptionpass-# Hugging Face Hub faster downloads (only enable during Colab and Kaggle sessions)-keynames = "\n" + "\n".join(os.environ.keys())-if "\nCOLAB_" in keynames or "\nKAGGLE_" in keynames:- os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"-pass-# We support Pytorch 2# Fixes https://github.com/unslothai/unsloth/issues/38torch_version = torch.__version__.split(".")