State¶
The core representation used by all world models.
Overview¶
State is a lightweight container with two fields:
tensors:dict[str, Tensor]holding model-specific latent tensorsmeta:dict[str, Any]for optional metadata
Creating a State¶
Most users get a State via model.encode() or model.update():
Accessing Tensors¶
State does not fix a schema. Each model defines its own tensor keys.
DreamerV3¶
deter: deterministic GRU statestoch: stochastic categorical samplesprior_logits/posterior_logits: logits for KL
TD-MPC2¶
latent: SimNorm embedding
JEPA¶
rep: encoder representation
Metadata¶
Use meta for non-tensor bookkeeping: