AgentSkillsCN

building

构建 ExecuTorch 运行器或 C++ 库。当您为 Llama、Whisper 或其他模型编译运行器,或构建 C++ 运行时环境时,可使用此技能。

SKILL.md
--- frontmatter
name: building
description: Build ExecuTorch runners or C++ libraries. Use when compiling runners for Llama, Whisper, or other models, or building the C++ runtime.

Building

Runners (Makefile)

bash
make help              # list all targets
make llama-cpu         # Llama
make whisper-metal     # Whisper on Metal
make gemma3-cuda       # Gemma3 on CUDA

Output: cmake-out/examples/models/<model>/<runner>

C++ Libraries (CMake)

bash
cmake --list-presets                    # list presets
cmake --workflow --preset llm-release   # LLM CPU
cmake --workflow --preset llm-release-metal  # LLM Metal