Run this model with HF Jobs

Run HumorR1/policy-e1b-sft-thinking 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 and TRL to fine-tune https://huggingface.co/HumorR1/policy-e1b-sft-thinking. 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/HumorR1/policy-e1b-sft-thinking 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/HumorR1/policy-e1b-sft-thinking. 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/HumorR1/policy-e1b-sft-thinking. 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
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "HumorR1/policy-e1b-sft-thinking"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "HumorR1/policy-e1b-sft-thinking",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
Use Docker
docker model run hf.co/HumorR1/policy-e1b-sft-thinking
Quick Links

humor-r1 โ€” SFT, with thinking (Qwen3-VL-2B-Thinking + LoRA, merged) (E1b)

LoRA-adapted Qwen3-VL-2B-Thinking supervised fine-tuned on (image, synthetic thinking, chosen caption) triples, then merged. Output format: {thinking}</think>\n\n<caption>X</caption>.

Training data

  • 271 New Yorker contests, top-rated caption per contest (yguooo/newyorker_caption_ranking).
  • The 60k Bradley-Terry preference pairs underlying the reward model (separate split).
  • We deliberately do NOT use the dataset's GPT-4o-generated Scene/Twist/Location/Entities descriptions in the prompt, since they hand-feed scene content to a vision-language model that can already see the image; this makes the policy and reward model usable on any single-panel cartoon, not just the curated subset.

How it fits the project

Part of a 2x2 ablation over training method (SFT, GRPO) and output format (no thinking, thinking) for humor caption generation. See HumorR1/rm-qwen25vl-3b-nodesc for the reward model used to train (and score) this policy.

Inference

Backbone: Qwen/Qwen3-VL-2B-Thinking. This repo is a merged full model; load with transformers.AutoModelForCausalLM.from_pretrained.

from PIL import Image
from transformers import AutoProcessor
from vllm import LLM, SamplingParams


processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-2B-Thinking", trust_remote_code=True)
llm = LLM(model="Qwen/Qwen3-VL-2B-Thinking", trust_remote_code=True, dtype="bfloat16",
          max_model_len=4096)

# Caption format: <caption>X</caption>; thinking variant prefixes <think>...</think>.

Reward model used during training

  • HumorR1/rm-qwen25vl-3b-nodesc (held-out pairwise accuracy 0.6635).
Downloads last month
18
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for HumorR1/policy-e1b-sft-thinking

Finetuned
(25)
this model

Dataset used to train HumorR1/policy-e1b-sft-thinking