Downloads ยท 30 days
0
jackkuo/Orthoformer
Orthoformer is a feature extraction model from jackkuo. Use it when you need embeddings to search or compare text. The card lists the license as mit.
This repository contains pre-trained Orthoformer foundation models for function-centric representation learning of microbial and viral genomes.
Downloads ยท 30 days
0
Access
Public
Updated Jan 6, 2026
Repo size
6.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB ยท 100%
From the Hugging Face model README
This repository contains pre-trained Orthoformer foundation models for function-centric representation learning of microbial and viral genomes.
Unlike sequence-based protein or nucleotide models, Orthoformer operates on orthologous group composition and abundance, treating functional units as tokens and learning genome-level embeddings that capture evolutionary, metabolic, and ecological signals.
The models are trained on approximately 3 million microbial and viral genomes, encoded as functional profiles derived from orthologous gene groups.
All Orthoformer models learn a functional embedding space that supports:
| Model | Training Genomes | Max Length | Hidden | Layers | Heads | Description |
|---|---|---|---|---|---|---|
model_3M_2048_v8 | 3M | 2048 | 512 | 6 | 8 | Base Orthoformer foundation model |
model_3M_2048_v10 | 3M | 2048 | 1024 | 12 | 16 | Large Orthoformer foundation model |
model_140k_2048_v18 | 140k | 2048 | 512 | 6 | 8 | Compact foundation model |
All foundation models use:
| Model | Task | Initialized From |
|---|---|---|
Orthoformer_CRISPR_model | CRISPR-associated genome prediction | model_3M_2048_v10 |
BGC_abundance_regression_model | Biosynthetic gene cluster abundance | model_3M_2048_v10 |
These models adapt the foundation embeddings to organism-level functional phenotypes.
# Install huggingface-hub
pip install huggingface-hub
# Download entire model repository
huggingface-cli download jackkuo/Orthoformer --local-dir ./model
# Or download specific model
huggingface-cli download jackkuo/Orthoformer/model_3M_2048_v8 --local-dir ./model/model_3M_2048_v8
huggingface-cli download jackkuo/Orthoformer/model_3M_2048_v10 --local-dir ./model/model_3M_2048_v10
from huggingface_hub import snapshot_download
# Download entire model repository
snapshot_download(
repo_id="jackkuo/Orthoformer",
local_dir="./model",
local_dir_use_symlinks=False
)
# Or download specific model
snapshot_download(
repo_id="jackkuo/Orthoformer",
allow_patterns="model_3M_2048_v8/*",
local_dir="./model",
local_dir_use_symlinks=False
)
# Recommended for large model files
git lfs install
git xet install || true
git clone https://huggingface.co/jackkuo/Orthoformer ./model
After downloading the models, you can use feature_extraction_example.py to load and use the models:
# Using model_3M_2048_v8 (ALiBi positional encoding)
python feature_extraction_example.py --model_dir model/model_3M_2048_v8 --use_alibi
This dataset is released under the MIT License.
If you use this dataset, please cite:
@dataset{xxx,
title = {Orthoformer: xxx},
author = {xxx},
year = {2025},
}