Downloads · 30 days
8.7K
6% of all-time downloads
aaronfeller/PeptideCLM-23M-all
PeptideCLM-23M-all is a fill-mask model from aaronfeller. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
Peptide-trained Chemical Language Model using 10.8M peptides and 12.6M small molecules for MLM pretraining.
Downloads · 30 days
8.7K
6% of all-time downloads
All-time downloads
153K
Public
Repo size
698 MB
Likes
2
Public
Click a slice to open those files.
.bin175 MB · 100%
From the Hugging Face model README
Peptide-trained Chemical Language Model using 10.8M peptides and 12.6M small molecules for MLM pretraining.
Loading the tokenizer is not possible with transformers. A custom tokenizer must be loaded from the 'tokenizer' directory found at at https://github.com/AaronFeller/PeptideCLM
An example script for this can be found in the repository. A short example is below (note, the tokenizer directory must be downloaded):
from tokenizer.my_tokenizers import SMILES_SPE_Tokenizer
def get_tokenizer():
vocab_file = 'tokenizer/new_vocab.txt'
splits_file = 'tokenizer/new_splits.txt'
tokenizer = SMILES_SPE_Tokenizer(vocab_file, splits_file)
return tokenizer