File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ jobs:
35
35
- name : Check Branch
36
36
id : check-branch
37
37
run : |
38
- if [[ ${{ github.ref }} =~ ^refs/heads/(develop) $ ]]; then
38
+ if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+ $ ]]; then
39
39
echo "match=true" >> $GITHUB_OUTPUT
40
40
fi # See: https://stackoverflow.com/a/58869470/1123955
41
41
42
42
- name : Is A Publish Branch
43
43
if : steps.check-branch.outputs.match == 'true' && steps.should-deploy.outputs.should_deploy == 'true'
44
44
env :
45
- TWINE_USERNAME : paddle-dev
45
+ TWINE_USERNAME : __token__
46
46
TWINE_PASSWORD : ${{ secrets.paddlenlp }}
47
47
PACKAGE : ${{ inputs.package }}
48
48
PADDLENLP_STABLE_VERSION : " true"
Original file line number Diff line number Diff line change @@ -2304,8 +2304,8 @@ def _load_optimizer_and_scheduler(self, checkpoint):
2304
2304
checkpoint , OPTIMIZER_NAME , self .model_wrapped
2305
2305
)
2306
2306
else :
2307
+ use_unified_checkpoint = False
2307
2308
if self .args .unified_checkpoint :
2308
- use_unified_checkpoint = False
2309
2309
if self .is_unified_checkpoint (checkpoint ):
2310
2310
use_unified_checkpoint = True
2311
2311
else :
You can’t perform that action at this time.
0 commit comments