Run3 run 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.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run3_run-simpo-with-python310-and-logAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.6 KB, 438 tokens by cl100k_base, as published. Nobody here has run it
Run SimPO Unit Test with Python 3.10 and Log Environment
Step 1: Confirm Python 3.10 executable path
PYTHON310=$(which python3.10 2>/dev/null || echo "/usr/bin/python3.10")
echo "Using Python: $PYTHON310"
$PYTHON310 --version
Step 2: Log Python version and packages to /root/python_info.txt
PYTHON310=$(which python3.10 2>/dev/null || echo "/usr/bin/python3.10")
# Overwrite python_info.txt with python3.10 info
$PYTHON310 -VV > /root/python_info.txt 2>&1
echo "---" >> /root/python_info.txt
$PYTHON310 -m pip freeze >> /root/python_info.txt 2>&1
echo "Logged to /root/python_info.txt"
cat /root/python_info.txt | head -5
Step 3: Run the unit test with Python 3.10
PYTHON310=$(which python3.10 2>/dev/null || echo "/usr/bin/python3.10")
cd /root/SimPO
$PYTHON310 /root/SimPO/unit_test/unit_test_1.py
Step 4: Verify the output file
PYTHON310=$(which python3.10 2>/dev/null || echo "/usr/bin/python3.10")
$PYTHON310 -c "
import numpy as np
data = np.load('/root/loss.npz')
print('Keys:', list(data.keys()))
print('Losses:', data['losses'])
"
Important Notes
- Always use
python3.10(or the resolved path) — never usepythonorpython3which may resolve to 3.12 - The
python -VVandpip freezeinpython_info.txtmust come from the 3.10 binary - If
python3.10 -m pipfails, first run:python3.10 -m ensurepip --upgrade
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.