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

Why do_eval always True instead of False? #8

Open
jinmyeongAN opened this issue Dec 27, 2022 · 0 comments
Open

Why do_eval always True instead of False? #8

jinmyeongAN opened this issue Dec 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jinmyeongAN
Copy link
Contributor

jinmyeongAN commented Dec 27, 2022

๐Ÿ› Bug Report

config.yml์—์„œ do_eval์„ False๋กœ ๋ฐ”๊พธ์–ด๋„ train_args.do_eval ์€ True๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.

์›์ธ

  • ํ—ˆ๊น…ํŽ˜์ด์Šค์˜ TrainingArguments์˜ ๊ฒฝ์šฐ do_eval ๊ฐ’์€ default ๊ฐ€ False ์ด์ง€๋งŒ, evaluation_strategy๊ฐ€ "no" ๊ฐ€ ์•„๋‹Œ ์ƒํƒœ๊ฐ€ ๋˜๋Š” ๊ฒฝ์šฐ, ์ž๋™์œผ๋กœ do_eval ๋Š” True๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.
  • ์ด๋Ÿฐ ๋กœ์ง์ด ์งœ์ธ ์ด์œ ๋Š” ์ œ ์ƒ๊ฐ์—” evaluation strategy์— "no" ๊ฐ€ ์•„๋‹Œ ๊ฐ’์€ ๋„ฃ์€ ์˜๋„ ์ž์ฒด๊ฐ€ (evaluation_strategy = "step" or "epoch") evaluation์„ ํ•˜๊ณ  ์‹ถ๋‹ค๋Š” ์˜๋ฏธ์ด๊ธฐ ๋•Œ๋ฌธ์— ์ฝ”๋“œ๋ฅผ ๊ฐ•์ œํ•œ ๊ฒƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.
  • ์šฐ๋ฆฌ ๋ฒ ์ด์Šค๋ผ์ธ ์ฝ”๋“œ๋Š” evaluation_strategy="epoch" ๋กœ ๋˜์–ด do_eval=True๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.

๐Ÿ“Ž Additional context

evaluation_strategy ๋ž€?

evaluation๋ฅผ ์ง„ํ–‰ํ•˜๊ณ  ์‹ถ์€ ์‹œ๊ฐ„๋‹จ์œ„ (ํ•œ "step" ์ด๋‚˜, "epoch" ๋งˆ๋‹ค ) ๋ฅผ ์ž…๋ ฅ๋ฐ›์€ ๋ณ€์ˆ˜์ž…๋‹ˆ๋‹ค.

evaluation_strategy (str or [IntervalStrategy](https://huggingface.co/docs/transformers/v4.25.1/en/internal/trainer_utils#transformers.IntervalStrategy), optional, defaults to "no") โ€” The evaluation strategy to adopt during training. Possible values are:
"no": No evaluation is done during training.
"steps": Evaluation is done (and logged) every eval_steps.
"epoch": Evaluation is done at the end of each epoch.

reference

@jinmyeongAN jinmyeongAN added the bug Something isn't working label Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant