/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-4B
Опубликована
1 июн 2026

speculative_pipeline_decoding

Генерация текстаТекст → текст

Набор обученных speculation head чекпойнтов для ускорения генерации текста моделями Qwen3.5 с помощью speculative decoding.

0скачиваний за 30 дней7лайковвеса обновлены1 окт 2026

Бенчмарки

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

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

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

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

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

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

Это набор предварительно обученных весов pipeline speculation head для ускорения авторегрессионной генерации с помощью speculative decoding. Чекпойнты предназначены для инференса, оценки и дальнейшего обучения; каждый файл нужно использовать с той же архитектурой базовой модели, для которой он обучен. В репозитории есть варианты для Qwen3.5-4B и Qwen3.5-9B с разной глубиной pipeline и числом слоёв модуля спекуляции.

Весовые файлы сохранены в формате PyTorch. Чекпойнты основной ветки обучены на Ultrachat-200k, ShareGPT, SmolTalk и SmolTalk-Chinese; для альтернативной ветки использован англоязычный Open-PerfectBlend. Модель ориентирована на генерацию текста, а её применение связано с ускорением декодирования базовой LLM; самостоятельной языковой моделью этот набор весов не является. Лицензия репозитория — Apache-2.0. Для загрузки требуется указать совместимый путь к базовой модели, поскольку записанный в чекпойнте путь может быть локальным путём машины обучения.

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

  • ускорение инференса Qwen3.5-4B
  • ускорение инференса Qwen3.5-9B
  • оценка скорости speculative decoding
  • обучение pipeline speculation head для генерации текста

Ограничения

Чекпойнты привязаны к совместимой архитектуре базовой модели и требуют соответствующего кода версии v11; для старых чекпойнтов нужна версия v10. Open-PerfectBlend-варианты могут хуже работать на китайских запросах.

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

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

Открыть на Hugging Face

Speculation head checkpoints

Important

This repo's checkpoints are v11 (default branch / main). Older v10 checkpoints remain on the v10 branch. Use the matching code release: v11 checkpoints require speculative_pipeline_decoding v11; v10 checkpoints load via old_version_v10/.

Pre-trained pipeline speculation head weights. Each .pt file is a single checkpoint produced by training; pair it with the same base model architecture it was trained on (see config["base_model_path"] inside the file).

For inference, evaluation, and training examples, see the official repo:
https://github.com/yuyijiong/speculative_pipeline_decoding

The evaluation results are in Benchmark scores

Training Data

The main branch checkpoints' training datasets (used in the paper) are:

The checkpoints of the alternative training on openeurollm/open-perfectblend-decontaminated are in the v11_open-perfectblend branch. These checkpoints achieve much higher acceptance rates and speedups on the same evaluation prompts (as shown in github), but performance may be worse on Chinese prompts because Open-PerfectBlend is English-only.

Filename format

Files are named:

{model}_s{num_stages}_l{num_spec_layers}.pt
PartMeaning
{model}Base model tag from training config (e.g. Qwen3.5-4B, Qwen3.5-9B)
s{...}num_stages — pipeline depth (number of target-model stages)
l{...}num_spec_layers — number of Transformer layers in the speculation module

Example: Qwen3.5-9B_s16_l2.pt → Qwen3.5-9B base, 16 stages, 2 spec layers.

Checkpoint contents

Each file is a PyTorch archive with two top-level keys:

{
    "state_dict": ...,  # weights of the speculation module
    "config": { ... },  # hyperparameters and metadata
}

config fields (always present)

FieldDescription
base_model_pathBase model path recorded at training time (often a machine-local path; override at load time — see below)
hidden_sizeHidden size (matches base model)
vocab_sizeBase model vocabulary size
draft_vocab_sizeDraft head output size (full vocab or draft subset)
num_stagesPipeline depth (same as s in filename)
num_spec_layersSpeculation module depth (same as l in filename)
versionCheckpoint format version (11)
num_aggr_typesNumber of aggregation types m in the speculation module, determining the number of FC modules
aggr_feature_boundHF hidden-state layer indices for aggregation anchors g_0..g_{m-1} (replaces v10's shallow_hidden_layer_indices)
trained_with_use_deepestWhether training used deepest-layer features

config fields (optional)

FieldDescription
model_typeBase model type recorded at training time (e.g. qwen3_5)
spec_init_from_base_layersBase layers used to initialize the spec module (if any)
draft_token_idsDraft vocabulary token ids (only when trained with a draft vocab subset)

Available v11 checkpoints

Base models (stages)l (spec layers)Filename
Qwen3.5-4B44Qwen3.5-4B_s4_l4.pt
Qwen3.5-4B84Qwen3.5-4B_s8_l4.pt
Qwen3.5-4B162Qwen3.5-4B_s16_l2.pt
Qwen3.5-9B44Qwen3.5-9B_s4_l4.pt
Qwen3.5-9B84Qwen3.5-9B_s8_l4.pt
Qwen3.5-9B162Qwen3.5-9B_s16_l2.pt

Loading checkpoints

config["base_model_path"] is often a local path from the training machine (e.g. /share/models/Qwen3.5-4B). On your machine, pass the correct Hugging Face id or local directory via --base_model_path; it overrides the path stored in the checkpoint:

python pipeline_inference.py \
  --spec_head_ckpt /path/to/Qwen3.5-4B_s4_l4.pt \
  --base_model_path Qwen/Qwen3.5-4B

python eval.py \
  --spec_head_ckpt /path/to/Qwen3.5-4B_s4_l4.pt \
  --base_model_path /your/local/Qwen3.5-4B \
  --data_dir eval_data \
  --output_dir ./eval_output

If --base_model_path is omitted, the value from config["base_model_path"] is used as-is.

More usage details: speculative_pipeline_decoding.

Citation

If you use this repo, please cite our paper:

@misc{yu2026speculativepipelinedecodinghigheraccruacy,
      title={Speculative Pipeline Decoding: Higher-Accruacy and Zero-Bubble Speculation via Pipeline Parallelism}, 
      author={Yijiong Yu and Huazheng Wang and Shuai Yuan and Ruilong Ren and Ji Pei},
      year={2026},
      eprint={2605.30852},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2605.30852}, 
}

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
1482293

0 моделей