NVIDIA open-sources CodonFM 5B: 4x GFP expression, but only 0.67 AUROC on synonymous variants
On December 2, NVIDIA published a developer blog post introducing CodonFM 5B and CodonFM 5B-CDWT, two RNA models with 4.85 billion parameters each. The weights and the code are both downloadable. Two numbers in that post point in opposite directions. In A549 cells, sequences optimized with the model pushed GFP expression to nearly 4x wild type, and luciferase to 2x. On ClinVar synonymous variants, the strongest checkpoint reached an AUROC of about 0.67.
One number is close to 4x. The other is 0.67. The first is a gain you can put on a bench; the second is barely past the pass mark. This article separates the two: which step it saves you, and which step it still cannot do.
This article is compiled from multiple media reports, along with NVIDIA's own blog, model card and repository.
TL;DR
- This expands the CodonFM family; it does not start a new one. The previous ceiling was 1B. This release goes straight to 4.85B, with 24 layers, hidden size 4096 and 32 attention heads.
- The design decision that matters is tokenizing by codon rather than by amino acid. GAA and GAG both encode glutamate, and a protein model collapses them into a single symbol. CodonFM keeps them apart.
- It does not fold structures and does not design proteins. It does three things: score synonymous variants, estimate the expression potential of a codon sequence, and emit a 4096-dimension vector per sequence.
- The code is Apache-2.0 and the weights fall under the NVIDIA Open Model License, so commercial use is allowed. The checkpoint is FP32 at 19.4 GB, and NVIDIA suggests planning for a 40 GB card.
What actually shipped
Two checkpoints with identical parameter counts. The difference is how codons were masked during pretraining.
| Version | Masking | Recommended use |
|---|---|---|
| CodonFM 5B | Uniform random masking | Codon optimization, expression prediction, somatic variants |
| CodonFM 5B-CDWT | Weighted by codon usage, so rare codons get hidden more often | Germline variants, species-specific work |
The training corpus is more than 130 million coding sequences spanning over 22,000 species. Sequences from human-affecting pathogens were excluded, on biosafety grounds.
One timeline detail is easy to miss. The weights went up on Hugging Face on November 24. The blog post and the full model card arrived on December 2. "Release" means the latter. If you were browsing model hubs in late November, what you saw is not old news.
Why codon-level tokenization matters
The same protein can be written with different codons. Most amino acids have three to six synonymous codons. Swap one for another and the protein is unchanged, but transcript folding, ribosome speed and translation efficiency all move.
A protein model cannot see that layer, because its first step merges synonymous codons into one symbol. CodonFM uses a vocabulary of 69 codons plus special tokens, and each one stands alone.
That also explains the shape of the results. It looks strong on expression and only marginally ahead on variant interpretation. Expression is decided directly by codon choice. Whether a synonymous variant causes disease runs through splicing, RNA structure and tissue context first.
The numbers, side by side
This table is the most useful part of the article. Read the last column carefully.
| Task | Number | How to read it |
|---|---|---|
| Validation loss | about 2.9 at 80M, 2.25 at 1B, 1.95 at 5B | Scale helps, but 1B to 5B only buys 0.3 |
| ClinVar synonymous variants, 129,384 | about 0.67 AUROC for 5B-CDWT, about 0.61 for the strongest published baseline | First place, still a modest absolute value |
| Cancer-observed synonymous variants matched between COSMIC and gnomAD, 1,471 | about 10 on the negative log-10 p scale for 5B, about 2 for the PhyloP conservation score | The widest gap of any task here |
| Translation efficiency, frozen embeddings plus a random forest | about 0.72 Spearman | No fine-tuning, features straight off the model |
| mRFP expression, 1,459 synonymous CDS variants | about 0.73 Spearman | Same setup |
| A549 wet-lab work | nearly 4x for GFP, 2x for luciferase | Two proteins only, do not treat this as a general multiplier |
Two sentences cover it. Expression is home turf. Variants are "better than the baseline, not yet a conclusion." NVIDIA says as much: the variant score is a research signal rather than a clinical call, and it does not tell you whether expression goes up or down.
A 0.67 is a win in a paper. Is it usable in a product? That depends on how many candidates you screen. Filter ten thousand down to a hundred for the bench and it is fine. Hand it a single patient and draw a conclusion, and it is not.
How to use it
Three commands and about ten lines of Python. All of it is in the model card.
git clone https://github.com/NVIDIA-BioNeMo/CodonFM
cd CodonFM
bash run_dev.sh
hf download nvidia/CodonFM-Encodon-5B-v1 --local-dir ./encodon_5brun_dev.sh builds the development image and drops you into a shell inside it. You need Docker and the NVIDIA container toolkit. The image is based on nvcr.io/nvidia/pytorch:26.09-py3, and on a first run most of the wall time goes into pulling it.
With the weights in place, scoring takes this much:
model = EncodonInference(
model_path="./encodon_5b/CodonFM-Encodon-5B-v1.safetensors",
task_type="mutation_prediction",
)
model.configure_model()
model = model.to("cuda").eval()
score = model.predict_mutation(batch).likelihood_ratios.item()The input is a coding sequence of A/T/C/G whose length divides by three. Switch task_type to embedding_prediction and the same model becomes a feature extractor: one 4096-dimension vector per sequence, ready for your own regressor.
Who it's for
- You work on mRNA vaccines or therapeutic RNA and need to pick the high-expression constructs out of a few dozen candidates.
- You have a batch of synonymous variants and want a priority order before spending bench time.
- You need a pretrained base for your own expression data and would rather not train from scratch.
- You only care about the coding region, and UTRs, introns and non-coding RNA being out of scope is acceptable.
Not a good fit
- You want it to design a new protein that binds a target. It does not do that. That is RFdiffusion or BindCraft territory.
- Your variant sits in a UTR, a promoter or an intron. The model reads coding sequence only.
- Your transcript runs past 2,046 codons. Longer sequences are silently truncated, not rejected, so you have to check.
- You have less than 40 GB of GPU memory. The 19.4 GB of FP32 weights is only the starting point, before activations.
- You want a readout that can go into a clinical report. An AUROC of 0.67 is nowhere near that bar.
Pitfalls: four you will actually hit
One: point model_path at the .safetensors file, not the directory. The model card calls this out. The loader rejects a directory, and config.json has to sit next to the weights.
Two: the container has none of your data by default. run_dev.sh accepts --data-dir and --checkpoints-dir. Skip them and the container starts empty.
Three: do not read the likelihood ratio as a severity score. It is how implausible the model finds the alternate codon in that context. The sign shows a preference, not whether expression rises or falls.
Four: 19.4 GB is the weight size, not the memory footprint. Loading adds activations and KV cache. A 40 GB card is the stated floor, not the recommended configuration.
Cost and time
Weights are free, code is free, and the money goes to the GPU. The minimum is one 40 GB card. NVIDIA tested on A100, and Ampere and Hopper are supported.
Time splits into two parts. Environment setup depends on how fast you can pull the image. Weights are a 19.4 GB download. Inference itself is quick, a single forward pass per sequence. The slow part is preparing your data.
There is one more cost that does not show up on an invoice. The model gives scores, not validation. Using it for real still means a round of wet-lab work, and that round costs far more than the GPU.
Next step
Do not start with the 5B. Run the 1B first to confirm your sequence format is right, that config.json loads, and that the scores point in a sensible direction. Only then swap in the 5B and compare.
Concretely: take one sequence you know expresses well and one you know expresses poorly, rewrite the same CDS with different synonymous codons, and see whether the model separates them. If it cannot, your task is outside what this model covers, and a bigger checkpoint will not fix that.
Sources
- NVIDIA developer blog: https://developer.nvidia.com/blog/boost-protein-expression-and-predict-variant-effects-with-codonfm-5b/
- CodonFM 5B model card and weights: https://huggingface.co/nvidia/CodonFM-Encodon-5B-v1
- Code repository, Apache-2.0: https://github.com/NVIDIA-BioNeMo/CodonFM
- Preprint: https://research.nvidia.com/labs/dbr/assets/data/manuscripts/nv-codonfm-preprint.pdf
- MarkTechPost coverage: https://www.marktechpost.com/2026/12/03/nvidia-codonfm-5b-rna-foundation-model/