whatmodel.sh / image / IF-M
IF-M
↗ share
+ contribute
IF-M is an open-weights image model from DeepFloyd, released April 2023. Its published size is 0.4B parameters. Licence: deepfloyd-if-license.
Catalogue identity notes
DeepFloyd/IF-I-M-v1.0 (400M) with IF-II-M-v1.0 (450M) per the DeepFloyd IF model zoo. Memory estimate: the IF README states the whole pipeline runs with model CPU offload in as little as 14 GB VRAM (T5-XXL text encoder dominates); gated licence acceptance required.
Score within the LMArena text-to-image comparison set only.
$ how it compares
The image models ranked either side of IF-M, out of 197 with a score, then more from DeepFloyd.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 175 | 32±4 | local | |||
| 176 | 32±4 | local | |||
| 177 | 31±3 | local | |||
| 178 | 30±3 | local | |||
| 179 | 30±4 | comparison only | |||
| more from DeepFloyd | |||||
| 166 | 35±2 | local | |||
| 171 | 33±3 | local | |||
$ what it's good at
text to image▂▅▅▃▄▄█▃▁▂▁▁ #111 of 126 * · 43% 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. Trails Dreamlike Photoreal 2.0 here, though they rank lower overall.
other tests2 not in a task · 54% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvalAlign human text-image alignment score | 5.0800 mean human alignment score ✎ | █▄▄·█·▄█▄▄·▄ beats 7/11 | 42% |
| HEIM text-image alignment (aspect win rate, v1.1.0) | 56.6% ✎ | ▁····█▁·▁··▁ beats 3/9 | 12% |
$ where to run it
Other ways to run it
- Run it as published · needs ~14 GB, NVIDIA only · from github.com/deep-floyd (official)
uv run --with diffusers --with transformers --with accelerate --with torch --with sentencepiece --with protobuf python -c "import torch; from diffusers import DiffusionPipeline; s1=DiffusionPipeline.from_pretrained('DeepFloyd/IF-I-M-v1.0', variant='fp16', torch_dtype=torch.float16); s1.enable_model_cpu_offload(); s2=DiffusionPipeline.from_pretrained('DeepFloyd/IF-II-M-v1.0', text_encoder=None, variant='fp16', torch_dtype=torch.float16); s2.enable_model_cpu_offload(); e,n=s1.encode_prompt('a cat holding a sign'); i=s1(prompt_embeds=e, negative_prompt_embeds=n, output_type='pt').images; s2(image=i, prompt_embeds=e, negative_prompt_embeds=n, output_type='pil').images[0].save('out.png')"
Official weights and documentation: huggingface.co/DeepFloyd ↗
$ how the score was worked out · GenEval authors' results: djg… 43%, EvalAlign: Supervised Fine-Tu… 42%, HEIM: Holistic Evaluation of… 12%
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 |
|---|---|---|
| 1 | 43% | |
| 1 | 42% | |
| 1 | 12% | |
| prior · pull toward the middle | 3% | |
| weighted average | = 31.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