[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M785JCEWXBY1FGZQ3S24ZQ8P":3,"skill-same:01M785JCEWXBY1FGZQ3S24ZQ8P":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M785JCEWXBY1FGZQ3S24ZQ8P","simpo-training",null,"Simple Preference Optimization for LLM alignment. Reference-free alternative to DPO with better performance (+6.4 points on AlpacaEval 2.0). No reference model needed, more efficient than DPO. Use for preference alignment when want simpler, faster training than DPO\u002FPPO.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Foptional-skills\u002Fsimpo\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: simpo-training\ndescription: \"Simple Preference Optimization for LLM alignment. Reference-free alternative to DPO with better performance (+6.4 points on AlpacaEval 2.0). No reference model needed, more efficient than DPO. Use for preference alignment when want simpler, faster training than DPO\u002FPPO.\"\nversion: 1.0.0\nauthor: Orchestra Research\nlicense: MIT\nplatforms: [linux, macos, windows]\ncategory: mlops\ntags: [Post-Training, SimPO, Preference Optimization, Alignment, DPO Alternative, Reference-Free, LLM Alignment, Efficient Training]\ncompatible: [claude-code, openai-agents, hermes-agent, autogen, langchain, any-llm]\nsource: optional\n---\n\n# SimPO - Simple Preference Optimization\n\n## Quick start\n\nSimPO is a reference-free preference optimization method that outperforms DPO without needing a reference model.\n\n**Installation**:\n```bash\n# Create environment\nconda create -n simpo python=3.10 && conda activate simpo\n\n# Install PyTorch 2.2.2\n# Visit: https:\u002F\u002Fpytorch.org\u002Fget-started\u002Flocally\u002F\n\n# Install alignment-handbook\ngit clone https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Falignment-handbook.git\ncd alignment-handbook\npython -m pip install .\n\n# Install Flash Attention 2\npython -m pip install flash-attn --no-build-isolation\n```\n\n**Training** (Mistral 7B):\n```bash\nACCELERATE_LOG_LEVEL=info accelerate launch \\\n  --config_file accelerate_configs\u002Fdeepspeed_zero3.yaml \\\n  scripts\u002Frun_simpo.py \\\n  training_configs\u002Fmistral-7b-base-simpo.yaml\n```\n\n## Common workflows\n\n### Workflow 1: Train from base model (Mistral 7B)\n\n**Config** (`mistral-7b-base-simpo.yaml`):\n```yaml\n# Model\nmodel_name_or_path: mistralai\u002FMistral-7B-v0.1\ntorch_dtype: bfloat16\n\n# Dataset\ndataset_mixer:\n  HuggingFaceH4\u002Fultrafeedback_binarized: 1.0\ndataset_splits:\n  - train_prefs\n  - test_prefs\n\n# SimPO hyperparameters\nbeta: 2.0                  # Reward scaling (2.0-10.0)\ngamma_beta_ratio: 0.5       # Target margin (0-1)\nloss_type: sigmoid          # sigmoid or hinge\nsft_weight: 0.0             # Optional SFT regularization\n\n# Training\nlearning_rate: 5e-7         # Critical: 3e-7 to 1e-6\nnum_train_epochs: 1\nper_device_train_batch_size: 1\ngradient_accumulation_steps: 8\n\n# Output\noutput_dir: .\u002Foutputs\u002Fmistral-7b-simpo\n```\n\n**Launch training**:\n```bash\naccelerate launch --config_file accelerate_configs\u002Fdeepspeed_zero3.yaml \\\n  scripts\u002Frun_simpo.py training_configs\u002Fmistral-7b-base-simpo.yaml\n```\n\n### Workflow 2: Fine-tune instruct model (Llama 3 8B)\n\n**Config** (`llama3-8b-instruct-simpo.yaml`):\n```yaml\nmodel_name_or_path: meta-llama\u002FMeta-Llama-3-8B-Instruct\n\ndataset_mixer:\n  argilla\u002Fultrafeedback-binarized-preferences-cleaned: 1.0\n\nbeta: 2.5\ngamma_beta_ratio: 0.5\nlearning_rate: 5e-7\nsft_weight: 0.1             # Add SFT loss to preserve capabilities\n\nnum_train_epochs: 1\nper_device_train_batch_size: 2\ngradient_accumulation_steps: 4\noutput_dir: .\u002Foutputs\u002Fllama3-8b-simpo\n```\n\n**Launch**:\n```bash\naccelerate launch --config_file accelerate_configs\u002Fdeepspeed_zero3.yaml \\\n  scripts\u002Frun_simpo.py training_configs\u002Fllama3-8b-instruct-simpo.yaml\n```\n\n### Workflow 3: Reasoning-intensive tasks (lower LR)\n\n**For math\u002Fcode tasks**:\n```yaml\nmodel_name_or_path: deepseek-ai\u002Fdeepseek-math-7b-base\n\ndataset_mixer:\n  argilla\u002Fdistilabel-math-preference-dpo: 1.0\n\nbeta: 5.0                   # Higher for stronger signal\ngamma_beta_ratio: 0.7       # Larger margin\nlearning_rate: 3e-7         # Lower LR for reasoning\nsft_weight: 0.0\n\nnum_train_epochs: 1\nper_device_train_batch_size: 1\ngradient_accumulation_steps: 16\n```\n\n## When to use vs alternatives\n\n**Use SimPO when**:\n- Want simpler training than DPO (no reference model)\n- Have preference data (chosen\u002Frejected pairs)\n- Need better performance than DPO\n- Limited compute resources\n- Single-node training sufficient\n\n**Algorithm selection**:\n- **SimPO**: Simplest, best performance, no reference model\n- **DPO**: Need reference model baseline, more conservative\n- **PPO**: Maximum control, need reward model, complex setup\n- **GRPO**: Memory-efficient RL, no critic\n\n**Use alternatives instead**:\n- **OpenRLHF**: Multi-node distributed training, PPO\u002FGRPO\n- **TRL**: Need multiple methods in one framework\n- **DPO**: Established baseline comparison\n\n## Common issues\n\n**Issue: Loss divergence**\n\nReduce learning rate:\n```yaml\nlearning_rate: 3e-7  # Reduce from 5e-7\n```\n\nReduce beta:\n```yaml\nbeta: 1.0  # Reduce from 2.0\n```\n\n**Issue: Model forgets capabilities**\n\nAdd SFT regularization:\n```yaml\nsft_weight: 0.1  # Add SFT loss component\n```\n\n**Issue: Poor preference separation**\n\nIncrease beta and margin:\n```yaml\nbeta: 5.0            # Increase from 2.0\ngamma_beta_ratio: 0.8  # Increase from 0.5\n```\n\n**Issue: OOM during training**\n\nReduce batch size:\n```yaml\nper_device_train_batch_size: 1\ngradient_accumulation_steps: 16  # Maintain effective batch\n```\n\nEnable gradient checkpointing:\n```yaml\ngradient_checkpointing: true\n```\n\n## Advanced topics\n\n**Loss functions**: See [references\u002Floss-functions.md](references\u002Floss-functions.md) for sigmoid vs hinge loss, mathematical formulations, and when to use each.\n\n**Hyperparameter tuning**: See [references\u002Fhyperparameters.md](references\u002Fhyperparameters.md) for beta, gamma, learning rate selection guide, and model-size-specific recommendations.\n\n**Dataset preparation**: See [references\u002Fdatasets.md](references\u002Fdatasets.md) for preference data formats, quality filtering, and custom dataset creation.\n\n## Hardware requirements\n\n- **GPU**: NVIDIA A100\u002FH100 recommended\n- **VRAM**:\n  - 7B model: 1× A100 40GB (DeepSpeed ZeRO-3)\n  - 8B model: 2× A100 40GB\n  - 70B model: 8× A100 80GB\n- **Single-node**: DeepSpeed ZeRO-3 sufficient\n- **Mixed precision**: BF16 recommended\n\n**Memory optimization**:\n- DeepSpeed ZeRO-3 (default config)\n- Gradient checkpointing\n- Flash Attention 2\n\n## Resources\n\n- Paper: https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.14734 (NeurIPS 2024)\n- GitHub: https:\u002F\u002Fgithub.com\u002Fprinceton-nlp\u002FSimPO\n- Models: https:\u002F\u002Fhuggingface.co\u002Fprinceton-nlp\n- Alignment Handbook: https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Falignment-handbook\n\n\n\n","# SimPO - Simple Preference Optimization\n\n## Quick start\n\nSimPO is a reference-free preference optimization method that outperforms DPO without needing a reference model.\n\n**Installation**:\n```bash\n# Create environment\nconda create -n simpo python=3.10 && conda activate simpo\n\n# Install PyTorch 2.2.2\n# Visit: https:\u002F\u002Fpytorch.org\u002Fget-started\u002Flocally\u002F\n\n# Install alignment-handbook\ngit clone https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Falignment-handbook.git\ncd alignment-handbook\npython -m pip install .\n\n# Install Flash Attention 2\npython -m pip install flash-attn --no-build-isolation\n```\n\n**Training** (Mistral 7B):\n```bash\nACCELERATE_LOG_LEVEL=info accelerate launch \\\n  --config_file accelerate_configs\u002Fdeepspeed_zero3.yaml \\\n  scripts\u002Frun_simpo.py \\\n  training_configs\u002Fmistral-7b-base-simpo.yaml\n```\n\n## Common workflows\n\n### Workflow 1: Train from base model (Mistral 7B)\n\n**Config** (`mistral-7b-base-simpo.yaml`):\n```yaml\n# Model\nmodel_name_or_path: mistralai\u002FMistral-7B-v0.1\ntorch_dtype: bfloat16\n\n# Dataset\ndataset_mixer:\n  HuggingFaceH4\u002Fultrafeedback_binarized: 1.0\ndataset_splits:\n  - train_prefs\n  - test_prefs\n\n# SimPO hyperparameters\nbeta: 2.0                  # Reward scaling (2.0-10.0)\ngamma_beta_ratio: 0.5       # Target margin (0-1)\nloss_type: sigmoid          # sigmoid or hinge\nsft_weight: 0.0             # Optional SFT regularization\n\n# Training\nlearning_rate: 5e-7         # Critical: 3e-7 to 1e-6\nnum_train_epochs: 1\nper_device_train_batch_size: 1\ngradient_accumulation_steps: 8\n\n# Output\noutput_dir: .\u002Foutputs\u002Fmistral-7b-simpo\n```\n\n**Launch training**:\n```bash\naccelerate launch --config_file accelerate_configs\u002Fdeepspeed_zero3.yaml \\\n  scripts\u002Frun_simpo.py training_configs\u002Fmistral-7b-base-simpo.yaml\n```\n\n### Workflow 2: Fine-tune instruct model (Llama 3 8B)\n\n**Config** (`llama3-8b-instruct-simpo.yaml`):\n```yaml\nmodel_name_or_path: meta-llama\u002FMeta-Llama-3-8B-Instruct\n\ndataset_mixer:\n  argilla\u002Fultrafeedback-binarized-preferences-cleaned: 1.0\n\nbeta: 2.5\ngamma_beta_ratio: 0.5\nlearning_rate: 5e-7\nsft_weight: 0.1             # Add SFT loss to preserve capabilities\n\nnum_train_epochs: 1\nper_device_train_batch_size: 2\ngradient_accumulation_steps: 4\noutput_dir: .\u002Foutputs\u002Fllama3-8b-simpo\n```\n\n**Launch**:\n```bash\naccelerate launch --config_file accelerate_configs\u002Fdeepspeed_zero3.yaml \\\n  scripts\u002Frun_simpo.py training_configs\u002Fllama3-8b-instruct-simpo.yaml\n```\n\n### Workflow 3: Reasoning-intensive tasks (lower LR)\n\n**For math\u002Fcode tasks**:\n```yaml\nmodel_name_or_path: deepseek-ai\u002Fdeepseek-math-7b-base\n\ndataset_mixer:\n  argilla\u002Fdistilabel-math-preference-dpo: 1.0\n\nbeta: 5.0                   # Higher for stronger signal\ngamma_beta_ratio: 0.7       # Larger margin\nlearning_rate: 3e-7         # Lower LR for reasoning\nsft_weight: 0.0\n\nnum_train_epochs: 1\nper_device_train_batch_size: 1\ngradient_accumulation_steps: 16\n```\n\n## When to use vs alternatives\n\n**Use SimPO when**:\n- Want simpler training than DPO (no reference model)\n- Have preference data (chosen\u002Frejected pairs)\n- Need better performance than DPO\n- Limited compute resources\n- Single-node training sufficient\n\n**Algorithm selection**:\n- **SimPO**: Simplest, best performance, no reference model\n- **DPO**: Need reference model baseline, more conservative\n- **PPO**: Maximum control, need reward model, complex setup\n- **GRPO**: Memory-efficient RL, no critic\n\n**Use alternatives instead**:\n- **OpenRLHF**: Multi-node distributed training, PPO\u002FGRPO\n- **TRL**: Need multiple methods in one framework\n- **DPO**: Established baseline comparison\n\n## Common issues\n\n**Issue: Loss divergence**\n\nReduce learning rate:\n```yaml\nlearning_rate: 3e-7  # Reduce from 5e-7\n```\n\nReduce beta:\n```yaml\nbeta: 1.0  # Reduce from 2.0\n```\n\n**Issue: Model forgets capabilities**\n\nAdd SFT regularization:\n```yaml\nsft_weight: 0.1  # Add SFT loss component\n```\n\n**Issue: Poor preference separation**\n\nIncrease beta and margin:\n```yaml\nbeta: 5.0            # Increase from 2.0\ngamma_beta_ratio: 0.8  # Increase from 0.5\n```\n\n**Issue: OOM during training**\n\nReduce batch size:\n```yaml\nper_device_train_batch_size: 1\ngradient_accumulation_steps: 16  # Maintain effective batch\n```\n\nEnable gradient checkpointing:\n```yaml\ngradient_checkpointing: true\n```\n\n## Advanced topics\n\n**Loss functions**: See [references\u002Floss-functions.md](references\u002Floss-functions.md) for sigmoid vs hinge loss, mathematical formulations, and when to use each.\n\n**Hyperparameter tuning**: See [references\u002Fhyperparameters.md](references\u002Fhyperparameters.md) for beta, gamma, learning rate selection guide, and model-size-specific recommendations.\n\n**Dataset preparation**: See [references\u002Fdatasets.md](references\u002Fdatasets.md) for preference data formats, quality filtering, and custom dataset creation.\n\n## Hardware requirements\n\n- **GPU**: NVIDIA A100\u002FH100 recommended\n- **VRAM**:\n  - 7B model: 1× A100 40GB (DeepSpeed ZeRO-3)\n  - 8B model: 2× A100 40GB\n  - 70B model: 8× A100 80GB\n- **Single-node**: DeepSpeed ZeRO-3 sufficient\n- **Mixed precision**: BF16 recommended\n\n**Memory optimization**:\n- DeepSpeed ZeRO-3 (default config)\n- Gradient checkpointing\n- Flash Attention 2\n\n## Resources\n\n- Paper: https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.14734 (NeurIPS 2024)\n- GitHub: https:\u002F\u002Fgithub.com\u002Fprinceton-nlp\u002FSimPO\n- Models: https:\u002F\u002Fhuggingface.co\u002Fprinceton-nlp\n- Alignment Handbook: https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Falignment-handbook\n\n\n\n",{"name":5,"tags":24,"author":33,"source":34,"license":15,"version":35,"category":36,"platforms":37,"compatible":41,"description":7},[25,26,27,28,29,30,31,32],"Post-Training","SimPO","Preference Optimization","Alignment","DPO Alternative","Reference-Free","LLM Alignment","Efficient Training","Orchestra Research","optional","1.0.0","mlops",[38,39,40],"linux","macos","windows",[42,43,44,45,46,47],"claude-code","openai-agents","hermes-agent","autogen","langchain","any-llm","master","4aa004da461d820f4ea5499e58eb8d196cf99016","optional-skills\u002Fsimpo",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill simpo-training",{"tool":63,"command":64},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill simpo-training",{"tool":66,"command":67},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill simpo-training","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Foptional-skills\u002Fsimpo\u002FSKILL.md",true,[],[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]