Can't have load_best_model_at_end
with explicit test_datasets
#1286
Labels
bug
Something isn't working
load_best_model_at_end
with explicit test_datasets
#1286
Please check that this issue hasn't been reported before.
Expected Behavior
Ideally, it should be possible to have
load_best_model_at_end: True
withtest_datasets: [...]
as it is already allowed withval_set_size
.Not sure why it was restricted, tried doing a git blame, but there was a massive refactor so hard to trace
Current behaviour
Currently it crashes with
because load_best_model_at_end gets disabled
https://github.com/OpenAccess-AI-Collective/axolotl/blob/ea00dd08528399405943f880b27ecc60e4d83cdf/src/axolotl/core/trainer_builder.py#L849-L859
Steps to reproduce
Train qlora model but set
Config yaml
No response
Possible solution
Slightly modify the condition to allow load_best_model_at_end when either test_datasets is set or val_set_size > 0
Which Operating Systems are you using?
Python Version
3.10
axolotl branch-commit
main/ea00dd08528399405943f880b27ecc60e4d83cdf
Acknowledgements
The text was updated successfully, but these errors were encountered: