Skip to content

Commit a57e99a

Browse files
committed
fix alignment
1 parent fa28ee6 commit a57e99a

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/source-pytorch/accelerators/hpu_intermediate.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ Enabling DeviceStatsMonitor with HPUs
7575
:class:`~pytorch_lightning.callbacks.device_stats_monitor.DeviceStatsMonitor` is a callback that automatically monitors and logs device stats during the training stage.
7676
This callback can be passed for training with HPUs. It returns a map of the following metrics with their values:
7777

78-
**Limit** : amount of total memory on HPU device.
79-
**InUse** : amount of allocated memory at any instance.
80-
**MaxInUse** : amount of total active memory allocated.
81-
**NumAllocs** : number of allocations.
82-
**NumFrees** : number of freed chunks.
83-
**ActiveAllocs** : number of active allocations.
84-
**MaxAllocSize** : maximum allocated size.
85-
**TotalSystemAllocs** : total number of system allocations.
86-
**TotalSystemFrees** : total number of system frees.
87-
**TotalActiveAllocs** : total number of active allocations.
78+
- **Limit** : amount of total memory on HPU device.
79+
- **InUse** : amount of allocated memory at any instance.
80+
- **MaxInUse** : amount of total active memory allocated.
81+
- **NumAllocs** : number of allocations.
82+
- **NumFrees** : number of freed chunks.
83+
- **ActiveAllocs** : number of active allocations.
84+
- **MaxAllocSize** : maximum allocated size.
85+
- **TotalSystemAllocs** : total number of system allocations.
86+
- **TotalSystemFrees** : total number of system frees.
87+
- **TotalActiveAllocs** : total number of active allocations.
8888

8989
The below snippet shows how DeviceStatsMonitor can be enabled.
9090

src/pytorch_lightning/accelerators/hpu.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ def setup_environment(self, root_device: torch.device) -> None:
4141
def get_device_stats(self, device: Union[str, torch.device]) -> Dict[str, Any]:
4242
"""Returns a map of the following metrics with their values:
4343
44-
Limit,
45-
InUse,
46-
MaxInUse,
47-
NumAllocs,
48-
NumFrees,
49-
ActiveAllocs,
50-
MaxAllocSize,
51-
TotalSystemAllocs,
52-
TotalSystemFrees,
53-
TotalActiveAllocs
44+
- Limit
45+
- InUse
46+
- MaxInUse
47+
- NumAllocs
48+
- NumFrees
49+
- ActiveAllocs
50+
- MaxAllocSize
51+
- TotalSystemAllocs
52+
- TotalSystemFrees
53+
- TotalActiveAllocs
5454
"""
5555
try:
5656
return torch_hpu.hpu.memory_stats(device)

0 commit comments

Comments
 (0)