rowtune: tuning the stored scales of a 4-bit language-model file with its integer codes fixed

Tuning the scales of a quantised language model against the full-precision model, with the integer codes frozen, is an established idea: MLX-LM's DWQ ships it for MLX files, and ThinkBit uses it to recalibrate 2-bit models. rowtune is the simplest form of it that I know of, in a combination I have not found in prior work: one multiplier per output row of every decoder linear layer and nothing else, about 0.03% of the model's numbers, trained against the KL divergence to the 16-bit model on about 0.6 million tokens of unlabelled text and multiplied in place into the scales that an existing GGUF Q4_0 or OpenVINO INT4 file already stores, with a byte-level check that no code changed and that format, structure and size are the same. On Qwen3-1.7B, scored on 10,277 questions from six zero-shot tasks with one run per file, a GGUF Q4_0 file goes from 94.80% to 98.33% of the 16-bit model's accuracy (paired difference +2.00 points, 95% interval [+1.43, +2.56]) in 145 seconds on one GPU, and an OpenVINO INT4 export goes from 87.97% to 95.26% (+4.13 [+3.39, +4.85]) in 149 seconds. Version 2 adds baselines on the GGUF file, run under a plan fixed in advance. One multiplier per 32-weight block, with 77 times more trained values, ties with one per row on accuracy (98.58% kept; difference -0.14 [-0.60, +0.30] points, a tie within the margin set in advance) and on held-out KL (0.1098 against 0.1097). The published closed-form least-squares multiplier does not recover the loss on this file: 94.35% kept against 94.80% for the input, with a higher KL. Earlier measurements, made with the scripts the tool was built from, add two more models and starting points from GPTQ, an AWQ export and OmniQuant. On GGUF Q4_K_M files the result is a tie, and below 4 bits the method does not rescue the model. Four elementary statements behind the method are checked in Lean. Version 2 adds baselines on the same file. Code, plan, report and result files: https://github.com/couldbeme/rowtune (Apache-2.0). The Lean file with the four machine-checked statements is included.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24557644
Primary Topic
Advanced Neural Network Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

rowtune: tuning the stored scales of a 4-bit language-model file with its integer codes fixed

Alexandra Zhuravlyova
Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
preprint

rowtune: tuning the stored scales of a 4-bit language-model file with its integer codes fixed

Alexandra Zhuravlyova
preprint en

Abstract

Tuning the scales of a quantised language model against the full-precision model, with the integer codes frozen, is an established idea: MLX-LM's DWQ ships it for MLX files, and ThinkBit uses it to recalibrate 2-bit models. rowtune is the simplest form of it that I know of, in a combination I have not found in prior work: one multiplier per output row of every decoder linear layer and nothing else, about 0.03% of the model's numbers, trained against the KL divergence to the 16-bit model on about 0.6 million tokens of unlabelled text and multiplied in place into the scales that an existing GGUF Q4_0 or OpenVINO INT4 file already stores, with a byte-level check that no code changed and that format, structure and size are the same. On Qwen3-1.7B, scored on 10,277 questions from six zero-shot tasks with one run per file, a GGUF Q4_0 file goes from 94.80% to 98.33% of the 16-bit model's accuracy (paired difference +2.00 points, 95% interval [+1.43, +2.56]) in 145 seconds on one GPU, and an OpenVINO INT4 export goes from 87.97% to 95.26% (+4.13 [+3.39, +4.85]) in 149 seconds. Version 2 adds baselines on the GGUF file, run under a plan fixed in advance. One multiplier per 32-weight block, with 77 times more trained values, ties with one per row on accuracy (98.58% kept; difference -0.14 [-0.60, +0.30] points, a tie within the margin set in advance) and on held-out KL (0.1098 against 0.1097). The published closed-form least-squares multiplier does not recover the loss on this file: 94.35% kept against 94.80% for the input, with a higher KL. Earlier measurements, made with the scripts the tool was built from, add two more models and starting points from GPTQ, an AWQ export and OmniQuant. On GGUF Q4_K_M files the result is a tie, and below 4 bits the method does not rescue the model. Four elementary statements behind the method are checked in Lean. Version 2 adds baselines on the same file. Code, plan, report and result files: https://github.com/couldbeme/rowtune (Apache-2.0). The Lean file with the four machine-checked statements is included.

Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
rowtune: tuning the stored scales of a 4-bit language-model file with its integer codes fixed — Alexandra Zhuravlyova · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS