Repository navigation
superfluid 0.2.6
superfluid speaks Qwen4's chat format. Served on BaseRT 0.5.9, Qwen4-35B-A3B now gets prompts written the way Qwen's own encoder writes them, with its reasoning effort, tools and tool results in the places the model was trained on. Before, superfluid took Qwen4 for a Qwen3.5 model and framed its chats that way, without any error. Several requests that arrive together also start sooner: on an M5 Ultra, eight concurrent requests to Qwen4-35B-A3B wait 0.70 seconds on average for their first token instead of 0.92. A file that a Qwen model writes through a tool call now reaches the client piece by piece, as the model writes it, instead of all at once when it is done. If you run 0.2.2 or later, it updates itself to 0.2.6 before the next command you start in a terminal.
New
- Qwen4's chat format.
--dialect auto, the default, picks the newqwen4dialect for a Qwen4 model, and--dialect qwen4asks for it by name. Prompts come out token for token as Qwen's official tokenizer writes them. The model's thinking arrives inreasoning_contentand its tool calls intool_calls, on every chat route. Text inside a message, a tool schema or a tool result is always treated as text, so it cannot pass itself off as one of the format's control tokens. - Reasoning effort for Qwen4.
reasoning_efforttakes Qwen4's four levels,off,low,highandxhigh, and a request that names none getshigh. OpenAI's other names go to the nearest level:nonetooff,minimaltolow,mediumtohighandmaxtoxhigh.enable_thinking: falseis the same asoff. A request whoseenable_thinkingandreasoning_effortcontradict each other is refused. - Structured output after the reasoning. With a
response_formatschema, Qwen4 reasons first and the schema applies to the answer that follows. With reasoning off, the schema applies from the first token.
Changed
- Requests that arrive together start sooner. When several prompts are waiting, superfluid now reads up to 4,096 tokens of prompt in one step, where it stopped at 1,024, and it finishes a short prompt in the same step instead of cutting it in two. How long a step may take is unchanged, so only a model fast enough to read more than 1,024 tokens in that time takes the larger steps. Served on an M5 Ultra with Qwen4-35B-A3B, eight concurrent requests reach their first token in 0.70 seconds on average, against 0.92, and decode at 529 tokens a second together, against 503. A single request is unchanged.
- Qwen tool calls stream their text as it is written. Qwen3.5 and later, Qwen4 included, call tools in XML (
<function=write_file><parameter=content>…). A streamed call sent each argument in one piece once the model had finished it, so a client saw nothing while a long file was written. An argument that the tool's schema declares astringnow arrives piece by piece on/v1/chat/completions, as the model writes it. Any other argument still arrives once it is complete, and so does every argument of a tool sent without a schema, because such a value's type is known only from the whole of it. Served on an M5 Pro with Qwen4-35B-A3B, a 17-line script written through a tool call arrived in 85 pieces, none longer than 19 characters, where the whole file had arrived as one piece of 357. The pieces join to the sameargumentsa non-streaming response gives./v1/messagesstill sends a tool call's input in one piece.
The engine ABI is unchanged: superfluid 0.2.6 serves BaseRT 0.5.9, released alongside, and the 0.5 and 0.4 releases as 0.2.5 does. Qwen4-35B-A3B needs both. superfluid runtime install basert installs it. llama.cpp b12939 is still the build superfluid runtime install llamacpp installs.
See installation for every way to install superfluid, and updating for how each is updated.