Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin Refactoring LigandMPNN CLI Call to use Metal #56

Merged
merged 28 commits into from
Dec 1, 2024

Conversation

zachcp
Copy link
Owner

@zachcp zachcp commented Nov 30, 2024

  • adding Metal Feature to attempt speedup
  • resulted in fixes to building/loading the model weights
  • hitting several metal /CPU difference.

Mac Air M1:
Beginning: 274 seconds
Current: 9 seconds

30x speedup by using the Metal Device instead of CPU device.

# command
RUST_BACKTRACE=1  cargo instruments -t time \
  --bin ferritin-featurizers \
  -- run --seed 111 \
  --pdb-path ferritin-test-data/data/structures/1bc8.cif \
  --model-type protein_mpnn \
  --out-folder testout

image

image

Requires: huggingface/candle#2656 and huggingface/candle#2653

@zachcp zachcp changed the title Begin Refactoring Begin Refactoring LigandMPNN CLI Call to use Metal Dec 1, 2024
@zachcp zachcp marked this pull request as ready for review December 1, 2024 15:57
@zachcp zachcp merged commit e83f661 into main Dec 1, 2024
1 check failed
@zachcp zachcp deleted the 20241130-ligandmpnn-reactor-pass branch December 1, 2024 15:59
@zachcp zachcp mentioned this pull request Dec 1, 2024
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