ComfyUI-native INT8 ConvRot and INT4 ConvRot (W4A4) quantizations of OpenMOSS-Team/MOSS-Image-Base, the base text-to-image model of the MOSS-Image family by the OpenMOSS Team.
These files use the same layouts, tensor names and quantization metadata as the community SFT quantizations below, so they load with the same loaders:
Both reference repos target MOSS-Image-SFT. This repo applies the identical recipe to MOSS-Image-Base, the non-post-trained base model, which is the better starting point for LoRA training. As a check, our converter applied to SFT weights reproduces both reference files bit-exactly.
| File | Variant | Size |
|---|---|---|
diffusion_models/moss-image-base-dit-int8-convrot.safetensors |
DiT, INT8 ConvRot (W8, per-channel) | 5.41 GB (5,413,723,800 bytes) |
diffusion_models/moss-image-base-dit-int4-convrot.safetensors |
DiT, INT4 ConvRot W4A4 | 3.04 GB (3,035,537,344 bytes) |
text_encoders/moss-image-qwen35-int8-convrot.safetensors |
Qwen3.5 text encoder, INT8 ConvRot (optional) | 8.45 GB (8,452,959,908 bytes) |
vae/moss-image-vae.safetensors |
official MOSS-Image VAE (FLUX.2 latent space, slim decoder), unchanged FP32 copy | 0.25 GB (249,521,372 bytes) |
workflows/core/*.json |
workflows for native ComfyUI core support (stock nodes), UI and API format | |
workflows/*.json |
workflows for the MOSS-Image plugin, UI and API format | |
quantize_moss.py |
conversion script |
The BF16 DiT is ~10.2 GB and the BF16 text encoder ~16.8 GB.
MOSS-Image-Base and MOSS-Image-SFT ship byte-identical text encoder and VAE weights, so the text encoder here is identical to the one in the Abiray INT8 repo.
The text encoder uses HF / ComfyUI-core key names (model.language_model.*, model.visual.*). Both ComfyUI core and the MOSS-Image plugin accept them.
You can also keep the BF16 text encoder, exported with the plugin's export.py.
ConvRot rotates each linear layer with a block-diagonal, normalized regular Hadamard matrix over groups of the input dimension before quantizing. This spreads per-channel outliers across the group, so plain symmetric absmax quantization works well. Quantization uses comfy-kitchen 0.2.37 layouts, the same ones ComfyUI uses natively, applied to the FP32-upcast BF16 weights.
INT8 (int8_tensorwise + convrot), same as Abiray/MOSS-Image-SFT-INT8-convrot
weight_scale [N,1]).<layer>.comfy_quant JSON tensor.INT4 (convrot_w4a4), same as toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI
_quantization_metadata.Quantized layers (DiT, both variants): 252 linears, i.e. attention proj.q, proj.k, proj.v, proj.o and MLP proj.ffn_up_gate and proj.ffn_down in all 42 blocks.
Kept in original precision (DiT): text embedder (text_embedder.*), time embedding, shared_block_modulation, video_head_modulation,
input embedder (video_embedder), output projection (final_linear_video), all RMSNorm / q-norm / k-norm weights, and rope.bands
(FP32 in MOSS-Image-Base, kept as FP32).
Text encoder (INT8 only): 309 tensors are quantized: embed_tokens (per-row, rotated), all language-model attention / linear-attention / MLP projections
except linear_attn.in_proj_a and in_proj_b, and the vision-tower block linears. The rotation group is the largest power of 4 (at most 256) that divides
the input dimension: 256, 64, or 16 for visual.*.linear_fc2. Norms, biases, A_log, dt_bias, conv1d, in_proj_a/b, the vision merger, patch embed and
position embedding stay BF16.
GPU image-quality and speed benchmarks were not run for this release. There are no PSNR / SSIM / LPIPS / CLIP numbers, VRAM measurements or s/it figures here. Please evaluate on your own prompts and hardware, and compare against the BF16 model, before relying on these files. INT4 W4A4 also quantizes activations, so expect visible differences from BF16, larger than with INT8.
What was checked:
Per-layer weight reconstruction error (relative Frobenius error of the dequantized weight vs the BF16 weight, over all quantized layers):
| File | Quantized layers | Mean rel. error | Max rel. error |
|---|---|---|---|
| INT8 ConvRot DiT | 252 | 0.868% | 0.980% |
| INT8 ConvRot text encoder | 309 | 0.868% | 1.020% |
| INT4 ConvRot W4A4 DiT | 252 | 15.7% | 17.7% |
This measures weight error only. It does not include INT4 activation quantization or the effect on generated images.
Format fidelity: the same converter (quantize_moss.py), applied to MOSS-Image-SFT layers, reproduces the quantized weights and scales of
toxicdog/MOSS-Image-SFT-INT4-ConvRot-ComfyUI and
Abiray/MOSS-Image-SFT-INT8-convrot bit-exactly on the layers tested.
The DiT files have the same tensor names, shapes and dtypes and the same quantization configs as those repos. The one difference is rope.bands,
which is FP32 in MOSS-Image-Base and is kept as FP32. The INT8 text encoder has the same keys, shapes and dtypes as Abiray's, and the tensors sampled are byte-identical.
ComfyUI load / generate test (CPU only): in headless ComfyUI bdc63e7 with the official MOSS-Image plugin 1f808b7:
MOSSImageUNETLoader / MOSSImageCLIPLoader.76d935d) using only stock nodes.
The DiT layers load as native quantized tensors (int8_tensorwise / convrot_w4a4).On CPU, ComfyUI dequantizes instead of using the int8 / int4 GPU kernels. So this test confirms the files are valid and loadable, not GPU kernel behavior, output quality or speed.
Two loaders work with these files. Use whichever matches your ComfyUI.
Native MOSS-Image support is being added to ComfyUI core in Comfy-Org/ComfyUI#17095 (open at the time of writing). With a ComfyUI build that includes it:
UNETLoader): moss-image-base-dit-int8-convrot.safetensors or ...-int4-convrot.safetensors, weight_dtype = default.CLIPLoader): moss-image-qwen35-int8-convrot.safetensors, type = moss_image.
You can also use Comfy-Org's qwen3.5_9b_int8_convrot.safetensors, which has numerically equivalent weights.VAELoader): moss-image-vae.safetensors. Comfy-Org's flux2-vae.safetensors also works (see the comparison below).workflows/core/moss-image-base-int8-convrot.json / ...-int4-convrot.json, plus *-api.json for the HTTP API.Core detects the separate q/k/v projections in these files automatically. Comfy-Org's own files use a fused qkv.
Requirements:
convrot_w4a4) and ConvRot INT8 support; tested with ComfyUI bdc63e7.comfyui/moss-image into ComfyUI/custom_nodes/. Tested with plugin 1f808b7.On GPUs or devices without int8 compute, ComfyUI falls back to dequantize-then-matmul. This still saves memory but is not faster.
from huggingface_hub import hf_hub_download
for f in ["diffusion_models/moss-image-base-dit-int8-convrot.safetensors", # or ...-int4-convrot.safetensors
"text_encoders/moss-image-qwen35-int8-convrot.safetensors",
"vae/moss-image-vae.safetensors"]:
hf_hub_download("SumomoLee/MOSS-Image-Base-ConvRot-ComfyUI", f, local_dir="/path/to/ComfyUI/models")
workflows/moss-image-base-int8-convrot.json or workflows/moss-image-base-int4-convrot.json in ComfyUI. The *-api.json files are for the HTTP API.MOSSImageUNETLoader, keep weight_dtype = default), MOSS-Image Load Qwen3.5
(MOSSImageCLIPLoader), and the standard Load VAE.Recommended settings for the base model, from the official user guide: 50 steps, CFG 3 (3 to 6; raise it for short prompts), shift 5 (ModelSamplingSD3),
Euler / sgm_uniform, uncond skip-layer guidance on layer 22 (SkipLayerGuidanceDiTSimple), and 1 to 2 MP resolutions in multiples of 16.
Recommended negative prompt: nsfw, worst quality, bad anatomy, watermark, jpeg artifact.
Comfy-Org/MOSS-Image ships BF16 and INT8 ConvRot DiTs for Base and SFT, an INT8 ConvRot Qwen3.5-9B
text encoder and flux2-vae. It does not ship INT4. Checked by reading tensors from both repos:
int8_tensorwise + ConvRot (group 256, per-channel FP32 scale) format.proj.qkv; these files keep them separate, which both core and the plugin accept.rope.bands.*_int8_convrot_attn files also carry layers.N.comfy_attention.config = {"attention": "comfy_kitchen_int8"}.
This opts each block into comfy-kitchen INT8 attention kernels where available. These files don't carry it, so attention runs at full precision:
slightly more accurate, possibly slower on GPUs with those kernels.lm_head and mtp.*, which conditioning doesn't use, and stores A_log and linear_attn.norm in FP32.lm_head.moss-image-vae.safetensors is the VAE shipped in MOSS-Image-Base. It is a FLUX.2 VAE with a slimmer decoder (96/192/384/384 channels, 62M params)
and slightly different encoder / batch-norm statistics from the stock flux2-vae (512-channel decoder, 84M params).model.language_model.* / model.visual.*. Tensor data is unchanged.language_model.*, the plugin export.py naming) only load through the MOSS-Image plugin.1f42fac88a1b94f23ea3b49db6149243493ff1d6b962bb599a20417fe4aa71ea diffusion_models/moss-image-base-dit-int4-convrot.safetensors
f47c21a1397f846fa0d01c75e4b88fa6088783b47171399a465d92b1769ba0eb diffusion_models/moss-image-base-dit-int8-convrot.safetensors
511379fd690d59f11f49c062a8a687b9a985e92faa48a098eb7c66ba505574fe text_encoders/moss-image-qwen35-int8-convrot.safetensors
c3bdf94dc67ec69b30ea9fe1fa8340085679cae64d019f7c7e4a9921f1a7f17a vae/moss-image-vae.safetensors
5f40f07a304541840b6019d2d34d30f966756787, released under the Apache License 2.0.
These files are a modified (quantized) derivative of that model. A copy of the license is in LICENSE. All credit for the model goes to the OpenMOSS Team.text_encoders/moss-image-qwen35-int8-convrot.safetensors 8.5 GBdiffusion_models/moss-image-base-dit-int8-convrot.safetensors 5.4 GBdiffusion_models/moss-image-base-dit-int4-convrot.safetensors 3.0 GBvae/moss-image-vae.safetensors 250 MBOpenMOSS-Team/MOSS-Image-Base