Skip to content

๐Ÿš€ FastFlowLM v1.0.14 โ€” Inkling-2-Mini, Hy-MT3, R2T2 Streaming ASR, GPU Without an NPU & Faster Qwen3.8

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 22:01
· 29 commits to main since this release
7ad6ebd

This release does five things:

  • New NPU models. inkling-2:mini is a 26B MoE vision model with tool calling. hy-mt3-flash:1.8b translates between 102 languages. r2t2:1.7b is a streaming speech-to-text model for 30 languages.
  • GPU backend updates (preview). Three new oga-hipep models: Laguna 2.1 (33B and 118B) and Nemotron 3.5 Lightning. On Windows, GPU models now run on machines without an NPU. Gemma 3 and Gemma 4 GPU models accept images, and multiple chats stay warm on the GPU.
  • Faster models. qwen3.8-mtp:27b and qwen3.8-dflash2:27b now speculate on every request, so normal chat settings decode about 1.8ร— faster. d3:edge is up to 1.6ร— faster, and SmolVLA is about 1.7โ€“1.8ร— faster.
  • Smarter server. GET /v1/models now reports what each model can do. Agents' developer and later system messages now reach the model. Qwen3.5 honours chat_template_kwargs.enable_thinking.
  • Safer by default. The server log no longer shows what users send or what the model answers. Model downloads now verify TLS certificates.

โš ๏ธ Some of these changes can affect existing setups. See Before You Upgrade.


โš ๏ธ Before You Upgrade

  • /v1/embeddings needs -e again. In v1.0.13 any embedding request loaded the embedding model on demand. Now embeddings work only when the server starts with -e, or with an embedding model as the main model. Otherwise the request gets HTTP 400.
    flm serve qwen3:8b -e 1                    # default embedding model
    flm serve qwen3:8b -e embed-gemma:300m     # a specific embedding model
  • embed-gemma:300m takes task and title inside input. Top-level task and title are no longer passed to the model. A plain string input uses the default task (query).
    {"model": "embed-gemma:300m", "input": {"text": "Paris is in France.", "title": "France", "task": "document"}, "dimensions": 768}
  • The server log no longer shows request or reply text. Each request is logged as one summary line with its top-level settings only. The Model RAW Output: dump is off.
    • FLM_LOG_CONTENT=1 brings back request text, replies and ASR transcripts.
    • FLM_LOG_RAW_OUTPUT=1 brings back only the Model RAW Output: dump and ASR transcripts. Scripts that parse that dump need one of these.
    • The same switches apply to flm run.
  • Model downloads now verify TLS certificates. In v1.0.13, verification was off for most downloads.
    • Behind a corporate proxy that inspects HTTPS, install the proxy's root certificate in Windows.
    • If that is not possible, FLM_INSECURE_DOWNLOAD=1 turns verification off (with a warning). Model files are still checked against their SHA-256 hashes.
  • A JSON Schema pattern now matches anywhere in the string. This follows the JSON Schema spec and applies to tool parameters and response_format on every model.
    • An unanchored "\\d{5}" now means "contains five digits", not "is exactly five digits".
    • Use ^...$ to match the whole string.
  • Embedding model extensions (--model-extension) built for v1.0.13 must be updated and rebuilt. load() now takes a load-context struct, and embed() receives task/title inside input.
  • GPU backend (preview) changes:
    • Text-only GPU models (qwen2.5-it-oga-hipep:14b, qwen2.5-coder-it-oga-hipep:14b, gpt-oss-oga-hipep:120b) now answer image requests with HTTP 400. Before, they ignored the images.
    • On qwen3.5-oga-hipep:9b and qwen2.5-it-oga-hipep:14b, parallel tool results with a missing, duplicate or unknown tool_call_id now get HTTP 400.
    • Keeping several chats warm uses up to 4 GB more GPU memory by default. On machines with 32 GB or less, use --prefix-slots 2 or --prefix-cache-mb 2048.
    • Qwen3.5/3.6/3.8 GPU prompts with several images are now slower, in exchange for reading them much better (see below).

๐Ÿ†• New Models

๐ŸŒ Hy-MT3 1.8B: hy-mt3-flash:1.8b

tencent/Hy-MT3-1.8B is a dedicated translation model for 102 languages.

  • Text to text. No thinking, no tool calling.
  • Single-turn: every request starts fresh. No conversation history is kept.
  • Follows terminology, style and structured-data instructions.
  • Uses the same NPU engine as Hy-MT2, so it runs at the same speed.
  • Context: 8k.
  • Download: about 1.8 GB.
  • Speed on Strix Point (Ryzen AI 9 370):
    • Decode: 42.3 tok/s at 1k, 33.8 tok/s at 8k.
    • Prefill: 1,636 tok/s at 1k, 1,120 tok/s at 8k.
  • Recommended prompt:
    Translate the following text into {TARGET_LANG}. Note that you should only output the translated result without any additional explanation:
    
    {TEXT}
    
    • In server mode you can pin this instruction as the system prompt.
  • NPU2 (XDNA2) only.
flm run hy-mt3-flash:1.8b
flm serve hy-mt3-flash:1.8b

๐Ÿ“– Hy-MT3 ยท Hy-MT3 benchmarks


๐ŸŽ™๏ธ Confucius4-R2T2: r2t2:1.7b

netease-youdao/Confucius4-R2T2 is a streaming speech-to-text model, fine-tuned from Qwen3-ASR-1.7B. It never edits text it has already written.

  • 30 languages, best at Chinese and English.
  • 2B parameters: a 0.3B audio encoder and a 1.7B decoder. The audio encoder, prompt processing and decoding all run on the NPU.
  • Reads wav, flac, mp3 and ogg, at any sample rate.
  • Audio of any length. Long recordings are cut into pieces of about a minute at quiet moments.
  • Download: about 3.9 GB.
  • Speed on Ryzen AI 9 HX 370: about 0.11ร— real time.
    • A 68 s recording takes about 8 s. A 410 s recording takes about 46 s.
    • Encoding the audio and the prompt takes 0.13โ€“0.25 s for clips up to 20 s. Decoding runs at about 38 tok/s.
  • Memory: about 3.6 GB after the first request, up to about 4.5 GB on long recordings.
  • NPU2 (XDNA2) only.

CLI. Load an audio file with /input. Text after the file name is used as context or hot words.

flm run r2t2:1.7b
/input "path\to\audio.wav"

Server. Use /v1/audio/transcriptions, for a whole file or streamed.

flm serve r2t2:1.7b
curl http://localhost:52625/v1/audio/transcriptions -F file=@audio.wav -F model=r2t2:1.7b
curl http://localhost:52625/v1/audio/transcriptions -F file=@audio.wav -F model=r2t2:1.7b -F stream=true
  • response_format: json, text, verbose_json, srt or vtt.
  • language: a name or ISO 639-1 code. Leave it empty to detect the language.
  • prompt: context or hot words.
  • Streaming sends text as server-sent events. Text never changes once sent.
    • chunk_size_ms sets the chunk size (80โ€“2000, default 1000).
    • Every chunk size from 160 ms up keeps up with live speech (0.88ร— real time at 160 ms, 0.37ร— at 480 ms).

As the server's speech model (-a). R2T2 can sit next to a chat model, so a transcription never swaps out the loaded LLM.

flm serve -a r2t2:1.7b                 # speech-to-text only
flm serve qwen3:0.6b -a r2t2:1.7b      # chat model and R2T2 side by side
  • With -a r2t2:1.7b, every transcription request goes to R2T2, whatever model it names.
  • qwen3:0.6b with R2T2 uses about 8.0 GB of memory after the first request.
  • flm run -a still accepts Whisper only. Use flm serve for R2T2.

โš ๏ธ Limitations:

  • Whole audio files only. Live microphone streaming is not exposed yet.
  • srt, vtt and verbose_json carry one segment for the whole file. No word timestamps.
  • The model is under the NetEase Youdao Model Use License Agreement. Very large organizations need a separate license.

๐Ÿ“– R2T2 ยท R2T2 benchmarks


๐Ÿ–‹๏ธ Inkling-2-Mini: inkling-2:mini

