Ludovico commited on
docs: update README for WNR4 (MX, I4, GG) containers and Qwen3.8-Flash-Next (125B-A6B) naming
Browse files
README.md
CHANGED
|
@@ -6,18 +6,20 @@ library_name: wex4
|
|
| 6 |
tags:
|
| 7 |
- wex4
|
| 8 |
- wnr3
|
|
|
|
| 9 |
- lossless-compression
|
| 10 |
- mixture-of-experts
|
| 11 |
- mxfp4
|
| 12 |
- int4
|
|
|
|
| 13 |
- expert-weights
|
| 14 |
- colibri
|
| 15 |
---
|
| 16 |
# WEX4 Expert Containers
|
| 17 |
|
| 18 |
-
Expert weights of three Mixture-of-Experts AI models (Qwen3.8-Flash-Next, DeepSeek
|
| 19 |
|
| 20 |
-
**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
|
| 21 |
|
| 22 |
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.
|
| 23 |
|
|
@@ -31,9 +33,13 @@ The weights are 4-bit, and making them 4-bit did lose some precision. That happe
|
|
| 31 |
|
| 32 |
| File | What changed the weights before they reached our file, losing precision, and who did it | What our file does to them |
|
| 33 |
|---|---|---|
|
| 34 |
-
| `qwen38-mxfp4/q38_experts.wex` | AMD rounded the experts of [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) to 4 bits (MXFP4) and published them as [amd/Qwen3.8-Flash-Next-Quark-MXFP4](https://huggingface.co/amd/Qwen3.8-Flash-Next-Quark-MXFP4) | Not compressed. Keeps AMD's bytes as they are (compared with AMD's files when it was built: every expert of the first and the last layer, and the first and last expert of every layer) |
|
| 35 |
-
| `qwen38-mxfp4/q38_experts.nr3.wex` | the same AMD 4-bit weights |
|
| 36 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
| `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 |
|
| 38 |
| `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 |
|
| 39 |
| `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 |
|
|
@@ -113,9 +119,13 @@ The rest of this card is technical detail.
|
|
| 113 |
|
| 114 |
| Path | Model and layout | Records | Size | Upstream license |
|
| 115 |
|---|---|---:|---:|---|
|
| 116 |
-
| `qwen38-mxfp4/q38_experts.wex` | Qwen3.8-Flash-Next routed experts, AMD-Quark MXFP4; WEX4, RAW records | 24,576 (48 layers × 512 experts) | 64,251,047,936 B (64.25 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) |
|
| 117 |
-
| `qwen38-mxfp4/q38_experts.nr3.wex` | the same experts; WEX4, WNR3
|
| 118 |
-
| `
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
| `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) |
|
| 120 |
| `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) |
|
| 121 |
| `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 | — |
|
|
@@ -129,7 +139,8 @@ The Sage int4 file holds the language model (including the MTP layer 45) and the
|
|
| 129 |
WEX4 and WNR3 are separate layers:
|
| 130 |
|
| 131 |
- **WEX4** is the container: one record per expert (or per tensor group), 4096-byte aligned so that an expert is one aligned read; a self-describing tensor index; a SHA-256 of the stored bytes of every record and blob; and a root, the SHA-256 of the header page, that names the whole file. WEX4 does not compress, except with the optional WBP1 codec, which is lossless byte-plane rANS for BF16, FP8, F32 and integer tensors.
|
| 132 |
-
- **WNR3** is a lossless codec for MXFP4 expert records (FP4 E2M1 weights and E8M0 scales): context-modelled rANS entropy coding with a 59,408-byte table of value statistics (the WNM2 model, a count table, not a neural network) stored once in the file, a 23-bit hash in every stream, and a CPU decoder and an NVIDIA GPU decoder. With *canonical zero* it stores FP4 -0 as +0 (value-exact); without it, it is byte-exact.
|
|
|
|
| 133 |
|
| 134 |
## Integrity
|
| 135 |
|
|
@@ -137,7 +148,11 @@ WEX4 and WNR3 are separate layers:
|
|
| 137 |
|---|---|---|---|
|
| 138 |
| `q38_experts.wex` | `db5389f699abb49a164a9e73d925b5b629b0ce6de430a553388ba3e1cae5c0df` | `9f6caa9a1e4e5ffe300108d3865ad0c4a246862c86ddaea2d3ee56b37e286bbf` | 24,576 records, every hash matches the index; content digest `0d752bbf2d169b611ac79b005f07d0b9152c0591b23b65cbd12e06ea8300ec77`. Against AMD's tensors: all 512 records of layers 0 and 47, and the first and last record of every layer, byte-identical when the file was built |
|
| 139 |
| `q38_experts.nr3.wex` | `7d78e6ccfb8dee558a08371da86d275d53b7356d255d25ae4cac831dabd3e7f9` | `abddc4243b56a109d74973cee324b19296db0cf5b996f2e8a5585b798e29255b` | at build time, layers 0, 10, 23 and 47 decoded on the GPU and compared with the RAW records. An archive copy was later found damaged (11,666 records zeroed, old root `cd47fa8b…`, not valid) and was repaired; on 2026-11-20 the repaired local copy passed a full check and all 48 layers decoded equal to the RAW file. The upload itself was not re-verified (only its SHA-256 is known) |
|
|
|
|
|
|
|
|
|
|
| 140 |
| `v4_flash_experts.nr3.wex` | `f0f78a84d040a3b336f3abef3cf8b0a36c649deb38586c813e94d35dea3beeb1` | `203d55dc96f5c2fe16716cef2c767fa63c387e8cbbbe98991ecd4f7039c7e4b2` | 7,680 records decoded, every hash matches the index; content digest `fb085e127ba980214f106313e9af578b18e5ebac4cde7ecb9730b1a0f78ae512` |
|
|
|
|
| 141 |
| `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` |
|
| 142 |
| `Sage-S2.1-Flash-MXFP4.wex` | none (WEX1) | `cae23f8575f92f29be895ef460caf1d66d764a870389b6a234a1aff876949249` | a local copy was re-hashed against this manifest (header page and table `ef4b66cfcc72f539367eaffc64bbb18ddb442b90ecd06a63a5169bea8596a158`) |
|
| 143 |
| `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 |
|
|
@@ -148,12 +163,16 @@ The root is the SHA-256 of the first 4,064 bytes of the header page. The record
|
|
| 148 |
|
| 149 |
| File | Stored | Original bytes | Ratio |
|
| 150 |
|---|---:|---:|---:|
|
| 151 |
-
| Qwen3.8, WNR3
|
| 152 |
-
|
|
| 153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
| Sage int4, against its 62 source safetensors files | 187,770,384,384 B | 194,727,333,920 B | 0.964 |
|
| 155 |
| 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** |
|
| 156 |
-
| Qwen3.8 RAW and Sage MXFP4 WEX1 | | | 1.000 (not compressed) |
|
| 157 |
|
| 158 |
## Quality of the 4-bit weights (steps taken before the container)
|
| 159 |
|
|
@@ -191,18 +210,20 @@ One DeepSeek record decodes in about 101 ms on one CPU thread with the fast deco
|
|
| 191 |
## Download
|
| 192 |
|
| 193 |
```sh
|
| 194 |
-
hf download Kaira666/Kaira-WEX4-Experts --local-dir WEX4-Experts
|
| 195 |
-
hf download Kaira666/Kaira-WEX4-Experts
|
| 196 |
-
hf download Kaira666/Kaira-WEX4-Experts qwen38-
|
|
|
|
|
|
|
| 197 |
```
|
| 198 |
|
| 199 |
## Source and specifications
|
| 200 |
|
| 201 |
The format, the codecs, the specifications, conformance vectors, four independent readers (C, Python, Go, Rust) and the converters are open source under Apache-2.0 in [KairaCode/Wex-WRN2](https://github.com/KairaCode/Wex-WRN2):
|
| 202 |
|
| 203 |
-
- [WEX4-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WEX4-SPEC.md)
|
| 204 |
- [Colibri integration guide](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/COLIBRI-INTEGRATION.md)
|
| 205 |
-
- `wex4/wex4_convert.py`
|
| 206 |
|
| 207 |
## Licenses
|
| 208 |
|
|
|
|
| 6 |
tags:
|
| 7 |
- wex4
|
| 8 |
- wnr3
|
| 9 |
+
- wnr4
|
| 10 |
- lossless-compression
|
| 11 |
- mixture-of-experts
|
| 12 |
- mxfp4
|
| 13 |
- int4
|
| 14 |
+
- gguf
|
| 15 |
- expert-weights
|
| 16 |
- colibri
|
| 17 |
---
|
| 18 |
# WEX4 Expert Containers
|
| 19 |
|
| 20 |
+
Expert 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.
|
| 21 |
|
| 22 |
+
**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).
|
| 23 |
|
| 24 |
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.
|
| 25 |
|
|
|
|
| 33 |
|
| 34 |
| File | What changed the weights before they reached our file, losing precision, and who did it | What our file does to them |
|
| 35 |
|---|---|---|
|
| 36 |
+
| `qwen38-mxfp4/q38_experts.wex` | AMD rounded the experts of [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) (125B-A6B) to 4 bits (MXFP4) and published them as [amd/Qwen3.8-Flash-Next-Quark-MXFP4](https://huggingface.co/amd/Qwen3.8-Flash-Next-Quark-MXFP4) | Not compressed (RAW). Keeps AMD's bytes as they are (compared with AMD's files when it was built: every expert of the first and the last layer, and the first and last expert of every layer) |
|
| 37 |
+
| `qwen38-mxfp4/q38_experts.nr3.wex` | the same AMD 4-bit MXFP4 weights | WNR3 (codec 5): compressed to 88.0% of the uncompressed file. Unpacking gives exactly the same bytes |
|
| 38 |
+
| `qwen38-mxfp4/q38_experts.wnr4.wex` | the same AMD 4-bit MXFP4 weights | **WNR4-MX (codec 8, kind 0)**: 32-lane GPU-parallel rANS tiles (up to 209 GB/s kernel decode on RTX 5090), 88.5% of the uncompressed file. Byte-exact |
|
| 39 |
+
| `qwen38-int4g64/qwen38_flash_next_int4g64.wnr4i4.wex` | INT4-g64 export of Qwen3.8-Flash-Next (125B-A6B) routed experts (symmetric int4, 1 F32 scale per 64 weights) | **WNR4-I4 (codec 8, kind 3)**: compressed to **78.4%** of its 68.0 GB RAW container (-14.7 GB / -21.6%). Verified 24,576/24,576 records byte-exact |
|
| 40 |
+
| `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 |
|
| 41 |
+
| `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) |
|
| 42 |
+
| `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) |
|
| 43 |
| `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 |
|
| 44 |
| `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 |
|
| 45 |
| `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 |
|
|
|
|
| 119 |
|
| 120 |
| Path | Model and layout | Records | Size | Upstream license |
|
| 121 |
|---|---|---:|---:|---|
|
| 122 |
+
| `qwen38-mxfp4/q38_experts.wex` | Qwen3.8-Flash-Next (125B-A6B) routed experts, AMD-Quark MXFP4; WEX4, RAW records | 24,576 (48 layers × 512 experts) | 64,251,047,936 B (64.25 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) |
|
| 123 |
+
| `qwen38-mxfp4/q38_experts.nr3.wex` | the same experts; WEX4, WNR3 (codec 5), byte-exact | 24,576 (48 × 512) | 56,558,764,032 B (56.56 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) |
|
| 124 |
+
| `qwen38-mxfp4/q38_experts.wnr4.wex` | the same experts; WEX4, **WNR4-MX (codec 8, kind 0)**, byte-exact | 24,576 (48 × 512) | 56,847,855,616 B (56.85 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) |
|
| 125 |
+
| `qwen38-int4g64/qwen38_flash_next_int4g64.wnr4i4.wex` | Qwen3.8-Flash-Next (125B-A6B) routed experts, INT4-g64; WEX4, **WNR4-I4 (codec 8, kind 3)**, byte-exact | 24,576 (48 × 512) | 53,294,047,232 B (53.29 GB) | [Qwen Community License 1.0](https://huggingface.co/Qwen/Qwen3.8-Flash-Next/blob/main/LICENSE) |
|
| 126 |
+
| `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) |
|
| 127 |
+
| `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) |
|
| 128 |
+
| `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) |
|
| 129 |
| `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) |
|
| 130 |
| `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) |
|
| 131 |
| `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 | — |
|
|
|
|
| 139 |
WEX4 and WNR3 are separate layers:
|
| 140 |
|
| 141 |
- **WEX4** is the container: one record per expert (or per tensor group), 4096-byte aligned so that an expert is one aligned read; a self-describing tensor index; a SHA-256 of the stored bytes of every record and blob; and a root, the SHA-256 of the header page, that names the whole file. WEX4 does not compress, except with the optional WBP1 codec, which is lossless byte-plane rANS for BF16, FP8, F32 and integer tensors.
|
| 142 |
+
- **WNR3 (codec 5)** is a lossless codec for MXFP4 expert records (FP4 E2M1 weights and E8M0 scales): context-modelled rANS entropy coding with a 59,408-byte table of value statistics (the WNM2 model, a count table, not a neural network) stored once in the file, a 23-bit hash in every stream, and a CPU decoder and an NVIDIA GPU decoder. With *canonical zero* it stores FP4 -0 as +0 (value-exact); without it, it is byte-exact.
|
| 143 |
+
- **WNR4 (codec 8)** is the GPU-parallel successor of WNR3 ([WNR4-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WNR4-SPEC.md)): tiles of 32 rANS lanes sharing one 16-bit word stream decoded by one GPU warp (up to **209 GB/s** kernel decode on RTX 5090, 0.19 ms single-record latency at G = 32), with a 32-bit hash per tile and a WNM4 model blob (kind 3). It supports four kinds: **MX** (kind 0, MXFP4), **NV** (kind 1, NVFP4), **GG** (kind 2, GGUF `Q2_0`/`IQ4_NL` slices), and **I4** (kind 3, int4-g64 experts with FP8 block-scaled lattice scales).
|
| 144 |
|
| 145 |
## Integrity
|
| 146 |
|
|
|
|
| 148 |
|---|---|---|---|
|
| 149 |
| `q38_experts.wex` | `db5389f699abb49a164a9e73d925b5b629b0ce6de430a553388ba3e1cae5c0df` | `9f6caa9a1e4e5ffe300108d3865ad0c4a246862c86ddaea2d3ee56b37e286bbf` | 24,576 records, every hash matches the index; content digest `0d752bbf2d169b611ac79b005f07d0b9152c0591b23b65cbd12e06ea8300ec77`. Against AMD's tensors: all 512 records of layers 0 and 47, and the first and last record of every layer, byte-identical when the file was built |
|
| 150 |
| `q38_experts.nr3.wex` | `7d78e6ccfb8dee558a08371da86d275d53b7356d255d25ae4cac831dabd3e7f9` | `abddc4243b56a109d74973cee324b19296db0cf5b996f2e8a5585b798e29255b` | at build time, layers 0, 10, 23 and 47 decoded on the GPU and compared with the RAW records. An archive copy was later found damaged (11,666 records zeroed, old root `cd47fa8b…`, not valid) and was repaired; on 2026-11-20 the repaired local copy passed a full check and all 48 layers decoded equal to the RAW file. The upload itself was not re-verified (only its SHA-256 is known) |
|
| 151 |
+
| `q38_experts.wnr4.wex` | `68745b781dd947e57c4cacabe2c87e21bfa606559320cf3486ba87ee051d87b9` | *(see HF file page)* | 24,576 WNR4-MX records (48 × 512), header & root verified |
|
| 152 |
+
| `qwen38_flash_next_int4g64.wnr4i4.wex` | `6545bff2dd755ed1660a18feff75406829dc9b25b1bed2f4f6a0ee2532b1098f` | *(see HF file page)* | 24,576 WNR4-I4 records verified 24,576/24,576 byte-exact against RAW (`wex4/wnr4i4.py verify --source`) |
|
| 153 |
+
| `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 |
|
| 154 |
| `v4_flash_experts.nr3.wex` | `f0f78a84d040a3b336f3abef3cf8b0a36c649deb38586c813e94d35dea3beeb1` | `203d55dc96f5c2fe16716cef2c767fa63c387e8cbbbe98991ecd4f7039c7e4b2` | 7,680 records decoded, every hash matches the index; content digest `fb085e127ba980214f106313e9af578b18e5ebac4cde7ecb9730b1a0f78ae512` |
|
| 155 |
+
| `v4_flash_experts.wnr4.wex` | `75520a3b0a52f161a02cafebc94d57e58ef2c4ccfbff5b4ba637cc3d66252e30` | *(see HF file page)* | 7,680 WNR4-MX records (40 × 192), header & root verified |
|
| 156 |
| `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` |
|
| 157 |
| `Sage-S2.1-Flash-MXFP4.wex` | none (WEX1) | `cae23f8575f92f29be895ef460caf1d66d764a870389b6a234a1aff876949249` | a local copy was re-hashed against this manifest (header page and table `ef4b66cfcc72f539367eaffc64bbb18ddb442b90ecd06a63a5169bea8596a158`) |
|
| 158 |
| `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 |
|
|
|
|
| 163 |
|
| 164 |
| File | Stored | Original bytes | Ratio |
|
| 165 |
|---|---:|---:|---:|
|
| 166 |
+
| Qwen3.8-Flash-Next MXFP4, WNR3 against RAW | 56,558,764,032 B | 64,251,047,936 B | **0.880** |
|
| 167 |
+
| Qwen3.8-Flash-Next MXFP4, **WNR4-MX** against RAW | 56,847,855,616 B | 64,251,047,936 B | **0.885** |
|
| 168 |
+
| Qwen3.8-Flash-Next INT4-g64, **WNR4-I4** against RAW | 53,294,047,232 B | 67,995,492,352 B | **0.784** |
|
| 169 |
+
| Qwen3.8-Flash-Next GSQ-RCO-IQ1_M (full 2-shard GGUF), **WNR4-GG** | 57,821,315,072 B | 58,397,560,320 B | **0.990** |
|
| 170 |
+
| DeepSeek-V4.1-Flash-1017 REAP-192, WNR3-CZ against raw WEX1 | 123,312,910,336 B | 144,389,472,256 B | **0.854** |
|
| 171 |
+
| DeepSeek-V4.1-Flash-1017 REAP-192, **WNR4-MX (CZ)** against raw | 122,872,295,424 B | 144,388,915,200 B | **0.851** |
|
| 172 |
+
| DeepSeek-V4.1-Flash-1017 REAP-192, WNR3 byte-exact (40 held-out experts, not a full file) | | | about 0.882 |
|
| 173 |
| Sage int4, against its 62 source safetensors files | 187,770,384,384 B | 194,727,333,920 B | 0.964 |
|
| 174 |
| 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** |
|
| 175 |
+
| Qwen3.8-Flash-Next RAW and Sage MXFP4 WEX1 | | | 1.000 (not compressed) |
|
| 176 |
|
| 177 |
## Quality of the 4-bit weights (steps taken before the container)
|
| 178 |
|
|
|
|
| 210 |
## Download
|
| 211 |
|
| 212 |
```sh
|
| 213 |
+
hf download Kaira666/Kaira-WEX4-Experts v41-reap/v4_flash_experts.wnr4.wex --local-dir WEX4-Experts # DeepSeek V4.1 REAP-192 WNR4-MX (122.87 GB)
|
| 214 |
+
hf download Kaira666/Kaira-WEX4-Experts qwen38-mxfp4/q38_experts.wnr4.wex --local-dir WEX4-Experts # Qwen3.8-Flash-Next MXFP4 WNR4-MX (56.85 GB)
|
| 215 |
+
hf download Kaira666/Kaira-WEX4-Experts qwen38-int4g64/qwen38_flash_next_int4g64.wnr4i4.wex --local-dir WEX4-Experts # Qwen3.8-Flash-Next INT4-g64 WNR4-I4 (53.29 GB)
|
| 216 |
+
hf download Kaira666/Kaira-WEX4-Experts qwen38-gsq-iq1m/qwen38_flash_next_gsq_iq1m.wnr4gg.wex --local-dir WEX4-Experts # Qwen3.8-Flash-Next GSQ-IQ1_M WNR4-GG (57.82 GB)
|
| 217 |
+
hf download Kaira666/Kaira-WEX4-Experts v41-reap/v4_flash_experts.nr3.wex --local-dir WEX4-Experts # DeepSeek V4.1 REAP-192 WNR3-CZ (123.31 GB)
|
| 218 |
```
|
| 219 |
|
| 220 |
## Source and specifications
|
| 221 |
|
| 222 |
The format, the codecs, the specifications, conformance vectors, four independent readers (C, Python, Go, Rust) and the converters are open source under Apache-2.0 in [KairaCode/Wex-WRN2](https://github.com/KairaCode/Wex-WRN2):
|
| 223 |
|
| 224 |
+
- [WEX4-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WEX4-SPEC.md), [WNR3-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WNR3-SPEC.md), and [WNR4-SPEC](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WNR4-SPEC.md)
|
| 225 |
- [Colibri integration guide](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/COLIBRI-INTEGRATION.md)
|
| 226 |
+
- `wex4/wex4_convert.py`, `wex4/wnr4gg.py`, `wex4/wnr4i4.py`: pack, verify and unpack WEX4 containers (RAW, WNR3, WNR4-GG, WNR4-I4)
|
| 227 |
|
| 228 |
## Licenses
|
| 229 |
|