-
Notifications
You must be signed in to change notification settings - Fork 208
[Feature] Add patch to accelerate SGLang weight loading #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
78fb614
f75fdcd
e05bf74
d408ba8
5f8e990
8102814
5664c12
635fad3
f62ecc3
677bd21
478af67
69043aa
b097673
74d2580
9bab814
8e47d93
0c2f8b3
368c761
a0e6c10
6db171b
26c871f
13d01dd
ff21d52
028d1f3
1dd84bb
c38a426
50c328a
83e548f
4148945
4349c1c
683f95f
1848ea0
e078360
20ca314
c2f13b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ | |
| ) | ||
| from areal.platforms import current_platform | ||
| from areal.utils import logging, name_resolve, names | ||
| from areal.utils.launcher import TRITON_CACHE_PATH | ||
| from areal.utils.launcher import TRITON_CACHE_PATH, apply_sglang_patch | ||
| from areal.utils.network import find_free_ports, gethostip | ||
|
|
||
| logger = logging.getLogger("SGLangServer Wrapper") | ||
|
|
@@ -130,6 +130,9 @@ def __init__( | |
| self.server_process = None | ||
| self.n_gpus_per_node = n_gpus_per_node | ||
|
|
||
| if self.config.enable_fast_load or self.config.enable_multithread_load: | ||
| apply_sglang_patch() | ||
|
Comment on lines
+133
to
+134
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'd better apply the patch in launchers instead of in sglang_server to avoid data race issues. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct me if I am wrong, isn't one node expected to run only one |
||
|
|
||
| def run(self): | ||
| gpus_per_server = self.allocation_mode.gen_instance_size | ||
| cross_nodes = False | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.