8 2 months ago

Models

View all →

Readme

๐Ÿงฎ Antonio Gemma3 Evo Q4 LOGIC - Reasoning Specialist

Specialized AI model for mathematics, coding, and logical reasoning - Part of the Antonio AI self-learning edge framework.


๐ŸŽฏ What is Antonio LOGIC?

Antonio LOGIC is the reasoning-optimized variant of the Antonio AI dual-model system. While the SOCIAL model handles conversations, LOGIC excels at:

  • ๐Ÿ“ Mathematics & Calculations (92% accuracy)
  • ๐Ÿ’ป Code Generation & Debugging (81% accuracy)
  • ๐Ÿง  Step-by-step Problem Solving
  • ๐Ÿ” Logical Analysis & Reasoning x โ€”

โšก Key Differences vs SOCIAL

Feature SOCIAL LOGIC
Context Window 2048 tokens 8192 tokens (4x larger)
Temperature 0.8 0.7 (more deterministic)
Repeat Penalty 1.0 1.1 (prevents loops)
Math Accuracy 78% 92% โฌ†๏ธ
Code Accuracy 64% 81% โฌ†๏ธ
Best For Chat, storytelling Reasoning, analysis

๐Ÿš€ Quick Start

Pull the model

ollama pull antconsales/antonio-gemma3-evo-q4-logic

Run it

ollama run antconsales/antonio-gemma3-evo-q4-logic

Example prompt

Se un triangolo rettangolo ha cateti di 3 e 4 cm,
quanto misura l'ipotenusa? Mostra il ragionamento step-by-step.

๐Ÿ—๏ธ Antonio AI Framework

This model is part of the complete Antonio AI framework featuring:

โœ… Dual-Model Architecture - Auto-switching between SOCIAL and LOGIC โœ… EvoMemoryโ„ข - Persistent learning with SQLite + RAG-Lite โœ… Power Sampling - MCMC-based inference (research) โœ… FastAPI REST + WebSocket - Production-ready API โœ… 100% Offline - No external dependencies โœ… Edge-Optimized - Runs on Raspberry Pi 4 @ 3.6 t/s


๐Ÿ“Š Performance (Raspberry Pi 4)

  • Speed: 3.2-3.6 tokens/second
  • Memory: ~1.8 GB RAM
  • Math Accuracy: 92%
  • Code Accuracy: 81%
  • Uptime Tested: 60+ minutes continuous operation

๐Ÿณ Deploy Full Framework

# Clone repository
git clone https://github.com/antconsales/antonio-ai.git
cd antonio-ai

# Pull both models
ollama pull chill123/antonio-gemma3-evo-q4         # SOCIAL
ollama pull antconsales/antonio-gemma3-evo-q4-logic # LOGIC

# Start with Docker
docker-compose up -d

The framework automatically routes questions to the appropriate model based on complexity.


๐ŸŽ“ Use Cases

Perfect For: - โœ… Math homework and problem-solving - โœ… Code review and debugging - โœ… Algorithm design and analysis - โœ… Logic puzzles and reasoning - โœ… Educational tutoring (STEM) - โœ… Edge inference on Raspberry Pi

Not Recommended For: - โŒ Creative writing (use SOCIAL instead) - โŒ Casual conversation (use SOCIAL instead) - โŒ Real-time applications (<500ms)


๐Ÿ”— Links


๐Ÿ“„ Technical Specs

  • Base Model: Gemma 3 1B Instruct
  • Quantization: Q4_K_M (806 MB)
  • Context Length: 8192 tokens
  • Temperature: 0.7
  • Languages: Italian ๐Ÿ‡ฎ๐Ÿ‡น + English ๐Ÿ‡ฌ๐Ÿ‡ง
  • License: Gemma Terms of Use + MIT (framework)

๐Ÿ’ก Example Interactions

Math Problem

User: Calcola la radice quadrata di 144
Antonio LOGIC: Analisi step-by-step:
1. โˆš144 = ?
2. Cerco un numero che moltiplicato per sรฉ stesso dia 144
3. 12 ร— 12 = 144
4. Risposta: โˆš144 = 12

Code Debugging

User: Find the bug in this Python code:
def factorial(n):
    if n == 0:
        return 0
    return n * factorial(n-1)

Antonio LOGIC: Bug trovato!
- Line 3: factorial(0) should return 1, not 0
- 0! = 1 by definition
- Fixed: return 1

๐Ÿ† Why Antonio LOGIC?

  1. 4x Larger Context - Handle complex problems with extensive context
  2. Higher Accuracy - 92% on math, 81% on coding tasks
  3. Deterministic Output - Lower temperature for consistent reasoning
  4. Edge-Ready - Tested on Raspberry Pi 4, runs anywhere
  5. Open Source - Full framework code on GitHub
  6. Active Development - Regular updates and improvements

๐Ÿ‘จโ€๐Ÿ’ป Author

Antonio Consales - AI Engineer & Researcher

โ€œIl piccolo cervello che cresce insieme a teโ€ โ€” Antonio AI ๐Ÿง ๐Ÿ‡ฎ๐Ÿ‡น


โญ Support

If Antonio LOGIC helped you, please: - โญ Star the GitHub repo - ๐Ÿ’ฐ Donate to support development - ๐Ÿ› Report issues on GitHub - ๐Ÿ“ข Share with the community


Built with โค๏ธ for offline AI and edge computing