thinkingmachines/Inkling-2-Mini is a Mixture-of-Experts vision model: 26.4B parameters, 3.4B active per token. Prefill, decode and the vision encoder all run on the NPU.

  • Takes text and images. Audio is not supported.
  • Supports tool calling.
  • Always thinks before it answers. In server mode, reasoning_effort sets how long: none, minimal, low, medium, high (default), xhigh, max, or a number from 0 to 0.99.
    • think: false selects none, which still thinks briefly. Leave room for the reasoning in max_tokens.
  • Images are not resized. Every 40ร—40 pixel cell is one image token, up to 4,096 tokens (2560ร—2560 pixels) per image. Larger images are scaled down to fit.
    • A 640ร—480 photo is 192 tokens and is encoded in about 0.3 s.
  • Context: 64k by default.
  • Download: about 17.3 GB.
  • Speed on Strix Halo (Ryzen AI MAX+ PRO 395):
    • Decode: 11.6 tok/s at 1k, 8.3 tok/s at 32k.
    • Prefill: 742 tok/s at 1k, about 1,000 tok/s from 2k to 32k.

โš ๏ธ Needs about 20 GB of memory, more at long context. The NPU can use only about half of system memory, so use a machine with 64 GB of RAM or more. 32 GB machines can't load it.

flm run inkling-2:mini
flm serve inkling-2:mini

๐Ÿ“– Inkling ยท Inkling benchmarks


๐ŸŽฎ New GPU Models (Preview): Laguna 2.1 and Nemotron 3.5 Lightning

Three new models for the oga-hipep GPU backend (preview, Windows).

Tag Model Download Default context
laguna2.1-oga-hipep:33b-a3b Laguna-XS-2.1 18.2 GB 2k
nemotron3.5-lightning-oga-hipep:30b-a3b Nemotron 3.5 Lightning 17.8 GB 32k
laguna2.1-oga-hipep:118b-a8b Laguna-S-2.1 62.2 GB 2k
  • All three are text only. Image requests get HTTP 400.
  • All three support tool calling and reasoning. Thinking can be turned on and off.
flm run laguna2.1-oga-hipep:33b-a3b
flm serve nemotron3.5-lightning-oga-hipep:30b-a3b

โš ๏ธ Laguna and GPU memory:

  • Laguna uses a 2k default context because its GPU memory grows with each new reply length.
  • On a Radeon 8060S with 96 GB:
    • 33b-a3b loads at about 17 GiB and reaches about 34 GiB at 2k tokens.
    • 118b-a8b loads at about 58 GiB and reaches about 78 GiB at 2k tokens. 3k tokens does not fit.
  • This memory is freed only when flm exits.
  • Running out of GPU memory slows things down and can end in a GPU reset. Then restart flm. Raise --ctx-len with care.

๐Ÿ“– CLI: backends


๐ŸŽฎ GPU Backend Updates (Preview)

No NPU needed on Windows

  • In v1.0.13, GPU models needed a machine that also had an NPU. Now -oga-hipep models list, run and serve on a compatible AMD GPU without one.
  • The NPU is opened only when an NPU model or sidecar needs it.
  • On a machine without an NPU, asking for an NPU model returns "No NPU device available". The loaded GPU model and its chat cache stay.
  • /api/ps and /v1/models now report each model's backend and device.

Images on Gemma GPU models

  • gemma3-oga-hipep:4b now accepts images. Each image is resized to 896ร—896 (256 tokens).
    • A text follow-up after an image reuses the cache (about 1.7 s to the first token on a Radeon 8060S).
  • gemma4-it-oga-hipep:12b and gemma4-it-oga-hipep:26b-a4b now accept images, up to 280 tokens each.
    • Every Gemma 4 request with an image re-processes the whole conversation.
    • Audio still gets HTTP 400.

Several chats stay warm

  • In v1.0.13, two chats taking turns (or an agent and its sub-agent) replayed each other's whole history.
  • FLM now keeps up to 4 conversations warm on the GPU and sends each request to the best match.
    • qwen3.5-oga-hipep:9b, a 5.3k-token turn between two chats: 8.1 s โ†’ 0.40 s to the first token.
    • Sending the same prompt again processes no prompt tokens.
  • --prefix-slots N sets the number of chats (default 4, max 32, 0 = one, as before).
  • --prefix-cache-mb sets the memory budget for the extra chats (default 4096 MiB).
  • On machines with 32 GB or less, use --prefix-slots 2 or --prefix-cache-mb 2048.

