Commit a9280d1
fix: scale hot KV allocation to hot_pct of total ctx
The tiered cache percentages define hard capacity limits per tier that
sum to the full ctx budget. Previously the R9700 KV buffer was still
allocated at full n_ctx despite the hot tier being only a fraction.
- Add kv_tier_total_ctx to common_params to preserve the full budget
- Before common_init_from_params, reduce n_ctx to hot_pct * n_ctx so
the GPU KV buffer only allocates for the hot tier
- server-tiered-cache.cpp uses kv_tier_total_ctx for config.total_ctx
so warm/cold capacity calculations remain correct
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f90365a commit a9280d1
3 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
753 | 758 | | |
754 | 759 | | |
755 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments