Run this model with HF Jobs
Run aireet/viggle-animate-workflow on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/aireet/viggle-animate-workflow. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aireet/viggle-animate-workflow on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
xue commited on
Model card in plain language, with explicit credit for Viggle-Animate guidance on quantization and pruning
Browse files16 unmodified lines171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182834 unmodified lines88899091929394959697989910010116 unmodified lines# viggle-animate-workflow**Viggle-Animate in one ComfyUI node, on an INT8 checkpoint, with automatic attention routing.**A driving clip plus one still; the character in the still performs the clip.## Credits β and what is not oursThis checkpoint exists because of Viggle-Animate, and its approach is theirs, not ours.* **[Viggle-Animate](https://huggingface.co/Viggle/Viggle-Animate)** β the finetune, and theguidance this work follows. The INT8 quantization scheme, the conditioning order (driving footagefirst, the still nested on the clip's short edge), the rule that a reference should be a repaintedframe of the same shot, and the sampling schedule all come from Viggle-Animate and itsdocumentation. **None of that is our invention.** Thank you to the Viggle-Animate authors.* **[ComfyUI-Viggle-Animate-H3](https://github.com/Saganaki22/ComfyUI-Viggle-Animate-H3)** β theofficial ComfyUI nodes for Viggle-Animate. Our node wraps the same pipeline and keeps itsbehaviour, including its conditioning layout and sampling schedule.* **[MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3)** β the base model; this checkpoint isa derivative and keeps its community licence.* **[ComfyUI](https://github.com/comfyanonymous/ComfyUI)**,**[Video Helper Suite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)** and the`comfy_kitchen` Sol-Attn kernels, which the router chooses between.What we added: the conversion pipeline (`slimdit`), the attention router, the one-node wrapper, andthe packaging in this repository.## What is in the box| Item | What it is ||---|---|| `minimax_h3_ref2va_slimdit_int8_convrot.safetensors` | 19.6 GiB INT8 checkpoint; loads with the stock `Load Diffusion Model` node || `comfyui/ComfyUI-SlimDiT/` | the node pack: `viggle-animate-h3` plus the attention router || `comfyui/workflows/viggle-animate-workflow.json` | the shipped workflow, with the example already wired in || `slimdit/`, `tools/`, `tests/` | conversion library, benchmark and verification tools, test suite || `examples/dog-singer/` | the driving clip, the still and the render behind the demo |## Automatic attention routingAttention is the largest single cost of a render, and no single kernel wins at every clip length, sothe node picks per call:* **`sol_attn`** (comfy_kitchen) while the request is short and its three contiguous q/k/v copiesstill fit in free VRAM β fastest up to 243 frames: **33.2 s vs 38.3 s** at 124 frames, **103.0 s vs116.4 s** at 243 frames (six steps, 32 GiB card);* **dense attention** beyond that β it needs no copies, so it is the safer and cleaner branch whenmemory is tight: at 372 frames dense runs in **26.1 GiB and comes out sharp**, while the in-placeINT8 kernel takes **31.8 GiB and ghosts** from about frame 124.A ten-second clip quietly gets the fast path, a long one quietly gets the safe path. The overrideonly ever patches MiniMax-H3 attention.## Example β the dog singer| | ||---|---|| driving clip | `mixkit-51741-video-51741-hd-ready.mp4` (1280x720, 241 frames, about 10 s) || reference still | a dachshund in a white hoodie with cat-ear headphones, pose and light matched to the clip (1672x941) || settings | 6 steps, 124 frames, flow shift 3/3, seed 833969396491604 || result | `examples/dog-singer/result.mp4` |The still is the trick: match its pose, framing and lighting to the driving shot and the renderstays on-model for the full 5.2 seconds.## Install4 unmodified linescp viggle-animate-workflow/minimax_h3_ref2va_slimdit_int8_convrot.safetensors ComfyUI/models/diffusion_models/```Two pitfalls we hit: the node pack imports the `slimdit` package, so copy it *inside*`custom_nodes/ComfyUI-SlimDiT/`; and with `extra_model_paths.yaml`, the model folder must be listedthere or ComfyUI will not see the checkpoint.You also need the MiniMax-H3 video VAE, the Viggle-Animate DMD LoRA and the frozen text conditioningfile, from the upstream projects above.## Licence* **Weights**: MiniMax H3 Community License, inherited from the base model, following Viggle-Animate.* **Code** (this repository): Apache-2.0.16 unmodified lines1718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081824 unmodified lines8788899091929394959697989910016 unmodified lines# viggle-animate-workflowViggle-Animate in one ComfyUI node, on a quantized checkpoint, with automatic attention routing.Give it a driving clip and one still, and the character in the still does the clip.## CreditsThis project exists because of **Viggle-Animate** β [the model](https://huggingface.co/Viggle/Viggle-Animate)and [its official ComfyUI nodes](https://github.com/Saganaki22/ComfyUI-Viggle-Animate-H3).Their guidance on **how to quantize and prune the model** is what our INT8 checkpoint is built on.The same goes for the pipeline: the conditioning order (driving footage first, the still nested onthe clip's short edge), the rule that a reference should be a repainted frame of the same shot, andthe recommended sampling settings are all from Viggle-Animate. **We did not invent any of it.** Wefollowed it, converted the weights, and packaged it so it is easy to run β and we are grateful tothe Viggle-Animate authors for sharing it.The base model is **[MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3)**, under the MiniMax H3Community License. The node runs on [ComfyUI](https://github.com/comfyanonymous/ComfyUI) with[Video Helper Suite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite) and the `comfy_kitchen`Sol-Attn kernels.What is ours: the conversion code in `slimdit/`, the attention router, the one-node wrapper, and thepackaging in this repository.## What is in the repository| Item | What it is ||---|---|| `minimax_h3_ref2va_slimdit_int8_convrot.safetensors` | the quantized checkpoint, 19.6 GiB; loads with the normal `Load Diffusion Model` node || `comfyui/ComfyUI-SlimDiT/` | the ComfyUI node pack: `viggle-animate-h3` and the attention router || `comfyui/workflows/viggle-animate-workflow.json` | the workflow, with the example already loaded || `slimdit/`, `tools/`, `tests/` | the conversion code, the tools we used to check it, and the tests || `examples/dog-singer/` | the driving clip, the still and the render from the example below |## Attention routingAttention is the slowest part of a render. Which kernel is fastest depends on how long the clip is,so the node picks one for every call instead of hard-coding a single choice:* while the clip is short and free memory is enough for the extra copies, it uses **`sol_attn`** βat six steps that is **33.2 s instead of 38.3 s** at 124 frames, and **103.0 s instead of 116.4 s**at 243 frames (RTX 5090, 32 GiB);* when the clip is longer, it uses the **normal dense attention** β it needs no extra memory, and ona 372-frame clip dense finished in **26.1 GiB and looked clean**, while the in-place quantizedkernel used **31.8 GiB and showed ghosting** from around frame 124.Short clips get the fast path and long clips get the safe one, without any switches. OnlyMiniMax-H3's attention is touched, so other models in the same ComfyUI keep working normally.## Example β the dog singer| | ||---|---|| driving clip | `mixkit-51741-video-51741-hd-ready.mp4`, 1280x720, 241 frames (~10 s) || reference still | a dachshund in a white hoodie with cat-ear headphones, pose and light matched to the clip, 1672x941 || settings | 6 steps, 124 frames, flow shift 3/3, seed 833969396491604 || result | `examples/dog-singer/result.mp4` |The reference still is the trick. Match its pose, framing and lighting to the driving shot and theresult stays on-model for the whole 5.2 seconds.## Install4 unmodified linescp viggle-animate-workflow/minimax_h3_ref2va_slimdit_int8_convrot.safetensors ComfyUI/models/diffusion_models/```Two things that tripped us up: the node pack needs the `slimdit` folder copied *inside*`custom_nodes/ComfyUI-SlimDiT/`, and if you use `extra_model_paths.yaml` you have to list the modelfolder there or ComfyUI will not see the checkpoint.You will also need the MiniMax-H3 video VAE, the Viggle-Animate DMD LoRA and the frozen textconditioning file β all from the upstream projects linked above.## Licence* **Weights**: MiniMax H3 Community License, inherited from the base model, following Viggle-Animate.* **Code**: Apache-2.0.
README.md+45-46