ConorWang commited on
Commit
1b3e4e8
·
verified ·
1 Parent(s): 12eb1a5

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +206 -137
README.md CHANGED
@@ -10,6 +10,7 @@ tags:
10
  - gguf
11
  - llama.cpp
12
  - bfloat16
 
13
  - mtp
14
  - speculative-decoding
15
  - veriloop
@@ -30,7 +31,7 @@ tags:
30
 
31
  <p align="center">
32
  <strong>Official llama.cpp distribution of VeriLoop E2</strong><br>
33
- <em>Reference-grade BF16 target + MTP speculative-decoding draft</em><br><br>
34
  <strong>27B post-trained model for code, mathematics, and physics · 262K native context · Apache License 2.0</strong><br>
35
  <strong>Developed by Tsinghua SIGS Robot Lab · Libo Wang</strong>
36
  </p>
@@ -39,8 +40,9 @@ tags:
39
  <a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/badge/License-Apache--2.0-2F80ED?style=flat-square" alt="License: Apache 2.0"></a>
40
  <img src="https://img.shields.io/badge/Format-GGUF-111827?style=flat-square" alt="Format: GGUF">
41
  <img src="https://img.shields.io/badge/Reference-BF16-5B5BD6?style=flat-square" alt="Reference: BF16">
 
 
42
  <img src="https://img.shields.io/badge/Runtime-llama.cpp-0A7F6F?style=flat-square" alt="Runtime: llama.cpp">
43
- <img src="https://img.shields.io/badge/MTP-Supported-7C3AED?style=flat-square" alt="MTP: Supported">
44
  </p>
45
 
46
  <p align="center">
@@ -56,36 +58,145 @@ tags:
56
 
57
  **VeriLoop E2 GGUF** is the official llama.cpp-oriented distribution of **VeriLoop E2**, a 27B post-trained model built on **Qwen3.8-27B** for code, software engineering, mathematics, and physics.
58
 
59
- This repository is intentionally organized as a **GGUF release repository rather than a duplicate of the parent model card**. The parent repository remains the authoritative source for model methodology, training, system architecture, benchmark protocols, scientific demonstrations, and release boundaries. This repository focuses on the artifacts and information that matter for local GGUF deployment:
60
 
61
- - canonical GGUF files and their roles;
62
- - exact conversion provenance and integrity checks;
63
- - llama.cpp loading and serving instructions;
64
- - MTP speculative decoding;
65
- - hardware and context guidance;
66
- - quantization-quality policy for lower-bit releases;
67
- - a concise, evidence-linked snapshot of the parent model's public benchmark record.
68
 
69
- The first release establishes **BF16 as the canonical GGUF reference point**. Lower-bit variants are published only after they are compared against this reference under a fixed quality protocol.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  ---
72
 
73
- ## Release Files
 
 
74
 
75
- | File | Role | Precision | Tensor count | Approx. local size | SHA256 | Status |
76
- |---|---|---:|---:|---:|---|---|
77
- | `VeriLoop-E2-BF16.gguf` | Canonical target model | BF16 / selected F32 metadata-sensitive tensors | **851** | **~51 GiB** | `11bf5defde1a256b7582bc34fd2c4a85a61615ed88e7a422dcd24d814ea6d35d` | **Verified** |
78
- | `mtp-VeriLoop-E2-BF16.gguf` | MTP draft for speculative decoding | BF16 | **18** | **~5.6 GiB** | `10e36ca18d508f3321f976262cc2e05b01e807f3a797605696a8b6a3f490429f` | **Verified** |
79
 
80
- > **BF16 is the reference, not a low-bit quantization.** It is provided as the high-fidelity GGUF baseline against which subsequent Q8/Q6/Q5/Q4/IQ4 releases can be measured.
 
 
 
 
 
 
 
 
81
 
82
- Hugging Face may display file sizes in decimal GB while local Unix tools commonly display binary GiB; small differences in displayed size are therefore expected.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  ---
85
 
86
- ## Conversion Provenance and Quality Gates
87
 
88
- This release was converted with the public **llama.cpp** GGUF toolchain and validated before promotion.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
  | Check | Result |
91
  |---|---|
@@ -94,53 +205,30 @@ This release was converted with the public **llama.cpp** GGUF toolchain and vali
94
  | HF architecture | `Qwen3_5ForConditionalGeneration` |
95
  | Native model context | 262,144 tokens |
96
  | Conversion tool | `convert_hf_to_gguf.py` |
97
- | llama.cpp source revision | `bddf8263c31c3dce3212263b00ebd2d98c1a752b` |
98
- | Target export | BF16, separate from MTP |
99
- | MTP export | BF16 draft GGUF |
100
- | Target conversion return code | **0** |
101
- | MTP conversion return code | **0** |
102
- | Target tensor audit | **851 tensors / PASS** |
103
- | MTP tensor audit | **18 tensors / PASS** |
104
  | Non-zero tensor audit | **PASS** |
105
  | Source-checkpoint immutability gate | **PASS** |
106
- | CUDA llama-server build | **PASS** |
107
- | llama-server model load | **PASS** |
108
- | OpenAI-compatible `/v1/models` endpoint | **PASS** |
109
- | Reference GGUF runtime context tested in release gate | **32,768 tokens** |
110
-
111
- The native 262K context length is inherited from the parent model configuration. The **32K figure above is the context length used in this GGUF release's runtime validation**, not a redefinition of the model's native context. Larger llama.cpp contexts require appropriate VRAM/RAM and KV-cache planning and should be validated on the target hardware.
112
 
113
- ### Integrity policy
114
 
115
- The release process treats conversion as an auditable transformation rather than a successful file write:
116
-
117
- ```text
118
- Parent checkpoint
119
- ↓
120
- tensor-name / shard consistency checks
121
- ↓
122
- BF16 target export
123
- ↓
124
- separate MTP export
125
- ↓
126
- GGUF tensor-count audit
127
- ↓
128
- llama-server build + load gate
129
- ↓
130
- runtime endpoint gate
131
- ↓
132
- release manifest + SHA256
133
- ```
134
-
135
- The SHA256 values above are the frozen identities for the initial BF16 reference release.
136
 
137
  ---
138
 
139
  ## Parent-Model Benchmark Record
140
 
141
- The following numbers are the **frozen public VeriLoop E2 parent-model release results**. They are included here so local users can identify the model they are downloading without having to reconstruct its evaluation record from multiple pages.
142
-
143
- **These scores are not presented as GGUF-specific re-runs.** BF16 is a format-conversion reference; each future lower-bit variant will be evaluated for degradation relative to this BF16 reference before being recommended.
144
 
145
  <p align="center">
146
  <img src="https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2/resolve/main/.eval_results/veriloop_e2_benchmark_result.png" width="100%" alt="VeriLoop E2 benchmark comparison across nine public benchmarks">
@@ -153,7 +241,7 @@ The following numbers are the **frozen public VeriLoop E2 parent-model release r
153
  | DeepSWE v1.1 | **64.6** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/deepswe-1.1) |
154
  | Terminal-Bench 3.0 | **29.7** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/terminal-bench-3.0) |
155
  | Terminal-Bench 4.0 | **37.9** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/terminal-bench-4.0) |
156
- | SWE-Marathon v1.1 | **45.0** | [Release source](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2) |
157
  | AIME 2026 | **98.3** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/aime-2026) |
158
  | GPQA Diamond | **93.9** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/gpqa-diamond) |
159
  | Apex 2025 | **89.6** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/apex-2025) |
@@ -181,116 +269,96 @@ cmake -B build -DGGML_CUDA=ON
181
  cmake --build build -j --target llama-server llama-cli
182
  ```
183
 
184
- ### Download the BF16 reference
185
 
186
  ```bash
187
- hf download \
188
- tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF \
189
- VeriLoop-E2-BF16.gguf \
190
- --local-dir .
191
  ```
192
 
193
- ### Run the target model
194
 
195
  ```bash
196
- llama-server \
197
- -m ./VeriLoop-E2-BF16.gguf \
198
- -ngl all \
199
- -c 32768 \
200
- --host 127.0.0.1 \
201
- --port 8080
202
  ```
203
 
204
- The server exposes an OpenAI-compatible API at:
205
 
206
- ```text
207
- http://127.0.0.1:8080/v1
208
  ```
209
 
210
- ### Direct CLI inference
211
 
212
  ```bash
213
- llama-cli \
214
- -m ./VeriLoop-E2-BF16.gguf \
215
- -ngl all \
216
- -c 32768
217
  ```
218
 
219
- `-ngl all` is appropriate when the full model fits in available VRAM. llama.cpp also supports automatic or partial GPU offload; users with less VRAM should allow the runtime to place part of the model in system memory.
 
 
 
 
 
 
220
 
221
  ---
222
 
223
- ## MTP Speculative Decoding
224
 
225
- The release includes a separate BF16 MTP draft GGUF. In llama.cpp, MTP can be used as a speculative draft model:
226
 
227
  ```bash
228
- hf download \
229
- tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF \
230
- mtp-VeriLoop-E2-BF16.gguf \
231
- --local-dir .
232
  ```
233
 
 
 
234
  ```bash
235
- llama-server \
236
- -m ./VeriLoop-E2-BF16.gguf \
237
- --model-draft ./mtp-VeriLoop-E2-BF16.gguf \
238
- --spec-type draft-mtp \
239
- -ngl all \
240
- --n-gpu-layers-draft all \
241
- -c 32768 \
242
- --host 127.0.0.1 \
243
- --port 8080
244
  ```
245
 
246
- MTP is an **optional acceleration path**. Throughput gains depend on hardware, prompt distribution, draft acceptance, context length, and llama.cpp version; this repository does not claim a universal speedup factor.
247
 
248
  ---
249
 
250
  ## Memory Guidance
251
 
252
- The BF16 reference is intentionally large.
253
-
254
- | Component | Approx. file size | Practical implication |
255
  |---|---:|---|
256
- | Main BF16 GGUF | ~51 GiB | Requires substantial GPU VRAM or CPU RAM |
257
- | BF16 MTP draft | ~5.6 GiB | Additional memory when speculative decoding is enabled |
 
258
  | KV cache / runtime workspace | Workload-dependent | Increases with context length, batch size, cache dtype, and parallelism |
259
 
260
- A full-GPU BF16 deployment therefore needs materially more memory than the model file alone. For constrained systems, wait for or use a validated lower-bit release rather than forcing an unsuitable BF16 configuration.
261
 
262
  ---
263
 
264
  ## Quantization Release Policy
265
 
266
- This repository follows a **reference-first, measurement-driven** quantization policy.
267
 
268
- The BF16 GGUF above is the baseline. Lower-bit releases are not labeled as recommended solely because they are common quant types. Each candidate is evaluated against the BF16 reference before recommendation.
269
 
270
- The release program targets the following families:
 
 
 
 
 
 
271
 
272
- - **Q8_0** — high-fidelity local deployment;
273
- - **Q6_K** — quality-focused compression;
274
- - **Q5_K_M / Q5_K_S** — high-quality balanced tiers;
275
- - **Q4_K_M / Q4_K_S** — broad local-deployment tiers;
276
- - **IQ4_NL / IQ4_XS** — compact 4-bit-class alternatives where supported.
277
 
278
- For each lower-bit release, the quality card is intended to report:
 
 
 
 
 
 
279
 
280
- | Dimension | Measurement |
281
- |---|---|
282
- | File size | GB / GiB |
283
- | Effective density | bits per weight where applicable |
284
- | Language-model drift | fixed-corpus perplexity delta vs BF16 |
285
- | Distribution drift | mean KL divergence vs BF16 |
286
- | Decision stability | same-top-p / token agreement metrics |
287
- | Code capability | selected software-engineering regression gates |
288
- | Mathematics | selected mathematical-reasoning regression gates |
289
- | Science | selected scientific-reasoning regression gates |
290
- | Long-context behavior | fixed-context smoke / stability checks |
291
- | llama.cpp runtime | load, generation, API and MTP compatibility |
292
-
293
- **No cross-repository PPL or KLD comparison is claimed unless the corpus, tokenizer path, chunking, context, and command line are identical.** Absolute perplexity numbers from different GGUF repositories are generally not directly comparable.
294
 
295
  ---
296
 
@@ -309,29 +377,28 @@ For each lower-bit release, the quality card is intended to report:
309
  | Native context | 262,144 tokens |
310
  | Languages | English, Chinese |
311
  | GGUF runtime | llama.cpp |
312
- | Initial GGUF reference | BF16 |
313
- | Speculative decoding | MTP draft supplied separately |
314
  | License | Apache License 2.0 |
315
 
316
  ---
317
 
318
  ## Prompt and Chat Protocol
319
 
320
- Use the chat template embedded in the GGUF / inherited from the VeriLoop E2 release. Do not casually replace role delimiters, reasoning delimiters, stop conditions, or tool-call formatting: prompt-template changes can materially alter observed behavior even when the model weights are identical.
321
 
322
  For the full model protocol and system-level behavior, see the **[VeriLoop E2 parent model card](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2)**.
323
 
324
  ---
325
 
326
- ## Release Boundaries
327
 
328
- - This repository distributes the **GGUF deployment form** of VeriLoop E2.
329
- - The BF16 file is a reference conversion, not a claim of low-bit compression.
330
- - Parent-model benchmark numbers above are provided for model identity and provenance; lower-bit GGUFs require their own degradation measurements.
331
- - The model may still produce incorrect code, invalid mathematical reasoning, unsupported scientific arguments, or unsafe commands.
332
- - Native context length does not guarantee that every local hardware configuration can serve the full context efficiently.
333
  - MTP acceleration is runtime- and workload-dependent.
334
- - Community-modified templates, samplers, stop rules, cache settings, or parsers can materially change observed behavior.
335
 
336
  ---
337
 
@@ -341,6 +408,8 @@ For the full model protocol and system-level behavior, see the **[VeriLoop E2 pa
341
  |---|---|
342
  | Parent model | [VeriLoop E2](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2) |
343
  | GGUF repository | [VeriLoop E2 GGUF](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF) |
 
 
344
  | Technical report | [OpenReview](https://openreview.net/forum?id=P6FIQILHwX&noteId=P6FIQILHwX) |
345
  | Evaluation evidence | [VeriLoop E2 Evaluation Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence) |
346
  | Riemann ζ artifact | [Public artifact](https://github.com/brucewang123456789/GeniusTrail/tree/VeriLoop-E2/riemann-hypothesis) |
@@ -371,7 +440,7 @@ If you use VeriLoop E2 or this GGUF distribution in research, please cite the pa
371
  }
372
  ```
