data-archetype's standalone text-to-image model dflow_2b: features a 2B denoiser, a T5Gemma 2 270M text encoder, and a custom autoencoder dinac3_96. It was trained from scratch on a single GPU, using a dataset primarily composed of photographs and classical paintings. Updated to version 0.25 on 11 27: switched to weight averaging from training step 611,000, changed the default sampling to 50-step Euler ancestral, and added a new example gallery. In addition to standard descriptions, it can read JSON layout prompts (similar in format to MOSS-Image, with automatic conversion of MOSS-Image layouts).
Why it matters Runs on approximately 7GB of VRAM, includes ComfyUI nodes, and supports JSON layouts with coordinate boxes for posters and text, making it suitable for researching low-cost training from scratch
Rising score 31 · Likes 32 · Downloads 269
Reasons
- The author states that approximately 7 GB of free VRAM is required; compiling the first image takes an additional 30 to 45 seconds, after which generating one 832×1216 image on an RTX 4090 takes about 10 seconds
- Prompts are limited to 6,144 tokens; text within double quotes is read character-by-character, which aids spelling; layout prompts assign each element a label, description, and 0–1000 coordinate box, with text elements specifying the string to be rendered
- The repository itself is a ComfyUI custom node directory, including default workflows; dragging images from the gallery onto the canvas restores the workflow. It also offers Python and diffusers-style interfaces
Usage
- ComfyUI: In the custom_nodes directory, run hf download data-archetype/dflow_2b --local-dir dflow_2b, then pip install -r dflow_2b/requirements.txt, and load comfyui/workflows/dflow_default.json
- Python: After running pip install -e dflow_2b, use DFlowPipeline.from_pretrained("dflow_2b") to generate images; requires Python 3.12+, PyTorch 2.13, and an NVIDIA GPU supporting bfloat16
Risks
- The author notes this is a preview version still under training: results vary with prompts and seeds, hands and human anatomy often contain errors, small text and long paragraphs are unstable, reliability decreases beyond approximately one million pixels, and performance is weaker for styles far from photographs and classical paintings
- Weights are licensed under MG-BY-NC 2.0 non-commercial license, and the text encoder component is subject to Gemma's terms of use; this entry has not been run