Google
Gemma 7B Instruct
google/gemma-7b-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 7B Instruct with Python API
Using Gemma 7B Instruct 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-7b-it",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)