Extends the quality-valid max-aware D256 GQA architecture to KV256K, removes the rejected raw-logit half2 experiment, preserves explicit rollback, and retains the recorded exact output hash with 19.5% prompt-throughput gain.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Repair #322 on current main, retaining only the measured FP13 kernel and adding tensor-value, CUDA-device, shape, dtype, layout, memory, quality, and rollback safeguards. The production path defaults on without model/checkpoint identity admission.
Original-commit: 165ec09fa9
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Upgrade SentenceTransformers, Pillow, and Black with a regenerated CUDA test lock; add the new pytokens dependency and repair the CrossEncoder model_kwargs API. Keep chardet 5.2 because mbstrdecoder currently requires chardet below 6.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Default the exact SM70 block-FP8 batch-one grouped WO-A route: two K=4096/N=1024 launches become one fixed 8x128x64 split-K-7 grouped dispatch. Admission requires the exact `[128,128]` layout, two groups, batch-one, and both source-built operators; every other case keeps the existing two-launch fallback. `VLLM_SM70_FP8_GROUPED_BMM_DECODE=0` rolls back.
Performance: matched three-run endpoint median improves 57.436 to 59.209 token/s (+3.09%) and TPOT 17.411 to 16.889 ms (-0.521 ms/token). Eager and changing-input graph operator checks have zero mismatches on exact-small, random-small, and model-like inputs. Cross-process token hashes remain diagnostic because unrelated FP8 tactics autotune independently; greedy identity is not a gate.
Tests: 17 focused tests and all changed-file hooks, including clang-format, ruff, mypy, configuration, and fallback checks, passed. Repository all-files CI rewrote 226 historical baseline files with zero overlap with the seven-file merge result.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Verify the loaded RMSNorm extension once with nonzero per-layer weights before using grouped DFlash K normalization. Conforming binaries keep the grouped fast path; stale stable-ABI binaries that reuse weight row zero fall back to the correct per-layer route with an explicit warning.
The selector-QPN8 connection remains explicit opt-in because its speed evidence is cross-GPU and its prepared layout reduces KV capacity. Aggregate FP8/NVFP4 acceptance and matched MBPP/EvalPlus quality pass without requiring greedy identity.
Tests: 78 CPU-focused cases passed and 12 GPU cases skipped with GPUs hidden; submitted repaired/stale fixtures pass 13/13 versus 3/13 and exercise the fallback. All changed-file hooks passed. Repository all-files CI rewrote 226 historical baseline files with zero overlap with this five-file merge result.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Route explicitly configured UVA CPU offloading through the generic multimodal-tower lifecycle, with qualified parameter-path matching and no model/checkpoint identity admission. Keep prefetch/no-op backends on a single-component no-op and avoid double-copying already offloaded nested parameters.
Capacity evidence: about 0.78 GiB per rank recovered, a 152,056-token KV pool, and successful 151,296-token context on two V100 16-GiB ranks. Tower execution retains its expected PCIe cost, so this remains explicit rather than unconditional.
Tests: 4 focused unit tests and all changed-file pre-commit hooks passed. The repository all-files CI rewrote 226 historical baseline files with zero overlap with this six-file merge result.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Default the exact SM70 TP4 CUDA-Graph push route for validated 8 KiB and existing 80 KiB FP16 payloads, with explicit environment rollback and unchanged pull fallback outside the engine contract.
Performance: same-binary endpoint improves 59.160 to 61.272 token/s (+3.57%); 8 KiB collective latency falls from 9.286-9.425 us to 3.041-3.174 us. Dynamic graph validation covers 43 nodes x 8 patterns x 64 replays x 4 ranks with zero mismatches.
Tests: 14 focused checks and changed-file pre-commit passed. The repository all-files CI rewrote 226 historical baseline files with zero overlap with the five-file merge result.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Default the measured SM70 QPN8 and metadata-free PP wins only under exact device/topology/concurrency/operator/tensor contracts, with explicit rollback and TurboMind fallback. Add matched aggregate-quality tooling that reports directional sample flips without requiring greedy identity.\n\nPerformance: QPN8 +8.63%; static PP adds 0.22%. Paired GSM8K remains 63/64 with zero invalid answers; operator outputs are finite with rel-L2 <= 6.05e-4 and max-abs <= 0.00390625.\n\nTests: 47 focused tests and changed-file pre-commit passed. The all-files CI failure modified 226 historical baseline files with zero overlap with this PR.\n\nSigned-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Expose explicit per-request OCR resolution and bounded crop controls without any model/checkpoint identity defaults. Keep the existing gundam behavior as the default and use one processor instance for producer/counting consistency.\n\nTests: 24 focused processor tests passed; changed-file pre-commit passed. The all-files CI failure modified 227 historical baseline files with zero overlap with this PR.\n\nSigned-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Enable the validated capability- and shape-bounded SM70 long-prefill GQA route by default, with exact fallback on typed workspace OOM.\n\nSigned-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Track scheduled-but-unsettled tokens and free recyclable KV blocks only from the processed boundary. Size recycling-aware admission for executor concurrency. The contract is model-independent and uses scheduler, attention-window and cache-lifetime state only.
Co-authored-by: kkobold <sabbaghdanilo@gmai.com>
Signed-off-by: kkobold <sabbaghdanilo@gmai.com>
Signed-off-by: 1Cat Audit Agent <audit@1cat.ai>
Restore the align-mode fused GDN metadata hot path and chunked-prefill context-only DFlash2 closure validated on TP4 V100.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Add model-agnostic SM70 operator specializations for FP8-E4M3 G6/D256 paged-XQA batches and the exact B8/B16 combined top-k/top-p tensor contract. Preserve original B1 and rollback conversion paths, restrict E4M3 graph variants to Flash-V100 consumers, and retain explicit rollback switches.
Evidence: 24 focused policy/dispatcher/sampler tests; 32 prefix-anchored compatibility regressions; successful SM70 compile/link; changed-file pre-commit; 115/115 common XQA SASS instances identical; eight V100 attention comparisons within one FP16 ULP and two bitwise-equal V100 sampler comparisons; matched pure-decode and quality evidence recorded in the migration control document.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Validate local drafter PP independently from the target topology and reject layer partitions that violate final-stage ownership. Runtime admission uses the speculative algorithm and topology/layer contracts, not model or checkpoint identity.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Audit-harden the opt-in fusion with paired quality gates, source-built operator checks, and runtime hardware/tensor/layout/workspace contracts. Model and checkpoint identity are evidence only and never select the route.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Restore the existing scheduler-to-runner cache-zero lifecycle contract in MRV2 so newly allocated or reused cache blocks are cleared before first use.
The source audit replaces per-step host readbacks, request-by-layer tail clearing, token clipping, and invalid-state clamping with the shared allocation-driven KVBlockZeroer path. Runtime selection uses allocation, cache layout, block, tensor, and operator contracts only; no model identity gates are introduced.
Original root-cause investigation by thinking.
Co-authored-by: thinking <a873331498@163.com>
Signed-off-by: thinking <a873331498@163.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Carry a per-segment logical block stride into the Triton zeroing kernel. Infer block-major interleaved layouts from contiguous segment-address runs while keeping dense segments at one-page stride, and handle multiple independent pools without one pool disabling another.
Validation: 7 focused V100/CPU tests and the complete changed-file pre-commit suite pass.
Co-authored-by: Andrew Leech <andrew@alelec.net>
Signed-off-by: Andrew Leech <andrew@alelec.net>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Source-audit the DSpark verifier campaign on current main. Keep incomplete long-context cuBLAS, private compressor state, variable-width grouped verifier, and speculative graph bucket routes explicit opt-ins; remove architecture-identity routing; eliminate default confidence-head work and fail cleanly when explicitly required weights are absent.
Focused result: 74 CPU tests and the complete changed-file pre-commit suite pass. Existing V100 bitwise/exact-top-k source evidence is retained in the migration ledger.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Generalize admission to the selector-engine algorithm contract, keep every new optimization default-off, remove global replay tracing overhead, and validate the focused selector/GDN/kernel surface.
Test: 108 focused tests passed on V100; changed-file pre-commit passed.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Keep the validated SM70 NVFP4 B10 compact route and expose broader MTP concurrency tuning through explicit operator-level opt-ins. Preserve prior defaults for high-width tuning, MoE tiles, all-reduce blocks, and sampler warps until the combined formal curve and quality gate are complete.
Test Result:
- 55 focused CPU/source tests passed; 3 GPU-only tests skipped because all V100s were occupied
- full changed-file pre-commit suite passed
- exact GitHub merge tree matched locally
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Add an opt-in SM70 MTP expanded warmup while preserving the existing startup path by default. The explicit gate covers alternate batch signatures, draft top-k, and Mamba postprocess without changing model state or hot-path semantics.
Test Result:
- 3 focused warmup/default tests passed
- full changed-file pre-commit suite passed
- exact GitHub merge tree matched locally
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Generalize the accepted SM70 exact-8K block-FP8 prefill route to operator-level admission without model identity checks. Preserve the matched +3.46% Qwen3.8 validation result, keep experimental collective warmup default-off, and remove the inherited QPN8 model whitelist.
Test Result:
- 20 focused FP8/QPN8 tests passed
- full changed-file pre-commit suite passed
- exact GitHub merge tree matched locally
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Merge the quality-gated mixed-NVFP4 SM70 decode recovery while keeping pure-FP8 QPN8 opt-in until its equal-interval speed gate is closed.
Audit:
- rebased onto current main and resolved ModelOpt/SM70 integrations
- mixed NVFP4 keeps its validated route-specific default
- pure FP8 QPN8 defaults off with explicit opt-in
- 86 focused sampler and quantization tests passed on V100
- complete changed-file pre-commit and diff checks passed
- exact merge tree verified against main e69fad06
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Add opt-in split CUDA Graph ownership for SM70 MTP while retaining the legacy path as the default.
Audit:
- unproven route changed from default-on to explicit opt-in
- 12 focused shape/default tests passed
- changed-file pre-commit and diff checks passed
- exact merge tree verified against main c4e80ba2
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Backport the DFlash2 correctness closure for SM70 on top of the merged MRV2 base.
Audit:
- preserved DFlash1 and MTP probabilistic defaults
- fixed processed-logit cache column stride handling
- 33 focused DFlash2/default tests passed on V100
- changed-file pre-commit and diff checks passed
- exact merge tree verified against main 933371fa
- existing matched TP4 correctness and acceptance evidence retained
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>