CSC2626 project: compact latent actions for dexterous manipulation (Adroit relocate + pen + door + hammer)

PPO policies trained on GPU-simulated Adroit hands (MuJoCo-Warp, 4096 envs), either commanding all joints directly ("full") or picking a small latent code z that a frozen decoder (PCA / DCT / VAE / sparse AE, fit on 25 human demos) turns into joint commands. Code: the project's GitHub repository, branch Owen (package latact/).

Layout

Owen_checkpoints/ contains Owen's Relocate/Pen policies, representations, and processed demos. Door_Hammer_checkpoints/ adds Door/Hammer encoder and decoder checkpoints (see below). Within each folder, paths match the code repository. The original Owen files are described here:

path contents
runs_gpu/<week>/<task>/<action space>/<policy obs>/s<seed>/best.pkl PPO checkpoint (best GPU eval): actor/critic params, obs normalizer, training args
.../train.csv learning curve (GPU eval every 5M env steps)
.../cpu_eval.json success on the CPU MuJoCo env, 50 deterministic episodes
reps/<task>/{pca,dct}_k<K>.pt linear action bases
reps/<task>/vae_<cond>_z<Z>_b<beta>[_H<chunk>][_w<width>][_L<layers>].pt conditional VAE decoders (cond = what the decoder sees besides z)
reps/<task>/sae_<cond>_z<Z>_b<l1>.pt sparse autoencoder decoders
reps/<task>/metrics_*.json held-out reconstruction metrics of every decoder
data/<task>_human.npz processed D4RL Adroit human demos (actions + every state variant)

Week folders: week1 full-joint baselines, week2 latent action spaces, week2_bc/week2_abl BC init and noise ablations, week3_sigma exploration-noise sweep, week3_vae VAE size / KL weight / decoder input, week3_chunk action-chunk VAEs, week3_arch VAE MLP size, week3_sae sparse autoencoder. Symlinked week-3 runs are copies of identical earlier runs.

Use

# run inside the code repo: fetch, then place runs_gpu/ reps/ data/ at the repo root
hf download theOman/CSC2626_Project --include "Owen_checkpoints/*" --local-dir hf_ckpt
cp -r hf_ckpt/Owen_checkpoints/. . && rm -rf hf_ckpt
python -m latact.viz evalcpu --ckpt runs_gpu/week3_vae/relocate/vae16none_b0.001/std/s0/best.pkl --out eval.json
python -m latact.viz policy  --ckpt runs_gpu/week3_vae/relocate/vae16none_b0.001/std/s0/best.pkl --out video.mp4

Policy: obs -> MLP (512-256-128, SiLU) -> Gaussian mean over z; decoder(z, cond) -> joint targets in [-1, 1]. Success = object/pen at goal for more than the task's threshold of the 200 steps.

Door/Hammer encoder and decoder extension

Door_Hammer_checkpoints/ adds the representation checkpoints used for the Door and Hammer extension. Paths below this folder match the code repository, just as they do below Owen_checkpoints/.

path under Door_Hammer_checkpoints/ contents
reps/<task>/extension_v1/pca_k8.pt PCA encoder/decoder basis, action mean and latent whitening scales
reps/<task>/extension_v1/dct_k8.pt DCT encoder/decoder basis, action mean and latent whitening scales
reps/<task>/extension_v1/vae_<cond>_z8_b0.001.pt both VAE encoder and decoder weights, conditioning statistics, architecture, and evaluation metadata
reps/<task>/extension_v1/args.json representation-training settings
reps/<task>/extension_v1/metrics_none-hand-std-priv.json held-out reconstruction and prior-coverage metrics
manifest.json artifact SHA256 hashes, input dimensions, training/data provenance, and validation results

There are 12 representation checkpoint files, six per task. Every latent space has dimension 8. Door has 28 actuator outputs; Hammer has 26. VAE conditioning variants are none, hand, std, and priv:

task none hand std priv
Door conditioning dimension 0 28 39 120
Hammer conditioning dimension 0 26 46 134

