agentsclimarketplace

Nlp preference optimization

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-claude-sonnet-4-6/nlp-paper-reproduction/nlp-preference-optimization

[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.

Install
npx -y skills add cxcscmu/SkillLearnBench --skill nlp-preference-optimization

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Set up and run NLP preference optimization experiments (DPO, SimPO, CPO). Use this skill when configuring trainer environments, installing dependencies (torch, trl, transformers, peft), or running preference optimization unit tests. Triggers on: DPO, SimPO, preference optimization, trl trainer, RLHF, alignment training.

SKILL.md

1.3 KB, 314 tokens by cl100k_base, as published. Nobody here has run it

NLP Preference Optimization Environment Setup

Required Packages

torch==2.2.2
trl==0.9.6
transformers==4.44.2
accelerate==0.29.2
peft==0.7.1
datasets==2.18.0
numpy==1.26.4

Install with pip (break-system-packages if needed)

pip3 install --break-system-packages torch==2.2.2 trl==0.9.6 transformers==4.44.2 accelerate==0.29.2 peft==0.7.1 datasets==2.18.0 numpy==1.26.4

Running Unit Tests

cd /root/SimPO
python3 -m pytest unit_test/unit_test_1.py -v
# or
python3 unit_test/unit_test_1.py

Common Issues

Import conflicts

  • trl.trainer.CPOTrainer must be importable
  • Check trl version: pip show trl

trl API changes

  • trl_sanitze_kwargs_for_tagging may differ across versions
  • DPODataCollatorWithPadding location may vary
  • Check: from trl.trainer.utils import ...

Logging Python Environment

python3 -VV > /root/python_info.txt
python3 -m pip freeze >> /root/python_info.txt

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.