Instructions to use jamesatron1512/LFM2.5-350M-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 jamesatron1512/LFM2.5-350M-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 jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf jamesatron1512/LFM2.5-350M-GGUF: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 jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf jamesatron1512/LFM2.5-350M-GGUF: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 jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use jamesatron1512/LFM2.5-350M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jamesatron1512/LFM2.5-350M-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": "jamesatron1512/LFM2.5-350M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
- Ollama
How to use jamesatron1512/LFM2.5-350M-GGUF with Ollama:
ollama run hf.co/jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use jamesatron1512/LFM2.5-350M-GGUF with Docker Model Runner:
docker model run hf.co/jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
- Lemonade
How to use jamesatron1512/LFM2.5-350M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LFM2.5-350M-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
File size: 1,950 Bytes
2dc95b6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | ---
license: other
license_name: lfm1.0
license_link: https://huggingface.co/LiquidAI/LFM2.5-350M/blob/main/LICENSE
pipeline_tag: text-generation
tags:
- liquid
- lfm2.5
- gguf
- ollama
- edge
- conversational
base_model: LiquidAI/LFM2.5-350M
---
# LiquidAI LFM2.5-350M (Instruct) - GGUF (Q4_K_M)
This repository provides the quantized **Q4_K_M GGUF** weights for **[LiquidAI/LFM2.5-350M](https://huggingface.co/LiquidAI/LFM2.5-350M)**, configured for direct 1-click execution in **Ollama**, **llama.cpp**, and local edge devices.
LFM2.5-350M is a hybrid architecture developed by Liquid AI combining double-gated short convolutions with structured attention for near-linear computational scaling and low memory footprint.
---
## ⚡ Direct Ollama Run (1-Line Command)
You can run this model directly via Ollama without manually downloading any files:
```bash
ollama run hf.co/jamesatron1512/LFM2.5-350M-GGUF
```
Or specify the quantization tag explicitly:
```bash
ollama run hf.co/jamesatron1512/LFM2.5-350M-GGUF:Q4_K_M
```
---
## 🚀 Model Details
- **Parameters**: 350 Million
- **Precision**: Q4_K_M (Quantized 4-bit)
- **File Size**: ~219 MB
- **Context Length**: Up to 128k tokens (default 4096 in Modelfile)
- **Chat Template**: ChatML format (`<|im_start|>user ... <|im_end|>`)
- **System Prompt**: Supported via template, default is left clean to prevent fixation on small parameter counts.
---
## 💻 Python API Usage via Ollama
```python
import requests
response = requests.post(
"http://localhost:11434/api/generate",
json={
"model": "hf.co/jamesatron1512/LFM2.5-350M-GGUF",
"prompt": "Explain quantum computing in two sentences.",
"stream": False,
"options": {
"temperature": 0.7,
"top_p": 0.9,
"num_predict": 128
}
}
)
print(response.json()["response"])
```
|