Skip to content
Language models

qwen3.8-flash-next-p100a

запуск Qwen3.8-Flash-Next на одной карте Tenstorrent Blackhole p100a и CPU

2 min read

Это порт и готовый сервер инференса (выполнения нейросети) от автора sunandbean, позволяющий запускать тяжелую MoE-модель (архитектура с разделением на множество узких «экспертов») Qwen3.8-Flash-Next на одном ускорителе Tenstorrent Blackhole p100a в связке с обычным десктопным процессором. Плотные слои, голова модели, слой спекулятивного декодирования MTP и самые востребованные «эксперты» размещаются в памяти ускорителя, а остальные эксперты подгружаются из GGUF-файла через CPU-ядра ggml. В отличие от чисто процессорного запуска, гибридная схема с кастомными ядрами ttnn и спекулятивным декодированием дает 10–17 токенов в секунду при контексте до 32k. Решение подойдет владельцам карт Tenstorrent и энтузиастам локального ИИ, которым нужен локальный API, совместимый с OpenAI и Anthropic.

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

  • Гибридное распределение нагрузки: горячие эксперты (8 или 16 ГБ) и основные слои работают на карте p100a, остальные читаются из GGUF на CPU.
  • Ускорение через MTP: спекулятивное декодирование (предсказание сразу нескольких токенов вперед) поднимает скорость генерации с ~8–9 до 10.4–16.6 tok/s.
  • Три профиля запуска: coder (256 экспертов, по умолчанию), ускоренный coder-fast и базовая full на 512 экспертов.
  • Готовый API и кеш префиксов: поддержка эндпоинтов OpenAI и Anthropic (включая режим рассуждений и работу с Claude Code), а также разделение времени для нескольких пользователей.

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

  • Подключить к Claude Code: запустить сервер с флагом --thinking off и использовать локальную модель для написания кода и тестов через Anthropic API.
  • Интегрировать в свои сервисы и агенты: подключить как локальный бэкенд по стандартному протоколу /v1/chat/completions с поддержкой стриминга и вызова инструментов (tools).
  • Выбрать баланс под задачи: использовать coder-fast для максимальной скорости генерации кода или профиль full для универсальных задач и работы с корейским языком.

Пример

tt-model pull  sunandbean/qwen3.8-flash-next-p100a --with-weights
tt-model serve sunandbean/qwen3.8-flash-next-p100a

curl -s localhost:20000/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "model": "qwen3.8-flash-next-p100a-coder", "max_tokens": 300,
  "messages": [{"role": "user", "content": "Write a Python function that parses ISO-8601 durations."}]}'
ПодробнееКачество и скорость: 50/50 на бенчмарке GSM8K-50; до 16.6 tok/s на коде в профиле coder-fast (тест на Ryzen 9 7900 + p100a), чтение промпта 31–58 tok/s.
Железо: требуется одна карта Tenstorrent p100a, процессор x86-64 с AVX2 (от 8 ядер), минимум 64 ГБ ОЗУ и ~110 ГБ на диске для coder (+90 ГБ для full).
Ограничения: при нехватке 64 ГБ RAM скорость падает до скорости диска; при первом запуске скачивается ~96 ГБ весов и собирается кеш на 14 ГБ; контекст ограничен 32k токенов.
Лицензия: код порта — Apache-2.0, веса — Qwen Community License 1.0 (есть ограничения для коммерческих MaaS и AI-ассистентов).
Discuss Telegram 0

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.

    # sunandbean/qwen3.8-flash-next-p100a
    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 sunandbean/qwen3.8-flash-next-p100a --local-dir ~/models/qwen3.8-flash-next-p100a
    # 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.

  • MTP (multi-token prediction)0.34.0from November 16, 2026new release

    1.5–2× generation speed

    If the model has MTP layers (DeepSeek-V3/R1, Qwen3-Next, GLM, MiMo and others), it predicts several tokens per step itself.

    How to enable: vLLM / SGLang: --speculative-config '{"method": "mtp", "num_speculative_tokens": 1}'. Check the model card.

    Earlier generations (2)
    • EAGLE-3 — Speculative decoding with a small draft head. For models without their own MTP layers.
    • EAGLE-2 / Medusa — Earlier draft-head generations. Still work if that is all you find.
  • FP8 KV cache0.34.0from November 16, 2026new release

    2× more context in the same memory

    Keeps the attention cache in 8 bits, so long contexts fit where they did not.

    How to enable: vLLM: --kv-cache-dtype fp8; llama.cpp: -ctk q8_0 -ctv q8_0.

  • vLLM / SGLang0.34.0from November 16, 2026new release

    many times more tokens/s on a server

    Server engines: batching, FlashAttention, FP8 and speculative decoding out of the box.

    How to enable: vllm serve <model> — an OpenAI-compatible API.

    Earlier generations (1)
    • llama.cpp — GGUF models on any GPU, Mac or even CPU; some layers can stay in RAM.

Model family

New posts about versions of qwen3.8-flash-next-p100a (quants, finetunes, LoRAs) will show up under the bell.

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

About the model

sunandbean/qwen3.8-flash-next-p100a
Author
sunandbean
Category
Language models
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

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

Comments