{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# ScrubData \u2014 QLoRA fine-tune (Colab Pro+)\n", "Runtime \u2192 A100 GPU + High-RAM. Add HF_TOKEN in Colab Secrets (key icon). Then Run all." ] }, { "cell_type": "code", "metadata": {}, "source": [ "!pip install -q unsloth" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [ "import os\n", "from google.colab import userdata\n", "os.environ[\"HF_TOKEN\"] = userdata.get(\"HF_TOKEN\")\n", "from huggingface_hub import hf_hub_download\n", "hf_hub_download(\"ricalanis/scrubdata-sft\", \"train_qlora.py\", repo_type=\"dataset\", local_dir=\".\")" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [ "!python train_qlora.py --data-repo ricalanis/scrubdata-sft --out-repo ricalanis/scrubdata-qwen3-4b --epochs 2" ], "outputs": [], "execution_count": null } ], "metadata": { "accelerator": "GPU", "colab": { "provenance": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "nbformat": 4, "nbformat_minor": 0 }