NVIDIA发布CodonFM 5B开源密码子级RNA基础模型
NVIDIA Releases CodonFM 5B, an Open Codon-Level RNA Foundation Model
NVIDIA推出的首个大规模密码子级RNA基础模型,填补了传统蛋白模型无法处理同义变异的空白,且提供完整权重与商用许可,生物计算从业者值得重点关注。
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.
NVIDIA 发布了 CodonFM 5B 和 CodonFM 5B-CDWT,这是两个开放 RNA 基础模型,能够一次读取一个密码子的蛋白质编码序列。CodonFM 5B RNA 基础模型是该系列中最大的成员,此前该系列最大参数量为 1B,它旨在填补大多数蛋白质模型未覆盖的空白:同义变异。权重已发布在 Hugging Face 上,代码采用 Apache-2.0 许可证,且模型允许商业使用。
TL;DR
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.
- 规模:每个模型包含 4.85 × 10⁹ 个参数。24 层,隐藏层大小为 4096,32 个注意力头,旋转位置嵌入。上下文窗口为 2048 个 token,上限为 2,046 个密码子。
- 运行环境:需要 1 个数据中心级 GPU。FP32 检查点在激活值加载前需将 19.4 GB 的权重载入内存,因此 NVIDIA 建议准备 40 GB 或更大显存的显卡。已在 A100 上测试;支持 Ampere 和 Hopper 架构。操作系统为 Linux,Python 版本为 3.12。
- 性能:在所有已发布的基准测试中均居其家族之首,并优于 NVIDIA 对比的匿名化已发布基线模型。
- 最佳表现:在 ClinVar 同义变异任务中,5B-CDWT 达到约 0.67 AUROC,而最强的已发布对比模型约为 0.61。
- 最差表现:0.67 AUROC 仍是一个相对 modest 的绝对数值,且该模型仅查看编码序列,因此 UTR、内含子和非编码 RNA 不在其能力范围内。
What is CodonFM 5B?
什么是 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.
CodonFM 是 NVIDIA 推出的一系列开放 RNA 基础模型,它们按密码子而非氨基酸对编码序列进行分词。GAA 和 GAG 都编码谷氨酸。蛋白质模型会将它们合并为一个 token,而 CodonFM 则将它们区分开来,这正是其核心目的:同义密码子的选择会改变转录本折叠、核糖体速度以及蛋白质是否正确折叠。
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.
提供了两个检查点。CodonFM 5B 使用均匀随机密码子掩码。CodonFM 5B-CDWT 根据密码子使用偏好对掩码进行加权,更频繁地隐藏罕见密码子。NVIDIA 推荐基础模型用于密码子优化、表达预测和体细胞变异分析,而 CDWT 变体适用于种系变异评分和物种特异性工作。
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.
这两个模型都是 Transformer 编码器,在超过 1.3 亿条跨越 22,000 多个物种的编码序列上使用掩码密码子目标进行训练。出于生物安全考虑,排除了影响人类的病原体序列。预印本论文描述了一个带有 CLS 和 SEP token 的 BERT 风格双向编码器,已发布的 config.json 确认了 24 层结构和 4096 的隐藏层宽度。
How does CodonFM 5B perform on benchmarks?
CodonFM 5B 在基准测试中的表现如何?
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.
NVIDIA 以图表形式发布结果而非表格,因此以下数据是从模型卡图表说明中读取的,应视为近似值。
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.
验证损失从 80M 时的约 2.9 降至 1B 时的约 2.25,以及 5B 时的约 1.95,且同义密码子混淆随规模扩大而降低。在 129,384 个 ClinVar 同义变异中,5B-CDWT 以约 0.67 AUROC 领先。在 COSMIC 和 gnomAD 之间匹配的 1,471 个癌症观察到的同义变异中,5B 模型在负对数 10 p 尺度上达到约 10,而 PhyloP 保守性得分约为 2。
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.
对于 mRNA 设计,基于冻结的 5B 嵌入的随机森林在翻译效率上的 Spearman 得分约为 0.72(源自涵盖 140 多种人类和小鼠细胞类型的 3,819 个核糖体谱分析数据集),在 1,459 个同义 CDS 变异的 mRFP 蛋白表达上得分约为 0.73。不涉及微调。在与 Arc Institute 和 Ansa Bio 进行的湿实验工作中,CodonFM 指导的设计使 A549 细胞中 GFP 的表达量提高了近 4 倍,荧光素酶提高了 2 倍,相对于野生型。
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 |
| 指标 | CodonFM 5B | EnCodon 1B | Evo 2 7B | ESM-2 650M | CodonBERT |
|---|---|---|---|---|---|
| 参数 | 4.85 × 10⁹ | 9.11 × 10⁸ | 7B | 650M | 未公开 |
| Token 单位 | 密码子 | 密码子 | 核苷酸 | 氨基酸 | 密码子 |
| 上下文 | 2,046 个密码子 | 2,046 个密码子 | 1M tokens | 1024 个字符 | 未公开 |
| 训练语料库 | 1.3 亿+ CDS,2.2 万+ 物种 | 1.3 亿+ CDS,2.2 万+ 物种 | 9.3T 碱基对 | UR50 蛋白质序列 | 1000 万 mRNA 序列 |
| 目标 | 掩码密码子(随机) | 掩码密码子(随机) | 自回归 | 掩码语言建模 | MLM 加分类预测 |
| 许可证 | NVIDIA 开源模型许可证 | NVIDIA 开源模型许可证 | NVIDIA 开源模型许可证 | MIT | 学术、非商业 |
| 商业用途 | 是 | 是 | 是 | 是 | 否 |
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.
克隆 GitHub 仓库,运行 run_dev.sh 构建 Docker 镜像,然后使用 hf download nvidia/CodonFM-Encodon-5B-v1 拉取权重。EncodonInference 类提供了两个任务:mutation_prediction 返回参考与替代密码子交换的对数似然比,embedding_prediction 为每个序列返回一个 4096 维的 CLS 向量。
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.
对于从原始读数而非干净 CDS 开始的团队,Genomic Analysis Blueprint 在 CodonFM 评分之前链接了 Parabricks BWA 比对、DeepVariant 调用和 GENCODE 注释。基于代理的工作流可以使用 BioNeMo Agent Toolkit 技能。
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.
- CodonFM 5B 和 5B-CDWT 是拥有 48.5 亿参数的密码子级 RNA 编码器,允许商业使用。
- 密码子分词使模型能够对氨基酸模型无法识别的同义变异进行评分。
- 5B-CDWT 在 ClinVar 种系同义变异上表现领先;普通 5B 模型在有体细胞和表达任务中表现更佳。
- 冻结的 5B 嵌入在翻译效率和蛋白质表达方面超越了已发表的基线模型,且无需微调。
- 40 GB GPU 显存和 2,046 个密码子的上限是实际使用的限制条件。
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.
权重、代码和预印本链接见上文,所有 CodonFM 检查点均收录于 Hugging Face 上的 CodonFM 集合中。你可以通过我们的 GPULeaderboard.com Chrome 扩展程序在此查看部署选项和规格。
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.
此外,欢迎在 Twitter 上关注我们,别忘了加入我们拥有 15 万+成员的 ML SubReddit 并订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以在 Telegram 上加入我们。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力