Instructions to use LiquidAI/LFM2.5-Encoder-230M-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 LiquidAI/LFM2.5-Encoder-230M-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 LiquidAI/LFM2.5-Encoder-230M-GGUF:F16 # Run inference directly in the terminal: llama cli -hf LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf LiquidAI/LFM2.5-Encoder-230M-GGUF:F16 # Run inference directly in the terminal: llama cli -hf LiquidAI/LFM2.5-Encoder-230M-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 LiquidAI/LFM2.5-Encoder-230M-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf LiquidAI/LFM2.5-Encoder-230M-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 LiquidAI/LFM2.5-Encoder-230M-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
Use Docker
docker model run hf.co/LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
- LM Studio
- Jan
- Ollama
How to use LiquidAI/LFM2.5-Encoder-230M-GGUF with Ollama:
ollama run hf.co/LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
- Unsloth Desktop
- Pi
How to use LiquidAI/LFM2.5-Encoder-230M-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LiquidAI/LFM2.5-Encoder-230M-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": "LiquidAI/LFM2.5-Encoder-230M-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use LiquidAI/LFM2.5-Encoder-230M-GGUF with Docker Model Runner:
docker model run hf.co/LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
- Lemonade
How to use LiquidAI/LFM2.5-Encoder-230M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
Run and chat with the model
lemonade run user.LFM2.5-Encoder-230M-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use LiquidAI/LFM2.5-Encoder-230M-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 LiquidAI/LFM2.5-Encoder-230M-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 LiquidAI/LFM2.5-Encoder-230M-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use LiquidAI/LFM2.5-Encoder-230M-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LiquidAI/LFM2.5-Encoder-230M-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 "LiquidAI/LFM2.5-Encoder-230M-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"
LFM2.5-Encoder-230M
LFM2.5-Encoder-230M is a multilingual bidirectional encoder built on the LFM2 architecture โ a lightweight encoder for tight latency and memory budgets, punching above its size class. It is a masked language model with full bidirectional attention, designed to be fine-tuned into task-specific models (classification, token classification, retrieval, reranking, and semantic similarity) across 15 languages, and to run efficiently on-device.
- Highly capable for its size. On par with the best similarly sized encoders and well ahead of our own retrieval siblings.
- General-purpose. 8k context, strong across NLI, paraphrase, sentiment, and multilingual tasks.
- Fast and on-device. Matches or beats ModernBERT throughput, with a long-context edge on CPU; runs in the browser on WebGPU.
Find more information about LFM2.5-Encoder-230M in our blog post.
๐ How to run
Example usage with llama.cpp:
Start llama-server with per-token embeddings
hf download LiquidAI/LFM2.5-Encoder-230M-GGUF LFM2.5-Encoder-230M-F16.gguf --local-dir .
llama-server -m LFM2.5-Encoder-230M-F16.gguf --embeddings --pooling none
Run masked-token prediction โ the mask position's logits come from the per-token hidden states and the tied embedding matrix read from the GGUF (fill-mask.py in this repo)
โฏ uv run fill-mask.py LFM2.5-Encoder-230M-F16.gguf "The capital of France is [MASK]."
top-5 at [MASK]:
# 1 16.17 ' Paris'
# 2 13.41 ' Strasbourg'
# 3 13.35 'Paris'
# 4 13.18 ' Lyon'
# 5 11.87 ' Versailles'
The same server also serves per-token embeddings directly:
curl -s http://localhost:8080/embedding -d '{"content": "hello world"}'
Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2.5-Encoder-230M
- Downloads last month
- -
4-bit
8-bit
16-bit
Model tree for LiquidAI/LFM2.5-Encoder-230M-GGUF
Base model
LiquidAI/LFM2.5-230M-Base