ai-toolkit
| Repo | box/github.com/opencharly/pod-ai-toolkit:v2026.327.0939 |
Ostris AI Toolkit diffusion-model training server — the GUI on port 8675 plus the CLI trainer
(ai-toolkit-train <config.yml>). Clones ai-toolkit at a PINNED COMMIT (upstream publishes no
tags at all, so a commit is the only pinnable ref), resolves its dependency set with pixi
(torch cu130 + the git-pinned diffusers revision that carries Z-Image), builds the
Next.js UI, and supervises the UI server and its job worker as two services. The mutable state —
configs, datasets, output — lives in the ai-toolkit volume; the application stays in the image
at /opt/ai-toolkit. Ships a Z-Image LoRA example config that trains on ostris/Z-Image-De-Turbo
and infers on Tongyi-MAI/Z-Image-Turbo. Each piece is verifiable: the cloned tree at the pinned
commit, a torch that reports a CUDA device, a diffusers whose ZImagePipeline exists, the
built UI entrypoints, the example config, and the live UI on port 8675.
Services
Section titled “Services”ai-toolkit-uiai-toolkit-worker
Acceptance plan
Section titled “Acceptance plan”This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.
| Intent | Step |
|---|---|
run |
clone ai-toolkit at the pinned COMMIT into the image-owned app directory |
run |
build the Next.js UI so the supervised launch is immediate |
run |
hand the app tree to the image user so the UI can write its own runtime state |
run |
keep the upstream example configs aside — the live config dir becomes a volume symlink |
run |
install the shipped Z-Image LoRA example config |
run |
write the CLI trainer wrapper so a job never depends on which python is first on PATH |
run |
write the ONE state-splice + schema helper both services source |
run |
write the UI start script |
run |
write the start script for the job worker |
check |
the source tree is the PINNED commit, not whatever the default branch was that day |
check |
the image interpreter imports torch and the build-time CUDA stack |
check |
the pinned diffusers actually carries ZImagePipeline — the whole Z-Image path depends on it |
check |
the Z-Image model handler ai-toolkit will use for arch=zimage is importable |
check |
the UI was built, so the supervised launch does not build anything at start |
check |
the Prisma client was GENERATED — it is a build artifact, not an npm dependency |
check |
the shipped Z-Image LoRA example config is present in the image |
check |
the CLI trainer wrapper execs the image interpreter |
check |
the live UI answers on the toolkit port |
check |
the state tree is SPLICED into the volume, not left in the image |

