runtime_ple

Static-envelope runtime slicing for descriptor-owned PLE channels.

Functions

ple_layer_context

Replay one layer as a prefix-sliced PLE child at static tensor shapes.

ple_layer_context(layer, *, spec, width)

Replay one layer as a prefix-sliced PLE child at static tensor shapes.

The full teacher supplies per_layer_input. The student keeps its static PP/FSDP envelope, while the descriptor-declared gate rows and projection columns outside the active prefix are masked. This is exactly equivalent to the physically sliced layer for the same retained PLE input channels and leaves inactive supernet parameters with zero gradients.

Parameters: