Ludovico commited on
Document WEX4 integration and add provenance notes
Browse files
README.md
CHANGED
|
@@ -3,24 +3,51 @@ license: other
|
|
| 3 |
library_name: colibri
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
---
|
| 6 |
-
# KAIRA
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
-
##
|
| 11 |
|
| 12 |
-
| File | Model
|
| 13 |
|---|---|---:|
|
| 14 |
-
| `q38_experts.wex` | Qwen 3.8 MXFP4 expert container | 64,251,047,936
|
| 15 |
-
| `v4_flash_experts.nr3.wex` | DeepSeek V4.1 Flash REAP, NR3 | 123,312,910,336
|
| 16 |
-
| `*.verified.pre-wex4` |
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
##
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
library_name: colibri
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
---
|
| 6 |
+
# KAIRA WEX4 expert containers
|
| 7 |
|
| 8 |
+
Binary expert-weight assets for KAIRA/Colibri. These files are **not standalone Transformers checkpoints** and cannot be loaded with `from_pretrained()`.
|
| 9 |
|
| 10 |
+
## Contents
|
| 11 |
|
| 12 |
+
| File | Model/build | Bytes |
|
| 13 |
|---|---|---:|
|
| 14 |
+
| `qwen38-mxfp4/q38_experts.wex` | Qwen 3.8 MXFP4 expert container | 64,251,047,936 |
|
| 15 |
+
| `v41-reap/v4_flash_experts.nr3.wex` | DeepSeek V4.1 Flash REAP-192, NR3 container | 123,312,910,336 |
|
| 16 |
+
| `provenance/*.verified.pre-wex4` | Source/build verification notes supplied with the containers | — |
|
| 17 |
|
| 18 |
+
## Format and compatibility
|
| 19 |
|
| 20 |
+
WEX4 is a self-describing container with a hashed header/index, SHA-256 digests for blobs and records, and 4 KiB aligned data. It can store raw records or WNR3 encoded expert records (NR3 is the codec used by the V4.1 file name above).
|
| 21 |
|
| 22 |
+
WNR2 is a different, older codec: it is codec 4 in WEX3 containers. WEX4/NR3 should not be described as WNR2. KAIRA has WEX4-aware loaders in its DeepSeek V4.1 and Qwen3.8 engines. Use the matching KAIRA engine/helper build; a stock Colibri/WNR2 build is not sufficient. WEX4 file integrity uses the indexed SHA-256 values, and KAIRA can pin the container root with `COLI_WEX_ROOT`.
|
| 23 |
|
| 24 |
+
## Download
|
| 25 |
|
| 26 |
+
Install the Hugging Face CLI and download the repository:
|
| 27 |
+
|
| 28 |
+
```powershell
|
| 29 |
+
hf download Kaira666/Kaira-WEX4-Experts --repo-type model --local-dir .\Kaira-WEX4-Experts
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
The containers are very large (about 187.6 GB decimal combined). Ensure enough free disk space before downloading.
|
| 33 |
+
|
| 34 |
+
## Verify and integrate
|
| 35 |
+
|
| 36 |
+
The KAIRA source includes the WEX4 format/reader and a whole-file verifier. Build `tools/wex4_verify` from `src/colibri/c`, then run it on each downloaded `.wex` file. A successful run checks every blob and record against the indexed SHA-256 values and prints the WEX4 root. Set `COLI_WEX_ROOT` to that 64-digit root in a compatible KAIRA profile to pin the file; `COLI_WEX_VERIFY=1` enables first-read record hashing in the DeepSeek V4 engine. Qwen3.8 has its own WEX4 loader and configuration.
|
| 37 |
+
|
| 38 |
+
- [KAIRA repository](https://github.com/KairaCode/KAIRA)
|
| 39 |
+
- [WEX4 format reader](https://github.com/KairaCode/KAIRA/blob/main/src/colibri/c/wex4.h)
|
| 40 |
+
- [WEX4 whole-file verifier](https://github.com/KairaCode/KAIRA/blob/main/src/colibri/c/tools/wex4_verify.c)
|
| 41 |
+
- [WEX/WRN2 implementation repository](https://github.com/KairaCode/Wex-WRN2) (private; access required)
|
| 42 |
+
- [WEX/WRN2 Colibri integration guide](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/COLIBRI-INTEGRATION.md) (private; access required)
|
| 43 |
+
|
| 44 |
+
WNR2 is the older WEX3 codec (codec 4). The V4.1 file here uses WNR3-CZ records (codec 5) in WEX4; Qwen3.8 stores RAW MXFP4 records in WEX4. WNR2 engine/helper settings do not describe these files. For the exact engine hooks, profile variables, and verification flow, see the private [WEX/WRN2 Colibri integration guide](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/COLIBRI-INTEGRATION.md) and its [WEX4 specification](https://github.com/KairaCode/Wex-WRN2/blob/main/docs/WEX4-SPEC.md).
|
| 45 |
+
|
| 46 |
+
## Provenance and license
|
| 47 |
+
|
| 48 |
+
The `.verified.pre-wex4` sidecars are included as supplied. The V4.1 sidecar reports that all 7,680 source records were read back and decoded as expected; the Qwen sidecar records a source-copy SHA-256. These are pre-WEX4 provenance notes, not whole-file WEX4 verification. WEX4 root hashes will be added after running the current verifier on the final containers.
|
| 49 |
+
|
| 50 |
+
No license has been specified for these model assets. Public availability does not grant permission to use, modify, or redistribute them; please add the applicable license before reuse.
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
provenance/q38_experts.wex.verified.pre-wex4
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
sha256 a2d0f67f2fcbe7239b40b0bfad0baa67f5a78ec081bcecaaf7c72c0a842c21e9 copy of U:\kaira_wex\qwen38-mxfp4\q38_experts.wex
|
provenance/v4_flash_experts.nr3.wex.verified.pre-wex4
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
sha256 490E820835E63154F5AA4B4D40E9AE3FF88AC7785F80A9940793AD28A2E71E71 built 2026-11-10 by build_nr3.py (worktree cade51d), 7680/7680 records read back and decoded = expected
|