Repository navigation
Releases
🚀 FastFlowLM v1.0.14 — Inkling-2-Mini, Hy-MT3, R2T2 Streaming ASR, GPU Without an NPU & Faster Qwen3.8
This release does five things:
- New NPU models.
inkling-2:miniis a 26B MoE vision model with tool calling.hy-mt3-flash:1.8btranslates between 102 languages.r2t2:1.7bis a streaming speech-to-text model for 30 languages. - GPU backend updates (preview). Three new
oga-hipepmodels: 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:27bandqwen3.8-dflash2:27bnow speculate on every request, so normal chat settings decode about 1.8× faster.d3:edgeis up to 1.6× faster, and SmolVLA is about 1.7–1.8× faster. - Smarter server.
GET /v1/modelsnow reports what each model can do. Agents'developerand latersystemmessages now reach the model. Qwen3.5 honourschat_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.
⚠️ Before You Upgrade
/v1/embeddingsneeds-eagain. 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:300mtakestaskandtitleinsideinput. Top-leveltaskandtitleare 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=1brings back request text, replies and ASR transcripts.FLM_LOG_RAW_OUTPUT=1brings back only theModel 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=1turns verification off (with a warning). Model files are still checked against their SHA-256 hashes.
- A JSON Schema
patternnow matches anywhere in the string. This follows the JSON Schema spec and applies to tool parameters andresponse_formaton every model.- An unanchored
"\\d{5}"now means "contains five digits", not "is exactly five digits". - Use
^...$to match the whole string.
- An unanchored
- Embedding model extensions (
--model-extension) built for v1.0.13 must be updated and rebuilt.load()now takes a load-context struct, andembed()receivestask/titleinsideinput. - 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:9bandqwen2.5-it-oga-hipep:14b, parallel tool results with a missing, duplicate or unknowntool_call_idnow 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 2or--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).
- Text-only GPU models (
🆕 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🎙️ 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=trueresponse_format:json,text,verbose_json,srtorvtt.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_mssets 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, whatevermodelit names. qwen3:0.6bwith R2T2 uses about 8.0 GB of memory after the first request.flm run -astill accepts Whisper only. Useflm servefor R2T2.
- Whole audio files only. Live microphone streaming is not exposed yet.
srt,vttandverbose_jsoncarry 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_effortsets how long:none,minimal,low,medium,high(default),xhigh,max, or a number from 0 to 0.99.think: falseselectsnone, which still thinks briefly. Leave room for the reasoning inmax_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.
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. Thinkin...
🚀 FastFlowLM v1.0.13 — AMD GPU Backend (Preview), Hy-Memory, MiniCPM-OCR & Faster Prefill
This release does five things:
- New AMD GPU backend (preview). On Windows, the new
oga-hipepbackend runs 13 models on the Radeon GPU, from Gemma 3 4B up to GPT-OSS 120B and Qwen3.8-Flash-Next 125B. - New NPU models.
hy-memory:30b-a3b, a MoE model built to drive memory frameworks, andminicpm-ocr:1.0, a 1B OCR model. - Faster models. MiniCPM-V 4.7 1B prefills about 2× faster. Gemma 4 E4B prefills up to 2× faster on long prompts. MoE models prefill up to 2× faster on HRX. Hy-MT2, Nemotron 3.5 Bolt, Qwen3.6 MoE and Gemma 3 1B are faster too.
- A safer, stricter server. Browser requests from other machines are refused by default. Bad requests get a clear 400 instead of a crash, a 500, or a silent wrong answer.
- Many fixes. Request settings no longer leak between requests, vision models no longer answer about the wrong image, and 15 models get a decoding-layer rounding fix.
⚠️ Before You Upgrade
- Web UIs on another machine need
--cors-origins. The server now only answers browser requests from local origins. A web UI served from another machine (for example Open WebUI athttp://nas:3000) gets HTTP 403 until you start the server with its origin:flm serve qwen3:8b --cors-origins "http://nas:3000" flm serve qwen3:8b --cors-origins "*" # old behaviour: allow every origin
- Clients that send no
Originheader are not affected. This includes curl, the OpenAI SDKs and a web UI's backend. - Pages opened from a local file need
--cors-origins "null". - Tunnels and reverse proxies that keep their own
Hostheader need their origin listed too. - Clients pointed at
http://0.0.0.0:52625keep working.
- Clients that send no
qwen3.5-flash:2bis removed. Useqwen3.5:2binstead. It uses the same weights, so there is nothing new to download.- Request settings no longer stick. Every request now starts from the model's defaults. If you relied on an earlier request's
think,temperatureor similar, send it with each request. - Two models must be downloaded again. Older copies show as outdated and are pulled again.
minicpm-v-4.7:1b: its vision weights (about 1.1 GB) were re-converted.hy-mt2-flash:1.8b: it moved to new Q4_K weights (about 1.8 GB). The new engine can't read the old ones.
/v1/embeddingsnow uses themodelyou send. Before, the field was ignored. An unknown tag, or a tag that isn't an embedding model, gets 400.qwen3.8-mtp:27bonly speculates on greedy requests. Its default requests now decode at normal speed. Sendtemperature: 0(ortop_k: 1) to keep speculative speed.- Stricter HTTP errors. Some requests that used to return 200 now return an error:
- Unusable images (GIF,
http(s)URLs, images in system messages, corrupt files) get 400. - Failed prefill on
/v1endpoints now returns an error instead of a 200: a prompt longer than the context gets 400, and other prefill failures get 500. - Connections over the
--socketlimit get 503 instead of a connection reset.
- Unusable images (GIF,
top_k: 0or-1now turns top-k off. Before, it was ignored and the model's default top-k stayed on.- Seeded sampling now gives the same result on Windows and Linux. On Linux, a request with a fixed
seedmay give different text than in v1.0.12. - Hy-MT2 replies without
max_tokensare capped. Ahy-mt2-flash:1.8breply now stops at about twice the prompt length plus 64 tokens (finish_reason: "length"). Sendmax_tokensfor longer replies.
🆕 New Models
🎮 AMD GPU Backend: oga-hipep (Preview, Windows)
FastFlowLM can now run models on the AMD GPU, not just the NPU. The new oga-hipep backend uses ONNX Runtime GenAI with AMD's hip-ep runtime. It is part of the standard Windows ZIP and MSI.
🧪 Preview. The
oga-hipepbackend is an early release. Model tags, options and behaviour may change in later releases, and it has the known limitations listed below. Please report problems on GitHub.
- Pull, run and serve these models like any other tag. Tags ending in
-oga-hipeppick the GPU backend automatically. - The first
flm runorflm serveof a GPU model downloads the hip-ep runtime (about 137 MiB) into your user profile. - The REST/SSE server, logprobs and streaming work as on the NPU. Tool calling works on the Qwen3.5/3.6/3.8 and Gemma 4 GPU models, and reasoning on the Qwen3.x, Gemma 4 and GPT-OSS ones.
- In multi-turn chats, the GPU models skip the part of the conversation they have already processed instead of starting over (Qwen3.x and GPT-OSS always; Gemma and Qwen2.5 when the previous reply comes back unchanged).
- Ctrl+C and
/byeend flm and free GPU memory. qwen3.5-oga-hipep:9bon a Ryzen AI MAX+ 395 decodes at about 36 tok/s and prefills at about 1,150 tok/s.
| Tag | Input | Download |
|---|---|---|
gemma3-oga-hipep:4b |
Text | 4.4 GB |
qwen3.5-oga-hipep:9b |
Text + image | 7.5 GB |
qwen2.5-it-oga-hipep:14b |
Text | 8.8 GB |
qwen2.5-coder-it-oga-hipep:14b |
Text | 8.8 GB |
gemma4-it-oga-hipep:12b |
Text | 9.4 GB |
gemma4-it-oga-hipep:26b-a4b |
Text | 16.6 GB |
qwen3.8-oga-hipep:27b |
Text + image | 16.9 GB |
qwen3.6-oga-hipep:27b |
Text + image | 18.0 GB |
qwen3.5-oga-hipep:35b-a3b |
Text + image | 22.1 GB |
qwen3.6-oga-hipep:35b-a3b |
Text + image | 22.1 GB |
gpt-oss-oga-hipep:120b |
Text | 69.3 GB |
qwen3.5-oga-hipep:122b-a10b |
Text + image | 71.8 GB |
qwen3.8-flash-next-oga-hipep:125b-a6b |
Text + image | 124.0 GB |
All have a 32k default context.
flm run qwen3.5-oga-hipep:9b
flm serve qwen3.5-oga-hipep:9b- Qwen3.8-Flash-Next has 125B parameters with 6B active. It decodes at about 34.5 tok/s, and needs about 78 GiB of GPU memory.
- Images share a budget of about one 1440×1440 picture per prompt. Several images are scaled down to fit.
flm uninstall hipepremoves the runtime that flm installed. It keeps your models and any runtime you installed yourself. Stop runningflmprocesses first.HIPEP_PKG_ROOTpoints flm at a hip-ep package you installed yourself. When set, it is the only place flm looks.
- Windows only. Not available on Linux or HRX builds.
- The machine must still have an NPU. GPU-only machines are not supported yet.
- Gemma and GPT-OSS GPU models are text only. Gemma requests with images or audio get HTTP 400.
- A new or changed image, or a Gemma 4 follow-up with thinking on, re-processes the whole conversation.
- On
gemma4-it-oga-hipep:12b, a tool-call round trip (a reply after a tool result) can fail.
🧠 Hy-Memory 30B-A3B: hy-memory:30b-a3b
tencent/Hy-Memory-30B-A3B is a MoE model with about 3B active parameters. It is built to be the language model behind memory frameworks such as Mem0, MemOS and Hy-Memory.
- Takes one extract or reconcile prompt and answers in JSON.
- Text only. No thinking, no tool calling.
- Greedy decoding by default.
- The prefix cache reuses the shared part of repeated requests.
- Download: about 17.9 GB. 32 GB of system RAM or more is recommended.
- Speed on Strix Halo: decode 19.3 tok/s at 1k and 14.5 tok/s at 8k.
flm run hy-memory:30b-a3b📖 Hy-Memory · Hy-Memory benchmarks
📄 MiniCPM-OCR 1.0: minicpm-ocr:1.0
A 1B OCR model that reads text from images. It pairs the MiniCPM-V 4.7 text model with a SigLIP vision encoder.
- Takes images and text.
- Supports tool calling and the prefix cache. No thinking.
- Context: 32k by default.
- Download: about 2.0 GB.
- Speed on Strix Halo: decode 65 tok/s at 1k and 47 tok/s at 24k.
flm run minicpm-ocr:1.0✨ Improvements
🚀 Faster Models
MiniCPM-V 4.7 1B (minicpm-v-4.7:1b)
- Prefill is about 2× faster on XRT and 1.6–1.8× faster on HRX.
- XRT at 1k: 1,545 → 3,337 tok/s.
- Decode is 18–44% faster.
- XRT at 1k: 50.7 → 72.4 tok/s.
- The vision encoder is about 2× faster on requests with many images or video frames.
- 120 frames: 14.3 s → 7.6 s.
- On Windows, prefill is now close to Linux speed.
- Text, 3,359 tokens: 1,124 → 666 ms.
- 32 images: 860 → 483 ms.
⚠️ Needs a re-download (see above).
Gemma 4 and Nemotron 3.5 Bolt
gemma4-it:e4bprefill is much faster on long prompts. Decode is about 9% faster.- Prefill: 527 tok/s at 1k (was 419), 1,243 tok/s at 16k (was 573).
- Time to first token on a 4k prompt: 6.2 s → 2.6 s.
- Image: 1.9 s → 0.9 s to the first token. A 30-second audio clip: 2.7 s → 1.1 s.
nemotron3.5-bolt:e4bandnemotron3.5-bolt-dflash:e4bprefill faster too (about 30–40% for Bolt). Decode is unchanged.- Bolt time to first token: 1.45 → 0.83 s at 1k, 3.57 → 2.51 s at 4k.
- Images start about 20% sooner, audio 15–40% sooner.
nemotron3.5-bolt-dflash-flash:e4bstarts images and audio sooner. Its prefill is unchanged.gemma4-it:e2bis faster from 2k tokens up.- No re-download needed.
MoE models on HRX
gpt-oss:20bandqwen3.6-moe:35b-a3bprefill much faster on the HRX runtime. They now match or beat XRT.gpt-oss:20b: 80.8 → 126.2 tok/s at 1k.qwen3.6-moe:35b-a3b: 25.9 → 52.5 tok/s at 1k.
qwen3.6-moe:35b-a3balso prefills faster on both runtimes: up to 2...
🚀 FastFlowLM v1.0.12 — Speculative Decoding, MiniCPM-V MoE & Less RAM
This release does four things:
- New models. MiniCPM-V 4.7 35B-A3B, two more Decision 3.0 sizes (
d3:edge,d3:flash), andqwen3.5-flash:2b. - Faster decoding. New DFlash speculative-decoding tags for Nemotron 3.5 Bolt (up to 1.9× faster) and Qwen3.8-27B.
qwen3.8-mtp:27bitself decodes 1.6× faster. The Whisper encoder is about 3× faster. - Less host memory. Gemma 4, Nemotron 3.5 Bolt and Qwen3.5 (0.8B/2B/4B) read their embedding tables from disk instead of copying them into RAM. That saves up to 3.7 GiB per model.
- Many server fixes. These include a server that stopped accepting connections after clients hung up, Qwen3.5 answering
//////after hitting the context limit, wrong vectors fromembed-gemma, and Gemma 4 tool-call parsing.
🆕 New Models
🖼️ MiniCPM-V 4.7 35B-A3B: minicpm-v-4.7-moe:35b-a3b
openbmb/MiniCPM-V-4.7-35B-A3B is a Mixture-of-Experts vision model: 35B parameters, about 3B active per token.
- Takes text and images.
- Thinking can be turned on. It is off by default, as the model card recommends.
- Supports tool calling and the prefix cache, pictures included.
- Context: up to 256k tokens (32k by default).
- Needs about 22 GB of memory.
flm run minicpm-v-4.7-moe:35b-a3b⚡ DFlash Speculative Decoding: nemotron3.5-bolt-dflash:e4b, qwen3.8-dflash2:27b
A DFlash draft model proposes up to 7 tokens at a time, and the NPU checks all of them in one pass. The output follows the main model's own distribution.
| Tag | Main model | Decode speed |
|---|---|---|
nemotron3.5-bolt-dflash:e4b |
nemotron3.5-bolt:e4b + NVIDIA's DFlash draft |
1.3×–1.9× the base model, from short prompts to 16k tokens of context |
qwen3.8-dflash2:27b |
qwen3.8-mtp:27b + z-lab's DFlash 2 draft |
1.16× the MTP head on average (0.9×–1.5× per prompt). Code and structured answers gain most. |
- Two-package tags. A DFlash tag downloads only its small draft (0.27 GB for Bolt, 1.4 GB for Qwen3.8) and reuses the main model's package.
flm pulldownloads whichever is missing.flm rmremoves only the draft, and warns when another tag still needs a base model. - Everything else works as on the main model: thinking, tool calls, vision, audio (Bolt) and the prefix cache.
- With a long context,
qwen3.8-dflash2:27bis about level withqwen3.8-mtp:27b. - Set
FLM_DFLASH=0to turn speculation off and compare against the main model.
flm run nemotron3.5-bolt-dflash:e4b
flm run qwen3.8-dflash2:27b📖 Nemotron Bolt DFlash · Qwen3.8 benchmarks
⚡ New Flash Models: qwen3.5-flash:2b, nemotron3.5-bolt-dflash-flash:e4b
Flash models are built for single-turn requests: a fixed 1k context, a clean state for every request, and a system prompt that is saved once and reused. That makes the first token come back faster.
qwen3.5-flash:2bruns the same weights asqwen3.5:2b, so there's nothing new to download. Time to first token is 0.49 s instead of 0.81 s at 1k tokens. Decode is 33 tok/s instead of 29. Large pictures need-r 1.nemotron3.5-bolt-dflash-flash:e4bcombines Flash serving with DFlash speculation. It uses the two packages above, so there's no new download. Time to first token is 0.32 s at 64 tokens, and decode is 33–40 tok/s on code.
Flash models don't support tool calling or continue_final_message.
📖 Flash Models · Flash benchmarks
🧭 Decision 3.0: d3:edge and d3:flash
Two more sizes of the d3 decision model, served with flm serve --decision <tag> on /v1/systemone. They take text and images, like d3:lite, d3:nano and d3:mini.
| Tag | Backbone | Download | Memory peak | One question, 128 tokens |
|---|---|---|---|---|
d3:edge |
Qwen3.5-0.8B cut to 12 layers | 0.6 GB | 4.8 GB | ~0.06 s |
d3:flash |
Qwen3.5-9B size | 5.7 GB | 14.1 GB | ~0.85 s |
d3:edgeis the smallest and fastest d3 model.d3:flashsits betweend3:miniandd3:turbo.
✨ Improvements
🚀 Faster Models
qwen3.8-mtp:27bdecodes 1.6× faster, from 1.77 to 2.84 tok/s, thanks to new layer kernels.- The Whisper encoder is about 3× faster: 0.6 s per 30-second window instead of 1.7–2.0 s. A 5-minute recording now takes 25 s instead of 45 s.
⚠️ A Whisper-only server now uses about 2.3 GB of memory instead of 1.0 GB. SetWHISPER_CACHE_DEQUANT=0to get back to 1.0 GB.
💾 Less Host Memory
Token and per-layer embedding tables are now read from model.q4nx through a read-only memory map, one row per token, instead of being copied into RAM. Output, decode speed and time to first token are unchanged.
| Model | Private memory after loading |
|---|---|
gemma4-it:e4b, gemma4e-flash:e4b, nemotron3.5-bolt:e4b |
3.9 GiB → 0.3 GiB |
gemma4-it:e2b |
3.2 GiB → 0.3 GiB |
gemma4-it:12b |
2.2 GiB → 0.3 GiB |
nemotron3.5-bolt-dflash:e4b |
4.2 GiB → 0.5 GiB |
| Model | Memory saved |
|---|---|
qwen3.5:0.8b |
0.46 GiB |
qwen3.5:2b |
0.92 GiB |
qwen3.5:4b |
1.16 GiB |
The catalog footprints of these models are lower too, so tools that filter models by memory (such as Lemonade) list them on more machines. qwen3.5:9b and other models are unchanged.
🛠️ Server and CLI
ignore_eosandmin_tokensare now applied on the OpenAI and Ollama endpoints. Before, they were accepted but ignored.- One timing line per request.
flm servelogs aRequest done:line for every finished request, streamed or not. It shows prompt and generated tokens, prefill and decode speed, cached tokens and the finish reason:[FLM] Request done: prompt 11 tokens (prefill 0.442 s, 24.88 tok/s), generated 10 tokens (decode 0.424 s, 23.61 tok/s), kv 21/32768, finish stop -aand-etake a model tag, so you can run a standalone ASR or embedding server.1/0still work as before.flm serve -a whisper-v3:turbo # ASR only flm serve -e embed-gemma:300m # embeddings only flm serve qwen3:0.6b -a whisper-v3:turbo
- The
flmlauncher on Linux works through a symlink, such as~/.local/bin/flm.
🐛 Bug Fixes
Server
- The server no longer stops accepting connections after clients hang up. Each dropped request leaked a connection slot. After 10 of them,
flm serverejected everything, evenGET /v1/models, until it was restarted. - An unknown model name returns 404. Before,
/v1/chat/completionsreturned a 200 with an error body and/v1/completionsreturned a 500. /v1/embeddingsreturns proper error codes. Bad input gets a 400 and an engine failure gets a 500. Before, both came back as a 200.- Malformed UTF-8 no longer fails a request. A model that writes a broken multi-byte character (seen on
gemma3:1bwith CJK text) used to get a 500, or an error in the middle of a stream. The broken bytes are now dropped. min_paccepts fractions. A value such as0.05was rounded down to 0.
Models
embed-gemma:300mreturns correct embeddings again. Since v0.9.45, its vectors were unrelated to the model's, changed between server starts, and some requests hung for 60 seconds or more.- Qwen3.5 no longer answers
//////after hitting the context limit. When a reply ran into the context limit, the engine was corrupted and every later request returned//////////until a restart. Similar overruns are fixed for Qwen3.5-Omni,gemma4-it:12b,lfm2.5-tk,qwen3-tk, Qwen3.8-MTP, the DFlash tags and the shared decode loop. A reply that reaches the limit now ends withfinish_reason: length. - Gemma 4 tool calls:
- A string argument that contains a quote, such as
delimiter=",", no longer splits the call in two. gemma4-it:12bwith thinking off no longer leaks tool calls intocontentor runs tomax_tokens.
- A string argument that contains a quote, such as
- Flash models no longer reuse a stale system prompt.
qwen3vl-flash,gemma4e-flashandnemotron3.5-bolt-dflash-flashcould give a different answer to a repeated request, or see the system prompt twice.
🙌 Community Contributions
Thank you to everyone who reported the issues fixed in this release:
- @Jcollier0120 proposed memory-mapping the embedding tables (#807).
- @zeddius1983 asked for a per-request timing log (#841).
- @chetan-metrum-ai reported
ignore_eosandmin_tokensbeing ignored (#881). - @LalaDango reported the
gemma4-it:12btool-call leak and themin_prounding (#886, #887). - @Matzebhv reported and narrowed down the Qwen3.5
//////bug (#893). - @markl-a reported Gemma 4 tool calls splitting on quotes (#900).
- @rizno asked for ...
🚀 FastFlowLM v1.0.11 — Decision Models, a Prefix Cache for Every Chat Model & Logprobs
This release does four things:
- New models. The Decision 3.0 (d3) family from vLLM Semantic Router: five decision models from 0.8B to 27B, served through a new
/v1/systemoneendpoint. Also LFM3-1.7B and Nemotron 3.5 Bolt E4B. - The prefix cache now covers almost every chat model.
flm servekeeps several saved prompts at once, so agents that share a system prompt and tools, or switch between conversations, don't re-read the whole prompt on every request. - More OpenAI API fields:
logprobs/top_logprobs,seed,continue_final_messageandrepeat_last_n. max_tokensis exact. A reply used to be one token longer thanmax_tokensasked for.
It also fixes a gemma4-it:12b crash on repeated image or audio requests.
🆕 New Models
🧭 Decision 3.0 (d3): d3:lite, d3:nano, d3:mini, d3:turbo, d3:ultra
d3 is the decision model that vLLM Semantic Router calls for routing, guardrails and tool selection. It doesn't generate text. You send it a state (any JSON) and one or more questions, and it returns a probability for every option:
choice: pick one of up to 255 optionsnoul: no / yesscore: 2 to 10 ordered levels
FLM serves the same HTTP API as the upstream d3 server, so vLLM Semantic Router can use FLM as its d3 backend without changes.
A decision model runs in server mode, on its own or next to a chat model:
flm serve --decision d3:lite # decision model only
flm serve qwen3.5:4b --decision d3:lite # next to a chat model| Tag | Backbone | Download | Inputs | One short question* |
|---|---|---|---|---|
d3:lite |
Qwen3.5-0.8B | 0.8 GB | text, images | ~0.16 s |
d3:nano |
Qwen3.5-2B | 2.0 GB | text, images | ~0.26 s |
d3:mini |
Qwen3.5-4B | 3.4 GB | text, images | ~0.56 s |
d3:turbo |
Qwen3.5-27B | 16.6 GB | text, images, videos, box / track / assets |
~3 s |
d3:ultra |
Qwen3.5-27B (newer fine-tune) | 16.6 GB | same as d3:turbo |
~3 s |
* About 330 tokens, over HTTP, on an idle machine.
- Endpoints.
POST /v1/systemone(alias/v1/decisions) answers decision requests.GET /v1/systemone/modelslists the decision models this build can serve.
- Input limit: 32,768 tokens per question. A longer prompt gets
max_length_exceededfor that question. Nothing is truncated. - Accuracy. On the Decision Index public suite, every model stays close to the upstream BF16 model. Each model's numbers are on the benchmark page.
d3:turboandd3:ultra:- The state is computed once per request. Every question then reads it, so many questions about one state cost little more than one. That is 2.5× faster at 16 questions and up to 32× with a 4k-token state.
boxandtrackquestions locate objects in images and follow them through videos.assetsput images in questions, options and instructions.- Videos need the FFmpeg shared libraries (FFmpeg 6, 7 or 8) on the machine. FLM doesn't ship FFmpeg. It loads it the first time a video arrives. Without it, encoded videos get a clear 422, and frame lists (
{"frames": [...]}) still work. See the d3 page for install steps. - Memory. Plan for about 28 GB of free memory.
long_context: trueis refused with a 422.
💧 LFM3-1.7B: lfm3:1.7b
LiquidAI LFM3-1.7B runs fully on the NPU, prefill, all 24 layers and the LM head included.
- Thinking is on by default. You can turn it off.
- Supports tool calling.
- Context: up to 32k tokens.
- Uses LiquidAI's Q4_0 quantization-aware build.
- Uses LiquidAI's recommended sampling defaults: temperature 0.1, top_k 50, repetition penalty 1.1.
flm run lfm3:1.7b⚡ Nemotron 3.5 Bolt E4B: nemotron3.5-bolt:e4b
NVIDIA Nemotron-3.5-Bolt-E4B is Gemma 4 E4B post-trained for multi-turn tool use, instruction following and fast voice and device assistants.
- Takes text, images and audio, like
gemma4-it:e4b. - Context: up to 64k tokens (32k by default).
"conversational_mode": truein a request adds Bolt's short-answer instruction to the prompt.
flm run nemotron3.5-bolt:e4bBetter tool calls on Gemma 4 E2B/E4B too. gemma4-it:e2b and gemma4-it:e4b now render tool calls and tool results in Gemma 4's own format. Before, FLM turned them into a JSON blob the model wasn't trained on. Prompts now match Hugging Face's template on all 14 test cases, up from 2.
✨ New Features
🗂️ Prefix Cache for Every Chat Model (Multi KV cache slots)
Until now, FLM reused a cached prompt only when the new prompt continued the last one. If an agent sent a side call (a title, a summary) or another conversation ran in between, the next request prefilled everything again.
In v1.0.11, flm serve keeps up to 8 saved prompts in host memory and resumes from the longest one that matches the start of the new prompt. FLM also saves the end of the system prompt and tools as its own snapshot, so different conversations that share them all reuse it. Images are matched by content, so a conversation with a picture resumes too.
Time to first token, cold vs. cached:
| Model | Prompt | Cold | Cached |
|---|---|---|---|
gemma4-it:12b |
2.2k tokens | 9.3 s | 1.7 s |
gpt-oss:20b |
2.1k tokens | 7.7 s | 1.5 s |
gemma3:4b |
2.2k tokens | 3.3 s | 1.0 s |
minicpm-v-4.7:1b |
1.6k tokens, with a picture | 1.3 s | 0.2 s |
qwen3.8-mtp:27b |
1.3k tokens (shared system prompt only) | 16.5 s | 3.6 s |
On Qwen3.5-4B, four rotating 15k-token conversations take 1.7–2.1 s per turn instead of 27 s.
Covered models: Qwen3.5, Qwen3.6-MoE, Qwen3, Qwen3-VL, Qwen2.5 and Qwen2.5-VL, Llama 3.x, DeepSeek-R1 (both 8B models), Phi-4-mini, Nanbeige, LFM2 / LFM2.5, LFM3, gpt-oss and gpt-oss-safeguard, Gemma 3 (and MedGemma, TranslateGemma), Gemma 4, Nemotron 3.5 Bolt, MiniCPM-V 4.7. Qwen3.8-27B (MTP) keeps only the shared system prompt and tools.
Not covered:
- the single-turn
*-flashmodels; flm runand the Ollama endpoints (/api/chat,/api/generate), which keep the older reuse. A request on an Ollama endpoint also empties the prefix cache.
Options:
| Option | Default | What it does |
|---|---|---|
--prefix-slots N |
8 (max 32, 0 = off) |
How many prompts to keep |
--prefix-cache-mb N |
4096 | Host memory budget for saved prompts |
--prefix-min-gain N |
128 | Save a prompt only if it adds at least N tokens over a saved prompt that already covers it |
You can also turn the cache off with FLM_DISABLE_PREFIX_SLOTS=1.
Checking it works:
usage.prompt_tokens_details.cached_tokensshows how many tokens were reused.- A new
usage.flm_prefix_cacheobject, and one server log line per cache decision, tell you which slot was used and why a request missed. - Cancelling a request or clearing the context no longer throws away other conversations' saved prompts.
📊 OpenAI API: logprobs, seed, continue_final_message and repeat_last_n
logprobs and top_logprobs on /v1/chat/completions, streamed or not, as in the OpenAI API:
top_logprobsaccepts 0 to 100.- The values come from the model before penalties, constraints, temperature and top-k/p are applied. This matches OpenAI and vLLM.
- Only
contenttokens get entries. Reasoning, tool calls and template markup get none. qwen3.8-mtpis supported too, speculated tokens included. Its logprobs can differ slightly from plain decoding. SetFLM_DISABLE_SPECULATION=1to compare.
seed is now applied on /v1/chat/completions and /v1/completions. The same request with the same seed gives the same text. To make this hold:
- the engines now clear the KV cache fully between prompts;
gpt-oss:20b's Windows prefill now gives the same result on every run.⚠️ This makes shortgpt-oss:20bprompts on Windows a little slower to start, about +11% at 91 tokens. Long prompts are unchanged.
continue_final_message: true (the same field as in vLLM) continues a partial assistant message instead of starting a new reply. Combined with max_tokens: 1 and logprobs, you can score a classification or multiple-choice answer through the model's own chat template:
{"messages": [
{"role": "user", "content": "Is Paris the capital of France? Answer yes or no."},
{"role": "assistant", "content": "The answer is:"}],
"continue_final_message": true, "max_tokens": 1, "logprobs": true, "top_logprobs": 5}- It works on every multi-turn model except gpt-oss.
- Single-turn models, gpt-oss, and requests it can't serve return a 400. That includes a last message that isn't from the assistant, forced JSON or tool calls, and
add_generation_prompt: true.
repeat_last_n sets how many generated tokens the presence, frequency and repetition penalties look at. It is an FLM extension with the same name as in llama.cpp and Ollama. -1 is the whole reply and 0 turns the penalties off. The default is still 64.
🐛 Bug Fixes
max_tokenswas off by one.max_tokens: Nproduced N+1 tokens whileusage.completion_tokensreported N. This is fixed for every model, the MTP speculative loop included.- The prompt cache can no longer skip or repeat a token. A token cut off by `max_...
🚀 FastFlowLM v1.0.10 — Constrained Decoding & More Accurate Whisper
This release does three things:
- Reasoning, tool calls and structured output are handled one way for every model on
/v1/chat/completions. tool_choiceandresponse_formatare enforced while the model generates, not just requested.- Whisper transcription is more accurate, and
/v1/audio/transcriptionsnow supportslanguage,promptandresponse_format.
It also fixes several flm serve bugs, including Lemonade failing to launch FLM on Linux.
✨ New Features
🧩 OpenAI API: Shared Chat Parsing and Constrained Decoding
Every model writes its answer in its own markup. Qwen3 uses <think> and <tool_call>, Gemma 4 uses a thought channel and call:f{…}, GPT-OSS uses Harmony channels, and LFM2 writes Python calls. Until now each model had its own parser for this. In v1.0.10, one shared parser handles all of them, so /v1/chat/completions returns the same OpenAI-shaped message whatever the model:
reasoning_content,contentandtool_callsare split the same way for every model, streamed or not.- The streamed deltas add up to exactly the non-streamed reply.
- Tool-call markup counts as a call only when the request includes
tools. A reply that is only tool calls hascontent: null, as in the OpenAI API.
Constrained decoding. Before each token is sampled, FLM works out which tokens can still lead to valid output and rules out the rest. This uses xgrammar. The model can't misspell a tool name, give an argument the wrong type, leave out a required field, or wrap your JSON in a Markdown fence. You control it with the standard OpenAI request fields:
| Field | What FLM enforces |
|---|---|
tool_choice: "none" |
No tool call |
tool_choice: "auto" |
Any tool call is well-formed and names a real tool |
tool_choice: "required" |
At least one tool call |
tool_choice: {"type": "function", ...} |
A call to that function |
parallel_tool_calls |
One call or several |
response_format: {"type": "json_object"} |
Valid JSON |
response_format: {"type": "json_schema", ...} |
JSON that matches your schema |
Bad values return a clear 400 error instead of being ignored. This covers a malformed tool_choice, an unknown function name, "required" with no tools, and a schema that can't be compiled. Small models that don't see tools in their prompt (Qwen3 up to 1.7B, Qwen3.5 0.8B) also return a 400 for a forced tool call, instead of making up a call to a tool they never saw.
When the model's thinking is off, it can no longer slip its answer into a reasoning block. It answers directly in the requested format.
Coming later: a grammar request field, so you can pass your own grammar for output that isn't JSON (for example, digits only or a fixed set of labels). The constrained-decoding engine in this release already supports this. Only the API field is still to come.
Other API changes:
- Streaming usage now follows OpenAI. A streamed response carries
usageonly when the request setsstream_options: {"include_usage": true}. In that case the usage comes in one final chunk before[DONE].⚠️ If your client readusagefrom streamed responses, addinclude_usage. nullrequest fields are treated as unset. Some OpenAI clients sendnullfor every option they leave out. Before, this could return a 400 or 500 error, for example forparallel_tool_calls: nullortool_choice: null.
New docs:
🎙️ Audio Transcription: /v1/audio/transcriptions
PR #794, by community contributor @quine00
The endpoint used to read only model and file. It now honors the other OpenAI parameters:
language(ISO 639-1, for exampleen,zh). Use it to skip language detection. An unknown code returns a 400 instead of falling back silently.prompt. Prior text that guides spelling and style, such as names and terms. It is applied the same way as in openai-whisper.response_format.json(the default, unchanged),text,srt,vttandverbose_json.verbose_jsonreturns segments with timestamps, the detected language and the clip duration.text,srtandvttare returned astext/plain.
Privacy: transcripts are no longer printed to the server log by default. Under a service manager, dictated speech used to end up in the system journal. To log them again, set FLM_LOG_RAW_OUTPUT.
🐛 Bug Fixes
🎯 Whisper Transcribes More Accurately
PR #794, by community contributor @quine00
The Whisper decode loop now behaves like OpenAI's reference Whisper:
- Long sentences are no longer cut mid-word. FLM forced a timestamp after every 16 text tokens, which often ended the segment early. On 82 English clips, this fix alone took the word error rate from 7.2% to 3.1%.
- The language token is fed to the decoder, as Whisper expects. Before, it was detected but never passed back.
- Whisper's timestamp rules are applied, and
<|30.00|>is now treated as a timestamp. Segments no longer start late or get text after a closing timestamp. - Audio over 30 seconds no longer repeats text at window boundaries, or repeats the same timestamp several times in a row.
- The Whisper engine and kernels were rebuilt for accuracy. Padding is now masked, rounding is fixed, and the exact GELU is used. On the ASR test set, a
promptthat repeats words from the audio no longer drops the start of the transcript. The model weights are unchanged.
🖥️ Server Fixes
PR #783, PR #820, PR #821, PR #823
- Lemonade can launch FLM on Linux again. In v1.0.8 and v1.0.9, an NPU that couldn't be opened produced
[ERROR] No NPU device availableand[ERROR] NPU device instance is nullptr, instead of the cleanError: mmap(...) failedmessage. This broke Lemonade's launch of FLM. The v1.0.7 behavior is restored forflm run,flm serveandflm bench. - Streams no longer hang on cut-off UTF-8. If a reply hit
max_tokensor was cancelled partway through a multi-byte character (CJK text, emoji), the stream never ended and the client waited until its own timeout. Now the incomplete character is dropped. An error after streaming has started is sent as an error event followed by[DONE]. - Switching models in one
flm serveprocess is reliable.- A failed switch no longer leaves a half-loaded model behind.
- The prefill chunk size is set for each model, not taken from the first one loaded.
- Aliases no longer reload the model on every request.
- Multi-turn conversations no longer restore a stale prompt cache after a reload.
🙌 Community Contributions
Thank you to everyone who contributed to this release:
- @quine00 reworked the Whisper decode loop and added
language,promptandresponse_formatto/v1/audio/transcriptions(PR #794).
Several community PRs found these same problems and proposed fixes before this release. Their changes weren't merged as-is, because the code they touched was rewritten in v1.0.10. Their reports and fixes shaped what shipped:
- @Anjielon found Whisper's forced timestamp after 16 tokens cutting transcriptions short (PR #699).
- @ademasi proposed
verbose_jsonand forwarding the multipart fields on/v1/audio/transcriptions(PR #510). - @hvico proposed grammar-constrained sampling with GBNF grammars, the first constrained decoding for FLM (PR #487). v1.0.10 builds constrained decoding on xgrammar instead, and a
grammarrequest field like the one in this PR is planned. - @waw2637 proposed enforcing the OpenAI
tool_choicecontract andstream_options.include_usage(PR #650). - @Javinator9889 found the think block leaking into
contentin non-streaming responses (PR #740). - @AshtonVaughan found tool-call arguments losing their closing brace (PR #531).
🌟 Summary
| Highlight | |
|---|---|
| 🧩 | One parser for reasoning and tool calls across all models on /v1/chat/completions |
| 🔒 | tool_choice and response_format (JSON / JSON Schema) enforced by constrained decoding |
Streamed usage now needs stream_options.include_usage |
|
| 🎙️ | /v1/audio/transcriptions supports language, prompt and response_format (text, srt, vtt, verbose_json) |
| 🎯 | More accurate Whisper: no mid-sentence cutoffs, correct timestamps, no repeated text on long audio |
| 🔐 | Transcripts no longer written to the server log by default |
| 🐧 | Lemonade can launch FLM on Linux again |
| 🖥️ | No more hung streams on cut-off UTF-8, and reliable model switching in flm serve |
Thanks for your support — see you in the next one! 🚀
🚀 FastFlowLM v1.0.9 — `flm validate` Fix
This is a maintenance release. It fixes flm validate on Linux, which wrongly reported "No NPU device found." in v1.0.8.
🐛 Bug Fixes
✅ flm validate Finds the NPU Again on Linux
In v1.0.8, flm validate on Linux printed "No NPU device found." and exited with status 1, even on systems where the NPU worked fine and flm run and flm serve had no problems.
The cause: since v1.0.8, flm opens the NPU device at startup, before it runs any command. flm validate then tried to open the same /dev/accel/accel* device a second time to check it. The amdxdna driver allows only one open of a device per process, so the second open failed with EBUSY. The check skipped busy devices without saying anything, so it found no device at all.
What changed:
flm validatenow runs beforeflmopens the NPU, so its check gets the device.- If a device node is busy,
flm validatenow reports it (device busy) instead of skipping it silently. The--jsonoutput marks it with"busy": true.
If you run flm validate in a setup script or CI job, upgrade to get the right result back.
📦 MSI Installer: Uninstall v1.0.8 First
The v1.0.8 MSI (flm-setup.msi) was published with the wrong version number. Windows registered it as version 8 instead of 1.0.8, so it shows up as "8" in Installed apps. Because 8 is higher than 1.0.9, the v1.0.9 MSI treats v1.0.8 as a newer install and stops with "A newer version of flm is already installed."
If you installed v1.0.8 with the MSI, uninstall FLM from Settings → Apps → Installed apps first, then run the v1.0.9 MSI. Your downloaded models are kept. The v1.0.9 MSI has the right version number, so later upgrades will work normally again.
This only affects the MSI. The portable .zip packages and the Linux packages are not affected.
🌟 Summary
| Highlight | |
|---|---|
| ✅ | flm validate on Linux finds the NPU again, instead of reporting "No NPU device found." (broken in v1.0.8) |
| 📦 | If you installed v1.0.8 with the MSI, uninstall it before running the v1.0.9 MSI |
Thanks for your support — see you in the next one! 🚀
Release v1.0.8
This release adds minicpm-v-4.7:1b, a 1B vision-language model with toggleable thinking and tool calling. It also opens up the source of the Gemma 4 engine, so you can build it yourself and swap individual operators through new override hooks. And for the first time, the release ships HRX packages as a preview: builds of FastFlowLM that run on the HRX NPU runtime instead of XRT.
📦 New Model Support
👁️ MiniCPM-V-4.7-1B
FastFlowLM now supports minicpm-v-4.7:1b, a compact image-text-to-text model from OpenBMB, with toggleable thinking and tool calling.
- Tag:
minicpm-v-4.7:1b - Context: 32k by default, up to 256k
Run in CLI mode:
flm run minicpm-v-4.7:1bRun in server mode:
flm serve minicpm-v-4.7:1b🖼️ How It Sees Images
MiniCPM-V-4.7 handles images the same way the original MiniCPM-V does:
- The model always sees a downscaled view of the whole image. Large images are also split into up to 9 tiles of about 448 × 448 pixels each.
- Image TTFT stops growing at about 1080p. From that size up, every image uses the maximum 9 tiles, so a 4K image costs about the same as a 1080p one. Very fine detail in large images is downscaled.
--img-pre-resize(-r) has no effect on this model, because the tiling already decides the input resolution.- Video and audio input are not supported.
🎛️ MiniCPM-V does not ship its own sampling defaults. FLM starts from temperature 0.7, top_p 0.8, top_k 20 and presence penalty 1.5. These are the Qwen3.5 non-thinking defaults, because MiniCPM-V-4.7-1B's language model has the same architecture as Qwen3.5-0.8B.
For more details, see the model card and benchmark results.
🔓 The Gemma 4 Engine Is Now Open Source
Until now, every model engine in FastFlowLM shipped only as a prebuilt library. In this release the source of the Gemma 4 E2B/E4B engine is public. It covers the text decode and prefill paths, the vision encoder and the audio encoder, plus the shared host code they depend on. You can now read exactly how each Gemma 4 operator is dispatched to the NPU, and build the engine yourself. The other engines, including the Gemma 4 flash and 12B variants, still ship prebuilt.
🛠️ Build It from Source
Source builds are opt-in. By default, FLM still links the prebuilt engine, so nothing changes unless you ask for it.
Linux:
cd src
cmake --preset linux-default -DFLM_BUILD_GEMMA4E=ON
cmake --build buildWindows (developer command prompt):
cd src
cmake --preset windows-default -DFLM_BUILD_GEMMA4E=ON
cmake --build buildThe source-built library goes into the build tree and does not overwrite the prebuilt one. CMake caches the option, so to switch back, reconfigure with -DFLM_BUILD_GEMMA4E=OFF or use a fresh build directory.
| Option | Default | Effect |
|---|---|---|
FLM_BUILD_GEMMA4E |
OFF |
Build the Gemma 4 engine from src/detail/ instead of using the prebuilt one |
FLM_ENGINE_NATIVE_ARCH |
OFF |
Add -march=native. The result only runs on CPUs like the build machine, so do not redistribute it |
FLM_ENGINE_VERBOSE |
0 |
Logging level for the source-built engine |
FLM_ENGINE_DEBUG_LEVEL |
0 |
Debug level for the source-built engine |
FLM_OVERRIDE_FLAGS |
empty | Extra compile flags for operator overrides (see below) |
Source builds work on Linux, Windows and the HRX backend. CI now builds and sweep-tests a source-built Gemma 4 package on both Linux and Windows.
🧩 Operator Override Hooks for IRON
Every Gemma 4 operator dispatch (52 sites across text, vision, audio and weight preload) is now wrapped in an FLM_OVERRIDE annotation. In a normal build the annotation expands to the original call, so the generated code is identical. To change that, point FLM_OVERRIDES at a header of your own, and that header can replace any operator by name. For example, it can run a kernel written with IRON in place of the stock one. Pass the define through FLM_OVERRIDE_FLAGS.
This lets you try a new NPU kernel inside a full Gemma 4 model without forking the engine. See src/include/flm_override.hpp for the details.
For the full build instructions, see the Linux install guide.
🧪 HRX Packages (Preview)
FastFlowLM can run on two NPU runtimes: XRT (the default) and HRX, the amdxdna runtime. Starting with this release, HRX builds are published as a preview, next to the standard ones:
| Platform | Asset |
|---|---|
| 🐧 Linux | HRX_fastflowlm_1.0.8_linux.tar.gz |
| 🪟 Windows | HRX_fastflowlm_1.0.8_windows_amd64.zip |
Each HRX package bundles the HRX runtime and HRX builds of the model engines. The HRX packages cover the same model lineup as the standard ones, including MiniCPM-V-4.7, Gemma 4 and Qwen3.8-27B. They are tested on every pull request by the same model sweep as the standard packages.
Installing works exactly like the standard portable packages: download the HRX asset for your platform and install it the same way you would install fastflowlm_1.0.8_linux.tar.gz or fastflowlm_1.0.8_windows_amd64.zip.
⚠️ HRX is a preview. Expect rough edges, and please open an issue if something works on the standard package but not on the HRX one. The standard XRT packages and installers are unchanged; if you are not sure which one you need, keep using the standard package.
🌟 Summary
| Highlight | |
|---|---|
| 📦 | New model: MiniCPM-V-4.7-1B (minicpm-v-4.7:1b). Vision-language, toggleable thinking, tool calling, up to 256k context |
| 🔓 | Gemma 4 E2B/E4B engine source is public. Build it with -DFLM_BUILD_GEMMA4E=ON; the prebuilt engine stays the default |
| 🧩 | FLM_OVERRIDE hooks on every Gemma 4 operator, so IRON kernels can stand in for the stock ones |
| 🧪 | HRX packages (preview) for Linux and Windows: FastFlowLM on the HRX NPU runtime, shipped next to the standard XRT builds |
Thanks for your support — see you in the next one! 🚀
🚀 FastFlowLM v1.0.7 — Qwen3.8-27B with Speculative Decoding
This release adds qwen3.8-mtp:27b — the largest dense model FastFlowLM has shipped to date, and the first to run speculative decoding on the NPU through its built-in MTP draft head. It also renames hy-mt2:1.8b to hy-mt2-flash:1.8b to match the flash naming convention, and picks up four community fixes to the OpenAI usage contract, CLI exit codes, flm validate, and a stray file in the release packages.
📦 New Model Support
🧠 Qwen3.8-27B
FastFlowLM now supports qwen3.8-mtp:27b, a 27B reasoning model with tool calling — the largest dense model FastFlowLM has shipped, and the first to run speculative decoding on the NPU through its built-in MTP draft head.
- Tag:
qwen3.8-mtp:27b
Run in CLI mode:
flm run qwen3.8-mtp:27bRun in server mode:
flm serve qwen3.8-mtp:27b💾 This is by far the largest dense model FastFlowLM has shipped. Check that you have the disk space for the pull and enough system memory to hold it resident before running it.
⚡ What MTP Speculative Decoding Means
Qwen3.8 ships with a multi-token prediction (MTP) head — a small draft model trained alongside the main network. FastFlowLM now puts it to work:
- The MTP head drafts several candidate tokens in one shot.
- The full model verifies them in a single pass.
- Accepted drafts are kept; the first rejected one is replaced by the base model's own choice, and drafting restarts from there.
The practical consequences:
- Faster decoding, same output. Verification is an exact compare against what the base model would have emitted, so every token you receive is a token the base model would have produced on its own. Speculation changes throughput, not quality.
- Gains are prompt-dependent. Predictable, low-entropy stretches — code, structured output, long reasoning chains — see the highest draft acceptance. Highly creative or surprising text accepts fewer drafts and converges toward ordinary decode speed.
- Nothing to configure. Speculation is driven by the engine; there is no flag to set and no API change.
Every other model is unaffected — speculation is opt-in at the engine level, so the rest of the lineup decodes exactly as it did in v1.0.6.
For model details, context limits, and measured speedups, see the model card and benchmark results.
🔄 hy-mt2:1.8b → hy-mt2-flash:1.8b
The multilingual translation model introduced in v1.0.5 became single-turn in v1.0.6. Its name now says so: it is hy-mt2-flash:1.8b.
This is a rename only — same weights, same 1k context, same single-turn behavior, same translation quality. It simply brings the tag in line with gemma4e-flash and qwen3vl-flash, so that "flash" consistently signals the same contract: single-turn, fixed context, optimized kernels.
Action required: update any script, config, or client that pins the old tag.
- flm run hy-mt2:1.8b
+ flm run hy-mt2-flash:1.8b- "model": "hy-mt2:1.8b"
+ "model": "hy-mt2-flash:1.8b"The recommended prompt shape from the v1.0.5 guide is unchanged:
{"role": "system", "content": "将以下文本翻译为英语,注意只需要输出翻译后的结果,不要额外解释。输出必须全部使用英语,不要输出源语言或原文"},
{"role": "user", "content": "{TEXT}"}For more details, see the model card and benchmark results.
🐛 Fixes from the Community
Four fixes in this release came from outside contributors. Thank you — these are exactly the kind of sharp, well-scoped reports that make the project better. 🙏
📊 OpenAI usage Now Reports the Full Prompt Length
PR #729 — thanks to @Javinator9889 (Javier Alonso)
The prompt cache strips the matching prefix before prefill, so usage.prompt_tokens was reporting only the newly evaluated suffix rather than the whole input. The first turn of a conversation looked correct; every turn after that reused the history as a cached prefix and reported just the new message.
That broke agentic front-ends badly. Tools like OpenCode size their context from usage.prompt_tokens, so the context appeared to reset on every request — built-in compaction never triggered, and the client eventually hit a context overflow, re-fed the conversation, and overflowed again in a loop.
What changed:
usage.prompt_tokensnow counts the entire input, cached prefix included — matching the OpenAI specification.usage.prompt_tokens_details.cached_tokensis now exposed on the OpenAI endpoints, so clients can see how much of that input was served from cache.prefill_speed_tpsnow divides by the tokens actually evaluated, so a cache hit no longer inflates the reported prefill speed.- Ollama-compatible
prompt_eval_countis unchanged — it continues to report evaluated tokens only, matching upstream Ollama.
If you drive FLM from an agent framework that manages its own context window, this is the fix to upgrade for.
↩️ flm help, flm version, and flm port Now Exit 0
PR #723 — thanks to @jtuyls (Jorn Tuyls)
These three commands succeeded and then exited with status 1, because they stopped argument parsing the same way a usage error does. Any script, CI job, or shell with set -e that ran flm version treated a perfectly good invocation as a failure.
They are now handled as successful commands — and handled before the model list is loaded, so flm help and flm version no longer pay that startup cost. Genuine usage errors still exit 1.
✅ flm validate No Longer Hard-Checks the Kernel Version
PR #738 — thanks to @superm1 (Mario Limonciello)
flm validate required kernel 6.17 or newer. Several distributions backport the NPU driver to considerably older kernels, so working setups were being reported as invalid.
The check is now removed. Validation already checks the firmware version, which implicitly requires a recent enough driver — making the kernel version test both redundant and wrong for backported kernels.
🧹 Stray Backup File Removed from the Release Packages
src/lib/xrt/libq4_npu_eXpress.so.bak-20260826 — a backup copy of a shared library — was committed by accident and had been shipping inside the release packages, despite being used by neither the build nor the executable. It has been deleted, so the Linux artifacts are a little smaller.
🙏 Acknowledgements
| Contributor | Contribution |
|---|---|
| @Javinator9889 | #729 — full prompt length in OpenAI usage |
| @jtuyls | #723 — exit 0 for help, version, and port |
| @superm1 | #738 — drop the kernel check in flm validate |
| @yorickvP | #747 — remove the stray .so.bak file |
🌟 Summary
| Highlight | |
|---|---|
| 📦 | New model: Qwen3.8-27B (qwen3.8-mtp:27b) — reasoning and tool calling, the largest dense model FastFlowLM has shipped |
| ⚡ | First model with MTP speculative decoding: a draft head proposes, the full model verifies — faster decode, identical output |
| 🔄 | hy-mt2:1.8b renamed to hy-mt2-flash:1.8b — rename only; update pinned tags |
| 📊 | usage.prompt_tokens reports the full input, cached_tokens is now exposed, and prefill_speed_tps is no longer inflated by cache hits |
| ↩️ | flm help, flm version, and flm port exit 0 instead of 1 |
| ✅ | flm validate no longer rejects backported kernels older than 6.17 |
| 🧹 | Stray .so.bak backup file removed from the release packages |
Thanks for your support — see you in the next one! 🚀
🚀 FastFlowLM v1.0.6 — Flash Models, tool_choice, and Tool-Call Fixes
This release introduces three flash models — kernel-optimized runtimes over the existing weights, so no re-download is needed — makes hy-mt2:1.8b single-turn, adds tool_choice support in server mode, fixes a tool-call finish_reason bug, and changes where the MSI installer writes FLM_MODEL_PATH.
⚡ New Flash Models
FastFlowLM now supports three flash models. These are not new checkpoints — they run the same weights as their standard counterparts through optimized kernels, so there is no weights update and nothing new to download:
| Tag | Prefill @ 128 ctx | Model card |
|---|---|---|
gemma4e-flash:e2b |
~390 tokens/s | Gemma 4 E2B-IT · Flash |
gemma4e-flash:e4b |
~256 tokens/s | Gemma 4 E4B-IT · Flash |
qwen3vl-flash:4b |
~350 tokens/s | Qwen3-VL 4B-Instruct · Flash |
Run in CLI mode:
flm run gemma4e-flash:e2bRun in server mode:
flm serve qwen3vl-flash:4b📖 What "Flash" Means
Flash models trade multi-turn flexibility for speed: the same weights run through optimized kernels, under a set of constraints that make those kernels possible. Please note the following behavior before deploying them:
- Same weights, no re-download. Flash models reuse the weights you already have — no
flm pullrequired. - Single-turn only. Any request containing an assistant message is rejected. Send a system prompt (optional) and a single user message.
- System KV cache supported. The system prompt is prefilled once and reused across requests, so repeated calls sharing a system prompt skip that prefill cost.
- 1k maximum context length. Requests over 1k tokens are rejected with a warning — they are not silently truncated. Size your prompts accordingly.
🖼️ Image & Audio Handling
Flash models apply a fixed media budget. No per-request tuning is required — oversized input is reduced automatically rather than rejected:
| Model | Images | Audio |
|---|---|---|
qwen3vl-flash:4b |
Resized so the longer side is 256 pixels | Not supported |
gemma4e-flash:e2b / :e4b |
Resized to 70 tokens | Truncated to the first 30 seconds |
⚠️ Note the difference from the context limit: oversized media is silently reduced (images downscaled, audio cut at 30 s), while an over-1k prompt is rejected outright. Audio longer than 30 seconds will not raise an error — the model simply never sees the remainder, so split long clips yourself if you need full coverage.
🐍 Example: Python + OpenAI SDK (Streaming)
Flash models speak the standard OpenAI chat-completions API, so the official openai Python client works as-is — just point it at your local FLM server.
pip install openai
flm serve gemma4e-flash:e2bVision, streaming, with a pinned system prompt:
Below, the same system prompt is pinned across requests that each caption a different image. The system-prompt KV is prefilled once on the first request; every request after that reuses it, so only the new image and text need to be prefilled — expect noticeably lower latency from the second request onward.
import time
import base64
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:52625/v1",
api_key="dummykey", # FLM runs locally; the key is not checked
)
# Keep everything fixed in the system prompt — it is prefilled once and
# reused across requests. Vary only the user message and image.
SYSTEM_PROMPT = "You are a concise assistant. Describe the image in one short sentence."
image_paths = [
r"C:\Users\info\OneDrive\Desktop\FLM\image_test\image0.jpg",
r"C:\Users\info\OneDrive\Desktop\FLM\image_test\image1.png",
]
for path in image_paths:
with open(path, "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("utf-8")
print(f"\n> {path}")
start = time.time()
stream = client.chat.completions.create(
model="qwen3vl-flash:4b",
messages=[
{"role": "system", "content": SYSTEM_PROMPT}, # same every time — its KV is cached after the first call
{
"role": "user",
"content": [
{"type": "text", "text": "Describe this image."},
{"type": "image_url", "image_url": {"url": f"data:image/jpg;base64,{image}"}},
],
},
],
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="", flush=True)
print(f"\n[time to first response: {time.time() - start:.2f}s]")
# 1st image: pays the full system-prompt prefill cost.
# 2nd image onward: system-prompt KV is reused from cache — expect lower latency.
# cleanup
del stream, client
import gc
gc.collect()Vision, streaming:
Serve the vision flash model with flm serve qwen3vl-flash:4b, then pass an image as a base64 data URL. Resizing is automatic, so there is no need to downscale beforehand:
import base64
from openai import OpenAI
image_path = r"C:\path\to\image.png" # <-- edit this
client = OpenAI(base_url="http://127.0.0.1:52625/v1", api_key="dummykey")
with open(image_path, "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("utf-8")
stream = client.chat.completions.create(
model="qwen3vl-flash:4b",
messages=[
{"role": "system", "content": "Describe images in one sentence."},
{
"role": "user",
"content": [
{"type": "text", "text": "What is in this image?"},
{
"type": "image_url",
"image_url": {"url": f"data:image/png;base64,{image}"},
},
],
},
],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()Note: the image counts against the same 1k context budget as your text. Keep prompts short when sending an image.
Audio, streaming:
Audio goes to the same endpoint with the same message structure — only the content part changes. Use a gemma4e-flash model, since qwen3vl-flash:4b does not accept audio:
import base64
from openai import OpenAI
audio_path = r"C:\path\to\audio.wav" # <-- edit this
client = OpenAI(base_url="http://127.0.0.1:52625/v1", api_key="dummykey")
with open(audio_path, "rb") as audio_file:
audio = base64.b64encode(audio_file.read()).decode("utf-8")
stream = client.chat.completions.create(
model="gemma4e-flash:e2b",
messages=[
{"role": "system", "content": "Transcribe and summarize audio briefly."},
{
"role": "user",
"content": [
{"type": "text", "text": "What is said in this clip?"},
{
"type": "input_audio",
"input_audio": {"data": audio},
},
],
},
],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()
⚠️ Only the first 30 seconds are processed. Longer clips are truncated without an error, so split them client-side if you need full coverage.
Audio + image in one request:
gemma4e-flash accepts both in the same content array, so a single call can reason over audio and an image together:
import base64
from openai import OpenAI
audio_path = r"C:\path\to\audio.wav" # <-- edit this
image_path = r"C:\path\to\image.png" # <-- edit this
client = OpenAI(base_url="http://127.0.0.1:52625/v1", api_key="dummykey")
with open(audio_path, "rb") as audio_file:
audio = base64.b64encode(audio_file.read()).decode("utf-8")
with open(image_path, "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("utf-8")
stream = client.chat.completions.create(
model="gemma4e-flash:e2b",
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "Finish two tasks: 1. Summarize the audio. 2. Describe the image."},
{
"type": "input_audio",
"input_audio": {"data": audio},
},
{
"type": "image_url",
"image_url": {"url": f"data:image/png;base64,{image}"},
},
],
}
],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()🔄 hy-mt2:1.8b Is Now Single-Turn
hy-mt2:1.8b, the multilingual translation model added in v1.0.5, is now a single-turn model as well. Like the flash models, it rejects any request containing an assistant message.
This matches how a dedicated translation model is actually used: every translation is independent, and prior turns add prefill cost without improving the result.
What this means for you: if you were replaying conversation history back to hy-mt2:1.8b, remove it — send only the instruction and the source text. The recommended shape from the v1.0.5 prompt guide is unchanged and remains the best option:
{"role": "system", "content": "将以下文本翻译为英语,注意只需要输出翻译后的结果,不要额外解释。输出必须全部使用英语,不要输出源语言或原文"},
{"role": "user", "content": "{TEXT}"}
``...🚀 FastFlowLM v1.0.5 — Hy-MT2-1.8B
This release adds support for a new model, Hy-MT2-1.8B — a small, quick, multilingual translation model — and fixes a flm bench bug causing degraded performance when benchmarking from long context down to short context.
📦 New Model Support
🌐 Hy-MT2-1.8B
FastFlowLM now supports hy-mt2:1.8b, a small and quick multilingual translation model.
- Tag:
hy-mt2:1.8b
Run in CLI mode:
flm run hy-mt2:1.8bRun in server mode:
flm serve hy-mt2:1.8b📖 Prompt Guide
Prompt Format
Hy-MT2 is a dedicated translation model, not a general-purpose chat model — it has no default system prompt. There are two ways to prompt it:
Option 1: instruction + text in a single user message
将以下文本翻译为{TARGET_LANG},注意只需要输出翻译后的结果,不要额外解释:
{TEXT}
or, in English:
Translate the following segment into {TARGET_LANG}, without additional explanation.
{TEXT}
Option 2: instruction as the system prompt, text as the user message
Pin the translation instruction as the system prompt so it isn't re-prefilled every turn, then send only the source text as the user message:
{"role": "system", "content": "将以下文本翻译为英语,注意只需要输出翻译后的结果,不要额外解释。输出必须全部使用英语,不要输出源语言或原文"},
{"role": "user", "content": "{TEXT}"}This is the recommended format in server mode for multi-turn or repeated translation calls (e.g. batch translating subtitle lines), since the instruction's prefill cost is paid once instead of once per request.
For more details, see the model card and benchmark results.
🐛 Bug Fix: flm bench Performance Degradation Across Context Lengths
Fixed a bug in flm bench where running benchmarks from long context down to short context resulted in progressively poorer performance numbers.
🌟 Summary
| Highlight | |
|---|---|
| 📦 | New model: Hy-MT2-1.8B (hy-mt2:1.8b) — small, quick, multilingual translation model |
| 🐛 | Fixed flm bench performance degradation when benchmarking from long context to short context |
Thanks for your support — see you in the next one! 🚀