Phase 0.5b — bf16 Mixed Precision: 3.8× Speedup, Same Quality #5
bitzic
announced in
Phase Results
Replies: 2 comments
-
|
Wandb run logs https://wandb.ai/karpathian-ai/karpathian/runs/ccdgm3ve
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Miner training monitor
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Date: May 27, 2026
Hardware: NVIDIA H100 PCIe 80GB (Shadeform / ShadeCloud)
Code:
KarpathianBase/karpathian@v0.5.1What changed
One code change:
use_bf16=Trueinrecipe/train.py. PyTorchtorch.amp.autocastwith bfloat16 on the H100's tensor cores. Everything else identical — same model, same data, same seed, same config.fp32 vs bf16 — head-to-head
h100_default.jsonh100_default.jsonKey takeaway: bf16 is free performance. No quality degradation at all — loss within 0.001 of fp32. The H100's tensor cores are designed for bf16; running fp32 was leaving 73% of the hardware on the table.
What this means for miners
A proof-test that took 4.3 hours in fp32 now takes 69 minutes. At ~$3/hr for an H100, that's:
Cheaper proof tests → lower barrier to submit → more patches competing → faster recipe improvement.
New infrastructure in this release
--wandbflag streams loss/lr/grad_norm/throughput to wandb.ai/karpathian-ai/karpathian. Public — anyone can view.wandb_metrics.jsonalongside checkpoints. Miners submit their complete training story, not just the final number.streamlit run dashboard/app.pyminer/hub.py— upload/download proof bundles to HuggingFace. Checkpoints + logs + wandb traces + attestation, all content-addressed.Live training run
Watch the bf16 Karpathian-1 training on wandb (public):
🔗 wandb: https://wandb.ai/karpathian-ai/karpathian
How to reproduce
Or run just the training step with wandb:
python -m recipe.train \ --config configs/h100_default.json \ --out-dir runs/karpathian1_bf16 \ --seed 1337 \ --wandbWhat's next
🔗 Repo: github.com/KarpathianBase/karpathian
🏷️ This milestone:
v0.5.1💬 Discussions: github.com/orgs/KarpathianBase/discussions
📊 wandb: wandb.ai/karpathian-ai/karpathian
Beta Was this translation helpful? Give feedback.
All reactions