prismflow_2b research preview

Research preview, version 0.06. This is not a user-ready model.

These weights are an early training checkpoint: about two passes over the training images, trained at low resolution only (256 px, with 10% of batches at 384 px). The model has never seen an image larger than the 384-px buckets (about 0.15 megapixel).

It is published to show the architecture and how it trains. For a more mature model from the same project, see dflow_2b.

prismflow_2b is an indie text-to-image model, trained from scratch on a single GPU. It is like its sibling dflow_2b (same autoencoder, training objective and most of the recipe) but with a different 2-billion-parameter architecture: shared-parameter cross-attention to the prompt, 16 register tokens, and time-modulated Block Attention Residuals (Block AttnRes): at each of 7 block boundaries, a learned, timestep-dependent softmax over the input embedding and the earlier blocks' outputs replaces the plain residual sum.

It takes ordinary captions and JSON layout captions. The layout format is close to MOSS-Image's, and MOSS-Image layouts are converted internally.

The package contains the weights, the prismflow inference code and ComfyUI nodes.

Example gallery ยท Manual ยท Technical report ยท Release notes

Samples after two low-resolution epochs, single shot (no seed picking), reusing dflow_2b's gallery prompts.

Boardwalk to a rugged coast Tortoiseshell cat in tall grass Rooster among tropical plants Studio portrait of a man
Narrow street of wooden houses Landscape oil painting Jazz festival poster from a JSON layout Woman holding a red perfume bottle
A man in a tuxedo and a woman in a green dress on a red carpet A modern resort building with lit verandas at night A dog on a shag rug in a loft with an arched window Hiking boots on a mountain slope above a sea of clouds

Training history

Checkpoint Hub tag Training step Resolution stage Epochs Training compute Gallery Technical report
0.06 (current) v0.06 378,000 256 px, with 10% of batches at 384 px about 2 about 146 GH200 GPU hours 0.06 gallery Step 378k measurements
0.05 v0.05 190,000 256 px, with 10% of batches at 384 px about 1 about 72 GH200 GPU hours 0.05 gallery Step 190k measurements

Loading a given tagged version

Current weights: 0.06, the exponential moving average (EMA) of the model at training step 378,000.

Release notes describe each release in full.

What's included

  • model.safetensors: the 2B denoiser.
  • text_encoder/: the first 18 encoder layers of T5Gemma 2 1B-1B, the part the model uses, under the Gemma Terms of Use.
  • prismflow/: the Python inference package.
  • comfyui/: ComfyUI nodes and example workflows.

The autoencoder, dinac3_96 version 1.51, is our own and downloads automatically on first use, at a pinned commit. The technical report covers the architecture, the guidance and the training.

Requirements

Python 3.12 or later, PyTorch 2.13 with CUDA, and an NVIDIA GPU with bfloat16 support and about 7 GB of free VRAM.

Generation is compiled with torch.compile. The first image takes about 17 seconds while the graphs are built; after that, a 384ร—384 image takes about 2 seconds on an RTX 4090 (50 steps, each with a conditional and an unconditional pass).

ComfyUI

The repository is a ComfyUI custom-node folder. Download it into custom_nodes and install its requirements:

cd ComfyUI/custom_nodes
hf download data-archetype/prismflow_2b_research_preview --local-dir prismflow_2b_research_preview
pip install -r prismflow_2b_research_preview/requirements.txt

To update later, run the same hf download command again. The manual explains how to install an older release.

Load prismflow_2b_research_preview/comfyui/workflows/prismflow_default.json, or drag any image from the gallery onto the canvas to get the workflow that made it. Start ComfyUI with --preview-method auto for live previews.

Python

hf download data-archetype/prismflow_2b_research_preview --local-dir prismflow_2b_research_preview
pip install -e prismflow_2b_research_preview
from prismflow.inference import GenerationSettings
from prismflow.pipeline import PrismFlowPipeline

pipe = PrismFlowPipeline.from_pretrained("prismflow_2b_research_preview")
image = pipe("A lighthouse on a cliff at dusk.", GenerationSettings(seed=7)).images[0]
image.save("lighthouse.png", pnginfo=pipe.png_info(image))

from_pretrained also takes the Hub id data-archetype/prismflow_2b_research_preview, in which case the files go to the Hugging Face cache. If you have diffusers installed, a thin diffusers-style wrapper is available as prismflow.diffusers_pipeline.PrismFlowDiffusersPipeline.

The defaults are 384ร—384, Euler ancestral on 50 steps, and classifier-free guidance at scale 2.8 whose unconditional pass is weakened through the model's depth routing (split-merge guidance).

Prompts

Write captions the way you would describe a photo or a painting: the subject, the setting, the light and the medium. Long prompts are fine, up to 6,144 tokens; longer ones raise an error rather than being cut.

Put text you want in the image in double quotes, as in A shop sign that reads "OPEN LATE". The model reads quoted text character by character, which helps with spelling.

Prompts are read exactly as written. Unlike dflow_2b, there is no (phrase:1.2) emphasis markup: parentheses and colons are ordinary text.

A layout describes the picture as a whole and then lists its elements, each with a label, a caption and a box [y0, x0, y1, x1] on a 0โ€“1000 scale. Text elements carry the exact string to render:

{"summary": {"canvas": "single",
             "caption": "A travel poster of a mountain above a lake."},
 "frame": {"caption": "The peak sits in the upper middle.",
           "palette": ["#F3E6C8", "#2F5D62"]},
 "items": [
   {"label": "object", "caption": "A snow-capped mountain.",
    "box_2d": [250, 180, 620, 820]},
   {"label": "text", "caption": "The title in tall serif capitals.",
    "text": "SILVER LAKE", "box_2d": [120, 110, 220, 890]}]}

Use it as the prompt in Python, or paste it into the PrismFlow Layout Encode node. MOSS-Image layout prompts and editable drafts go in the same places. The manual covers every field and works through a full poster.

Limitations

It is an early research preview: not many images come out quite right yet.

You are responsible for how you use the model and its outputs.

Licence

Third-party material is listed in ATTRIBUTION.md.

Citation

@misc{prismflow_2b,
  title  = {prismflow\_2b},
  author = {{Data Archetype}},
  year   = {2026},
  url    = {https://huggingface.co/data-archetype/prismflow_2b_research_preview},
  note   = {Research preview, version 0.06}
}
Downloads last month
30
Safetensors
Model size
2B params
Tensor type
F32
ยท
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for data-archetype/prismflow_2b_research_preview

Finetuned
(17)
this model

Paper for data-archetype/prismflow_2b_research_preview