[CI][NPU]: Add nightly performance test for NPU - qwen3-omni/wan2.2/qwen-image-edit-2511 (#5339)
Signed-off-by: Weiming Liao <liaowm5@gmail.com> Co-authored-by: wangyu <53896905+yenuo26@users.noreply.github.com>
This commit is contained in:
1 parent
d3e0171cd7
commit
f2c5152df0
8 files changed
+114
-26
No files matched your search
@@ -1,25 +1,59 @@
|
|||||||
steps:
|
steps:
|
||||||
- group: ":card_index_dividers: Diffusion X2V Model Test"
|
- group: ":card_index_dividers: Omni Model Test"
|
||||||
key: nightly-diffusion-x2v-group
|
key: nightly-omni-test-group
|
||||||
depends_on: upload-nightly-pipeline
|
depends_on: upload-nightly-pipeline
|
||||||
if: >-
|
if: >-
|
||||||
build.env("NIGHTLY") == "1" ||
|
build.env("NIGHTLY") == "1" ||
|
||||||
build.pull_request.labels includes "nightly-test" ||
|
build.pull_request.labels includes "nightly-test" ||
|
||||||
build.pull_request.labels includes "diffusion-x2v-test"
|
build.pull_request.labels includes "omni-test"
|
||||||
steps:
|
steps:
|
||||||
- label: ":full_moon: Diffusion X2V · Function Test"
|
- label: ":full_moon: Omni · Perf Test · No Async Chunk"
|
||||||
mirror_hardwares: a2b3_npu_4
|
key: nightly-omni-performance-no-async-chunk
|
||||||
|
timeout_in_minutes: 180
|
||||||
|
mirror_hardwares: a3_npu_4
|
||||||
env:
|
env:
|
||||||
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
|
VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1"
|
||||||
HF_TOKEN: "${HF_TOKEN}"
|
HF_TOKEN: "${HF_TOKEN}"
|
||||||
commands:
|
commands:
|
||||||
- pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k npu_i2v --run-level "full_model"
|
- export BENCHMARK_DIR=tests/dfx/perf/results
|
||||||
|
- |
|
||||||
|
set +e
|
||||||
|
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py -m npu --test-config-file tests/dfx/perf/tests/test_qwen3_omni_no_async_chunk.json
|
||||||
|
EXIT=$$?
|
||||||
|
buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
|
||||||
|
exit $$EXIT
|
||||||
|
- label: ":full_moon: Omni · Perf Test · Async Chunk"
|
||||||
|
key: nightly-omni-performance-async-chunk
|
||||||
|
timeout_in_minutes: 180
|
||||||
|
mirror_hardwares: a3_npu_4
|
||||||
|
env:
|
||||||
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
|
VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1"
|
||||||
|
HF_TOKEN: "${HF_TOKEN}"
|
||||||
|
commands:
|
||||||
|
- export BENCHMARK_DIR=tests/dfx/perf/results
|
||||||
|
- |
|
||||||
|
set +e
|
||||||
|
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py -m npu --test-config-file tests/dfx/perf/tests/test_qwen3_omni_async_chunk.json
|
||||||
|
EXIT=$$?
|
||||||
|
buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
|
||||||
|
exit $$EXIT
|
||||||
|
- label: ":robot: Omni · MiniCPM-o 4.5 Test"
|
||||||
|
mirror_hardwares: a3_npu_2
|
||||||
|
env:
|
||||||
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
|
VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1"
|
||||||
|
HF_TOKEN: "${HF_TOKEN}"
|
||||||
|
commands:
|
||||||
|
- pytest -s -v tests/e2e/offline_inference/test_minicpmo_4_5.py tests/e2e/online_serving/test_minicpmo_4_5.py tests/e2e/online_serving/test_minicpmo_4_5_expansion.py -m 'full_model' --run-level 'full_model'
|
||||||
- group: ":card_index_dividers: TTS Model Test"
|
- group: ":card_index_dividers: TTS Model Test"
|
||||||
key: nightly-tts-test-group
|
key: nightly-tts-test-group
|
||||||
depends_on: upload-nightly-pipeline
|
depends_on: upload-nightly-pipeline
|
||||||
if: build.env("NIGHTLY") == "1" || build.pull_request.labels includes "nightly-test" || build.pull_request.labels includes "tts-test"
|
if: build.env("NIGHTLY") == "1" || build.pull_request.labels includes "nightly-test" || build.pull_request.labels includes "tts-test"
|
||||||
steps:
|
steps:
|
||||||
- label: ":full_moon: TTS · Perf Test"
|
- label: ":full_moon: TTS · Perf Test"
|
||||||
|
timeout_in_minutes: 180
|
||||||
mirror_hardwares: a3_npu_2
|
mirror_hardwares: a3_npu_2
|
||||||
env:
|
env:
|
||||||
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
@@ -34,25 +68,56 @@ steps:
|
|||||||
EXIT=$$?
|
EXIT=$$?
|
||||||
buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
|
buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
|
||||||
exit $$EXIT
|
exit $$EXIT
|
||||||
|
- group: ":card_index_dividers: Diffusion X2I(&A&T) Model Test"
|
||||||
- group: ":card_index_dividers: Omni Model Test"
|
key: nightly-diffusion-x2iat-group
|
||||||
key: nightly-omni-group
|
|
||||||
depends_on: upload-nightly-pipeline
|
depends_on: upload-nightly-pipeline
|
||||||
if: build.env("NIGHTLY") == "1" || build.pull_request.labels includes "nightly-test" || build.pull_request.labels includes "omni-test"
|
if: >-
|
||||||
|
build.env("NIGHTLY") == "1" ||
|
||||||
|
build.pull_request.labels includes "nightly-test" ||
|
||||||
|
build.pull_request.labels includes "diffusion-x2iat-test"
|
||||||
steps:
|
steps:
|
||||||
- label: ":robot: Omni · MiniCPM-o 4.5 Test"
|
- label: ":full_moon: Diffusion X2I(&A&T) · Perf Test · Qwen-Image-Edit-2511"
|
||||||
agents:
|
key: nightly-diffusion-x2iat-performance-qwen-image-edit-2511
|
||||||
queue: "ascend-a3"
|
timeout_in_minutes: 180
|
||||||
resource_class: "npu-2"
|
mirror_hardwares: a3_npu_8
|
||||||
image: "swr.cn-southwest-2.myhuaweicloud.com/modelfoundry/vllm-omni-ci-npu:${BUILDKITE_COMMIT}-a3"
|
|
||||||
plugins:
|
|
||||||
- kubernetes:
|
|
||||||
podSpecPatch:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: swr-secret
|
|
||||||
env:
|
env:
|
||||||
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1"
|
VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1"
|
||||||
HF_TOKEN: "${HF_TOKEN}"
|
HF_TOKEN: "${HF_TOKEN}"
|
||||||
|
DIFFUSION_ATTENTION_BACKEND: TORCH_SDPA
|
||||||
commands:
|
commands:
|
||||||
- pytest -s -v tests/e2e/offline_inference/test_minicpmo_4_5.py tests/e2e/online_serving/test_minicpmo_4_5.py tests/e2e/online_serving/test_minicpmo_4_5_expansion.py -m 'full_model' --run-level 'full_model'
|
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
|
||||||
|
- export CACHE_DIT_VERSION=1.3.0
|
||||||
|
- |
|
||||||
|
set +e
|
||||||
|
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py -m npu --test-config-file tests/dfx/perf/tests/test_qwen_image_edit_2511_vllm_omni.json
|
||||||
|
EXIT=$$?
|
||||||
|
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
|
||||||
|
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
|
||||||
|
exit $$EXIT
|
||||||
|
- group: ":card_index_dividers: Diffusion X2V Model Test"
|
||||||
|
key: nightly-diffusion-x2v-group
|
||||||
|
depends_on: upload-nightly-pipeline
|
||||||
|
if: >-
|
||||||
|
build.env("NIGHTLY") == "1" ||
|
||||||
|
build.pull_request.labels includes "nightly-test" ||
|
||||||
|
build.pull_request.labels includes "diffusion-x2v-test"
|
||||||
|
steps:
|
||||||
|
- label: ":full_moon: Diffusion X2V · Perf Test"
|
||||||
|
key: nightly-diffusion-x2v-performance
|
||||||
|
timeout_in_minutes: 180
|
||||||
|
mirror_hardwares: a3_npu_4
|
||||||
|
env:
|
||||||
|
VLLM_WORKER_MULTIPROC_METHOD: spawn
|
||||||
|
VLLM_ALLOW_LONG_MAX_MODEL_LEN: "1"
|
||||||
|
HF_TOKEN: "${HF_TOKEN}"
|
||||||
|
DIFFUSION_ATTENTION_BACKEND: TORCH_SDPA
|
||||||
|
commands:
|
||||||
|
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
|
||||||
|
- |
|
||||||
|
set +e
|
||||||
|
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py -m npu --test-config-file tests/dfx/perf/tests/test_wan22_i2v_vllm_omni.json
|
||||||
|
EXIT=$$?
|
||||||
|
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
|
||||||
|
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
|
||||||
|
exit $$EXIT
|
||||||
@@ -37,6 +37,10 @@ RUN source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
|
|||||||
"pyttsx3>=2.99" \
|
"pyttsx3>=2.99" \
|
||||||
"opencv-python>=4.12.0.88" \
|
"opencv-python>=4.12.0.88" \
|
||||||
"imageio[ffmpeg]>=0.6.0" \
|
"imageio[ffmpeg]>=0.6.0" \
|
||||||
|
"jiwer>=3.0.0" \
|
||||||
|
"zhon>=2.0.0" \
|
||||||
|
"zhconv>=1.4.2" \
|
||||||
|
"funasr>=1.0.0" \
|
||||||
"hyperpyyaml>=1.2.0" \
|
"hyperpyyaml>=1.2.0" \
|
||||||
"onnx>=1.16.0" \
|
"onnx>=1.16.0" \
|
||||||
"librosa>=0.10.0" \
|
"librosa>=0.10.0" \
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ RUN source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
|
|||||||
"pyttsx3>=2.99" \
|
"pyttsx3>=2.99" \
|
||||||
"opencv-python>=4.12.0.88" \
|
"opencv-python>=4.12.0.88" \
|
||||||
"imageio[ffmpeg]>=0.6.0" \
|
"imageio[ffmpeg]>=0.6.0" \
|
||||||
|
"jiwer>=3.0.0" \
|
||||||
|
"zhon>=2.0.0" \
|
||||||
|
"zhconv>=1.4.2" \
|
||||||
|
"funasr>=1.0.0" \
|
||||||
"hyperpyyaml>=1.2.0" \
|
"hyperpyyaml>=1.2.0" \
|
||||||
"onnx>=1.16.0" \
|
"onnx>=1.16.0" \
|
||||||
"librosa>=0.10.0" \
|
"librosa>=0.10.0" \
|
||||||
|
|||||||
@@ -355,6 +355,17 @@ def _kill_process_tree(pid: int) -> None:
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
def _resolve_offline_model(model: str) -> str:
|
||||||
|
"""Under HF_HUB_OFFLINE, resolve a HF repo id to its local snapshot dir."""
|
||||||
|
import huggingface_hub
|
||||||
|
|
||||||
|
if not model or os.path.isdir(model) or not huggingface_hub.constants.HF_HUB_OFFLINE:
|
||||||
|
return model
|
||||||
|
from huggingface_hub import snapshot_download
|
||||||
|
|
||||||
|
return snapshot_download(model, local_files_only=True)
|
||||||
|
|
||||||
|
|
||||||
class DiffusionServer:
|
class DiffusionServer:
|
||||||
"""Start a vLLM-Omni diffusion model server as a subprocess.
|
"""Start a vLLM-Omni diffusion model server as a subprocess.
|
||||||
|
|
||||||
@@ -372,7 +383,7 @@ class DiffusionServer:
|
|||||||
port: int | None = None,
|
port: int | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.server_cfg: dict[str, Any] = server_cfg
|
self.server_cfg: dict[str, Any] = server_cfg
|
||||||
self.model = server_cfg["model"]
|
self.model = _resolve_offline_model(server_cfg["model"])
|
||||||
self.serve_args = server_cfg["serve_args"]
|
self.serve_args = server_cfg["serve_args"]
|
||||||
self.host = "127.0.0.1"
|
self.host = "127.0.0.1"
|
||||||
self.port = port if port is not None else get_open_port(self.host)
|
self.port = port if port is not None else get_open_port(self.host)
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
{
|
{
|
||||||
"hardware_marks": {
|
"hardware_marks": {
|
||||||
"res": {
|
"res": {
|
||||||
"cuda": "H100"
|
"cuda": "H100",
|
||||||
|
"npu": "A3"
|
||||||
},
|
},
|
||||||
"num_cards": 2
|
"num_cards": 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
{
|
{
|
||||||
"hardware_marks": {
|
"hardware_marks": {
|
||||||
"res": {
|
"res": {
|
||||||
"cuda": "H100"
|
"cuda": "H100",
|
||||||
|
"npu": "A3"
|
||||||
},
|
},
|
||||||
"num_cards": 2
|
"num_cards": 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,8 @@
|
|||||||
{
|
{
|
||||||
"hardware_marks": {
|
"hardware_marks": {
|
||||||
"res": {
|
"res": {
|
||||||
"cuda": "H100"
|
"cuda": "H100",
|
||||||
|
"npu": "A3"
|
||||||
},
|
},
|
||||||
"num_cards": 4
|
"num_cards": 4
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,8 @@
|
|||||||
{
|
{
|
||||||
"hardware_marks": {
|
"hardware_marks": {
|
||||||
"res": {
|
"res": {
|
||||||
"cuda": "H100"
|
"cuda": "H100",
|
||||||
|
"npu": "A3"
|
||||||
},
|
},
|
||||||
"num_cards": 2
|
"num_cards": 2
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user