AGENT SKILL

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

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

  1. Select one backend per stage with --stt, --llm_backend, and --tts. Defaults are parakeet-tdt, responses-api, and qwen3.
  2. Install only the optional extra required by the selected backend. Do not install every extra just to try one component.
  3. Verify parser/config behavior before model inference. Run the bundled safe registry inspector: scripts/inspect_backend_registry.py.
  4. 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.
  5. For Qwen3-TTS on Linux, resolve the qwentts-cpp-python wheel/runtime match before diagnosing model code. For Apple Silicon, use the MLX quantization mapping described in the recipes.
  6. 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 none bypasses transcription and forwards the completed VAD audio turn to an LLM that supports audio input. In this package that means --llm_backend chat-completions plus an explicitly audio-capable --model_name. Do not pair --stt none with the default responses-api profile.
  • responses-api and chat-completions share the --responses_api_* connection flags. They call different upstream endpoints.
  • Local transformers and mlx-lm tool calling uses prompt-rendered function signatures and parsed <code>...</code> calls; remote OpenAI-compatible backends pass tools structurally.
  • --mac-optimal-settings supplies 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351