Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .ruff_cache/0.9.3/109126751966774037 +0 -0
- .ruff_cache/0.9.3/14460502951926179217 +0 -0
- .ruff_cache/0.9.3/15341643465769641929 +0 -0
- .ruff_cache/0.9.3/18188778959204928997 +0 -0
- .ruff_cache/0.9.3/2396129100803180786 +0 -0
- .ruff_cache/0.9.3/4264427927185388975 +0 -0
- .ruff_cache/0.9.3/4888284986223313578 +0 -0
- sglang_repo/.editorconfig +25 -0
- sglang_repo/.isort.cfg +3 -0
- sglang_repo/.pre-commit-config.yaml +35 -0
- sglang_repo/LICENSE +201 -0
- sglang_repo/Makefile +43 -0
- sglang_repo/README.md +65 -0
- sglang_repo/sgl-kernel/.clang-format +8 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/.gitignore +2 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/11012756282141579404 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/1168667244488518935 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/11753183460670711644 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/12059684765372293508 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/13028544527419100715 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/13393202205429707877 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/13428504034666489022 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/14110218206471236592 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/14345637865134746539 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/16110322557762993190 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/16643971354451988269 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/17395782632822643744 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/1746960302960405186 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/17972000605812486964 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/17993944555996302640 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/18208546822658641532 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/18254016524548899362 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/1991119851134246922 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/2611366789337720004 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/2867811251245659298 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/3669091814669378066 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/4080476618742787531 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/4241095775501438852 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/4456710962036508935 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/5103480458981537539 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/5170811646951083657 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/518027365682616618 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/5638836940124587757 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/6318189254182036275 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/7647151793679522398 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/8082539455242649522 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/866242194930426554 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/9802639975025153042 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/9983056886186083913 +0 -0
- sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/CACHEDIR.TAG +1 -0
.ruff_cache/0.9.3/109126751966774037
ADDED
Binary file (114 Bytes). View file
|
|
.ruff_cache/0.9.3/14460502951926179217
ADDED
Binary file (112 Bytes). View file
|
|
.ruff_cache/0.9.3/15341643465769641929
ADDED
Binary file (582 Bytes). View file
|
|
.ruff_cache/0.9.3/18188778959204928997
ADDED
Binary file (557 Bytes). View file
|
|
.ruff_cache/0.9.3/2396129100803180786
ADDED
Binary file (172 Bytes). View file
|
|
.ruff_cache/0.9.3/4264427927185388975
ADDED
Binary file (128 Bytes). View file
|
|
.ruff_cache/0.9.3/4888284986223313578
ADDED
Binary file (150 Bytes). View file
|
|
sglang_repo/.editorconfig
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# https://editorconfig.org/
|
2 |
+
|
3 |
+
root = true
|
4 |
+
|
5 |
+
[*]
|
6 |
+
charset = utf-8
|
7 |
+
end_of_line = lf
|
8 |
+
indent_style = space
|
9 |
+
indent_size = 4
|
10 |
+
trim_trailing_whitespace = true
|
11 |
+
insert_final_newline = true
|
12 |
+
|
13 |
+
[*.{json,yaml,yml}]
|
14 |
+
indent_size = 2
|
15 |
+
|
16 |
+
[*.md]
|
17 |
+
indent_size = 2
|
18 |
+
x-soft-wrap-text = true
|
19 |
+
|
20 |
+
[*.rst]
|
21 |
+
indent_size = 4
|
22 |
+
x-soft-wrap-text = true
|
23 |
+
|
24 |
+
[Makefile]
|
25 |
+
indent_style = tab
|
sglang_repo/.isort.cfg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[settings]
|
2 |
+
profile=black
|
3 |
+
known_first_party=sglang
|
sglang_repo/.pre-commit-config.yaml
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
default_stages: [pre-commit, pre-push, manual]
|
2 |
+
|
3 |
+
repos:
|
4 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
5 |
+
rev: v5.0.0
|
6 |
+
hooks:
|
7 |
+
- id: check-symlinks
|
8 |
+
- id: destroyed-symlinks
|
9 |
+
- id: trailing-whitespace
|
10 |
+
- id: end-of-file-fixer
|
11 |
+
- id: check-yaml
|
12 |
+
args: [--allow-multiple-documents]
|
13 |
+
- id: check-toml
|
14 |
+
- id: check-ast
|
15 |
+
- id: check-added-large-files
|
16 |
+
- id: check-merge-conflict
|
17 |
+
- id: check-shebang-scripts-are-executable
|
18 |
+
- id: detect-private-key
|
19 |
+
- id: debug-statements
|
20 |
+
- id: no-commit-to-branch
|
21 |
+
- repo: https://github.com/PyCQA/isort
|
22 |
+
rev: 5.13.2
|
23 |
+
hooks:
|
24 |
+
- id: isort
|
25 |
+
- repo: https://github.com/psf/black
|
26 |
+
rev: 24.10.0
|
27 |
+
hooks:
|
28 |
+
- id: black-jupyter
|
29 |
+
- repo: https://github.com/kynan/nbstripout
|
30 |
+
rev: 0.8.1
|
31 |
+
hooks:
|
32 |
+
- id: nbstripout
|
33 |
+
args:
|
34 |
+
- '--keep-output'
|
35 |
+
- '--extra-keys=metadata.kernelspec metadata.language_info.version'
|
sglang_repo/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Apache License
|
2 |
+
Version 2.0, January 2004
|
3 |
+
http://www.apache.org/licenses/
|
4 |
+
|
5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6 |
+
|
7 |
+
1. Definitions.
|
8 |
+
|
9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
11 |
+
|
12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13 |
+
the copyright owner that is granting the License.
|
14 |
+
|
15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
16 |
+
other entities that control, are controlled by, or are under common
|
17 |
+
control with that entity. For the purposes of this definition,
|
18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
19 |
+
direction or management of such entity, whether by contract or
|
20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22 |
+
|
23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24 |
+
exercising permissions granted by this License.
|
25 |
+
|
26 |
+
"Source" form shall mean the preferred form for making modifications,
|
27 |
+
including but not limited to software source code, documentation
|
28 |
+
source, and configuration files.
|
29 |
+
|
30 |
+
"Object" form shall mean any form resulting from mechanical
|
31 |
+
transformation or translation of a Source form, including but
|
32 |
+
not limited to compiled object code, generated documentation,
|
33 |
+
and conversions to other media types.
|
34 |
+
|
35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
36 |
+
Object form, made available under the License, as indicated by a
|
37 |
+
copyright notice that is included in or attached to the work
|
38 |
+
(an example is provided in the Appendix below).
|
39 |
+
|
40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41 |
+
form, that is based on (or derived from) the Work and for which the
|
42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
44 |
+
of this License, Derivative Works shall not include works that remain
|
45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46 |
+
the Work and Derivative Works thereof.
|
47 |
+
|
48 |
+
"Contribution" shall mean any work of authorship, including
|
49 |
+
the original version of the Work and any modifications or additions
|
50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
54 |
+
means any form of electronic, verbal, or written communication sent
|
55 |
+
to the Licensor or its representatives, including but not limited to
|
56 |
+
communication on electronic mailing lists, source code control systems,
|
57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
59 |
+
excluding communication that is conspicuously marked or otherwise
|
60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
61 |
+
|
62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
64 |
+
subsequently incorporated within the Work.
|
65 |
+
|
66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
71 |
+
Work and such Derivative Works in Source or Object form.
|
72 |
+
|
73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76 |
+
(except as stated in this section) patent license to make, have made,
|
77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78 |
+
where such license applies only to those patent claims licensable
|
79 |
+
by such Contributor that are necessarily infringed by their
|
80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
82 |
+
institute patent litigation against any entity (including a
|
83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84 |
+
or a Contribution incorporated within the Work constitutes direct
|
85 |
+
or contributory patent infringement, then any patent licenses
|
86 |
+
granted to You under this License for that Work shall terminate
|
87 |
+
as of the date such litigation is filed.
|
88 |
+
|
89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
90 |
+
Work or Derivative Works thereof in any medium, with or without
|
91 |
+
modifications, and in Source or Object form, provided that You
|
92 |
+
meet the following conditions:
|
93 |
+
|
94 |
+
(a) You must give any other recipients of the Work or
|
95 |
+
Derivative Works a copy of this License; and
|
96 |
+
|
97 |
+
(b) You must cause any modified files to carry prominent notices
|
98 |
+
stating that You changed the files; and
|
99 |
+
|
100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
101 |
+
that You distribute, all copyright, patent, trademark, and
|
102 |
+
attribution notices from the Source form of the Work,
|
103 |
+
excluding those notices that do not pertain to any part of
|
104 |
+
the Derivative Works; and
|
105 |
+
|
106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107 |
+
distribution, then any Derivative Works that You distribute must
|
108 |
+
include a readable copy of the attribution notices contained
|
109 |
+
within such NOTICE file, excluding those notices that do not
|
110 |
+
pertain to any part of the Derivative Works, in at least one
|
111 |
+
of the following places: within a NOTICE text file distributed
|
112 |
+
as part of the Derivative Works; within the Source form or
|
113 |
+
documentation, if provided along with the Derivative Works; or,
|
114 |
+
within a display generated by the Derivative Works, if and
|
115 |
+
wherever such third-party notices normally appear. The contents
|
116 |
+
of the NOTICE file are for informational purposes only and
|
117 |
+
do not modify the License. You may add Your own attribution
|
118 |
+
notices within Derivative Works that You distribute, alongside
|
119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
120 |
+
that such additional attribution notices cannot be construed
|
121 |
+
as modifying the License.
|
122 |
+
|
123 |
+
You may add Your own copyright statement to Your modifications and
|
124 |
+
may provide additional or different license terms and conditions
|
125 |
+
for use, reproduction, or distribution of Your modifications, or
|
126 |
+
for any such Derivative Works as a whole, provided Your use,
|
127 |
+
reproduction, and distribution of the Work otherwise complies with
|
128 |
+
the conditions stated in this License.
|
129 |
+
|
130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
132 |
+
by You to the Licensor shall be under the terms and conditions of
|
133 |
+
this License, without any additional terms or conditions.
|
134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135 |
+
the terms of any separate license agreement you may have executed
|
136 |
+
with Licensor regarding such Contributions.
|
137 |
+
|
138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
140 |
+
except as required for reasonable and customary use in describing the
|
141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
142 |
+
|
143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144 |
+
agreed to in writing, Licensor provides the Work (and each
|
145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147 |
+
implied, including, without limitation, any warranties or conditions
|
148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150 |
+
appropriateness of using or redistributing the Work and assume any
|
151 |
+
risks associated with Your exercise of permissions under this License.
|
152 |
+
|
153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
154 |
+
whether in tort (including negligence), contract, or otherwise,
|
155 |
+
unless required by applicable law (such as deliberate and grossly
|
156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157 |
+
liable to You for damages, including any direct, indirect, special,
|
158 |
+
incidental, or consequential damages of any character arising as a
|
159 |
+
result of this License or out of the use or inability to use the
|
160 |
+
Work (including but not limited to damages for loss of goodwill,
|
161 |
+
work stoppage, computer failure or malfunction, or any and all
|
162 |
+
other commercial damages or losses), even if such Contributor
|
163 |
+
has been advised of the possibility of such damages.
|
164 |
+
|
165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168 |
+
or other liability obligations and/or rights consistent with this
|
169 |
+
License. However, in accepting such obligations, You may act only
|
170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171 |
+
of any other Contributor, and only if You agree to indemnify,
|
172 |
+
defend, and hold each Contributor harmless for any liability
|
173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
174 |
+
of your accepting any such warranty or additional liability.
|
175 |
+
|
176 |
+
END OF TERMS AND CONDITIONS
|
177 |
+
|
178 |
+
APPENDIX: How to apply the Apache License to your work.
|
179 |
+
|
180 |
+
To apply the Apache License to your work, attach the following
|
181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182 |
+
replaced with your own identifying information. (Don't include
|
183 |
+
the brackets!) The text should be enclosed in the appropriate
|
184 |
+
comment syntax for the file format. We also recommend that a
|
185 |
+
file or class name and description of purpose be included on the
|
186 |
+
same "printed page" as the copyright notice for easier
|
187 |
+
identification within third-party archives.
|
188 |
+
|
189 |
+
Copyright 2023-2024 SGLang Team
|
190 |
+
|
191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192 |
+
you may not use this file except in compliance with the License.
|
193 |
+
You may obtain a copy of the License at
|
194 |
+
|
195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
196 |
+
|
197 |
+
Unless required by applicable law or agreed to in writing, software
|
198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200 |
+
See the License for the specific language governing permissions and
|
201 |
+
limitations under the License.
|
sglang_repo/Makefile
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.PHONY: check-deps install-deps format update help
|
2 |
+
|
3 |
+
# Show help for each target
|
4 |
+
help:
|
5 |
+
@echo "Available targets:"
|
6 |
+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
7 |
+
|
8 |
+
check-deps: ## Check and install required Python formatting dependencies
|
9 |
+
@command -v isort >/dev/null 2>&1 || (echo "Installing isort..." && pip install isort)
|
10 |
+
@command -v black >/dev/null 2>&1 || (echo "Installing black..." && pip install black)
|
11 |
+
|
12 |
+
install-deps: ## Install Python formatting tools (isort and black)
|
13 |
+
pip install isort black
|
14 |
+
|
15 |
+
format: check-deps ## Format modified Python files using isort and black
|
16 |
+
@echo "Formatting modified Python files..."
|
17 |
+
git diff --name-only --diff-filter=M | grep '\.py$$' | xargs -I {} sh -c 'isort {} && black {}'
|
18 |
+
|
19 |
+
FILES_TO_UPDATE = docker/Dockerfile.rocm \
|
20 |
+
python/pyproject.toml \
|
21 |
+
python/sglang/version.py \
|
22 |
+
docs/developer/setup_github_runner.md \
|
23 |
+
docs/start/install.md
|
24 |
+
|
25 |
+
update: ## Update version numbers across project files. Usage: make update <new_version>
|
26 |
+
@if [ -z "$(filter-out $@,$(MAKECMDGOALS))" ]; then \
|
27 |
+
echo "Version required. Usage: make update <new_version>"; \
|
28 |
+
exit 1; \
|
29 |
+
fi
|
30 |
+
@OLD_VERSION=$$(grep "version" python/sglang/version.py | cut -d '"' -f2); \
|
31 |
+
NEW_VERSION=$(filter-out $@,$(MAKECMDGOALS)); \
|
32 |
+
echo "Updating version from $$OLD_VERSION to $$NEW_VERSION"; \
|
33 |
+
for file in $(FILES_TO_UPDATE); do \
|
34 |
+
if [ "$(shell uname)" = "Darwin" ]; then \
|
35 |
+
sed -i '' -e "s/$$OLD_VERSION/$$NEW_VERSION/g" $$file; \
|
36 |
+
else \
|
37 |
+
sed -i -e "s/$$OLD_VERSION/$$NEW_VERSION/g" $$file; \
|
38 |
+
fi \
|
39 |
+
done; \
|
40 |
+
echo "Version update complete"
|
41 |
+
|
42 |
+
%:
|
43 |
+
@:
|
sglang_repo/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SGLang for PowerRAG
|
2 |
+
<div align="center" id="sglangtop">
|
3 |
+
<img src="https://raw.githubusercontent.com/sgl-project/sglang/main/assets/logo.png" alt="logo" width="400" margin="10px"></img>
|
4 |
+
|
5 |
+
[](https://pypi.org/project/sglang)
|
6 |
+

|
7 |
+
[](https://github.com/sgl-project/sglang/tree/main/LICENSE)
|
8 |
+
[](https://github.com/sgl-project/sglang/issues)
|
9 |
+
[](https://github.com/sgl-project/sglang/issues)
|
10 |
+
[-006BFF)](https://gurubase.io/g/sglang)
|
11 |
+
|
12 |
+
</div>
|
13 |
+
|
14 |
+
--------------------------------------------------------------------------------
|
15 |
+
|
16 |
+
| [**Blog**](https://lmsys.org/blog/2024-07-25-sglang-llama3/)
|
17 |
+
| [**Documentation**](https://docs.sglang.ai/)
|
18 |
+
| [**Join Slack**](https://slack.sglang.ai/)
|
19 |
+
| [**Join Bi-Weekly Development Meeting**](https://meeting.sglang.ai/)
|
20 |
+
| [**Slides**](https://github.com/sgl-project/sgl-learning-materials?tab=readme-ov-file#slides) |
|
21 |
+
|
22 |
+
## News
|
23 |
+
- [2025/01] 🔥 SGLang provides day one support for DeepSeek V3/R1 models on NVIDIA and AMD GPUs with DeepSeek-specific optimizations. ([instructions](https://github.com/sgl-project/sglang/tree/main/benchmark/deepseek_v3), [AMD blog](https://www.amd.com/en/developer/resources/technical-articles/amd-instinct-gpus-power-deepseek-v3-revolutionizing-ai-development-with-sglang.html))
|
24 |
+
- [2024/12] 🔥 v0.4 Release: Zero-Overhead Batch Scheduler, Cache-Aware Load Balancer, Faster Structured Outputs ([blog](https://lmsys.org/blog/2024-12-04-sglang-v0-4/)).
|
25 |
+
- [2024/09] v0.3 Release: 7x Faster DeepSeek MLA, 1.5x Faster torch.compile, Multi-Image/Video LLaVA-OneVision ([blog](https://lmsys.org/blog/2024-09-04-sglang-v0-3/)).
|
26 |
+
- [2024/07] v0.2 Release: Faster Llama3 Serving with SGLang Runtime (vs. TensorRT-LLM, vLLM) ([blog](https://lmsys.org/blog/2024-07-25-sglang-llama3/)).
|
27 |
+
|
28 |
+
<details>
|
29 |
+
<summary>More</summary>
|
30 |
+
|
31 |
+
- [2024/10] The First SGLang Online Meetup ([slides](https://github.com/sgl-project/sgl-learning-materials?tab=readme-ov-file#the-first-sglang-online-meetup)).
|
32 |
+
- [2024/02] SGLang enables **3x faster JSON decoding** with compressed finite state machine ([blog](https://lmsys.org/blog/2024-02-05-compressed-fsm/)).
|
33 |
+
- [2024/01] SGLang provides up to **5x faster inference** with RadixAttention ([blog](https://lmsys.org/blog/2024-01-17-sglang/)).
|
34 |
+
- [2024/01] SGLang powers the serving of the official **LLaVA v1.6** release demo ([usage](https://github.com/haotian-liu/LLaVA?tab=readme-ov-file#demo)).
|
35 |
+
|
36 |
+
</details>
|
37 |
+
|
38 |
+
## About
|
39 |
+
SGLang is a fast serving framework for large language models and vision language models.
|
40 |
+
It makes your interaction with models faster and more controllable by co-designing the backend runtime and frontend language.
|
41 |
+
The core features include:
|
42 |
+
|
43 |
+
- **Fast Backend Runtime**: Provides efficient serving with RadixAttention for prefix caching, jump-forward constrained decoding, overhead-free CPU scheduler, continuous batching, token attention (paged attention), tensor parallelism, FlashInfer kernels, chunked prefill, and quantization (FP8/INT4/AWQ/GPTQ).
|
44 |
+
- **Flexible Frontend Language**: Offers an intuitive interface for programming LLM applications, including chained generation calls, advanced prompting, control flow, multi-modal inputs, parallelism, and external interactions.
|
45 |
+
- **Extensive Model Support**: Supports a wide range of generative models (Llama, Gemma, Mistral, QWen, DeepSeek, LLaVA, etc.), embedding models (e5-mistral, gte, mcdse) and reward models (Skywork), with easy extensibility for integrating new models.
|
46 |
+
- **Active Community**: SGLang is open-source and backed by an active community with industry adoption.
|
47 |
+
|
48 |
+
## Getting Started
|
49 |
+
- [Install SGLang](https://docs.sglang.ai/start/install.html)
|
50 |
+
- [Quick Start](https://docs.sglang.ai/start/send_request.html)
|
51 |
+
- [Backend Tutorial](https://docs.sglang.ai/backend/openai_api_completions.html)
|
52 |
+
- [Frontend Tutorial](https://docs.sglang.ai/frontend/frontend.html)
|
53 |
+
- [Contribution Guide](https://docs.sglang.ai/references/contribution_guide.html)
|
54 |
+
|
55 |
+
## Benchmark and Performance
|
56 |
+
Learn more in the release blogs: [v0.2 blog](https://lmsys.org/blog/2024-07-25-sglang-llama3/), [v0.3 blog](https://lmsys.org/blog/2024-09-04-sglang-v0-3/), [v0.4 blog](https://lmsys.org/blog/2024-12-04-sglang-v0-4/)
|
57 |
+
|
58 |
+
## Roadmap
|
59 |
+
[Development Roadmap (2024 Q4)](https://github.com/sgl-project/sglang/issues/1487)
|
60 |
+
|
61 |
+
## Adoption and Sponsorship
|
62 |
+
The project is supported by (alphabetically): AMD, Baseten, Cursor, DataCrunch, Etched, Hyperbolic, Jam & Tea Studios, LinkedIn, LMSYS.org, Meituan, NVIDIA, RunPod, Stanford, UC Berkeley, UCLA, xAI, 01.AI.
|
63 |
+
|
64 |
+
## Acknowledgment and Citation
|
65 |
+
We learned the design and reused code from the following projects: [Guidance](https://github.com/guidance-ai/guidance), [vLLM](https://github.com/vllm-project/vllm), [LightLLM](https://github.com/ModelTC/lightllm), [FlashInfer](https://github.com/flashinfer-ai/flashinfer), [Outlines](https://github.com/outlines-dev/outlines), and [LMQL](https://github.com/eth-sri/lmql). Please cite the paper, [SGLang: Efficient Execution of Structured Language Model Programs](https://arxiv.org/abs/2312.07104), if you find the project useful.
|
sglang_repo/sgl-kernel/.clang-format
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
BasedOnStyle: Google
|
2 |
+
IndentWidth: 2
|
3 |
+
ColumnLimit: 120
|
4 |
+
AllowShortFunctionsOnASingleLine: Empty
|
5 |
+
DerivePointerAlignment: false
|
6 |
+
PointerAlignment: Left
|
7 |
+
NamespaceIndentation: None
|
8 |
+
SortIncludes: true
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# Automatically created by ruff.
|
2 |
+
*
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/11012756282141579404
ADDED
Binary file (247 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/1168667244488518935
ADDED
Binary file (414 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/11753183460670711644
ADDED
Binary file (248 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/12059684765372293508
ADDED
Binary file (719 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/13028544527419100715
ADDED
Binary file (177 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/13393202205429707877
ADDED
Binary file (177 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/13428504034666489022
ADDED
Binary file (663 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/14110218206471236592
ADDED
Binary file (676 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/14345637865134746539
ADDED
Binary file (216 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/16110322557762993190
ADDED
Binary file (270 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/16643971354451988269
ADDED
Binary file (245 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/17395782632822643744
ADDED
Binary file (188 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/1746960302960405186
ADDED
Binary file (176 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/17972000605812486964
ADDED
Binary file (176 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/17993944555996302640
ADDED
Binary file (1.19 kB). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/18208546822658641532
ADDED
Binary file (297 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/18254016524548899362
ADDED
Binary file (330 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/1991119851134246922
ADDED
Binary file (320 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/2611366789337720004
ADDED
Binary file (1.66 kB). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/2867811251245659298
ADDED
Binary file (167 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/3669091814669378066
ADDED
Binary file (234 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/4080476618742787531
ADDED
Binary file (3.57 kB). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/4241095775501438852
ADDED
Binary file (180 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/4456710962036508935
ADDED
Binary file (310 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/5103480458981537539
ADDED
Binary file (261 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/5170811646951083657
ADDED
Binary file (137 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/518027365682616618
ADDED
Binary file (259 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/5638836940124587757
ADDED
Binary file (178 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/6318189254182036275
ADDED
Binary file (165 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/7647151793679522398
ADDED
Binary file (484 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/8082539455242649522
ADDED
Binary file (172 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/866242194930426554
ADDED
Binary file (235 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/9802639975025153042
ADDED
Binary file (311 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/0.9.3/9983056886186083913
ADDED
Binary file (180 Bytes). View file
|
|
sglang_repo/sgl-kernel/3rdparty/flashinfer/.ruff_cache/CACHEDIR.TAG
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|