Skip to content

Conversation

@DesmonDay
Copy link
Contributor

@DesmonDay DesmonDay commented Nov 20, 2024

PR types

Others

PR changes

Others

Description

  1. Add logger for loading state_dict number.
  2. Fix state_dict update.
@paddle-bot
Copy link

paddle-bot bot commented Nov 20, 2024

Thanks for your contribution!

wawltor
wawltor previously approved these changes Nov 20, 2024
Copy link
Contributor

@wawltor wawltor left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 53.04%. Comparing base (2c1387f) to head (3c6b969).
Report is 211 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/transformers/model_utils.py 33.33% 4 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@ ## develop #9464 +/- ## =========================================== + Coverage 52.85% 53.04% +0.19%  =========================================== Files 700 701 +1 Lines 110418 110636 +218 =========================================== + Hits 58359 58687 +328  + Misses 52059 51949 -110 

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

@DesmonDay DesmonDay changed the title Update model_utils.py Fix multi-threading load_state_dict Dec 3, 2024
Copy link
Contributor

@wawltor wawltor left a comment

Choose a reason for hiding this comment

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

LGTM

@wawltor wawltor merged commit c4d79f4 into develop Dec 3, 2024
10 of 14 checks passed
@ZHUI ZHUI deleted the DesmonDay-patch-3 branch December 3, 2024 08:25
DesmonDay added a commit to DesmonDay/PaddleNLP that referenced this pull request Dec 3, 2024
* Update model_utils.py * Update model_utils.py
DesmonDay added a commit that referenced this pull request Dec 3, 2024
* Fix multi-threading load_state_dict (#9464) * Update model_utils.py * Update model_utils.py * [Unified Checkpoint] fix single card loading without master weights (#9540)
DesmonDay added a commit that referenced this pull request Dec 13, 2024
* Fix multi-threading load_state_dict (#9464) * Update model_utils.py * Update model_utils.py * [Unified Checkpoint] fix single card loading without master weights (#9540) * update embedding trainer (#9608)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants