LFM3-1.7B Flash
Local agents are slow for a boring reason: the model loop, not the tools. Ask a 1.7B model for three facts and it usually takes three turns, one call each, re-reading the conversation every time and writing another paragraph of reasoning before the next call.
LFM3 Flash is LiquidAI/LFM3-1.7B fine-tuned to break that loop. When a request needs several independent lookups, it writes all of them into one assistant turn. A small executor runs the calls at the same time, returns the results together, and the model answers from them. Calls that genuinely depend on an earlier result still wait.
On 254 held-out tasks it finishes more of them than the base model while generating 72% fewer tokens. That is the whole point: fewer turns, less text, lower latency on the same 8 GB card.
Results
Same harness, same f16 weights, greedy decoding, RTX 2070 Max-Q. 254 tasks from a synthetic maintenance environment.

| base | run1 | Flash (run2) | |
|---|---|---|---|
| success | 236/254 (92.9%) | 230/254 (90.6%) | 245/254 (96.5%) |
| model turns per task | 2.64 | 2.06 | 2.43 |
| tool calls per task | 3.40 | 2.45 | 2.94 |
| generated tokens per task | 494.6 | 118.7 | 138.6 |
| median latency | 5.69 s | 1.84 s | 1.94 s |
| dependency violations | 0 | 0 | 0 |
Paired against the base on the same tasks: +3.2 points, 95% CI −0.4 to +6.8.
The gain is not uniform, and the family breakdown is more useful than the average.

Flash recovers injected tool failures better (24/24 against 17/24), finishes every sequential task (21/21 against 19/21) and matches the base on independent batches at 74/74. Arithmetic and unit conversion stay three tasks behind (71/77 against 74/77), because those are the easiest places to skip the tool and guess. Both models fail the two conflicting-evidence tasks.
Run1 is the first attempt, kept in the table because it isolates one change. It learned to do arithmetic in its head, badly, because the demonstrations did. Regenerating every arithmetic demonstration to call a calculator moved mixed from 59/77 to 71/77 and removed a retry loop on missing records. Same base model, same harness, fixed data.
The test split was used once to compare the base with run1, so Flash's test number is a confirmation on an already-observed split. Before that run, Flash had to pass a separate 60-task development gate: 56/60 against 52/60 for the base, with arithmetic back to the base level.
Quantisations
Converted from the merged f16 checkpoint with llama.cpp b12374. The quantisation check is five tasks: independent calls, a dependent lookup, no tool, a state change and injected failure recovery. Q4_K_M was then downloaded from the Hub and passed the six-task smoke suite, which adds an empty-result case.
| file | size | smoke suite |
|---|---|---|
lfm3-1.7b-flash-Q4_0.gguf | 0.98 GiB | 5/5 |
lfm3-1.7b-flash-Q4_K_M.gguf | 1.02 GiB | 6/6 |
lfm3-1.7b-flash-Q5_K_M.gguf | 1.17 GiB | 5/5 |
lfm3-1.7b-flash-Q8_0.gguf | 1.72 GiB | 5/5 |
lfm3-1.7b-flash-f16.gguf | 3.23 GiB | reference |
Q4_0 was the fastest in that check at 1.14 s median, Q8_0 the slowest at 1.31 s. That tests that the call format survives quantisation, not task accuracy. The evaluation used f16.
Running it
llama-server -m lfm3-1.7b-flash-Q4_K_M.gguf \
--host 127.0.0.1 --port 8080 -c 8192 -ngl 99
Render the checkpoint's own chat template and send the prompt to /completion, not the chat endpoint. The chat handler may apply its own tool parser, and that parser can stop after the first call.
One turn looks like this:
<|im_start|>assistant
<think>Look up both records in parallel.</think><tool_call>
<function=lookup_record>
<parameter=entity_id>
P-102
</parameter>
</function>
</tool_call>
<tool_call>
<function=lookup_record>
<parameter=entity_id>
SITE-9
</parameter>
</function>
</tool_call><|im_end|>
Stop generation on <|im_end|>. Return one tool message per call, in the order the calls appeared.
With transformers, tokenizer.apply_chat_template(messages, tools=tools, add_generation_prompt=True) produces the same prompt used in training.
How it was trained
LoRA r=16 over the attention and MLP projections, 16.5M trainable parameters, two epochs in fp16 on 485 trajectories. Loss applies to assistant tokens only: thinking, calls and the final answer. System prompts, user turns and tool output are not supervised.
The trajectories come from a fixture environment: a document corpus, structured records, workspace files, arithmetic and a sandboxed state store. A teacher model proposed tool calls as JSON, a local process ran them against the fixtures, and the teacher received the real results. A verifier checked facts, final state, dependency ordering and call budgets. Only trajectories that passed went into the training set.
What it does not do
The training data is synthetic and from one domain. It teaches call batching, dependency ordering, failure recovery and refusal on missing records, not general tool use.
Evaluations are English only and use one training seed. The 254-task test number is a single run.
Conflicting-evidence tasks fail. The model tends to trust a document that states something wrong rather than checking the records.
Arithmetic depends on the tool call. If it skips calculate or convert_units, it can be wrong. Run1 is the demonstration of that.
Quantisations were checked on five tasks, not across the evaluation suite.
The licence follows the base model: LFM Open License v1.0.
Links
Code, dataset generator, harness and the full research log: bilawalriaz/lfm3-batched-agent.
Next step is conflict-resolution demonstrations and a second training seed.