Qwen3.5/3.6/3.8 images

  • The first image request after loading no longer runs a 5โ€“7 s warm-up.
    • qwen3.5-oga-hipep:9b: 6.7 s โ†’ about 2 s to the first token.
  • Each image is now sized on its own, as on the NPU, instead of sharing one budget across the prompt. Small text in multi-image prompts is read much better.
    • โš ๏ธ Prompts with several images take longer. Eight 1280ร—720 screenshots: about 3.5 s โ†’ 14 s to the first token.
    • Images are resized to at most --img-pre-resize height (720 by default).
  • A prompt whose images alone exceed the context gets an early HTTP 400 that names the images and their token count.

Faster

  • Prompt processing is faster and per-token overhead is lower. FLM no longer fetches results it does not use.
  • qwen2.5-it-oga-hipep:14b and qwen2.5-coder-it-oga-hipep:14b reuse the cache when you retry or regenerate the same prompt.
    • A 1,649-token retry: 2.8 s โ†’ 0.36 s.

โœจ Improvements

๐Ÿš€ Faster Models

Qwen3.8 MTP and DFlash2 (qwen3.8-mtp:27b, qwen3.8-dflash2:27b)

  • In v1.0.13, these models only speculated on greedy requests (temperature: 0 or top_k: 1). Normal chat settings decoded one token at a time.
  • Now every request speculates. Drafts are checked with standard speculative sampling.
    • temperature, top_k, top_p, penalties and seed all apply.
    • The output follows the same distribution as plain sampling.
  • Speed on Strix Point (Ryzen AI 9 HX 370), 256 tokens:
    • qwen3.8-mtp:27b, temperature 0.7: 1.26 โ†’ 2.30 tok/s.
    • qwen3.8-dflash2:27b, temperature 0.7: 1.26 โ†’ 2.49 tok/s.
    • JSON replies with response_format: 1.25 โ†’ 5.3โ€“6.9 tok/s.
    • Tool calls: 1.3 โ†’ 6.6โ€“6.9 tok/s.
  • Higher temperatures accept fewer drafts, so they run closer to normal speed.
  • Nothing to set. FLM_DISABLE_SPECULATION=1 turns speculation off.
  • Greedy requests: send presence_penalty: 0 for output identical to plain greedy decoding.
  • A greedy request with ignore_eos or min_tokens still decodes one token at a time.

Decision model (d3:edge)

  • 1.1โ€“1.6ร— faster end to end (most on short prompts). Prefill uses a faster kernel, and short prompts and images run attention on the CPU.
  • From 512 tokens, attention runs on the NPU without switching kernels, which saves a further ~17% at 1k tokens and ~8% at 2k.
  • Request time over HTTP, v1.0.13 โ†’ v1.0.14:
    • 128 tokens: 62 โ†’ 41 ms.
    • 4,096 tokens: 967 โ†’ 710 ms.
    • 32,767 tokens: 17.1 โ†’ 15.2 s.
    • 16 questions ร— 330 tokens: 1,058 โ†’ 670 ms.
    • A 1,024ร—768 image: 0.60 โ†’ 0.50 s.
    • 8 questions about one image: 2.0 โ†’ 1.5 s.
  • No re-download needed.

SmolVLA (lerobot/smolvla_base)

  • Much faster on XDNA2. Time per inference on Strix Point (Ryzen AI 9 370):
    • 1 image: 311 โ†’ 186 ms.
    • 2 images: 380 โ†’ 216 ms.
    • 3 images: 449 โ†’ 254 ms.
  • 100 runs in a row with 3 images, no hangs.

๐Ÿ“– Decision 3.0 ยท d3 benchmarks ยท SmolVLA benchmarks


๐Ÿ› ๏ธ Server and CLI

  • GET /v1/models reports what each model can do. Each entry keeps its fields and adds:
    • capabilities: completion, tools, vision, audio, thinking, embedding.
    • context_length: --ctx-len if set, otherwise the model's default.
    • architecture: input and output types (text, image, audio).
    • supported_parameters: tools, tool_choice, reasoning.
    • Clients with a custom endpoint (VS Code, pi, Cline) can copy tool, image, thinking and context settings from it. A new docs page shows how.
  • Agent developer and later system messages reach the model. Agents such as pi and OpenClaw send these on /v1/chat/completions.
    • Before, Qwen3 silently dropped a developer message, and Qwen3.5 returned HTTP 500.
    • Now a developer message is treated as a system message.
    • A later system message stays in place. If the model's template refuses it, it is sent as a user turn wrapped in <system-reminder>.
  • chat_template_kwargs.enable_thinking works on Qwen3.5. It means the same as think. Before, it was accepted but ignored.
    • Applies to qwen3.5:* on the NPU and the Qwen3.5/3.6/3.8 GPU models (preview).
    • A non-boolean value, or one that contradicts think or reasoning_effort, gets HTTP 400.
  • Embeddings:
    • An embedding tag sent to a chat route gets HTTP 400. The loaded chat model stays.
    • A cancelled embedding request gets HTTP 499.
    • /load in flm run refuses embedding tags without ending the session.
  • Gemma 4 and LFM2 tool calls respect minLength and maxLength on string parameters.
  • Downloads behind a proxy. On Windows, the system certificate store is used. A refused certificate prints one clear error with what to do.

