Instructions to use SaProtHub/Model-ACE2_Omicron_BQ.1.1_binding_affinity-35M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use SaProtHub/Model-ACE2_Omicron_BQ.1.1_binding_affinity-35M with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("westlake-repl/SaProt_35M_AF2") model = PeftModel.from_pretrained(base_model, "SaProtHub/Model-ACE2_Omicron_BQ.1.1_binding_affinity-35M") - Notebooks
- Google Colab
- Kaggle
| base_model: westlake-repl/SaProt_35M_AF2 | |
| library_name: peft | |
| # Base model: [westlake-repl/SaProt_35M_AF2](https://huggingface.co/westlake-repl/SaProt_35M_AF2) | |
| # Model Card for Model ID | |
| <!-- Provide a quick summary of what the model is/does. --> | |
| This model is used to predict ACE2 binding affinities with mutant SARSCoV-2 Omicron BQ1.1 variants spike receptor-binding domain (RBD). | |
| ### Task type | |
| protein level regression | |
| ### Dataset description | |
| The dataset is from [Deep mutational scans of XBB.1.5 and BQ.1.1 reveal ongoing epistatic drift during SARSCoV-2 evolution](https://doi.org/10.1371/journal.ppat.1011901). | |
| Label means binding affinities level, ranging from minus infinity to positive infinity. | |
| Zero means no affinity, lager means higher affinity and smaller means lower affinity. | |
| ### Model input type | |
| Amino acid sequence | |
| ### Performance | |
| 0.70 Spearman's ρ | |
| ### LoRA config | |
| lora_dropout: 0.0 | |
| lora_alpha: 16 | |
| target_modules: ["query", "key", "value", "intermediate.dense", "output.dense"] | |
| modules_to_save: ["classifier"] | |
| ### Training config | |
| class: AdamW | |
| betas: (0.9, 0.98) | |
| weight_decay: 0.01 | |
| learning rate: 1e-3 | |
| epoch: 50 | |
| batch size: 200 | |
| precision: 16-mixed |