Skip to content

requirements: record torch 2.8.0 / 2.11.0 as checked against 2.6.0 - #428

Open
siyuanj wants to merge 1 commit into
chaidiscovery:mainfrom
siyuanj:record-verified-torch-versions
Open

requirements: record torch 2.8.0 / 2.11.0 as checked against 2.6.0#428
siyuanj wants to merge 1 commit into
chaidiscovery:mainfrom
siyuanj:record-verified-torch-versions

Conversation

@siyuanj

@siyuanj siyuanj commented Aug 7, 2026

Copy link
Copy Markdown

Comment-only change. Follows up on #427, where the practical problem is that the released 0.6.1 wheel still pins torch<2.7 and therefore cannot be used on any Blackwell GPU.

main already dropped that upper bound in #383, with the comment recording 2.3.1 – 2.7.1 as confirmed. Since running past a documented range is uncomfortable when you can't tell whether it perturbs numbers, I measured it, and this records the result next to the requirement so the next person doesn't have to repeat the work.

What was checked, with chai_lab 0.6.1 and only the torch wheel swapped (a python -m venv --system-site-packages layer over one shared install, so chai_lab/numpy/rdkit/einops are literally the same files — the pip list diff is torch + triton + nvidia-*-cu12 + sympy and nothing else):

  • traced ESM2-3B, one forward pass, identical integer token input, same L4: torch 2.6.0+cu124 / 2.8.0+cu128 / 2.11.0+cu128 all return the same fp32 embedding, SHA-256 6f1c44c9e3b6768bf9167fe79bb92381d45b0a5fa3acf1c918f46ca7ef6b4a9c, 0 of 248 320 elements differing
  • full chai-lab fold on 1URN under use_deterministic_algorithms(True) + CUBLAS_WORKSPACE_CONFIG=:4096:8, --seed 42, same L4: torch 2.6.0 and 2.8.0 give byte-identical coordinates for all 5 × 1225 atoms; 2.11.0 gives bit-identical ptm / iptm / aggregate_score and coordinates differing only in the last written CIF decimal on 23–60 of 1225 atoms (max 0.0014 Å)
  • both L4 (sm_89) and B200 (sm_100), driver 580.159.04

I deliberately did not widen the existing "2.3.1 - 2.7.1 are confirmed to work correctly" range to - 2.11.0: I only tested 2.8.0 and 2.11.0, not 2.9.x or 2.10.x, and only on one protein–RNA target without ligands, templates or constraints. So this adds a separate, narrower claim rather than extending yours to versions neither of us has run.

Happy to reword or drop it if you'd rather keep the requirement line uncluttered — the data in #427 is the part that matters.

Both were verified against torch 2.6.0 on sm_89 (L4) and sm_100 (B200) with
chai_lab 0.6.1: the traced ESM2-3B forward pass is bit-identical, and a full
deterministic-mode fold of 1URN reproduces the same coordinates and the same
ptm / iptm / aggregate_score. Details in chai-lab#427.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant