Building a local-first AI tutor for my daughter (and 10–14 year-olds in Austrian schools) with Gemma 4 The article describes the creation of "Lernbuddy," a local-first AI study companion for children aged 10–14, built using Gemma 4 E4B. The app runs entirely on-device with no network calls, ensuring student data like homework and personal information never leaves the device. It features AI-generated flashcards, a spaced-repetition scheduler, and bilingual support, all implemented as a .NET MAUI application. This is a submission for the Gemma 4 Challenge: Build with Gemma 4 My daughter is 13. Like most students her age in Austria, she has an iPad. Like most parents, I'm uncomfortable about her typing homework into ChatGPT — not because the answers are wrong, but because everything she types disappears into a cloud I don't control. Names, schools, half-formed thoughts, the topics where she's struggling. Stuff I want to stay on her device. So I built Lernbuddy. It's a study companion for ages 10–14 that runs entirely on-device with Gemma 4 E4B. No network calls. No telemetry. The model lives next to the kid's flashcards and her review history, on the same disk, and that's it. Three things, all driven by Gemma 4 E4B: irregular verbs , European capitals → the model pulls from general knowledge and creates a deck. Every card lands in a preview where you can edit, delete, or add more before they go in the database.correct / almost / incorrect — spelling errors and paraphrasing are tolerated. It even writes a short personalized summary at the end: "You handled past participles well. 'choose' and 'speak' got mixed up — they'll come back tomorrow." Behind the quiz sits a small SM-2 spaced-repetition scheduler. Cards she gets wrong come back the next day; cards she gets right keep slipping further out. A streak counter and a per-topic "✓ 12 solid · … 4 to practise" badge make progress visible without dashboards. The whole thing is a .NET 9 MAUI app — one codebase, four targets Windows, Android, iOS, macCatalyst , bilingual from day one German is the primary audience, English the default for international demos . Inference goes through Microsoft.Extensions.AI 's IChatClient interface. The concrete implementation wraps LLamaSharp running unsloth/gemma-4-E4B-it-GGUF Q4 K M quant, ~4.6 GB . Gemma 4's chat template — <|turn role\n...