/ Модель

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

Контекст
40 960 токенов
Параметры
844 млн
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B
Библиотека
vllm
Опубликована
8 окт 2026

Qwen3-4B-DCOCO

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

Черновая модель DCOCO для ускорения генерации Qwen3-4B посредством спекулятивного декодирования в vLLM.

231скачиваний за 30 дней6лайковвеса обновлены14 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TD-Labs/Qwen3-4B-DCOCO — вспомогательная модель DCOCO (DFlash Contextual Corrector), разработанная TD-Labs для ускорения генерации текста с помощью спекулятивного декодирования. Это не самостоятельная языковая модель: её используют вместе с Qwen/Qwen3-4B, которая проверяет каждый предложенный токен, сохраняя распределение выходов целевой модели.

Модель объединяет 5-слойный черновой блок DFlash с двунаправленным вниманием внутри блока и корректор DCOCO, который учитывает зависимости между кандидатами соседних позиций. В корректирующем блоке используются 16 кандидатов на позицию и двухслойная скоринговая MLP. Объём репозитория составляет около 844,4 млн параметров; контекст — до 40 960 токенов. В README приведены результаты ускорения на ряде тестов, с наиболее заметным выигрышем на математических и кодовых задачах.

Для работы нужны целевая модель Qwen/Qwen3-4B и сборка vLLM с поддержкой DCOCO; черновая модель сама по себе не предназначена для генерации. Она обучена на генерациях без режима размышлений, а выигрыш в скорости снижается при расширенном рассуждении и зависит от задачи. Лицензия — Apache-2.0.

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

  • ускорение генерации ответов Qwen3-4B в vLLM
  • ускорение решения математических задач моделью Qwen3-4B
  • ускорение генерации кода моделью Qwen3-4B
  • повышение пропускной способности сервиса генерации текста на Qwen3-4B

Ограничения

Требует целевую модель Qwen/Qwen3-4B и сборку vLLM с поддержкой DCOCO; самостоятельно не используется для генерации. Обучена на генерациях без расширенного режима размышлений, а ускорение зависит от задачи и снижается при длительном рассуждении.

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

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

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

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

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

Открыть на Hugging Face

DCOCO drafter for Qwen/Qwen3-4B

This repository contains the DCOCO (DFlash Contextual Corrector) speculative-decoding drafter for Qwen/Qwen3-4B, from the paper Contextual Correction of Parallel Drafts for Speculative Decoding. It is a draft model: serve it together with Qwen/Qwen3-4B, which verifies every token, so the output distribution is exactly the target model's.

Paper: Contextual Correction of Parallel Drafts for Speculative Decoding
Code: https://github.com/two-delta/DCOCO

How it works

Diffusion-style drafters such as DFlash propose a whole block of tokens in a single pass, but each position is predicted without seeing which tokens were chosen before it. DCOCO keeps the top-16 candidates at every drafted position and scores how well each candidate fits each candidate at the next position, using candidate representations and a pair state over adjacent slots, all in one small batched pass. A prefix-first walk over those scores then picks the draft. This restores intra-block dependencies at a cost of a few percent of the drafting cycle.

Model details

Target (verifier) modelQwen/Qwen3-4B
ArchitectureDCOCODraftModel: 5-layer DFlash drafter (hidden size 2560, bidirectional in-block attention) plus the DCOCO corrector
CorrectorK = 16 candidates per slot, candidate width 128, pair-state width 128, 2-layer scoring MLP (hidden 256); 1,443,073 parameters
Draft block15 drafted tokens per round (anchor position predicts); up to 16 tokens committed per verification
Target layers read1, 9, 17, 25, 33
Training data~800K prompts from the stem, math and code splits of Nemotron Post-Training Dataset v2 and CodeAlpaca-20k, with continuations regenerated by Qwen/Qwen3-4B (greedy, thinking off, up to 4,096 tokens)
Training6 epochs of DFlash drafter training, then 6 epochs of joint training with the corrector; AdamW, lr 6e-4, cosine schedule
FormatBF16 safetensors (2.63 GB), vLLM-native config

Usage

DCOCO runs in vLLM, through the speculative-decoding dflash method; vLLM selects the corrector from the checkpoint's DCOCODraftModel architecture. This requires a vLLM build with DCOCO support, such as the DCOCO image (vllm/vllm-openai:v0.31.0 with the DCOCO overlay).

vllm serve Qwen/Qwen3-4B \
  --speculative-config '{"method": "dflash", "model": "TD-Labs/Qwen3-4B-DCOCO", "num_speculative_tokens": 15}'

Check that the server log shows Resolved architecture: DCOCODraftModel. With any other architecture, vLLM serves the drafter as plain DFlash without the corrector. Then query it like any OpenAI-compatible server:

curl localhost:8000/v1/chat/completions -H 'content-type: application/json' -d '{
  "model": "Qwen/Qwen3-4B",
  "messages": [{"role": "user", "content": "How many positive whole-number divisors does 196 have?"}],
  "chat_template_kwargs": {"enable_thinking": false}
}'

num_speculative_tokens can be lowered (down to 1) but not raised above 15.

Results

All results below are from the paper (Tables 14, 15, 16, 17 and 20). Setup: one NVIDIA B200 GPU, vLLM 0.27, concurrency 1 unless noted, thinking off with at most 2,048 generated tokens (4,096 with thinking on), 128 prompts per benchmark (all 30 of AIME-25, all 80 of MT-Bench, 880 of SPEED-Bench). Throughput (tok/s) is the median per-request rate (output tokens / request latency, including prefill); speedup is relative to the target model alone. τ is the mean accepted length per verification round, including the bonus token. T=0 is a single greedy run; T=1 is the mean over seeds 42, 43 and 44.

Per-benchmark results (thinking off)

Greedy decoding (T=0) in the first four columns, sampling (T=1) in the last four.

BenchmarkNo-spec tok/sDCOCO tok/sSpeedupτNo-spec tok/sDCOCO tok/sSpeedupτ
MATH-500366.22165.55.91×7.967365.21644.74.50×6.041
AIME-25364.42085.95.72×7.368364.01194.13.28×4.623
GSM8K369.61638.44.43×6.082368.61525.74.14×5.610
HumanEval370.61475.83.98×5.351370.11372.13.71×4.949
MBPP370.21435.33.88×5.297369.41260.73.41×4.603
LiveCodeBench369.21754.14.75×7.127369.21301.13.52×5.110
MT-Bench369.0661.31.79×2.946369.0639.11.73×2.669
Arena-Hard-v2369.6692.31.87×2.716369.9631.41.71×2.393
Alpaca368.1658.71.79×2.515367.2631.31.72×2.357
SPEED-Bench369.1759.02.06×2.753368.8668.31.81×2.425
Average368.61332.63.62×5.012368.11086.82.95×4.078

Comparison with other parallel drafters (average over the ten benchmarks)

Thinking off:

Methodtok/s (T=0)Speedup (T=0)τ (T=0)tok/s (T=1)Speedup (T=1)τ (T=1)
DFlash1096.92.98×4.162927.62.52×3.476
Domino1202.73.27×4.861995.72.71×3.977
DSpark980.12.66×3.889838.42.28×3.281
DCOCO1332.63.62×5.0121086.82.95×4.078

Thinking on (extended reasoning):

Methodtok/s (T=0)Speedup (T=0)τ (T=0)tok/s (T=1)Speedup (T=1)τ (T=1)
DFlash753.52.08×2.778673.51.87×2.460
Domino785.22.17×3.089696.71.93×2.702
DSpark670.61.85×2.565610.21.69×2.313
DCOCO862.22.38×3.129765.32.12×2.741

Throughput under concurrent requests (thinking off)

Aggregate output tokens/s, averaged over the ten benchmarks.

Concurrent requestsDFlashDominoDSparkDCOCODCOCO vs. best other
1 (T=0)1096.91202.7980.11332.6+10.8%
4 (T=0)4097.14032.13517.54660.3+13.7%
8 (T=0)6942.66560.95953.97781.7+12.1%
16 (T=0)10940.39633.99448.612215.5+11.7%
32 (T=0)14181.111966.512746.715602.7+10.0%
1 (T=1)927.6995.7838.41086.8+9.1%
4 (T=1)3345.63226.42929.63721.2+11.2%
8 (T=1)5697.05306.75015.96191.9+8.7%
16 (T=1)9092.87830.47965.69834.0+8.2%
32 (T=1)11676.99628.310525.812476.2+6.8%

Limitations

  • The drafter is trained for Qwen/Qwen3-4B and must be served with exactly that target model.
  • It needs the target's full vocabulary (no reduced draft vocabulary).
  • It was trained on thinking-off generations; the speedup is lower with extended thinking (see above).
  • The speedup depends on the task: highest on math and code, lower on open-ended chat.

Citation

@misc{eisenstadt2026contextualcorrectionparalleldrafts,
      title={Contextual Correction of Parallel Drafts for Speculative Decoding}, 
      author={Roy Eisenstadt and Harel Lidar and Tal Gonen and Omer Luxembourg and Itamar Zimerman and Lior Wolf and Eli David and Ilan Naiman},
      year={2026},
      eprint={2610.12570},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2610.12570}, 
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей