Pre-built iOS ML artifacts for on-device inference. Includes ONNX Runtime xcframework, sqlite-vec static libraries, and embedding models optimized for iOS.
1# Download all artifacts
2gh release download v1.0.0 --repo vannmex/vannmex-ios-ml-artifacts
3
4# Or download specific files
5gh release download v1.0.0 --pattern "onnxruntime-*.zip" --repo vannmex/vannmex-ios-ml-artifacts
6gh release download v1.0.0 --pattern "sqlite-vec-*.zip" --repo vannmex/vannmex-ios-ml-artifacts
7gh release download v1.0.0 --pattern "bge-small-*.zip" --repo vannmex/vannmex-ios-ml-artifacts
1# Install HF CLI
2brew install huggingface-cli
3
4# Download all artifacts
5hf download vannmex/ios-ml-artifacts --local-dir ./artifacts
6
7# Or download specific files
8hf download vannmex/ios-ml-artifacts onnxruntime/onnxruntime.xcframework --local-dir ./onnxruntime
1// Load the extension
2unsafe {
3 conn.load_extension_enable()?;
4 conn.load_extension("libsqlite_vec0", None)?;
5 conn.load_extension_disable()?;
6}
1use ort::{Session, SessionBuilder};
2
3let session = SessionBuilder::new()?
4 .with_execution_providers([CoreMLExecutionProvider::default().build()])?
5 .with_model_from_file("bge-small-en-v1.5-int8.onnx")?;