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
vllm_cscc
Commits
9bb38130
Unverified
Commit
9bb38130
authored
Oct 12, 2025
by
Chendi.Xue
Committed by
GitHub
Oct 12, 2025
Browse files
[Bugfix] Fix GPU_ID issue in test script (#26442)
Signed-off-by:
Chendi Xue
<
chendi.xue@intel.com
>
parent
b91d8db8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
tests/v1/kv_connector/nixl_integration/run_accuracy_test.sh
tests/v1/kv_connector/nixl_integration/run_accuracy_test.sh
+12
-1
No files found.
tests/v1/kv_connector/nixl_integration/run_accuracy_test.sh
View file @
9bb38130
...
@@ -101,6 +101,12 @@ run_tests_for_model() {
...
@@ -101,6 +101,12 @@ run_tests_for_model() {
for
i
in
$(
seq
0
$((
NUM_PREFILL_INSTANCES-1
))
)
;
do
for
i
in
$(
seq
0
$((
NUM_PREFILL_INSTANCES-1
))
)
;
do
# Calculate GPU ID - we'll distribute across available GPUs
# Calculate GPU ID - we'll distribute across available GPUs
GPU_ID
=
$((
i
%
$(
get_num_gpus
)
))
GPU_ID
=
$((
i
%
$(
get_num_gpus
)
))
NEXT_GPU
=
${
GPU_ID
}
# If PREFILLER_TP_SIZE is more than 1
for
((
j
=
1
;
j < PREFILLER_TP_SIZE
;
j++
))
;
do
NEXT_GPU
=
$((
(
GPU_ID
+
j
)
%
$(
get_num_gpus
)
))
GPU_ID
=
"
${
GPU_ID
}
,
${
NEXT_GPU
}
"
done
# Calculate port number (base port + instance number)
# Calculate port number (base port + instance number)
PORT
=
$((
8100
+
i
))
PORT
=
$((
8100
+
i
))
...
@@ -136,7 +142,12 @@ run_tests_for_model() {
...
@@ -136,7 +142,12 @@ run_tests_for_model() {
# Start decode instances
# Start decode instances
for
i
in
$(
seq
0
$((
NUM_DECODE_INSTANCES-1
))
)
;
do
for
i
in
$(
seq
0
$((
NUM_DECODE_INSTANCES-1
))
)
;
do
# Calculate GPU ID - we'll distribute across available GPUs, starting from after prefill GPUs
# Calculate GPU ID - we'll distribute across available GPUs, starting from after prefill GPUs
GPU_ID
=
$((
(
i
+
NUM_PREFILL_INSTANCES
)
%
$(
get_num_gpus
)
))
GPU_ID
=
$((
(
i
+
NEXT_GPU
+
1
)
%
$(
get_num_gpus
)
))
# If DECODER_TP_SIZE is more than 1
for
((
j
=
1
;
j < DECODER_TP_SIZE
;
j++
))
;
do
NEXT_GPU
=
$((
(
GPU_ID
+
j
)
%
$(
get_num_gpus
)
))
GPU_ID
=
"
${
GPU_ID
}
,
${
NEXT_GPU
}
"
done
# Calculate port number (base port + instance number)
# Calculate port number (base port + instance number)
PORT
=
$((
8200
+
i
))
PORT
=
$((
8200
+
i
))
# Calculate side channel port
# Calculate side channel port
...
...
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