Open the next five families — Qwen3-VL needs no new kernel
Nine model families still need the closed engine. Five of them are worth doing next, and one of those — Qwen3-VL — looks like it needs no new NPU kernel at all.
Qwen3-VL's decoder is plain Qwen3, which already runs on the open kernels. Its vision tower is the one we already wrote: src/open_qwen36/vision/vit.hpp was built against Qwen3-VL's own encoder (transformers calls it Qwen3VLVisionModel) while opening Qwen3.5 and Qwen3.6, and checked against it to a correlation of 1.00000000. So both halves exist. What is missing is wiring — telling the kernel recipe that a Qwen3-VL config is a Qwen3 config, adding a third family to the engine's image path, and pointing the tower at its config keys.
That was worth confirming before anything else, so I did the offline half:
- A Qwen3-VL config and a plain Qwen3 config of the same geometry now derive the same spec hash, which is what makes a Qwen3-VL model link to an existing Qwen3 kernel set instead of building its own. Both container shapes are handled — the decoder nested under
text_config, and flattened, which is what we ship. - Qwen2.5 derives too, but the recipe refuses to build it: Qwen2 puts a bias on its query/key/value projections and our attention kernels have nowhere to put one. Better an explicit refusal than a kernel set that quietly drops it.
- 17 new tests, no NPU or model needed. Full suite green.
The rest, roughly in order of how much new kernel work each needs:
| Family | New kernel work |
|---|---|
| Qwen3-VL 4B | none |
| Qwen2.5 3B | bias on the attention projections |
| GPT-OSS 20B | learned attention sinks (expert routing already exists from Qwen3.6) |
| LFM2 1.2B | a short convolution block that replaces attention in some layers |
| Qwen2.5-VL 3B | a windowed vision encoder, plus Qwen2.5 first |
I'm a big fan of LFM so I'm pretty stoked to get to the point where that one can go in.
@Cyronius man I read FLM instead of LFM and it read like you got reset 😂
Four of the five now run on the open kernels -- Qwen2.5-3B, LFM2-1.2B,
Qwen2.5-VL-3B and Qwen3-VL-4B all pass oflm-test --llm through oflm serve,
and the VLMs answer about images. GPT-OSS is the one left, and this week's work
did not change that.
What it did change is everything underneath a recipe. The engine can read GPT-OSS's container now, where before it returned plausible wrong answers with nothing raised. Its experts are MXFP4 -- a 4-bit float format, where every other weight we read is a 4-bit integer -- and they were being read as ordinary integers. Its weight chunks are also half the width every other family ships, and stored in a different order, so the packer could not place them at all. It can now, and two more silent wrongs closed on the way: a padded width that produced a corrupt weight pool rather than an error, and an embedding lookup that read most of the vocabulary from the wrong offset.
Still to come, and it is the bigger half: the recipe itself, the packing step for the experts, and three small kernels. The long pole is the expert FFN. GPT-OSS's expert width equals its hidden, where every family we run today has it at a quarter, and that assumption is spread through four separate places in the core layout -- that one needs hardware and a design change, not a session.
It will come up as its own PR rather than folded into the VLM work.
Kind of descending into madness here. There are 9 PRs, they all depend on the one before them, and it's gonna be gross.
May have to split the issue up to make this reviewable.
closing -- another issue tracks gpt-oss