Text Generation
cortiq
English
Chinese
Russian
cmf
quantized
q4tp
q2tp
vulkan
Mixture of Experts
engram
hunyuan
hy4-flash
cuda
Instructions to use infosave/Hy4-flash-cmf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- cortiq
How to use infosave/Hy4-flash-cmf with cortiq:
# one Rust binary, no additional dependencies cargo install cortiq-cli # or a prebuilt binary from github.com/infosave2007/cmf/releases hf download infosave/Hy4-flash-cmf --include "*.cmf" --local-dir . ls *.cmf # some repos ship more than one quantization
cortiq run FILE.cmf --prompt "What is the capital of France?"
cortiq serve FILE.cmf --port 8080 # OpenAI-compatible server
- Notebooks
- Google Colab
- Kaggle
Add README.md
Browse files
README.md
CHANGED
|
@@ -34,7 +34,7 @@ attention layers, keeps four residual streams, and looks up bigram and trigram t
|
|
| 34 |
- **RTX PRO 6000 (96 GB), CUDA:** `q2tp` answers at **65.1 tok/s** and `q4tp` at 55.3 tok/s after a
|
| 35 |
1 000-token prompt, which the card reads in 4 s.
|
| 36 |
- **Within 24 GB of the card:** the experts live in host memory and the card keeps the hot ones: `q2tp`
|
| 37 |
-
37.4 tok/s, `q4tp`
|
| 38 |
- **Vulkan / DX12 / Metal:** the same files decode on the card through wgpu: `q2tp` 45.1 tok/s, `q4tp`
|
| 39 |
37.4 tok/s on the same card.
|
| 40 |
|
|
@@ -92,8 +92,8 @@ in the page cache (a second run); `CMF_GPU_VRAM_MB` caps the card.
|
|
| 92 |
| limit (`CMF_GPU_VRAM_MB`) | `q2tp` decode, tok/s | first token, s | `q4tp` decode, tok/s | first token, s | peak in use `q2tp` / `q4tp`, GB |
|
| 93 |
|---:|---:|---:|---:|---:|---:|
|
| 94 |
| 96 GB (whole) | **65.1** | 15.5 | 55.3 | 19.7 | 60.5 / 86.5 |
|
| 95 |
-
| 48 GB | **53.1** | 18.0 |
|
| 96 |
-
| 24 GB | **37.4** | 19.6 |
|
| 97 |
| 16 GB | **31.2** | 19.9 | 19.9 | 24.4 | 16.6 / 17.2 |
|
| 98 |
| 15 GB | **29.9** | 20.0 | 19.0 | 23.1 | 15.7 / 15.8 |
|
| 99 |
| 12 GB | **26.0** | 19.9 | — | — | 13.1 / — |
|
|
@@ -146,7 +146,7 @@ Rust без Python и ML-фреймворков. Модель выбирает 1
|
|
| 146 |
- **RTX PRO 6000 (96 ГБ), CUDA:** `q2tp` отвечает со скоростью **65,1 ток/с**, `q4tp` —
|
| 147 |
55,3 ток/с после промпта в 1 000 токенов, который карта читает за 4 с.
|
| 148 |
- **В 24 ГБ карты:** эксперты живут в памяти хоста, карта держит горячие: `q2tp` 37,4 ток/с, `q4tp`
|
| 149 |
-
|
| 150 |
- **Vulkan / DX12 / Metal:** те же файлы декодируются на карте через wgpu: `q2tp` 45,1 ток/с, `q4tp`
|
| 151 |
37,4 ток/с на той же карте.
|
| 152 |
|
|
@@ -201,8 +201,8 @@ release-сборка. `cortiq run --greedy --no-think`, 256 токенов по
|
|
| 201 |
| лимит (`CMF_GPU_VRAM_MB`) | `q2tp` декод, ток/с | первый токен, с | `q4tp` декод, ток/с | первый токен, с | пик занятой памяти `q2tp` / `q4tp`, ГБ |
|
| 202 |
|---:|---:|---:|---:|---:|---:|
|
| 203 |
| 96 ГБ (вся) | **65,1** | 15,5 | 55,3 | 19,7 | 60,5 / 86,5 |
|
| 204 |
-
| 48 ГБ | **53,1** | 18,0 |
|
| 205 |
-
| 24 ГБ | **37,4** | 19,6 |
|
| 206 |
| 16 ГБ | **31,2** | 19,9 | 19,9 | 24,4 | 16,6 / 17,2 |
|
| 207 |
| 15 ГБ | **29,9** | 20,0 | 19,0 | 23,1 | 15,7 / 15,8 |
|
| 208 |
| 12 ГБ | **26,0** | 19,9 | — | — | 13,1 / — |
|
|
@@ -251,7 +251,7 @@ OpenAI-совместимый API (`/v1/chat/completions`, `/v1/completions`, п
|
|
| 251 |
稀疏注意力层,保持四条残差流,并在四个层上查询二元与三元哈希表(Engram)。
|
| 252 |
|
| 253 |
- **RTX PRO 6000(96 GB),CUDA:** 在 1000 token 的提示(显卡读取用时 4 秒)之后,`q2tp` 以 **65.1 tok/s**、`q4tp` 以 55.3 tok/s 生成。
|
| 254 |
-
- **24 GB 显存以内:** 专家放在主机内存,显卡缓存常用专家:`q2tp` 37.4 tok/s,`q4tp`
|
| 255 |
- **Vulkan / DX12 / Metal:** 同样的文件通过 wgpu 在同一张显卡上解码:`q2tp` 45.1 tok/s,`q4tp` 37.4 tok/s。
|
| 256 |
|
| 257 |
### 快速开始
|
|
@@ -304,8 +304,8 @@ CMF_GPU=cuda cortiq run hy4-flash-q4tp.cmf --prompt "用三句话介绍一下长
|
|
| 304 |
| 显存上限(`CMF_GPU_VRAM_MB`) | `q2tp` 解码 tok/s | 首 token 秒 | `q4tp` 解码 tok/s | 首 token 秒 | 实际显存峰值 `q2tp` / `q4tp` GB |
|
| 305 |
|---:|---:|---:|---:|---:|---:|
|
| 306 |
| 96 GB(整卡) | **65.1** | 15.5 | 55.3 | 19.7 | 60.5 / 86.5 |
|
| 307 |
-
| 48 GB | **53.1** | 18.0 |
|
| 308 |
-
| 24 GB | **37.4** | 19.6 |
|
| 309 |
| 16 GB | **31.2** | 19.9 | 19.9 | 24.4 | 16.6 / 17.2 |
|
| 310 |
| 15 GB | **29.9** | 20.0 | 19.0 | 23.1 | 15.7 / 15.8 |
|
| 311 |
| 12 GB | **26.0** | 19.9 | — | — | 13.1 / — |
|
|
|
|
| 34 |
- **RTX PRO 6000 (96 GB), CUDA:** `q2tp` answers at **65.1 tok/s** and `q4tp` at 55.3 tok/s after a
|
| 35 |
1 000-token prompt, which the card reads in 4 s.
|
| 36 |
- **Within 24 GB of the card:** the experts live in host memory and the card keeps the hot ones: `q2tp`
|
| 37 |
+
37.4 tok/s, `q4tp` 25.8 tok/s, 23.7 GB in use at the peak.
|
| 38 |
- **Vulkan / DX12 / Metal:** the same files decode on the card through wgpu: `q2tp` 45.1 tok/s, `q4tp`
|
| 39 |
37.4 tok/s on the same card.
|
| 40 |
|
|
|
|
| 92 |
| limit (`CMF_GPU_VRAM_MB`) | `q2tp` decode, tok/s | first token, s | `q4tp` decode, tok/s | first token, s | peak in use `q2tp` / `q4tp`, GB |
|
| 93 |
|---:|---:|---:|---:|---:|---:|
|
| 94 |
| 96 GB (whole) | **65.1** | 15.5 | 55.3 | 19.7 | 60.5 / 86.5 |
|
| 95 |
+
| 48 GB | **53.1** | 18.0 | 38.1 | 21.1 | 45.6 / 45.8 |
|
| 96 |
+
| 24 GB | **37.4** | 19.6 | 25.8 | 25.0 | 23.6 / 23.7 |
|
| 97 |
| 16 GB | **31.2** | 19.9 | 19.9 | 24.4 | 16.6 / 17.2 |
|
| 98 |
| 15 GB | **29.9** | 20.0 | 19.0 | 23.1 | 15.7 / 15.8 |
|
| 99 |
| 12 GB | **26.0** | 19.9 | — | — | 13.1 / — |
|
|
|
|
| 146 |
- **RTX PRO 6000 (96 ГБ), CUDA:** `q2tp` отвечает со скоростью **65,1 ток/с**, `q4tp` —
|
| 147 |
55,3 ток/с после промпта в 1 000 токенов, который карта читает за 4 с.
|
| 148 |
- **В 24 ГБ карты:** эксперты живут в памяти хоста, карта держит горячие: `q2tp` 37,4 ток/с, `q4tp`
|
| 149 |
+
25,8 ток/с, пик занятой памяти 23,7 ГБ.
|
| 150 |
- **Vulkan / DX12 / Metal:** те же файлы декодируются на карте через wgpu: `q2tp` 45,1 ток/с, `q4tp`
|
| 151 |
37,4 ток/с на той же карте.
|
| 152 |
|
|
|
|
| 201 |
| лимит (`CMF_GPU_VRAM_MB`) | `q2tp` декод, ток/с | первый токен, с | `q4tp` декод, ток/с | первый токен, с | пик занятой памяти `q2tp` / `q4tp`, ГБ |
|
| 202 |
|---:|---:|---:|---:|---:|---:|
|
| 203 |
| 96 ГБ (вся) | **65,1** | 15,5 | 55,3 | 19,7 | 60,5 / 86,5 |
|
| 204 |
+
| 48 ГБ | **53,1** | 18,0 | 38,1 | 21,1 | 45,6 / 45,8 |
|
| 205 |
+
| 24 ГБ | **37,4** | 19,6 | 25,8 | 25,0 | 23,6 / 23,7 |
|
| 206 |
| 16 ГБ | **31,2** | 19,9 | 19,9 | 24,4 | 16,6 / 17,2 |
|
| 207 |
| 15 ГБ | **29,9** | 20,0 | 19,0 | 23,1 | 15,7 / 15,8 |
|
| 208 |
| 12 ГБ | **26,0** | 19,9 | — | — | 13,1 / — |
|
|
|
|
| 251 |
稀疏注意力层,保持四条残差流,并在四个层上查询二元与三元哈希表(Engram)。
|
| 252 |
|
| 253 |
- **RTX PRO 6000(96 GB),CUDA:** 在 1000 token 的提示(显卡读取用时 4 秒)之后,`q2tp` 以 **65.1 tok/s**、`q4tp` 以 55.3 tok/s 生成。
|
| 254 |
+
- **24 GB 显存以内:** 专家放在主机内存,显卡缓存常用专家:`q2tp` 37.4 tok/s,`q4tp` 25.8 tok/s,显存峰值 23.7 GB。
|
| 255 |
- **Vulkan / DX12 / Metal:** 同样的文件通过 wgpu 在同一张显卡上解码:`q2tp` 45.1 tok/s,`q4tp` 37.4 tok/s。
|
| 256 |
|
| 257 |
### 快速开始
|
|
|
|
| 304 |
| 显存上限(`CMF_GPU_VRAM_MB`) | `q2tp` 解码 tok/s | 首 token 秒 | `q4tp` 解码 tok/s | 首 token 秒 | 实际显存峰值 `q2tp` / `q4tp` GB |
|
| 305 |
|---:|---:|---:|---:|---:|---:|
|
| 306 |
| 96 GB(整卡) | **65.1** | 15.5 | 55.3 | 19.7 | 60.5 / 86.5 |
|
| 307 |
+
| 48 GB | **53.1** | 18.0 | 38.1 | 21.1 | 45.6 / 45.8 |
|
| 308 |
+
| 24 GB | **37.4** | 19.6 | 25.8 | 25.0 | 23.6 / 23.7 |
|
| 309 |
| 16 GB | **31.2** | 19.9 | 19.9 | 24.4 | 16.6 / 17.2 |
|
| 310 |
| 15 GB | **29.9** | 20.0 | 19.0 | 23.1 | 15.7 / 15.8 |
|
| 311 |
| 12 GB | **26.0** | 19.9 | — | — | 13.1 / — |
|