JACK RYAN

Projects / Boltz-2 MLX / Technical report

Technical Report · Structural Biology & ML Systems

Boltz-MLX: Boltz-2 Structure and Affinity Inference on Apple Silicon

Jack Ryan MIT Licence Source: docs/report.md Updated 2026-11-24 03:07

GitHub Source Reproducibility

Abstract

Boltz-MLX is a free, MIT-licensed port of Boltz-2 biomolecular structure and binding-affinity inference to Apple’s MLX framework. It runs locally on any Apple Silicon Mac (M1 or later, macOS 26+) with no cloud queue, GPU rental, or external data transfer by default. On an M5 Max, the shipped f16 Fast preset (20 structure and 25 affinity diffusion steps, raised automatically to 200 structure steps for ligands under 10 heavy atoms) predicts the 384-residue 8cpk protein-ligand complex (structure plus affinity) in 18.64 s, running 7.0× faster on average (5.7–9.5× across the four benchmark complexes) than boltz-community (PyTorch MPS, the fastest previously available way to run Boltz-2 on a Mac) and screening ~526 ligands/hour (6.84 s/ligand) in cold virtual screening. Compared against NVIDIA’s published H100 NIM tables (~$35,000–$40,000+ single datacentre SXM GPU vs a ~$6,000–$6,500 128 GB M5 Max laptop), an H100 with TensorRT stays faster on structure in all four cases (by up to 4.1× at 628 tokens), while Boltz-MLX beats NVIDIA’s published open-source PyTorch column on combined structure plus affinity in 3 of 4 cases. Strict fp32 mode matches the CPU fp32 PyTorch reference within 0.1 Å across all 10 validation proteins and passes 8 of 8 ligand affinity checks (worst difference 5.4e-4 vs a 0.01 limit), after forcing MLX_ENABLE_TF32=0 to stop MLX’s default TF32 matrix multiplication on M5-class GPUs from shifting fixed-noise coordinates by 1.4 Å.

1. Benchmarks

Boltz-MLX ports Boltz-2 [1] inference to Apple MLX under the MIT licence, matching upstream Boltz-2. The model architecture, weights, and training are entirely the work of the Boltz authors [1]; we only port and tune inference, converting weights directly from the official checkpoints. After a one-time 6.2 GB setup download of the checkpoints and molecule dictionary, inference makes zero network calls, and ligand structures stay on the Mac.

1.1 Why These Four Complexes

We benchmark on 8eil, 7qsj, 8cpk, and 8gpp (194 to 628 tokens, spanning single-chain monomers to a 3-chain trimer) because they come straight from NVIDIA’s published Boltz-2 NIM v1.6.0 performance tables [2]. Using NVIDIA’s own published test set keeps us from cherry-picking favourable complexes.

All Apple Silicon timings were run on one Apple M5 Max (128 GB unified memory) on AC power, one job at a time, after a 120 s GPU idle cooldown. Sequences come from RCSB PDB [5]:

case NVIDIA “sequence length” what we modelled tokens ligand (heavy atoms)
8eil 186 1 chain, 186 aa 194 SIN, from the entry (8)
7qsj 375 1 chain, 373 aa (RCSB entity) 399 celecoxib, entry has none (26)
8cpk 384 1 chain, 384 aa 410 celecoxib, entry has none (26)
8gpp 628 3 × 208 aa trimer 628 BCT, from the entry (4)

MSAs and build settings. Both Mac builds used the same single ColabFold MSA per case, capped at 8,192 rows (boltz-community ran with --no_subsample_msa). Ours ran Boltz-MLX with the Fast preset (200 + 25 steps on 8eil and 8gpp under the small-ligand rule; 20 + 25 on 7qsj and 8cpk). boltz-community 2.13.0 [4] (the PyTorch MPS fork installed by MoleculeDesk, the fastest previously available way to run Boltz-2 on a Mac, running fp32 with no Mac-specific Metal kernels) ran at its defaults (fp32, 200 / 200 steps). Both Mac builds used 3 recycles, 1 diffusion sample, affinity at 5 recycles × 5 samples, and seed 0.

