Ludovico commited on
Remove Sage-S2.1-Flash containers and references from README
Browse filesFiles changed (6)
- README.md+15-35
- Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wexDeleted-3
- Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wex.jsonDeleted
- Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wexDeleted-3
- Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wex.manifest.jsonDeleted-431
- Sage-S2.1-Flash-int4/Sage-S2.1-Flash-int4.wex4Deleted-3
16 unmodified lines171819202122232425262728293031323334354 unmodified lines4041424344454647484 unmodified lines5354555657585960616241 unmodified lines10410510610710810911011111211311411510 unmodified lines12612712812913013113213313413513613713813914012 unmodified lines1531541551561571581591601618 unmodified lines17017117217317417517617717817918018118218318418518618718818919038 unmodified lines22923023123223323423523623716 unmodified lines---# WEX4 Expert ContainersExpert weights of three Mixture-of-Experts AI models (**Qwen3.8-Flash-Next 125B-A6B**, **DeepSeek-V4.1-Flash-1017 REAP-192** and **Sage-S2.1-Flash**), stored in **WEX4** containers with **RAW**, **WNR3 (codec 5)** and **WNR4 (codec 8: MX, I4, GG)** lossless compression.**Storing the weights in these files does not change the value of any weight. It is not a quantization.** WEX4 is the file layout. WNR3 and WNR4 are optional lossless codecs inside it, like ZIP. Unpacking gives back the same weights: the very same bytes for Qwen3.8-Flash-Next (MXFP4, INT4-g64, GSQ-IQ1_M) and Sage, and the very same numbers for DeepSeek-V4.1-Flash-1017 REAP-192 (a zero written as "-0" comes back written as "+0"; same number, explained below).The weights are 4-bit, and making them 4-bit did lose some precision. That happened *before* the weights reached these files: AMD did it for Qwen, DeepSeek did it for its own model, and we did it ourselves for Sage. The table below says who did what.## In plain words**What is in these files.** A Mixture-of-Experts model is split into hundreds of small blocks of weights called *experts*, and only a few of them work on each word. When a model is too big for a computer's memory, a program keeps some experts in memory and reads the others from the SSD the moment they are needed. These files hold those experts, laid out so that each one comes off the disk in a single read (except the Sage int4 file, which is a packed copy of a whole set of model files).**Think of a ZIP file.** When you zip a document and unzip it later, you get the same document back, every letter in place; the ZIP was only a smaller way to keep it. WNR3 does that for 4-bit expert weights. Files with `.nr3` in their name use it and are 12-15% smaller. The other files are not compressed by WNR3: they hold the weights' original bytes, one expert per slot.**Where precision was lost: before these files.** To *quantize* is to round numbers to fewer bits so that they take less space; the rounding cannot be undone. The weights here are 4-bit numbers (in formats called MXFP4 and int4). Turning a model's original 16-bit or 8-bit weights into 4-bit numbers is a quantization, and it does lose some precision. That step happened before the weights reached these files. Two of the files hold a 4-bit version that we made ourselves from the official 8-bit Sage release. Making them lost some precision, and we have not measured how much.| File | What changed the weights before they reached our file, losing precision, and who did it | What our file does to them ||---|---|---|4 unmodified lines| `qwen38-gsq-iq1m/qwen38_flash_next_gsq_iq1m.wnr4gg.wex` | 2-bit GGUF quantization (`Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M`, 2 shards) | **WNR4-GG (codec 8, kind 2)**: full packed WEX4 container of both GGUF shards (`Q2_0`/`IQ4_NL` expert slices coded, other slices verbatim), lossless || `v41-reap/v4_flash_experts.nr3.wex` | DeepSeek publishes the experts of [DeepSeek-V4.1-Flash-1017](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017) already in 4 bits (MXFP4). Then a third party removed half of the experts and published the rest as [patrickbdevaney/DeepSeek-V4.1-Flash-1017-REAP192-MXFP4](https://huggingface.co/patrickbdevaney/DeepSeek-V4.1-Flash-1017-REAP192-MXFP4) ("REAP" pruning: 192 of 384 experts kept in each layer, the kept ones copied unchanged). Removing experts loses quality | WNR3-CZ (codec 5): compressed to 85.4% of the size. Every weight is the same number (canonical zero: -0 → +0) || `v41-reap/v4_flash_experts.wnr4.wex` | the same DeepSeek-V4.1-Flash-1017 REAP-192 MXFP4 weights | **WNR4-MX (codec 8, kind 0)**: 32-lane GPU-parallel rANS tiles (188 GB/s kernel decode on RTX 5090), compressed to **85.1%** (122.87 GB, -21.52 GB vs safetensors). Value-exact (canonical zero) || `Sage-S2.1-Flash-int4/Sage-S2.1-Flash-int4.wex4` | Shanghai AI Laboratory published [Sage-S2.1-Flash](https://huggingface.co/internlm/Sage-S2.1-Flash) and an official 8-bit version, [internlm/Sage-S2.1-Flash-FP8](https://huggingface.co/internlm/Sage-S2.1-Flash-FP8). **We** rounded its experts to 4-bit integers (int4) and turned its other 8-bit tensors into 16-bit BF16, which can round too. **Lossy; we have not measured the quality** | Keeps our int4 files unchanged. A small part is compressed ZIP-style (WBP1), and that is lossless too || `Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wex` | the same official 8-bit version; **we** rounded its experts to MXFP4. **Lossy; we have not measured the quality** | Not compressed. Uses the older WEX1 layout, which has no fingerprints inside; the manifest file next to it has them || `Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wex` | exactly the same Sage MXFP4 weights as the file above | Compressed to 83% of the older file, in the newer WEX4 layout with a fingerprint for every expert. Unpacking gives exactly the same bytes: all 12,096 experts were unpacked and compared byte for byte with the source files, 0 differences |## Is this a quantization? No.4 unmodified linesFor the same reason a ZIP is smaller. In real weights some 4-bit values occur much more often than others. WNR3 gives the common values short codes and the rare values long codes. It uses a table that says how common each value usually is; if the table guesses wrong, the file only gets bigger, never different. Nothing is generated or predicted by an AI: it is plain arithmetic, and a stored expert that would not get smaller is kept uncompressed.**So why does it say "MXFP4" and "4-bit" everywhere?**Because the weights were already 4-bit when we got them (Qwen, DeepSeek), or when we made them (Sage). We keep them exactly in that form.**Is anything lossy, then?**Yes, the steps in the table, all of them before our files: DeepSeek's own 4-bit release, AMD's 4-bit rounding of Qwen, the REAP pruning of DeepSeek, and our own rounding of Sage (both files, including the 8-bit to BF16 step of the int4 file). Nothing is lossy in the WEX4 layout or in the WNR3 compression.**What does "value-exact" mean for the DeepSeek file?**In 4-bit floating point, zero can be written two ways, +0 and -0, and both are the same number. It is like writing 0 or -0 on paper: the amount is the same. To save space (85% of the size instead of about 88%), WNR3 writes every -0 as +0. Every weight unpacks to the same number; only the way some zeros are written differs from the source files. We ran the model from this file and from a byte-exact copy: its output scores were identical to the last bit on 7 short prompts (64 tokens each), and a long 1,886-token conversation turn produced the same text ([report](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/reports/WNR3-PRODUCTION-20261110.md)). The two Qwen files are byte-exact.41 unmodified linesFor the two Qwen files: if both print the same content digest, `0d752bbf2d169b611ac79b005f07d0b9152c0591b23b65cbd12e06ea8300ec77` for the uncompressed file, then every expert of the compressed file unpacked to exactly the same bytes. The DeepSeek file has no uncompressed twin here; its content digest when we checked it was `fb085e127ba980214f106313e9af578b18e5ebac4cde7ecb9730b1a0f78ae512`.**4. The Sage files.**- Sage int4: `python -I wex4/wex4_convert.py unpack Sage-S2.1-Flash-int4.wex4 OUT_DIR --dll wex4/out/wex4_tools.dll` rebuilds the 62 safetensors files (about 195 GB of free disk needed) and checks each one against the SHA-256 recorded inside the file. That proves you get back our int4 files exactly.- Sage MXFP4 (older layout, no fingerprints inside): `python -I c/tools/repack_q38_mxfp4_wex.py --verify Sage-S2.1-Flash-MXFP4.wex` (needs numpy) re-hashes every layer against `Sage-S2.1-Flash-MXFP4.wex.manifest.json`.**What you cannot check yet.** No published command compares these files with the original upstream downloads (AMD's Qwen files, the REAP-192 files, the official Sage FP8 files). The checks above prove that the files are intact and that unpacking is exact; the link to the upstream files rests on the build-time checks described in the Integrity section.---10 unmodified lines| `qwen38-gsq-iq1m/qwen38_flash_next_gsq_iq1m.wnr4gg.wex` | Qwen3.8-Flash-Next GSQ-RCO-IQ1_M (2-shard GGUF, full model); WEX4, **WNR4-GG (codec 8, kind 2)**, byte-exact | 13,809 (37,944 tensors) | 57,821,315,072 B (57.82 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) || `v41-reap/v4_flash_experts.nr3.wex` | DeepSeek-V4.1-Flash-1017 REAP-192 routed experts, MXFP4; WEX4, WNR3-CZ (codec 5, value-exact) | 7,680 (40 × 192) | 123,312,910,336 B (123.31 GB) | [MIT](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/LICENSE) || `v41-reap/v4_flash_experts.wnr4.wex` | the same DeepSeek-V4.1-Flash-1017 REAP-192 experts; WEX4, **WNR4-MX (codec 8, kind 0, value-exact)** | 7,680 (40 × 192) | 122,872,295,424 B (122.87 GB) | [MIT](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/LICENSE) || `Sage-S2.1-Flash-int4/Sage-S2.1-Flash-int4.wex4` | our int4 requantization of the 62 model shards of Sage-S2.1-Flash-FP8 (see below); WEX4 holding 62 safetensors files (ST_SOURCES) | 75,273 (74,304 RAW, 969 WBP1); 75,922 tensors, of which 12,384 routed experts (43 × 288) | 187,770,384,384 B (187.77 GB) | [MIT](https://huggingface.co/internlm/Sage-S2.1-Flash-FP8#license) || `Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wex` | Sage-S2.1-Flash routed experts of layers 3-44 in our MXFP4 requantization; WEX1 (older layout: no index fingerprints) | 12,096 (42 × 288), 13,369,344 B each | 161,716,523,008 B (161.72 GB) | [MIT](https://huggingface.co/internlm/Sage-S2.1-Flash-FP8#license) || `Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wex.manifest.json` | SHA-256 of each layer's records and of the header page and table of the WEX1 file | — | 10,924 B | — || `Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wex` | the same Sage-S2.1-Flash routed experts (layers 3-44, our MXFP4 requantization); WEX4, WNR3 records with canonical zero (byte-exact here: the experts contain no -0) | 12,096 (42 × 288) | 134,545,358,848 B (134.55 GB) | [MIT](https://huggingface.co/internlm/Sage-S2.1-Flash-FP8#license) || `Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wex.json` | build record of the WNR3 file (codec settings, per-layer hashes) | — | 6,216,021 B | — || `provenance/q38_experts.wex.verified.pre-wex4` | SHA-256 of the WEX1 copy the Qwen RAW file was upgraded from | — | 123 B | — || `provenance/v4_flash_experts.nr3.wex.verified.pre-wex4` | build and read-back note of the DeepSeek file | — | 177 B | — |The Sage int4 file holds the language model (including the MTP layer 45) and the vision tower `model.visual` (347 tensors): experts in int4 (one F32 scale per 64 weights), the FP8 non-expert tensors dequantized to BF16 (874 tensors), the F32 tensors kept as F32 (744). It does not hold the 9 `projectors/…/projector.safetensors`, `config.json`, the tokenizer or the chat template of internlm/Sage-S2.1-Flash-FP8. The other files hold routed experts only: a runtime takes the rest of the model from the original checkpoint. None of them loads with `transformers.from_pretrained()`.WEX4 and WNR3 are separate layers:12 unmodified lines| `qwen38_flash_next_gsq_iq1m.wnr4gg.wex` | `fbc259fdc37a672b039276d167cd84376422514fa4d192776852b94b6911ef12` | *(see HF file page)* | 13,809 records (2-shard full GGUF packed with `wex4/wnr4gg.py`), header & root verified || `v4_flash_experts.nr3.wex` | `f0f78a84d040a3b336f3abef3cf8b0a36c649deb38586c813e94d35dea3beeb1` | `203d55dc96f5c2fe16716cef2c767fa63c387e8cbbbe98991ecd4f7039c7e4b2` | 7,680 records decoded, every hash matches the index; content digest `fb085e127ba980214f106313e9af578b18e5ebac4cde7ecb9730b1a0f78ae512` || `v4_flash_experts.wnr4.wex` | `75520a3b0a52f161a02cafebc94d57e58ef2c4ccfbff5b4ba637cc3d66252e30` | *(see HF file page)* | 7,680 WNR4-MX records (40 × 192), header & root verified || `Sage-S2.1-Flash-int4.wex4` | `85246e738032d8734d27575448952f69f49308f8cb5caaba7b281b13ce25bf0d` | `bbfa112154425fb73339ebd1b05d3d53f987b8374a2e5481ba5c1f3e8e3e0747` | a SHA-256 for each of the 62 source files is inside; no full check of this file is on record, so run `wex4_verify` or `unpack` || `Sage-S2.1-Flash-MXFP4.wex` | none (WEX1) | `cae23f8575f92f29be895ef460caf1d66d764a870389b6a234a1aff876949249` | a local copy was re-hashed against this manifest (header page and table `ef4b66cfcc72f539367eaffc64bbb18ddb442b90ecd06a63a5169bea8596a158`) || `Sage-S2.1-Flash-MXFP4.nr3.wex` | `35de35aa5766e8f4a7e4fa69c695d83d69648b6ceb6a7c4624f4bf20b1a689dd` | `96d9124e3d4fd9fc1b2f3812f39d374e41b21ab91a4381fe7f2f9fe1bfc1436d` | `wex4_verify`: every blob and record matches the index; all 12,096 records decoded and compared byte for byte with the 62 source safetensors files (161.7 GB, 0 failures); every layer's records hash equal to the WEX1 manifest above. The root was read back from the hub after upload |The root is the SHA-256 of the first 4,064 bytes of the header page. The record SHA-256 covers the stored bytes, so `wex4_verify` proves the file is intact, not that decoding is exact. The content digest is the SHA-256 over, for each tensor in table order, its name, dtype, shape, size and decoded bytes; it does not cover metadata, blobs or feature bits ([WEX4-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WEX4-SPEC.md) section 5). The WNR3 builder decodes every record on the CPU and refuses to write one that does not decode back exactly. A damaged WNR3 record is caught twice: by the stream hashes (0 of 2,231,336 wrong single-bit flips accepted on the GPU, 0 of 3,000 on the CPU, [WNR3-VERIFY](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/reports/WNR3-VERIFY.md)) and by the record's SHA-256 in the index.8 unmodified lines| DeepSeek-V4.1-Flash-1017 REAP-192, WNR3-CZ against raw WEX1 | 123,312,910,336 B | 144,389,472,256 B | **0.854** || DeepSeek-V4.1-Flash-1017 REAP-192, **WNR4-MX (CZ)** against raw | 122,872,295,424 B | 144,388,915,200 B | **0.851** || DeepSeek-V4.1-Flash-1017 REAP-192, WNR3 byte-exact (40 held-out experts, not a full file) | | | about 0.882 || Sage int4, against its 62 source safetensors files | 187,770,384,384 B | 194,727,333,920 B | 0.964 || Sage MXFP4, WNR3 file against the older WEX1 file of the same experts | 134,545,358,848 B | 161,716,523,008 B | **0.832** || Qwen3.8-Flash-Next RAW and Sage MXFP4 WEX1 | | | 1.000 (not compressed) |## Quality of the 4-bit weights (steps taken before the container)The container adds no error, so these are the only quality questions, and they belong to the upstream steps:- **Qwen3.8, AMD's MXFP4.** Close to the original model. AMD reports, against the original, among others: GSM8K 96.8 → 96.5, GPQA Diamond 91.67 → 91.67, AIME26 99.17 → 98.33, IFBench 83.27 → 82.67. These are 4 of AMD's 8 benchmarks; the largest drop is MMMU Pro vision, 78.38 → 77.40; the full table is on [AMD's card](https://huggingface.co/amd/Qwen3.8-Flash-Next-Quark-MXFP4). Our own check against the official FP8 weights, very close: minimum cosine 0.9926 over the checked matrices of all 48 layers, and on 9 prompts a mean gap of 0.018 nats/token on text and 0.013 on chat ([report](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/reports/QWEN38-MXFP4-20261111.md)).- **DeepSeek V4.1, REAP-192 pruning.** A measurable loss. The pruned model's author reports, teacher-forced against the unpruned model on 185,565 held-out tokens: top-1 agreement 0.798, KL on the top-32 support 0.44, NLL +0.27; multilingual top-1 0.52. The author states that the checkpoint failed its release gate as pre-registered and passed under an amendment made after the result ([card](https://huggingface.co/patrickbdevaney/DeepSeek-V4.1-Flash-1017-REAP192-MXFP4)).- **Sage-S2.1-Flash, our int4 and MXFP4.** Not measured. The int4 file uses symmetric int4 with one F32 scale per 64 weights (the layout of colibri's `convert_glm53.py`); the MXFP4 file uses FP4 E2M1 weights with one E8M0 scale per 32. Treat both as experimental, and use the official FP8 release where quality matters.## Use with colibriThe WEX4 series for colibri lives on the fork [KairaCode/colibri](https://github.com/KairaCode/colibri) (`main`) and is proposed upstream in [JustVugg/colibri#2920](https://github.com/JustVugg/colibri/pull/2920). Everything is opt-in: with `COLI_WEX_PATH` unset an engine behaves as before. The Sage files are not part of that series.```sh# DeepSeek V4.1: trunk from the original checkpoint, routed experts from the container38 unmodified linesThe files here carry different terms, so no single license is asserted for the repository:- Qwen3.8-Flash-Next expert weights (both Qwen files, quantized by AMD): [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE), the license of the base model and of AMD's release.- DeepSeek-V4.1-Flash-1017 REAP-192 expert weights: [MIT](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/LICENSE), Copyright (c) 2023 DeepSeek; the REAP-192 release is MIT too.- Sage-S2.1-Flash weights (both Sage files, requantized by us): MIT, as stated in the [Sage-S2.1-Flash-FP8 model card](https://huggingface.co/internlm/Sage-S2.1-Flash-FP8#license) by Shanghai AI Laboratory.- The WEX format, codecs, specifications and tools (not stored here): [Apache-2.0](https://github.com/KairaCode/Wex-WRN2/blob/main/LICENSE).The license texts are in [`licenses/`](licenses/NOTICE.md), copied unchanged from the upstream repositories.16 unmodified lines171819202122232425262728293031323334354 unmodified lines4041424344454 unmodified lines5051525354555657585941 unmodified lines10110210310410510610710 unmodified lines11811912012112212312412512612712 unmodified lines1401411421431441458 unmodified lines15415515615715815916016116216316416516616716816917017138 unmodified lines21021121221321421521621716 unmodified lines---# WEX4 Expert ContainersExpert weights of two Mixture-of-Experts AI models (**Qwen3.8-Flash-Next 125B-A6B** and **DeepSeek-V4.1-Flash-1017 REAP-192**), stored in **WEX4** containers with **RAW**, **WNR3 (codec 5)** and **WNR4 (codec 8: MX, I4, GG)** lossless compression.**Storing the weights in these files does not change the value of any weight. It is not a quantization.** WEX4 is the file layout. WNR3 and WNR4 are optional lossless codecs inside it, like ZIP. Unpacking gives back the same weights: the very same bytes for Qwen3.8-Flash-Next (MXFP4, INT4-g64, GSQ-IQ1_M), and the very same numbers for DeepSeek-V4.1-Flash-1017 REAP-192 (a zero written as "-0" comes back written as "+0"; same number, explained below).The weights are 4-bit (or 2-bit for the GSQ-IQ1_M GGUF), and making them 4-bit/2-bit did lose some precision. That happened *before* the weights reached these files: AMD did it for Qwen3.8 MXFP4, and DeepSeek did it for its own model. The table below says who did what.## In plain words**What is in these files.** A Mixture-of-Experts model is split into hundreds of small blocks of weights called *experts*, and only a few of them work on each word. When a model is too big for a computer's memory, a program keeps some experts in memory and reads the others from the SSD the moment they are needed. These files hold those experts, laid out so that each one comes off the disk in a single read (except the GSQ-IQ1_M WNR4-GG file, which packs both GGUF shards of the full model).**Think of a ZIP file.** When you zip a document and unzip it later, you get the same document back, every letter in place; the ZIP was only a smaller way to keep it. WNR3 and WNR4 do that for expert weights. Files with `.nr3` or `.wnr4` in their name use them and are 12-22% smaller. The RAW files are not compressed: they hold the weights' original bytes, one expert per slot.**Where precision was lost: before these files.** To *quantize* is to round numbers to fewer bits so that they take less space; the rounding cannot be undone. Turning a model's original 16-bit or 8-bit weights into 4-bit or 2-bit numbers is a quantization, and it does lose some precision. That step happened before the weights reached these files.| File | What changed the weights before they reached our file, losing precision, and who did it | What our file does to them ||---|---|---|4 unmodified lines| `qwen38-gsq-iq1m/qwen38_flash_next_gsq_iq1m.wnr4gg.wex` | 2-bit GGUF quantization (`Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M`, 2 shards) | **WNR4-GG (codec 8, kind 2)**: full packed WEX4 container of both GGUF shards (`Q2_0`/`IQ4_NL` expert slices coded, other slices verbatim), lossless || `v41-reap/v4_flash_experts.nr3.wex` | DeepSeek publishes the experts of [DeepSeek-V4.1-Flash-1017](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017) already in 4 bits (MXFP4). Then a third party removed half of the experts and published the rest as [patrickbdevaney/DeepSeek-V4.1-Flash-1017-REAP192-MXFP4](https://huggingface.co/patrickbdevaney/DeepSeek-V4.1-Flash-1017-REAP192-MXFP4) ("REAP" pruning: 192 of 384 experts kept in each layer, the kept ones copied unchanged). Removing experts loses quality | WNR3-CZ (codec 5): compressed to 85.4% of the size. Every weight is the same number (canonical zero: -0 → +0) || `v41-reap/v4_flash_experts.wnr4.wex` | the same DeepSeek-V4.1-Flash-1017 REAP-192 MXFP4 weights | **WNR4-MX (codec 8, kind 0)**: 32-lane GPU-parallel rANS tiles (188 GB/s kernel decode on RTX 5090), compressed to **85.1%** (122.87 GB, -21.52 GB vs safetensors). Value-exact (canonical zero) |## Is this a quantization? No.4 unmodified linesFor the same reason a ZIP is smaller. In real weights some 4-bit values occur much more often than others. WNR3 gives the common values short codes and the rare values long codes. It uses a table that says how common each value usually is; if the table guesses wrong, the file only gets bigger, never different. Nothing is generated or predicted by an AI: it is plain arithmetic, and a stored expert that would not get smaller is kept uncompressed.**So why does it say "MXFP4" and "4-bit" everywhere?**Because the weights were already 4-bit when we got them (Qwen3.8 MXFP4, DeepSeek V4.1). We keep them exactly in that form.**Is anything lossy, then?**Yes, the steps in the table, all of them before our files: DeepSeek's own 4-bit release, AMD's 4-bit rounding of Qwen3.8-Flash-Next, and the REAP pruning of DeepSeek. Nothing is lossy in the WEX4 layout or in the WNR3/WNR4 compression.**What does "value-exact" mean for the DeepSeek file?**In 4-bit floating point, zero can be written two ways, +0 and -0, and both are the same number. It is like writing 0 or -0 on paper: the amount is the same. To save space (85% of the size instead of about 88%), WNR3 writes every -0 as +0. Every weight unpacks to the same number; only the way some zeros are written differs from the source files. We ran the model from this file and from a byte-exact copy: its output scores were identical to the last bit on 7 short prompts (64 tokens each), and a long 1,886-token conversation turn produced the same text ([report](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/reports/WNR3-PRODUCTION-20261110.md)). The two Qwen files are byte-exact.41 unmodified linesFor the two Qwen files: if both print the same content digest, `0d752bbf2d169b611ac79b005f07d0b9152c0591b23b65cbd12e06ea8300ec77` for the uncompressed file, then every expert of the compressed file unpacked to exactly the same bytes. The DeepSeek file has no uncompressed twin here; its content digest when we checked it was `fb085e127ba980214f106313e9af578b18e5ebac4cde7ecb9730b1a0f78ae512`.**What you cannot check yet.** No published command compares these files with the original upstream downloads (AMD's Qwen files, the REAP-192 files). The checks above prove that the files are intact and that unpacking is exact; the link to the upstream files rests on the build-time checks described in the Integrity section.---10 unmodified lines| `qwen38-gsq-iq1m/qwen38_flash_next_gsq_iq1m.wnr4gg.wex` | Qwen3.8-Flash-Next GSQ-RCO-IQ1_M (2-shard GGUF, full model); WEX4, **WNR4-GG (codec 8, kind 2)**, byte-exact | 13,809 (37,944 tensors) | 57,821,315,072 B (57.82 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) || `v41-reap/v4_flash_experts.nr3.wex` | DeepSeek-V4.1-Flash-1017 REAP-192 routed experts, MXFP4; WEX4, WNR3-CZ (codec 5, value-exact) | 7,680 (40 × 192) | 123,312,910,336 B (123.31 GB) | [MIT](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/LICENSE) || `v41-reap/v4_flash_experts.wnr4.wex` | the same DeepSeek-V4.1-Flash-1017 REAP-192 experts; WEX4, **WNR4-MX (codec 8, kind 0, value-exact)** | 7,680 (40 × 192) | 122,872,295,424 B (122.87 GB) | [MIT](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/LICENSE) || `provenance/q38_experts.wex.verified.pre-wex4` | SHA-256 of the WEX1 copy the Qwen RAW file was upgraded from | — | 123 B | — || `provenance/v4_flash_experts.nr3.wex.verified.pre-wex4` | build and read-back note of the DeepSeek file | — | 177 B | — |The GSQ-IQ1_M WNR4-GG file holds both GGUF shards of the full model. The other files hold routed experts only: a runtime takes the rest of the model (dense weights, attention, engram, head, tokenizer) from the original checkpoint. None of them loads with `transformers.from_pretrained()`.WEX4 and WNR3 are separate layers:12 unmodified lines| `qwen38_flash_next_gsq_iq1m.wnr4gg.wex` | `fbc259fdc37a672b039276d167cd84376422514fa4d192776852b94b6911ef12` | *(see HF file page)* | 13,809 records (2-shard full GGUF packed with `wex4/wnr4gg.py`), header & root verified || `v4_flash_experts.nr3.wex` | `f0f78a84d040a3b336f3abef3cf8b0a36c649deb38586c813e94d35dea3beeb1` | `203d55dc96f5c2fe16716cef2c767fa63c387e8cbbbe98991ecd4f7039c7e4b2` | 7,680 records decoded, every hash matches the index; content digest `fb085e127ba980214f106313e9af578b18e5ebac4cde7ecb9730b1a0f78ae512` || `v4_flash_experts.wnr4.wex` | `75520a3b0a52f161a02cafebc94d57e58ef2c4ccfbff5b4ba637cc3d66252e30` | *(see HF file page)* | 7,680 WNR4-MX records (40 × 192), header & root verified |The root is the SHA-256 of the first 4,064 bytes of the header page. The record SHA-256 covers the stored bytes, so `wex4_verify` proves the file is intact, not that decoding is exact. The content digest is the SHA-256 over, for each tensor in table order, its name, dtype, shape, size and decoded bytes; it does not cover metadata, blobs or feature bits ([WEX4-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WEX4-SPEC.md) section 5). The WNR3 builder decodes every record on the CPU and refuses to write one that does not decode back exactly. A damaged WNR3 record is caught twice: by the stream hashes (0 of 2,231,336 wrong single-bit flips accepted on the GPU, 0 of 3,000 on the CPU, [WNR3-VERIFY](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/reports/WNR3-VERIFY.md)) and by the record's SHA-256 in the index.8 unmodified lines| DeepSeek-V4.1-Flash-1017 REAP-192, WNR3-CZ against raw WEX1 | 123,312,910,336 B | 144,389,472,256 B | **0.854** || DeepSeek-V4.1-Flash-1017 REAP-192, **WNR4-MX (CZ)** against raw | 122,872,295,424 B | 144,388,915,200 B | **0.851** || DeepSeek-V4.1-Flash-1017 REAP-192, WNR3 byte-exact (40 held-out experts, not a full file) | | | about 0.882 || Qwen3.8-Flash-Next RAW | | | 1.000 (not compressed) |## Quality of the 4-bit weights (steps taken before the container)The container adds no error, so these are the only quality questions, and they belong to the upstream steps:- **Qwen3.8-Flash-Next, AMD's MXFP4.** Close to the original model. AMD reports, against the original, among others: GSM8K 96.8 → 96.5, GPQA Diamond 91.67 → 91.67, AIME26 99.17 → 98.33, IFBench 83.27 → 82.67. These are 4 of AMD's 8 benchmarks; the largest drop is MMMU Pro vision, 78.38 → 77.40; the full table is on [AMD's card](https://huggingface.co/amd/Qwen3.8-Flash-Next-Quark-MXFP4). Our own check against the official FP8 weights, very close: minimum cosine 0.9926 over the checked matrices of all 48 layers, and on 9 prompts a mean gap of 0.018 nats/token on text and 0.013 on chat ([report](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/reports/QWEN38-MXFP4-20261111.md)).- **DeepSeek-V4.1-Flash-1017, REAP-192 pruning.** A measurable loss. The pruned model's author reports, teacher-forced against the unpruned model on 185,565 held-out tokens: top-1 agreement 0.798, KL on the top-32 support 0.44, NLL +0.27; multilingual top-1 0.52. The author states that the checkpoint failed its release gate as pre-registered and passed under an amendment made after the result ([card](https://huggingface.co/patrickbdevaney/DeepSeek-V4.1-Flash-1017-REAP192-MXFP4)).## Use with colibriThe WEX4 series for colibri lives on the fork [KairaCode/colibri](https://github.com/KairaCode/colibri) (`main`) and is proposed upstream in [JustVugg/colibri#2920](https://github.com/JustVugg/colibri/pull/2920). Everything is opt-in: with `COLI_WEX_PATH` unset an engine behaves as before.```sh# DeepSeek V4.1: trunk from the original checkpoint, routed experts from the container38 unmodified linesThe files here carry different terms, so no single license is asserted for the repository:- Qwen3.8-Flash-Next expert weights (MXFP4, INT4-g64, GSQ-IQ1_M): [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE), the license of the base model and of AMD's release.- DeepSeek-V4.1-Flash-1017 REAP-192 expert weights: [MIT](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/LICENSE), Copyright (c) 2023 DeepSeek; the REAP-192 release is MIT too.- The WEX format, codecs, specifications and tools (not stored here): [Apache-2.0](https://github.com/KairaCode/Wex-WRN2/blob/main/LICENSE).The license texts are in [`licenses/`](licenses/NOTICE.md), copied unchanged from the upstream repositories.
123version https://git-lfs.github.com/spec/v1oid sha256:96d9124e3d4fd9fc1b2f3812f39d374e41b21ab91a4381fe7f2f9fe1bfc1436dsize 134545358848123version https://git-lfs.github.com/spec/v1oid sha256:cae23f8575f92f29be895ef460caf1d66d764a870389b6a234a1aff876949249size 161716523008123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431{
"format": "colibri.qwen38.mxfp4-wex1",
"version": 1,
"container": "Sage-S2.1-Flash-MXFP4.wex",
"geometry": {
"layers": 45,
"experts": 288,
"hidden_size": 4096,
"moe_intermediate_size": 2048
},
"layers": {
"3": {
"experts": 288,
"sha256": "af0a395ba210c138f4691460b68feec206024135554161335d10072e7daa4f0b"
},
"4": {
"experts": 288,
"sha256": "ce416caadc01446d2a9109865e7d3b1d7a012a0369e7618125875b4ed3f70f51"
},
"5": {
"experts": 288,
"sha256": "0710d8b01597a303fa9f8e98c549b5748c4ea3bedf8cafa6df15b81fb0b86672"
},
"6": {
"experts": 288,
"sha256": "79207f1be802891f7781a9c68e4b7c9f1e47249b62f0eadcdb068197ec44abd8"
},
"7": {
"experts": 288,
"sha256": "cb4df2f32832cde6d33ad1c70ae89e151d3ec7f383bad0a7167f840443d36d66"
},
"8": {
"experts": 288,
"sha256": "f7fa87a8047008d55157aba88aa8175edc418cc95ab4656402508e0193fc2eb1"
},
"9": {
"experts": 288,
"sha256": "8dfdd20a2bd89200c4db540baa373ed222e6034a1de31446404e428bddcabe5c"
},
"10": {
"experts": 288,
"sha256": "f3a141eb6921624c7a9e8134ef723552383c2a2ed6d86ec556fbbefeea62dd58"
},
"11": {
"experts": 288,
"sha256": "1ef184a44019f1a106ce47af2bf7c0f3c9ccd64e26cf9a439cecf9e422df3e5e"
},
"12": {
"experts": 288,
"sha256": "e35ef174dbf0c85a2867353ea9836a915ae1f723665279c3aacf49a566c45917"
},
"13": {
"experts": 288,
"sha256": "1aabaa43086b7ebf89c7405c5081637aa5b55f1b52caf3d7cd5d5f73f50f4a91"
},
"14": {
"experts": 288,
"sha256": "4116a9cddfd4ee85115a69d775541d07707ce30775558e321bac0473e1ef3cb9"
},
"15": {
"experts": 288,
"sha256": "0debd19baf4ff1d828da7f9f81fd342ae37fac6ab99b5974ac9d5bfc121ee9be"
},
"16": {
"experts": 288,
"sha256": "d928e1e5de6689c33ad1172cfd5a114dd7960775ad444873628109989ff87d47"
},
"17": {
"experts": 288,
"sha256": "a572ee8d0c05a7f0798a7b4ab6af093ba0bacc154d3bf295abf6160b722545a3"
},
"18": {
"experts": 288,
"sha256": "28b214451d1124ddd944c4bc8ff72f377b20fd1e3e9403fe9b8848880a9f09c0"
},
"19": {
"experts": 288,
"sha256": "8337fc378d4352cd9adb227f4482f39b2a2f1daac8bfbbcbc6192884721e2ccb"
},
"20": {
"experts": 288,
"sha256": "b67b2ad6afe667b6809474741a59f8cf2a5156dbc58092dc556dd6402ce60ee1"
},
"21": {
"experts": 288,
"sha256": "ea3b2556514b5ec55745e71f9999fc513500d4ac5c2e2a0d82196e3ca87750b6"
},
"22": {
"experts": 288,
"sha256": "5c83865c60829704f59c2ca69ec0627b12f3f55b553cc9a4211d36154b789885"
},
"23": {
"experts": 288,
"sha256": "7e727fa23f4ee7eebcca6ce3e34bbb9ebd8daa9459212b3e4f32ae2a2d34ec52"
},
"24": {
"experts": 288,
"sha256": "f1630b536b2b25b06eb89153a3205adb6db463ec3ac7efc20d8d16c644464c25"
},
"25": {
"experts": 288,
"sha256": "e88665120dc218ce4a14b3c6db13de7eb55f796a7efb45d5769d41159decc42c"
},
"26": {
"experts": 288,
"sha256": "b4e427301f609ad37a3b01622006127f85f3eafdab65a1439e752eb0fc64377d"
},
"27": {
"experts": 288,
"sha256": "74142fee4700174d4490030c579e9b0774b2b06c3f0458ada5931accbfc26789"
},
"28": {
"experts": 288,
"sha256": "4083914a2a1f0a4daac0aa5759471fea7e070f6defb1728f1183fa51d140af8a"
},
"29": {
"experts": 288,
"sha256": "cc5d3de7732d64109ba43106449714d5e5221cd6b596f5127c600f977693d343"
},
"30": {
"experts": 288,
"sha256": "ab5be7b03e355c0ef53884dcc4d1126d5b935cb86d61a8031afc8925992481d4"
},
"31": {
"experts": 288,
"sha256": "f939b5dfd5155d77739457ff73d55374e8dadf55c655bc80dae503b372a869b4"
},
"32": {
"experts": 288,
"sha256": "a52cc6c3fa70ea4068e49b60f0022d0cb16e75983b5fee227ba618b7320ea250"
},
"33": {
"experts": 288,
"sha256": "50a724142ad20afa48a2b1dbbcf0716f071798516edd1e2d450614ea4734fb20"
},
"34": {
"experts": 288,
"sha256": "52b94d02151acebcf710d7fdc22caaacdc25f6b6bf9282e872b8985dc313ceb5"
},
"35": {
"experts": 288,
"sha256": "c10120dac25c89f007a08a095da69b71f2b4c9799ef321939b6402b62ff50326"
},
"36": {
"experts": 288,
"sha256": "03b5593b5ea56c4d2edde59c883d3e98ae25a2d2cd10d7190a64e3066fe3908e"
},
"37": {
"experts": 288,
"sha256": "049bacdbb9faa487d8c90ce8c4ed897d9074881a111b76b4ffbc3f446c3a70af"
},
"38": {
"experts": 288,
"sha256": "84b92ff8aa02b0165a31f77130d04439350d2df74995dee24551230f174146c5"
},
"39": {
"experts": 288,
"sha256": "cf786e650209422f03d0b263c0dc01f62f91ae6ca0a1998e8480232906e46683"
},
"40": {
"experts": 288,
"sha256": "5f05215aa39d3f82df578793696ebe94fc4c4a35b8c6bd4b7ed00a62fb1a4aab"
},
"41": {
"experts": 288,
"sha256": "e66e438c980289ef38fc4db64347cab02f4a515a68a0e693704cc11d41e6cc52"
},
"42": {
"experts": 288,
"sha256": "d852b6e097cf610330b72be75ce1023908412664be6a6481dfa09ed5a18c2e49"
},
"43": {
"experts": 288,
"sha256": "160c70d90be9bd129427c44a2d9a5de25f79e062e31137e31883770eb6bb5ef5"
},
"44": {
"experts": 288,
"sha256": "ffc1ea9cf7506f4ee1ccf9d775941735b01097e814699ecbbf1fd81a8a773df4"
}
},
"fp8_check": {},
"inputs": {
"model-00001-of-00062.safetensors": {
"bytes": 4715874513,
"sha256": null
},
"model-00002-of-00062.safetensors": {
"bytes": 2847848593,
"sha256": null
},
"model-00003-of-00062.safetensors": {
"bytes": 3018762388,
"sha256": null
},
"model-00004-of-00062.safetensors": {
"bytes": 2847848443,
"sha256": null
},
"model-00005-of-00062.safetensors": {
"bytes": 3018762560,
"sha256": null
},
"model-00006-of-00062.safetensors": {
"bytes": 2847848487,
"sha256": null
},
"model-00007-of-00062.safetensors": {
"bytes": 3018762384,
"sha256": null
},
"model-00008-of-00062.safetensors": {
"bytes": 2847848445,
"sha256": null
},
"model-00009-of-00062.safetensors": {
"bytes": 3059966615,
"sha256": null
},
"model-00010-of-00062.safetensors": {
"bytes": 2847848549,
"sha256": null
},
"model-00011-of-00062.safetensors": {
"bytes": 3018763463,
"sha256": null
},
"model-00012-of-00062.safetensors": {
"bytes": 2847849696,
"sha256": null
},
"model-00013-of-00062.safetensors": {
"bytes": 3018763742,
"sha256": null
},
"model-00014-of-00062.safetensors": {
"bytes": 2847849741,
"sha256": null
},
"model-00015-of-00062.safetensors": {
"bytes": 3018763449,
"sha256": null
},
"model-00016-of-00062.safetensors": {
"bytes": 2847849872,
"sha256": null
},
"model-00017-of-00062.safetensors": {
"bytes": 3059967794,
"sha256": null
},
"model-00018-of-00062.safetensors": {
"bytes": 2847849790,
"sha256": null
},
"model-00019-of-00062.safetensors": {
"bytes": 2878014934,
"sha256": null
},
"model-00020-of-00062.safetensors": {
"bytes": 2988598558,
"sha256": null
},
"model-00021-of-00062.safetensors": {
"bytes": 3018763648,
"sha256": null
},
"model-00022-of-00062.safetensors": {
"bytes": 2847849828,
"sha256": null
},
"model-00023-of-00062.safetensors": {
"bytes": 2847849778,
"sha256": null
},
"model-00024-of-00062.safetensors": {
"bytes": 3018763740,
"sha256": null
},
"model-00025-of-00062.safetensors": {
"bytes": 3059967624,
"sha256": null
},
"model-00026-of-00062.safetensors": {
"bytes": 2847849807,
"sha256": null
},
"model-00027-of-00062.safetensors": {
"bytes": 2847849797,
"sha256": null
},
"model-00028-of-00062.safetensors": {
"bytes": 3018763736,
"sha256": null
},
"model-00029-of-00062.safetensors": {
"bytes": 2901983016,
"sha256": null
},
"model-00030-of-00062.safetensors": {
"bytes": 2942346729,
"sha256": null
},
"model-00031-of-00062.safetensors": {
"bytes": 2847849866,
"sha256": null
},
"model-00032-of-00062.safetensors": {
"bytes": 3018763728,
"sha256": null
},
"model-00033-of-00062.safetensors": {
"bytes": 2847849885,
"sha256": null
},
"model-00034-of-00062.safetensors": {
"bytes": 3059967484,
"sha256": null
},
"model-00035-of-00062.safetensors": {
"bytes": 2847849917,
"sha256": null
},
"model-00036-of-00062.safetensors": {
"bytes": 3018763678,
"sha256": null
},
"model-00037-of-00062.safetensors": {
"bytes": 2847849866,
"sha256": null
},
"model-00038-of-00062.safetensors": {
"bytes": 3018763551,
"sha256": null
},
"model-00039-of-00062.safetensors": {
"bytes": 2847849913,
"sha256": null
},
"model-00040-of-00062.safetensors": {
"bytes": 3018763570,
"sha256": null
},
"model-00041-of-00062.safetensors": {
"bytes": 2847849904,
"sha256": null
},
"model-00042-of-00062.safetensors": {
"bytes": 3059967581,
"sha256": null
},
"model-00043-of-00062.safetensors": {
"bytes": 2847849987,
"sha256": null
},
"model-00044-of-00062.safetensors": {
"bytes": 3018763538,
"sha256": null
},
"model-00045-of-00062.safetensors": {
"bytes": 2847849839,
"sha256": null
},
"model-00046-of-00062.safetensors": {
"bytes": 3018763536,
"sha256": null
},
"model-00047-of-00062.safetensors": {
"bytes": 2847849999,
"sha256": null
},
"model-00048-of-00062.safetensors": {
"bytes": 3018763663,
"sha256": null
},
"model-00049-of-00062.safetensors": {
"bytes": 2847849648,
"sha256": null
},
"model-00050-of-00062.safetensors": {
"bytes": 3059967666,
"sha256": null
},
"model-00051-of-00062.safetensors": {
"bytes": 2847849991,
"sha256": null
},
"model-00052-of-00062.safetensors": {
"bytes": 3018763622,
"sha256": null
},
"model-00053-of-00062.safetensors": {
"bytes": 2847849678,
"sha256": null
},
"model-00054-of-00062.safetensors": {
"bytes": 3018763685,
"sha256": null
},
"model-00055-of-00062.safetensors": {
"bytes": 2847849915,
"sha256": null
},
"model-00056-of-00062.safetensors": {
"bytes": 3018763600,
"sha256": null
},
"model-00057-of-00062.safetensors": {
"bytes": 2847849743,
"sha256": null
},
"model-00058-of-00062.safetensors": {
"bytes": 3059967788,
"sha256": null
},
"model-00059-of-00062.safetensors": {
"bytes": 3018763492,
"sha256": null
},
"model-00060-of-00062.safetensors": {
"bytes": 4162957779,
"sha256": null
},
"model-00061-of-00062.safetensors": {
"bytes": 4499017583,
"sha256": null
}
},
"file_bytes": 161716523008,
"record_bytes": 13369344,
"header_table_sha256": "ef4b66cfcc72f539367eaffc64bbb18ddb442b90ecd06a63a5169bea8596a158"
}123version https://git-lfs.github.com/spec/v1oid sha256:bbfa112154425fb73339ebd1b05d3d53f987b8374a2e5481ba5c1f3e8e3e0747size 187770384384README.md+15-35
Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wexDeleted-3
Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.nr3.wex.jsonDeleted
Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wexDeleted-3
Sage-S2.1-Flash-MXFP4/Sage-S2.1-Flash-MXFP4.wex.manifest.jsonDeleted-431
Sage-S2.1-Flash-int4/Sage-S2.1-Flash-int4.wex4Deleted-3