deep1401 commited on
Commit
d861c12
·
verified ·
1 Parent(s): 8da2640

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: ideogram-4-non-commercial
4
+ license_link: https://huggingface.co/ideogram-ai/ideogram-4-fp8
5
+ base_model: ideogram-ai/ideogram-4-fp8
6
+ pipeline_tag: text-to-image
7
+ tags: [text-to-image, diffusion, flow-matching, quantization, gguf, q8_0, ideogram]
8
+ ---
9
+
10
+ # Ideogram 4 — GGUF Q8_0 (Transformer Lab)
11
+
12
+ A **GGUF Q8_0** (8.5 bits/weight) quantization of the Ideogram 4 DiT.
13
+
14
+ > **Note:** this checkpoint is the **quantized DiT only** (both CFG branches). To run it you also need the **Qwen3-VL text encoder and VAE** from the base repo [`ideogram-ai/ideogram-4-fp8`](https://huggingface.co/ideogram-ai/ideogram-4-fp8) and the custom inference code at [`github.com/ideogram-oss/ideogram4`](https://github.com/ideogram-oss/ideogram4). The quantization recipe and loader are included **in this repo** (`recipe-q8_0.json`, `gguf_loader.py`).
15
+
16
+ ## Why this one
17
+ Q8_0 is **quality-neutral** vs the FP8 reference (Pick 18.71 vs ceiling 18.71) — a clean,
18
+ near-lossless 8-bit GGUF at **19.7 GB**.
19
+
20
+ ## Method
21
+ Weight-only GGUF Q8_0 (round-to-nearest) of the DiT linears; non-linear tensors kept F16.
22
+
23
+ ## Numbers
24
+ - Quality-neutral vs FP8 on a 50-prompt slice. Latency ~176 s/img (48 steps, 1024², RTX 3090).
25
+
26
+ ## How to run (self-contained)
27
+
28
+ Everything you need is in this repo. The GGUF is the **quantized DiT only**, so step 1
29
+ fetches the text encoder + VAE + the inference package.
30
+
31
+ ```bash
32
+ python download_deps.py # one-time (needs gated access to ideogram-ai/ideogram-4-fp8)
33
+ python usage.py "a poster that says HELLO"
34
+ ```
35
+
36
+ Files here: `ideogram4-q8_0.gguf` (the Q8_0 DiT), `gguf_loader.py` (dequant + load, reference),
37
+ `download_deps.py`, `usage.py`, `recipe-q8_0.json`.
38
+
39
+ > `gguf_loader.py` is a **reference** (dequant math validated; standalone loader not yet
40
+ > GPU-tested). This is **not** a llama.cpp / stable-diffusion.cpp file — it loads only via
41
+ > this PyTorch path + the `ideogram4` pipeline.
42
+
43
+ ## License
44
+ Derived from Ideogram 4 under its **non-commercial, research-only** license. See `LICENSE`.