MAGI-2 Preview int8 for ComfyUI

sand-ai/MAGI-2-preview quantized to int8 ConvRot for native ComfyUI loading in the pip/uv-installable ComfyUI fork, which runs the preview and refiner transformers with ComfyUI's samplers, memory management, pipeline parallelism and tensor parallelism.

The text encoder is byte-identical to Qwen/Qwen3.5-27B and lives in appmana/Qwen3.5-27B-int8. The audio VAE is byte-identical to Comfy-Org/stable-audio-open-1.0_repackaged and is not duplicated here.

Files

File Contents
diffusion_models/magi2_preview_int8_convrot-0000{1..3}-of-00003.safetensors + .index.json preview transformer, int8 ConvRot (115.5 GB)
diffusion_models/magi2_refiner_int8_convrot.safetensors 1080p refiner, int8 ConvRot (6.8 GB)
vae/magi2_turbo_vae.safetensors distilled turbo video decoder (TurboV3)
vae/magi2_wan2.2_vae_fp32.safetensors Wan 2.2 VAE in fp32, as SandAI encodes reference images

Load sharded checkpoints by selecting the .index.json file. SHA256SUMS lists every file's hash (it also covers the bf16 conversions, which are not published here).

Conversion

Produced from the original shards by scripts/convert_magi2.py in the fork. Keys are remapped to the native ComfyUI layout; the transformer config is stored in safetensors metadata.

int8 ConvRot quantizes the attention and dense projections and the routed-expert banks (W_gate, W_up, W_down) with per-output-channel scales after a Hadamard rotation (group 256, or the largest power of 4 dividing the input width: the refiner's 10920-wide MLP down projection uses 4). Embeddings, norms, modulation, routers (expert_bias_ema as the routing bias, as SandAI's loader uses), hyper-connection parameters, attention sinks and gates, and final layers stay bf16.

Weight error against bf16, sampled over preview layers 0, 2, 20, 37, 39 and refiner layers 0, 2, 20 (16 experts per bank):

tensors mean rel. error max rel. error min cosine plain int8 mean rel. error
expert banks 9 0.73 % 0.80 % 0.99997 0.83 %
dense projections 80 0.94 % 1.73 % 0.99985 1.11 %

Status

The ComfyUI implementation matches SandAI's reference code in parity tests (preview within bf16 noise, refiner within 0.8 %, sampler schedule bit-identical, turbo decoder input bit-identical), and two-stage pipeline-parallel and two-rank tensor-parallel execution match the unsplit models. Full-size generation results will be added here once validated.

License

Apache-2.0, as the original weights. These files are a format conversion of SandAI's release; the int8 ConvRot files are quantized derivatives.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for appmana/MAGI-2-preview-int8

Finetuned
(2)
this model