/ Модель

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

Контекст
1 048 576 токенов
Размер весов
330 ГБ
Лицензия
MIT
Архитектура
deepseek_v41 · dense
Базовая модель
DeepSeek-V4.1-Flash-1017
Библиотека
mlx
Опубликована
19 окт 2026

DeepSeek-V4.1-Flash-1017-MLX

Генерация текстаТекст → текст13 профессий

Смешанно-точный GPTQ-вариант DeepSeek-V4.1-Flash-1017 для генерации текста на Mac с Apple Silicon и 256 ГБ памяти.

1 981скачиваний за 30 дней6лайковвеса обновлены28 ноя 2026

Бенчмарки

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

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

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

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

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

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

Это смешанно-точный вариант модели DeepSeek-V4.1-Flash-1017, подготовленный Rapid-MLX для запуска на компьютерах Apple Silicon. Веса квантованы методом GPTQ с разной разрядностью; все 40 × 384 маршрутизируемых эксперта сохранены, а таблицы Engram размещены на SSD. Репозиторий создан 19 октября 2026 года и использует библиотеку MLX; лицензия — MIT.

Модель предназначена для генерации текста, включая диалоги, код, математику и агентные сценарии. По сравнению с предыдущей версией квантования авторы сообщают о меньшем расхождении распределения следующих токенов с исходной моделью и более высоком совпадении наиболее вероятных токенов на проведённых проверках. Эти показатели измеряют сходство с исходными весами, а не точность решения задач.

Для запуска требуется Mac с Apple Silicon и 256 ГБ объединённой памяти, а также около 340 ГБ свободного места на диске. В текущем серверном режиме доступно только жадное декодирование: температура должна быть равна нулю, параметр seed не поддерживается. Наличие инструмента или сценариев в данных калибровки не означает, что соответствующий интерфейс доступен в этой сборке; поддержка sampling и вызова инструментов обозначена как дальнейшая работа.

Сценарии применения

  • генерация ответов в диалоге
  • написание и дополнение кода
  • решение математических задач
  • генерация текста для агентных сценариев
  • локальный запуск большой языковой модели на Apple Silicon

Ограничения

Для запуска требуется Mac с Apple Silicon, 256 ГБ объединённой памяти и около 340 ГБ свободного места; сервер поддерживает только жадное декодирование с температурой 0 и отклоняет seed. Автор отмечает, что на неанглийском и низкоресурсном текстах расхождение с исходной моделью выше, чем на коде, математике и агентных сценариях.

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

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

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

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

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

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

Открыть на Hugging Face

DeepSeek-V4.1-Flash-1017 — Rapid-MLX GPTQ mixed-precision (256 GB Macs)

A mixed-precision MLX build of deepseek-ai/DeepSeek-V4.1-Flash-1017 sized to run on a single 256 GB Apple Silicon Mac with Rapid-MLX.

This is v2 of this repository. It replaces round-to-nearest rounding with GPTQ (error-compensating quantization driven by calibration data). Against the same source-precision reference, mean next-token KL divergence drops by 35–44% and top-1 agreement rises by 3.5–5.9 points on every ruler we measured. The previous build stays available as the v1 tag.

Closest to the original: top-1 agreement and KL vs the source model

Higher top-1 agreement and lower KL mean closer to the original model. Details in Comparison with a community 2-bit MLX quant.

  • No experts removed. All 40 × 384 routed experts are kept.
  • GPTQ for every quantized weight matrix in the 40 layers, calibrated on 36 × 40,960 tokens, with routed-expert Hessians weighted by the router. The Engram lookup tables are the exception: they are the same 4-bit tables as v1.
  • ~215.8 GB resident (weights the model keeps in RAM), plus 122.9 GB of 4-bit Engram tables that stay on SSD. The download is 338.8 GB in total.

Quick start

Requires Rapid-MLX 0.16.6 or newer; 0.16.7 or newer is recommended (up to ~1.9x faster decode). Older releases keep loading the v1 revision.

curl -fsSL https://rapidmlx.com/install.sh | bash
rapid-mlx serve deepseek-v41-flash-1017

Already have Rapid-MLX? Update it with rapid-mlx upgrade (or pip install -U rapid-mlx).

This starts an OpenAI-compatible server on http://127.0.0.1:8000/v1. The first run downloads the pinned revision and verifies its file hashes.

Requirements and current limits

ItemValue
Unified memory256 GB Mac (the server refuses to start below the guard)
Free disk~340 GB (Engram tables are read from SSD on demand)
Decodinggreedy only (temperature 0); seed is rejected
Inputtext only, ≤ 8,192 prompt tokens
Output≤ 4,096 tokens per request
Tools / function callingnot yet supported by this serving lane
Speculative decodingbuilt-in DSpark draft (dspark/, 4-bit experts)

Sampling, tool calling, and longer inputs and outputs are planned follow-ups for the serving lane. They are not limits of the weights.

What is in this build

ComponentPrecision (group size 64 unless noted)
Routed experts, gate/up2-bit; 3-bit on layers 15 and 35–39
Routed experts, down3-bit, all layers
Attention and shared experts4-bit; 8-bit on layers 6, 14–18, 26, 39
Indexer, compressor, attention output A8-bit
Embeddings, LM head, routerBF16
Engram (layers 1, 14)4-bit, group 32, round-to-nearest (same as v1), offloaded to SSD
DSpark draft head8-bit dense, 4-bit experts

