Update vLLM version to 0.16.0 in quickstart and CUDA installation documentation, and adjust parameters in multimodal generation script for improved performance. Refactor request logging in serving_chat.py for better input tracking.
Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
This commit is contained in:
1 parent
f50cf07c74
commit
f24273dc03
4 files changed
+15
-20
No files matched your search
@@ -20,7 +20,7 @@ Therefore, it is recommended to install vLLM and vLLM-Omni with a **fresh new**
|
|||||||
|
|
||||||
vLLM-Omni is built based on vLLM. Please install it with command below.
|
vLLM-Omni is built based on vLLM. Please install it with command below.
|
||||||
```bash
|
```bash
|
||||||
uv pip install vllm==0.15.0 --torch-backend=auto
|
uv pip install vllm==0.16.0 --torch-backend=auto
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Installation of vLLM-Omni
|
#### Installation of vLLM-Omni
|
||||||
@@ -34,10 +34,10 @@ uv pip install vllm-omni
|
|||||||
# --8<-- [start:build-wheel-from-source]
|
# --8<-- [start:build-wheel-from-source]
|
||||||
|
|
||||||
#### Installation of vLLM
|
#### Installation of vLLM
|
||||||
If you do not need to modify source code of vLLM, you can directly install the stable 0.15.0 release version of the library
|
If you do not need to modify source code of vLLM, you can directly install the stable 0.16.0 release version of the library
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv pip install vllm==0.15.0 --torch-backend=auto
|
uv pip install vllm==0.16.0 --torch-backend=auto
|
||||||
```
|
```
|
||||||
|
|
||||||
The release 0.14.0 of vLLM is based on PyTorch 2.9.0 which requires CUDA 12.9 environment.
|
The release 0.14.0 of vLLM is based on PyTorch 2.9.0 which requires CUDA 12.9 environment.
|
||||||
@@ -56,11 +56,11 @@ If you want to check, modify or debug with source code of vLLM, install the libr
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/vllm-project/vllm.git
|
git clone https://github.com/vllm-project/vllm.git
|
||||||
cd vllm
|
cd vllm
|
||||||
git checkout v0.15.0
|
git checkout v0.16.0
|
||||||
```
|
```
|
||||||
Set up environment variables to get pre-built wheels. If there are internet problems, just download the whl file manually. And set `VLLM_PRECOMPILED_WHEEL_LOCATION` as your local absolute path of whl file.
|
Set up environment variables to get pre-built wheels. If there are internet problems, just download the whl file manually. And set `VLLM_PRECOMPILED_WHEEL_LOCATION` as your local absolute path of whl file.
|
||||||
```bash
|
```bash
|
||||||
export VLLM_PRECOMPILED_WHEEL_LOCATION=https://github.com/vllm-project/vllm/releases/download/v0.15.0/vllm-0.15.0-cp38-abi3-manylinux_2_31_x86_64.whl
|
export VLLM_PRECOMPILED_WHEEL_LOCATION=https://github.com/vllm-project/vllm/releases/download/v0.16.0/vllm-0.16.0-cp38-abi3-manylinux_2_31_x86_64.whl
|
||||||
```
|
```
|
||||||
Install vllm with command below (If you have no existing PyTorch).
|
Install vllm with command below (If you have no existing PyTorch).
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ uv venv --python 3.12 --seed
|
|||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
|
|
||||||
# On CUDA
|
# On CUDA
|
||||||
uv pip install vllm==0.15.0 --torch-backend=auto
|
uv pip install vllm==0.16.0 --torch-backend=auto
|
||||||
|
|
||||||
# On ROCm
|
# On ROCm
|
||||||
uv pip install vllm==0.15.0 --extra-index-url https://wheels.vllm.ai/rocm/0.15.0/rocm700
|
uv pip install vllm==0.16.0 --extra-index-url https://wheels.vllm.ai/rocm/0.16.0/rocm700
|
||||||
|
|
||||||
git clone https://github.com/vllm-project/vllm-omni.git
|
git clone https://github.com/vllm-project/vllm-omni.git
|
||||||
cd vllm-omni
|
cd vllm-omni
|
||||||
|
|||||||
+2
-2
@@ -337,8 +337,8 @@ def run_multimodal_generation(args, client: OpenAI) -> None:
|
|||||||
thinker_sampling_params = {
|
thinker_sampling_params = {
|
||||||
"temperature": 0.2,
|
"temperature": 0.2,
|
||||||
"top_p": 0.9,
|
"top_p": 0.9,
|
||||||
"top_k": -1,
|
"top_k": 1,
|
||||||
"max_tokens": 1200,
|
"max_tokens": 16384,
|
||||||
"repetition_penalty": 1.05,
|
"repetition_penalty": 1.05,
|
||||||
"logit_bias": {},
|
"logit_bias": {},
|
||||||
"seed": SEED,
|
"seed": SEED,
|
||||||
|
|||||||
@@ -527,18 +527,13 @@ class OmniOpenAIServingChat(OpenAIServingChat, AudioMixin):
|
|||||||
if self.request_logger is None:
|
if self.request_logger is None:
|
||||||
return
|
return
|
||||||
components = self._extract_prompt_components(inputs)
|
components = self._extract_prompt_components(inputs)
|
||||||
prompt = components.text
|
self.request_logger.log_inputs(
|
||||||
prompt_token_ids = components.token_ids
|
|
||||||
prompt_embeds = components.embeds
|
|
||||||
|
|
||||||
logger.info(
|
|
||||||
"Received request %s: prompt: %r, params_list: %s, prompt_token_ids: %s, prompt_embeds shape: %s, lora_request: %s.", # noqa: E501
|
|
||||||
request_id,
|
request_id,
|
||||||
prompt,
|
components.text,
|
||||||
params_list,
|
components.token_ids,
|
||||||
prompt_token_ids,
|
components.embeds,
|
||||||
prompt_embeds.shape if prompt_embeds is not None else None,
|
params=params_list,
|
||||||
lora_request,
|
lora_request=lora_request,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def chat_completion_stream_generator(
|
async def chat_completion_stream_generator(
|
||||||
|
|||||||
Reference in new issue
Block a user