Downloads · 30 days
9
25% of all-time downloads
aznatkoiny/GemmaLM-for-Cannabis
GemmaLM-for-Cannabis is a machine learning model from aznatkoiny. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras. The card lists the license as cc-by-nc-nd-4.0.
This repository contains a fine-tuned version of the Gemma 2B model, specifically adapted for cannabis-related queries using Low Rank Adaptation (LoRA).
Downloads · 30 days
9
25% of all-time downloads
All-time downloads
36
Public
Repo size
10.5 GB
Likes
2
Public
Click a slice to open those files.
.keras10.5 GB · 100%
From the Hugging Face model README
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:
import keras
import keras_nlp
# Load the model
model = keras.models.load_model("gemma_lm_model.keras")
# Set up the sampler
sampler = keras_nlp.samplers.TopKSampler(k=5, seed=2)
model.compile(sampler=sampler)
# Generate a response
prompt = "Instruction:\nWhat does OG Kush feel like\nResponse:\n"
response = model.generate(prompt, max_length=256)
print(response)
To enhance the model's performance, consider:
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.