Views
No views yet
| Repo | Tracks | Embed dim | Objective | Used in |
|---|---|---|---|---|
antichronology/orthrus-4-track | 4 | 512 | contrastive | Nature Methods publication |
antichronology/orthrus-6-track | 6 | 512 | contrastive | Nature Methods publication |
antichronology/orthrus-small-6-track | 6 | 256 | contrastive | Nature Methods publication |
antichronology/orthrus-mlm-6-track | 6 | 512 | contrastive + MLM | Nature Methods publication |
quietflamingo/orthrus-base-4-track | 4 | 256 | contrastive | Pre-publication |
quietflamingo/orthrus-large-4-track | 4 | 512 | contrastive | Pre-publication |
quietflamingo/orthrus-large-6-track | 6 | 512 | contrastive | Pre-publication |
| Method | Output shape | Notes |
|---|---|---|
representation(x, lengths, channel_last=True) | (B, D) | Mean-pooled, padding-aware |
representation_unpooled(x, channel_last=True) | (B, L, D) | Per-position hidden states |
predict_tokens(x, lengths, channel_last=True) | (B, L, 4) | MLM logits over [A, C, G, T]. Available on MLM-pretrained repos (*-mlm-*); raises NotImplementedError on contrastive-only checkpoints. |
seq_to_oh(seq) | (L, 4) | One-hot helper, ordering [A, C, G, T] (U is treated as T) |
1# Conda env with Python 3.10
2mamba create -n orthrus python=3.10
3mamba activate orthrus
4
5# PyTorch + transformers + huggingface_hub
6pip install 'torch>=2.2' 'transformers<4.46' 'huggingface_hub>=0.24' safetensors
7
8# Mamba kernels (require CUDA; pin versions for the published checkpoints)
9pip install causal-conv1d==1.2.0.post2 --no-build-isolation --no-cache-dir
10pip install mamba-ssm==1.2.0.post1 --no-build-isolation --no-cache-dir
11
12# GenomeKit, only if you want to build 6-track inputs from real transcripts
13mamba install "genomekit>=6.0.0"
14wget -O starter_build.sh https://raw.githubusercontent.com/deepgenomics/GenomeKit/main/starter/build.sh
15chmod +x starter_build.sh
16./starter_build.sh1import torch
2from transformers import AutoModel
3
4device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
5
6model = AutoModel.from_pretrained(
7 "antichronology/orthrus-4-track",
8 trust_remote_code=True,
9).to(device).eval()1sequence = (
2 "TCATCTGGATTATACATATTTCGCAATGAAAGAGAGGAAGAAAAGGAAGCAGCAAAATATGTGGAGGCCCA"
3 "ACAAAAGAGACTAGAAGCCTTATTCACTAAAATTCAGGAGGAATTTGAAGAACATGAAGTTACTTCCTCC"
4)
5oh = model.seq_to_oh(sequence).unsqueeze(0).to(device) # (1, L, 4)
6lengths = torch.tensor([oh.shape[1]], device=device)
7
8with torch.no_grad():
9 emb = model.representation(oh, lengths, channel_last=True)
10# emb.shape == (1, D)1with torch.no_grad():
2 hidden = model.representation_unpooled(oh, channel_last=True)
3# hidden.shape == (1, L, D)
4# Useful for: local scoring at a specific transcript position, attention
5# probing, downstream sequence-tagging tasks.1@article{fradkinShi2026,
2 title = {Orthrus: toward evolutionary and functional RNA foundation models},
3 ISSN = {1548-7105},
4 url = {http://dx.doi.org/10.1038/s41592-026-03064-3},
5 DOI = {10.1038/s41592-026-03064-3},
6 journal = {Nature Methods},
7 publisher = {Springer Science and Business Media LLC},
8 author = {Fradkin, Philip and Shi, Ruian "Ian" and Dalal, Taykhoom and Isaev, Keren and Frey, Brendan J. and Lee, Leo J. and Morris, Quaid and Wang, Bo},
9 year = {2026},
10 month = Apr
11}