nemo_automodel.components.cuda_graphs

View as Markdown

CUDA graph components.

Submodules

Package Contents

Classes

NameDescription
PartialCudaGraphManagerCapture selected TE attention and MoE submodules after one eager iteration.

API

class nemo_automodel.components.cuda_graphs.partial.PartialCudaGraphManager(
)

Capture selected TE attention and MoE submodules after one eager iteration.

nemo_automodel.components.cuda_graphs.partial.PartialCudaGraphManager.capture() -> None

Batch-capture all observed targets in real forward order.

nemo_automodel.components.cuda_graphs.partial.PartialCudaGraphManager.close() -> None

Idempotently destroy every partial graph before distributed teardown.

model_parts: list[torch.nn.Module],
activation_checkpointing: bool = False,
pipeline_parallel: bool = False
classmethod

Discover graph targets from an already-built training model.

nemo_automodel.components.cuda_graphs.partial.PartialCudaGraphManager.log_stats(
phase: str
) -> None

Log visible aggregate graph activity counters.

nemo_automodel.components.cuda_graphs.partial.PartialCudaGraphManager.start_recording() -> None

Install first-call recorders on every selected target.

nemo_automodel.components.cuda_graphs.partial.PartialCudaGraphManager.stats() -> dict[str, int]

Return aggregate capture, replay, and eager-fallback counters.