Instructions to use martin-gorner/gemma_pirate_instruct_7b-keras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use martin-gorner/gemma_pirate_instruct_7b-keras with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://martin-gorner/gemma_pirate_instruct_7b-keras") - Keras
How to use martin-gorner/gemma_pirate_instruct_7b-keras with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://martin-gorner/gemma_pirate_instruct_7b-keras") - Notebooks
- Google Colab
- Kaggle
Gemma fine-tuned to speak like a pirate.
This is a Gemma model uploaded using the KerasNLP library and can be used with JAX, TensorFlow, and PyTorch backends.
This model is related to a CausalLM task.
Model config:
- name: gemma_backbone
- trainable: True
- vocabulary_size: 256000
- num_layers: 28
- num_query_heads: 16
- num_key_value_heads: 16
- hidden_dim: 3072
- intermediate_dim: 49152
- head_dim: 256
- layer_norm_epsilon: 1e-06
- dropout: 0
This model card has been generated automatically and should be completed by the model author. See Model Cards documentation for more information.
- Downloads last month
- 3