CoolFace
Modelpublic

AIPlans/Qwen3-0.6B-IPO

sourceHugging Facemitupdated 10mo agoView on Hugging Face
1likes10downloads
Model Card

<a href="https://aiplans.org" target="_blank" style="margin: 2px;"> <img alt="AIPlans" src="./Logos/AI-Plans-Logo.svg" style="display: inline-block; vertical-align: middle;"/> </a>

Model Description

This model is an IPO (Identity Preference Optimization) fine-tune of [Qwen/Qwen3-0.6B-Base](https://huggingface.co/Qwen/Qwen3-0.6B-Base).

It was aligned using the [HelpSteer2](https://huggingface.co/datasets/Jennny/helpsteer2-helpfulness-preference) dataset to improve helpfulness and instruction following capabilities.

Unlike PPO or ReMax, IPO formulates the alignment problem as a regression task. It minimizes a regularized squared error loss on the preferences, providing a stable and theoretically grounded approach to alignment without needing a separate reward model or complex sampling loops during training.

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 Funded by: AIPlans Shared by: AIPlans Model type: Causal decoder-only Transformer (LLM) Languages: English Intended Use: Research on model diffing, preference fine-tuning, evaluation of lightweight LLM behavior changes

๐Ÿ“Š Evaluation

Below is a comparison between the base model and this IPO-trained version.

TaskMetricBase ModelIPO ModelChange
arc_challengeacc_norm0.38480.3968+0.0119
arc_easyacc_norm0.57830.6700+0.0918
hellaswagacc_norm0.53790.5540+0.0160
truthfulqa_mc2acc0.45860.4576-0.0010
winograndeacc0.58960.5935+0.0039

โš™๏ธ Training Details

  • โ€”Method: IPO (Identity Preference Optimization)
  • โ€”Base Model: Qwen/Qwen3-0.6B-Base
  • โ€”SFT Model Used: AIPlans/Qwen3-0.6b-SFT-hs2
  • โ€”Precision: bfloat16 (Training), bfloat16 (Final Weights)
  • โ€”Learning Rate: 5e-7
  • โ€”Beta: 0.01
  • โ€”Epochs: 3
  • โ€”Batch Size: 8 (Global Effective: 16)
  • โ€”Hardware: NVIDIA A100 (80GB) (Took 1 hr 25 mins and acquired 78.4 GB VRAM)

Algorithm Highlights

  • โ€”Direct Optimization: Optimizes preferences directly without a reward model loop.
  • โ€”Stability: Uses a squared error loss which is bounded and often more stable than DPO's sigmoid loss.
  • โ€”Regularization: Uses a beta of 0.01 to balance preference satisfaction with reference model divergence.

๐Ÿ’ป Usage

python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "AIPlans/Qwen3-0.6B-IPO"

model = AutoModelForCausalLM.from_pretrained(
    model_id, 
    torch_dtype=torch.bfloat16, 
    device_map="auto", 
    trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)

prompt = "User: How do I make a cake?\n\nAssistant:"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")

outputs = model.generate(**inputs, max_new_tokens=128, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Model Card Author

Premanand Jena - AIPlans Research Intern, Contact : premjena07@gmail.com

Citation

IPO Paper : https://arxiv.org/abs/2310.12036

TRL:

bibtex
@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}}
}