Instructions to use Johnli2/ETIC_train with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use Johnli2/ETIC_train with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="Johnli2/ETIC_train", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
ETIC Task A training runs (Ant-v5 actuator-fault baselines)
Six training runs for ETIC Task A: sac_hist and rppo, seeds 0/1/2, 10M environment steps each, checkpoint every 1M.
Layout follows task_a.py (runs/<variant>_s<seed>/), so the directories can be dropped into
CS01:~/ETIC/paper/revision_analysis/laptop_runs/ and evaluated there with task_a.py eval.
Evaluation results are not included; they are produced on CS01.
| Path | Content |
|---|---|
runs/<variant>_s<seed>/ckpt_<N>.zip |
SB3 model, N = 1000000 โฆ 10000000 |
runs/rppo_s<seed>/vecnorm_<N>.pkl |
VecNormalize statistics (required for rppo eval) |
runs/<variant>_s<seed>/train_log.json |
[{"steps", "mean_return", "hours"}], one entry per 1M (training-time return) |
logs/<variant>_s<seed>.log |
launcher stdout, one [progress] line per minute |
MANIFEST.sha256 |
sha256 of every file above (sha256sum -c MANIFEST.sha256) |
How they were trained
task_a.pyandeval_cases.jsonfrom the handoff, unmodified (sha25632df1de3โฆ86d7e1and95a44011โฆf3360b, checked before launch). All hyperparameters are the ones intask_a.py.- Environment: Python 3.10, torch 2.13.0+cu129, gymnasium 1.3.0, mujoco 3.11.0, stable-baselines3 2.9.0, sb3-contrib 2.9.0, numpy 2.2.6. Hardware: NVIDIA L20X, Intel Xeon Platinum 8558.
- Launched through a speed launcher (
etic_fast.py) that importstask_a.pyunchanged and callstask_a.train(variant, seed, out, "cuda", 10_000_000, 1_000_000). It patches library internals only:- rppo: sb3-contrib's
_process_sequencefalls back to a per-timestep Python loop whenever a minibatch contains an episode start. BecauseRecurrentRolloutBuffercuts sequences at episode starts, a start can only be at position 0, so the launcher zeroes those sequences' initial state and runs one cuDNN LSTM call (it falls back to the original loop if a start ever appears later in a sequence). Checked equal to the original in float64 (gradients within 1e-15); on GPU in float32 the difference is TF32 rounding (~3e-4). - sac_hist: same
SAC.trainmath without per-step host syncs: the logging-only.item()calls removed,torch.distributionsargument validation off, a GPU mirror of the replay buffer sampled with the samenp.random.randintindices, critic parameters frozen during the actor loss, polyak update viatorch._foreach_*. Training state after N steps was checked bitwise identical to stock SB3 on CPU and on GPU. - Every minute the launcher checks that all policy parameters are finite and stops the run otherwise (with validation off this keeps the original fail-fast behaviour).
- rppo: sb3-contrib's
- Wall time: rppo โ 3.3โ3.6 h per run (3 runs sharing one GPU), sac_hist โ 15 h per run (3 sharing one GPU); per-1M
times are in
train_log.json.
- Downloads last month
- 1,215
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="Johnli2/ETIC_train", filename="{MODEL FILENAME}.zip", )