It was aligned using the
HelpSteer2 dataset to improve helpfulness and instruction following capabilities.
The goal of the fine-tuning was to improve helpfulness/harmlessness behavior as measured by the HelpSteer2 dataset, while also enabling controlled model diffing experiments as part of the AIPlans research workflow.
Below is a comparison between the base model and this IPO-trained version.
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "AIPlans/Qwen3-0.6B-IPO"
5
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True
11)
12tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
13
14prompt = "User: How do I make a cake?\n\nAssistant:"
15inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
16
17outputs = model.generate(**inputs, max_new_tokens=128, do_sample=True, temperature=0.7)
18print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Premanand Jena - AIPlans Research Intern,
Contact :
premjena07@gmail.com
1@misc{vonwerra2022trl,
2 title = {TRL: Transformer Reinforcement Learning},
3 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},
4 year = 2020,
5 journal = {GitHub repository},
6 publisher = {GitHub},
7 howpublished = {\url{https://github.com/huggingface/trl}}
8}