LFM3-Omni-2B for Core AI
A Core AI conversion of LiquidAI/LFM3-Omni-2B,
checkpoint 5797d07c125503bd4f4c0e7f915ae2d3d703e8de.
Inputs: text, images, video, and 16 kHz audio. Outputs: text and 24 kHz speech.
Compatibility
iOS 27 or later and Core AI; these AOT bundles target h19p GPU.
The app needs the increased-memory-limit entitlement
and enough memory for the graphs, state, and media processing. Context: 16,384 positions; decoder
prefill chunk: 16. The root manifest.json inventories both formats; h19p/manifest.json records
the app download sizes and SHA-256 hashes.
Repository layout
| Path | Contents |
|---|---|
h19p/graphs/decoder.h19p.aimodelc | fp16 decoder, fp16 attention, separate LM head, live-length cache tiers; returns the hidden state of every fed row (all_rows in its meta), which the app needs from this release on |
h19p/graphs/head.h19p.aimodelc | LM head shared by both precision modes |
h19p/graphs/depth.h19p.aimodelc | fp32 speech depth decoder |
h19p/graphs/codec.h19p.aimodelc | fp16 streaming speech codec, four frames per call |
h19p/graphs/audio_{32,64,128,256}.h19p.aimodelc | fp16 audio encoder buckets |
h19p/graphs/audio_stream.h19p.aimodelc | fp16 streaming audio encoder, 128 tokens per call |
h19p/graphs/vseg_{0..14}.h19p.aimodelc | Chunked vision tower segments |
h19p/graphs/vconv_{1024..8192}.h19p.aimodelc | Vision convolution buckets, steps of 1,024 |
h19p/graphs/vattn_{1024..8192}.h19p.aimodelc | Vision attention buckets, steps of 1,024 |
h19p/graphs/*.meta.json | Runtime graph parameters; required beside each graph |
h19p/graphs/vision_chunked.json, h19p/graphs/vision_taps.bin | Vision host configuration and convolution taps |
h19p/graphs_int8/decoder.h19p.aimodelc, decoder.meta.json | Fast mode: int8 MLP/convolution projections, fp16 attention |
assets/tokenizer.json, tokenizer_config.json, chat_template.jinja | Tokenizer and prompt template |
assets/config.json | Host preprocessing, generation, and model configuration |
assets/embed_tokens.bf16, codebook.bf16, codec_window.f32 | Host embedding tables, audio codebook, codec window |
There are 41 portable .aimodel bundles under aimodel/ and 41 compiled .aimodelc bundles
under h19p/. aimodel/graphs/ has the same graph names and adjacent metadata as h19p/graphs/,
with .aimodel in place of .h19p.aimodelc; aimodel/graphs_int8/ holds the int8 decoder and metadata.
Both graph trees include vision_chunked.json and vision_taps.bin. The root assets/ is shared.
The portable files contain the stripped source programs, not the original debugging exports.
Both precision modes use the same host assets, head, depth decoder, codec, and media encoders.
The iPhone app downloads only h19p/graphs, h19p/graphs_int8, root assets, and
h19p/manifest.json, mapping them to local graphs, graphs_int8, assets, and manifest.json
in Application Support. It does not download the portable source models. Each directory is installed atomically
after all its files pass Hugging Face checksum verification.
AOT compilation for another architecture
The portable assets allow AOT compilation for architectures supported by your Core AI toolchain. They keep this port's static graph shapes and numerical formats. Availability and runtime behavior on another architecture still need validation; shipping h19p binaries do not establish compatibility. Using an Xcode toolchain with Core AI and the Metal toolchain installed:
# Run from the downloaded repository root. Set this to your supported target architecture.
export LFM3_ARCH=YOUR_ARCHITECTURE
for group in graphs graphs_int8; do
mkdir -p "$LFM3_ARCH/$group"
for model in aimodel/"$group"/*.aimodel; do
xcrun coreai-build compile "$model" --platform iOS --architecture "$LFM3_ARCH" \
--preferred-compute gpu --output "$LFM3_ARCH/$group"
done
cp aimodel/"$group"/*.meta.json "$LFM3_ARCH/$group/"
done
cp aimodel/graphs/vision_chunked.json aimodel/graphs/vision_taps.bin "$LFM3_ARCH/graphs/"
Use --platform macOS instead for a supported Mac target. Keep root assets/ beside the architecture
folders. The app currently selects h19p/; another target needs a matching app download selection
and an architecture-specific runtime manifest. All source bundle payloads (main.mlirb, main.hash,
metadata.json) must stay together. No upstream checkpoint download or Python export is needed to compile.
License and attribution
Original weights and assets: Liquid AI, Inc., under the LFM Open License v1.0 included in
LICENSE. This repository contains modified/converted model files; see NOTICE and
provenance.json. Consult the included license for its terms. This port is not an official
Liquid AI or Apple release.