Commit 9b74ac8
authored
[bugfix] Initialize chord dataset after accelerator setup in GRPOTrainer (#6638)
The get_chord_sft_dataloader() method relies on GRPOTrainer.accelerator, but the function was previously called before the parent class (super().__init__) finished initializing the accelerator. As a result, the get_chord_sft_dataloader will raise exception regarding non-existent attribute GRPOTrainer.accelerator.1 parent 175c9e0 commit 9b74ac8
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
1868 | 1869 | | |
1869 | 1870 | | |
1870 | 1871 | | |
| 1872 | + | |
1871 | 1873 | | |
1872 | 1874 | | |
1873 | 1875 | | |
| |||
0 commit comments