界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

training-and-decoding

training-and-decoding

【效率与协作】Run and adapt WeNet training recipes, checkpoint averaging, offline decoding, recognition modes, scoring, LM or k2 decoding, and training failure recovery.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: training-and-decoding description: "Run and adapt WeNet training recipes, checkpoint averaging, offline decoding, recognition modes, scoring, LM or k2 decoding, and training failure recovery." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

WeNet Training and Decoding

Use this sub-skill when the user wants to train or fine-tune a WeNet model, resume an experiment, run offline recognition on a data.list, average checkpoints, compare decoding modes, compute WER/CER, or reason about recipe stages.

Start here

  1. Ensure data manifests, dictionaries, and tokenizer resources are valid with ../data-preparation/SKILL.md.

  2. Read references/workflows.md for the staged training/decoding recipe pattern and large-job boundaries.

  3. Read references/cli-reference.md for the installed-module command shapes and important options.

  4. Use scripts/score_text.py for small local WER/CER checks when the full recipe scorer is unavailable:

    python sub-skills/training-and-decoding/scripts/score_text.py \
      --reference ref.txt --hypothesis hyp.txt --unit word
    
  5. Read references/troubleshooting.md when distributed training hangs, NCCL/HCCL/gloo fails, DeepSpeed configs disagree with WeNet configs, checkpoints are missing, or decoding output is empty.

Route by task

Verification boundary

Real training, large decoding, LM graph creation, and k2/LF-MMI workflows can require large corpora, GPUs, distributed launchers, external toolchains, and long runtimes. Treat them as documented operational workflows unless the user explicitly authorizes the data, hardware, and time budget.

我的收藏