The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
env_name: string
restore_path: string
restore_epoch: int64
flow_steps: int64
inversion: struct<num_clusters: int64, alpha: double, num_samples: int64, n_steps: int64, n_initial_steps: int6 (... 57 chars omitted)
child 0, num_clusters: int64
child 1, alpha: double
child 2, num_samples: int64
child 3, n_steps: int64
child 4, n_initial_steps: int64
child 5, batch_size: int64
child 6, seed: int64
child 7, allow_untrained: bool
num_transitions: int64
num_invalid_preimages: int64
skill_cond: bool
skill_window: null
p_aug: null
save_interval: int64
buffer_size: int64
wandb_entity: string
eval_reward_shift: double
agent: struct<agent_name: string, ob_dims: null, action_dim: null, lr: double, batch_size: int64, actor_hid (... 242 chars omitted)
child 0, agent_name: string
child 1, ob_dims: null
child 2, action_dim: null
child 3, lr: double
child 4, batch_size: int64
child 5, actor_hidden_dims: list<item: int64>
child 0, item: int64
child 6, value_hidden_dims: list<item: int64>
child 0, item: int64
child 7, layer_norm: bool
child 8, actor_layer_norm: bool
child 9, discount: double
child 10, tau: double
child 11, q_agg: string
child 12, alpha: double
child 13, flow_steps: int64
child 14, normalize_q_loss: bool
child 15, bc_only: bool
child 16, encoder: null
log_interval: int64
video_episodes: int64
seed: int64
eval_interval: int64
video_frame_skip: int64
preimage_limit: null
report_out: null
eval_relabel_size: int64
online_steps: int64
wandb_project: string
run_group: string
eval_episodes: int64
save_dir: string
frame_stack: null
offline_steps: int64
balanced_sampling: int64
preimage_out: string
to
{'wandb_project': Value('string'), 'wandb_entity': Value('string'), 'run_group': Value('string'), 'seed': Value('int64'), 'env_name': Value('string'), 'save_dir': Value('string'), 'restore_path': Value('null'), 'restore_epoch': Value('null'), 'preimage_out': Value('string'), 'preimage_limit': Value('null'), 'report_out': Value('null'), 'offline_steps': Value('int64'), 'online_steps': Value('int64'), 'buffer_size': Value('int64'), 'log_interval': Value('int64'), 'eval_interval': Value('int64'), 'save_interval': Value('int64'), 'eval_episodes': Value('int64'), 'video_episodes': Value('int64'), 'video_frame_skip': Value('int64'), 'eval_relabel_size': Value('int64'), 'eval_reward_shift': Value('float64'), 'p_aug': Value('null'), 'frame_stack': Value('null'), 'balanced_sampling': Value('int64'), 'agent': {'agent_name': Value('string'), 'ob_dims': Value('null'), 'action_dim': Value('null'), 'lr': Value('float64'), 'batch_size': Value('int64'), 'actor_hidden_dims': List(Value('int64')), 'value_hidden_dims': List(Value('int64')), 'layer_norm': Value('bool'), 'actor_layer_norm': Value('bool'), 'discount': Value('float64'), 'tau': Value('float64'), 'q_agg': Value('string'), 'alpha': Value('float64'), 'flow_steps': Value('int64'), 'normalize_q_loss': Value('bool'), 'bc_only': Value('bool'), 'encoder': Value('null')}, 'inversion': {'num_clusters': Value('int64'), 'alpha': Value('float64'), 'num_samples': Value('int64'), 'n_steps': Value('int64'), 'n_initial_steps': Value('int64'), 'batch_size': Value('int64'), 'seed': Value('int64'), 'allow_untrained': Value('bool')}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 489, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
env_name: string
restore_path: string
restore_epoch: int64
flow_steps: int64
inversion: struct<num_clusters: int64, alpha: double, num_samples: int64, n_steps: int64, n_initial_steps: int6 (... 57 chars omitted)
child 0, num_clusters: int64
child 1, alpha: double
child 2, num_samples: int64
child 3, n_steps: int64
child 4, n_initial_steps: int64
child 5, batch_size: int64
child 6, seed: int64
child 7, allow_untrained: bool
num_transitions: int64
num_invalid_preimages: int64
skill_cond: bool
skill_window: null
p_aug: null
save_interval: int64
buffer_size: int64
wandb_entity: string
eval_reward_shift: double
agent: struct<agent_name: string, ob_dims: null, action_dim: null, lr: double, batch_size: int64, actor_hid (... 242 chars omitted)
child 0, agent_name: string
child 1, ob_dims: null
child 2, action_dim: null
child 3, lr: double
child 4, batch_size: int64
child 5, actor_hidden_dims: list<item: int64>
child 0, item: int64
child 6, value_hidden_dims: list<item: int64>
child 0, item: int64
child 7, layer_norm: bool
child 8, actor_layer_norm: bool
child 9, discount: double
child 10, tau: double
child 11, q_agg: string
child 12, alpha: double
child 13, flow_steps: int64
child 14, normalize_q_loss: bool
child 15, bc_only: bool
child 16, encoder: null
log_interval: int64
video_episodes: int64
seed: int64
eval_interval: int64
video_frame_skip: int64
preimage_limit: null
report_out: null
eval_relabel_size: int64
online_steps: int64
wandb_project: string
run_group: string
eval_episodes: int64
save_dir: string
frame_stack: null
offline_steps: int64
balanced_sampling: int64
preimage_out: string
to
{'wandb_project': Value('string'), 'wandb_entity': Value('string'), 'run_group': Value('string'), 'seed': Value('int64'), 'env_name': Value('string'), 'save_dir': Value('string'), 'restore_path': Value('null'), 'restore_epoch': Value('null'), 'preimage_out': Value('string'), 'preimage_limit': Value('null'), 'report_out': Value('null'), 'offline_steps': Value('int64'), 'online_steps': Value('int64'), 'buffer_size': Value('int64'), 'log_interval': Value('int64'), 'eval_interval': Value('int64'), 'save_interval': Value('int64'), 'eval_episodes': Value('int64'), 'video_episodes': Value('int64'), 'video_frame_skip': Value('int64'), 'eval_relabel_size': Value('int64'), 'eval_reward_shift': Value('float64'), 'p_aug': Value('null'), 'frame_stack': Value('null'), 'balanced_sampling': Value('int64'), 'agent': {'agent_name': Value('string'), 'ob_dims': Value('null'), 'action_dim': Value('null'), 'lr': Value('float64'), 'batch_size': Value('int64'), 'actor_hidden_dims': List(Value('int64')), 'value_hidden_dims': List(Value('int64')), 'layer_norm': Value('bool'), 'actor_layer_norm': Value('bool'), 'discount': Value('float64'), 'tau': Value('float64'), 'q_agg': Value('string'), 'alpha': Value('float64'), 'flow_steps': Value('int64'), 'normalize_q_loss': Value('bool'), 'bc_only': Value('bool'), 'encoder': Value('null')}, 'inversion': {'num_clusters': Value('int64'), 'alpha': Value('float64'), 'num_samples': Value('int64'), 'n_steps': Value('int64'), 'n_initial_steps': Value('int64'), 'batch_size': Value('int64'), 'seed': Value('int64'), 'allow_untrained': Value('bool')}}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
PSMFlows noise preimages
Precomputed latents for the PSMFlows pipeline
(code). A behaviour-cloned conditional flow
G(s, u) maps Gaussian noise to dataset actions; these files store, for every transition
of an OGBench dataset, the noise u that
decodes to the recorded action. Computing them takes 4-19 h on a GPU per environment;
downloading them takes minutes.
Contents
preimages/<env>.npz preimage-augmented dataset (training input)
preimages/<env>.npz.meta.json provenance: env, Stage-A checkpoint, inversion config
flow/<env>/params_500000.pkl the frozen behaviour flow the latents invert
flow/<env>/flags.json the behaviour-flow training config
Each .npz holds the OGBench transitions (observations, actions, rewards,
terminals, masks, next_observations) plus:
| key | shape | what it is |
|---|---|---|
noise_preimage_point |
(N, d_a) |
backward-ODE point preimage u*, G(s, u*) ~ a |
noise_preimage_mean |
(N, K, d_a) |
Gaussian mixture posterior over u, means |
noise_preimage_cov |
(N, K, d_a, d_a) |
mixture covariances |
noise_preimage_weights |
(N, K) |
mixture weights |
preimage_ess |
(N,) |
effective sample size of the final EM iterate (of 200) |
preimage_roundtrip |
(N,) |
|G(s, u*) - a|, the inversion residual |
preimage_valid |
(N,) |
1.0 if every preimage product for the row is finite |
Quality
| env | rows | d_a |
mean |u*|^2 (expected) |
mean ESS | frac ESS>20 | median round-trip | invalid rows |
|---|---|---|---|---|---|---|---|
pointmaze-medium-navigate |
1,000,000 | 2 | 1.64 (2) | 94.6 | 0.90 | 5.5e-05 | 0 |
cube-single-play |
1,000,000 | 5 | 5.59 (5) | 81.3 | 0.84 | 1.2e-04 | 13 |
antmaze-medium-navigate |
1,000,000 | 8 | 8.49 (8) | 7.6 | 0.06 | 2.3e-04 | 881 |
The point preimages are healthy in every environment: \|u*\|^2 sits near its expected
value d_a under the standard normal prior, and the round-trip residual is ~1e-4.
The antmaze mixture posterior is not usable. Its mean ESS is far below the rest and
only a few percent of rows clear ESS > 20; alpha=20 was tuned at d_a=5 and does not
transfer to d_a=8. Use agent.use_point_preimage=true there (which is what our own
antmaze runs use), or re-run the inversion with a re-tuned alpha.
Inversion settings
{
"pointmaze-medium-navigate": {
"num_clusters": 1,
"alpha": 20.0,
"num_samples": 200,
"n_steps": 10,
"n_initial_steps": 100,
"batch_size": 256,
"seed": 0,
"allow_untrained": false
},
"cube-single-play": {
"num_clusters": 1,
"alpha": 20.0,
"num_samples": 200,
"n_steps": 10,
"n_initial_steps": 100,
"batch_size": 256,
"seed": 0,
"allow_untrained": false
},
"antmaze-medium-navigate": {
"num_clusters": 1,
"alpha": 20.0,
"num_samples": 200,
"n_steps": 10,
"n_initial_steps": 100,
"batch_size": 256,
"seed": 0,
"allow_untrained": false
}
}
n_initial_steps must equal the flow's flow_steps and both must be >= 100: the implicit
Euler inverse diverges at the training default of 10.
Use
from huggingface_hub import hf_hub_download
npz = hf_hub_download('amsks/psmflows-preimages', 'preimages/cube-single-play.npz', repo_type='dataset')
Then train against the matching flow checkpoint; see
docs/PREIMAGES.md.
Provenance
The transition arrays are copied from OGBench datasets and are redistributed here only so
that a .npz is a drop-in training input; OGBench is the original source. The preimage
arrays and flow checkpoints are ours.
- Downloads last month
- 32