ODYSSEY-100M-5B-BASE is a 100,248,960-parameter decoder-only Transformer language model, pretrained from scratch on 5,000,003,584 tokens of English educational web text, mathematics and permissively licensed multilingual source code.
| Developed by | the ODYSSEY project. The repository's commit author is Balaji Venkateswaran; no organisational affiliation is recorded |
| Model type | causal LM, base (pretrained only) |
| Languages | English text; mathematics (LaTeX / prose); source code (Java, C, JavaScript, C++, Python, PHP, Go, C#, Ruby, TypeScript and others) |
| Date | trained 2026-11-16 (0–2B) and 2026-11-17 (2–5B); frozen 2026-11-17 |
| Layers / hidden / FFN | 15 / 640 / SwiGLU 2,240 |
| Attention | grouped-query attention: 10 query heads, 2 key-value heads, head dim 64; causal; SDPA |
| Positions / norm | RoPE (θ = 10,000) / pre-norm RMSNorm (ε = 1e-5) + final RMSNorm |
| Context | 1,024 tokens |
| Embeddings | input and output tied (32,768 × 640) |
| Biases / dropout | none / none |
100,248,960 = embedding 20,971,520 + 15 × (attention 983,040 + SwiGLU 4,300,800) + RMSNorm 19,840. The tied
matrix is counted once. Verified on the frozen weights (FINAL_5B_CHECKPOINT_AUDIT.md).
odyssey-32k byte-level BPE.
<|pad|>=0, <|bos|>=1, <|eos|>=2.d8129cef0aa39c97aa9332d3f1d2f77dbb26121c098f2dec7b002ba959f3ec1a.\n (for example after def f():) creates an unnatural token boundary and degrades code completion.
End prompts on : or { instead (CAPABILITY_SUITE_RESULTS.md).Next-token cross-entropy on 1,024-token windows of EOS-separated documents. Loss is computed on all tokens.
| Domain | Share of sampled windows | Source (pinned revision) | Train tokens available |
|---|---|---|---|
| General | 65% | FineWeb-Edu, sample-10BT (87f09149) |
3.27B |
| Mathematics | 20% | FineMath, finemath-4plus (e92b25a6) |
1.00B |
| Code | 15% | codeparrot/github-code-clean (c48d40f9); MIT, Apache-2.0, BSD-2/3, ISC, CC0 and Unlicense only; HTML/CSS excluded |
0.76B |
Processing:
Held-out partitions are source-disjoint by URL host or repository.
Code language mix (share of code tokens): Java 19.6%, C 13.3%, JavaScript 13.5%, C++ 10.8%, Python 9.4%, PHP 7.1%, Markdown 6.9%, C# 4.9%, Go 4.2%, and others < 3% each.
order_v3.npz sha aa8af0ad…).| Group | Optimizer | Settings |
|---|---|---|
| 75 hidden matrices (79.26M params) | Muon | lr 0.01, momentum 0.95 (Nesterov), 5 Newton–Schulz steps, weight decay 0.1 |
| Tied embedding + 31 RMSNorm gains (20.99M) | AdamW | lr 0.001, β (0.9, 0.95), ε 1e-8, weight decay 0 |
Schedule: 3% linear warmup, then cosine to 0.1× over the full 38,147 steps.
Other settings:
LR selection: a pre-registered 3-arm pilot.
torch.compile.ODYSSEY_100M_COMPLETE_COMPUTE_AND_COST_REPORT.md.docs/, reports/).FINAL_5B_EXPORT_INDEPENDENT_VERIFICATION.md).This was a one-shot registered run (FC-1, 2026-11-17, RTX 4060). The set is now closed. It held 3,156 / 2,338 /
2,477 documents and 12.0M scored tokens. Details: FINAL_5B_SEALED_CONFIRMATION_REPORT.md.
| Domain | NLL | Perplexity | Δ vs 2B checkpoint [95% CI] |
|---|---|---|---|
| General | 3.0849 | 21.87 | −0.2961 [−0.2990, −0.2933] |
| Mathematics | 2.3687 | 10.68 | −0.2671 [−0.2702, −0.2640] |
| Code | 1.5261 | 4.60 | −0.2543 [−0.2611, −0.2474] |
| Weighted (0.65/0.20/0.15) | 2.7078 | 15.00 | −0.2841 [−0.2863, −0.2818] |
The sealed partition is harder than dev for both models (math +0.45 nats, general +0.10). The 2B control shows the same gap, so this is a partition difference, not overfitting to dev.
| Domain | NLL (nats/token) | Perplexity | Δ vs 2B checkpoint [95% CI] |
|---|---|---|---|
| General | 2.9832 | 19.75 | −0.2927 [−0.2948, −0.2908] |
| Mathematics | 1.9161 | 6.79 | −0.2644 [−0.2687, −0.2603] |
| Code | 1.5447 | 4.69 | −0.2554 [−0.2615, −0.2492] |
| Weighted (0.65/0.20/0.15) | 2.5540 | 12.86 | −0.2815 [−0.2833, −0.2797] |
Code by language: Java 1.27, C++ 1.47, C 1.53, JavaScript 1.56, Python 1.81, others 1.68.
These values are tokenizer-specific. They are not comparable to other models' perplexities.
Low perplexity does not imply reasoning or coding ability. The probes below are exploratory.
CAPABILITY_SUITE_RESULTS.md.| Probe | 5B | 2B | Chance |
|---|---|---|---|
| Factual cloze (40, likelihood) | 0.90 | 0.80 | 0.25 |
| Common-sense completion (25) | 0.96 | 0.92 | 0.50 |
| Entity retention over about 300 tokens (100) | 0.73 | 0.47 | 0.25 |
| Single-digit arithmetic, 3-shot (150) | 0.35 | 0.05 | — |
| Multi-digit / algebra / word problems, 3-shot (450) | ≤ 0.12 per task | ≤ 0.10 | — |
| Python functions passing tests (16; suite v1.1) | 2 / 16 | 1 / 16 | — |
| JavaScript syntax valid (8; suite v1.1) | 0.88 | 0.13 | — |
Code rows use suite v1.1, which corrects a prompt-boundary artifact. The v1 code results are kept separately and not merged: Python 0 / 16 for both models; JavaScript syntax 0.75 (5B) and 0.38 (2B).
Unedited output from the frozen model, greedy, from the registered phase1_eval prompts on the H100. All 10 are in
phase1_eval_5B.json.
REPRODUCE.md.The architecture is custom (not a transformers class). This repo bundles a standalone PyTorch implementation,
modeling_odyssey.py, and example.py. They need torch, safetensors, tokenizers and huggingface_hub.
pip install torch safetensors tokenizers huggingface_hub
from example import load
model, tok = load("mvbalaji/ODYSSEY-100M-5B-BASE") # downloads this repo
ids = tok.encode("Photosynthesis is the process by which", add_special_tokens=False).ids
print(tok.decode(model.generate_text(ids, max_new_tokens=64, temperature=0.8))) # sample: greedy loops
Or run python example.py --repo mvbalaji/ODYSSEY-100M-5B-BASE --prompt "...".
| Repo | What it is |
|---|---|
| ODYSSEY-100M-2B-BASE | base, 2.0B pretraining tokens (intermediate) |
| ODYSSEY-100M-5B-BASE | base, 5.0B tokens (final pretraining) |
| ODYSSEY-100M-REASONING-SFT-V1 | 5B base + 10M-token SFT (Phase 5) |
| ODYSSEY-100M-REASONING-SFT-V2 | V1 + 2M-token step-calibrated SFT (Phase 6); best registered model |
| ODYSSEY-100M-P7-C1-DIVERSE-SFT | experimental: V2 + paraphrase-diverse SFT |
| ODYSSEY-100M-P7-C2-MATCHED-SFT | experimental: V2 + matched SFT control |
| ODYSSEY-100M-P7-C3-RL | experimental: V2 + exact-answer RL |
Author: Balaji Venkateswaran. Trained from scratch; no weights from any other model. Reports cited by file name
(for example PHASE7_FINAL_REPORT.md) live in the project's source repository and are not part of this upload.
The weights and the bundled code are released under the Apache License 2.0.
Training data was used under these terms; their attribution requirements are acknowledged here:
9cfa0a18bcab19197c0efc0cd5369a6836297dbf71bbd3f8282d32af1bfc4926 model.safetensors
8d0c112dc7e4f17c1aa43edb87f868efe9308afc4167e750430a0a567883d37a config.json
f58119654a4417c6a05f88e1428c3a92f8f91685dd52f50c8083352922c14358 example.py
9ebbeffdd7b735d0d0a7abf8aa9801ffd0311105064b2f80a4405de694ce1317 generation_config.json
d1b865ec18920903ae11112f71f0f93304dbea312d9d7c56f060a3e4486a242d modeling_odyssey.py
d8129cef0aa39c97aa9332d3f1d2f77dbb26121c098f2dec7b002ba959f3ec1a tokenizer.json
7acda22941a544d84d11b43ec6ca5563791602dc0f6aa170c9f04a727ece2f95 tokenizer_config.json
2e8d2b25cf402305c151f84f7a66be4340e68c971136ab436a045c05af28a605 training_manifest.json