A Lightweight FLUX2 or ZImage Inference engine – Written in Pure Pascal for (FPC, Lazarus or Delphi)
TL;DR
A lightweight, pure‑Pascal inference engine for text‑to‑image and image‑to‑image generation (FLUX2 / ZImage). Nativly parses .SafeTensor and .JSON files. Runs out‑of‑the‑box with no external dependencies. If OpenBLAS is present on Windows/Linux it will automatically bind to it and gain ~20× speed‑up. On macOS the native Accelerate framework is used.
- Zero Runtime – The binary can be shipped to any machine without requiring a Pascal compiler or DLLs.
- Safety & Readability – Pascal’s strong typing and modularity reduce bugs in tensor manipulation.
- Cross‑Platform – Works on Windows, Linux, macOS with minimal changes.
Currently only the following weights are shipped:
| Model | Model Format | Size |
|---|---|---|
| FLUX2‑Klein-4B | SafeTensor | ~14 GB |
| ZImage‑Turbo-9B | SafeTensor | ~40 GB |
This is an initial README, More descriptions installation guides to come