Repository navigation
perf(dsv41): add opt-in GPU sampling candidate selection - #11
sayyidfareed wants to merge 1 commit into
Conversation
|
Thank you @sayyidfareed — a bounded candidate set with the host sampler kept authoritative and a fallback is the right shape for this change. We're not merging it now: it's a new runtime feature (opt-in GPU sampling), and in maintenance mode we only take small fixes that don't add runtime surface. Your own notes list the device exactness gates as pending — that plus the feature bar is why this stays open for the maintainers; the medians you attached will make the call easy in a development window. Thanks again. |
|
Thank you again @sayyidfareed. Development is back on, so the "small fixes only" bar from my last note no longer applies. We merged this PR onto the current branch head (dfc8fe5) and ran the host tests: 184/184 pass. The direct_io test that failed in your notes also passes on this head, so that failure came from the older base. With |
|
Thank you @sayyidfareed. A check on this draft, idle since 16 October: our releases now build from branch |
|
Thank you for the work on this draft, @sayyidfareed. We are withdrawing our promise to review #11 for merging. It sits on deepseek-v41-zig, and we no longer build from that branch. A new PR on deepseek-v41-zig-tp2 is welcome. |
What this changes
Add opt-in TF_DS_GPU_CANDIDATES=1 selection of a bounded set of exact top candidates on GPU while keeping the existing host sampler and fallback. The default remains off. Eligibility/count handling and CUDA glue are included; initialize profiling counters and widen candidate-count arithmetic to avoid supporting-state errors encountered while qualifying this path.
This is not a changed model, quantization or draft acceptance rule. It does not claim a broad speed lead. The host sampler and fallback remain authoritative; device exactness release gates below are still pending for this standalone PR.
Receipt
4e80f05ecba89a4e90d16375ade2eddbdc0a10c4, Zig 0.17.0, Ubuntu 24.04.5 LTS, kernel 7.0.0-1019-nvidia, NVIDIA driver 580.178.04; Linux ARM64 CUDA environment; two NVIDIA GB10 nodes for historical live tests, SM121, Mia EXL3 2.9 bpw revision64ba41b6c916a587db06eae2e19b7845f7be6e6b, recipe v0.6.1 kit. Container ARM64 imagesha256:1ad8c1382c09861dee9c342b59f6e5e3e65fe7fde4a07b5e379bc985b66902dd.e7ebb370d6cd5055bae60c77661f1c7f6c765057; commandzig build test -j1 --summary allwith a shared Zig cache.zig fmt --checkpasses changed Zig files.test-goldenwas attempted on the pinned source but that step does not exist, despite CONTRIBUTING.md naming it.Checklist
Merge considerations
Two-way source revert. Preserve both ranks at the same source/runtime identity. This PR has not changed the default deployed upstream recipe.