Skip to content

Commit 740e3b0

Browse files
authored
fix dcp tutorial formatting (#2990)
1 parent fda8184 commit 740e3b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

recipes_source/distributed_checkpoint_recipe.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ Since this can be an issue when users wish to share models with users used to th
333333
to their applications. For this case, we provide the ``format_utils`` module in ``torch.distributed.checkpoint.format_utils``.
334334

335335
A command line utility is provided for the users convenience, which follows the following format:
336+
336337
.. code-block:: bash
337338
338339
python -m torch.distributed.checkpoint.format_utils -m <checkpoint location> <location to write formats to> <mode>
@@ -341,6 +342,7 @@ In the command above, ``mode`` is one of ``torch_to_dcp``` or ``dcp_to_torch``.
341342

342343

343344
Alternatively, methods are also provided for users who may wish to convert checkpoints directly.
345+
344346
.. code-block:: python
345347
346348
import os

0 commit comments

Comments
 (0)