Google: Gemma 2 27B
Google (United States) · Language (text)
🧠 27.2B📄 8K context💲 $0.650 / $0.650 per 1M tokens in / out🔓 Open weights (downloadable)⚖️ gemma
Gemma 2 27B by Google is an open model built from the same research and technology used to create the Gemini models. Gemma models are well-suited for a variety of...
Which way is for me?
Online, right nowNothing to install; free or very cheapOn my own computerOffline and private, with LM StudioFor developersvLLM, Transformers, llama.cpp
🌐 Online, right now
- Open the model's page on OpenRouter: openrouter.ai/google/gemma-2-27b-it
- Sign in (with Google or email) and press Chat; you can talk to the model right there.
- Cost: a short exchange (about a page in and a page out) costs about $0.00065, so $1 buys about 1,538 messages.
💻 On my own computer
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
lmstudio-community/gemma-2-27b-it-GGUF - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- Press Download, then Load, and start talking in Chat.
Or, if you use Ollama, this one command is enough:
ollama run hf.co/lmstudio-community/gemma-2-27b-it-GGUF🧑💻 For developers
vLLM
vllm serve google/gemma-2-27b-itTransformers (Python)
from transformers import pipeline
pipe = pipeline("text-generation", model="google/gemma-2-27b-it")llama.cpp
llama-server -hf lmstudio-community/gemma-2-27b-it-GGUFWords used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
Hardware and running it
Cloud and local Available through an API, and its weights are published to run on your own hardware.
- Minimum Q4
- 18.3 GB
- Recommended Q8
- 32.7 GB
- Full quality FP16
- 65.4 GB
On common hardware
| RTX 4060 · 8 GB | Won't run | |
|---|---|---|
| RTX 4090 · 24 GB | Usable | Q4 · ≈ 24–40 tokens/s |
| RTX 5090 · 32 GB | Usable | Q4 · ≈ 42–71 tokens/s |
| Mac M4 Max · 128 GB | Slow | FP16 · ≈ 4–6 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 22–37 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 180–300 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: