ggigelmo1's picture
Add Deviations section: environment pin changes and failed-attempt log
e19a06a verified
|
Raw History Blame Contribute Delete
4.14 kB
metadata
license: mit

hopper-medium-v2 trajectory subsets — StBR repro (arXiv:2610.38238)

Artifacts for the NeurIPS 2026 MLIntern Repro Hackathon reproduction of "Variational Consequence-Driven Offline Reinforcement Learning" (StBR), Table 5 (App. C.3): StBR vs SPOT on D4RL hopper-medium-v2 trained on random trajectory-level subsets (25% / 10% of trajectories), 5 seeds.

Contents

  • subsets/ — the exact subset recipes (selected trajectory indices, ranges, counts) per (fraction, seed). Data itself is NOT redistributed: any subset is re-derivable from canonical D4RL hopper_medium-v2.hdf5 + the recipe.
  • results/ — per-run scores (method × fraction × seed), including failures.
  • logs/failed/ — every failed attempt's logs (HF Jobs apt-404 attempt; Modal image-build failures), preserved per repro rules.
  • code/ — the end-to-end pipeline:
    • setup_env.sh / Dockerfile — authors' stack (python 3.8.5, gym 0.18.3, mujoco-py, mujoco210, d4rl @ 4aff6f8… as linked in the StBR README, torch cu121).
    • subset_loader.py + launch.py — run the authors' main.py UNMODIFIED (via runpy) with only d4rl.qlearning_dataset patched to return the trajectory-level subset, so StBR, SPOT and SPOT's VAE all train on the identical subset.
    • modal_app.py — Modal orchestration (smoke / full stages).

Protocol

Trajectories are segmented at terminal|timeout; per fraction f and seed s, n_sub = round(f · n_trajs) trajectories are drawn with np.random.RandomState(s).permutation (run seed = subset seed). Both methods consume the identical subset (single patched entry point).

Deviations from the authors' environment

# What Authors' spec Ours Why
1 Python 3.8.5 (conda) same (conda env stbr) unchanged
2 PyTorch pytorch>=2.1.0, pytorch-cuda=12.1 (conda) pip torch==2.4.1+cu121 same spec; cu121 wheels avoid a fragile conda solve on py3.8
3 SPOT env SPOT's conda_env.yml: torch 1.10.0 + cudatoolkit 10.x runs under the StBR-derived env above torch 1.10/cu10 cannot run on any current GPU (T4/L4); SPOT training hyperparameters untouched
4 mujoco-py unpinned in StBR yml ==2.1.2.14 matches MuJoCo 2.1.0 (StBR README step 1)
5 imageio not listed (bundled via anaconda metapackage) ==2.9.0 gym 0.18.3 caps Pillow<=8.2.0 while imageio≥2.10.5 floors pillow>=8.3.2; 2.9.0 is the last pin-free release (and what anaconda-2021 shipped). Two failed builds archived in logs/failed/
6 d4rl "install D4RL" (README) git@4aff6f8c46f62f9a57f79caa9287efefa45b6688, --no-deps the exact commit the StBR README links; --no-deps skips pybullet/dm_control/mjrl (non-MuJoCo domains only; d4rl guards them via try/except)
7 Added (not in authors' yml) — gymnasium==0.29.1, mujoco==2.3.7, imageio-ffmpeg Step-3 MP4 rendering only (modern gymnasium API, offscreen CPU); never touched by training
8 Base OS unspecified ubuntu:22.04, apt-get update before installs Debian 11 base images went EOL (Aug 2026) → apt 404s (see logs/failed/)
9 conda — ToS-accept step for defaults channel new conda requirement (CondaToSNonInteractiveError)
10 Training code — byte-identical (run via runpy) only d4rl.qlearning_dataset is patched to serve subsets

Failed-attempt log (chronological)

  1. HF Jobs t4-small, 2026-12-02 12:52 — SETUP_FAILED: Debian bullseye security mirror 404s (EOL). Log: logs/failed/hfjobs_6b1014842568543f63dcea12_…. Project then switched to Modal per user decision.
  2. Modal build, 2026-12-02 ~16:2x — ResolutionImpossible: gym 0.18.3 depends on Pillow<=8.2.0 vs imageio 2.31.1 depends on pillow>=8.3.2. Log: logs/failed/modal_im-7iqUhirFsqzMNsDSdUIoHv_….
  3. Modal build, 2026-12-02 ~16:5x — same clash with imageio==2.19.3 (also floors pillow≥8.3.2). Log: logs/failed/modal_im-EODRcxyVZdmW2K0geTQTsN_…. Fix: imageio 2.9.0 (no pillow pin, verified against PyPI metadata).