Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/naity/FM4Lifenpx agentmods add skills/naity/fm4life/rnafmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/naity/fm4life/rnafm)<a href="https://agentmods.dev/skills/naity/fm4life/rnafm"><img src="https://agentmods.dev/badge/skills/naity/fm4life/rnafm/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/naity/fm4life/rnafm"><img src="https://agentmods.dev/badge/skills/naity/fm4life/rnafm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.01712 |
| Opus 5.5 | $0.00034 | $0.00685 |
| Sonnet 5.5 | $0.00017 | $0.00342 |
| Haiku 4.5 | $0.00009 | $0.00171 |
Grade A, and why
rnafm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RNA-FM: Foundation Model for Non-Coding RNA
Overview
RNA-FM is a BERT-style transformer pretrained on 23 million non-coding RNA (ncRNA) sequences via masked language modeling. It generates contextual nucleotide embeddings that capture RNA structure and function without labeled data.
Model variants:
- RNA-FM — trained on ncRNA sequences (23M); embedding dim = 640; tokenizes individual nucleotides
- mRNA-FM — trained on 45M mRNA coding sequences (CDS); embedding dim = 1280; tokenizes 3-mers (codons)
Capabilities:
- Sequence embeddings — per-token or pooled representations for any downstream task
- Secondary structure prediction — base-pair contact maps (outperforms LinearFold/SPOT-RNA)
- RNA family clustering — zero-shot separation of RNA families in embedding space
- Functional prediction — UTR function, gene expression, RNA-protein binding
API note: RNA-FM's Python API mirrors ESM2 — (model, alphabet) pair, batch_converter, repr_layers. If you know ESM2, RNA-FM will feel familiar.
Installation
pip install rna-fm
Requirements: Python ≥ 3.8, PyTorch ≥ 1.9. GPU with CUDA 11.1+ recommended.
Model weights download automatically on first use (~1.2 GB for RNA-FM, ~957 MB for mRNA-FM).
Model Checkpoints
| Checkpoint | Training data | Embed dim | Tokenization | Best for |
|---|---|---|---|---|
rna_fm_t12 |
23M ncRNA sequences | 640 | Single nucleotide | ncRNA, structural RNA, general RNA |
mrna_fm_t12 |
45M mRNA CDS sequences | 1280 | 3-mer (codon) | mRNA analysis, codon usage, translation |
Core Usage
Load model
import fm
# ncRNA model (default)
model, alphabet = fm.pretrained.rna_fm_t12()
# mRNA model
model, alphabet = fm.pretrained.mrna_fm_t12()
model.eval()
Extract embeddings
import torch
import fm
model, alphabet = fm.pretrained.rna_fm_t12()
model.eval()
batch_converter = alphabet.get_batch_converter()
# Input: list of (label, sequence) tuples
sequences = [
("rna1", "GGGUGCGAUCAUACCAGCACUAAUGCCCUCCUGGGAAGUCCUCGUGUUGCACCCCU"),
("rna2", "AUGUAAGGCCUUGUAACGCUCUAAACUUCCCCCGCGACGUUUUU"),
]
batch_labels, batch_strs, batch_tokens = batch_converter(sequences)
with torch.no_grad():
results = model(batch_tokens, repr_layers=[12])
# Per-token embeddings from last layer: (batch, seq_len, 640)
token_embeddings = results["representations"][12]
# Per-sequence mean pooling (exclude BOS/EOS/PAD)
padding_idx = alphabet.padding_idx
for i, label in enumerate(batch_labels):
mask = (batch_tokens[i] != padding_idx).float()
seq_emb = (token_embeddings[i] * mask.unsqueeze(-1)).sum(0) / mask.sum()
print(f"{label}: {seq_emb.shape}") # (640,)
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 190 lines · 86 tokens per session scan A d29419be0b7d
rnafm is a skill published in the GitHub repository naity/FM4Life (2 stars, last pushed 7mo ago), licensed MIT. It adds 86 tokens to every session and 1,712 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
rnafm compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rnafmnaity/FM4Life | Skill | 2 | 7mo ago | MIT | A | 86 | Claude Code, Codex |
| single-cellinflexa-ai/inflexa | Skill | 39 | yesterday | Apache-2.0 | A | 65 | Claude Code, Codex |
| translational-safetyinflexa-ai/inflexa | Skill | 39 | yesterday | Apache-2.0 | A | 59 | Claude Code, Codex |
| dna-methylationinflexa-ai/inflexa | Skill | 39 | yesterday | Apache-2.0 | A | 69 | Claude Code, Codex |
| genomic-variantsinflexa-ai/inflexa | Skill | 39 | yesterday | Apache-2.0 | A | 65 | Claude Code, Codex |
| pkpd-clinical-responseinflexa-ai/inflexa | Skill | 39 | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| statistical-modelinginflexa-ai/inflexa | Skill | 39 | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |