How kevinghst/h-jepa works
H-JEPA trains hierarchical visual world models and evaluates them through planning, probing, and decoding; it also supports DROID workflows. The runtime combines model code with stable-worldmodel’s datasets, environments, policies, and solvers. The README documents the main training/evaluation workflows and model capabilities; source excerpts and the index support only the specific internal links shown below, so unsampled integrations are omitted.
Main entry points: planning_eval.py Planning Evaluation · world.py Environment Manager · main_hjepa.py Training · final_probing_decoding_eval.py Probe and Decode
Components 21
Workflows
- Training
h_jepa/main_hjepa.py
JEPA Models
- JEPA Levels
h_jepa/models/jepa.py - Hierarchical JEPA
h_jepa/models/hjepa.py - Visual Encoders
h_jepa/models/encoders - Transformer Blocks
h_jepa/models/module.py - Predictors
h_jepa/models/predictors/predictors.py - Training Loss
h_jepa/loss.py
Evaluation
- Planning Evaluation
h_jepa/planning_eval.py - Hierarchical Planner
h_jepa/hierarchical_solver.py - Probe and Decode
h_jepa/final_probing_decoding_eval.py - DROID Evaluation
h_jepa/droid_eval.py
Worldmodel Runtime
- Dataset Loading
h_jepa/data.py - Environment Manager
stable_worldmodel/world.py - Planning Policies
stable_worldmodel/policy.py - Solver Interface
stable_worldmodel/solver/solver.py - Environment Wrappers
stable_worldmodel/wrapper.py
Environments
- FourRoom
stable_worldmodel/envs/four_room/env.py - Explore Policy
stable_worldmodel/envs/four_room/explore_policy.py - Cube Tasks
stable_worldmodel/envs/ogbench/cube_env.py - Push-T Tasks
stable_worldmodel/envs/pusht/env.py
Other components
- Researcher
Connections 23
- Researcher → Training: trains
README.md - Training → Dataset Loading: loads data
h_jepa/main_hjepa.py - Training → Planning Evaluation: runs evaluation
README.md - Training → Probe and Decode: runs evaluation
README.md - Researcher → Planning Evaluation: evaluates checkpoint
README.md - Researcher → Probe and Decode: evaluates checkpoint
README.md - Researcher → DROID Evaluation: evaluates DROID
README.md - Dataset Loading → Environment Manager: provides trajectories
- Planning Evaluation → Dataset Loading: loads tasks
h_jepa/planning_eval.py - Planning Evaluation → Hierarchical Planner: configures planner
h_jepa/planning_eval.py - Planning Evaluation → Planning Policies: builds policy
h_jepa/planning_eval.py - Hierarchical Planner → Solver Interface: uses solver protocol
h_jepa/hierarchical_solver.py - Probe and Decode → Dataset Loading: loads examples
h_jepa/final_probing_decoding_eval.py - Probe and Decode → Transformer Blocks: encodes batches
h_jepa/final_probing_decoding_eval.py - Visual Encoders → Transformer Blocks: builds blocks
h_jepa/models/encoders/encoders.py - Predictors → Transformer Blocks: uses blocks
h_jepa/models/predictors/predictors.py - Transformer Blocks → Training Loss: initializes weights
h_jepa/models/module.py - Environment Manager → Planning Policies: runs policies
stable_worldmodel/world.py - Environment Manager → Environment Wrappers: wraps environments
stable_worldmodel/world.py - FourRoom → Explore Policy: uses for exploration
stable_worldmodel/envs/four_room/env.py - Explore Policy → Planning Policies: extends base policy
stable_worldmodel/envs/four_room/explore_policy.py - Cube Tasks → Environment Manager: runs in manager
- Push-T Tasks → Environment Manager: runs in manager