"""Resolved real-world hyperparameters, shared by model and diagnostic runtime.""" from pathlib import Path from omegaconf import OmegaConf R=Path(__file__).resolve().parent DEFAULT_CONFIG=R/'train_realworld.yaml' def load_training_config(path=None): cfg=OmegaConf.load(path or DEFAULT_CONFIG) a=cfg.framework.action_model;t=cfg.trainer;d=cfg.datasets.vla_data;g=cfg.framework.graph if cfg.execution.mode!='test_only' or cfg.execution.allow_full_training or not 1<=cfg.execution.max_test_steps<=3: raise ValueError('Current authorization is parameter testing only, at most three updates') if (a.action_dim,a.state_dim,a.action_horizon,a.future_action_window_size,a.past_action_window_size)!=(14,14,16,15,0): raise ValueError('Stack joint14/horizon16 action contract mismatch') if g.bptt!=1 or g.geometry_input_dim!=4 or g.edge_status_input:raise ValueError('Wrong graph/memory contract') if t.optimizer.fused or t.optimizer.foreach:raise ValueError('Use the validated non-fused AdamW backend') if not d.include_state or d.normalization!='train_split_mean_std':raise ValueError('Stack state/normalization contract changed') if not 0