Skip to content

Add Google Colab usage instructions to README #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,25 @@ You will instantiate a UI that will let you upload your images, caption them, tr
![image](assets/lora_ease_ui.png)


### Google Colab

If you are not using `FLUX.1-dev`, you can skip the `!huggingface-cli login` step.
Otherwise, make sure to set your Hugging Face Access Token first:

```bash
!huggingface-cli login
```

Next, run the following commands in your Colab notebook:

```bash
!git clone https://github.com/ostris/ai-toolkit.git
%cd ai-toolkit
!git submodule update --init --recursive
!pip3 install -r requirements.txt
!python flux_train_ui.py
```

## Training in RunPod
Example RunPod template: **runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04**
> You need a minimum of 24GB VRAM, pick a GPU by your preference.
Expand Down