Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
f3e3d94a
Unverified
Commit
f3e3d94a
authored
Jul 22, 2025
by
Alec
Committed by
GitHub
Jul 22, 2025
Browse files
refactor: vLLM to new Python UX (#1983)
Co-authored-by:
Graham King
<
grahamk@nvidia.com
>
parent
9f2356cb
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
27 deletions
+3
-27
components/backends/vllm/src/dynamo/vllm/protocol.py
components/backends/vllm/src/dynamo/vllm/protocol.py
+0
-12
components/backends/vllm/src/dynamo/vllm/publisher.py
components/backends/vllm/src/dynamo/vllm/publisher.py
+0
-12
pyproject.toml
pyproject.toml
+1
-1
tests/serve/test_vllm.py
tests/serve/test_vllm.py
+2
-2
No files found.
examples/vllm/components
/protocol.py
→
components/backends/vllm/src/dynamo/vllm
/protocol.py
View file @
f3e3d94a
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
typing
import
Any
,
List
,
Optional
from
typing
import
Any
,
List
,
Optional
...
...
examples/vllm/components
/publisher.py
→
components/backends/vllm/src/dynamo/vllm
/publisher.py
View file @
f3e3d94a
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
typing
import
Optional
from
typing
import
Optional
...
...
pyproject.toml
View file @
f3e3d94a
...
@@ -79,7 +79,7 @@ requires = ["hatchling"]
...
@@ -79,7 +79,7 @@ requires = ["hatchling"]
build-backend
=
"hatchling.build"
build-backend
=
"hatchling.build"
[tool.hatch.build.targets.wheel]
[tool.hatch.build.targets.wheel]
packages
=
[
"deploy/sdk/src/dynamo"
,
"components/planner/src/dynamo"
,
"components/frontend/src/dynamo"
,
"components/backends/llama_cpp/src/dynamo"
,
"components/backends/mocker/src/dynamo"
,
"components/backends/trtllm/src/dynamo"
,
"components/backends/sglang/src/dynamo"
]
packages
=
[
"deploy/sdk/src/dynamo"
,
"components/planner/src/dynamo"
,
"components/frontend/src/dynamo"
,
"components/backends/llama_cpp/src/dynamo"
,
"components/backends/mocker/src/dynamo"
,
"components/backends/trtllm/src/dynamo"
,
"components/backends/sglang/src/dynamo"
,
"components/backends/vllm/src/dynamo"
]
# This section is for including the binaries in the wheel package
# This section is for including the binaries in the wheel package
# but doesn't make them executable scripts in the venv bin directory
# but doesn't make them executable scripts in the venv bin directory
...
...
tests/serve/test_vllm.py
View file @
f3e3d94a
...
@@ -186,7 +186,7 @@ class VLLMProcess(ManagedProcess):
...
@@ -186,7 +186,7 @@ class VLLMProcess(ManagedProcess):
vllm_configs
=
{
vllm_configs
=
{
"aggregated"
:
VLLMConfig
(
"aggregated"
:
VLLMConfig
(
name
=
"aggregated"
,
name
=
"aggregated"
,
directory
=
"/workspace/
example
s/vllm"
,
directory
=
"/workspace/
components/backend
s/vllm"
,
script_name
=
"agg.sh"
,
script_name
=
"agg.sh"
,
marks
=
[
pytest
.
mark
.
gpu_1
,
pytest
.
mark
.
vllm
],
marks
=
[
pytest
.
mark
.
gpu_1
,
pytest
.
mark
.
vllm
],
endpoints
=
[
"v1/chat/completions"
,
"v1/completions"
],
endpoints
=
[
"v1/chat/completions"
,
"v1/completions"
],
...
@@ -212,7 +212,7 @@ vllm_configs = {
...
@@ -212,7 +212,7 @@ vllm_configs = {
),
),
"disaggregated"
:
VLLMConfig
(
"disaggregated"
:
VLLMConfig
(
name
=
"disaggregated"
,
name
=
"disaggregated"
,
directory
=
"/workspace/
example
s/vllm"
,
directory
=
"/workspace/
components/backend
s/vllm"
,
script_name
=
"disagg.sh"
,
script_name
=
"disagg.sh"
,
marks
=
[
pytest
.
mark
.
gpu_2
,
pytest
.
mark
.
vllm
],
marks
=
[
pytest
.
mark
.
gpu_2
,
pytest
.
mark
.
vllm
],
endpoints
=
[
"v1/chat/completions"
,
"v1/completions"
],
endpoints
=
[
"v1/chat/completions"
,
"v1/completions"
],
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment