C.W.K.
Stream
← C.W.K. Quests
🖥️

Local AI Quest

Updated: 2026-05-04

Run and operate models on your own machine

Build practical local AI literacy: Ollama, GGUF / MLX, the API surface, NDJSON streaming, tool use, vision, alternative servers, the adapter pattern, and a production fallback architecture.

9 tracks · 41 lessons · ~32h · difficulty: beginner-to-advanced

Level 0Downloader
0 XP0/41 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete
Local AI is about control: privacy, offline operation, cost ceilings, hardware reality, quantization choice, local servers, vision models, and adapters that make local an interchangeable peer of the cloud. This quest is built on the actual Ollama runtime, real code that runs end-to-end, and the same adapter pattern Pippa uses to fall back to local when cloud is degraded.

Tracks

  1. 01🏠Why Local AI

    0/5 lessons

    Privacy, cost, latency, offline, freedom

    When local-first wins over cloud-only — and what you give up to get there. Hardware, quantization, formats, and the engine ecosystem you'll work in for the rest of the quest.

    Lesson list (5)Quiz · 5 questions
  2. 02🦙Ollama Runtime

    0/5 lessons

    Install, pull, run, manage

    Ollama is the simplest correct path from nothing installed to a local model behind a stable HTTP API. Master the CLI, the model library, and the Modelfile system before touching the API.

    Lesson list (5)Quiz · 5 questions
  3. 03🔌Ollama HTTP API

    0/5 lessons

    Endpoints, options, structured outputs

    The HTTP surface you'll talk to from every adapter. /api/chat for conversation, /api/generate for FIM, model management endpoints for ops, and the format field for typed JSON outputs.

    Lesson list (5)Quiz · 5 questions
  4. 04🌊Streaming the Local Stream

    0/4 lessons

    NDJSON, not SSE

    Ollama streams over NDJSON, not SSE. Get streaming right in Python and TypeScript, then build the optional NDJSON→SSE proxy when you need OpenAI-shaped frontend compatibility.

    Lesson list (4)Quiz · 4 questions
  5. 07🏗️Beyond Ollama — Other Servers

    0/4 lessons

    llama.cpp, vLLM, TGI

    Engine map for when you outgrow Ollama. llama.cpp server for raw GGUF, vLLM for concurrent throughput, TGI for HuggingFace-native production, and a compatibility test harness so you can swap engines safely.

    Lesson list (4)Quiz · 3 questions
  6. 08🔄The Adapter Pattern

    0/5 lessons

    Make local an interchangeable peer of cloud

    One narrow interface, one universal stream chunk, mini-mode for small models, stateless sessions, and a multi-vessel orchestrator with cloud→local fallback.

    Lesson list (5)Quiz · 4 questions
  7. 09⚙️Production Operations

    0/5 lessons

    Tune, benchmark, update, ship

    Performance env vars, benchmark discipline, the MLX boundary this quest deliberately stays behind, update hygiene, and shipping a small cloud-first / local-fallback service end-to-end.

    Lesson list (5)Quiz · 4 questions
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.