/ Модель

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

Контекст
8 192 токена
Лицензия
CC BY-NC 4.0
Архитектура
obunny · dense
Библиотека
transformers
Опубликована
28 ноя 2026

oBunny-1.0

Генерация текстаТекст → текст
242скачиваний за 30 дней1лайквеса обновлены29 ноя 2026

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

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

Небольшая базовая MoE-модель Leporidae-AI для продолжения английского текста и кода, экспериментов и дальнейшего дообучения.

oBunny-1.0 — базовая языковая модель Leporidae-AI, обученная с нуля без этапов SFT и RL. Это архитектура Mixture-of-Experts общим объёмом 1,02 млрд параметров, из которых на каждом токене активны около 106 млн. Модель использует 24 слоя и обучалась на 100 млрд токенов; для работы с Transformers 5.x требуется доверенная загрузка пользовательского кода архитектуры.

Модель предназначена для продолжения текста и кода, экспериментов с небольшими эффективными моделями, обучения и использования как основы для дообучения и создания instruction-моделей. Она преимущественно рассчитана на английский язык и код, особенно Python; формат инструкций встречался в части обучающих данных, но модель не проходила отдельную настройку следования инструкциям. В README приведены результаты бенчмарков, включая MBPP и HumanEval, однако часть задач могла присутствовать в обучающих данных.

Модель склонна к фактическим и логическим ошибкам, может уверенно выдавать неверные сведения и слабо удерживает детали на длинном контексте: обучение проводилось на последовательностях длиной 8 тысяч токенов, но надёжное извлечение факта в тесте ограничивалось примерно 2,5 тысячами токенов. У модели нет настройки безопасности; сгенерированный код нужно проверять. Лицензия CC BY-NC 4.0 требует указания авторства и ссылки на страницу модели и ограничивает коммерческое использование.

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

  • продолжение фрагментов программного кода
  • генерация простых решений задач на Python
  • эксперименты с компактными моделями Mixture-of-Experts
  • дообучение базовой модели под инструкции
  • изучение обучения языковой модели с ограниченным бюджетом вычислений

Ограничения

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

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

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

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

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

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

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

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

Открыть на Hugging Face

oBunny-1.0 (base)

Created by Leporidae-AI. If you use, share or adapt oBunny-1.0, please credit "oBunny-1.0 by Leporidae-AI" and link this page (required by the CC BY-NC 4.0 license).

oBunny-1.0 is a 1.02B-parameter mixture-of-experts language model that uses only 106M parameters per token. It was trained from scratch on a single consumer GPU (one RTX 5080, 16 GB, in a home PC) on 100B tokens. The weights, the model and training code, and the full training log are all in this repo.

This is a base model with no fine-tuning (no SFT or RL step): it continues text and code. Its pretraining did end on a mix that included ~4B tokens of chat-format instruction data (10% of the last ~43B tokens; see Chat format), so it can follow simple requests written in that format, unlike a pure base model such as GPT-2. It is not tuned to refuse harmful requests. An instruction-tuned version with reasoning (oBunny-1.0-Instruct) is planned as a separate release.

Highlights

  • General ability between GPT-2 Large (774M) and GPT-2 XL (1.5B) on the CORE benchmark suite, with ~14x fewer parameters active per token than GPT-2 XL, and ahead of GPT-2 XL on ARC, PIQA, OpenBookQA and SQuAD (per-task table).
  • Writes working code: MBPP 41.8% (greedy pass@1) on the 194 problems with no match in our scan of the training data (41.2% on all 257); HumanEval 24.4%, but 90 of its 164 problems appeared in the training data (see Contamination). With the same evaluation code it is ahead of SmolLM2-360M and level with Granite-3.0-1B-A400M and Qwen2.5-0.5B on code (comparison), models trained with ~140-830x more compute. Given 20 tries per problem it solves 70.4% of MBPP (pass@20).
  • Small training budget: ~6x10^19 FLOPs (6 x active parameters x tokens). By the same estimate, SmolLM2-360M (4T tokens) used ~140x and Qwen2.5-0.5B (18T tokens) ~830x more. Those models are well ahead on general knowledge (CORE ~0.31-0.32 vs 0.23) and grade-school math (Qwen2.5-0.5B: GSM8K 41.9% vs 6.2%).

Results

All oBunny numbers are our own runs with the evaluation code in code/. Part of HumanEval and MBPP appeared in the training data: see Contamination.

Code, math and held-out loss

BenchmarkoBunny-1.0
HumanEval pass@1 (greedy)24.4% (40/164)
HumanEval pass@10 / pass@20 (sampled)39.6% / 44.5%
MBPP pass@1 (sanitized test set, greedy)41.2% (106/257); 41.8% (81/194) on the problems with no match in the training data
MBPP pass@10 / pass@20 (sampled)64.3% / 70.4%
GSM8K (8-shot chain of thought, greedy)6.2%
Validation bits/byte, web text (8,192 held-out ClimbMix documents)0.7541
Validation bits/byte, Python (2,000 held-out Python files from Stack-Edu, never trained on)0.3892

pass@10 and pass@20: 20 samples per problem at temperature 0.8 (top-p 0.95), scored with the unbiased estimator of the Codex paper (Chen et al., 2021); code/passk_eval.py. The gap between pass@1 and pass@20 shows how many more problems the model can solve some of the time, which is what later reinforcement learning on tested answers builds on.

CORE

CORE = 22 in-context tasks of the DCLM evaluation suite, centered (0 = chance). The GPT-2 numbers are the reference results shipped with the CORE evaluation bundle.

oBunny-1.0GPT-2 Large (774M)GPT-2 XL (1.5B)
CORE0.23260.21460.2565

CORE per task

Accuracy (%) per task; Granite, SmolLM2 and Qwen2.5 are our runs with the same code (code/peer_eval.py).

TaskoBunny-1.0GPT-2 LargeGPT-2 XLGranite-1B-A400MSmolLM2-360MQwen2.5-0.5B
ARC-Easy63.953.559.565.869.365.8
ARC-Challenge35.326.429.934.940.935.4
HellaSwag (10-shot)51.244.451.264.656.350.7
HellaSwag (0-shot)51.844.050.263.555.552.0
PIQA73.269.872.576.073.670.6
OpenBookQA36.031.834.635.839.637.0
SQuAD31.923.530.96.544.551.9
CoQA26.023.028.028.632.833.6
BoolQ58.456.761.950.859.660.5
BIG-bench operators29.511.415.741.433.348.1
BIG-bench CS algorithms43.644.041.748.145.445.5
BIG-bench QA Wikidata42.548.053.167.461.360.0
LAMBADA41.148.852.363.454.152.0
Jeopardy5.94.59.233.531.420.5
Winograd67.068.971.476.972.971.8
Winogrande53.054.156.958.460.357.3
COPA59.067.067.070.072.068.0
CommonsenseQA19.827.022.735.918.464.6
AGIEval LSAT-AR23.025.727.423.526.527.8
BIG-bench Dyck languages15.322.524.718.423.68.6
BIG-bench repeat/copy logic9.46.29.412.56.26.2
BIG-bench language identification24.426.125.025.525.631.4

Strong on reasoning-style and reading tasks, weaker on recalling facts (Wikidata, LAMBADA, Jeopardy): with 106M active parameters and 100B tokens, it has seen and stored far fewer facts than models trained on trillions of tokens.

Compared with modern small models

All columns are our runs with the same evaluation code, prompts and scoring (code/peer_eval.py), greedy decoding. Training compute is estimated as 6 x active parameters x training tokens.

