Individual skill
evo-simpo-code-reproduction
Implements the SimPO (Simple Preference Optimization) loss function and handles environment setup, execution, and result saving for code reproduction tasks.
tasks-evolved/simpo-code-reproduction/environment/skills/evo-simpo-code-reproduction/SKILL.md
Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 98
- Repository last updated
- Sep 10, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- llm-agents Repository topic
- open-world Repository topic
- self-evolving-agents Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,475 bytesSKILL.mdcore · 3,475 bytesSKILL.mdcore · 3,475 bytesSKILL.mdcore · 3,475 bytesSKILL.mdcore · 3,475 bytesscripts/run_and_save.pyruns · 6,395 bytesscripts/simpo_loss_impl.pyruns · 9,981 bytes
Read excerpt
# evo-simpo-code-reproduction
## Overview
Complete skill for reproducing the SimPO (Simple Preference Optimization) loss function from the paper by Meng et al. (2024). Handles implementation of the `simpo_loss` method, environment setup, unit test execution, and saving results.
## Key Concepts (from the paper)
### SimPO Loss Formula
```
L_SimPO = -log(sigmoid(beta/|y_w| * sum(log π(y_w|x)) - beta/|y_l| * sum(log π(y_l|x)) - gamma))
```
### Critical Implementation Details
1. **Inputs are pre-normalized**: `policy_chosen_logps` and `policy_rejected_logps` are already length-averaged (mean log probs per token) before entering `simpo_loss`. The averaging happens in `get_batch_logps` with `average_log_prob=True`.