Skip to content

qwen27: a prompt frame below 128 rows is refused by name, not as TargetBinding - #2298

Merged
ashhart merged 2 commits into
mainfrom
lead/prompt-rows-floor
Nov 6, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/prompt-rows-floor

Conversation

@ashhart

@ashhart ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner

On an M3 Ultra, TF_PROMPT_ROWS=16 made the native Qwen3.8-27B refuse to load with only "cannot load ... (TargetBinding)". The shared lanes need a frame of at least 128 rows (batch_rows), and the check sat in the lane constructor with no message.

Now a value below 128 is refused before the loader starts, by name:

native Qwen prompt serving needs at least 128 prompt rows; TF_PROMPT_ROWS supplied 16. Set TF_PROMPT_ROWS to at least 128 (a multiple of 16), or unset it to use the device default.

  • When the check runs: at startup, and before native lanes attach to a model that's already loaded. A frame created below 128 by other code is refused in the lane constructor, with the same kind of message naming model.frame.capacity.
  • The minimum isn't silently clamped up, and the floor is the same 128 as before. Any value of 128 or more behaves exactly as it does on main.
  • Other families aren't affected: no other family reads this setting.

Checks:

  • zig build test-qwen27-prompt-rows-host test-qwen27-prompt-floor-host test-qwen27-memory-host test-qwen27-facts-host test-qwen27-grants-host test-qwen27-bank-boundary-host check-qwen27-speed-host: 25 of 25 steps, 61 of 61 tests.
    • At 16, startup refuses with the message above, before loading anything.
    • At 128, it reaches the loader.
    • With the floor taken out, the gate tests go red.
  • zig fmt --check, and a plain zig build (255 of 255 steps).

Reject numeric TF_PROMPT_ROWS below the shared 128-row lane bank before loading or attachment. Name caller-supplied frame capacity at the backend guard. Keep tool frame policy and defaults. Add host entry and diagnostic checks, and initialize missing model metadata in the grants fixture.
@ashhart
ashhart force-pushed the lead/prompt-rows-floor branch from b16bb78 to 8c65854 Compare November 6, 2026 10:08
@ashhart
ashhart merged commit 045d9df into main Nov 6, 2026
9 of 11 checks passed
@ashhart
ashhart deleted the lead/prompt-rows-floor branch November 10, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant