Datasets:
ArXiv:
License:
|
Download README.md from ggigelmo1/hopper-medium-v2-subsets: direct link, hf CLI and curl.
- Browser
- Download file 6.04 kB
-
https://huggingface.co/datasets/ggigelmo1/hopper-medium-v2-subsets/resolve/main/README.md
- Command line
-
hf download hf://datasets/ggigelmo1/hopper-medium-v2-subsets/README.md
-
curl -L -o README.md https://huggingface.co/datasets/ggigelmo1/hopper-medium-v2-subsets/resolve/main/README.md
6.04 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 D4RLhopper_medium-v2.hdf5+ the recipe. Both methods are fed the byte-identical subset (verified by diff).results/— per-run scores (method × fraction × seed), including failures.logs/failed/,logs/failed_smoke/,logs/smoke/— every attempt's logs, preserved per repro rules.code/— the end-to-end pipeline:setup_env.sh/Dockerfile(authors' stack),subset_loader.py+launch.py(authors'main.pyexecuted UNMODIFIED via runpy; onlyd4rl.qlearning_datasetis patched to serve the subset),modal_app.py(Modal orchestration).
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.
Smoke test (Step 1 gate; seed 0, 10% subset, 20k steps, full D4RL eval)
| run | hardware | final D4RL score | wall |
|---|---|---|---|
| StBR | Tesla T4 | 0.385 (0.283 @10k) | 248 s |
| SPOT (VAE 100k + policy 20k) | Tesla T4 | 0.259 (0.092/0.484/0.442/0.259) | 415.8 s |
| StBR (CPU comparison) | 4 vCPU | 0.439 (0.872 @10k) | 1337.6 s |
Deviations from the authors' environment / code-path
| # | What | Authors' spec | Ours | Why |
|---|---|---|---|---|
| 1 | Python (training) | 3.8.5 (conda) | same (conda env stbr, absolute-path subprocess) |
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 hyperparameters untouched |
| 4 | SPOT hardware | — (authors trained on GPU) | GPU-only; no CPU variant | authors' train_vae.py hardcodes device='cuda' (observed in smoke); left unmodified |
| 5 | mujoco-py | unpinned in StBR yml | ==2.1.2.14 |
matches MuJoCo 2.1.0 (StBR README step 1) |
| 6 | 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/ |
| 7 | d4rl | "install D4RL" (README) | git@4aff6f8c46f62f9a57f79caa9287efefa45b6688, --no-deps |
the exact commit the StBR README links; skips pybullet/dm_control/mjrl (non-MuJoCo domains only) |
| 8 | d4rl env registration | plain import d4rl |
explicit import d4rl.gym_mujoco in launch.py |
d4rl's __init__ wraps ALL domain imports in one try/except; without dm_control the MuJoCo envs were silently never registered (hopper-medium-v2 unregistered). gym_mujoco is self-contained; registration identical to the authors' full env |
| 9 | Added (not in authors' yml) | — | gymnasium==0.29.1, mujoco==2.3.7, imageio-ffmpeg |
Step-3 MP4 rendering only (modern API, offscreen CPU); never touched by training |
| 10 | Base OS | unspecified | ubuntu:22.04, apt-get update before installs |
Debian 11 base images went EOL (Aug 2026) → apt 404s (see logs/failed/) |
| 11 | conda | — | ToS-accept step for defaults channel |
new conda requirement (CondaToSNonInteractiveError) |
| 12 | Modal image runtime | — | Image.from_registry(..., add_python="3.11") |
Modal 1.7 requires a detectable Python ≥3.11 for the function shim; all training still runs on the conda 3.8.5 env via absolute-path subprocess |
| 13 | Training code | — | byte-identical (run via runpy) | only d4rl.qlearning_dataset is patched to serve subsets; launch.py adds the repo to sys.path (runpy does not) and uses argparse.REMAINDER for --extra_args |
| 14 | Durability | — | authors' runs/ symlinked into the volume + 90 s periodic commits |
checkpoints/eval logs survive crashes mid-training (user condition) |
Failed-attempt log (chronological)
- HF Jobs t4-small, 2026-12-02 12:52 —
SETUP_FAILED: Debian bullseye security mirror 404s (EOL).logs/failed/hfjobs_6b1014842568543f63dcea12_…. Project switched to Modal per user decision. - Modal build #1/#2, 2026-12-02 ~16:2x/16:5x —
ResolutionImpossible:gym 0.18.3 depends on Pillow<=8.2.0vs imageio 2.31.1 / 2.19.3 (pillow>=8.3.2).logs/failed/modal_im-7iqU…,logs/failed/modal_im-EODR…. Fix: imageio 2.9.0 (pin-free, verified on PyPI metadata). - Modal smoke iter 1, 2026-12-02 ~17:2x —
ModuleNotFoundError: utils(runpy does not add the repo tosys.path) + SPOT argparseSystemExit(2)(nargs='*'vs dash-prefixed extra args). Fixed inlaunch.py. - Modal smoke iter 2, ~17:3x —
UnregisteredEnv: hopper-medium-v2(d4rl's silent domain-import skip). Fixed via explicitd4rl.gym_mujocoimport. Log:logs/failed_smoke/iter2_UnregisteredEnv_stbr.log. - Modal smoke iter 3, ~17:4x — SPOT CPU variant:
RuntimeError: Found no NVIDIA driver(authors'train_vae.pyhardcodes cuda). Accepted: SPOT is GPU-only. Log:logs/failed_smoke/iter3_spot_vae_cuda_fail.log. - Modal smoke iter 4, ~17:5x — VAE-checkpoint glob pointed at the wrong
directory (
--outdir vs reporuns/); VAE had trained, thenIndexError: list index out of range. Fixed (glob repo path; persist to volume). SPOT/T4 completed on the next run.