/ Модель

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

Контекст
131 072 токена
Размер весов
58,9 ГБ
Архитектура
ohara_hybrid · MoE
Базовая модель
ohara-d28-a1b-s5
Библиотека
ohara
Опубликована
8 ноя 2026

ohara-d28-a1b-sft

Генерация текстаТекст → текст15 профессий
171скачиваний за 30 дней0лайковвеса обновлены8 ноя 2026

Описание модели

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

Разреженная MoE-языковая модель для диалогов, следования инструкциям, рассуждений, кода, математики и вызова инструментов.

Ohara-D28-A1B-SFT — разговорная языковая модель с разреженным вниманием и архитектурой mixture-of-experts, разработанная автором репозитория Ohara. Это версия после supervised fine-tuning модели joey00072/ohara-d28-a1b-s5: 23,85 млрд параметров всего, около 0,98 млрд активных параметров на токен. Архитектура включает 28 слоёв, а веса опубликованы в формате safetensors.

Модель предназначена для диалогов, следования инструкциям, рассуждений, математики, программирования и работы с инструментами. Она использует шаблон чата и токенизатор Qwen3, поддерживает режимы рассуждения off, low, medium и high и обучалась на контекстах до 128 тысяч токенов. Для запуска требуется библиотека ohara, а не transformers.

К ограничениям относятся слабый вызов инструментов без режима рассуждения, циклы повторов при жадном декодировании, склонность к многословным рассуждениям и слабое извлечение сведений из длинного контекста, несмотря на длину обучения. Модель прошла SFT без RL и настройки предпочтений, поэтому ответы могут быть ошибочными или небезопасными. Лицензия в предоставленных данных не указана.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

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

Открыть на Hugging Face

Ohara-D28-A1B-SFT

Ohara-D28-A1B is a hybrid sparse-attention mixture-of-experts language model: 23.85B total parameters, ~1B active per token. This repo holds the post-trained (SFT) release (step 6484, branch step-006484, tag final). It was trained from the 128k-context base ohara-d28-a1b-s5 with 13.6B tokens of supervised fine-tuning. No RL, DPO or on-policy distillation was used.

  • Chat format: the native Qwen3 chat template and tokenizer, plus a reasoning: off|low|medium|high line at the top of the system prompt (thinking goes in <think>…</think>).
  • Context: trained up to 128k tokens (see Long context for what retrieval actually looks like).
  • Requires the ohara code (library_name: ohara, not transformers), see Usage.

Overview

Parameters23.85B total = 17.70B transformer matrices + 5.60B n-gram memory + 0.27B embedding + 0.27B LM head
Active per token0.98B backbone matrices (1.25B including the LM head; table lookups excluded)
Layers28 (14 encoder + 14 decoder), hidden 1792, 14 heads x 128, 1 KV head (MQA)
LayoutSSSSSFSSSSSSSFGPPPPPGPPPPPGP
MoE256 experts, top-8 (+ shared expert), expert dim 448, quantile-balanced router bias
OthermHC residual (4 branches), n-gram memory at layers 2 and 16, gated norm
TokenizerQwen3 (vocab 151,936)
RoPErotary dim 32; theta 10k on S layers, long_rope_theta 1e6 (ABF) on F/G/P layers
Precisionbf16

Layer kinds:

  • S: sliding-window attention (window 128) with its own K/V.
  • F: full causal attention with its own K/V (encoder layers 6 and 14).
  • G: global decoder attention over the final encoder output's K/V; computes a top-256 token selection.
  • P: token-sparse attention reusing the latest G layer's K/V and selection, plus a forced 128-token local window (no extra KV cache).

Usage

# git clone https://github.com/joey00072/ohara ; pip install -e ohara
from huggingface_hub import snapshot_download
from ohara.serve import Engine

path = snapshot_download("joey00072/ohara-d28-a1b-sft", revision="main")
engine = Engine.from_checkpoint(path, device="cuda:0")
reply = engine.chat([[{"role": "user", "content": "Explain MoE routing in two sentences."}]],
                    reasoning="off", max_new_tokens=512, temperature=0.7, top_p=0.8, presence_penalty=1.0)[0]
print(reply["content"])

An OpenAI-compatible server: OHARA_SERVE_PRESENCE_PENALTY=1.0 python -m ohara.serve --ckpt <path> --port 8000. To load the weights only: ohara.pretrain.export.load_hf(path, device="cuda").

Use an ohara revision that knows long_rope_theta. config_from_dict (ohara/pretrain/export.py) keeps only the fields the model Config defines. Older code has no long_rope_theta field, so it silently drops it and loads the F/G/P layers with theta 10k. The model then runs, but long-context quality degrades.

Training

