This package provides functionality for CUDA Graph capturing in PyTorch. It includes a warm-up function and CUDA Graph capture function to optimize inference execution.
To install this package, run the following command:
pip install mlsysUtilOr install from the local build:
pip install dist/mlsysUtils-0.1.0-py3-none-any.whlimport torch
from mlsysUtils.graph_capture import get_graph
model = torch.nn.Linear(10, 10).cuda()
input_tensor = torch.randn(1, 10).cuda()
graph, static_output = get_graph(model, input_tensor)This project is licensed under the MIT License.