Skip to content
Malik Hamza Shabbir

Articles

Notes from building real things

Web, React and Next.js, AI and RAG, and mobile. Written from production work, not tutorials about tutorials.

FeaturedAI Product Engineering

On-Device or API? Shipping Structured Extraction With Apple 3rd-Gen Foundation Models vs a Cloud LLM

Apple's 3rd-gen on-device Foundation Models let mobile teams run classification, routing, and structured extraction for free, on-device, and offline. Here is the decision framework I use to choose on-device vs a cloud LLM, where on-device tops out, and the hybrid fallback pattern that sends only the hard cases to a paid API.

· 8 min read

Building something similar?

I take on a few projects at a time: web apps, AI features, and mobile. Tell me what you are working on.

Start a conversation