BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Cactus v1: Cross-Platform LLM Inference on Mobile with Zero Latency and Full Privacy

Cactus v1: Cross-Platform LLM Inference on Mobile with Zero Latency and Full Privacy

Cactus, a Y Combinator-backed startup, enables local AI inference to mobile phones, wearables, and other low-power devices through cross-platform, energy-efficient kernels and a native runtime. It delivers sub-50ms time-to-first-token for on-device inference, eliminates network latency, and defaults to complete privacy.

Version v1 of the SDK, now in beta, improves performance on lower-end hardware and adds optional cloud fallback to ensure greater reliability.

Cactus enables developers to deploy models locally in any app using its SDK, which offers native bindings for React Native, Flutter, and Kotlin Multiplatform. Native Swift support is still minimal and less mature as support for other languages, but iOS developers can use the Kotlin Multiplatform bindings within their Swift apps.

On iOS and Android devices, Cactus takes a more general approach to on-device AI inference than the platform-native solutions offered by Apple and Google, Apple Foundation frameworks and Google AI Edge, which are platform-specific and expose only a limited, vendor-controlled set of capabilities. Cactus supports a wide variety of models, including Qwen, Gemma, Llama, DeepSeek, Phi, Mistral and many others. For improved efficiency and performance, it supports a range of quantization levels, from FP32 down to 2-bit.

Cactus provides built-in model versioning and over-the-air updates. You can push new model versions to users without requiring app updates. The SDK handles downloading, caching, and switching between model versions seamlessly in the background

The Cactus SDK also supports fallback to cloud-based models for complex or large-context tasks, ensuring robustness and high availability. According to Cactus, "this addresses one of the most common requests from v0 users who needed guaranteed response times for critical user-facing features".

In version v1, Cactus has completely overhauled thitseir inference engine, transitioning from GGUF to a proprietary format and including optimized ARM-CPU kernels for better performance across all supported devices. The SDKs were rebuilt from the ground up to improve API consistency across languages, while maintaining backward compatibility wherever possible. The new version also introduces updated telemetry and monitoring systems.

[This] give[s] developers granular insights into their AI model performance, usage patterns, and potential optimization opportunities. This data-driven approach enables teams to make informed decisions about model selection and deployment strategies.

In addition to LLM inference, Cactus v1 also supports tool calling and voice transcription. The Flutter SDK additionally offers RAG fine-tuning, while the React Native SDK provides image embedding. According to Cactus’ roadmap, these features will soon be extended to other SDK variants, along with voice synthesis.

To better appreciate Cactus' performance across distinct devices, the company has published benchmarks using the LFM2-VL-450m and Whisper-Small models, measuring metrics such as tokens per second, prefill/decode, and more. The benchmarks employ INT8 quantization and leverage NPUs for real-time performance and large context handling. Results show that a Mac M4 Pro achieves 173 tok/s, an iPhone 17 Pro reaches 136 tok/s, a Galaxy S25 Ultra 91 tok/s, and a Raspberry Pi 5 24 tok/s.

For reference, the smallest model, gemma-3-270m-it, has a compressed footprint of 172 MB and supports only completion. Qwen3-0.6B occupies 394 MB and supports completion, tool calling, embedding, and speech. On the upper-end, Gemma-3-1b-it requires 642 MB, while Qwen3-1.7B takes 1,161 MB.

Cactus has also published chat apps for iOS and Android that can use distinct LLMs, allowing developers to benchmark latency and throughput when accessed through the Cactus SDK.

Cactus is open-source free for students, educators, non-profits, and small businesses. It can be cloned from GitHub.

About the Author

Rate this Article

Adoption
Style

BT