strata-engine commited on
Commit
378a1c2
·
verified ·
1 Parent(s): 5ae16ac

Implement Hy4-Flash for Strata model card and light/dark SVG + GIF assets

Browse files
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  Hy4-Flash-Vision.strata filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  Hy4-Flash-Vision.strata filter=lfs diff=lfs merge=lfs -text
37
+ assets/pagoda.gif filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,83 +1,218 @@
1
- ---
2
- license: other
3
- base_model: tencent/Hy4-flash
4
- tags:
5
- - strata
6
- - hy4-flash
7
- - moe
8
- - quantization
9
- - latent-moe
10
- - engram
11
- - dfly2
12
- ---
13
-
14
- # Tencent Hy4-Flash (220B-A12B) — Native Strata (`.strata` v1.0) Quantizations
15
-
16
- Native **`.strata` v1.0** quantizations of [`tencent/Hy4-flash`](https://huggingface.co/tencent/Hy4-flash) (pinned revision `d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959`), engineered specifically for **consumer PCs (`64–128 GiB` RAM + `8–24+ GiB` GPU)** and **unified-memory workstations (`128 GiB` Strix Halo / Apple Silicon / DGX Spark)** running the native Strata engine (`strata-hy4` — pure C++/CUDA/HIP/Metal/SYCL, zero `llama.cpp`).
17
-
18
- ---
19
-
20
- ## Key Innovations
21
-
22
- 1. **Separated Lossless 8-Bit NVMe Engram Shard (`Hy4-Flash-Engram-Q8.strata`, `67.58 GB`):**
23
- - `Hy4-Flash` contains `63.36B` parameters in 4 Engram lookup tables (Layers `1, 11, 21, 31`). Standard GGUFs keep this entire table in RAM (`156.8 GiB` for `Q4_K_M`).
24
- - `.strata` v1.0 moves the 4-module Engram table into **one shared `4 KiB` page-frame-aligned NVMe shard** (`Q8_INT8_SCALE_F32`: `4 B` FP32 scale + `96 B` symmetric `int8` = `100 B/row`, exact `40` rows per `4,096 B` NVMe page, **zero page straddling**) paired with a `900 MiB` Host-RAM cache (`64 MiB` embedded Section 2 hot seed + `836 MiB` clock LRU).
25
- - **Measured fidelity vs BF16 Engram:** row cosine similarity **`0.999986`** (18× lower error than `FP8_E4M3` at identical `1` NVMe page read per miss!), `Q0-02` `top-1 = 95.68%` (`low-entropy KL = 0.01693`).
26
- - **RAM saved:** `~60+ GiB` compared to GGUF — allowing `SQ-64` (`62.03 GB`) to fit 100% in `64 GiB` RAM with **`0 B/s` expert SSD spill**, and `SQ-128` (`113.65 GB`) to fit 100% in `128 GiB` RAM/UMA!
27
- 2. **Zero-Cost Folded MACaQ `s_xform=2`:**
28
- - Per-channel activation smoothing + 64-wide Block-Hadamard ($H_{64}$) folded directly into `Q8` `routed_expert_down_proj` (`[1536, 3072]`) — **zero runtime transform cost**.
29
- 3. **Batched Pure-GPU In-HBM Block-LDL (GPTQ) + MACaQ 64-Flip Analytical Hessian Refinement:**
30
- - Exact per-expert `1536×1536` FP32 Hessians accumulated over `96,256` 13-gram-decontaminated multi-domain calibration tokens (`505–512/512` experts hit per layer across all `20,992` routed experts).
31
- - Per-sub-group MSE/Hessian-optimal clipping + Block-LDL propagation + up to 64 analytical Hessian coordinate flips per row across all 8 `S_K` codecs (`S1.25`, `S1.5`, `S2_K..S6_K`, `S8_K`).
32
- 4. **MACaQ-R Residual Compensation:**
33
- - Damped ridge compensation absorbs systematic routed-expert quantization error into `Q8` `routed_expert_up_proj` and `shared_experts.down_proj`, reducing per-layer LatentMoE output MSE by **`-26%` to `-54%`** on every MoE layer across all builds.
34
- 5. **End-to-End Scale-QAT + Full 42-Layer Deep Polish on `SQ-64`:**
35
- - All builds tuned against exact BF16 teacher top-256 + tail log-probabilities.
36
- - Flagship **`Hy4-Flash-SQ-64.strata`** additionally received a **full 42-layer gradient-checkpointed deep Scale-QAT polish** (`422` parameter tensors / `821,069` FP32 params across all 42 layers' Sandwich norms, pre-norms, 4-stream `iHC` scales/bases, and per-layer LatentMoE & shared-expert channel scales folded zero-cost into Section 1).
37
- 6. **Embedded Proximal-QAT Distilled 5-Layer `DFly2` Speculative Tree-8 Drafter (`0.45 GB`, `S4_K`, `0 B` extra KV):**
38
- - Full 5-layer `DFly2` drafter embedded in Section 1 and distilled against the quantized target for lossless Tree-8 + probabilistic SpecInfer multi-token speculative decoding (`0 B` additional KV cache, `1.7×–2.6×` end-to-end decode speedup).
39
-
40
- ---
41
-
42
- ## Files & Hardware Recommendations
43
-
44
- All three shipping transformer builds share the single **`Hy4-Flash-Engram-Q8.strata`** shard (required) and **`Hy4-Flash-Vision.strata`** shard (multimodal image reading, enabled by default in Strata `0.2.18+`):
45
-
46
- | File | Exact Size (`GB` / `GiB`) | RAM + VRAM Resident | Expert Bands (`Hot / Warm / Cold`) | Recommended Hardware | Whole-File SHA-256 |
47
- | :--- | :---: | :---: | :--- | :--- | :--- |
48
- | **`Hy4-Flash-SQ-128.strata`** | **`113.65 GB`** (`105.85 GiB`) | `~107.5 GiB` | `160 S6_K+S8_K / 224 S5_K+S6_K / 128 S4_K+S5_K` + `S8_K` trunk | **128 GiB RAM + GPU** or **128 GiB UMA** (highest quality, near-lossless) | `6e8ba2729465f38ed42b5bfa7db02c92beddc25ca0413b7f0c24ab9f1e8b51f4` |
49
- | **`Hy4-Flash-SQ-96.strata`** | **`89.58 GB`** (`83.43 GiB`) | `~85.1 GiB` | `128 S5_K+S6_K / 224 S4_K+S5_K / 160 S3_K+S4_K` + `S6_K` trunk | **96 GiB RAM + GPU** or **128 GiB UMA** (high quality) | `3b1c5755a220c69892b3d2dbad506b8593a30be24b17a390ecbd1642c0c1e14c` |
50
- | **`Hy4-Flash-SQ-64.strata`** *(42L Polished)* | **`62.03 GB`** (`57.77 GiB`) | `~59.4 GiB` | `80 S4_K+S4_K / 176 S3_K+S3_K / 256 S2_K+S3_K` + `S5_K` trunk | **64 GiB RAM + 8/12/16+ GiB GPU** (Flagship, `0` expert SSD spill) | `b2cc38fe4bded35df82a701f9e868ea09c6fcd9be52c8446289e394f804417b2` |
51
- | **`Hy4-Flash-Engram-Q8.strata`** *(Required)* | **`67.58 GB`** (`62.94 GiB`) | `0.90 GiB` LRU only | `Q8_INT8_SCALE_F32` (`40` rows/4K page, 4 modules) | **NVMe SSD** (shared by all builds; Sec 4 SHA-256: `176944953bf2b601645d206171964f7fa51b77522ef5dc14ae61b0eb1c803d74`) | `ab0cf9b3f9c64bd25f6212d4508e7443ab8b9bc133fbccc7bdfb83510a20c2c1` |
52
- | **`Hy4-Flash-Vision.strata`** *(Vision)* | **`0.934 GB`** (`0.870 GiB`) | On demand | `SigLIP2-400M` 27L ViT + `perceive` projector (`441` tensors) | Multimodal image reading shard | `ef09bceff8f01b8d226d2dc56aef09cec719b21b45783ee9b5d64e7241b72a09` |
53
-
54
- ---
55
-
56
- ## Full 42-Layer Measured Evaluation Results (vs Exact `BF16` Teacher)
57
-
58
- Evaluated directly end-to-end from the packed `.strata` v1.0 files + `Hy4-Flash-Engram-Q8.strata` across all 42 layers on 13-gram-decontaminated held-out `development` (`8 × 512` tokens, reasoning) and `final_test` (`8 × 512` tokens, tool-calling) splits (all 512 raw prompt tokens scored — note that low-entropy generated-token KL is typically 2–3× lower):
59
-
60
- | Build | Dev Mean KL | Dev Same Top-1 | Dev PPL (`BF16 = 5.263`) | Test Mean KL | Test Same Top-1 | Test PPL (`BF16 = 15.990`) | Low-Entropy Seq (`BF16 PPL = 3.06`) Top-1 / KL |
61
- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
62
- | **`Hy4-Flash-SQ-128.strata`** | **`0.08789`** | **`92.53%`** | **`5.204`** | **`0.17969`** | **`90.31%`** | **`15.062`** | **`94.53%`** / **`0.0477`** |
63
- | **`Hy4-Flash-SQ-96.strata`** | **`0.13591`** | **`90.67%`** | **`5.309`** | **`0.23661`** | **`88.35%`** | **`15.478`** | **`94.73%`** / **`0.0660`** |
64
- | **`Hy4-Flash-SQ-64.strata`** *(42L Polished)* | **`0.23206`** | **`86.87%`** | **`3.854`** | **`0.51828`** | **`81.98%`** | **`7.614`** | **`92.19%`** / **`0.1164`** *(pre-polish)* |
65
-
66
- ### Controlled 3-Layer Pilot (`Q1-06`, Layers 0–2 Substituted Inside 42-Layer BF16 Base)
67
- - `Engram-Q8.strata` vs BF16 Engram: `all-prompt KL = 0.01749`, `low-entropy KL = 0.01693`, `top-1 = 95.68%` (`cos = 0.999986`)
68
- - `SQ-128`: `mean KL = 0.01784` (`+0.00035` net over Engram-Q8), `top-1 = 94.24%`
69
- - `SQ-96`: `mean KL = 0.01846` (`+0.00097` net over Engram-Q8), `top-1 = 94.24%`
70
- - `SQ-64`: `mean KL = 0.02410` (`+0.00661` net over Engram-Q8), `top-1 = 92.81%`
71
-
72
- ---
73
-
74
- ## Native Engine & Hardware Support (`Strata 0.2.18+`)
75
-
76
- Supported out of the box in **Strata Desktop** and **Strata CLI (`strata launch`)** across:
77
- - **NVIDIA CUDA (`sm_70` Volta through `sm_120`/`sm_121` Blackwell & DGX Spark):** Adaptive VRAM expert cache, Split-K MoE decode, CUDA Graphs, cuBLAS side-stream prefill, and Tree-8 `DFly2` speculative decoding.
78
- - **AMD ROCm HIP (`gfx1030` RDNA2, `gfx1100` RDNA3, `gfx1151` Ryzen AI Max+ 395 Strix Halo, `gfx1200`/`gfx1201` RDNA4):** Windows & Linux native HIP builds.
79
- - **Apple Silicon Metal (`M1–M5` Max / Ultra):** Unified-memory zero-copy Metal execution.
80
- - **Intel Arc SYCL (`XMX` / `dp4a`):** Native Intel Arc GPU backend.
81
-
82
- ## License & Attribution
83
- Base model: [`tencent/Hy4-flash`](https://huggingface.co/tencent/Hy4-flash) (subject to Tencent's base model license). Quantization & `.strata` v1.0 container format built with Strata Quant (`tools/squant`).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: tencent-hy-license
4
+ license_link: https://huggingface.co/tencent/Hy4-flash/blob/main/LICENSE
5
+ base_model: tencent/Hy4-flash
6
+ base_model_relation: quantized
7
+ pipeline_tag: image-text-to-text
8
+ tags:
9
+ - strata
10
+ - hy4-flash
11
+ - moe
12
+ - quantization
13
+ - latent-moe
14
+ - engram
15
+ - dfly2
16
+ ---
17
+
18
+ <p>
19
+ <a href="https://github.com/Niko1221/Strata"><img class="dark:hidden" src="./assets/masthead-light.svg" width="100%" alt="Strata on GitHub"><img class="hidden dark:block" src="./assets/masthead-dark.svg" width="100%" alt="Strata on GitHub"></a>
20
+ </p>
21
+
22
+ <h1 align="center">Hy4-Flash for Strata</h1>
23
+
24
+ <p align="center"><b>Run Tencent's 220-billion-parameter Hy4-Flash on your own computer.</b> It starts at 64 GiB of RAM with an 8 GiB graphics card, with packs for 64, 96 and 128 GiB. Free and open source. No account needed.</p>
25
+
26
+ <p align="center">
27
+ <img src="./assets/pagoda.gif" width="560" height="322" alt="Rotating voxel pagoda scene"><br>
28
+ <sub>Created with SQ-128</sub>
29
+ </p>
30
+
31
+ <p align="center">
32
+ <a href="#pick-your-pack"><b>Pick your pack</b></a> · <a href="#get-started">Get started</a> · <a href="#how-close-is-it-to-the-original">Quality</a> · <a href="#performance-with-strata">Speed</a> · <a href="https://github.com/Niko1221/Strata">Strata on GitHub</a>
33
+ </p>
34
+
35
+ <p>
36
+ <img class="dark:hidden" src="./assets/hero-light.svg" width="100%" alt="220B parameters, 12B active per token. Runs from 64 GiB of RAM with an 8 GiB graphics card (GPU). Up to 1M tokens of context, with text and images in.">
37
+ <img class="hidden dark:block" src="./assets/hero-dark.svg" width="100%" alt="220B parameters, 12B active per token. Runs from 64 GiB of RAM with an 8 GiB graphics card (GPU). Up to 1M tokens of context, with text and images in.">
38
+ </p>
39
+
40
+ **Hy4 flash** is Tencent's most cost-effective Hy model to date. It has 220B parameters in total (64B of them in its Engram lookup) and uses just 12B per token. It reads text and images, writes text, and supports up to 1M tokens of context (1,048,576).
41
+
42
+ ## Pick your pack
43
+
44
+ **The number in the name is your RAM.** Find your computer's memory and take the pack with the same number.
45
+
46
+ <p>
47
+ <img class="dark:hidden" src="./assets/packs-light.svg" width="100%" alt="Three packs. 64 GiB of RAM: SQ-64, with an 8, 12 or 16 GiB graphics card, 130 GB on disk, the smallest download. 96 GiB: SQ-96, with an 8 or 12 GiB graphics card, 157 GB. 128 GiB: SQ-128, with an 8 or 12 GiB graphics card, 181 GB, the closest to the original.">
48
+ <img class="hidden dark:block" src="./assets/packs-dark.svg" width="100%" alt="Three packs. 64 GiB of RAM: SQ-64, with an 8, 12 or 16 GiB graphics card, 130 GB on disk, the smallest download. 96 GiB: SQ-96, with an 8 or 12 GiB graphics card, 157 GB. 128 GiB: SQ-128, with an 8 or 12 GiB graphics card, 181 GB, the closest to the original.">
49
+ </p>
50
+
51
+ | Your RAM | Graphics card | Pack file | Memory in use | Total on disk |
52
+ | ---: | --- | --- | ---: | ---: |
53
+ | **64 GiB** | 8, 12 or 16 GiB | `Hy4-Flash-SQ-64.strata` | 59.4 GiB | 129.61 GB |
54
+ | **96 GiB** | 8 or 12 GiB | `Hy4-Flash-SQ-96.strata` | 85.1 GiB | 157.16 GB |
55
+ | **128 GiB** | 8 or 12 GiB | `Hy4-Flash-SQ-128.strata` | 107.5 GiB | 181.23 GB |
56
+
57
+ "Graphics card" is the card's memory. "Memory in use" is RAM plus graphics memory, approximately. "Total on disk" is the pack plus the shared lookup file every pack needs, `Hy4-Flash-Engram-Q8.strata`, for text. [File sizes and checksums](#files-and-checksums) are below.
58
+
59
+ - **64 GiB of RAM and an 8 GiB graphics card are enough to start.** Take SQ-64.
60
+ - **128 GiB of unified memory?** SQ-128 is the closest match to the original. SQ-96 leaves about 22 GiB free for other work.
61
+
62
+ ## Get started
63
+
64
+ 1. **Install Strata.** [Download the app for Windows, Linux or Mac](https://github.com/Niko1221/Strata/releases/latest). It needs no account.
65
+ 2. **Choose Hy4-Flash** and the pack that matches your RAM.
66
+ 3. **Start chatting.**
67
+
68
+ <details>
69
+ <summary><b>Prefer the terminal?</b></summary>
70
+
71
+ Linux or Mac:
72
+
73
+ ```sh
74
+ curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
75
+ ```
76
+
77
+ Windows PowerShell:
78
+
79
+ ```powershell
80
+ irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex
81
+ ```
82
+
83
+ On Windows, open a new terminal afterwards. Then run `strata launch` (or `strata launch --family hy4-flash --model SQ-64`) and follow the prompts.
84
+
85
+ </details>
86
+
87
+ ## How close is it to the original?
88
+
89
+ **SQ-128 stays closest to the original model on both test sets.** Each smaller pack gives up some closeness to fit in less memory.
90
+
91
+ <p>
92
+ <img class="dark:hidden" src="./assets/closeness-light.svg" width="100%" alt="Drift from the original model, mean KL divergence, lower is better. Reasoning prompts: SQ-128 0.088, SQ-96 0.136, SQ-64 0.232. Tool-calling prompts: SQ-128 0.180, SQ-96 0.237, SQ-64 0.518. SQ-128 is the closest on both.">
93
+ <img class="hidden dark:block" src="./assets/closeness-dark.svg" width="100%" alt="Drift from the original model, mean KL divergence, lower is better. Reasoning prompts: SQ-128 0.088, SQ-96 0.136, SQ-64 0.232. Tool-calling prompts: SQ-128 0.180, SQ-96 0.237, SQ-64 0.518. SQ-128 is the closest on both.">
94
+ </p>
95
+
96
+ **How to read this.** Each pack's next-word predictions are compared with the full-precision model (BF16). The score is the average gap between the two, called KL divergence. Zero means identical, so a shorter bar is better.
97
+
98
+ | Pack | Reasoning prompts | Tool-calling prompts |
99
+ | --- | ---: | ---: |
100
+ | **SQ-128** | **0.08789** | **0.17969** |
101
+ | SQ-96 | 0.13591 | 0.23661 |
102
+ | SQ-64 | 0.23206 | 0.51828 |
103
+
104
+ <details>
105
+ <summary>How this was measured</summary>
106
+
107
+ Each set contains eight held-out prompts of 512 tokens. The evaluation scores all 4,096 prompt positions using the packed model and its required Engram file across all 42 layers. The tool-calling column measures token distributions on tool-related prompts. End-to-end tool success requires a separate evaluation.
108
+
109
+ </details>
110
+
111
+ ## Performance with Strata
112
+
113
+ **Up to 240 tokens a second.** Speeds measured with Strata on eight machines, from two V100 cards to an RTX PRO 6000.
114
+
115
+ <p>
116
+ <img class="dark:hidden" src="./assets/speed-light.svg" width="100%" alt="Output speed with Strata, in tokens per second, with prompt speed beside it. RTX PRO 6000: 102.8 to 240, prompt 4,015. RTX 5090: 90 to 111, prompt 1,694 at 128K context. M5 Max with Metal 4: 69 to 110, prompt 1,215. R9700 or RX 9070 XT: 62, prompt 1,122. Strix Halo 128 GB: 51 to 60, prompt 728. RTX 5080 16 GB: 44, prompt 1,627. DGX Spark GB10: 43.9, prompt 924. Two V100 cards: 41.8, prompt 1,068.">
117
+ <img class="hidden dark:block" src="./assets/speed-dark.svg" width="100%" alt="Output speed with Strata, in tokens per second, with prompt speed beside it. RTX PRO 6000: 102.8 to 240, prompt 4,015. RTX 5090: 90 to 111, prompt 1,694 at 128K context. M5 Max with Metal 4: 69 to 110, prompt 1,215. R9700 or RX 9070 XT: 62, prompt 1,122. Strix Halo 128 GB: 51 to 60, prompt 728. RTX 5080 16 GB: 44, prompt 1,627. DGX Spark GB10: 43.9, prompt 924. Two V100 cards: 41.8, prompt 1,068.">
118
+ </p>
119
+
120
+ <details>
121
+ <summary>How speeds were measured</summary>
122
+
123
+ Measured with Strata 0.2.18 (`strata-hy4` 0.1.64, built-in `DFly2` speculative decoding on): `SQ-96` and `SQ-64` on RTX PRO 6000 (4K–104K context); `SQ-64` on RTX 5090 (128K context), Apple M5 Max 128 GB (Metal 4, 4K–32K context), Radeon AI PRO R9700 / RX 9070 XT (4K context), Ryzen AI Max+ 395 Strix Halo 128 GB (4K–128K context), RTX 5080 16 GB + 64 GB RAM (4K context), DGX Spark GB10 128 GB (4K context), and 2× Tesla V100 32 GB (4K context).
124
+
125
+ </details>
126
+
127
+ ## Recommended settings
128
+
129
+ | Setting | Value |
130
+ | --- | --- |
131
+ | `temperature` | 0.9 |
132
+ | `top_p` | 1.0 |
133
+ | `top_k` | off |
134
+
135
+ Use the same values with thinking on (`reasoning_effort` high, the default) and for direct answers (`no_think`).
136
+
137
+ ## Files and checksums
138
+
139
+ | File | Size |
140
+ | --- | ---: |
141
+ | `Hy4-Flash-SQ-64.strata` | 62.03 GB |
142
+ | `Hy4-Flash-SQ-96.strata` | 89.58 GB |
143
+ | `Hy4-Flash-SQ-128.strata` | 113.65 GB |
144
+ | `Hy4-Flash-Engram-Q8.strata`, needed by every pack | 67.58 GB |
145
+ | `Hy4-Flash-Vision.strata`, for reading images | 0.93 GB |
146
+
147
+ <details>
148
+ <summary>Pack file checksums (SHA-256)</summary>
149
+
150
+ ```text
151
+ 6e8ba2729465f38ed42b5bfa7db02c92beddc25ca0413b7f0c24ab9f1e8b51f4 Hy4-Flash-SQ-128.strata
152
+ 3b1c5755a220c69892b3d2dbad506b8593a30be24b17a390ecbd1642c0c1e14c Hy4-Flash-SQ-96.strata
153
+ b2cc38fe4bded35df82a701f9e868ea09c6fcd9be52c8446289e394f804417b2 Hy4-Flash-SQ-64.strata
154
+ ab0cf9b3f9c64bd25f6212d4508e7443ab8b9bc133fbccc7bdfb83510a20c2c1 Hy4-Flash-Engram-Q8.strata
155
+ ef09bceff8f01b8d226d2dc56aef09cec719b21b45783ee9b5d64e7241b72a09 Hy4-Flash-Vision.strata
156
+ ```
157
+
158
+ </details>
159
+
160
+ ## About Strata
161
+
162
+ **Run powerful AI on your own computer.** Chat, code and work with images, locally. Strata is free and open source.
163
+
164
+ <p align="center">
165
+ <a href="https://github.com/Niko1221/Strata#models">Models</a> · <a href="https://github.com/Niko1221/Strata#install"><b>Install</b></a> · <a href="https://github.com/Niko1221/Strata#hardware">Hardware</a> · <a href="https://github.com/Niko1221/Strata#tools">Tools</a> · <a href="https://github.com/Niko1221/Strata#help">Help</a> · <a href="https://github.com/Niko1221/Strata#support-strata">Support</a>
166
+ </p>
167
+ <p align="center">
168
+ <a href="https://github.com/Niko1221/Strata/releases/latest"><img src="./assets/strata-download.svg" alt="Download Strata" width="108" height="20"></a>
169
+ <a href="https://github.com/Niko1221/Strata/blob/main/LICENSE"><img src="./assets/strata-engine-license.svg" alt="Strata engine license: MIT" width="120" height="20"></a>
170
+ <a href="https://github.com/sponsors/Niko1221"><img src="./assets/strata-sponsor.svg" alt="Sponsor Strata on GitHub" width="73" height="20"></a>
171
+ <a href="https://buymeacoffee.com/strataengine"><img src="./assets/strata-coffee.svg" alt="Buy me a coffee" width="117" height="20"></a>
172
+ </p>
173
+ <p align="center"><sub><a href="https://github.com/Niko1221/Strata#readme">English</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.zh-CN.md">简体中文</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.ja.md">日本語</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.de.md">Deutsch</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.fr.md">Français</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.es.md">Español</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.pt-BR.md">Português</a> · <a href="https://github.com/Niko1221/Strata/blob/main/docs/lang/README.pl.md">Polski</a></sub></p>
174
+
175
+ ## Licence
176
+
177
+ - **The model:** Hy4-Flash is made by Tencent and released under the [Tencent Hy License](https://huggingface.co/tencent/Hy4-flash/blob/main/LICENSE). The files here are a quantized build of [tencent/Hy4-flash](https://huggingface.co/tencent/Hy4-flash).
178
+ - **The Strata engine:** [MIT](https://github.com/Niko1221/Strata/blob/main/LICENSE).
179
+
180
+ <!-- KL chart data
181
+ Edit the mean KL values below to update the chart.
182
+
183
+ | Pack | Reasoning mean KL | Tool-calling mean KL |
184
+ | --- | ---: | ---: |
185
+ | SQ-128 | 0.08789 | 0.17969 |
186
+ | SQ-96 | 0.13591 | 0.23661 |
187
+ | SQ-64 | 0.23206 | 0.51828 |
188
+ | BF16 reference | 0 | 0 |
189
+ | AngelSlim Q4_K_M | Unmeasured | Unmeasured |
190
+
191
+ Each split contains eight held-out prompts of 512 tokens. The evaluation scores all 4,096 prompt positions using the packed model and its required Engram file across all 42 layers. The tool-calling column measures token distributions on tool-related prompts. End-to-end tool success requires a separate evaluation.
192
+
193
+ | Pack | Reasoning perplexity | Tool-calling perplexity | Low-entropy mean KL |
194
+ | --- | ---: | ---: | ---: |
195
+ | BF16 reference | 5.263 | 15.990 | 0 |
196
+ | SQ-128 | 5.204 | 15.062 | 0.0477 |
197
+ | SQ-96 | 5.309 | 15.478 | 0.0660 |
198
+ | SQ-64 | 3.854 | 7.614 | 0.1164* |
199
+
200
+ \* The SQ-64 low-entropy result predates its final tuning pass. BF16 perplexity on that sequence was 3.06.
201
+
202
+ -->
203
+
204
+ <!-- Speed chart data
205
+ Edit the figures below, then run tools/make_charts.py to update the speed chart.
206
+
207
+ | Machine | Prompt speed | Output speed |
208
+ | --- | ---: | ---: |
209
+ | RTX PRO 6000 | 4,015 | 102.8–240 |
210
+ | RTX 5090 | 1,694 (at 128K context) | 90–111 |
211
+ | M5 Max (Metal 4) | 1,215 | 69–110 |
212
+ | R9700 / RX 9070 XT | 1,122 | 62 |
213
+ | Strix Halo 128 GB | 728 | 51–60 |
214
+ | RTX 5080 16 GB | 1,627 | 44 |
215
+ | DGX Spark (GB10) | 924 | 43.9 |
216
+ | 2x V100 | 1,068 | 41.8 |
217
+
218
+ -->
assets/closeness-dark.svg ADDED
assets/closeness-light.svg ADDED
assets/hero-dark.svg ADDED
assets/hero-light.svg ADDED
assets/masthead-dark.svg ADDED
assets/masthead-light.svg ADDED
assets/packs-dark.svg ADDED
assets/packs-light.svg ADDED
assets/pagoda.gif ADDED

Git LFS Details

  • SHA256: 3f4cb907313336143db8a7d649fd944b76b10decf4847e0d2d03f0c8f1e1f579
  • Pointer size: 132 Bytes
  • Size of remote file: 3.26 MB
assets/speed-dark.svg ADDED
assets/speed-light.svg ADDED
assets/strata-coffee.svg ADDED
assets/strata-download.svg ADDED
assets/strata-engine-license.svg ADDED
assets/strata-sponsor.svg ADDED