This repository contains a fine-tuned version of the Gemma 2B model, specifically adapted for cannabis-related queries using Low Rank Adaptation (LoRA).
The model was fine-tuned using a custom dataset created from cannabis strain information. The dataset includes details about various cannabis strains, their effects, flavors, and descriptions. The fine-tuning process involved:
This model can be used to generate responses to cannabis-related queries. Example usage:
1import keras
2import keras_nlp
3
4# Load the model
5model = keras.models.load_model("gemma_lm_model.keras")
6
7# Set up the sampler
8sampler = keras_nlp.samplers.TopKSampler(k=5, seed=2)
9model.compile(sampler=sampler)
10
11# Generate a response
12prompt = "Instruction:\nWhat does OG Kush feel like\nResponse:\n"
13response = model.generate(prompt, max_length=256)
14print(response)
Please refer to the Gemma model's original license for usage terms and conditions.
This project uses the Gemma model developed by Google. We acknowledge the Keras and KerasNLP teams for providing the tools and frameworks used in this project.