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
13560ab2
Unverified
Commit
13560ab2
authored
Jul 23, 2025
by
Biswa Panda
Committed by
GitHub
Jul 23, 2025
Browse files
feat: sglang examples launch and deploy (#2068)
parent
7a0013be
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
2 deletions
+101
-2
components/backends/sglang/deploy/agg.yaml
components/backends/sglang/deploy/agg.yaml
+96
-0
components/backends/sglang/launch/agg.sh
components/backends/sglang/launch/agg.sh
+1
-1
components/backends/sglang/launch/agg_router.sh
components/backends/sglang/launch/agg_router.sh
+1
-1
container/Dockerfile.sglang
container/Dockerfile.sglang
+3
-0
No files found.
components/backends/sglang/deploy/agg.yaml
0 → 100644
View file @
13560ab2
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
apiVersion
:
nvidia.com/v1alpha1
kind
:
DynamoGraphDeployment
metadata
:
name
:
sglang-agg
spec
:
services
:
Frontend
:
livenessProbe
:
httpGet
:
path
:
/health
port
:
8000
initialDelaySeconds
:
60
periodSeconds
:
60
timeoutSeconds
:
30
failureThreshold
:
10
readinessProbe
:
exec
:
command
:
-
/bin/sh
-
-c
-
"
exit
0"
initialDelaySeconds
:
60
periodSeconds
:
60
timeoutSeconds
:
30
failureThreshold
:
10
dynamoNamespace
:
sglang-agg
componentType
:
main
replicas
:
1
resources
:
requests
:
cpu
:
"
5"
memory
:
"
10Gi"
limits
:
cpu
:
"
5"
memory
:
"
10Gi"
extraPodSpec
:
mainContainer
:
image
:
my-registry/sglang-runtime:my-tag
workingDir
:
/workspace/components/backends/sglang
command
:
[
"
sh"
,
"
-c"
]
args
:
-
"
python3
-m
dynamo.sglang.utils.clear_namespace
--namespace
dynamo
&&
python3
-m
dynamo.frontend"
SGLangDecodeWorker
:
envFromSecret
:
hf-token-secret
livenessProbe
:
exec
:
command
:
-
/bin/sh
-
-c
-
"
exit
0"
periodSeconds
:
60
timeoutSeconds
:
30
failureThreshold
:
10
readinessProbe
:
exec
:
command
:
-
/bin/sh
-
-c
-
"
exit
0"
initialDelaySeconds
:
60
periodSeconds
:
60
timeoutSeconds
:
30
failureThreshold
:
10
dynamoNamespace
:
sglang-agg
componentType
:
worker
replicas
:
1
resources
:
requests
:
cpu
:
"
10"
memory
:
"
20Gi"
gpu
:
"
1"
limits
:
cpu
:
"
10"
memory
:
"
20Gi"
gpu
:
"
1"
extraPodSpec
:
mainContainer
:
image
:
my-registry/sglang-runtime:my-tag
workingDir
:
/workspace/components/backends/sglang
args
:
-
"
python3"
-
"
-m"
-
"
dynamo.sglang.worker"
-
"
--model-path"
-
"
deepseek-ai/DeepSeek-R1-Distill-Llama-8B"
-
"
--served-model-name"
-
"
deepseek-ai/DeepSeek-R1-Distill-Llama-8B"
-
"
--page-size"
-
"
16"
-
"
--tp"
-
"
1"
-
"
--trust-remote-code"
-
"
--skip-tokenizer-init"
components/backends/sglang/launch/agg.sh
View file @
13560ab2
...
@@ -25,4 +25,4 @@ python3 -m dynamo.sglang.worker \
...
@@ -25,4 +25,4 @@ python3 -m dynamo.sglang.worker \
--page-size
16
\
--page-size
16
\
--tp
1
\
--tp
1
\
--trust-remote-code
\
--trust-remote-code
\
--skip-tokenizer-init
\
--skip-tokenizer-init
components/backends/sglang/launch/agg_router.sh
View file @
13560ab2
...
@@ -25,4 +25,4 @@ python3 -m dynamo.sglang.worker \
...
@@ -25,4 +25,4 @@ python3 -m dynamo.sglang.worker \
--page-size
16
\
--page-size
16
\
--tp
1
\
--tp
1
\
--trust-remote-code
\
--trust-remote-code
\
--skip-tokenizer-init
\
--skip-tokenizer-init
container/Dockerfile.sglang
View file @
13560ab2
...
@@ -463,6 +463,9 @@ RUN --mount=type=bind,source=./container/launch_message.txt,target=/workspace/la
...
@@ -463,6 +463,9 @@ RUN --mount=type=bind,source=./container/launch_message.txt,target=/workspace/la
sed '/^#\s/d' /workspace/launch_message.txt > ~/.launch_screen && \
sed '/^#\s/d' /workspace/launch_message.txt > ~/.launch_screen && \
echo "cat ~/.launch_screen" >> ~/.bashrc
echo "cat ~/.launch_screen" >> ~/.bashrc
# Once UX refactor is merged, we can remove these files
# Python components will have been pip installed and packaged in wheel
COPY components/ /workspace/components/
# Copy benchmarks, examples, and tests for CI
# Copy benchmarks, examples, and tests for CI
# TODO: Remove this once we have a functional CI image built on top of the runtime image
# TODO: Remove this once we have a functional CI image built on top of the runtime image
COPY tests /workspace/tests
COPY tests /workspace/tests
...
...
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