Zum Inhalt springen
ModelÜberprüftExtern
Herunterladen

Esm2 650m Protein Localization LoRA

Fine-tuned ESM-2 650M with LoRA for predicting protein subcellular localization (10 classes).

ArtLoRABasismodellfacebook/esm2_t33_650M_UR50DVersionadapter_modelVerleger@whiteh4tCBewertung

Modellquelle

Art
LoRA
Dateigröße
15,5 MB
Basismodell
facebook/esm2_t33_650M_UR50D
Version
vadapter_model
Aktualisiert
26. Sept. 2026
Verleger
@whiteh4t
Downloads
4
Parameter
650M
Quelle
Hugging Face

Quellenbeschreibung

ESM-2 650M + LoRA for Protein Subcellular Localization

Fine-tuned ESM-2 650M with LoRA for predicting protein subcellular localization (10 classes).

Results

ModelParams TrainedAccuracyF1 (macro)MCC
ESM-2 8M linear probe100% (head only)69.6%0.5810.614
ESM-2 35M full fine-tune100%74.3%0.6470.677
ESM-2 150M full fine-tune100%76.6%0.6960.706
ESM-2 650M LoRA2.4%76.5%0.6680.704

Usage

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

Labels

IDLocation
0Cytoplasm
1Nucleus
2Extracellular
3Cell membrane
4Mitochondrion
5Endoplasmic reticulum
6Membrane
7Golgi apparatus
8Lysosome/Vacuole
9Peroxisome

Training

  • Dataset: DeepLoc 2.0 (17,266 train / 3,700 val / 3,701 test)
  • LoRA config: r=16, alpha=32, target_modules=[query, key, value]
  • Training: 10 epochs, lr=2e-4, batch_size=32, cosine schedule
  • Hardware: NVIDIA DGX Spark (128GB unified memory)

Citation

@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}
}

Quellen

1 Quelle
Hugging FacePrimärVersion 183b6b294e6c4ad775509e919c72b8d8274f109e
huggingface.co/rustambekurokov/esm2-650m-protein-localization-lora/tree/183b6b294e6c4ad775509e919c72b8d8274f109e

Verifiziert 26. Sept.

Modellartefakte

1 Artefakt

adapter_model.safetensors

safetensors · 15,5 MB · SHA-256 a8b7b2c0bc9e…575f · Hugging Face

Herunterladen

Quellenauszüge

3 Auszüge

--- license: mit language: en tags: - biology - protein - esm2 - subcellular-localization - lora - peft datasets: - DeepLoc-2.0 base_model: facebook/esm2_t33_650M_UR50D metrics: - accuracy - f1 --- # ESM-2 650M + LoRA for Protein Subcellular Localization Fine-tuned [ESM-2 650M](https://huggingface.co/facebook/esm2_t33_650M_UR50D) with LoRA for predicting protein subcellular localization (10 classes). ## Results | 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** | ## Usage ```python 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 ``` ## Labels | 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 | ## Training - **Dataset**: DeepLoc 2.0 (17,266 train / 3,700 val / 3,701 test) - **LoRA config**: r=16, alpha=32, target_modules=[query, key, value] - **Training**: 10 epochs, lr=2e-4, batch_size=32, cosine schedule - **Hardware**: NVIDIA DGX Spark (128GB unified memory) ## Citation ```bibtex @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} } ```

Source context: 4 downloads · 1 likes · Library peft · Repo rustambekurokov/esm2-650m-protein-localization-lora

Source context: 18 downloads · 1 likes · Library peft · Repo whiteh4t/esm2-650m-protein-localization-lora