“Llama 3.2 in Keras”
martin-gorner
• • 13How to use martin-gorner/llama-3.2-1B-pirate-instruct with KerasHub:
import keras_hub
# Create a Backbone model unspecialized for any task
backbone = keras_hub.models.Backbone.from_preset("hf://martin-gorner/llama-3.2-1B-pirate-instruct")
How to use martin-gorner/llama-3.2-1B-pirate-instruct 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/llama-3.2-1B-pirate-instruct")
This is a Llama3 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:
This model card has been generated automatically and should be completed by the model author. See Model Cards documentation for more information.