Instructions to use lazos/lfm2.5-230m-frontend-agent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lazos/lfm2.5-230m-frontend-agent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lazos/lfm2.5-230m-frontend-agent") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lazos/lfm2.5-230m-frontend-agent") model = AutoModelForCausalLM.from_pretrained("lazos/lfm2.5-230m-frontend-agent") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use lazos/lfm2.5-230m-frontend-agent with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="lazos/lfm2.5-230m-frontend-agent", filename="lfm2.5-230m-frontend-agent-F16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lazos/lfm2.5-230m-frontend-agent with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M # Run inference directly in the terminal: llama cli -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M # Run inference directly in the terminal: llama cli -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Use Docker
docker model run hf.co/lazos/lfm2.5-230m-frontend-agent:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use lazos/lfm2.5-230m-frontend-agent with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lazos/lfm2.5-230m-frontend-agent" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lazos/lfm2.5-230m-frontend-agent", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/lazos/lfm2.5-230m-frontend-agent:Q4_K_M
- SGLang
How to use lazos/lfm2.5-230m-frontend-agent with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "lazos/lfm2.5-230m-frontend-agent" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lazos/lfm2.5-230m-frontend-agent", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "lazos/lfm2.5-230m-frontend-agent" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lazos/lfm2.5-230m-frontend-agent", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use lazos/lfm2.5-230m-frontend-agent with Ollama:
ollama run hf.co/lazos/lfm2.5-230m-frontend-agent:Q4_K_M
- Unsloth Studio
How to use lazos/lfm2.5-230m-frontend-agent with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lazos/lfm2.5-230m-frontend-agent to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for lazos/lfm2.5-230m-frontend-agent to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lazos/lfm2.5-230m-frontend-agent to start chatting
- Pi
How to use lazos/lfm2.5-230m-frontend-agent with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "lazos/lfm2.5-230m-frontend-agent:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use lazos/lfm2.5-230m-frontend-agent with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use lazos/lfm2.5-230m-frontend-agent with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "lazos/lfm2.5-230m-frontend-agent:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use lazos/lfm2.5-230m-frontend-agent with Docker Model Runner:
docker model run hf.co/lazos/lfm2.5-230m-frontend-agent:Q4_K_M
- Lemonade
How to use lazos/lfm2.5-230m-frontend-agent with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lazos/lfm2.5-230m-frontend-agent:Q4_K_M
Run and chat with the model
lemonade run user.lfm2.5-230m-frontend-agent-Q4_K_M
List all available models
lemonade list
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