Creates the model with its weights at their initial values. To run a trained
one, use pt_transformer_load, which builds this and then fills
it from a checkpoint.
pt_transformer(
layout,
d_model = 256L,
n_heads = 8L,
n_layers = 4L,
ff_dim = 1024L,
n_actions = 24L,
activation = "relu"
)A pt_transformer object.
A layout list, as pt_cube4_layout returns.
Width of the model (default 256).
Attention heads (default 8).
Encoder blocks (default 4).
Width of the feed-forward hidden layer (default 1024).
Size of the output --- one value per action (default 24).
Feed-forward activation, "relu" (default) or
"gelu" / "silu".
pt_transformer_load, pt_forward