dflow-2b / README.md
multimodalart's picture
multimodalart HF Staff
Upload folder using huggingface_hub
135986d verified
|
Raw History Blame Contribute Delete
1.72 kB
---
title: dflow_2b
emoji: 🖼️
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 6.32.0
app_file: app.py
short_description: Text-to-image with the 2B dflow flow-matching model
python_version: "3.12"
startup_duration_timeout: 1h
---
# dflow_2b — text-to-image
Interactive demo of **[data-archetype/dflow_2b](https://huggingface.co/data-archetype/dflow_2b)**,
a 2B-parameter flow-matching text-to-image model (preview, version 0.2).
- **Sampling:** 50-step ER-SDE solver on a Beta(1.25, 1.25) log-SNR-shifted
schedule (resolution-shifted).
- **Guidance:** path-drop guidance (PDG, full path drop, constant scale 2.5,
suffix caption bias −4) with self-attention gain −0.03. Classifier-free
guidance is off by default; enabling it in the UI switches PDG to the
alternating mode (PDG and CFG on alternate steps, the model manual's
recipe, since PDG-full and CFG cannot share steps).
- **Prompts:** plain text — `(phrase:weight)` emphasis markup, `"quoted text"`
tokenized letter-by-letter — or a **stored JSON layout** (summary / frame /
items with 0–1000 `box_2d` boxes) compiled to the chosen image size
automatically.
- **Autoencoder:** [dinac3_96](https://huggingface.co/data-archetype/dinac3_96)
(DINOv3-based semantic autoencoder), downloaded automatically.
- **torch.compile is disabled** (ZeroGPU does not support JIT compilation);
the pipeline runs eagerly, which trades a little speed for compatibility.
Examples are the prompts, seeds and sizes the authors showcase in the model's
gallery.
## License
- Model weights: MG-BY-NC-2.0 (non-commercial).
- Text encoder: Gemma terms of use.
- `dflow` package code: Apache-2.0 (bundled verbatim from the model release).