Repository navigation
Conversation
With --drafter (DSpark or DFlash2), Inkling 2 Mini verifies drafts on the same target backend, so its opened drafter now asks native/cuda_drafted.zig to keep first_row logprobs enabled. Includes a host test covering families with and without first_rows.
Synthena Initial Review — Initial diff check passed (awaiting device run) (
|
|
Thanks @jmpijll. The wrapper now preserves Mini's first-row callback for both DSpark and DFlash2, and other families retain the previous default. The host test covers both flag values. The GB10 follow-up answers the earlier device request: both paths return completion/chat logprob rows, match the plain replies and finish reasons, and accept draft tokens. Ready for our final GB10 A/B of complete row values and token alignment against plain target decoding, including both slots and streamed replies. We will compare those exactly, with no tolerances. No further author change or repeated run is requested. This review was source-only; builds and device checks were not rerun.
|
What this changes
Follow-up to #5210.
Before:
native/cuda_drafted.zigalways clearsfirst_row(native.first_row = null) when wrapping a target backend with a drafter, even when the target backend handles bothfirstand draftedverifylogprob rows. As a result, serving Inkling 2 Mini on CUDA with--drafter(DSpark or DFlash2) reportslogprobs = falseand refuseslogprobs/top_logprobsrequests.After:
cuda_drafted.ziggainskeepFirstRow(keep: bool, first_row: ?FirstRowFn)and honourskeep_first_rowon the opened drafter wrapper so families whose target backend already fills logprob rows through drafted verify rounds keepfirst_rowenabled.families/inkling2/cuda_native.zigsets.keep_first_row = trueon its opened Mini drafter..keep_first_row = false(unchanged default).zig/src/native/cuda_drafted.zigcovering bothkeep_first_row = falseandkeep_first_row = true.Checks on this head
923dffa1aonmainf25ae9711(one commit, 2 files, +49/-0).zig fmt --check zigandgit diff --check origin/main: clean.python3 tools/pr_check.py --base origin/main: 0 errors, 0 new lean findings, 0 new import cycle edges.zig build -Dfixed-cpu -j8 test-inkling2-cuda-host test-lane-api-host --summary all: 17/17 steps succeeded; 946/946 tests passed (test-lane-api-host: 835/835;test-inkling2-cuda-host: 103 + 3 + 1 + 3 + 1 = 111/111).Checklist
keep_first_row = falseandtrue.GB10 device follow-up
Built head
923dffa1afor CUDAsm_121and ran Inkling 2 Mini with an 8,192-token context, two slots and prompt caching off. Both DSpark and DFlash2 returned 96 logprob rows on/v1/completionsand seven content logprob rows on/v1/chat/completions. The replies and finish reasons matched theirdraft: falsecontrols. DSpark accepted 62 completion and 38 chat draft tokens. DFlash2 accepted 70 completion and 46 chat draft tokens. This run checks device behavior for the two drafted paths.