Timing and fair-comparison notes. Following NVIDIA’s split, we report model-call seconds for structure and affinity separately. Boltz-MLX numbers are medians with [min–max] ranges across 3 interleaved repeats; boltz-community numbers are a single run after an untimed 8eil warm-up. NVIDIA’s H100 columns are quoted directly from NVIDIA’s Boltz-2 NIM v1.6.0 tables on the v1.7.0 docs page [2] (accessed 2026-10-27). NVIDIA does not disclose step counts, recycle counts, whether MSA or featurisation time is included, warm vs cold state, or ligand identity, so those columns sit beside ours as published reference points rather than a controlled like-for-like run.

1.2 Single-Complex Latency

All times below are in seconds. Both Boltz-MLX and boltz-community ran on the same M5 Max; the H100 columns are NVIDIA’s published NIM figures [2], where “OSS” is NVIDIA’s open-source PyTorch baseline.

Structure

case ours, Fast: median [min–max] boltz-community H100 TensorRT H100 OSS (PyTorch)
8eil (200 steps) 2.88 [2.88–3.01] 11.23 1.72 11.07
7qsj 7.06 [6.43–7.46] 62.30 3.81 7.76
8cpk 12.21 [11.88–13.38] 69.82 5.47 7.93
8gpp (200 steps) 34.08 [33.31–34.85] 185.54 8.23 15.40

Affinity. NVIDIA’s published affinity times are longer than its structure times, so they appear to include the structure pass. We compare NVIDIA’s affinity column against our combined structure + affinity time (the sum of our two medians).

case ours, affinity: median [min–max] ours, structure + affinity boltz-community, affinity boltz-community, structure + affinity H100 TensorRT H100 OSS (PyTorch)
8eil 2.88 [2.84–2.90] 5.76 25.97 37.20 6.21 18.52
7qsj 3.88 [3.26–4.32] 10.94 41.36 103.66 7.89 23.44
8cpk 6.43 [6.09–6.76] 18.64 47.04 116.86 8.89 24.43
8gpp 5.45 [5.21–5.62] 39.53 38.07 223.61 13.24 34.03

Speedup Ratios (comparison time divided by Boltz-MLX time; above 1.0 means Boltz-MLX is faster, computed directly from the two latency tables above):

case vs community, structure + affinity vs TensorRT, structure vs TensorRT, affinity (vs our sum) vs OSS, structure vs OSS, affinity (vs our sum)
8eil 6.46 0.60 1.08 3.84 3.22
7qsj 9.48 0.54 0.72 1.10 2.14
8cpk 6.27 0.45 0.48 0.65 1.31
8gpp 5.66 0.24 0.33 0.45 0.86

How to read the numbers:

  • H100 TensorRT wins on structure in every case, by up to 4.1× at 628 tokens (8gpp). Combined structure + affinity on Boltz-MLX beats TensorRT’s affinity column only on 8eil (5.76 s vs 6.21 s).
  • Against NVIDIA’s published open-source PyTorch column, combined structure + affinity on Boltz-MLX is faster on 8eil, 7qsj, and 8cpk, and slower on 8gpp.
  • Against boltz-community on the same M5 Max, the fastest previously available way to run Boltz-2 on a Mac, Boltz-MLX is 7.0× faster on average (6.96× mean across the four ratios, 5.7–9.5× range) on structure + affinity and 6.0× faster on average (3.9–8.8×) on structure alone (8eil sits at the bottom of that range because the small-ligand rule runs 200 steps). These ratios combine kernel work, precision, and step counts; we did not separate those three factors in this benchmark.
  • Per-case quirks. Our structure time nearly doubles from 7qsj to 8cpk over just 11 extra tokens, likely because 8cpk’s MSA hits the 8,192-row cap whereas 7qsj’s has 4,024 rows (inferred, not directly ablated). In NVIDIA’s published table, the OSS 8eil structure time (11.07 s) is slower than the larger 8c4d complex (6.80 s), and our own logs flag boltz-community’s 8eil structure time as unexplained, so treat the 8eil row cautiously.

