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

Exporting the k2 spec overwrites the 35B's kernels

Open Cyronius opened this issue 1 month ago • 0 comments

k2-horizon-3.7b.json has no extra.model. That field is the export destination, and when it is missing export_qwen36_kernels.py falls back to DEFAULT_MODEL, which is Qwen3.6-35B-A3B-NPU2. So exporting the k2 spec with no --out writes k2's kernels into src/xclbins/Qwen3.6-35B-A3B-NPU2/open_kernels — over the 35B's set. It is the same thing #54 fixed for gemma3-12b.

The new test_spec_model_names.py catches this, plus three smaller things, and all four are red on main:

  • qwen35-27b: the test's EXPECTED table has no entry, so it derives qwen35-27B-NPU2 and rejects the spec's Qwen3.8-27B-NPU2. The spec is right — that is the published name.
  • qwen35-9b: the test expects Qwen3.8-Distilled-9B-NPU2, but the spec, src/model_list.json and hf.co/Atomic-Germ all say Qwen3.5-9B-NPU2. Again the spec is right; a new test shouldn't rename a published model.
  • src/open_qwen36/manifest_test.cpp asserts the qwen3-4b fixture has five hardware contexts. It has seven since the AG16 attention pair landed.

Nothing in CI catches these: the pytest specs aren't run, and the ctest in cmake-build-test.yml builds src/, whose test list doesn't include OPEN-MANIFEST — that target is in src/open_qwen36/CMakeLists.txt, the standalone build.

PR to follow with all four. The only judgement call in it is the k2 name, which I've put as K2-Horizon-3.7B-NPU2 after the upstream IFM/K2-Horizon-3.7B; say the word if you want something else, it's one line. I've also dropped the DEFAULT_MODEL fallback so the next spec added without a name gets an error rather than the 35B's directory.

Cyronius avatar Oct 05 '26 22:10 Cyronius