executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
model-embeddingsLoad ESM/ESM-2/MSA Transformer models, tokenize protein inputs, compute representations or contacts, and build bulk FASTA embedding extraction commands.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when an agent needs embeddings, logits, or unsupervised contact maps from ESM, ESM-2, ESM-1/1b/1v, or MSA Transformer language models. It covers Python APIs for model loading and tokenization plus the esm-extract bulk FASTA CLI.
Do not use this sub-skill for structure prediction, inverse folding, or mutation-effect scoring. Route those tasks to sibling sub-skills instead:
../structure-prediction/SKILL.md../inverse-folding/SKILL.md../variant-effect-prediction/SKILL.md.pt contents, truncation, CPU/GPU flags, and command construction, read references/cli-reference.md.Use the safe command builder when constructing a reproducible esm-extract invocation without triggering model downloads:
python sub-skills/model-embeddings/scripts/esm_extract_command_builder.py \
esm2_t33_650M_UR50D input.fasta embeddings_out \
--repr-layers -1 --include mean contacts --nogpu --print-only
The helper validates that the FASTA exists, checks extraction options, warns about unsupported MSA Transformer model names, and prints a shell-quoted command by default. It does not import esm or load model weights for --help or --print-only.
esm.pretrained.load_model_and_alphabet(name) or a specific esm.pretrained.<model>() function for Python embeddings.alphabet.get_batch_converter(truncation_seq_length=...) for single-sequence models and MSA models; MSA alphabets return MSABatchConverter automatically.model(tokens, repr_layers=[...], return_contacts=True) for hidden representations plus contact maps.esm-extract only for single-sequence models; MSA Transformer requires Python API input shaped as a batch of MSAs.--nogpu in esm-extract or by keeping tensors/model on CPU in Python; expect slow inference for large models.