arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.12280cs.LG
收藏

在8位权重和激活下保持FP8质量上限:Ideogram 4.0的INT8和GGUF后训练量化用于消费级GPU

Holding the FP8 Quality Ceiling at 8-Bit Weights and Activations: INT8 and GGUF Post-Training Quantization of Ideogram 4.0 for Consumer GPUs

Transformer Lab

Deep Gandhi, Ali Asaria, Tony Salomone

AI总结:

本文对Ideogram 4.0模型进行INT8 W8A8量化,在无FP8张量核心的Ampere GPU上达到FP8质量水平,并优于NF4,同时GGUF Q4_K在质量-内存前沿上成为帕累托最优。

摘要:

后训练量化使得大型文本到图像扩散变压器能够在消费级GPU上运行,然而硬件特定的权衡很少被直接测量。我们对Ideogram 4.0进行量化——这是一个9.3B的流匹配扩散变压器(DiT),作为两个独立权重副本的单流34层骨干网络,用于无分类器引导,并由Qwen3-VL-8B编码器调节——针对缺乏FP8张量核心的Ampere RTX 3090 GPU。我们的INT8 W8A8方案(每通道权重、每令牌动态激活、SmoothQuant,以及一小部分高脆弱性层的混合精度保护)保持了FP8质量上限:在200个提示的基准测试中,INT8与FP8的配对同种子自举置信区间在Pick和CLIP上均包含零,而INT8相比NF4提升了$+1.9$ CLIP(95%置信区间$[+1.21,+2.64]$,排除零)。据我们所知,针对此类模型的逐类别OCR分析尚未见报道,该分析确认了文本可读性得以保留,并且消融实验将FFN下投影的保护隔离为主要的质量杠杆。我们的GGUF Q4_K量化在相同磁盘大小下优于NF4,并在质量-内存前沿上成为帕累托最优,配对置信区间排除零(Q8_0质量中性)。最后,我们描述了8位量化在哪些情况下有帮助,在哪些情况下没有:INT8的权重与FP8的占用空间匹配而非缩小,因此在Ampere上获得速度提升需要融合INT8内核。

英文摘要:

We study post-training quantization (PTQ) of Ideogram 4.0, a 9.3B flow-matching diffusion transformer (DiT) that realizes classifier-free guidance with two separate-weight copies of a single-stream backbone and is conditioned by a Qwen3-VL text encoder, targeting Ampere RTX~3090 GPUs, which lack FP8 tensor cores. Because Ideogram~4.0 is trained on structured JSON captions, we evaluate every variant under schema-valid JSON prompts produced by an LLM expander built to Ideogram's published caption specification, and score them with a battery spanning human-preference (HPSv2), CLIP, and PickScore for standalone quality; PP-OCR exact-match and edit distance for text; and PSNR/SSIM/LPIPS for fidelity to the FP8 reference (the highest-precision public checkpoint) output. On a 300-prompt benchmark with paired bootstrap confidence intervals, an INT8 W8A8 recipe (per-channel weights, per-token dynamic activations, SmoothQuant, and bf16 protection of a small high-fragility layer set) is statistically indistinguishable from FP8 on CLIP and PickScore (paired CIs include zero) and within ~0.004 HPSv2, and, at its 8-bit size, is the most faithful reproduction of the FP8 output (LPIPS 0.243 vs 0.277/0.306 for the half-size 4-bit baselines; the INT8-Q4_K gap excludes zero). A GGUF Q4_K quantization reaches the same standalone quality as the published NF4 baseline at the same on-disk size, making it the Pareto choice on the quality-memory frontier. We further show that under JSON prompts all four variants reach parity on standalone quality, the variants separate on fidelity and text rendering, not on aggregate image-quality scores, and that text legibility, near-zero when the model is prompted with raw strings, reaches 55% OCR exact-match under the JSON captions it expects. We release the INT8 W8A8 and GGUF Q4_K quantized weights on Hugging Face under a gated, non-commercial license.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