xdrl#

XDRL

Hook-first interpretability for TorchRL

xdrl provides typed interaction contracts and TDHook bindings for TorchRL models. TorchRL continues to own trainer execution, logging, evaluation, checkpointing, and environments; xdrl makes model-internal observation and intervention explicit at those interaction boundaries.

Key Features

_images/one.png

Typed interaction contracts

Describe model roles, TensorDict schemas, execution phases, and batch semantics without replacing TorchRL’s trainer lifecycle.

_images/two.png

TDHook-powered interpretability

Observe and intervene inside declared TorchRL model interactions with TDHook while preserving native TensorDict behaviour.