-
Notifications
You must be signed in to change notification settings - Fork 309
[PD]: Bidirectional KV transfer #2522
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -770,8 +770,9 @@ def auto_setup_lora(self): | |
|
|
||
| @model_validator(mode="after") | ||
| def auto_setup_session_headers(self): | ||
| """Ensure X-Session-ID header is always set for sticky DP-aware routing at the inference router.""" | ||
| """Ensure stable routing headers are set for inference routers.""" | ||
| self.orchestrator.client.extra_headers_from_state.setdefault("X-Session-ID", "example_id") | ||
| self.orchestrator.client.extra_headers_from_state.setdefault("X-Conversation-ID", "trajectory_id") | ||
|
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. Nonexistent state field used for conversation header mappingHigh Severity The Reviewed by Cursor Bugbot for commit a3f8a6d. Configure here. |
||
| return self | ||
|
|
||
| @model_validator(mode="after") | ||
|
|
||


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.
Auto-computed TTL can be zero for small timeouts
Low Severity
When
abort_timeout_secondsis 1 (the minimum allowed bygt=0), the auto-computedrouter_cache_ttl_secondsbecomesint(1 * 0.95) = 0. This bypasses the field'sgt=0constraint since model validators run after field validation and don't re-validate. The resulting value 0 gets passed to--pd-kv-cache-ttl-secs 0, which may cause unexpected router behavior.Reviewed by Cursor Bugbot for commit a3f8a6d. Configure here.