package-management
Guides Argos Translate package index, argospm, local .argosmodel installation, package inspection, and model-package troubleshooting workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- package-management
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides Argos Translate package index, argospm, local .argosmodel installation, package inspection, and model-package troubleshooting workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md4.4 KB
- 参考文档references/workflows.md4.0 KB
- 脚本scripts/check_argosmodel.py4.9 KB
03 SKILL.md 正文
Package Management
Use this sub-skill when the user needs to find, install, inspect, list, remove, or troubleshoot Argos Translate language packages.
Scope
This sub-skill owns:
argospm update,search,install,list, andremove.- Python installation of local
.argosmodelarchives withpackage.install_from_path(). - Package index behavior and package naming such as
translate-en_es. - Installed package directories and package cache behavior.
.argosmodelarchive validation and package metadata interpretation.- Package-specific troubleshooting before translation.
Route actual text translation, translation-object selection, sentence-boundary behavior during translation, and argos-translate runtime failures to ../translation/.
Read these first
references/workflows.md— package index, local archive, and installed-package workflows.references/troubleshooting.md— package-specific failure modes and recovery.../../references/package-format.md—.argosmodelarchive and metadata format.../../references/cli-reference.md— exactargospmcommands.../../references/configuration.md— package index URL and package directory settings.../../references/api-reference.md— Python APIs for package installation and discovery.scripts/check_argosmodel.py— safe local archive validator.
Minimal decision flow
-
If the user already has a local
.argosmodel, validate it first:python sub-skills/package-management/scripts/check_argosmodel.py translate-en_es.argosmodel -
If using remote packages, update and search the index:
argospm update argospm search -f en -t es -
Install the package by index name or local archive path:
argospm install translate-en_esor:
from pathlib import Path from argostranslate import package package.install_from_path(Path("translate-en_es.argosmodel")) -
Verify discovery:
argospm list -
Switch back to
../translation/to run a tiny translation.
Package names and language pairs
argospm names combine package type and language codes. For direct translation packages, expect names like:
translate-en_es
translate-de_en
translate-tr_en
argospm install translate installs all packages and can be very large. Do not run it unless the user explicitly wants all language packages and has enough disk/network budget.
Local archive workflow
Use local archives when network access is unavailable, a package link fails, or the user supplies a downloaded .argosmodel.
- Validate with
sub-skills/package-management/scripts/check_argosmodel.py. - Install with
package.install_from_path(). - Confirm with
argospm listorpackage.get_installed_packages(). - Clear or restart translation caches before testing in an already-running Python process.
Safety boundaries
- Installing packages writes extracted model files into the configured package directory.
- Removing packages deletes installed package directories.
scripts/uninstall.shfrom the source repository was not bundled because it removes cache/share directories and uninstalls the package; do destructive cleanup only after explicit user approval.- Remote downloads and installing every language package can consume significant bandwidth and storage.
Native verification anchors
The source repository's safe package unit-test anchor is tests/test_package.py, especially metadata loading and installed package object behavior. Remote index/download workflows are network-dependent and should be tested separately only when the user authorizes network use.
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).