Instructions to use KonradBRG/Qwen2.5-7B-Instruct-Jokester with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KonradBRG/Qwen2.5-7B-Instruct-Jokester with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KonradBRG/Qwen2.5-7B-Instruct-Jokester") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KonradBRG/Qwen2.5-7B-Instruct-Jokester") model = AutoModelForCausalLM.from_pretrained("KonradBRG/Qwen2.5-7B-Instruct-Jokester") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use KonradBRG/Qwen2.5-7B-Instruct-Jokester with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KonradBRG/Qwen2.5-7B-Instruct-Jokester" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KonradBRG/Qwen2.5-7B-Instruct-Jokester", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/KonradBRG/Qwen2.5-7B-Instruct-Jokester
- SGLang
How to use KonradBRG/Qwen2.5-7B-Instruct-Jokester with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "KonradBRG/Qwen2.5-7B-Instruct-Jokester" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KonradBRG/Qwen2.5-7B-Instruct-Jokester", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "KonradBRG/Qwen2.5-7B-Instruct-Jokester" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KonradBRG/Qwen2.5-7B-Instruct-Jokester", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use KonradBRG/Qwen2.5-7B-Instruct-Jokester with Docker Model Runner:
docker model run hf.co/KonradBRG/Qwen2.5-7B-Instruct-Jokester
Use Docker images
docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "KonradBRG/Qwen2.5-7B-Instruct-Jokester" \
--host 0.0.0.0 \
--port 30000# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "KonradBRG/Qwen2.5-7B-Instruct-Jokester",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'Model Card for Qwen2.5-7B-Instruct-Jokester
This model is a fine-tuned version of Qwen/Qwen2.5-7B-Instruct. It has been trained using TRL. The reward signal during GRPO training was provided by joke-rater-roberta-en.
Quick start
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="KonradBRG/Qwen2.5-7B-Instruct-Jokester", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
Training procedure
This model was trained with GRPO, a method introduced in DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models.
Framework versions
- TRL: 0.23.1
- Transformers: 4.57.3
- Pytorch: 2.9.1
- Datasets: 4.4.1
- Tokenizers: 0.22.1
Citations
If you use this model, please cite the paper it was built for:
Team TüLK at SemEval-2026 Task 1: Humor Generation with Qwen and Group Relative Policy Optimization
@inproceedings{bruggemann-hou-2026-team,
title = {Team {T}{\"u}{LK} at {S}em{E}val-2026 Task 1: Humor Generation with Qwen and Group Relative Policy Optimization},
author = {Br{\"u}ggemann, Konrad and
Hou, Luting},
editor = "Kochmar, Ekaterina and
Ghosh, Debanjan and
North, Kai and
Komachi, Mamoru",
booktitle = "Proceedings of the 20th {I}nternational {W}orkshop on {S}emantic {E}valuation (2026)",
month = jul,
year = "2026",
address = "San Diego, California, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.semeval-1.67/",
doi = "10.18653/v1/2026.semeval-1.67",
pages = "463--474",
ISBN = "979-8-89176-414-9",
abstract = "This paper addresses the challenge of computational humor generation proposed in SemEval-2026 Task 1: Humor Generation. Our approach leverages Group Relative Policy Optimization, with an LLM serving as the policy and a custom joke rating model providing a reward signal. We demonstrate that this framework is an effective and computationally efficient approach, reliably producing genuinely funny content that adheres to task constraints."
}
Cite GRPO as:
@article{shao2024deepseekmath,
title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo},
year = 2024,
eprint = {arXiv:2402.03300},
}
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}
- Downloads last month
- 4
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "KonradBRG/Qwen2.5-7B-Instruct-Jokester" \ --host 0.0.0.0 \ --port 30000# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KonradBRG/Qwen2.5-7B-Instruct-Jokester", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'