🧠 Antonio Gemma3 Evo Q4 — Self-Learning AI for Raspberry Pi
Antonio Gemma3 Evo Q4 is not just another quantized LLM. It's a self-learning micro-intelligence with EvoMemory™, RAG-Lite, and auto-evolution capabilities, optimized for Raspberry Pi 4 & 5 and tested for production 24/7 deployment.
Version: v0.5.0 (NEW: Adaptive Prompting)
Author: Antonio Consales (antconsales)
Base Model: Google Gemma 3 1B IT
💻 Production-Ready for Raspberry Pi
✅ Tested on Raspberry Pi 4 (4GB) — 3.32 t/s sustained (100% reliable over 60 minutes)
✅ Fully offline — no external APIs, no internet required
✅ Self-learning — EvoMemory™ saves neurons from every conversation
✅ Bilingual — seamlessly switches between Italian and English
✅ 24/7 deployment tested — Zero failures in 60-minute soak test
🔍 What Makes It Special
Unlike traditional quantized models, Antonio Gemma3 Evo Q4 learns and evolves:
🧬 EvoMemory™ — Saves "neurons" with input, output, confidence, and mood
🔍 RAG-Lite — Retrieves past experiences using BM25 (no FAISS!)
🎯 Self-evaluation — Assigns confidence scores (0-1) to every response
🌱 Auto-evolution — Generates new reasoning rules from accumulated neurons
🔒 100% Offline — Runs completely local on Raspberry Pi 4 (4GB RAM)
🌐 Bilingual — Auto-detects IT/EN and responds in the same language
⚡ Fast — 3.32 tokens/s sustained on Pi 4 with Q4_K_M quantization
🎯 NEW: Adaptive Prompting — Smart question classification (SIMPLE/COMPLEX/CODE/CREATIVE) for 3.6x speedup on simple queries
"The little brain that grows with you" 🧠
📊 Benchmark Results (Updated Oct 21, 2025)
Complete 60-minute soak test on Raspberry Pi 4 (4GB RAM) with Ollama.
Recommendation: Use Q4_K_M for production deployments (proven 100% reliability over 60 minutes). Use Q4_0 for development/testing if you need slightly faster inference.
🧩 Available Models
This repository contains two quantization variants:
gemma3-1b-q4_0.gguf (≈687 MB) — Faster, 3% higher throughput, suitable for development
gemma3-1b-q4_k_m.gguf (≈769 MB) — Better quality, production-tested for 60+ minutes
🎯 Important: Two Usage Modes
Mode 1: Ollama Only (Simple Inference) ⚡
Download the GGUF model and run with Ollama:
bash
1ollama pull antconsales/antonio-gemma3-evo-q4
2ollama run antconsales/antonio-gemma3-evo-q4
What you get:
✅ Fast inference (3.32 t/s on Pi 4)
✅ Bilingual chat (IT/EN)
✅ Offline, privacy-first
❌ NO EvoMemory (doesn't save conversations)
❌ NO RAG (doesn't retrieve past experiences)
❌ NO auto-evolution (doesn't generate rules)
Best for: Quick tests, one-off questions, simple chatbot
Mode 2: Full Evolution Stack (Self-Learning) 🧠
For EvoMemory™, RAG-Lite, and auto-evolution, use the full Python stack from GitHub:
✅ EvoMemory™ — Saves neurons from every conversation
✅ RAG-Lite — Retrieves past experiences (BM25)
✅ Auto-evolution — Generates reasoning rules over time
✅ Confidence scoring — Knows when it's uncertain
✅ FastAPI server — REST + WebSocket endpoints
Comparison:
Feature
Ollama Only
Full Stack
Inference speed
3.32 t/s
3.32 t/s
Learns from chats
❌
✅ EvoMemory
Retrieves memories
❌
✅ RAG-Lite
Generates rules
❌
✅ Auto-evolution
API endpoints
❌
✅ FastAPI
Setup time
1 min
5 min
🛠️ Quick Start Options
Option 1: Ollama Only (see Mode 1 above)
Option 2: Load Directly from GGUF
bash
1# Download model from HuggingFace2wget https://huggingface.co/chill123/antonio-gemma3-evo-q4/resolve/main/gemma3-1b-q4_k_m.gguf
34# Create Modelfile5cat> Modelfile <<'EOF'
6FROM ./gemma3-1b-q4_k_m.gguf
78PARAMETER temperature 0.7
9PARAMETER top_p 0.9
10PARAMETER num_ctx 1024
11PARAMETER num_thread 4
12PARAMETER repeat_penalty 1.05
13PARAMETER stop "<end_of_turn>"
14PARAMETER stop "</s>"
1516SYSTEM """You are Antonio, an offline AI assistant running on a Raspberry Pi. You MUST detect the user's language and respond in the SAME language:
1718- If the user writes in Italian, respond ONLY in Italian
19- If the user writes in English, respond ONLY in English
2021You are helpful, friendly, and concise. When you're uncertain, you admit it instead of guessing."""
22EOF2324# Create and run model25ollama create antonio-evo -f Modelfile
26ollama run antonio-evo
🚀 Quick Start with Full Evolution Stack
For the complete self-learning system with EvoMemory™, RAG-Lite, and auto-evolution:
bash
1# Clone the full project2git clone https://github.com/antconsales/antonio-gemma3-evo-q4.git
3cd antonio-gemma3-evo-q4
45# Install and run6bash scripts/install.sh
7python -m api.server
1{2"id":123,3"input_text":"Accendi il LED rosso",4"output_text":"OK, attivo GPIO 17 su HIGH",5"confidence":0.85,6"mood":"positive",7"user_feedback":1,8"skill_id":"gpio_control",9"timestamp":"2025-10-21T14:30:00Z"10}