Bio Series
Collection
Embeddings and NLG related to biology / amino acid sequences
•
10 items
•
Updated
•
1
This is an adapter of the monsoon-nlp/tinyllama-mixpretrain-quinoa-sciphi model on the GreenBeing dataset finetuning split (minus maize/corn/Zea, which I left for evaluation).
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
# this model
model = AutoPeftModelForCausalLM.from_pretrained("monsoon-nlp/tinyllama-mixpretrain-uniprottune").to("cuda")
# base model for the tokenizer
tokenizer = AutoTokenizer.from_pretrained("monsoon-nlp/tinyllama-mixpretrain-quinoa-sciphi")
inputs = tokenizer("<sequence> Subcellular locations:", return_tensors="pt")
outputs = model.generate(input_ids=inputs["input_ids"].to("cuda"), max_new_tokens=50)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True)[0])
Inference Notebook: https://colab.research.google.com/drive/1UTavcVpqWkp4C_GkkS_HxDQ0Orpw43iu?usp=sharing
It seems unreliable on the Zea proteins. Getting a lot of the same answers for Subcellular locations.
The following hyperparameters were used during training: