Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
model-export【部署与运维】Preflight and run WeNet checkpoint export to TorchScript, ONNX CPU or GPU, IPEX, Horizon BPU, and deployment-ready model artifacts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user has a trained WeNet checkpoint and wants TorchScript/JIT, quantized JIT, ONNX, IPEX, Horizon BPU, or other deployment artifacts.
Confirm the experiment has a compatible train.yaml and checkpoint. If the
user provides a model directory, preflight it first:
python sub-skills/model-export/scripts/check_export_inputs.py \
--model-dir exp/conformer --mode jit
Read references/export-reference.md for export modes, command templates, required files, streaming chunk choices, output artifacts, and optional dependencies.
Read references/troubleshooting.md when files are missing, ONNX dependencies are absent, streaming parameters are inconsistent, CUDA providers are unavailable, quantized export fails, or a vendor toolchain is missing.
load_model().-1/-1 export should not be reused as a streaming model.