perf(deepseek41): two-box decode switches in ds41-r9700-gorgon
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_env in launch_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 memory
Profile env stays a default: a value the operator sets wins, and --paged-attention still leaves LUCE_MMID_GROUPED out (DEEPSEEK41_PAGED_UNQUALIFIED_ENV). LUCE_MOE_Q8_HANDOFF and LUCE_DS4_ENGRAM_PRECOMPUTE from 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:
| prompt | before | after |
|---|---|---|
| code (36 tokens) | 44 tok/s | 53-56 tok/s |
| 2K-token document | 36-38 tok/s | 47.5-48 tok/s |
| 33K-token document | - | 45 tok/s |
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