Gemma 2 2B IT
Gemma 2 2B IT is the smallest instruction-tuned Gemma 2 model from Google, with about 2.6B parameters, for short English replies and rewrites where the prompt supplies the facts.
Overview
Gemma 2 2B IT is the instruction-tuned version of the smallest Gemma 2 size: about 2.6 billion parameters, open weights, text in and English text out. Google trained it on 2 trillion tokens, a quarter of what the 9B saw. According to the Gemma 2 technical report, the 2B learned from a larger teacher through knowledge distillation and reads up to 8,192 tokens of context.
Google's benchmark table shows what the smaller size gives up. The pretrained 2B stays near the 9B base on PIQA (77.8 against 81.7) and falls far behind on GSM8K, the grade-school math test, with 23.9 against 68.6.
Choosing a variant: use the 2B for well-scoped language work, such as short replies or rewriting text the user supplies. Move to Gemma 2 9B IT when answers rely on the model's own knowledge or involve math and code. Both models take the same inputs.
What you can build
- Rewriting tools that turn bullet notes into a polite email or cut a paragraph to two sentences.
- Narrow chat helpers for one product or topic, where the system prompt and pasted context carry the facts.
- English writing practice in learning apps, with the model correcting grammar in a student's text.
- First drafts of headlines or captions that a person then edits.
Inputs
Type the request into the prompt field, the one input you must fill. Whatever you set as the system prompt is placed in front of that text.
A user_id ties stored chat history to one person, and a session_id splits that history into threads. If session_id is left empty or reused, all of that user's messages count as one session.
The advanced panel holds temperature (0 to 5, default 0.7), top_p, top_k, the two penalties, a seed, length limits, stop sequences and a do_sample toggle. A quantization checkbox, on by default, runs reduced-precision weights; untick it for full precision.
Outputs
Plain English text. The sample here answers the default Tower of London prompt with numbered events and story tips. It reads smoothly but gets at least one fact wrong: it says Edward I ordered the Tower built, while the White Tower was begun around 1078 under William the Conqueror. On TriviaQA, Google's card puts the 2B base at 59.4 and the 9B at 76.6.
Recommended settings
- Write short, specific prompts and paste in the facts an answer depends on. Treat names and dates the model adds by itself as unverified.
- Switch do_sample off when the same prompt should always get the same answer.
- If longer answers start repeating themselves, raise repetition_penalty a little above its default of 1.0.
Limitations
- English only, per Google's card.
- Math and code are its weakest areas next to the 9B: the 2B base scores 15.0 on MATH and 29.6 on MBPP, against 36.6 and 52.4.
- Google's card warns that Gemma models can produce outdated statements and miss sarcasm.
Safety & compliance
Gemma 2 2B IT ships under Google's Gemma Terms of Use, and the Gemma Prohibited Use Policy lists the uses it rules out. Training data went through CSAM filtering and automated removal of personal information. Google asks developers to put their own content safeguards in front of end users.
API quick start
Run gemma-2-2b-it with a single API call.
{
"prompt": "What are some interesting historical even…",
"user_id": "...",
"session_id": "...",
"system_prompt": "You are a helpful, respectful and honest …"
}curl -X POST "https://api.wiro.ai/v1/Run/google/gemma-2-2b-it" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"prompt": "What are some interesting historical even…",
"user_id": "...",
"session_id": "...",
"system_prompt": "You are a helpful, respectful and honest …"
}
JSONOther models you might like
Explore similar llm & chat models.



