ocyou lilcheaty commited on
Commit
889dbb1
·
0 Parent(s):

Duplicate from lilcheaty/Krea2-INT8-ConvRot

Browse files

Co-authored-by: Safzan Pirani <lilcheaty@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
Krea2-Raw-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b45574f1098f713ab03318310141b582757220207757327165c3cc4515e7972c
3
+ size 14132232424
Krea2-Turbo-int8-ConvRot.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:778cdba5023ce37d20024c971be097d47434db899044721b45c29b37a09fcc12
3
+ size 14132232424
LICENSE ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ KREA 2 COMMUNITY LICENSE AGREEMENT
2
+ Copyright (c) Krea, Inc. All Rights Reserved.
3
+
4
+ The model weights in this repository are an INT8 ConvRot quantized DERIVATIVE of
5
+ the Krea 2 model and are governed in full by the Krea 2 Community License
6
+ Agreement. The complete, authoritative agreement is published at:
7
+
8
+ https://www.krea.ai/krea-2-licensing
9
+
10
+ By downloading, using, reproducing, distributing, or creating derivatives of
11
+ these weights, you agree to be bound by that Agreement. A copy of the full
12
+ Agreement must accompany any redistribution.
13
+
14
+ ----------------------------------------------------------------------
15
+ KEY TERMS (summary — the canonical Agreement at the link above controls)
16
+ ----------------------------------------------------------------------
17
+
18
+ ATTRIBUTION & DISTRIBUTION
19
+ - Any AI model name derived from Krea 2 must begin with "Krea".
20
+ - Redistribution must include a copy of the Agreement and bind each recipient
21
+ to its Terms, and must retain the attribution Notice (see Notice.txt).
22
+ - Derivatives must state that the Krea Model has been modified.
23
+ - You must not represent derivatives as official or endorsed by Krea.
24
+
25
+ COMMERCIAL USE
26
+ - Permitted only for entities (incl. affiliates under common control) with
27
+ total annual revenue under $1,000,000 USD (trailing twelve months).
28
+ - At or above $1M USD, a separate Enterprise License from Krea is required.
29
+
30
+ CONTENT FILTERING & SAFETY
31
+ - Deployers must implement reasonable content-filtering to detect, prevent,
32
+ and mitigate prohibited, harmful, or unlawful content.
33
+ - Disclose AI-generated outputs where legally required.
34
+ - Comply with the incorporated Acceptable Use Policy.
35
+
36
+ INTELLECTUAL PROPERTY / WARRANTY
37
+ - Krea retains ownership of the model; you own your outputs and derivatives.
38
+ - Provided "AS IS" without warranties; standard disclaimers and
39
+ indemnification obligations apply. Termination is automatic on breach.
40
+
41
+ ----------------------------------------------------------------------
42
+ This summary is provided for convenience and is NOT a substitute for the full
43
+ Krea 2 Community License Agreement at https://www.krea.ai/krea-2-licensing
Notice.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Krea 2 is licensed under the Krea 2 Community License Agreement,
2
+ Copyright (c) Krea, Inc. All Rights Reserved.
3
+
4
+ The model weights in this repository are a MODIFIED (INT8 ConvRot quantized)
5
+ derivative of the Krea 2 model. They are not official Krea releases and are not
6
+ endorsed by Krea. The original model and license are available at:
7
+ https://www.krea.ai/krea-2 and https://www.krea.ai/krea-2-licensing
8
+
9
+ Modifications: the BF16 Krea 2 RAW and Turbo checkpoints were quantized to INT8
10
+ (ConvRot, row-wise) using ComfyUI-INT8-Fast. The 28 main DiT blocks are INT8;
11
+ the sensitive layers (first, last, tmlp, tproj, txtfusion, txtmlp) are retained
12
+ in higher precision.
13
+
14
+ Deployers must implement reasonable content-filtering measures and disclose
15
+ AI-generated outputs where required, per the Krea 2 Community License.
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: krea-2-community-license
4
+ license_link: https://www.krea.ai/krea-2-licensing
5
+ base_model: krea/Krea-2
6
+ tags:
7
+ - text-to-image
8
+ - krea
9
+ - krea2
10
+ - int8
11
+ - convrot
12
+ - comfyui
13
+ - quantized
14
+ ---
15
+
16
+ # Krea 2 — INT8 ConvRot
17
+
18
+ INT8 **ConvRot** quantized weights for **[Krea 2 (K2)](https://www.krea.ai/krea-2)**, for fast, low-VRAM
19
+ inference in ComfyUI via the [ComfyUI-INT8-Fast](https://github.com/BobJohnson24/ComfyUI-INT8-Fast) node.
20
+
21
+ > **This is a modified (quantized) version of the Krea 2 model.** It is **not** an official Krea release and is
22
+ > **not** endorsed by Krea. The original weights are © Krea, licensed under the
23
+ > [Krea 2 Community License](https://www.krea.ai/krea-2-licensing).
24
+
25
+ ConvRot is a near-lossless INT8 scheme (~GGUF-Q8 quality) that runs on the INT8 tensor cores of any NVIDIA GPU
26
+ with sufficient INT8 TOPS (RTX 30-series and up). On a 3090, INT8 is meaningfully faster than FP8 (which has no
27
+ tensor-core acceleration on Ampere) and roughly half the VRAM of BF16.
28
+
29
+ ## Models
30
+
31
+ | File | Precision | Size | Use |
32
+ |------|-----------|------|-----|
33
+ | `Krea2-Turbo-int8-ConvRot.safetensors` | INT8 ConvRot | 14.1 GB | 8-step distilled, fast text-to-image |
34
+ | `Krea2-Raw-int8-ConvRot.safetensors` | INT8 ConvRot | 14.1 GB | Undistilled base — fine-tuning / LoRA training / research |
35
+
36
+ Original BF16 checkpoints are ~26.6 GB each. Quantized with the K2 profile: the 28 main DiT blocks are INT8,
37
+ while the sensitive layers (`first`, `last`, `tmlp`, `tproj`, `txtfusion`, `txtmlp`) are kept in high precision.
38
+
39
+ ## Requirements
40
+
41
+ - **ComfyUI ≥ 0.25.0** (native Krea 2 support).
42
+ - **[ComfyUI-INT8-Fast](https://github.com/BobJohnson24/ComfyUI-INT8-Fast)** custom node (with a `krea2`
43
+ model-type profile — see note below).
44
+ - Text encoder: **`qwen3vl_4b_fp8_scaled.safetensors`** → `ComfyUI/models/text_encoders/`
45
+ (from [Comfy-Org/Qwen3-VL](https://huggingface.co/Comfy-Org/Qwen3-VL)).
46
+ - VAE: **`qwen_image_vae.safetensors`** → `ComfyUI/models/vae/`
47
+ (from [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI)).
48
+ - Put the INT8 `.safetensors` in `ComfyUI/models/diffusion_models/`.
49
+
50
+ > **Note on the `krea2` profile:** Krea 2 is newer than INT8-Fast's built-in model list. These weights were
51
+ > produced with a small added `krea2` exclusion profile (keep `first`/`last`/`tmlp`/`tproj`/`txtfusion`/`txtmlp`
52
+ > in high precision). Loading the *pre-quantized* files here does not require that profile — ConvRot metadata
53
+ > is embedded per-layer — but reproducing the conversion does.
54
+
55
+ ## Usage
56
+
57
+ Load with **Load Diffusion Model INT8 (W8A8)** (`OTUNetLoaderW8A8`):
58
+ - `unet_name`: the INT8 file
59
+ - `on_the_fly_quantization`: **false** (already quantized)
60
+ - `enable_convrot`: **true**
61
+ - `model_type`: `krea2`
62
+
63
+ Then the standard K2 graph: `CLIPLoader (type: krea2)` → `VAELoader` → `CLIPTextEncode` → `KSampler` → `VAEDecode`.
64
+
65
+ Recommended sampler settings:
66
+ - **Turbo:** 8 steps, CFG 1.0, `euler` / `simple`, shift 1.15 (model default).
67
+ - **Raw:** ~52 steps, CFG ~3.5, `euler` / `simple` (undistilled base; mainly for training).
68
+
69
+ ## Quantization
70
+
71
+ - **Method:** INT8 ConvRot (row-wise INT8 with convolutional rotation), via ComfyUI-INT8-Fast.
72
+ - **Compute:** `torch._int_mm` on INT8 tensor cores; Triton kernels.
73
+ - **Quality:** near-lossless vs BF16/FP8 in testing (verified by generation).
74
+
75
+ ## License & attribution
76
+
77
+ Krea 2 is licensed under the **Krea 2 Community License Agreement**,
78
+ Copyright © Krea, Inc. All Rights Reserved. See `LICENSE` / https://www.krea.ai/krea-2-licensing.
79
+
80
+ These files are a **quantized derivative** of Krea 2; the Krea 2 model name is retained per the license.
81
+ Commercial use is permitted only for entities under $1M USD trailing-twelve-month revenue; above that an
82
+ Enterprise License from Krea is required. **Deployers must implement reasonable content-filtering** (e.g.
83
+ NudeNet, Falconsai/nsfw_image_detection, Hive, or human review) to prevent prohibited content, and disclose
84
+ AI-generated outputs where required.
85
+
86
+ **Credits:** [Krea](https://www.krea.ai) (base model) · [BobJohnson24/ComfyUI-INT8-Fast](https://github.com/BobJohnson24/ComfyUI-INT8-Fast) (INT8 ConvRot method).