Add pipeline tag
#1
by
nielsr
HF staff
- opened
README.md
CHANGED
@@ -1,53 +1,54 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-nc-4.0
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
[\[
|
9 |
-
[\[
|
10 |
-
[\[
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
QLIP
|
15 |
-
|
16 |
-
We
|
17 |
-
We
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
25 |
-
|
|
26 |
-
| QLIP-B-
|
27 |
-
| QLIP-
|
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 |
-
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-4.0
|
3 |
+
pipeline_tag: image-text-to-text
|
4 |
+
---
|
5 |
+
|
6 |
+
# QLIP
|
7 |
+
|
8 |
+
[\[📂 GitHub\]](https://github.com/NVlabs/QLIP)
|
9 |
+
[\[📃 QLIP Tech Report\]](http://arxiv.org/abs/2502.05178)
|
10 |
+
[\[🔗 Project Page\]](http://nvlabs.github.io/QLIP/)
|
11 |
+
[\[🤗 HF Model\]](https://huggingface.co/NVIDIA/QLIP-L-14-392)
|
12 |
+
|
13 |
+
## Introduction
|
14 |
+
We introduce Quantized Language-Image Pretraining (**QLIP**), a visual tokenization method that combines state-of-the-art reconstruction quality with state-of-the-art zero-shot image understanding.
|
15 |
+
QLIP trains a binary-spherical-quantization-based autoencoder with reconstruction and language-image alignment objectives.
|
16 |
+
We are the first to show that the two objectives do not need to be at odds.
|
17 |
+
We balance the two loss terms dynamically during training and show that a two-stage training pipeline effectively mixes the large-batch requirements of image-language pre-training with the memory bottleneck imposed by the reconstruction objective.
|
18 |
+
We validate the effectiveness of QLIP for multimodal understanding and text-conditioned image generation with a single model.
|
19 |
+
Specifically, QLIP serves as a drop-in replacement for the visual encoder for LLaVA and the image tokenizer for LlamaGen with comparable or even better performance.
|
20 |
+
Finally, we demonstrate that QLIP enables a unified mixed-modality auto-regressive model for understanding and generation.
|
21 |
+
|
22 |
+
## Model Zoo
|
23 |
+
We provide the following models:
|
24 |
+
| model name | #bits | CR<sub>↑<sub> | 0-shot<sub>↑<sub> | rFID<sub>↓<sub> | HF Link |
|
25 |
+
| ------------- | ------ | ----- | ------ | ---- | ------- |
|
26 |
+
| QLIP-B-16-256 | 28 | 219.4 | 74.3 | 3.21 | [🤗 link](https://huggingface.co/NVIDIA/QLIP-B-16-256) |
|
27 |
+
| QLIP-B-8-256 | 28 | 54.8 | 75.6 | 0.70 | [🤗 link](https://huggingface.co/NVIDIA/QLIP-B-8-256) |
|
28 |
+
| QLIP-L-14-392 | 28 | 168 | 79.1 | 1.46 | [🤗 link](https://huggingface.co/NVIDIA/QLIP-L-14-392) |
|
29 |
+
|
30 |
+
Note:
|
31 |
+
- **CR**: compression ratio = 24/(#bits)*patch_size^2;
|
32 |
+
- **0-shot**: zero-shot classification accuracy on IN-1k-val;
|
33 |
+
- **rFID**: reconstruction FID on IN-1k-val.
|
34 |
+
|
35 |
+
## Citing QLIP
|
36 |
+
|
37 |
+
```bibtex
|
38 |
+
@article{zhao2025qlip,
|
39 |
+
title={QLIP: Text-Aligned Visual Tokenization Unifies Auto-Regressive Multimodal Understanding and Generation},
|
40 |
+
author={Zhao, Yue and Xue, Fuzhao and Reed, Scott and Fan, Linxi and Zhu, Yuke and Kautz, Jan and Yu, Zhiding and Krähenbühl, Philipp and Huang, De-An},
|
41 |
+
journal={arXiv preprint arXiv:2502.05178},
|
42 |
+
year={2025}
|
43 |
+
}
|
44 |
+
```
|
45 |
+
|
46 |
+
## Acknowledgement
|
47 |
+
The project builds upon the following open-source efforts:
|
48 |
+
- [EVA-CLIP](https://github.com/baaivision/EVA/tree/master/EVA-CLIP/rei): We use EVA-CLIP as initialization which significantly speeds up the training convergence.
|
49 |
+
|
50 |
+
- [LLaVA](https://github.com/haotian-liu/LLaVA): We use LLaVA to evaluate the multimodal understanding performance.
|
51 |
+
|
52 |
+
- [LlamaGen](https://github.com/FoundationVision/LlamaGen): We build the text-to-image generation evaluation on top of LlamaGen.
|
53 |
+
|
54 |
+
- [Lingua](https://github.com/facebookresearch/lingua): We build the unified multimodal model on top of Lingua.
|