[None][feat] KVCacheManagerV2 C++ translation - #14047
Conversation
|
/bot run --disable-fail-fast --stage-list "PerfSanity" |
5bd984d to
456cfa8
Compare
4f4dd8d to
0802c6c
Compare
4c24d8a to
44c797c
Compare
b4592c1 to
5a1fa77
Compare
fd7d167 to
99bfc50
Compare
e5a1453 to
a4efc5c
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #61522 [ run ] triggered by Bot. Commit: |
|
PR_Github #61522 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #61570 [ run ] triggered by Bot. Commit: |
|
PR_Github #61570 [ run ] completed with state
|
|
/bot run |
|
PR_Github #61783 [ run ] triggered by Bot. Commit: |
|
PR_Github #61783 [ run ] completed with state
|
|
/bot run |
|
PR_Github #61807 [ run ] triggered by Bot. Commit: |
|
PR_Github #61807 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #61832 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
|
PR_Github #61848 [ run ] triggered by Bot. Commit: |
|
PR_Github #61832 [ run ] completed with state |
|
PR_Github #61848 [ run ] completed with state
|
Base-branch (main) regressions surfaced by rebasing onto latest main; none are in the KVCacheManagerV2 change set. Two distinct patterns, both fixed by matching the existing sibling conventions. 1) tensorrt_llm import break (nvbugs/6442074): SpecWorkerBase.__init_subclass__ forbids subclasses from overriding forward() -- they must implement _forward_impl so the base forward() wrapper can guarantee spec-dec attn-metadata cleanup. MTPEagleDynamicTreeWorker still overrode forward(), so 'import tensorrt_llm' raised TypeError at class-definition time, breaking all test collection. Rename its forward() to _forward_impl(), matching every sibling worker; callers use the base forward() wrapper so no caller changes. 2) executor tests build objects via __new__ (bypassing __init__) then exercise teardown/lifecycle paths. main NVIDIA#16523 (multi-process HTTP frontends) added attributes to BaseWorker/GenerationExecutorProxy __init__ that teardown reads unguarded, so the __new__-built test objects raised AttributeError: - test_proxy_fast_death.py _bare_proxy: seed _multi_frontend_ipc_dir/_hmac. - test_event_loop_error_broadcast.py _WorkerStub: seed frontend_result_queues (responses_handler read it unguarded -> 4/6 tests failed). - test_proxy_postproc_terminate.py _make_proxy: seed workers_started + _multi_frontend_ipc_dir/_hmac (GC __del__ -> shutdown teardown). - test_base_worker.py __new__ shell: seed doing_shutdown (GC __del__). Each seeds only what that object's teardown reads, matching the _bare_proxy convention. Signed-off-by: Yao Yao <lowsfer@users.noreply.github.com>
…dings Migrates tensorrt_llm/runtime/kv_cache_manager_v2 from pure Python to a C++ implementation under cpp/tensorrt_llm/batch_manager/kv_cache_manager_v2/ with nanobind bindings compiled into bindings.so, preserving the same public API. The dispatcher __init__.py selects the backend via TLLM_KV_CACHE_MANAGER_V2_BACKEND (default "cpp"); both backends pass the shared test suite. CODEOWNERS assigns the new C++ tree to trt-llm-kv-cache-manager-devs. Includes ports of subsequent main features: commit-min-snapshot + SWA-slot reservation, SHA-256 block-key hashing, CUDA-graph request IDs, event manager and stats API to C++, uint64 ReuseScope salt/lora_id, resume-utilization KV constraints, per-conversation KV cache block reuse (PlannedDropHandle), and an MPI teardown fix for the unittest/bindings CI shard. Migration planning docs (TODO.md, MIGRATION_PLAN_CPP.md, CPP_MIGRATION_PLAN_MAIN_15633.md) are kept on a separate branch. Signed-off-by: Yao Yao <lowsfer@users.noreply.github.com>
|
/bot run --disable-fail-fast |
|
PR_Github #61879 [ run ] triggered by Bot. Commit: |
|
PR_Github #61879 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #61916 [ run ] triggered by Bot. Commit: |
|
PR_Github #61916 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
1 similar comment
|
/bot run --disable-fail-fast |
|
PR_Github #61967 [ run ] triggered by Bot. Commit: |
Dev Engineer Review
QA Engineer Review
kvCacheManagerV2HostMemTest.cppkvCacheManagerV2StatsTest.cppkvCacheManagerV2TypedIndexTest.cpptests/integration/test_lists/,test-db/, orqa/coverage changes are listed. Test functions should be mapped to CI or manual-QA entries.