373
 
374
- For quantization-specific comparisons, identify the exact GGUF filename and SHA256 in addition to the parent-model citation.
375
 
376
  ---
377
 
@@ -379,4 +448,4 @@ For quantization-specific comparisons, identify the exact GGUF filename and SHA2
379
 
380
  VeriLoop E2 builds on **Qwen3.8-27B** and the open-source model-serving and evaluation ecosystem. We thank the communities behind Qwen, llama.cpp, Transformers, Hugging Face, software-engineering benchmarks, mathematical evaluation suites, and reproducible scientific computing.
381
 
382
- This GGUF repository is maintained as a **reproducible deployment release**, with conversion provenance, immutable file identities, and quantization-quality measurements treated as first-class release artifacts.
 
10
  - gguf
11
  - llama.cpp
12
  - bfloat16
13
+ - q8_0
14
  - mtp
15
  - speculative-decoding
16
  - veriloop
 
31
 
32
  <p align="center">
33
  <strong>Official llama.cpp distribution of VeriLoop E2</strong><br>
34
+ <em>Canonical BF16 reference · High-fidelity Q8_0 · evidence-driven quantization releases</em><br><br>
35
  <strong>27B post-trained model for code, mathematics, and physics · 262K native context · Apache License 2.0</strong><br>
36
  <strong>Developed by Tsinghua SIGS Robot Lab · Libo Wang</strong>
37
  </p>
 
40
  <a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/badge/License-Apache--2.0-2F80ED?style=flat-square" alt="License: Apache 2.0"></a>
41
  <img src="https://img.shields.io/badge/Format-GGUF-111827?style=flat-square" alt="Format: GGUF">
42
  <img src="https://img.shields.io/badge/Reference-BF16-5B5BD6?style=flat-square" alt="Reference: BF16">
43
+ <img src="https://img.shields.io/badge/High--Fidelity-Q8__0-7C3AED?style=flat-square" alt="High Fidelity: Q8_0">
44
+ <img src="https://img.shields.io/badge/Q8%20Quality%20Gate-PASS-16A34A?style=flat-square" alt="Q8 quality gate: PASS">
45
  <img src="https://img.shields.io/badge/Runtime-llama.cpp-0A7F6F?style=flat-square" alt="Runtime: llama.cpp">
 
46
  </p>
47
 
48
  <p align="center">
 
58
 
59
  **VeriLoop E2 GGUF** is the official llama.cpp-oriented distribution of **VeriLoop E2**, a 27B post-trained model built on **Qwen3.8-27B** for code, software engineering, mathematics, and physics.
60
 
61
+ This repository follows a **reference-first, measurement-driven** release policy:
62
 
63
+ - **BF16** is the canonical GGUF reference used for reproducibility, conversion baselines, and quantization-quality measurement.
64
+ - **Q8_0** is the first measured low-bit release and is positioned as the **high-fidelity local sweet spot** for users who want substantially lower storage and memory pressure while remaining very close to the BF16 reference.
65
+ - Future Q6/Q5/Q4 releases will be admitted only after the same BF16-relative fidelity protocol is completed.
 
 
 
 
66
 
67
+ The Q8_0 headline result is:
68
+
69
+ > **46.86% smaller than BF16, with only +0.0643% relative perplexity increase under the frozen paired protocol; Mean KLD = 0.002176 and Same top-p = 98.815%.**
70
+
71
+ These are **quantization-fidelity measurements**, not a claim that every downstream benchmark score changes by exactly 0.0643%.
72
+
73
+ ---
74
+
75
+ ## Choose the Right Precision
76
+
77
+ | Variant | Positioning | Main model size | Fidelity / efficiency role | Recommended for |
78
+ |---|---|---:|---|---|
79
+ | **BF16** | **Reference Fidelity Sweet Spot** | **53.808 GB / 50.113 GiB** | Canonical GGUF reference; no low-bit quantization loss | Research, reproducibility, quantization baselines, high-memory deployment |
80
+ | **Q8_0** | **High-Fidelity Local Sweet Spot** | **28.596 GB / 26.632 GiB** | **46.86% smaller**; measured BF16-relative drift remains very small | Quality-first local inference, workstation/server deployment |
81
+ | `Q6_K` | Quality / efficiency tier | Pending validation | Planned BF16-relative measurement | Users wanting lower memory with very high quality |
82
+ | `Q5_K_M` | Balanced tier | Pending validation | Planned BF16-relative measurement | Quality / memory balance |
83
+ | `Q4_K_M` | Mainstream local tier | Pending validation | Planned BF16-relative measurement | Broad consumer-hardware deployment |
84
+
85
+ ### BF16: reference-fidelity sweet spot
86
+
87
+ Choose **BF16** when your priority is **reference fidelity, reproducibility, attribution, or quantization research** rather than storage efficiency. It is the canonical GGUF baseline against which every lower-bit VeriLoop E2 release is measured.
88
+
89
+ BF16 is therefore the repository's **reference sweet spot**, not its memory-efficiency sweet spot.
90
+
91
+ ### Q8_0: high-fidelity local sweet spot
92
+
93
+ Choose **Q8_0** when you want the closest practical local GGUF experience to BF16 while materially reducing model-file size. Q8_0 cuts the main GGUF from **50.113 GiB to 26.632 GiB** and passes the frozen VeriLoop quantization-quality gates.
94
+
95
+ Q8_0 is the current **quality-first local recommendation**. It is not presented as the smallest or most memory-efficient option.
96
+
97
+ ---
98
+
99
+ ## Available Files
100
+
101
+ ### Main models
102
+
103
+ | File | Precision / quant | Exact size | Role | Status |
104
+ |---|---|---:|---|---|
105
+ | `VeriLoop-E2-BF16.gguf` | BF16 / selected F32 tensors | **53.808 GB / 50.113 GiB** | Canonical reference | **Verified** |
106
+ | `VeriLoop-E2-Q8_0.gguf` | Q8_0 / retained F32 tensors | **28.596 GB / 26.632 GiB** | High-fidelity local quant | **Verified / Quality Gate PASS** |
107
+
108
+ ### Optional MTP draft files
109
+
110
+ | File | Role | Approx. size | Notes |
111
+ |---|---|---:|---|
112
+ | `mtp-VeriLoop-E2-BF16.gguf` | BF16 MTP companion | ~6.04 GB | Optional speculative-decoding artifact |
113
+ | `mtp-VeriLoop-E2-Q8_0.gguf` | Q8 release MTP companion | **3.287 GB / 3.061 GiB** | Stock llama.cpp load + speculative-draft smoke validated |
114
+
115
+ Q8 release identity, exact hashes, and byte counts are recorded in [`Q8_RELEASE_MANIFEST.json`](./Q8_RELEASE_MANIFEST.json).
116
 
117
  ---
118
 
119
+ ## Q8_0 Performance-Loss Benchmark — BF16 Reference vs Q8_0
120
+
121
+ The Q8_0 release is evaluated **directly against the canonical BF16 GGUF** under the same llama.cpp comparison protocol.
122
 
123
+ ### Headline fidelity
 
 
 
124
 
125
+ | Metric | BF16 reference | Q8_0 | Q8_0 drift |
126
+ |---|---:|---:|---:|
127
+ | Mean PPL | **4.840423 ± 0.119931** | **4.843536 ± 0.120062** | **+0.003113 / +0.0643%** |
128
+ | PPL ratio | 1.000000 | **1.000643 ± 0.000754** | **+0.0643%** |
129
+ | Mean KLD vs BF16 | 0 | **0.002176 ± 0.000668** | lower is better |
130
+ | Same top-p | 100% reference | **98.815 ± 0.120%** | **1.185 pp disagreement** |
131
+ | RMS token-probability Δp | 0% reference | **1.251 ± 0.137%** | distributional-noise scale |
132
+ | Mean token-probability Δp | 0% reference | **−0.007 ± 0.014%** | near-zero directional bias |
133
+ | log-PPL correlation | 100% reference | **99.95%** | very high agreement |
134
 
