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
conversionRoutes OpenNMT-py checkpoint averaging, release, CTranslate2, external-family conversion, vocabulary or embedding extraction, and LoRA merge workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about OpenNMT-py checkpoint maintenance or model-format conversion rather than training or translation.
Read references/checkpoint-tools.md to identify the exact checkpoint family, expected files, command/API surface, validation checks, and output format.
Before changing a checkpoint, inspect the input with scripts/check_checkpoint_file.py:
python scripts/check_checkpoint_file.py path/to/model.pt --json
The helper maps tensors to CPU or fake tensors and reports top-level keys, option fields, vocab sides, tensor counts, and conversion-readiness hints.
Read references/troubleshooting.md before running weight-heavy conversion, CTranslate2 release, external/Hugging Face conversion, or LoRA merge.
Prefer package console commands for installed OpenNMT-py entry points: onmt_average_models and onmt_release_model. For utilities that were only source-tree tools, use the distilled contracts in references/checkpoint-tools.md and create a task-local reviewed helper instead of depending on any particular checkout path.
onmt_average_models -models ... -output averaged.pt; add -fp32 when the release target must not preserve half precision.onmt_release_model --format pytorch to drop optimizer state, or --format ctranslate2 with an optional quantization mode to create a CT2 model directory.references/checkpoint-tools.md; validate that the output checkpoint has model, generator, vocab, and opt sections before training or release.vocab.src/vocab.tgt first, then use the reference recipes to write vocab text files or embedding tensors without relying on source checkout scripts.torch.load checkpoints as trusted pickle files; do not inspect arbitrary untrusted checkpoints without an isolation plan.model.bin, config.json, and vocabulary.json, not a .pt checkpoint.references/checkpoint-tools.md — workflows, command/API contracts, external family matrix, vocab/embedding and LoRA guidance.references/troubleshooting.md — symptoms, likely causes, and recovery steps for conversion-specific failures.scripts/check_checkpoint_file.py — safe checkpoint inventory helper for OpenNMT-py .pt metadata and tensor summaries.