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>
Record the source-matching Qwen3.8 exact-8K baseline, request-wall target, trace budget, bounded shard-consumer design, rejected routes, quality ladder, and rollback requirements so implementation work does not repeat known dead ends.
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>
Repair Dependabot’s broad update on current main with consistent source inputs and generated locks, preserving the validated Torch/tokenizer/Pillow stack and synchronizing optional dependency consumers.
Reported-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Refresh the CUDA test lock to mbstrdecoder 1.1.5 and the highest chardet release permitted by upstream metadata, 6.0.0.post1.
Reported-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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>
Record the active trace-first optimization plan and promotion gates. This is explicitly a planning record, not a 17 ms performance claim.
Signed-off-by: 1Cat Audit Agent <audit@1cat.ai>
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>
Audited all six matched concurrency artifacts and recomputed the documented scaling comparisons. Documentation-only; no runtime selector is added.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Audited against the exact 128K task-cache artifacts. This is documentation-only; the non-equivalent route remains opt-in and default-off.
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>