1.3 Virtual Screening and H100 Cost

A full cold screen of 199 ligands against a 384-residue receptor (the T400 set) at Fast (20 + 25 steps) runs at 6.84 s/ligand, or about 526 ligands/hour, on the M5 Max. That rate is pooled across 4 back-to-back screens (6.32–7.21 s/ligand), with 796/796 ligands completed and 10.5 GB peak memory. The 5-ligand warm rate is 5.38 s/ligand. (These screening runs came before the ligand-conformer seeding fix and throughput was not re-measured on the final release build.)

For a cloud comparison, we ran upstream Boltz with cuEquivariance on a rented H100 ($2.75/hour) at the same 20 + 25 step counts. That single unbatched process screened the 199 ligands at 5.86 s/ligand (about 614 ligands/hour), and 16.39 s/ligand at 200 + 200 steps. We did not run NVIDIA NIM (which requires an NGC licence key). A batched H100 almost certainly screens faster than an M5 Max; we have not measured batched H100 throughput. On the Mac, running parallel processes gives little aggregate gain: two strict jobs side by side took 55–61 s each vs roughly 30 s for one job alone.

What H100 hardware and rental actually cost. A single datacentre NVIDIA H100 80 GB SXM GPU costs roughly $35,000–$40,000+ ($40,000+ with host server infrastructure; 8-GPU nodes average ~$285,000), and cloud rental averages $3.41/hour according to the SemiAnalysis GPU pricing index [3] (our rented screening H100 cost $2.75/hour). At $3.41/hour, the unbatched H100 rate of 5.86 s/ligand comes to about $5.55 per 1,000 ligands at 20 + 25 steps, or $15.52 per 1,000 ligands at 200 + 200 steps (rate × time, unbatched, excluding setup and idle time). The benchmarked 128 GB M5 Max MacBook Pro cost roughly $6,000–$6,500 as a complete laptop (still a high-end machine, roughly 6× less hardware cost than a single H100 server) and carries $0/hour marginal cost once you own it (no licence fee, per-prediction charge, account, or queue) with full local privacy. Mac hardware amortisation is not modelled here; the point is practical local Boltz-2 inference on hardware already on your desk, not beating a datacentre GPU at peak speed.

2. Accuracy and the Fast Preset

Every speedup starts from deterministic parity with the upstream CPU fp32 PyTorch reference (use_kernels=False):

  • Module parity. Every MLX module matches CPU fp32 PyTorch to roughly 1e-6 relative error.
  • End-to-end deterministic parity. Replaying PyTorch’s exact diffusion noise inside MLX, strict fp32 mode reproduces PyTorch coordinates within 0.1 Å across all 10/10 validation proteins (0.0002–0.01 Å on the parity cases). Affinity parity passes on 8/8 ligands, with a worst-case difference of 5.4e-4 against a pre-set 0.01 limit.
  • The TF32 trap on M5-class GPUs. By default, MLX executes fp32 matrix multiplications at TF32 precision on M5-class GPUs, introducing 7.7e-4 relative error on a single 512³ GEMM. Compounded across 64 pairformer blocks and 4 passes, default TF32 moves fixed-noise atomic coordinates by 1.4 Å. Boltz-MLX forces MLX_ENABLE_TF32=0; anyone porting a deep pairformer model to MLX should check for this.
  • Cross-chip parity on older Macs. In strict fp32 mode, an M1 Air matches the M5 Max to 0.003 Å in coordinates and 0.0006 in confidence scores, well inside the 0.1 Å and 0.01 limits. In f16 (which drops to f16-portable on the M1 Air; Section 4), atoms drift by up to 2.6 Å, missing the deterministic bar. M1–M4 Macs therefore default to Full. Because f16 drifts from strict fp32 by a similar amount even on one chip, Fast is validated statistically on held-out sets below.

