Skip to content

Commit 511657a

Browse files
authored
[Cherry-Pick][CI] Align logprobs test baselines with Paddle Update(#7481) (#7482)
1 parent be28f7c commit 511657a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/_logprob_test_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220
-d "{\"messages\": [{\"role\": \"user\", \"content\": \"1+1=?\"}], \"logprobs\": true}"
221221
set +e
222222
rm -rf ./baseline_output
223-
cp -r baseline_dev_0311/ERNIE-4.5-0.3B-Paddle ./baseline_output
223+
cp -r baseline_0419/ERNIE-4.5-0.3B-Paddle ./baseline_output
224224
LOGPROB_EXIT_CODE=0
225225
python3.10 lanucher.py --request_template TOKEN_LOGPROB --url http://localhost:${FD_API_PORT}/v1/chat/completions --case ./cases/demo.yaml --concurrency 1 --name demo --exe logprob || LOGPROB_EXIT_CODE=$?
226226
echo "LOGPROB_EXIT_CODE=${LOGPROB_EXIT_CODE}" > /workspace/exit_code.env

tests/e2e/4cards_cases/test_ernie_21b_tp1_dp4.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ def test_non_stream_with_logprobs(api_url):
609609

610610
base_path = os.getenv("MODEL_PATH")
611611
if base_path:
612-
base_file = os.path.join(base_path, "21b_tp1_dp4_logprobs_non_stream_static_baseline.txt")
612+
base_file = os.path.join(base_path, "21b_tp1_dp4_logprobs_non_stream_static_baseline_0419.txt")
613613
else:
614-
base_file = "21b_tp1_dp4_logprobs_non_stream_static_baseline.txt"
614+
base_file = "21b_tp1_dp4_logprobs_non_stream_static_baseline_0419.txt"
615615

616616
with open(base_file, "r", encoding="utf-8") as f:
617617
baseline = json.load(f)
@@ -647,9 +647,9 @@ def test_stream_with_logprobs(api_url):
647647

648648
base_path = os.getenv("MODEL_PATH")
649649
if base_path:
650-
base_file = os.path.join(base_path, "21b_tp1_dp4_logprobs_stream_static_baseline.txt")
650+
base_file = os.path.join(base_path, "21b_tp1_dp4_logprobs_stream_static_baseline_0419.txt")
651651
else:
652-
base_file = "21b_tp1_dp4_logprobs_stream_static_baseline.txt"
652+
base_file = "21b_tp1_dp4_logprobs_stream_static_baseline_0419.txt"
653653

654654
with open(base_file, "r", encoding="utf-8") as f:
655655
baseline = json.load(f)

tests/e2e/4cards_cases/test_ernie_21b_tp1_dp4_mtp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ def test_non_stream_with_logprobs(api_url):
516516
base_path = os.getenv("MODEL_PATH")
517517

518518
if base_path:
519-
base_file = os.path.join(base_path, "21b_tp1_dp4_mtp_logprobs_non_stream_static_baseline.txt")
519+
base_file = os.path.join(base_path, "21b_tp1_dp4_mtp_logprobs_non_stream_static_baseline_0419.txt")
520520
else:
521-
base_file = "21b_tp1_dp4_mtp_logprobs_non_stream_static_baseline.txt"
521+
base_file = "21b_tp1_dp4_mtp_logprobs_non_stream_static_baseline_0419.txt"
522522

523523
with open(base_file, "r", encoding="utf-8") as f:
524524
baseline = json.load(f)
@@ -555,9 +555,9 @@ def test_stream_with_logprobs(api_url):
555555
base_path = os.getenv("MODEL_PATH")
556556

557557
if base_path:
558-
base_file = os.path.join(base_path, "21b_tp1_dp4_mtp_logprobs_stream_static_baseline.txt")
558+
base_file = os.path.join(base_path, "21b_tp1_dp4_mtp_logprobs_stream_static_baseline_0419.txt")
559559
else:
560-
base_file = "21b_tp1_dp4_mtp_logprobs_stream_static_baseline.txt"
560+
base_file = "21b_tp1_dp4_mtp_logprobs_stream_static_baseline_0419.txt"
561561

562562
with open(base_file, "r", encoding="utf-8") as f:
563563
baseline = json.load(f)

0 commit comments

Comments
 (0)