Downloads · 30 days
10
100% of all-time downloads
TzJ2006/JokeGPT-Model
JokeGPT-Model is a machine learning model from TzJ2006. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
JokeGPT is a fine-tuned language model designed to generate humorous content. It is built upon the Qwen/Qwen3-8B architecture and trained using a three-stage process: Supervised Fine-Tuning (SFT), Reward Modeling, and…
Downloads · 30 days
10
100% of all-time downloads
All-time downloads
10
Public
Repo size
194 MB
Likes
1
Public
Click a slice to open those files.
.safetensors182 MB · 79%
From the Hugging Face model README
JokeGPT is a fine-tuned language model designed to generate humorous content. It is built upon the Qwen/Qwen3-8B architecture and trained using a three-stage process: Supervised Fine-Tuning (SFT), Reward Modeling, and Reinforcement Learning from Human Feedback (RLHF) via PPO.
This repository contains the following models:
You can load these models using the transformers and peft libraries.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "Qwen/Qwen3-8B"
adapter_path = "JokeGPT-Model/ppo_model" # Path to the PPO adapter
# Load Base Model
model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Load Adapter
model = PeftModel.from_pretrained(model, adapter_path)
# Generate a Joke
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
prompt = "User: Tell me a joke about AI.\nAssistant:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))