Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions docs/CN/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,29 @@ Lightllm 是一个纯python开发的推理框架,其中的算子使用triton
$ git clone https://github.com/ModelTC/lightllm.git
$ cd lightllm
$
$ # 安装lightllm的依赖 (cuda 12.8)
$ pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu124
$ # 安装lightllm的依赖 (CUDA 13.0)
$ pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu130
$
$ # 安装lightllm的依赖 (摩尔线程 GPU)
$ ./generate_requirements_musa.sh
$ pip install -r requirements-musa.txt
$
$ # 安装lightllm
$ python setup.py install
$ python setup.py install

使用 uv 安装
----------------

也可以使用 `uv <https://docs.astral.sh/uv/>`_ 安装 Lightllm:

.. code-block:: console

$ # 创建 Python 3.10 虚拟环境
$ uv venv --python 3.10
$ source .venv/bin/activate
$
$ # 安装 Lightllm 依赖 (CUDA 13.0)
$ uv pip install -r requirements.txt --torch-backend=cu130
$
$ # 安装 Lightllm
$ uv pip install -e .
23 changes: 20 additions & 3 deletions docs/EN/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,29 @@ You can also install Lightllm from source:
$ git clone https://github.com/ModelTC/lightllm.git
$ cd lightllm
$
$ # Install Lightllm dependencies (cuda 12.8)
$ pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu124
$ # Install Lightllm dependencies (CUDA 13.0)
$ pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu130
$
$ # Install Lightllm dependencies (Moore Threads GPU)
$ ./generate_requirements_musa.sh
$ pip install -r requirements-musa.txt
$
$ # Install Lightllm
$ python setup.py install
$ python setup.py install

Installation with uv
--------------------

You can also install Lightllm with `uv <https://docs.astral.sh/uv/>`_:

.. code-block:: console

$ # Create a new virtual environment with Python 3.10
$ uv venv --python 3.10
$ source .venv/bin/activate
$
$ # Install Lightllm dependencies (CUDA 13.0)
$ uv pip install -r requirements.txt --torch-backend=cu130
$
$ # Install Lightllm
$ uv pip install -e .