Google
Google

Gemma 9B

google/gemma-9b-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

0

Using Gemma 9B with Python API

Using Gemma 9B 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-9b-it",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)