Instructions to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF", filename="lfm2.5-1.2b-sft-fable5-glint.q4_k_m.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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M
Use Docker
docker model run hf.co/ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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": "ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M
- Ollama
How to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF with Ollama:
ollama run hf.co/ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M
- Unsloth Studio
How to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-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 ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF with Docker Model Runner:
docker model run hf.co/ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M
- Lemonade
How to use ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LFM2.5-1.2B-SFT-Fable5-Glint-GGUF-Q4_K_M
List all available models
lemonade list
LFM2.5-1.2B-SFT-Fable5-Glint — GGUF
Quantized GGUF builds of LFM2.5-1.2B-SFT-Fable5-Glint, a
LiquidAI/LFM2.5-1.2B-Instruct model supervised-fine-tuned on the
FABLE-5 trace corpus. These files run locally with
llama.cpp, Ollama,
LM Studio, and any GGUF-compatible runtime — no GPU required for the
smaller quants.
Overview
| Fine-tuned model | LFM2.5-1.2B-SFT-Fable5-Glint |
| Base model | LiquidAI/LFM2.5-1.2B-Instruct |
| Parameter class | 3B |
| Model family | lfm2 |
| Training method | LoRA SFT (distillation) |
| Domain | FABLE-5 creative / agentic traces |
| Format | GGUF (this repo) · safetensors (merged repo) |
Built on a LiquidAI LFM2 base.
What is FABLE-5?
This model was fine-tuned on FABLE-5-Glint, a cleaned corpus of FABLE-5 pi-agent
reasoning traces (each target completion may include a <think>…</think> reasoning span
followed by the response). Training used assistant-only loss masking so the model learns to
produce the response, not echo the prompt. The dataset is private; the fine-tuned weights
are public.
Available Quantizations
| File | Quant | Size | Notes |
|---|---|---|---|
lfm2.5-1.2b-sft-fable5-glint.q4_k_m.gguf |
Q4_K_M | ~697 MB | Recommended — best quality/size balance |
lfm2.5-1.2b-sft-fable5-glint.q5_k_m.gguf |
Q5_K_M | ~804 MB | Higher quality |
lfm2.5-1.2b-sft-fable5-glint.q8_0.gguf |
Q8_0 | ~1.2 GB | Maximum quality (near-lossless) |
Which to pick: Q4_K_M is the best size/quality trade-off for most users. Use Q5_K_M
if you have spare RAM/VRAM and want a little more fidelity, or Q8_0 for near-lossless output
when size is not a concern.
Usage
Ollama
# Pull + run the recommended Q4_K_M quant directly from the Hub
ollama run hf.co/ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF:Q4_K_M "Write a short story about a clockwork fox."
To pin a different quant, swap the tag (e.g. :Q5_K_M, :Q8_0).
llama.cpp
# Download a single quant, then run it
huggingface-cli download ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF lfm2.5-1.2b-sft-fable5-glint.q4_k_m.gguf --local-dir .
llama-cli -m lfm2.5-1.2b-sft-fable5-glint.q4_k_m.gguf -p "Write a short story about a clockwork fox." -n 512
# Or serve an OpenAI-compatible endpoint
llama-server -m lfm2.5-1.2b-sft-fable5-glint.q4_k_m.gguf --host 0.0.0.0 --port 8080
LM Studio
Search for ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF in LM Studio, or download a .gguf above and load it from disk.
Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama.from_pretrained(repo_id="ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF", filename="*q4_k_m.gguf", n_ctx=4096)
out = llm.create_chat_completion(
messages=[{"role": "user", "content": "Write a short story about a clockwork fox."}]
)
print(out["choices"][0]["message"]["content"])
Prompt format
Use the base model's chat template (applied automatically by Ollama / LM Studio /
create_chat_completion). The model was trained on 2-turn user → assistant chats. For
thinking-style bases, the model may emit a <think>…</think> span before its answer.
Training details
| Hyperparameter | Value |
|---|---|
| Method | LoRA SFT, merged to 16-bit then quantized |
| LoRA rank / α | 16 / 16 |
| Learning rate | 0.0002 |
| LR scheduler | cosine (warmup 0.03) |
| Max sequence length | 4096 |
| Epochs | 3 |
| Loss masking | assistant-only |
| Quantization toolchain | llama.cpp convert_hf_to_gguf + llama-quantize |
A deterministic ~5% slice of the corpus was held out from training for evaluation.
Intended use & limitations
- Intended: local/offline creative writing, reasoning-trace style generation, and experimentation with FABLE-5-distilled behavior on consumer hardware.
- Limitations: inherits the base model's knowledge cutoff and biases; quantization
(especially
Q4_K_M) trades some fidelity for size; not safety-tuned for production use without additional guardrails. Outputs may be fictional/unverified.
Citation
@misc{azarkhalili2026lfm2512bsftfable5glint,
author = {Azarkhalili, Behrooz},
title = {LFM2.5-1.2B-SFT-Fable5-Glint: FABLE-5 SFT distillation (GGUF)},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF}
}
- Downloads last month
- 458
4-bit
5-bit
8-bit
Model tree for ermiaazarkhalili/LFM2.5-1.2B-SFT-Fable5-Glint-GGUF
Base model
LiquidAI/LFM2.5-1.2B-Base