From e3c587029e1cc149d932542100d1bf4e4e66e2af Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 11:34:27 +0800 Subject: [PATCH 01/48] docs: measure fixed-length speculative decode on Ascend 950DT Record reproducible LongBench input construction, per-request timing and the observed context-limit stall that motivated the first candidate. Agent-assisted-by: OpenAI Codex (measurement and documentation) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/hy4-a5-fixed-length-tpot.md diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md new file mode 100644 index 000000000..22095ce01 --- /dev/null +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -0,0 +1,23 @@ +# 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. Both clients issue one request at a time. 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) + +## 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. + +Send those IDs directly to the completions endpoint in the published order. Check the ordered request file digest before warmup and each measurement. Check each sample's token-ID digest, API-reported prompt length, generated-token count and completion reason. Dataset ID alone cannot distinguish a full-document prompt from its resized counterpart. [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) + +## 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. On baseline `db557a38405b67c57a479d56b37662073b810a89`, all twenty fixed-length requests completed. 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) From 88803776e094c4ab015fd5f28bbf3931577736b5 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 12:27:46 +0800 Subject: [PATCH 02/48] docs: record the completed serial Hy4 quality audit Describe the item-level checks and output lengths from the completed baseline, with the revision recorded in the acceptance issue. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 22095ce01..427e0130e 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -18,6 +18,8 @@ On an exclusive service, take snapshots of the engine's draft-round and accepted 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) +On the fixed-length baseline service, EvalScope scored all thirty AIME2026 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) + ## 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. On baseline `db557a38405b67c57a479d56b37662073b810a89`, all twenty fixed-length requests completed. 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) +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) From 4c468fe0e61aa8e5d00c9be50223e9b0457d069c Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 13:06:33 +0800 Subject: [PATCH 03/48] docs: document lightweight Hy4 round checks and parallel AIME scoring Record the loopback evaluator repair, reuse of compatible concurrency-16 accuracy references, and the committed service receipts used for reporting. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 427e0130e..7d58a6f3b 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -1,12 +1,12 @@ # 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. Both clients issue one request at a time. 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 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) ## 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. -Send those IDs directly to the completions endpoint in the published order. Check the ordered request file digest before warmup and each measurement. Check each sample's token-ID digest, API-reported prompt length, generated-token count and completion reason. Dataset ID alone cannot distinguish a full-document prompt from its resized counterpart. [Input identities and reconstruction rule](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7120848813) +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 @@ -18,7 +18,13 @@ On an exclusive service, take snapshots of the engine's draft-round and accepted 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) -On the fixed-length baseline service, EvalScope scored all thirty AIME2026 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 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 From a438ed8c7ddd05be2e09c6d01f3c212f6b2c5674 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 13:50:14 +0800 Subject: [PATCH 04/48] docs: record the complete Hy4 headroom quality verdict Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 7d58a6f3b..7fb937d5e 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -29,3 +29,5 @@ When the accuracy concurrency changed to sixteen, two earlier EvalScope runs on ## 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 in the complete concurrency-sixteen quality trial. The same service answered 29 of 30 AIME problems correctly. The missed response ended normally after 16,171 generated tokens. The campaign retained the original deployment as its parent. A follow-up targeting the verification width starts again from that deployment, with its original context limit. [Per-request timing and quality verdict](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7123314085) From d2a6f75ae70add87278f93629da3975846d1d268 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 14:21:46 +0800 Subject: [PATCH 05/48] docs: distinguish the adopted Hy4 quality floor from the original comparison Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 7fb937d5e..99eeb2bc8 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -30,4 +30,6 @@ When the accuracy concurrency changed to sixteen, two earlier EvalScope runs on 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 in the complete concurrency-sixteen quality trial. The same service answered 29 of 30 AIME problems correctly. The missed response ended normally after 16,171 generated tokens. The campaign retained the original deployment as its parent. A follow-up targeting the verification width starts again from that deployment, with its original context limit. [Per-request timing and quality verdict](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7123314085) +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) From 8a7364904d7de23f22711380fb4f9a01a349ede7 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 15:07:56 +0800 Subject: [PATCH 06/48] docs: compare sparse verification latency and draft yield on A5 Report the measured component and endpoint timings, and account for token trajectory changes when comparing the five-proposal verification path. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 99eeb2bc8..5ee7122d2 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -33,3 +33,11 @@ With the combined input and output exactly equal to the serving context limit, a 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. Evaluate answer quality on the same service before accepting the change. [Per-request timings and draft counters](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7124646381) From 3eaaccb4fce763f21ecf4bc6636d6bec945d01b7 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 15:36:37 +0800 Subject: [PATCH 07/48] docs: record accepted native sparse verification accuracy Include the thirty-question same-service result for the selected fixed-context deployment. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 5ee7122d2..00941c7f3 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -40,4 +40,4 @@ Record both proposals per verification and serving-context capacity in the paren 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. Evaluate answer quality on the same service before accepting the change. [Per-request timings and draft counters](https://github.com/InferMatrixLab/InferRSI/issues/613#issuecomment-7124646381) +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) From 029b5f1bfc63eac06ce14cb650241fbc74b6d912 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 16:25:50 +0800 Subject: [PATCH 08/48] docs: record Hy4 gate fusion and interior decode evidence Include per-step profiler boundaries, numerical checks and the selected fixed-length performance and AIME results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 00941c7f3..f7601b373 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -41,3 +41,9 @@ Record both proposals per verification and serving-context capacity in the paren 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) From 95c9f73114eed8a6e346f6c361145788eb313d2f Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 17:12:12 +0800 Subject: [PATCH 09/48] docs: record Hy4 verification metadata reuse Describe the capture lifetime and mutable input replay checks, and relate unchanged proposal acceptance to the measured reduction in step latency. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index f7601b373..b2125bc34 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -47,3 +47,9 @@ In this trial the median time per draft round, estimated from the client decode 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) From fe01950516042cdf9e68a515fad0439b68660ad7 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 17:28:33 +0800 Subject: [PATCH 10/48] docs: record shared sliding-window results for Hy4 verification Relate an operator comparison over six adjacent windows to whole-service request timings, speculative acceptance, and the campaign verdict. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index b2125bc34..84bbe7ad3 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -53,3 +53,9 @@ Each layer computes two four-channel residual gates. The third candidate fused t 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) From cc6fc45ce1b58a132f141980bb62810528bb5f46 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 18:16:59 +0800 Subject: [PATCH 11/48] docs: measure distributed Hy4 sparse recall at long context Document page alignment, global tie behavior, graph replay checks and the end-to-end effect of distributing the compressed-key score computation. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 84bbe7ad3..3fbea22a3 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -59,3 +59,9 @@ On an independent operator test, replaying the same captured graph with six chan 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) From de75b6420bf92a562949f66ed94a0eed0fdbbf86 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 18:34:10 +0800 Subject: [PATCH 12/48] docs: measure native FP32-output Hy4 vocabulary projection Compare the deployed BF16 vocabulary shard with per-call weight promotion, retained FP32 weights, and the native A5 FP32 output epilogue. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 3fbea22a3..74a8c5895 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -65,3 +65,9 @@ The formal twenty-request P50 changed from 7.2819 to 7.7132 ms/token. The greedy 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) From 5b16608768fe26ab290bf92ec02ef911be17d916 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 19:12:22 +0800 Subject: [PATCH 13/48] docs: measure calibrated Hy4 sparse index encoding Record device-side scale boundary tests, graph replay timings and the full-service gate for a fused IndexPool encoder. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 74a8c5895..50ce043ba 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -71,3 +71,9 @@ The formal twenty-request P50 changed from 7.2819 to 6.8781 ms/token. The greedy 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) From d99f31dd37bf2496fa53db482f9b68b6e26110d0 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 19:50:09 +0800 Subject: [PATCH 14/48] docs: compare direct C8 verification window operands Record the original and production NPU graph measurements, elementwise comparisons, fixed-length timings and the service-reuse outcome. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 50ce043ba..d25461e1d 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -77,3 +77,9 @@ The formal twenty-request P50 changed from 6.8781 to 6.6871 ms/token. The greedy 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) From ff68d7ba810676252da209c495fdb58ab325e20d Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 20:48:19 +0800 Subject: [PATCH 15/48] docs: record Hy4 MLA query preparation measurements Record rotary and weight-layout ablations, reload behavior, memory cost and measured service results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index d25461e1d..cec182043 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -83,3 +83,9 @@ The formal twenty-request P50 changed from 6.8781 to 6.4875 ms/token. The greedy 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) From 35227ee2e7e20dccaed7c7fe20296acf2f6245c4 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 21:13:52 +0800 Subject: [PATCH 16/48] docs: compare the Hy4 DFly vocabulary exchange Record per-rank timings, tie and NaN checks, fixed twenty-request replay and service-reuse outcome. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index cec182043..8af8ef7cd 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -89,3 +89,9 @@ The formal twenty-request P50 changed from 6.4875 to 6.2458 ms/token. The greedy 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) From 88830e48902bcfe3debff413770dfbd608d04aca Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 21:30:49 +0800 Subject: [PATCH 17/48] docs: record shared Hy4 DFly history measurements Record the batched-product comparison, numerical replay results and end-to-end campaign gates. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 8af8ef7cd..a534c3811 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -95,3 +95,9 @@ The formal twenty-request P50 changed from 6.2458 to 5.9309 ms/token. The greedy 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) From 8cae4a7baf67e676a35f073d4820b0cbebbc5991 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 21:42:59 +0800 Subject: [PATCH 18/48] docs: distinguish Hy4 DFly kernel and service page sizes Record the effective 64-token attention pages in the measured service and the 128-token guard tested by the original draft kernel. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index a534c3811..1e52d39ab 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -101,3 +101,5 @@ The formal twenty-request P50 changed from 5.9309 to 5.8056 ms/token. The greedy 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. From 90a9fe9e1667230e883f165418e5b73ae8599a24 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 21:52:40 +0800 Subject: [PATCH 19/48] docs: compare Hy4 TP scheduling on the Ascend CCU Report the paired eight-rank collective graphs, BF16 reduction differences and the fixed-workload throughput and accuracy. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 1e52d39ab..e4bff8c25 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -103,3 +103,9 @@ The five DFly attention layers use one target snapshot per layer. At batch one a 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) From 3a0207e3fb56b9160c54d5dab0a31b250e860ac8 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 22:38:01 +0800 Subject: [PATCH 20/48] docs: measure the Hy4 CPU lookup synchronization cost Record exact trained row and replay checks, host wall time, and end-to-end measurements for grouping the hash transfers. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index e4bff8c25..4674d6865 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -109,3 +109,9 @@ The first formal request exposed an important dispatch condition. The engine met 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) From 1db5b568082dd3cef13759a4e6f56249de54d40d Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 23:15:10 +0800 Subject: [PATCH 21/48] docs: compare the Hy4 post-lookup feature reductions Record the trained TP8 comparison, numerical and reload checks, and the end-to-end service outcomes. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 4674d6865..1458e36ce 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -115,3 +115,9 @@ The formal twenty-request P50 changed from 5.9309 to 6.6076 ms/token. The greedy 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) From 92fd5814b2a48a0fa71a17de523d1939708ee34f Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 23:25:46 +0800 Subject: [PATCH 22/48] docs: set the Hy4 A5 final TPOT target to 3 ms per token Retain the frozen timing and AIME protocol and record the revised absolute acceptance bound. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 1458e36ce..15fb0bf8f 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -2,6 +2,8 @@ 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. From c567b527721675d05ac66abd812004ef51cf164a Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 23:30:03 +0800 Subject: [PATCH 23/48] docs: verify Hy4 DFly at the effective attention page size Record the service metrics, guarded branch, exact graph replays and measured effect under the frozen protocol. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 15fb0bf8f..3de4ab064 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -123,3 +123,9 @@ The formal twenty-request P50 changed from 5.9309 to 5.4697 ms/token. The greedy 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) From 89c9cfe61d2d42e03228d3f9eea3eddc92413d5d Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Tue, 24 Nov 2026 23:45:51 +0800 Subject: [PATCH 24/48] docs: record the Hy4 page-local sparse cache trial Record the page-allocation tradeoff, exactness checks, distinct collective and operator comparisons, and measured end-to-end results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 3de4ab064..1aa43869d 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -129,3 +129,9 @@ The formal twenty-request P50 changed from 5.4697 to 5.2881 ms/token. The greedy 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) From 3be18895dc20eff84cf3f765f9975a75b4c58e02 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 00:06:28 +0800 Subject: [PATCH 25/48] docs: evaluate Hy4 request-local suffix proposals Report the five-token proposal source, TP8 synchronization, past-only replay coverage and end-to-end acceptance. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 1aa43869d..efe89abfc 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -135,3 +135,9 @@ The formal twenty-request P50 changed from 5.2881 to 5.2405 ms/token. The greedy 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) From 244905d77c9663f7b6f114180a8c64de3c910268 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 00:54:38 +0800 Subject: [PATCH 26/48] docs: measure registered CPU table reads for Hy4 verification Record input-preparation measurements with trained table rows and the change in serving latency and accuracy. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index efe89abfc..938238ebd 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -141,3 +141,9 @@ The formal twenty-request P50 changed from 5.2881 to 5.3025 ms/token. The greedy 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) From e9ebec08aa40d19cbb92344399f3736bfcf8467e Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 01:10:55 +0800 Subject: [PATCH 27/48] docs: compare configured and allocated Hy4 sparse cache pages Record the model cache-spec correction, physical allocation and fixed-length service results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 938238ebd..f6bcf7f65 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -147,3 +147,11 @@ The formal twenty-request P50 changed from 5.2881 to 5.9426 ms/token. The greedy 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) From 0081fc33e2ff43b59d1142dd62747167b0db9284 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 01:25:49 +0800 Subject: [PATCH 28/48] docs: measure Hy4 single-request draft graph input staging Record exact input, padding and M-RoPE checks and compare serving latency under the frozen protocol. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index f6bcf7f65..c43808908 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -155,3 +155,9 @@ Round 17's native path was absent from the serving log. A new offline profile fr 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) From 2c704505729141b72390ce5713c0c92cd636c3b7 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 02:05:33 +0800 Subject: [PATCH 29/48] docs: measure Hy4 small-batch vocabulary communication Record checkpoint parity, activation, per-rank memory and the comparable 127K serving results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index c43808908..53c04c3b2 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -161,3 +161,11 @@ The formal twenty-request P50 changed from 4.6415 to 4.5444 ms/token. The greedy 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) From 09dc0012a17c10ec80c9ef44fc9182397fceb68a Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 02:20:10 +0800 Subject: [PATCH 30/48] docs: measure two-group incremental Hy4 IndexPool updates Record the physical-page replay and trained key comparisons with the fixed serving results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 53c04c3b2..97a2a066c 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -169,3 +169,11 @@ The accepted trace contained six full casts of a 15,104 × 3,072 vocabulary shar 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) From 716e1149d652f941fc5a921951fdd13c2e64cef1 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 02:35:04 +0800 Subject: [PATCH 31/48] docs: compare the Hy4 single-request verification attention path Record device comparisons, activation evidence and the fixed 127K serving result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 97a2a066c..69bf125e4 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -177,3 +177,15 @@ The selected reference trace shows a six-row raw-key normalization and two group 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) From 66136ef5612e37e5e0de495e98cc2cacdfa114ed Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 02:51:04 +0800 Subject: [PATCH 32/48] docs: compare the Hy4 single-request verification attention path Record device comparisons, activation evidence and the fixed 127K serving result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 69bf125e4..2d60284a8 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -189,3 +189,15 @@ A separate six-row test reconstructed each of nine trained MXFP8 weight shards e 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) From d612c66ca9281a27d8fee4a5a776778733f2eb28 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 03:32:14 +0800 Subject: [PATCH 33/48] docs: measure neighboring Hy4 sparse index reuse Record the decode dispatch, model approximation and measured latency and accuracy gates. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 2d60284a8..3cc063fc9 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -201,3 +201,15 @@ Before the service started, the eight-rank trained-vocabulary probe compared a c 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) From 283fe8be15ab3cfbcc15bc5b648927c4d52d7ef8 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 03:54:06 +0800 Subject: [PATCH 34/48] docs: measure the Hy4 small-batch projection path Record trained operator comparisons, numerical differences, dispatch and fixed-length serving gates. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 3cc063fc9..ecbea7cfe 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -213,3 +213,15 @@ A trained native MLA probe used the interleave-half convention documented by [As 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) From 1fdbfbfbc60ab40d5c3d41f2d99f8bc13d8b2aa3 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 04:12:59 +0800 Subject: [PATCH 35/48] docs: compare the native Hy4 target verification region Record the eight-device evidence, active dispatch, per-request times and quality decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index ecbea7cfe..a66a5d2b7 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -225,3 +225,9 @@ The 950DT native sliding-window attention took 30.76 µs on contiguous BF16 KV. 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) From ef77c03d3b51610d951f60d138fd96e832b26213 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 04:33:54 +0800 Subject: [PATCH 36/48] docs: compare the Hy4 single-request verification attention path Record device comparisons, activation evidence and the fixed 127K serving result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index a66a5d2b7..993461486 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -231,3 +231,13 @@ The formal twenty-request P50 changed from 4.2747 to 4.2726 ms/token. The greedy 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) From b23e45f494ae16be50e7af48f0b1f49e9706f185 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 05:23:18 +0800 Subject: [PATCH 37/48] docs: measure native Hy4 page reads and local greedy verification together Compare the two independently measured regions with their combined full-service result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 993461486..4b9701956 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -241,3 +241,15 @@ The DFly history comparison used two unscored LongBench v2 documents outside the 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) From 0b9fc43d97f635a6af82739407ba9a4f24ad2fee Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 05:38:14 +0800 Subject: [PATCH 38/48] docs: measure the Hy4 feature reductions and routed-block boundaries Record two separately signed decoder changes, loaded-weight checks and the joint full-service result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 4b9701956..d95bc8cc8 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -253,3 +253,17 @@ The same diagnostic preserved the full trained sparse snapshot while testing sma 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) From a976d57a3eef9978ae1f79cb772845b8ee5ef9bb Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 06:00:45 +0800 Subject: [PATCH 39/48] docs: compare the Hy4 single-request decoder regions Record the loaded-weight and C8 operator comparisons, selected candidate and fixed-length result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index d95bc8cc8..8e6441eea 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -267,3 +267,15 @@ On the two held-out documents, the previously saved sparse snapshots covered 226 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) From 8e0e74e8b9af97116d81bc7c28e1fa473f58a38f Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 06:20:19 +0800 Subject: [PATCH 40/48] docs: measure copy-only CCU communication in Hy4 verification Record raw packet and hidden-shard validation, group lifetime, and fixed-workload serving results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 8e6441eea..839563c1d 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -279,3 +279,13 @@ A separate one-document diagnostic reached the five-layer draft comparison, wher 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) From 2963b6583f65057d92dfd5b2ac406cda1ef76ac7 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 06:41:34 +0800 Subject: [PATCH 41/48] docs: compare the Hy4 single-request decoder regions Record the loaded-weight and C8 operator comparisons, selected candidate and fixed-length result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 839563c1d..c64ab97e1 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -289,3 +289,16 @@ Rounds 31 and 32 generated the same full 1,024-token output for each of the 20 r 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) From 231469223f68c2667b0359afdf830666ba1189cf Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 06:56:57 +0800 Subject: [PATCH 42/48] docs: measure Hy4 verification with ordered BF16 operands Document captured operand checks and the independent full-service timing and accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index c64ab97e1..f4fcb9971 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -302,3 +302,9 @@ Serial correction reproduced all five captured proposal IDs at every included an 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) From 4e713e63854fb44cbd2df79c5e056c5401b8917b Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 07:31:56 +0800 Subject: [PATCH 43/48] docs: measure Hy4 retained IndexPool keys and narrow decode operations Document the independent operator checks, signed components and fixed-service performance and quality decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index f4fcb9971..959d62ddb 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -308,3 +308,9 @@ The formal twenty-request P50 changed from 4.0599 to 4.7930 ms/token. The greedy 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) From ef0ee944acbd8868ed1b17a78606ddefdb719560 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 07:47:06 +0800 Subject: [PATCH 44/48] docs: measure Hy4 retained IndexPool keys and narrow decode operations Document the independent operator checks, signed components and fixed-service performance and quality decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 959d62ddb..1340511c9 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -314,3 +314,9 @@ The formal twenty-request P50 changed from 4.0599 to 3.9466 ms/token. The greedy 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) From ac9d9c6d933d941bcc371784d4850fdc4389f84d Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 08:02:48 +0800 Subject: [PATCH 45/48] docs: record Hy4 singleton decode timing and branch evidence Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 1340511c9..dc76ccce2 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -320,3 +320,9 @@ The formal twenty-request P50 changed from 4.0599 to 3.8891 ms/token. The greedy 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) From fc8bad15627bfb2388d42c598bc56bdda6f82c83 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 08:18:12 +0800 Subject: [PATCH 46/48] docs: record Hy4 singleton decode timing and branch evidence Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index dc76ccce2..126ee8b58 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -326,3 +326,9 @@ The formal twenty-request P50 changed from 3.8891 to 3.8728 ms/token. The greedy 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) From c242dc3e77285690a98b90747741daabc0ee25fa Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 08:38:45 +0800 Subject: [PATCH 47/48] docs: record Hy4 singleton decode timing and branch evidence Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 126ee8b58..375cbfb91 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -332,3 +332,9 @@ The formal twenty-request P50 changed from 3.8891 to 4.0854 ms/token. The greedy 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) From 779055a24890779ec9e438fa69e683951aac1361 Mon Sep 17 00:00:00 2001 From: jiangkuaixue123 Date: Wed, 25 Nov 2026 09:21:39 +0800 Subject: [PATCH 48/48] docs: record Hy4 singleton decode timing and branch evidence Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 --- docs/hy4-a5-fixed-length-tpot.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/hy4-a5-fixed-length-tpot.md b/docs/hy4-a5-fixed-length-tpot.md index 375cbfb91..f80639926 100644 --- a/docs/hy4-a5-fixed-length-tpot.md +++ b/docs/hy4-a5-fixed-length-tpot.md @@ -338,3 +338,9 @@ The formal twenty-request P50 changed from 3.8891 to 3.7756 ms/token. The greedy 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)