Text-to-Image
Diffusers
Safetensors
English
Chinese
QwenImage21Pipeline
bitsandbytes
int8
image-generation
image-editing
rgba
8-bit precision
Instructions to use ixim/Image21-INT8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ixim/Image21-INT8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ixim/Image21-INT8", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 6,656 Bytes
ba48d54 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | {
"process_isolation": [
{
"name": "bf16",
"launcher_pid": 7376,
"inference_pid": 25920,
"exit_code": 0,
"start_allocated_bytes": 0,
"inference_pid_absent_from_gpu_after_exit": true
},
{
"name": "int8",
"launcher_pid": 35376,
"inference_pid": 29636,
"exit_code": 0,
"start_allocated_bytes": 0,
"inference_pid_absent_from_gpu_after_exit": true
},
{
"name": "young_bf16",
"launcher_pid": 31516,
"inference_pid": 35212,
"exit_code": 0,
"start_allocated_bytes": 0,
"inference_pid_absent_from_gpu_after_exit": true
},
{
"name": "young_int8",
"launcher_pid": 5400,
"inference_pid": 11368,
"exit_code": 0,
"start_allocated_bytes": 0,
"inference_pid_absent_from_gpu_after_exit": true
}
],
"original_and_corrected_identical_images": [
[
"",
"bf16",
"portrait",
42
],
[
"",
"bf16",
"portrait",
123
],
[
"",
"bf16",
"english_text",
42
],
[
"",
"bf16",
"english_text",
123
],
[
"",
"bf16",
"chinese_text",
42
],
[
"",
"bf16",
"chinese_text",
123
],
[
"",
"bf16",
"composition",
42
],
[
"",
"bf16",
"composition",
123
],
[
"",
"bf16",
"texture",
42
],
[
"",
"bf16",
"texture",
123
],
[
"",
"bf16",
"rgba",
42
],
[
"",
"bf16",
"rgba",
123
],
[
"",
"bf16",
"edit",
42
],
[
"",
"bf16",
"edit",
123
],
[
"",
"int8",
"portrait",
42
],
[
"",
"int8",
"portrait",
123
],
[
"",
"int8",
"english_text",
42
],
[
"",
"int8",
"english_text",
123
],
[
"",
"int8",
"chinese_text",
42
],
[
"",
"int8",
"chinese_text",
123
],
[
"",
"int8",
"composition",
42
],
[
"",
"int8",
"composition",
123
],
[
"",
"int8",
"texture",
42
],
[
"",
"int8",
"texture",
123
],
[
"",
"int8",
"rgba",
42
],
[
"",
"int8",
"rgba",
123
],
[
"",
"int8",
"edit",
42
],
[
"",
"int8",
"edit",
123
],
[
"young_woman",
"bf16",
"young_chinese_woman",
42
],
[
"young_woman",
"bf16",
"young_chinese_woman",
123
],
[
"young_woman",
"int8",
"young_chinese_woman",
42
],
[
"young_woman",
"int8",
"young_chinese_woman",
123
]
],
"diagnostic_identical_images": [
"edit_fresh",
"portrait",
"edit_repeat",
"edit_rgb",
"edit_no_cache"
],
"initial_peak": {
"bf16": 19.081242561340332,
"int8": 23.080156326293945
},
"corrected_peak": {
"bf16": 19.081242561340332,
"int8": 12.087220668792725
},
"load_peak": {
"bf16": 0.0,
"int8": 9.335469722747803
},
"native": {
"bf16": {
"name": "edit_native",
"seed": 42,
"input_mode": "original",
"kv_cache": true,
"width": 2048,
"height": 2048,
"steps": 40,
"cfg": 1.0,
"vae_tiling": true,
"seconds": 233.8040861999998,
"peak_allocated_bytes": 28467959296,
"image_sha256": "c551ac809ccb48146d1ad842d75975c0e9663d388a368010d2bfccb7883eeeec",
"input_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa"
},
"int8": {
"name": "edit_native",
"seed": 42,
"input_mode": "original",
"kv_cache": true,
"width": 2048,
"height": 2048,
"steps": 40,
"cfg": 1.0,
"vae_tiling": true,
"seconds": 213.56440760000078,
"peak_allocated_bytes": 23243435008,
"image_sha256": "b6af18d8688bb2669632adf0cfae962bc34431e30e935014997010cde5c2ca59",
"input_sha256": "01e37e178fb0d35d5c706b7edd76bc1a6c5b50ec3536901a467fd45295d097aa"
}
},
"editing_conclusion_en": "At 1024px, enabling VAE tiling alone still produces excessive sharpening. At 2048px with the same tiling configuration, both BF16 and INT8 produce a red sweater while substantially preserving the soft lighting and natural skin texture. This controlled comparison supports resolution sensitivity in this editing case (including reference-image preprocessing). It does not identify a deeper model/pipeline cause or establish universal editing reliability.",
"editing_conclusion_zh": "1024px 下仅开启 VAE 分块仍过度锐化;2048px 配合同样的分块设置时,BF16 和 INT8 均生成红色毛衣,并较好保持柔和光线与自然皮肤质感。这一受控对照支持该编辑用例对分辨率敏感(包括参考图预处理分辨率),但尚未确定更深层的模型/流水线原因,也不能证明所有编辑任务均可靠。",
"images": [
{
"path": "input.png",
"en": "Shared input",
"zh": "两种精度共同输入"
},
{
"path": "int8-original/edit_fresh.png",
"en": "Fresh-process INT8, 1024px (failure reproduced)",
"zh": "新进程 INT8,1024px(复现失败)"
},
{
"path": "int8-original/edit_rgb.png",
"en": "1024px RGB input (not improved)",
"zh": "1024px RGB 输入(未改善)"
},
{
"path": "int8-original/edit_no_cache.png",
"en": "1024px KV cache off (not improved)",
"zh": "1024px 关闭 KV 缓存(未改善)"
},
{
"path": "int8-fixed/vae_roundtrip.png",
"en": "VAE-only round trip (no diffusion editing)",
"zh": "仅 VAE 编解码(未进行扩散编辑)"
},
{
"path": "int8-1024-tiled/edit_fresh.png",
"en": "1024px with VAE tiling (not improved)",
"zh": "1024px 加 VAE 分块(未改善)"
}
],
"aborted_native_untiled": "Stopped owned diagnostic process during prolonged VAE decoding after board memory saturated; no completed output or timing.",
"profiler_note": "The early after_delete event retained bound-method references and is not evidence of process-exit cleanup. All process isolation claims use fresh startups and explicit subprocess exits."
} |