Instructions to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF 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 bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
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 bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
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 bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
Use Docker
docker model run hf.co/bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
- LM Studio
- Jan
- vLLM
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
- Ollama
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with Ollama:
ollama run hf.co/bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
- Unsloth Desktop
- Pi
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with Docker Model Runner:
docker model run hf.co/bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
- Lemonade
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
Run and chat with the model
lemonade run user.LFM2.5-350M-Phone-Command-Extractor-GGUF-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
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 bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0
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 "bpmatt/LFM2.5-350M-Phone-Command-Extractor-GGUF:Q4_0" \ --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"
LFM2.5-350M Phone Command Extractor (GGUF, Q4_0)
What it does: given one phone action and what the person said, it fills in the action's details using the person's own words, or declines when the action doesn't fit. It is the second stage of a fully on-device voice assistant for Android: the EmbeddingGemma-300M Phone Command Router picks the action, this model extracts the values, and app code turns spoken values ("half six", "tomorrow", "20 minutes") into exact times and dates.
action: add_reminder(text, time, date) user: "remind me in 20 minutes to check the oven"
model: <|tool_call_start|>[add_reminder(text='check the oven', time='20 minutes')]<|tool_call_end|>
It is a LoRA fine-tune of LiquidAI/LFM2.5-350M, merged and quantised to Q4_0 (219 MB). It runs with llama.cpp on a
phone CPU in about 0.3-0.4 s per request.
Files
| File | What it is |
|---|---|
extractor-20261012T225126Z-Q4_0.gguf |
the model (llama.cpp GGUF, Q4_0; chat template with native tool calls included) |
system_prompt.txt |
the exact system prompt it was trained with (the fixed date line is part of the format) |
tool_schemas.json |
the 205 actions as the model sees them (names, descriptions, parameter descriptions) |
Quick start (llama.cpp)
llama-server -m extractor-20261012T225126Z-Q4_0.gguf --jinja -c 4096
Then send an OpenAI-style chat request with one tool from tool_schemas.json, the system prompt from
system_prompt.txt, the user's words, temperature: 0 and max_tokens: 96. The reply is either a tool call
(tool_calls[0].function.arguments) or the text No call.
import json, requests
tools = {t["name"]: t for t in json.load(open("tool_schemas.json"))}
r = requests.post("http://127.0.0.1:8080/v1/chat/completions", json={
"messages": [{"role": "system", "content": open("system_prompt.txt").read().strip()},
{"role": "user", "content": "remind me in 20 minutes to check the oven"}],
"tools": [{"type": "function", "function": tools["add_reminder"]}],
"temperature": 0, "max_tokens": 96}).json()
print(r["choices"][0]["message"].get("tool_calls") or r["choices"][0]["message"]["content"])
Behaviour
- Copies values as spoken ("half six", "next Friday", "20 minutes", "fifty-five percent"): converting them into exact times, dates and numbers is left to deterministic code, which is easier to test and never invents a value.
- Leaves out values that weren't said instead of guessing.
- Says "No call." when the action doesn't fit the request or a required value is missing, so the app can ask.
Results
On 901 held-out requests (each given the action chosen by the router), the extracted call is exactly right (action and every value) 76.6 % of the time. Inside the full assistant (router + this model + safety rules + a confirmation step), 66 % of requests are completed correctly with no questions asked, 83 % are completed or settled with a single yes/no, and 4.6 % lead to a wrong action.
Training
LoRA fine-tune on about 7,000 examples in the model's native tool-call format: synthetic phone commands written for this project (every one of the 205 actions, with examples where the call must be declined), plus requests adapted from public intent datasets. Every example's values were checked to appear verbatim in the request and to pass the app's own value parser; held-out sets were checked for near-duplicates.
Limitations
- English only; one action per request (multi-step requests are split by the app).
- Expects the system prompt in
system_prompt.txt, including its fixed date line, and one tool at a time. - Spoken values need a resolver (relative times and dates are resolved by app code, not by the model).
Licence
A derivative of LFM2.5-350M by Liquid AI, distributed under the LFM Open License v1.0 (LICENSE), including its
Commercial Use limitation (Section 5).
- Downloads last month
- 102
4-bit