oBunny-1.0SmolLM2-360MQwen2.5-0.5BGranite-3.0-1B-A400M
Parameters (total / active per token)1.02B / 106M362M (dense)494M (dense)1.33B / ~400M
Training tokens100B4T18T10T
Training compute vs oBunny1x~140x~830x~380x
CORE0.23260.31370.31930.3098
HumanEval pass@124.4%11.0%28.7%23.2%
MBPP pass@1 (sanitized test, 257)41.2%29.6%40.1%38.9%
GSM8K (8-shot chain of thought)6.2%4.6%41.9%22.5%

With a small fraction of their training compute, oBunny is ahead of SmolLM2-360M and level with Granite and Qwen2.5-0.5B on code; all three are well ahead on general knowledge (CORE) and grade-school math, which they trained on far more of. Notes: code prompts were run both with and without their trailing newline and each model's better score is shown, because some tokenizers (SmolLM2's, Granite's) merge a newline with the next line's indentation and need it removed, while Qwen's does not. Granite's CORE is held down by SQuAD (6.5%: it knows many answers but starts them with a newline, which CORE's exact match counts as wrong) and BoolQ. Qwen's and IBM's own reports give similar numbers for their models with their own setups. We have not checked these models' training data for the benchmarks.

Contamination

Data in the anneal mix (the last ~43B tokens) contains the text of 90 of the 164 HumanEval problems and 63 of the 257 MBPP problems (verbatim matches of the problem description; mostly OpenCoder's annealing corpus, which re-implements HumanEval problems in other languages with their solutions, and Code-Feedback; test code for only one MBPP problem). The main web and code corpus was too large to scan, so some further exposure there is likely.

To measure the effect, we compare the matched and unmatched problems before any matched data was seen (the snapshots/snap_55.00B.pt checkpoint, 55B tokens) and at the end (greedy pass@1, problems solved):

55B tokens100B tokens (final)Gain
HumanEval, 90 matched5 (5.6%)16 (17.8%)+12.2 points
HumanEval, 74 unmatched12 (16.2%)24 (32.4%)+16.2 points
MBPP, 63 matched5 (7.9%)25 (39.7%)+31.7 points
MBPP, 194 unmatched45 (23.2%)81 (41.8%)+18.6 points

On HumanEval the matched problems gained less than the rest: no sign that the leaked copies helped. On MBPP they gained ~13 points more, consistent with a leak worth roughly 8 problems (~3 points of the full-set score), so we quote MBPP on the unmatched problems (41.8%). On both sets the unmatched problems are the easier ones (only longer problem descriptions could be matched), so unmatched scores are not comparable to other models' full-set scores.

Usage

With transformers (5.x; the architecture is custom, so trust_remote_code=True is needed):

from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("Leporidae-AI/oBunny-1.0")
model = AutoModelForCausalLM.from_pretrained("Leporidae-AI/oBunny-1.0", trust_remote_code=True)
inputs = tok("def fibonacci(n):", return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tok.decode(out[0], skip_special_tokens=True))

generate() uses a key/value cache (~19 tokens/s on 6 CPU threads) and supports greedy and sampled decoding, batches and streamers; pipeline("text-generation", model=..., trust_remote_code=True) works too. The weights take ~2.0 GB in bf16 (all 80 experts per layer are loaded, 4 are used per token). On a GPU (RTX 5080, Windows), generating one sequence at a time is limited by per-token overhead (~14 tokens/s with generate(), 2.2 GB of GPU memory); batches are much faster (~440 tokens/s in total at batch 96 with the KV-cache decoder in code/kvdecode.py).

Without transformers:

pip install torch tokenizers safetensors huggingface_hub     # PyTorch 2.5 or newer
hf download Leporidae-AI/oBunny-1.0 --exclude "*.pt" --local-dir oBunny-1.0
cd oBunny-1.0
python generate.py "def fibonacci(n):"
python generate.py "The capital of France is" --max-new 40 --temperature 0

Both use a CUDA GPU when one is available and the CPU otherwise. It is not available for llama.cpp / GGUF.

Chat format

The instruction data in pretraining used single-token markers. They are byte tokens that ordinary text never produces, so they are inserted by id, not typed:

MarkerIdMarkerId
<|user|>178<|tool|>181
<|assistant|>179<|system|>182
<|end|>180<|call|>183

A conversation is <bos> [<|system|> text <|end|>] <|user|> text <|end|> <|assistant|> reply <|end|> .... A tool call ends an assistant turn with <|call|>, the tool name on its own line and one <name>value</name> per argument; the result comes back as <|tool|> result <|end|>. (Ids 184 / 185 are reserved for <think> / </think> in the instruction-tuned version; this model has not been trained on them.)

import torch
USER, ASSISTANT, END = 178, 179, 180
ids = [tok.bos_token_id, USER] + tok.encode("Write a Python function that returns the square of a number.",
                                             add_special_tokens=False) + [END, ASSISTANT]
out = model.generate(torch.tensor([ids]), max_new_tokens=200, do_sample=False, eos_token_id=END)
reply = out[0, len(ids):].tolist()
print(tok.decode(reply[:-1] if reply[-1] == END else reply))

Model details

Parameters1.022B total, 106.0M active per token (16.8M of them the embedding)
Layers / width24 layers, d_model 512
Attention8 heads of 64 (no key/value sharing); sliding window, pattern short-short-short-long: 512 tokens, every 4th layer and the last 8,192 (6 long layers); RoPE (base 10,000); QK-norm (RMS, no gain) with a fixed scale of 0.12; per-head sigmoid output gate; value residual (every layer mixes in the first layer's values); exclusive self-attention (a learned share of each head's own value is removed from its output)
Feed-forwardlayer 1 dense (ReLU², hidden 2560); layers 2-24 mixture of experts: 80 routed experts (top-4, hidden 512) + 1 shared expert (hidden 512)
Routersigmoid scores; the top 4 experts are chosen by score + a load-balancing bias, and their scores, renormalized to sum to 1, weight the expert outputs (DeepSeek-V3 style)
Load balancingno auxiliary loss: a per-expert selection bias is nudged toward equal load after every optimizer step (rate 0.01, proportional to each expert's load error)
Token droppingnone: dropless routing, no capacity factor
Expert useno dead experts: averaged over held-out web and Python text, every expert of every layer gets at least 10% of an equal share; 215 of the 1,840 experts are domain specialists (busy on one, nearly idle on the other)
Contexttrained on 8,192-token sequences
Othertied input/output embeddings, logit soft-cap 15, token smearing (a gated one-token look-back on the embeddings)
Vocabulary32,768 (byte-level BPE trained on the training mix, mix32768.json)
Precisionbf16 training (experts stored in bf16)

Training

  • Hardware: one NVIDIA RTX 5080 (16 GB), Windows. Pretraining took 564 hours (23.5 days) of GPU time at ~50K tokens/s (~29% MFU), spread over six weeks around the owner's own use of the PC.
  • Optimizer: Muon (NorMuon variant, Polar Express orthogonalization) for the hidden weight matrices, experts included (peak learning rate 0.03; momentum 0.95, warmed up from 0.85 over 300 steps); AdamW (betas 0.8 / 0.95) for the embedding (0.03), the routers (0.005) and the attention gates and scalar parameters (0.02). No weight decay. Batch 491,520 tokens (60 x 8,192), 203,450 steps. Learning rate: 200-step warmup, constant, then a linear decay to zero over the last 40% (from step ~122K, 60B tokens).
  • Data mix: main phase (first ~57B tokens): 50% web text, 35% code (~60% Python), 15% code-related web pages. Anneal phase (last ~43B tokens): web 27%, Python 19%, other code 8%, code-related web 11%, math 9%, textbooks 9%, algorithmic/synthetic code 7%, chat-format instruction data 10%. Overall, approximately: web ~40B tokens, code ~32B, code-related web ~13B, math ~4B, textbooks ~4B, algorithmic/synthetic code ~3B, instruction data ~4B.
  • Energy: about 200 kWh for the GPU (board power x GPU hours, an estimate).

Training data

Licenses as stated on each dataset's card.

DataSourceLicense
Web textClimbMix (NVIDIA Nemotron-ClimbMix, via karpathy/climbmix-400b-shuffle)CC BY-NC 4.0
Codecommon-pile/stackv2_edu_filteredpermissively licensed code
Code-related web pagesOpenCoder-LLM/opc-fineweb-code-corpusMIT (card)
MathHuggingFaceTB/finemath (finemath-4plus)ODC-BY
TextbooksHuggingFaceTB/smollm-corpus (Cosmopedia v2, generated by Mixtral-8x7B-Instruct)ODC-BY
Algorithmic / synthetic codeOpenCoder-LLM/opc-annealing-corpusODC-BY
Tool calling, agentsnvidia/Nemotron-Agentic-v1 (Qwen3-235B outputs)CC BY 4.0
Code instructionsnvidia/OpenCodeInstructCC BY 4.0
Code with execution feedbackm-a-p/Code-FeedbackApache 2.0
Code agent trajectoriesxingyaoww/code-act (CodeActInstruct)Apache 2.0
Math solutionsnvidia/OpenMathInstruct-2 (generated by Llama-3.1-405B-Instruct)CC BY 4.0
ChatHuggingFaceTB/smoltalk (Smol-Magpie-Ultra generated by Llama-3.1-405B-Instruct)Apache 2.0 + source licenses
Sandbox agent episodesgenerated by this project's scripts-

Files

  • model.safetensors + config.json: the weights (safe format) and the model config. generate.py: run it.
  • tokenizer.json, tokenizer_config.json, special_tokens_map.json, generation_config.json, configuration_obunny.py, modeling_obunny.py, obunny_arch.py, obunny_kvdecode.py: transformers support.
  • model.pt: the same weights as a PyTorch checkpoint (a pickle: only load pickles you trust).
  • ckpt_last_with_optimizer.pt: the full training state (weights + optimizer) to continue pretraining.
  • snapshots/snap_55.00B.pt: weights at 55B tokens, before the anneal mix (so before the instruction data, the Llama-generated data and the anneal sources where the HumanEval/MBPP matches were found).
  • mix32768.json: the tokenizer as trained. code/: the model, training and evaluation code used for this model (code_eval.py, passk_eval.py, gsm8k_eval.py, core_eval.py, peer_eval.py produced the results above).
  • log.jsonl: the training log. MANIFEST.json: size and md5 of every file.

License

CC BY-NC 4.0 (non-commercial), because the largest pretraining source (ClimbMix) is CC BY-NC 4.0. Attribution: "oBunny-1.0 by Leporidae-AI", with a link to this page.

Built with Llama: part of the instruction data in the anneal mix (nvidia/OpenMathInstruct-2 and the Smol-Magpie-Ultra part of HuggingFaceTB/smoltalk) was generated by Llama-3.1-405B-Instruct. Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.

Intended use and limitations

Intended for research, education and non-commercial projects: studying small and efficient models, fine-tuning, and as a starting point for instruction tuning.

  • It is a small base model: it makes factual and reasoning mistakes and states wrong things confidently, especially facts (use retrieval or search for those).
  • It has no safety tuning. It can produce biased, toxic or insecure output; do not run its code without review.
  • Mostly English and code (mostly Python); other languages are weak.
  • Long inputs: it was trained on 8K-token sequences, and longer input runs through the sliding window, but recall of a specific detail fades well before that: in a passkey test it reliably found a number planted up to ~2.5K tokens back, and none planted 4K or more tokens back.
  • Part of HumanEval and MBPP is in the training data: see Contamination.

Citation

@misc{obunny2026,
  title  = {oBunny-1.0: a 1B mixture-of-experts language model trained from scratch on one consumer GPU},
  author = {Leporidae-AI},
  year   = {2026},
  url    = {https://huggingface.co/Leporidae-AI/oBunny-1.0}
}

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
OBunnyForCausalLM
Ревизия весов
20d87e5

0 моделей