Skip to content

replace triangle layers with nvidia cuequivariance kernels - #4

Open
samtomguns wants to merge 4 commits into
mainfrom
cuex
Open

replace triangle layers with nvidia cuequivariance kernels#4
samtomguns wants to merge 4 commits into
mainfrom
cuex

Conversation

@samtomguns

@samtomguns samtomguns commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

Needs a lot of cleanup before merging -- the implementation is clunky and triggered with a command line flag for the moment.

There's also some version conflicts, hence the weird requirements, and an ad-hoc patch for an API mismatch. To use cuequivariance >= 0.9 we'd need to pin JAX >= 0.9.1 I think.

Benchmarks show no gains (a slight slowdown in fact) on the forward pass and up to 1.5x on backward (on protenix-v2). Compilation also speeds up by 2x (baseline 67-118s, cuex 38-60s)

protenix-v2

Sequence Tokens Baseline fwd+bwd cueq fwd+bwd fwd_sp bwd_sp fwd+bwd_sp
insulin 30 292 ms 281 ms 0.90x 1.08x 1.04x
b2m 115 1510 ms 1311 ms 0.97x 1.21x 1.15x
lysozyme 319 11499 ms 8481 ms 1.16x 1.42x 1.36x

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