simpo-training

Trains LLMs with reference-free SimPO preference optimization using preference pair datasets.

5|2|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/MedTiLab/Auto-meta-analysis --skill simpo-training-medtilab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: simpo-training
Source: https://github.com/MedTiLab/Auto-meta-analysis/tree/main/skills/post-training/simpo
Command: npx skills add https://github.com/MedTiLab/Auto-meta-analysis --skill simpo-training-medtilab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Aligning LLMs with human preferences typically requires DPO or PPO setups that demand a reference model or reward model, adding memory cost and complexity. SimPO removes the reference model entirely while outperforming DPO, making preference alignment simpler and more compute-efficient. ## Core Features & Use Cases - Reference-Free Preference Training: Train models like Mistral 7B or Llama 3 8B on chosen/rejected preference pairs using the alignment-handbook with DeepSpeed ZeRO-3 and Flash Attention 2. - Hyperparameter Guidance: Detailed references for beta, gamma-beta ratio, learning rate, SFT weight, and loss type (sigmoid vs hinge) tuned by model size and task type. - Dataset Preparation: Guidance on preference data formats, quality filtering, deduplication, and mixing datasets like UltraFeedback, HH-RLHF, and math preference sets. - Use Case: Fine-tune Llama 3 8B Instruct on cleaned UltraFeedback preferences with beta 2.5 and a small SFT weight to improve AlpacaEval performance without a reference model. ## Quick Start Train Mistral 7B with SimPO on the UltraFeedback preference dataset using the provided training configuration and accelerate launch command.

Frequently Asked Questions about simpo-training

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

FAQPage Schema
How do I train a model with SimPO preference optimization?▼

Install the HuggingFace alignment-handbook and Flash Attention 2, then launch training with accelerate using a SimPO YAML config specifying the model, dataset mixer, beta, gamma_beta_ratio, and learning rate. DeepSpeed ZeRO-3 configs are used for multi-GPU training.

SimPO vs DPO: which preference optimization method should I use?▼

SimPO is reference-free, requiring no reference model, and outperforms DPO by +6.4 points on AlpacaEval 2.0 while being more efficient. Use DPO when you need a conservative reference-model baseline for comparison.

What learning rate should I use for SimPO training?▼

For 7B-8B models use 3e-7 to 5e-7, with lower rates like 3e-7 for math and code reasoning tasks. Larger models (70B+) need 5e-8 to 1e-7, while rates above 1e-6 risk loss divergence.

What dataset format does SimPO training require?▼

Preference datasets need prompt, chosen, and rejected fields containing the instruction and the preferred and rejected responses. Popular ready-to-use datasets include HuggingFaceH4/ultrafeedback_binarized and Anthropic/hh-rlhf.

Why does SimPO training loss diverge and how do I fix it?▼

Loss divergence usually comes from a learning rate that is too high or an overly large beta. Reduce learning rate from 5e-7 to 3e-7 and lower beta from 2.0 to 1.0 to stabilize training.

What GPU hardware is required for SimPO training?▼

A 7B model trains on one A100 40GB with DeepSpeed ZeRO-3, an 8B model needs two A100 40GB, and a 70B model requires eight A100 80GB. BF16 mixed precision, gradient checkpointing, and Flash Attention 2 reduce memory usage.