[EPD] Add ECMooncakeConnector for encoder cache over Mooncake TransferEngine (#41567)

Signed-off-by: Teng Ma <sima.mt@alibaba-inc.com>
Signed-off-by: Tianyu Guo <guoty@inferact.ai>
Signed-off-by: Zhou ziheng <jiaranran2@gmail.com>
Signed-off-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Tianyu Guo <guoty@inferact.ai>
Co-authored-by: Zhou ziheng <jiaranran2@gmail.com>
Co-authored-by: jiangkuaixue123 <jiangxiaozhou111@163.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Teng Ma
2026-09-07 06:21:43 +00:00
committed by GitHub
co-authored by Cursor Tianyu Guo Zhou ziheng jiangkuaixue123 OpenAI Codex
parent f7f060d253
commit 6fbb00b188
30 changed files with 5774 additions and 301 deletions
@@ -261,6 +261,25 @@ class ECConnectorBase(ABC):
"""
return True
def start_save_caches(self, **kwargs: Any) -> None:
"""Prepare this step's outbound pushes before the model runs."""
return
def start_worker_services(self) -> None:
"""Start Worker-side services once the model is resident."""
return
def take_unavailable_requests(self) -> set[str]:
"""Request IDs whose encoder inputs the connector can no longer obtain.
The Scheduler fails these; re-issuing the request re-runs the encode.
"""
return set()
def update_state_after_free(self, request: "Request", index: int):
"""Notify the connector that an encoder cache entry was released."""
return
@abstractmethod
def update_state_after_alloc(self, request: "Request", index: int):
"""