Skip to content

Commit 0658258

Browse files
authored
[BugFix] Fix release 2.7 (#7771)
* Update release.yml to release tags * quick fix bugs.
1 parent adf9e6f commit 0658258

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
- name: Check Branch
3636
id: check-branch
3737
run: |
38-
if [[ ${{ github.ref }} =~ ^refs/heads/(develop)$ ]]; then
38+
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
3939
echo "match=true" >> $GITHUB_OUTPUT
4040
fi # See: https://stackoverflow.com/a/58869470/1123955
4141
4242
- name: Is A Publish Branch
4343
if: steps.check-branch.outputs.match == 'true' && steps.should-deploy.outputs.should_deploy == 'true'
4444
env:
45-
TWINE_USERNAME: paddle-dev
45+
TWINE_USERNAME: __token__
4646
TWINE_PASSWORD: ${{ secrets.paddlenlp }}
4747
PACKAGE: ${{ inputs.package }}
4848
PADDLENLP_STABLE_VERSION: "true"

paddlenlp/trainer/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2304,8 +2304,8 @@ def _load_optimizer_and_scheduler(self, checkpoint):
23042304
checkpoint, OPTIMIZER_NAME, self.model_wrapped
23052305
)
23062306
else:
2307+
use_unified_checkpoint = False
23072308
if self.args.unified_checkpoint:
2308-
use_unified_checkpoint = False
23092309
if self.is_unified_checkpoint(checkpoint):
23102310
use_unified_checkpoint = True
23112311
else:

0 commit comments

Comments
 (0)