[Doc] Update pip install commands for Cuda12 (#26344)
This commit is contained in:
@@ -25,6 +25,16 @@ pip install uv
|
|||||||
uv pip install sglang
|
uv pip install sglang
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The major version of Cuda is 13 by default. To install sglang under Cuda 12 with pip or uv, please try the following commands:
|
||||||
|
```bash Command
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install uv
|
||||||
|
uv pip install sglang
|
||||||
|
uv pip install --force-reinstall torch==2.11.0 torchaudio==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu129
|
||||||
|
uv pip install --force-reinstall sglang-kernel --index-url https://docs.sglang.ai/whl/cu129/
|
||||||
|
uv pip install --force-reinstall sgl-deep-gemm --index-url https://docs.sglang.ai/whl/cu129/ --no-deps
|
||||||
|
```
|
||||||
|
|
||||||
### Quick fixes to common problems
|
### Quick fixes to common problems
|
||||||
- If you encounter `OSError: CUDA_HOME environment variable is not set`. Please set it to your CUDA install root with either of the following solutions:
|
- If you encounter `OSError: CUDA_HOME environment variable is not set`. Please set it to your CUDA install root with either of the following solutions:
|
||||||
1. Use `export CUDA_HOME=/usr/local/cuda-<your-cuda-version>` to set the `CUDA_HOME` environment variable.
|
1. Use `export CUDA_HOME=/usr/local/cuda-<your-cuda-version>` to set the `CUDA_HOME` environment variable.
|
||||||
|
|||||||
Reference in New Issue
Block a user