Skip to content

Conversation

@turkeymz
Copy link
Contributor

PR types

Bug fixes

PR changes

Models

Description

运行环境:Windows
使用trainer进行prompt训练并保存后相关静态文件后,再使用AutoTemplate.load_from()/SoftVerbalizer.load_from()/PromptTrainer.load_state_dict_from_checkpoint()都无法加载静态文件。
报错原因是保存时规定了utf-8保存,而加载时未限制。导致windows下的gbk编码报错
修复地方:
PromptTrainer引用的是AutoTemplate和SoftVerbalizer,所以只需要修复这两个文件下load_from方法即可

@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.39%. Comparing base (f8604c4) to head (026aace).
⚠️ Report is 2540 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5318      +/-   ##
===========================================
- Coverage    53.43%   53.39%   -0.05%     
===========================================
  Files          476      476              
  Lines        67323    67567     +244     
===========================================
+ Hits         35976    36079     +103     
- Misses       31347    31488     +141     

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

@turkeymz
Copy link
Contributor Author

@ZeyuChen 老师,能不能帮忙指导一下这个问题。现在代码写得有点别扭,希望后面版本能改善调

@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Apr 29, 2024
@github-actions github-actions bot removed the stale label Jul 5, 2024
@github-actions
Copy link

github-actions bot commented Sep 4, 2024

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added stale and removed stale labels Sep 4, 2024
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Dec 16, 2024
@paddle-bot paddle-bot bot closed this Dec 23, 2025
@paddle-bot
Copy link

paddle-bot bot commented Dec 23, 2025

Automatically closed by Paddle-bot.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants