/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3-4B
Библиотека
speculators
Опубликована
28 окт 2026

Qwen3-4B-speculator-tulu3-b16.dspark

Генерация текстаТекст → текст3 профессии
119скачиваний за 30 дней0лайковвеса обновлены28 окт 2026

Описание модели

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

Черновая модель DSpark для speculative decoding, ускоряющая генерацию Qwen3-4B в vLLM за счёт предложения блоков до 16 токенов.

MeganEFlynn/Qwen3-4B-speculator-tulu3-b16.dspark — экспериментальная черновая модель DSpark для ускорения генерации методом speculative decoding с проверяющей моделью Qwen/Qwen3-4B. Она предлагает до 16 токенов за итерацию декодирования и предназначена для совместного использования с vLLM и библиотекой speculators; отдельно как языковая модель не используется.

Архитектура включает 5 слоёв чернового трансформера, Markov head ранга 256 и confidence head; размер словаря — 151 936 токенов. Модель обучена в формате bfloat16 на подмножестве Tulu 3 и сохраняется в safetensors. В тестах показана длина принятой спекулятивной последовательности около 3,5–7,1 токена в разных категориях, но фактическое ускорение зависит от запросов, оборудования, размера батча и конфигурации сервера.

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

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

  • ускорение генерации текста на Qwen3-4B в vLLM
  • ускорение ответов чат-модели при greedy-декодировании
  • ускорение генерации кода на основе Qwen3-4B
  • ускорение ответов на математические и вопросно-ответные запросы

Ограничения

Это вспомогательная черновая модель, а не самостоятельная языковая модель; для неё необходимы Qwen/Qwen3-4B и совместимые версии vLLM и speculators. Эффективность зависит от промптов и конфигурации запуска, а качество принятия предложенных токенов на данных вне подмножества Tulu 3 может отличаться от приведённых тестов.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

Qwen3-4B DSpark Speculator (Block Size 16, Tulu 3 subset)

This repository contains a DSpark speculative decoding draft model trained for Qwen/Qwen3-4B. It proposes up to 16 tokens per decoding iteration and is intended for use with the vllm-project/speculators implementation and vLLM.

This is an experimental checkpoint trained only on the Tulu 3 subset (tulu3_Qwen3-8B.jsonl, ~936k rows) of the inference-optimization/Qwen3-8B-Regenerated-Collection dataset — roughly 26% of the full 13-file mixture — for 4 epochs, matching the full-mix baseline's total step count within ~14%. It is not trained with D-PARD.

Model details

  • Architecture: DSpark draft model
  • Verifier: Qwen/Qwen3-4B
  • Speculative block size: 16
  • Draft transformer layers: 5
  • Verifier hidden-state layers: 1, 9, 17, 25, 33
  • Markov head: vanilla, rank 256
  • Confidence head: enabled with Markov features
  • Default proposal method: greedy
  • Precision: bfloat16
  • Draft vocabulary size: 151,936
  • Parameters file size: 1.23 GB

Training

The model was trained from the speculators repository at commit 1c800f2b053bcd538fc11bf49ec843d4dfa81a95 with vLLM db9527a46873454610df6dbedf79a36d6bf1a7f6.

  • Data: tulu3_Qwen3-8B.jsonl only — 939,343 source lines → 935,683 prepared rows (3.27B tokens, mean sequence length 3,494)
  • Epochs: 4 — 64,831 steps/epoch → 259,362 global steps
  • World size: 6
  • Sequence length: 8,192 (multipacked), max anchors 1,024
  • Optimizer: Muon (Muon LR 3e-3)
  • Learning rate: 6e-4
  • Weight decay: 0
  • Scheduler: cosine with 4% warmup
  • Seed: 42
  • Loss: 0.1 * CE + 0.9 * TV, fused implementation
  • Position weighting: fixed exponential decay, gamma 7.0
  • speculators: 0.10.0a0
  • Training vLLM: 0.31.0
  • Transformers: 5.17.0
  • PyTorch: 2.13.0+cu130
  • Wall time: ~2d 15.5h on 6× GPUs

The complete invocation is included in train_command.txt; the exact environment and step-by-step reproduction commands are in reproduce_tulu3_b16.sh. Per-epoch validation metrics are archived in val_metrics_history/.

Final validation metrics (epoch 3, tulu3-only val split)

MetricValue
Loss0.3110
Cross-entropy loss0.4544
Total-variation loss0.1103
Acceptance rate0.6628
Acceptance length7.1495
Full accuracy0.6815

Note: the validation split is a random 10% of this run's own (tulu3-only) data, so these values are not comparable to models trained on the full mixture.

Speculator benchmark results

The checkpoint was evaluated with the speculator_benchmarks acceptance eval (9 subsets, temperature 0 and Qwen3-4B default sampling, maximum generation length 128, up to ~200-400 requests per category), serving with vllm serve Qwen/Qwen3-4B --spec-model <this checkpoint> --spec-tokens 16 --spec-method dspark.

Temperature 0 (greedy)

CategoryAcceptance length
HumanEval5.380
Math reasoning7.110
QA3.612
Question4.419
RAG4.694
Summarization3.615
Tool call4.163
Translation6.164
Writing4.352
Weighted overall4.611

Qwen3-4B default sampling (temp 0.6 / top_p 0.95 / top_k 20)

CategoryAcceptance length
HumanEval5.406
Math reasoning7.004
QA3.509
Question4.200
RAG4.374
Summarization3.574
Tool call4.082
Translation6.013
Writing4.227
Weighted overall4.501

The weighted overall is computed as 1 + total accepted speculative tokens / total draft iterations. Full per-position results: acceptance_temp0.csv, acceptance_defaulttemp.csv.

For context, the full-mix baseline (same recipe, all 13 dataset files, 1 epoch) reaches 4.69 at temperature 0 — this checkpoint matches it within ~2% using ~26% of the training data.

Usage

Use this repository as the speculative model for Qwen/Qwen3-4B through a version of vLLM and speculators that supports DSpark (speculators 0.10.0a0, vLLM 0.31.0). The verifier model and tokenizer must remain Qwen/Qwen3-4B, and the configured speculative-token count is 16:

vllm serve Qwen/Qwen3-4B \
  --spec-model MeganEFlynn/Qwen3-4B-speculator-tulu3-b16.dspark \
  --spec-tokens 16 --spec-method dspark

Limitations

  • This is a research checkpoint for speculative decoding, not a standalone language model.
  • It inherits the behavior, limitations, and license considerations of the verifier model.
  • Acceptance and speedup depend on prompts, hardware, batch size, vLLM version, and serving configuration.
  • Trained on a tulu3-only data subset; acceptance on out-of-distribution domains may differ from the benchmark results above.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей