[TRTLLM-14810][chore] Pre-flight: sync sa_worker.py with main (#16759); require packaging>=24.2 - #17081
Conversation
|
/bot run |
|
PR_Github #62850 [ run ] triggered by Bot. Commit: |
|
PR_Github #62850 [ run ] completed with state
|
|
Note on the L0 failure: per the CI failure analysis, the break is an x86_64 wheel build failure in |
43fd565 to
ad7b478
Compare
|
/bot run |
|
PR_Github #62874 [ run ] triggered by Bot. Commit: |
|
PR_Github #62874 [ run ] completed with state
|
Main PR NVIDIA#16759 upstreamed this branch's SA in-worker hybrid-state promotion verbatim; syncing the file back removes the catch-up-merge conflict. One intentional residual delta: the method stays named `forward` (not `_forward_impl`) because this branch's SpecWorkerBase does not yet carry main's NVIDIA#16382 exception-safe forward wrapper -- workers here are invoked via nn.Module.__call__ -> forward. The merge will finish the rename. Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
…rkaround from Kimi K3 docs Mirrors main PR NVIDIA#17075: FlashInfer source builds with --no-build-isolation need packaging>=24.2 for setuptools license-expression validation, so declare it in requirements.txt and remove the manual 'pip install -U packaging' step from the Kimi K3 README and deployment guide. Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
|
/bot run |
ad7b478 to
37ba252
Compare
|
PR_Github #62885 [ run ] triggered by Bot. Commit: |
|
PR_Github #62885 [ run ] completed with state
|
|
/bot run |
|
PR_Github #62916 [ run ] triggered by Bot. Commit: |
|
PR_Github #62916 [ run ] completed with state
|
|
/bot run |
|
PR_Github #62934 [ run ] triggered by Bot. Commit: |
|
PR_Github #62934 [ run ] completed with state
|
|
/bot run |
|
PR_Github #62996 [ run ] triggered by Bot. Commit: |
|
PR_Github #62996 [ run ] completed with state
|
|
/bot skip --comment "PR #17081 only changes docs, requirements.txt packaging>=24.2, and a formatting-equivalent sa_worker.py line; the hard failures are unrelated DeepSeek V3 Lite H100 memory/executor-init failures." |
|
PR_Github #63026 [ ] completed with state |
Description
Pre-flight change to shrink the conflict surface of the upcoming
main->feat/kimi_k3catch-up merge (TRTLLM-14810). Two independent commits:Sync
tensorrt_llm/_torch/speculative/sa_worker.pywithmain. Main PR [None][fix] SA spec dec: promote accepted hybrid recurrent states in-worker #16759 upstreamed this branch's SA in-worker hybrid-state promotion verbatim, so the file contents now matchmainexcept for one line. Verification of the base-class interface on this branch:SpecWorkerBasehere does not yet carry main's [https://nvbugs/6442074][fix] Make one-model spec-dec attn-metadata save/restore exception-safe #16382 exception-safeforwardwrapper (there is no_forward_implanywhere intensorrt_llm/_torch/speculative/on this branch, and workers are invoked throughnn.Module.__call__->forward). The method therefore stays namedforwardhere; renaming it would leave the worker uncalled. This is the single intentional residual delta vsmain's copy of the file — the catch-up merge finishes the rename when it brings in [https://nvbugs/6442074][fix] Make one-model spec-dec attn-metadata save/restore exception-safe #16382.Require
packaging>=24.2inrequirements.txt(mirrors [TRTLLM-14709][infra] Require packaging>=24.2 for FlashInfer source builds #17075: FlashInfer source builds with--no-build-isolationneed it for setuptools license-expression validation), and drop the now-redundant manualpip install -U 'packaging>=24.2'workaround step fromexamples/kimi_k3/README.mdand the Kimi K3 deployment guide, replaced by a note thatrequirements.txtalready satisfies it.Test Coverage
Validated on Blackwell hardware at the tip of this branch with both commits applied (python-only changes validated against prebuilt binaries):
tests/unittest/_torch/modeling/test_kda_mtp_decode_cute_parity.py,test_kimi_kda_fused_verify_parity.py,test_kimi_kda_verify_parity.py,tests/unittest/_torch/modules/kimi_kda/,tests/unittest/_torch/modules/moe/test_kimi_k3_situ_moe.py,tests/torch/speculative/test_suffix_automaton.py— all green.tests/integration/defs/kimi_k3_sa_harness.py) — the decisive gate for the sa_worker change; no logits drift.examples/kimi_k3/quick_start_kimi_k3.sbatch), standard and--enable-block-reusevariants — all expected-text checks pass.tests/unittest/disaggregated/test_bounce.py,tests/unittest/disaggregated/test_kda_mamba_transfer.py,tests/unittest/_torch/speculative/hw_agnostic/test_sa.py, plus the TinyLlama ctx/gen/proxy-vs-aggregated parity smoke (tests/integration/defs/kimi_k3_disagg_parity.py) — all pass. Note: the parity smoke was initially blocked by a dependency-artifact incompatibility unrelated to this change (the test environment carried a newerflashinfer-pythonthan this branch's==0.6.14pin, tripping a kernel-signature mismatch in the attention decode path); rerunning with the pinned version restored it, and the smoke passes with this PR applied.PR Checklist
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.