Instructions to use micrictor/LFM2.5-350M-ShellAI-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 micrictor/LFM2.5-350M-ShellAI-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 micrictor/LFM2.5-350M-ShellAI-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
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 micrictor/LFM2.5-350M-ShellAI-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
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 micrictor/LFM2.5-350M-ShellAI-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
Use Docker
docker model run hf.co/micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
- LM Studio
- Jan
- Ollama
How to use micrictor/LFM2.5-350M-ShellAI-GGUF with Ollama:
ollama run hf.co/micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
- Unsloth Desktop
- Pi
How to use micrictor/LFM2.5-350M-ShellAI-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
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": "micrictor/LFM2.5-350M-ShellAI-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use micrictor/LFM2.5-350M-ShellAI-GGUF with Docker Model Runner:
docker model run hf.co/micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
- Lemonade
How to use micrictor/LFM2.5-350M-ShellAI-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
Run and chat with the model
lemonade run user.LFM2.5-350M-ShellAI-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use micrictor/LFM2.5-350M-ShellAI-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 micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
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 micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use micrictor/LFM2.5-350M-ShellAI-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf micrictor/LFM2.5-350M-ShellAI-GGUF:BF16
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 "micrictor/LFM2.5-350M-ShellAI-GGUF:BF16" \ --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-350M-ShellAI-GGUF
ShellAI Bash-command model distilled at the response level from
LiquidAI/LFM2.5-2.6B into LiquidAI/LFM2.5-350M.
This repository contains a post-training Q8_0 GGUF. It is not a QAD checkpoint.
The model is trained to emit exactly one command inside:
<shellai-command>command</shellai-command>
General chat anchors, assistant-only loss, LoRA, one training epoch, early stopping, and a pre-publication retention gate are used to reduce catastrophic forgetting. No generated command was executed during dataset construction or evaluation.
Distillation
The two models have different vocabularies (128K teacher versus 65,536 student), so this uses sequence-level response distillation rather than token-logit KL. Teacher candidates that fail the command envelope, primary-utility, or reference- similarity gates fall back to the verified dataset reference.
Evaluation
Held-out repository test split (300 examples, BF16 Transformers):
| Model | Exact | Utility match | Token F1 | Valid envelope |
|---|---|---|---|---|
| Base 350M | 5.7% | 23.0% | 0.225 | 100.0% |
| Distilled 350M | 4.0% | 39.7% | 0.305 | 100.0% |
Chat retention used 50 non-shell prompts: shell-envelope leakage remained 0.0%; anchor similarity retained 84.9% of baseline.
Q8_0 llama.cpp CPU test (same 50-example subset):
| Threads | Token F1 | Utility match | Median latency | Decode |
|---|---|---|---|---|
| 1 | 0.268 | 36.0% | 1278 ms | 16.6 tok/s |
| 2 | 0.268 | 36.0% | 641 ms | 32.5 tok/s |
License
This is a modified derivative of Liquid AI's LFM2.5 weights and is distributed
under the included LFM Open License v1.0. See NOTICE for modification details.
- Downloads last month
- 87
8-bit
16-bit