ec-esm
enzyme classification from protein sequences
2 min read
This model predicts four-level Enzyme Commission numbers (EC — the international enzyme classification system, such as 1.1.1.131) directly from amino acid sequences. It builds on Meta's compact ESM-2 35M protein language model (facebook/esm2_t12_35M_UR50D) with a fine-tuned classifier covering 6,939 valid EC numbers. You feed it a Parquet table of sequences, and it outputs a JSONL file listing the predicted codes for each protein. It is built for bioinformaticians and researchers looking to automate functional enzyme annotation.
Key features
- Built on the lightweight
ESM-2 35Mprotein architecture with an added classification head (Linear+GELU+Dropout). - Covers a vocabulary of 6,939 valid four-level EC numbers, evaluated primarily on fourth-level accuracy (L4 accuracy).
- Supports a configurable probability threshold via
EC_THRESH(0.5by default) to return either multiple candidates or only the top-scoring class. - Ships with a ready-to-use
Dockerfile, inference script, and input validation.
What you can do
- Drop the Docker container into a bioinformatics pipeline to batch-annotate protein sequences from
Parquetfiles. - Set
EC_THRESH=1.1to strictly output only the single most probable EC number during initial protein triage.
Example
python /app/predict.py --input val_inputs.parquet --output predictions.jsonl
Read more
DetailsArchitecture: ESM-2 35M (hidden_size 480) + two-layer classifier
Vocabulary: 6,939 EC classes (levels L1–L4)
Default runtime settings: batch size EC_BATCH=32, time limit EC_TIME_BUDGET=660 sec
Specific benchmark numbers are not reported in the model card










Comments