[None][feat] KVCacheManagerV2 C++ translation#14047
Conversation
|
/bot run --disable-fail-fast |
|
PR_Github #47960 [ run ] triggered by Bot. Commit: |
|
PR_Github #47960 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
/bot run --disable-fail-fast --stage-list "PerfSanity" |
5bd984d to
456cfa8
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #50329 [ run ] triggered by Bot. Commit: |
|
PR_Github #50329 [ run ] completed with state
|
456cfa8 to
17d71e2
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #52999 [ run ] triggered by Bot. Commit: |
|
PR_Github #52999 [ run ] completed with state
|
ae8517a to
2cdb452
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #53338 [ run ] triggered by Bot. Commit: |
|
PR_Github #53338 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #53454 [ run ] triggered by Bot. Commit: |
|
PR_Github #53454 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #53588 [ run ] triggered by Bot. Commit: |
|
PR_Github #53588 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #53735 [ run ] triggered by Bot. Commit: |
|
PR_Github #53735 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
4f4dd8d to
0802c6c
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #61028 [ run ] triggered by Bot. Commit: |
|
PR_Github #61012 [ run ] completed with state |
|
PR_Github #61028 [ run ] completed with state
|
2ca5340 to
a747ad3
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #61167 [ run ] triggered by Bot. Commit: |
|
/bot run --disable-fail-fast |
0fc1375 to
af58079
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #61253 [ run ] triggered by Bot. Commit: |
|
PR_Github #61254 [ ] completed with state |
|
PR_Github #61167 [ run ] completed with state
|
af58079 to
e5a1453
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #61280 [ run ] triggered by Bot. Commit: |
|
PR_Github #61253 [ run ] completed with state |
|
PR_Github #61280 [ run ] completed with state
|
e5a1453 to
a4efc5c
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #61330 [ run ] triggered by Bot. Commit: |
|
PR_Github #61330 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #61489 [ run ] triggered by Bot. Commit: |
…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>
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>
|
/bot run --disable-fail-fast |
|
PR_Github #61522 [ run ] triggered by Bot. Commit: |
|
PR_Github #61489 [ run ] completed with state |
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.