[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTVH5MM79KSQBXCRRX4EWS":3,"skill-same:01M7CTVH5MM79KSQBXCRRX4EWS":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":13,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M7CTVH5MM79KSQBXCRRX4EWS","simpo",null,"Reference-free preference alignment, simpler than DPO.","dwikanugraha13\u002FProject-Anara","dwikanugraha13","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63535036?v=4","01M7CTBN0DG8GDNP4QZ68W8M0A","01M7CTBN10Q015JDBYJS6AJRGN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Foptional-skills\u002Fmlops\u002Fsimpo\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: simpo\ndescription: Reference-free preference alignment, simpler than DPO.\nversion: 1.0.0\nauthor: Orchestra Research\nlicense: MIT\ndependencies: [torch, transformers, datasets, trl, accelerate]\nplatforms: [linux, macos, windows]\nmetadata:\n  anara:\n    tags: [Post-Training, SimPO, Preference Optimization, Alignment, DPO Alternative, Reference-Free, LLM Alignment, Efficient Training]\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","# 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,"author":23,"license":14,"version":24,"metadata":25,"platforms":36,"description":7,"dependencies":40},"Orchestra Research","1.0.0",{"anara":26},{"tags":27},[28,29,30,31,32,33,34,35],"Post-Training","SimPO","Preference Optimization","Alignment","DPO Alternative","Reference-Free","LLM Alignment","Efficient Training",[37,38,39],"linux","macos","windows",[41,42,43,44,45],"torch","transformers","datasets","trl","accelerate","main","3e6d6b7ffb6ab43ddf3991509e5cfb5f8c90cd1a","backend\u002Foptional-skills\u002Fmlops\u002Fsimpo","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13","2026-10-13 07:57:21",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add dwikanugraha13\u002FProject-Anara --skill simpo",{"tool":58,"command":59},"bunx","bunx skills add dwikanugraha13\u002FProject-Anara --skill simpo",{"tool":61,"command":62},"pnpm","pnpm dlx skills add dwikanugraha13\u002FProject-Anara --skill simpo","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Foptional-skills\u002Fmlops\u002Fsimpo\u002FSKILL.md",true,[66,72,76],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fdatasets.md","REFERENCE","参考文档",10889,"https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Foptional-skills\u002Fmlops\u002Fsimpo\u002Freferences\u002Fdatasets.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fhyperparameters.md",8502,"https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Foptional-skills\u002Fmlops\u002Fsimpo\u002Freferences\u002Fhyperparameters.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Floss-functions.md",7067,"https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Foptional-skills\u002Fmlops\u002Fsimpo\u002Freferences\u002Floss-functions.md",[81,88,95,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7CVK8W5MPQ8H45A6XE6RPK1","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7CVK56KG9399ZZVE9KM54WS","xurl","X\u002FTwitter via xurl CLI: raw post search, posting, DM, media.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M7CVK22A44A88NPPBAC1FVQP","xlsx","Create, read, edit Excel .xlsx workbooks and CSVs.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fxlsx\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M7CVJX88C8PY2T6RQZ5GCG15","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fweights-and-biases\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":18},"01M7CVJR3W1FBRGC56DG6BJ1Y3","weekly-review-planning","Weekly reset: commitments, stalled work, next-week plan.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fweekly-review-planning\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":18},"01M7CVJGPJNPQDM8S1KTTMJN7M","touchdesigner-mcp","Control TouchDesigner via twozero MCP.","https:\u002F\u002Fgithub.com\u002Fdwikanugraha13\u002FProject-Anara\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[]]