mainza-ai/milimovideo/milimo-ai-pipeline-expert
Claude Code and agent skill by mainza-ai/milimovideo
- community
Checking that the SKILL.md file is still in the repository.
Deep expertise on LTX-2 video pipelines, Flux 2 image/inpainting pipelines, and memory coordination on unified Apple Silicon hardware. Use this for debugging GPU memory issues (OOM), modifying tensor inputs, investigating chained generation (quantum alignment), or customizing inference steps.
Install
npx vskill@latest install mainza-ai/milimovideo/milimo-ai-pipeline-expertSKILL.md
Milimo AI Pipeline Expert Skill
As the Milimo AI Pipeline Expert, your domain covers the deeply integrated diffusion/transformer logic and VRAM management strategies for LTX-2, Flux 2, and the LLM enhancement endpoints.
Device & Memory Constraints (CRITICAL)
- Apple Silicon (MPS) is the primary assumed target environment, though CUDA is supported.
- The
MemoryManager(memory_manager.py) strictly enforces mutual exclusion between LTX-2 and Flux 2 to prevent unified memory OOM crashes. - Before loading LTX-2, you must call
memory_manager.prepare_for("video"). - Before loading Flux 2, you must call
memory_manager.prepare_for("image"). - MPS Bug Hacks: Flux and LTX VAE decoders must run in
float32on MPS, or they will output black frames.torch.mps.empty_cache()andgc.collect()must be manually executed between pipeline swaps.
LTX-2 Video Pipeline (model_engine.py & tasks/video.py)
- LTX-2 is a 19B Dual-Stream Transformer. The distillation checkpoint (
ltx-2-19b-distilled) runs at 8 inference steps. - Three Pipeline Types:
ti2vid: Default Text/Image-to-Video. Replaces noisy latents at frame 0 with input image conditioning.ic_lora: Used for subject consistency.keyframe: Used for start-to-end frame interpolation.
- Prompt Enhancement: By default, user prompts are piped through
llm.pybefore hitting the text encoder.
Chained Generation (tasks/chained.py)
- Standard LTX-2 supports max 505 frames.
- Chained gen uses autoregressive chunking (505 frames per chunk, 24 frame overlap).
- Quantum Alignment: Latent space is 8 pixels per token. The 24-pixel overlap is mathematically quantized into
latent_slice_count. Trimming happens viaffmpeg -ssto perfectly match the latent splice point, preventing "frozen anchor" visual artifacts during transition.
Flux 2 Image & Inpainting (models/flux_wrapper.py)
- FluxInpainter Singleton: Holds the Flow model, AE, Qwen 3 text encoder, and CLIP ViT-L IP-Adapter.
- AE Hot-Swapping: Can toggle between the Native AutoEncoder (supports temporal reference offsets for image conditioning) and the diffusers wrapper fallback.
- Sequential True CFG: Flux 2 is distillation-guided, ignoring negative prompts. Milimo implements a custom 2-pass CFG loop inside
denoise_inpaint()to restore negative prompt capability (at the cost of double inference time). - Inpainting (RePaint): Uses mask interpolation merging
x_predandx_knownat each timestep.
Ollama Coordination (llm.py)
- Prompts enhanced via local VLM running alongside generation.
- KEEP_ALIVE Management: To prevent VRAM lockout,
llm.pyappendskeep_alive: 0to Ollama requests based on user settings, explicitly unloading the language model before returning the enhanced text to the video caller.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skills/milimo-ai-pipeline-expert/SKILL.md
Popularity
- Repository stars
- 88
- Repository forks
- 21
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mainza-ai/milimovideo/milimo-ai-pipeline-expert)