harishnair04/mtsamples
Viewer • Updated • 5k • 152 • 4
How to use harishnair04/gemma_instruct_medtr_2b with KerasHub:
import keras_hub
# Create a Backbone model unspecialized for any task
backbone = keras_hub.models.Backbone.from_preset("hf://harishnair04/gemma_instruct_medtr_2b")
How to use harishnair04/gemma_instruct_medtr_2b with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://harishnair04/gemma_instruct_medtr_2b")
This is a Gemma model uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
This model is related to a CausalLM task.
Model config:
Base model
google/gemma-2-2b