brownianeffect obsxrver commited on
Commit
9013f38
·
0 Parent(s):

Duplicate from obsxrver/ComfyUI-Native-INT8_ConvRot

Browse files

Co-authored-by: Obsxrver <obsxrver@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - int8-convrot
4
+ - comfyui
5
+ ---
6
+
7
+ # ComfyUI-Native-Int8-ConvRot
8
+
9
+ INT8 ConvRot models, converted to the native quantization format ComfyUI expects.
10
+
11
+ INT8 ConvRot currently offers one of the best quality-to-performance ratios of any
12
+ quantization method. In my personal experience, INT8 ConvRot models provide quality
13
+ close to BF16 at generation speeds matching or beating FP8_Scaled.
14
+
15
+ > "INT8 ConvRot is row-wise INT8 with parameters and activations rotated before
16
+ > quantization via ConvRot."
17
+ > — [ComfyUI-INT8-Fast Metrics.md](https://github.com/BobJohnson24/ComfyUI-INT8-Fast/blob/main/Metrics.md)
18
+
19
+ ## Models
20
+ If there is a model that you would like that is not in this list, make a [request](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/discussions)
21
+ | File | Model | Original Creator's Repo |
22
+ |---|---|---|
23
+ | [`checkpoints/hidream_o1_image_int8-convrot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/checkpoints/hidream_o1_image_int8-convrot.safetensors) | HiDream-O1-Image | [HiDream-ai/HiDream-O1-Image](https://huggingface.co/HiDream-ai/HiDream-O1-Image) |
24
+ | [`checkpoints/hidream_o1_image_dev_int8-convrot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/checkpoints/hidream_o1_image_dev_int8-convrot.safetensors) | HiDream-O1-Image-Dev | [HiDream-ai/HiDream-O1-Image-Dev](https://huggingface.co/HiDream-ai/HiDream-O1-Image-Dev) |
25
+ | [`checkpoints/ltx-2.3-22b-dev-int8-ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/checkpoints/ltx-2.3-22b-dev-int8-ConvRot.safetensors) | LTX-2.3 22B Dev | [Lightricks/LTX-2.3](https://huggingface.co/Lightricks/LTX-2.3) |
26
+ | [`checkpoints/ltx-2.3-22b-distilled-1.1-int8-ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/checkpoints/ltx-2.3-22b-distilled-1.1-int8-ConvRot.safetensors) | LTX-2.3 22B Distilled v1.1 | [Lightricks/LTX-2.3](https://huggingface.co/Lightricks/LTX-2.3) |
27
+ | [`checkpoints/sulphur_dev_INT8_ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/checkpoints/sulphur_dev_INT8_ConvRot.safetensors) | Sulphur 2 Dev | [SulphurAI/Sulphur-2-base](https://huggingface.co/SulphurAI/Sulphur-2-base) |
28
+ | [`checkpoints/sulphur_distill_INT8_ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/checkpoints/sulphur_distill_INT8_ConvRot.safetensors) | Sulphur 2 Distill | [SulphurAI/Sulphur-2-base](https://huggingface.co/SulphurAI/Sulphur-2-base) |
29
+ | [`diffusion_models/anima-preview3-base-int8-ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/anima-preview3-base-int8-ConvRot.safetensors) | Anima Preview 3 (Base) | [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima) |
30
+ | [`diffusion_models/flux-2-klein-9b_int8_convrot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/flux-2-klein-9b_int8_convrot.safetensors) | FLUX.2 [klein] 9B | [black-forest-labs/FLUX.2-klein-9B](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B) |
31
+ | [`diffusion_models/Krea2-Turbo-int8-ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/Krea2-Turbo-int8-ConvRot.safetensors) | Krea 2 Turbo | [krea/Krea-2-Turbo](https://huggingface.co/krea/Krea-2-Turbo) |
32
+ | [`diffusion_models/qwen-image-2512-int8-ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/qwen-image-2512-int8-ConvRot.safetensors) | Qwen-Image-2512 | [Qwen/Qwen-Image-2512](https://huggingface.co/Qwen/Qwen-Image-2512) |
33
+ | [`diffusion_models/wan2.2_i2v_high_int8_convrot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/wan2.2_i2v_high_int8_convrot.safetensors) | Wan2.2 I2V A14B (High Noise) | [Wan-AI/Wan2.2-I2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B) |
34
+ | [`diffusion_models/wan2.2_i2v_low_int8_convrot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/wan2.2_i2v_low_int8_convrot.safetensors) | Wan2.2 I2V A14B (Low Noise) | [Wan-AI/Wan2.2-I2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B) |
35
+ | [`diffusion_models/wan2.2_t2v_high_int8_ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/wan2.2_t2v_high_int8_ConvRot.safetensors) | Wan2.2 T2V A14B (High Noise) | [Wan-AI/Wan2.2-T2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B) |
36
+ | [`diffusion_models/wan2.2_t2v_low_int8_ConvRot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/wan2.2_t2v_low_int8_ConvRot.safetensors) | Wan2.2 T2V A14B (Low Noise) | [Wan-AI/Wan2.2-T2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B) |
37
+ | [`diffusion_models/z_image_turbo_int8_convrot.safetensors`](https://huggingface.co/obsxrver/ComfyUI-Native-INT8_ConvRot/blob/main/diffusion_models/z_image_turbo_int8_convrot.safetensors) | Z-Image Turbo | [Tongyi-MAI/Z-Image-Turbo](https://huggingface.co/Tongyi-MAI/Z-Image-Turbo) |
38
+
39
+ ## Quality Ranking
40
+
41
+ Per the latent-divergence benchmarks in [Metrics.md](https://github.com/BobJohnson24/ComfyUI-INT8-Fast/blob/main/Metrics.md):
42
+
43
+ ```
44
+ GGUF Q8 > INT8 ConvRot > MXFP8 > FP8 >= INT8 Row > INT8 Tensorwise
45
+ ```
46
+
47
+ Note: this is the general takeaway across all tested models. In several individual
48
+ benchmarks (e.g. Anima, Flux2 Klein 9B, Qwen Image 2512), INT8 ConvRot actually
49
+ scored *better* than GGUF Q8.
50
+
51
+ ## Requirements
52
+
53
+ - A ComfyUI version that includes native INT8 support
54
+ ([Comfy-Org/ComfyUI#14636](https://github.com/Comfy-Org/ComfyUI/pull/14636),
55
+ merged June 2026). Update if your loader reports an invalid quantization type.
56
+ - Models load with the standard **Load Diffusion Model** node — no custom node needed.
57
+
58
+ ## How to Quantize a Model to INT8 ConvRot
59
+
60
+ 1. Install silveroxides' [convert_to_quant](https://github.com/silveroxides/convert_to_quant):
61
+
62
+ ```bash
63
+ pip install -U convert-to-quant
64
+ ```
65
+
66
+ > INT8 kernels require Triton (native on Linux; use `triton-windows` on Windows).
67
+ > PyTorch must be installed separately with the correct CUDA version.
68
+
69
+ 2. Convert the model:
70
+
71
+ ```bash
72
+ ctq -i source_model_bf16.safetensors -o converted_model_int8_convrot.safetensors \
73
+ --int8 --scaling_mode row --simple --convrot --convrot-group-size [64,256,1024] \
74
+ --comfy_quant --save-quant-metadata --<model-arch-flag>
75
+ ```
76
+
77
+ ### Notes
78
+
79
+ - `--convrot-group-size` accepts 64, 256, or 1024. **It is recommended to choose a value that divides evenly into all of the model's layer dimensions.**
80
+ - `--<model-arch-flag>` selects the layer-exclusion preset for your model architecture
81
+ (e.g. `--wan`, `--flux2`, `--zimage`). Run `ctq --help-filters` (or `ctq -hf`) for
82
+ the full list.
83
+
84
+ ## References
85
+
86
+ 1. [Reddit: "So is INT8-ConvRot the new hot thing?"](https://www.reddit.com/r/StableDiffusion/comments/1uimp1j/so_is_int8convrot_the_new_hot_thing/)
87
+ 2. [ComfyUI-INT8-Fast — Metrics.md](https://github.com/BobJohnson24/ComfyUI-INT8-Fast/blob/main/Metrics.md) (benchmark methodology & full tables)
88
+ 3. [Comfy-Org/Boogu-Image discussion #10](https://huggingface.co/Comfy-Org/Boogu-Image/discussions/10#6a404ed359b6d5b4e834a644)
89
+ 4. [ComfyUI PR #14636 — Support int8 models](https://github.com/Comfy-Org/ComfyUI/pull/14636)
90
+ 5. [bertbobson/ComfyUI-INT8_ConvRot](https://huggingface.co/bertbobson/ComfyUI-INT8_ConvRot)
91
+ 6. [silveroxides/convert_to_quant](https://github.com/silveroxides/convert_to_quant)
92
+
93
+ ## Licensing and Commercial Use
94
+ All models are distributed strictly under their upstream license with no added restrictions. Verify permissibility with the original creator before commercial use.
checkpoints/hidream_o1_image_dev_int8-convrot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:607b17bc78307d124cb5aa1a134041eb23c5043dbf9b0f747bc86560bca715e6
3
+ size 10206726464
checkpoints/hidream_o1_image_int8-convrot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:211f4362d5e339a1e05f3726ebd9c55d6eea21fbeb87bb3413ff08aa15d767bc
3
+ size 10206726464
checkpoints/ltx-2.3-22b-dev-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e9b3e51423dfe62bc07a65fbc048ba72de7330d8bf6acb66447da0e8b8176e0
3
+ size 23507959296
checkpoints/ltx-2.3-22b-distilled-1.1-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bf190aed2f02421c00850bf821579c8785942a6858544094155c29f86a2a808
3
+ size 23507956776
checkpoints/sulphur_dev_INT8_ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3929cba1f8db3af1ef14c3064fcb8270923793f96ccd6258a91d6ab2523e15a
3
+ size 23507959296
checkpoints/sulphur_distill_INT8_ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f01e8d4b5526b700f20fe4b7690b509de80a49e762210ee131ec69579d32d6a
3
+ size 23507959296
diffusion_models/Krea2-Turbo-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd2c3bc68cced7fce74dd9f309b535beaeff6bb3f9f66bf11be3ab0793eabb21
3
+ size 14132233992
diffusion_models/anima-preview3-base-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:414eaf120c058ee9acd0d1312f91ba94a89e0116a08b935a25f7a9728935800b
3
+ size 2423557579
diffusion_models/flux-2-klein-9b_int8_convrot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd041cec0d7955d6fcbaef952ba6ebe37af9f7d032ec927657e7777f21f5c522
3
+ size 9439894544
diffusion_models/qwen-image-2512-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:477fa4fcbf9db30a9e02c5162ebfa9d5d6a83397d4531f7e838a09b2a5e6c138
3
+ size 20499138856
diffusion_models/wan2.2_i2v_high_int8_convrot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd3e75d49933eeeea05ad52bd37fcf7df1bd2310057f9ae511c703a57daacd83
3
+ size 14538223488
diffusion_models/wan2.2_i2v_low_int8_convrot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0edcf377d9f9491c49e74bf9c023484722d937edee72a3c0e8cd2796253c32ec
3
+ size 14538223488
diffusion_models/wan2.2_t2v_high_int8_ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b0b3532a03ea750c99d3f9fcca20359df7273c2fb23e2c7b3d97e90dd8968c0
3
+ size 14535898712
diffusion_models/wan2.2_t2v_low_int8_ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd4572bcf598a21961e9766d144409819acbe30928af179e08d368e9f81ae3ac
3
+ size 14535898712
diffusion_models/z_image_turbo_int8_convrot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4023c38d928fda41cfc21638e162af6f7e411e96e88897582e88dcf8ac7d46bb
3
+ size 6299127240