๐Ÿ“– Model capabilities ยท Reasoning and tools ยท Server log ยท EmbeddingGemma


๐Ÿงฐ For Developers: FLM Dev Kit

  • The repository now includes flm-dev-kit/, the source behind FastFlowLM's NPU support, under the MIT License.
  • You can build the NPU engine libraries, the NPU kernels and the Q4NX weight converter yourself.
  • Building needs x86-64 Linux with an AVX-512 CPU (tested on Ubuntu 24.04).
  • A model's weights, kernels and engine library must match. A mismatch gives wrong output or a hang, not an error.

๐Ÿ“– flm-dev-kit/README.md


๐Ÿ› Bug Fixes

Server

  • JSON Schema pattern no longer cuts tool arguments short. A "not blank" pattern such as \S used to allow only one character. Every free-text tool argument came back as one character, which made agents loop.
  • response_format schemas now get the same handling as tool schemas.

Models

  • Large images and long document pages no longer fail. They used to run out of memory on the NPU vision models below. This affects XRT and HRX.
    • qwen3.6-moe, qwen3.5 (0.8b/2b/4b/9b), qwen3vl-it, qwen3vl-flash and d3.
    • A 16k-patch image now needs 3.5 MiB of control code instead of 73.6 MiB.
    • qwen3.6-moe:35b-a3b also prefills 8โ€“18% faster on HRX.
  • gemma4-it:12b no longer gives an empty reply after a tool result with thinking off.
  • SmolVLA no longer gives wrong actions when inputs change between calls. Changing the number of images or the prompt length in one process could give a wrong action chunk or a device timeout. Results now match a fresh process.

GPU (preview)

  • qwen2.5-it-oga-hipep:14b now sees the tools in a request. Before, it never called tools on its own. Now it calls them when needed.
  • Parallel tool results reach the right call. On qwen3.5-oga-hipep:9b and qwen2.5-it-oga-hipep:14b, results sent back out of order could reach the model under the wrong call. FLM now matches each result to its call ID.
  • gemma4-it-oga-hipep:12b tool calls work. In v1.0.13 a tool call followed by its result failed on this model.

๐Ÿ™Œ Community Contributions

Thank you to our contributors:

  • @LeoBorcherding made qwen3.8-mtp and qwen3.8-dflash2 speculate on every request with speculative sampling (#1045).

๐ŸŒŸ Summary

Highlight
๐Ÿ–‹๏ธ New model: inkling-2:mini (26B MoE vision, 3.4B active, tool calling; needs 64 GB RAM)
๐ŸŒ New model: hy-mt3-flash:1.8b (translation, 102 languages)
๐ŸŽ™๏ธ New model: r2t2:1.7b (streaming speech-to-text, 30 languages; works with -a)
๐ŸŽฎ GPU backend (preview): Laguna 2.1 and Nemotron 3.5 Lightning, no NPU needed on Windows, Gemma images, 4 warm chats
๐Ÿš€ ~1.8ร— faster sampled decode on Qwen3.8 MTP/DFlash2; up to 1.6ร— faster d3:edge; ~1.7โ€“1.8ร— faster SmolVLA
๐Ÿ› ๏ธ /v1/models capabilities, developer/system messages, enable_thinking on Qwen3.5
๐Ÿ”’ No user text in the log by default, TLS-verified downloads
๐Ÿงฐ Open-source FLM Dev Kit (MIT)
โš ๏ธ /v1/embeddings needs -e; JSON Schema pattern matches anywhere; check proxy certificates

Thanks for your support โ€” see you in the next one! ๐Ÿš€