{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "introduction" }, "source": [ "# ORA Fine-tuning on Google Colab\n", "This notebook allows you to fine-tune the ORA model using Unsloth and QLoRA for high-performance training on NVIDIA GPUs.\n", "\n", "## Setup\n", "1. Go to **Runtime** > **Change runtime type** and ensure **GPU** (T4 or A100) is selected.\n", "2. Run the following cells to install dependencies and load your curated data." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "install-deps" }, "outputs": [], "source": [ "!pip install unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git\n", "!pip install --no-deps \"xformers<0.0.29\" \"trl<0.9.0\" peft accelerate bitsandbytes" ] }, { "cell_type": "markdown", "metadata": { "id": "upload-data" }, "source": [ "## Upload Data\n", "Upload the `ora_colab_training.zip` file generated by `scripts/prepare_colab.py`." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "unzip-data" }, "outputs": [], "source": [ "!unzip ora_colab_training.zip" ] }, { "cell_type": "markdown", "metadata": { "id": "training" }, "source": [ "## Start Training\n", "Run the training script." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "run-training" }, "outputs": [], "source": [ "!python scripts/train_ora.py" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" } }, "nbformat": 4, "nbformat_minor": 4 }