Instructions to use red-ware/lfm3-expand-v13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use red-ware/lfm3-expand-v13b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM3-1.7B") model = PeftModel.from_pretrained(base_model, "red-ware/lfm3-expand-v13b") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use red-ware/lfm3-expand-v13b 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 red-ware/lfm3-expand-v13b # Run inference directly in the terminal: llama cli -hf red-ware/lfm3-expand-v13b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf red-ware/lfm3-expand-v13b # Run inference directly in the terminal: llama cli -hf red-ware/lfm3-expand-v13b
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf red-ware/lfm3-expand-v13b # Run inference directly in the terminal: ./build/bin/llama cli -hf red-ware/lfm3-expand-v13b
Use Docker
docker model run hf.co/red-ware/lfm3-expand-v13b
- Llama new
- LM Studio
- Jan
- vLLM
How to use red-ware/lfm3-expand-v13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "red-ware/lfm3-expand-v13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "red-ware/lfm3-expand-v13b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/red-ware/lfm3-expand-v13b
- Ollama
How to use red-ware/lfm3-expand-v13b with Ollama:
ollama run hf.co/red-ware/lfm3-expand-v13b
- Unsloth Desktop
- Pi
How to use red-ware/lfm3-expand-v13b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf red-ware/lfm3-expand-v13b
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "red-ware/lfm3-expand-v13b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use red-ware/lfm3-expand-v13b with Docker Model Runner:
docker model run hf.co/red-ware/lfm3-expand-v13b
- Lemonade
How to use red-ware/lfm3-expand-v13b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull red-ware/lfm3-expand-v13b
Run and chat with the model
lemonade run user.lfm3-expand-v13b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use red-ware/lfm3-expand-v13b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf red-ware/lfm3-expand-v13b
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:9931/v1 hermes config set model.default red-ware/lfm3-expand-v13b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use red-ware/lfm3-expand-v13b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf red-ware/lfm3-expand-v13b
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:9931/v1 \ --custom-model-id "red-ware/lfm3-expand-v13b" \ --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"
LFM3 expansion finetune โ v13b
LoRA adapter and merged q4km GGUF for the expansion stage of compress, an LLM output compressor for customer support. The compressor emits a compact intermediate representation (IR) from one flagship model call; this finetuned model expands that IR back into a fluent customer reply.
This is the latest finetune (v13b), trained on top of LiquidAI/LFM3-1.7B. It supersedes v13 and v12.
Files
| File | Description |
|---|---|
adapter_model.safetensors, adapter_config.json |
PEFT LoRA adapter (r=32, alpha=64, dropout 0.05). |
tokenizer.json, tokenizer_config.json, chat_template.jinja |
Tokenizer and chat template used during training. |
lfm3-expand-v13b-q4km.gguf |
Merged, quantized (q4_k_m) model ready for llama.cpp. |
Intermediate training checkpoints are not included.
Evaluation
On the 100-row staging expansion eval (v3gem100), v13b produced 100/100
successful expansions with zero errors (p50 latency ~7 s on the eval host).
Validator and ladder results for the full pipeline are reported in the
compress repository.
Training and eval used staging/dev data only โ no production customer data.
Usage
GGUF (llama.cpp)
llama-server -m lfm3-expand-v13b-q4km.gguf \
--port 9931 -c 2048 -ngl 99 -ctk q8_0 -ctv q8_0 --temp 0.0 -rea off --jinja
The companion draft model lfm25-230m-q40.gguf can be passed with -md for
speculative decoding (it is not distributed in this repo).
LoRA adapter
from peft import PeftModel
from transformers import AutoModelForCausalLM
base = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM3-1.7B")
model = PeftModel.from_pretrained(base, "red-ware/lfm3-expand-v13b")
To merge the adapter and export a GGUF, use
kaggle/merge-lora-local.py
from the compress repository.
License
Released under the Business Source License 1.1, the same license as the compress repository. The base model's own license and usage terms still apply. See LICENSE.
- Downloads last month
- 216
We're not able to determine the quantization variants.