Text Generation
PEFT
GGUF
English
lfm2.5
liquid-ai
fable-5
coding-agent
tool-use
lora
conversational
Instructions to use AKMESSI/lfm2.5-230m-fable-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AKMESSI/lfm2.5-230m-fable-5 with PEFT:
Task type is invalid.
- llama-cpp-python
How to use AKMESSI/lfm2.5-230m-fable-5 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AKMESSI/lfm2.5-230m-fable-5", filename="lfm2.5-230m-fable-5-f16.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 AKMESSI/lfm2.5-230m-fable-5 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 AKMESSI/lfm2.5-230m-fable-5:Q4_K_M # Run inference directly in the terminal: llama cli -hf AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AKMESSI/lfm2.5-230m-fable-5:Q4_K_M # Run inference directly in the terminal: llama cli -hf AKMESSI/lfm2.5-230m-fable-5: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 AKMESSI/lfm2.5-230m-fable-5:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AKMESSI/lfm2.5-230m-fable-5: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 AKMESSI/lfm2.5-230m-fable-5:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
Use Docker
docker model run hf.co/AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use AKMESSI/lfm2.5-230m-fable-5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AKMESSI/lfm2.5-230m-fable-5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AKMESSI/lfm2.5-230m-fable-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
- Ollama
How to use AKMESSI/lfm2.5-230m-fable-5 with Ollama:
ollama run hf.co/AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
- Unsloth Studio
How to use AKMESSI/lfm2.5-230m-fable-5 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 AKMESSI/lfm2.5-230m-fable-5 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 AKMESSI/lfm2.5-230m-fable-5 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AKMESSI/lfm2.5-230m-fable-5 to start chatting
- Pi
How to use AKMESSI/lfm2.5-230m-fable-5 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AKMESSI/lfm2.5-230m-fable-5: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": "AKMESSI/lfm2.5-230m-fable-5:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use AKMESSI/lfm2.5-230m-fable-5 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AKMESSI/lfm2.5-230m-fable-5: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 AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use AKMESSI/lfm2.5-230m-fable-5 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AKMESSI/lfm2.5-230m-fable-5: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 "AKMESSI/lfm2.5-230m-fable-5: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 AKMESSI/lfm2.5-230m-fable-5 with Docker Model Runner:
docker model run hf.co/AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
- Lemonade
How to use AKMESSI/lfm2.5-230m-fable-5 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AKMESSI/lfm2.5-230m-fable-5:Q4_K_M
Run and chat with the model
lemonade run user.lfm2.5-230m-fable-5-Q4_K_M
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -51,6 +51,107 @@ Fine-tuned GGUF release of `LiquidAI/LFM2.5-230M` on `Glint-Research/Fable-5-tra
|
|
| 51 |
- step 575: 1.6589
|
| 52 |
- step 580: 1.6439
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
## Usage
|
| 55 |
|
| 56 |
Recommended local file:
|
|
|
|
| 51 |
- step 575: 1.6589
|
| 52 |
- step 580: 1.6439
|
| 53 |
|
| 54 |
+
## Evaluation
|
| 55 |
+
|
| 56 |
+
We evaluated `AKMESSI/lfm2.5-230m-fable-5:F16` against the original base model, `LiquidAI/LFM2.5-230M-GGUF:BF16`, using local llama.cpp server inference.
|
| 57 |
+
|
| 58 |
+
These are **not official leaderboard submissions**. They are lightweight local evaluations intended to compare the fine-tuned model against the base model under the same prompts, decoding settings, and hardware setup.
|
| 59 |
+
|
| 60 |
+
### Summary
|
| 61 |
+
|
| 62 |
+
The Fable-5 fine-tune improves repository-context code continuation on RepoBench-C-lite Python, while mostly preserving the base model's generic function-calling behavior on BFCL-lite Simple.
|
| 63 |
+
|
| 64 |
+
| Benchmark | Result |
|
| 65 |
+
|---|---|
|
| 66 |
+
| RepoBench-C-lite Python | Fine-tuned model outperforms base model |
|
| 67 |
+
| BFCL-lite Simple | Fine-tuned model mostly preserves base function-calling ability |
|
| 68 |
+
| CodeXGLUE Line Completion Python | Neutral / unchanged |
|
| 69 |
+
| CRUXEval-lite | Not a good fit for this trace-style model |
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
### RepoBench-C-lite Python
|
| 74 |
+
|
| 75 |
+
RepoBench-C-style next-line code completion was used to evaluate repository-context code continuation. We sampled 100 examples each from `python_if`, `python_cff`, and `python_cfr`, for 300 total examples.
|
| 76 |
+
|
| 77 |
+
| Model | Examples | Exact Match | Prefix Match | Edit Similarity |
|
| 78 |
+
|---|---:|---:|---:|---:|
|
| 79 |
+
| `LiquidAI/LFM2.5-230M-GGUF:BF16` | 300 | 10.33% | 10.67% | 46.85% |
|
| 80 |
+
| `AKMESSI/lfm2.5-230m-fable-5:F16` | 300 | 14.67% | 15.33% | 50.17% |
|
| 81 |
+
|
| 82 |
+
Compared with the base model, the Fable-5 fine-tune improved:
|
| 83 |
+
|
| 84 |
+
- Exact match by **+4.33 percentage points**
|
| 85 |
+
- Prefix match by **+4.67 percentage points**
|
| 86 |
+
- Edit similarity by **+3.32 points**
|
| 87 |
+
|
| 88 |
+
Breakdown by config:
|
| 89 |
+
|
| 90 |
+
| Config | Base Exact | Fable Exact | Base Edit Sim | Fable Edit Sim |
|
| 91 |
+
|---|---:|---:|---:|---:|
|
| 92 |
+
| `python_if` | 21.00% | 27.00% | 55.14% | 57.31% |
|
| 93 |
+
| `python_cff` | 3.00% | 5.00% | 37.45% | 38.10% |
|
| 94 |
+
| `python_cfr` | 7.00% | 12.00% | 47.96% | 55.10% |
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
### BFCL-lite Simple
|
| 99 |
+
|
| 100 |
+
We also ran a local BFCL-lite Simple function-calling evaluation over 400 examples as a generic tool-calling control.
|
| 101 |
+
|
| 102 |
+
| Model | Examples | Parse-valid JSON | Function-name Match | Argument Recall | Rough Score |
|
| 103 |
+
|---|---:|---:|---:|---:|---:|
|
| 104 |
+
| `LiquidAI/LFM2.5-230M-GGUF:BF16` | 400 | 97.75% | 97.50% | 71.60% | 88.44% |
|
| 105 |
+
| `AKMESSI/lfm2.5-230m-fable-5:F16` | 400 | 98.25% | 95.00% | 67.70% | 85.44% |
|
| 106 |
+
|
| 107 |
+
The fine-tuned model preserves most of the base model's generic function-calling behavior, but does not improve BFCL-style API-schema-to-JSON calling. This is expected because the training data consists of coding-agent traces rather than clean function-calling examples.
|
| 108 |
+
|
| 109 |
+
---
|
| 110 |
+
|
| 111 |
+
### CodeXGLUE Line Completion Python
|
| 112 |
+
|
| 113 |
+
We ran a 1,000-example local CodeXGLUE line-completion evaluation as a general code-completion control.
|
| 114 |
+
|
| 115 |
+
| Model | Examples | Exact Match | Prefix Match | Edit Similarity |
|
| 116 |
+
|---|---:|---:|---:|---:|
|
| 117 |
+
| `LiquidAI/LFM2.5-230M-GGUF:BF16` | 1000 | 23.60% | 0.00% | 23.60% |
|
| 118 |
+
| `AKMESSI/lfm2.5-230m-fable-5:F16` | 1000 | 23.50% | 0.00% | 23.50% |
|
| 119 |
+
|
| 120 |
+
This result is effectively neutral. The Fable-5 fine-tune does not materially change general line-completion performance on this setup.
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
|
| 124 |
+
### CRUXEval-lite
|
| 125 |
+
|
| 126 |
+
We also tried a 200-example CRUXEval-lite run for Python execution reasoning.
|
| 127 |
+
|
| 128 |
+
| Model | Task O Accuracy | Task I Accuracy | Overall Accuracy |
|
| 129 |
+
|---|---:|---:|---:|
|
| 130 |
+
| `LiquidAI/LFM2.5-230M-GGUF:BF16` | 8.50% | 4.00% | 6.25% |
|
| 131 |
+
| `AKMESSI/lfm2.5-230m-fable-5:F16` | 0.00% | 0.00% | 0.00% |
|
| 132 |
+
|
| 133 |
+
This benchmark was not a good fit for the fine-tuned model. The Fable-5 model often entered explanation or trace-style response mode instead of returning only the exact literal Python value expected by CRUXEval.
|
| 134 |
+
|
| 135 |
+
---
|
| 136 |
+
|
| 137 |
+
### Interpretation
|
| 138 |
+
|
| 139 |
+
The Fable-5 fine-tune appears to shift the base model toward coding-agent and repository-context continuation behavior.
|
| 140 |
+
|
| 141 |
+
It improves RepoBench-C-lite Python next-line completion, while mostly preserving generic function-calling ability on BFCL-lite Simple. The main regression is in exact BFCL-style argument filling, which is not the main target of the Fable-5 trace dataset.
|
| 142 |
+
|
| 143 |
+
The model is best understood as a tiny coding-agent trace model, not a general-purpose reasoning model or a benchmark-specialized function-calling model.
|
| 144 |
+
|
| 145 |
+
---
|
| 146 |
+
|
| 147 |
+
### Evaluation Caveats
|
| 148 |
+
|
| 149 |
+
- These are local lightweight evaluations, not official leaderboard submissions.
|
| 150 |
+
- Results were produced with llama.cpp server inference.
|
| 151 |
+
- Scores may vary with prompting, decoding settings, quantization level, and benchmark harness details.
|
| 152 |
+
- BFCL-lite and RepoBench-C-lite use simplified local scoring scripts rather than official leaderboard infrastructure.
|
| 153 |
+
- Only the F16 model was benchmarked here; quantized GGUF variants may differ slightly.
|
| 154 |
+
|
| 155 |
## Usage
|
| 156 |
|
| 157 |
Recommended local file:
|