tpu
Skill3.9k starsChanged 3 days agoApache-2.0View on GitHub
Run or debug post-training (SFT) on Ai2's TPU v4 cluster gke-tpu-v4 with MaxText + Tunix. Use before launching, resuming, watching, exporting or deleting anything on the TPUs, or when choosing a slice, queue, image or mesh for a TPU run.
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
When the run answers a research question, the experiment ledger's rules apply too (olmo-post-training-ledger, ledger and storage skills).
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TPU post-training
The runbook is docs/algorithms/tpu_sft_guide.md; read it before acting. Scripts, overlays and images are in
scripts/tpu/maxtext/, and the cluster's own rules are in allenai/olmo-gcp-infra's README.
Rules an agent follows:
- Queue
post-trainingonly. Hero owns the quota and preempts us. Never submit toheroordev, and never hold a slice in a way that delays hero. - Delete nothing on GCS (
gs://ai2-olmo-dev): checkpoints, data and exports belong to the run's owner. Deleting your own failed JobSet object is fine; save its pod logs first. - Read loss from
LOSS-PARTSlines only. Per-podcompleted step … loss:lines differ across pods. Comparece=, never Tunix'sloss. - Resume only on the restore-fix image (
maxtext-posttrain:51f8cc4b-p907d86f3-rfb46e215e), never from step 0. - Use a
4x4x8(guide: What the cluster is). Since 2026-10-21 the cluster is seven4x4x8s and three8x8x16s; the8x8x8is gone. The8x8x16s are hero's, borrowed only. Check the live layout before planning (command in the guide); it changes when the cluster is resliced. - For
ici_context_parallelism> 1, setcontext_parallel_load_balance=Falseand require step-1LOSS-PARTSCE to match an HF forward of the same batch within 1e-3 before training. With load balancing on, dense Olmo 3 7B's CE was off by +0.39 (cp4) and +1.98 (cp8); with it off, cp4 matched (guide: Traps). - Stop a run by deactivating its Kueue workload (
spec.active=false, command in the guide). Suspending the JobSet does nothing while it is admitted. - Pick the mesh from the guide's measured table (Changing the recipe). None of them has been tuned. A new slice or mesh needs an xprof of one TPU step first (in-loop all-gathers cost 140x once), and its own same-slice control.
- Stream
REQUIRED_RBFfrom JAX process 0 from step 1 (kubectl logs -fon that pod) when a rule needs every step. Pollingkubectl logsloses steps at kubelet's log rotation, and the agent account cannot read Cloud Logging. - Mount only the folders a job reads, never one that holds checkpoints. gcsfuse's metadata prefetch lists
everything under
only-diron every host at every pod start, so a mount ofpost-training/lists every run's checkpoints each time. Mountpost-training/dataandpost-training/tokenizersseparately at their old paths (k8s/narrow_mounts.py); read and write checkpoints overgs://. Jobs launched with a wide mount keep it until relaunched. - Stagger big-slice launches. Two slices loading at once hit the GCS egress quota.
- Keep one slice shape per experiment. The data order depends on the host count, so arms and their control share a shape.
- Set
CLOUDSDK_CORE_ACCOUNTto the agent service account in every process that calls kubectl or gcloud, background watchers included. The user login lapses daily and kubectl then fails silently. - Kill processes by PID, not
pkill -f, insidebash -c.
When the run answers a research question, the experiment ledger's rules apply too (olmo-post-training-ledger,
ledger and storage skills).
Trending
More talk lately.about the whole repository
Who's talking about allenai/open-instruct
- @vivekkalyan.com“Reading the TÜLU 3 paper from @ai2.bsky.social. It's refreshing to see a research lab treating AI as a real …”Bluesky · Nov 24, 2024 · 30 likes
- @natolambert.bsky.social“repo: github.com/allenai/open...”Bluesky · Nov 28, 2024 · 12 likes
- @hamishivi.bsky.social“New OpenAI RL finetuning API reminds me a lot of RLVR, which we used for Tülu 3 (arxiv.org/abs/2411.15124). …”Bluesky · Dec 6, 2024 · 8 likes
- @ai2.bsky.social“Training data: huggingface.co/collections/... Training code: github.com/allenai/open... Eval code: …”Bluesky · Nov 21, 2024 · 6 likes
- TencentARC/LLaMA-Pro“Code for training llama pro?”GitHub · Jan 7, 2024 · 2 reactions
The biggest 5 of 57 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 57
Talked about on GitHub, Bluesky and Hacker News (57 times).
On GitHub · 50
- Jan 7, 2024Code for training llama pro? — TencentARC/LLaMA-Pro2 reactions · 8 comments
- Oct 12, 2026Fix sub-block KDA inverse miscompile on TPU v4 — AI-Hypercomputer/maxtext1 reaction · 1 comment
- Jul 4, 2026[category] Dataset curation & processing tooling — currentai-org/os-ai-map1 reaction · 1 comment
- Feb 3, 2026Add chat template verification step to SFT README — allenai/Olmo-core1 reaction
- Apr 25, 2025DPO Trainer for Tulu3 Preference Dataset — swiss-ai/posttraining1 reaction · 1 comment
45 more on GitHub
- Feb 22, 2025Add example of RL training using open-instruct — open-thought/reasoning-gym1 reaction · 3 comments
- Jan 23, 2025Support Verifiable Rewards like TULU3 — OpenRLHF/OpenRLHF1 reaction · 2 comments
- Jul 23, 2024Llama 3 - RuntimeError: shape '[-1, 0]' is invalid for input of size 41041920 — huggingface/transformers1 reaction · 11 comments
- Nov 23, 2023How to conduct alpaca eval? — Lightning-AI/litgpt1 reaction
- Oct 27, 2026Skip Core optimizer batches with no active loss tokens — allenai/miles-olmo-core0 reactions
- Oct 19, 2026Add NGU retries and rejected-group handling for fully async rollouts — allenai/miles-olmo-core0 reactions
- Oct 18, 2026Review candidate: github.com/allenai/open-instruct — reacher-z/Awesome-CUA0 reactions · 1 comment
- Oct 8, 2026[Integration] allenai/open-instruct: You.com search tool back in the tool registry (you_search) — youdotcom-oss/integration-tracking0 reactions · 4 comments
- Sep 18, 2026Hero B300 grouped-expert profiling fails before evaluation — allenai/olmo-eval0 reactions
- Aug 12, 2026Keep checkpoint cleanup asynchronous — allenai/Olmo-core0 reactions
- May 30, 2026[Dec 2025] Olmo 3 — T41K1/papers0 reactions
- May 10, 2026Math verifierをOpen Instruct寄せ + SymPy Lark backendで検証する — T41K1/LLM-jp-4-RL0 reactions
- Apr 7, 2026Add BigCode Evaluation Harness and EvalPlus to Category 9 — alvinreal/awesome-opensource-ai0 reactions · 1 comment
- Feb 28, 2026rlvr training example scripts를 추가한다. — seopbo/trl-harness0 reactions · 1 comment
- Feb 27, 2026adds simple smoke tests — allenai/olmo-eval0 reactions · 2 comments
- Feb 3, 2026Add chat template verification step to SFT README — allenai/Olmo-core0 reactions
- Jan 8, 2026[Task/Feature/Issue] Investigating tuning techniques — The-AI-Alliance/ai-application-testing0 reactions
- Oct 16, 2025[FSDP][ready for review] Reduce peak memory required when gathering log-probs — THUDM/slime0 reactions
- Oct 6, 2025Paper Review: Tulu 3: Pushing Frontiers in Open Language Model Post-Training — bits-bytes-nn/bits-bytes-nn.github.io0 reactions
- Oct 5, 2025Paper Review: Tulu 3: Pushing Frontiers in Open Language Model Post-Training — bits-bytes-nn/bits-bytes-nn.github.io0 reactions
- Sep 9, 2025[Paper Note] Unpacking DPO and PPO: Disentangling Best Practices for Learning from Preference Feedback, Hamish Ivison+, NeurIPS'24 — AkihikoWatanabe/paper_notes0 reactions · 3 comments
- Jul 26, 2025remove_non_tensor_columns — garrett361/open-instruct0 reactions
- May 28, 2025Latest 15 Papers - May 29, 2025 — jyyang621/DailyArXiv0 reactions
- May 27, 2025Latest 15 Papers - May 28, 2025 — jyyang621/DailyArXiv0 reactions
- May 26, 2025Latest 15 Papers - May 27, 2025 — jyyang621/DailyArXiv0 reactions
- May 25, 2025Latest 15 Papers - May 26, 2025 — jyyang621/DailyArXiv0 reactions
- May 22, 2025Latest 15 Papers - May 23, 2025 — jyyang621/DailyArXiv0 reactions
- May 21, 2025Latest 15 Papers - May 22, 2025 — jyyang621/DailyArXiv0 reactions
- May 20, 2025Latest 15 Papers - May 21, 2025 — jyyang621/DailyArXiv0 reactions
- May 19, 2025Latest 15 Papers - May 20, 2025 — jyyang621/DailyArXiv0 reactions
- May 18, 2025Latest 15 Papers - May 19, 2025 — jyyang621/DailyArXiv0 reactions
- May 15, 2025Latest 15 Papers - May 16, 2025 — jyyang621/DailyArXiv0 reactions
- May 14, 2025Latest 15 Papers - May 15, 2025 — jyyang621/DailyArXiv0 reactions
- May 13, 2025Latest 15 Papers - May 14, 2025 — jyyang621/DailyArXiv0 reactions
- May 12, 2025Latest 15 Papers - May 13, 2025 — jyyang621/DailyArXiv0 reactions
- May 11, 2025Latest 15 Papers - May 12, 2025 — jyyang621/DailyArXiv0 reactions
- May 8, 2025Latest 15 Papers - May 09, 2025 — jyyang621/DailyArXiv0 reactions
- May 7, 2025Latest 15 Papers - May 08, 2025 — jyyang621/DailyArXiv0 reactions
- May 6, 2025Latest 15 Papers - May 07, 2025 — jyyang621/DailyArXiv0 reactions
- May 5, 2025Latest 15 Papers - May 06, 2025 — jyyang621/DailyArXiv0 reactions · 1 comment
- May 4, 2025Latest 15 Papers - May 05, 2025 — jyyang621/DailyArXiv0 reactions
- May 1, 2025Latest 15 Papers - May 02, 2025 — jyyang621/DailyArXiv0 reactions
- Apr 30, 2025Latest 15 Papers - May 01, 2025 — jyyang621/DailyArXiv0 reactions
- Apr 29, 2025Latest 15 Papers - April 30, 2025 — jyyang621/DailyArXiv0 reactions
- Mar 28, 2025Dataset mixers — swiss-ai/posttraining0 reactions · 1 comment
On Bluesky · 6
- Nov 24, 2024Reading the TÜLU 3 paper from @ai2.bsky.social. It's refreshing to see a research lab treating AI as a real science with full reports,… — @vivekkalyan.com30 likes and reposts · 1 reply
- Nov 28, 2024repo: github.com/allenai/open... — @natolambert.bsky.social12 likes and reposts · 1 reply
- Dec 6, 2024New OpenAI RL finetuning API reminds me a lot of RLVR, which we used for Tülu 3 (arxiv.org/abs/2411.15124). Using RL to train against… — @hamishivi.bsky.social8 likes and reposts · 1 reply
- Nov 21, 2024Training data: huggingface.co/collections/... Training code: github.com/allenai/open... Eval code: github.com/allenai/olmes — @ai2.bsky.social6 likes and reposts
- Nov 26, 2024📦 allenai / open-instruct ⭐ 1,608 (+88) 🗒 Python — @github-trending.bsky.social1 likes and repost
1 more on Bluesky
- Nov 21, 2024Models: huggingface.co/collections/... Training data: huggingface.co/collections/... Paper: allenai.org/papers/tulu-... Blog:… — @jacobcares.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Nov 26, 2024Training Open Instruction-Following Language Models1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- pytorch/helion★ 977same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- monitor-experimentSkill
- run-all-dpoSkill
- run-and-fixSkill
- run-gpu-testsSkill
- update-pr-bodySkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

