Chiosa
Systems & Infrastructure

Superfluid keeps local chats responsive and spreads work across machines

Superfluid: Local AI Server for Distributed LLM Inference · arXiv:2611.17753

3 min
Updated
Run A: six heterogeneous machines as one endpoint, Qwen3-4B on llama.cpp, 64 simulated users for one hour. Stacked areas give the output tokens per second each machine served (30 s rolling rate)…
Run A: six heterogeneous machines as one endpoint, Qwen3-4B on llama.cpp, 64 simulated users for one hour. Stacked areas give the output tokens per second each machine served (30 s rolling rate); the line gives the median time to first token per minute (right axis, log scale).…Figure 2 · Superfluid: Local AI Server for Distributed LLM Inference · Prabod Rathnayaka et al. · CC BY 4.0

In plain words

Superfluid is a server for running language models on your own machines. On one machine, it lets a user’s chat move ahead of work from agents. Across several machines, it sends whole conversations to whichever machine can handle them, while presenting one endpoint.

In a test with eight agents busy on one device, chats received their first piece of generated text much sooner with Superfluid than with the paired servers. Fleet tests also showed more output and shorter waits as machines joined, under the tested simulated workloads.

The research

A local assistant can feel stalled even while the machine is busy with useful agent work, and spare machines may not help if each server is isolated. These results make it more plausible that interactive replies and agent work can share local hardware, while a small fleet can appear behind one endpoint. The tests show this for specific workloads and machines.

Superfluid separates request scheduling from model runtimes, prioritizing interactive chats on one device and routing whole sessions across machines through one endpoint.

On an Apple M5 Pro, researchers compared Superfluid with each runtime’s own server while eight agents processed prompts. A chat’s first token arrived in 1.47 seconds with llama. cpp and 2.01 with MLX, versus 291, 380 and 612 seconds on the paired servers.

In two simulated office workloads, adding machines raised output rates and lowered median first-token waits. That supports fleet scaling in those setups.

The fleet tests used simulated workloads and fixed configurations. Each node needed a full model copy, and a moved session had to recompute its prompt; the paper tested one runtime per fleet and did not compare placement methods directly.

What the evidence shows

  • One server, two settings

    Superfluid is an open-source server for running large language models locally. It addresses two pressures: interactive chats can wait behind agents on one machine, while capable machines may sit idle because their servers are separate.

    Its central contribution is one design for both settings: it manages request scheduling apart from model runtimes, then can route whole sessions among machines through one endpoint.

  • Chats moved ahead of agents

    The local comparison asked whether an interactive chat could get a response while eight agents were processing prompts. On an Apple M5 Pro, the chat’s first token arrived in 1.47 seconds with Superfluid using llama. cpp, compared with 291 seconds on llama-server for the same model format.

    This large difference supports the claim that the tested scheduler kept the chat responsive under that load.

  • More machines, more output

    In the first simulated office workload, adding machines raised output from 112 tokens per second with one machine to 534 with six. The measure counts output served per second across the fleet.

    Because users waited for replies before making more requests, the faster fleet also received more work; this comparison shows scaling in that workload, not performance at a fixed request rate.

  • The pattern held in another run

    A second office run used a different model and runtime. Its output rate rose from 104 tokens per second with one machine to 476 with six, again during a simulated workload where users waited for each reply.

    Seeing the increase in both configurations supports the same limited conclusion: the tested fleet could use added machines to serve more work.

  • In-flight requests continued

    When the Run A M4 Pro node was killed, all 61 requests then in flight completed after the head moved their streams to another machine. The receiving node continued from tokens already delivered.

    This is evidence of recovery in that failure case, alongside the separate scaling results; it does not describe every failure or fleet configuration.

Deep

Next paperHiLO coordinates service slowdowns to protect product quality