grpo-Qwen2.5-1.5B-hh-rlhf-helpful
Qwen2.5-1.5B-Instruct fine-tuned with GRPO against a reward model trained on the helpful-base half of HH-RLHF ("which answer is more helpful?").
One of three models from the same experiment, where only the reward changes: helpful · harmless · combined. Code, figures and full results: Abuudiii/rl-experiments/tree/main/grpo-rlhf-qwen.
Warning: Trained with no harmlessness signal: it is more willing than the original model to help with harmful requests. For research on reward design only.
Behaviour
Answers ordinary questions most fully of the three (and most verbosely). It also goes along with sneakier multi-turn harmful requests that the original model refuses, e.g. it writes a plan for avoiding capture after robbing a store. It still refuses most blunt one-line harmful requests.

Results
400 held-out prompts: 200 ordinary questions (helpful-base) and 200 red-team conversations (harmless-base), greedy
decoding. Scores are mean reward-model outputs; refused = the answer opens with a refusal phrase ("I'm sorry", "I can't", ...).
| Model | Ordinary: helpful score | Ordinary: refused | Red-team: harmless score | Red-team: refused |
|---|---|---|---|---|
| Original Qwen2.5-1.5B-Instruct | −0.63 | 7% | 1.59 | 62.5% |
| Helpful only | 0.05 | 5.5% | 0.01 | 56% |
| Harmless only (checkpoint 500) | −7.26 | 100% | 4.42 | 100% |
| Helpful + harmless | −0.18 | 32% | 2.18 | 94% |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Abuudiii/grpo-Qwen2.5-1.5B-hh-rlhf-helpful"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", device_map="auto")
messages = [{"role": "user", "content": "What does a life coach do?"}]
ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
Training
- Reward model: Qwen2.5-1.5B-Instruct with a scalar head, 1 epoch on the chosen/rejected pairs (pairwise loss, lr 5e-6, 64 pairs per step, up to 1024 tokens). Held-out pair accuracy: 74.3% (helpful), 73.7% (harmless).
- GRPO (TRL 1.17.1): 16 prompts per step, 8 sampled answers per prompt (vLLM), advantage = reward minus the group's mean, KL penalty β = 0.04 to the frozen original, lr 1e-6, answers up to 256 tokens, 1000 steps. Prompts: 8,000 from HH-RLHF (4,000 per subset), each up to 512 tokens.
- Hardware: NVIDIA H100 80GB GPUs (4 per run for helpful/harmless, 8 for combined).
- Trained in fp32 with bf16 autocast; published in bf16.
Limitations
- Scores come from the same reward models used for training; there is no independent judge.
- Refusal rates are a keyword heuristic, not human judgement.
- A 1.5B model trained for 1000 steps on 2022-era preference data: expect factual errors and inconsistent behaviour.
References
- Bai et al., 2022. Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback. arXiv:2204.05862
- Shao et al., 2024. DeepSeekMath (introduces GRPO). arXiv:2402.03300