Instructions to use KoarAI/LFM2.5-350M-Thinking-0003-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 KoarAI/LFM2.5-350M-Thinking-0003-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 KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16 # Run inference directly in the terminal: llama cli -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16 # Run inference directly in the terminal: llama cli -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
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 KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
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 KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
Use Docker
docker model run hf.co/KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use KoarAI/LFM2.5-350M-Thinking-0003-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KoarAI/LFM2.5-350M-Thinking-0003-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": "KoarAI/LFM2.5-350M-Thinking-0003-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
- Ollama
How to use KoarAI/LFM2.5-350M-Thinking-0003-GGUF with Ollama:
ollama run hf.co/KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
- Unsloth Desktop
- Pi
How to use KoarAI/LFM2.5-350M-Thinking-0003-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
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": "KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use KoarAI/LFM2.5-350M-Thinking-0003-GGUF with Docker Model Runner:
docker model run hf.co/KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
- Lemonade
How to use KoarAI/LFM2.5-350M-Thinking-0003-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
Run and chat with the model
lemonade run user.LFM2.5-350M-Thinking-0003-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use KoarAI/LFM2.5-350M-Thinking-0003-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 KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
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 KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use KoarAI/LFM2.5-350M-Thinking-0003-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16
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 "KoarAI/LFM2.5-350M-Thinking-0003-GGUF:F16" \ --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"
This is the official GGUF quantized release of
KoarAI/LFM2.5-350M-Thinking-0003for local edge inference with llama.cpp, Ollama, LM Studio, Jan, and other compatible inference engines.
📌 Release Note: Model Revision 0003
Model Revision:
0003
Key Architecture & Dataset Improvements:
- Anti-Overfitting Training Policy: Trained with a calibrated 2.1 epochs limit with a cosine learning rate scheduler (
lr=2.5e-5), preventing catastrophic forgetting and repetition loops while preserving pristine generation fluency.- Multi-Teacher Distillation Mix (~1,550 hand-crafted samples):
r0b0tlab/qwen3.8-max-distillation-50k(quality_score >= 6): Deep mathematical, algorithmic, and code reasoning distilled directly from Qwen 3.8 Max.open-thoughts/OpenThoughts-114k: Step-by-step verification and multi-hop Chain-of-Thought traces encapsulated in<think>blocks.TIGER-Lab/MMLU-Pro: Complex STEM, business, logic, and law benchmark multiple-choice reasoning.Vikhrmodels/GrandMaster-PRO-MAX: High-quality natural Russian conversational mastery and instruction following.
🌟 Overview
KoarAI/LFM2.5-350M-Thinking-0003 is an ultra-compact, high-efficiency hybrid reasoning language model featuring native Chain-of-Thought (CoT) thinking capabilities.
Built upon the state-of-the-art Liquid Foundation Model architecture (LiquidAI/LFM2.5-350M), this model underwent 100% Full Parameter Fine-Tuning in bfloat16 precision. Despite having only 350 Million parameters, it produces structured internal step-by-step logic inside native <think> ... </think> blocks before delivering clean, concise final answers.
💾 Available GGUF Files
| Filename | Quantization | Size | Recommended Use |
|---|---|---|---|
LFM2.5-350M-Thinking-0003-f16.gguf |
FP16 | ~700 MB | Maximum precision and fidelity |
💡 Native Thinking Mode Example
<|im_start|>user
Сколько букв 'р' в слове 'программирование'?<|im_end|>
<|im_start|>assistant
<think>
1. Слово: 'программирование'.
2. Разберем по буквам: п-р-о-г-р-а-м-м-и-р-о-в-а-н-и-е.
3. Позиции буквы 'р':
- 2-я буква: 'р' (п-Р-о...)
- 5-я буква: 'р' (...г-Р-а...)
- 10-я буква: 'р' (...и-Р-о...)
4. Итого: 3 буквы 'р'.
</think>
В слове «программирование» содержится **3** буквы «р».<|im_end|>
⚡ Quickstart with llama.cpp
# Run CLI
llama-cli -m LFM2.5-350M-Thinking-0003-f16.gguf -p "<|im_start|>user\nSolve: 32 + 32 - 42<|im_end|>\n<|im_start|>assistant\n<think>\n" -n 512 --temp 0.6
🐨 Maintained by KoarAI Lab
Released for the open-source AI community by KoarAI.
- Downloads last month
- 145
16-bit
Model tree for KoarAI/LFM2.5-350M-Thinking-0003-GGUF
Base model
LiquidAI/LFM2.5-350M-Base