-
Notifications
You must be signed in to change notification settings - Fork 61
if KV rm fails, we should clear the whole cache #188
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
WalkthroughThis update introduces new optional configuration fields ( Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant TS_Interface as TypeScript Interface
participant Cpp_Backend as C++ Backend
Client->>TS_Interface: Send load_req (with flash_attn, swa_full)
TS_Interface->>Cpp_Backend: Forward load_req (with flash_attn, swa_full)
Cpp_Backend-->>TS_Interface: Respond load_res
TS_Interface-->>Client: Return load_res
sequenceDiagram
participant App
participant Wllama
participant KV_Cache
App->>Wllama: computeNonCachedTokens(seq)
Wllama->>KV_Cache: kvRemove(seq)
alt kvRemove success
Wllama-->>App: Return uncached suffix of seq
else kvRemove fails
Wllama->>KV_Cache: kvClear()
Wllama-->>App: Return full seq
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~18 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ 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
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This could be useful for hybrid or recurrent models
Summary by CodeRabbit
New Features
Bug Fixes
Chores