Skip to content
Other

AREX-2-oQ5e-mtp

MLX-квант с MTP-ускорением

2 min readupdated

Это oMLX-квант oQ5e модели BAAI/AREX-2 из семейства Qwen3.8-27B, к которому добавили обученную MTP-голову (multi-token prediction — предсказание нескольких токенов вперёд) для Lightning MTP speculative decoding. На практике модель быстрее генерирует текст за счёт спекулятивного декодирования: на M5 Pro замер показал 30,4–30,8 tok/s против 13,5 tok/s у версии без MTP, то есть примерно в 2,25 раза. При temperature 0 выходные токены совпадают с обычной AREX-2-oQ5e, так что ускорение не меняет результат. Бэкбон здесь тот же, что у AREX-2-oQ5e, а единственные добавления — файл model-mtp.safetensors на 0,36 ГБ и параметр mtp_num_hidden_layers = 1. Пригодится тем, кто запускает LLM локально через oMLX и хочет ускорить генерацию без замены основной модели.

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

  • MTP-голова обучена именно под цель AREX-2 W8A16, а не взята как универсальная голова Qwen3.8.
  • Ускорение около 2,25× на M5 Pro: 30,4–30,8 tok/s против 13,5 tok/s на том же запросе.
  • Acceptance 82,5–84,0%, 3,1–3,5 токена за цикл; глубина-1 даёт 84–87%, глубина-3 — 81–83%.
  • Бэкбон байт-в-байт совпадает с AREX-2-oQ5e; добавлена только MTP-часть на 0,36 ГБ.
  • Донорская draft-голова удалена: по замерам её shortlist-скоррелировал с lm_head цели почти идеально, потери нет.

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

  • Ускорить локальную генерацию кода и текста в oMLX, включив настройку mtp_enabled.
  • Использовать как более быструю замену AREX-2-oQ5e: основной бэкбон тот же, меняется только режим декодирования.
  • Проверить спекулятивное декодирование на своих промптах при temperature 0 и сравнить скорость с версией без MTP.

Пример

В oMLX выберите модель и включите для неё mtp_enabled — при обнаружении oMLX включает MTP автоматически. На M5 Pro тот же запрос на 400 токенов кода дал 30,4–30,8 tok/s против 13,5 tok/s у AREX-2-oQ5e без MTP.

ПодробнееЗамеры: M5 Pro, greedy, 400 токенов, code prompt.
Acceptance: 260/315 (82,5%) и 241/287 (84,0%); 3,1–3,5 токена за цикл.
Скорость: 30,4–30,8 tok/s против 13,5 tok/s, примерно 2,25×.
Выход идентичен не-MTP модели при temperature 0; нужен oMLX с поддержкой MTP.
Discuss Telegram 0 17

Will it run?

Runs in 4-bit

Full precision does not fit, a quantised version does: quality barely changes down to 8 bits, more noticeably at 4 bits.

  • U32weights 52 GB · ready files57 GB
  • FP8 / INT8recommendedweights 26 GB29 GB
  • 4-bitweights 15 GB17 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.

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.

    # Estirius/AREX-2-oQ5e-mtp
    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 Estirius/AREX-2-oQ5e-mtp --local-dir ~/models/AREX-2-oQ5e-mtp
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to AREX-2-oQ5e-mtp
  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

  1. Qwen3.8-27Bfamily root
  2. AREX-2
  3. AREX-2-oQ5e-mtp

New posts about versions of Qwen3.8-27B (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 12All on Hugging Face
LoRAs and adapters 2All on Hugging Face

About the model

Estirius/AREX-2-oQ5e-mtp
Author
Estirius
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

170

Ask AI about this model

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

Comments