RD Flow 64 is a pixel art text-to-image model trained from scratch by Retro Diffusion at 64 × 64 pixels: the image generation component is an hourglass-shaped flow matching Transformer with 2.71 billion parameters (fp16 file size 542 MB), while prompt encoding uses a 31 billion parameter encoder derived from the first 27 layers of Qwen3-VL-4B-Instruct (6.2 GB, provided in the same repository). It generates a palette during sampling, where each pixel points to a color in the palette; the author states an average of about 37 colors per image. It can produce transparent sprites or full-frame images, and also allows locking colors by providing a custom palette. The training data consists of 525,430 images, of which 67% were generated by Retro Diffusion's own models. The author claims that on an RTX 4090, it generates 4 images in 0.7 seconds (peak VRAM usage 6.6 GB); when prompt encoding is offloaded to the CPU, image generation uses only 0.8 GB of VRAM.
Why It Matters Rather than generating a large image and then downscaling it, every pixel takes its color from an integrated palette, and you can lock your own color scheme; the image generation component runs on just 2 GB of VRAM, and ComfyUI nodes are included in the same repository.
Hugging Face Likes 10 · Hugging Face Trending Score 10 · Hugging Face Downloads 0
License: Non-commercial · ComfyUI: Mentioned in model card · VRAM: 7 GB
Reasons
- Hugging Face Likes 10 (indicating attention only); inference code is MIT licensed, the same GitHub repository serves as a ComfyUI node package with ready-made workflows, and the official website offers a free trial page without login requirements.
- The model card and GitHub README list time-to-prompt-encoding and image generation metrics, along with peak memory usage, on machines such as RTX 4090, 2 GB GPUs, 8 GB Mac mini M2, and pure CPU setups. It also specifies default settings of 16 steps and guidance scale 4.
Usage
- Command line: Run
git clone https://github.com/Retro-Diffusion/rd-flow-64,装好 torch, thenpip install -r requirements.txt, followed bypython generate.py "a long English description". On the first run, it automatically downloads approximately 6.8 GB of weights from Hugging Face. Use--opaquefor full-frame images,--paletteto lock the color palette, and--nto change the number of images generated per run. - ComfyUI: Clone the same repository into
ComfyUI/custom_nodesand installrequirements.txtusing ComfyUI's Python environment. After restarting, drag inworkflows/rd-flow-64.json. To save actual 64 × 64 images, change the scale parameter of the Generate node to 1 (the default 8x is only for preview upscaling). - Prompts should be long English descriptions of 120–200 words (covering the subject, colors and positions of each part, pose, perspective, background, outlines, and shadows). The repository's
PROMPTING.mdprovides structure and examples. You can also add--expandto have a model on local Ollama or OpenRouter write the prompt for you.
Risks
- Non-commercial: Weights are licensed under CC BY-NC 4.0, requiring attribution to Retro Diffusion; commercial use requires switching to Retro Diffusion's official service for image generation. The prompt encoder retains Qwen's Apache 2.0 license.
- Output is limited to 64 × 64; performance degrades noticeably with short prompts, it cannot render text, complex scenes lose detail, and composition changes little when switching seeds. Two-thirds of the training images were generated by their own models, resulting in a style that leans towards common game art conventions.
- The ComfyUI nodes are third-party code and have not been audited; speed and VRAM figures are self-reported by the author.