Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

173 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alex-rl-experiments

Alex's personal experiment recipes for the shared rl-harness library.

Colleagues: start at rl-experimentsfork it (no rename), clone your fork, run ./scripts/bootstrap_local.sh. Do not fork this science repo for new work.

Layout

XOR/
  rl-harness/              # shared library (or symlink to "RL Harness")
  alex-rl-experiments/     # this repo (Alex's ongoing studies)

Setup

./scripts/bootstrap_local.sh
# or, if the library sibling is already present:
uv sync --group dev

Optional: Backblaze B2 artifact backup

Large run outputs (checkpoints, .pt weights, Tune trees) live under ignored artifacts/<run-id>/. When B2 credentials are configured, the harness uploads that tree at the end of each run and records s3://… URIs in tracked results/<run-id>/.

One-time setup on this machine:

./scripts/setup_b2_env.sh

The script writes ~/.rl_harness_b2_env, offers to add auto-load to ~/.zshrc (default: yes — press n to opt out), and is the easiest way to get local runs and vast provisioning wired up.

Useful helpers after setup:

# Run an experiment with secrets loaded (no manual export)
./scripts/run_harness.sh \
  experiments.mess3_belief_geometry_2026_07.reward_only.experiment \
  --smoke

# Rent a vast box and forward the same B2 vars to the remote container
./scripts/run_vast.sh up -n 1 \
  --run "rl-harness experiments.mess3_belief_geometry_2026_07.reward_only.experiment --seed 0 --smoke" \
  --self-destruct --yes

# Install or remove ~/.zshrc auto-load later
./scripts/b2_shell_autoload.sh install
./scripts/b2_shell_autoload.sh remove

Skip zshrc auto-load during setup with ./scripts/setup_b2_env.sh --no-shell-autoload. Re-run ./scripts/setup_b2_env.sh --shell-autoload-only if you skipped it the first time.

For Cursor Cloud Agents, add the same B2_* variables as dashboard secrets. Full reference (bucket setup, object layout, download): docs/artifact_storage.md in your sibling rl-harness checkout.

Run

uv run rl-harness \
  experiments.mess3_belief_geometry_2026_07.reward_only.experiment \
  --smoke

Stay on library main

git -C ../rl-harness pull

Contribute a library change

cd ../rl-harness
git checkout -b alex/my-change
git push -u origin HEAD
gh pr create

Tests

uv run pytest -q -m "not slow"

About

Alex's personal RL experiment recipes for rl-harness

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages