Transformers
protein
protein-design
biology
tokenizer

protein-tokenizer-gemma

The protein tokenizer of P-gemma-7B

Paper GitHub Collection

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.

Usage

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).

Citation

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

License

Released under the base model's license (gemma). For research use.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train Kamyar-zeinalipour/protein-tokenizer-gemma

Collection including Kamyar-zeinalipour/protein-tokenizer-gemma