Instructions to use Leporidae-AI/oBunny-1.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Leporidae-AI/oBunny-1.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Leporidae-AI/oBunny-1.1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Leporidae-AI/oBunny-1.1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Leporidae-AI/oBunny-1.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Leporidae-AI/oBunny-1.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Leporidae-AI/oBunny-1.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Leporidae-AI/oBunny-1.1
- SGLang
How to use Leporidae-AI/oBunny-1.1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Leporidae-AI/oBunny-1.1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Leporidae-AI/oBunny-1.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Leporidae-AI/oBunny-1.1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Leporidae-AI/oBunny-1.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Leporidae-AI/oBunny-1.1 with Docker Model Runner:
docker model run hf.co/Leporidae-AI/oBunny-1.1
oBunny-1.1 (base)
Created by Leporidae-AI. If you use, share or adapt oBunny-1.1, please credit "oBunny-1.1 by Leporidae-AI" and link this page (required by the CC BY-NC 4.0 license).
oBunny-1.1 is oBunny-1.0 after a short attention retune: 246M more tokens of training (0.25% of its pretraining, 86 minutes on the same single RTX 5080), with a new learnable sharpness setting in its long-range attention layers. It is a 1.02B-parameter mixture-of-experts model that uses 106M parameters per token.
What changed:
- It finds details in its context much more reliably. In a test that hides a 5-digit number inside real documents and asks for it back, exact recall within 4K tokens went from 69% to 91% (table).
- The context is 4,096 tokens (1.0: 8,192). Neither model could recall details planted more than ~4K tokens back, and cutting the window made recall within 4K better (why).
- Everything else is at 1.0's level: the same code results (HumanEval 40/164 greedy, MBPP 109 vs 106 of 257), GSM8K 5.8% vs 6.2% (noise), held-out loss +0.1%. CORE dipped from 0.2326 to 0.2217, mostly on BoolQ (details).
This is still a base model (no SFT or RL step): it continues text and code. Like 1.0, its training included chat-format instruction data, so it can follow simple requests written in that format (Chat format). It is not tuned to refuse harmful requests. An instruction-tuned version is in progress.
Results
All numbers are our own runs with the evaluation code in code/, greedy decoding unless noted.
Recall within the context
Passkey retrieval with varied real haystacks (code/passkey_docs.py): a sentence
"The pass key is 12345. Remember it." is placed in a long stretch of held-out text, and the model must complete
"The pass key is" at the end. Every case takes its text from a different held-out document (10 prose, 10 code), at 5
lengths (2K-8K tokens) and 5 depths, 500 cases in all. A case counts when greedy decoding writes the whole number.
| Distance from the key to the question | oBunny-1.0 | oBunny-1.1 |
|---|---|---|
| 0-1K tokens | 136/161 (84%) | 155/161 (96%) |
| 1K-2K | 85/119 (71%) | 106/119 (89%) |
| 2K-3K | 59/100 (59%) | 94/100 (94%) |
| 3K-4K | 11/40 (28%) | 28/40 (70%) |
| All within 4K | 291/420 (69%) | 383/420 (91%) |
| 4K-7.7K | 6/80 | 1/80 (beyond the window) |
The gain holds for both prose (126/210 -> 182/210) and code (165/210 -> 201/210).
Why 4K
The retune was trained with the long layers seeing 8,192 tokens back. With that window, 1.1 still found few keys more than 4K back (13/80) and found fewer within 4K (365/420 instead of 383/420): the extra distant text mostly adds distraction. With the window cut to 4,096 it is the same model for any input up to 4,096 tokens (identical outputs, checked), and better past that. Longer inputs still run, as a sliding window: the model sees the last 4,096 tokens.
Code, math and held-out loss
| Benchmark | oBunny-1.0 | oBunny-1.1 |
|---|---|---|
| HumanEval pass@1 (greedy) | 24.4% (40/164) | 24.4% (40/164) |
| HumanEval pass@1 / pass@10 / pass@20 (sampled) | 19.3% / 39.6% / 44.5% | 17.9% / 38.9% / 44.5% |
| MBPP pass@1 (sanitized test set, greedy) | 41.2% (106/257) | 42.4% (109/257) |
| MBPP, the 194 problems with no match in the training data | 41.8% (81/194) | 42.8% (83/194) |
| MBPP pass@1 / pass@10 / pass@20 (sampled) | 31.1% / 64.3% / 70.4% | 28.1% / 65.9% / 73.2% |
| GSM8K (8-shot chain of thought) | 6.2% (82/1319) | 5.8% (76/1319) |
| Validation bits/byte, web text (8,192 held-out ClimbMix documents) | 0.7541 | 0.7550 |
| Validation bits/byte, Python (2,000 held-out Stack-Edu files) | 0.3892 | 0.3902 |
Sampled: 20 samples per problem at temperature 0.8 (top-p 0.95), unbiased estimator of Chen et al. (2021)
(code/passk_eval.py). For contamination of HumanEval and MBPP in the training data, see the
oBunny-1.0 card; the retune's new data was
decontaminated against these benchmarks, and the rest of it is a replay of 1.0's data.
CORE
CORE = 22 in-context tasks of the DCLM evaluation suite, centered (0 = chance).
| oBunny-1.0 | oBunny-1.1 | GPT-2 Large (774M) | GPT-2 XL (1.5B) | |
|---|---|---|---|---|
| CORE | 0.2326 | 0.2217 | 0.2146 | 0.2565 |
Most of the drop is three tasks: BoolQ 58.4 -> 53.2 (yes/no questions; both models score below the 62% that always answering "yes" would get, so this looks like a shift in how often it says yes rather than lost knowledge), BIG-bench repeat/copy logic 9.4 -> 3.1 (2 of its 32 questions) and Winograd 67.0 -> 65.2. The other 19 tasks net out at about zero; the reading tasks went up (SQuAD 31.9 -> 32.5, CoQA 26.0 -> 26.2).
CORE per task
| Task | oBunny-1.0 | oBunny-1.1 |
|---|---|---|
| ARC-Easy | 63.9 | 64.2 |
| ARC-Challenge | 35.3 | 35.9 |
| HellaSwag (10-shot) | 51.2 | 51.2 |
| HellaSwag (0-shot) | 51.8 | 51.4 |
| PIQA | 73.2 | 72.9 |
| OpenBookQA | 36.0 | 36.0 |
| SQuAD | 31.9 | 32.5 |
| CoQA | 26.0 | 26.2 |
| BoolQ | 58.4 | 53.2 |
| BIG-bench operators | 29.5 | 29.0 |
| BIG-bench CS algorithms | 43.6 | 44.1 |
| BIG-bench QA Wikidata | 42.5 | 42.4 |
| LAMBADA | 41.1 | 41.4 |
| Jeopardy | 5.9 | 5.6 |
| Winograd | 67.0 | 65.2 |
| Winogrande | 53.0 | 53.7 |
| COPA | 59.0 | 59.0 |
| CommonsenseQA | 19.8 | 20.3 |
| AGIEval LSAT-AR | 23.0 | 21.3 |
| BIG-bench Dyck languages | 15.3 | 14.0 |
| BIG-bench repeat/copy logic | 9.4 | 3.1 |
| BIG-bench language identification | 24.4 | 24.8 |
For comparisons with GPT-2, SmolLM2, Qwen2.5 and Granite, see the oBunny-1.0 card; 1.1 is level with 1.0 on everything there except the small CORE drop above.
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.1")
model = AutoModelForCausalLM.from_pretrained("Leporidae-AI/oBunny-1.1", 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 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). Speed is the same as 1.0 (19 tokens/s on 6 CPU threads).
Without transformers:
pip install torch tokenizers safetensors huggingface_hub # PyTorch 2.5 or newer
hf download Leporidae-AI/oBunny-1.1 --exclude "*.pt" --local-dir oBunny-1.1
cd oBunny-1.1
python generate.py "def fibonacci(n):"
Both use a CUDA GPU when one is available and the CPU otherwise. It is not available for llama.cpp / GGUF.
Chat format
The same single-token markers as 1.0, inserted by id:
| Marker | Id | Marker | Id | |
|---|---|---|---|---|
<|user|> |
178 | <|tool|> |
181 | |
<|assistant|> |
179 | <|system|> |
182 | |
<|end|> |
180 | <|call|> |
183 | |
<think> |
184 | </think> |
185 |
A conversation is <bos> [<|system|> text <|end|>] <|user|> text <|end|> <|assistant|> reply <|end|> ...; see the
oBunny-1.0 card for tool calls and an example. New in
1.1: the retune data included on the order of 20M tokens of reasoning traces in this format, with the reasoning inside
<think> ... </think> at the start of the assistant turn and, on most traces, a system line
Reasoning effort: low|medium|high. That is a small amount: the model has seen the format, but it has not been
tuned to reason well.
Model details
The same architecture as oBunny-1.0, with two changes:
| Parameters | 1.022B total, 106.0M active per token (+3,072 new parameters) |
| Long-range attention | the 6 long layers (every 4th) attend 4,096 tokens back (1.0: 8,192); the 18 other layers 512 |
| Query gain (new) | a learnable gain per head and dimension on the queries of the 6 long layers (6 x 8 heads x 64 = 3,072 parameters, started at 1). Attention scores in this architecture are capped, and the gain lets a head focus more sharply on one token; it learned modest values (up to ~1.4, the largest in layer 19) |
Training
- Pretraining: as oBunny-1.0 (100B tokens, 564 GPU hours on one RTX 5080).
- Retune: 500 steps x 491,520 tokens = 245.76M tokens, 86 minutes on the same GPU. All learning rates at 10% of
pretraining's peaks, 30 warmup steps, then a linear decay to zero over the last 90%. Data, about half each:
- a replay of 1.0's final-phase (anneal) mix, so nothing new there;
- a long-context mix: whole GitHub repositories with permissive licenses, long documents from the same web, math and code-web sources as pretraining, reasoning traces (below) and short rows of the anneal mix. The new parts were decontaminated against CORE, GSM8K, MATH, HumanEval and MBPP (13-gram matches; HumanEval/MBPP fingerprints for the repositories).
Training data
Everything in oBunny-1.0's training data, plus the new parts of the retune (licenses as stated on each dataset's card):
| Data | Source | License |
|---|---|---|
| Whole code repositories | GitHub repositories created before mid-2023 | MIT, Apache 2.0, BSD-2/3-Clause, ISC, Unlicense, 0BSD only |
| Math reasoning traces | nvidia/OpenMathReasoning (DeepSeek-R1 / QwQ-32B outputs) | CC BY 4.0 |
| Math, STEM and chat reasoning traces | nvidia/Nemotron-Post-Training-Dataset-v1 (DeepSeek-R1-0528 / Qwen3-235B-A22B outputs) | CC BY 4.0 |
| Reasoning traces | open-thoughts/OpenThoughts3-1.2M (QwQ-32B outputs) | Apache 2.0 |
| Chat, instruction following, tables, function calling | HuggingFaceTB/smoltalk2 (Qwen3, DeepSeek-R1/V3 and other models' outputs) | Apache 2.0 (+ CC BY 4.0 for its xLAM function-calling part) |
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:transformerssupport.model.pt: the same weights as a PyTorch checkpoint (a pickle: only load pickles you trust).mix32768.json: the tokenizer as trained (used bygenerate.py).code/: the model, training and evaluation code;log.jsonl: the retune's 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.1 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.
- Context: it sees the last 4,096 tokens. Recall is good up to ~3K tokens back and weaker in the last stretch before 4K (70% at 3-4K in the test above); anything further back is not visible to it.
- Part of HumanEval and MBPP is in the training data (see the 1.0 card).
Citation
@misc{obunny2026,
title = {oBunny-1.1: 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.1}
}
- Downloads last month
- 348
Model tree for Leporidae-AI/oBunny-1.1
Base model
Leporidae-AI/oBunny-1.0