Repository navigation
Conversation
efd3f4b to
a2b8ca6
Compare
|
Hi @ashhart, CI follow-up: I updated the serving identity fixture for the changed |
|
Live-GPU run on RTX 5060 Ti (sm_120), head
All three runs real on the card; rc=1 on the contract is the limits count. |
864865e to
5a5f883
Compare
|
Rebased onto upstream main at |
5a5f883 to
d978250
Compare
|
I trial-merged zig build test-gradient-serving test-kernel-contract -Dfixed-cpu -j2 --summary all
zig build compile-cuda-tests -Dtarget=aarch64-linux-gnu -Dfixed-cpu -j2 --summary allThe sampler kernel, nucleus helper, two local headers and both sampler fixture files match Igor Lessio - AIFLOW LABS |
|
Thanks @tacosta. Each candidate cut keeps the previous addition and reduction order, and the keyed draw and tie handling remain unchanged in source. This is ready for a controlled comparison, with final numerical and resource qualification still open. The new adversarial test checks token IDs exactly but allows a probability tolerance. Please retain exact old/new probability-bit comparisons in the qualification results, and include the full compiler resource-contract output: the supplied older run still has five limit failures. The synthetic timing results should stay separate from serving performance claims.
|
What this changes
The CUDA full-row nucleus sampler finds its top-p boundary with four-bit radix probes instead of one-bit key and token-ID probes. For the 131,072-element flat-BF16 fixture at top-p 0.95, the search uses 13 full-row probes (8 key digits and 5 ID digits), down from 50.
atc overlap --json: final scan on 2026-11-25 against basea3c3e5cef303646c7b73587262d834dbd155c6d5, 8 changed files, incomplete at the 300-PR coverage limit. Reported limitations:otherPullRequestsLimit,pullFilesUnavailable,pullRequestsLimitandtimeLimit. Local worktree overlaps were excluded. It reported conflicts with ricursive: load Ripple's EXL3 packs through main's shared EXL3 code #2514, MiMo-V2.6-Flash on CUDA (2x GB10) with DFlash as the drafter #728, kolibri1: the published EAGLE-3 drafter behind --drafter on CUDA (don't land yet: 8 streams and cold prompts slower) #3590, Inkling-2-Small: Add grouped-expert and vision kernels #4127, EXL3 Flash Next: host-resident K/V on the tier (6/8) #1522, Inkling-2-Small: Add DSpark drafter kernels #4128, qwen3_5 cuda: SenseNova-Loop-9B (sensenova_loop) in BF16, text only #3723 and qwen27 Metal: DSpine drafter for Qwen3.8-27B, opt-in #2634. Read-only merge-tree comparisons showed the same conflict paths between current main and each PR; the targeted Ling-3.1-flash on CUDA, on one or two GB10s #2340 comparison also showed no added conflict. The PR entry has 41 unknown overlaps and the worktree scan has 31, so coverage is incomplete.Checks on this head
d978250ff26c49a0b43c27e206b88ceeb0a38f4f, one commit on qualification basea3c3e5cef303646c7b73587262d834dbd155c6d5. Review patch SHA-256:2d072eadb2e8398983edd2e8865e317e1d6836566d69c5ef4e924eeff06ea4e8.0a5c699c891201df4162ba23f938ef4027aaa939; the evidence below remains measured on basea3c3e5ce.tools/pr_check.py: 164 base / 164 head, 0 new findings. PR preflight: 0 errors, 1 advisory warning (no Unreleased bullet naming this PR).zig fmt --check build.zig zig,git diff --check,zig build -j1 -Dfixed-cpu test-gradient-serving test-kernel-contract compile-cuda-testspassed. The CUDA runner was compile-only; no GPU test ran. Host output includedUNSUPPORTED/N/Aarchitecture coverage and internalfailed commanddiagnostics, while the focused command exited 0.zig build -j2 -Dfixed-cpu test test-golden test-cuda-host compile-cuda-testsattempt did not finish: thetest-cuda-hostcompilation hitNoSpaceLeftand the Zig compiler aborted. Thetest-goldenstep reported 327/340 equal, 0 unexpected differences and 13 known differences. This is not a full-suite pass; see the attached failed-run log.d978250finto9961ca49reported 325 host checks passing on M5 Max and the ARM64 Linux CUDA test runner cross-compiling in 12/12 steps. No CUDA device test ran in that report.Zig formatpassed;No GPUremained queued at the latest reread. No result is claimed for the queued workflow.Receipt
Main against branch: the local A-B-B-A sample-kernel benchmark below compares main at
ef4d6429with the PR kernel on the same RTX 5090 Laptop GPU. The baseline sampler source is unchanged betweenef4d6429and current maina3c3e5ce. No model checkpoint or end-to-end decode receipt was used.Boxes it reaches: CUDA full-row draws when
top_kis 0 or above 1024 and0 < top_p < 1; the extension runs when the initial candidate block's sequential mass does not reachtop_p. The small-top_kroute remains a control.New switch: none. Common defaults in
family_sampling.zigbypass the extension: DeepSeek V4.x usestop_p=1.0with notop_k; Qwen instruct usestop_k=20, top_p=0.8. Both have a 0% extension rate at those defaults. The repository has no production request trace, so actual rates for user overrides are unknown.Environment: timing base
ef4d6429, timing headcaf10040; final rebase basea3c3e5ce, final headd978250f; Zig 0.17.0; CUDA/NVCC 13.3.73; Linux x86_64; RTX 5090 Laptop GPU (SM120), driver 595.99.02. No checkpoint.Paths and platforms: local host build and runner compile on Linux x86_64; CUDA timing on SM120. Maintainer live correctness is separately reported on RTX 5060 Ti (SM120). No local GB10/SM121 run; Metal and HIP are unchanged and untested.
Exactness: maintainer report on earlier head
a2b8ca6csaystf-cuda-test samplepassed 2,880 draws against Metal-rule host references (hash0xc0672952ba6888cd), the pitched proposal passed 54 keyed/full cases with matching IDs and probability bits, andsample-adversarialpassed 7/7 cases. These checks were not repeated on this rebased head. The current adversarial test prints per-case probability bits but checks them against the f64 host reference with a tolerance; an exact old/new bit comparison remains pending.Main against this branch, same machine and checkpoint: no checkpoint decode run; the local kernel benchmark uses identical synthetic rows and hardware for both kernels.
Decode speed: A-B-B-A order was main, PR, PR, main. Each
sample-benchresult is the median of 11 timed repetitions; values below average the two A passes and two B passes and average regular/pitched paths:The timing runner used head
caf10040before the dispatch-only relocation. A post-rebase comparison of sampler/test paths shows identical kernel, benchmark and test implementation sources; only the two dispatch lines moved inzig/tests/cuda/main.zig. Main's sampler source is unchanged between timing baseef4d6429and rebased maina3c3e5ce. Timings were not rerun on the rebased head. Thetop_k=0, top_p=1.0control stayed around 15 us/row. The small-top_k=20, top_p=.95control remained near baseline (about 30, 20 and 8 us/row for flat, spread and peaked rows). These are synthetic sampler timings, not served-decode speedups.Prompt speed: n/a; this decode sampler change does not touch prompt processing.
Licence of any new weights or drafter: n/a; none are added.
Kernel contract
sample-benchrun measured timing only, not a live kernel-contract summary.tf_drawandtf_draw_pitchedwere 64 registers/9,752 bytes vs recorded 64/10,776;tf_logprob_rowswas 43/520 vs 40/520;d3_sample_codeused 37 registers vs recorded 39. All tested launches were within driver limits; contract exit 1 reflected the mismatch count. Awaiting maintainer instructions before changing records.RECORD, mismatch andSUMMARYline; the previous SM120 receipt is not a substitute.Maintainer GPU checks
Maintainer-reported RTX 5060 Ti (SM120) sampler and adversarial checks passed on earlier head
a2b8ca6cas described above. The NVCC 13.5 vs 13.3 resource-record discrepancies remain unchanged while we await maintainer guidance. GB10/SM121 parity, exact old/new probability-bit comparison, contract and occupancy checks remain pending.Requested hardware validation
Please qualify the integrated PR head on GB10 (SM121), using the same NVCC version, driver and test fixtures for the pre-change main baseline and candidate:
tf-cuda-test sampleandtf-cuda-test sample-adversarialon both versions. Apply only the PR's test-harness changes to the baseline so both runs emit the same records. Keep the full logs and compareRESULT sample identity-hashplus all sevenRESULT sample-adversarial ... probability_bitslines exactly. The f64 host-reference tolerance is a separate check and does not establish old/new bit identity.nvcc --versionand the full output and exit status fromzig build kernel-contract -Dnvcc=PATH,zig build fatbins kernel-contract-fatbins -Dnvcc=PATH -Dsm=121,zig-out/bin/tf-cuda-test kernel-contract-limits zig-out/fatbinandzig-out/bin/tf-cuda-test kernel-contract sample. Preserve everyRECORD, mismatch andSUMMARYline. The existing SM120 run has five NVCC 13.5 versus 13.3 resource-record discrepancies; leave records unchanged pending maintainer guidance.The previous RTX 5060 Ti results are useful SM120 evidence but were collected on earlier head
a2b8ca6c. Current main's sampler kernel and test-harness files are unchanged since the qualification base. A local test-only backport patch and command recipe are available for the baseline comparison; no GB10 result is claimed here.Checklist