Downloads · 30 days
4
31% of all-time downloads
Yiquan2/Flu_Foundation
Flu_Foundation is a machine learning model from Yiquan2. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is a foundation model trained on influenza virus sequences for predicting viral evolution, functional constraints, and potential antigenic changes. It is designed to support research in influenza biology, vaccine…
Downloads · 30 days
4
31% of all-time downloads
All-time downloads
13
Public
Parameters
65.2M
261 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors261 MB · 99%
From the Hugging Face model README
This is a foundation model trained on influenza virus sequences for predicting viral evolution, functional constraints, and potential antigenic changes.
It is designed to support research in influenza biology, vaccine design, and immunology.
model.safetensors), tokenizer, config filesfrom transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Model and tokenizer from Hugging Face Hub
model_name = "Yiquan2/Flu_Foundation"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example input sequence (DNA/protein)
sequence = "ATGAATCCAAACCAGAAAATAATAACCATTGGCTCTGTT"
# Tokenize input
inputs = tokenizer(sequence, return_tensors="pt")
# Generate output probabilities or predictions
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits # shape: [batch_size, seq_len, vocab_size]
# Optional: compute probabilities
probs = torch.softmax(logits, dim=-1)
print(probs)
python mutation_prediction.py \
--csv DMS_NA_data/Mos99_fit.csv \
--fasta Mos99_nucleotide.fasta \
--model Yiquan2/Flu_Foundation \
--output results.csv