ollama run treyleo16/gemma-2b
Updated 5 days ago
5 days ago
1abbb12a8436 · 1.7GB ·
A GGUF repackaging of google/gemma-2-2b-it, Google’s 2B instruction-tuned Gemma 2 model, made runnable in Ollama.
This model is not my work. All credit for the weights, training, and architecture belongs to Google DeepMind. This page exists only to make their model one ollama run away.
Note on the name: this tag is
gemma-2b, but the model inside is Gemma 2 2B Instruct — not the older Gemma 1gemma-2b. Google’s naming (gemma-2bvsgemma-2-2b) is one hyphen apart and easy to misread. If you want Gemma 1, use Ollama’s officialgemma:2binstead.
| Base model | google/gemma-2-2b-it — Google DeepMind |
| GGUF quantization | BafS/gemma-2-2b-it-Q4_K_M-GGUF, via GGUF-my-repo |
| License | Gemma Terms of Use |
| Packaged by | treyleo16 |
The weights are byte-identical to the upstream Q4_K_M quantization. Nothing was retrained, merged, fine-tuned, or altered.
ollama run treyleo16/gemma-2b
API:
curl http://localhost:11434/api/chat -d '{
"model": "treyleo16/gemma-2b",
"messages": [{"role": "user", "content": "Explain gradient descent in one paragraph."}]
}'
| Property | Value |
|---|---|
| Architecture | gemma2 |
| Parameters | 2.6B |
| Quantization | Q4_K_M |
| Download size | 1.7 GB |
| Context length | 8,192 |
| Embedding length | 2304 |
| Capabilities | completion |
Stop tokens <start_of_turn> and <end_of_turn> are set in the model’s params layer, so multi-turn chat terminates correctly without extra configuration.
Gemma 2 2B punches above its size on instruction following and short-form reasoning, and it is small enough to run on CPU or modest GPUs. It is a direct-answer model — no thinking block, no tool calling. If you need reasoning traces or function calling at this size, look elsewhere.
The 8K context is the real constraint. It is comfortable for chat, summarization, and short document work, and it is not the model for long-document RAG.
This model is not Apache-2.0 or MIT. It is governed by Google’s Gemma Terms of Use, which carry obligations that MIT-style licenses do not:
The full notice and attribution ship inside the model itself:
ollama show --license treyleo16/gemma-2b
Google gates the original repositories on Hugging Face behind license acknowledgment. Pulling from Ollama skips that step, so the responsibility for reading and following the terms is yours.