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
6f0ee60d
Unverified
Commit
6f0ee60d
authored
Jun 03, 2025
by
ptarasiewiczNV
Committed by
GitHub
Jun 03, 2025
Browse files
feat: Add DSR1 configurations (#1298)
parent
ba16ed52
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
130 additions
and
3 deletions
+130
-3
examples/vllm_v1/README.md
examples/vllm_v1/README.md
+47
-0
examples/vllm_v1/configs/agg.yaml
examples/vllm_v1/configs/agg.yaml
+1
-1
examples/vllm_v1/configs/deepseek_r1/agg.yaml
examples/vllm_v1/configs/deepseek_r1/agg.yaml
+34
-0
examples/vllm_v1/configs/deepseek_r1/disagg.yaml
examples/vllm_v1/configs/deepseek_r1/disagg.yaml
+46
-0
examples/vllm_v1/configs/disagg.yaml
examples/vllm_v1/configs/disagg.yaml
+2
-2
No files found.
examples/vllm_v1/README.md
View file @
6f0ee60d
...
@@ -64,3 +64,50 @@ curl localhost:8000/v1/completions \
...
@@ -64,3 +64,50 @@ curl localhost:8000/v1/completions \
For more detailed explenations, refer to the main
[
LLM examples README
](
../llm/README.md
)
.
For more detailed explenations, refer to the main
[
LLM examples README
](
../llm/README.md
)
.
## Deepseek R1
To run DSR1 model please first follow the Ray setup from the
[
multinode documentation
](
../../docs/examples/multinode.md
)
.
### Aggregated Deployment
```
bash
cd
examples/vllm_v1
dynamo serve graphs.agg:Frontend
-f
configs/deepseek_r1/agg.yaml
```
### Disaggregated Deployment
To create frontend with a single decode worker:
```
bash
cd
examples/vllm_v1
dynamo serve graphs.agg:Frontend
-f
configs/deepseek_r1/disagg.yaml
```
To create a single decode worker:
```
bash
cd
examples/vllm_v1
dynamo serve components.worker:VllmDecodeWorker
-f
configs/deepseek_r1/disagg.yaml
```
To create a single prefill worker:
```
bash
cd
examples/vllm_v1
dynamo serve components.worker:VllmPrefillWorker
-f
configs/deepseek_r1/disagg.yaml
```
## Testing
Send a test request using curl:
```
bash
curl localhost:8000/v1/completions
\
-H
"Content-Type: application/json"
\
-d
'{
"model": "deepseek-ai/DeepSeek-R1",
"prompt": "In the heart of Eldoria...",
"stream": false,
"max_tokens": 30
}'
```
\ No newline at end of file
examples/vllm_v1/configs/agg.yaml
View file @
6f0ee60d
...
@@ -30,5 +30,5 @@ VllmDecodeWorker:
...
@@ -30,5 +30,5 @@ VllmDecodeWorker:
ServiceArgs
:
ServiceArgs
:
workers
:
1
workers
:
1
resources
:
resources
:
gpu
:
1
gpu
:
'
1'
common-configs
:
[
model
,
served_model_name
]
common-configs
:
[
model
,
served_model_name
]
examples/vllm_v1/configs/deepseek_r1/agg.yaml
0 → 100644
View file @
6f0ee60d
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# 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.
Common
:
model
:
deepseek-ai/DeepSeek-R1
served_model_name
:
deepseek-ai/DeepSeek-R1
Frontend
:
endpoint
:
dynamo.SimpleLoadBalancer.generate
port
:
8000
common-configs
:
[
served_model_name
]
SimpleLoadBalancer
:
enable_disagg
:
false
common-configs
:
[
model
,
served_model_name
]
VllmDecodeWorker
:
tensor_parallel_size
:
16
ServiceArgs
:
workers
:
1
resources
:
gpu
:
'
16'
common-configs
:
[
model
,
served_model_name
]
examples/vllm_v1/configs/deepseek_r1/disagg.yaml
0 → 100644
View file @
6f0ee60d
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# 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.
Common
:
model
:
deepseek-ai/DeepSeek-R1
kv_transfer_config
:
kv_connector
:
NixlConnector
kv_role
:
kv_both
served_model_name
:
deepseek-ai/DeepSeek-R1
Frontend
:
endpoint
:
dynamo.SimpleLoadBalancer.generate
port
:
8000
common-configs
:
[
served_model_name
]
SimpleLoadBalancer
:
enable_disagg
:
true
common-configs
:
[
model
,
kv_transfer_config
,
served_model_name
]
VllmPrefillWorker
:
tensor_parallel_size
:
16
ServiceArgs
:
workers
:
1
resources
:
gpu
:
'
16'
common-configs
:
[
model
,
kv_transfer_config
,
served_model_name
]
VllmDecodeWorker
:
tensor_parallel_size
:
16
ServiceArgs
:
workers
:
1
resources
:
gpu
:
'
16'
common-configs
:
[
model
,
kv_transfer_config
,
served_model_name
]
examples/vllm_v1/configs/disagg.yaml
View file @
6f0ee60d
...
@@ -31,7 +31,7 @@ VllmPrefillWorker:
...
@@ -31,7 +31,7 @@ VllmPrefillWorker:
ServiceArgs
:
ServiceArgs
:
workers
:
1
workers
:
1
resources
:
resources
:
gpu
:
1
gpu
:
'
1'
common-configs
:
[
model
,
kv-transfer-config
,
served_model_name
]
common-configs
:
[
model
,
kv-transfer-config
,
served_model_name
]
VllmDecodeWorker
:
VllmDecodeWorker
:
...
@@ -39,5 +39,5 @@ VllmDecodeWorker:
...
@@ -39,5 +39,5 @@ VllmDecodeWorker:
ServiceArgs
:
ServiceArgs
:
workers
:
1
workers
:
1
resources
:
resources
:
gpu
:
1
gpu
:
'
1'
common-configs
:
[
model
,
kv-transfer-config
,
served_model_name
]
common-configs
:
[
model
,
kv-transfer-config
,
served_model_name
]
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