Commit b890a2a
authored
KEP-2401: Support mutating dataset preprocessing config in SDK (kubeflow/trainer#2638)
* feat(sdk): Add InstructDataset and dataset_preprocess_config.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(doc): update dataset preprocessing API definition in KEP.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* chore(sdk): Add get_args_in_dataset_preprocess_config func.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(sdk): Add the prefix path for dataset.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* chore(manifests): Load local datasets.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(sdk): Add TorchTune prefix to dataset class.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* chore(initializer): Update HF dataset initializer to support data_dir and data_files.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(sdk): remove data_files and data_dir definition.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(sdk): extract data_files and data_dir from storage_uri.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(sdk): fix errors in UT.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(manifest): Update dataset.data_dir in torchtune CTRs.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
* fix(sdk): fix dataset_uri.
Signed-off-by: Electronic-Waste <2690692950@qq.com>
---------
Signed-off-by: Electronic-Waste <2690692950@qq.com>1 parent 8e67ea3 commit b890a2a
File tree
5 files changed
+135
-2
lines changed- kubeflow/trainer
- api
- constants
- types
- utils
5 files changed
+135
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
64 | 107 | | |
65 | 108 | | |
66 | 109 | | |
| |||
78 | 121 | | |
79 | 122 | | |
80 | 123 | | |
| 124 | + | |
| 125 | + | |
81 | 126 | | |
82 | 127 | | |
83 | 128 | | |
| |||
86 | 131 | | |
87 | 132 | | |
88 | 133 | | |
| 134 | + | |
89 | 135 | | |
90 | 136 | | |
91 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
355 | 384 | | |
356 | 385 | | |
357 | 386 | | |
| |||
390 | 419 | | |
391 | 420 | | |
392 | 421 | | |
| 422 | + | |
393 | 423 | | |
394 | 424 | | |
395 | 425 | | |
| |||
413 | 443 | | |
414 | 444 | | |
415 | 445 | | |
416 | | - | |
| 446 | + | |
417 | 447 | | |
418 | 448 | | |
419 | 449 | | |
| |||
507 | 537 | | |
508 | 538 | | |
509 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
0 commit comments