diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md new file mode 100644 index 000000000..f80639926 --- /dev/null +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -0,0 +1,346 @@ +# Measuring Hy4-Flash-FP8 decode at a fixed context length + +The eight-device Ascend 950DT campaign uses LongBench v2 for decode latency and AIME2026 for answer quality. The latency client issues one request at a time. The current EvalScope accuracy run uses a batch size of sixteen for all thirty problems. The acceptance issue records the image, checkpoint, deployment arguments, comparison gates and measured revisions. [Campaign and round ledger](https://github.com/InferMatrixLab/InferRSI/issues/613) + +The final delivery target is a P50 of at most 3.000 ms/token and a score of at least 28/30 on one independently started service. During round 16, the latency target was lowered from 5.000 ms/token. The frozen workload and the 3% per-candidate performance gate stayed the same. [Target revision](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7136009037) + +## Replaying identical prompts + +Render each pinned LongBench ID with the published zero-shot template and the checkpoint tokenizer, with no added special tokens. Use the tokenizer offsets to locate the tokens wholly inside the document. Keep the instruction prefix, question, four choices and any tokens that overlap a document boundary once. Fill the remaining positions from the start of the document token sequence, cycling that sequence when more tokens are needed. This produces a deterministic token array and keeps the question at the end even when the document exceeds the budget. All twenty original prompts in this campaign required padding. + +At freeze time, record the ordered request file digest and each resized token array's digest. Keep that input read-only for the campaign. Send those IDs directly to the completions endpoint in the published order. On each response, check the API-reported prompt length, generated-token count and completion reason. A change to the dataset, template, tokenizer or storage copy calls for a new identity check. [Input identities and reconstruction rule](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7120848813) + +## Measuring speculative output + +Use a monotonic clock on the host loopback client. Record the timestamp and number of generated IDs in each SSE token event, along with the final usage receipt. Divide the interval from the first token event to the last by the actual output length minus one. Compute the median of the twenty per-request values with equal request weights. Keeping time to first token, chunk sizes and the stream completion timestamp makes a change in output buffering visible. + +On an exclusive service, take snapshots of the engine's draft-round and accepted-draft-token counters immediately before and after each formal request. Dividing the client decode span by draft rounds gives an approximate round duration. Tokens delivered per round expose variation in acceptance. The two estimates help determine whether to investigate proposal/verification cost or acceptance. A rank-local diagnostic profile from an AIME decode can identify operators for investigation. A fixed-length performance trial is still needed to quantify any effect on the latency objective. + +## Comparing revisions + +Use one service identity for a round's warmup, formal timing and conditional AIME scoring. Apply the declared latency gain before invoking the expensive evaluator. Retain all predictions, and count a quality reference only when all thirty items have a completed evaluation. Preserve interrupted measurements with their original protocol and completion counts. A new service replays the selected revision, identical request bytes and scorer for the final check. [Service-reuse campaign lifecycle](service-reuse-campaigns.md) + +The original fixed-length baseline used serial AIME requests and scored all thirty problems correctly. The predictions contained 208,954 generated tokens, including one answer of 46,582 tokens. Every response ended with the model's stop condition. Audit the submitted user prompts in dataset order and sum the individual accuracy judgments before comparing the result with the aggregate report. This also distinguishes a completed run from a partially written predictions file. [Baseline quality audit](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7121945182) + +The service-reuse measurement receipt carries all twenty request IDs, token counts, TPOT values and their median. Use that receipt and the same service's EvalScope result for routine round reporting. Keep raw timing and predictions available for investigating anomalies. The first candidate spent 1.47 seconds in precheck, 237 seconds reaching readiness, 46 seconds warming up and 620 seconds timing twenty requests. Queue a prepared candidate at service cleanup. Reserve separate model launches for a diagnostic that can change the next candidate choice. + +EvalScope connects to the loopback service with a locally frozen dataset. Launch that client with loopback proxy bypass and clear inherited proxy variables in its process environment. A SOCKS proxy inherited from the SSH host prevented the original client from sending its first question. The full retry used a fresh service for warmup, timing and scoring. [Scorer repair and retry](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7122220240) + +When the accuracy concurrency changed to sixteen, two earlier EvalScope runs on the same baseline revision provided matching 30/30 references. Their image, checkpoint, AIME input bytes, scorer, generation settings and model-serving arguments matched. The earlier latency workload and HTTP port differed. Reuse those accuracy results for the new threshold and keep the fixed 127K timing baseline. The incomplete serial candidate's predictions stay in its original attempt. Each concurrency-sixteen candidate completes its own set of thirty problems. [Accuracy reference comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7122619903) + +## Locating a context-limit stall + +With the combined input and output exactly equal to the serving context limit, aggregate TPOT hides where the delay occurs. All twenty fixed-length requests completed on the baseline service. Their P50 was 11.4392 ms/token. For each request, take the maximum SSE gap after delivery of at least 1,008 tokens and the maximum from tokens 32 through 1,007. The medians of those maxima were 637.57 ms and 46.11 ms, respectively. The raw timestamps preserve both intervals in the formal TPOT. This observation motivated testing extra serving-context capacity while replaying identical inputs and output caps. [Per-request baseline and hypothesis](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7121157226) + +Reserving 512 extra positions reduced median TPOT to 9.4807 ms/token. The same service answered 29 of 30 AIME problems correctly at concurrency sixteen. The missed response ended normally after 16,171 generated tokens. The original quality comparison rejected the change. [Per-request timing and first quality verdict](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7123314085) + +The operator subsequently set an absolute minimum of 28 correct answers and selected the extra context headroom. The new campaign decision retained the prior service identity, timing and all thirty scores. InferRSI rechecked the recorded warmup, measurements, quality, cleanup, parent and numeric gates. The original decision remains available with its original policy. The selected parent for subsequent trials has a 131,584-position serving limit. [Revised gate and selected deployment](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7123816356) + +## Attributing a change in speculative latency + +Record both proposals per verification and serving-context capacity in the parent comparison. A separate run using seven proposals at the original context limit measured 10.3764 ms/token and scored 29/30. The selected five-proposal run with extra context headroom was faster. Keeping these observations on their respective parents prevents attributing the headroom gain to a wider draft. [Original-context comparison and all twenty timings](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7123586763) + +Before timing a new sparse attention path, compare its serving helper against the original paged QK, softmax with the trained sink, and probability/value computation. Include shuffled physical pages, causal subsets, short dense histories, partially active verification blocks and padding-only blocks. Compare the captured helper at the deployed query width and recalled-row count. Register model-owned settings with the Ascend configuration parser so that the normal serving entry point accepts them. [Production-helper checks and launch evidence](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7124339768) + +In this trial the median time per draft round, estimated from the client decode span and engine counters, fell from 39.04 to 37.68 ms. Delivered tokens per draft round changed from 3.915 to 3.766 across the cohort. Each of the twenty greedy completions differed at one or more output positions. The formal median TPOT improved from 9.4807 to 9.0628 ms/token. The same service subsequently answered 29/30 AIME questions at concurrency sixteen, and the campaign accepted the change. [Per-request timings and draft counters](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7124646381) + +## Profiling a steady decode step + +With the second-round service revision, profile an interior part of a new request after warming the 130,048-token prefill. Use the same five-token draft setting. On rank zero, the first captured verification contained a roughly 347 ms collective rendezvous. The next two target intervals reached the draft sampler in 36.73 and 37.55 ms. Their timings can locate repeated work across the 42 layers. The twenty-request client run supplies the latency result. Across those two intervals, excluding layer zero, a sliding-attention sub-block had a median of 324 µs, sparse attention 923 µs and a routed feed-forward sub-block 158 µs. The boundaries were consecutive residual-channel post-processing kernels. + +Each layer computes two four-channel residual gates. The third candidate fused the pre-processing for small batches. A one-row device check fell from 24.16 to 6.17 µs. Checking trained attention and feed-forward weights at three layers covered BF16 outputs and FP32 gates separately. On the full workload the median estimated speculative round fell from 37.68 to 34.00 ms, and delivered tokens per draft round rose from 3.766 to 4.055. The client P50 fell from 9.0628 to 7.5766 ms/token. All twenty greedy sequences changed, so the end-to-end result includes both the faster step and a change in draft acceptance. The same service then scored 29/30 on AIME2026 at concurrency sixteen, meeting the required 28/30. [Device checks](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7125341533) · [Full request timings](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7125600124) + +## Keeping reusable positions inside a captured forward + +For one verification request, group layers by their shared attention metadata. Compute the live positions, window rows, compressed-group ranges and dense prefix once per group. Scope the reuse to a single forward. Warmup and capture can share a metadata object, so attaching the tensors to that object can leave the captured graph dependent on the warmup values. + +On an independent operator test, replaying the same captured graph with six changed inputs produced the expected rows for long, short, partially active and inactive requests. The 42-layer position calculation took 963.05 µs when repeated and 50.25 µs when shared. The formal twenty-request P50 fell from 7.5766 to 7.2819 ms/token. All twenty generated token sequences matched their parent outputs exactly, and both versions delivered 4.055 tokens per draft round. The median estimated round duration fell from 34.00 to 32.74 ms. Same-service AIME scored 29/30 at concurrency sixteen. [Hardware differential](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7126135214) · [Per-request timings and accuracy](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7126426797) + +## Reusing overlapping sliding windows during verification + +Six consecutive queries with a 512-token causal window cover 517 different history rows. Decode those rows once and use the same matrix for the FP32 query-key and probability-value products. Apply a separate causal range and learned sink to each query. Across 15 device comparisons the largest absolute BF16 context difference was 0.00390625. The captured operator took 33.16 µs compared with 75.45 µs for the per-query calculation. Follow changes to the matrix reduction order through to the accepted drafts and generated sequences. + +The formal twenty-request P50 changed from 7.2819 to 7.7132 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 4.055 and 4.189 tokens per draft round, with median client-estimated round durations of 32.74 and 31.29 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7127148768) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7127455897) + +## Distributing sparse recall while preserving global top-k order + +For a replicated compressed-key index, assign contiguous page-aligned ranges to the tensor ranks. Gather each rank's score matrix and restore its logical column order before running the same native top-k operation. Exact ordering matters on ties. Construct the complete sorted token list and causal tail in the same operation as the dense fallback. Across the eight-device test, all six visibility patterns reproduced the original indices exactly with different physical page maps on each rank. The maximum rank-local median for producing the entire row list fell from 212.89 to 106.11 µs. + +The formal twenty-request P50 changed from 7.2819 to 6.8781 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 32.74 and 30.81 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7127548532) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7127866457) + +## Reading the trained vocabulary shard directly + +A decoder head configured for FP32 output can spend more time converting its BF16 weights than multiplying them. Measure the actual vocabulary shard with one token for the sequential draft corrections and six for target verification. On 950DT, native BF16-input multiplication with FP32 output reduced those projections from 183.35 to 26.44 µs and from 185.48 to 27.05 µs. The 112 local greedy decisions in the diagnostic matched, with an observed maximum absolute logit difference below 0.000050. The candidate keeps the original all-gather and global vocabulary selection, then measures the full service to capture any downstream change in token generation. + +The formal twenty-request P50 changed from 6.8781 to 6.6871 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 30.81 and 30.26 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7128629254) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7128952697) + +## Preserving native FP8 scale boundaries during IndexPool encoding + +The native Ascend log2-based FP8 scale can cross a bin boundary at a different FP32 mantissa from an algebraic exponent shortcut. Sampled device diagnostics found 3,864 discrepancies in 145,550 boundary cases with that shortcut. The candidate measures the last lower-scale mantissa in parallel for all 142 possible clamped row exponents at weight load, then reuses this table during small query and key encodings. With the calibrated table, all 1,260,818 sampled maxima agreed with native scaling, and all 96 full-encoder graph replays agreed elementwise. On two compressed keys, latency fell from 46.89 to 7.70 µs. On six rows of sixteen query heads it fell from 60.92 to 11.71 µs. These isolated timings correspond to 1.061 ms per verification step across twelve sparse layers if the savings add. + +The formal twenty-request P50 changed from 6.8781 to 6.4875 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 30.81 and 29.20 ms, respectively. Same-service AIME scored 30/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7129008428) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7129320307) + +## Preparing native sliding-window operands during C8 reads + +In each of the thirty sliding-window layers, the six consecutive verification queries share 517 physical history rows. The selected path dequantizes those rows once, then the two batched products materialize overlapping tensor views. The tiled reader can instead write contiguous FP32 keys and values for each query, preserving native QK and PV accumulation and the 513-column sink softmax. The production implementation measured 70.72 to 36.75 µs on the 950DT. Its logits and BF16 output matched on all five replay states including short history and inactive rows. The implied difference across thirty layers is 1.019 ms per verification step. + +The formal twenty-request P50 changed from 6.4875 to 6.2458 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 29.20 and 28.08 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7129827478) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7130135005) + +## Preparing KV-B weights and the rotary verification query + +The production packing kernel and native batched products took 30.85 to 10.48 µs with four heads and 33.01 to 11.43 µs with eight. The reference, cached-weights-only, packed-rotary-only, and combined paths matched elementwise in six graph replays for both geometries, including distinct position axes and a negative position. Across 30 eight-head and 17 four-head calls this predicts 0.994 ms per draft round. Keeping the two distinctly laid-out matrices costs 134.8 MiB per TP rank. A separate checkpoint reload test verified that key and value buffer addresses stayed stable and captured products reflected the new weights. The first two startup attempts ended during memory profiling with an HCCL watchdog error. In the repaired implementation the layout buffers belong to a child module, keeping the parent out of vLLM deferred attention loading. The packed path is restricted to verification metadata. The single-request DFly graph broadcasts its rotary positions with zero axis stride. A scalar load for this case and per-axis indexing for target requests both reproduced the reference across six captured replays at four and eight heads. + +The formal twenty-request P50 changed from 6.2458 to 5.9309 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 28.08 and 26.80 ms, respectively. Same-service AIME scored 30/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7130632376) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7131414798) + +## Exchanging the greedy token and its ordinary embedding + +In an eight-rank NPU graph, a one-row projection, full-logit gather, global argmax and separate embedding reduction took 279.04 µs (median of the eight per-rank timings). Direct BF16 projection with FP32 output took 184.49 µs with the same transfers. Attaching each shard winner's ordinary BF16 embedding to its FP32 score and token ID took 90.12 µs. When an embedding was unnecessary, the three timings were 216.03, 85.13 and 87.56 µs. On every rank both communication modes returned the full-vocabulary answer for six replay inputs, including equal scores and NaNs on different ranks. The earlier trained-weight projection check matched 112 local argmax decisions, and the projection-only service reproduced all 20 continuations. The head epilogue can change individual low-order logit bits. + +The formal twenty-request P50 changed from 5.9309 to 5.8056 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 26.80 and 26.14 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7132048524) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7132530967) + +## Sharing sparse history reads across DFly queries + +The five DFly attention layers use one target snapshot per layer. At batch one and five proposals the six verification queries share 2,048 historical row IDs. Reading each history row once and writing contiguous FP32 operands for the original batched products took 84.18 µs per layer, compared with 252.81 µs for independently gathering the rows for each query. A single matrix product across queries took 58.30 µs and changed some BF16 outputs. The implemented batched version preserved every output in six captured graph replays, including early anchors, holes, and an inactive request. The production-module replay measured 250.60 to 83.61 µs per layer. It retains the learned sink and causal draft masking. + +The formal twenty-request P50 changed from 5.9309 to 5.9555 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 26.80 and 26.86 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7132595711) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7132934733) + +The first formal request exposed an important dispatch condition. The engine metrics reported a 64-token effective attention block size after initialization. The shared DFly code selected only 128-token physical pages. This service used the fallback throughout the fixed workload. For cache layout optimizations, check the final engine metrics and the capture-time dispatch condition before interpreting whole-service timing. + +## Schedule the tensor-parallel group on the CCU + +The target trace contains 41 TP reduce-scatter and 37 TP all-gather operations in the sequence-parallel layers in addition to the draft and sparse-index collectives. The installed HCCL and torch-npu support configuring the operation expansion mode on an individual process group. We compared the default AICPU_TS group and a separate CCU_SCHED group with the same eight ranks and 200 MiB buffer configuration. Median per-rank captured timings in microseconds were sequence 178.95 to 47.13, index 106.88 to 44.22, draft 160.98 to 39.71, mixed 391.35 to 113.32. Integer gathers and sparse top-k IDs matched on all ranks. The sequence and draft BF16 reductions had different summation order, with maximum absolute difference 0.125 on these inputs. These microbenchmarks include rank synchronization and do not predict the full decoder speedup. The model's TP coordinator passes the HCCL options at creation inside the vLLM configuration context. Distinct process-group options prevent aliasing with EP. The process-wide HCCL setting is AICPU_TS. The first service exited during CLI import before engine creation. Importing the vLLM config accessor at TP group creation resolved the cycle. The repaired service logged the TP CCU selection during worker initialization. + +The formal twenty-request P50 changed from 5.9309 to 6.6076 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 4.055 and 3.899 tokens per draft round, with median client-estimated round durations of 26.80 and 26.37 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7133008044) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7133467578) + +## Transfer hash indices for the four CPU tables together + +During single-request verification, four checkpoint feature tables read slices of the same device hash tensor on the CPU. Collecting the four slices in a single device-to-host transfer leaves each rank's CPU table and row loading in place. The initial isolated timing over trained 65,536-row slices of the four tables fell from 1151.46 to 313.28 µs with 24 exact cases. A direct production-module comparison measured 4879.55 to 2079.81 µs for all four lookups together. Forty graph replays included changed slots and reloaded table values. All outputs matched. The disabled flag, multi-request input and shorter query fallbacks matched their references. These wall timings include host synchronization. The production-module timing overlapped two operator diagnostics on separate NPUs on the same host. They describe isolated calls on one device, and the serving comparison determines the effect on TPOT. Worker TP0 logged the grouped CPU index transfer on the timed service. All twenty continuations matched the selected parent, and the median client-estimated draft step decreased from 26.80 to 24.57 ms. + +The formal twenty-request P50 changed from 5.9309 to 5.4697 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.055 and 4.055 tokens per draft round, with median client-estimated round durations of 26.80 and 24.57 ms, respectively. Same-service AIME scored 30/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7133520077) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7133908991) + +## Group the feature projections after CPU lookup + +Four Engram layers each reduced four BF16 feature keys and their value separately in the target decoder trace. Packing the trained weights and rank-local biases after loading preserves the CPU table and the frozen n-gram lookup. A single six-row projection and reduction supplies all five outputs. The initial projection-only implementation changed the median of the eight per-rank graph times from 379.76 to 137.66 µs. With seven inputs on each rank the normalized output had 0 differing BF16 elements across all comparisons, with a maximum absolute difference of 0. Each rank retained the captured buffer addresses after a weight reload, observed changed outputs and compared them with the newly loaded reference (0 differing elements). A separate single-device run measured 193.12 and 77.48 µs. The deployment's 130,048-token performance and AIME results determine selection. The chosen implementation also groups the pointwise RMS normalization products before the native dot reduction and gating. In the eight-rank isolated comparison the median per-rank time fell from 379.47 to 103.53 µs. Gate and output values matched for every one of seven inputs on every rank. On one device the combined production module took 46.09 µs versus 191.68 µs for the reference. Before and after reloading mutated trained weights, all BF16 outputs matched and the captured addresses were stable. The timing for the earlier projection-only variant is given above. On the full timed service the grouped reduction ran on the one-request, six-token target graph. Fifteen of twenty greedy continuations matched the parent. Mean delivered tokens per DFly round changed from 4.055 to 4.036, and median estimated step duration fell from 24.57 to 23.57 ms. + +The formal twenty-request P50 changed from 5.4697 to 5.2881 ms/token. The greedy completions matched in 15/20 cases. The two runs delivered 4.055 and 4.036 tokens per draft round, with median client-estimated round durations of 24.57 and 23.57 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7134716954) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7135100640) + +## Read the shared DFly history at the engine’s effective page size + +Startup logged a default of 128 tokens, but the served engine reported effective_attention_block_size=64 in every saved cache metric. The earlier fixed-128 kernel did not run. This revision passes the block size from the allocated target cache into Triton's page-address calculation. At 64 tokens per page the production dispatch guard passed, and shared C8 gathers plus the reference batched products took 83.82 µs per DFly layer versus 250.65 µs. Replaying nine graph inputs included three anchors spanning the physical page boundary, invalid IDs, an inactive request and long contexts. All BF16 outputs matched. The same checks on 128-token pages measured 84.39 versus 255.45 µs. Both layouts used the same five DFly proposals. In the full-size round 16 service, rank zero logged the shared C8 history kernel during capture and then logged one-request DFly full-graph replay during warmup. + +The formal twenty-request P50 changed from 5.2881 to 5.2405 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.036 and 4.036 tokens per draft round, with median client-estimated round durations of 23.57 and 23.39 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7135733220) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7136129006) + +## Page-local C8 rows and complete pooled keys + +The engine's saved cache metrics report a 64-token physical page. Keeping C8, raw IndexPool features and pooled keys in distinct regions of this page allows a complete native BF16 matrix product with FP32 output and direct native C8 reads. With 130,048 input tokens the one-device replicated scorer took 179.52 µs with interleaved records and 80.58 µs with page-local records. C8 attention took 114.17 versus 73.70 µs. These standalone timings use a replicated parent scorer. A full TP8 comparison against the sharded production scorer follows. All six captured lengths matched for global recall, general reads and BF16 attention outputs. The C8 and raw fields, page relocation, partial writes and copied pooled keys matched as well. The 64-token page uses 65,600 bytes instead of 64,000. The 2.5% additional storage per sparse layer reduces KV capacity at fixed memory. A three-layer captured production comparison on the selected parent's AICPU_TS TP8 communicator measured a median of 629.42 µs for sharded recall and C8 attention versus 473.85 µs for page-local recall and direct attention. Six production lengths matched on each of eight ranks. The isolated three-layer scorer used 242.19 µs with separate visible page tables and 231.54 µs with one table reused within this forward. Seven poisoned-table and short-table replay cases matched across three layers for each of two last-page layouts. In the full service the native-page option was present in the launcher. The startup capture emitted the existing paged scorer message and no contiguous-page selection message. The cache again reported 14,172 physical blocks of 64 tokens, identical to round 15. The microbenchmark gain therefore cannot be attributed to the serving path. A diagnostic of model-construction and allocator block sizes is queued. + +The formal twenty-request P50 changed from 5.2881 to 5.3025 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.036 and 4.036 tokens per draft round, with median client-estimated round durations of 23.57 and 23.56 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7136183497) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7136568694) + +## Reuse verified output suffixes for five-token draft proposals + +DFly runs five correction and vocabulary projections every step. A single-request greedy decoder can instead form five proposals from the most recent matching eight-token suffix in up to 2,052 prior generated positions. Each lookup reads only tokens already verified for that request, after its prompt boundary. The original target still verifies every proposal. Rank zero publishes the result to all eight ranks before deciding whether to enter the DFly graph. In the twenty completed round 15 outputs, a strictly past-only replay found a match at a median 62.9% of generated positions. Among matches, the median per-request number of consecutive correct tokens was 4.31 of five. Fourteen of the twenty generated sequences contained no configured EOS or pad token. Restricting the diagnostic to the prefix before either token and dropping constant eight-token suffixes gave 40.96% median coverage and 3.87 consecutive matches among eligible positions. These diagnostics cover candidate positions and do not predict serving speed. The actual production helper returned uniform branches and exact token IDs on all eight ranks for 72 changing cases, including a different slot, an identical prefix in the prompt, short/long histories, unavailable lookahead, near-context-limit and inactive inputs. The rank-median cost of the decision, including the host synchronization, was 1142.30 µs on misses and 1140.67 µs on hits. Formal measurements include stalls behind earlier target work. + +The formal twenty-request P50 changed from 5.2881 to 5.9426 ms/token. The greedy completions matched in 2/20 cases. The two runs delivered 4.036 and 3.991 tokens per draft round, with median client-estimated round durations of 23.57 and 24.42 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7136751167) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7137124915) + +## Read six-token verification features from registered CPU tables + +Single-request verification needs twelve 96-value BF16 vectors per feature layer on each rank. The four full tables remain in CPU memory. Registering their rank-local host allocations with CANN lets the NPU read the requested vectors into existing replay buffers after constructing the four layers’ indices in a single kernel. With the checkpoint token map, all seventy hash comparisons matched, including invalid history, visual IDs and padded rows. The isolated compute graph took 55.31 versus 5.38 µs. The integrated test instantiated four production FlashEmbedding modules using 96-column trained weights and 65,498 registered rows per rank-local shard and a reduced 32,749-row hash modulus so all hash heads exercised real rows. It checked forty inputs, three fallbacks, in-place checkpoint reloads and repeated closure. The wall times overlap the separate draft-input diagnostic on another device. The whole production input-preparation call took 183.87 µs, compared with 2511.59 µs for the original CPU path and 1415.35 µs for grouped CPU lookup. The formal selection uses all eight ranks, full-size tables and the frozen requests. + +The formal twenty-request P50 changed from 5.2881 to 4.6415 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.036 and 4.036 tokens per draft round, with median client-estimated round durations of 23.57 and 20.61 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7137275506) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7137647491) + +## Bind the native sparse cache layout to 64-token engine pages + +Round 17's native path was absent from the serving log. A new offline profile from the selected engine showed a configured block size of 128 during construction and 64 tokens per physical page when the cache was bound. Both lines reported 1000 bytes per token. The opt-in layout now declares a 64-token requirement through the model’s attention backend. The scheduler and model cache specification consume the same negotiated size, and the first use checks the allocated shape. An explicit different user block size keeps the original layout. The earlier exact six-length A5 test of page contents and the complete TP8 timing apply to this same storage and operator implementation. All eight ranks matched in that check. The new backend preference and two-page address-order unit checks also passed inside the deployment image. The whole revised service must independently qualify. + +A separate eight-rank test of the single-row routed expert path used the production MXFP8 layout and clamped SwiGLU with generated weights. Gathering each rank’s activation and expert assignments before a local expert calculation and a reduce-scatter took 187.53 µs versus 95.07 µs for the current MC2 dispatch and combine. Six uniform and concentrated routing cases had relative RMS differences from 0.0048 to 0.0550. The candidate keeps the existing expert communication. The hardware receipt is gathered-experts-check-5c608f65/log on neimenggu-a5. + +The formal twenty-request P50 changed from 4.6415 to 4.5444 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.036 and 4.036 tokens per draft round, with median client-estimated round durations of 20.61 and 20.15 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7138450314) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7138805719) + +## Stage DFly inputs directly in the six-token graph replay buffers + +The DFly host path separately constructs anchor, M-RoPE, active, sampled-token and hidden-state inputs, then copies them and five 2,056-column page-table slices into graph buffers. Two kernels can instead stage all inputs in those buffers. The production helper preserved all destination values across 36 active, inactive and rejected-sample inputs with M-RoPE, and 36 without it. The checks used padded hidden strides, moved slots, changing page tables and out-of-context anchors, and verified unchanged unused rows. Three unsupported shapes correctly fell back. Host wall time fell from 522.25 to 77.52 µs with M-RoPE and from 360.35 to 83.14 µs without it. The same NPU operations in a captured loop took 32.39 to 4.18 µs with M-RoPE. This change keeps five proposals and the same target/draft models. The device test overlapped the separate registered-feature diagnostic on another NPU. + +The formal twenty-request P50 changed from 4.6415 to 4.6410 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.036 and 4.036 tokens per draft round, with median client-estimated round durations of 20.61 and 20.57 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7138835566) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7139179375) + +## Local ordinary embeddings and exact FP32 vocabulary winners + +The accepted trace contained six full casts of a 15,104 × 3,072 vocabulary shard, totaling 0.61 ms on rank zero inside one complete verification step. Embedding lookup also occupied a TP reduction at the target input and additional reductions for the five DFly corrections. The candidate copies only the ordinary model input vocabulary onto each rank at load time and keeps a local FP32 copy of each checkpoint output shard. At single-request draft selection the eight ranks exchange just one score and token ID each. It uses 0.864 GiB per rank for these two buffers. Engram keeps its existing CPU storage. A real checkpoint differential on all eight ranks matched input embeddings, all five chosen embeddings, full local FP32 logits, ties and the all-NaN case. Eight changing cases included the high-vocabulary boundary and a weight reload with stable captured addresses. Median six-token embedding time across ranks changed from 86.21 to 16.50 µs. One six-token lookup plus five sequential local projections, winner exchanges and ordinary lookups changed from 1365.13 to 543.18 µs. This diagnostic isolates the vocabulary calls and does not execute the five DFly layers. + +On separate idle NPUs before this service, an MLA V3 operator call succeeded for a 1,536-channel low-rank query and 128 unrotated head dimensions. The installed CANN runtime rejected the actual checkpoint’s 1,024-channel low-rank query for both four and eight local heads, reporting that 1,536 or 2,048 channels are required. The target retains its existing MLA implementation. This was a runtime geometry test with generated BF16 operands. See operator-native-mla-geometry.log and the [CANN MLA V3 operator documentation](https://www.hiascend.com/document/detail/en/CANNCommunityEdition/850/API/aolapi/context/ops-transformer/aclnnMlaPrologV3WeightNz.md). + +The formal twenty-request P50 changed from 4.6415 to 4.4509 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 4.036 and 4.036 tokens per draft round, with median client-estimated round durations of 20.61 and 19.76 ms, respectively. Same-service AIME scored 30/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7139214512) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7139547103) + +## Build the two incremental IndexPool keys for single-request verification + +The selected reference trace shows a six-row raw-key normalization and two group projections before each sparse attention recall. This option gathers eight cache rows and the first coordinate of each four-token group, uses the joined trained FP32 value and gate matrices, and preserves the checkpoint’s native softmax, sum and RMS operations. It also shares query rotary frequencies for identical positions and rotation parameters within a forward. The integrated hardware test read physical 64-token pages, tested three trained sparse layers, and matched encoded cache values over 128 graph inputs per layer and layout. It covered short history, page boundaries, long contexts, padding, scalar and three-axis positions, raw normalization, and in-place checkpoint reloads. Median times across the tested layers, amortized over three consecutive layers, were 66.24 to 40.93 µs with interleaved rows and 62.90 to 38.89 µs with separate page regions. An earlier custom reduction changed three of 384 encoded comparison values on a trained layer, with maximum absolute difference 0.015625. This candidate restored the native reductions before its independent comparison. The formal accuracy gate remains mandatory for qualifying performance. + +An eight-rank A5 comparison evaluated the 41 routed MoE layers’ expert group descriptors with the real EP8 geometry, generated MXFP8 weights, a clamped SwiGLU, communication quantization mode 4 and varying active-token masks. MC2 dispatch produced either cumulative offsets, which required a difference and concatenation for activation, or per-expert counts directly. The captured BF16 outputs on live tokens and the received per-expert counts matched under six changing input and routing patterns on every rank. Median per-rank times were 88.41 and 86.18 µs respectively. The slowest rank took 91.92 and 96.19 µs. This mixed timing did not justify a standalone full-service candidate. The raw receipt is expert-counts-check-28843141/log. + +The formal twenty-request P50 changed from 4.4509 to 4.5103 ms/token. The greedy completions matched in 11/20 cases. The two runs delivered 4.036 and 4.022 tokens per draft round, with median client-estimated round durations of 19.76 and 19.35 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7140165934) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7140496172) + +## Attend to recalled C8 history and the six causal DFly positions + +The five DFly layers each attend to 2,048 past target candidates and at most six rows produced by the draft. Read target history directly from its allocated C8 pages. Combine the native history statistics, freshly packed causal rows and learned sink in a common normalization without modifying the target cache. A hardware replay used 64-token pages with separate physical page regions, changing page addresses, gaps, active and inactive rows, empty history and short prefixes. Across seven inputs the largest absolute BF16 context difference from the current FP32 attention was 0.015625, and the largest mean absolute difference was 0.000694. The complete attention subset took 246.93 µs with the current implementation, 134.44 µs with a reference native buffer construction, and 71.41 µs with the candidate. The test overlapped independent diagnostics on other NPUs. All five proposals continue to be verified by the unchanged target model. This trial includes the contiguous 64-token cache layout required by the native history reader. That layout alone measured 4.5444 ms/token in round 20. This round compares the complete native attention path with the current selected parent. + +Before startup, the 950DT runtime accepted a 2,048-channel low-rank query with the checkpoint's 192 unrotated dimensions for both four and eight local heads. The earlier 1,024-channel call failed. These calls used generated weights to check supported shapes. A trained projection comparison for the larger shape remains separate. [Ascend MLA Prolog V3 operator reference](https://www.hiascend.com/document/detail/en/Pytorch/2610/apiref/customapi/docs/en/custom_APIs/torch_npu/torch_npu-npu_mla_prolog_v3.md) + +A separate six-row test reconstructed each of nine trained MXFP8 weight shards exactly from the native weight and scale layout. Replacing the activation quantizer with BF16, joining the input projections and pre-multiplying the query and key absorption weights changed a sliding-layer projection sequence from 36.74 to 30.48 µs. Two sparse layers changed from 35.07 to 23.30 µs and from 35.24 to 23.31 µs. These local outputs changed numerically. The largest relative RMS deviation of the final projected outputs was 4.7% on these test inputs. This path was not enabled in the round 24 service. + +Joining a routed expert's gate and latent input matrices using a BF16 product with FP32 output preserved the selected 16 expert IDs and every BF16 latent output for 40 synthetic input/reload cases at each of three trained layers and two batch sizes. The isolated single-row pair took 13.82–16.13 µs before joining and 6.72–6.90 µs after joining. Fusing the two adjacent sandwich normalization boundaries shortened four trained comparisons, with a largest observed absolute BF16 difference of 0.015625. The experimental direct C8 lookup needed 175,799,040 bytes and did not reproduce all normalized cache codes or sidecar initialization. The paired sparse-layer test completed all 40 graph replays, retaining separate KV contents and matching the expected fallback when metadata changed. Logs on the A5 host are operator-expanded-mla-geometry.log, operator-absorbed-projections.log, operator-joint-router-input.log, operator-sandwich-ihc.log, operator-c8-direct-lut.log and operator-layer-recall.log. + +The formal twenty-request P50 changed from 4.4509 to 4.5089 ms/token. The greedy completions matched in 2/20 cases. The two runs delivered 4.036 and 3.938 tokens per draft round, with median client-estimated round durations of 19.76 and 18.78 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7140524737) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7140846477) + +## Attend to recalled C8 history and the six causal DFly positions + +The five DFly layers each attend to 2,048 past target candidates and at most six rows produced by the draft. Gather recalled target rows once alongside the six fresh draft rows. Compact each causal candidate list for the native C8 operator and preserve the inactive-row mask. A hardware replay used 64-token pages with interleaved physical cache rows, changing page addresses, gaps, active and inactive rows, empty history and short prefixes. Across seven inputs the largest absolute BF16 context difference from the current FP32 attention was 0.015625, and the largest mean absolute difference was 0.001000. The complete attention subset took 257.55 µs with the current implementation, 138.02 µs with a reference native buffer construction, and 94.07 µs with the candidate. The test overlapped independent diagnostics on other NPUs. All five proposals continue to be verified by the unchanged target model. + +After all 24 original rounds closed, the continuation used a new native InferRSI service_reuse session with capacity for 64 total rounds and the original deadline. The initial baseline, selected comparison parent, signed revisions, all attempt and service IDs, frozen data and scoring rules were retained. InferRSI revalidated the selected evidence chain. The handover did not start an additional inference service. + +Before the service started, the eight-rank trained-vocabulary probe compared a compact global-winner exchange against full-logit greedy rejection sampling. The 128 rank/case records agreed on every accepted count and valid output token for uniform and mixed draft lengths. For six rows, median verification time was 252.81 µs with the reference, 116.35 µs with cached FP32 weights, and 83.92 µs with BF16 weights and FP32 output. These are operator measurements. + +On four checkpoint layers, combining the one-row routed input projections reduced the measured region from 24.81–24.95 µs to 15.74–16.06 µs, with identical top-16 expert IDs in 96 inputs. A separate padded MLA prolog probe reproduced the query and normalized KV latent tensors. Its rotary key diverged even with a neutral position, so the native layout requires an independent check before service testing. + +The formal twenty-request P50 changed from 4.4509 to 4.5721 ms/token. The greedy completions matched in 1/20 cases. The two runs delivered 4.036 and 3.956 tokens per draft round, with median client-estimated round durations of 19.76 and 19.24 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7140902838) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7141237373) + +## Share logical recall between neighboring target sparse layers + +The 42-layer checkpoint has twelve sparse-attention layers. The opt-in path shares the logical positions selected by layers 1, 9, 17, 25 and 33 with layers 5, 13, 21, 29 and 37 respectively. These five consumers still read their own KV cache, compute their own attention and update their own pooled keys. A missing donor or different metadata falls back to the consumer’s own trained index. Sharing applies within the same decode forward and supports multiple requests. It is a model approximation that can change long-context answers and DFly proposals. In one full rank-zero verification trace, the five consumers spent 0.452 ms in page scoring, score exchange, shard assembly, top-k and expansion, in addition to producing index queries. The A5 integration diagnostic exercised batches of one, three and sixteen, one- and six-token query widths, short and long histories, inactive rows and different metadata. Five changing inputs per captured path confirmed separate per-layer KV values, complete per-layer pool updates, the expected donor positions and independent fallback. The synthetic test verifies dispatch and causal indexing. The frozen workloads determine serving speed and accuracy. The design is informed by Bai et al., [IndexCache](https://arxiv.org/abs/2603.12201). That paper’s experimental models and quality results do not establish accuracy for Hy4. + +An eight-rank probe ran the checkpoint's complete five-step DFly hidden correction with the trained vocabulary head. Including all five serialized vocabulary decisions, the median rank measured 788.79 µs on the reference, 752.57 µs with precomputed token contributions and 744.42 µs with a replicated correction head. The maximum relative RMS differences in the corrected hidden vectors were 0.047% and 0.444% for these latter two paths. All 12 changing inputs produced the same five proposal IDs on every rank. Replicating the correction alone saved 145.91 µs in isolation, but just 44.37 µs when its consumers were included. + +A trained native MLA probe used the interleave-half convention documented by [Ascend op-plugin](https://gitcode.com/Ascend/op-plugin/blob/master/docs/zh/custom_APIs/torch_npu/torch_npu-npu_mla_prolog_v3.md). On layers 2, 5 and 41, a neutral native rotation followed by explicit model rotation exactly reproduced all checked BF16 reference tensors for eight inputs per layer. The native fused rotation took 29.90–30.61 µs compared with 45.02–47.01 µs for the sampled reference region. A follow-up comparison uses the selected service's fused M-RoPE path on both sides and includes the actual layout conversions. + +The 950DT native FP8 lightning indexer consumed the strided 65,600-byte physical pages with 16 heads, six query rows and 511 groups. The graph took 52.62 µs including metadata and sorting. At 130,047 visible tokens it recovered 507–510 of the dense FP32 scorer's 511 selected groups per row. All 48 rows across eight context lengths respected their causal bounds. This preliminary comparison did not time production cache writes or eight-rank end-to-end retrieval. The measured FP8 approximation cannot be described as an exact replacement. + +The formal twenty-request P50 changed from 4.4509 to 4.2747 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 4.036 and 3.982 tokens per draft round, with median client-estimated round durations of 19.76 and 19.11 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7141282644) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7141606517) + +## Prepare the routed FFN input from the four attention residual channels + +The single-row TP shard repeatedly normalizes the attention result, updates four iHC residual channels, prepares the FFN input and computes separate router and latent GEMMs. Fuses the attention output normalization and iHC input preparation for single-request routed layers. Computes the router and latent input together with BF16 inputs and FP32 output. The shared experts receive the normalized original-width input. The complete trained boundary on 950DT took layer 1 24.95 to 16.06 µs, layer 2 24.84 to 15.74 µs, layer 20 24.89 to 15.93 µs, layer 41 24.81 to 15.94 µs. Over 24 changing inputs per layer, the sorted sixteen-expert arrays had 0 different entries out of 1536. Largest absolute differences in the updated channels, post gates, shared input, router logits and BF16 routed latent were 0, 0, 0.000976562, 0.000164002, 0.00195312. The general path preserves the existing multi-request router shape. The fixed service accuracy gate measures any effects on generation. + +The installed greedy serving helper matched the reference on all 192 rank/case comparisons, including mixed request lengths, noncontiguous slots, placeholder drafts and partially completed prefill. Three trained native MLA prologs reproduced the BF16 reference in all 30 cases. The same six-row region, including the selected M-RoPE layout on both paths, took 27.40 to 22.07 µs (layer 2), 25.84 to 21.65 µs (layer 5) and 26.04 to 22.00 µs (layer 41). + +The 950DT native sliding-window attention took 30.76 µs on contiguous BF16 KV. KV embedded in strided rows or separate regions of each physical page took 272.66 and 251.92 µs, respectively. The maximum absolute difference from FP32 attention was 0.007813. The FP8 lightning indexer took 50.00–50.93 µs for 544–640 candidate groups. Gathering those candidates and rescoring them brought total latency to 158.62–165.91 µs, compared with 68.01–69.36 µs for contiguous dense scoring. These single-device results exclude eight-rank score exchange and serving overhead. + +On 64 trained routed experts, the installed CANN 9.3 clamped MXFP8 GMM epilogue preserved finite results at all eight tested live-row counts. The complete two-projection region took 45.60 µs versus 42.43 µs with the selected operators. In the five-token DFly proposal network, the existing FP32 attention with 2,048 historical positions measured 254.79 µs per layer. Limiting its historical input to 1,024 or 512 positions took 182.90 and 129.28 µs. The target still verifies all five proposals. The effect on their acceptance needs direct measurement. + +The formal twenty-request P50 changed from 4.2747 to 4.2726 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 19.11 and 19.15 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7142343002) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7142747744) + +## Verify greedy target tokens from the eight local vocabulary winners + +Full-logit gathering and repeated vocabulary projections remain on the critical path after the replicated input embedding. Project unprocessed greedy target rows and single-request draft proposals using BF16 weights with FP32 output. Exchange one score and token ID per target row, then verify the five proposals on their original request boundaries. The eight-rank operator comparison reduced the six-row target calculation from 252.81 to 83.92 µs. The installed-serving helper also reproduced every valid token, acceptance count and rejection count in 192 rank/case comparisons covering mixed lengths, discontiguous active request slots, partial prefill and placeholder drafts. The guard delegates stochastic requests, logits transforms, grammars and log probabilities to the regular sampler. The BF16 multiplication with FP32 output may move low-order logits. Sources include greedy-verification-check-2068a70f/log, operator-serving-verifier.log, the trained projection comparison recorded in round 7 and the installed V2 rejection sampler. + +The formal twenty-request P50 changed from 4.2747 to 4.1818 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 19.11 and 18.74 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7142881155) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7143200635) + +## Read six sliding verification windows directly from the native C8 pages + +This path reads 64-token contiguous C8 pages. A small kernel addresses the 512-token causal window directly, putting invalid entries after all valid indices for short prefixes. The same forward can reuse the addresses across layers in the same cache group. A single kernel applies the learned sink and the inactive-row mask to the native output. In six A5 cases the captured result matched the native operation’s separate sink adjustment. The largest BF16 context difference from the selected FP32 contraction was 0.015625. Native C8 with the fused adjustment took 27.64 µs, compared with 40.47 µs for the selected six-window packed contraction and 39.10 µs with the original sink. The test also verified physical row IDs and empty-query outputs. This comparison uses the packed C8 sparse operator and its returned softmax statistics. The dense FIA kernel’s separate MLA sink restrictions do not apply. This trial includes the contiguous 64-token cache layout required by the native history reader. That layout alone measured 4.5444 ms/token in round 20. This round compares the complete native attention path with the current selected parent. + +The DFly history comparison used two unscored LongBench v2 documents outside the frozen performance set. Replays with the complete 2,048 positions reproduced all five captured proposal tokens at all 16 sampled anchors. On the first document, one plus the number of accepted leading proposals averaged 2.875 with the complete history, 2.625 with 1,024 positions and 2.750 with 512. On the second document the corresponding values were 4.375, 4.375 and 4.125. The measured reduction in proposal computation did not compensate for these shorter accepted prefixes in the selection estimate. The next timed candidate keeps the complete five-slot DFly path. + +A loaded-weight inspection also confirmed that the routed latent down-projections use CustomReplicatedOp with AscendUnquantizedLinearMethod. At layers 1, 2, 20 and 41, testing three activation scales per layer preserved every top-16 expert assignment and the BF16 latent outputs. The largest FP32 router score difference in these twelve comparisons was 0.00001145. This identifies the wrapper guard that prevented round 27 from dispatching and supplies evidence for a subsequent normalization trial. + +The formal twenty-request P50 changed from 4.2747 to 4.2092 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 3.982 and 4.064 tokens per draft round, with median client-estimated round durations of 19.11 and 17.74 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7143383526) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7143736551) + +## Combine native sparse cache pages with the measured local greedy verifier + +Two earlier full-service trials each preserved every generated token on all 20 requests. Negotiating the native 64-token IndexPool and C8 layout in round 20 improved TPOT by 2.09% on its own parent. Local greedy verification in round 28 improved TPOT by 2.17% on the current parent. The paired median per-step estimates fell by 0.464 and 0.377 ms respectively. They address different serialized regions: physical target cache access and post-target vocabulary projection/verification. Their joint gain must be measured on the current paired-recall implementation. The trial keeps the complete trained sparse indices and DFly-5. The local vocabulary change retains its original signed-off commit `44df7581cbcd15820db02865a183e45252a4b2cc`. The page geometry has its own signed-off commit on top. [Page-layout measurement](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7138805719). [Vocabulary measurement](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7143200635). + +Eight-rank replay of the selected checkpoint used five trained DFly slots on two natural LongBench v2 documents outside the performance set. The serial correction took 756.6 µs and the parallel schedules took 247.6, 400.5 and 542.7 µs. Document `66fcffd9bb02136c067c94c5` reproduced 87/87 five-token proposals. The full correction averaged 4.356 delivered tokens including the bonus, compared with 3.931, 4.207 and 4.322 for one, two and three parallel refinements. Document `66f94f9ebb02136c067c4fde` reproduced 122/122 five-token proposals. The full correction averaged 3.131 delivered tokens including the bonus, compared with 2.672, 2.902 and 3.049 for one, two and three parallel refinements. The reduction in accepted tokens offset the saved correction time at the measured step cost. + +The same diagnostic preserved the full trained sparse snapshot while testing smaller target-only subsets. On the two documents, four independently sampled anchors per sparse layer showed enough retained mass for 128 groups in layers 25 and 29, 256 groups in one additional layer, and 384 groups across all twelve sparse layers. Under those limits the estimated savings stayed below 0.35 ms per verification step. Across six input cases on all eight ranks, combining four Engram feature reductions returned identical BF16 vectors. The loaded-weight median fell from 307.54 to 102.11 µs. Feature extraction used the existing registered host tables. + +Offline export of all eight existing rank traces located the apparent 916 µs first DFly all-reduce on the steady profiled step. Rank 6 spent 915 µs in the preceding full-logit all-gather of 90,624 elements, while rank 0 spent 25 µs there. Rank 6 then spent 18 µs in the first DFly reduction and the other seven ranks spent 905–916 µs. The late participant was rank 1 on the other captured step. This is evidence of rank skew in the baseline sampling path. The local greedy verifier removes this full-logit gather on its supported path. The separate twenty-request service run measures the candidate’s latency. + +The formal twenty-request P50 changed from 4.2747 to 4.0599 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 19.11 and 18.19 ms, respectively. Same-service AIME scored 28/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7143877535) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7144184387) + +## Join the four Engram reductions and fuse routed-block normalization + +The selected engine reported the ordinary replicated down-projection wrapper in 4 sampled routed layers. The packed trained projection preserved all top-16 assignments in 12 loaded-weight comparisons. The local attention-to-FFN input region took 24.86 to 15.93 µs. The additional FFN-output and next attention-input normalization probe took 14.00 to 8.87 µs on one-row shards. The combined region estimate is 546 µs per verification pass. Reading the retained target pages plus six private DFly records took 68.62 µs per draft layer versus 247.43 µs for the selected FP32 contractions and 71.52 µs for the earlier partitioned reader. Seven changing-input cases preserved every checked byte outside the private records and matched the joined native attention result. Candidate ranking accounts for the earlier native paths' measured acceptance cost, estimated at 428 µs per pass. The loaded plugin's four trained Engram projections took 307.54 µs with four TP reductions and 102.11 µs with one combined reduction. All six inputs on eight ranks matched exactly, including the captured held-out rows and changing activation scales. Projection inputs depend on the hash lookup alone. The four hidden-state gates still run at their corresponding decoder layers. The registered CPU tables and all existing learned projection weights keep their placement. The CPU regression also verified layer ordering, shapes and one shared reduction. The Engram change is independently signed in `111bf57e41e35d4e052d81cd9bd8e623f6313d58`. The second commit covers the two residual boundaries and trained input projection in local routed blocks. + +Tencent's shipped checkpoint contains a 3,072-feature confidence head. The official DFly2 configuration enables the head, and AngelSpec trains its logit against observed token acceptance. A CPU-only replay used its actual weights and the saved final draft hidden features for two documents outside the frozen benchmark. On `66f94f9ebb02136c067c4fde`, the first-slot mean predicted probability was 0.745 when the proposed token matched the verified continuation and 0.554 when it differed. A continuation from a past eight-token match, restricted to candidates that agree with DFly in the first slot, gained 4 accepted tokens over 122 anchors. On `66fcffd9bb02136c067c94c5`, the first-slot mean predicted probability was 0.758 when the proposed token matched the verified continuation and 0.405 when it differed. A continuation from a past eight-token match, restricted to candidates that agree with DFly in the first slot, gained 6 accepted tokens over 87 anchors. Together the prefix rule gained ten delivered tokens across 209 anchors. Every consulted five-token continuation ended in the request's visible history. This comparison leaves both the standard five-token drafter and the scored requests untouched. [Official Hy4 flash DFly2 configuration](https://github.com/Tencent/AngelSpec/blob/main/angelspec/config/dfly2_hy_v4_flash_draft_config.json) · [Confidence-head loss](https://github.com/Tencent/AngelSpec/blob/main/angelspec/models/dspark.py). + +A CPU-only comparison of the eight previously exported device traces aligned all 41 routed layers by their residual boundaries. During the steady step, the pair of grouped products and the intermediate activation averaged 40.45 µs per routed layer. The median range across the eight ranks was 17.03 µs. Summing the per-layer slowest rank minus the per-layer mean gives 345 µs over the full target. This is an idealized imbalance indicator, not a measured serving speedup. The first captured step gave 342 µs. A physical expert permutation would recover only part of this difference and would need to preserve the checkpoint's original top-16 decisions. The diagnostic reads existing device events and makes no changes to router choices. See the 950-filtered CANNBot card `model/inference/optimizations/rules/perfect_eplb_profiling_upper_bound` and `routed-rank-time.json` on the leased host. + +On the two held-out documents, the previously saved sparse snapshots covered 226 and 285 distinct long positions. Across all five DFly source layers the median recall contained every one of the most recent 32 tokens. At 128 tokens, the median still contained all positions except for layer 41 on one document, which covered 84.4%. At 512 tokens the measured median coverage across the five layers ranged from 59.4% to 90.2% on the first document and 58.5% to 65.4% on the second. The upcoming full DFly replay checks the effect of adding missing local positions while preserving every older trained group. These coverage statistics alone do not measure proposal acceptance. + +The optional proposal-depth diagnostic stopped during its initial file copy because its C8 helper was missing from the probe mount. It produced no timing or accuracy result. The missing helper was supplied and the packaged diagnostic imported successfully inside the pinned image. Its device run moved to the next idle interval so the round 31 service could proceed immediately. + +The formal twenty-request P50 changed from 4.0599 to 4.1209 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 3.982 and 3.847 tokens per draft round, with median client-estimated round durations of 18.19 and 17.74 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7144884525) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7145190074) + +## Fuse the residual normalization and trained routed input on the local token shard + +The selected engine reported the ordinary replicated down-projection wrapper in 4 sampled routed layers. The packed trained projection preserved all top-16 assignments in 12 loaded-weight comparisons. The local attention-to-FFN input region took 24.86 to 15.93 µs. The additional FFN-output and next attention-input normalization probe took 14.00 to 8.87 µs on one-row shards. The combined region estimate is 546 µs per verification pass. Reading the retained target pages plus six private DFly records took 68.62 µs per draft layer versus 247.43 µs for the selected FP32 contractions and 71.52 µs for the earlier partitioned reader. Seven changing-input cases preserved every checked byte outside the private records and matched the joined native attention result. Candidate ranking accounts for the earlier native paths' measured acceptance cost, estimated at 428 µs per pass. The operator receipts are from the leased A5 and rank the candidates before the independent serving measurement. Sources include operator-routed-boundary.log, operator-sandwich-ihc.log, routed-layout.json, operator-target-c8-gather.log and operator-paged-draft-overlay.log. + +The separate A5 operator comparison kept every BF16 reduction on the original HCCL group and changed only gather copies to a dedicated eight-rank CCU group. The loaded checkpoint Q-A projection sequence took 175.69 to 95.04 µs, the integer winner gather plus reduction took 81.54 to 22.13 µs, and the combined sequence took 252.23 to 99.58 µs at the median rank. The eight changing cases on each of eight ranks had identical reduced outputs. These are isolated graph times. The next calibration compares every raw rank-ordered element as well as the actual loaded five-step correction path. The separate all-gather-plus-matmul fused interface returned CANN 561000 and the diagnostic was terminated. No serving speedup is attributed to that interface. + +A separate one-document diagnostic reached the five-layer draft comparison, where the injected native path still used the old interleaved KV view. The resulting 1,025-byte per-token stride cannot be reinterpreted as aligned words on the parent's 64-token page layout. That diagnostic produced no qualifying draft or attention result. The injector now inserts only the alternative branch and retains the deployed source.cache_rows() access for both the control and the native page read. Calibration uses two held-out documents on the selected parent. Round 32 independently measures the routed normalization component of round 31 to isolate its effect on the five-token acceptance path. + +A causal sparse-index shortlist was slower than scoring the complete cache on the isolated A5 operand. For example, using the first query to shortlist 4,096 groups for the next five queries took 75.65 µs compared with 44.22 µs for full scoring. The two-stage method was deferred. + +The formal twenty-request P50 changed from 4.0599 to 4.1429 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 3.982 and 3.847 tokens per draft round, with median client-estimated round durations of 18.19 and 17.78 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7145379369) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7145681538) + +## Use a dedicated CCU communicator for small tensor-parallel all-gathers + +The target Q-A projection and BF16 reduction used the original reduction communicator in both graphs. Only all-gather used the independent CCU group. At the median of all eight ranks the target sequence took 175.69 to 95.04 microseconds, the integer winner projection took 81.54 to 22.13 microseconds and the combined sequence took 252.23 to 99.58 microseconds. Eight changing cases on each of eight ranks matched their reduced target outputs and winner IDs. A CPU regression also exercised rank ordering and the wide-input fallback. The auxiliary loaded-model RPC stopped while constructing an HCCL option outside its vLLM configuration context, before producing a measurement. The full candidate is based on the successful eight-rank operator results. The fixed serving trial compares full token sequences and actual latency. + +Rounds 31 and 32 generated the same full 1,024-token output for each of the 20 request IDs. Removing only the cross-layer Engram projection left these token trajectories unchanged. Both variants averaged 3.847 delivered tokens per draft step, down from 3.982 on the selected parent. The routed normalization and projection change alone reproduced the acceptance loss. + +The target Q-A projection and BF16 reduction used the original reduction communicator in both graphs. Only all-gather used the independent CCU group. At the median of all eight ranks the target sequence took 175.69 to 95.04 microseconds, the integer winner projection took 81.54 to 22.13 microseconds and the combined sequence took 252.23 to 99.58 microseconds. Eight changing cases on each of eight ranks matched their reduced target outputs and winner IDs. A CPU regression also exercised rank ordering and the wide-input fallback. The auxiliary loaded-model RPC stopped while constructing an HCCL option outside its vLLM configuration context, before producing a measurement. The full candidate is based on the successful eight-rank operator results. The fixed serving trial compares full token sequences and actual latency. + +The formal twenty-request P50 changed from 4.0599 to 4.0305 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 18.19 and 18.05 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7145810967) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7146102602) + +## Read the full target history and the fresh causal DFly rows in one native attention call + +The selected engine reported the ordinary replicated down-projection wrapper in 4 sampled routed layers. The packed trained projection preserved all top-16 assignments in 12 loaded-weight comparisons. The local attention-to-FFN input region took 24.86 to 15.93 µs. The additional FFN-output and next attention-input normalization probe took 14.00 to 8.87 µs on one-row shards. The combined region estimate is 546 µs per verification pass. Reading the retained target pages plus six private DFly records took 68.62 µs per draft layer versus 247.43 µs for the selected FP32 contractions and 71.52 µs for the earlier partitioned reader. Seven changing-input cases preserved every checked byte outside the private records and matched the joined native attention result. Candidate ranking accounts for the earlier native paths' measured acceptance cost, estimated at 428 µs per pass. The operator receipts are from the leased A5 and rank the candidates before the independent serving measurement. Sources include operator-routed-boundary.log, operator-sandwich-ihc.log, routed-layout.json, operator-target-c8-gather.log and operator-paged-draft-overlay.log. The retained model reproduced every five-token control at 32 anchors on each of two unscored documents. The same native attention arithmetic used by the private-page path was timed in all five DFly layers. Document ending 7c4fde delivered 3.562 to 3.562 tokens per step on these fixed anchors, and the complete draft graph measured 2503 to 1798 microseconds across eight ranks. Document ending 7c94c5 delivered 4.094 to 4.094 tokens per step on these fixed anchors, and the complete draft graph measured 2522 to 1747 microseconds across eight ranks. All thirty sliding layers were also screened across all eight ranks. No shorter horizon passed the preset mass and error limits on both documents. + +The full target supplied six trained query rows, C8 history and learned sinks at four long-context anchors on two unscored documents. The window screen covered 30 layers on all eight TP ranks. A reduced horizon qualified only if each document and rank retained median attention mass of at least 0.97, bottom-decile mass of at least 0.91, median normalized context RMS error at most 0.08 and 90th percentile error at most 0.20. Direct-page isolated graph timings in microseconds by horizon (current / candidate) were {'128': [40.36858677864075, 18.532750010490417], '256': [40.36858677864075, 21.719688177108765], '384': [40.36858677864075, 24.47742521762848], '512': [40.36858677864075, 27.511462569236755]}. The qualifying layer-to-width map was {}. Its estimated aggregate benefit was 0 µs per verification step. Source revision c385848f7a127d372f3ad888254b8ecf988a3112. +The offline full DFly path reproduced all five captured proposals at every included anchor on the two unscored documents. The measurements include all five trained correction steps and the complete target remained responsible for the generated continuation. skip_0: 7c94c5 32 anchors, 4.094 to 1.000 tokens, 380 µs saved, 7c4fde 32 anchors, 3.562 to 1.062 tokens, 381 µs saved. skip_1: 7c94c5 32 anchors, 4.094 to 3.531 tokens, 399 µs saved, 7c4fde 32 anchors, 3.562 to 2.188 tokens, 379 µs saved. skip_2: 7c94c5 32 anchors, 4.094 to 3.281 tokens, 396 µs saved, 7c4fde 32 anchors, 3.562 to 2.719 tokens, 359 µs saved. skip_3: 7c94c5 32 anchors, 4.094 to 2.938 tokens, 391 µs saved, 7c4fde 32 anchors, 3.562 to 2.625 tokens, 379 µs saved. skip_4: 7c94c5 32 anchors, 4.094 to 1.969 tokens, 402 µs saved, 7c4fde 32 anchors, 3.562 to 2.312 tokens, 370 µs saved. skip_1_3: 7c94c5 32 anchors, 4.094 to 1.969 tokens, 745 µs saved, 7c4fde 32 anchors, 3.562 to 1.781 tokens, 755 µs saved. native_first_three: 7c94c5 32 anchors, 4.094 to 4.094 tokens, 425 µs saved, 7c4fde 32 anchors, 3.562 to 3.469 tokens, 406 µs saved. native_last_three: 7c94c5 32 anchors, 4.094 to 4.094 tokens, 426 µs saved, 7c4fde 32 anchors, 3.562 to 3.469 tokens, 394 µs saved. native_even: 7c94c5 32 anchors, 4.094 to 4.094 tokens, 351 µs saved, 7c4fde 32 anchors, 3.562 to 3.562 tokens, 378 µs saved. trained_29: 7c94c5 32 anchors, 4.094 to 4.094 tokens, -92 µs saved, 7c4fde 32 anchors, 3.562 to 3.469 tokens, -107 µs saved. trained_37: 7c94c5 32 anchors, 4.094 to 4.062 tokens, -85 µs saved, 7c4fde 32 anchors, 3.562 to 3.750 tokens, -104 µs saved. trained_29_37: 7c94c5 32 anchors, 4.094 to 4.062 tokens, -188 µs saved, 7c4fde 32 anchors, 3.562 to 3.750 tokens, -225 µs saved. recent_last_128: 7c94c5 32 anchors, 4.094 to 4.094 tokens, 2 µs saved, 7c4fde 32 anchors, 3.562 to 3.562 tokens, -23 µs saved. recent_last_512: 7c94c5 32 anchors, 4.094 to 4.094 tokens, -21 µs saved, 7c4fde 32 anchors, 3.562 to 3.562 tokens, -30 µs saved. recent_512: 7c94c5 32 anchors, 4.094 to 4.094 tokens, -149 µs saved, 7c4fde 32 anchors, 3.562 to 3.500 tokens, -166 µs saved. + +Serial correction reproduced all five captured proposal IDs at every included anchor on both unrelated documents. 66fcffd9bb02136c067c94c5, 74 distinct anchors, 2 predecessors: 4.297 to 3.486 delivered tokens per step with 428.7 microseconds of measured correction savings. 66f94f9ebb02136c067c4fde, 95 distinct anchors, 2 predecessors: 3.316 to 2.705 delivered tokens per step with 428.7 microseconds of measured correction savings. 66fcffd9bb02136c067c94c5, 74 distinct anchors, 4 predecessors: 4.297 to 3.716 delivered tokens per step with 413.9 microseconds of measured correction savings. 66f94f9ebb02136c067c4fde, 95 distinct anchors, 4 predecessors: 3.316 to 2.789 delivered tokens per step with 413.9 microseconds of measured correction savings. 66fcffd9bb02136c067c94c5, 74 distinct anchors, 8 predecessors: 4.297 to 3.878 delivered tokens per step with 429.3 microseconds of measured correction savings. 66f94f9ebb02136c067c4fde, 95 distinct anchors, 8 predecessors: 3.316 to 2.895 delivered tokens per step with 429.3 microseconds of measured correction savings. + +The retained model reproduced every five-token control at 32 anchors on each of two unscored documents. The same native attention arithmetic used by the private-page path was timed in all five DFly layers. Document ending 7c4fde delivered 3.562 to 3.562 tokens per step on these fixed anchors, and the complete draft graph measured 2503 to 1798 microseconds across eight ranks. Document ending 7c94c5 delivered 4.094 to 4.094 tokens per step on these fixed anchors, and the complete draft graph measured 2522 to 1747 microseconds across eight ranks. All thirty sliding layers were also screened across all eight ranks. No shorter horizon passed the preset mass and error limits on both documents. + +The formal twenty-request P50 changed from 4.0599 to 4.7930 ms/token. The greedy completions matched in 3/20 cases. The two runs delivered 3.982 and 3.989 tokens per draft round, with median client-estimated round durations of 18.19 and 17.95 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7146255459) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7146529420) + +## Exchange Hy4 verification rows and reproduce the native BF16 reduction order + +The loaded A5 target produced five independent input sets on all eight ranks, including two sets of trained embedding rows. Each destination's native BF16 result matched addition beginning at the destination, then the remaining ranks in ascending order. A separate captured operator compared 16 changing inputs for six actual rows and eight full rows on every destination. All 786,432 raw BF16 words matched. The original scatter and ordered gather took 93.60 and 22.45 microseconds. Followed by a normal hidden gather, the pair took 191.17 and 86.51 microseconds. These isolated times include rank synchronization. Round 33's copy-only service improved actual TPOT by 0.72% and reproduced all 20 outputs. The new trial also changes 41 one-row BF16 reduction boundaries and checks the installed communication order once at startup. Source: ordered-scatter-check-a4dbebba/log and the eight-rank bf16-reduction-order.json from the unscored calibration. + +The formal twenty-request P50 changed from 4.0599 to 3.9466 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 18.19 and 17.68 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7146563044) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7146831092) + +## Refresh the changed IndexPool pages on the rank-ordered verification path + +The selected parent measured 4.0599 ms/token. The native-page scorer took 76.76 microseconds when copying the complete key plane and 52.56 when refreshing four-page tiles. Eight captured inputs, including page remaps, changed sequences, rollback and inactive rows, produced identical full score matrices and global top-k results. The original BF16 scoring and native top-k both remain. This applies to seven target retrieval layers. The device measurements are in operator-resident-pool.log. The base also includes the previously measured copy transport. Signed commits are ed8569c3d8c954dfb583a1c299bbd262df1fed72, c3decde4c265a3abb0f884af8449eb1c98ffc809. Round 35 preserved the complete 1,024-token continuation on all twenty fixed requests and improved P50 by 2.79%. This trial adds only the resident IndexPool view to its two signed transport commits. The campaign still compares with the selected round 30 revision. Registered CPU feature-table placement and the five DFly proposal positions are preserved. + +The formal twenty-request P50 changed from 4.0599 to 3.8891 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 18.19 and 17.39 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7146856395) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7147123993) + +## Preserve native BF16 results in the one- and six-row DFly projections + +The selected parent measured 3.8891 ms/token. The native-page scorer took 76.76 microseconds when copying the complete key plane and 52.56 when refreshing four-page tiles. Eight captured inputs, including page remaps, changed sequences, rollback and inactive rows, produced identical full score matrices and global top-k results. The original BF16 scoring and native top-k both remain. This applies to seven target retrieval layers. The device measurements are in operator-resident-pool.log. The original 1-row all-reduce took 94.10 microseconds and the ordered alternative took 22.04 microseconds. All 128 independent rank/input comparisons matched every BF16 word over trained embeddings, wide dynamic ranges, zeros and other inputs. The initial six input sets selected any ordered schedule before the independent comparisons. The device measurements are in ordered-draft-sum-check-8256b759. The original 6-row all-reduce took 96.05 microseconds and the ordered alternative took 32.52 microseconds. All 128 independent rank/input comparisons matched every BF16 word over trained embeddings, wide dynamic ranges, zeros and other inputs. The initial six input sets selected any ordered schedule before the independent comparisons. The device measurements are in ordered-draft-sum-check-8256b759. Registered CPU feature-table placement and the five DFly proposal positions are preserved. + +The formal twenty-request P50 changed from 3.8891 to 3.8728 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 17.39 and 17.35 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7147533954) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7147788791) + +## Share one FP32 copy of the actual C8 history across all six DFly queries + +Nine changing A5 inputs reproduced all logical indices and active dequantized key/value words. The largest relative final BF16 context error was 6.91889e-05. Full attention took 241.13 versus 61.64 microseconds per draft layer. Contraction layout was merged. Source is operator-shared-draft-precision-v2.log. The base includes independently signed sub-threshold improvements whose combined fixed-request outputs matched the selected version on every token. Included revisions are a07d9c5eb5f39fcfac7189e1a885907452c07d88. + +The formal twenty-request P50 changed from 3.8891 to 4.0854 ms/token. The greedy completions matched in 3/20 cases. The two runs delivered 3.982 and 3.867 tokens per draft round, with median client-estimated round durations of 17.39 and 17.15 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7147827993) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7148075107) + +## Overlap six-row target gate and sparse query projections + +Eight changing inputs per path reproduced all output words. Device timings in microseconds were sliding 58.26 to 56.53, sparse 71.57 to 51.61. Source is operator-native-parallel-projections.log. The base includes independently signed sub-threshold improvements whose combined fixed-request outputs matched the selected version on every token. Included revisions are a07d9c5eb5f39fcfac7189e1a885907452c07d88. + +The formal twenty-request P50 changed from 3.8891 to 3.7756 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 17.39 and 16.88 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7148112937) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7148365492) + +## Combine trained attention-sink normalization and causal masking for singleton verification + + Six captured sliding-window operand sets from two unscored documents and six changes of activity, scale or mask were checked per path. window 36.59 to 28.80 microseconds, maximum relative context difference 3.3244e-05, sparse 74.83 to 64.03 microseconds, maximum relative context difference 0. Source is operator-singleton-probabilities.log. The base includes independently signed sub-threshold improvements whose combined fixed-request outputs matched the selected version on every token. Included revisions are a07d9c5eb5f39fcfac7189e1a885907452c07d88, 66d3b9711f57c51ceedb36b551f4c6afa8fed978. + +The formal twenty-request P50 changed from 3.8891 to 4.0438 ms/token. The greedy completions matched in 0/20 cases. The two runs delivered 3.982 and 4.002 tokens per draft round, with median client-estimated round durations of 17.39 and 16.41 ms, respectively. InferRSI skipped accuracy because the improvement fell below 3%. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7148489092) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7148726530) + +## Reuse draft history while preserving each query’s original FP32 contraction + +All eight ranks replayed the same captured verification prefixes and reproduced every original five-token proposal, including the unfused control. 66f94f9ebb02136c067c4fde: 24 anchors, slowest-rank complete DFly graph 2515.74 to 1903.13 microseconds, 66fcffd9bb02136c067c94c5: 22 anchors, slowest-rank complete DFly graph 2515.23 to 1905.26 microseconds. Source is interior-profile-67c4d6f3d2-b69cd9, revision 67c4d6f3d26147ed3e0f664ee87ea7136c08d897. The base includes independently signed sub-threshold improvements whose combined fixed-request outputs matched the selected version on every token. Included revisions are a07d9c5eb5f39fcfac7189e1a885907452c07d88, 66d3b9711f57c51ceedb36b551f4c6afa8fed978. + +The formal twenty-request P50 changed from 3.8891 to 3.7604 ms/token. The greedy completions matched in 20/20 cases. The two runs delivered 3.982 and 3.982 tokens per draft round, with median client-estimated round durations of 17.39 and 16.76 ms, respectively. Same-service AIME scored 29/30 at concurrency sixteen. [Device comparison](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7148754637) · [Per-request measurements](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7149002994)