How to use from the
Use from the
KerasHub library
# Gated model: Login with a HF token with gated access permission
hf auth login

import keras_hub

# Create a Backbone model unspecialized for any task
backbone = keras_hub.models.Backbone.from_preset("hf://google/gemma-2b-it-keras")

Access Gemma on Hugging Face

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

To access Gemma on Hugging Face, you’re required to review and agree to Google’s usage license. To do this, please ensure you’re logged-in to Hugging Face and click below. Requests are processed immediately.

Log in or Sign Up to review the conditions and access this model content.

Gemma Model Card

Model Page: Gemma

❗️ There is a newer version of this model here: gemma-1.1-2b-it-keras

This model card corresponds to the 2B instruct version of the Gemma model for usage in keras. For more information about the model, visit https://huggingface.co/google/gemma-2b-it.

Resources and Technical Documentation:

Terms of Use: Terms

Authors: Google

Loading the model

import keras_nlp

gemma_lm = keras_nlp.models.GemmaCausalLM.from_preset("hf://google/gemma-2b-it-keras")
Downloads last month
31
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Spaces using google/gemma-2b-it-keras 2

Collections including google/gemma-2b-it-keras