argos-translate
Routes Argos Translate workflows for offline machine translation, package installation, CLI usage, runtime settings, and troubleshooting.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- argos-translate
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Argos Translate workflows for offline machine translation, package installation, CLI usage, runtime settings, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/api-reference.md6.6 KB
- 参考文档references/cli-reference.md3.9 KB
- 参考文档references/configuration.md5.6 KB
- 参考文档references/package-format.md4.3 KB
- 参考文档references/repo-provenance.md2.7 KB
- 参考文档references/repo-routing-metadata.json351 B
- 参考文档references/troubleshooting.md5.9 KB
- 脚本scripts/check_runtime.py4.1 KB
- 脚本scripts/completion.bash830 B
03 SKILL.md 正文
Argos Translate
Use this skill when a request names Argos Translate, argostranslate, argos-translate, argospm, .argosmodel, language-pair packages, offline translation, or the package/configuration errors that come with them.
What this skill covers
- Translating text from Python or the
argos-translateCLI. - Loading installed language pairs and understanding translation objects.
- Updating the package index and installing/removing language packages.
- Reading and changing runtime settings such as device selection, sentence-boundary mode, and package/cache locations.
- Troubleshooting missing dependencies, missing packages, invalid archives, and optional backend errors.
Start here
- Read
references/api-reference.mdfor the verified public modules, classes, and functions. - Read
references/cli-reference.mdfor the supportedargos-translateandargospmcommands. - Read
references/configuration.mdbefore changing environment variables or config files. - Read
references/troubleshooting.mdwhen imports, package installs, CLI calls, or translation setup fail. - Read
references/repo-provenance.mdwhen you need to check whether this skill still matches the current checkout.
Install and minimal check
- Install from PyPI:
pip install argostranslate - Or from a local checkout:
pip install -e . - For local verification work, also install
pytest.
Minimal smoke check:
python -I -c "from importlib.metadata import version; print(version('argostranslate'))"
python -I -c "from argostranslate import package, translate; print(package.__name__, translate.__name__)"
If the package import or CLI help fails, run scripts/check_runtime.py from the installed environment before debugging anything else.
Route map
Translation workflows
Use sub-skills/translation/ when the task is about:
- Translating text from Python.
- Using
argos-translatewith--from-langand--to-lang. - Reading from stdin versus a positional text argument.
- Understanding installed language pairs and translation lookup.
- Optional device, chunking, or remote-provider settings that affect translation behavior.
- Sentence-boundary behavior or tag-preserving translation behavior.
Package-management workflows
Use sub-skills/package-management/ when the task is about:
argospm update,search,install,list, orremove.- Installing a local
.argosmodelarchive. - Inspecting package metadata or package contents.
- Package directory layout, cached downloads, or stale index/package errors.
Shared runtime helpers
scripts/check_runtime.py— run this to inspect the installed package, signatures, and basic translation smoke behavior.scripts/completion.bash— read or source this if you want Argos Translate shell completion forargos-translateandargospm.
When to read more
- Read
references/package-format.mdbefore changing how.argosmodelfiles are inspected or installed. - Read
references/configuration.mdbefore settingARGOS_DEVICE_TYPE,ARGOS_CHUNK_TYPE,ARGOS_PACKAGE_INDEX, or package/cache directories. - Read
references/cli-reference.mdwhenever the exact command syntax matters. - Read
references/troubleshooting.mdwhenever the failure mentions a missing wheel, missing model package, invalid archive, or optional backend.
What not to route here
- The separate
argos-translate-guirepository and GUI-specific workflows. - Generic Python packaging advice that does not depend on Argos Translate behavior.
- Maintainer-only release scripts, snap publishing, or PyPI upload workflows.
Evidence basis
This skill was distilled from the repository source, README, docs, tests, and installed-package inspection for Argos Translate 1.11.1. Read references/repo-provenance.md before treating it as current for a different checkout.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).