simpo-training

Optimize LLM preferences with reference-free SimPO loss and configurable training runs.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/matthew-johnson/hermes-agent --skill simpo-training-matthew-johnson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simpo-training
Source: https://github.com/matthew-johnson/hermes-agent/tree/main/optional-skills/mlops/simpo
Command: npx skills add https://github.com/matthew-johnson/hermes-agent --skill simpo-training-matthew-johnson

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 LLMs by optimizing user-preferred responses without needing a reference model, enabling efficient post-training alignment and improved reliability.

Core Features & Use Cases

  • Reference-free loss optimization with beta and gamma-beta ratio for clear preference signals.
  • Optional SFT regularization to preserve model capabilities during alignment.
  • Flexible workflow support for dataset preparation, training configuration, and evaluation across common model sizes.

Quick Start

Install the required dependencies and start a SimPO training run with a chosen model and dataset mix.

Frequently Asked Questions about simpo-training

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

FAQPage Schema
What is reference-free preference optimization for LLM alignment?

Reference-free preference optimization aligns LLMs by optimizing preferred responses without a reference model. SimPO implements this using a length-normalized reward and a gamma-beta ratio, enabling efficient post-training alignment.

How do I align an LLM without using a reference model?

You can align an LLM without a reference model by applying SimPO. It uses a reference-free loss function with configurable beta and gamma-beta ratios to optimize preferred choices directly from your dataset.

Does SimPO work with PyTorch and Hugging Face transformers?

Yes, SimPO works with PyTorch and Hugging Face transformers. It relies on standard dependencies including torch, transformers, datasets, trl, and accelerate to run configurable training across common model sizes.

How does SimPO compare to standard RLHF for post-training alignment?

SimPO removes the need for a separate reference model required in standard RLHF. It implements a reference-free loss with optional SFT regularization, reducing memory and computation overhead during LLM alignment.

Can I add SFT regularization during SimPO training?

Yes, you can add optional SFT regularization during SimPO training. This helps preserve the model's original capabilities and prevents capability degradation while applying reference-free preference optimization.

How do I prepare datasets for SimPO preference optimization?

Dataset preparation for SimPO involves formatting preference data with chosen and rejected responses. The skill supports flexible workflow configurations to prepare datasets and run training across common LLM sizes.