/ Модель

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

Контекст
202 752 токена
Параметры
695 млн
Лицензия
Своя лицензия
Архитектура
qwen3 · dense
Базовая модель
GLM-4.7-Flash
Библиотека
transformers
Опубликована
16 сен 2026

GLM-4.7-Flash-DFlash

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

DFlash-модель-предсказатель для ускорения генерации GLM-4.7-Flash методом спекулятивного декодирования.

567скачиваний за 30 дней2лайкавеса обновлены16 сен 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

GLM-4.7-Flash-DFlash — обученная модель-предсказатель DFlash от автора репозитория Dariusfar, предназначенная для ускорения генерации GLM-4.7-Flash методом спекулятивного декодирования. Она предлагает блоки будущих токенов, а целевая GLM-4.7-Flash проверяет их; при принятии блоков генерация ускоряется без изменения распределения выходов целевой модели. Для работы нужны обе модели и совместимая среда выполнения DFlash.

Модель использует архитектуру DFlashDraftModel в стиле Qwen3. README указывает около 1,1 млрд параметров, а метаданные Hugging Face — 694,7 млн; расхождение в размере не позволяет привести одну оценку как бесспорную. Размер блока чернового предсказания — 16 токенов, контекстное окно по метаданным — 202 752 токена. В карточке приведены результаты ускорения GLM-4.7-Flash примерно на 30% относительно обычной генерации на тестовом наборе; фактический выигрыш зависит от нагрузки и настроек.

Модель рассчитана на подключение как черновой предсказатель в serving-систему для GLM-4.7-Flash, а не на самостоятельное использование как универсальный чат-бот. Репозиторий содержит веса Safetensors. Лицензия указана как other, поэтому условия использования следует проверять в карточке модели и связанных материалах.

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

  • ускорение генерации текста моделью GLM-4.7-Flash
  • подключение чернового предсказателя в DFlash-serving
  • повышение пропускной способности сервера генерации

Ограничения

Модель требует совместимого DFlash runtime и целевую GLM-4.7-Flash; сама по себе не предназначена для обычной генерации. Заявленный выигрыш в скорости зависит от рабочей нагрузки и настроек, а сведения о лицензии обозначены только как other.

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

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

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

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

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

Открыть на Hugging Face

GLM-4.7-Flash-DFlash

A complete, trained DFlash draft model (~1.1B parameters) that accelerates GLM-4.7-Flash inference via speculative / block-parallel (draft-then-verify) decoding.

What this is

GLM-4.7-Flash-DFlash is a full drafter model trained to predict blocks of future tokens for GLM-4.7-Flash. A DFlash-capable runtime uses it to draft several tokens at once and verify them against GLM-4.7-Flash in a single pass, accelerating generation losslessly — the target model's output distribution is unchanged.

Speculative decoding always runs two models together: a fast drafter (this model) and the target it accelerates (GLM-4.7-Flash). Both are complete models; pairing them is how the speedup is obtained. This repo holds the drafter — the full weights (model.safetensors, ~2.1 GB), config, and results below.

Specs

ArchitectureDFlashDraftModel (Qwen3-style)
Target / base modelGLM-4.7-Flash (47 layers)
Draft block size16 tokens/step
Draft layers8 · hidden 2048 · 32 heads (4 KV) · head_dim 128 · intermediate 6144
Parameters~1.1B (2.1 GB, bfloat16)
Auxiliary hidden statesfrom target layers [1, 12, 23, 33, 44]
Vocab154,880
Max positions202,752 · RoPE θ = 1e6
Precisionbfloat16

Full hyperparameters are in config.json.

Intended use

Load as the drafter in a DFlash / speculative-decoding serving stack alongside GLM-4.7-Flash. The runtime loads both models; this drafter proposes token blocks and GLM-4.7-Flash verifies them, yielding the throughput gains shown below at no cost to output quality.

Method note: decoupling draft width from verification depth

A DFlash-style drafter normally uses a single width k for both the draft pass and the number of proposals the target verifies. In this work those two knobs are decoupled into independent, fixed-shape controls:

  • draft_width — the non-causal DFlash draft-query width. Because mask rows attend to one another, a wider draft pass shifts the acceptance profile at early positions.
  • verify_k — how many of those proposals are actually sent to the target for verification. On a fine-grained MoE target like GLM-4.7-Flash, each verified token is expensive, so this is the real cost driver.

The technique runs the proposer at a wide draft_width, keeps only the first verify_k proposals, and verifies just that prefix — discarding the tail before it ever enters the target's KV / sequence state. Draft and verify graphs stay fixed-shape (CUDA-graph capturable), and target output semantics are preserved (the DeepSpec prediction_shifted row contract), so the accelerated path is numerically faithful to the target.

Why it helps. A wide draft raises the number of committed tokens at early positions (≈3.1 committed through position 4 at width-8, vs ≈2.1 at width-4), while a short verify avoids paying MoE verification cost on the low-probability tail. The two optima are genuinely different, so tying them together leaves throughput on the table.

Results — vs. vanilla GLM-4.7-Flash

Against plain GLM-4.7-Flash with no speculative decoding, this DFlash drafter delivers roughly 1.3× higher generation throughput (≈ +30%) — about 121 → 157 tokens/s aggregate on 4×A100-40GB — while leaving the target model's output distribution unchanged. The speedup holds across every domain and is substantially larger on some (see plot).

Per-domain throughput: DFlash vs. plain GLM-4.7-Flash and MTP-1

Mean per-request output throughput across the full SPEED-Bench qualitative suite (880 prompts, 11 domains). Grey = plain GLM-4.7-Flash (no speculative decoding); DFlash (orange / teal) is faster across every domain. MTP-1 shown for reference.

Against a stronger MTP-1 speculative-decoding baseline the margin is naturally smaller (best DFlash config ≈ 1.16×, and ≈ +3% over the matched coupled setting at flat p95 latency) — but against the no-spec vanilla path the gain is large and consistent, which is the comparison that matters when deciding whether to use speculative decoding at all.

The best DFlash configuration is wide draft (8) / short verify (3) — the product of the decoupling described above. The full draft-width × verify-depth sweep:

Draft-width × verify-depth matrix — accepted length and throughput across the swept grid

Draft-width × verify-depth matrix: acceptance and throughput across configurations. Wide-draft / short-verify (e.g. 8 / 3) sits at the throughput optimum. Gains are workload-dependent, which motivates workload-aware / request-level routing rather than one static setting.

Training

Trained on 4×A100-40GB. Draft config: block 16, 8-layer draft (hidden 2048), auxiliary hidden states from target layers [1, 12, 23, 33, 44].

License

Derived from GLM-4.7-Flash — usage is subject to the base model's license. Verify and comply with the upstream terms before use.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
DFlashDraftModel
Ревизия весов
d08993a

0 моделей