The two presets. Fast (default on M5 Macs) runs f16 with 20 structure steps and 25 affinity steps, switching automatically to 200 structure steps whenever any ligand has fewer than 10 heavy atoms. Full (default on M1–M4 Macs) runs strict fp32 at 200 structure and 200 affinity steps, matching upstream PyTorch.

Held-out validation (PREREG-B): both shipped Fast configs pass 8/8. Pass/fail thresholds were locked before running any candidate. Eight gated checks tested lDDT and TM across 56 protein chains, plus ligand RMSD and binding affinity across 107 FEP+ ligands (CDK2, JNK1, P38, BACE1), all judged against Full. Both shipped Fast configurations (20 + 25 and 200 + 25) passed 8 of 8 gated validation checks:

shipped Fast configuration gated checks stereocentre flips vs Full (reported, not gated)
f16, 20 structure + 25 affinity (default) PASS 8/8 10 vs 3
f16, 200 structure + 25 affinity (ligands < 10 heavy atoms) PASS 8/8 3 vs 3 (no excess)

Across the held-out suite, Fast’s predicted affinities stay within ±0.03 of Full against the pre-registered ±0.05 bar. We also evaluated an intermediate 50-step ablation (f16, 50 structure + 200 affinity), which is not shipped: it failed 2 of the 8 PREREG-B gates (lDDT and TM), showed 8 vs 3 stereocentre flips, and missed the ipTM window on 9b3h below. That rejected ablation is why our small-ligand rule goes straight to 200 steps rather than 50.

Larger-protein validation (PREREG_MACBENCH). On 9moj (660 tokens) and 9b3h (911 tokens), tested with and without an MSA across 3 seeds each, Fast at 20 steps and f16 at 200 steps matched Full across all 4 inputs on every pre-registered check (agreement, accuracy against experiment, confidence). The rejected 50-step ablation missed ipTM on 9b3h without MSA, scoring a 3-seed mean of 0.270 against the allowed [0.305, 0.368] window (with 3 seeds, variance may play a part, so we count it as a failure).

Small-ligand collapse and the < 10 heavy-atom rule. On 8gpp, the 4-atom ligand BCT collapsed in every 20-step run we tested (f16 seeds 0, 1, 2 and fp32), leaving 3–6 of its 6 atom pairs closer than 1.0 Å and putting the ligand 14.4–14.5 Å from the experimental binding site. Neither f16 at 50 or 200 steps (1.47 Å and 1.84 Å from experiment), nor Full, nor boltz-community collapsed (one run each). Too few structure diffusion steps caused the failure, not numeric precision or seed; protein TM stayed at 0.997–0.998, and predicted affinity (2.26–2.46) gave no warning that the pose had collapsed. The 10-heavy-atom cutoff is an engineering judgement call, not a measured boundary: direct collapse evidence comes from one 4-atom ligand; 8eil’s 8-atom SIN ligand did not collapse at 20 steps, and no other ligand under 10 heavy atoms was tested.

Experimental accuracy on FEP+ and the four NVIDIA cases. On the FEP+ confirmation set (n = 71), predicted affinity correlates with experimental measurements at Pearson r = 0.667 for Fast (20 + 25), 0.674 for 200 + 25, and 0.681 for Full. Fast keeps Boltz-2’s experimental affinity signal on these four targets; whether Boltz-2’s affinity head generalises to a new target depends on the upstream Boltz-2 model [1].

On the four NVIDIA benchmark complexes (consistency check, one seed per build, no pass/fail threshold applied):

  • Protein TM against the RCSB crystal structures [5] is 0.974–0.998 for every build (Fast, Full, and boltz-community).
  • confidence_score agrees within 0.013 across all three builds in every case.
  • Fast and Full affinity values differ by 0.02–0.06 across the three non-collapsed complexes (8eil, 7qsj, 8cpk). On 8gpp, the pre-rule 20-step collapsed BCT pose differed by 0.12; with the shipped 200-step rule on, f16 differs from Full by 0.003 (2.262 vs 2.265).
  • boltz-community outputs affinity values 0.3–0.7 lower than Full on 7qsj, 8cpk, and 8gpp. A likely reason is its different affinity sample-selection and batching path (picking the top sample passing internal structure checks), though we have not tested that directly.
  • Aside from the BCT collapse fixed by the small-ligand rule, no physical defects showed up. On 8eil, the 8-atom SIN ligand lands 5.3 Å, 11.1 Å, and 12.2 Å from the experimental pose in Fast, Full, and boltz-community, meaning none of the builds finds a stable binding site.

