Initialize AI Engine
Choose your local model execution backend
4B requires ~4GB. 12B is experimental and may exceed browser VRAM allocations.
Run models locally using Ollama with full hardware acceleration and MTP.
💡 Gemma 4 Speculative Decoding (MTP)
To run Gemma 4 12B faster with speculative decoding, create a model with the draft_num_predict parameter. Create a local Modelfile:
Compile it in your terminal:
CORS / Hugging Face Note: If connection fails:
1. Restart Ollama with origins allowed: $env:OLLAMA_ORIGINS="*" ; ollama serve
2. On Hugging Face, open the Direct Space URL (three dots → Embed this Space → Direct URL) and allow Insecure content in browser site settings to bypass Mixed Content blocking.