[CI]【Hackathon 10th Spring No.32】load_weight_utils unit test#6740
Conversation
|
Thanks for your contribution! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6740 +/- ##
==========================================
Coverage ? 73.74%
==========================================
Files ? 399
Lines ? 55620
Branches ? 8766
==========================================
Hits ? 41015
Misses ? 11704
Partials ? 2901
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
40bc949 to
611b5c7
Compare
611b5c7 to
1718e25
Compare
- Pytest-style, single class, monkeypatch-based - 36 tests, 460 lines, 66% coverage (205/310 stmts) - develop baseline: 0% → PR: 66%, ratio 2.2x - No MagicMock, no unittest.TestCase
…o 83% - Add test_load_ep_checkpoint_basic: exercises EP checkpoint loading with minimal fixture - Add test_composite_ep_branch: covers EP path in load_composite_checkpoint - Add test_get_weight_iterator_unordered: covers unordered sharded safetensors path - Coverage: 66% → 83% (257/310 stmts)
dafef1a to
57cbd37
Compare
…ld standard (tmp_path, split tests)
57cbd37 to
b9f96a0
Compare
…tils - Add test_is_layers_grouped: test layers_are_grouped() with grouped, interleaved, and no-layer keys - Add test_save_model_bf16_cache: exercise save_model decorator with is_checkpoint_bf16=True - Add test_composite_checkpoint_ep: test load_composite_checkpoint use_ep=True branch - Add test_composite_checkpoint_rank_mismatch: test tp_size != rank_dirs ValueError - Add test_composite_checkpoint_kv_quant: test float8_e4m3fn kv_cache path - Add __main__ block for direct execution - Branch coverage: 72% -> 80%
7b887b3 to
51ccbf1
Compare
|
@luotao1 @CSWYF3634076 请review,谢谢! |
a9de20d to
e50efa5
Compare
Cover L237-247 (load_reordered_experts), L541 (pre-sharded checkpoint path), and L557 (empty state_dict ValueError). Delta: 139 → 151.
|
0.2⭐️ |
|
已合入,谢谢评审。 |
进展汇总(截至 2026-03-26)
✅ 已合入(确认 0.3⭐)
📊 覆盖率单测 — 7 PR 待审核(FastDeploy)
🔧 构建工具 — 5 PR 待审核
⚡ 内核优化 — 1 PR 待审核
🚀 模型实现 — 2 PR 待审核(FastDeploy)
🧪 PaddleMaterials 模型复现 — 3 PR 完整(RFC + 代码)
📋 FastDeploy 设计文档 — 3 PR 待审核
📈 总览
@CSWYF3634076 @luotao1 全部待审 PR 的 CI 已通过(仅 CI_HPU / iluvatar 基础设施除外)。No.47 MiniMax-M1 模型实现 PR 已添加(32/32 tests H20 ✅)。待审合计 30,200 CNY(@2000/⭐)。 |
|
@cloudforge1 It is recommended that you create an issue at https://github.com/PaddlePaddle/community/issues to track the progress. The comments under the original issue PaddlePaddle/Paddle#77429 have been deleted, as they would affect the automatic form updates by the bot. Thank you for your understanding. |
|
好的,已创建:PaddlePaddle/community#1282 |
Motivation
No.32 功能模块 fastdeploy/model_executor/load_weight_utils.py 单测补充
Modifications
add unittest tests/model_executor/test_load_weight_utils.py
develop 分支:覆盖率45%,Miss行数161(62, 83-84, 87, 97, 106-110, 120, 128, 150->160, 167-169, 198, 200, 205-210, 237-247, 254-376, 383-387, 408-421, 428-435, 442-446, 486-493, 497-517, 532-564)
当前PR:覆盖率97%,Miss行数10
完成单测覆盖行数 161-10 = 151
Usage or Command
Accuracy Tests
no need
Checklist
pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch.