Skip to content

Conversation

liuzhenhai93
Copy link
Contributor

PR types

Others

PR changes

Others

Description

fix recover

@paddle-bot
Copy link

paddle-bot bot commented Sep 19, 2023

Thanks for your contribution!

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #7083 (a2a0191) into develop (321faf3) will increase coverage by 0.00%.
Report is 2 commits behind head on develop.
The diff coverage is 45.45%.

@@           Coverage Diff            @@
##           develop    #7083   +/-   ##
========================================
  Coverage    59.91%   59.91%           
========================================
  Files          556      556           
  Lines        82035    82046   +11     
========================================
+ Hits         49148    49155    +7     
- Misses       32887    32891    +4     
Files Changed Coverage Δ
paddlenlp/trainer/trainer.py 55.40% <45.45%> (-0.04%) ⬇️

... and 1 file with indirect coverage changes


self.state = TrainerState()

resume_from_checkpoint = self._check_resume_from_checkpoint(resume_from_checkpoint)
Copy link
Contributor

Choose a reason for hiding this comment

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

这个是在训练代码里面做的,不是在这里。不需要加

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不加就报错了

"""
self.callback_handler.remove_callback(callback)

def _check_resume_from_checkpoint(self, resume_from_checkpoint):
Copy link
Contributor

Choose a reason for hiding this comment

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

这个函数也不需要

@liuzhenhai93 liuzhenhai93 closed this by deleting the head repository Oct 14, 2023
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