Instructions to use sunsethunter86/gemma-lite-e2b 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 sunsethunter86/gemma-lite-e2b 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 sunsethunter86/gemma-lite-e2b # Run inference directly in the terminal: llama cli -hf sunsethunter86/gemma-lite-e2b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sunsethunter86/gemma-lite-e2b # Run inference directly in the terminal: llama cli -hf sunsethunter86/gemma-lite-e2b
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 sunsethunter86/gemma-lite-e2b # Run inference directly in the terminal: ./llama-cli -hf sunsethunter86/gemma-lite-e2b
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 sunsethunter86/gemma-lite-e2b # Run inference directly in the terminal: ./build/bin/llama-cli -hf sunsethunter86/gemma-lite-e2b
Use Docker
docker model run hf.co/sunsethunter86/gemma-lite-e2b
- LM Studio
- Jan
- Ollama
How to use sunsethunter86/gemma-lite-e2b with Ollama:
ollama run hf.co/sunsethunter86/gemma-lite-e2b
- Unsloth Studio
How to use sunsethunter86/gemma-lite-e2b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sunsethunter86/gemma-lite-e2b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sunsethunter86/gemma-lite-e2b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sunsethunter86/gemma-lite-e2b to start chatting
- Pi
How to use sunsethunter86/gemma-lite-e2b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sunsethunter86/gemma-lite-e2b
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sunsethunter86/gemma-lite-e2b" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sunsethunter86/gemma-lite-e2b with Docker Model Runner:
docker model run hf.co/sunsethunter86/gemma-lite-e2b
- Lemonade
How to use sunsethunter86/gemma-lite-e2b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sunsethunter86/gemma-lite-e2b
Run and chat with the model
lemonade run user.gemma-lite-e2b-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use sunsethunter86/gemma-lite-e2b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sunsethunter86/gemma-lite-e2b
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 sunsethunter86/gemma-lite-e2b
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sunsethunter86/gemma-lite-e2b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sunsethunter86/gemma-lite-e2b
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "sunsethunter86/gemma-lite-e2b" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +83 -0
- SHA256SUMS +1 -0
- gemma-lite-e2b-q2.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
gemma-lite-e2b-q2.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: gemma
|
| 3 |
+
license_link: https://ai.google.dev/gemma/terms
|
| 4 |
+
base_model: google/gemma-3n-E2B-it
|
| 5 |
+
tags:
|
| 6 |
+
- gguf
|
| 7 |
+
- llama.cpp
|
| 8 |
+
- on-device
|
| 9 |
+
- android
|
| 10 |
+
library_name: llama.cpp
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Gemma LITE (E2B) — a smaller dictionary, the same mind
|
| 14 |
+
|
| 15 |
+
A **Model Derivative** of Google's Gemma 3n E2B, made for phones that cannot
|
| 16 |
+
hold the original in memory.
|
| 17 |
+
|
| 18 |
+
**Nothing about the model's reasoning was changed.** All 35 transformer blocks
|
| 19 |
+
are byte-for-byte the quantisation they started as. The only modification is to
|
| 20 |
+
one tensor.
|
| 21 |
+
|
| 22 |
+
## What was modified
|
| 23 |
+
|
| 24 |
+
`per_layer_token_embd.weight` — requantised from **q6_K to q2_K**.
|
| 25 |
+
|
| 26 |
+
That single tensor is **57% of the original file**: 1,837 MiB of a 3,179 MiB
|
| 27 |
+
model, shaped `[8960, 262144]`. It is a *lookup table* — one row of about 7 KB
|
| 28 |
+
is read per token — and it was being stored at **higher precision than the
|
| 29 |
+
layers that do the reasoning**, every one of which is q4_0.
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
llama-quantize --allow-requantize \
|
| 33 |
+
--tensor-type per_layer_token_embd=q2_K \
|
| 34 |
+
gemma-3n-E2B-it-q4_0.gguf gemma-lite-e2b-q2.gguf Q4_0
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
| | file | `per_layer_token_embd` |
|
| 38 |
+
|---|---|---|
|
| 39 |
+
| source (E2B q4_0) | 3.12 GiB | 1,837 MiB (q6_K) |
|
| 40 |
+
| **LITE** | **2.04 GiB** | **735 MiB (q2_K)** |
|
| 41 |
+
|
| 42 |
+
## Why it exists
|
| 43 |
+
|
| 44 |
+
Measured on a Galaxy S22 Ultra (8 GB): the unmodified model was killed by
|
| 45 |
+
Android's low-memory killer **eleven times**, never finishing load. It needs
|
| 46 |
+
roughly every spare byte the phone has.
|
| 47 |
+
|
| 48 |
+
Measured on a ROG Phone 8 Pro with llama.cpp and OpenCL, 8192 context:
|
| 49 |
+
|
| 50 |
+
| | |
|
| 51 |
+
|---|---|
|
| 52 |
+
| system memory held | **~510 MiB** |
|
| 53 |
+
| unevictable (anonymous) | **0.17 GiB** |
|
| 54 |
+
| prompt eval | **211 tok/s** |
|
| 55 |
+
| generation | **10.7 tok/s** |
|
| 56 |
+
|
| 57 |
+
A ~3,800-token system prompt prefills in about **18 seconds**.
|
| 58 |
+
|
| 59 |
+
## Quality
|
| 60 |
+
|
| 61 |
+
Auditioned against the unmodified model — same seed, same temperature, same
|
| 62 |
+
2,400-token character prompt. Both replies were in character and of comparable
|
| 63 |
+
quality; the LITE build was, if anything, more faithful to the prompt's register.
|
| 64 |
+
|
| 65 |
+
☠️ **This is one sample, not a benchmark.** No perplexity or standardised
|
| 66 |
+
evaluation has been run. q2_K is applied to token embeddings — how the model
|
| 67 |
+
represents word *meaning* — so if you need measured quality, measure it.
|
| 68 |
+
|
| 69 |
+
## What it cannot do
|
| 70 |
+
|
| 71 |
+
The source GGUF carries **no vision or audio encoder tensors**, so this is a
|
| 72 |
+
**text-only** model. Gemma 3n's image and audio input paths are not present.
|
| 73 |
+
|
| 74 |
+
## Licence
|
| 75 |
+
|
| 76 |
+
Gemma 3n is provided under and subject to the **Gemma Terms of Use**:
|
| 77 |
+
https://ai.google.dev/gemma/terms
|
| 78 |
+
|
| 79 |
+
This is a **modified** version. The modification is described above and is
|
| 80 |
+
limited to the requantisation of a single tensor. The Gemma Terms, including the
|
| 81 |
+
Prohibited Use Policy, apply to this derivative and to anything derived from it.
|
| 82 |
+
|
| 83 |
+
Base model: `google/gemma-3n-E2B-it`.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
e1fafaaf73b424e68fe4c81e1951b43944d34f95b68fac6411981bbc16e2d702 gemma-lite-e2b-q2.gguf
|
gemma-lite-e2b-q2.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1fafaaf73b424e68fe4c81e1951b43944d34f95b68fac6411981bbc16e2d702
|
| 3 |
+
size 2193461216
|