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: honest attribution (INT8 approach from Viggle-Animate), official links, leaner text
Browse files18 unmodified lines19202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667684 unmodified lines73747576777879804 unmodified lines85868788899091929394959697989910010110210310410518 unmodified lines**Viggle-Animate in one ComfyUI node, on an INT8 checkpoint, with automatic attention routing.**Give it a driving clip and one still, and the person (or dog, or character) in the still performsthe clip. This repository holds everything needed to run it: the quantized checkpoint, the ComfyUInode pack, the conversion library and the exact workflow we ship.## Credits and thanks* **[Viggle-Animate](https://github.com/drbaph/Viggle-Animate-ComfyUI)** β this project follows itsguidance throughout: the conditioning order (driving footage first, still nested on the clip'sshort edge), the rule that the reference should be a repainted frame from the same shot, and theevaluated configuration (three to six sampling steps, flow shift 3/3). Thank you to theViggle-Animate authors for the finetune, the ComfyUI pack and the documentation that made thispossible.* **[MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3)** β the base model, released under theMiniMax H3 Community License. Our checkpoints are derivatives and keep that 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 selects between.## What is in the box| Item | What it is ||---|---|| `minimax_h3_ref2va_slimdit_int8_convrot.safetensors` | 19.6 GiB INT8 ConvRot checkpoint (from about 40 GiB bf16); 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 input clip, the still and the render behind the demo |## Automatic attention routing (the interesting part)Attention is the largest single cost of a render β roughly two thirds of the sampling loop at 124frames on a 5090 β and **no single kernel wins at every clip length**, so the node pack ships arouter instead of one fixed override. It picks per call:* **`sol_attn`** (comfy_kitchen) while the request is short and the three contiguous q/k/v copiesstill fit in free VRAM β measured fastest up to 243 frames: **33.2 s vs 38.3 s** at 124 frames,**103.0 s vs 116.4 s** at 243 frames (six steps, 32 GiB card);* **dense attention** beyond that: it needs no copies at all, so it is both the safest and thecleanest branch when memory is tight. At 372 frames dense runs in **26.1 GiB and comes outsharp**, while the in-place INT8 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. Nothing toswitch. The override only ever patches MiniMax-H3 attention, so other models in the same process areuntouched.## Example β the dog singer4 unmodified lines| settings | 6 steps, 124 frames, flow shift 3/3, seed 833969396491604 || result | `examples/dog-singer/result.mp4` |The still is the whole trick: match its pose, framing and lighting to the driving shot and therender lands 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 ourselves: the node pack imports the `slimdit` package, so it has to be copied*inside* `custom_nodes/ComfyUI-SlimDiT/`; and if you use `extra_model_paths.yaml`, the model foldermust be listed there 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, all from the upstream projects above.## Reproducing the checkpoint```shpython -m slimdit.convert --help # ConvRot INT8 + analytic low-rank adaln curvespython -m slimdit.verify <checkpoint> # tensor-by-tensor parity against the reference```## Licence* **Weights** (the INT8 checkpoint): MiniMax H3 Community License, inherited from the base model.* **Code** (this repository): Apache-2.0.18 unmodified lines19202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970714 unmodified lines76777879808182834 unmodified lines88899091929394959697989910010118 unmodified lines**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 singer4 unmodified lines| 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.
README.md+40-44