Skip to content

Commit 812dce6

Browse files
docs: Publishing Requirements (#17)
* First pass of fixes Signed-off-by: Andrew Schilling <aschilling@nvidia.com> * Markdown generation Signed-off-by: Andrew Schilling <aschilling@nvidia.com> * Adding overview Signed-off-by: Andrew Schilling <aschilling@nvidia.com> * API Cleanup Signed-off-by: Andrew Schilling <aschilling@nvidia.com> * Name corrections Signed-off-by: Andrew Schilling <aschilling@nvidia.com> * pre-commit Signed-off-by: Andrew Schilling <aschilling@nvidia.com> * adjusting .gitignore Signed-off-by: Andrew Schilling <aschilling@nvidia.com> --------- Signed-off-by: Andrew Schilling <aschilling@nvidia.com>
1 parent c3e0d29 commit 812dce6

7 files changed

Lines changed: 69 additions & 21 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ instance/
8888

8989
# Sphinx documentation
9090
docs/_build
91-
docs/apidocs
9291

9392
# PyBuilder
9493
target/

docs/apidocs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# API Reference
2+
3+
NeMo Emerging Optimizers API reference provides comprehensive technical documentation for all modules, classes, and functions.
4+
5+
```{toctree}
6+
:caption: API Documentation
7+
:hidden:
8+
9+
utils.md
10+
orthogonalized-optimizers.md
11+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
```{eval-rst}
12
.. role:: hidden
23
:class: hidden-section
34
@@ -28,3 +29,4 @@ emerging_optimizers.orthogonalized_optimizers
2829
.. autofunction:: newton_schulz
2930
.. autofunction:: newton_schulz_step
3031
.. autofunction:: newton_schulz_tp
32+
```

docs/utils.rst renamed to docs/apidocs/utils.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
```{eval-rst}
13
.. role:: hidden
24
:class: hidden-section
35
@@ -21,3 +23,4 @@ emerging_optimizers.utils
2123
~~~~~~~~~~~~~~~~~~~~~
2224
2325
.. autofunction:: get_pg_rank
26+
```

docs/conf.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# -- Project information -----------------------------------------------------
2828
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2929

30-
project = "Emerging Optimizers"
30+
project = "Emerging-Optimizers"
3131
copyright = "2025, NVIDIA Corporation"
3232
author = "NVIDIA Corporation"
3333
release = "0.1.0"
@@ -36,6 +36,7 @@
3636
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
3737

3838
extensions = [
39+
"myst_parser", # For our markdown docs
3940
"sphinx.ext.viewcode", # For adding a link to view source code in docs
4041
"sphinx.ext.doctest", # Allows testing in docstrings
4142
"sphinx.ext.napoleon", # For google style docstrings
@@ -47,7 +48,6 @@
4748
"sphinx.ext.todo",
4849
"sphinx.ext.coverage",
4950
"sphinx.ext.autosectionlabel",
50-
"sphinx_panels",
5151
"sphinx.ext.linkcode",
5252
]
5353

@@ -61,7 +61,10 @@
6161
katex_prerender = False
6262
napoleon_use_ivar = True
6363
html_domain_indices = False
64-
source_suffix = ".rst"
64+
source_suffix = {
65+
".md": "markdown",
66+
".rst": "restructuredtext",
67+
}
6568
master_doc = "index"
6669
autodoc_docstring_signature = True
6770
intersphinx_mapping = {
@@ -93,6 +96,13 @@ def linkcode_resolve(domain, info):
9396

9497
html_theme = "nvidia_sphinx_theme"
9598
html_theme_options = {
99+
"icon_links": [
100+
{
101+
"name": "GitHub",
102+
"url": "https://github.com/NVIDIA-NeMo/Emerging-Optimizers/",
103+
"icon": "fa-brands fa-github",
104+
}
105+
],
96106
"switcher": {
97107
"json_url": "../versions1.json",
98108
"version_match": release,
@@ -109,7 +119,6 @@ def linkcode_resolve(domain, info):
109119
},
110120
}
111121
html_extra_path = ["project.json", "versions1.json"]
112-
113122
# Github links are now getting rate limited from the Github Actions
114123
linkcheck_ignore = [
115124
".*github\\.com.*",

docs/index.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Emerging Optimizers Documentation
2+
3+
## Overview
4+
5+
Emerging Optimizers is a research project focused on understanding and optimizing the algorithmic behavior of Shampoo class optimizers (Shampoo, SOAP, Muon, etc.) and their implications to performance of GPU systems in LLM training.
6+
7+
:::{note}
8+
Emerging-Optimizers is under active development. All APIs are experimental and subject to change. New features, improvements, and documentation updates are released regularly. Your feedback and contributions are welcome, and we encourage you to follow along as new updates roll out.
9+
:::
10+
11+
## Installation
12+
13+
### Prerequisites
14+
15+
- Python 3.12 or higher
16+
- PyTorch 2.0 or higher
17+
18+
### Install from Source
19+
20+
```bash
21+
git clone https://github.com/NVIDIA-NeMo/Emerging-Optimizers.git
22+
cd Emerging-Optimizers
23+
pip install .
24+
```
25+
26+
## User guide
27+
28+
Coming soon.
29+
30+
31+
32+
```{toctree}
33+
:caption: 🛠️ Development
34+
:hidden:
35+
36+
documentation.md
37+
apidocs/index.md
38+
```
39+
40+

docs/index.rst

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)