1 Download Updated 19 hours ago
ollama run oamazonasgabriel/lfm2.5-8b-a1b:q4_k_m-8gbGPU
Updated 19 hours ago
19 hours ago
f41222809e5f · 5.2GB ·
A general-purpose 8.3B Mixture-of-Experts model from Liquid AI that activates only ~1.5B parameters per token — delivering strong reasoning, tool calling, and multilingual support while fitting comfortably in 8 GB VRAM.
ollama pull oamazonasgabriel/lfm2.5-8b-a1b:q4_k_m-8gbGPU
ollama run oamazonasgabriel/lfm2.5-8b-a1b:q4_k_m-8gbGPU
LFM2.5 uses a hybrid architecture that combines Liquid AI’s proprietary LIV (Liquid Interconnect Vision) convolution layers with standard GQA attention — unlike traditional transformer-only models. This gives it:
| Property | Value |
|---|---|
| Architecture | Hybrid MoE (18 LIV conv blocks + 6 GQA layers) |
| Total Parameters | 8.3B |
| Active Parameters | ~1.5B per token |
| Layers | 24 |
| Native Context | 128,000 tokens |
| Quantization | Q4_K_M (~5.16 GB) |
| Effective Context (8 GB GPU) | 32,768 tokens |
| License | LFM Open License v1.0 |
For best results on 8 GB GPUs, set these environment variables before starting Ollama:
export OLLAMA_KV_CACHE_TYPE=q8_0 # Reduces KV cache from ~0.8 GB to ~0.4 GB
export OLLAMA_NUM_PARALLEL=1 # Prevents memory fragmentation
With Q8_0 KV cache, total VRAM usage drops to ~5.9 GB, giving comfortable headroom.
ollama run oamazonasgabriel/lfm2.5-8b-a1b:q4_k_m-8gbGPU
curl http://localhost:11434/api/chat -d '{
"model": "oamazonasgabriel/lfm2.5-8b-a1b:q4_k_m-8gbGPU",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the capital of France?"}
],
"options": {"temperature": 0.2, "num_ctx": 32768}
}'
Some use cases (e.g., function calling benchmarks) work better with the raw generate endpoint, which bypasses the chat template:
curl http://localhost:11434/api/generate -d '{
"model": "oamazonasgabriel/lfm2.5-8b-a1b:q4_k_m-8gbGPU",
"prompt": "You are a helpful assistant.\n\nQuestion: What is 2+2?",
"stream": false,
"options": {"temperature": 0.2}
}'
LFM2.5 supports native tool calling through prompt mode. Define tools in the system prompt as JSON schemas and the model will generate structured function calls.
You are a helpful assistant with access to the following tools:
1. get_weather(location: str, unit: str = "celsius") -> str
Get the current weather for a location.
2. search_web(query: str) -> list[str]
Search the web for information.
When you need to call a tool, output:
[tool_name(param1="value1", param2="value2")]
Only call tools when necessary. Answer directly when you can.
Note: LFM2.5 does not support OpenAI-style
toolsparameter through Ollama’s chat API. Use prompt mode or the raw/api/generateendpoint for tool calling.
tools parameter produces empty responses. Use prompt mode instead.Both models benchmarked on the same hardware (single RTX 5060 Ti 16 GB) using the custom BFCL runner.
| Category | lfm2.5-8b-a1b:q4_k_m-8gbGPU (this model) | qwen3.5-9b:q4-16gbGPU | Δ |
|---|---|---|---|
| simple_python (400) | 69.00% | 82.75% | - 13.75% |
| parallel (200) | 57.50% | 74.00% | -16.50% |
| multiple (200) | 62.00% | 82.50% | - 20.50% |
| irrelevance (240) | 59.17% | 87.50% | - 28.33% |
| Overall (1040) | 63.17% | 82.12% | - 18.95% |
Latency: LFM 8B averages 1.68s/question vs Qwen 9B at 3.74s — LFM runs ~2.2× faster thanks to its MoE architecture (1.5B active vs 9B active parameters).
Takeaway: Both models fit entirely on a single 16 GB GPU. Qwen 9B achieves 82% accuracy with 9B dense parameters, while LFM 8B achieves 63% but with only 1.5B active parameters — trading accuracy for 2.2× faster inference. The ~19% accuracy gap is the cost of running 6× less compute per token.
LFM Open License v1.0 — Free for non-commercial and research use. Free for commercial use if annual revenue is below the threshold defined in the license. See LICENSE for full terms.