arXiv Science⌕ Search

arXiv subjects

Lorenzo Pazienza

Publications and source records attributed to Lorenzo Pazienza.

2 recordsLinked to original sources

Same Seed, Different Top Prediction: Cross-Platform Reproducibility of AlphaFold 3 Inference on TPUs, GPUs, and CPUs

AlphaFold 3 returns the highest-ranked of several sampled structures and computes each prediction on one device. Computing centers may schedule them on different GPU types or CPU nodes. Floating-point results can differ between devices, so the same input and seed may return another structure. Neither AlphaFold 3's documentation nor its outputs warn of this. We measure how often the device changes the returned structure, and tell users what to report and how to make devices agree. We used identical inputs, weights, seeds, and settings on two Google tensor processing unit (TPU) generations (v5e, v6e), three NVIDIA GPUs (L4, A100, H100), and an Intel Xeon CPU. On 60 protein-ligand complexes, with five seeds each, switching TPU generations changed the top-ranked sample in 18.0% of 300 predictions. Recompiling never changed it on either TPU, but did so in 7.3% on the L4 GPU. Yet the structures barely moved. The top-ranked pose switched between correct and incorrect in 3.3% to 3.7% of predictions, against about 10% for a new seed. These switches nearly always came from one validity check, with the ligand within 2 angstroms. Follow-ups found the effect again on 72 new targets and between the TPUs and the CPU. Between the A100 and H100 it exceeded recompilation, although AlphaFold 3's developers verified its numerical accuracy on both. An exploratory analysis links the changes to near-tied candidates. We recommend reporting the device and every near-tied sample. A float32 trunk with full-precision matrix products made all five accelerators agree on nearly every prediction.

cs.DC↗

Using the Whole Slice: AlphaFold2 Inference on an Eight-Chip TPU v5e

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.

cs.DC↗