oBunny logo: a pixel-art rabbit with > < eyes

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

Benchmark oBunny-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.0 GPT-2 Large (774M) GPT-2 XL (1.5B)
CORE 0.2326 0.2146 0.2565

CORE per task

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

Task oBunny-1.0 GPT-2 Large GPT-2 XL Granite-1B-A400M SmolLM2-360M Qwen2.5-0.5B
ARC-Easy 63.9 53.5 59.5 65.8 69.3 65.8
ARC-Challenge 35.3 26.4 29.9 34.9 40.9 35.4
HellaSwag (10-shot) 51.2 44.4 51.2 64.6 56.3 50.7
HellaSwag (0-shot) 51.8 44.0 50.2 63.5 55.5 52.0
PIQA 73.2 69.8 72.5 76.0 73.6 70.6
OpenBookQA 36.0 31.8 34.6 35.8 39.6 37.0
SQuAD 31.9 23.5 30.9 6.5 44.5 51.9
CoQA 26.0 23.0 28.0 28.6 32.8 33.6
BoolQ 58.4 56.7 61.9 50.8 59.6 60.5
BIG-bench operators 29.5 11.4 15.7 41.4 33.3 48.1
BIG-bench CS algorithms 43.6 44.0 41.7 48.1 45.4 45.5
BIG-bench QA Wikidata 42.5 48.0 53.1 67.4 61.3 60.0
LAMBADA 41.1 48.8 52.3 63.4 54.1 52.0
Jeopardy 5.9 4.5 9.2 33.5 31.4 20.5
Winograd 67.0 68.9 71.4 76.9 72.9 71.8
Winogrande 53.0 54.1 56.9 58.4 60.3 57.3
COPA 59.0 67.0 67.0 70.0 72.0 68.0
CommonsenseQA 19.8 27.0 22.7 35.9 18.4 64.6
AGIEval LSAT-AR 23.0 25.7 27.4 23.5 26.5 27.8
BIG-bench Dyck languages 15.3 22.5 24.7 18.4 23.6 8.6
BIG-bench repeat/copy logic 9.4 6.2 9.4 12.5 6.2 6.2
BIG-bench language identification 24.4 26.1 25.0 25.5 25.6 31.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.0 SmolLM2-360M Qwen2.5-0.5B Granite-3.0-1B-A400M
Parameters (total / active per token) 1.02B / 106M 362M (dense) 494M (dense) 1.33B / ~400M
Training tokens 100B 4T 18T 10T
Training compute vs oBunny 1x ~140x ~830x ~380x
CORE 0.2326 0.3137 0.3193 0.3098
HumanEval pass@1 24.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 tokens 100B tokens (final) Gain
HumanEval, 90 matched 5 (5.6%) 16 (17.8%) +12.2 points
HumanEval, 74 unmatched 12 (16.2%) 24 (32.4%) +16.2 points
MBPP, 63 matched 5 (7.9%) 25 (39.7%) +31.7 points
MBPP, 194 unmatched 45 (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:

Marker Id Marker Id
<|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

Parameters 1.022B total, 106.0M active per token (16.8M of them the embedding)
Layers / width 24 layers, d_model 512
Attention 8 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-forward layer 1 dense (ReLU², hidden 2560); layers 2-24 mixture of experts: 80 routed experts (top-4, hidden 512) + 1 shared expert (hidden 512)
Router sigmoid 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 balancing no 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 dropping none: dropless routing, no capacity factor
Expert use no 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)
Context trained on 8,192-token sequences
Other tied input/output embeddings, logit soft-cap 15, token smearing (a gated one-token look-back on the embeddings)
Vocabulary 32,768 (byte-level BPE trained on the training mix, mix32768.json)
Precision bf16 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.

Data Source License
Web text ClimbMix (NVIDIA Nemotron-ClimbMix, via karpathy/climbmix-400b-shuffle) CC BY-NC 4.0
Code common-pile/stackv2_edu_filtered permissively licensed code
Code-related web pages OpenCoder-LLM/opc-fineweb-code-corpus MIT (card)
Math HuggingFaceTB/finemath (finemath-4plus) ODC-BY
Textbooks HuggingFaceTB/smollm-corpus (Cosmopedia v2, generated by Mixtral-8x7B-Instruct) ODC-BY
Algorithmic / synthetic code OpenCoder-LLM/opc-annealing-corpus ODC-BY
Tool calling, agents nvidia/Nemotron-Agentic-v1 (Qwen3-235B outputs) CC BY 4.0
Code instructions nvidia/OpenCodeInstruct CC BY 4.0
Code with execution feedback m-a-p/Code-Feedback Apache 2.0
Code agent trajectories xingyaoww/code-act (CodeActInstruct) Apache 2.0
Math solutions nvidia/OpenMathInstruct-2 (generated by Llama-3.1-405B-Instruct) CC BY 4.0
Chat HuggingFaceTB/smoltalk (Smol-Magpie-Ultra generated by Llama-3.1-405B-Instruct) Apache 2.0 + source licenses
Sandbox agent episodes generated 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}
}
Downloads last month
116
Safetensors
Model size
1B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train Leporidae-AI/oBunny-1.0