Transformers
Safetensors
English
esmfold2
biology
esm
protein
protein-structure-prediction
structure-prediction
protein-design
3d-structure
confidence-estimation
molecular-dynamics
custom_code
Instructions to use biohub/ESMFold2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use biohub/ESMFold2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("biohub/ESMFold2", trust_remote_code=True) model = AutoModel.from_pretrained("biohub/ESMFold2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from biohub/ESMFold2: direct link, hf CLI and curl.
- Browser
- Download file 8.21 kB
-
https://huggingface.co/biohub/ESMFold2/resolve/69869f737beffec5294845ede23db5fc0b4f509e/config.json
- Command line
-
hf download hf://biohub/ESMFold2@69869f737beffec5294845ede23db5fc0b4f509e/config.json
-
curl -L -o config.json https://huggingface.co/biohub/ESMFold2/resolve/69869f737beffec5294845ede23db5fc0b4f509e/config.json
8.21 kB
| { | |
| "transformers_version": "5.16.0.dev0", | |
| "architectures": [ | |
| "EsmFold2Model" | |
| ], | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": "float32", | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 384, | |
| "pairwise_hidden_size": 256, | |
| "single_inputs_size": 451, | |
| "pair_transition_intermediate_size": 1024, | |
| "sliding_window": 128, | |
| "chunk_size": 64, | |
| "num_relative_residx_bins": 32, | |
| "num_relative_chain_bins": 2, | |
| "num_loops": 20, | |
| "num_res_types": 33, | |
| "max_atomic_number": 128, | |
| "char_vocab_size": 64, | |
| "max_chars": 4, | |
| "max_atoms_per_token": 23, | |
| "atom_feature_dim": 389, | |
| "folding_trunk_num_hidden_layers": 48, | |
| "parcae_num_coda_layers": 2, | |
| "atom_encoder": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 128, | |
| "output_dim": 384, | |
| "num_hidden_layers": 3, | |
| "num_attention_heads": 4, | |
| "head_dim": 32, | |
| "intermediate_size": 256, | |
| "spatial_rope_base_frequency": 20.0, | |
| "num_spatial_rope_pairs_per_axis": 2, | |
| "num_uid_rope_pairs": 10, | |
| "uid_rope_base_frequency": 10000.0, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false, | |
| "n_spatial_rope_pairs_per_axis": 2, | |
| "n_uid_rope_pairs": 10, | |
| "expansion_ratio": 2, | |
| "token_hidden_size": 768 | |
| }, | |
| "structure_head": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "diffusion_module": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "sigma_data": 16.0, | |
| "hidden_size": 768, | |
| "fourier_dim": 256, | |
| "num_hidden_layers": 12, | |
| "num_attention_heads": 16, | |
| "head_dim": 48, | |
| "intermediate_size": 1536, | |
| "pair_intermediate_size": 512, | |
| "atom_encoder": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 128, | |
| "output_dim": 768, | |
| "num_hidden_layers": 3, | |
| "num_attention_heads": 4, | |
| "head_dim": 32, | |
| "intermediate_size": 256, | |
| "spatial_rope_base_frequency": 20.0, | |
| "num_spatial_rope_pairs_per_axis": 2, | |
| "num_uid_rope_pairs": 10, | |
| "uid_rope_base_frequency": 10000.0, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false | |
| }, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false, | |
| "token_hidden_size": 768, | |
| "token_num_blocks": 12, | |
| "token_num_heads": 16, | |
| "transition_multiplier": 2, | |
| "c_z": 256, | |
| "c_s_inputs": 451, | |
| "relpos_r_max": 32, | |
| "relpos_s_max": 2 | |
| }, | |
| "num_distogram_bins": 64, | |
| "num_diffusion_samples": 32, | |
| "gamma_0": 0.8, | |
| "gamma_min": 1.0, | |
| "noise_scale": 1.003, | |
| "step_scale": 1.5, | |
| "inference_sigma_max_ratio": 160.0, | |
| "inference_sigma_min_ratio": 0.0004, | |
| "inference_exponent": 7.0, | |
| "inference_num_steps": 14, | |
| "inference_sigma_cap": 256.0, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false, | |
| "distogram_bins": 64, | |
| "inference_s_max": 160.0, | |
| "inference_s_min": 0.0004, | |
| "inference_p": 7.0, | |
| "train_noise_log_mean": -1.2, | |
| "train_noise_log_std": 1.5 | |
| }, | |
| "confidence_head": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "num_hidden_layers": 4, | |
| "num_plddt_bins": 50, | |
| "num_pde_bins": 64, | |
| "num_pae_bins": 64, | |
| "min_dist": 3.25, | |
| "max_dist": 50.75, | |
| "distogram_bins": 39, | |
| "eps": 1e-06, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false, | |
| "enabled": true, | |
| "num_attention_heads": 8, | |
| "dropout": 0.25 | |
| }, | |
| "msa_encoder": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "hidden_size": 128, | |
| "outer_hidden_size": 32, | |
| "num_hidden_layers": 4, | |
| "num_attention_heads": 8, | |
| "head_dim": 16, | |
| "intermediate_size": 512, | |
| "outer_product_chunk_size": null, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false, | |
| "head_width": 16, | |
| "enabled": true, | |
| "overwrite": true, | |
| "max_depth": 1024, | |
| "column_mask_rate": 0.1 | |
| }, | |
| "lm_encoder": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": null, | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "num_hidden_layers": 4, | |
| "lm_dropout": 0.25, | |
| "per_loop_lm_dropout": true, | |
| "_name_or_path": "", | |
| "model_type": "", | |
| "output_attentions": false, | |
| "enabled": true | |
| }, | |
| "esmc_config": { | |
| "architectures": null, | |
| "output_hidden_states": false, | |
| "return_dict": true, | |
| "dtype": "float32", | |
| "chunk_size_feed_forward": 0, | |
| "is_encoder_decoder": false, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "problem_type": null, | |
| "vocab_size": 64, | |
| "hidden_size": 2560, | |
| "intermediate_size": 6912, | |
| "num_hidden_layers": 80, | |
| "num_attention_heads": 40, | |
| "num_key_value_heads": 40, | |
| "hidden_act": "silu", | |
| "max_position_embeddings": 2048, | |
| "initializer_range": 0.02, | |
| "pad_token_id": 1, | |
| "bos_token_id": 0, | |
| "eos_token_id": 2, | |
| "tie_word_embeddings": false, | |
| "rope_parameters": { | |
| "rope_theta": 10000.0, | |
| "rope_type": "default" | |
| }, | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "mlp_bias": false, | |
| "head_dim": 64, | |
| "mask_token_id": 32, | |
| "classifier_dropout": 0.1, | |
| "_name_or_path": "", | |
| "model_type": "esmc", | |
| "output_attentions": false | |
| }, | |
| "_name_or_path": "", | |
| "model_type": "esmfold2", | |
| "output_attentions": false, | |
| "n_relative_residx_bins": 32, | |
| "n_relative_chain_bins": 2, | |
| "type": "release", | |
| "folding_trunk_num_attention_heads": 8, | |
| "folding_trunk_dropout": 0.25, | |
| "disable_msa_features": false, | |
| "lm_dropout": 0.0, | |
| "force_lm_dropout_during_inference": false, | |
| "lm_d_model": 2560, | |
| "lm_num_layers": 80, | |
| "lm_mask_pct": 0.0, | |
| "num_diffusion_samples": 32, | |
| "parcae": { | |
| "enabled": true, | |
| "poisson_mean": 3.0, | |
| "min_steps": 1, | |
| "max_steps": 6, | |
| "coda_n_layers": 2 | |
| }, | |
| "auto_map": { | |
| "AutoConfig": "modeling_esmfold2_remote.EsmFold2RemoteConfig", | |
| "AutoModel": "modeling_esmfold2_remote.EsmFold2RemoteModel" | |
| } | |
| } | |