/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
73,5 ГБ
Лицензия
Своя лицензия
Архитектура
qwen4_exp · dense
Базовая модель
Qwen3.8-Flash-Next
Библиотека
mlx-vlm
Опубликована
27 авг 2026

Qwen3.8-Flash-Next-REAP-288-MLX-4bit

Изображение и текст → текст14 профессий

Qwen3.8-Flash-Next REAP-288 (MLX, 4-bit) — оптимизированная сборка базовой модели Qwen/Qwen3.8-Flash-Next, опубликованная пользователем sh0wie.

20 813скачиваний за 30 дней61лайквеса обновлены29 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель предназначена прежде всего для локального запуска на компьютерах Mac с 128 ГБ памяти и агентских сценариев в стиле Claude Code, включая генерацию и рефакторинг кода. Сборка использует библиотеку mlx-vlm и лицензию qwen-community-license-1.0.

Это MoE-модель класса 180B параметров: около 125B приходится на основную модель и 51B — на таблицу n-gram-эмбеддингов. Архитектура включает 48 слоёв, чередующих Gated DeltaNet и разреженное внимание Qwen; в каждом MoE-слое используются 288 из 512 экспертов с маршрутизацией top-10. Весы мультимодальной vision tower сохранены, поэтому заявлена поддержка изображений, однако оценивалось только качество работы с текстом. Контекст и полный набор поддерживаемых языков в README не указаны.

По сравнению с базовой 512-экспертной 4-битной сборкой размер на диске снижен с 98 до 68 ГБ, а результат HumanEval pass@1 составляет 91,5% против 93,9%. На Mac модель занимает около 68 ГБ оперативной памяти, либо около 39 ГБ при потоковой загрузке n-gram-таблицы с NVMe. Скорость декодирования зависит от среды и составляет примерно 28 токенов/с в стандартном mlx-vlm и 37–65 токенов/с в pmlx. Поддерживается speculative decoding с MTP, но его преимущество зависит от оборудования; на M4 прирост может отсутствовать. Ограничения включают снижение качества относительно полной сборки, недостаточно проверенную мультимодальность и высокие требования к памяти.license_name: qwen-community-license-1.0

Для каких профессий подходит14

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen3.8-Flash-Next REAP-288 (MLX, 4-bit)

DiskResident memoryHumanEval pass@1Decode (M4 Max)
Base Q4 (512 experts)98 GB97 GB93.9%25 tok/s
This build (288 experts)68 GB (-31%)68 GB, or 39 GB streamed91.5%28-65 tok/s

Qwen3.8-Flash-Next with 288 of 512 experts per MoE layer, pruned with REAP saliency calibrated on the quantized weights, on the machine that serves them. It is a 180B-class MoE that runs on a 128 GB Mac for Claude Code-style agentic workloads and scores 91.5% on HumanEval. Decode is runtime-dependent: ~28 tok/s on stock mlx-vlm today, and 37 to 65 tok/s on the pmlx engine that ships with the tiered release (see "Decode speed" for the full breakdown). It supports MTP speculative decoding out of the box. Resident memory is ~68 GB as shipped, or ~39 GB when the n-gram table is streamed from NVMe (see "Running it").

  • 180B-parameter class: 125B main model, 51B n-gram embedding table, 48 layers alternating Gated DeltaNet and Qwen sparse attention, each with a 288-expert MoE routing top-10
  • Runs on a 128 GB Mac at ~68 GB resident on mlx-vlm, or ~39 GB with the n-gram table streamed from NVMe on omlx
  • Multimodal weights (vision tower) are intact but only text quality has been evaluated

Running it

For the ~39 GB streamed footprint, run under omlx v0.6.4 or newer. omlx offloads the n-gram table to NVMe automatically when the full model would not fit under the memory ceiling, so the build serves in about 39 GB resident.

brew install jundot/omlx/omlx

# Put the model where omlx can discover it
hf download sh0wie/Qwen3.8-Flash-Next-REAP-288-MLX-4bit \
  --local-dir ~/models/Qwen3.8-Flash-Next-REAP-288-MLX-4bit

# A memory ceiling below the 68 GB full-resident size makes omlx stream the
# n-gram table, landing the model at about 39 GB resident
omlx serve --model-dir ~/models --memory-guard-gb 48

The server is OpenAI-compatible at http://localhost:8000/v1.

mlx-vlm runs the same build today at about 68 GB resident, with the n-gram table in memory. It streams to about 39 GB once PR #2045 (external PLE storage) lands in a release, since this repo already ships the ple-store.json manifest and ple_storage config that path reads. mlx-vlm needs qwen4_exp MTP support (git main after 2026-08-27, or any release that includes it):

pip install git+https://github.com/Blaizzy/mlx-vlm.git

# One-shot generate
python -m mlx_vlm.generate \
  --model sh0wie/Qwen3.8-Flash-Next-REAP-288-MLX-4bit \
  --prompt "Refactor this function to add input validation." \
  --max-tokens 512

# OpenAI-compatible server
python -m mlx_vlm.server \
  --model sh0wie/Qwen3.8-Flash-Next-REAP-288-MLX-4bit --port 8080

Speculative decoding with the model's own MTP head, using the companion drafter sh0wie/Qwen3.8-Flash-Next-MTP-Drafter-MLX-bf16:

python -m mlx_vlm.generate \
  --model sh0wie/Qwen3.8-Flash-Next-REAP-288-MLX-4bit \
  --draft-model sh0wie/Qwen3.8-Flash-Next-MTP-Drafter-MLX-bf16 \
  --draft-kind mtp \
  --prompt "..." --max-tokens 512

A note on speculative speed: the drafter's acceptance rate is healthy (~44-68% depending on sampling), but the net speedup depends on how cheaply your hardware runs the verification pass. M5-class GPUs report 1.5-2.6x; on M4 it is roughly break-even. Quality is unaffected either way, since the target model verifies every drafted token.

Why 288 experts

We measured an eleven-point pruning ladder and 288 is where quality-per-GB peaks among usable builds. Aggregate metrics (KL divergence against the stock model) suggest pruning deeper, but sampled rare-token reliability collapses below 288: a 256-expert build produces an intact rare name in 1 of 10 seeded generations where this build scores 9 of 10, a failure mode invisible to greedy evaluation and unrepairable by giving the experts more bits. The full study and tooling will be made available soon; the per-layer kept-expert manifest ships in this repo as reap_kept_experts.json, which makes the prune reproducible from the source conversion.

Build (experts)DiskHumanEval pass@1
512 (stock conversion)98 GB93.9%
38480 GB92.1%
32072 GB90.9%
288 (this build)68 GB91.5%
25665 GB88.4%

All legs ran the same harness on the same machine: 164 HumanEval problems, unit-test verified, one run per build. Routing width is untouched at the trained top-10; narrowing it costs far more than it saves (top-6 scores 84.8%, top-4 collapses to 63.4%, for at most +2.5 tok/s).

Pinned-expert manifests (SSD expert streaming)

The manifests/ folder ships our measured per-layer saliency selection in the plain layer-id -> expert-id-list JSON shape that SSD-expert-streaming runtimes consume directly as a pinned source of truth. Expert ids are stock ids (0-511) and layer keys are the 48 routed MoE layers (0-47), so the maps pin against the full 512-expert base checkpoint. Each file is a flat {"<layer>": [<expert ids>], ...} map, ids only, well under the 2 MiB limit.

  • manifests/qwen38-flash-next-512e_saliency_pinned.json - all 512 experts per layer in descending saliency order. Pin a prefix of length K to get the top-K experts at any budget; the first 288 ids of each layer are exactly the kept set of this build.
  • manifests/qwen38-flash-next-reap-288_kept.json - the REAP-288 kept set, ascending ids (same selection as reap_kept_experts.json). The exact 288-expert case.
  • manifests/qwen38-flash-next-reap-288_kept_saliency_ordered.json - the same 288 kept ids reordered descending by saliency, so a shorter prefix is a valid smaller-budget selection.

Saliency is the same on-device REAP measurement used to choose this build's kept experts. The maps match the REAP/omlx manifest shape (a plain layer -> expert-id map, also accepted under layers / pinned_experts / kept_experts wrappers).

The 39 GB mode

Per token the model reads only a few hundred bytes of the 51B n-gram table, so the table does not need to be resident. A runtime that streams it row by row from NVMe drops resident memory from about 68 GB to about 39 GB, with logits identical to the in-memory path. omlx v0.6.4 or newer does this today; the commands are in "Running it" above.

mlx-vlm gains the same capability through PR #2045 ("external PLE storage"), merged to main on 2026-08-28 and awaiting a tagged release. This repo ships the two files that feature reads, ple-store.json and a ple_storage block in config.json, so once #2045 lands in a release python -m mlx_vlm.server streams the table to about 39 GB with no extra steps. Until then, use omlx for the 39 GB footprint; stock mlx-vlm loads the full table at about 68 GB.

Decode speed

The ~28 tok/s figure above is stock mlx-vlm today, with the full n-gram table resident at about 68 GB. omlx serves the same weights at about 39 GB by streaming that table from NVMe. A separate pure-MLX engine, pmlx, runs these same 4-bit weights faster and releases alongside the upcoming tiered model. It is not required to run this build, and nothing here waits on it, but the same download gets faster when it lands.

EngineResidentDecode (M4 Max)Available
stock mlx-vlm, table resident68 GB~28 tok/stoday
omlx, table streamed from NVMe39 GBnot separately benchmarkedtoday (v0.6.4+)
pmlx, table streamed from NVMe39 GB~37 tok/swith the tiered release
pmlx, table in RAM73 GB~65 peak, ~41 sustained at 4Kwith the tiered release

Same 4-bit build in every row. The only measured decode on a public runtime today is ~28 tok/s on stock mlx-vlm with the table resident. Streaming the table from NVMe costs some throughput that we have not separately benchmarked under omlx.

The pmlx rows are not needed to serve the model today. Read the ~65 tok/s figure carefully: it is the RAM-resident table, not the 39 GB streamed path, and it is a short-context peak. Sustained pmlx decode at 4K context is about 41 tok/s bare and about 52 tok/s with speculative decoding. The ~37 tok/s streamed figure is the same engine reading the n-gram table from NVMe.

Provenance and what was fixed

  • Qwen/Qwen3.8-Flash-Next: upstream weights
  • Sawfwair/Qwen3.8-Flash-Next-MLX-4bit: MLX affine 4-bit conversion (group size 64; n-gram table group size 32)
  • This build: REAP expert pruning 512 -> 288 per layer, calibrated on-device over ~686K tokens of agentic-coding traffic

Two defects of the source conversion are corrected in the weights, so no loader patches are needed: RMSNorm tensors stored un-centered (+1) are re-centered to the zero-centered convention the runtime's (1 + w) norm expects, and the n-gram table tensors plus their per-tensor quantization overrides are renamed shard_N -> shards.N to match the runtime module path. Everything else is byte-identical to the pruned source. Stock-runtime logits on this build match our patched-runtime reference exactly (max abs diff 0.0 at the final prefill position).

Limitations

  • Calibration reflects one team's agentic-coding distribution. Retention numbers should not be read as general-domain; domains far from code may degrade more.
  • Single-run evaluations, no confidence intervals. Differences of a point or two between neighboring builds are within noise.
  • Rare-name sampling reliability is 9/10, not 10/10; pruned models benefit from clearing context after a visible garbled name, since a corruption that enters the context conditions later turns.
  • Vision input is untested after pruning.

License

Qwen Community License 1.0, inherited from the base model; see LICENSE.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · mlx-vlm

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Класс архитектуры
Qwen4ExpForConditionalGeneration
Ревизия весов
668f31b

0 моделей