Downloads · 30 days
0
lotfollahi-lab/TERRA-112M
TERRA-112M is a feature extraction model from lotfollahi-lab. Use it when you need embeddings to search or compare text. It is set up for terra-st. The card lists the license as cc-by-nc-4.0.
JEPA-based spatial-transcriptomics foundation model (TERRA). Code & docs: https://github.com/Lotfollahi-lab/terra
Downloads · 30 days
0
Access
Public
Updated Jun 24, 2026
Repo size
570 MB
Likes
7
Public
Click a slice to open those files.
.pt568 MB · 100%
From the Hugging Face model README
JEPA-based spatial-transcriptomics foundation model (TERRA). Code & docs: https://github.com/Lotfollahi-lab/terra
Trained on the full HST-Corpus-112M (~112M cells; no held-out split). For benchmarking and downstream analyses on held-out data, see TERRA-96M. See the manuscript for details.
model_checkpoint.pt — target-encoder weights (inference)model_config.yaml — model / tokenization configtoken_dictionary.pkl — gene-token vocabularyensembl_dictionary.pkl — gene-name to Ensembl-ID mapping (harmonization)gene_count_dictionary.pkl — gene occurrence counts (rare-gene filtering)from app.huggingface import download_pretrained
from app.inference import harmonize_tokenize_embed_pipeline
d = download_pretrained("Lotfollahi-lab/TERRA-112M")
adata = harmonize_tokenize_embed_pipeline(
adata=adata,
model_folder_path=d, # gene-reference files auto-resolved from here
# ... sample_key / batch_key / etc.
)
<add paper / bioRxiv reference>