nemo_automodel.components.distributed.pipelining.media
nemo_automodel.components.distributed.pipelining.media
Consume explicitly staged pipeline media in microbatch order.
Module Contents
Classes
Functions
API
Dataclass
One microbatch’s views of staged image tensors.
Pixels retain their processor layout, with images or patches on axis zero. Grids have shape [images, coordinates]. Empty media chunks become None; nonempty tensors alias the staged inputs unchanged.
image_grid
pixel_values
Advance staged media once, including for a text-only microbatch.
Parameters:
module
Pipeline stage carrying image chunk lists. Pixel tensors retain their image/patch-major layouts; metadata is [images, coordinates].
Returns: VlmMediaChunk | None
The next chunk with original nonempty tensor views, or None when no media
Raises:
ValueError: If a media or grid list is exhausted before the schedule.