An architecture walkthrough
From input
to embedding.
We went through the backbone, vision encoder, and audio encoder one package at a time to understand their layers and check that the Core ML exports matched PyTorch.
- Image
- Make patches
- Vision encoder
- Shared backbone
- 768-value embedding
Shared backbone
Text tokens and media vectors enter one sequence. The backbone encodes it, averages the real tokens, and projects and normalizes the result.
Vision encoder
The vision encoder turns an image or video frame into tokens for the shared backbone.
Audio encoder
The pipeline turns a waveform into log-mel features. The encoder reduces the time axis before using local attention and projecting to 512 values per token.
Pipeline
The Python pipeline prepares the request, calls the encoders it needs, and sends one ordered sequence to the backbone.