simpo-training

Optimize language-model preferences without a reference model.

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

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 method to optimize preferences for language models, enabling efficient alignment without a separate reference model.

Core Features & Use Cases

  • Reference-free optimization: trains with chosen/rejected data without a reference model.
  • Flexible configurations: supports multiple base models, datasets, and loss configurations (beta, gamma, sft_weight).
  • Use Case: fine-tune an instruction-following model using Ultrafeedback-style preferences to improve alignment.

Quick Start

Train a SimPO model with your chosen base model and a preference dataset.

Frequently Asked Questions about simpo-training

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

FAQPage Schema
How do I optimize LLM preferences without a reference model?

SimPO aligns LLMs without a reference model by optimizing preferences directly from chosen and rejected data. It reduces memory overhead by eliminating the reference model, enabling efficient preference optimization for diverse instruction-following tasks.

How do I fine-tune a language model with Ultrafeedback-style datasets?

You can fine-tune models using Ultrafeedback-style data by configuring the dataset_mixer in your YAML file. Specify model_path, learning_rate, beta, and sft_weight to train preferences directly with torch and trl without a reference model.

Does reference-free preference optimization work with torch and transformers?

Yes, reference-free preference optimization fully integrates with torch and transformers. It leverages the trl and accelerate libraries to manage training loops and distributed execution across model sizes and diverse preference datasets.

What is the difference between SimPO and DPO for LLM alignment?

SimPO provides a reference-free alternative to DPO by eliminating the separate reference model during preference optimization. This reduces memory requirements while allowing configurable SFT regularization through sft_weight and gamma_beta_ratio parameters.

Can I configure SFT regularization during language model preference training?

Yes, you can configure SFT regularization during preference training by adjusting the sft_weight parameter in your YAML configuration. This balances reference-free preference optimization with supervised fine-tuning objectives across your chosen datasets.