/ Модель

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

Контекст
262 144 токена
Параметры
2,9 млрд
Размер весов
69,3 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_moe_text · MoE
Базовая модель
Qwen3.6-35B-A3B
Библиотека
transformers
Опубликована
2 июл 2026

Grug-35B-A3B

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

Экспериментальная текстовая MoE-донастройка Qwen3.6-35B-A3B для генерации ответов с более краткими и плотными рассуждениями.

168скачиваний за 30 дней39лайковвеса обновлены3 июл 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Grug 35B A3B — экспериментальная компактная донастройка модели Qwen/Qwen3.6-35B-A3B, созданная автором репозитория. Это текстовая MoE-модель для генерации ответов и диалогов, настроенная выдавать короткие, насыщенные рассуждения с сохранением ограничений, вычислений, проверок и важных граничных случаев. По карточке, в архитектуре 35 млрд параметров, из которых примерно 3 млрд активируются на токен; используются 40 текстовых слоёв, 256 экспертов и до 8 маршрутизируемых экспертов вместе с общим экспертным путём. Нативная длина контекста — 262 144 токена.

Модель обучена с помощью QLoRA/PEFT LoRA и опубликована со слитыми весами в формате Transformers/safetensors; отдельный адаптер для загрузки не требуется. В обучении использованы наборы для общего рассуждения, математики и программирования. По README, обучение было небольшим, а проверка ограничивалась локальными smoke-тестами, поэтому качество не подтверждено широкими бенчмарками. Модель может чрезмерно сокращать объяснения в задачах, где нужны длинные выводы, и наследует ограничения базовой модели. Лицензия репозитория — Apache-2.0.

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

  • краткие ответы на задачи общего рассуждения
  • решение математических задач с проверкой вычислений
  • поиск причин ошибок и предложения исправлений в коде
  • ответы в диалоговых сценариях с большим контекстом

Ограничения

Обучение было небольшим, а проверка ограничивалась локальными smoke-тестами без широких бенчмарков. Модель может чрезмерно сжимать рассуждения в задачах, требующих длинных выводов, и наследует ограничения базовой модели.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Grug 35B A3B banner

Grug 35B A3B

Grug 35B A3B is a compact-reasoning fine-tune of Qwen/Qwen3.6-35B-A3B. It keeps the Qwen MoE/A3B architecture: 35B total parameters with roughly 3B activated per token, 40 text layers, 256 experts, and 8 routed experts per token plus the shared expert path.

This repository is published as merged Transformers/safetensors model weights. It was trained with QLoRA/PEFT LoRA, then merged into the base model before upload. You do not need a separate adapter to load this model.

What Changed

The training target is a terse internal-reasoning style: short high-density notes, fewer filler phrases, and stronger preservation of constraints, equations, checks, bug causes, decisive branches, edge cases, and final-answer validation.

The goal is lower reasoning-token usage relative to the base model while preserving answer quality. It is not meant to hide uncertainty or remove needed reasoning.

Architecture

The merged release is a Qwen MoE text-generation model:

  • Base model: Qwen/Qwen3.6-35B-A3B.
  • Released architecture: Qwen3_5MoeForCausalLM.
  • Model type: qwen3_5_moe_text.
  • Hidden size: 2048.
  • Text layers: 40.
  • Experts: 256.
  • Activated experts: 8 routed experts plus shared expert path.
  • Native context length from the base model family: 262,144 tokens.

Training Data

The data pipeline started from a recent, filtered reasoning pool and converted verbose traces into compact traces before SFT packing.

Source gate:

  • Run date: June 30, 2026.
  • Default freshness cutoff: 45 days. Sources older than May 16, 2026 were rejected unless manually allowed.
  • Allowed train licenses: MIT, Apache-2.0, CC-BY-4.0, CC0-1.0.
  • Hard reject terms included OpenAI, ChatGPT, GPT-5, Claude, Anthropic, Opus, Sonnet, and Gemini.
  • Soft-risk sources marked as synthetic/distill were manually reviewed or rejected depending on provenance and license.

Final verified source mix:

SourceLicenseDomainVerified rows
hotdogs/uka-glm-5.2MITagent code1,617
Scale-or-Reason/general-reasoning-ift-pairsMITgeneral reasoning1,305
samcheng0/lumia-reasoning-sft-v1Apache-2.0code reasoning1,103
HSH-Intelligence/verified-math-reasoning-3kApache-2.0math672
kd13/CodeDebug-Instruct-v2-ReasoningMITcode debug600
Madarabr/cortex-adaptive-thinkingApache-2.0adaptive reasoning300
CL-From-Nothing/code_rose_initial_1_7B_SFT_10K_rollouts_Qwen3-4B-Thinking-2507_k12_t0.7_maxtok12288Apache-2.0code reasoning143

Row counts:

  • Normalized recent reasoning pool: 8,680 rows.
  • Selected verbose reasoning set: 6,144 rows.
  • Compact raw transform output: 6,144 rows.
  • Clean packed SFT split: 4,517 train / 245 validation / 247 test.
  • Qwen training rows accepted after length filter: 4,385.
  • Qwen training rows skipped by length filter: 132.
  • Evaluation rows used during training: 64.

The compact reasoning transform was generated with cyankiwi/Qwen3.6-35B-A3B-AWQ-4bit served by vLLM. Rows were checked for compression ratio, answer preservation, malformed tags, repetition, fixed reasoning labels, tone issues, and obvious loss of critical information before training.

Training Procedure

Training was completion-only SFT: prompt tokens were masked with -100, and only the assistant completion was trained.

Core settings:

  • Base model: Qwen/Qwen3.6-35B-A3B.
  • Method: QLoRA / PEFT LoRA, merged into full model weights for upload.
  • Quantization during training: 4-bit NF4 with BF16 compute.
  • Hardware: 8x NVIDIA Tesla V100-SXM2 16GB.
  • Max sequence length: 1,792.
  • LoRA rank: 4.
  • LoRA alpha: 8.
  • Batch size: 1.
  • Gradient accumulation: 4.
  • Learning rate: 8e-5.
  • Max steps: 100.
  • Eval steps: 25.
  • Save steps: 25.
  • Train runtime: about 1 hour 41 minutes 44 seconds.
  • Train samples per second: 0.066.
  • Train steps per second: 0.016.
  • Train loss: 1.051.

Validation loss:

StepEval loss
251.1510
501.0793
751.0487
1001.0399

Local Smoke Test

Final checkpoint smoke outputs were compact and did not use fixed Goal/Rule/Logic/Edge labels.

Example:

<think>
Shirt 80, 25% off. 25% of 80 = 20. 80 - 20 = 60. Check: 60/80 = 0.75. Correct. Answer 60.
</think>

The sale price is $60.

Bug-fix smoke output correctly identified len(x) as the issue and changed it to len(xs).

This is a smoke test, not a broad benchmark. Run your own evals before relying on the model in sensitive or production settings.

Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "kai-os/Grug-35B-A3B"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)
model.eval()

messages = [
    {"role": "user", "content": "If a shirt is $80 and goes 25% off, what is the sale price?"}
]
inputs = tokenizer.apply_chat_template(
    messages,
    return_tensors="pt",
    add_generation_prompt=True,
).to(model.device)

with torch.no_grad():
    output = model.generate(inputs, do_sample=False, max_new_tokens=512)

print(tokenizer.decode(output[0], skip_special_tokens=True))

For token-efficiency tests, compare against the base model with the same prompt and decoding settings. Do not use an artificial generation cap for benchmark claims unless the deployment itself requires one.

Limitations

  • This is an experimental compact-reasoning fine-tune.
  • The training run was intentionally small and should be treated as a first Qwen/A3B checkpoint, not a fully benchmarked production model.
  • It may over-compress reasoning on tasks that need longer derivations.
  • It inherits the base model's limitations and safety behavior.
  • The reported evaluation is local and limited.
  • The dataset includes synthetic and distilled reasoning traces from the listed open datasets; review source licenses and provenance before using this in commercial or sensitive settings.

Acknowledgements

Thanks to Lambda, the inference provider, for compute credits that supported the dataset work, training, and evaluation.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5MoeForCausalLM
Ревизия весов
f6349f9

0 моделей