Commit 01b8eb5
[KVCache][Engine][BugFix] fix cache evict metadata direction and resource manager v1 bugs
## Motivation
修复 cache_manager 和 resource_manager_v1 中的多个 bug。
## Modifications
- `cache_manager.py`: 修复 `free_gpu_block_ids` 返回实际空闲块列表而非 range,调整日志顺序(先打印日志再计算 matched_device/host_ids)
- `common_engine.py`: 修正 typo(Unexcepted → Unexpected)
- `request.py`: 修正 `cache_evict_metadata` 中 src/dst 类型方向错误(DEVICE→HOST 驱逐方向)
- `resource_manager_v1.py`: PD 分离 prefill 节点跳过 prefix cache update_cache_blocks;在 prefill 节点分配后调用 update_cache_blocks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 82a5b80 commit 01b8eb5
4 files changed
Lines changed: 13 additions & 6 deletions
File tree
- fastdeploy
- cache_manager/v1
- engine
- sched
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | | - | |
541 | 539 | | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2091 | 2091 | | |
2092 | 2092 | | |
2093 | 2093 | | |
2094 | | - | |
| 2094 | + | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | 2097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
668 | | - | |
| 667 | + | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| 1074 | + | |
1074 | 1075 | | |
1075 | 1076 | | |
1076 | 1077 | | |
| |||
1844 | 1845 | | |
1845 | 1846 | | |
1846 | 1847 | | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1847 | 1853 | | |
1848 | 1854 | | |
1849 | 1855 | | |
| |||
0 commit comments