[Feature] Support mixed deployment with yiyan adapter in release22 (#3974)
Some checks failed
CE Compile Job / ce_job_pre_check (push) Has been cancelled
CE Compile Job / print_ce_job_pre_check_outputs (push) Has been cancelled
CE Compile Job / FD-Clone-Linux (push) Has been cancelled
CE Compile Job / Show Code Archive Output (push) Has been cancelled
CE Compile Job / BUILD_SM8090 (push) Has been cancelled
CE Compile Job / BUILD_SM8689 (push) Has been cancelled
CE Compile Job / CE_UPLOAD (push) Has been cancelled

* [Feature] Support mixed deployment with yiyan adapter in release2.2

* [Feature] Support mixed deployment with yiyan adapter in release2.2

* fix metrics

* add unit test

* add unit test

* add unit test

* add unit test

* add unit test

* add unit test
This commit is contained in:
chenjian
2025-09-10 16:01:13 +08:00
committed by GitHub
parent c4098d56a0
commit 4f8ff478b3
11 changed files with 892 additions and 167 deletions

View File

@@ -208,6 +208,9 @@ class LocalScheduler:
"""
return (token_num + block_size - 1) // block_size
def get_unhandled_request_num(self):
return len(self.ids) - self.ids_read_cursor
def get_requests(
self,
available_blocks,