nemo_automodel.components.models.flint.packing
nemo_automodel.components.models.flint.packing
Flint text-token ownership across TE context and pipeline parallelism.
Module Contents
Functions
API
Choose a shared text sharder while preserving PP’s global-id boundary.
Parameters:
model
Native model, possibly one pipeline stage, with optional CP mesh.
batch
Global token tensors [B,S] and optional document lengths [B,N].
num_chunks
Number of independent pipeline microbatch token spaces.
Returns: dict[str, Any]
A model-owned sharder and padding metadata. Packed local indices have