NVIDIA 发布 CodonFM 5B 开放密码子级 RNA 基础模型
NVIDIA 发布了 CodonFM 5B 和 CodonFM 5B-CDWT,这是两个开放 RNA 基础模型,能逐个密码子读取蛋白质编码序列。CodonFM 5B RNA 基础模型是该系列中规模最大的成员,此前该系列最高只到 1B 参数,它瞄准的是大多数蛋白质模型留下的空白:同义变异。权重已发布在 Hugging Face 上,代码采用 Apache-2.0 许可,这些模型已获准用于商业用途。
CodonFM 是 NVIDIA 推出的开放 RNA 基础模型系列,它按密码子而非按氨基酸对编码序列进行 Token 化。GAA 和 GAG 都编码谷氨酸。蛋白质模型会把它们合并为一个 Token。CodonFM 则将它们区分开来,而这正是关键所在:同义密码子之间的选择会改变转录本折叠、核糖体速度,以及蛋白质能否正确折叠。
此次发布了两个检查点。CodonFM 5B 使用均匀随机的密码子掩码。CodonFM 5B-CDWT 按密码子使用偏好对掩码加权,更频繁地隐藏较稀有的密码子。NVIDIA 建议将基础模型用于密码子优化、表达预测和体细胞变异,将 CDWT 变体用于生殖系变异评分和针对特定物种的工作。
两个模型都是 transformer 编码器,采用掩码密码子目标,在超过 1.3 亿条编码序列上进行训练,覆盖超过 22,000 个物种。出于生物安全考虑,影响人类的病原体序列已被排除。预印本论文描述了一个带有 CLS 和 SEP Token 的 BERT 风格双向编码器,公开的 config.json 确认其为 24 层、隐藏层宽度 4096。
NVIDIA 以图表而非表格的形式发布结果,因此下文的数字是从模型卡中的图表说明读取的,应视为近似值。
验证损失从 80M 时的约 2.9 降至 1B 时的约 2.25、5B 时的约 1.95,同义密码子混淆也随规模扩大而减少。在 129,384 个 ClinVar 同义变异上,5B-CDWT 以约 0.67 的 AUROC 领先。在 1,471 个 COSMIC 与 gnomAD 之间匹配的、癌症中观测到的同义变异上,5B 模型在负 log-10 p 尺度上达到约 10,而 PhyloP 保守性得分约为 2。
在 mRNA 设计方面,基于冻结的 5B 嵌入训练的随机森林在翻译效率上取得约 0.72 的 Spearman 相关性,数据取自覆盖 140 多种人类与小鼠细胞类型的 3,819 个核糖体图谱数据集;在 1,459 个同义 CDS 变体上的 mRFP 蛋白表达上约为 0.73。整个过程不涉及微调。在与 Arc Institute 和 Ansa Bio 合作的湿实验中,由 CodonFM 引导的设计使 A549 细胞中的表达量相对野生型提升近 4 倍(GFP)和 2 倍(荧光素酶)。
克隆该 GitHub 仓库,运行 run_dev.sh 构建 Docker 镜像,然后用 hf download nvidia/CodonFM-Encodon-5B-v1 拉取权重。EncodonInference 类暴露两个任务:mutation_prediction 返回参考密码子与替代密码子互换的对数似然比,embedding_prediction 则为每条序列返回一个 4096 维的 CLS 向量。
对于从原始读段而非干净 CDS 起步的团队,Genomic Analysis Blueprint 会在 CodonFM 打分之前,串联 Parabricks BWA 比对、DeepVariant 变异检测和 GENCODE 注释。由智能体驱动的工作流可以使用 BioNeMo Agent Toolkit 技能。
权重、代码和预印本的链接见上方,所有 CodonFM 检查点都汇集在 Hugging Face 的 CodonFM collection 中。你可以通过我们的 GPULeaderboard.com Chrome 扩展在此查看部署选项和规格。
需要与我们合作推广您的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等吗?请联系我们
文章《NVIDIA 发布 CodonFM 5B,一个开放的密码子级 RNA 基础模型》最先出现在 MarkTechPost 上。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(NVIDIA Releases CodonFM 5B, an Open Codon-Level RNA Foundation Model)
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.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 MarkTechPost(NVIDIA Releases CodonFM 5B, an Open Codon-Level RNA Foundation Model),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。