Skip to content

[INTEL_HPU] add e2e auto test cases #10108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2025
Merged

Conversation

FocusLuo
Copy link
Contributor

unset FLAGS_selected_intel_hpus
export GC_KERNEL_PATH=/workspace/pdpd_automation/repo/PaddleCustomDevice/backends/intel_hpu/build/libcustom_tpc_perf_lib.so:/usr/lib/habanalabs/libtpc_kernels.so

python e2e-test-run.py --context pr --data /data/ckpt/ --filter stable --device intel_hpu --junit test_result.xml --platform gaudi2d python e2e-test-run.py --context bat --data /data/ckpt/ --filter stable --device intel_hpu --junit test_result.xml --platform gaudi2d python e2e-test-run.py --context sanity --data /data/ckpt/ --filter stable --device intel_hpu --junit test_result.xml --platform gaudi2d python e2e-test-run.py --context sanity --data /data/ckpt/ --filter stable --device intel_hpu:2 --junit test_result.xml --platform gaudi2d

export PYTHONPATH=$PYTHONPATH:/workspace/pdpd_automation/repo/PaddleNLP/ export FLAGS_intel_hpu_execution_queue_size=10
python export_model.py --model_name_or_path /data/ckpt/meta-llama/Llama-2-7b-chat/ --inference_model --output_path ./inference --dtype bfloat16 --device intel_hpu python e2e-test-run.py --context sanity --data /data/ckpt/ --filter stable --device intel_hpu:2 --mode static --junit test_result.xml --platform gaudi2d

Copy link

paddle-bot bot commented Mar 12, 2025

Thanks for your contribution!

Copy link

codecov bot commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.97%. Comparing base (4710fbc) to head (207c85b).
Report is 148 commits behind head on develop.

Current head 207c85b differs from pull request most recent head 99f9e52

Please upload reports for the commit 99f9e52 to get more accurate results.

❌ Your project status has failed because the head coverage (49.97%) is below the target coverage (58.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10108      +/-   ##
===========================================
+ Coverage    49.93%   49.97%   +0.04%     
===========================================
  Files          761      757       -4     
  Lines       124178   122498    -1680     
===========================================
- Hits         62005    61219     -786     
+ Misses       62173    61279     -894     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

FocusLuo added 2 commits April 7, 2025 08:52
unset FLAGS_selected_intel_hpus
export GC_KERNEL_PATH=/workspace/pdpd_automation/repo/\
PaddleCustomDevice/backends/intel_hpu/build/\
libcustom_tpc_perf_lib.so:/usr/lib/habanalabs/libtpc_kernels.so

python e2e-test-run.py --context pr --data /data/ckpt/ \
  --filter stable --device intel_hpu --junit \
  test_result.xml --platform gaudi2d
python e2e-test-run.py --context bat --data /data/ckpt/ \
  --filter stable --device intel_hpu --junit \
  test_result.xml --platform gaudi2d
python e2e-test-run.py --context sanity --data \
  /data/ckpt/ --filter stable --device \
  intel_hpu --junit test_result.xml --platform gaudi2d

python e2e-test-run.py --context sanity \
  --data /data/ckpt/ --filter stable \
  --device intel_hpu:2 --junit test_result.xml --platform gaudi2d

export PYTHONPATH=$PYTHONPATH:/workspace/pdpd_automation/repo/PaddleNLP/
export FLAGS_intel_hpu_execution_queue_size=10
python export_model.py --model_name_or_path \
  /data/ckpt/meta-llama/Llama-2-7b-chat/ \
  --inference_model --output_path ./inference \
  --dtype bfloat16 --device intel_hpu
python e2e-test-run.py --context sanity --data \
  /data/ckpt/ --filter stable --device intel_hpu:2 \
  --mode static --junit test_result.xml --platform gaudi2d

Signed-off-by: Luo, Focus <[email protected]>
@FocusLuo
Copy link
Contributor Author

PDPD pdpd paddlenlp E2E stable test cases: COMPLETED

Testcase: Llama-2-7b-chat-1024-1024-2048-1-sampling-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-1-greedy_search-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-1-beam_search-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-16-sampling-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-16-greedy_search-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-16-beam_search-dynamic passed
Testcase: Llama-2-13b-chat-1024-1024-2048-1-greedy_search-dynamic passed
Testcase: Llama-2-13b-chat-1024-1024-2048-16-greedy_search-dynamic passed
Passed tests: 8
Failed tests: 0
Skipped tests: 0

PDPD pdpd paddlenlp E2E multi-prompts stable test cases: COMPLETED

Testcase: Llama-2-7b-chat-1024-1024-2048-1-sampling-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-1-greedy_search-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-1-beam_search-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-16-sampling-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-16-greedy_search-dynamic passed
Testcase: Llama-2-7b-chat-1024-1024-2048-16-beam_search-dynamic passed
Testcase: Llama-2-13b-chat-1024-1024-2048-1-greedy_search-dynamic passed
Testcase: Llama-2-13b-chat-1024-1024-2048-16-greedy_search-dynamic passed
Passed tests: 8
Failed tests: 0
Skipped tests: 0

Copy link
Contributor

@vivienfanghuagood vivienfanghuagood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FocusLuo
Copy link
Contributor Author

@vivienfanghuagood @ZHUI
May I get your help to do merge for this PR?
thanks
Focus

@ZHUI ZHUI merged commit cd2d2dc into PaddlePaddle:develop May 14, 2025
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants