Skip to content
Computer vision

Qwen3.8-27B-RFT-v1

меньше reasoning-токенов при той же точности

2 min readupdated

Это дообученная версия Qwen/Qwen3.8-27B на 27,78 млрд параметров: она решает те же задачи, но при включённом thinking тратит примерно на 10–30% меньше токенов рассуждения. Автор применил rejection-sampling fine-tuning (RFT): база сама отвечала на тренировочные задачи, программа проверяла ответы, а обучение шло на собственных правильных и самых коротких решениях — без teacher-модели. Визуальная часть не менялась. Подойдёт для чат-ботов, агентов и генерации кода, где важны стоимость и скорость инференса.

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

  • Точность статистически не отличается от базы: по McNemar test ни одно различие не значимо (наименьшее p = 0,12 при thinking on).
  • Экономия reasoning-токенов на правильный ответ: −31% на MMLU-Pro, −30% на HumanEval, −13% на GSM8K.
  • Обучение: LoRA rank 64, alpha 128, 1,5 эпохи, lr 1e-4, последовательности до 32 768 токенов; adapter слит с базой в fp32 и сохранён в bfloat16.
  • Vision tower не переобучали — визуальный энкодер остался от базовой модели.

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

  • Заменить базовую Qwen3.8-27B в чат-боте или агенте, чтобы снизить расход токенов на reasoning без заметной потери качества.
  • Использовать для генерации кода: на HumanEval RFT тратит на 30% меньше reasoning-токенов при сопоставимой точности.
  • Применять в мультиязычных задачах: на German MMLU (subset) при thinking on RFT чуть выше базы — 86,5 против 83,5.
  • Запускать через Transformers, vLLM или SGLang: шаблон чата и управление thinking не изменились.

Пример

Сценарий из карточки: на задаче GSM8K при thinking on RFT v1 даёт 97,88% против 97,95% у базы, но тратит 338 reasoning-токенов вместо 389.

ПодробнееБенчмарки (thinking on): MATH-500 — 98,40 против 98,20; HumanEval — 95,73 против 93,90; IFEval — 90,76 против 89,09.
Reasoning-токенов на правильный ответ: MMLU-Pro −31%, HumanEval −30%, GSM8K −13%.
Ограничения: модель не точнее базы; MTP-голову не переобучали, speculative decoding может принимать меньше токенов; оценки из собственного harness, не для сравнения с внешними публикациями.
Лицензия Apache 2.0, как у базы.
Discuss Telegram 0 5

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.

  • BF16weights 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.

    # ghostrider0470/Qwen3.8-27B-RFT-v1
    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 ghostrider0470/Qwen3.8-27B-RFT-v1 --local-dir ~/models/Qwen3.8-27B-RFT-v1
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to Qwen3.8-27B-RFT-v1
  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

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

ghostrider0470/Qwen3.8-27B-RFT-v1
Author
ghostrider0470
Category
Computer vision
Released
Posted

On NeyroLearn

Hugging Face

50

Ask AI about this model

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

Comments