MCPcopy Create free account
hub / github.com/InternLM/lmdeploy / start

Method start

autotest/utils/proxy_distributed_utils.py:200–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 self.proxy_process = None
199
200 def start(self):
201 if not self.is_master:
202 return
203
204 cmd = [
205 'lmdeploy', 'serve', 'proxy', '--server-name', self.master_addr, '--server-port',
206 str(self.proxy_port), '--routing-strategy', 'min_expected_latency', '--serving-strategy', 'Hybrid'
207 ]
208 print(f"[Proxy] Starting: {' '.join(cmd)}")
209 self.proxy_process = subprocess.Popen(cmd)
210
211 time.sleep(5)
212
213 def cleanup(self):
214 if self.proxy_process and self.proxy_process.poll() is None:

Callers 1

shared_proxy_managerFunction · 0.95

Calls 2

joinMethod · 0.80
sleepMethod · 0.45

Tested by 1

shared_proxy_managerFunction · 0.76