Skip to main content
CodonFM Codon Language Model
License: CodonFM (Encodon) uses Apache-2.0 for code and Custom (NVIDIA Open Model License) for model weights. Please refer to the code license and model weights license for full terms.

This generator is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.


Go to Tool Page
ProtoProtoevo-design/proto-language
View source
@articlecodonfm2025
Copy citation
Generator contributors
Coding-sequence mutation generator using the CodonFM (Encodon) codon language model.
Refines existing coding sequences by masking a subset of codon positions and resampling them from Encodon’s per-codon distribution. Sequence length is preserved. The generator category is "mutation".

API Reference

ConfigCodonFMGeneratorConfig Source
Configuration object for CodonFMGenerator.CodonFM (Encodon) is a codon-level masked language model. As a Proto Language generator it refines an existing coding sequence by masking a subset of codons and resampling them from the model — a mutation-category generator, so the segment must already carry a sequence (directly or from a prior optimizer stage).
enum
default:"encodon_80m"
Encodon checkpoint: encodon_80m | encodon_600m | encodon_1b | encodon_1b_cdwt.Options: encodon_80m, encodon_600m, encodon_1b, encodon_1b_cdwt
RandomMaskingStrategy
Which codons to resample (counted in codons); fixed_positions pins codons that must survive.
number
default:"1.0"
Sampling temperature. Below 1 sharpens toward the likely codon; above 1 adds diversity.
string
default:"cuda"
GPU device to run CodonFM on (e.g. ‘cuda’ or ‘cuda:0’).
integer
default:"1"
Number of same-length sequences to process simultaneously on GPU.
array
Single-letter codes no resampled codon may encode (e.g. [‘C’] to forbid cysteine).

Usage

python

Metadata