Add pipeline tag

#1
by nielsr HF staff - opened
Files changed (1) hide show
  1. README.md +54 -53
README.md CHANGED
@@ -1,53 +1,54 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
4
-
5
- # QLIP
6
-
7
- [\[📂 GitHub\]](https://github.com/NVlabs/QLIP)
8
- [\[📃 QLIP Tech Report\]](http://arxiv.org/abs/2502.05178)
9
- [\[🔗 Project Page\]](http://nvlabs.github.io/QLIP/)
10
- [\[🤗 HF Model\]](https://huggingface.co/NVIDIA/QLIP-L-14-392)
11
-
12
- ## Introduction
13
- 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.
14
- QLIP trains a binary-spherical-quantization-based autoencoder with reconstruction and language-image alignment objectives.
15
- We are the first to show that the two objectives do not need to be at odds.
16
- 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.
17
- We validate the effectiveness of QLIP for multimodal understanding and text-conditioned image generation with a single model.
18
- 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.
19
- Finally, we demonstrate that QLIP enables a unified mixed-modality auto-regressive model for understanding and generation.
20
-
21
- ## Model Zoo
22
- We provide the following models:
23
- | model name | #bits | CR<sub>&uarr;<sub> | 0-shot<sub>&uarr;<sub> | rFID<sub>&darr;<sub> | HF Link |
24
- | ------------- | ------ | ----- | ------ | ---- | ------- |
25
- | QLIP-B-16-256 | 28 | 219.4 | 74.3 | 3.21 | [🤗 link](https://huggingface.co/NVIDIA/QLIP-B-16-256) |
26
- | QLIP-B-8-256 | 28 | 54.8 | 75.6 | 0.70 | [🤗 link](https://huggingface.co/NVIDIA/QLIP-B-8-256) |
27
- | QLIP-L-14-392 | 28 | 168 | 79.1 | 1.46 | [🤗 link](https://huggingface.co/NVIDIA/QLIP-L-14-392) |
28
-
29
- Note:
30
- - **CR**: compression ratio = 24/(#bits)*patch_size^2;
31
- - **0-shot**: zero-shot classification accuracy on IN-1k-val;
32
- - **rFID**: reconstruction FID on IN-1k-val.
33
-
34
- ## Citing QLIP
35
-
36
- ```bibtex
37
- @article{zhao2025qlip,
38
- title={QLIP: Text-Aligned Visual Tokenization Unifies Auto-Regressive Multimodal Understanding and Generation},
39
- 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},
40
- journal={arXiv preprint arXiv:2502.05178},
41
- year={2025}
42
- }
43
- ```
44
-
45
- ## Acknowledgement
46
- The project builds upon the following open-source efforts:
47
- - [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.
48
-
49
- - [LLaVA](https://github.com/haotian-liu/LLaVA): We use LLaVA to evaluate the multimodal understanding performance.
50
-
51
- - [LlamaGen](https://github.com/FoundationVision/LlamaGen): We build the text-to-image generation evaluation on top of LlamaGen.
52
-
53
- - [Lingua](https://github.com/facebookresearch/lingua): We build the unified multimodal model on top of Lingua.
 
 
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>&uarr;<sub> | 0-shot<sub>&uarr;<sub> | rFID<sub>&darr;<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.