Skip to content
Back to skills

Opennmt Py

ASecurity

"Routes OpenNMT-py workflows for data preparation, training,

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
devopspythonbashbackend

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill opennmt-py --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opennmt Py?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opennmt Py
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-opennmt-py/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-opennmt-py)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: opennmt-py
description: "Routes OpenNMT-py workflows for data preparation, training,
  inference, server deployment, and checkpoint/model conversion."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# OpenNMT-py

Use this skill for OpenNMT-py tasks that involve corpus preparation, vocabulary building, training, translation, REST serving, checkpoint maintenance, or model conversion.

## Install

For a local checkout, prefer an editable install:

```bash
python -m pip install -e .
```

For a published install:

```bash
python -m pip install "OpenNMT-py==3.5.1"
```

Core runtime facts:
- Python 3.9+
- PyTorch 2.1 to <2.3
- The package expects `torch`, `ctranslate2`, `pyonmttok`, and `pyyaml` to be present.
- Optional workflows add `sentencepiece`, `safetensors`, `pandas`, `gradio`, and `bitsandbytes`.

Minimal smoke check:

```bash
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`.

## Route map

- `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.

## Start here

1. Read `references/repo-provenance.md` to check whether this skill still matches the current checkout.
2. Read `references/cli-reference.md` for the main console commands.
3. Read the owning sub-skill for the workflow you want to run.

## Common entry points

- Build vocabulary: `onmt_build_vocab`
- Train: `onmt_train`
- Translate: `onmt_translate`
- Serve: `onmt_server`
- Average models: `onmt_average_models`
- Release models: `onmt_release_model`

## When to read the bundled references

- `references/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.

Files in this skill

  • SKILL.md2.4 KB
  • references/cli-reference.md2.8 KB
  • references/compatibility.md1.2 KB
  • references/repo-provenance.md652 B
  • references/repo-routing-metadata.json535 B
  • references/troubleshooting.md2.3 KB
  • references/workflows.md1.8 KB
  • scripts/check_cli_help.py678 B
  • scripts/check_cuda.py644 B
  • scripts/check_install.py700 B
  • sub-skills/conversion/SKILL.md4.5 KB
  • sub-skills/conversion/references/checkpoint-tools.md13 KB
  • sub-skills/conversion/references/troubleshooting.md10.3 KB
  • sub-skills/conversion/scripts/check_checkpoint_file.py18.3 KB
  • sub-skills/data-preparation/SKILL.md4.7 KB
  • sub-skills/data-preparation/references/data-formats.md9.9 KB
  • sub-skills/data-preparation/references/troubleshooting.md7.4 KB
  • sub-skills/data-preparation/scripts/validate_data_config.py29.6 KB
  • sub-skills/inference/SKILL.md3.1 KB
  • sub-skills/inference/references/translation-and-serving.md8.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.