OpenFlowLM-Next
OpenFlowLM-Next copied to clipboard
Install an image model from separate files (transformer GGUF + text encoder + VAE)
The problem
A FLUX.2 [klein] model is really three models working together:
- a text encoder (Qwen3-4B), which reads the prompt;
- an image transformer, which does the denoising steps;
- a VAE, which turns the result into pixels.
FLUX GGUF files you find online usually contain only the image transformer. The text encoder and the VAE come as separate files, often from different places. This is how tools like ComfyUI expect them.
Today everything we install is one model folder with one name. We have no way to say "this transformer file, plus that text encoder, plus that VAE".
What this issue is about
Let oflm install an image model from a set of files:
- work out which file is which part;
- check the parts belong together, meaning a klein 4B transformer with a text encoder and VAE of the matching shape;
- refuse a mismatch with a clear message, rather than making broken images.
Questions to answer
- How does a user name the set? As one registry entry listing all three sources, as three paths on the command line, or both?
- What happens when a part is missing? Fall back to the official one from Black Forest Labs, or refuse and say what's missing?
- How do we tell a klein 4B transformer from a different FLUX model? For example, by tensor names and shapes.
Needs to happen first
- #127: the image model itself.
- GGUF support (#14).
Done when
A user can point oflm at a klein transformer GGUF plus a text encoder and a VAE, and generate an image. Mismatched parts are refused with a message saying which part doesn't fit.