Model conversion and optimization hub for edge AI on Apple Silicon. Converts PyTorch/ONNX models to CoreML, targeting ANE (Neural Engine).
models/{class}/{model}/{target}/— self-contained conversion pipelines (each has ownpyproject.toml)tools/coreml-cli/— CLI tool to profile CoreML models (device assignment, latency, compile time)Documentation/— guides (ModelConversion.md is the main one)knowledge/— curated research papers and platform docs
All commands run from the target directory (e.g., models/stt/parakeet-tdt-v3-0.6b/coreml/):
uv sync— set up environmentuv run python convert-coreml.py --output-dir ./build/<name>— run conversionuv run python compare-models.py --audio-file <path> --coreml-dir <dir>— validate parity
Profiling (from tools/coreml-cli/):
uv run coreml-cli path/to/model.mlmodelc— benchmark: latency, compile time, device % across all compute unit configsuv run coreml-cli model.mlmodelc --fallback— ANE optimization: show CPU fallback ops grouped by rejection reasonuv run coreml-cli model.mlmodelc --fallback --json— structured fallback analysis for agent parsing
- Trace with
.CpuOnly - Target iOS 17+ / macOS 14+
- Fixed input shapes only (no dynamic dimensions)
- Use
uvfor all dependency management - Each conversion directory is self-contained with its own
pyproject.toml
- 4-space indent, type hints, double-quoted strings
- Lowercase-kebab-case for directories and files
- Document trials, errors, and platform quirks — future agents rely on this context
stt, tts, vad, speaker-diarization, emb, segment-text
See Documentation/ModelConversion.md for the full 11-step pipeline: directory setup → conversion → validation → profiling → documentation → HuggingFace upload → PR.