Downloads · 30 days
6
4% of all-time downloads
shahidmo99/gpt2-distilled-lora-alpaca
gpt2-distilled-lora-alpaca is a machine learning model from shahidmo99. 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 peft. The card lists the license as apache-2.0.
This model is a LoRA-adapted version of distilled GPT2, fine-tuned on the Alpaca dataset to enhance its instruction-following capabilities. The model uses Low-Rank Adaptation (LoRA) to efficiently fine-tune the base m…
Downloads · 30 days
6
4% of all-time downloads
All-time downloads
158
Public
Repo size
1.8 MB
Likes
1
Public
Click a slice to open those files.
.safetensors1.8 MB · 100%
From the Hugging Face model README
This model is a LoRA-adapted version of distilled GPT2, fine-tuned on the Alpaca dataset to enhance its instruction-following capabilities. The model uses Low-Rank Adaptation (LoRA) to efficiently fine-tune the base model while maintaining its core capabilities and adding new instruction-following abilities.
This model is designed for instruction-following tasks and can be used for:
The model shows particular improvements in:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("distilbert/distilgpt2")
model = PeftModel.from_pretrained(base_model, "shahidmo/gpt2-distilled-lora-alpaca")
The model shows significant improvements over the base model in several areas:
Creative Writing Example: Prompt: "Write a short story about a magical key."
Base Model: The Key of My Life is the Magic Ring!
LoRA-tuned Model: A magic secret was discovered in the garden of an ancient Egyptian temple, hidden beneath its walls and deep into their own soil. The mystery behind the mysterious gemstone is that it's not only due to being buried under water but also because there are otherworldly elements lurking underneath this precious treasure—something which has been revealed by archaeologists at Uppsala University.
Scientific Explanation Example: Prompt: "Explain why leaves change color in autumn using simple terms."
Base Model: Autumn means a cold winter, with temperatures rising and falling as the seasons cool down on top of each other. Leaves can be used to warm up
LoRA-tuned Model: Leaves change colors as they grow and mature, creating a more uniform appearance for the season's seasonal seasons. As winter progresses, blueberries will begin
While the model shows improvements in instruction following and coherence, users should be aware of these limitations:
If you use this model in your research, please cite:
@misc{gpt2-distilled-lora-alpaca,
author = {Mohammed Khaja, Shahid Mohiuddin},
title = {LoRA-Adapted GPT2-Distilled Model},
year = {2024},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub},
howpublished = {\url{https://huggingface.co/shahidmo/gpt2-distilled-lora-alpaca}}
}
For questions about this model, please contact Shahid Mohammed via Hugging Face.
Version 2 of 2