Repository navigation
Refactor KV Cache Manager with a new torch exportable KVCache backend - #400
Conversation
e4cdaf1 to
d070ab3
Compare
Greptile SummaryThis PR refactors the KV cache manager by introducing a
Confidence Score: 5/5Safe to merge. The previous blocking issues in ExportKVCacheBackend are confirmed deprecated and removed from the public import map; the fake-op registration no longer crashes on import; and the KVCacheBackend ABC now declares all required methods. All previously flagged runtime-crashing defects have been resolved or are in a deprecated code path that is no longer reachable. The new backend abstraction, C++ export runtime, and fake-op shims are structurally sound. The only findings in this pass are a misleading inline comment in the offload reap path, a duplicate null guard, and the absence of a deadline in the flush loop — none of these affect correctness in the happy path. corelib/recsys_kvcache_manager/src/runtime/export_kvcache_runtime.cpp and corelib/recsys_kvcache_manager/src/torch_binding/kvcache_manager_ops.cpp Important Files Changed
Reviews (23): Last reviewed commit: "Fix review errors" | Re-trigger Greptile |
418c283 to
799c55f
Compare
|
|
about the fbgemm update, i think main branch has some update. make sure it does not reverse the changes on main. |
Introduce KVCacheBackend, split the default Python backend from the public KVCacheManager facade, and add the initial export lookup path.
* Support PyTorch export and AOTI compile/package with test coverage. * Support C++ Torch runtime validation for AOTI-compiled KV-cache graphs. * Support Triton Inference Server validation using the PyTorch AOTI backend. * Add required KV-cache/runtime/custom-op plumbing and export fake-op shims.
* extract and simplify HSTU KV-cache export wrapper * remove stale debug instrumentation and export bring-up prints * standardize macro-gated logging in KV-cache runtime/binding/client code * rename AOTI ordering placeholder tensors consistently * clean C++ replay demo logging and CUDA check behavior * document end-to-end HSTU KV-cache AOTI C++ and Triton Server workflows
8469b9d to
c656a19
Compare
|
/build fbgemm devel |
|
❔ Pipeline #58380880 -- canceling
|
|
Final CI: pipeline
|
d7cbdfc to
0446c77
Compare
Description
Checklist