LucasFang/FLUX-Reason-6M
Viewer • Updated • 5.89M • 21.8k • 119
A small multilingual text-to-image model (369M parameters + frozen Qwen3-1.7B) that generates 512×512 images. It continues from caikybaldo999/zyi-256-flash and was fine-tuned in under 10 hours on a single RTX PRO 6000.
| ZYI-256 Flash | ZYI 2 Flash | |
|---|---|---|
| Resolution | 256×256 (64 tokens) | 512×512 (256 tokens) |
| Text encoder | flan-t5-base | Qwen/Qwen3-1.7B + 2-layer text refiner |
| Prompt languages | English | English, Portuguese and others (Qwen3 is multilingual) |
| Positional encoding | 2D RoPE on an 8×8 grid | 2D RoPE with interpolated positions (16×16 grid) |
pip install torch diffusers "transformers>=4.51" safetensors huggingface_hub
from huggingface_hub import hf_hub_download
import importlib.util
path = hf_hub_download("caikybaldo999/zyi-2-flash", "zyi2.py")
spec = importlib.util.spec_from_file_location("zyi2", path)
zyi2 = importlib.util.module_from_spec(spec); spec.loader.exec_module(zyi2)
pipe = zyi2.Zyi2Pipeline("caikybaldo999/zyi-2-flash")
pipe("a misty mountain lake at sunrise with pine trees", seed=0)[0].save("lake.png")
pipe("um gato laranja dormindo em cima de um sofá azul", seed=1)[0].save("gato.png")
Runs in bfloat16 on Ampere or newer GPUs and in float32 on older GPUs (e.g. T4) or CPU.
Base model
caikybaldo999/zyi-256-flash