Google
Gemma 2B
google/gemma-2b-it
Gemma by Google is an advanced, open-source language model family, leveraging the latest in decoder-only, text-to-text technology. It offers English language capabilities across text generation tasks like question answering, summarization, and reasoning. The Gemma 7B variant is comparable in performance to leading open source models.
Usage of Gemma is subject to Google's Gemma Terms of Use.
Community
Open Source
Context Window
8,192
Using Gemma 2B with Python API
Using Gemma 2B with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="google/gemma-2b-it",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)