计算机科学 > 分布式、并行与集群计算
[提交于 2026年9月28日 (v1),最后修订于 2026年11月24日 (此版本, v3)]
标题:Using the Whole Slice: AlphaFold2 Inference on an Eight-Chip TPU v5e
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:AlphaFold2 is written in JAX. JAX treats each chip of a tensor processing unit (TPU) slice as a separate device. A JAX program does not spread its work over the chips by itself, so a user who runs AlphaFold2 on a slice can pay for chips that do nothing. We found no published measurement of how AlphaFold2 inference uses a multi-chip TPU slice. Our goal was to measure how much of an eight-chip TPU v5e slice AlphaFold2 inference uses, and which way of mapping the work in JAX uses all of it. Across 12 experiments, the model used random weights, so we studied execution, not prediction quality. By default, only one chip held data. Batching up to eight input sequences (queries) of 118 residues on one chip with JAX's vmap did not raise throughput. Mapping independent queries to the chips with JAX's pmap ran them in parallel on all eight chips. On a grid of 1 to 8 chips and 100 to 1000 residues, eight chips gave 6.5 to 7.9 times the throughput of one chip. JAX's automatic partitioning did not shorten the call for one query. Our program did not tell the partitioner how to split any array across the chips.