unsloth/Unsloth_Studio_Colab.ipynb
Leo Borcherding bebb45d847 fix: Clean up notebook to just 2 cells
Remove all the overcomplicated markdown and extra cells.
Now it's exactly like the POC: setup and start only.
2026-02-17 05:03:59 -06:00

62 lines
1.7 KiB
Text

{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "27e68f91",
"metadata": {},
"outputs": [],
"source": [
"# ===========================================\n",
"# Setup: Clone repo and build frontend\n",
"# ===========================================\n",
"\n",
"# Clone repository\n",
"!git clone https://github.com/unslothai/new-ui-prototype.git\n",
"%cd /content/new-ui-prototype\n",
"\n",
"# Install Node.js 20.x\n",
"!curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - > /dev/null 2>&1\n",
"!sudo apt-get install -y nodejs > /dev/null 2>&1\n",
"print(\"✅ Node.js installed\")\n",
"\n",
"# Build frontend\n",
"%cd studio/frontend\n",
"!npm install --silent\n",
"!npm run build\n",
"print(\"✅ Frontend built\")\n",
"\n",
"# Install Python dependencies\n",
"%cd /content/new-ui-prototype\n",
"!pip install -q unsloth\n",
"!pip install -q -r studio/backend/requirements.txt\n",
"!pip install -q huggingface_hub datasets python-jose[cryptography] passlib[bcrypt] python-multipart matplotlib pandas ujson\n",
"print(\"✅ Python dependencies installed\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "277e431e",
"metadata": {},
"outputs": [],
"source": [
"# ===========================================\n",
"# Start Unsloth Studio\n",
"# ===========================================\n",
"import sys\n",
"sys.path.insert(0, '/content/new-ui-prototype/studio/backend')\n",
"\n",
"from colab import start\n",
"start()"
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 5
}