How to use from
Hermes Agent
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf jamesatron1512/gemma-4-E2B-it-GGUF:Q4_K_M
Configure Hermes
# Install Hermes:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup
# Point Hermes at the local server:
hermes config set model.provider custom
hermes config set model.base_url http://127.0.0.1:8080/v1
hermes config set model.default jamesatron1512/gemma-4-E2B-it-GGUF:Q4_K_M
Run Hermes
hermes
Quick Links

Google Gemma-4-E2B-IT - GGUF (Q4_K_M)

This repository contains the quantized Q4_K_M GGUF weights for google/gemma-4-E2B-it, configured for 1-click execution in Ollama and llama.cpp.


âš¡ Direct Ollama Run (1-Line Command)

Run this model instantly in Ollama without manual downloads:

ollama run hf.co/jamesatron1512/gemma-4-E2B-it-GGUF

Or specify the exact quantization tag:

ollama run hf.co/jamesatron1512/gemma-4-E2B-it-GGUF:Q4_K_M

🚀 Model Details

  • Architecture: Gemma-4 (2B Parameters, 262k Vocabulary)
  • Precision: Q4_K_M (Quantized 4-bit)
  • Disk Size: ~2.96 GB
  • Context Length: Up to 8,192 tokens
  • Chat Format: Gemma Turn Format (<start_of_turn>user ... <end_of_turn><start_of_turn>model)
  • System Prompt: Supported via template, default is left clean to prevent fixation.

💻 Python API Usage via Ollama

import requests

response = requests.post(
    "http://localhost:11434/api/generate",
    json={
        "model": "hf.co/jamesatron1512/gemma-4-E2B-it-GGUF",
        "prompt": "Explain the concept of neural network loss functions in simple terms.",
        "stream": False,
        "options": {
            "temperature": 0.7,
            "top_p": 0.9,
            "num_predict": 128
        }
    }
)

print(response.json()["response"])
Downloads last month
92
GGUF
Model size
5B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jamesatron1512/gemma-4-E2B-it-GGUF

Quantized
(320)
this model