Repository navigation
Conversation
…r the kernel contract A new HIP group, exl3/exl3.hip: tf_exl3_rot_in (x * suh rotated by 128 and rounded to fp16, CUDA's rot_in arithmetic) and tf_exl3_linear at 2, 3, 4, 5, 6 and 8 bits (mul1) on 4 and 8 waves, the HIP side of what deepseek_v41's CUDA path calls tensorfold_exl3_linear_v4.rot_in and .linear. A row's sums are v_dot2_f32_f16 chains whose bits do not depend on the rows sharing its launch; the waves' sums and the output rotation follow CUDA's finish. Nothing launches them outside their tests yet. Kernel tests: the decoded weights against exl3_format bit for bit at every width, both wave counts and both trellis layouts; a row's bits alone, in any window and in passes of 16; rot_in by its fp32 steps from fp32, fp16 and bf16 rows. Contract: rot_in and the linear at each width against float64 (the linear's gate 4 exact), one control each, and gate-5 records from ROCm 10.1's hipcc.
….zig beside the other zig/tests/lighton_hip steps hip.zig was at the 600-line cap with the exl3 group, and main's flashnext draftBatch line takes a merge to 601. captureQwen and exactTool move unchanged (pub, with hip.zig's Engine); their four call sites name the file. hip.zig is 581 lines, lighton_hip.zig 38. zig build -l -Dhip=true lists the same steps before and after.
The native HIP server wraps the qwen3_5 dense target with the lane core's Drafted over the HIP DFlash2 drafter: taps are set from the drafter's config before streams are sized, the drafter's weights and per-stream state count in the memory plan, and window costs go to the drafter. - refuse --drafter under --tp > 1, at other --drafter-bits, and for HIP families without a DFlash2 drafter; benchmark --drafter on rocm - an absorb refuses kept rows past its features; features serve only rows the ring holds for the drafter's window - docs: the 27B recipe and community benchmarks A test pins that --no-drafts with --drafter loads no drafter and is not refused.
tf-qwen35-test check takes --drafter <dir>: the lanes session opens the HIP DFlash2 drafter as the native server does and wraps the target with Drafted, so drafted == serial, solo == together and graph == eager run for Qwen3.8-27B instead of skipping. The taps invariant restores the taps it found instead of switching them off. The lanes session likewise restores the taps it found when it ends or its drafter fails to open.
A stream resumed from a kept prompt state taps no rows below the resume point, so its ring holds zeros there while features() counted them as written. features() now refuses them with RowsNotHeld, as Nemotron and Gemma4 do. Drafted already absorbs from s.cached, so no served path asks for those rows.
…a fresh one The resumed invariant compares a resumed drafted run with a serial one. This adds the drafted run of the same prompts with every kept prompt evicted first: it must resume nothing and give the resumed run's tokens, and the check prints each run's drafts kept, drafted and rounds, so a resume's effect on acceptance is visible.
main now serves some BF16 qwen3_5 checkpoints (image towers the engine reads, and joint-head decisions), but the engine times no BF16 windows, so the DFlash2 drafter would run its rounds unpriced. A BF16 checkpoint with --drafter is refused by name before any load, as the drafter's stated limit says; quantized checkpoints and serves without --drafter are unchanged. A host test pins the refusal on a BF16 chat config and its absence on the same config quantized, or without --drafter.
Owner
Author
|
Stopped at #3665. |
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.
CI for a landing train: #3314 #3665 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.