[CI] 【Hackathon 9th Sprint No.18】NO.18 功能模块单测补充 -part by xunyoyo · Pull Request #5064 · PaddlePaddle/FastDeploy (original) (raw)
This file contains unit tests for the DeepEP buffer helpers and runners, including various test cases for buffer allocation, cleanup, and dispatching processes.
Motivation
NO.18 功能模块 fastdeploy/model_executor/layers/moe/ep.py 单测补充
Modifications
add tests/model_executor/test_ep.py
Usage or Command
tests/model_executor/test_ep.py:
python -m coverage run -m unittest tests.model_executor.test_ep
&& python -m coverage report -m --include='fastdeploy/model_executor/layers/moe/ep.py'
Accuracy Tests
旧覆盖
File Stmts Miss Branch BrPart Cover(%) Missing
fastdeploy/model_executor/layers/moe/ep.py 208 208 58 0 0 17-646
tests/model_executor/test_ep.py:
Name Stmts Miss Cover Missing
fastdeploy/model_executor/layers/moe/ep.py 208 32 85% 25-26, 44-45, 49-50, 129, 175-178, 186, 267, 270, 279-299, 31 0, 346, 367, 381, 384, 468, 472, 475, 478, 481, 528, 562, 620, 636
TOTAL 208 32 85%
覆盖 ++176 行
Checklist
- Add at least a tag in the PR title.
- Tag list: [
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]] - You can add new tags based on the PR content, but the semantics must be clear.
- Tag list: [
- Format your code, run
pre-commitbefore commit. - Add unit tests. Please write the reason in this PR if no unit tests.
- Provide accuracy results.
- If the current PR is submitting to the
releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.