You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/stable/getting_started/installation.md
+33-11Lines changed: 33 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,35 +9,57 @@ sidebar_position: 0
9
9
- Python: 3.10
10
10
- GPU: compute capability 7.0 or higher
11
11
12
-
## Install with pip
13
-
TODO
12
+
## Installing with pip
13
+
```bash
14
+
# On the head node
15
+
conda create -n sllm python=3.10 -y
16
+
conda activate sllm
17
+
pip install serverless-llm
18
+
pip install serverless-llm-store
19
+
20
+
# On a worker node
21
+
conda create -n sllm-worker python=3.10 -y
22
+
conda activate sllm-worker
23
+
pip install serverless-llm[worker]
24
+
pip install serverless-llm-store
25
+
```
26
+
27
+
:::note
28
+
If you plan to use vLLM with ServerlessLLM, you need to apply our patch to the vLLM repository. Refer to the [vLLM Patch](#vllm-patch) section for more details.
29
+
:::
30
+
14
31
15
-
## Install from source
16
-
Install the package from source by running the following commands:
32
+
## Installing from source
33
+
To install the package from source, follow these steps:
# Installing `sllm_store` from source can be slow. We recommend using pip install.
54
+
pip install .
34
55
```
35
56
36
57
# vLLM Patch
37
-
To use vLLM with ServerlessLLM, we need to apply our patch `serverless_llm/store/vllm_patch/sllm_load.patch` to the vLLM repository. Currently, the patch is only tested with vLLM version `0.5.0`.
58
+
To use vLLM with ServerlessLLM, you need to apply our patch located at `sllm_store/vllm_patch/sllm_load.patch` to the vLLM repository. to the vLLM repository.
59
+
The patch has been tested with vLLM version `0.5.0.post1`.
38
60
39
-
You may do that by running our script:
61
+
You can apply the patch by running the following script:
To use ServerlessLLM as the load format for vLLM, you need to apply our patch `serverless_llm/store/vllm_patch/sllm_load.patch` to the installed vLLM library. Therefore, please ensure you have applied our `vLLM Patch` as instructed in [installation guide](../getting_started/installation.md).
114
+
To use ServerlessLLM as the load format for vLLM, you need to apply our patch `sllm_store/vllm_patch/sllm_load.patch` to the installed vLLM library. Therefore, please ensure you have applied our `vLLM Patch` as instructed in [installation guide](../getting_started/installation.md).
114
115
115
116
You may check the patch status by running the following command:
116
117
```bash
117
-
./serverless_llm/store/vllm_patch/check_patch.sh
118
+
./sllm_store/vllm_patch/check_patch.sh
118
119
```
119
120
If the patch is not applied, you can apply it by running the following command:
120
121
```bash
121
-
./serverless_llm/store/vllm_patch/patch.sh
122
+
./sllm_store/vllm_patch/patch.sh
122
123
```
123
124
To remove the applied patch, you can run the following command:
0 commit comments