Skip to content
Skills Library
AI & agents · Automation

simpo-environment-setup

/simpo-environment-setup

How to set up the correct Python environment for the SimPO project, specifically using Python 3.10 and resolving version conflicts. Use this when setting up the environment to run SimPO code and unit tests.

Licence
MIT
Last repository change
02.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

How to set up the correct Python environment for the SimPO project, specifically using Python 3.10 and resolving version conflicts. Use this when setting up the environment to run SimPO code and unit tests.

Original author description

How to set up the correct Python environment for the SimPO project, specifically using Python 3.10 and resolving version conflicts. Use this when setting up the environment to run SimPO code and unit tests.

How it works

  1. SimPO Environment Setup
Original SKILL.md headings · 71 lines, 311 words
SKILL.md preview
---
name: simpo-environment-setup
description: How to set up the correct Python environment for the SimPO project, specifically using Python 3.10 and resolving version conflicts. Use this when setting up the environment to run SimPO code and unit tests.
---

## SimPO Environment Setup

### Critical: Use Python 3.10

The SimPO project and its tests **require Python 3.10**. If the system has a different Python version (e.g., 3.12), you must install and use Python 3.10 explicitly.

### Step-by-step Setup

```bash
# 1. Install Python 3.10 using uv (or conda/pyenv)
uv python install 3.10

# 2. Create a virtual environment with Python 3.10
cd /root/SimPO
uv venv --python 3.10 .venv

# 3. Activate the virtual environment
source .venv/bin/activate

# 4. Verify Python version
python -VV
# Should show Python 3.10.x

# 5. Install project dependencies
# If there's a requirements.txt or setup.py:
pip install torch torchvision torchaudio
pip install transformers trl accelerate datasets
pip install numpy

# Or install from the project:
# pip install -e .

# 6. If there are conflicts with pre-installed packages (e.g., system torch for 3.12),
# the venv isolates you from those. Install everything fresh in the venv.
```

### Generate python_info.txt

```bash
# Must be run with the Python 3.10 venv activated
python -VV > /root/python_info.txt 2>&1
python -m pip freeze >> /root/python_info.txt
```

### Run the Unit Test

```bash
# With the Python 3.10 venv activated
cd /root/SimPO
python unit_test/unit_test_1.py
```

This will generate `/root/loss.npz` with key `'losses'`.

### Common Issues

1. **Wrong Python version**: If `/root/python_info.txt` shows Python 3.12, the test will fail. Always verify `python -VV` shows 3.10.
2. **Package conflicts**: If system packages conflict, create a clean venv with Python 3.10.
3. **CUDA availability**: The unit test may run on CPU. Ensure torch is installed correctly for the available hardware.
4. **uv tool**: If `uv` is available, it's the easiest way to install a specific Python version:
   ```bash
   uv python install 3.10
   uv venv --python 3.10 /root/SimPO/.venv
   ```
5. **Alternative with conda**:
   ```bash
   conda create -n simpo python=3.10 -y
   conda activate simpo
   pip install torch transformers trl accelerate datasets numpy
   ```

Versions

The database has no other skills named simpo-environment-setup.

Database snapshot: 13.11.2026 · package version 250a452a3857 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95run-simpo-with-python310-and-log
    Use this skill to execute the SimPO unit test with Python 3.10, save the loss results to /root/loss.npz, and log Python version and package info to /root/python_info.txt using the correct Python 3.10 executable.
  • 100simpo-loss
    Implements the SimPO (Simple Preference Optimization) loss function from the paper "SimPO: Simple Preference Optimization with a Reference-Free Reward". Use this when implementing or understanding SimPO training objectives.
  • 95simpo-training
    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/PPO.
  • 100preference-optimization
    Align a fine-tuned model with preference data using DPO, ORPO, KTO, or SimPO. Use when preference pairs or thumbs-up/down feedback exist, when choosing between preference-optimization methods, or when a DPO run needs hyperparameters or debugging.
  • 100codex-environment-creator
    Use when a project or Codex runtime needs environment TOML created, triaged, or updated with safe setup, actions, exec-server providers, and validation evidence.
  • 100code-env-setup
    Interactive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.