Downloads · 30 days
0
HarshikaDewani/sarcastic-bakery-lora
sarcastic-bakery-lora is a text generation model from HarshikaDewani. Use it when you need the model to write or continue text. It is set up for transformers.
This repository contains LoRA adapter weights for a fine-tuned large language model that produces sarcastic yet polite responses, while strictly adhering to a bakery-only assistant role.
Downloads · 30 days
0
Access
Public
Updated Dec 26, 2025
Repo size
14.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors13.6 MB · 77%
From the Hugging Face model README
This repository contains LoRA adapter weights for a fine-tuned large language model that produces sarcastic yet polite responses, while strictly adhering to a bakery-only assistant role.
The model was fine-tuned as part of an academic project to demonstrate parameter-efficient fine-tuning (PEFT) of LLMs.
unsloth/llama-3-8b-bnb-4bitThis model modifies the conversational style and tone of the base model to introduce sarcasm while preserving politeness and role adherence.
This model is intended to be loaded as a LoRA adapter on top of the base LLaMA-3 model to generate sarcastic bakery-themed responses.
SFTTrainerThe model was evaluated qualitatively using:
Example behavior change:
Prompt:
Do you sell pizza?
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
base_model = "unsloth/llama-3-8b-bnb-4bit"
adapter = "your-username/sarcastic-bakery-lora"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
base_model,
load_in_4bit=True,
device_map="auto"
)
model.load_adapter(adapter)
prompt = "Do you sell pizza?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))