Run this model with HF Jobs
Run ChatterjeeLab/MetaLATTE 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/ChatterjeeLab/MetaLATTE. 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/ChatterjeeLab/MetaLATTE 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.
Instructions to use ChatterjeeLab/MetaLATTE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChatterjeeLab/MetaLATTE with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ChatterjeeLab/MetaLATTE", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
b84fc7f
1
Parent(s): ea1d1a6
reupload
Browse filesFiles changed (4)
- .gitattributes+3
- README.md+31
- model/pytorch_model.binDeleted-3
- setup.py+1-1
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373832 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textmodel/pytorch_model.bin filter=lfs diff=lfs merge=lfs -textmodel/stage1_model.bin filter=lfs diff=lfs merge=lfs -textpytorch_model.bin filter=lfs diff=lfs merge=lfs -text
9 unmodified lines1011121314159 unmodified linesInference instruction will be released soon.# Repo Author- Yinuo Zhang (yzhang@u.duke.nus.edu)9 unmodified lines101112131415161718192021222324252627282930313233343536373839404142434445469 unmodified linesInference instruction will be released soon.## Interactive DemoYou can try out the MetaLATTE model directly in your browser:<iframesrc="https://huggingface.co/spaces/ChatterjeeLab/MetaLATTE-demo"frameborder="0"width="850"height="450"></iframe>## Usage```pythonfrom transformers import AutoTokenizer, AutoModel, AutoConfigtokenizer = AutoTokenizer.from_pretrained("facebook/esm2_t33_650M_UR50D")config = AutoConfig.from_pretrained("ChatterjeeLab/MetaLATTE")model = AutoModel.from_pretrained("ChatterjeeLab/MetaLATTE", config=config)# Use the modelsequence = "AVYNIGWSFNVNGARGKSFRAGDVLVFKYIKGQHNVVAVNGRGYASCSAPRGARTYSSGQDRIKLTRGQNYFICSFPGHCGGGMKIAINAK"inputs = tokenizer(sequence, return_tensors="pt")raw_probs, predictions = model(**inputs)id2label = config.id2labelpredicted_labels = [id2label[i] for i, pred in enumerate(predictions[0]) if pred == 1]print(predicted_labels)['Cu']```# Repo Author- Yinuo Zhang (yzhang@u.duke.nus.edu)
123version https://git-lfs.github.com/spec/v1oid sha256:4a4b1eda0e66924a059f0bd2b6210142d24d37049bef6908ada05fb9195a83dasize 567693190110 unmodified lines1112131415161710 unmodified lines"torch==2.0.1+cu117","numpy==1.22.4","lightning==2.1.2","transformers==4.38.2",],python_requires='>=3.8',)10 unmodified lines1112131415161710 unmodified lines"torch==2.0.1+cu117","numpy==1.22.4","lightning==2.1.2","transformers>=4.38.2",],python_requires='>=3.8',)
.gitattributes+3
README.md+31
model/pytorch_model.binDeleted-3
setup.py+1-1