sglang tp_dp_matrix: export MODEL_PATH and RESULT_BASE for bash -c subshells

export -f only exports the function definition, not the variables it
references. MODEL_PATH and RESULT_BASE were empty inside timeout bash -c
subshells, causing docker run -v ::ro invalid spec. Add explicit export
for all variables used by run_bench_serving().
This commit is contained in:
yy-fighting 2026-07-10 04:57:22 +00:00
parent 58a3616872
commit e62ab7c970

View File

@ -13,7 +13,7 @@ source "${SCRIPT_DIR}/../../scripts/common/platform.sh"
source "${SCRIPT_DIR}/config.env"
# Export variables used inside functions that are called via bash -c subshells.
export DATASET_PATH
export DATASET_PATH MODEL_PATH RESULT_BASE
RUN_ID="${RUN_ID:-$(date '+%Y%m%d-%H%M%S')}"
RESULT_BASE="${SCRIPT_DIR}/results"