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:
parent
58a3616872
commit
e62ab7c970
@ -13,7 +13,7 @@ source "${SCRIPT_DIR}/../../scripts/common/platform.sh"
|
|||||||
source "${SCRIPT_DIR}/config.env"
|
source "${SCRIPT_DIR}/config.env"
|
||||||
|
|
||||||
# Export variables used inside functions that are called via bash -c subshells.
|
# 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')}"
|
RUN_ID="${RUN_ID:-$(date '+%Y%m%d-%H%M%S')}"
|
||||||
RESULT_BASE="${SCRIPT_DIR}/results"
|
RESULT_BASE="${SCRIPT_DIR}/results"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user