CodonFM-Encodon-5B: What NVIDIA's 5B RNA Model Does and How to Choose It
CodonFM-Encodon-5B is NVIDIA's largest open RNA foundation model, a 4.85-billion-parameter BERT-style encoder that reads protein-coding sequences one codon at a time. It keeps synonymous codons distinct so silent variants remain visible. This guide covers the random and CDWT training objectives, ClinVar and expression benchmarks, exact inputs and outputs, the 40 GB GPU floor, license terms and the model's explicit non-clinical limits.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What is CodonFM-Encodon-5B?
CodonFM-Encodon-5B is the largest member of NVIDIA's open CodonFM family of RNA foundation models, developed with the Arc Institute and released in December 2026. It is a BERT-style bidirectional encoder with 4.85 billion parameters that reads protein-coding sequences one codon at a time.
The Hugging Face repository is nvidia/CodonFM-Encodon-5B-v1, and a companion checkpoint named CodonFM-5B-CDWT uses a different masking objective.
The design premise is that synonymous codons are not interchangeable. Two codons can encode the same amino acid while differing in translation speed, RNA stability and folding, so a model that tokenises by amino acid discards that signal. CodonFM keeps each three-letter codon as its own token and learns context-dependent codon usage from evolution-scale data.
Why does codon resolution matter for silent mutations?
The genetic code is redundant: most amino acids have several codons. A change from a common leucine codon to a rare one leaves the protein sequence unchanged but can alter how the transcript folds and how quickly a ribosome reads it.
Clinical databases such as ClinVar and COSMIC suggest these synonymous changes are not always harmless, yet many popular sequence models erase the distinction before the model sees it.
CodonFM was built to preserve that distinction. Its representation is shaped by GC content, tRNA availability, RNA structure and host or tissue context, which are the factors that make codon choice matter in practice. This is why the model is useful for questions like whether a synonymous variant is likely pathogenic, or which coding sequence will express well in a chosen cell type.
How is the model trained and what is CDWT?
The family is pretrained with masked language modelling over codons on more than 131 million protein-coding sequences from over 22,000 species, drawn from NCBI RefSeq. Human-affecting pathogen sequences were excluded from training. The default context window is 2,048 tokens, which leaves room for 2,046 codons or 6,138 ribonucleotides after special tokens.
Two objectives exist. Plain CodonFM-Encodon-5B uses uniform random masking, treating all codons equally; it suits zero-shot scoring, codon optimisation, mRNA design, expression prediction and somatic variant analysis. CodonFM-5B-CDWT uses codon-frequency-weighted masking, hiding rare codons more often so the model learns species-specific preference. That makes CDWT stronger for germline pathogenicity scoring, while plain 5B is at least as strong for somatic variants and expression.
What does CodonFM-Encodon-5B actually take and return?
The input is a protein-coding sequence written in uppercase A, C, G and T, with a length divisible by three. Longer sequences are truncated at 2,046 codons. The model is intended as a scoring and interpretation tool, not a generator: it does not design new RNA sequences from scratch.
Outputs come in three forms. Masked-position codon probabilities give a probability for each codon at a hidden site. Sequence embeddings come from the final layer's [CLS] representation, with a 4,096-dimensional vector per sequence that you can feed into your own regressor for translation efficiency or stability. Variant likelihood ratios compare a reference codon with an alternative in context; a larger positive value means the model considers the alternative less plausible. NVIDIA stresses this is a research signal, not a clinical judgement or a prediction of higher or lower expression.
How does the 5B model compare with smaller checkpoints?
Benchmarks in the model card show clear scaling benefits across the family. Validation loss falls from roughly 2.9 for Encodon-80M to about 2.25 for Encodon-1B and around 1.95 for the 5B models, while synonymous codon confusion also decreases with scale.
On a ClinVar benchmark of 129,384 synonymous variants, CDWT reaches about 0.67 AUROC, plain 5B is close behind, 1B models sit near 0.62 and Encodon-80M is near chance at about 0.51.
| Task | Dataset | Best 5B result | Comparator |
|---|---|---|---|
| Synonymous pathogenicity | 129,384 ClinVar variants | ~0.67 AUROC (CDWT) | ~0.62 (1B), ~0.61 (prior SOTA) |
| Cancer-associated synonymous variants | 1,471 COSMIC vs gnomAD cases | ~10 -log10 p | ~6 (1B), ~2 (PhyloP) |
| Translation efficiency | 3,819 ribosome profiling sets, 140+ cell types | ~0.72 Spearman | ~0.69 (prior SOTA) |
| Protein expression | 1,459 synonymous CDS variants, E. coli | ~0.73 Spearman | ~0.68 (prior SOTA) |
The model card also reports strong de novo variant prioritisation across autism and congenital heart disease cohorts, using coding sequence alone, though it does not give a single comparable metric for that task.
Which CodonFM checkpoint should I use?
Choose plain CodonFM-Encodon-5B for the strongest all-round performance on mRNA design, expression prediction and somatic variant analysis. Choose CodonFM-5B-CDWT when scoring germline variants, particularly synonymous pathogenicity, where rare-codon weighting helps. Both checkpoints share the same size and hardware needs, so the choice depends on whether your variants are germline or somatic.
If 5B does not fit your GPU, Encodon-1B is the previous flagship, Encodon-Cdwt-1B is the germline option at that size, Encodon-600M trades accuracy for throughput, and Encodon-80M is for testing a pipeline rather than making calls.
A practical rule from the card: if you are prototyping, start at 80M or 600M; move to 1B for production zero-shot variant scoring; use a 5B checkpoint when the extra resolution changes a decision and you have the hardware.
What hardware and license should I plan for?
The checkpoint is stored in FP32 and the weights alone occupy about 19.4 GB, with activation memory additional. NVIDIA recommends a 40 GB GPU or larger and reports testing on A100, with support for Ampere and Hopper architectures. The reference environment is Linux with Python 3.12, Docker and the NVIDIA container toolkit, using nvcr.io/nvidia/pytorch:26.09-py3.
Code is licensed Apache-2.0, while model weights fall under the NVIDIA Open Model License Agreement, which permits commercial and non-commercial use. Confirm the current terms on the repository before shipping a product, because license text can be revised.
What are the limits of CodonFM-Encodon-5B?
The model only handles protein-coding sequences. It does not model UTRs, introns or non-coding RNA, so regulatory effects outside the CDS are out of scope. Context is capped at 2,046 codons. Outputs are computational hypotheses: sequence designs and variant interpretations require experimental validation and must not drive clinical decisions directly.
The model does not provide synthesizability or immunogenicity guidance, and NVIDIA recommends screening synthesised sequences with tools such as SecureDNA as a user-side step, not an automatic model control.
Frequently asked questions about CodonFM-Encodon-5B
These answers address what researchers ask before adopting the model: whether it generates RNA, how it differs from amino-acid models, whether it can be used commercially, and whether its scores are clinically valid. The consistent boundary is that CodonFM interprets sequences rather than making therapeutic decisions.
Does CodonFM-Encodon-5B generate RNA sequences?
No. It scores and interprets coding sequences you provide, through masked-token probabilities, embeddings or likelihood ratios. You can use its embeddings to train a downstream regressor or rank candidate designs, but sequence generation and biological payload design are outside the model's stated scope.
Can CodonFM-Encodon-5B be used commercially?
Yes under the stated licenses: code is Apache-2.0 and weights use the NVIDIA Open Model License Agreement, which the model card says allows commercial use. That permission does not remove the need for experimental validation or regulatory review of any therapeutic application.
Is a 5B score a clinical diagnosis?
No. NVIDIA describes outputs as research signals. A high likelihood-ratio score means the model finds an alternative codon implausible in context; it is not a diagnosis, an expression measurement or a substitute for functional assays. This distinction is especially important for synonymous variants, where clinical interpretation remains unsettled.
Bottom line
CodonFM-Encodon-5B is most valuable when your question depends on codon choice: synonymous pathogenicity, expression optimisation or mRNA design. For ordinary protein-language tasks where synonymous codons carry no relevance, a smaller or amino-acid model may be more efficient. Budget for a 40 GB GPU and treat every result as a hypothesis to validate experimentally.