{ "cells": [ { "cell_type": "markdown", "id": "6b87de59", "metadata": {}, "source": [ "To run this, press \"*Runtime*\" and press \"*Run all*\" on a **free** Tesla T4 Google Colab instance!\n", "
\n", "\n", "To install Unsloth on your local device, follow [our guide](https://unsloth.ai/docs/get-started/install). This notebook is licensed [AGPL-3.0](https://github.com/unslothai/unsloth/blob/main/studio/LICENSE.AGPL-3.0).\n", "\n", "Run **Unsloth Studio** — a local AI chat & fine-tuning UI — directly in Google Colab." ] }, { "cell_type": "markdown", "id": "848d8e09", "metadata": {}, "source": [ "### News\n", "\n", "Train MoEs - DeepSeek, GLM, Qwen and gpt-oss 12x faster with 35% less VRAM. [Blog](https://unsloth.ai/docs/new/faster-moe)\n", "\n", "You can now train embedding models 1.8-3.3x faster with 20% less VRAM. [Blog](https://unsloth.ai/docs/new/embedding-finetuning)\n", "\n", "Ultra Long-Context Reinforcement Learning is here with 7x more context windows! [Blog](https://unsloth.ai/docs/new/grpo-long-context)\n", "\n", "3x faster LLM training with 30% less VRAM and 500K context. [3x faster](https://unsloth.ai/docs/new/3x-faster-training-packing) • [500K Context](https://unsloth.ai/docs/new/500k-context-length-fine-tuning)\n", "\n", "New in Reinforcement Learning: [FP8 RL](https://unsloth.ai/docs/new/fp8-reinforcement-learning) • [Vision RL](https://unsloth.ai/docs/new/vision-reinforcement-learning-vlm-rl) • [Standby](https://unsloth.ai/docs/basics/memory-efficient-rl) • [gpt-oss RL](https://unsloth.ai/docs/new/gpt-oss-reinforcement-learning)\n", "\n", "Visit our docs for all our [model uploads](https://unsloth.ai/docs/get-started/unsloth-model-catalog) and [notebooks](https://unsloth.ai/docs/get-started/unsloth-notebooks)." ] }, { "cell_type": "markdown", "id": "92d28e3c", "metadata": {}, "source": [ "### ⚠️ GPU Check - Run This First!" ] }, { "cell_type": "code", "execution_count": null, "id": "447c1156", "metadata": {}, "outputs": [], "source": [ "import torch\n", "\n", "print(\"🔍 Checking for GPU...\")\n", "if not torch.cuda.is_available():\n", " print(\"❌ ERROR: No GPU detected!\")\n", " print(\"\\n📋 To enable GPU:\")\n", " print(\" 1. Go to: Runtime → Change runtime type\")\n", " print(\" 2. Select: Hardware accelerator → GPU (T4 is free)\")\n", " print(\" 3. Click: Save\")\n", " print(\" 4. Restart and re-run all cells\")\n", " raise RuntimeError(\"⛔ GPU required for Unsloth Studio\")\n", "else:\n", " gpu_name = torch.cuda.get_device_name(0)\n", " print(f\"✅ GPU detected: {gpu_name}\")\n", " print(\" Ready to proceed!\")" ] }, { "cell_type": "markdown", "id": "27da2957", "metadata": {}, "source": [ "### Setup: Clone repo and run setup" ] }, { "cell_type": "code", "execution_count": null, "id": "27e68f91", "metadata": {}, "outputs": [], "source": [ "!git clone --depth 1 --branch main https://github.com/unslothai/unsloth.git\n", "%cd /content/unsloth\n", "\n", "# Run setup script\n", "!chmod +x studio/setup.sh\n", "!./studio/setup.sh" ] }, { "cell_type": "markdown", "id": "3e1771a9", "metadata": {}, "source": [ "### Start Unsloth Studio" ] }, { "cell_type": "code", "execution_count": null, "id": "277e431e", "metadata": {}, "outputs": [], "source": [ "import sys\n", "sys.path.insert(0, '/content/unsloth/studio/backend')\n", "\n", "from colab import start\n", "start()" ] }, { "cell_type": "markdown", "id": "f2b0c6a1", "metadata": {}, "source": [ "And we're done! If you have any questions on Unsloth, we have a [Discord](https://discord.gg/unsloth) channel! If you find any bugs or want to keep updated with the latest LLM stuff, or need help, join projects etc, feel free to join our Discord!\n", "\n", "Some other resources:\n", "1. Looking to use Unsloth locally? Read our [Installation Guide](https://unsloth.ai/docs/get-started/install) for details on installing Unsloth on Windows, Docker, AMD, Intel GPUs.\n", "2. Learn how to do Reinforcement Learning with our [RL Guide and notebooks](https://unsloth.ai/docs/get-started/reinforcement-learning-rl-guide).\n", "3. Read our guides and notebooks for [Text-to-speech (TTS)](https://unsloth.ai/docs/basics/text-to-speech-tts-fine-tuning) and [vision](https://unsloth.ai/docs/basics/vision-fine-tuning) model support.\n", "4. Explore our [LLM Tutorials Directory](https://unsloth.ai/docs/models/tutorials-how-to-fine-tune-and-run-llms) to find dedicated guides for each model.\n", "5. Need help with Inference? Read our [Inference & Deployment page](https://unsloth.ai/docs/basics/inference-and-deployment) for details on using vLLM, llama.cpp, Ollama etc.\n", "\n", "" ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 5 }