How it was built

  1. Reference. The source FP4/FP8 checkpoint is streamed one layer at a time. Every ruler below compares against the source-precision model, never against another quantized build.
  2. Calibration. 36 slices × 40,960 tokens covering chat, code, math, tool-call transcripts, agentic terminal sessions, professional domains and many languages, including low-resource ones. Calibration shares no corpus file or token window with the held-out slices, and no 64-token window with the WikiText or long-context rulers.
  3. GPTQ, layer by layer. Each layer is quantized on the outputs of the already-quantized layers before it, so later layers correct for earlier error. Routed experts are processed in batches, with each token's contribution to an expert's Hessian weighted by its router weight.
  4. Bit widths. Sensitivity was scanned on all 40 layers. The eight most sensitive layers keep 8-bit attention and shared experts, and the late layers get 3-bit gate/up projections, within a 216 GB resident budget.
  5. Engram tables. The SSD-resident Engram tables are taken unchanged from v1 (4-bit), which keeps every file under 50 GB. A 6-bit variant measured 3.5–6.5% lower mean KL and 0.3–0.6 points higher top-1 agreement on the rulers below, at 49 GB more disk.

Quality

Teacher-forced next-token KL divergence vs. the source-precision model; lower is better. Top-1 agreement is the share of positions where the build's most likely next token equals the source model's. Same evaluator and same reference for both builds.

RulerTokensBuildMean KL (nats)p99 KLTop-1 agreement
38 held-out slices × 51219,456v1 (round-to-nearest)0.4394.1779.2%
v2 (this build)0.2603.3085.1%
WikiText-2 test, 24 × 1,10026,400v10.4444.4478.6%
v20.2883.2683.2%
Long context, 2 × 17,00034,000v10.2694.4990.5%
v20.1503.2994.0%

The held-out slices cover chat, code, math, tool calls, agentic terminal sessions, law, medicine, finance, science and 20 languages; v2 improves on every one of the 38 slices. The long-context ruler scores every position of two full 17,000-token contexts (an English and a Chinese public-domain novel). For the WikiText and long-context rulers, KL is computed over the reference's top-128 tokens plus one tail bucket, which slightly underestimates full-vocabulary KL; top-1 agreement is exact.

Per-domain KL on the held-out slices:

Domainv1v2
code0.1280.055
math0.1790.063
agentic terminal0.1560.097
tool-call transcripts0.1870.093
general chat (EN)0.2510.177
general chat (ZH)0.2460.141
hardest slice (Chinese folk-customs text)0.7490.546

Non-English and long-tail knowledge text still drifts more than code, math and agentic text.

Evaluation method

Teacher-forced top-1 agreement and KL divergence are measured against the source FP4/FP8 weights dequantized to BF16, at source revision 1bae0e1088993b9b82de08f59de5be5a34e42170. Top-1 agreement measures agreement with the reference, not task accuracy.

The rulers are held-out 38 × 512 tokens, WikiText-2 test 24 × 1,100 tokens, and long-context 2 × 17,000 tokens (English and Chinese). The long-context ruler is an offline weight evaluation. Held-out KL uses the full vocabulary; WikiText-2 and long-context KL use the reference's top-128 tokens plus one tail bucket, a lower bound on full-vocabulary KL. Top-1 agreement is exact.

Comparison with a community 2-bit MLX quant

RulerBuildTop-1 %Mean KLp99 KL
heldout38Rapid-MLX v2 (ours)85.10.2599013.304570
heldout38Community 2-bit MLX quant80.40.3932053.953150
heldout38Rapid-MLX v179.20.4393264.173760
wiki1100Rapid-MLX v2 (ours)83.20.2881683.261922
wiki1100Community 2-bit MLX quant79.30.4024634.096575
wiki1100Rapid-MLX v178.60.4443304.438421
long17kRapid-MLX v2 (ours)94.00.1501363.292282
long17kCommunity 2-bit MLX quantnot availablenot availablenot available
long17kRapid-MLX v190.50.2691104.486991

Resident weight sizes are approximately 216 GB for this build and 190 GB for the Community 2-bit MLX quant, excluding SSD-resident Engram tables. These are weight payloads, not peak process-memory measurements.

Speed and memory (Mac Studio M3 Ultra, 256 GB)

Decode speed with Rapid-MLX 0.16.7 or newer, single stream, default settings (built-in DSpark draft at depth 2), greedy, 256 output tokens, warm server, ~0.7–1k-token chat prompts:

Prompt classDecode (tok/s), defaultWith RAPID_MLX_DSV41_DRAFT_DEPTH=4
Long prose (1,008 tokens)35.231.2
Question answering34.333.1
Summarize36.233.6
Code42.749.0
Structured output (JSON)42.146.5

On the same machine and prompts, 0.16.6 decoded at 17.6–33.9 tok/s and 0.16.7 at 32.6–44.9 tok/s, up to about 1.9x faster (same-machine A/B method and reproduce commands). For code-heavy workloads set RAPID_MLX_DSV41_DRAFT_DEPTH=4 (or auto). The target model still verifies every emitted token, so greedy output quality is unchanged. Method and raw tables: measured defaults.

Memory. The weights are loaded into RAM up front: ~215.8 GB resident, plus working buffers. The measured peak process footprint is 213 GB (8k-token prompt, otherwise idle Mac Studio). On a 256 GB Mac, quit other memory-heavy apps before starting the server. If macOS runs out of memory and swap during loading, it terminates the server.

Files

GPTQ provenance ships with the weights: gptq-provenance.json (recipe, calibration and source identities), gptq-layer-provenance.json, gptq-statistics/ (per-layer calibration and held-out error reports) and gptq-heldout-drift.jsonl (cumulative hidden-state drift after each layer). The Engram table swap is recorded under post_assembly_overrides in gptq-provenance.json, with file hashes.

Previous version

The round-to-nearest build is the v1 tag of this repository (revision="v1"), ~206.5 GB resident.

License

MIT, same as the base model. See LICENSE.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon.

Класс архитектуры
DeepseekV41ForCausalLM
Ревизия весов
6dde566

0 моделей