3. How the Speedup Works

Boltz-2 predicts 3D atomic coordinates for protein, nucleic-acid, and small-molecule ligand complexes, confidence metrics (pLDDT, PAE, pTM, ipTM), and for one ligand a binding affinity (log10(IC50)-like value and binder probability). Its forward pass runs a trunk (MSA module and 64-block pairformer), a diffusion structure module, a confidence head, and an affinity ensemble. Because the trunk’s pair representation grows as O(N²) in memory and roughly O(N³) in compute, it dominates runtime at scale: on an M5 Max in f16 at 50 structure steps, the trunk takes 92–96% of structure time from 800 tokens upward. Stock boltz-community [4] runs PyTorch MPS in fp32 without Mac-specific kernels (116.86 s on 8cpk vs 18.64 s for Boltz-MLX).

Five engineering changes drive the speedup:

  1. 25 affinity diffusion steps. Cutting the affinity pass from 200 to 25 steps drops affinity latency on M5 Max from 3.88 s to 1.63 s. Cutting structure diffusion steps from 50 to 20 saves only about 6% of structure time because the pairformer trunk dominates.
  2. f16 on M5 Metal 4 NAX tensor ops. Running the pairformer and diffusion stack in f16 targets the M5 GPU’s per-core matrix units (neural accelerators) via Metal 4 tensor operations. On an M1 without those units, f16 is only 1.07–1.4× faster than strict fp32.
  3. Custom Metal kernels. Boltz-MLX ships chip-tuned Metal kernels for flash-style triangle attention, fused transition MLPs, a fused diffusion-transformer layer, channel-major triangle multiplication, and compiled diffusion steps.
  4. Adaptive buffer cache up to 32 GB. Raising MLX’s buffer cache ceiling above 1,000 tokens (up to 32 GB when unified RAM allows) stopped repeated page-zeroing on large pair tensors. In a pre-registered A/B with byte-identical outputs, this cut 1,600-token structure latency from 126.1 s to 103.2 s and 2,400-token latency from 381.1 s to 301.4 s.
  5. 64-bit NAX input addressing above 2,896 tokens. The NAX triangle-multiplication projection kernel originally indexed its input buffer with 32-bit byte offsets. From 2,897 tokens up (inputs past 2³¹ bytes), rows beyond byte 2³¹ were misread; the fp16 overflow guard caught the non-finite values and recomputed the recycle in fp32, giving the right answer slowly. Inputs past 2³¹ bytes now route to the plain GEMM path while smaller inputs stay unchanged. Verified on GPU (tests/test_trimul_bigx.py), the kernel is exact up to 2³¹ bytes, reproduces the bug past that boundary, and matches fp32 at 2,897 tokens after the fix. A 3,200-token diagnostic run finished with zero fp32 recomputes in 460.4 s vs 577.5 s with recompute, keeping 1,600- and 2,400-token outputs bit-identical.

Local GUI, CLI, and upstream fixes. Alongside the inference engine, this release ships a local 127.0.0.1 web GUI (loading no remote scripts or web fonts) with predict and screen workflows, UniProt and RCSB lookup, a bundled Mol* 4.5.0 viewer, ZIP export, and safe run deletion (Move to Trash or permanent removal after typing the run’s folder word). On the command line, --use_msa_server queries ColabFold only on explicit opt-in (off by default, and boltz-mlx screen never touches the network), and --json output, a check subcommand, documented exit codes, and AGENTS.md make the CLI straightforward for scripts and coding agents. We also brought over upstream bug fixes from the MIT-licensed boltz-community fork [4]: long SMILES atom names, a SMILES validation guard, and output-writer fixes for wrong elements on charged-ion SMILES ligands, a missing cyclic ring-closure bond, a column shift on multi-character PDB chain IDs, and PDB bond orders.

4. Memory Scaling and Older Macs

Boltz-MLX runs on any Apple Silicon Mac (M1 or later) on macOS 26 or later (Metal 4); unified RAM sets the upper limit on complex size. The scaling sweep below measured structure-only time and MLX peak memory on an M5 Max (128 GB) in f16 at 50 steps with a fixed 4 GB buffer cache (run before the Section 3 adaptive buffer cache A/B that lowered 1,600 tokens to 103.2 s and 2,400 tokens to 301.4 s):

tokens time MLX peak memory
117 0.48 s 2.8 GB
400 2.99 s 4.0 GB
800 22.5 s 6.3 GB
1,000 38.2 s 8.6 GB
1,600 139 s 19.9 GB
2,400 403 s 43.1 GB

Above 1,000 tokens, MLX peak memory scales quadratically at roughly 7.5e-6 × N² GB (fitted to the 1,600- and 2,400-token runs; a 3,200-token diagnostic ran on 128 GB). Lower-RAM checkpoints we verified: a 16 GB M1 Air finished 400 tokens cleanly (3.8 GB MLX peak), and a 24 GB M5 Pro ran ~1,000 tokens (~15–16 GB process footprint, failing above ~1,500 tokens). Exact token ceilings across 16 / 24 / 36 / 48 / 64 / 128 GB Macs are not systematically mapped yet.

Older Macs and power draw. On an M1 Air (8-core GPU, 16 GB, macOS 26.4.1, AC power), the Metal 4 tensor-op layout check failed and f16 fell back to the f16-portable path. AC-power medians were 24.2 s for a 117-residue protein (f16-portable, 50 steps) vs 62.3 s in Full mode (strict fp32, 200 steps), 249.2 s for a 400-residue protein (f16-portable, 50 steps, 3.8 GB peak), and 126.1 s for the 25-step affinity pass (332.9–392.8 s at 200 steps). That makes older Macs usable for occasional single predictions, not screening. Because f16-portable failed cross-chip parity on the M1 Air (Section 2), M1–M4 Macs default to Full. Full-preset 400-residue and affinity timings on M1, as well as all M2, M3, and M4 timings, have not been measured. Under heavy load, the M5 Max drew 129–131 W.

5. Limitations and Caveats

  • Missing upstream features: No steering potentials (--use_potentials), no method conditioning, no MSA subsampling (--subsample_msa), and contact/template guidance is skipped during sampling with a warning (constraints, templates, and modifications are still accepted in YAML inputs).
  • Benchmark comparisons mix factors: Fast runs 20 + 25 or 200 + 25 steps in f16 while boltz-community runs 200 / 200 in fp32, and NVIDIA does not disclose step counts, timing boundaries, or ligands for its published H100 tables.
  • Power and sustained load: Long memory-intensive workloads slow by an estimated 14–29% under sustained package power limits, and battery power slows structure inference roughly 2.5× compared with the AC-power headline timings.
  • Hardware coverage: Timings were measured on an M5 Max (128 GB) and an M1 Air (16 GB), with memory checks on an M5 Pro (24 GB); M2, M3, and M4 Macs have not been timed directly.

6. Reproducibility

# install (needs macOS 26+, Apple Silicon): installs boltz-mlx, downloads and converts the Boltz-2 weights (MIT)
git clone https://github.com/jackryan225/boltz-mlx.git && cd boltz-mlx && ./install.sh

# one prediction
boltz-mlx predict input.yaml --out_dir out/

# screen a ligand library (resumable; per-ligand seeds make results order-independent)
boltz-mlx screen --target receptor.yaml --ligands ligands.csv --out results/

# local GUI (127.0.0.1 only)
boltz-mlx gui

