OpenFlowLM-Next icon indicating copy to clipboard operation
OpenFlowLM-Next copied to clipboard

Top-tier models: bring the recommended set up to the production bar

Open Cyronius opened this issue 3 weeks ago • 8 comments

#239 adds a production bar to AGENTS.md: what a model needs before we call it supported. This issue tracks the first models we want to bring up to that bar, the "top tier".

Each model gets its own PR that says "Part of #240". Draft PR #241 adds the README table where these models will be listed once they pass.

Targets

Target Where it stands What it still needs
flux2-klein:4b (#127) Runs fully on the NPU, 3.9-10x faster than the iGPU A recorded Images API pass, and a run from a published GGUF
BERT embeddings (bge x3, minilm, nomic, gte) Open engine, throughput measured A baseline comparison, a measurement at 512-token input, and an oflm-test --embed pass
whisper-v3:turbo 3/3 transcription pass on the open engine A registry pull must get the open engine; the decoder runs on the host
qwen3.6-moe:35b-a3b The nearest LLM: prefill 184-196 tok/s, decode 14.4 tok/s (closed engine: 15.4), oflm serve passes A drafter (DFlash is planned), a 32k context test, a run from a published GGUF
gpt-oss:20b (#91, #237) #237 is in progress oflm serve, a drafter, a context test, and a fix for the memory problem
qwen3.5:4b (or :9b) A mid-size dense model with vision, reasoning and tool calling A drafter, a context test, a run from a published GGUF, prefill numbers
Granite 4.2 3B (#208) Ships prompt lookup and Uno, and serves through oflm A registry entry, then an audit against the bar. It could be the first LLM that passes.
Ternary Bonsai 2 27B A 27B reasoning model in ~7 GB on 2-bit NPU kernels. Decode ~6.4 tok/s, a 512-token prompt in 4.4 s (~116 tok/s). DFlash 2 with a ternary drafter, stacked with prompt lookup, gives 9.0-9.8 tok/s (1.56-1.75x) on the CLI See below
~Qwen3.8-27B~ ~On the list for community demand, not speed. Runs on the open engine at about 2.2 tok/s decode (455 ms/token in #234). With #234, a 256-token prompt takes 29.4 s (about 8.7 tok/s)~ See below

Ternary Bonsai 2 needs more than the others, because its work is not on main:

  • #161, #201 and #203 were merged into feat/qwen35-27b, not main. They need to land on main first.
  • It loads through q4nx-build today. It needs to read PrismML's PQ2_0 GGUF directly. The PQ2_0 format is published only by PrismML, so that is the stated source.
  • It has no registry entry.
  • Its longest context test is 8192 tokens; the GGUF states 262,144.
  • It has no oflm bench results. Reasoning and tool calling through oflm serve are not checked.
  • #234 changes Qwen3.8-27B prefill in the same code. Whichever lands second rebases onto the other.

~Qwen3.8-27B is the exception to "runs well". It is slow on the NPU, but the community asks for it, so it is on the list. The rest of the bar still applies: "near optimal" means profiled, with what is left named.~

  • ~Its registry entry loads model.q4nx from the Qwen3.8-27B-NPU2 repo. It needs to read a published GGUF directly.~
  • ~The model ships an MTP head, which is the obvious drafter. On a Strix Point iGPU, MTP took decode from 4.4 to 8.6 tok/s (51% acceptance at 4 draft tokens). The NPU needs the same multi-token verify step.~
  • ~#234 (prefill scheduling and host overhead) is open, and it touches the same code as Bonsai 2.~
  • ~On 2026-10-06, prompts under 64 tokens ran one token at a time. If that is still true, it fails the block-route item.~
  • ~It needs a context test past 4096, oflm bench results, and a check of reasoning and tool calling through oflm serve.~

Where a row says "a published GGUF": #239 prefers Unsloth's, but the review there points out that the source matters less than the repo layout and quant types. That wording is still open on #239.

How the work is split

  • One PR per model, referencing this issue. It stays a draft until each item on the bar is met or has a measured reason in the PR.

  • Each PR updates the model's entry in src/model_list.json.

  • When a model passes, its row goes into the README table, and its oflm bench results go on its benchmark page.

  • [ ] flux2-klein:4b

  • [ ] BERT embeddings

  • [ ] whisper-v3:turbo

  • [ ] qwen3.6-moe:35b-a3b

  • [ ] gpt-oss:20b

  • [ ] qwen3.5:4b (or :9b)

  • [ ] Granite 4.2 3B

  • [ ] Ternary Bonsai 2 27B

  • [ ] Qwen3.8-27B

Other people's work

  • The benchmark pages in docs/docs/benchmarks/ and the support-status matrix in docs/docs/models/ belong to their maintainers. Model PRs add oflm bench results to the existing page for the family. They do not restructure or replace existing tables. If a page needs a new layout, we ask first.
  • The README table is an interim solution. It gives the recommended set a visible place now. Where that list lives in the long run is the maintainers' decision: the support-status matrix, the benchmark pages, or a field in model_list.json that oflm list can show. When that is decided, the table moves there and the README links to it.
  • The bar itself is still open to changes on #239.

Cyronius avatar Nov 13 '26 18:11 Cyronius

and here's where i definitely need input -- what models should we call 'recommended' ?

recommended to me means community demand + optimized + how well it runs. There are a couple of models that I've included that cannot run well on the npu, but due to extreme community demand we must include them (qwen 3.8 27b, I'm looking at you). So this is not a hard and fast rule, just where my head is at.

this will help me guide which models i put my work towards. i'd rather have a small set of excellent models than wide support. i really think our support is broad enough at this point.

@Atomic-Germ and anyone else -- thoughts?

Cyronius avatar Nov 13 '26 19:11 Cyronius

@Cyronius I think we should suggest the ones that run the best, the ones that don't really run anywhere else; those ones I'd say we can support in the bug fixing sense.

By the way that 27b kernel worked on some crazy 40b Frankenstein I was expecting to just fail. By that same token I'd consider it somewhat experimental - fitting since the architecture itself is. That can be a feature but probably not something we can strongly stand by.

Atomic-Germ avatar Nov 13 '26 20:11 Atomic-Germ

@Cyronius I think we should suggest the ones that run the best, the ones that don't really run anywhere else; those ones I'd say we can support in the bug fixing sense.

By the way that 27b kernel worked on some crazy 40b Frankenstein I was expecting to just fail. By that same token I'd consider it somewhat experimental - fitting since the architecture itself is. That can be a feature but probably not something we can strongly stand by.

right, supporting bonsai 2 was my compromise -- this can work better. i also put a ton of work into that silly ternary drafter for it. bonsai 2 should be pretty usable in oflm once the prs merge.

i will remove the stock 27b from the list. you make a good argument. anyone that uses it will be disappointed. we should have an honorable mention list that lists all the other models we support and actively test, and it can go there.

Cyronius avatar Nov 13 '26 21:11 Cyronius

ok, I'm cooking up something for this. I've moved my open-kernels work to https://github.com/cyronius/open-kernels and I'm trying to bring this list up-to-snuff. I kind of decided that the kernels don't belong in anyone's tree, so by taking them out, it keeps me honest with regards to dependencies and things like that.

I'm not suggesting you remove them from here; this is your repo and you can do with it what you want. I'm just letting you know of my dev strategy.

once they are ready, i will tag a release for open-kernels, open a PR for the models import, and add any stacked PRs for engine support.

Here are the ones that are close:

  • flux2-klein:4b
  • granite 4.2 3b
  • gemma 4 e2b/e4b (including vision and audio; that will be openflowlm-next work to get these running well)

some of the others are close but i need to rebenchmark. Eg, anything in the qwen family can't be far off. And we already support whisper, but a lot runs on the host.

there are also some others that can't be far off but aren't in this list: some of the LFMs, 1 or more of the MiniLMs, llamas, etc. I think my priority should be this list first for an open-kernels initial release, then other low-hanging fruit for a followup.

Cyronius avatar Nov 18 '26 22:11 Cyronius

I'm going to assign this issue to myself but if anyone wants contributor access to contribute to open-kernels and help me knock some of these out just ping me.

Cyronius avatar Nov 18 '26 22:11 Cyronius

I'm going to assign this issue to myself but if anyone wants contributor access to contribute to open-kernels and help me knock some of these out just ping me.

@Cyronius If you want it clean, it'll take a little while. If you don't mind my much less organized methods though, my research/model-coverage branch covers quite a bit.

But that branch also brings new tools, and completely unrelated fixes. It's the whole gguf package though other than a few key bits like the dspark.

'oflm dev' run from a repo root gives a few stupidly powerful tools to do things like filling out the rest of the sizes for each family Very quickly.

Try it out, let me know if you'd like it chunked out into clean PRs. Because we haven't hit anything we can actually call a release yet, I don't mind which way.

The reason for what I've done in that branch is to find methods to make it so people like you can focus on the parts you actually like and want to work on; namely the kernels themselves from what I can see. This makes the rest mechanical.

I've actually ported one kernel and generated specs for all sizes, from your repo. I'm close to finished mechanizing most of the process, then it'll be very quick. It already does the full validation process automatically.

Atomic-Germ avatar Nov 19 '26 03:11 Atomic-Germ

Your model coverage branch is going to be really useful. A lot of what we need to do for this issue isn't covered by that, though -- what i'm doing is just gross optimization work, moving things from the host to the npu, and more than anything else -- benchmarking. I'm about 2/3 done with the models listed above, plus a couple more.

Cyronius avatar Nov 24 '26 03:11 Cyronius

@Cyronius model-coverage loads flux 4b on the open kernels by gguf; reading q2* quants works, pq2 is next on that.

I've got a set of commands oflm dev including :

  • oflm dev build-new-spec --repo <hf gguf repo> generates, builds, validates, etc from a gguf repo
  • oflm dev build-new-family which is just a little more complex and does require any new geometry to be human-touched. An example of using it on your gemma work: oflm dev import-pieces https://github.com/Cyronius/OpenFlowLM-Next.git \ feat/gemma4-e-open --family gemma4e --dry-run → 7 pieces (gemma4e.py, gx.py, dxkit.py, fa_wide/*, ple_ln.cc, test_gemma4e.py)
  • oflm dev export-kernels which which is just an entry point to export-kernels scripts (all of them), and oflm add links based on geometry mostly rather than names at all, and run/serve expands a few layers -- these are actually designed to pull information from a repo with the structure your open kernels repo has as well as branches here. I've deleted everything in the remnants of my closed xclbins dir and rebuilt to be sure of the ones that work.

Atomic-Germ avatar Nov 29 '26 17:11 Atomic-Germ