StageInitSeq lenTokensStepsNotes
Stage 1 (pretraining)scratch4k210B (stable phase)29,669The full stage 1 was 300B (210B stable + 90B decay, ohara-d28-a1b-stage1); this release branches from the pre-decay checkpoint at 210B
S2stage 1 pre-decay8k100.0B15,894constant LR; pretraining + mid-training mix
S3aS28k60.0B9,536LR decay
S3bS3a32k30.0B2,384ABF: long_rope_theta 1e6 on F/G/P from here
S4aS3b32k20.0B1,589
S5aS4a64k3.0B238router bias frozen
S5bS5a128k3.0B238router bias frozen; released as ohara-d28-a1b-s5
SFTS5b32k13.6B6,484this repo

The base lineage totals ~426B tokens. Batch sizes: 7.1M tokens (stage 1), 6.3M (S2, S3a), 12.6M (S3b onward), 2.1M (SFT, 64 x 32k).

SFT. Packed 32k rows. Loss is computed on assistant turns only, with per-conversation attention masking. The mix is reasoning traces with hindsight effort tags (off/low/medium/high) and no-think variants: agentic and tool use ~30%, math ~26%, code ~19%, general chat and instruction following ~18%, long context ~5%, budget-truncated thinking ~2%. Filtering covers length/quality, cross-source dedup, and 13-gram decontamination against the evaluated benchmarks. Router-bias balancing was on during SFT. There was no RL and no preference tuning.

Base model benchmarks

Full base suite on S4a (step 1589, the 32k base just before S5a/S5b), compared with stage 1, Qwen3 and Trinity-Nano. Scores are %. Settings differ across columns (shots, CoT vs log-likelihood, harness), so compare loosely.

Task (our setting)S4aStage 1 final (300B)Stage 1 pre-decay (210B)Qwen3-1.7B-BaseQwen3-4B-BaseTrinity-Nano-Base
MMLU (5-shot)59.555.839.062.673.067.7
MMLU-Pro (5-shot, log-lik.)31.123.013.136.8 (CoT)50.6 (CoT)35.8
BBH (3-shot CoT)51.244.330.754.572.650.4
GSM8K (8-shot CoT)70.260.019.075.4 (4-shot)87.8 (4-shot)58.4
MATH-500 (4-shot)47.833.48.043.5 (MATH)54.1 (MATH)36.0
HumanEval+ (0-shot)45.729.915.9——31.7
MBPP+ (0-shot)52.645.533.5——44.7
EvalPlus avg51.940.925.852.763.5—
CRUXEval-O (2-shot)34.130.421.236.4 (1-shot)55.0 (1-shot)—
ARC-C (10-shot)60.157.750.954.164.184.0 (5-shot)
ARC-E (10-shot)86.283.876.982.186.394.8 (5-shot)
HellaSwag (0-shot)74.677.968.866.573.877.4 (5-shot)
PIQA (10-shot)80.180.777.776.479.882.2 (5-shot)
WinoGrande (0-shot)65.666.961.064.471.168.0
BoolQ (10-shot)78.371.868.682.586.484.3 (5-shot)
AGIEval-en (0-shot)31.428.122.5——51.8 (5-shot)
DROP (3-shot F1)59.745.726.3——63.6 (5-shot)
TriviaQA (5-shot EM)59.159.647.4———
NQ-open (5-shot EM)21.721.313.4———

Notes:

  • Our columns come from the same suite (ohara.serve engine). S4a used the full tier, e.g. MMLU n=14,042, MMLU-Pro n=12,032, GSM8K n=1,319. The stage-1 columns used the lite tier (subsets, e.g. MMLU n=3,000, GSM8K n=500).
  • Qwen3 MMLU / MMLU-Pro / BBH / GSM8K / MATH / EvalPlus / CRUX-O come from the Qwen3 technical report (arXiv 2505.09388, Tables 7-8). Qwen3 ARC / HellaSwag / PIQA / WinoGrande / BoolQ come from our own lm-eval runs.
  • Trinity-Nano-Base numbers are from its model card (6B total / 1B active, 10T tokens). The card does not state its harness; its BBH shot setting is ambiguous.
  • S5b (the SFT init): 7-task bench (lite, n=7,000) macro 70.9 vs S4a 70.2: HellaSwag 77.0, ARC-E 84.5, ARC-C 61.8, PIQA 81.9, WinoGrande 66.8, BoolQ 76.7, MMLU-cloze 47.6. The full suite was not rerun on S5b.

Post-trained benchmarks

This model (step 6484), with the recommended decoding (sampled, presence penalty 1.0, one sample per item unless noted). off uses reasoning: off; medium uses reasoning: medium. Max new tokens: 4,096 for off; 8,192 for medium on IFEval / BFCL / MMLU / MMLU-Pro / GPQA; 16,384 for medium on math and code.