135
+ > **Release interpretation:** Q8_0 removes **46.86%** of the BF16 GGUF file footprint while the paired PPL ratio remains **1.000643**, Mean KLD is **0.002176**, and Same top-p agreement is **98.815%**. For this quantization tier, these BF16-paired distribution metrics are the primary evidence of quantization fidelity.
136
+
137
+ ### Release gates
138
+
139
+ | Gate | Threshold | Measured | Result |
140
+ |---|---:|---:|---|
141
+ | PPL ratio | ≤ 1.005 | **1.000643** | **PASS** |
142
+ | Mean KLD | ≤ 0.005 | **0.002176** | **PASS** |
143
+ | Same top-p | ≥ 97.0% | **98.815%** | **PASS** |
144
+ | Main tensor audit | 851 tensors | **851** | **PASS** |
145
+ | llama.cpp load + generation | required | **PASS** | **PASS** |
146
+ | Q8 MTP load + speculative draft path | required | **PASS** | **PASS** |
147
+
148
+ The numerical thresholds above are **VeriLoop release-QA gates**, not universal industry standards.
149
+
150
+ For the complete measurement record, see **[`QUANTIZATION_QUALITY.md`](./QUANTIZATION_QUALITY.md)**.
151
 
152
  ---
153
 
154
+ ## Fixed Q8 Comparison Protocol
155
 
156
+ | Item | Value |
157
+ |---|---|
158
+ | Baseline | Canonical VeriLoop E2 BF16 GGUF |
159
+ | Candidate | VeriLoop E2 Q8_0 GGUF |
160
+ | Corpus | WikiText-2 raw test |
161
+ | Context | 2,048 tokens |
162
+ | Chunks | 8 |
163
+ | Seed | 42 |
164
+ | GPU layers | 40 |
165
+ | Flash Attention | Off |
166
+ | KV cache | F16 / F16 |
167
+ | Batch / micro-batch | 512 / 512 |
168
+ | Evaluation tool | `llama-perplexity` |
169
+ | Q8 quantization / QC llama.cpp revision | `42916d83f4a225e56709f873aa8050ac11f5b6a4` |
170
+ | BF16 reference SHA256 | `11bf5defde1a256b7582bc34fd2c4a85a61615ed88e7a422dcd24d814ea6d35d` |
171
+
172
+ The BF16 logits were recorded once and used as the fixed reference for Q8_0 KL-divergence evaluation.
173
+
174
+ ---
175
+
176
+ ## Q8_0 Quantization Configuration
177
+
178
+ | Property | Value |
179
+ |---|---|
180
+ | Source | Canonical VeriLoop E2 BF16 GGUF |
181
+ | Quantization | `Q8_0` |
182
+ | Source model size reported by quantizer | 51,305.09 MiB |
183
+ | Quantized model size reported by quantizer | 27,260.56 MiB |
184
+ | Effective density reported by quantizer | **8.50 BPW** |
185
+ | Main tensor count | **851** |
186
+ | Q8_0 tensors | **498** |
187
+ | Retained F32 tensors | **353** |
188
+ | Quantization threads | 25 |
189
+ | Quantization time | **38.315 s** |
190
+ | Quantization return code | **0** |
191
+ | Main build gate | **PASS** |
192
+
193
+ The retained F32 tensors are part of llama.cpp's quantized output layout; `Q8_0` does not imply that every tensor in the file is stored in the same integer representation.
194
+
195
+ ---
196
+
197
+ ## Conversion and Release Provenance
198
+
199
+ ### BF16 reference
200
 
201
  | Check | Result |
202
  |---|---|
 
205
  | HF architecture | `Qwen3_5ForConditionalGeneration` |
206
  | Native model context | 262,144 tokens |
207
  | Conversion tool | `convert_hf_to_gguf.py` |
208
+ | BF16 conversion llama.cpp revision | `bddf8263c31c3dce3212263b00ebd2d98c1a752b` |
209
+ | BF16 target tensor audit | **851 tensors / PASS** |
 
 
 
 
 
210
  | Non-zero tensor audit | **PASS** |
211
  | Source-checkpoint immutability gate | **PASS** |
212
+ | BF16 main-model load gate | **PASS** |
 
 
 
 
 
213
 
214
+ ### Q8_0 release
215
 
