-
Notifications
You must be signed in to change notification settings - Fork 295
cp: feat: add capability to update weights inflight during generation (1381) into r0.4.0
#1464
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -664,6 +664,10 @@ def finish_generation(self, *args: Any, **kwargs: Any) -> bool: | |||||||||||||
| # We don't need to do anything here | ||||||||||||||
| return True | ||||||||||||||
|
|
||||||||||||||
| def invalidate_kv_cache(self, *args: Any, **kwargs: Any) -> bool: | ||||||||||||||
| # We don't need to do anything here | ||||||||||||||
| return True | ||||||||||||||
|
|
||||||||||||||
|
Comment on lines
+667
to
+670
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major **Remove unused *args/kwargs; align signature with interface The interface method has no extra args; dropping them fixes Ruff ARG002 and avoids API drift. - def invalidate_kv_cache(self, *args: Any, **kwargs: Any) -> bool:
- # We don't need to do anything here
- return True
+ def invalidate_kv_cache(self) -> bool:
+ # We don't need to do anything here
+ return TrueAs per coding guidelines 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Ruff (0.14.2)667-667: Unused method argument: (ARG002) 667-667: Unused method argument: (ARG002) 🤖 Prompt for AI Agents |
||||||||||||||
| def finish_training(self, *args: Any, **kwargs: Any) -> None: | ||||||||||||||
| # Placeholder implementation | ||||||||||||||
| pass | ||||||||||||||
|
|
||||||||||||||
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.
Fix typo and config key name to match code
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~168-~168: Ensure spelling is correct
Context: ...her to recompute KV caches after weight udpate by configuring `recompute_kv_cache_afte...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents