H3 Memory Probe (ledger + allocator trace, alpha):
H3MemoryProbe is a specialized node designed to monitor and analyze memory usage within the H3 diffusion model. It serves as a memory instrument that provides a detailed ledger of PyTorch's allocator counters on a per-block and per-phase basis. This node is particularly beneficial for users who need to understand and optimize memory allocation during model execution. By offering an optional allocator trace, which can be rendered into a hoverable HTML timeline, H3MemoryProbe allows you to visualize memory usage patterns over time. This feature is especially useful for identifying memory bottlenecks and optimizing resource allocation. The node operates without any overhead when turned off, ensuring that it does not impact performance when not in use. Overall, H3MemoryProbe is an essential tool for AI artists and developers looking to gain insights into memory management and improve the efficiency of their models.
H3 Memory Probe (ledger + allocator trace, alpha) Input Parameters:
The context does not provide specific input parameters for H3MemoryProbe. Therefore, I cannot enumerate or describe them accurately. If you have access to the node's interface or documentation, please refer to those resources for detailed information on input parameters.
H3 Memory Probe (ledger + allocator trace, alpha) Output Parameters:
The context does not provide specific output parameters for H3MemoryProbe. Therefore, I cannot enumerate or describe them accurately. If you have access to the node's interface or documentation, please refer to those resources for detailed information on output parameters.
H3 Memory Probe (ledger + allocator trace, alpha) Usage Tips:
- To effectively utilize H3MemoryProbe, ensure that you enable the allocator trace when you need detailed insights into memory usage patterns. This can help you identify and address memory bottlenecks in your model.
- Consider using H3MemoryProbe in conjunction with other nodes like H3StreamedBlocks to gain a comprehensive understanding of memory allocation and usage throughout the model's execution.
H3 Memory Probe (ledger + allocator trace, alpha) Common Errors and Solutions:
Allocator trace unavailable
- Explanation: This error occurs when the allocator trace feature is not available due to the default setting of
cudaMallocAsyncin ComfyUI, which conflicts with PyTorch's native caching allocator. - Solution: Start ComfyUI with the
--disable-cuda-mallocoption to enable the allocator trace feature. This will allow you to record and analyze memory usage effectively while still benefiting from the ledger functionality.
