Skip to content

Commit

Permalink
Document Sync by Tina
Browse files Browse the repository at this point in the history
  • Loading branch information
Chivier committed Sep 16, 2024
1 parent 68ed6f6 commit d475314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions docs/stable/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/
# vLLM Patch
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`.

You may do that by running the following commands:
You may do that by running our script:
```bash
VLLM_PATH=$(python -c "import vllm; import os; print(os.path.dirname(os.path.abspath(vllm.__file__)))")
patch -p2 -d $VLLM_PATH < serverless_llm/store/vllm_patch/sllm_load.patch
./serverless_llm/store/patch.sh
```
3 changes: 1 addition & 2 deletions docs/stable/store/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
:::tip
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).
```bash
VLLM_PATH=$(python -c "import vllm; import os; print(os.path.dirname(os.path.abspath(vllm.__file__)))")
patch -p2 -d $VLLM_PATH < serverless_llm/store/vllm_patch/sllm_load.patch
./serverless_llm/store/patch.sh
```
:::

Expand Down

0 comments on commit d475314

Please sign in to comment.