Skip to content

Commit 0410c42

Browse files
authored
[CI] Refactor RL tests to reuse stable_test (#5516)
* [CI] Refactor RL tests to reuse stable_test
1 parent 2dc2ba4 commit 0410c42

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/ci_image_update.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,19 @@ jobs:
137137
FASTDEPLOY_WHEEL_URL: ${{ needs.build_sm8090.outputs.wheel_path }}
138138
MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData"
139139

140+
stable_test:
141+
name: Run Stable Tests
142+
needs: [ clone,build ]
143+
uses: ./.github/workflows/_stable_test.yml
144+
with:
145+
DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate
146+
FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }}
147+
FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }}
148+
MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData"
140149

141150
publish_pre_check:
142151
name: Publish Docker Images Pre Check
143-
needs: [ci_image_build, unittest_coverage,logprob_test,pre_ce_test,base_test]
152+
needs: [ci_image_build,unittest_coverage,logprob_test,pre_ce_test,base_test,stable_test]
144153
runs-on: [self-hosted, Docker-Build]
145154
steps:
146155
- name: Images Uploading

.github/workflows/pr_build_and_test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,13 @@ jobs:
7575
FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }}
7676
FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }}
7777
MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData"
78+
79+
stable_test:
80+
name: Run Stable Tests
81+
needs: [clone,build]
82+
uses: ./.github/workflows/_stable_test.yml
83+
with:
84+
DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleqa:fastdeploy-ciuse-cuda126-dailyupdate
85+
FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }}
86+
FASTDEPLOY_WHEEL_URL: ${{ needs.build.outputs.wheel_path }}
87+
MODEL_CACHE_DIR: "/ssd2/actions-runner/ModelData"

tests/ce/stable_cases/launch_model.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22
MODEL_PATH="${1}/TP2"
3-
FD_API_PORT=${FD_API_PORT:-8000}
4-
FD_ENGINE_QUEUE_PORT=${FD_ENGINE_QUEUE_PORT:-8001}
5-
FD_METRICS_PORT=${FD_METRICS_PORT:-8002}
6-
FD_CACHE_QUEUE_PORT=${FD_CACHE_QUEUE_PORT:-8003}
3+
FD_API_PORT=${FD_API_PORT:-8180}
4+
FD_ENGINE_QUEUE_PORT=${FD_ENGINE_QUEUE_PORT:-8181}
5+
FD_METRICS_PORT=${FD_METRICS_PORT:-8182}
6+
FD_CACHE_QUEUE_PORT=${FD_CACHE_QUEUE_PORT:-8183}
77

88

99

@@ -36,7 +36,6 @@ python -m fastdeploy.entrypoints.openai.api_server \
3636
--engine-worker-queue-port ${FD_ENGINE_QUEUE_PORT} \
3737
--metrics-port ${FD_METRICS_PORT} \
3838
--cache-queue-port ${FD_CACHE_QUEUE_PORT} \
39-
--quantization wint8 \
4039
--max-model-len 32768 \
4140
--max-num-seqs 1 \
4241
--gpu-memory-utilization 0.9 \

0 commit comments

Comments
 (0)