Instructions to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF", filename="LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
Use Docker
docker model run hf.co/LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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": "LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
- Ollama
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with Ollama:
ollama run hf.co/LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
- Unsloth Studio
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF to start chatting
- Pi
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
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 LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
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 "LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M" \ --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"
- Docker Model Runner
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with Docker Model Runner:
docker model run hf.co/LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
- Lemonade
How to use LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF-Q4_K_M
List all available models
lemonade list
Use Docker
docker model run hf.co/LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF:LFM2.5-8B-A1B Terminal ToolBench Full SFT 1Epoch GGUF
GGUF builds for LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.
This is a local/CPU-friendly packaging of the current #1 Terminal README model. The original model is a terminal automation SFT model trained to read a task and terminal state, then emit JSON containing the next terminal action.
Source Model
- Source model:
LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch - Base model:
LiquidAI/LFM2.5-8B-A1B - Architecture:
Lfm2MoeForCausalLM,model_type=lfm2_moe - Training setup of source model: full SFT, 1 epoch, Terminal + ToolBench conversation data
- Corrected TB2-lite score of source model:
52.30 - Original source snapshot converted here:
4ca70e4065d10b171de0a434185a9c436cbe9893
Files
Recommended files:
Q4_K_M(4.801 GiB): best first choice for a 16GB RAM CPU machine. Small enough for local use while preserving reasonable quality.Q5_K_M(5.616 GiB): better quality than Q4, still practical on many CPU machines with enough free RAM.Q6_K(6.482 GiB): higher-quality local option when RAM is comfortable.Q8_0(8.391 GiB): high-fidelity quantization. Use when you have more RAM or want a quality-preserving GGUF.Q4_0(4.512 GiB): simple 4-bit compatibility option. PreferQ4_K_Mwhen your runtime supports K-quants.BF16(15.783 GiB): conversion master used to produce the quantized files. This is not the default recommendation for 16GB CPU usage.
Actual file sizes and SHA256 checksums are in SHA256SUMS and checksums.json.
Quickstart: llama.cpp
Build llama.cpp with LFM2 MoE support:
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build -DGGML_CUDA=OFF
cmake --build build --target llama-cli -j
Download the 4-bit file:
pip install -U huggingface_hub
huggingface-cli download \
LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF \
--include "*Q4_K_M.gguf" \
--local-dir ./lfm-terminal-gguf
Run a terminal-agent style prompt:
./llama.cpp/build/bin/llama-cli \
-m ./lfm-terminal-gguf/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.Q4_K_M.gguf \
-c 8192 \
-n 512 \
--temp 0 \
-p '<|startoftext|><|im_start|>system
You are a terminal automation assistant. Return JSON only.<|im_end|>
<|im_start|>user
Inspect the current directory and list Python files.<|im_end|>
<|im_start|>assistant
'
Expected output format:
{
"analysis": "brief reasoning about the next terminal action",
"plan": "short execution plan",
"commands": [
{"keystrokes": "ls -la\n", "duration": 0.1}
],
"task_complete": false
}
Quickstart: Python llama-cpp-python
Install:
pip install -U llama-cpp-python huggingface_hub
Run:
from llama_cpp import Llama
llm = Llama(
model_path="./lfm-terminal-gguf/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch.Q4_K_M.gguf",
n_ctx=8192,
n_threads=8,
verbose=False,
)
prompt = """<|startoftext|><|im_start|>system
You are a terminal automation assistant. Return JSON only.<|im_end|>
<|im_start|>user
Inspect the current directory and list Python files.<|im_end|>
<|im_start|>assistant
"""
out = llm(prompt, max_tokens=512, temperature=0.0, stop=["<|im_end|>"])
print(out["choices"][0]["text"])
16GB CPU Guidance
Use Q4_K_M first.
Recommended starting settings:
- Context:
-c 4096or-c 8192 - Generation:
-n 256to-n 1024 - Temperature:
--temp 0for deterministic terminal JSON - Threads: set near your physical CPU core count, for example
-t 8
If memory is tight, lower context first. Context/KV cache memory is separate from the GGUF file size, so a model that fits at -c 4096 may fail at a much longer context.
Important Safety Note
This model emits terminal commands. Do not run generated commands directly on a host machine without a sandbox, allowlist, or human review. Treat outputs as proposed actions, not trusted shell input.
Conversion Notes
The conversion used a llama.cpp build with Lfm2MoeForCausalLM / MODEL_ARCH.LFM2MOE support. The source tokenizer uses the Liquid LFM2 BPE pre-tokenizer pattern, but this SFT model has a newer tokenizer hash:
9e454714343b69b99b71795c1d27a68c2a1d15dab111f4d353109f966af29da7
The conversion script maps that hash to lfm2, matching the existing Liquid LFM2 tokenizer handling.
Reproduction script in the Terminal repo:
MODEL_ID=LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch \
OUT_DIR=/home/work/.data/liquid_cli_sft/gguf/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF \
LLAMA_CPP_DIR=/home/work/.cache/llama.cpp-mtp \
QUANTS="Q4_K_M Q5_K_M Q8_0" \
bash Liquid-CLI/scripts/convert_lfm25_terminal_gguf.sh
Validation Notes
The GGUF files were produced successfully from the source safetensors and checksummed.
A local llama-cli generation smoke test with this specific cached llama.cpp build produced repeated prompt-marker output (>), so the uploaded model card does not claim a passing generation benchmark for GGUF runtime yet. Use a recent llama.cpp build with LFM2 MoE support and validate your target runtime locally. The original Transformers/vLLM source model remains the evaluated model for the reported TB2-lite score.
한국어 요약
이 저장소는 LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch 모델의 GGUF 변환본입니다.
16GB RAM CPU 환경에서는 Q4_K_M을 먼저 쓰는 것을 권장합니다. 품질을 조금 더 원하면 Q5_K_M, 원본 품질 보존에 가깝게 쓰고 싶으면 Q8_0을 쓰면 됩니다.
이 모델은 터미널 자동화용 모델입니다. 디렉터리 상태나 이전 터미널 출력을 보고 다음에 실행할 명령을 JSON 형태로 내는 용도입니다. 실제 명령 실행은 반드시 샌드박스, allowlist, 사람 검토 같은 안전장치를 거쳐야 합니다.
- Downloads last month
- 379
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF
Base model
LiquidAI/LFM2.5-8B-A1B-Base
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-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": "LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'