One request.
One embedding.

The pipeline prepares each item, runs the models it needs, and assembles their output in request order.

Prepare the inputs

Tokenize text, prepare image patches, and extract audio features. Video can contribute frames and an audio track.

Long audio and video

Audio longer than 30 seconds is chunked. Video files are decoded with ffmpeg, with frame sampling controlled by the request.

Run it

Use the Python pipeline with text and media inputs, or run the verifier against the PyTorch reference.

# 1. Run an embedding request
uv run python -m pipeline --text "A description"

# 2. Verify end-to-end Core ML parity against PyTorch
uv run python -m pipeline.verify_pipeline

A Swift equivalent for pipeline preprocessing and model calls is planned. If you can’t find it in my repositories or profiles, feel free to ask me about it. I may have already built it and just haven’t found the time to publish it.

Three-model footprint

How the three Core ML models compare in the measured configuration.

ModelParametersCompiled size (FP16)
Shared backbone271M521 MB
Vision encoder168M329 MB
Audio encoder306M561 MB
Total744M1.41 GB