Skip to content
Other

Qwen4-35B-A3B-NVFP4 Speculative Route Predictors

чекпоинты для ускорения генерации

2 min readupdated

Набор обученных чекпоинтов для системы Augur, предназначенных для предсказания маршрутов экспертов MoE (Mixture of Experts — архитектура смеси экспертов) и управления их вытеснением при запуске большой модели RadixArk/Qwen4-35B-A3B-NVFP4. Модели подходят для использования на потребительских видеокартах с объемом VRAM (видеопамяти) от 16 ГБ и выше. Они оптимизируют работу с памятью и снижают количество копирований данных в процессе генерации. Инструмент пригодится разработчикам и энтузиастам, которые запускают тяжелые языковые модели локально и хотят добиться максимальной скорости декодирования.

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

  • Версия v3 (w1024): Рекомендуемый дефолтный чекпоинт с шириной 1024, обученный на 8 993 трассировках и снижающий нагрузку на память на 11.8% в задачах кодинга.
  • Компактная версия v3 (w512): Облегченный вариант с шириной 512 для систем с жесткими ограничениями по ресурсам.
  • Сохранение точности: Полная бесшовная работа без потери качества (0 AL loss) по сравнению с базовыми алгоритмами.
  • Высокая скорость: Обеспечивает прирост производительности на потребительских GPU вроде RTX 4080 (до 121.2 токена в секунду в тестах).

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

  • Ускорить локальный инференс: Подключить предикторы к фреймворку Augur для быстрой генерации текста и кода на языковой модели Qwen4.
  • Настроить окружение: Задействовать переменные среды для автоматической загрузки и настройки кэша с Hugging Face.
  • Протестировать разные версии: Сравнить производительность между вариантами v3 (w1024 и w512) и базовым v2_h8 под конкретные задачи.

Пример

Запуск и настройка через переменные среды в Augur с автоматической загрузкой предиктора:

export FREETOKEN_SPEC_PREDICTOR=auto
export FREETOKEN_PIN_BUDGET_GB=44
export FREETOKEN_SPEC_PREFETCH=0
export FREETOKEN_SPEC_EVICT=1
export FREETOKEN_SPEC_EVICT_GLOBAL=1
export FREETOKEN_SPEC_PREDICT_GRAPH=1
export FREETOKEN_SPEC_AFTER_GRAPH=1
export FREETOKEN_SPEC_TOKEN_GPU_TOPK=2048
export FREETOKEN_SPEC_HYBRID_3WAY=1
export FREETOKEN_SPEC_ADMIT_GATE=1
export FREETOKEN_SPEC_ADMIT_MARGIN=0.0
export FREETOKEN_SPEC_VICTIM_QUEUE=1
export FREETOKEN_SPEC_CONF_STOP=0.0
Подробнее• Тесты проводились на RTX 4080 (16 ГБ VRAM, 64 ГБ RAM, контекст 24k).
• Достигнута скорость от 103.5 до 121.2 токенов в секунду в режиме декодирования.
• Размер файлов чекпоинтов составляет от 367.1 до 380.8 МБ.
• Базовая модель содержит 40 MoE слоев по 256 экспертов (всего 10 240 экспертов, размер 43.7 ГиБ).
Discuss TelegramReport 0

Will it run?

Runs in BF16

Fits without quantisation.

  • BF16weights 0.4 GB · ready files0.9 GB
  • FP8 / INT8recommendedweights 0.2 GB0.7 GB
  • 4-bitweights 0.1 GB0.6 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2060 · BF16 — from RTX 2060

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

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.

    # RASMUS/qwen4-35b-a3b-nvfp4-spec-predictor
    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 RASMUS/qwen4-35b-a3b-nvfp4-spec-predictor --local-dir ~/models/qwen4-35b-a3b-nvfp4-spec-predictor
    # 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.0b42from December 2, 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, 2026

    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

  1. Qwen4-35B-A3Bfamily root
  2. Qwen4-35B-A3B-NVFP4
  3. qwen4-35b-a3b-nvfp4-spec-predictor

New posts about versions of Qwen4-35B-A3B (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 1All on Hugging Face

About the model

RASMUS/qwen4-35b-a3b-nvfp4-spec-predictor
Author
RASMUS
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Generated by external AI (Google Gemini) · chat stays only in this tab · Privacy Policy

Comments