Skip to content

Conversation

@gongel
Copy link
Member

@gongel gongel commented Nov 28, 2025

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

Bug fixes

PR changes

APIs

Description

  • 修复:读取切片参数时,如果开了FusedQKV和FusedFFN,并且需要fused的参数分布在不同的分片上时,会导致参数漏加载。
  • 修复办法:
# 添加这一行,下面代码缩进即可
if not cls._get_fuse_or_split_param_mappings(config, is_fuse=True):

@paddle-bot
Copy link

paddle-bot bot commented Nov 28, 2025

Thanks for your contribution!

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@ae5ed42). Learn more about missing BASE report.

Files with missing lines Patch % Lines
paddleformers/transformers/model_utils.py 89.47% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3054   +/-   ##
==========================================
  Coverage           ?   33.60%           
==========================================
  Files              ?      428           
  Lines              ?    69466           
  Branches           ?        0           
==========================================
  Hits               ?    23341           
  Misses             ?    46125           
  Partials           ?        0           

☔ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants