whatmodel.sh / image / CogView2
CogView2
↗ share
+ contribute
CogView2 is an open-weights image model from THUDM, released April 2022. Licence: apache-2.0.
Catalogue identity notes
THUDM/CogView2 (hierarchical 6B-9B-9B transformer per its README). Comparison-only: runs only through the SwissArmyTransformer research code; no single copy-pasteable command or memory figure.
Model information sources
Maker-stated size of the pretrained CogLM transformer: 'We pretrain a 6B-parameter transformer' (CogView2 paper). The image tokenizer and the super-resolution modules are not separately counted. Observed 2026-10-07.
Score within the LMArena text-to-image comparison set only.
$ how it compares
The image models ranked either side of CogView2, out of 197 with a score.
| # | model | score | where |
|---|---|---|---|
| 193 | 23±4 | local | |
| 194 | 19±3 | local | |
| 195 | 17±4 | comparison only | |
| 196 | 16±4 | comparison only | |
| 197 | 1±4 | local |
$ what it's good at
text to image▂▅▅▃▄▄█▃▁▂▁▁ #113 of 126 * · 0.4% of its score · 1 test
Beats Latent Diffusion text2img-large (LDM-KL-8-G, LAION-400M), VQ-Diffusion (ITHQ), VILA-U 7B (256px) here, though they rank higher overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HPS v2 benchmark (4-style average) | 26.5% ✎ | ▃··▃▅·▅·▅▅█▅ beats 6/14 | 0.4% |
other tests3 not in a task · 93% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ImageReward human ranking of T2I models (#wins, real user prompts) lab | 74.0000 wins ✎ | ▄·········█▄ beats 0/3 | 63% |
| HEIM text-image alignment (aspect win rate, v1.1.0) | 7.4% ✎ | ▃····█▁·▁··▁ beats 0/9 | 16% |
| MS-COCO 2014 zero-shot FID-30k at 256px ↓ (ImageReward protocol) lab | 26.2000 FID ✎ | ▄··········█ beats 0/2 | 13% |
$ where to run it
Other ways to run it
version
- Run it as published · needs ~43.7 GB, NVIDIA only · from github.com/zai-org
git clone https://github.com/zai-org/CogView2 && cd CogView2 && pip install -r requirements.txt && git clone https://github.com/Sleepychord/Image-Local-Attention && (cd Image-Local-Attention && python setup.py install) && SAT_HOME=./sat_models python cogview2_text2image.py --mode inference --fp16 --input-source input.txt --output-path samples_sat_v0.2 --batch-size 16 --max-inference-batch-size 8
Weights and documentation: github.com/zai-org ↗
$ how the score was worked out · ImageReward: Learning and Eva… 76%, HEIM: Holistic Evaluation of… 16%, tgxs002/HPSv2 repository READ… 0%
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
| source | results | share of the score |
|---|---|---|
| 2 | 76% | |
| 1 | 16% | |
| 1 | 0% | |
| prior · pull toward the middle | 7% | |
| weighted average | = 1.4 |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json