Run this model with HF Jobs

Run aaronfeller/PeptideCLM-23M-all on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/aaronfeller/PeptideCLM-23M-all. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/aaronfeller/PeptideCLM-23M-all on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("fill-mask", model="aaronfeller/PeptideCLM-23M-all")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("aaronfeller/PeptideCLM-23M-all")
model = AutoModelForMaskedLM.from_pretrained("aaronfeller/PeptideCLM-23M-all", device_map="auto")
Quick Links

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
Downloads last month
6,531
Inference Providers NEW
Examples
No mask token found for this model.

Spaces using aaronfeller/PeptideCLM-23M-all 2

Collection including aaronfeller/PeptideCLM-23M-all