Downloads · 30 days
8
24% of all-time downloads
rustambekurokov/esm2-650m-protein-localization-lora
esm2-650m-protein-localization-lora is a machine learning model from rustambekurokov. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
Fine-tuned ESM-2 650M with LoRA for predicting protein subcellular localization (10 classes).
Downloads · 30 days
8
24% of all-time downloads
All-time downloads
34
Public
Repo size
16.2 MB
Likes
1
Public
Click a slice to open those files.
.safetensors16.2 MB · 100%
From the Hugging Face model README
Fine-tuned ESM-2 650M with LoRA for predicting protein subcellular localization (10 classes).
| Model | Params Trained | Accuracy | F1 (macro) | MCC |
|---|---|---|---|---|
| ESM-2 8M linear probe | 100% (head only) | 69.6% | 0.581 | 0.614 |
| ESM-2 35M full fine-tune | 100% | 74.3% | 0.647 | 0.677 |
| ESM-2 150M full fine-tune | 100% | 76.6% | 0.696 | 0.706 |
| ESM-2 650M LoRA | 2.4% | 76.5% | 0.668 | 0.704 |
import torch
from transformers import AutoTokenizer, EsmModel
from peft import LoraConfig, get_peft_model
# Load base model + LoRA weights
tokenizer = AutoTokenizer.from_pretrained("facebook/esm2_t33_650M_UR50D")
# See full inference code in the repository
| ID | Location |
|---|---|
| 0 | Cytoplasm |
| 1 | Nucleus |
| 2 | Extracellular |
| 3 | Cell membrane |
| 4 | Mitochondrion |
| 5 | Endoplasmic reticulum |
| 6 | Membrane |
| 7 | Golgi apparatus |
| 8 | Lysosome/Vacuole |
| 9 | Peroxisome |
@article{lin2023evolutionary,
title={Evolutionary-scale prediction of atomic-level protein structure with a language model},
author={Lin, Zeming and Akin, Halil and Rao, Roshan and others},
journal={Science},
year={2023}
}