Repository navigation
HIP Qwen: a copies-only engine prices its plain rounds once forwards are timed (fixes #4061) - #4312
Merged
Merged
Conversation
Co-authored-by: AbrahamCete <[email protected]>
…e forwards are timed (fixes #4061)
ashhart
force-pushed
the
lead/hip-copies-plain-price
branch
from
November 21, 2026 12:37
fb9e1ff to
f9aa8d0
Compare
Owner
Author
|
Thank you @AbrahamCete. This is merged into main with your commits under your own name, so you're credited as a TensorFold contributor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4061.
On HIP, a Qwen engine with no drafter head but with copy drafts never priced its plain one-token rounds.
plain_guardwasdrafting and windows > 0, and a copies-only engine is not drafting. So once the forwards were timed, copies were priced against target rounds that had no price, and with several streams the lane planner kept choosing copies when a plain round was cheaper.The one production change, in
hip_lanes.zig:plain_guard = h.costs.windows > 0. A headed engine gets exactly the old value. A copies-only engine now competes plain rounds against copies, the same rule the headed path already uses.This intentionally changes scheduling for copies-only HIP engines, so a test that pinned main's old shared-round trail for that case is removed, and the lane-model fixtures now match production. Replies keep their tokens: the seeded sampled and greedy controls in
lone_copy_sampled_test.zigcompare the corrected and unpriced schedules token for token against drafts-off decode. A newhip_lanes.zigtest checks the facts of a copies-only engine.Host:
zig build -Dhip=true test-qwen35-hip-hostfails on main at the new test and passes here;zig build test-shared-lane-regressions-hostpasses. No speed claim is made from host runs. The gfx1151 A/B on the four-stream case in #4061 decides it.Thanks @AbrahamCete for the measurements and the one-line correction; co-authored.