The Section 1 benchmark scripts live in tools/macbench/: driver.py runs the arms, accuracy.py and nim_accuracy.py apply the pre-registered rules, and summary.py builds the tables. Case inputs live in tools/macbench/cases/nim_<id>_msa.yaml (and _empty.yaml). Supporting documents in the repository are PREREG_MACBENCH.md (pre-registration with dated amendments), ENV.md (software environments), and nim_accuracy.md (accuracy tables). ColabFold MSAs are not redistributed: fetch_msa.sh sends the public sequences to ColabFold and caches them in macbench-env/msa/, with pinned sha256 hashes in tools/macbench/msa_manifest.json (ColabFold databases change over time, so fresh fetches may differ). Run from the repository root in the developer environment (uv pip install -c constraints.txt -e ".[screen,test]"; python must import boltz_mlx, or set MACBENCH_MLX_PY):

# the four NVIDIA-size MSAs (sends the public RCSB sequences to api.colabfold.com) and the experimental structures (RCSB)
MSA_CASES="nim_8eil nim_7qsj nim_8cpk nim_8gpp" zsh tools/macbench/fetch_msa.sh
python tools/macbench/check_env.py --need msa                 # compare with the pinned hashes
mkdir -p data/external/nim && for id in 8eil 7qsj 8cpk 8gpp; do
  curl -fsSL -o data/external/nim/$id.cif https://files.rcsb.org/download/$id.cif; done   # experimental structures (RCSB, CC0)

# one job at a time, on AC power; each waits 120 s GPU idle first; --dry-run prints the commands without running them.
# The tags are the ones nim_accuracy.py reads (its BUILDS list); results go to logs/macbench/<tag>/.
python tools/macbench/driver.py run --group nim-ours-rep    --tag nim-ours-rep-20261103a     # Fast 20 + 25, 3 interleaved repeats
python tools/macbench/driver.py run --group nim-ours-rep200 --tag nim-ours-rep200-20261103a  # Fast for 8eil, 8gpp (< 10 heavy atoms): 200 + 25
python tools/macbench/driver.py run --group nim-ours-screen --tag nim-ours-screen-20261102c  # Fast 20 + 25, one run (accuracy reference)
python tools/macbench/driver.py run --group nim-full        --tag nim-full-20261103a         # Full: fp32, 200 + 200
# boltz-community needs its own venv in macbench-env/venv-community (docs/macbench/ENV.md)
python tools/macbench/driver.py run --group nim-comm        --tag nim-comm-20261102b

python tools/macbench/summary.py --md summary.md                # timing tables
python tools/macbench/nim_accuracy.py --md nim_accuracy.md      # accuracy against Full, boltz-community and the experimental structures

PyTorch equivalence is checked by tools/e2e_parity.py and pytest.

References

  1. [1] Passaro, S., Corso, G., Wohlwend, J., Reveiz, M., Thaler, S., Somnath, V. R., Getz, N., Portnoi, T., Roy, J., Stark, H., Kwabi-Addo, D., Beaini, D., Jaakkola, T., & Barzilay, R. Boltz-2: Towards Accurate and Fast Binding Affinity Prediction. MIT / Recursion. Official implementation and checkpoints (MIT Licence): https://github.com/jwohlwend/boltz
  2. [2] NVIDIA Corporation. NVIDIA NIM for Boltz-2 Performance Tables (v1.6.0 tables on v1.7.0 documentation, H100). https://docs.nvidia.com/nim/bionemo/boltz2/1.7.0/performance.html (accessed 2026-10-27).
  3. [3] SemiAnalysis. GPU Cloud Pricing Index. https://semianalysis.com/gpu-pricing-index/
  4. [4] boltz-community contributors. boltz-community fork (v2.13.0, MIT Licence), installed on Apple Silicon by MoleculeDesk: https://github.com/Novel-Therapeutics/boltz-community
  5. [5] RCSB Protein Data Bank (CC0). Experimental crystal structures for 8EIL, 7QSJ, 8CPK, 8GPP, 9MOJ, and 9B3H: https://www.rcsb.org/