simpo-training

Train language models with reference-free SimPO preference optimization.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/AVOI-CEO/avoi-agent --skill simpo-training-avoi-ceo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simpo-training
Source: https://github.com/AVOI-CEO/avoi-agent/tree/main/optional-skills/mlops/simpo
Command: npx skills add https://github.com/AVOI-CEO/avoi-agent --skill simpo-training-avoi-ceo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, transformers, datasets, trl, accelerate, and includes references (resource) components.

What problem does it solve?

SimPO provides a reference-free approach to aligning language models by optimizing preferences directly without requiring a reference model.

Core Features & Use Cases

  • Reference-free optimization: trains for alignment without a reference policy.
  • Configurable training: supports beta, gamma_beta_ratio, learning_rate, loss_type, label_smoothing, sft_weight, and optional gradient_checkpointing; works with 7B-70B models.
  • Use Case: suitable for instruction-following and chat alignment with various datasets via dataset_mixer.

Quick Start

Install the required packages, prepare a preference dataset, and run the provided training script with a model configuration.

Frequently Asked Questions about simpo-training

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I align language models with preference optimization without using a reference model?

Reference-free LLM preference optimization trains models directly on preference data without a reference policy. SimPO eliminates the reference model requirement, reducing memory overhead while aligning instruction-following and chat models.

What is SimPO and how does it work for LLM alignment?

SimPO is a reference-free preference optimization approach for LLM alignment. It optimizes language models directly on preference datasets without requiring a reference policy, configurable via beta, gamma_beta_ratio, and loss_type parameters.

Can I train 7B to 70B language models for instruction-following using SimPO?

SimPO supports training language models from 7B to 70B parameters for instruction-following and chat alignment. It scales across model sizes using PyTorch, transformers, and accelerate, with optional gradient_checkpointing to manage memory.

How do I configure SimPO training with different loss types and label smoothing?

SimPO training is configurable through parameters like learning_rate, beta, gamma_beta_ratio, loss_type, and label_smoothing. You can also enable SFT regularization via sft_weight to preserve base model capabilities during preference optimization.

Does SimPO work with custom preference datasets combined using a dataset mixer?

SimPO uses a dataset_mixer configuration to combine multiple preference datasets for training. This allows you to blend various instruction-following and chat preference data sources within the trl and datasets framework.

Why use reference-free preference optimization instead of standard RLHF?

Reference-free preference optimization avoids the computational cost of loading a reference model required by standard RLHF. SimPO achieves alignment directly, lowering memory requirements while maintaining configurable optimization through beta and loss_type settings.