Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问我在运性训练脚本的时候,有以下报错,我去看了huggingface的官方文档,最新的文档中evaluation strategy和save strategy还是no,epoch,steps #13

Open
kkkeepgoing opened this issue May 2, 2023 · 1 comment

Comments

@kkkeepgoing
Copy link

Traceback (most recent call last):
File "/data/hmzhong/TSAR/code/run.py", line 747, in
main()
File "/data/hmzhong/TSAR/code/run.py", line 165, in main
model_args, data_args, training_args = parser.parse_args_into_dataclasses()
File "/home/hmzhong/anaconda3/envs/xs/lib/python3.9/site-packages/transformers/hf_argparser.py", line 332, in parse_args_into_dataclasses
obj = dtype(**inputs)
File "", line 110, in init
File "/home/hmzhong/anaconda3/envs/xs/lib/python3.9/site-packages/transformers/training_args.py", line 1180, in post_init
raise ValueError(
ValueError: --load_best_model_at_end requires the save and eval strategy to match, but found

  • Evaluation strategy: epoch
  • Save strategy: steps
@xiehou-design
Copy link

install transformers==4.8.1 can solve this problem

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

No branches or pull requests

2 participants