/ Модель

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

Контекст
1 048 576 токенов
Лицензия
Apache 2.0
Архитектура
qwen4_exp · dense
Базовая модель
Qwen4-35B-A3B
Библиотека
vllm
Опубликована
4 дек 2026

Qwen4-35B-A3B-SM86-Fast

Генерация текстаТекст → текст
246скачиваний за 30 дней0лайковвеса обновлены4 дек 2026

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

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

Русское описание этой модели ещё готовится. Пока можно заглянуть в карточку модели от автора ниже.

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

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

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

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

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

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

Qwen4-35B-A3B-SM86-Fast

Qwen/Qwen4-35B-A3B prepared for fast single-stream decoding on two RTX 3090s (Ampere, sm_86) with vLLM 0.34.0 at tensor-parallel 2 and a 262,144-token context.

It starts from palmfuture/Qwen4-35B-A3B-GPTQ-Int4 (routed experts in GPTQ INT4) and changes two things:

  • INT4 GPTQ lm_head, recalibrated on 10.0M final-hidden-state rows captured while the model answered 8,469 prompts itself.
  • A 65,536-row draft head for the MTP drafter, so a draft token scores 26% of the vocabulary instead of all 248,320 rows. The rows are the most frequent tokens of the same self-generated text (8.0M tokens); verification still runs on the full target head, so decoding stays exact and only the acceptance rate moves.

With the cheaper draft step, two MTP draft tokens pay off (on the source checkpoint two tie and three lose).

Faster still with a DFlash2 draft: with quant-mind/Qwen4-35B-A3B-DFlash2-W4A16 instead of the MTP layer this checkpoint decodes about 21% faster again (see DFlash2).

It needs a patched vLLM. Stock vLLM 0.34.0 builds the Qwen4 lm_head without a quantization config and has no pruned draft head; the patch is reproduce/qwen4_exp-quant-head-draft-vocab.patch (two files of vllm/models/qwen4_exp/nvidia). Those two files are identical in stock 0.34.0 and in the HyperQwen build, so the patch applies to both; every number below was measured on the HyperQwen build, and stock 0.34.0 with the patch was not run.

Unofficial community build, not affiliated with Qwen / Alibaba, vLLM or palmfuture.

Measured

Two RTX 3090s capped at 270 W, PCIe P2P, no NVLink, TP2, fp8 KV cache, text only, one stream. Runtime: HyperQwen de39ebdf (vLLM 0.34.0 plus its patch series) plus the patch above. "Source" is the palmfuture checkpoint with one MTP draft token on the same runtime.

Decode on real prompts (6 code at temperature 1.0, the same 6 greedy, 3 Brazilian Portuguese and 3 English prose; 700 tokens each, warm), tok/s:

Code T 1.0Code greedyProse PT-BRProse ENGeomeanDrafts accepted
Source, 1 draft token (two runs)181.0 / 177.4191.1 / 191.7176.0 / 173.2173.1 / 168.9180.2 / 177.681% / 79%
This build, 2 draft tokens221.4243.6214.3211.3222.362%

That is about +24% over the source checkpoint. A paired run of the head changes alone (one draft token on both sides, 3 runs each) gave +13.9% at every context depth, with cold prefill and time to first token unchanged.

Decode at a 224,132-token prompt197-214 tok/s (four runs of the harness preset)
Cold prefill, 224,132 tokensabout 7,400 tok/s, 30 s to first token
KV pool at TP2714,434 tokens
Peak VRAM18.9 / 18.8 GiB at --gpu-memory-utilization 0.82
GPU-resident weights11.78 GiB per card

Quality against the source checkpoint:

SourceThis build
Perplexity, 36,465 tokens of Go source2.25042.2545 (+0.18%)
Top-1 agreement with the source96.7%
GSM8K, 200 questions, greedy197198
Verbatim copy of 10 source files, greedy99 (the same file fails on both)
Forced tool call with a shell-hostile command4/44/4
Optional tool call, 10 needed / 10 not needed9 + 1 malformed / 1010 / 10

DFlash2

The same checkpoint with a DFlash2 drafter (7 draft tokens) instead of the native MTP layer, same rig and prompts, each DFlash2 arm twice and the MTP arm first and last:

SpeculationCode T 1.0Code greedyProse PT-BRProse ENGeomean
MTP, 2 draft tokens217.3 / 221.3240.3 / 244.7206.2 / 208.5198.1 / 203.6214.9 / 219.0
DFlash2 W4A16291.0 / 289.1327.9 / 327.6197.2 / 225.0230.7 / 233.3256.7 / 265.5

With it, three cold-prefill runs gave a median decode of 242 tok/s after a 12.6k-token prompt and 256 after a 224k-token prompt, cold prefill 7,792 tok/s, peak 18.9 / 18.8 GiB and a KV pool of 734,328 tokens. It needs a second patch, reproduce/qwen4_exp-aux-hidden-states.patch, --block-size 2304 and the drafter repository, whose card has the command, the gates and the license note (the upstream drafter declares no license).

Serving

# once, in the environment that has vllm==0.34.0
patch -p1 -d "$(python -c 'import vllm, os; print(os.path.dirname(vllm.__file__))')" \
  < reproduce/qwen4_exp-quant-head-draft-vocab.patch

CUDA_DEVICE_ORDER=PCI_BUS_ID PYTORCH_CUDA_ALLOC_CONF=expandable_segments:False \
vllm serve /path/to/Qwen4-35B-A3B-SM86-Fast --served-model-name qwen4-35b-a3b \
  --tensor-parallel-size 2 --distributed-executor-backend mp --dtype bfloat16 \
  --max-model-len 262144 --max-num-seqs 1 --max-num-batched-tokens 4096 \
  --gpu-memory-utilization 0.82 --kv-cache-dtype fp8 --language-model-only \
  --engram-config '{"disk_offload":true}' \
  --speculative-config '{"method":"mtp","num_speculative_tokens":2,"index_share_for_mtp_iteration":true}' \
  --enable-prefix-caching --enable-prompt-tokens-details \
  --enable-auto-tool-choice --tool-call-parser qwen3_coder --reasoning-parser qwen3
  • The boot log must show Qwen4 MTP drafter uses a 65536-token draft head and Using MARLIN WNA16 MoE backend. MTP_DRAFT_VOCAB=0 falls back to the full head.
  • expandable_segments:False goes with vLLM's custom all-reduce at TP2; with --disable-custom-all-reduce leave the allocator at its default.
  • The 20B-parameter n-gram table (41 GB, BF16, unchanged) is read from the checkpoint files at run time (disk_offload); keep them on an NVMe.
  • config.json uses the Qwen4ExpForConditionalGeneration / qwen4_exp names that vLLM 0.34.0 knows, as the source checkpoint does.
  • Sampling comes from generation_config.json (temperature 1.0, top-p 0.95, top-k 20). reasoning_effort takes xhigh, high (default), low and off.
  • Agent clients send the OpenAI effort names, and the stock template answers HTTP 400 to none, minimal and medium. --chat-template chat_template.agents.jinja serves a copy that maps them instead (none to off, minimal to low, medium to high, max to xhigh); nothing else in it differs.

What is in it

PartFormat
Routed experts, 40 layers x 256GPTQ INT4, group 128, symmetric (from palmfuture, unchanged)
lm_headGPTQ INT4, group 128, symmetric (new)
mtp.draft_lm_head, 65,536 rowsBF16 rows of the original head (new); ids in mtp_draft_vocab_ids.pt
N-gram table, attention, Gated DeltaNet, shared experts, routers, hyper-connections, token embedding, MTP layer, vision encoderBF16, unchanged

PROVENANCE.md has the recipe, every rejected arm, the gates and the sha256 of the files. reproduce/ has the capture plugin, the head and draft-head builders, the vocabulary builder and the benchmark and gate scripts.

Limits

  • Tested only on two RTX 3090s at TP2, one stream, text only. The vision encoder is in the checkpoint and was not exercised.
  • The draft vocabulary was counted on code, tool calls, reasoning and English and Brazilian Portuguese prose. Text in other scripts will draft worse (never wrong): rebuild the list with reproduce/build_vocab.py, or set MTP_DRAFT_VOCAB=0.
  • After a successful tool result the model often issues a second command to check the outcome; the source checkpoint does the same.
  • At temperature 0 two runs were not token-identical.

Credits

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей