-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: skip probing for incompatible scenario (#879)
When determining the max available context length, vllm will generate dummy inputs with `max_num_batched_tokens` tokens and profiling peak VRAM usage. 1. skip probing for multi-gpu serving If tensor-parallelism is enabled, there are more than 1 gpu workers. However, we have no way to adjust the context length for profiling for these workers in vllm. 2. skip probing when chunked-prefill is enabled [chunked prefill](https://arxiv.org/pdf/2308.16369) is a feature to improve thoughput for long context serving (max_model_len > 32K). It makes the peak memory usage nonlinearly related to max_model_len. **Notes for Reviewers**: test case: - [x] single gpu with enough vram to run max-model-len - [x] single gpu, find max-model-len after several probing - [x] single gpu, unable to run with even small model len - [x] multi gpu - [x] chunked prefill enabled Signed-off-by: jerryzhuang <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters