Instructions to use dsego/tempus-lfm2.5-230m 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 dsego/tempus-lfm2.5-230m 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 dsego/tempus-lfm2.5-230m:Q4_K_M # Run inference directly in the terminal: llama cli -hf dsego/tempus-lfm2.5-230m:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dsego/tempus-lfm2.5-230m:Q4_K_M # Run inference directly in the terminal: llama cli -hf dsego/tempus-lfm2.5-230m:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf dsego/tempus-lfm2.5-230m:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf dsego/tempus-lfm2.5-230m:Q4_K_M
Use Docker
docker model run hf.co/dsego/tempus-lfm2.5-230m:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use dsego/tempus-lfm2.5-230m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dsego/tempus-lfm2.5-230m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dsego/tempus-lfm2.5-230m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dsego/tempus-lfm2.5-230m:Q4_K_M
- Ollama
How to use dsego/tempus-lfm2.5-230m with Ollama:
ollama run hf.co/dsego/tempus-lfm2.5-230m:Q4_K_M
- Unsloth Desktop
- Pi
How to use dsego/tempus-lfm2.5-230m with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dsego/tempus-lfm2.5-230m:Q4_K_M
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "dsego/tempus-lfm2.5-230m:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use dsego/tempus-lfm2.5-230m with Docker Model Runner:
docker model run hf.co/dsego/tempus-lfm2.5-230m:Q4_K_M
- Lemonade
How to use dsego/tempus-lfm2.5-230m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dsego/tempus-lfm2.5-230m:Q4_K_M
Run and chat with the model
lemonade run user.tempus-lfm2.5-230m-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use dsego/tempus-lfm2.5-230m with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dsego/tempus-lfm2.5-230m: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:9931/v1 hermes config set model.default dsego/tempus-lfm2.5-230m:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use dsego/tempus-lfm2.5-230m with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dsego/tempus-lfm2.5-230m: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:9931/v1 \ --custom-model-id "dsego/tempus-lfm2.5-230m: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"
tempus: LFM2.5-230M finetuned to read clock times from chat messages
A 230M-parameter model that reads one English chat message and lists every clock time in it, deciding from context whether a bare "7" means morning or evening. It answers in about 100 ms on a 4-core CPU with no GPU, and runs in a browser tab.
Code, data and the full results: https://github.com/dsegovia90/tempus_finetune
| Message | Reply |
|---|---|
dinner at 7 or lunch at noon |
7=19:00noon=12:00 |
got paged at 2, been up ever since |
2=02:00 |
skip to 2:30 in the video, room 3 is booked |
none |
Files
| File | Size | Use |
|---|---|---|
lfm2.5-230m-v2-Q8_0.gguf |
247 MB | Recommended. Same scores as the unquantized model |
lfm2.5-230m-v2-Q4_K_M.gguf |
153 MB | Smaller and faster, about a point less accurate on the main eval |
Scores
Exact match per message: every time found, with the right span and the right 24-hour reading. This is the best of three training runs, chosen by these same evals; the three-run mean is in the right-hand column.
| Eval | Q8_0 | Q4_K_M | Three-run mean (Q8_0) |
|---|---|---|---|
| Main (530 messages) | 97.0% | 95.7% | 96.5% |
| Main, time of day implied by the situation only | 92.1% | 89.3% | 91.0% |
| Fresh (378 messages from situations not in training) | 97.4% | 97.4% | 96.8% |
| False alarms on 1,021 tricky messages with no clock time | 0 | 0 | 0.2% |
| CPU latency, median, 4 cores of a shared Ryzen 3600 | 99 ms | 72 ms | 98 ms (two runs) |
Use
With llama.cpp (tested at tag b12292):
llama-server --model lfm2.5-230m-v2-Q8_0.gguf --host 127.0.0.1 --port 8080 \
--threads 4 --threads-batch 4 --n-gpu-layers 0 --device none \
--parallel 1 --ctx-size 1024 --cache-ram 0 --no-webui
Send the message as a single user turn with no system prompt; the model was trained that way. The raw prompt is:
<|im_start|>user
{message}<|im_end|>
<|im_start|>assistant
llama.cpp adds the start-of-text token in front of it.
The reply is one text=HH:MM line per clock time, where text is copied from the message, or
the single word none. Use greedy decoding (temperature 0). A small Python client that parses
the reply is in the repository (tempus.client.extract).
Limits
- English only.
- Times written with digits, plus "noon" and "midnight". Spelled-out times ("dinner at seven") are not supported.
- Durations, relative times ("in 2 hours") and vague periods ("this afternoon") are ignored by design.
- Inferring morning or evening in unfamiliar situations is the weakest area (about 92%).
- It sometimes drops a time that a larger model keeps: for "dinner at 7? or lunch at noon" it returns only the 7, and for "skip to 2:30 in the video, dinner at 7?" it returns nothing. The 0.8B model gets both right: https://huggingface.co/dsego/tempus-qwen3.5-0.8b
- Training and eval data are synthetic, written and checked by language models with a small human spot-check.
Training
LoRA (rank 16) on LiquidAI/LFM2.5-230M with
Unsloth, 3 epochs over 11,299 synthetic messages, merged and converted to GGUF. Config:
configs/lfm2.5-230m-v2-s1-compact.yaml in the repository.
Licence
This is a derivative of LFM2.5-230M and is distributed under the LFM Open License v1.0, copyright Liquid AI, Inc. That licence permits commercial use only for organisations with under $10 million in annual revenue, and the limit applies to anyone using this finetune. Read the licence before using it commercially.
- Downloads last month
- 115
4-bit
8-bit