GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hexvalid/ai-toolkit-hex: The ultimate training toolkit for finetuning diffusion models

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,058 Commits
1,058 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
assets
assets
 
 
config/examples
config/examples
 
 
docker
docker
 
 
extensions/example
extensions/example
 
 
extensions_built_in
extensions_built_in
 
 
jobs
jobs
 
 
notebooks
notebooks
 
 
output
output
 
 
scripts
scripts
 
 
testing
testing
 
 
toolkit
toolkit
 
 
ui
ui
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
FAQ.md
FAQ.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_and_push_docker
build_and_push_docker
 
 
build_and_push_docker_dev
build_and_push_docker_dev
 
 
dgx_instructions.md
dgx_instructions.md
 
 
dgx_requirements.txt
dgx_requirements.txt
 
 
docker-compose.yml
docker-compose.yml
 
 
flux_train_ui.py
flux_train_ui.py
 
 
info.py
info.py
 
 
jobs.py
jobs.py
 
 
requirements.txt
requirements.txt
 
 
requirements_base.txt
requirements_base.txt
 
 
run.py
run.py
 
 
run_modal.py
run_modal.py
 
 
version.py
version.py
 
 

Repository files navigation

AI Toolkit Hex

Minimal Apple Silicon fork of ostris/ai-toolkit.

This fork exists for a very specific workflow:

  • train locally on macOS with device: mps
  • generate sample previews on another machine through Draw Things
  • allow the remote preview model to be different from the local training model

This README only covers macOS on Apple Silicon.

What Is Different

  • Local training is meant to run on Apple Silicon with MPS.
  • Preview sampling is remote, never local in-process generation.
  • Preview sampling is configured through sample.drawthings.
  • The remote sample model can be different from the model you are training on your Mac.
  • Returned previews are saved by AI Toolkit, not into the Draw Things gallery on the remote machine.

Requirements

  • Apple Silicon Mac
  • macOS
  • Xcode Command Line Tools
  • Homebrew
  • Python 3.12
  • Node 22
  • Git

Install

xcode-select --install

brew install [email protected] node@22 git
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/node@22/bin:$PATH"' >> ~/.zprofile
source ~/.zprofile

git clone https://github.com/hexvalid/ai-toolkit-hex.git
cd ai-toolkit-hex

python3.12 -m venv venv
source venv/bin/activate

pip install --upgrade pip
pip install --no-cache-dir torch==2.9.1 torchvision==0.24.1 torchaudio==2.9.1
pip install -r requirements.txt

cd ui
npm run build_and_start

Open http://localhost:8675.

Remote Samples

Training happens on your Mac. Sample previews happen on another machine running Draw Things remote access.

In the job config or UI, set:

  • device: mps
  • sample.drawthings.server
  • sample.drawthings.port
  • sample.drawthings.model
  • sample.drawthings.shared_secret if your remote server requires it

The remote Draw Things model can be different from model.name_or_path.

CLI

source venv/bin/activate
python run.py path/to/config.yml

Notes

  • You still need the correct Hugging Face access/token for gated models.
  • This fork is intentionally optimized around the MPS + remote-preview workflow, not general multi-platform setup docs.

Credits

This project is based on ostris/ai-toolkit. Credit for the core project, training system, and the vast majority of the original work goes to the upstream project and its contributors.

About

The ultimate training toolkit for finetuning diffusion models

Resources

Readme
License
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.