Skip to content

Commit 41e622c

Browse files
authored
IO docs refine (intel#135)
1 parent f610706 commit 41e622c

File tree

157 files changed

+2246
-1311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+2246
-1311
lines changed

.azure-pipelines/scripts/codeScan/pyspelling/pyspelling_conf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ matrix:
77
- ${DICT_DIR}/lpot_dict.txt
88
output: ${DICT_DIR}/lpot_dict.dic
99
sources:
10-
- ${REPO_DIR}/docs/*
10+
- ${REPO_DIR}/docs/source/*.md
1111
- ${REPO_DIR}/*.md
1212
- ${REPO_DIR}/examples/**/*.md|!${REPO_DIR}/examples/pytorch/**/huggingface_models/**/*.md
1313
- ${REPO_DIR}/neural_compressor/**/*.md

.github/workflows/publish.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- name: Install dependencies
1616
run: |
17-
export PATH="$HOME/.local/bin:$PATH"
17+
export PATH="$HOME/.local/bin:$PATH/docs"
1818
sudo apt-get install -y python3-setuptools
19-
pip3 install --user -r sphinx-requirements.txt
19+
pip3 install --user -r docs/sphinx-requirements.txt
2020
- name: Build the docs
2121
run: |
2222
export PATH="$HOME/.local/bin:$PATH"
23+
cd docs/
2324
make html
2425
- name: Push the docs
2526
uses: peaceiris/actions-gh-pages@v3
2627
with:
2728
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
publish_dir: _build/html
29+
publish_dir: docs/_build/html
2930
publish_branch: latestHTML

Makefile

-34
This file was deleted.

README.md

+32-32
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Python version: 3.7, 3.8, 3.9, 3.10
4444
# Or install nightly full version from pip (including GUI)
4545
pip install -i https://test.pypi.org/simple/ neural-compressor-full
4646
```
47-
More installation methods can be found at [Installation Guide](./docs/installation_guide.md). Please check out our [FAQ](./docs/faq.md) for more details.
47+
More installation methods can be found at [Installation Guide](./docs/source/installation_guide.md). Please check out our [FAQ](./docs/source/faq.md) for more details.
4848

4949
## Getting Started
5050
### Quantization with Python API
@@ -71,7 +71,7 @@ Search for ```jupyter-lab-neural-compressor``` in the Extension Manager in Jupyt
7171
<img src="./neural_coder/extensions/screenshots/extmanager.png" alt="Extension" width="35%" height="35%">
7272
</a>
7373

74-
### Quantization with [GUI](./docs/bench.md)
74+
### Quantization with [GUI](./docs/source/bench.md)
7575
```shell
7676
# An ONNX Example
7777
pip install onnx==1.12.0 onnxruntime==1.12.1 onnxruntime-extensions
@@ -80,8 +80,8 @@ wget https://github.com/onnx/models/raw/main/vision/classification/resnet/model/
8080
# Start GUI
8181
inc_bench
8282
```
83-
<a target="_blank" href="./docs/imgs/INC_GUI.gif">
84-
<img src="./docs/imgs/INC_GUI.gif" alt="Architecture">
83+
<a target="_blank" href="./docs/source/_static/imgs/INC_GUI.gif">
84+
<img src="./docs/source/_static/imgs/INC_GUI.gif" alt="Architecture">
8585
</a>
8686

8787
## System Requirements
@@ -98,7 +98,7 @@ inc_bench
9898

9999
#### Intel® Neural Compressor quantized ONNX models support multiple hardware vendors through ONNX Runtime:
100100

101-
* Intel CPU, AMD/ARM CPU, and NVidia GPU. Please refer to the validated model [list](./docs/validated_model_list.md#Validated-ONNX-QDQ-INT8-models-on-multiple-hardware-through-ONNX-Runtime).
101+
* Intel CPU, AMD/ARM CPU, and NVidia GPU. Please refer to the validated model [list](./docs/source/validated_model_list.md#Validated-ONNX-QDQ-INT8-models-on-multiple-hardware-through-ONNX-Runtime).
102102

103103
### Validated Software Environment
104104

@@ -146,11 +146,11 @@ inc_bench
146146
> Set the environment variable ``TF_ENABLE_ONEDNN_OPTS=1`` to enable oneDNN optimizations if you are using TensorFlow v2.6 to v2.8. oneDNN is the default for TensorFlow v2.9.
147147
148148
### Validated Models
149-
Intel® Neural Compressor validated 420+ [examples](./examples) for quantization with a performance speedup geomean of 2.2x and up to 4.2x on VNNI while minimizing accuracy loss. Over 30 pruning and knowledge distillation samples are also available. More details for validated models are available [here](docs/validated_model_list.md).
149+
Intel® Neural Compressor validated 420+ [examples](./examples) for quantization with a performance speedup geomean of 2.2x and up to 4.2x on VNNI while minimizing accuracy loss. Over 30 pruning and knowledge distillation samples are also available. More details for validated models are available [here](./docs/source/validated_model_list.md).
150150

151151
<div style = "width: 77%; margin-bottom: 2%;">
152-
<a target="_blank" href="./docs/imgs/release_data.png">
153-
<img src="./docs/imgs/release_data.png" alt="Architecture" width=800 height=500>
152+
<a target="_blank" href="./docs/source/_static/imgs/release_data.png">
153+
<img src="./docs/source/_static/imgs/release_data.png" alt="Architecture" width=800 height=500>
154154
</a>
155155
</div>
156156

@@ -164,10 +164,10 @@ Intel® Neural Compressor validated 420+ [examples](./examples) for quantization
164164
</thead>
165165
<tbody>
166166
<tr>
167-
<td colspan="3" align="center"><a href="docs/design.md">Architecture</a></td>
167+
<td colspan="3" align="center"><a href="./docs/source/design.md">Architecture</a></td>
168168
<td colspan="2" align="center"><a href="https://github.com/intel/neural-compressor/tree/master/examples">Examples</a></td>
169-
<td colspan="2" align="center"><a href="docs/bench.md">GUI</a></td>
170-
<td colspan="2" align="center"><a href="docs/api-introduction.md">APIs</a></td>
169+
<td colspan="2" align="center"><a href="./docs/source/bench.md">GUI</a></td>
170+
<td colspan="2" align="center"><a href="./docs/source/api-introduction.md">APIs</a></td>
171171
</tr>
172172
<tr>
173173
<td colspan="5" align="center"><a href="https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-ai-linux/top.html">Intel oneAPI AI Analytics Toolkit</a></td>
@@ -181,10 +181,10 @@ Intel® Neural Compressor validated 420+ [examples](./examples) for quantization
181181
</thead>
182182
<tbody>
183183
<tr>
184-
<td colspan="2" align="center"><a href="docs/transform.md">Transform</a></td>
185-
<td colspan="2" align="center"><a href="docs/dataset.md">Dataset</a></td>
186-
<td colspan="2" align="center"><a href="docs/metric.md">Metric</a></td>
187-
<td colspan="3" align="center"><a href="docs/objective.md">Objective</a></td>
184+
<td colspan="2" align="center"><a href="./docs/source/transform.md">Transform</a></td>
185+
<td colspan="2" align="center"><a href="./docs/source/dataset.md">Dataset</a></td>
186+
<td colspan="2" align="center"><a href="./docs/source/metric.md">Metric</a></td>
187+
<td colspan="3" align="center"><a href="./docs/source/objective.md">Objective</a></td>
188188
</tr>
189189
</tbody>
190190
<thead>
@@ -194,20 +194,20 @@ Intel® Neural Compressor validated 420+ [examples](./examples) for quantization
194194
</thead>
195195
<tbody>
196196
<tr>
197-
<td colspan="2" align="center"><a href="docs/quantization.md">Quantization</a></td>
198-
<td colspan="1" align="center"><a href="docs/pruning.md">Pruning(Sparsity)</a></td>
199-
<td colspan="2" align="center"><a href="docs/distillation.md">Knowledge Distillation</a></td>
200-
<td colspan="2" align="center"><a href="docs/mixed_precision.md">Mixed Precision</a></td>
201-
<td colspan="2" align="center"><a href="docs/orchestration.md">Orchestration</a></td>
197+
<td colspan="2" align="center"><a href="./docs/source/Quantization.md">Quantization</a></td>
198+
<td colspan="1" align="center"><a href="./docs/source/pruning.md">Pruning(Sparsity)</a></td>
199+
<td colspan="2" align="center"><a href="./docs/source/distillation.md">Knowledge Distillation</a></td>
200+
<td colspan="2" align="center"><a href="./docs/source/mixed_precision.md">Mixed Precision</a></td>
201+
<td colspan="2" align="center"><a href="./docs/source/orchestration.md">Orchestration</a></td>
202202
</tr>
203203
<tr>
204-
<td colspan="2" align="center"><a href="docs/benchmark.md">Benchmarking</a></td>
205-
<td colspan="3" align="center"><a href="docs/distributed.md">Distributed Training</a></td>
206-
<td colspan="2" align="center"><a href="docs/model_conversion.md">Model Conversion</a></td>
207-
<td colspan="2" align="center"><a href="docs/tensorboard.md">TensorBoard</a></td>
204+
<td colspan="2" align="center"><a href="./docs/source/benchmark.md">Benchmarking</a></td>
205+
<td colspan="3" align="center"><a href="./docs/source/distributed.md">Distributed Training</a></td>
206+
<td colspan="2" align="center"><a href="./docs/source/model_conversion.md">Model Conversion</a></td>
207+
<td colspan="2" align="center"><a href="./docs/source/tensorboard.md">TensorBoard</a></td>
208208
</tr>
209209
<tr>
210-
<td colspan="4" align="center"><a href="docs/distillation_quantization.md">Distillation for Quantization</a></td>
210+
<td colspan="4" align="center"><a href="./docs/source/distillation_quantization.md">Distillation for Quantization</a></td>
211211
<td colspan="5" align="center"><a href="neural_coder">Neural Coder</a></td>
212212
</tr>
213213

@@ -219,9 +219,9 @@ Intel® Neural Compressor validated 420+ [examples](./examples) for quantization
219219
</thead>
220220
<tbody>
221221
<tr>
222-
<td colspan="3" align="center"><a href="docs/adaptor.md">Adaptor</a></td>
223-
<td colspan="3" align="center"><a href="docs/tuning_strategies.md">Strategy</a></td>
224-
<td colspan="3" align="center"><a href="docs/reference_examples.md">Reference Example</a></td>
222+
<td colspan="3" align="center"><a href="./docs/source/adaptor.md">Adaptor</a></td>
223+
<td colspan="3" align="center"><a href="./docs/source/tuning_strategies.md">Strategy</a></td>
224+
<td colspan="3" align="center"><a href="./docs/source/reference_examples.md">Reference Example</a></td>
225225
</tr>
226226
</tbody>
227227
</table>
@@ -235,13 +235,13 @@ Intel® Neural Compressor validated 420+ [examples](./examples) for quantization
235235
* Neural Coder, a new plug-in for Intel Neural Compressor was covered by [Twitter](https://twitter.com/IntelDevTools/status/1583629213697212416), [LinkedIn](https://www.linkedin.com/posts/intel-software_oneapi-ai-deeplearning-activity-6989377309917007872-Dbzg?utm_source=share&utm_medium=member_desktop), and [Intel Developer Zone](https://mp.weixin.qq.com/s/LL-4eD-R0YagFgODM23oQA) from Intel, and [Twitter](https://twitter.com/IntelDevTools/status/1583629213697212416/retweets) and [LinkedIn](https://www.linkedin.com/feed/update/urn:li:share:6990377841435574272/) from Hugging Face. (Oct 2022)
236236
* Intel Neural Compressor successfully landed on [GCP](https://console.cloud.google.com/marketplace/product/bitnami-launchpad/inc-tensorflow-intel?project=verdant-sensor-286207), [AWS](https://aws.amazon.com/marketplace/pp/prodview-yjyh2xmggbmga#pdp-support), and [Azure](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/bitnami.inc-tensorflow-intel) marketplace. (Oct 2022)
237237

238-
> View our [full publication list](docs/publication_list.md).
238+
> View our [full publication list](./docs/source/publication_list.md).
239239
240240
## Additional Content
241241

242-
* [Release Information](docs/releases_info.md)
243-
* [Contribution Guidelines](docs/contributions.md)
244-
* [Legal Information](docs/legal_information.md)
242+
* [Release Information](./docs/source/releases_info.md)
243+
* [Contribution Guidelines](./docs/source/contributions.md)
244+
* [Legal Information](./docs/source/legal_information.md)
245245
* [Security Policy](SECURITY.md)
246246
* [Intel® Neural Compressor Website](https://intel.github.io/neural-compressor)
247247

_static/custom.css

-18
This file was deleted.

api-documentation/api-reference.rst

-16
This file was deleted.

api-documentation/benchmark-api.rst

-10
This file was deleted.

api-documentation/objective-api.rst

-13
This file was deleted.

api-documentation/pruning-api.rst

-10
This file was deleted.

api-documentation/quantization-api.rst

-7
This file was deleted.

docs/Makefile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = _build
9+
IMGDIR = source/_static/imgs
10+
BUILDIMGDIR = _build/html/imgs
11+
CODEIMGDIR = _build/html/_static
12+
13+
# Put it first so that "make" without argument is like "make help".
14+
help:
15+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
16+
17+
.PHONY: help Makefile
18+
19+
20+
html:
21+
# cp README.md to docs, modify response-link
22+
cp -f "../README.md" "./source/README.md"
23+
cp -f "./source/README.md" "./source/README.md.tmp"
24+
sed 's/.md/.html/g; s/.\/docs\/source\//.\//g; s/.\/neural_coder\/extensions\/screenshots/imgs/g; s/.\/docs\/source\/_static/..\/\/_static/g;' "./source/README.md.tmp" > "./source/README.md"
25+
rm -f "./source/README.md.tmp"
26+
27+
# make sure other png can display normal
28+
$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
29+
30+
cp source/_static/index.html $(BUILDDIR)/html/index.html
31+
mkdir -p "$(BUILDIMGDIR)"
32+
# common svg
33+
cp -f "$(CODEIMGDIR)/imgs/common/code.svg" "$(CODEIMGDIR)/images/view-page-source-icon.svg"
34+
cp -f "$(CODEIMGDIR)/imgs/common/right.svg" "$(CODEIMGDIR)/images/chevron-right-orange.svg"
35+
36+
cp "../neural_coder/extensions/screenshots/extmanager.png" "$(BUILDIMGDIR)/extmanager.png"
37+
cp "$(IMGDIR)/INC_GUI.gif" "$(BUILDIMGDIR)/INC_GUI.gif"
38+
cp "$(IMGDIR)/release_data.png" "$(BUILDIMGDIR)/release_data.png"
39+
40+
41+
# Catch-all target: route all unknown targets to Sphinx using the new
42+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
43+
%: Makefile
44+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/design.md

-15
This file was deleted.

0 commit comments

Comments
 (0)