-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[None][fix] Pass mode & directory #5983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughAdds optional KV-cache transfer mode and directory parameters to block-management APIs and GenerationRequest accessors, and changes KvCacheRetentionConfig::getDirectory() to return a const reference; parameters are threaded through WindowBlockManager, BlockManager, and transfer-manager call sites without altering core logic. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant BlockManager
participant WindowBlockManager
participant TransferManager
Client->>BlockManager: onboardBlock(block, windowSize, mode, directory)
BlockManager->>WindowBlockManager: onboardBlock(block, windowSize, mode, directory)
WindowBlockManager->>WindowBlockManager: getFreeBlock(..., mode, directory)
WindowBlockManager->>TransferManager: onboard(block, mode, directory)
sequenceDiagram
participant Client
participant BlockManager
participant WindowBlockManager
participant TransferManager
Client->>BlockManager: offloadBlock(block, windowSize, mode, directory)
BlockManager->>WindowBlockManager: offloadBlock(block, windowSize, mode, directory)
WindowBlockManager->>TransferManager: offload(block, 0, mode, directory)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
👮 Files not reviewed due to content moderation or server errors (4)
🧰 Additional context used📓 Path-based instructions (5)**/*.{cpp,cxx,cc,cu,h,hpp,hxx,hh,cuh}📄 CodeRabbit Inference Engine (CODING_GUIDELINES.md)
Files:
**/*.{h,hpp,hxx,hh,cuh,cpp,cxx,cc,cu}📄 CodeRabbit Inference Engine (CODING_GUIDELINES.md)
Files:
**/*.{h,hpp,hxx,hh,cuh}📄 CodeRabbit Inference Engine (CODING_GUIDELINES.md)
Files:
**/*.{cpp,cxx,cc,cu,h,hpp,hxx,hh,cuh,py}📄 CodeRabbit Inference Engine (CODING_GUIDELINES.md)
Files:
**/*.{cpp,cxx,cc,cu}📄 CodeRabbit Inference Engine (CODING_GUIDELINES.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
| return mKvCacheRetentionConfig.getTransferMode(); | ||
| } | ||
|
|
||
| [[nodiscard]] std::optional<std::string> getDirectory() const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const std::optional<std::string>& is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this also be included in the test, please? Thank you.
Passing mode & directory parameters to relevant onboard & offload functions. Signed-off-by: Tomer Shmilovich <[email protected]>
Done |
Passing mode & directory parameters to relevant onboard & offload functions.
Summary by CodeRabbit
New Features
Bug Fixes
Chores