ipex-llm/docs/readthedocs
Yuwen Hu cf6a620bae [LLM] BigDL-LLM Documentation Initial Version (#8833)
* Change order of LLM in header

* Some updates to footer

* Add BigDL-LLM index page and basic file structure

* Update index page for key features

* Add initial content for BigDL-LLM in 5 mins

* Improvement to footnote

* Add initial contents based on current contents we have

* Add initial quick links

* Small fix

* Rename file

* Hide cli section for now and change model supports to examples

* Hugging Face format -> Hugging Face transformers format

* Add placeholder for GPU supports

* Add GPU related content structure

* Add cpu/gpu installation initial contents

* Add initial contents for GPU supports

* Add image link to LLM index page

* Hide tips and known issues for now

* Small fix

* Update based on comments

* Small fix

* Add notes for Python 3.9

* Add placehoder optimize model & reveal CLI; small revision

* examples add gpu part

* Hide CLI part again for first version of merging

* add keyfeatures-optimize_model part (#1)

* change gif link to the ones hosted on github

* Small fix

---------

Co-authored-by: plusbang <binbin1.deng@intel.com>
Co-authored-by: binbin Deng <108676127+plusbang@users.noreply.github.com>
2023-09-06 15:38:45 +08:00
..
_build add docs 2021-10-12 11:06:44 +08:00
image Add Orca workflow image (#8049) 2023-04-14 15:38:32 +08:00
source [LLM] BigDL-LLM Documentation Initial Version (#8833) 2023-09-06 15:38:45 +08:00
make.bat add docs 2021-10-12 11:06:44 +08:00
Makefile add docs 2021-10-12 11:06:44 +08:00
README.md cicd: add pip mirror https://pypi.python.org/simple for bigdl related package (#6827) 2022-12-01 20:47:36 +08:00

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/gha-cicd-env/main/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, try conda install pandoc to resolve it.

Note

: The built files inside docs/readthedocs/_build/html dictionary 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 8000 through VSCode, so that you could reach http://localhost:8000/ normally as on your local machine.