Instructions to use sunil-pathak/gemma-3n-E2B-it-Q4_K_M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sunil-pathak/gemma-3n-E2B-it-Q4_K_M with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M # Run inference directly in the terminal: llama cli -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M # Run inference directly in the terminal: llama cli -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
Use Docker
docker model run hf.co/sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use sunil-pathak/gemma-3n-E2B-it-Q4_K_M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sunil-pathak/gemma-3n-E2B-it-Q4_K_M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sunil-pathak/gemma-3n-E2B-it-Q4_K_M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
- Ollama
How to use sunil-pathak/gemma-3n-E2B-it-Q4_K_M with Ollama:
ollama run hf.co/sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use sunil-pathak/gemma-3n-E2B-it-Q4_K_M with Docker Model Runner:
docker model run hf.co/sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
- Lemonade
How to use sunil-pathak/gemma-3n-E2B-it-Q4_K_M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sunil-pathak/gemma-3n-E2B-it-Q4_K_M:Q4_K_M
Run and chat with the model
lemonade run user.gemma-3n-E2B-it-Q4_K_M-Q4_K_M
List all available models
lemonade list
- Atomic Chat
gemma-3n-E2B-it β GGUF (Q4_K_M)
π Performance Metrics
- Hardware: Intel(R) Xeon(R) CPU @ 2.20GHz (4 vCPUs)
- Size: 3.08 GB
- Speed (Generation): 6.83 tokens/sec
- Speed (Prompt): 17.89 tokens/sec
- KV Cache Usage: 0.0143 GB
- Quantization: Q4_K_M
π· Model Overview
This repository contains a GGUF quantized version of:
- Base Model: gemma-3n-E2B-it
- Format: GGUF (optimized for llama.cpp inference)
- Precision: Q4_K_M
- Efficiency Score: 2.2163 (TPS/GB)
GGUF format provides:
- Fast loading via memory mapping
- Single-file model distribution
- Cross-platform compatibility
- Efficient inference with llama.cpp
π¦ Files
| File | Description |
|---|---|
gemma-3n-E2B-it-Q4_K_M.gguf |
Quantized GGUF model file |
βοΈ Technical Details
| Parameter | Value |
|---|---|
| Architecture | gemma-3n-E2B-it |
| Format | GGUF |
| Precision | Q4_K_M |
| Runtime | llama.cpp |
| Benchmark Hardware | Intel(R) Xeon(R) CPU @ 2.20GHz (4 vCPUs) |
| Context Latency | 21.25s |
| Memory (KV) | 0.0143 GB |
β‘ Why GGUF?
GGUF is designed for efficient inference:
- Optimized for llama.cpp
- Supports CPU and GPU inference
- Single-file deployment
- Memory-mapped loading for speed
- Ideal for edge / local environments
β οΈ License & Usage
This is a converted derivative model.
- You must comply with the original model license of gemma-3n-E2B-it
- This is not an official release
- No additional rights are granted
- Original ownership remains with the base model creator
π Quick Start (llama.cpp)
./llama-cli -m gemma-3n-E2B-it-Q4_K_M.gguf -p "Explain AI simply"
- Downloads last month
- 17
Hardware compatibility
Log In to add your hardware
4-bit