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
f7244d1c
Unverified
Commit
f7244d1c
authored
Nov 05, 2025
by
jthomson04
Committed by
GitHub
Nov 05, 2025
Browse files
fix: Fix flaky KVBM disagg accuracy test (#4135)
Signed-off-by:
jthomson04
<
jwillthomson19@gmail.com
>
parent
3d036fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
tests/kvbm_integration/test_determinism_disagg.py
tests/kvbm_integration/test_determinism_disagg.py
+15
-5
No files found.
tests/kvbm_integration/test_determinism_disagg.py
View file @
f7244d1c
...
...
@@ -213,6 +213,21 @@ class LLMServerManager:
# Give frontend time to start up
time
.
sleep
(
5
)
model
=
os
.
environ
.
get
(
"KVBM_MODEL_ID"
,
"deepseek-ai/DeepSeek-R1-Distill-Llama-8B"
)
# Try to download the model.
print
(
"Attempting model download..."
)
try
:
subprocess
.
run
(
f
"pip install hf_transfer && HF_HUB_ENABLE_HF_TRANSFER=1 hf download
{
model
}
"
,
check
=
True
,
shell
=
True
,
)
except
subprocess
.
CalledProcessError
:
print
(
"Model download failed. Is this a locally stored model?"
)
# Launch decoder
self
.
process_decoder
=
subprocess
.
Popen
(
self
.
decoder_cmd
,
...
...
@@ -223,11 +238,6 @@ class LLMServerManager:
)
print
(
f
"Decoder process started with PID:
{
self
.
process_decoder
.
pid
}
"
)
# The prefiller and decoder cannot download the model simultaneously,
# because the Hugging Face rust library (invoked by fetch_llm) needs to hold an exclusive lock on the model files.
print
(
"Sleeping for 60 seconds to allow the decoder to download the model. "
)
time
.
sleep
(
60
)
# Launch prefiller
self
.
process_prefiller
=
subprocess
.
Popen
(
self
.
prefiller_cmd
,
...
...
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