VeizikNVIDIA and Apple Silicon builds are available now; edge builds are in preview.Release notes →
Engineering · image · memory

FLUX that stays put under memory pressure.

Give a resident image pipeline a tight VRAM budget and it can thrash, spill to the host or give out partway. veizik keeps FLUX.1 bounded and finishes — and draws the same picture whether the card is roomy or nearly full.

How it stays bounded

Memory set at the start, the picture fixed at the seed.

Four things keep FLUX’s memory a property of the render, and its picture a property of the prompt — at a reader’s level.

  • The working set is bounded before the first step. Memory is sized to the render — its resolution and step count — and reused on every step, so it does not grow as the render runs. The peak is set at the start, not discovered at the end.
  • The weights are read where they sit. veizik runs FLUX.1 straight from the published checkpoint with no converted, re-expanded copy, as a self-contained native engine — no Python, no CUDA toolkit — so what is on the card is the model and the render, nothing staged beside them.
  • It does not change what it draws as memory tightens. Squeeze the same render onto a smaller budget and veizik returns the bit-for-bit identical image: the output is a property of the prompt and the seed, not of how much headroom the card had. That is measured — the same render was held to a sequence of shrinking budgets and every output hashed the same.
  • Where a resident pipeline gives out, veizik finishes. At the tightest budgets another runtime’s low-memory mode fails outright; on the same card, veizik keeps rendering.
The other way

Same card, tighter budget, no room left.

We ran the same FLUX render through another runtime on the same card at a tight budget.

  • veizik. A bounded working set finishes on a tight budget and returns the same image bit-for-bit as the budget shrinks — the render you start is the render you get.
  • Another runtime (undisclosed). Given the same render on the same card at the tightest budget, its low-memory mode did not run — it failed to render.

Our own measurement, same prompt and seed, on one RTX 3090; the other runtime is left unnamed. The per-mode figures that back this up are measured; FLUX.1-dev is a non-commercial checkpoint, so they are not published here. What the page shows is the behaviour those figures describe — it fits, it finishes, and it draws the same picture as memory tightens.

Reproduce it

Render it twice, compare the files.

The determinism is one command, run on a roomy card and a tight one.

The determinism is reproducible with the shipped engine: render the same prompt and seed on a roomy card and again on a tight one, and compare the files.

render FLUX on a budget
# the shipped NVIDIA build renders FLUX.1; you supply the weights from Black Forest Labs
$ veizik install flux1dev
$ veizik run flux1dev "a red colored car" --weights <FLUX.1-dev folder> --seed 42 --out out.png
# render the same prompt and seed again on a tighter card, then compare the files:
$ sha256sum out.png # the hash matches, budget to budget

FLUX.1-schnell is Apache-2.0; FLUX.1-dev and the other variants are under the FLUX.1 [dev] Non-Commercial Licence from Black Forest Labs — which is why the per-mode memory figures are not published here. The engine and the method are the shipped ones; you supply the weights.