ODYSSEY-100M-5B-BASE
1. Summary
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.
- It is a base model: next-token prediction only, with no instruction tuning, RLHF or safety tuning.
- It was trained conventionally with Muon + AdamW. It was not trained by token-to-weight learning, weight-space patching (WSP) or any teacher model.
| 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 |
2. Architecture
| 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 |
3. Parameters
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).
4. Tokenizer
odyssey-32k byte-level BPE.
- Vocabulary: 32,768.
- Specials:
<|pad|>=0,<|bos|>=1,<|eos|>=2. - sha256:
d8129cef0aa39c97aa9332d3f1d2f77dbb26121c098f2dec7b002ba959f3ec1a. - No BOS is prepended in training. Documents end with EOS.
- Prompting note: newlines and the following indentation are merged into single tokens. A prompt that ends
with a bare
\n(for example afterdef f():) creates an unnatural token boundary and degrades code completion. End prompts on:or{instead (CAPABILITY_SUITE_RESULTS.md).
5. Training objective
Next-token cross-entropy on 1,024-token windows of EOS-separated documents. Loss is computed on all tokens.
6. Training data and proportions
| 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:
- quality filters;
- exact and MinHash near-deduplication;
- a cross-domain near-duplicate audit;
- PII scrubbing and a secret filter;
- a 13-gram decontamination screen against HellaSwag, PIQA, ARC, GSM8K, MATH500, AIME25, HumanEval, MBPP and IFEval.
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.
7. Training tokens
- 5,000,003,584 gradient-training tokens: 38,147 steps × 131,072, each token seen once, in one fixed order
(
order_v3.npzshaaa8af0ad…). - The run had two stages:
- Stage 1 trained steps 0–15,259 (2.0B tokens).
- Stage 2 continued from the frozen 2B checkpoint to step 38,147.
- Disclosed deviation (Amendment B1): the registered plan was to continue from a locally trained variant (A0-r1, +191 steps). The run continued from the frozen 2B checkpoint instead, a choice fixed before any continuation result existed.
8. Optimizer recipe
| 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:
- gradient clip 1.0;
- bf16 autocast with fp32 master weights;
- batch 131,072 tokens;
- seed 42.
LR selection: a pre-registered 3-arm pilot.
9. Hardware and compute
- Hardware: 1 × NVIDIA H100 80GB HBM3 (JarvisLabs), PyTorch 2.8.0 + CUDA 12.8,
torch.compile. - Throughput: median about 485k tokens/s; peak memory 31 GB.
- Training compute: 3.30 × 10¹⁸ FLOPs.
- Time:
- training wall time 1.26 h + 1.87 h;
- about 4.2 H100 workload GPU-hours in all;
- about 7.4 billable instance-hours.
- Details:
ODYSSEY_100M_COMPLETE_COMPUTE_AND_COST_REPORT.md.
10. Methodology: training and evaluation
- Pre-registered protocols, amendments and hash-frozen evaluation code (
docs/,reports/). - Monitoring: dev NLL every 500 steps (1M tokens per domain), and full dev at 6 milestones.
- Evaluation:
- every document is scored independently, with stride-1,024 windows;
- token-weighted NLL per domain;
- weighted mixture 0.65 / 0.20 / 0.15;
- paired document-bootstrap CIs.
- The frozen export was independently verified:
- the weights are bitwise equal to the training checkpoint;
- inference parity is bitwise on CPU and GPU.
- The freeze-time GPU export check gave a one-off unexplained mismatch that did not recur
(
FINAL_5B_EXPORT_INDEPENDENT_VERIFICATION.md).
11. Language-modelling results (NLL / perplexity)
11a. Sealed final confirmation: the unbiased estimate
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.
11b. Development partition (used for monitoring during training)
| 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.
12. Capability results (separate from language-modelling perplexity)
Low perplexity does not imply reasoning or coding ability. The probes below are exploratory.
- Standard public benchmarks: none run yet. The comparison plan (GPT-2 small, Pythia-160M, SmolLM-135M, OPT-125M) is prepared but needs approval for downloads.
- Exploratory suite: results below, with small n. Details in
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).
13. Generation examples
Unedited output from the frozen model, greedy, from the registered phase1_eval prompts on the H100. All 10 are in
phase1_eval_5B.json.
- Prompts and full outputs are recorded there. The repeated-4-gram fraction over the 10 is 0.192.
- Representative failure, from the 128-token greedy run of the capability suite, prompt "The history of the printing
press begins": " with the invention of the printing press in 1603. The first printing press was invented in 1603 by
the Frenchman Louis XIV. The first printing press was invented in 1603 …". It shows:
- fluent but false facts;
- a greedy loop.
14. Limitations
- 100M parameters and 5B tokens: limited knowledge and reasoning.
- Not instruction-tuned. It continues text; it does not answer requests.
- Single training seed.
- Development data was reused for monitoring. The unbiased sealed estimate (§11a) is 0.15 nats worse in weighted NLL than dev.
- English only for natural language.
- Context limited to 1,024 tokens. RoPE was not extended; positions beyond that raise an error.
15. Known failure modes
- Confident factual hallucination: names, dates and attributions.
- Greedy repetition loops beyond about 100 tokens: the 4-gram repeat fraction is 0.69 at 128 tokens. Use sampling with a repetition penalty for any demonstration.
- Arithmetic: near zero beyond single digits. Answers are well-formatted but wrong, often copying numbers from context.
- Code: syntactically plausible but functionally wrong. It often produces self-recursive placeholder bodies.
- Prompt boundary: a trailing newline in a code prompt degrades completion (see §4).
16. Reproducibility
- See
REPRODUCE.md. - Data: rebuilds byte-for-byte from pinned sources. 18 of 18 partition hashes and the order file were verified locally.
- Evaluation: reproduces across H100 and RTX 4060 to ≤ 6e-5 per domain.
- Training: reproduces in distribution only, because of bf16, flash attention and compile nondeterminism. The measured run-to-run spread is σ ≈ 0.002 dev NLL.
19. Ethical and responsible-use considerations
- Hallucination: the model produces plausible but false statements. Do not use it as a source of facts, or for medical, legal, financial or safety decisions.
- Base model:
- it has no safety tuning;
- it can continue harmful or biased text present in web data;
- FineWeb-Edu's educational filter reduces but does not remove such content.
- Privacy: training data was PII-scrubbed and secret-filtered, but memorisation of residual personal data cannot be excluded.
- Code: generated code should be treated as untrusted. It is mostly incorrect.
- Intended use: research on small-model pretraining, a base for supervised fine-tuning experiments, and education.
How to run
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 "...".
The ODYSSEY-100M family
| 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.
License and attribution
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:
- FineWeb-Edu (sample-10BT) and FineMath (finemath-4plus), Hugging Face: ODC-By 1.0 (FineWeb-Edu is also subject to the CommonCrawl terms of use).
- codeparrot/github-code-clean: only files under MIT, Apache-2.0, BSD-2/3-Clause, ISC, CC0-1.0 or Unlicense.
- Fine-tuned models only: GSM8K (MIT), MBPP (CC-BY-4.0), OASST1 (Apache-2.0), self-oss-instruct (ODC-By; contains model-generated text, so review the StarCoder2 output terms for uses beyond research). Synthetic data was generated and verified locally.
Integrity (sha256)
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