/ Модель

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

Контекст
262 144 токена
Параметры
1,1 млрд
Лицензия
Apache 2.0
Архитектура
flashmap · dense
Базовая модель
Qwen3.8-27B-FP8
Библиотека
transformers
Опубликована
3 ноя 2026

FlashMap-Qwen3.8-27B-FP8

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

Черновая модель FlashMap предлагает блоки токенов для ускорения спекулятивного декодирования Qwen/Qwen3.8-27B-FP8 без потери точности.

183скачиваний за 30 дней1лайквеса обновлены3 ноя 2026

Бенчмарки

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

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

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

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

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

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

FlashMap-Qwen3.8-27B-FP8 — черновая модель FlashMap, разработанная для ускорения генерации Qwen/Qwen3.8-27B-FP8 с помощью спекулятивного декодирования. За один проход она предлагает блок токенов, моделируя зависимости между токенами блока через Flow Map Language Models. По README модель содержит 770 млн параметров; метаданные каталога указывают 1,1 млрд параметров. Она обучена на ответах целевой модели в режиме без рассуждений для запросов из open-perfectblend и использует 65 536 наиболее частых токенов целевой модели. Для остальных токенов вероятность предложения равна нулю, что сохраняет точность декодирования без потерь.

Модель предназначена для использования вместе с базовой Qwen/Qwen3.8-27B-FP8, а не как самостоятельный генератор. Интеграция описана для vLLM и SGLang; reference-реализация Transformers не поддерживает эту целевую модель из-за состояния слоёв linear attention, которое нельзя откатить после отклонения черновых токенов. Контекст в метаданных — 262 144 токена, формат весов — safetensors. Лицензия — Apache-2.0.

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

  • ускорение генерации ответов Qwen/Qwen3.8-27B-FP8
  • спекулятивное декодирование в vLLM
  • спекулятивное декодирование в SGLang
  • ускорение генерации в режиме без рассуждений

Ограничения

Модель предназначена для совместного использования с Qwen/Qwen3.8-27B-FP8 и не является самостоятельным генератором. Reference-реализация Transformers не поддерживает эту целевую модель; пропускная способность при высокой конкуренции ограничивается памятью для состояний linear attention.

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

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

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

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

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

Открыть на Hugging Face

FlashMap-Qwen3.8-27B-FP8

Project page · Code · Paper · Models

FlashMap is a drafter for lossless speculative decoding. It proposes a whole block of K tokens in a single pass. Unlike discrete diffusion drafters, which predict each token of the block independently and ignore inter-token dependencies, FlashMap uses a flow map (Flow Map Language Models), which jumps from Gaussian noise to the whole block in a single step and can capture dependencies between its tokens.

This is the FlashMap drafter for Qwen/Qwen3.8-27B-FP8, with 770M parameters. It was trained on the target's own responses, in non-thinking mode, to the prompts of open-perfectblend, and it drafts over the target's 65,536 most frequent tokens (its draft vocabulary). Every other token gets draft probability 0, so decoding stays lossless.

Serve it with vLLM or SGLang. The transformers reference implementation in the flashmap package (spec_generate) does not support this target: Qwen3.8's linear-attention layers keep a state that rejected drafts cannot be rolled back from.

Serve with vLLM

The vLLM integration is a plugin in the flashmap package (the vllm extra), which vLLM loads automatically.

uv venv --python 3.12 .venv-vllm
source .venv-vllm/bin/activate
uv pip install "vllm==0.32.*" "flashmap[vllm]>=0.2.1"

vllm serve Qwen/Qwen3.8-27B-FP8 --max-model-len 8192 --max-num-seqs 64 \
  --speculative-config '{"model": "j-shen/FlashMap-Qwen3.8-27B-FP8", "num_speculative_tokens": 16, "draft_sample_method": "probabilistic"}'

Qwen3.8 samples at temperature 1 by default, which needs "draft_sample_method": "probabilistic". --max-num-seqs must stay at or below the number of the target's linear-attention state blocks (about 600 on one H200 at --max-model-len 8192). If vLLM fails at startup compiling DeepGEMM's FP8 matmuls, see the troubleshooting notes.

At high concurrency, vLLM keeps a copy of the target's linear-attention state for every speculative token of every request, which limits how many requests run at once: with 16 speculative tokens and flashmap 0.2.1 or later, about 11 requests of 8,192 tokens fit on one 80 GB H100 (about twice as many as with 0.2.0). Lowering "num_speculative_tokens" (for example to 8; the drafter still drafts its whole block) fits more, at some cost in tokens per verification.

Prefix caching works (--enable-prefix-caching). On this hybrid target vLLM caches in blocks of 864 tokens and recomputes the last cached block for the drafter, so a shared prefix starts to be reused only after about 1,700 tokens. SGLang's radix cache reuses prefixes at token granularity.

Serve with SGLang

The SGLang integration is a plugin in the flashmap package (the sglang extra), which SGLang loads automatically.

uv venv --python 3.12 .venv-sglang
source .venv-sglang/bin/activate
uv pip install "sglang==0.5.20" "flashmap[sglang]>=0.2"

sglang serve --model-path Qwen/Qwen3.8-27B-FP8 \
  --speculative-algorithm DSPARK --speculative-draft-model-path j-shen/FlashMap-Qwen3.8-27B-FP8

Sending requests

Both servers expose an OpenAI-compatible API, SGLang on port 30000 and vLLM on port 8000. The drafter was trained with thinking disabled, which is where it drafts best.

from openai import OpenAI

client = OpenAI(base_url="http://localhost:30000/v1", api_key="none")  # vLLM: port 8000
response = client.chat.completions.create(
    model=client.models.list().data[0].id,
    messages=[{"role": "user", "content": "How many positive whole-number divisors does 196 have?"}],
    extra_body={"chat_template_kwargs": {"enable_thinking": False}},
)
print(response.choices[0].message.content)

Loading the weights

The model code ships with the weights, so the drafter loads without the flashmap package:

import torch
from transformers import AutoModel

draft = AutoModel.from_pretrained("j-shen/FlashMap-Qwen3.8-27B-FP8", trust_remote_code=True, dtype=torch.bfloat16)

License

The model weights are released under Apache-2.0, following Qwen3.8. The model code (*.py, from the GitHub repository) is released under the MIT license.

Citation

@misc{flashmap2026,
  title         = {{FlashMap}: Flow Map Speculative Decoding},
  author        = {Shen, Jeff and Zhou, Zhejian and Lee, Ryan and May, Jonathan and Ho, Shirley},
  year          = {2026},
  eprint        = {2610.24365},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2610.24365}
}

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

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

GPU в ailist

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

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

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

Класс архитектуры
FlashMapDraftModel
Ревизия весов
8c68116

0 моделей