#Hy4
-
· 10 min read · reads
Hy4 Weight Loading on TPU v7: From 857 Seconds to 68
The official Hy4-preview weights are 757.88 GiB. Deployed across two TPU v7 hosts, loading straight from the original checkpoint took 857 seconds. We analyzed why it was slow: every rank reads the full checkpoint, vLLM skips prefetch for large models, and with multiple hosts prefetch covers only half the files. After switching to a per-rank pre-sharded weight cache and closing two gaps in the upstream loader, load time dropped to 68.5 seconds. This post covers the analysis, the approach and the gains, as well as where this kind of cache fits and what it costs.
-
· 20 min read · reads
From 2 tok/s to Beating B200: Optimizing Hy4 Inference on TPU v7
Hy4-preview is a 770B-parameter MoE model with DSA sparse attention and MTP speculative decoding. When first ported to TPU v7, single-stream decoding ran at only 2 tok/s. In the end, across a ten-level benchmark with 8K input / 1K output at concurrency 1–64, 8 TPU v7 chips delivered 3%–19% higher output throughput than 8 B200 GPUs. This post follows the four classes of bottlenecks in the order we hit them: porting the model and getting it correct, getting the model compiled, speeding up sparse-attention prefill with masked-dense, and optimizing mixed steps under high concurrency.
-
· 12 min read · reads
Beating B200 from Scratch: Porting and Optimizing Hy4 Inference on TPU v7
Hy4-preview is a 770B-parameter MoE model with sparse attention and MTP speculative decoding. We ported it from GPU to TPU v7. In benchmarks with 8K input / 1K output at concurrency 1–64, 8 TPU v7 chips delivered 3%–19% higher output throughput than 8 B200 GPUs. Weight loading dropped from 857 seconds to 68, and cold compile from 95 minutes to about 14. This post summarizes the work on all three fronts, and the tuning engine behind it, Curvature Drive.