Gemma 2 2B

Google

gemma2

"Google's Llama", Gemma benefits from Google's experience training its flagship Gemini model to provide excellent performance on low power or for autocompletion/drafting tasks.

Model info

Model

Gemma 2 2B

Author

Google

Arch

gemma2

Parameters

2B

Format

gguf

Size on disk

about 1.71 GB

Download and run Gemma 2 2B

Open in LM Studio to view download options

Download gemma-2-2b from the terminal

Download the model using lms — LM Studio's developer CLI.

lms get gemma-2-2b
If you don't have it yet, get it by running npx lmstudio install-cli

Call gemma-2-2b from your code

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-2-2b",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes." },
      { "role": "user", "content": "Introduce yourself." }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": true
  }'

Next Steps: Build! 🔨

Learn more