Skip to content

Commit

Permalink
Restructure Fabric docs (2/n) (Lightning-AI#17126)
Browse files Browse the repository at this point in the history
Co-authored-by: edenlightning <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
  • Loading branch information
3 people authored Mar 20, 2023
1 parent 7bc2a65 commit c886317
Show file tree
Hide file tree
Showing 17 changed files with 579 additions and 258 deletions.
27 changes: 18 additions & 9 deletions docs/source-fabric/_static/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs/source-fabric/api/accelerators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. include:: ../links.rst

#############################
lightning.fabric.accelerators
#############################


Accelerators
^^^^^^^^^^^^

.. currentmodule:: lightning.fabric.accelerators

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

Accelerator
CPUAccelerator
CUDAAccelerator
MPSAccelerator
TPUAccelerator
23 changes: 23 additions & 0 deletions docs/source-fabric/api/collectives.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.. include:: ../links.rst

####################################
lightning.fabric.plugins.collectives
####################################

.. warning::
This is an `experimental <https://lightning.ai/docs/pytorch/latest/versioning.html>`__ feature.


Collectives
^^^^^^^^^^^

.. currentmodule:: lightning.fabric.plugins.collectives

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

Collective
TorchCollective
SingleDeviceCollective
25 changes: 25 additions & 0 deletions docs/source-fabric/api/environments.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. include:: ../links.rst

#####################################
lightning.fabric.plugins.environments
#####################################


Environments
^^^^^^^^^^^^

.. currentmodule:: lightning.fabric.plugins.environments

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate_noindex.rst

~cluster_environment.ClusterEnvironment
~kubeflow.KubeflowEnvironment
~lightning.LightningEnvironment
~lsf.LSFEnvironment
~mpi.MPIEnvironment
~slurm.SLURMEnvironment
~torchelastic.TorchElasticEnvironment
~xla.XLAEnvironment
18 changes: 18 additions & 0 deletions docs/source-fabric/api/fabric.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. include:: ../links.rst

#######################
lightning.fabric.Fabric
#######################


Fabric
^^^^^^

.. currentmodule:: lightning.fabric.fabric

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

Fabric
24 changes: 24 additions & 0 deletions docs/source-fabric/api/io.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. include:: ../links.rst

###########################
lightning.fabric.plugins.io
###########################


.. warning::
This is an `experimental <https://lightning.ai/docs/pytorch/latest/versioning.html>`__ feature.


IO
^^

.. currentmodule:: lightning.fabric.plugins.io

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

~checkpoint_io.CheckpointIO
~torch_io.TorchCheckpointIO
~xla.XLACheckpointIO
20 changes: 20 additions & 0 deletions docs/source-fabric/api/loggers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. include:: ../links.rst

########################
lightning.fabric.loggers
########################


Loggers
^^^^^^^

.. currentmodule:: lightning.fabric.loggers

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

Logger
CSVLogger
TensorBoardLogger
25 changes: 25 additions & 0 deletions docs/source-fabric/api/precision.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. include:: ../links.rst

##################################
lightning.fabric.plugins.precision
##################################


Precision
^^^^^^^^^

.. TODO(fabric): include DeepSpeedPrecision
.. currentmodule:: lightning.fabric.plugins.precision

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

Precision
DoublePrecision
MixedPrecision
TPUPrecision
TPUBf16Precision
FSDPPrecision
26 changes: 26 additions & 0 deletions docs/source-fabric/api/strategies.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.. include:: ../links.rst

###########################
lightning.fabric.strategies
###########################


Strategies
^^^^^^^^^^

.. TODO(fabric): include DeepSpeedStrategy, XLAStrategy
.. currentmodule:: lightning.fabric.strategies

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

Strategy
DDPStrategy
DataParallelStrategy
FSDPStrategy
ParallelStrategy
SingleDeviceStrategy
SingleTPUStrategy
88 changes: 0 additions & 88 deletions docs/source-fabric/api/utilities.rst

This file was deleted.

Loading

0 comments on commit c886317

Please sign in to comment.