Skip to content
Agentmart
Submit a tool

codonfm-embed

Validate coding-sequence CSVs, extract public CodonFM/Encodon embeddings, and choose checkpoints for downstream property modeling.

Skill by NVIDIA BioNeMo <bionemofeedback@nvidia.com>

IndexedApache-2.0★ 3,718
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nvidia-codonfm-embed

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Validate coding-sequence CSVs, extract public CodonFM/Encodon embeddings, and choose checkpoints for downstream property modeling.

Use cases: model-inference, data-analysis

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/codonfm-embed

What's inside

Skill name
codonfm-embed
Description
Validate coding-sequence CSVs, extract public CodonFM/Encodon embeddings, and choose checkpoints for downstream property modeling.
License
Apache-2.0
Metadata
author: NVIDIA BioNeMo <bionemofeedback@nvidia.com>
Instructions
174 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: "codonfm-embed" does not match folder "bionemo-codonfm-embed"

Files (13)

  • BENCHMARK.md
  • SKILL.md
  • openai.yaml · agents/
  • evals.json · evals/
  • codonfm_source.zip · evals/files/
  • encodon_checkpoint.json · evals/files/
  • sequences.csv · evals/files/
  • sequences_edge_cases.csv · evals/files/
  • checkpoint-selection.md · references/
  • validate_inputs.py · scripts/
  • skill-card.md
  • skill.oms.sig
  • test_validate_inputs.py · tests/

SKILL.md (first lines)

# Extract public Encodon embeddings

## Purpose

Extract one frozen CLS vector per coding sequence with public Encodon v1.
Support input validation, command preparation, extraction, and checkpoint
selection for translation efficiency, expression, or mRNA stability modeling.
Extraction does not automatically train a downstream regressor.

## Prerequisites

- Validation needs Python 3 standard library only; no GPU, weights, or API key.
- Execution needs the public CodonFM checkout, its `requirements.txt` environment,
  a compatible NVIDIA GPU, and local checkpoint weights. A metadata JSON is not
  a checkpoint. A `.safetensors` file needs its sibling `config.json`; `.ckpt`
  checkpoints are also supported by the public loader.
- Run `python -m src.runner` from the CodonFM repository root. In an isolated
  workspace, use supplied source artifacts; source paths below are relative to
  that checkout or source archive, not this skill directory.

## Inputs

Input source precedence: explicit user prompt arguments, then supplied
files/checkpoint metadata, then inspected public runner defaults. Resolve
conflicting model names and checkpoint metadata before execution. Supplied 80M
metadata is useful for preparing an 80M command; it does not restrict an
open-ended recommendation to that size.

Required for validation: a CSV. Required for extraction: the CSV, checkpoint,
matching model name, and output directory. Optional: context length and batch
size overrides. Checkpoint-selection questions can be answered without a CSV.

| Input | Requirement or default |
| --- | --- |
| Sequence CSV | Columns `id`, `ref_seq`, `value`, `split`; extra columns allowed |
| `id` | Nonblank, unique IDs for unambiguous output association |
| `ref_seq` | Coding sequence, uppercase DNA `A/C/G/T`, length divisible by three; public dataset converts uppercase `U` to `T` |
| `value` | Numeric label; use `0.0` for new extraction-only data, preserve supplied labels |
| `split` | Only exact `test` values enter extraction; blank/other values are excluded |
| Checkpoint and model | Match weights/config to `encodon_80m`, `encodon_600m`, or `encodon_1b` |
| Context length | Public runner default `2048` tokens, including CLS and SEP |
| Output directory | A fresh run directory with an empty predictions directory |

## Instructions

1. **Choose the requested workflow.** For a checkpoint/performance question,
   read [checkpoint selection](references/checkpoint-selection.md) and answer
   from public benchmark evidence. For the strongest published downstream
   results, prefer the public **1B random-mask checkpoint** when resources allow;
   80M is a demonstration or resource-constrained choice. A small labeled set
   alone does not establish that 80M frozen features are better. Do not download
   weights or inspect the entire source tree just to make a recommendation.
2. **Inspect supplied source only where needed.** Confirm runner/config,
   `src/data/codon_bert_dataset.py`, `src/data/preprocess/codon_sequence.py`,
   `src/inference/encodon.py`, or `src/utils/pred_writer.py` for the relevant
   behavior. Read ZIP members with `zipfile.ZipFile.namelist()` and `.read()`;
   source inspection does not need extraction. If a checkout is needed, use a
   new directory from `tempfile.mkdtemp()` or `mktemp -d`, without deleting or
   overwriting an existing directory. For Decodon support questions, inspect
   runner/config and model/inference modules, cite the inspected files, explain
   the missing public implementation, and finish there.
3. **Validate the CSV before running extraction.** Run the bundled checker
   below with the intended context length. Report per-row verdicts using CSV
   row numbers as well as IDs, since IDs can repeat. Separate excluded rows,
   invalid inputs, duplicate-ID warnings, and truncation. Propose fixes without
   silently rewriting supplied data. The checker is a preflight, not model
   execution or proof of biological CDS validity.
4. **Deliver the requested preparation or execution.** For preparation, return
   a complete command with resolved paths (or clearly identified prerequisites),
   the test-row count, validation findings, and the output contract below.
   Include all task/dataset/process flags in the final answer, even if already
   shown in a tool call. For extraction, reuse/download the chosen checkpoint
   when needed, execute once resources are ready, and verify the saved arrays.
   If resources are missing, finish preparation and state what is missing.

## Available Scripts

| Script | Purpose | Arguments |
| --- | --- | --- |
| [validate_inputs.py](scripts/validate_inputs.py) | Read-only CSV validation and per-row verdicts | Required CSV path; optional `--context-length` (default `2048`) |

Run the preflight with Python; `CODONFM_SKILL_DIR` is the directory containing this file:

```bash
python "$CODONFM_SKILL_DIR/scripts/validate_inputs.py" "$CODONFM_DATA_PATH" \
    --context-length 2048
```

The checker prints JSON. Exit `0` means no findings, `1` means row findings to
review (including exclusions/warnings), and `2` means a file/schema error.
Neither warnings nor exclusions imply that the public runner will crash.

## Output Format

The checker emits JSON with `total_rows`, `test_rows`, `excluded_rows`,
`context_length`, `codon_limit`, `warnings`, and `rows`. Each row records its
one-based data-row number (excluding the header), ID, split, verdict, issues,
sequence/value validity, and retained/lost codons. A file/schema error emits
`error` and `csv` instead. These are preflight findings, not generated embeddings.

## Examples

Set `CODONFM_DATA_PATH` to the CSV, `CODONFM_CHECKPOINT_PATH` to the weights,
`CODONFM_MODEL_NAME` to the matching architecture, and `CODONFM_RUN_DIR` to a
fresh output directory. Substitute actual paths in a prepared command:

```bash
python -m src.runner eval \
    --task_type embedding_prediction \
    --process_item codon_sequence \
    --dataset_name CodonBertDataset \
    --exp_name embed_extract \
    --model_name "$CODONFM_MODEL_NAME" \
    --checkpoint_path "$CODONFM_CHECKPOINT_PATH" \
    --data_path "$CODONFM_DATA_PATH" \
    --context_length 2048 \
    --num_nodes 1 \
    --num_gpus 1 \
    --num_workers 0 \

From NVIDIA/skills, Apache-2.0.

More from NVIDIA/skills

Signals

Stars
3,718
Forks
457
Open issues
8
Last commit (this folder)
Oct 9, 2026 (18 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from NVIDIA BioNeMo <bionemofeedback@nvidia.com>

Cite this page

codonfm-embed skill. Agent Mart. https://agentmart.dev/skills/nvidia-codonfm-embed (last updated 2026-10-24)