# DALL-E - mini version

**URL:** <https://discuss.huggingface.co/t/dall-e-mini-version/7324>\
**Category:** Flax/JAX Projects\
**Created:** [June 25, 2021, 1:52am UTC](https://discuss.huggingface.co/t/dall-e-mini-version/7324 "2021-06-25T01:52:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![valhalla](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/valhalla/32/4179_2.png) [@valhalla](https://discuss.huggingface.co/u/valhalla)\
**Post date:** [June 25, 2021, 12:00pm UTC](https://discuss.huggingface.co/t/dall-e-mini-version/7324/4 "2021-06-25T12:00:03Z")

</div>

Hey @boris

That’s a great idea, I’m super excited about this!

Regarding the dataset, here are a few that can be used for this

- [Conceptual Caption](https://ai.google.com/research/ConceptualCaptions/) - ~3.3M image-text pairs
- [Conceptual 12M](https://github.com/google-research-datasets/conceptual-12m) - 12M
- [WIT](https://github.com/google-research-datasets/wit)- ~37M

Also regarding architecture, seems using a simple scaled-up GPT2 as LM can also give good results (see [CogView](https://github.com/THUDM/CogView)). By simple, I mean no sparse attention or row-column attentions, etc which is used in the DALL-E I guess. And GPT2 is already available in JAX. And JAX is way faster on TPU than PT 😉

And if you look at this [discussion](https://github.com/lucidrains/DALLE-pytorch/discussions/131) it seems an even smaller model could give good enough results on the domain-specific dataset.

Also as suggested in the discussion above using the VQGAN from [taming-transformers](https://github.com/CompVis/taming-transformers/) as the images tokenizer can further reduce the complexity of training such models as the max image token length for these VQGAN models is 256 (way less than DALL-E’s VQVAE, which uses 1024), so overall 256 text tokens and 256 image tokens = 512, should be manageable on a single v3-8.

---

_[View the full topic](https://discuss.huggingface.co/t/dall-e-mini-version/7324)._
