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
5960947f
Unverified
Commit
5960947f
authored
Jun 25, 2025
by
Yan Ru Pei
Committed by
GitHub
Jun 25, 2025
Browse files
test: no seed in e2e tests (#1641)
parent
fc16a79b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
tests/serve/test_dynamo_serve.py
tests/serve/test_dynamo_serve.py
+18
-7
No files found.
tests/serve/test_dynamo_serve.py
View file @
5960947f
...
@@ -67,14 +67,14 @@ text_payload = Payload(
...
@@ -67,14 +67,14 @@ text_payload = Payload(
],
],
"max_tokens"
:
150
,
# Reduced from 500
"max_tokens"
:
150
,
# Reduced from 500
"temperature"
:
0.1
,
"temperature"
:
0.1
,
"seed"
:
0
,
#
"seed": 0,
},
},
payload_completions
=
{
payload_completions
=
{
"model"
:
"deepseek-ai/DeepSeek-R1-Distill-Llama-8B"
,
"model"
:
"deepseek-ai/DeepSeek-R1-Distill-Llama-8B"
,
"prompt"
:
text_prompt
,
"prompt"
:
text_prompt
,
"max_tokens"
:
150
,
"max_tokens"
:
150
,
"temperature"
:
0.1
,
"temperature"
:
0.1
,
"seed"
:
0
,
#
"seed": 0,
},
},
repeat_count
=
10
,
repeat_count
=
10
,
expected_log
=
[],
expected_log
=
[],
...
@@ -257,12 +257,22 @@ class DynamoServeProcess(ManagedProcess):
...
@@ -257,12 +257,22 @@ class DynamoServeProcess(ManagedProcess):
if
graph
.
config
:
if
graph
.
config
:
command
.
extend
([
"-f"
,
os
.
path
.
join
(
graph
.
directory
,
graph
.
config
)])
command
.
extend
([
"-f"
,
os
.
path
.
join
(
graph
.
directory
,
graph
.
config
)])
command
.
extend
([
"--Frontend.port"
,
str
(
port
)])
# Handle multimodal deployments differently
health_check_urls
=
[(
f
"http://localhost:
{
port
}
/v1/models"
,
self
.
_check_model
)]
if
"multimodal"
in
graph
.
directory
:
if
"multimodal"
in
graph
.
directory
:
# Set DYNAMO_PORT environment variable for multimodal
env
=
os
.
environ
.
copy
()
env
[
"DYNAMO_PORT"
]
=
str
(
port
)
health_check_urls
=
[]
health_check_urls
=
[]
# Don't add health check on port since multimodal uses DYNAMO_PORT
health_check_ports
=
[]
else
:
# Regular LLM deployments
command
.
extend
([
"--Frontend.port"
,
str
(
port
)])
health_check_urls
=
[
(
f
"http://localhost:
{
port
}
/v1/models"
,
self
.
_check_model
)
]
health_check_ports
=
[
port
]
env
=
None
self
.
port
=
port
self
.
port
=
port
...
@@ -271,11 +281,12 @@ class DynamoServeProcess(ManagedProcess):
...
@@ -271,11 +281,12 @@ class DynamoServeProcess(ManagedProcess):
timeout
=
timeout
,
timeout
=
timeout
,
display_output
=
True
,
display_output
=
True
,
working_dir
=
graph
.
directory
,
working_dir
=
graph
.
directory
,
health_check_ports
=
[
port
]
,
health_check_ports
=
health_check_
port
s
,
health_check_urls
=
health_check_urls
,
health_check_urls
=
health_check_urls
,
delayed_start
=
graph
.
delayed_start
,
delayed_start
=
graph
.
delayed_start
,
stragglers
=
[
"http"
],
stragglers
=
[
"http"
],
log_dir
=
request
.
node
.
name
,
log_dir
=
request
.
node
.
name
,
env
=
env
,
# Pass the environment variables
)
)
def
_check_model
(
self
,
response
):
def
_check_model
(
self
,
response
):
...
...
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