generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only load data on main process (#1255)
* fix: only load data on main process * define is_main_process once Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> * avoid re-initializing PartialState on train dataset check Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> * avoid re-initializing PartialState on eval dataset check Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> * process dataset on main first to take advantage of caching * fix typo in docs * use decorator to manage state * Revert "fix typo in docs" This reverts commit 0880a18. * Revert "Revert "fix typo in docs"" This reverts commit ff7ee33. * Revert "use decorator to manage state" This reverts commit 7ac7a45. * use is_local_main_process instead of is_main_process * fix: use context manager instead of attribute Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> * Update trl/trainer/sft_trainer.py Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> --------- Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
- Loading branch information
1 parent
29d439a
commit 4edc688
Showing
2 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters