NASA BridgeRNA Foundation Model
Developed at NASA Ames Research Center with funding from NASA's Biological and Physical Sciences Division (BPS). This repository provides pretrained model weights, configuration, gene-reference tables and the optional Hallmark head.
Source code, examples and benchmarks

Sample embeddings of the ARCHS4 reference collection generated with BridgeRNA.
Model
45,593,601-parameter PyTorch Transformer, 12 layers, 512 features, eight heads, 15,165 canonical genes; checkpoint r7hnr92k. Dense SDPA attention, learned gene identity plus sinusoidal expression encoding. No species embedding. Natural log1p(TPM) inputs; -10 explicit mask token. Mean-pooled final states give sample embeddings; scalar decoder reconstructs expression.
Files and use
model.pt contains only model_state_dict tensors extracted unchanged from the
original training checkpoint. config.json, ordered canonical_genes.csv and
preprocessing.json are required. Ortholog and species-specific exon lengths
support preprocessing. frozen_gtex_hallmark_probe.npz is an optional readout
whose scientific limitations are described below. See manifest.json for hashes.
Install the AI4LS/BridgeRNA package, then load the weights directly:
from bridgerna import from_pretrained
model = from_pretrained(
"nasa-compbio/NASA-BridgeRNA-Foundation-Model",
revision="0e5349c4fa6dd32ec3eead159a4f7c7a62cb7be1",
device="cuda",
)
The example pins the initial weights commit for reproducibility. The loader uses huggingface_hub, checks canonical order and loads native PyTorch weights. Preprocess with species-correct lengths before ortholog mapping; preserve the declared TPM denominator.
Training and evaluation
The training configuration records 640,000 training and 160,000 validation samples, 15% masking, 20 epochs and AdamW with learning rate 1e-4. Scientific reports and evaluation code are available in the benchmark suite.
Limitations and intended use
Research representations, reconstruction and downstream predictions only. Not a clinical diagnostic, validated batch-correction system or causal pathway assay. Human and mouse score calibration may differ. Hallmark outputs predict human GTEx-standardized rank means, not pathway probabilities/enrichment/activity. Missing genes, assay shifts and prior exposure can affect performance.
Authors and citation
See AUTHORS.md for the supplied author order and affiliations.
Walter Alvarado, James Casaletto, Amanda Saravia-Butler, Jatin Chaudhary, Ana Uriarte-Acuna, Joshua Jang, Vikasni Kalahasthi, Abraham Guan, Brian Zhou, Minggang Li, Karen Meng, Ishanth Hombaiah, Sam Gebre, Jon Galazka. BridgeRNA project; manuscript in preparation. [Manuscript title and public citation/DOI will be added when available.]
License
Source code, pretrained backbone weights and the frozen Hallmark head are licensed under Apache 2.0. See LICENSE and NOTICE. Third-party annotation tables retain their source terms; see ANNOTATION_RESOURCES.md.