[DSv4.1] Initialize the full-to-SWA mapping for request-window pools (#43165)

This commit is contained in:
YAMY
2026-10-09 22:39:26 -07:00
committed by GitHub
parent 3831e7e091
commit 17852cdfe8
2 changed files with 94 additions and 0 deletions
@@ -1080,6 +1080,7 @@ class DeepSeekV4TokenToKVPool(BaseSWAKVPool):
kv_pool_cls: type = DeepSeekV4SingleKVPool
self.request_window = None
self.full_to_swa_index_mapping = None
encoder_replay = get_exec().features.enable_encoder_swa_bounded_replay
# DSpark's draft shares the target's full-to-SWA mapping, so the target
# keeps its paged SWA allocator even under encoder replay.