distil-whisper
Routes Distil-Whisper inference, PyTorch distillation training, and Flax reproduction workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- distil-whisper
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Distil-Whisper inference, PyTorch distillation training, and Flax reproduction workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/model-overview.md2.1 KB
- 参考文档references/repo-provenance.md1.4 KB
- 参考文档references/repo-routing-metadata.json435 B
- 参考文档references/troubleshooting.md2.9 KB
- 参考文档references/workflows.md2.4 KB
- 脚本scripts/check-env.py3.5 KB
03 SKILL.md 正文
Distil-Whisper
Purpose
Use this skill when the user wants to transcribe audio with Distil-Whisper, choose or compare checkpoints, run the PyTorch distillation stack under training/, or reproduce the original JAX/Flax stack under training/flax/.
First stop
- Read
references/model-overview.mdto choose a checkpoint and decode path. - Run
scripts/check-env.pyto verify the CPU inspection stack before deeper work. - Read
references/repo-provenance.mdwhen deciding whether this skill still matches the current checkout.
Route map
sub-skills/inference/SKILL.mdfor checkpoint usage, short-form transcription, long-form transcription, speculative decoding, and inference-speed trade-offs.sub-skills/pytorch-training/SKILL.mdfor pseudo-labelling, student initialization, distillation training, evaluation, and dataset mixing in the PyTorch stack.sub-skills/flax-reproduction/SKILL.mdfor the JAX/Flax package, conversion helpers, long-form transcription, and original reproduction workflows.
Install notes
This repo has two practical dependency surfaces:
- The Flax package under
training/flax/. - The PyTorch training scripts under
training/.
For a local checkout, install the Flax package in editable mode and then add the PyTorch training dependencies from the root training/ metadata. The verified inspection environment used a single CPU prefix with Python 3.11, a CPU-only torch wheel, JAX 0.4.18, Flax 0.7.2, SciPy 1.11.4, and the core Hugging Face audio stack. See references/repo-provenance.md for the exact verified versions.
Minimal smoke
python scripts/check-env.pypython -m pip check- Read the relevant sub-skill before running a workflow command.
Runtime boundaries
- Do not tell future agents to open or run files from the original repository checkout when a bundled reference or script exists.
- Do not treat benchmark-only or TPU-host-specific helpers as default user workflows.
- Keep training-scale runs, model downloads, and Hub pushes in the route-specific references unless the user explicitly wants to perform them.
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).