Skip to content

Commit

Permalink
Merge pull request #459 from mv1388/documentation-writing
Browse files Browse the repository at this point in the history
Docu Index page setup and torchtrain docs structure
  • Loading branch information
mv1388 committed Apr 11, 2020
2 parents ddd7f7a + 15ef490 commit fa13df1
Show file tree
Hide file tree
Showing 14 changed files with 107 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ git add -A dist/


if [ "$build_documentation" == true ]; then
./doc_build.sh
./doc_build.sh --clean
fi
24 changes: 23 additions & 1 deletion doc_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

source activate py36

clean_build=false

while [[ $# -gt 0 ]]; do
key="$1"

case $key in
-c|--clean)
clean_build=true
shift 1 # past argument value
;;
*) # unknown option
echo "Don't know the argument"
;;
esac
done


#sphinx-apidoc -f --separate --module-first -t docs/source/_templates -o docs/source/api aitoolbox

sphinx-build -b html docs/source docs/build
if [ "$clean_build" == false ]; then
sphinx-build -b html docs/source docs/build
else
sphinx-build -Ea -b html docs/source docs/build
fi

4 changes: 2 additions & 2 deletions docs/source/api/api_aitoolbox.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aitoolbox API
=================
aitoolbox
=========

.. automodule:: aitoolbox
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cloud.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Cloud
cloud
=====

4 changes: 2 additions & 2 deletions docs/source/experiment.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Experiment Tracking
===================
experiment
==========

38 changes: 35 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,33 @@
contain the root `toctree` directive.
AIToolbox - Model Training Framework for PyTorch
===================================================================================
================================================

.. toctree::
:maxdepth: 5
:caption: Contents:
:caption: Components:
:hidden:

torchtrain
experiment
cloud

.. toctree::
:maxdepth: 5
:caption: Examples:
:hidden:

examples

.. toctree::
:maxdepth: 5
:caption: API:
:hidden:

api/api_aitoolbox


A framework which helps you train deep learning models in PyTorch and quickly iterate experiments.
AIToolbox is a framework which helps you train deep learning models in PyTorch and quickly iterate experiments.
It hides the repetitive technicalities of training the neural nets and frees you to focus on interesting part of
devising new models. In essence, it offers a keras-style train loop abstraction which can be used for higher
level training process while still allowing the manual control on the lower level when desired.
Expand All @@ -29,3 +41,23 @@ These can be stored both locally or on AWS S3 (Google Cloud Storage in beta) whi
when training on the GPU instance on AWS. Instance can be automatically shut down when training is finished and all
the results are safely stored on S3.


Main Components
---------------

AIToolbox consists of three main user-facing components:

* :mod:`aitoolbox.torchtrain` - PyTorch train loop engine
* :mod:`aitoolbox.experiment` - experiment tracking
* :mod:`aitoolbox.cloud` - cloud operations for *AWS* and *Google Cloud*

All three AIToolbox components can be used independently when only some subset of functionality is desired in a project.
However, the greatest benefit of AIToolbox comes when all components are used together in unison in order to ease
the process of PyTorch model training and experiment tracking as much as possible.
Most of this top-level API is exposed to the user via the functionality implemented in :mod:`aitoolbox.torchtrain`.

To learn more about each of AIToolbox components have a look at the corresponding documentation sections:

* :doc:`torchtrain`
* :doc:`experiment`
* :doc:`cloud`
8 changes: 8 additions & 0 deletions docs/source/torchtrain.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
torchtrain
==========

.. toctree::
:maxdepth: 5
:hidden:

torchtrain/train_loop
torchtrain/model
torchtrain/callbacks
torchtrain/parallel
torchtrain/developer
4 changes: 4 additions & 0 deletions docs/source/torchtrain/callbacks.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Callbacks
=========


4 changes: 4 additions & 0 deletions docs/source/torchtrain/dev/message_passing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Message Passing Service
=======================


4 changes: 4 additions & 0 deletions docs/source/torchtrain/dev/model_prediction_store.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Model Prediction Store
======================


9 changes: 9 additions & 0 deletions docs/source/torchtrain/developer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Developer Guide
===============

.. toctree::
:maxdepth: 5
:hidden:

dev/message_passing
dev/model_prediction_store
6 changes: 6 additions & 0 deletions docs/source/torchtrain/model.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TTModel
=======

Torchtrain Model, TTModel for short


4 changes: 4 additions & 0 deletions docs/source/torchtrain/parallel.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Multi-GPU training
==================


4 changes: 4 additions & 0 deletions docs/source/torchtrain/train_loop.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Train Loop
==========


0 comments on commit fa13df1

Please sign in to comment.