frontend-agent - LFM2.5-230M (v1.2.0, bounded)

A generic English web/front-end agent fine-tuned from LiquidAI/LFM2.5-230M, small enough to run entirely in the browser (edge / wllama, no server-side model).

Bounded context

A stateless, context-bounded agent. Instead of searching a catalog and reconstructing state, it grounds every turn in a compact context block C the host app injects: the current VIEW (items on screen, with ids + prices), the CART, and any relevant KNOWLEDGE. The model reads and acts on exactly what it is given - add/remove by the shown id, answer prices from the view, resolve references like "the second one", list what's actually there - and does not invent items. The app re-injects C each turn (the model holds no state).

Pair it with the npm library @lajosbencz/frontend-agent, whose ContextManager renders C in the exact format the model was trained on (a shared, versioned contract).

What's new in v1.2.0

  • Correct response-only training. Loss is now masked to the assistant turns (the prior release trained on the whole sequence, including system/tool text). Grounding is markedly more reliable.
  • No invented or cross-domain items. Adds, prices, and listings come strictly from the injected VIEW; foreign-item and hallucinated-product leaks are gone in eval.
  • Scoped listing fixed. Category/keyword listings ("list your produce") query with the user's own word and pivot to the view, instead of echoing an unrelated item.
  • Deterministic, balance-verified data across every bounded capability (get / reference / info / browse / scoped / filter / compare / multi-add / remove / checkout / absent / knowledge / clear / navigate), with a held-out split that no longer starves any capability.
  • Bounded eval: all dimensions ~100% (info / browse / add / reference / checkout / absent / no-invent).

Usage

Serve the GGUF in-browser via wllama; each turn, build the system prompt from the library's ContextManager (persona + VIEW/CART/KNOWLEDGE) and advertise your tool schemas. See the project repo for the runtime wiring.

Files

File Format Size
model.safetensors bf16 (transformers) 459 MB
*-F16.gguf GGUF, unquantized (fp16) 462 MB
*-Q8_0.gguf GGUF (near-lossless) 247 MB
*-Q6_K.gguf GGUF 191 MB
*-Q4_K_M.gguf GGUF (smallest, browser default) 153 MB

License

Fine-tune of LFM2.5-230M; inherits the LFM Open License 1.0 (see LICENSE/NOTICE). Training data is fully synthetic.

Downloads last month
892
Safetensors
Model size
0.2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for lazos/lfm2.5-230m-frontend-agent

Finetuned
(22)
this model