← all repositories
kuprel/min-dalle

DALL-E Mini on a dependency diet: PyTorch and little else

A PyTorch port of DALL-E Mini that trims the fat so you can generate images without the JAX ecosystem.

min-dalle
Not currently ranked — collecting fresh signals.
star history

What it does

min-dalle is a bare-bones inference engine for DALL-E Mini (including the Mega weights), converted from the original Flax/JAX implementation into pure PyTorch. It downloads the pretrained models on first use, then generates image grids from text prompts on GPU or CPU. The entire dependency stack is just numpy, requests, pillow, and torch—no JAX, no Transformers library, no ceremony.

The interesting bit

The project isn’t a rewrite of the model architecture; it’s a surgical extraction of the inference path. The author converted the Flax weights to PyTorch and threw away everything that doesn’t directly serve token generation and detokenization. The result is a compact package that still runs the Mega model, complete with progressive decoding streams and a seamless tiling mode that tiles in token space rather than pixel space.

Key highlights

  • Runs the full DALL-E Mega weights in PyTorch, not a smaller replica.
  • Cold-start generation of a 3×3 grid takes roughly 55 seconds on a Colab T4, 33 seconds on a P100, and 15 seconds on an A10G.
  • Only four third-party dependencies: numpy, requests, pillow, and torch.
  • Supports progressive output streaming for interactive notebooks, plus a seamless token-space tiling option.
  • Can output raw FloatTensor grids for manual processing, or individual PIL images.

Caveats

  • Progressive streaming incurs a slight detokenizer delay per frame, so it trades raw speed for interactivity.
  • The Flax-to-PyTorch conversion code lives in a separate repository, so understanding the weight port requires a small detour.

Verdict

Worth a look if you want DALL-E Mega inference in a pure PyTorch environment without installing half of Google’s ML stack. Skip it if you need training, fine-tuning, or the full DALL-E Mini research codebase—this is strictly inference-only and minimal.

Frequently asked

What is kuprel/min-dalle?
A PyTorch port of DALL-E Mini that trims the fat so you can generate images without the JAX ecosystem.
Is min-dalle open source?
Yes — kuprel/min-dalle is open source, released under the MIT license.
What language is min-dalle written in?
kuprel/min-dalle is primarily written in Python.
How popular is min-dalle?
kuprel/min-dalle has 3.5k stars on GitHub.
Where can I find min-dalle?
kuprel/min-dalle is on GitHub at https://github.com/kuprel/min-dalle.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.