Skip to reading
AI.Deployment.Edge AI / Modern ML

On-device and edge AI — Apple Intelligence, Gemma 3, Phi

Node 2 of 12 in AI

Objectives

  • Identify the key rules and §§ that apply to on-device and edge ai — apple intelligence, gemma 3, phi.
  • Apply the AI.Deployment.Edge knowledge element in a typical exam scenario.
  • Recognize common distractors and partial-credit answers.

Read

AI.Deployment.Edge

On-device and edge AI — Apple Intelligence, Gemma 3, Phi

AI Era · Edge / On-Device Small language models and on-device deployment

**Why on-device?** Privacy (data never leaves), latency (no round-trip), offline operation, lower per-inference cost, regulatory data-locality (HIPAA, GDPR, EU AI Act).

**Apple Intelligence (WWDC 2024 → ongoing):** • ~3B-parameter on-device Foundation Model + larger Private Cloud Compute (PCC) server model on Apple Silicon servers. • LoRA/adapter system for task specialization (summarize, rewrite, proofread, extract from email). • Semantic Index of personal data on-device; App Intents bring app actions into Siri. • PCC: verifiable enclave — images of software signed, public transparency log, no persistent storage, narrow attack surface. Security architecture paper published 2024.

**Google Gemma 3 (Mar 2025):** 1B / 4B / 12B / 27B open weights; multimodal (4B+); 128K context; strong math/code; permissive license allowing commercial use with limited restrictions.

**Microsoft Phi family:** Phi-3 Mini (3.8B), Phi-4 Mini (3.8B), Phi-4 (14B). Trained heavily on textbook-quality synthetic data; strong reasoning per parameter.

**Meta Llama 3.2 1B/3B** — tuned for mobile (Qualcomm + MediaTek NPUs). Llama 4 Scout/Maverick pushed larger.

**Deployment runtimes:** • **Apple MLX, Core ML, Metal** — Apple Silicon. • **ONNX Runtime, DirectML** — cross-platform. • **llama.cpp / GGUF** — CPU + NEON/AVX + any GPU via Metal/Vulkan/CUDA. • **TensorFlow Lite + XNNPACK** — Android. • **Qualcomm AI Engine Direct, MediaTek NeuroPilot** — mobile NPU. • **NVIDIA Jetson / TensorRT** — edge GPU.

**Practical sizing:** Int4 quantization lets a 3B model run in ~2 GB RAM at 30+ tokens/sec on a modern phone. 7B fits on consumer laptops; 70B needs a >64GB unified-memory box (M3/M4 Ultra Mac Studio) or multi-GPU workstation.

Apple Foundation Models Technical Report (2024) Google Gemma 3 Technical Report (2025)

Check yourself

3 quick questions — no score kept, just formative feedback.

  1. Q1 · AI.Deployment.Inference

    Speculative decoding accelerates autoregressive inference by:

    Answer choices
  2. Q2 · AI.Deployment.Inference

    KV-cache memory scales as:

    Answer choices
  3. Q3 · AI.Deployment.Inference

    Quantizing LLM weights from FP16 to INT4 (e.g., GPTQ/AWQ):

    Answer choices

Tutor

Scoped to AI.Deployment.Edge .

  1. Ask questions about this passage. Answers cite the specific corpus chunk and regulation. The tutor will never reproduce real exam items.