superfluid-cli 0.2.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- superfluid_cli/__init__.py +80 -0
- superfluid_cli/__main__.py +5 -0
- superfluid_cli/release/LICENSE +202 -0
- superfluid_cli/release/NOTICE +30 -0
- superfluid_cli/release/README.md +230 -0
- superfluid_cli/release/bin/superfluid-noded.exe +0 -0
- superfluid_cli/release/bin/superfluid-workerd.exe +0 -0
- superfluid_cli/release/bin/superfluid.exe +0 -0
- superfluid_cli/release/compat.json +11 -0
- superfluid_cli/release/installed-by +1 -0
- superfluid_cli/release/libexec/superfluid/superfluid-shim.exe +0 -0
- superfluid_cli/release/libexec/superfluid/superfluid-worker-llamacpp.exe +0 -0
- superfluid_cli/release/libexec/superfluid/superfluid_tokenizer_llamacpp.dll +0 -0
- superfluid_cli/release/libexec/superfluid/vcruntime/README.txt +4 -0
- superfluid_cli/release/libexec/superfluid/vcruntime/msvcp140.dll +0 -0
- superfluid_cli/release/libexec/superfluid/vcruntime/vcruntime140.dll +0 -0
- superfluid_cli/release/libexec/superfluid/vcruntime/vcruntime140_1.dll +0 -0
- superfluid_cli-0.2.0.dist-info/METADATA +45 -0
- superfluid_cli-0.2.0.dist-info/RECORD +23 -0
- superfluid_cli-0.2.0.dist-info/WHEEL +4 -0
- superfluid_cli-0.2.0.dist-info/entry_points.txt +4 -0
- superfluid_cli-0.2.0.dist-info/licenses/LICENSE +202 -0
- superfluid_cli-0.2.0.dist-info/licenses/NOTICE +30 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""The commands `pip install superfluid-cli` puts on PATH.
|
|
2
|
+
|
|
3
|
+
packaging/python/build_wheel.py puts the release tree beside this file, in
|
|
4
|
+
release/. Each command replaces this Python process with the matching binary
|
|
5
|
+
from it (execv, not a child), so signals, the exit status and the terminal
|
|
6
|
+
reach superfluid directly, and superfluid, seeing its real path, finds its
|
|
7
|
+
runtime workers in release/libexec/superfluid and the installed-by file that
|
|
8
|
+
tells `superfluid self update` to leave this copy to pip.
|
|
9
|
+
|
|
10
|
+
Windows has no exec: os.execv there starts the program and ends this process
|
|
11
|
+
at once, so the shell would prompt again while superfluid still ran, and
|
|
12
|
+
would never see its status. There the command runs the program as a child,
|
|
13
|
+
waits for it and exits with its status.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
import os
|
|
17
|
+
import sys
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
__version__ = "0.2.0"
|
|
21
|
+
RELEASE = Path(__file__).resolve().parent / "release"
|
|
22
|
+
WINDOWS = os.name == "nt"
|
|
23
|
+
# The first bytes of a 64-bit Mach-O file and of an ELF file.
|
|
24
|
+
_BINARY = (b"\xcf\xfa\xed\xfe", b"\x7fELF")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _restore_modes() -> None:
|
|
28
|
+
"""Mark the release's binaries executable again, found by header, for an installer that dropped the bits."""
|
|
29
|
+
for d in (RELEASE / "bin", RELEASE / "libexec" / "superfluid"):
|
|
30
|
+
for f in d.iterdir():
|
|
31
|
+
with open(f, "rb") as fh:
|
|
32
|
+
if fh.read(4) in _BINARY:
|
|
33
|
+
f.chmod(0o755)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _wait_for(name: str, exe: Path) -> None:
|
|
37
|
+
"""Run `exe` with this command's arguments, console and streams, and exit with its status."""
|
|
38
|
+
import signal
|
|
39
|
+
import subprocess
|
|
40
|
+
|
|
41
|
+
# Ctrl+C and Ctrl+Break reach every program on the console: superfluid
|
|
42
|
+
# answers them (a server drains), and this only waits for it. A handler
|
|
43
|
+
# that does nothing, not SIG_IGN: what is ignored here a child may inherit.
|
|
44
|
+
for sig in ("SIGINT", "SIGBREAK"):
|
|
45
|
+
if hasattr(signal, sig):
|
|
46
|
+
signal.signal(getattr(signal, sig), lambda *_: None)
|
|
47
|
+
try:
|
|
48
|
+
status = subprocess.call([str(exe), *sys.argv[1:]])
|
|
49
|
+
except OSError as e:
|
|
50
|
+
sys.exit(f"{name}: could not start {exe}: {e}")
|
|
51
|
+
# A Windows status is 32 bits without a sign (0xC000013A when Ctrl+C ended
|
|
52
|
+
# the program) and Python exits with a C int: the same bits, as one.
|
|
53
|
+
sys.exit(status - (1 << 32) if status >= 1 << 31 else status)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _exec(name: str) -> None:
|
|
57
|
+
exe = RELEASE / "bin" / (name + ".exe" if WINDOWS else name)
|
|
58
|
+
if not WINDOWS and exe.is_file() and not os.access(exe, os.X_OK):
|
|
59
|
+
try:
|
|
60
|
+
_restore_modes()
|
|
61
|
+
except OSError:
|
|
62
|
+
pass
|
|
63
|
+
# Windows has no executable bit: what is there runs.
|
|
64
|
+
if not (exe.is_file() if WINDOWS else os.access(exe, os.X_OK)):
|
|
65
|
+
sys.exit(f"{name}: {exe} is missing or not executable; `pip install --force-reinstall superfluid-cli` puts it back")
|
|
66
|
+
if WINDOWS:
|
|
67
|
+
_wait_for(name, exe)
|
|
68
|
+
os.execv(exe, [str(exe), *sys.argv[1:]])
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def main() -> None:
|
|
72
|
+
_exec("superfluid")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def workerd() -> None:
|
|
76
|
+
_exec("superfluid-workerd")
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def noded() -> None:
|
|
80
|
+
_exec("superfluid-noded")
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Superfluid
|
|
2
|
+
Copyright 2026 BaseCompute and the Superfluid authors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by third parties. Each component
|
|
5
|
+
below keeps its own license.
|
|
6
|
+
|
|
7
|
+
-------------------------------------------------------------------------------
|
|
8
|
+
baseRT C API headers and raw Rust bindings (third_party/baseRT)
|
|
9
|
+
- License: Apache-2.0
|
|
10
|
+
- Upstream: https://github.com/basecompute/baseRT
|
|
11
|
+
- Unmodified. The baseRT engine library these declare is not part of this
|
|
12
|
+
repository and is distributed under its own license.
|
|
13
|
+
|
|
14
|
+
-------------------------------------------------------------------------------
|
|
15
|
+
Gerstner Programm webfonts (docs/assets/fonts)
|
|
16
|
+
- Licensed from Fosh for the superfluid documentation site only; not
|
|
17
|
+
covered by this repository's license and not for reuse.
|
|
18
|
+
|
|
19
|
+
-------------------------------------------------------------------------------
|
|
20
|
+
Chat templates (tests/fixtures/chat_templates)
|
|
21
|
+
- Test fixtures: the Jinja chat templates published with the GLM, gpt-oss,
|
|
22
|
+
Nemotron and Qwen model families, copied from each model's repository
|
|
23
|
+
and governed by that model's license.
|
|
24
|
+
|
|
25
|
+
-------------------------------------------------------------------------------
|
|
26
|
+
Audio sample (tests/fixtures/audio/jfk.wav)
|
|
27
|
+
- An excerpt of John F. Kennedy's 1961 inaugural address; public domain.
|
|
28
|
+
|
|
29
|
+
Rust dependencies are fetched by cargo and listed, with versions, in
|
|
30
|
+
Cargo.lock; each is under the license its crate declares.
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logos/SF_dark.svg">
|
|
4
|
+
<img alt="super:fluid" src="docs/assets/logos/SF_light.svg" width="60%">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<b>Local AI server for distributed inference.</b>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
| <a href="https://docs.basecompute.co/latest/"><b>Documentation</b></a> | <a href="docs/getting_started/quickstart.md"><b>Quickstart</b></a> | <a href="docs/integrations/index.md"><b>Coding agents</b></a> | <a href="docs/performance/benchmarks.md"><b>Benchmarks</b></a> | <a href="https://discord.gg/kaYmAGckCq"><b>Discord</b></a> |
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
Superfluid is an open-source server that runs LLMs on your own hardware. It serves a model from one machine, or from several machines that act as one server.
|
|
19
|
+
|
|
20
|
+
A cluster of twelve Mac Studio M3 Ultras sustains over 10,000 tok/s of aggregate throughput. See [Reference deployments](#reference-deployments).
|
|
21
|
+
|
|
22
|
+
## What you can do with it
|
|
23
|
+
|
|
24
|
+
- **Build a private AI cluster.** Connect Macs, workstations and other local devices. Together they act as one inference server.
|
|
25
|
+
- **Use one endpoint for the whole cluster.** Superfluid exposes OpenAI, Anthropic and Ollama compatible APIs. Existing clients and coding agents work unchanged.
|
|
26
|
+
- **Run different runtimes.** BaseRT, llama.cpp and MLX are supported. Each machine uses the runtime that suits its hardware.
|
|
27
|
+
|
|
28
|
+
## Quickstart
|
|
29
|
+
|
|
30
|
+
### One machine
|
|
31
|
+
|
|
32
|
+
Install Superfluid and serve a model:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
curl -fsSL https://basecompute.co/sf/install.sh | sh
|
|
36
|
+
superfluid serve basecompute/Qwen3.8-27B
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
On Windows, in PowerShell (GGUF models through llama.cpp; see [Installation](docs/getting_started/installation.md#windows)):
|
|
40
|
+
|
|
41
|
+
```powershell
|
|
42
|
+
irm https://github.com/basecompute/superfluid/releases/latest/download/install.ps1 | iex
|
|
43
|
+
superfluid serve unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The first run installs the BaseRT runtime, downloads the model and serves it at `http://127.0.0.1:8453`. BaseRT runs on Apple silicon, on Linux arm64 with an NVIDIA GPU and on Linux x86-64 with an AMD Strix Halo or Strix Point GPU.
|
|
47
|
+
|
|
48
|
+
You can also use llama.cpp or MLX. The model id picks the runtime: a GGUF repo such as `unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M` runs on llama.cpp, and an `mlx-community/...` repo runs on MLX (Apple silicon only).
|
|
49
|
+
|
|
50
|
+
Send a request:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
curl http://127.0.0.1:8453/v1/chat/completions -H 'content-type: application/json' \
|
|
54
|
+
-d '{"model":"basecompute/Qwen3.8-27B","messages":[{"role":"user","content":"hello"}]}'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Point a coding agent at the server. `launch` starts the server if none is running:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
superfluid launch claude --model basecompute/Qwen3.8-27B
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
The same works for Pi:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
superfluid launch pi --model basecompute/Qwen3.8-27B
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Superfluid also supports Codex, OpenCode, Hermes Agent, Cline, OpenClaw and the Ollama CLI out of the box.
|
|
70
|
+
|
|
71
|
+
### A cluster
|
|
72
|
+
|
|
73
|
+
One machine is the head. It owns the endpoint and routes requests. The other machines join it as nodes and run the model.
|
|
74
|
+
|
|
75
|
+
On the head, create a token and start the server with a listener for nodes:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
superfluid fleet token
|
|
79
|
+
superfluid serve basecompute/Qwen3.8-27B --http 0.0.0.0:8453 --fleet-listen 0.0.0.0:8454
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
On each node, join with the token that the head printed:
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
superfluid node join --model basecompute/Qwen3.8-27B --token <the token>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
A node finds the head on the local network. To join a head on another network, pass its address: `superfluid node join <host:port> --model ...`. The head starts serving when the first node has joined. Clients use the head's endpoint on port 8453.
|
|
89
|
+
|
|
90
|
+
These commands bind the head to all network interfaces. Read [Security](docs/deployment/security.md) first.
|
|
91
|
+
|
|
92
|
+
<p align="center">
|
|
93
|
+
<img alt="The monitor superfluid serve shows in the terminal, while eight agents prefill on baseRT: lanes fill, prefill peaks near 1,000 tokens per second, a chat preempts a lane, decode starts and the KV pool grows" src="docs/assets/demo/tui-basert.gif" width="100%">
|
|
94
|
+
</p>
|
|
95
|
+
<p align="center"><sub>The terminal monitor of <code>superfluid serve</code> while eight agents read 7.5k-token documents on Qwen3.8-27B through BaseRT (Apple M5 Pro), at six times real time.</sub></p>
|
|
96
|
+
|
|
97
|
+
## What the server does
|
|
98
|
+
|
|
99
|
+
**On one machine**
|
|
100
|
+
|
|
101
|
+
- **Chat stays fast while agents run.** Interactive requests preempt agent and batch work instead of waiting behind it.
|
|
102
|
+
- **Sessions survive crashes.** Every token is written to a durable log before it reaches the client. A session continues after a worker crash or a server restart.
|
|
103
|
+
- **A shared prompt is computed once.** Requests that share a long system prompt reuse one prefill.
|
|
104
|
+
- **A runtime fault does not stop the server.** Each model runs in its own worker process. If a worker dies, it is restarted and serving continues.
|
|
105
|
+
|
|
106
|
+
**On a fleet of devices**
|
|
107
|
+
|
|
108
|
+
- **Mixed hardware.** Apple, AMD and NVIDIA machines serve the same model behind one endpoint.
|
|
109
|
+
- **Work follows speed.** Each machine reports its measured speed and load. Faster machines receive more sessions, with no per-machine configuration.
|
|
110
|
+
- **Machines can join and leave under load.** A new machine takes requests immediately. If a machine fails mid-response, another machine continues the stream from the tokens already delivered.
|
|
111
|
+
- **Encrypted links.** Only machines that hold the head's token can join. Traffic between machines is encrypted and authenticated.
|
|
112
|
+
|
|
113
|
+
## Reference deployments
|
|
114
|
+
|
|
115
|
+
### 1. Twelve Mac Studio M3 Ultras
|
|
116
|
+
|
|
117
|
+
Twelve Mac Studio M3 Ultras (512 GB each) serving Qwen3.6-35B-A3B on BaseRT. One of the twelve also acts as the head.
|
|
118
|
+
|
|
119
|
+
| Load | Throughput | Median first token |
|
|
120
|
+
|---|---|---|
|
|
121
|
+
| 384 concurrent streams, 2048-token prompts | **10,656 tok/s** aggregate (9,249 prompt and 1,407 output) | |
|
|
122
|
+
| 192 concurrent streams, 512-token prompts | 3,072 output tok/s (20 tok/s per stream) | 2.0 s |
|
|
123
|
+
|
|
124
|
+
Across six load points of 12 minutes each, the cluster served 38,563 requests without a failure.
|
|
125
|
+
|
|
126
|
+
### 2. Mixed hardware
|
|
127
|
+
|
|
128
|
+
Six machines of different types behind one endpoint, serving 64 simulated office users for one hour. Machines join one at a time, every 6 minutes. At 42 minutes one machine is killed mid-response and restarted 8 minutes later.
|
|
129
|
+
|
|
130
|
+
| | Run A | Run B |
|
|
131
|
+
|---|---|---|
|
|
132
|
+
| Machines | Apple M6, M4 Pro, M1 Max, AMD Ryzen AI Max 395, two NVIDIA GB10 | Apple M6, M4 Pro, M1 Max, M5 Pro, M3 Ultra, NVIDIA GB10 |
|
|
133
|
+
| Model and runtime | Qwen3-4B on llama.cpp | Qwen3.6-35B-A3B on BaseRT (Metal and CUDA) |
|
|
134
|
+
| Output tok/s, 1 machine to 6 | 112 to 534 | 104 to 476 |
|
|
135
|
+
| Median first token, 1 machine to 6 | 98.5 s to 11.7 s | 66.3 s to 6.9 s |
|
|
136
|
+
| Requests answered | 5,041 of 5,041 | 7,151 of 7,151 |
|
|
137
|
+
|
|
138
|
+
Requests in flight on the killed machine (61 in Run A, 52 in Run B) all completed. The head moved each stream to another machine, which continued from the tokens already delivered.
|
|
139
|
+
|
|
140
|
+
Faster machines served more without any per-machine configuration. In Run A the GB10s and the Ryzen AI Max each served 114 to 122 tok/s, against 71 to 73 tok/s for the M4 Pro and the M6.
|
|
141
|
+
|
|
142
|
+
## Benchmarks
|
|
143
|
+
|
|
144
|
+
**One machine.** Qwen3.8-27B at 4 bits on an Apple M5 Pro (64 GB), each Superfluid runtime against the servers for the same model format.
|
|
145
|
+
|
|
146
|
+
| | Superfluid (llama.cpp) | llama-server | Ollama | Superfluid (MLX) | mlx_lm.server |
|
|
147
|
+
|---|---|---|---|---|---|
|
|
148
|
+
| First token of a chat sent behind 8 busy agents | **1.47 s** | 291 s | 380 s | **2.01 s** | 612 s |
|
|
149
|
+
| Time to serve 32 requests that share one 4k-token prompt | **56 s** | 171 s | 88 s | **418 s** | 907 s |
|
|
150
|
+
| Serving again after the inference worker is killed | **1.75 s** | does not recover | 1.83 s | **1.85 s** | does not recover |
|
|
151
|
+
|
|
152
|
+
The serving layer adds no throughput cost. On Qwen3-4B (Apple M1 Max), Superfluid on llama.cpp matches llama-server at one request (76.7 against 76.8 tok/s) and is 4% ahead at eight (150.8 against 145.1 tok/s).
|
|
153
|
+
|
|
154
|
+
Method and full results: [Benchmarks](docs/performance/benchmarks.md).
|
|
155
|
+
|
|
156
|
+
## How it works
|
|
157
|
+
|
|
158
|
+
<p align="center">
|
|
159
|
+
<picture>
|
|
160
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/diagrams/overview-dark.png">
|
|
161
|
+
<img alt="Coding agents and any OpenAI, Anthropic or Ollama client reach one superfluid server, which drives baseRT, llama.cpp and MLX workers on this machine and on other machines that join it" src="docs/assets/diagrams/overview.png" width="100%">
|
|
162
|
+
</picture>
|
|
163
|
+
</p>
|
|
164
|
+
|
|
165
|
+
Superfluid is written in Rust and runs as three kinds of process:
|
|
166
|
+
|
|
167
|
+
| Process | Role |
|
|
168
|
+
|---|---|
|
|
169
|
+
| Daemon | Owns the APIs, chat templates, tokenizers, scheduler and session log. In a cluster it is the head. |
|
|
170
|
+
| Worker | One per loaded model. Owns the weights, KV cache and sampling. |
|
|
171
|
+
| Node | Runs on another machine and serves the same model for the head. |
|
|
172
|
+
|
|
173
|
+
**The cluster replicates the model. It does not split it.** Every node holds a full copy of the model. The head places each session on one node. Requests and tokens cross the network; weights and KV caches do not. A slow machine receives less work, and a machine that leaves costs only its share of throughput.
|
|
174
|
+
|
|
175
|
+
**The model file picks the runtime.** Each runtime is installed on first use from its own project's releases. Nothing of llama.cpp, MLX or BaseRT is vendored or linked.
|
|
176
|
+
|
|
177
|
+
| Runtime | Serves | Comes from |
|
|
178
|
+
|---|---|---|
|
|
179
|
+
| `llamacpp` | GGUF files | llama.cpp's release builds |
|
|
180
|
+
| `mlx` | MLX model directories (Apple silicon) | a private CPython with `mlx-lm` |
|
|
181
|
+
| `basert` | `.base` bundles | [BaseRT](https://github.com/basecompute/baseRT)'s engine library |
|
|
182
|
+
|
|
183
|
+
Adding a runtime is one adapter crate. See [Writing a runtime adapter](docs/design/adapters.md).
|
|
184
|
+
|
|
185
|
+
## Security
|
|
186
|
+
|
|
187
|
+
The server binds to loopback and asks for no API key unless configured to. It does not speak TLS, so use it on loopback, on a trusted network or behind a reverse proxy. Read [Security](docs/deployment/security.md) before putting it on a network.
|
|
188
|
+
|
|
189
|
+
## Limitations
|
|
190
|
+
|
|
191
|
+
- Every node needs enough memory for a full copy of the model.
|
|
192
|
+
- A session that moves to another node recomputes its prompt. Nodes do not exchange KV caches.
|
|
193
|
+
- Nodes may run different quantisations of the model. In that case output depends on the node that serves the session.
|
|
194
|
+
- Images and audio are served only by BaseRT. On llama.cpp and MLX, speculative decoding is prompt lookup only.
|
|
195
|
+
|
|
196
|
+
> [!NOTE]
|
|
197
|
+
> Superfluid is pre-1.0. Flags, protocols and on-disk formats may change between releases.
|
|
198
|
+
|
|
199
|
+
## Documentation
|
|
200
|
+
|
|
201
|
+
Full docs are at [docs.basecompute.co](https://docs.basecompute.co/latest/).
|
|
202
|
+
|
|
203
|
+
- [Quickstart](docs/getting_started/quickstart.md)
|
|
204
|
+
- [OpenAI-compatible server](docs/serving/openai_compatible_server.md)
|
|
205
|
+
- [Coding agents](docs/integrations/index.md)
|
|
206
|
+
- [Distributed serving](docs/serving/distributed_serving.md)
|
|
207
|
+
- [Command-line reference](docs/serving/cli.md)
|
|
208
|
+
|
|
209
|
+
## Community
|
|
210
|
+
|
|
211
|
+
Ask questions and share projects on [Discord](https://discord.gg/kaYmAGckCq). Report bugs and request features on the [issue tracker](https://github.com/basecompute/superfluid/issues). Superfluid is built by [Base Compute](https://basecompute.co).
|
|
212
|
+
|
|
213
|
+
## Contributing
|
|
214
|
+
|
|
215
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [Development](docs/contributing/development.md). Report security issues through [SECURITY.md](SECURITY.md), not the issue tracker.
|
|
216
|
+
|
|
217
|
+
## Citation
|
|
218
|
+
|
|
219
|
+
```bibtex
|
|
220
|
+
@misc{superfluid2026,
|
|
221
|
+
title = {Superfluid: Local AI Server for Distributed LLM Inference},
|
|
222
|
+
author = {Rathnayaka, Prabod and Manchanayake, Isura and Kogul, Srikandabala and Siu, Steve and Waschkowski, Fabian and Wesemann, Lukas},
|
|
223
|
+
year = {2026},
|
|
224
|
+
note = {Technical report, Base Compute}
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## License
|
|
229
|
+
|
|
230
|
+
Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). The BaseRT engine is a separate product under its own license. This repository contains only its openly licensed headers and loads the engine if it is installed.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pip: pip install --upgrade superfluid-cli
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
The Microsoft Visual C++ runtime libraries, from Visual Studio's redistributable
|
|
2
|
+
folder (14.51.36231). They are Microsoft's, redistributed under the Visual Studio
|
|
3
|
+
license terms. superfluid puts them beside llama.cpp, which is linked against
|
|
4
|
+
them, on a machine that has none installed.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: superfluid-cli
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Open-source server that runs LLMs on your own hardware, from one machine or several that act as one server
|
|
5
|
+
Author: Base Compute
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
License-File: NOTICE
|
|
9
|
+
Keywords: llm,inference,serving,llama-cpp,mlx
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: MacOS
|
|
14
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Rust
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
|
+
Project-URL: Homepage, https://superfluid.sh
|
|
19
|
+
Project-URL: Documentation, https://superfluid.sh
|
|
20
|
+
Project-URL: Source, https://github.com/basecompute/superfluid
|
|
21
|
+
Project-URL: Changelog, https://github.com/basecompute/superfluid/blob/main/CHANGELOG.md
|
|
22
|
+
Project-URL: Issues, https://github.com/basecompute/superfluid/issues
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# superfluid
|
|
27
|
+
|
|
28
|
+
Superfluid is an open-source server that runs LLMs on your own hardware. It serves a model from one machine, or from several machines that act as one server. It supports llama.cpp, MLX, and BaseRT, and exposes OpenAI-, Anthropic-, and Ollama-compatible API endpoints.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
pip install superfluid-cli # or: pipx install superfluid-cli, uv tool install superfluid-cli
|
|
32
|
+
superfluid serve basecompute/Qwen3.8-27B
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This package is the prebuilt superfluid release for macOS on Apple silicon (macOS 15 or later), Linux on x86-64 or arm64 (glibc 2.28 or later) and Windows on x86-64 (Windows 10 1803 or later, which serves GGUF models through llama.cpp), with the `superfluid` command. It has no Python API and needs nothing from your Python beyond running the command. The runtimes themselves (llama.cpp, MLX, baseRT) are installed by superfluid on first use, under `~/.superfluid`, never into your Python environment.
|
|
36
|
+
|
|
37
|
+
Update it with pip (`pip install --upgrade superfluid-cli`); `superfluid self update` leaves a pip install to pip and says so.
|
|
38
|
+
|
|
39
|
+
Documentation: <https://superfluid.sh> · Source: <https://github.com/basecompute/superfluid>
|
|
40
|
+
|
|
41
|
+
The package is named `superfluid-cli` because `superfluid` on PyPI is an unrelated project.
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
Apache-2.0; see LICENSE and NOTICE in the package. The baseRT engine superfluid can install is a separate product under its own license.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
superfluid_cli/__init__.py,sha256=sJed_A1vSNwjrDOAZERGXeDpfB3iGxC4wUeDr8P6xkE,3049
|
|
2
|
+
superfluid_cli/__main__.py,sha256=EMupWehU8nXK9fYuk_CeSBzTfpLvQDS8znr40_x_duI,93
|
|
3
|
+
superfluid_cli/release/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
4
|
+
superfluid_cli/release/NOTICE,sha256=i24s5rap1Y_X485uywnv6YJ0OCgyqIo0_A0xQ_JVl5E,1431
|
|
5
|
+
superfluid_cli/release/README.md,sha256=nH_krofremI-BuM-JBOtUUlyQRg8zDMd08_3o2Gcr-E,11683
|
|
6
|
+
superfluid_cli/release/bin/superfluid-noded.exe,sha256=-Mv-thzllNXSwenCXwwajJCxef1Xh9Kme81BMmFcAAs,11627008
|
|
7
|
+
superfluid_cli/release/bin/superfluid-workerd.exe,sha256=j-7PpcIVfWWB92869fnAeY-ZUFDucNP6-iG9bYnD4bI,5447680
|
|
8
|
+
superfluid_cli/release/bin/superfluid.exe,sha256=Emr86su4-VVMIHiowwqskUuu-E5EXcLHjNBA9YqUqn4,25262592
|
|
9
|
+
superfluid_cli/release/compat.json,sha256=U6AAVLI3eaJyhyfgPQ2NS5jBxUu5azMwID3tk-3UidY,134
|
|
10
|
+
superfluid_cli/release/installed-by,sha256=qcgY1GDxucF8clHnoo5QcvwnBwbusmuJaE61wPz2hqs,42
|
|
11
|
+
superfluid_cli/release/libexec/superfluid/superfluid-shim.exe,sha256=dtryaE5GI_CODLo-hXKPZ2nxm9IgGpPAsEjauGK7uic,344064
|
|
12
|
+
superfluid_cli/release/libexec/superfluid/superfluid-worker-llamacpp.exe,sha256=c38WidPTgklxxuhnahoEO-gelbdY3eCgSYn-fYrHz5g,4787712
|
|
13
|
+
superfluid_cli/release/libexec/superfluid/superfluid_tokenizer_llamacpp.dll,sha256=TG7IUHhgKe6bxrtHeF5YyvbaFQySZ0I-wQyrxS_VkUs,3485696
|
|
14
|
+
superfluid_cli/release/libexec/superfluid/vcruntime/README.txt,sha256=c3v7WiSthBBKb1jmeX005XhmDqTJLBm3qpV7RLPZ0QE,285
|
|
15
|
+
superfluid_cli/release/libexec/superfluid/vcruntime/msvcp140.dll,sha256=fCZhTh1zOJLC3qx-JFzhFVBLHYBZLdCgGwjj5aVfico,643512
|
|
16
|
+
superfluid_cli/release/libexec/superfluid/vcruntime/vcruntime140.dll,sha256=0fQiXfLNh32_Ew1WaKAh3OP5QRhFX_XslSBhwwr8nOc,178616
|
|
17
|
+
superfluid_cli/release/libexec/superfluid/vcruntime/vcruntime140_1.dll,sha256=pxRsCPif5bBFQatQfNtZ_3tEU01Lo8ZopCbGRQoDQ04,50112
|
|
18
|
+
superfluid_cli-0.2.0.dist-info/METADATA,sha256=RLpOc4snxHcthOPmd9s9cv1UHAaFVK39VhJ2jDnw238,2475
|
|
19
|
+
superfluid_cli-0.2.0.dist-info/WHEEL,sha256=HpzC5x0eoh-cBLMDzCBnHf_CmCdE07SbnXETci2TIJw,120
|
|
20
|
+
superfluid_cli-0.2.0.dist-info/entry_points.txt,sha256=khPlrtrM3IaO2ckdmIyr747SUD-kfhPULgPX9BRELBw,135
|
|
21
|
+
superfluid_cli-0.2.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
22
|
+
superfluid_cli-0.2.0.dist-info/licenses/NOTICE,sha256=i24s5rap1Y_X485uywnv6YJ0OCgyqIo0_A0xQ_JVl5E,1431
|
|
23
|
+
superfluid_cli-0.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Superfluid
|
|
2
|
+
Copyright 2026 BaseCompute and the Superfluid authors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by third parties. Each component
|
|
5
|
+
below keeps its own license.
|
|
6
|
+
|
|
7
|
+
-------------------------------------------------------------------------------
|
|
8
|
+
baseRT C API headers and raw Rust bindings (third_party/baseRT)
|
|
9
|
+
- License: Apache-2.0
|
|
10
|
+
- Upstream: https://github.com/basecompute/baseRT
|
|
11
|
+
- Unmodified. The baseRT engine library these declare is not part of this
|
|
12
|
+
repository and is distributed under its own license.
|
|
13
|
+
|
|
14
|
+
-------------------------------------------------------------------------------
|
|
15
|
+
Gerstner Programm webfonts (docs/assets/fonts)
|
|
16
|
+
- Licensed from Fosh for the superfluid documentation site only; not
|
|
17
|
+
covered by this repository's license and not for reuse.
|
|
18
|
+
|
|
19
|
+
-------------------------------------------------------------------------------
|
|
20
|
+
Chat templates (tests/fixtures/chat_templates)
|
|
21
|
+
- Test fixtures: the Jinja chat templates published with the GLM, gpt-oss,
|
|
22
|
+
Nemotron and Qwen model families, copied from each model's repository
|
|
23
|
+
and governed by that model's license.
|
|
24
|
+
|
|
25
|
+
-------------------------------------------------------------------------------
|
|
26
|
+
Audio sample (tests/fixtures/audio/jfk.wav)
|
|
27
|
+
- An excerpt of John F. Kennedy's 1961 inaugural address; public domain.
|
|
28
|
+
|
|
29
|
+
Rust dependencies are fetched by cargo and listed, with versions, in
|
|
30
|
+
Cargo.lock; each is under the license its crate declares.
|