Views
No views yet
[!WARNING] This repository is archived and no longer maintained.All weights have been migrated to maraxen/aminx, which covers ProteinMPNN, SolubleMPNN, LigandMPNN, Membrane variants, and the side-chain packer — all in the compressed.eqx.zstformat with parity-verified conversions.Install the new package:pip install aminx # weights auto-download from maraxen/aminx on first use
original_v_48_002 - Trained for 2 epochsoriginal_v_48_010 - Trained for 10 epochsoriginal_v_48_020 - Trained for 20 epochs (recommended)original_v_48_030 - Trained for 30 epochssoluble_v_48_002 - Trained for 2 epochs on soluble proteinssoluble_v_48_010 - Trained for 10 epochs on soluble proteinssoluble_v_48_020 - Trained for 20 epochs on soluble proteins (recommended)soluble_v_48_030 - Trained for 30 epochs on soluble proteinspip install jax equinox huggingface_hub1import jax
2import jax.numpy as jnp
3import equinox as eqx
4from huggingface_hub import hf_hub_download
5
6# Download model from HuggingFace
7model_path = hf_hub_download(
8 repo_id="maraxen/prxteinmpnn",
9 filename="eqx/original_v_48_020.eqx",
10 repo_type="model",
11)
12
13# Create model structure (must match saved architecture)
14from prxteinmpnn.eqx_new import PrxteinMPNN
15
16key = jax.random.PRNGKey(0)
17model = PrxteinMPNN(
18 node_features=128,
19 edge_features=128,
20 hidden_features=512,
21 num_encoder_layers=3,
22 num_decoder_layers=3,
23 vocab_size=21,
24 k_neighbors=48,
25 key=key,
26)
27
28# Load weights
29model = eqx.tree_deserialise_leaves(model_path, model)
30
31# Use model for inference
32# ... (see full documentation for inference examples)1from aminx.io.weights import load_model
2
3# Automatically downloads and loads the model from maraxen/aminx
4model = load_model("proteinmpnn_v_48_020")1@article{dauparas2022robust,
2 title={Robust deep learning--based protein sequence design using ProteinMPNN},
3 author={Dauparas, Justas and Anishchenko, Ivan and Bennett, Nathaniel and Bai, Hua and Ragotte, Robert J and Milles, Lukas F and Wicky, Basile IM and Courbet, Alexis and de Haas, Rob J and Bethel, Neville and others},
4 journal={Science},
5 volume={378},
6 number={6615},
7 pages={49--56},
8 year={2022},
9 publisher={American Association for the Advancement of Science}
10}