Skip to content

Commit 6f78cc0

Browse files
wz337pytorchmergebot
authored andcommitted
address nit
1 parent ae2b2f5 commit 6f78cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/distributed/checkpoint/state_dict_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def load_state_dict(
2222
planner: LoadPlanner = None,
2323
) -> None:
2424
"""
25-
Loads a distributed state_dict in SPMD style.
25+
Loads a distributed ``state_dict`` in SPMD style.
2626
2727
Each rank will try to read the least amount of data necessary
28-
to fullfill the requested `state_dict`. When loading ShardedTensor
28+
to fullfill the requested `state_dict`. When loading :class:`ShardedTensor`
2929
instances, each rank only reads data for their local shards.
3030
3131
.. warning::

0 commit comments

Comments
 (0)