mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
teacher env init
This commit is contained in:
parent
c421582b6f
commit
f44eb810bf
4 changed files with 258 additions and 27 deletions
|
|
@ -41,9 +41,7 @@ class _FakeAPIServer(APIServer):
|
|||
|
||||
|
||||
class _FakeRoutedServer:
|
||||
def __init__(
|
||||
self, name: str, train_slots: int, eval_slots: int, healthy: bool = True
|
||||
):
|
||||
def __init__(self, name: str, train_slots: int, eval_slots: int, healthy: bool = True):
|
||||
self.name = name
|
||||
self.server_healthy = healthy
|
||||
self.sem = AsyncSemWithAdaptiveWeight(4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue