NVIDIA has released CodonFM 5B and CodonFM 5B-CDWT, two open RNA foundation models that read protein-coding sequences one codon at a time. The CodonFM 5B RNA foundation model is the largest member of a family that previously topped out at 1B parameters, and it targets a gap most protein models leave open: synonymous variants. Weights are on Hugging Face, code is Apache-2.0, and the models are cleared for commercial use.
TL;DR
- Size: 4.85 × 10⁹ parameters each. 24 layers, hidden size 4096, 32 attention heads, rotary position embeddings. Context window of 2048 tokens, capped at 2,046 codons.
- Runs on: 1 datacenter GPU. The FP32 checkpoint puts 19.4 GB of weights in memory before activations, so NVIDIA says plan for a 40 GB card or larger. Tested on A100; Ampere and Hopper supported. Linux, Python 3.12.
- Performance: Best in its family on every published benchmark, and ahead of the anonymized published baselines NVIDIA compares against.
- Best: ClinVar synonymous variants, where 5B-CDWT reaches roughly 0.67 AUROC against about 0.61 for the strongest published comparison.
- Worst: That 0.67 AUROC is still a modest absolute number, and the model sees coding sequence only, so UTRs, introns and non-coding RNA are out of scope.
What is CodonFM 5B?
CodonFM is a family of open RNA foundation models from NVIDIA that tokenize a coding sequence by codon rather than by amino acid. GAA and GAG both encode glutamate. A protein model collapses them into one token. CodonFM keeps them apart, which is the whole point: the choice between synonymous codons changes transcript folding, ribosome speed and whether a protein folds correctly.
Two checkpoints shipped. CodonFM 5B uses uniform random codon masking. CodonFM 5B-CDWT weights masking by codon usage bias, hiding rarer codons more often. NVIDIA recommends the base model for codon optimization, expression prediction and somatic variants, and the CDWT variant for germline variant scoring and species-specific work.
How was it trained?
Both models are transformer encoders trained with a masked-codon objective on more than 130 million coding sequences spanning over 22,000 species. Human-affecting pathogen sequences were excluded for biosafety. The preprint paper describes a BERT-style bidirectional encoder with CLS and SEP tokens, and the published config.json confirms 24 layers at 4096 hidden width.
How does CodonFM 5B perform on benchmarks?
NVIDIA publishes results as figures rather than tables, so the numbers below are read from the model card figure descriptions and should be treated as approximate.
Validation loss falls from about 2.9 at 80M to roughly 2.25 at 1B and about 1.95 at 5B, and synonymous codon confusion drops with scale. On 129,384 ClinVar synonymous variants, 5B-CDWT leads at roughly 0.67 AUROC. On 1,471 cancer-observed synonymous variants matched between COSMIC and gnomAD, the 5B models reach about 10 on the negative log-10 p scale, against roughly 2 for the PhyloP conservation score.
For mRNA design, random forests on frozen 5B embeddings score about 0.72 Spearman on translation efficiency, drawn from 3,819 ribosome profiling datasets across more than 140 human and mouse cell types, and about 0.73 on mRFP protein expression across 1,459 synonymous CDS variants. No fine-tuning is involved. In wet-lab work with Arc Institute and Ansa Bio, CodonFM-guided designs raised expression in A549 cells by nearly 4x for GFP and 2x for luciferase relative to wild type.
How does it compare?
| Metrics | CodonFM 5B | EnCodon 1B | Evo 2 7B | ESM-2 650M | CodonBERT |
|---|---|---|---|---|---|
| Parameters | 4.85 × 10⁹ | 9.11 × 10⁸ | 7B | 650M | Not disclosed |
| Token unit | Codon | Codon | Nucleotide | Amino acid | Codon |
| Context | 2,046 codons | 2,046 codons | 1M tokens | 1024 characters | Not disclosed |
| Training corpus | 130M+ CDS, 22,000+ species | 130M+ CDS, 22,000+ species | 9.3T base pairs | UR50 protein sequences | 10M mRNA sequences |
| Objective | Masked codon (random) | Masked codon (random) | Autoregressive | Masked language modeling | MLM plus taxonomy prediction |
| License | NVIDIA Open Model License | NVIDIA Open Model License | NVIDIA Open Model License | MIT | Academic, non-commercial |
| Commercial use | Yes | Yes | Yes | Yes | No |
How do you run it?
Clone the GitHub repo, run run_dev.sh to build the Docker image, then pull weights with hf download nvidia/CodonFM-Encodon-5B-v1. The EncodonInference class exposes two tasks: mutation_prediction returns a log-likelihood ratio for a reference-versus-alternate codon swap, and embedding_prediction returns one 4096-wide CLS vector per sequence.
For teams starting from raw reads rather than a clean CDS, the Genomic Analysis Blueprint chains Parabricks BWA alignment, DeepVariant calling and GENCODE annotation ahead of CodonFM scoring. Agent-driven workflows can use the BioNeMo Agent Toolkit skills.
Key Takeaways
- CodonFM 5B and 5B-CDWT are 4.85B-parameter codon-level RNA encoders, open for commercial use.
- Codon tokenization lets the model score synonymous variants that amino-acid models cannot see.
- 5B-CDWT leads on ClinVar germline synonymous variants; plain 5B is better for somatic and expression work.
- Frozen 5B embeddings beat published baselines on translation efficiency and protein expression with no fine-tuning.
- A 40 GB GPU and a 2,046-codon ceiling are the practical constraints.
Weights, code and the preprint are linked above, and all CodonFM checkpoints are collected in the CodonFM collection on Hugging Face. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
The post NVIDIA Releases CodonFM 5B, an Open Codon-Level RNA Foundation Model appeared first on MarkTechPost.
