Skip to content

Commit

Permalink
Update documentation (#411)
Browse files Browse the repository at this point in the history
This PR adds a section named ML Features to the documentation. The section contains multiple examples of how ML models can be uploaded to and executed on the database. The PR also adds a section to the Online Analysis tutorial. The section uses TorchScript functions to post-process the simulation data.

[ committed by @al-rigazzi ]
[ reviewed by @amandarichardsonn @mellis13 ]
  • Loading branch information
al-rigazzi authored Dec 13, 2023
1 parent 37fb2bb commit 3ee7794
Show file tree
Hide file tree
Showing 22 changed files with 1,071 additions and 545 deletions.
3 changes: 3 additions & 0 deletions doc/api/smartredis_api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.. _smartredis-api:

**************
SmartRedis API
**************


Python
******

Expand Down
54 changes: 26 additions & 28 deletions doc/api/smartsim_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ SmartSim API
*************


.. _experiment_api:

Experiment
==========

.. _experiment_api:

.. currentmodule:: smartsim.experiment

Expand Down Expand Up @@ -73,10 +74,11 @@ Types of Containers:
Singularity


.. _rs-api:

RunSettings
-----------

.. _rs-api:

When running SmartSim on laptops and single node workstations,
the base ``RunSettings`` object is used to parameterize jobs.
Expand All @@ -96,10 +98,11 @@ launches that utilize a parallel launch binary like
:members:


.. _srun_api:

SrunSettings
------------

.. _srun_api:

``SrunSettings`` can be used for running on existing allocations,
running jobs in interactive allocations, and for adding srun
Expand All @@ -126,11 +129,11 @@ steps to a batch.
:members:


.. _aprun_api:

AprunSettings
-------------

.. _aprun_api:

``AprunSettings`` can be used on any system that supports the
Cray ALPS layer. SmartSim supports using ``AprunSettings``
Expand Down Expand Up @@ -159,11 +162,11 @@ and within batch launches (e.g., ``QsubBatchSettings``)



.. _jsrun_api:

JsrunSettings
-------------

.. _jsrun_api:

``JsrunSettings`` can be used on any system that supports the
IBM LSF launcher.
Expand Down Expand Up @@ -194,11 +197,11 @@ and within batch launches (i.e. ``BsubBatchSettings``)
:undoc-members:
:members:

.. _openmpi_run_api:

MpirunSettings
--------------

.. _openmpi_run_api:

``MpirunSettings`` are for launching with OpenMPI. ``MpirunSettings`` are
supported on Slurm, PBSpro, and Cobalt.
Expand All @@ -221,11 +224,11 @@ supported on Slurm, PBSpro, and Cobalt.
:undoc-members:
:members:

.. _openmpi_exec_api:

MpiexecSettings
---------------

.. _openmpi_exec_api:

``MpiexecSettings`` are for launching with OpenMPI's ``mpiexec``. ``MpirunSettings`` are
supported on Slurm, PBSpro, and Cobalt.
Expand All @@ -248,11 +251,11 @@ supported on Slurm, PBSpro, and Cobalt.
:undoc-members:
:members:

.. _openmpi_orte_api:

OrterunSettings
---------------

.. _openmpi_orte_api:

``OrterunSettings`` are for launching with OpenMPI's ``orterun``. ``OrterunSettings`` are
supported on Slurm, PBSpro, and Cobalt.
Expand All @@ -279,11 +282,11 @@ supported on Slurm, PBSpro, and Cobalt.
------------------------------------------


.. _sbatch_api:

SbatchSettings
--------------

.. _sbatch_api:

``SbatchSettings`` are used for launching batches onto Slurm
WLM systems.
Expand All @@ -305,11 +308,11 @@ WLM systems.
:undoc-members:
:members:

.. _qsub_api:

QsubBatchSettings
-----------------

.. _qsub_api:

``QsubBatchSettings`` are used to configure jobs that should
be launched as a batch on PBSPro systems.
Expand All @@ -333,12 +336,12 @@ be launched as a batch on PBSPro systems.
:members:


.. _cqsub_api:


CobaltBatchSettings
-------------------

.. _cqsub_api:

``CobaltBatchSettings`` are used to configure jobs that should
be launched as a batch on Cobalt Systems. They closely mimic
that of the ``QsubBatchSettings`` for PBSPro.
Expand All @@ -359,11 +362,11 @@ that of the ``QsubBatchSettings`` for PBSPro.
:members:


.. _bsub_api:

BsubBatchSettings
-----------------

.. _bsub_api:

``BsubBatchSettings`` are used to configure jobs that should
be launched as a batch on LSF systems.
Expand All @@ -386,11 +389,11 @@ be launched as a batch on LSF systems.
:undoc-members:
:members:

.. _singularity_api:

Singularity
-----------

.. _singularity_api:

``Singularity`` is a type of ``Container`` that can be passed to a
``RunSettings`` class or child class to enable running the workload in a
Expand All @@ -407,11 +410,11 @@ Orchestrator

.. currentmodule:: smartsim.database

.. _orc_api:

Orchestrator
------------

.. _orc_api:

.. autoclass:: Orchestrator
:members:
Expand Down Expand Up @@ -446,11 +449,11 @@ Model
:show-inheritance:
:inherited-members:

.. _ensemble_api:

Ensemble
========

.. _ensemble_api:

.. currentmodule:: smartsim.entity.ensemble

Expand All @@ -472,31 +475,27 @@ Ensemble
:show-inheritance:
:inherited-members:

.. _ml_api:

Machine Learning
================

.. _ml_api:

SmartSim includes built-in utilities for supporting TensorFlow, Keras, and Pytorch.

.. _smartsim_tf_api:

TensorFlow
----------

.. _smartsim_tf_api:

SmartSim includes built-in utilities for supporting TensorFlow and Keras in training and inference.

.. currentmodule:: smartsim.ml.tf.utils

.. autosummary::

freeze_model

.. automodule:: smartsim.ml.tf.utils
:members:


.. currentmodule:: smartsim.ml.tf

.. autoclass:: StaticDataGenerator
Expand All @@ -509,11 +508,11 @@ SmartSim includes built-in utilities for supporting TensorFlow and Keras in trai
:show-inheritance:
:inherited-members:

.. _smartsim_torch_api:

PyTorch
----------

.. _smartsim_torch_api:

SmartSim includes built-in utilities for supporting PyTorch in training and inference.

.. currentmodule:: smartsim.ml.torch
Expand All @@ -533,11 +532,11 @@ SmartSim includes built-in utilities for supporting PyTorch in training and infe
:show-inheritance:
:inherited-members:

.. _slurm_module_api:

Slurm
=====

.. _slurm_module_api:


.. currentmodule:: smartsim.slurm

Expand All @@ -548,4 +547,3 @@ Slurm

.. automodule:: smartsim.slurm
:members:

Loading

0 comments on commit 3ee7794

Please sign in to comment.