|
Download README.md from Boesgaard/Concise-9B-MLP-patch: direct link, hf CLI and curl.
- Browser
- Download file 4.76 kB
-
https://huggingface.co/Boesgaard/Concise-9B-MLP-patch/resolve/main/README.md
- Command line
-
hf download hf://Boesgaard/Concise-9B-MLP-patch/README.md
-
curl -L -o README.md https://huggingface.co/Boesgaard/Concise-9B-MLP-patch/resolve/main/README.md
4.76 kB
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.5-9B | |
| tags: | |
| - reasoning | |
| - efficient-reasoning | |
| - model-diffing | |
| - weight-transplant | |
|  | |
| # Concise-9B MLP patch | |
| **Paper:** [Delivered Sooner: Learned Brevity Travels With a Reasoning Model's Feed-Forward Weights](https://arxiv.org/abs/2612.01699) (arXiv:2612.01699) | |
| This patch is a 1.02 GB lossless package. It turns the public [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) into the **"parent + Concise MLPs" transplant** studied in [*Delivered Sooner: Learned Brevity Travels With a Reasoning Model's Feed-Forward Weights*](https://arxiv.org/abs/2612.01699). | |
| **What it changes:** | |
| - It replaces the 96 feed-forward matrices (the gate, up and down projections of all 32 layers) with those of [Concise-9B](https://huggingface.co/Boesgaard/Concise-9B). | |
| - It leaves the other 331 tensors as they are in the parent. | |
| - Reconstruction is exact: every target BF16 bit is restored and checked against SHA-256 digests. | |
| **What the transplant does,** from the paper, on 256 held-out questions: | |
| - It recovers 83.31% [73.42, 94.24] of Concise-9B's token saving. | |
| - In a registered test on 768 questions, it used 24.35% fewer tokens with final accuracy +1.69 points [−0.52, +3.91]. | |
| - For everyday use, Concise-9B itself is simpler and saves more tokens. This patch exists so the transplant can be reproduced exactly, and it is about 9.5 times smaller than the raw matrices. | |
|  | |
| *From the paper. (a) Mean sampled tokens on 256 held-out questions: copying Concise-9B's MLPs into the parent recovers 83.3% of the donor's saving, and restoring the parent's MLPs inside Concise-9B undoes 76.6% of it. (b) On 512 questions, by 8,192 tokens, a correct answer was available to a forced readout about equally often, but the transplant delivered far more. (c) Reconsideration language falls while the verification rate holds. (d) Final-accuracy difference to the parent, including the registered 768-question test. (e–f) Continuing identical partial traces, the transplant needs less remaining thinking and delivers correct repairs sooner.* | |
| ## Files | |
| | File | Contents | | |
| |---|---| | |
| | `all_mlp_delta_v1.tar` | The package: encoded residuals, decoder, text-model config, tokenizer, chat template, serving index and build manifest. SHA-256 `20260b9b70f30ac9a1c405e7d29d4e00a7abaa823a816fee4b3687774bbe85c7`. | | |
| | `PACKAGE_RECEIPT.json` | Sizes, digests and the verification record. | | |
| | `PATCH.json` | Per-matrix frame lengths, changed-word counts, source and target digests, and bits per coordinate. | | |
| | `VERIFIED_ALL_427.json` | SHA-256 of all 427 reconstructed tensors. | | |
| ## Reconstruct | |
| Requirements: | |
| - the public Qwen3.5-9B shards at revision `c202236235762e1c871ad0ccb60c8ee5ba337b9a`; | |
| - a little-endian CPU, Python 3.10+, NumPy, a C compiler and the `zstd` command; | |
| - 19 GiB of free disk space for the output. | |
| Check the archive's SHA-256 against the value above before extracting any code. Then: | |
| ```sh | |
| mkdir replay | |
| tar -xf all_mlp_delta_v1.tar -C replay apply.py codec.py conditional_codec.py conditional.c check_rans.c | |
| # verify only (streams all 427 tensors, two independent decoders on all 1,152 edited frames): | |
| python3 replay/apply.py --package all_mlp_delta_v1.tar --base /path/to/Qwen3.5-9B --dual --receipt my-verification.json | |
| # build the transplanted model: | |
| python3 replay/apply.py --package all_mlp_delta_v1.tar --base /path/to/Qwen3.5-9B --dual --receipt my-verification.json --output /path/to/qwen3.5-9b-concise-mlps | |
| ``` | |
| A `.ready` marker in the output folder means the build completed and was validated. Load the output folder like any Qwen3.5 text checkpoint (`transformers >= 5.3.0`), with the sampling settings on the Concise-9B card. | |
| ## How it is encoded | |
| - Each matrix is split into 12 independently decodable blocks. | |
| - The update is stored as BF16 bit-pattern differences. Their distribution is conditioned on the base weight, and they are coded with integer rANS plus Zstandard. | |
| - The base model serves as side information, so the package size is the cost of distribution for someone who already has the base. | |
| - The reconstructed model still needs the full dense memory to run. | |
| ## Citation | |
| ```bibtex | |
| @misc{lorup2026delivered, | |
| author = {Lorup, Alexander Boesgaard}, | |
| title = {Delivered Sooner: Learned Brevity Travels With a Reasoning Model's Feed-Forward Weights}, | |
| year = {2026}, | |
| eprint = {2612.01699}, | |
| archivePrefix = {arXiv}, | |
| url = {https://arxiv.org/abs/2612.01699} | |
| } | |
| ``` | |
| ## License | |
| Apache-2.0, inherited from Qwen3.5-9B and Concise-9B. | |
| ## More from Openhagen | |
| More of our work is on the [Openhagen blog](https://openhagen.ai/blog). | |