Repository navigation
docs: measure fixed-length speculative decode on Ascend 950DT - #614
jiangkuaixue123 wants to merge 48 commits into
Conversation
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 <jiangxiaozhou111@163.com>
amy-why-3459
left a comment
There was a problem hiding this comment.
Codex, acting for @amy-why-3459.
已审阅 e3c5870 的完整文档改动,暂缓正式批准。
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 <jiangxiaozhou111@163.com>
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
One measurement caveat for the fixed-length guide.
|
|
||
| ## 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. |
There was a problem hiding this comment.
Dot, acting for @david6666666.
Please distinguish this client-visible TPOT from token-by-token decode speed. If the first SSE event carries multiple tokens, first-to-last event time starts later, but the denominator is still N−1; changing the first-event batching can lower the metric without making decode faster. Keep the frozen campaign formula, and compare the first-event token count, TTFT, and total stream time before attributing a gain to the engine.
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 <jiangxiaozhou111@163.com>
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
One evidence qualification for the new batch-16 paragraph.
|
|
||
| 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) |
There was a problem hiding this comment.
Dot, acting for @david6666666.
Please qualify this as a proposed batch-16 quality reference. The linked summary reports matching settings, but does not expose the effective EvalScope config, frozen input/scorer digests, or per-item outcomes from those runs. Link that comparison before instructing readers to reuse 30/30 as the formal floor; otherwise say that the batch-16 baseline needs a fresh run. The fixed-length timing baseline is separate.
Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
…parison Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Include the thirty-question same-service result for the selected fixed-context deployment. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
One evidence link is missing for the retrospective selection.
|
|
||
| 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) |
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
The linked Issue comment supports the revised 28/30 floor and selection, but it does not show an InferRSI rerun of the warmup, cleanup, parent and numeric checks. Please link the retained reassessment receipt with the attempt/service ID and old/new policy identities, or say only that the operator selected the same recorded run under the revised floor. This keeps the original rejection and later decision separately auditable.
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Record rotary and weight-layout ablations, reload behavior, memory cost and measured service results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Record the batched-product comparison, numerical replay results and end-to-end campaign gates. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Retain the frozen timing and AIME protocol and record the revised absolute acceptance bound. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Record the model cache-spec correction, physical allocation and fixed-length service results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Record checkpoint parity, activation, per-rank memory and the comparable 127K serving results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record the physical-page replay and trained key comparisons with the fixed serving results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record device comparisons, activation evidence and the fixed 127K serving result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record device comparisons, activation evidence and the fixed 127K serving result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record the decode dispatch, model approximation and measured latency and accuracy gates. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record trained operator comparisons, numerical differences, dispatch and fixed-length serving gates. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record the eight-device evidence, active dispatch, per-request times and quality decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record device comparisons, activation evidence and the fixed 127K serving result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
…ether Compare the two independently measured regions with their combined full-service result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
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 <jiangxiaozhou111@163.com>
Record the loaded-weight and C8 operator comparisons, selected candidate and fixed-length result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record raw packet and hidden-shard validation, group lifetime, and fixed-workload serving results. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Record the loaded-weight and C8 operator comparisons, selected candidate and fixed-length result. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Document captured operand checks and the independent full-service timing and accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Document the independent operator checks, signed components and fixed-service performance and quality decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Document the independent operator checks, signed components and fixed-service performance and quality decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Preserve the held-out measurements, formal twenty-request comparison and same-service accuracy decision. Agent-assisted-by: OpenAI Codex (engineering) Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Governing issue and delivery
Refs #613. This draft records the eight-device Hy4-Flash-FP8 campaign's request construction, measurement method and fixed-length baseline. The linked issue retains the gate settings, frozen digests, per-request observations and trial status.
Requirements and evidence
Checks and dependencies
Verified the local documentation link, ran
git diff --check, and reproduced the remote performance summary byte-for-byte from the copied raw per-request timestamps and engine counters. The documentation uses the frozen deployment and tokenizer described in the issue.Remaining work
The selected deployment leaves 512 positions of DFly headroom. The independent replay must achieve P50 ≤ 3.000 ms/token and AIME2026 ≥ 28/30. Updated acceptance target The campaign owner retains final acceptance.