LFM2.5-24B-A2B-Distill-GGUF
Distilled on Qwen3.8-Max / GLM-5.2 teacher traces.
A LoRA distillation of LiquidAI/LFM2.5-24B-A2B (stock BF16 weights), fine-tuned on the public teacher-trace corpus r0b0tlab/qwen3.8-max-glm5.2-distillation-51389 (mainly Qwen3.8-Max reasoning traces), merged back into the base model and quantized to a UD-IQ3_XXS GGUF that fully fits a 6 GB VRAM / 16 GB RAM laptop.
日本語概要 (Japanese summary)
LiquidAI の LFM2.5-24B-A2B(素の BF16)に、公開教師トレース(主に Qwen3.8-Max)で LoRA 蒸留を行い、 マージ後に UD-IQ3_XXS へ量子化した GGUF です。日常状態のノート PC(RTX 3060 Laptop 6GB / RAM 16GB)で tg128 20.26 tok/s を実測しました。学習データの日本語比率は 0.165% と低く、日本語能力は概ねベースモデル依存です。 本モデルに abliteration(拒否除去)の処理は行っていません。拒否挙動はベースモデルに準じます(未検証)。
Model overview
- Base model: LiquidAI/LFM2.5-24B-A2B (23.97B total / ~2.45B active, MoE)
- Method: LoRA SFT on teacher reasoning traces → merge (16-bit) → GGUF F16 → UD-IQ3_XXS quantize
- Artifact: single GGUF, 8.34 GiB, plus the LoRA adapter (
lora_out/) used to produce it - License:
other— the base model is under LiquidAI's LFM license and the training corpus is noncommercial-research ("other"). See License and credits below; this repo is not Apache-2.0.
Files
| File | Quantization | Size | SHA-256 |
|---|---|---|---|
LFM2.5-24B-A2B-Distill-UD-IQ3_XXS.gguf | UD-IQ3_XXS (3.0625 bpw) | 8,959,327,904 bytes (8.34 GiB) | 07c33164786f7e7cd0aa53e6f3cdab7301b88a8892aa21f363ba2b2e94228d05 |
lora_out/ | LoRA adapter (PEFT) | adapter_model.safetensors 9,859,016 bytes | — |
Method
- Data: from the corpus's
sft_reasoningsplit (44,151 rows over 5 shards), rows carrying tool definitions/calls (12.09%) and over-length rows were excluded (37,229 kept). Corpus-provided system prompts were dropped; each assistant turn was rebuilt as<think> …reasoning… </think>+ final answer. A training set of 3,801 rows / 2,200,109 tokens was sampled; 256 rows were held out for evaluation. Domain mix of the source split: math 12,151 / code 10,579 / reasoning 9,425 / instruction-following and others. - LoRA SFT (Unsloth, base loaded in 4-bit NF4, sequence packing at 4,096 tokens, 1 epoch, 68 steps):
- Attention / short-conv projections (q/k/v/out): r=16, α=32
- MoE expert projections (w1/w2/w3): r=4, α=8, one shared low-rank update per layer (not per-expert)
- Trainable parameters: 2,461,696 (0.0103%); final train_loss 0.5849
- Trained on a single L4 GPU (Google Colab), peak VRAM 18.29 GB
- Merge: adapter merged into the stock BF16 base with Unsloth
merged_16bit. - Quantize: F16 GGUF via llama.cpp
convert_hf_to_gguf.py, thenllama-quantizeto IQ3_XXS with a per-tensor type file replicating the UD (Unsloth dynamic) layout of alexwkleung/LFM2.5-24B-A2B-Abliterated-GGUF — 428 tensors with the identical type distribution (Q6_K 47, IQ3_XXS 60, IQ3_S 40, IQ2_S 72, IQ4_XS 2, F32 207) — using alexwkleung's publicly released imatrix file for calibration.
Evaluation
Held-out teacher traces (split off before training; 128 rows, 52,685 completion tokens), completion-only NLL:
| Model | NLL | ≈ PPL |
|---|---|---|
| LFM2.5-24B-A2B (base, 4-bit) | 0.8309 | 2.30 |
| Distilled (this model) | 0.5853 | 1.80 |
ΔNLL −0.246. This measures fit to the teacher's reasoning style/traces, not general benchmark ability; no standard benchmark suite was run.
Smoke checks (llama.cpp, temperature 0): arithmetic (17 + 25) answered correctly with step-by-step working; a Fibonacci implementation task answered with a correct iterative DP solution; a Japanese explanation prompt (photosynthesis, for elementary-school readers) produced coherent, grammatical Japanese.
Inference speed
Measured with llama-bench (llama.cpp b12208, CUDA, -ngl 99 -ncmoe 99) on a laptop in its normal
daily state (background services running, nothing stopped):
- Hardware: RTX 3060 Laptop (6 GB VRAM), Core i7-12650H, 16 GB RAM
- tg128: 20.26 ± 1.08 tok/s
The 8.34 GiB file with MoE CPU-offload (-ncmoe 99) stays resident in this configuration.
Usage
llama-cli -m LFM2.5-24B-A2B-Distill-UD-IQ3_XXS.gguf -ngl 99 -ncmoe 99 --jinja
# or via llama-server / any llama.cpp-based UI
Use the model's chat template: it opens the assistant turn with <think>, and the model was trained to
reason inside <think> … </think> before answering. Feeding raw completions without the template can
produce small artifacts at the start of a response.
Limitations
- Japanese data was scarce: only 0.165% of training user turns were Japanese, so Japanese ability is largely inherited from the base model; the training traces (and therefore the learned reasoning style) are overwhelmingly English, although the model does sometimes reason in Japanese when asked in Japanese.
- Not abliterated: training started from the stock base model, not from alexwkleung's abliterated build, so that build's refusal behavior is not inherited. Only its quantization layout and imatrix were reused. Uncensored/refusal behavior of this model is unverified.
- Small, single-run pilot: one LoRA epoch over 2.2M tokens with a 2.46M-parameter adapter. Expect a style/behavior shift toward the teacher, not a capability jump; no benchmark suite, no long-context evaluation, and no perplexity measurement of the final GGUF were performed.
- The teacher corpus is synthetic and multi-source; any biases or errors in it may carry over.
License and credits
- Base model: LiquidAI/LFM2.5-24B-A2B — LFM license (see the base model card).
- Training data: r0b0tlab/qwen3.8-max-glm5.2-distillation-51389 — license "other" (noncommercial research).
- UD quantization layout and imatrix: alexwkleung/LFM2.5-24B-A2B-Abliterated-GGUF.
- Tooling: llama.cpp, Unsloth, PEFT.
This repository is released under license: other in deference to the base model and dataset terms above.