Kamyar-zeinalipour/UniRef50HumanProteins
Viewer • Updated • 87k • 143
How to use Kamyar-zeinalipour/protein-tokenizer-gemma with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Kamyar-zeinalipour/protein-tokenizer-gemma", device_map="auto")The Gemma-7B tokenizer adapted to amino-acid sequences (256,000 tokens), used to train and run
P-gemma-7B on human protein sequences from
UniRef50-HumanProteins.
Sequences start with <bos> and end with <eos>.
From Design Proteins Using Large Language Models: Enhancements and Comparative Analyses (LangMol 2024, ACL workshop). Code: protein-design-LLMs.
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("Kamyar-zeinalipour/protein-tokenizer-gemma")
model = AutoModelForCausalLM.from_pretrained("Kamyar-zeinalipour/P-gemma-7B", torch_dtype="auto", device_map="auto")
The generation script in the repository handles prompting and decoding (python main.py --help).
@inproceedings{zeinalipour-etal-2024-design,
title = "Design Proteins Using Large Language Models: Enhancements and Comparative Analyses",
author = "Zeinalipour, Kamyar and Jamshidi, Neda and Bianchini, Monica and Maggini, Marco and Gori, Marco",
booktitle = "Proceedings of the 1st Workshop on Language + Molecules ({L}+{M} 2024)",
month = aug,
year = "2024",
address = "Bangkok, Thailand",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.langmol-1.5/",
doi = "10.18653/v1/2024.langmol-1.5",
pages = "34--47"
}
Released under the base model's license (gemma). For research use.