.litertlm build of Gemma-4 E4B lightly healed to be the local brain of the Elffuss family — in-browser agentic tools where apps don't exist, they're generated. It runs fully client-side on WebGPU via Google's LiteRT-LM runtime (@litert-lm/core), so nothing leaves the user's machine.Base model © Google — google/gemma-4-e4b-it, under the Gemma license. This is a derivative: a small task-alignment heal + conversion to.litertlm. Weights are otherwise Google's.
<canvas>/WebGL for anything visual). No CDNs, no network — it runs in a sandboxed iframe instantly.```tool block with valid JSON (fs.*, tasks.add, memory.save, web.fetch, …).{"tool":"tasks.add","args":{"inMinutes":30,"prompt":"llamar a mamá"}}. It learned the format and style, not the training examples.model.litertlm — LiteRT-LM bundle (tokenizer + model + metadata), int4 weights (dynamic_wi4_afp32), ~4 GB. Text-generation task (the base's vision/audio towers are not exported).@litert-lm/core, Engine.create) on WebGPU (Chrome/Edge). Recommended hardware: a GPU with ≥24 GB.1import { Engine } from 'https://cdn.jsdelivr.net/npm/@litert-lm/core/+esm';
2const engine = await Engine.create({
3 model: 'https://huggingface.co/KikoCis/Elffuss-Gemma4-E4B-litert/resolve/main/model.litertlm',
4 mainExecutorSettings: { maxNumTokens: 4096 },
5});
6const conv = await engine.createConversation({ preface: { messages: [{ role: 'system', content: ELFFUSS_SYSTEM }] } });
7for await (const chunk of conv.sendMessageStreaming('hazme una app de pomodoro')) { /* stream */ }.litertlm required patching a transformers-version incompatibility in the public litert-torch tooling (patch shipped in scripts/litert_patch.py); the produced bundle validates with litert-lm-peek.