How to use from
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
Quick Links

LiquidAI LFM2.5-350M (Instruct) - GGUF (Q4_K_M)

This repository provides the quantized Q4_K_M GGUF weights for 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:

ollama run hf.co/jamesatron1512/LFM2.5-350M-GGUF

Or specify the quantization tag explicitly:

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

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"])
Downloads last month
82
GGUF
Model size
0.4B params
Architecture
lfm2
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for jamesatron1512/LFM2.5-350M-GGUF

Quantized
(69)
this model