Metadata for building a local tool-using agent with LFM2.5 2.6B using Transformers or llama.cpp across Windows, Linux, and macOS.
EstimatedSource checked 9/28/2026
LOCALRENTED GPU
Freshness 74 out of 100. Repository age: 79 days old, Jul 28, 2026. Measures age, not quality.74/ 100Freshness79 days oldRepository age · Jul 28, 2026
Popularity 70 out of 100. 114,916 downloads in 30 days; 831 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.70/ 100Popularity114.9K downloads / 30d831 lifetime likes · Checked Oct 15, 2026
What do these scores mean?+
Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.
Freshness · release age
A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.
Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.
Start 8192 tokens; publisher limit 131k; Metal fits 16GB unified with headroom.
Start 8192 tokens; publisher limit 131k; Metal fits 16GB unified with headroom.
CPU (16 GB system RAM)
Start 4096 tokens; publisher limit 131k; CPU RAM fits 16GB with headroom.
Start 4096 tokens; publisher limit 131k; CPU RAM fits 16GB with headroom.
Start 4096 tokens; publisher limit 131k; CPU RAM fits 16GB with headroom.
Metadata onlySOURCE-LINKED SETUP
Set up LFM2.5 2.6B for local agentic tool calling
Use the publisher's native Transformers weights, the publisher's GGUF quantizations, or a community uncensored GGUF variant with llama.cpp. Verify a complete tool-call round-trip.
Choose a package Run its commands Check the result
01
BEFORE YOU BEGIN
Choose your package
Select the weights you want. The instructions, downloads and settings change with your choice.
The publisher has not provided a complete memory target for this task. Check its hardware guidance before starting.
CURRENT SETUP
LFM2.5-2.6B-GGUF · official
Estimate: add 2–4 GB RAM overhead for context. Works on CPU or GPU via llama.cpp backends.
Freshness 75 out of 100. Repository age: 75 days old, Aug 1, 2026. Measures age, not quality.75/ 100Freshness75 days oldRepository age · Aug 1, 2026
Popularity 78 out of 100. 904,724 downloads in 30 days; 379 lifetime likes. Checked Oct 15, 2026. Measures adoption, not quality.78/ 100Popularity904.7K downloads / 30d379 lifetime likes · Checked Oct 15, 2026
What do these scores mean?+
Two ways to compare models. Neither score measures answer quality, benchmark performance, or whether a model fits your machine.
Freshness · release age
A new release starts at 100. The score halves every 180 days: 100 × 2^(−age in days / 180). When the release date is unavailable, a repository date is a fallback—not proof of when the model was released. Missing dates stay unscored.
Downloads over the past 30 days carry 80% of the score; lifetime likes carry 20%. Both use a logarithmic scale, capped at 10 million downloads and 100,000 likes. If likes are unavailable, downloads carry all the weight. Missing download statistics stay unscored.
Choose where you want to run it. The instructions below update to match your selection.
CHOOSE YOUR SETUPMac
Use llama.cpp with Metal or CPU backend. Prebuilt binaries or build from source.
01
Prerequisites and working folder (Terminal)
You need a Mac with Apple Silicon (Metal) or Intel (CPU), 16 GB unified memory recommended, and about 7 GB free disk for the BF16 GGUF plus runtime. The model maximum context is 131,072 tokens (config.json max_position_embeddings), but this guide starts with an active runtime context of 8192 tokens. Open Terminal and create the working folder that will hold the runtime binary, the GGUF and the publisher's chat template.
Use the official prebuilt macOS archive from the llama.cpp releases page. For Apple Silicon choose the artifact whose name ends in -bin-macos-arm64.zip; for Intel choose -bin-macos-x64.zip. Move the downloaded archive into your working folder, unzip it there, and confirm the binary runs. The unzipped llama-cli and llama-server live directly in the working folder. Keep this Terminal available for the rest of the guide.
work="$HOME/LFM2.5-2.6B"
ls -lh "$HOME/Downloads" | grep -i llama
unzip -o "$HOME/Downloads/llama-"*-bin-macos-*.zip -d "$work"
ls -lh "$work"
"$work/llama-cli" --version
03
Download the exact publisher GGUF and its chat template
Download the exact publisher file LFM2.5-2.6B-BF16.gguf from the LiquidAI/LFM2.5-2.6B-GGUF repository at the pinned revision e7caca5d835a3901a8e0d63e94009429bafafdfc, plus the qad/chat_template.jinja that renders the LFM2.5 chat and tool-call format and the qad/generation_config.json that carries the publisher sampling defaults (temperature 0.1, top_k 50, repetition penalty 1.1). These three files are all you need for a llama.cpp agent endpoint.
Put these files in $HOME/LFM2.5-2.6B/3 required files
Launch the local OpenAI-compatible server (keep this Terminal open)
Start llama-server against the downloaded GGUF. Metal is used automatically on Apple Silicon, so no extra backend flag is required. Set --alias LFM2.5-2.6B-BF16 so /v1/models returns a simple, predictable model id for the client. --ctx-size 8192 is the active runtime context for this guide; the model maximum is 131,072 tokens. --jinja together with the publisher's qad/chat_template.jinja enables the LFM2.5 chat and tool-call format. The publisher sampling defaults 0.1 / 50 / 1.1 are passed explicitly. This process stays running, so leave the Terminal open and use a second Terminal for requests and the client.
Verify the endpoint and run the known-answer smoke test
Open a second Terminal. Confirm the server is up and read the exact served model id from /v1/models; with --alias set above it is LFM2.5-2.6B-BF16. Also run the publisher-documented chat command against the same GGUF with the publisher's --conversation flag and sampling defaults. When the REPL opens, enter the prompt 'What is the chemical symbol for gold?' and confirm the reply contains Au, then ask a follow-up in the same session to prove a real conversation. Exit with Ctrl+C.
Install Visual Studio Code and the Cline extension
Download the macOS build of Visual Studio Code from the official site and drag Visual Studio Code.app into /Applications. Launch VS Code, press Cmd+Shift+X to open the Extensions panel, search for 'Cline' by publisher saoudrizwan, and install it. Cline's OpenAI-compatible provider is documented at the link below and is configured in the next step.
# 1. Download the macOS .dmg from https://code.visualstudio.com/download and drag Visual Studio Code.app into /Applications
# 2. Open VS Code, press Cmd+Shift+X, search 'Cline' (publisher: saoudrizwan) and click Install
# 3. Reload the VS Code window when prompted
07
Point Cline at the local llama-server
In VS Code, open the Cline settings with the gear icon and set API Provider to 'OpenAI Compatible'. Set Base URL to http://127.0.0.1:8080/v1, API Key to any non-empty string such as sk-noop (the local server does not authenticate), and Model ID to LFM2.5-2.6B-BF16, which is the exact id returned by /v1/models because the server was started with --alias LFM2.5-2.6B-BF16. Set Context Window to 8192 so it matches --ctx-size, set Max Output Tokens to 512, and enable Computer Use / tool calling so Cline may issue tool calls. Save.
# In VS Code: Cline settings (gear icon)
# API Provider: OpenAI Compatible
# Base URL: http://127.0.0.1:8080/v1
# API Key: sk-noop
# Model ID: LFM2.5-2.6B-BF16
# Context Window: 8192 | Max Output Tokens: 512
# Computer Use / tool calling: enabled
08
Create a disposable project and the input data
Back in the second Terminal, create a small scratch workspace with one JSON data file. The agent task in the next step reads this file and produces a derived report, which forces a read tool call and a write tool call against the same data. Open the folder in VS Code with File > Open Folder so Cline treats it as the workspace root.
Bounded agent task through Cline (real tool round-trip)
With the folder open in VS Code, switch to the Cline chat panel and enter one precise request. Cline emits read and write tool calls; approve each one when it prompts you (leave auto-approve off for writes). The llama-server Terminal logs the matching /v1/chat/completions requests, which shows the model driving the tool calls rather than answering from memory.
# In VS Code: File > Open Folder... and choose $HOME/LFM2.5-2.6B-AgentProject
# In the Cline chat, enter this exact request:
# Use your file tools to read data/candidates.json. Then write summary.md containing:
# (1) the number of candidates, (2) the candidate_id of each candidate, and
# (3) the status of candidate 12345. Use the read and write tools; do not answer from memory.
# Approve each tool call when Cline asks. Do not enable auto-approve for writes.
10
Inspect the tool round-trip, the output and context settings
After approving the tool calls, cat summary.md in Terminal and confirm it reports 2 candidates, ids 12345 and 67890, and that candidate 12345 is in the 'Interview Scheduled' stage. In the Cline chat panel you should see the read tool call, the tool result, the write tool call and the final natural-language answer. The llama-server Terminal shows the matching request/response cycle. The 131,072-token value is the model maximum; the active runtime context is whatever you pass to --ctx-size. If the Mac is low on unified memory, restart llama-server with a smaller --ctx-size such as 4096 and set Cline's Context Window to the same number so prompt truncation matches.
proj="$HOME/LFM2.5-2.6B-AgentProject"
cat "$proj/summary.md"
# Expected content: 2 candidates; ids 12345 and 67890; candidate 12345 status = Interview Scheduled.
# Also confirm the Cline chat panel shows the read and write tool calls and their results.
work="$HOME/LFM2.5-2.6B"
cd "$work"
# If memory is tight, restart the server with a smaller active context, e.g.:
# "$work/llama-server" -m LFM2.5-2.6B-BF16.gguf --host 127.0.0.1 --port 8080 --ctx-size 4096 --alias LFM2.5-2.6B-BF16 --jinja --chat-template-file qad/chat_template.jinja
03
SUCCESS CHECK · LFM2.5-2.6B-GGUF
Agentic tool round-trip
The model must load and generate text via the chosen runtime. A complete tool call round-trip must succeed: user query, model emits a tool call, tool returns a result, model produces a final answer using that result. The output should follow the publisher's tool use format.
https://huggingface.co/LiquidAI/LFM2.5-2.6BOpens on your machine
This metadata outlines the setup. Detailed hardware tables, context matrices, and executable instructions are covered in later stages.
Model fails to load due to dtype or architecture not supported by installed Transformers version.
Update Transformers to a version that supports Lfm2ForCausalLM (transformers_version 5.2.0 in config). Install via `pip install transformers[torch] --upgrade` and ensure PyTorch 2.5+ is present.
Tool calls are not parsed or emitted correctly during agent interaction.
Ensure the chat template from the model repository (chat_template.jinja) is applied via `apply_chat_template`. The template defines special tokens for tool call start/end. Confirm your client or framework uses this exact template.
REFERENCE LIBRARY
Sources and files
Original instructions, model files, and compatibility notes behind this setup.