yy-fighting 1482601ae5 Add num_prompts = 5×concurrency convention and update all experiments
- Document the rule in docs/EXPERIMENT_GUIDE.md section 7
- Update all config.env SCENARIOS to follow the 5x rule
- Migrate dsv4_h200_sglang, dsv4_h200_vllm, dsv4_p800_sglang
  from global NUM_PROMPTS to per-scenario num_prompts
- Keep long-context phase2 as exception (low counts documented)
- Add legacy 3-field fallback in run_bench.sh loops
2026-07-09 09:26:41 +00:00

31 lines
1.1 KiB
Bash

# Experiment-level configuration for dsv4_h200_sglang
# All values can be overridden via environment variables.
EXPERIMENT="${EXPERIMENT:-dsv4_h200_sglang}"
MODEL_NAME="${MODEL_NAME:-DeepSeek-V4-Flash}"
MODEL_PATH="${MODEL_PATH:-/data/models/DeepSeek-V4-Flash}"
SERVED_MODEL_NAME="${SERVED_MODEL_NAME:-deepseek-v4-flash}"
PORT="${PORT:-30006}"
# This experiment is a plain SGLang baseline. These values override the
# vllm-dspark defaults coming from platforms/nvidia_h200.env.
BACKEND="sglang"
ENGINE="sglang"
# Native virtual environments on the host.
VENV_SERVER="${VENV_SERVER:-/data/user1/yy/envs/sglang}"
VENV_CLIENT="${VENV_CLIENT:-/data/user1/yy/envs/sglang}"
# Benchmark scenarios: each element is "concurrency input_len output_len num_prompts".
# Following docs/EXPERIMENT_GUIDE.md: num_prompts = concurrency * 5.
if [[ -z "${SCENARIOS:-}" ]]; then
SCENARIOS=(
"32 512 256 160"
"128 512 256 640"
)
fi
# Legacy fallback: used only if SCENARIOS entries have 3 fields.
NUM_PROMPTS="${NUM_PROMPTS:-160}"
# Server start script bundled with this experiment.
SERVER_START_SCRIPT="${SCRIPT_DIR}/start_server.sh"