# larger-clap-general-coreml
Native Core ML (`.mlpackage`) build of [`laion/larger_clap_general`](https://huggingface.co/laion/larger_clap_general)'s **audio encoder + projection head**. Takes raw 48 kHz mono waveform, returns an L2-normalized 512-d embedding compatible with the original CLAP joint embedding space.
`larger_clap_general` is trained on **general audio, music and speech** — pair it with the upstream text encoder for zero-shot audio classification or open-vocabulary retrieval.
Built because `ort`'s CoreML execution provider can't accelerate HTSAT — reflect-pad, 5-D reshapes, relative-position-bias gather, and dynamic shapes shred the graph into CPU partitions, so the EP "registers" but every node runs on CPU. Loading this `.mlpackage` directly via Core ML (skipping ORT entirely) runs the full graph on the Apple GPU.
## Inputs / Outputs
| | name | shape | dtype | notes |
|---|---|---|---|---|
| Input | `audio` | `[1, 480000]` | float32 | 10 s mono @ 48 kHz, peak-normal…