216
+ | Check | Result |
217
+ |---|---|
218
+ | Quantization source | Canonical BF16 GGUF |
219
+ | Requantization from Q8 / lower precision | **No** |
220
+ | Quantization type | **Q8_0** |
221
+ | llama.cpp quantization / QC revision | `42916d83f4a225e56709f873aa8050ac11f5b6a4` |
222
+ | Structure gate | **PASS** |
223
+ | Quantitative fidelity gate | **PASS** |
224
+ | Main-model runtime generation | **PASS** |
225
+ | Q8 MTP compatibility smoke | **PASS** |
 
 
 
 
 
 
 
 
 
 
 
226
 
227
  ---
228
 
229
  ## Parent-Model Benchmark Record
230
 
231
+ The following figure and scores identify the **parent VeriLoop E2 release**. They are not relabeled as Q8_0-specific task scores; Q8_0 quantization fidelity is measured directly against BF16 above.
 
 
232
 
233
  <p align="center">
234
  <img src="https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2/resolve/main/.eval_results/veriloop_e2_benchmark_result.png" width="100%" alt="VeriLoop E2 benchmark comparison across nine public benchmarks">
 
241
  | DeepSWE v1.1 | **64.6** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/deepswe-1.1) |
242
  | Terminal-Bench 3.0 | **29.7** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/terminal-bench-3.0) |
243
  | Terminal-Bench 4.0 | **37.9** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/terminal-bench-4.0) |
244
+ | SWE-Marathon v1.1 | **45.0** | [Parent release](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2) |
245
  | AIME 2026 | **98.3** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/aime-2026) |
246
  | GPQA Diamond | **93.9** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/gpqa-diamond) |
247
  | Apex 2025 | **89.6** | [Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence/tree/main/apex-2025) |
 
269
  cmake --build build -j --target llama-server llama-cli
270
  ```
271
 
272
+ ### Download BF16
273
 
274
  ```bash
275
+ hf download tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF VeriLoop-E2-BF16.gguf --local-dir .
 
 
 
276
  ```
277
 
278
+ ### Download Q8_0
279
 
280
  ```bash
281
+ hf download tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF VeriLoop-E2-Q8_0.gguf --local-dir .
 
 
 
 
 
282
  ```
283
 
284
+ ### Run BF16
285
 
286
+ ```bash
287
+ llama-server -m ./VeriLoop-E2-BF16.gguf -ngl all -c 32768 --host 127.0.0.1 --port 8080
288
  ```
289
 
290
+ ### Run Q8_0
291
 
292
  ```bash
293
+ llama-server -m ./VeriLoop-E2-Q8_0.gguf -ngl all -c 32768 --host 127.0.0.1 --port 8080
 
 
 
294
  ```
295
 
296
+ The OpenAI-compatible endpoint is available at:
297
+
298
+ ```text
299
+ http://127.0.0.1:8080/v1
300
+ ```
301
+
302
+ `-ngl all` is appropriate only when the model, KV cache, and runtime workspace fit the available accelerator memory. Partial GPU offload is supported when full offload is not practical.
303
 
304
  ---
305
 
306
+ ## Optional Q8_0 MTP Speculative Decoding
307
 
308
+ Download the validated Q8_0 MTP companion:
309
 
310
  ```bash
311
+ hf download tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF mtp-VeriLoop-E2-Q8_0.gguf --local-dir .
 
 
 
312
  ```
313
 
314
+ Validated resource-conservative smoke configuration:
315
+
316
  ```bash
