components-and-backends
Choose, configure, and troubleshoot speech-to-speech VAD, STT, LLM, and TTS backends, optional extras, language behavior, prompts, tools, and benchmark safety.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- components-and-backends
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Choose, configure, and troubleshoot speech-to-speech VAD, STT, LLM, and TTS backends, optional extras, language behavior, prompts, tools, and benchmark safety.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/backend-benchmarking.md2.8 KB
- 参考文档references/backend-catalog.md5.2 KB
- 参考文档references/model-and-language-recipes.md5.8 KB
- 参考文档references/prompting-and-tools.md3.6 KB
- 参考文档references/troubleshooting.md3.7 KB
- 脚本scripts/inspect_backend_registry.py2.5 KB
03 SKILL.md 正文
Components and backends
Use this sub-skill when the task is to choose or debug a VAD, STT, LLM, or TTS
component for speech-to-speech, including optional extras, model/device
choices, Qwen3-TTS modes, direct audio-input LLMs, language behavior, prompts,
tool calls, and benchmark planning.
Route by question
- Need a supported backend list or install extra: read Backend catalog.
- Need a concrete model, language, direct-audio, Qwen3, or Apple Silicon recipe: read Model and language recipes.
- Need LLM prompt or tool-calling behavior: read Prompting and tools.
- Need latency/RTF comparison or a benchmark plan: read Backend benchmarking before running any model-heavy measurement.
- Need optional dependency, CUDA wheel, model cache, language, or voice troubleshooting: read Troubleshooting.
- Need command shape,
serve/local/talk, host/port, VAD flags, or session capacity: route to cli-and-server. - Need Realtime event lifecycle, WebSocket/WebRTC, or client protocol: route to realtime-api.
- Need the browser demo tools/search/camera/UI: route to browser-demo.
Safe operating sequence
- Select one backend per stage with
--stt,--llm_backend, and--tts. Defaults areparakeet-tdt,responses-api, andqwen3. - Install only the optional extra required by the selected backend. Do not install every extra just to try one component.
- Verify parser/config behavior before model inference. Run the bundled safe
registry inspector:
scripts/inspect_backend_registry.py. - For local model inference, decide the hardware/backend first: CPU/CUDA, Apple Silicon/MPS/MLX, remote OpenAI-compatible endpoint, or direct audio-input Chat Completions model.
- For Qwen3-TTS on Linux, resolve the
qwentts-cpp-pythonwheel/runtime match before diagnosing model code. For Apple Silicon, use the MLX quantization mapping described in the recipes. - Treat full STT/TTS benchmarks and live speech loops as optional, expensive validation. They may download models, require CUDA/MPS/audio devices, or use credentials.
High-signal rules
--stt nonebypasses transcription and forwards the completed VAD audio turn to an LLM that supports audio input. In this package that means--llm_backend chat-completionsplus an explicitly audio-capable--model_name. Do not pair--stt nonewith the defaultresponses-apiprofile.responses-apiandchat-completionsshare the--responses_api_*connection flags. They call different upstream endpoints.- Local
transformersandmlx-lmtool calling uses prompt-rendered function signatures and parsed<code>...</code>calls; remote OpenAI-compatible backends pass tools structurally. --mac-optimal-settingssupplies macOS defaults only. Any explicit backend, model, global device, or component-device flag wins over the preset.- Backend registry import/config checks do not prove that a large model can run. Record actual model inference separately when a task requires it.
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).