Commit a098e70
fix: Move deprecated positional arguments from SFTTrainer to SFTConfig (#399)
* fix: set legacy behavior to false, enable new behavior
Signed-off-by: Will Johnson <[email protected]>
* fix: Resolve push_to_hub_token warning
Signed-off-by: Will Johnson <[email protected]>
* fix: Remove max_seq_length and dataset_text_field from SFTTrainer
Signed-off-by: Will Johnson <[email protected]>
* fmt
Signed-off-by: Will Johnson <[email protected]>
* fix: Resolve tokenizer.padding_side warning
Signed-off-by: Will Johnson <[email protected]>
* nit: restructure warning fixes
Signed-off-by: Will Johnson <[email protected]>
* fix: Add packing directly to SFTConfig
Signed-off-by: Will Johnson <[email protected]>
* fmt
Signed-off-by: Will Johnson <[email protected]>
* Removed dataset_kwargs from SFTTrainer
Removed the argument dataset_kwargs from the the invocation of SFTTRainer() because it will be deprecated in V1.0.0. Instead, dataset_kwargs have been added as a key to the training_args variable.
Following the example provided by HF found here: https://huggingface.co/docs/trl/en/sft_trainer#training-the-vision-language-model
Signed-off-by: Luka Dojcinovic <[email protected]>
* fix: Added max_seq_length back to SFTConfig()
Signed-off-by: Luka Dojcinovic <[email protected]>
* Removed legacy and padding_side args
Removed these args as they were based on changes from @willmj that haven't been approved yet
Signed-off-by: Luka Dojcinovic <[email protected]>
* Moved all args to additional_args
Following @kmehant suggestion.
Signed-off-by: Luka Dojcinovic <[email protected]>
* Removed packing and max_seq_length
Removed packing and max_seq_length variables from additional_args
Signed-off-by: Luka Dojcinovic <[email protected]>
* Removed check is_pretokenized_dataset
Co-authored-by: Mehant Kammakomati <[email protected]>
Signed-off-by: Luka-D <[email protected]>
* Removed max_seq_length from additional_args
Signed-off-by: Luka Dojcinovic <[email protected]>
* Removed error.log
Signed-off-by: Luka Dojcinovic <[email protected]>
* fix: move packing to SFTConfig as well
Co-authored-by: Luka-D <[email protected]>
Signed-off-by: Mehant Kammakomati <[email protected]>
---------
Signed-off-by: Will Johnson <[email protected]>
Signed-off-by: Luka Dojcinovic <[email protected]>
Signed-off-by: Luka-D <[email protected]>
Signed-off-by: Mehant Kammakomati <[email protected]>
Co-authored-by: Will Johnson <[email protected]>
Co-authored-by: Mehant Kammakomati <[email protected]>
Co-authored-by: Mehant Kammakomati <[email protected]>1 parent 689ee41 commit a098e70
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
327 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
334 | | - | |
335 | 340 | | |
336 | | - | |
337 | 341 | | |
338 | | - | |
339 | 342 | | |
340 | 343 | | |
341 | | - | |
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
| |||
0 commit comments