* add how to guide: * acclerate with jit_ipex * save and load jit, ipex, onnx, openvino * add these five above .nblink files ; * add index of sl files * clear all the output & fix the bug of title * remove extra blank indent * format the jupter with prettier * fix the bug of error words * add blank line before unorder list * * remove the normal inference in accelerate using jit/ipex; * add note to example why we should pass in the orginal model to get the optimized one in sl ipex * fix:new pip install shell cmd & indent improve |
||
|---|---|---|
| .. | ||
| _build | ||
| image | ||
| source | ||
| make.bat | ||
| Makefile | ||
| README.md | ||
BigDL Documentation
This is the repository for BigDL documentation, which is hosted at https://bigdl.readthedocs.io/en/latest/
Local build
1. Set up environment
To build BigDL documentation locally for testing purposes, it is recommended to create a conda environment with specified Python version:
conda create -n docs python=3.7
conda activate docs
Then inside BigDL/docs/readthedocs folder, install required packages:
cd docs/readthedocs
# for reproducing ReadtheDocs deployment environment
pip install --upgrade pip "setuptools<58.3.0"
pip install --upgrade pillow mock==1.0.1 "alabaster>=0.7,<0.8,!=0.7.5" commonmark==0.9.1 recommonmark==0.5.0 sphinx sphinx-rtd-theme "readthedocs-sphinx-ext<2.3"
# for other documentation related dependencies
wget https://raw.githubusercontent.com/analytics-zoo/BigDL/main/python/test/python-requirements/requirements-doc.txt
pip install -r requirements-doc.txt
Note
: When adding new sphinx extensions for our documentation, the requirements file located here should be modified.
2. Build the documentation
You can then build the documentation locally through:
make html
Tips: If you meet building error
Notebook error: Pandoc wasn't found, tryconda install pandocto resolve it.
Note
: The built files inside
docs/readthedocs/_build/htmldictionary should not be committed, they are only for testing purposes.
3. Test the documentation
To view the documentation locally, you could set up a testing server:
cd _build/html
python -m http.server 8000
The documentation can then be reached at http://localhost:8000/.
Note
: If you are setting up the testing server on a remote machine, it is recommended to forward port
8000through VSCode, so that you could reach http://localhost:8000/ normally as on your local machine.