The VAEs use a 256-wide, three-hidden-layer encoder and decoder, beta 0.001, 20,000 updates, and training seed 0. Each representation uses 20 training and 5 held-out D4RL human demonstration episodes, split seed 0; held-out episode IDs are [0, 3, 12, 15, 21]. This differs from Owen's original 25-demo BC pilot. The VAE encoder consumes the action and conditioning state; the decoder consumes the latent and conditioning state. Conditioning normalization is stored inside the VAE checkpoint. These are frozen representation models, not PPO policies.

Download inside the code repository:

hf download theOman/CSC2626_Project --include "Door_Hammer_checkpoints/*" --local-dir hf_ckpt
cp -r hf_ckpt/Door_Hammer_checkpoints/reps .

Load the original checkpoint format with latact.action_reps.load_rep:

import torch
from latact.action_reps import load_rep

rep = load_rep("reps/door/extension_v1/vae_std_z8_b0.001.pt")
z = torch.zeros(1, rep.dim)  # (1, 8)
# c is the standard Door state vector from the project's feature extractor.
c = torch.as_tensor(door_std_state, dtype=torch.float32).reshape(1, 39)
with torch.no_grad():
    action = rep.decode(z, c).clamp(-1, 1)  # (1, 28)
    latent_mean = rep.encode(action, c)    # (1, 8)

Use the feature variant and ordering named by rep.cond_mode; the matching feature code hashes and processed-demo hashes are recorded in the manifest. PCA/DCT models use cond_mode="none" and implement both linear transforms.

Door/Hammer unconditional action-chunking VAEs

Eight additional representation checkpoints from temporal_v1 are available at Door_Hammer_checkpoints/reps/temporal_v1/<task>/vae<z>none_H<H>/vae.pt:

task latent dimensions z chunk lengths H native actions per step decoder output dimensions
Door 8, 16 4, 8 28 112 (H=4), 224 (H=8)
Hammer 8, 16 4, 8 26 104 (H=4), 208 (H=8)

Each .pt contains both encoder and decoder weights, architecture settings, chunk length, and metadata. Adjacent args.json and metrics.json files record training settings, whole-episode splits, reconstruction error, and prior coverage. These are unconditional VAEs (cond_mode="none", no state input), not PPO policies. They cover every native actuator, including the task's arm actuators; they are not the shared-24-action cross-task models.

Training uses the original shared Owen VAE trainer: 20,000 updates, beta 0.001, AdamW (lr 0.001, weight decay 0.0001), cosine decay, batch 256, and 256-wide, three-hidden-layer ELU/LayerNorm encoder and decoder networks. Representation seed and split seed are 0. Each task uses 20 training episodes and five whole validation episodes [0, 3, 12, 15, 21]. The checkpoint with lowest validation reconstruction-sum-plus-KL loss is restored, checking approximately every 250 updates. The exact winning update was not logged by this original trainer. Reported reconstruction metrics are on those validation episodes used for selection; prior coverage uses 64 samples. Reconstruction loss sums over all H actions with beta unchanged. Chunk windows stay inside an episode and repeat its last action for end padding. Decoded actions have temporal order t, t+1, โ€ฆ.

Download these eight VAEs and their metadata:

hf download theOman/CSC2626_Project --include "Door_Hammer_checkpoints/reps/temporal_v1/*" "Door_Hammer_checkpoints/temporal_v1/*" --local-dir hf_ckpt
cp -r hf_ckpt/Door_Hammer_checkpoints/reps .

Load in the code repository:

import torch
from latact.action_reps import load_rep

rep = load_rep("reps/temporal_v1/door/vae8none_H4/vae.pt")
with torch.no_grad():
    flat = rep.decode(torch.zeros(1, rep.dim), torch.empty(1, 0))
    sequence = flat.reshape(1, rep.chunk, rep.act_dim)  # (1, 4, 28)
# Execute sequence[:, 0], then sequence[:, 1], etc.; do not repeat one vector.

Door_Hammer_checkpoints/temporal_v1/manifest.json records per-file SHA256 hashes, dataset hashes, dimensions, and encode/decode checks. The original experiment's config and source hashes are beside it. These eight checkpoints supplement the 12 single-step representations under reps/<task>/extension_v1/.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading