Skip to content
Other

qwen35-l1-dspark-2l-v32k

быстрая черновая модель для ускорения генерации

2 min readupdated

Компактная draft-модель (вспомогательная сеть, предсказывающая сразу несколько следующих токенов для ускорения основной LLM) от автора IWRITECODE. Она построена на архитектуре DSpark в библиотеке speculators, содержит всего 2 слоя трансформера (0.4B параметров) и весит 764 МБ в формате bfloat16. В отличие от стандартного подхода MTP (Multi-Token Prediction — встроенного предсказания нескольких токенов), эта модель лучше угадывает токены и обходит MTP по пропускной способности при высокой параллельной нагрузке на сервер. Пригодится ML-инженерам для ускорения инференса и снижения задержек в продакшене при большом потоке запросов.

Ключевые особенности

  • Прирост скорости на 21–23%: пропускная способность увеличивается в 1.210–1.232 раза по сравнению с базовой генерацией без draft-модели.
  • Высокая точность предсказаний: в среднем принимается 3.380–3.382 токена за шаг (при параметре num_speculative_tokens = 3), что на 0.061–0.065 выше, чем у MTP.
  • Компактная архитектура DSpark: 2 слоя трансформера, словарь черновика на 32 000 токенов, markov_head_type: vanilla (ранг 256) и включённый модуль оценки уверенности (enable_confidence_head).
  • Преимущество под нагрузкой: при высокой конкурентности запросов (192–256) модель обгоняет MTP на 20–62.8 tok/s и снижает медианную задержку p50 на 1.957 с при нагрузке 3.0 req/s.

Что можно сделать

  • Ускорить инференс-сервер: подключить модель с бэкендом TRITON_ATTN (при целевом бэкенде FLASHINFER) для обслуживания большого потока параллельных запросов.
  • Заменить или сравнить с MTP: использовать её в пайплайнах спекулятивного декодирования для повышения пропускной способности при конкурентности от 192 запросов и выше.
  • Воспроизвести обучение: изучить train_command.txt и проверить целостность весов по checkpoint_sha256.txt из репозитория для адаптации под свои задачи.

Пример

{
  "model": "",
  "method": "dspark",
  "num_speculative_tokens": 3,
  "attention_backend": "TRITON_ATTN"
}
ПодробнееУсловия замеров: 2000 промптов, greedy-декодирование до EOS, 8 GPU на 3 хостах.
Скорость при concurrency 192: 3067.4–3429.6 tok/s против 2542.0–2810.6 tok/s у бейзлайна (в среднем на +30.0 tok/s быстрее MTP).
При низкой нагрузке (concurrency 1–64) уступает MTP на 4.6–89.1 tok/s, раскрываясь при высокой параллельности.
Валидность JSON на 2000 запросах: 1491/2000 (против 1495/2000 без draft-модели).
Discuss Telegram 0 15

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # IWRITECODE/qwen35-l1-dspark-2l-v32k
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download IWRITECODE/qwen35-l1-dspark-2l-v32k --local-dir ~/models/qwen35-l1-dspark-2l-v32k
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of qwen35-l1-dspark-2l-v32k (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

IWRITECODE/qwen35-l1-dspark-2l-v32k
Author
IWRITECODE
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

150

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments