Unified Bio Model v2
A multitask bioinformatics model
2 min read
This AI model is built for biological data analysis and automatically detects the task type based on the input file. The model handles four different problems: checking proteins for toxicity, splitting samples into normal and tumor categories by gene expression (for the esophagus and liver), and classifying 32 cancer types using TCGA. The architecture combines the ESM-2 protein language model (a pretrained neural network for working with amino acid sequences) and a transformer for tabular expression data. This development will benefit researchers and bioinformaticians working with proteomics and genetic data.
Key features
- An automatic router that first identifies the task type from the input and then outputs the result.
- Support for scale presets ranging from a fast 35M-parameter base model to a powerful 650M xl variant.
- Masked gene modeling for pre-training on expression data.
- Use of EMA (exponential moving average of weights) to stabilize training on small datasets.
What you can do
- Run a full training and 5-seed cross-validation cycle using the
run_seeds.shscript. - Check protein sequences for toxicity by passing a file in FASTA format.
- Classify tumor and cancer types from tabular gene expression data (CSV).
- Integrate the model into scripts using the
UnifiedPredictorclass for batch data processing.
Example
from predict import UnifiedPredictor
p = UnifiedPredictor("runs/large_s42/best_model.pt")
p.predict(["MKVLIISAVLF...", {"KRT5": 13.2, "TP63": 9.8}])
Read more
DetailsPretrained ESM-2 weights are downloaded from Hugging Face automatically upon the first launch.
Working with large presets (esm650, esm3b) requires a GPU with sufficient VRAM (for example, an RTX 5090).
The package includes scripts for running on Linux and Windows (PowerShell).










Comments