experiment stringclasses 1
value | variant stringclasses 5
values | role stringclasses 2
values | file_gb float64 15.4 15.4 โ | bpw float64 4.73 4.73 โ | passes int64 1 5 | ftype stringclasses 1
value | block float64 3 20 โ | family float64 | qtype stringclasses 1
value | gate_up float64 | est_gb float64 | imatrix bool 1
class | wikitext_kld_mean float64 0.01 0.01 โ | wikitext_kld_mean_err float64 0 0 โ | wikitext_kld_p99 float64 0.05 0.1 โ | wikitext_same_top_p_pct float64 95 97.4 โ | wikitext_ppl_q float64 5.65 6.08 โ | wikitext_ppl_ratio float64 1 1.01 โ | code_kld_mean float64 0 0.01 โ | code_kld_mean_err float64 0 0 โ | code_kld_p99 float64 0.03 0.14 โ | code_same_top_p_pct float64 97.2 98.9 โ | code_ppl_q float64 2.31 2.5 โ | code_ppl_ratio float64 1 1.01 โ | kld_mean_avg float64 0 0.01 โ | kld_mean_avg_err float64 0 0 โ | git_commit stringclasses 3
values | llama_cpp_commit stringclasses 1
value | timestamp stringdate 2026-11-27 00:42:06 2026-11-27 02:25:56 | wikitext_ppl float64 5.64 6.03 โ | code_ppl float64 2.3 2.48 โ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
phase4-holdout | block03-q2_k | variant | 15.411 | 4.7252 | 1 | Q8_0 | 3 | null | Q2_K | null | null | true | 0.006052 | 0.000145 | 0.057392 | 96.762 | 6.043582 | 1.003 | 0.005623 | 0.000248 | 0.060781 | 97.752 | 2.4837 | 1.001071 | 0.005838 | 0.000144 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:18:31+00:00 | null | null |
phase4-holdout | block03-q2_k | variant | 15.411 | 4.7252 | 2 | Q8_0 | 3 | null | Q2_K | null | null | true | 0.007532 | 0.000309 | 0.066604 | 96.597 | 5.841274 | 1.001948 | 0.007459 | 0.000361 | 0.083614 | 97.801 | 2.392863 | 1.001716 | 0.007496 | 0.000238 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:14:49+00:00 | null | null |
phase4-holdout | block03-q2_k | variant | 15.411 | 4.7252 | 3 | Q8_0 | 3 | null | Q2_K | null | null | true | 0.006749 | 0.000165 | 0.066349 | 96.744 | 5.654291 | 1.001462 | 0.007928 | 0.000364 | 0.093611 | 97.886 | 2.318476 | 1.005474 | 0.007338 | 0.0002 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:20:32+00:00 | null | null |
phase4-holdout | block03-q2_k | variant | 15.411 | 4.7252 | 4 | Q8_0 | 3 | null | Q2_K | null | null | true | 0.006608 | 0.000188 | 0.063117 | 96.713 | 5.65462 | 1.003296 | 0.007309 | 0.000277 | 0.089171 | 97.446 | 2.309489 | 1.003798 | 0.006959 | 0.000167 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:17:49+00:00 | null | null |
phase4-holdout | block03-q2_k | variant | 15.411 | 4.7252 | 5 | Q8_0 | 3 | null | Q2_K | null | null | true | 0.006448 | 0.000191 | 0.060516 | 96.573 | 5.657776 | 1.002729 | 0.007444 | 0.000339 | 0.082228 | 97.532 | 2.307676 | 1.00241 | 0.006946 | 0.000195 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:24:27+00:00 | null | null |
phase4-holdout | block09-q2_k | variant | 15.411 | 4.7252 | 1 | Q8_0 | 9 | null | Q2_K | null | null | true | 0.00821 | 0.00014 | 0.066214 | 95.919 | 6.052747 | 1.004521 | 0.006417 | 0.000186 | 0.071543 | 97.617 | 2.4964 | 1.00619 | 0.007314 | 0.000116 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T00:54:25+00:00 | null | null |
phase4-holdout | block09-q2_k | variant | 15.411 | 4.7252 | 2 | Q8_0 | 9 | null | Q2_K | null | null | true | 0.011094 | 0.000193 | 0.095148 | 95.363 | 5.851289 | 1.003666 | 0.008614 | 0.000297 | 0.092754 | 97.397 | 2.399551 | 1.004516 | 0.009854 | 0.000177 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:58:31+00:00 | null | null |
phase4-holdout | block09-q2_k | variant | 15.411 | 4.7252 | 3 | Q8_0 | 9 | null | Q2_K | null | null | true | 0.010744 | 0.000198 | 0.09626 | 95.558 | 5.675797 | 1.005271 | 0.00964 | 0.000389 | 0.12348 | 97.287 | 2.325574 | 1.008552 | 0.010192 | 0.000218 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T00:56:31+00:00 | null | null |
phase4-holdout | block09-q2_k | variant | 15.411 | 4.7252 | 4 | Q8_0 | 9 | null | Q2_K | null | null | true | 0.010811 | 0.000246 | 0.100669 | 95.461 | 5.668591 | 1.005775 | 0.009717 | 0.000427 | 0.119464 | 97.434 | 2.318183 | 1.007577 | 0.010264 | 0.000246 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:01:36+00:00 | null | null |
phase4-holdout | block09-q2_k | variant | 15.411 | 4.7252 | 5 | Q8_0 | 9 | null | Q2_K | null | null | true | 0.011243 | 0.000282 | 0.10079 | 95.503 | 5.670898 | 1.005054 | 0.010226 | 0.00045 | 0.130831 | 97.202 | 2.313764 | 1.005055 | 0.010735 | 0.000266 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:00:25+00:00 | null | null |
phase4-holdout | block17-q2_k | variant | 15.41 | 4.7252 | 1 | Q8_0 | 17 | null | Q2_K | null | null | true | 0.008416 | 0.000093 | 0.051544 | 95.937 | 6.080762 | 1.00917 | 0.005937 | 0.000151 | 0.049339 | 97.654 | 2.496537 | 1.006245 | 0.007177 | 0.000089 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:30:33+00:00 | null | null |
phase4-holdout | block17-q2_k | variant | 15.41 | 4.7252 | 2 | Q8_0 | 17 | null | Q2_K | null | null | true | 0.011153 | 0.000131 | 0.077823 | 95.198 | 5.870984 | 1.007044 | 0.008467 | 0.000221 | 0.0802 | 97.41 | 2.399387 | 1.004447 | 0.00981 | 0.000128 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:22:56+00:00 | null | null |
phase4-holdout | block17-q2_k | variant | 15.41 | 4.7252 | 3 | Q8_0 | 17 | null | Q2_K | null | null | true | 0.011571 | 0.000157 | 0.080934 | 95.351 | 5.689666 | 1.007727 | 0.009624 | 0.000279 | 0.099499 | 97.177 | 2.324694 | 1.00817 | 0.010598 | 0.00016 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:32:34+00:00 | null | null |
phase4-holdout | block17-q2_k | variant | 15.41 | 4.7252 | 4 | Q8_0 | 17 | null | Q2_K | null | null | true | 0.012142 | 0.000197 | 0.083219 | 95.198 | 5.675592 | 1.007017 | 0.010455 | 0.000327 | 0.106849 | 97.153 | 2.32126 | 1.008914 | 0.011299 | 0.000191 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:25:56+00:00 | null | null |
phase4-holdout | block17-q2_k | variant | 15.41 | 4.7252 | 5 | Q8_0 | 17 | null | Q2_K | null | null | true | 0.012746 | 0.000212 | 0.094279 | 94.99 | 5.682519 | 1.007114 | 0.011348 | 0.000372 | 0.138782 | 97.251 | 2.316608 | 1.00629 | 0.012047 | 0.000214 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:36:30+00:00 | null | null |
phase4-holdout | block20-q2_k | variant | 15.411 | 4.7252 | 1 | Q8_0 | 20 | null | Q2_K | null | null | true | 0.006312 | 0.000148 | 0.062568 | 97 | 6.065855 | 1.006696 | 0.002647 | 0.000092 | 0.031419 | 98.68 | 2.490487 | 1.003806 | 0.00448 | 0.000087 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:06:31+00:00 | null | null |
phase4-holdout | block20-q2_k | variant | 15.411 | 4.7252 | 2 | Q8_0 | 20 | null | Q2_K | null | null | true | 0.006452 | 0.000155 | 0.066273 | 96.884 | 5.866391 | 1.006257 | 0.002766 | 0.000085 | 0.033885 | 98.803 | 2.397958 | 1.003849 | 0.004609 | 0.000088 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:06:43+00:00 | null | null |
phase4-holdout | block20-q2_k | variant | 15.411 | 4.7252 | 3 | Q8_0 | 20 | null | Q2_K | null | null | true | 0.005798 | 0.000158 | 0.064546 | 97.361 | 5.676955 | 1.005476 | 0.002661 | 0.000109 | 0.037972 | 98.913 | 2.313289 | 1.003224 | 0.00423 | 0.000096 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:08:31+00:00 | null | null |
phase4-holdout | block20-q2_k | variant | 15.411 | 4.7252 | 4 | Q8_0 | 20 | null | Q2_K | null | null | true | 0.005887 | 0.000173 | 0.064487 | 97.159 | 5.664544 | 1.005057 | 0.002644 | 0.000105 | 0.036877 | 98.717 | 2.307724 | 1.003031 | 0.004266 | 0.000101 | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T02:09:42+00:00 | null | null |
phase4-holdout | block20-q2_k | variant | 15.411 | 4.7252 | 5 | Q8_0 | 20 | null | Q2_K | null | null | true | 0.005825 | 0.000172 | 0.067825 | 97.043 | 5.674326 | 1.005662 | 0.0027 | 0.000108 | 0.03925 | 98.839 | 2.308872 | 1.002929 | 0.004263 | 0.000102 | e51d1c090f9f7d67211e360f9530bc9c749b4784 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:12:26+00:00 | null | null |
phase4-holdout | varloop-nvfp4r-holdout | reference | null | null | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | 7df252691a1f14ff5087e340fb7539b7d99d83e8 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T00:42:06+00:00 | 6.0282 | 2.4829 |
phase4-holdout | varloop-nvfp4r-holdout | reference | null | null | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:50:18+00:00 | 5.832 | 2.3907 |
phase4-holdout | varloop-nvfp4r-holdout | reference | null | null | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | 7df252691a1f14ff5087e340fb7539b7d99d83e8 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T00:44:13+00:00 | 5.649 | 2.3073 |
phase4-holdout | varloop-nvfp4r-holdout | reference | null | null | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | 919aa6959e5f86078fe0619ca62bbfb9eeb728c2 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T01:53:24+00:00 | 5.6389 | 2.3022 |
phase4-holdout | varloop-nvfp4r-holdout | reference | null | null | 5 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | 7df252691a1f14ff5087e340fb7539b7d99d83e8 | 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 | 2026-11-27T00:48:10+00:00 | 5.6456 | 2.3038 |
LoopTax: raw results
Every number behind LoopTax (write-up), a study of whether quantization error compounds in a looped transformer. The model is Inkling 2 Mini from Thinking Machines Lab: 24 stored decoder layers, blocks 6-17 looped three times, 48 layer visits per token. Model weights in the study are temporary by design (quantized, evaluated, recorded, deleted); these files are what survives.
Short answer: reuse does not compound the error. Quantizing one block and running the loop 2 to 5 times, KL against the full-precision model at the same pass count scales like N^alpha with alpha near zero, not 1 to 2.
Held-out confirmation
From phase4-holdout/alpha_fit.json: KL = c N^alpha fitted over N = 2-5 passes on the variable-loop sibling
checkpoint (TML-d24-varloop-research), text disjoint from the screening set, 95% paired bootstrap CI over chunks
(5000 resamples). Prelude blocks run once but feed every pass; coda blocks run once after the loop (the control).
| block | category | type | alpha (N=2-5) [95% CI] | chunks |
|---|---|---|---|---|
| 3 | prelude | Q2_K | -0.12 [-0.20, -0.04] | 24 |
| 9 | loop | Q2_K | 0.06 [0.00, 0.11] | 24 |
| 17 | loop | Q2_K | 0.19 [0.15, 0.24] | 24 |
| 20 | coda | Q2_K | -0.09 [-0.14, -0.05] | 24 |
Measurement floor
The same NVFP4 file run on CPU (reference) and on GPU differs by mean KL 0.0026 (floor-device). The BF16
reference logits were computed on CPU and every quant was run on GPU, so any KL against BF16 below roughly that value
is not distinguishable from the release. The NVFP4 file run on CPU against the BF16 logits gives
0.0028 (floor-cpu-vs-bf16). Comparisons where reference and quant both run on
GPU (every KL against the NVFP4 or varloop reference, Phases 1-4) have no such floor: an identity control gives KL
exactly 0.
Against the BF16 release (bf16check)
| variant | GB | mean KL vs BF16 |
|---|---|---|
ggml-org-nvfp4 |
17.63 | 0.0024 |
q8_0-from-bf16 |
27.82 | 0.0026 |
ggml-org-iq4_nl |
17.63 | 0.0069 |
q4_k_m-from-nvfp4 |
17.48 | 0.0117 |
q4_k_m-from-bf16 |
17.48 | 0.0118 |
iq4_nl-from-bf16 |
14.92 | 0.0147 |
iq4_nl-from-nvfp4 |
14.92 | 0.0147 |
Phase 3 recipes against BF16 (phase3-sub16, phase3-frontier, community-vs-bf16)
| variant | GB | mean KL vs BF16 |
|---|---|---|
uniform-q2_k |
11.77 | 0.0406 |
guided-12.6gb |
12.56 | 0.0323 |
uniform-iq3_xxs |
12.66 | 0.0191 |
guided-13.4gb |
13.36 | 0.0279 |
uniform-q3_k |
13.42 | 0.0135 |
edge-hi-loop-q2_k |
13.68 | 0.0249 |
guided-13.7gb |
13.68 | 0.0245 |
loop-hi-edges-q2_k |
13.68 | 0.0215 |
guided-15.1gb |
14.95 | 0.0115 |
uniform-iq4_xs |
15.08 | 0.0067 |
uniform-nvfp4 |
15.59 | 0.0041 |
uniform-q4_k |
15.59 | 0.0064 |
s6-bf16-rest-q6k |
16.11 | 0.0033 |
s6-bf16-down-q5_1 |
16.34 | 0.0027 |
unsloth-like |
16.61 | 0.0026 |
unsloth-ud-q4_k_m |
16.61 | 0.0026 |
s4-bf16-gu-q6k-down-q5_1 |
16.65 | 0.0026 |
s4-bf16 |
16.71 | 0.0026 |
s6-bf16 |
16.76 | 0.0026 |
attn-bf16-down-q5_1 |
16.79 | 0.0024 |
Under 16 GB the differences are well above the floor. At 16 GB and up, unsloth's UD-Q4_K_M, our rebuild of its
layout and every recipe except the smallest (s6-bf16-rest-q6k) are within it, so none can be shown to beat the
others. No recipe here is offered as a better quant.
Layout
One directory per experiment, mirroring results/ in the repo (252 run records):
| path | what it holds |
|---|---|
<experiment>/<variant>.json |
one run: spec, quantize command, per-domain KL / PPL / top-token agreement, file size, speed, provenance |
<experiment>/summary.csv |
one row per run (also browsable in the dataset viewer, one config per experiment) |
phase4-*/alpha_fit.json |
the N^alpha fits with bootstrap CIs |
phase2-scan-weight-error/ |
relative weight error and bits removed per quantized tensor family |
layout/ |
tensor layout and types of the GGUF files used |
env/remote_inventory.json |
hardware and software of the compute box (hostname removed) |
manifest.json |
index of every result file with commit, machine and timestamp |
Experiments: bf16check, community-vs-bf16, floor-cpu-vs-bf16, floor-device, phase1-baselines, phase1-community, phase2-scan, phase2-scan-weight-error, phase3-frontier, phase3-sub16, phase4-holdout, phase4-passes, varloop-refcheck.
Per-chunk sums
110 run records (Phase 4, the BF16 check, the floor and reference checks) were made with a patched
llama-perplexity and carry domains.<domain>.chunk_sums: one row per evaluation chunk with cumulative
[chunk, sum_kld, sum_kld2, sum_nll, sum_nll_base, count, n_same_top]. Differencing consecutive rows gives per-chunk
means, which is what the paired bootstraps resample. Other runs carry per-domain means and standard errors only.
Re-running the statistics
No GPU needed; the fits only read these files.
git clone https://github.com/shubhambaid/loop-tax && cd loop-tax
pip install -r requirements.txt
hf download shubhambaid/looptax-results --repo-type dataset --local-dir results
python -m looptax.alpha_fit --exp phase4-holdout # held-out fits (rewrites results/phase4-holdout/alpha_fit.json)
python -m looptax.alpha_fit # screening fits, phase4-passes
python -m looptax.summarize # rebuild summary.csv and manifest.json
Setup and caveats
- llama.cpp at commit 07ba74babd586c6b5f558d196e3cf7cc1eea26f4 (Metal), plus a small patch that prints per-chunk sums.
- Single machine: Apple M4 Pro, 24 GB. Context 2048, second half of each chunk scored, so one chunk is 1023 tokens.
- Domains: wikitext, code, multilingual. Screening and held-out slices are disjoint (manifests in
configs/in the repo). - Mean KL in the tables is the unweighted average over domains.
- Each record names the repo commit it was produced at; this upload was staged at commit
819f3513115b. - Paths are relative to the work root and the machine's hostname is replaced by
remote-m4pro.
Citation
@misc{baid2026looptax,
author = {Baid, Shubham},
title = {LoopTax: does quantization error compound in looped transformers?},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/shubhambaid/looptax-results}},
note = {Code: https://github.com/shubhambaid/loop-tax}
}
- Downloads last month
- 34