It was aligned using the
HelpSteer2 dataset to improve helpfulness and instruction following capabilities. Unlike standard PPO, ReMax eliminates the need for a value model (Critic) and uses a greedy baseline to reduce variance, making it highly efficient for alignment.
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.
Developed by: AIPlans
LoRA was not used in this finetuning.
Funded by : AIPlans
Intended Use: Research on model diffing, preference fine-tuning, evaluation of lightweight LLM behavior changes
Below is a comparison between the base model and this ReMax-trained version.
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "AIPlans/Qwen3-0.6B-ReMax"
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@article{li2023remax,
2 title = {ReMax: A Simple, Effective, and Efficient Method for Aligning Large Language Models},
3 author = {Li, Ziniu and Xu, Tian and Zhang, Yushun and Yu, Yang and Sun, RUoyu and Luo, Zhi-Quan},
4 booktitle = {arXiv preprint arXiv:2310.10505},
5 year = {2023},
6}
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}