317
+ llama-server -m ./VeriLoop-E2-Q8_0.gguf --model-draft ./mtp-VeriLoop-E2-Q8_0.gguf --spec-type draft-mtp -ngl all --n-gpu-layers-draft 0 -c 8192 --host 127.0.0.1 --port 8080
 
 
 
 
 
 
 
 
318
  ```
319
 
320
+ MTP is an optional acceleration path. Throughput gains depend on hardware, prompt distribution, draft acceptance, context length, and llama.cpp revision; no universal speedup factor is claimed.
321
 
322
  ---
323
 
324
  ## Memory Guidance
325
 
326
+ | Variant | Model file | Practical implication |
 
 
327
  |---|---:|---|
328
+ | BF16 main | **50.113 GiB** | Reference-quality deployment; substantial VRAM/RAM required |
329
+ | Q8_0 main | **26.632 GiB** | Much lower model footprint while retaining measured near-reference fidelity |
330
+ | Q8_0 MTP companion | **3.061 GiB** | Additional memory only when speculative decoding is enabled |
331
  | KV cache / runtime workspace | Workload-dependent | Increases with context length, batch size, cache dtype, and parallelism |
332
 
333
+ Model-file size is not total runtime-memory consumption. Leave headroom for KV cache, compute buffers, runtime metadata, and optional draft-model execution.
334
 
335
  ---
336
 
337
  ## Quantization Release Policy
338
 
339
+ Every lower-bit VeriLoop E2 release is compared against the **same canonical BF16 reference**. A quant is not labeled “recommended” solely because the format is common.
340
 
341
+ Planned product ladder:
342
 
343
+ | Quant | Intended role | Publication rule |
344
+ |---|---|---|
345
+ | **Q8_0** | High-fidelity local sweet spot | **Released — quantitative gate PASS** |
346
+ | `Q6_K` | Quality / efficiency tier | Publish only after BF16-paired QC |
347
+ | `Q5_K_M` | Balanced tier | Publish only after BF16-paired QC |
348
+ | `Q4_K_M` | Mainstream local tier | Publish only after BF16-paired QC |
349
+ | `IQ4_XS` | Compact 4-bit-class tier | Publish only after BF16-paired QC |
350
 
351
+ The comparison protocol prioritizes:
 
 
 
 
352
 
353
+ - file size / effective BPW;
354
+ - PPL ratio vs BF16;
355
+ - Mean KL divergence vs BF16;
356
+ - token-probability drift;
357
+ - Same top-p agreement;
358
+ - structural integrity;
359
+ - llama.cpp load and generation compatibility.
360
 
361
+ **No cross-repository PPL or KLD comparison is claimed unless the corpus, tokenizer path, chunking, context, and runtime protocol are identical.**
 
 
 
 
 
 
 
 
 
 
 
 
 
362
 
363
  ---
364
 
 
377
  | Native context | 262,144 tokens |
378
  | Languages | English, Chinese |
379
  | GGUF runtime | llama.cpp |
380
+ | Reference precision | BF16 |
381
+ | Released quantization | Q8_0 |
382
  | License | Apache License 2.0 |
383
 
384
  ---
385
 
386
  ## Prompt and Chat Protocol
387
 
388
+ Use the chat template embedded in the GGUF / inherited from VeriLoop E2. Prompt-template changes, reasoning delimiters, stop rules, samplers, cache settings, and tool-call parsers can materially change observed behavior even when model weights are identical.
389
 
390
  For the full model protocol and system-level behavior, see the **[VeriLoop E2 parent model card](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2)**.
391
 
392
  ---
393
 
394
+ ## Measurement Boundaries
395
 
396
+ - **+0.0643% is the measured relative Q8_0 PPL increase under the fixed paired protocol; it is not a universal capability-loss percentage.**
397
+ - Parent-model leaderboard results are included for model identity and provenance, not represented as Q8_0 task re-runs.
398
+ - PPL/KLD values are meaningful for the paired BF16→Q8_0 comparison because both variants use the same evaluation setup.
399
+ - The native 262K context comes from the parent model configuration. Practical local context depends on available memory and runtime settings.
 
400
  - MTP acceleration is runtime- and workload-dependent.
401
+ - The model can still produce incorrect code, mathematical reasoning, scientific arguments, or commands.
402
 
403
  ---
404
 
 
408
  |---|---|
409
  | Parent model | [VeriLoop E2](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2) |
410
  | GGUF repository | [VeriLoop E2 GGUF](https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2-GGUF) |
411
+ | Q8 quality record | [Quantization Quality](./QUANTIZATION_QUALITY.md) |
412
+ | Q8 release identity | [Q8 Release Manifest](./Q8_RELEASE_MANIFEST.json) |
413
  | Technical report | [OpenReview](https://openreview.net/forum?id=P6FIQILHwX&noteId=P6FIQILHwX) |
414
  | Evaluation evidence | [VeriLoop E2 Evaluation Evidence](https://huggingface.co/datasets/tsinghua-sigs-robot-lab/VeriLoop-E2-Evaluation-Evidence) |
415
  | Riemann ζ artifact | [Public artifact](https://github.com/brucewang123456789/GeniusTrail/tree/VeriLoop-E2/riemann-hypothesis) |
 
440
  }
441
  ```
442
 
443
+ For quantization-specific comparisons, identify the exact GGUF filename and release manifest.
444
 
445
  ---
446
 
 
448
 
449
  VeriLoop E2 builds on **Qwen3.8-27B** and the open-source model-serving and evaluation ecosystem. We thank the communities behind Qwen, llama.cpp, Transformers, Hugging Face, software-engineering benchmarks, mathematical evaluation suites, and reproducible scientific computing.
450
 
451
+ This repository treats **reference fidelity, quantization quality, immutable artifact identity, and reproducible runtime validation as first-class release properties**.