Skip to content

Support unscanned Olmo 3.5 TPU exports and restore the Tiny tokenizer build - #2364

Draft
abhishekraok wants to merge 1 commit into
mainfrom
codex/olmo35-tpu-export-fixes
Draft

abhishekraok wants to merge 1 commit into
mainfrom
codex/olmo35-tpu-export-fixes

Conversation

@abhishekraok

Copy link
Copy Markdown
Collaborator

Written by Codex

The Olmo 3.5 Small 8x8x48 overlay writes unscanned checkpoints with one decoder entry per layer. The HF exporter now reads that layout as well as the scanned layout.

The Olmo 3.5 Tiny tokenizer builder loads the pinned 8b971706 fast tokenizer and its bundled template directly. The revision provides tokenizer assets without a model config. Its template SHA-256 matches the recorded Tiny TPU artifact.

Verification

  • 76 targeted CPU tests and Ruff.
  • Real Orbax checkpoints with synthetic weights yielded 556 bit-identical HF tensors across 24 scanned and unscanned layers. Per-layer marker values verified the layer order.
  • The rebuilt Tiny tokenizer matched the reference template hash, pre-tokenizer, special token IDs, and token IDs and label masks on single-turn, multi-turn, and tool conversations.
  • Both Tiny overlays render. MkDocs builds for this branch and the base differ only in the TPU guide and its search index.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Documentation Changes Detected

📄 algorithms/tpu_sft_guide/index.html
--- site-base/algorithms/tpu_sft_guide/index.html	2026-12-01 21:51:49.841211375 +0000
+++ site-pr/algorithms/tpu_sft_guide/index.html	2026-12-01 21:51:44.191922602 +0000
@@ -3002,7 +3002,7 @@
 new or empty. Upload the shards to <code>gs://ai2-olmo-dev/post-training/data/&lt;name&gt;/</code>. Ledger experiments shard each
 arm and seed into 512 files with <code>experiments/h067/shard.py</code> in olmo-post-training-ledger.</p>
 <p>The tokenizer is a directory on the bucket. For Olmo 3.5, <code>olmo35/tok_oi35.py</code> saves H045's tokenizer and template
-(<code>allenai/dolma2-tokenizer-olmo35</code> @8b971706, <code>olmo35</code>). For Olmo 3, save
+(<code>allenai/dolma2-tokenizer-olmo35</code> @8b971706, using its bundled template). For Olmo 3, save
 <code>PreTrainedTokenizerFast.from_pretrained("allenai/olmo-3-tokenizer-instruct-dev")</code> (see Traps).</p>
 <p>Plain-text rows (long-context replay documents) need <code>scripts/tpu/maxtext/image-olmo35-dr/</code>: a conversation of exactly

Showing first 10 lines of diff for each changed file (up to 5 files, excluding search indices).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant