You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flagscale/serve/run_pd_disagg_router.py
+16-24Lines changed: 16 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
-
importlogging
1
+
# Copyright (c) 2025, BAAI. All rights reserved.
2
+
#
3
+
# Adopted from https://github.com/vllm-project/vllm/blob/1ad957950ffc1552af5abda78c03d88ddb67945b/examples/online_serving/disagg_xpyd/disagg_prefill_proxy_xpyd.py. Below is the original copyright:
4
+
#
5
+
# SPDX-License-Identifier: Apache-2.0
6
+
#
7
+
8
+
2
9
importos
3
10
importrandom
4
11
importsocket
@@ -8,6 +15,7 @@
8
15
importaiohttp
9
16
importmsgpack
10
17
importzmq
18
+
11
19
fromquartimportQuart, make_response, request
12
20
13
21
try:
@@ -29,18 +37,13 @@ class LoadManager:
29
37
def__init__(self):
30
38
self._lock=threading.Lock()
31
39
# Each resource type 'P' or 'D' maps to {http_addr: {'zmq': zmq_addr, 'load': int}}
0 commit comments