Repository navigation
perf(deepseek41): two-box decode switches in ds41-r9700-gorgon - #936
Merged
Merged
Conversation
The expert-parallel cluster defaults (cluster_launch_env) carry decode switches the one-box R9700 + Gorgon profile never got: batched single-token verify lanes, dedicated copy streams with one peer-copy kernel per handoff, the HC boundary split, grouped MUL_MAT_ID (types 79), the ROCmFP2 prefetch loop, GPU argmax for verify, the drafter's context K/V cache and fine-grain pinned host memory. The profile now sets them as defaults; an explicit value still wins, and --paged-attention still leaves LUCE_MMID_GROUPED out. R9700 + 192 GB Ryzen AI Max, DSpark Q2K-Q4K drafter, greedy, 384-token answers, fresh server per arm: code 44 -> 53-56 tok/s, a 2K-token document 36-38 -> 47.5-48, 45 tok/s on a 33K-token document. The text is byte-identical with and without the switches. Four users at once (--paged-attention --max-concurrency 4 --ds4-prefill sparse, no drafter, 256-token answers): 20.4 -> 22.5 tok/s across the four, no faults. LUCE_MOE_Q8_HANDOFF and LUCE_DS4_ENGRAM_PRECOMPUTE measured neutral here and stay off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
davide221
commented
Nov 3, 2026
davide221
left a comment
Contributor
Author
There was a problem hiding this comment.
Code review
No issues found. Checked for bugs and logic errors in the changed code.
Reviewed 566ff119 · 0 candidate issues checked, kept at ≥70% confidence · add the code-review label to review again
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
The profile gained ten env defaults (50 -> 60), so the size check failed. The test now checks each switch's value and that the two switches measured neutral on this layout stay off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…measured DS41.md lists the ten switches by env var, says which engine the Measured table and the before/after pairs come from, and marks that the paged pair runs without LUCE_MMID_GROUPED (--paged-attention leaves it out). The model card scopes byte-identity to one user with the drafter. ENVIRONMENT.md gains the four switches its inventory lacked: LUCE_DS4_LANE_BATCH, LUCE_DS4_SCHED_DEDICATED_COPIES, LUCE_DS4_HC_BOUNDARY_SPLIT and GGML_CUDA_PEER_COPY_KERNEL. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
ds41-r9700-gorgon(R9700 beside a 192 GB Gorgon Halo, every expert resident) never picked up the decode switches the expert-parallel cluster defaults carry (cluster_launch_envinlaunch_profiles.h). The profile now sets them as defaults:LUCE_DS4_LANE_BATCH=1: the single-token verify lanes attend in one split-KV flash opLUCE_DS4_SCHED_DEDICATED_COPIES=1,LUCE_DS4_HC_BOUNDARY_SPLIT=1,GGML_CUDA_PEER_COPY_KERNEL=1: one peer-copy kernel per handoff on dedicated copy streamsLUCE_MMID_GROUPED=1,LUCE_MMID_GROUPED_TYPES=79,LUCE_CUDA_MMVQ_MOE_FP2_PREFETCH=1: grouped MUL_MAT_ID and the ROCmFP2 prefetch loopLUCE_DS4_GPU_ARGMAX_VERIFY=1,LUCE_DS4_DRAFT_CONTEXT_KV_CACHE=1: GPU argmax and the drafter's pinned context windowHSA_FORCE_FINE_GRAIN_PCIE=1: fine-grain pinned host memoryProfile env stays a default: a value the operator sets wins, and
--paged-attentionstill leavesLUCE_MMID_GROUPEDout (DEEPSEEK41_PAGED_UNQUALIFIED_ENV).LUCE_MOE_Q8_HANDOFFandLUCE_DS4_ENGRAM_PRECOMPUTEfrom the same set measured neutral on this layout and stay off. DS41.md gets the numbers below.Validation
R9700 32 GB (PCIe Gen3 x4) + Ryzen AI Max+ PRO 495 192 GB, ROCMFP2S target, DSpark Q2K-Q4K drafter, greedy, fresh server per arm, 384-token answers, two runs each:
The answers are byte-identical with and without the switches in every run, the 33K prompt included.
Paged batching,
--paged-attention --max-concurrency 4 --kv-pool-tokens 131072 --ds4-prefill sparse, no drafter, four 256-token answers at once, two rounds: 20.4 -> 22.5 tok/s across the four (7.0 -> 8.0 each), no faults, answers coherent. Paged answers already vary round to round in both arms (the known near-tie behaviour in DS41.md), so they are not compared byte for byte.🤖 Generated with Claude Code