Run this model with HF Jobs

Run Jayi2424/HumorGen_GRPO_Think_7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Jayi2424/HumorGen_GRPO_Think_7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Jayi2424/HumorGen_GRPO_Think_7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Jayi2424/HumorGen_GRPO_Think_7B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Jayi2424/HumorGen_GRPO_Think_7B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
PEFT library
from peft import PeftModel
from transformers import AutoModelForCausalLM

base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen2.5-7b-instruct-unsloth-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "Jayi2424/HumorGen_GRPO_Think_7B")

HumorGen GRPO-Think β€” 7B

Part of the HumorGen Collection Β· SaLT Lab, Carnegie Mellon University


O-GRPO with Chain-of-Thought reasoning traces. The strongest model in the Core HumorGen ablation.

Paper(s): arXiv:2604.09629


Training

Property Value
Stage O-GRPO + Chain-of-Thought traces
Initialized from HumorGen_SFT_Think_7B
Backbone Qwen2.5-7B-Instruct (QLoRA 4-bit)
Group size 6 (one per CSF persona)
Reward HumorRank Bradley-Terry scores

Usage

This is a PEFT LoRA adapter. Load the base model and apply the adapter:

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch

tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "Jayi2424/HumorGen_GRPO_Think_7B")

headline = "Robot passes bar exam; lawyers reassure everyone they are still necessary"
prompt = (
    "<|im_start|>system\n"
    "Think carefully, then write the best joke you can.\n<|im_end|>\n"
    f"<|im_start|>user\n{headline}<|im_end|>\n"
    "<|im_start|>assistant\n<think>\n"
)
inputs  = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=300, temperature=0.7, top_p=0.95)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Citation

@misc{ajayi2026humorgen,
  title         = {HumorGen: Cognitive Synergy for Humor Generation in Large Language
                   Models via Persona-Based Distillation},
  author        = {Ajayi, Edward and others},
  year          = {2026},
  eprint        = {2604.09629},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2604.09629}
}
Downloads last month
18
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Jayi2424/HumorGen_GRPO_Think_7B

Base model

Qwen/Qwen2.5-7B
Adapter
(3,104)
this model

Collection including Jayi2424/HumorGen_GRPO_Think_7B

Paper for Jayi2424/HumorGen_GRPO_Think_7B