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.

Remove unnecessary if statement for token check

Leo Borcherding057f3b96286f
diff --git a/Unsloth_Studio_Colab.ipynb b/Unsloth_Studio_Colab.ipynb
index bedaea85c01..19e72c20d7c 100644
--- a/Unsloth_Studio_Colab.ipynb
+++ b/Unsloth_Studio_Colab.ipynb
@@ -3,49 +3,45 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "27e68f91",
+ "id": "f04a9b46",
"metadata": {},
"outputs": [],
"source": [
"# ===========================================\n",
- "# Setup: Clone repo and run setup\n",
+ "# GitHub Authentication (Private Repo)\n",
"# ===========================================\n",
- "\n",
- "# Clone repository with GitHub token\n",
+ "from getpass import getpass\n",
"import os\n",
- "github_token = os.environ.get('GITHUB_TOKEN', '')\n",
- "if github_token:\n",
- " !git clone -b feature/colab-notebook https://{github_token}@github.com/unslothai/new-ui-prototype.git\n",
- "else:\n",
- " !git clone -b feature/colab-notebook https://github.com/unslothai/new-ui-prototype.git\n",
- "%cd /content/new-ui-prototype\n",
"\n",
- "# Run setup script\n",
- "!chmod +x setup.sh\n",
- "!./setup.sh"
+ "print(\"🔐 GitHub Token Required\")\n",
+ "print(\"Get token: https://github.com/settings/tokens\")\n",
+ "print(\"Scope needed: 'repo'\")\n",
+ "print(\"-\" * 50)\n",
+ "\n",
+ "github_token = getpass(\"Enter GitHub Token: \")\n",
+ "os.environ['GITHUB_TOKEN'] = github_token\n",
+ "print(\"✅ Token stored\")"
]
},
{
"cell_type": "code",
"execution_count": null,
- "id": "26b0e164",
+ "id": "27e68f91",
"metadata": {},
"outputs": [],
"source": [
"# ===========================================\n",
- "# GitHub Authentication (Private Repo)\n",
+ "# Setup: Clone repo and run setup\n",
"# ===========================================\n",
- "from getpass import getpass\n",
- "import os\n",
"\n",
- "print(\"🔐 GitHub Token Required\")\n",
- "print(\"Get token: https://github.com/settings/tokens\")\n",
- "print(\"Scope needed: 'repo'\")\n",
- "print(\"-\" * 50)\n",
+ "import os\n",
+ "github_token = os.environ['GITHUB_TOKEN']\n",
+ "!git clone -b feature/colab-notebook https://{github_token}@github.com/unslothai/new-ui-prototype.git\n",
+ "%cd /content/new-ui-prototype\n",
"\n",
- "github_token = getpass(\"Enter GitHub Token: \")\n",
- "os.environ['GITHUB_TOKEN'] = github_token\n",
- "print(\"✅ Token stored\")"
+ "# Run setup script\n",
+ "!chmod +x setup.sh\n",
+ "!./setup.sh"
]
},
{