#Performance Tuning
-
· 18 min read · reads
Porting and Tuning FastH3 on TPU v6e: a 148 GB Video Model at 1.55x the Performance per Dollar of 4x B200
FastH3 is FastVideo's few-step audio-video model distilled from MiniMax H3. Its weights total about 148 GB, while a TPU v6e chip has 32 GB of HBM. We first got it running on 4 v6e chips (72.4 s per 5-second clip), then moved to 8 chips and brought it down to 18.9 s. At GCP DWS Calendar prices that is 1.55x the performance per dollar of FastVideo's fastest official 4x B200 setup. This is our first post on optimizing the MiniMax H3 family on TPU; the second half covers how the same approach carried over to 15-second clips and a resident service, and where we go next.
-
· 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.