CactusBrain Text / Available

On-device language models that never leave the phone.

Run small language models and generate dense vector embeddings directly on Apple Silicon, Qualcomm, and MediaTek hardware. No token pricing, zero latency jitter, and complete user privacy.

INPUT PROMPTLocal string
↓
LOCAL RUNTIMECPU / Metal GPU
↓
STREAMED OUTPUTPieces / Vectors
01

Stream Chat

Stream textual response chunks with low latency and clean stop-reason detection.

02

Dense Embeddings

Generate high-quality embedding vectors locally for search, clustering, and classification.

03

Hardware Acceleration

Execute via optimized Metal shaders on iOS/macOS and Vulkan/NNAPI on Android.

04

Zero Egress

User queries, prompts, and completions stay entirely on-device and never hit the network.

Simple, modern task-based interfaces.

CactusBrain Text manages the underlying model preparation, verification, and memory mapping. You call clean async streaming methods.

import CactusBrainTextSDK

let session = try await CactusBrainTextSDK.configure(
    projectKey: Secrets.cactusBrainProjectKey
)

// Stream responses locally on CPU or Metal
var reply = ""
for try await chunk in try await session.chat("Summarize the meeting notes:") {
    reply += chunk
}

// Generate local text embeddings for search and ranking
let vector = try await session.embed("on-device vector search")

Production-ready weights formatted for edge execution.

CactusBrain delivers packaged weights for popular open architectures including Qwen 2.5 and LFM, with delta updates and cryptographically verified integrity.