Skip to content

Commit

Permalink
initial lb changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TosinSeg committed Jun 29, 2023
1 parent 38e270e commit 4d4e0d8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mii/grpc_related/modelresponse_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ def __init__(self, task_name, replica_configs):
super().__init__()
self.asyncio_loop = asyncio.get_event_loop()

self.stubs = [
ParallelStubInvoker(replica.hostname,
replica.tensor_parallel_ports)
for replica in replica_configs
]
self.stubs = {}
for repl in replica_configs:
stubs[repl.deployment_name] = [ParallelStubInvoker(replica.hostname,
replica.tensor_parallel_ports)
for replica in replica_configs
]
print(self.stubs)
self.counter = AtomicCounter()
self.task = get_task(task_name)
Expand Down

0 comments on commit 4d4e0d8

Please sign in to comment.