Text Generation
cortiq
English
Russian
Chinese
cmf
quantized
q4tp
Mixture of Experts
code
expert-pruning
speculative-decoding
vulkan
cuda
Instructions to use infosave/Qwen3.8-Flash-Next-Fast-Code-cmf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- cortiq
How to use infosave/Qwen3.8-Flash-Next-Fast-Code-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/Qwen3.8-Flash-Next-Fast-Code-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
cortiq 0.8.78: cards from 12 GB at 91-97 % of Strata Coder with 4-bit experts
Browse files- README.md +55 -40
- assets/fc_speed_en.png +2 -2
- assets/fc_speed_ru.png +2 -2
- assets/fc_speed_zh.png +2 -2
README.md
CHANGED
|
@@ -32,8 +32,9 @@ draft (MTP) head and the n-gram table in one 66.8 GB [CMF](https://github.com/in
|
|
| 32 |
Strata Coder cut of the same model needed a repair turn. The experts fit on one 96 GB card: a prompt is read at
|
| 33 |
**~840 tokens/s**, four times the full 512-expert file on the same card, and code is written at **136–166 tokens/s**,
|
| 34 |
in 41 GB of VRAM instead of 60. Over CUDA it runs on **cards from 12 GB**: the card keeps the experts that fit and the
|
| 35 |
-
host's cores compute the rest, and the same working aquarium page is written at **
|
| 36 |
-
12 / 16 / 24 GB of card memory
|
|
|
|
| 37 |
|
| 38 |
[English](#quick-start) · [Русский](#документация-на-русском) · [中文](#中文文档)
|
| 39 |
|
|
@@ -54,12 +55,12 @@ Use cortiq 0.8.65 or later ([prebuilt binaries](https://github.com/infosave2007/
|
|
| 54 |
for a direct answer; without it the model reasons first, so raise `--max-tokens`. Each `cortiq run` loads the model
|
| 55 |
again; for chat and editors keep it loaded with [`cortiq serve`](#openai-compatible-server).
|
| 56 |
|
| 57 |
-
An NVIDIA card from 12 GB through CUDA (cortiq 0.8.
|
| 58 |
|
| 59 |
```bash
|
| 60 |
cargo install cortiq-cli --locked --features cuda
|
| 61 |
CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
| 62 |
-
CMF_SERVE_SLOTS=1 CMF_QWEN_CUDA_REG=1 \
|
| 63 |
cortiq serve qwen38-flash-next-fast-code.cmf --port 8080 --host 127.0.0.1
|
| 64 |
```
|
| 65 |
|
|
@@ -105,24 +106,29 @@ speeds are the mean of two runs. The n-gram table (28 GB) stays in system RAM in
|
|
| 105 |
|
| 106 |
## Cards from 12 GB (CUDA)
|
| 107 |
|
| 108 |
-
|
| 109 |
experts that fit, the busiest of the routing profile first; an expert a token routes to outside of them is computed
|
| 110 |
by the host's cores (an AVX-512 VNNI kernel on the 4-bit weights) while the card computes the held ones, and the
|
| 111 |
-
experts a text keeps asking for move to the card between tokens. Within 12 GB the card holds
|
| 112 |
-
experts.
|
| 113 |
|
| 114 |
-
| card memory |
|
| 115 |
-
|---|---:|
|
| 116 |
-
| 12 GB | **
|
| 117 |
-
| 16 GB | **
|
| 118 |
-
| 24 GB | **
|
|
|
|
| 119 |
|
| 120 |
One RTX 5090 held to the memory shown (`CMF_GPU_VRAM_MB`), host 2× EPYC 9554 with 31 threads and 62 GB of RAM for
|
| 121 |
-
the container, one request at a time, greedy, thinking off, draft tokens on, the command of the quick start
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
needs AVX-512 VNNI (Zen 4, Sapphire Rapids or newer) and eight threads or more; on another host every missing expert
|
| 124 |
is copied to the card instead, which is slower. `CMF_QWEN_CPU_EXPERT_THREADS` sets the number of host threads.
|
| 125 |
-
`CMF_QWEN_CUDA_REG=1`
|
| 126 |
|
| 127 |
## OpenAI-compatible server
|
| 128 |
|
|
@@ -171,7 +177,8 @@ Weights derive from Qwen's release and remain under its license. Review generate
|
|
| 171 |
читается со скоростью **~840 токенов/с** — вчетверо быстрее полного файла на той же карте, — код пишется со скоростью
|
| 172 |
**136–166 токенов/с**, в 41 Г�� видеопамяти вместо 60. Через CUDA она работает на **картах от 12 ГБ**: карта держит экспертов, которые
|
| 173 |
поместились, остальных считают ядра процессора, и та же рабочая страница аквариума пишется со скоростью
|
| 174 |
-
**
|
|
|
|
| 175 |
ML-фреймворков.
|
| 176 |
|
| 177 |

|
|
@@ -190,12 +197,12 @@ CMF_QWEN_PROFILE=fast-code.profile cortiq run qwen38-flash-next-fast-code.cmf --
|
|
| 190 |
Нужен cortiq 0.8.65 или новее. `--no-think` — ответ без рассуждений; без него поднимите `--max-tokens`. Для чата и
|
| 191 |
редакторов держите модель загруженной через `cortiq serve` (OpenAI-совместимый сервер, см. выше).
|
| 192 |
|
| 193 |
-
Карта NVIDIA от 12 ГБ через CUDA (cortiq 0.8.
|
| 194 |
|
| 195 |
```bash
|
| 196 |
cargo install cortiq-cli --locked --features cuda
|
| 197 |
CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
| 198 |
-
CMF_SERVE_SLOTS=1 CMF_QWEN_CUDA_REG=1 \
|
| 199 |
cortiq serve qwen38-flash-next-fast-code.cmf --port 8080 --host 127.0.0.1
|
| 200 |
```
|
| 201 |
|
|
@@ -237,23 +244,28 @@ llama.cpp, CUDA).
|
|
| 237 |
|
| 238 |
### Карты от 12 ГБ (CUDA)
|
| 239 |
|
| 240 |
-
|
| 241 |
что поместились, начиная с самых востребованных по профилю маршрутизации; эксперта вне карты считают ядра процессора
|
| 242 |
(ядро AVX-512 VNNI на 4-битных весах), пока карта считает своих, а эксперты, к которым текст обращается постоянно,
|
| 243 |
-
переезжают на карту между токенами. В 12 ГБ карта держит
|
| 244 |
|
| 245 |
-
| память карты |
|
| 246 |
-
|---|---:|
|
| 247 |
-
| 12 ГБ | **
|
| 248 |
-
| 16 ГБ | **
|
| 249 |
-
| 24 ГБ | **
|
|
|
|
| 250 |
|
| 251 |
Одна RTX 5090, ограниченная указанной памятью (`CMF_GPU_VRAM_MB`), хост 2× EPYC 9554 с 31 потоком и 62 ГБ ОЗУ на
|
| 252 |
-
контейнер, один запрос за раз, жадный выбор, без рассуждений, черновики включены, команда из быстрого старта
|
| 253 |
-
в каждо
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
(Zen 4, Sapphire Rapids и новее) и не меньше восьми потоков; на другом хосте каждый недостающий эксперт копируется на
|
| 255 |
карту, что медленнее. `CMF_QWEN_CPU_EXPERT_THREADS` задаёт число потоков хоста.
|
| 256 |
-
`CMF_QWEN_CUDA_REG=1` закрепля
|
| 257 |
|
| 258 |
### Железо и длинный контекст
|
| 259 |
|
|
@@ -271,7 +283,7 @@ llama.cpp, CUDA).
|
|
| 271 |
面对 2 151 token 的 3D 水族箱需求说明,它**一次写出可运行的 three.js 页面**(4 次中 4 次);同一模型的 2 位 Strata Coder 裁剪版需要一轮修复。
|
| 272 |
专家可完整放入一张 96 GB 显卡:读取提示约 **840 token/s**,是同卡完整文件的 4 倍;生成代码 **136–166 token/s**,显存 41 GB 而非 60 GB。
|
| 273 |
通过 CUDA 可在 **12 GB 起的显卡**上运行:显卡保留放得下的专家,其余由主机 CPU 核心计算,在 12 / 16 / 24 GB 显存内以
|
| 274 |
-
**
|
| 275 |
|
| 276 |

|
| 277 |
|
|
@@ -288,12 +300,12 @@ CMF_QWEN_PROFILE=fast-code.profile cortiq run qwen38-flash-next-fast-code.cmf --
|
|
| 288 |
需要 cortiq 0.8.65 或更高版本。`--no-think` 直接回答;否则模型先推理,请调大 `--max-tokens`。聊天与编辑器请用
|
| 289 |
`cortiq serve`(兼容 OpenAI 的服务器)保持模型常驻。
|
| 290 |
|
| 291 |
-
12 GB 起的 NVIDIA 显卡通过 CUDA 运行(cortiq 0.8.
|
| 292 |
|
| 293 |
```bash
|
| 294 |
cargo install cortiq-cli --locked --features cuda
|
| 295 |
CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
| 296 |
-
CMF_SERVE_SLOTS=1 CMF_QWEN_CUDA_REG=1 \
|
| 297 |
cortiq serve qwen38-flash-next-fast-code.cmf --port 8080 --host 127.0.0.1
|
| 298 |
```
|
| 299 |
|
|
@@ -321,20 +333,23 @@ CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
|
| 321 |
|
| 322 |
### 12 GB 起的显卡(CUDA)
|
| 323 |
|
| 324 |
-
|
| 325 |
路由到显卡之外的专家由主机 CPU 核心计算(针对 4 位权重的 AVX-512 VNNI 内核),显卡同时计算已保留的专家;文本反复使用的专家会在
|
| 326 |
-
token 之间迁入显卡。在 12 GB 内,显卡保留 12 288 个专家中的
|
| 327 |
|
| 328 |
-
| 显存 |
|
| 329 |
-
|---|---:|
|
| 330 |
-
| 12 GB | **
|
| 331 |
-
| 16 GB | **
|
| 332 |
-
| 24 GB | **
|
|
|
|
| 333 |
|
| 334 |
一张 RTX 5090,限制为表中显存(`CMF_GPU_VRAM_MB`),主机为 2× EPYC 9554,容器可用 31 个线程和 62 GB 内存,单路请求,贪心解码,
|
| 335 |
-
关闭思考,开启草稿,命令见快速开始
|
|
|
|
|
|
|
| 336 |
AVX-512 VNNI(Zen 4、Sapphire Rapids 或更新)和至少 8 ���线程;否则每个缺失的专家都要复制到显卡,速度更慢。
|
| 337 |
-
`CMF_QWEN_CPU_EXPERT_THREADS` 设置主机线程数。`CMF_QWEN_CUDA_REG=1` 把
|
| 338 |
|
| 339 |
### 硬件与长上下文
|
| 340 |
|
|
|
|
| 32 |
Strata Coder cut of the same model needed a repair turn. The experts fit on one 96 GB card: a prompt is read at
|
| 33 |
**~840 tokens/s**, four times the full 512-expert file on the same card, and code is written at **136–166 tokens/s**,
|
| 34 |
in 41 GB of VRAM instead of 60. Over CUDA it runs on **cards from 12 GB**: the card keeps the experts that fit and the
|
| 35 |
+
host's cores compute the rest, and the same working aquarium page is written at **145 / 175 / 207 tokens/s** within
|
| 36 |
+
12 / 16 / 24 GB of card memory: 94 / 91 / 97 % of the 2-bit Strata Coder's speed on the same cards, with the experts
|
| 37 |
+
kept at 4 bits and the attention at 8. It runs with `cortiq`, a Rust inference engine with no Python and no ML framework.
|
| 38 |
|
| 39 |
[English](#quick-start) · [Русский](#документация-на-русском) · [中文](#中文文档)
|
| 40 |
|
|
|
|
| 55 |
for a direct answer; without it the model reasons first, so raise `--max-tokens`. Each `cortiq run` loads the model
|
| 56 |
again; for chat and editors keep it loaded with [`cortiq serve`](#openai-compatible-server).
|
| 57 |
|
| 58 |
+
An NVIDIA card from 12 GB through CUDA (cortiq 0.8.78 or later, built with the `cuda` feature):
|
| 59 |
|
| 60 |
```bash
|
| 61 |
cargo install cortiq-cli --locked --features cuda
|
| 62 |
CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
| 63 |
+
CMF_SERVE_SLOTS=1 CMF_QWEN_CUDA_REG=1 CMF_QWEN_CUDA_REG_ALL=1 \
|
| 64 |
cortiq serve qwen38-flash-next-fast-code.cmf --port 8080 --host 127.0.0.1
|
| 65 |
```
|
| 66 |
|
|
|
|
| 106 |
|
| 107 |
## Cards from 12 GB (CUDA)
|
| 108 |
|
| 109 |
+
The CUDA backend serves the file on a card that cannot hold all its experts. The card keeps the
|
| 110 |
experts that fit, the busiest of the routing profile first; an expert a token routes to outside of them is computed
|
| 111 |
by the host's cores (an AVX-512 VNNI kernel on the 4-bit weights) while the card computes the held ones, and the
|
| 112 |
+
experts a text keeps asking for move to the card between tokens. Within 12 GB the card holds 927 of the 12 288
|
| 113 |
+
experts and the draft head's 512.
|
| 114 |
|
| 115 |
+
| card memory | Fast Code (cortiq), tok/s | Strata Coder (Strata), tok/s | Fast Code against Strata Coder |
|
| 116 |
+
|---|---:|---:|---:|
|
| 117 |
+
| 12 GB | **145.0** | 154.1 | 94 % |
|
| 118 |
+
| 16 GB | **174.6** | 192.5 | 91 % |
|
| 119 |
+
| 24 GB | **206.7** | 212.0 | 97 % |
|
| 120 |
+
| expert weights | 4 bits | 2 bits | |
|
| 121 |
|
| 122 |
One RTX 5090 held to the memory shown (`CMF_GPU_VRAM_MB`), host 2× EPYC 9554 with 31 threads and 62 GB of RAM for
|
| 123 |
+
the container, one request at a time, greedy, thinking off, draft tokens on, the command of the quick start; the
|
| 124 |
+
aquarium speed is the mean of two runs and the answer is the complete working page in every run. Strata Coder ran
|
| 125 |
+
on the same pod with its expert cache at 1 500 / 3 000 / 5 000 experts, 10.7 / 14.5 / 19.6 GB of the card. Fast
|
| 126 |
+
Code spends its card on more precise weights: the 2-bit cut is smaller and faster to read, and Fast Code's code
|
| 127 |
+
perplexity is the lower one (3.337 against 3.436, [above](#speed-and-accuracy)). Of the first 40 HumanEval tasks
|
| 128 |
+
38 / 39 / 39 pass within 12 / 16 / 24 GB. The host
|
| 129 |
needs AVX-512 VNNI (Zen 4, Sapphire Rapids or newer) and eight threads or more; on another host every missing expert
|
| 130 |
is copied to the card instead, which is slower. `CMF_QWEN_CPU_EXPERT_THREADS` sets the number of host threads.
|
| 131 |
+
`CMF_QWEN_CUDA_REG=1 CMF_QWEN_CUDA_REG_ALL=1` keep every expert pinned in RAM, so neither the host nor the card waits on the disk.
|
| 132 |
|
| 133 |
## OpenAI-compatible server
|
| 134 |
|
|
|
|
| 177 |
читается со скоростью **~840 токенов/с** — вчетверо быстрее полного файла на той же карте, — код пишется со скоростью
|
| 178 |
**136–166 токенов/с**, в 41 Г�� видеопамяти вместо 60. Через CUDA она работает на **картах от 12 ГБ**: карта держит экспертов, которые
|
| 179 |
поместились, остальных считают ядра процессора, и та же рабочая страница аквариума пишется со скоростью
|
| 180 |
+
**145 / 175 / 207 токена/с** в 12 / 16 / 24 ГБ видеопамяти — 94 / 91 / 97 % скорости 2-битной Strata Coder на тех же картах, при
|
| 181 |
+
том что эксперты остаются в 4 битах, а внимание — в 8. Запускается движком `cortiq` на Rust, без Python и
|
| 182 |
ML-фреймворков.
|
| 183 |
|
| 184 |

|
|
|
|
| 197 |
Нужен cortiq 0.8.65 или новее. `--no-think` — ответ без рассуждений; без него поднимите `--max-tokens`. Для чата и
|
| 198 |
редакторов держите модель загруженной через `cortiq serve` (OpenAI-совместимый сервер, см. выше).
|
| 199 |
|
| 200 |
+
Карта NVIDIA от 12 ГБ через CUDA (cortiq 0.8.78 или новее, сборка с признаком `cuda`):
|
| 201 |
|
| 202 |
```bash
|
| 203 |
cargo install cortiq-cli --locked --features cuda
|
| 204 |
CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
| 205 |
+
CMF_SERVE_SLOTS=1 CMF_QWEN_CUDA_REG=1 CMF_QWEN_CUDA_REG_ALL=1 \
|
| 206 |
cortiq serve qwen38-flash-next-fast-code.cmf --port 8080 --host 127.0.0.1
|
| 207 |
```
|
| 208 |
|
|
|
|
| 244 |
|
| 245 |
### Карты от 12 ГБ (CUDA)
|
| 246 |
|
| 247 |
+
CUDA-бэкенд обслуживает файл на карте, куда все эксперты не помещаются. Карта держит тех,
|
| 248 |
что поместились, начиная с самых востребованных по профилю маршрутизации; эксперта вне карты считают ядра процессора
|
| 249 |
(ядро AVX-512 VNNI на 4-битных весах), пока карта считает своих, а эксперты, к которым текст обращается постоянно,
|
| 250 |
+
переезжают на карту между токенами. В 12 ГБ карта держит 927 экспертов из 12 288 и 512 экспертов головы черновиков.
|
| 251 |
|
| 252 |
+
| память карты | Fast Code (cortiq), ток/с | Strata Coder (Strata), ток/с | Fast Code к Strata Coder |
|
| 253 |
+
|---|---:|---:|---:|
|
| 254 |
+
| 12 ГБ | **145.0** | 154.1 | 94 % |
|
| 255 |
+
| 16 ГБ | **174.6** | 192.5 | 91 % |
|
| 256 |
+
| 24 ГБ | **206.7** | 212.0 | 97 % |
|
| 257 |
+
| веса экспертов | 4 бита | 2 бита | |
|
| 258 |
|
| 259 |
Одна RTX 5090, ограниченная указанной памятью (`CMF_GPU_VRAM_MB`), хост 2× EPYC 9554 с 31 потоком и 62 ГБ ОЗУ на
|
| 260 |
+
контейнер, один запрос за раз, жадный выбор, без рассуждений, черновики включены, команда из быстрого старта;
|
| 261 |
+
скорость аквариума — среднее двух запусков, и в каждом ответ — полная рабочая страница. Strata Coder запускалась на
|
| 262 |
+
том же поде с кешем экспертов на 1 500 / 3 000 / 5 000 экспертов — 10,7 / 14,5 / 19,6 ГБ карты. Fast Code тратит
|
| 263 |
+
память карты на более точные веса: 2-битная сборка меньше и быстрее читается, а перплексия на коде ниже у Fast Code
|
| 264 |
+
(3.337 против 3.436, см. выше). Из первых 40 задач HumanEval в 12 / 16 / 24 ГБ проходят 38 / 39 / 39.
|
| 265 |
+
Хосту нужны AVX-512 VNNI
|
| 266 |
(Zen 4, Sapphire Rapids и новее) и не меньше восьми потоков; на другом хосте каждый недостающий эксперт копируется на
|
| 267 |
карту, что медленнее. `CMF_QWEN_CPU_EXPERT_THREADS` задаёт число потоков хоста.
|
| 268 |
+
`CMF_QWEN_CUDA_REG=1 CMF_QWEN_CUDA_REG_ALL=1` закрепляют в памяти всех экспертов, чтобы ни хост, ни карта не ждали их с диска.
|
| 269 |
|
| 270 |
### Железо и длинный контекст
|
| 271 |
|
|
|
|
| 283 |
面对 2 151 token 的 3D 水族箱需求说明,它**一次写出可运行的 three.js 页面**(4 次中 4 次);同一模型的 2 位 Strata Coder 裁剪版需要一轮修复。
|
| 284 |
专家可完整放入一张 96 GB 显卡:读取提示约 **840 token/s**,是同卡完整文件的 4 倍;生成代码 **136–166 token/s**,显存 41 GB 而非 60 GB。
|
| 285 |
通过 CUDA 可在 **12 GB 起的显卡**上运行:显卡保留放得下的专家,其余由主机 CPU 核心计算,在 12 / 16 / 24 GB 显存内以
|
| 286 |
+
**145 / 175 / 207 token/s** 写出同一可运行的水族箱页面:在同样的显卡上达到 2 位 Strata Coder 速度的 94 / 91 / 97 %,而专家保持 4 位、注意力保持 8 位。使用 `cortiq` 运行:Rust 推理引擎,无需 Python 和机器学习框架。
|
| 287 |
|
| 288 |

|
| 289 |
|
|
|
|
| 300 |
需要 cortiq 0.8.65 或更高版本。`--no-think` 直接回答;否则模型先推理,请调大 `--max-tokens`。聊天与编辑器请用
|
| 301 |
`cortiq serve`(兼容 OpenAI 的服务器)保持模型常驻。
|
| 302 |
|
| 303 |
+
12 GB 起的 NVIDIA 显卡通过 CUDA 运行(cortiq 0.8.78 或更高版本,启用 `cuda` 特性构建):
|
| 304 |
|
| 305 |
```bash
|
| 306 |
cargo install cortiq-cli --locked --features cuda
|
| 307 |
CMF_GPU=cuda CMF_QWEN_PROFILE=fast-code.profile CMF_QWEN_ROUTE_TAIL=0.05 \
|
| 308 |
+
CMF_SERVE_SLOTS=1 CMF_QWEN_CUDA_REG=1 CMF_QWEN_CUDA_REG_ALL=1 \
|
| 309 |
cortiq serve qwen38-flash-next-fast-code.cmf --port 8080 --host 127.0.0.1
|
| 310 |
```
|
| 311 |
|
|
|
|
| 333 |
|
| 334 |
### 12 GB 起的显卡(CUDA)
|
| 335 |
|
| 336 |
+
CUDA 后端可在放不下全部专家的显卡上运行该文件。显卡保留放得下的专家,按路由画像从最常用的开始;
|
| 337 |
路由到显卡之外的专家由主机 CPU 核心计算(针对 4 位权重的 AVX-512 VNNI 内核),显卡同时计算已保留的专家;文本反复使用的专家会在
|
| 338 |
+
token 之间迁入显卡。在 12 GB 内,显卡保留 12 288 个专家中的 927 个以及草稿头的 512 个。
|
| 339 |
|
| 340 |
+
| 显存 | Fast Code(cortiq),token/s | Strata Coder(Strata),token/s | Fast Code 相对 Strata Coder |
|
| 341 |
+
|---|---:|---:|---:|
|
| 342 |
+
| 12 GB | **145.0** | 154.1 | 94 % |
|
| 343 |
+
| 16 GB | **174.6** | 192.5 | 91 % |
|
| 344 |
+
| 24 GB | **206.7** | 212.0 | 97 % |
|
| 345 |
+
| 专家权重 | 4 位 | 2 位 | |
|
| 346 |
|
| 347 |
一张 RTX 5090,限制为表中显存(`CMF_GPU_VRAM_MB`),主机为 2× EPYC 9554,容器可用 31 个线程和 62 GB 内存,单路请求,贪心解码,
|
| 348 |
+
关闭思考,开启草稿,命令见快速开始;水族箱速度为两次运行的平均值,每次的回答都是完整可运行的页面。Strata Coder 在同一台机器上运行,
|
| 349 |
+
专家缓存为 1 500 / 3 000 / 5 000 个专家,占显卡 10.7 / 14.5 / 19.6 GB。Fast Code 把显存用在更精确的权重上:2 位裁剪版更小、读取更快,
|
| 350 |
+
而代码困惑度更低的是 Fast Code(3.337 对 3.436,见上文)。在 12 / 16 / 24 GB 内,HumanEval 前 40 题分别通过 38 / 39 / 39 题。主机需要
|
| 351 |
AVX-512 VNNI(Zen 4、Sapphire Rapids 或更新)和至少 8 ���线程;否则每个缺失的专家都要复制到显卡,速度更慢。
|
| 352 |
+
`CMF_QWEN_CPU_EXPERT_THREADS` 设置主机线程数。`CMF_QWEN_CUDA_REG=1 CMF_QWEN_CUDA_REG_ALL=1` 把全部专家锁定在内存中,主机和显卡都不必等待磁盘。
|
| 353 |
|
| 354 |
### 硬件与长上下文
|
| 355 |
|
assets/fc_speed_en.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
assets/fc_speed_ru.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
assets/fc_speed_zh.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|