TaskMetricnoffmedium
IFEvalprompt-level strict54169.361.2
BFCL (7 categories x 100)accuracy, macro70015.052.4
GSM8Kaccuracy50077.684.4
MATH-500accuracy50058.669.6
AIME 2025avg@4305.011.7
AIME 2026avg@4302.59.2
HumanEval+pass@116465.973.2
MBPP+pass@120063.067.5
LiveCodeBench (newest 100 problems in the suite window)pass@11009.015.0
MMLU-Pro (CoT, chat)accuracy1,00040.753.2
MMLU (CoT, chat)accuracy1,00061.569.6
GPQA-Diamond (CoT, chat)accuracy19831.320.7
MMLU (5-shot log-likelihood)accuracy3,00056.7
  • Truncation at the token limit is high for some thinking runs: AIME 53-58%, LiveCodeBench 50%, GPQA 62%, MMLU-Pro 18%, MATH-500 14% (medium). Those scores are limited by rambling, not only by ability.
  • BFCL breakdown: medium scores simple 64, multiple 73, parallel 20, parallel-multiple 32, irrelevance 77, live-simple 59, live-multiple 42. off scores irrelevance 100 and every calling category 0-2 (see limitations).
  • IFEval over 3 seeds: off 71.1, medium 61.4 (truncated 1.7% / 3.0%). Greedy gives 69.9 / 55.6 with 15.7% / 20.1% truncated.

Long context

Needle-in-a-haystack (RULER-style, teacher-forced exact match). These are the S5b base gate numbers, measured on the base checkpoints, not on the SFT model:

Base checkpointTask4k32k64k128k
S5b (SFT init)NIAH single (n=33)45.56.19.19.1
S5bNIAH multikey (n=32)9.40.00.03.1
S4aNIAH single (n=33)60.69.13.06.1
S4aNIAH multikey (n=32)21.93.10.00.0

Needle token accuracy for S5b is 0.90 / 0.56 / 0.51 at 4k / 64k / 128k (S4a: 0.92 / 0.42 / 0.37). A paired rerun at larger n (single needle) gave S5b 55.6 at 4k (n=198) and 7.1 at 32k (n=99). For reference, published RULER scores for Qwen3-1.7B-Base are 70.6 / 57.2 / 43.0 at 32k / 64k / 128k. The model accepts 128k inputs, but exact retrieval beyond a few thousand tokens is weak.

Recommended decoding

Greedy decoding falls into repetition loops on this SFT-only model. Sample, and use a presence penalty:

ModeSystem linetemperaturetop_ppresence_penalty
Thinkingreasoning: low / medium / high (default medium)0.60.951.0
Non-thinkingreasoning: off0.70.81.0
  • Stop on <|im_end|> (151645) or <|endoftext|> (151643). generation_config.json carries the thinking defaults.
  • presence_penalty uses OpenAI semantics: the logit is lowered by 1.0 for every token already generated (the prompt is excluded). In ohara.serve, pass presence_penalty=1.0 per request or set OHARA_SERVE_PRESENCE_PENALTY=1.0.

Tool calling: use a thinking mode (reasoning: low or higher), not off. With tools offered and reasoning: off, the model almost always answers in prose ("I'll calculate …") instead of emitting <tool_call> (BFCL off 15.0 vs medium 52.4). There is no inference-side fix:

  • A first-token probe on 60 BFCL prompts found <tool_call> top-1 on 0/60.
  • Dropping the empty <think> prefill raises p(<tool_call>) from ~0.2% to ~1.2%, but it stays 0/60 at top-1.

The cause is in the training data rendering. Under the Qwen3 template, a no-think tool call followed by a tool response gets no think block, so in training the empty think block only ever preceded a final prose answer.

Limitations

  • No-think tool calling is weak (BFCL off 15.0): use reasoning: low/medium for tools (see above).
  • Repetition loops under greedy decoding. Use the recommended sampling with presence penalty 1.0.
  • Knowledge is below Qwen3-1.7B-class models (base MMLU 59.5 vs 62.6; MMLU-Pro and BBH also lower).
  • Thinking mode can ramble. Long traces hit the token limit often (see truncation above), and on GPQA thinking scores below non-thinking (20.7 vs 31.3).
  • Long-context retrieval is weak beyond a few thousand tokens despite the 128k training length.
  • SFT only: there is no preference or safety tuning beyond what the SFT data contains. Outputs may be wrong or unsafe.
  • Requires the ohara code at a revision with long_rope_theta (see Usage).

Revisions and related repos

  • This repo: main = step 6484 (final), branches step-006484, step-006250, step-006000. sft2-step-000834 is an experimental 1.75B-token continued SFT. It scored better on math and on BFCL medium (55.9), but no better on BFCL off and worse on code, so it was not promoted.
  • Base checkpoints: -s5 (S5b, 128k, SFT init), -s5a, -s4a, -s3b, -s3a, -s2, -mid1 (a side branch, not in this lineage), -stage1 (tags pre_decay, final).
  • Code: https://github.com/joey00072/ohara

License

No license has been chosen for these weights yet. Until one is published here, no license is granted. The SFT data draws on many public datasets with their own terms (including some with unset licenses on their cards). Check them before any downstream use.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
HybridCED
Ревизия весов
5456a52

0 моделей