Skip to content

Commit

Permalink
docs: fix build issues and add sub-sections (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhatele authored Mar 14, 2024
1 parent 8d7e47b commit 3a3c538
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 14 deletions.
16 changes: 16 additions & 0 deletions docs/axonn_style.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Parallel Software and Systems Group, University of Maryland.
# See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# The name of the Pygments (syntax highlighting) style to use.
from pygments.styles.default import DefaultStyle
from pygments.token import Generic


# modifications to the default style
class AxonnStyle(DefaultStyle):
styles = DefaultStyle.styles.copy()
background_color = "#f4f4f8"
styles[Generic.Output] = "#355"
styles[Generic.Prompt] = "bold #346ec9"
17 changes: 3 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
import os
import sys

# sys.path.insert(0, os.path.abspath('.'))

# The name of the Pygments (syntax highlighting) style to use.
from pygments.styles.default import DefaultStyle
from pygments.token import Generic

import pkg_resources


Expand Down Expand Up @@ -60,21 +56,14 @@
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# modifications to the default style
class AxonnStyle(DefaultStyle):
styles = DefaultStyle.styles.copy()
background_color = "#f4f4f8"
styles[Generic.Output] = "#355"
styles[Generic.Prompt] = "bold #346ec9"


dist = pkg_resources.Distribution(__file__)
sys.path.append(".") # make 'conf' module findable
ep = pkg_resources.EntryPoint.parse("axonn = conf:AxonnStyle", dist=dist)
dist._ep_map = {"pygments.styles": {"plugin1": ep}}
pkg_resources.working_set.add(dist)

pygments_style = "axonn"
sys.path.insert(0, os.path.abspath("."))
pygments_style = "axonn_style.AxonnStyle"


# -- Options for HTML output -------------------------------------------------
Expand Down
17 changes: 17 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

********
Examples
********

Training
============



Fine-tuning
===========



Inference
=========
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ AxoNN is a parallel framework for training deep neural networks.
:caption: User Docs

getting_started
user_guide
examples



##################
Expand Down
28 changes: 28 additions & 0 deletions docs/user_guide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
**********
User Guide
**********

Initializing AxoNN
==================

Tensor with Easy API
====================

Tensor using Advanced API
=====================================

Combining Tensor in AxoNN with PyTorch DDP
==========================================

Integration with other Parallel APIs
====================================

Huggingface
-----------

Pipelining in AxoNN
===================

Combining Pipelining in AxoNN with Data Parallelism
===================================================

0 comments on commit 3a3c538

Please sign in to comment.