Skip to content

Commit 69f0640

Browse files
authored
Code quality improvements: version update, type annotation enhancement, and enum usage simplification (#27581)
Signed-off-by: Bradley <[email protected]>
1 parent 921e78f commit 69f0640

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

docs/deployment/docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ You can add any other [engine-args](../configuration/engine_args.md) you need af
4141
create a custom Dockerfile on top of the base image with an extra layer that installs them:
4242

4343
```Dockerfile
44-
FROM vllm/vllm-openai:v0.9.0
44+
FROM vllm/vllm-openai:v0.11.0
4545

4646
# e.g. install the `audio` optional dependencies
4747
# NOTE: Make sure the version of vLLM matches the base image!
48-
RUN uv pip install --system vllm[audio]==0.9.0
48+
RUN uv pip install --system vllm[audio]==0.11.0
4949
```
5050

5151
!!! tip

vllm/multimodal/profiling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def get_mm_max_contiguous_tokens(
368368
self,
369369
seq_len: int,
370370
mm_counts: Mapping[str, int] | None = None,
371-
):
371+
) -> Mapping[str, int]:
372372
"""
373373
Returns the maximum length of the multimodal (image placeholders+text)
374374
tokens, including any break/text tokens in-between image embeddings.

vllm/v1/core/sched/scheduler.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,12 @@ def __init__(
113113
# req_id -> Request
114114
self.requests: dict[str, Request] = {}
115115
# Scheduling policy
116-
if self.scheduler_config.policy == "priority":
117-
self.policy = SchedulingPolicy.PRIORITY
118-
elif self.scheduler_config.policy == "fcfs":
119-
self.policy = SchedulingPolicy.FCFS
120-
else:
116+
try:
117+
self.policy = SchedulingPolicy(self.scheduler_config.policy)
118+
except ValueError as e:
121119
raise ValueError(
122120
f"Unknown scheduling policy: {self.scheduler_config.policy}"
123-
)
121+
) from e
124122
# Priority queues for requests.
125123
self.waiting = create_request_queue(self.policy)
126124
self.running: list[Request] = []

0 commit comments

Comments
 (0)