Reading mRNA in its own language, one codon at a time.
NVIDIA Biological Sciences
Code · Preprint · All CodonFM models · CodonFM-5B
CodonFM-5B-CDWT
CodonFM is a family of open RNA foundation models that read protein-coding sequences at codon resolution, so synonymous codons, which most protein models treat as interchangeable, stay distinct. CodonFM-5B-CDWT is the 5B model trained with codon-frequency-weighted masking, which weights rare codons more heavily and makes it more sensitive to species-specific codon preference. It is the best model in the family at separating pathogenic from benign synonymous variants in ClinVar. For somatic variants and expression prediction, plain CodonFM-5B is at least as strong.
Why codon resolution matters.
GAAandGAGboth encode glutamate. A protein model sees one amino acid and stops there. CodonFM sees two different words, and the choice between them changes how fast the ribosome reads the transcript, how stable it is, and whether a "silent" clinical variant is harmless.
At a glance
| Details | |
|---|---|
| Parameters | 5B |
| Training objective | Masked language modelling over codons · codon-frequency-weighted masking |
| Input | A protein-coding sequence (CDS) as codons, up to 2,046; longer is truncated |
| Output | Per-position codon probabilities, sequence likelihoods, encoder embeddings |
| License | Code: Apache-2.0 · Weights: NVIDIA Open Model License |
Which model should I use?
| Model | Params | Masking | Benefits |
|---|---|---|---|
| CodonFM-5B ★ | 5B | Random | Best for zero-shot prediction valuable for codon optimization and mRNA design, expression prediction and somatic variant analysis |
| CodonFM-5B-CDWT ← you are here | 5B | Codon-frequency-weighted | Valuable for species-specific differences and germline variants. |
| Encodon-1B | 911M | Random | Smaller model needed for fine-tuning or post-training |
| Encodon-Cdwt-1B | 911M | Codon-frequency-weighted | Smaller model needed for fine-tuning or post-training and more valuable for species-specific differences |
| Encodon-600M | 609M | Random | Smaller model for fine-tuning or post-training |
| Encodon-80M | 77M | Random | Smallest model for fine-tuning or post-training |
All CodonFM models are listed in the CodonFM collection.
Quick start
The CodonFM-5B page has the full setup instructions, worked examples for variant scoring and embeddings, benchmarks, hardware notes and limitations. All of it applies here, at this size.
Follow it as written, changing only the two lines that name the model:
| On the CodonFM-5B page | Use this instead |
|---|---|
hf download nvidia/CodonFM-Encodon-5B-v1 --local-dir ./encodon_5b |
hf download nvidia/CodonFM-Encodon-5B-CDWT-v1 --local-dir ./encodon_5b_cdwt |
model_path="./encodon_5b/CodonFM-Encodon-5B-v1.safetensors" |
model_path="./encodon_5b_cdwt/CodonFM-Encodon-5B-CDWT-v1.safetensors" |
It runs on the same code and the same hardware as CodonFM-5B.
New to the model family? Start with the Genomic Analysis Blueprint for an end-to-end walkthrough from sequencing data.
Ethical Considerations
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
For more detailed information on ethical considerations for this model, please see the Model Card++ Bias, Explainability, Safety & Security, and Privacy Subcards.
Users are responsible for ensuring the physical properties of model-generated molecules are appropriately evaluated and comply with applicable safety regulations and ethical standards.
CodonFM optimizes or scores a coding sequence that the user supplies. It does not propose biological payloads, and it provides no guidance on synthesizability or immunogenicity. Determining whether a designed sequence can be manufactured, and how it will behave in a biological system, remains the responsibility of the user.
Users designing sequences for synthesis are encouraged to screen them with SecureDNA. SecureDNA screens DNA, so RNA sequences should have U converted to T before submission; and it detects hazards by exact match against a database of known hazardous sequences and their predicted functional variants, so it will not flag a genuinely novel agent with no homology to a listed hazard. This is guidance for users rather than a control that NVIDIA applies to model outputs.
Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.
- Downloads last month
- 198