AlexAtomic commited on
Commit
55ed5df
·
verified ·
1 Parent(s): 7c8bcca

Atomic Chat self-quantized LiquidAI/LFM2.5-8B-A1B ladder (imatrix, calibration_datav3)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ lfm25-8b-a1b-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ lfm25-8b-a1b-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
38
+ lfm25-8b-a1b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
39
+ lfm25-8b-a1b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
40
+ lfm25-8b-a1b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ lfm25-8b-a1b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
42
+ lfm25-8b-a1b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
43
+ lfm25-8b-a1b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
44
+ lfm25-8b-a1b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
45
+ lfm25-8b-a1b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
46
+ lfm25-8b-a1b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
47
+ lfm25-8b-a1b-UD-Q4_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: lfm1.0
4
+ license_link: https://huggingface.co/LiquidAI/LFM2.5-8B-A1B/raw/main/LICENSE
5
+ thumbnail: https://huggingface.co/AlexAtomic/lfm25-8b-a1b-GGUF/resolve/main/hero.png
6
+ base_model:
7
+ - LiquidAI/LFM2.5-8B-A1B
8
+ base_model_relation: quantized
9
+ quantized_by: AlexAtomic
10
+ language:
11
+ - en
12
+ - ar
13
+ - zh
14
+ - fr
15
+ - de
16
+ - ja
17
+ - ko
18
+ - es
19
+ - pt
20
+ - it
21
+ pipeline_tag: text-generation
22
+ library_name: gguf
23
+ tags:
24
+ - atomic-chat
25
+ - lfm
26
+ - liquid
27
+ - lfm2
28
+ - gguf
29
+ - imatrix
30
+ - quantized
31
+ - llama.cpp
32
+ ---
33
+
34
+ <center>
35
+
36
+ <div style="display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap;">
37
+ <a href="https://atomic.chat"><img src="https://huggingface.co/AlexAtomic/lfm25-8b-a1b-GGUF/resolve/main/pill_atomic_v3.png" alt="Atomic Chat" width="186"></a>
38
+ <a href="https://discord.gg/8wGSsvmg4V"><img src="https://huggingface.co/AlexAtomic/lfm25-8b-a1b-GGUF/resolve/main/pill_discord_v3.png" alt="Join Discord" width="184"></a>
39
+ <a href="https://github.com/AtomicBot-ai/Atomic-Chat"><img src="https://huggingface.co/AlexAtomic/lfm25-8b-a1b-GGUF/resolve/main/pill_github_v3.png" alt="GitHub" width="141"></a>
40
+ </div>
41
+
42
+ <br/>
43
+
44
+ <img src="https://huggingface.co/AlexAtomic/lfm25-8b-a1b-GGUF/resolve/main/hero.png" alt="LFM2.5 8B A1B" style="width:100%; max-width:100%; height:auto; margin-bottom:0.6em;"/>
45
+
46
+ <div style="display:flex; justify-content:center; gap:0.5em;">
47
+ <a href="https://huggingface.co/LiquidAI/LFM2.5-8B-A1B"><strong>Base model: LiquidAI/LFM2.5-8B-A1B</strong></a>
48
+ </div>
49
+ </center>
50
+
51
+ **LFM2.5 8B A1B**, self-quantized to GGUF by [Atomic Chat](https://atomic.chat). Built straight from Liquid AI's original weights with a per-tensor importance matrix. Runs fully offline.
52
+
53
+ ## Highlights
54
+
55
+ - **Sparse MoE**: 8.3B total parameters, only 1.5B active per token.
56
+ - **LFM2 hybrid architecture**: 24 layers (18 double-gated LIV convolution blocks + 6 GQA attention), built on LFM2 with extended pre-training and reinforcement learning.
57
+ - **On-device assistant**: designed to chain tool calls and follow complex instructions, with day-one support for llama.cpp, MLX, vLLM and SGLang.
58
+ - **Reasoning model**: assistant turns include an explicit chain of thought before the final answer.
59
+ - **128K context**, 128,000 vocabulary, trained on a 38 trillion token budget.
60
+ - **Multilingual**: English, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
61
+
62
+ > [!NOTE]
63
+ > These GGUFs are **self-quantized from the original weights**, not a repack. The importance matrix keeps low-bit quants closer to the full-precision model.
64
+
65
+ > [!IMPORTANT]
66
+ > Always pass `--jinja` so the **LFM2.5 8B A1B chat template** is applied. Without it the model can emit malformed turns.
67
+
68
+ ## Model Overview
69
+
70
+ | Property | Value |
71
+ |---|---|
72
+ | Base model | `LiquidAI/LFM2.5-8B-A1B` |
73
+ | Total / active parameters | 8.3B total, 1.5B active (MoE) |
74
+ | Layers | 24 (18 LIV conv + 6 GQA) |
75
+ | Context length | 128,000 |
76
+ | Architecture | LFM2.5 hybrid (built on LFM2, extended pre-training + RL) |
77
+ | This repo | GGUF quants (imatrix) |
78
+
79
+ <img src="https://huggingface.co/AlexAtomic/lfm25-8b-a1b-GGUF/resolve/main/benchmark.png" alt="LFM2.5 8B A1B benchmark scores" style="width:100%; max-width:900px;"/>
80
+
81
+ Scores are Liquid AI's published results for the base `LiquidAI/LFM2.5-8B-A1B`. Quantization preserves the large majority of this; `Q4_K_M` and up sit within a point or two of full precision.
82
+
83
+ ## Quality
84
+
85
+ KL-divergence and top-token agreement measured against our full-precision `f16` over 40 chunks. **Lower KLD = closer to full precision.**
86
+
87
+ | Quant | Mean KLD ↓ | Top-token match ↑ |
88
+ |---|---|---|
89
+ | `Q4_K_M` — Atomic | 0.126876 | 82.896% |
90
+ | `Q4_K_M` — Unsloth | 0.074829 | 87.029% |
91
+
92
+ Unsloth comparison: [`unsloth/LFM2.5-8B-A1B-GGUF`](https://huggingface.co/unsloth/LFM2.5-8B-A1B-GGUF), identical test set and chunk count.
93
+
94
+ ## Choosing a quant
95
+
96
+ | Quant | Size | Notes |
97
+ |---|---|---|
98
+ | `Q2_K` | 3.2 GB | Smallest. Minimal RAM, clear quality drop. |
99
+ | `IQ3_M` | 3.8 GB | Beats Q3 at similar size thanks to imatrix. Best low-RAM pick. |
100
+ | `Q3_K_M` | 4.1 GB | Low quality but usable. |
101
+ | `Q3_K_L` | 4.4 GB | A step above Q3_K_M. |
102
+ | `IQ4_XS` | 4.6 GB | Excellent quality for size. Recommended low-bit. |
103
+ | `Q4_K_S` | 4.9 GB | Compact Q4, fast. |
104
+ | **`Q4_K_M`** | 5.2 GB | **Recommended default. Best balance of size, speed and quality.** |
105
+ | **`UD-Q4_K_XL`** | 5.2 GB | **Dynamic. Embeddings and output kept at Q8_0 for higher quality at a Q4 footprint.** |
106
+ | `Q5_K_S` | 5.9 GB | Higher quality. |
107
+ | `Q5_K_M` | 6.0 GB | Higher quality, low loss. |
108
+ | `Q6_K` | 7.0 GB | Near lossless. |
109
+ | `Q8_0` | 9.0 GB | Effectively lossless, reference quality. |
110
+
111
+ > [!TIP]
112
+ > Pick the largest file that fits your (V)RAM with room for context. `Q4_K_M` or `UD-Q4_K_XL` is the sweet spot for most setups; `Q6_K` or `Q8_0` for maximum fidelity.
113
+
114
+ ## Get started
115
+
116
+ Run LFM2.5 8B A1B locally with:
117
+
118
+ - **[Atomic Chat](https://atomic.chat):** the easiest path. Open the app, search `AlexAtomic/lfm25-8b-a1b-GGUF`, pick a quant, hit **Use this model**.
119
+ - **llama.cpp:** `llama-server -hf AlexAtomic/lfm25-8b-a1b-GGUF:Q4_K_M --jinja -c 8192`
120
+ - **Ollama:** `ollama run hf.co/AlexAtomic/lfm25-8b-a1b-GGUF:Q4_K_M`
121
+ - **LM Studio / Jan:** search the repo id, download any quant.
122
+
123
+ ## Best practices
124
+
125
+ | Parameter | Value |
126
+ |---|---|
127
+ | temperature | 0.2 |
128
+ | top_k | 80 |
129
+ | repetition_penalty | 1.05 |
130
+
131
+ Liquid AI's recommended generation parameters.
132
+
133
+ ## Run in llama.cpp
134
+
135
+ ```bash
136
+ git clone https://github.com/ggerganov/llama.cpp
137
+ cmake llama.cpp -B llama.cpp/build -DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
138
+ cmake --build llama.cpp/build --config Release -j --target llama-cli llama-server
139
+ ```
140
+
141
+ ```bash
142
+ ./llama.cpp/build/bin/llama-server \
143
+ -hf AlexAtomic/lfm25-8b-a1b-GGUF:UD-Q4_K_XL \
144
+ --jinja -ngl 99 -c 8192 -fa on
145
+ ```
146
+
147
+ ## How these were made
148
+
149
+ 1. Download `LiquidAI/LFM2.5-8B-A1B` (original weights).
150
+ 2. Convert to f16 GGUF with [llama.cpp](https://github.com/ggerganov/llama.cpp).
151
+ 3. Build an importance matrix over `calibration_datav3` (100 chunks).
152
+ 4. Quantize the full ladder with `--imatrix`.
153
+ 5. `UD-Q4_K_XL` additionally pins the token-embedding and output tensors to `Q8_0`.
154
+
155
+ ## License
156
+
157
+ Released by Liquid AI under their LFM1.0 license. Quantized by Atomic Chat.
158
+
bench.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "model": "lfm25-8b-a1b", "chunks": 40, "f16_ppl": "36.0986", "unsloth_repo": "unsloth/LFM2.5-8B-A1B-GGUF",
3
+ "rows": [
4
+ {"quant":"Q4_K_M","our_kld":"0.126876","our_agree":"82.896","our_ppl":"2.792977","uns_kld":"0.074829","uns_agree":"87.029","uns_ppl":"0.225532"}
5
+ ]
6
+ }
benchmark.png ADDED
hero.png ADDED
lfm25-8b-a1b-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b007291d6ffa0b987966f85eeba2505ebd4f6d6717eb64f70d9bbac6a74f16e
3
+ size 3778752032
lfm25-8b-a1b-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:025bbb71cf0d43e45a718fd92897233d820faa06b52b4ba52b7c22d1a2999a29
3
+ size 4588301856
lfm25-8b-a1b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bafc634954578c9e68aef058656b4fa7da639cc4baade0cdce6f6af588eb6f2
3
+ size 3190435360
lfm25-8b-a1b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed612ef1055216c3789144926d688b63dbae4b51bb9ad46010db955334e716c3
3
+ size 4436864544
lfm25-8b-a1b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:593b211efe50169e13f4ec81a0889956d9024e61bd3a162d7635928665d2bf38
3
+ size 4108398112
lfm25-8b-a1b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72955dd6c06a8833e660af0aa1cc9a4d722cdc92abe94a61715ae7b866d67bf2
3
+ size 5155565088
lfm25-8b-a1b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6feceb7b07b4252f72c158c2394eae3392304af805900841013934fd3ce5831
3
+ size 4863553056
lfm25-8b-a1b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d547400a4486771d93ca195204965b172ae2c0ca2dbd3344fa7f44b4b2c716c3
3
+ size 6030339616
lfm25-8b-a1b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:992df0d7b33873c3c79033de757b18f46ac7f0184c9c1ae92bbcd1ee1a46a757
3
+ size 5870186016
lfm25-8b-a1b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e9fbc921e3d7f93ed81db80cce917dbc8d142a1d28c365c95abe30cce9050b9
3
+ size 6959787552
lfm25-8b-a1b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67b3b20eaab2d0eb87eb971ceb1e0d7b229c8bc3b90cbb46d33f0ecfa5b17e63
3
+ size 9010196000
lfm25-8b-a1b-UD-Q4_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:283b12943743c5bb54b7f9fc8f7076c8ea32d163a06fb0e6f525178e7232c588
3
+ size 5219053088
pill_atomic_v3.png ADDED
pill_discord_v3.png ADDED
pill_github_v3.png ADDED