Commit c2b8e8d
committed
refactor(data): consume the shared dataset registry in the regen script
The response-regeneration script kept its own plain-dict DATASET_CONFIGS
(magpie/ultrachat/gsm8k) alongside the DatasetConfig registry in
speculators.data_generation.configs, so adding a dataset meant two edits
in two formats. Since #716 the script imports
speculators.data_generation.vllm_client anyway, so consuming the shared
registry adds no import weight.
DatasetConfig gains an optional prompt_field — the bare-prompt fallback
column used when a row carries no conversation — and presets defining it
are the script's --dataset choices, which stay exactly
magpie/ultrachat/gsm8k with unchanged HF paths, splits, and subsets.
Dataset-registry half of RFC #702.
Signed-off-by: Ranran Haoran Zhang <ranzhang@redhat.com>1 parent 6030a44 commit c2b8e8d
3 files changed
Lines changed: 33 additions & 23 deletions
File tree
- scripts/response_regeneration
- src/speculators/data_generation
- tests/unit/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
39 | 26 | | |
40 | 27 | | |
41 | 28 | | |
| |||
56 | 43 | | |
57 | 44 | | |
58 | 45 | | |
59 | | - | |
| 46 | + | |
60 | 47 | | |
61 | 48 | | |
62 | 49 | | |
| |||
424 | 411 | | |
425 | 412 | | |
426 | 413 | | |
427 | | - | |
428 | | - | |
| 414 | + | |
| 415 | + | |
429 | 416 | | |
430 | 417 | | |
431 | | - | |
432 | | - | |
| 418 | + | |
| 419 | + | |
433 | 420 | | |
434 | 421 | | |
435 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
0 commit comments