From ff8a5b9a69af83ba4991614883d2799d18789138 Mon Sep 17 00:00:00 2001 From: Sourab Mangrulkar <13534540+pacman100@users.noreply.github.com> Date: Tue, 24 Jan 2023 21:19:47 +0530 Subject: [PATCH] colab notebook example for lora peft application --- examples/lora_dreambooth/colab_notebook.ipynb | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 examples/lora_dreambooth/colab_notebook.ipynb diff --git a/examples/lora_dreambooth/colab_notebook.ipynb b/examples/lora_dreambooth/colab_notebook.ipynb new file mode 100644 index 0000000..91ac558 --- /dev/null +++ b/examples/lora_dreambooth/colab_notebook.ipynb @@ -0,0 +1,54 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "kdOhtpergLCQ" + }, + "outputs": [], + "source": [ + "!git clone https://huggingface.co/spaces/smangrul/peft-lora-sd-dreambooth" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "_LuGk9mihPx7" + }, + "outputs": [], + "source": [ + "%cd \"peft-lora-sd-dreambooth\"\n", + "!pip install -r requirements.txt" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "BYKO8e5ElJOX" + }, + "outputs": [], + "source": [ + "!python colab.py" + ] + } + ], + "metadata": { + "accelerator": "GPU", + "colab": { + "provenance": [] + }, + "gpuClass": "premium", + "kernelspec": { + "display_name": "Python 3", + "name": "python3" + }, + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +}