Repository navigation
superfluid 0.2.0
superfluid runs on Windows, and a fleet's nodes do what a single server
does. Windows x86-64 has a release and an installer of its own and
serves GGUF models through llama.cpp, alone or in a fleet with macOS and
Linux machines. In a fleet, a node now serves several models, speculates
by default on BaseRT, takes the engine flags superfluid serve takes and
reports its counters to the head. A request with images no longer stalls
the requests running beside it, and llama.cpp on a Mac no longer fails
every request for a small model served at a large context window.
New
-
Windows. In PowerShell,
irm https://github.com/basecompute/superfluid/releases/latest/download/install.ps1 | iexinstalls superfluid on Windows 10 (1803 or later) and Windows 11,
x86-64, without administrator rights and with nothing to install first.
npm install -g @basecompute/superfluidandpip install superfluid-cli
install it there too. It serves GGUF models through llama.cpp:
superfluid runtime install llamacpptakes the CUDA build where an
NVIDIA driver is found, the Vulkan build where a Vulkan driver is, and
the CPU build otherwise.superfluid self updateandsuperfluid self use <version>keep releases side by side, as on macOS and Linux, and
serve --tui,superfluid topand--log-format jsonwork there. A
Windows machine can be a fleet's head or one of its nodes: a fleet of a
Windows, a Linux and a macOS machine, each serving Qwen3-0.6B, answered
96 of 96 concurrent requests with the head on each of the three in turn.
Other machines reach a Windows head only where Windows Defender Firewall
allows it, which an administrator grants once; a Windows node that joins
withsuperfluid node joinneeds no rule. BaseRT and MLX models, a
Homebrew package and Windows on ARM64 are not available yet. See
Windows. -
A node serves several models.
superfluid node join --model a --model b(andsuperfluid-nodedlikewise) serves each model on its own
engine, with their context windows sized together assuperfluid serve
sizes several models on one machine. The head runs each request on the
model it names. Give--model-nameonce per--model. A node started
with no--modelstill follows its head's one model. See
several models on one node. -
Fleet nodes speculate by default on BaseRT. Since 0.1.14
superfluid serveuses speculative decoding by default for BaseRT models, but a
fleet's nodes decoded plainly and had no flag to change it. A node now
speculates asservedoes, downloading the paired drafter unless
--offlineis given, andsuperfluid node joinandsuperfluid-noded
take--speculate;--speculate offdecodes plainly. With head and node
on one M5 Max serving Qwen3-8B, two 400-token requests decoded at 62 and
81 tokens per second by default and at 52 and 47 with--speculate off.
As onserve, greedy output is not always word for word the plain
output unless--spec-bitexactis set. -
Engine flags on nodes, sampling defaults on the head.
superfluid node joinandsuperfluid-nodedtake the engine flagsservetakes:
--kv-bits, the runtime options such as--basert-neural-engine,
--prefill-budget,--tick-decode-budget,--tick-target-ms,
--park-lossy,--park-budget-gb, the--spec-*options and the
--otlp-*options. A fleet head now accepts--repeat-penalty,
--presence-penaltyand--spec-max-temperatureand applies them as a
single server does: a request's own value still wins. Give engine flags
to the nodes; a head that is given one, such as--kv-bits, ignores it. -
QoS in a fleet. A fleet head accepts
--http-default-qos,
--no-http-qos-headerand--http-allow-batch-invariant, and a key
policy'sclassandmax_classapply there. A batch-invariant request
is sent to a node of this release, which runs it alone; when no node
serving the model can, the head answers 400unsupported_on_fleetand
names the nodes.--class-lanesis set on each node (superfluid node join --class-lanes), not on the head. See
QoS. -
A head's
/metricscounts what its nodes do. A head's scheduler
counters, such assuperfluid_spec_proposed_total,
superfluid_spec_accepted_total,superfluid_warm_prefix_tokens_total
andsuperfluid_preemptions_total, stayed at 0 because the nodes do the
work. Each node now reports its counters: the head adds them into its
own series and lists them per node assuperfluid_fleet_node_<counter>_total
with thenode,addrandmodellabels. The sums keep counting when
a node restarts or leaves. -
superfluid stop --drainasks a server to stop accepting
connections, finish what is in flight and exit, and waits until it has;
--pid <pid>names a server you started yourself. It is whatkill -USR1 <pid>does on macOS and Linux, and Ctrl+Break in the server's
console on Windows. -
--basert-npu <on|off>, on by default, is a second name for
--basert-neural-engine, for AMD Strix machines on Linux. BaseRT
0.5.3's ROCm engine shares the prefill of a prompt of 1024 tokens or
more with the machine's XDNA NPU, and--basert-npu offkeeps every
prefill on the GPU. The machine needs the NPU's driver and firmware, the
XRT runtime and an unlimited locked-memory limit; without one of them
the engine serves on the GPU alone and says which is missing. See
runtimes.
Changed
- A request with images no longer stalls the requests beside it.
superfluid encoded all of a request's images, and then prefilled its
whole prompt, before the other running requests got their next tokens.
Images are now encoded between decoding steps and prefilled one image at
a time. On an M6 Mac mini serving gemma-4-26B-A4B, the longest pause in
a streaming chat beside a request with 8 images went from 8.3 seconds to
0.7. The image request's own first token comes later when other requests
are running, there from 14.4 seconds to 16.8, and is unchanged when it
runs alone. - Faster sampling on x86-64. The sampler's passes over the vocabulary
were vectorized on Apple silicon only. On a Ryzen AI Max+ 395, sampling
a token from a 152k-token vocabulary now takes 165 µs where it took 289,
and Qwen3-4B Q4_K_M on llama.cpp's Vulkan build serves eight concurrent
sampled requests at 225 tokens per second where it served 204. A seeded
request samples the same tokens as before. - llama.cpp b12535 is the build
superfluid runtime install llamacpp
installs on macOS and Linux, and b12503 on Windows. A build now counts
as tested on the platforms it was run on: one tested elsewhere only is
refused by name and installs with--untested. b12503, b12470, b12435,
b12408, b12359, b12317, b12283, b12244, b12219, b12207, b12125, b12102,
b12068, b11981, b11951, b11925, b11890, b11889, b11642 and b11284 stay
on macOS and Linux, and b12470 on Windows. - The fleet protocol is version 4, which names the model each request
is for. Heads and nodes of 0.2.0 and of earlier releases still work
together, so a fleet can be updated one machine at a time: an older head
sees a node's first model only, an older node serves its one model as
before, reports no counters and is sent no batch-invariant request.
Fixed
- llama.cpp on a Mac failed every request for a small model at a large
context window. With llama.cpp builds from b12059 on, a context that
shares one cache between its lanes reserves working memory on Metal that
grows with the cache, which superfluid did not count. On a 48 GB Mac,
Qwen3-0.6B at its automatic 40,960-token window was given more memory
than the GPU has and every request failed. The cache is now sized by
what its whole context takes on the device, measured when the model
opens (about 70 ms): 95k tokens there, where 208k was attempted. A fixed
--max-context 16384or--max-batch 1was not affected. - No token from a decoding step the GPU refused. When Metal ran out of
memory during a llama.cpp step, a token sampled from that step's
leftover data could be streamed to the client before the request
failed. Such a step now fails with nothing sent, and the server's log
gives llama.cpp's reason. - Requests with two or more images on BaseRT. With released BaseRT
engines, through 0.5.2, a request whose images sit close together in the
prompt could fail with a 500 (scheduler tick failed); on BaseRT 0.5.0
with gemma-4-E2B, requests with 2, 4 and 8 images all did. They are
served now. - A refusal reaches a client that is still uploading. A request
refused for its key or its rate limit (401, 403 or 429) while its body
was still arriving could see the connection reset instead of the answer. - Images of a cancelled request are released. A request with images
that was cancelled before it started kept its encoded images in memory. - A server recovers from an engine fault. When the engine reported a
fatal fault in a step (a GPU command that failed, or a job on the Neural
Engine or the NPU), that request failed and so did every request after
it, each with a 500 (scheduler tick failed), until the server was
restarted; the process stayed up and/v1/modelsstill answered. The
server now starts a fresh engine worker and serves the next request.
After three such restarts in a row it gives up and says so, as before. - npm: Ctrl+C at start-up. With superfluid installed from npm, a
signal that arrived just as the launcher started the program could end
the launcher and leave the program running.
Known issues
- On Windows, llama.cpp's CUDA builds have not been run on a machine with
an NVIDIA GPU, and its ROCm build is installed only by name
(superfluid runtime install llamacpp --backend rocm). - Image requests on Qwen3.6-35B-A3B still start only once the requests
that are running have finished. - The NPU split on AMD Strix was served one request at a time only, with
gemma-4-E2B on a Strix Point machine; concurrent requests through it
were not run. An NPU that fails persistently fails each long request and
costs a model reload each time:--basert-npu offserves on the GPU
alone.
The engine ABI is unchanged: superfluid 0.2.0 serves BaseRT 0.5.3,
released alongside, and the 0.5 and 0.4 releases as 0.1.15 does. BaseRT
0.5.3 prefills the images of a prompt in one pass, and says so in its
capability record: with it, a request with several images that runs alone
prefills them together, and beside other requests still one image at a
time, so the pauses above hold. superfluid runtime install basert
installs it.
See installation
for every way to install superfluid, and
updating
for how each is updated.