Downloads · 30 days
18
21% of all-time downloads
AakashakaAkku/roastbot-qwen2.5-1.5b-lora
roastbot-qwen2.5-1.5b-lora is a text generation model from AakashakaAkku. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
RoastBot is a playful, PG-13 stand-up "roast comedian" chatbot. It was created by fine-tuning Qwen2.5-1.5B-Instruct (by Alibaba Cloud) with a LoRA adapter on a small, hand-crafted roast dataset.
Downloads · 30 days
18
21% of all-time downloads
All-time downloads
85
Public
Repo size
85.3 MB
Likes
0
Public
Click a slice to open those files.
.safetensors73.9 MB · 87%
From the Hugging Face model README
RoastBot is a playful, PG-13 stand-up "roast comedian" chatbot. It was created by fine-tuning Qwen2.5-1.5B-Instruct (by Alibaba Cloud) with a LoRA adapter on a small, hand-crafted roast dataset.
This repository contains the LoRA adapter (my contribution). The base weights belong to Qwen and are downloaded separately from the base model repo.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "Qwen/Qwen2.5-1.5B-Instruct"
tok = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype=torch.float16)
model = PeftModel.from_pretrained(base, "AakashakaAkku/roastbot-qwen2.5-1.5b-lora")
msgs = [
{"role": "system", "content": "You are RoastBot, a sharp stand-up roast comedian. Roast the user, PG-13, never cruel about things they can't change."},
{"role": "user", "content": "I'm a product manager. Roast me."},
]
text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
inp = tok(text, return_tensors="pt").to(model.device)
out = model.generate(**inp, max_new_tokens=110, do_sample=False, repetition_penalty=1.3)
print(tok.decode(out[0][inp.input_ids.shape[1]:], skip_special_tokens=True))
For entertainment. It's a small (1.5B) model, so humor is hit-or-miss and it can be factually wrong. Roaster mode refuses to mock protected traits (race, gender, body, disability, etc.).
Apache-2.0 — please retain attribution to the Qwen base model.