Llm Dit Experiments
Description
experiments with autoregressive LLMs and DiT models
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
llm-dit-experiments
Multi-pipeline LLM-DiT generation platform. LLM hidden states -> flow-matching DiT -> VAE decode. Single GPU (24GB).
**Backend:** PyTorch, FastAPI, TOML config. **Frontend:** React 19, Vite 7, Bun (`web/frontend-v2/`).
Pipelines
| Pipeline | Task | Encoder | Notes |
|---|---|---|---|
| FLUX.2 Klein | text-to-image, image editing | Qwen3-8B/4B | Distilled, multi-layer extraction, LoRA support |
| Z-Image | text-to-image, img2img | Qwen3-4B | CFG=0 baked, 1504 token limit |
| LTX-2 | text-to-video | Gemma3-12B | Pure PyTorch, FP8, persistent component caching |
| Qwen-Image-2512 | text-to-image | Qwen2.5-VL-7B | 39GB transformer, requires fp8 on 24GB |
| Qwen-Image-Edit-2511 | image editing, multi-image | Qwen2.5-VL-7B | Multi-image composition, instruction editing |
Quick Start
1. Backend
uv sync
cp config.toml.example config.toml # edit model paths
uv run web/server.py --config config.toml
API on port 7860.
2. Frontend
cd web/frontend-v2
bun install
bun run dev
UI on `http://localhost:5175`. Vite proxies `/api` to the backend.
3. CLI (optional)
# Requires server running (step 1)
uv run scripts/gen.py flux2 --prompt "A photo of a cat" --seed 42
4. Batch Generation
Process a directory of images with the same prompt and model. Reads `config.toml` for server URL and default model.
# Basic -- uses config.toml defaults for server + model
uv run scripts/batch_flux2.py \
--input-dir /path/to/images \
--prompt "make this a watercolor painting"
# Override model, match output size to input
uv run scripts/batch_flux2.py \
--input-dir /path/to/images \
--output-dir /path/to/outputs \
--prompt "transform this" \
--model-name klein-9b-kv-fp8 \
--match-image-size "0 (First Image)"
Supports resume -- interrupted runs skip already-completed images. Use `--no-resume` to regenerate all.
API
| Endpoint | Method | Description | |----------
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI