writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
opennmt-pyRoutes OpenNMT-py workflows for data preparation, training, inference, server deployment, and checkpoint/model conversion.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill for OpenNMT-py tasks that involve corpus preparation, vocabulary building, training, translation, REST serving, checkpoint maintenance, or model conversion.
For a local checkout, prefer an editable install:
python -m pip install -e .
For a published install:
python -m pip install "OpenNMT-py==3.5.1"
Core runtime facts:
torch, ctranslate2, pyonmttok, and pyyaml to be present.sentencepiece, safetensors, pandas, gradio, and bitsandbytes.Minimal smoke check:
python -c "import onmt, torch; print('onmt_import=ok'); print(torch.__version__, torch.cuda.is_available())"
If you need CUDA paths, read references/compatibility.md and run scripts/check_cuda.py.
sub-skills/data-preparation/ — build vocabularies, validate corpus YAML, apply transforms, handle source features, and debug data layout issues.sub-skills/training/ — train seq2seq or language models, inspect model configs, handle multi-GPU, embeddings, alignment, LoRA, and checkpointing.sub-skills/inference/ — translate, score, align, run the REST server, and use CTranslate2 or LLM-style inference configs.sub-skills/conversion/ — convert external checkpoints, upgrade old checkpoints, extract or merge weights, and release models.references/repo-provenance.md to check whether this skill still matches the current checkout.references/cli-reference.md for the main console commands.onmt_build_vocabonmt_trainonmt_translateonmt_serveronmt_average_modelsonmt_release_modelreferences/workflows.md for a quick route overview and the standard quickstart sequence.references/compatibility.md for backend, Python, and optional-dependency notes.references/troubleshooting.md for install, import, CUDA, config, and runtime failures.