Add desc to map/filter (#1162)

* Add desc to map/filter

* update descriptions

---------

Co-authored-by: Wing Lian <wing.lian@gmail.com>
This commit is contained in:
Casper
2024-01-23 03:30:53 +01:00
committed by GitHub
parent cda52dc32b
commit 684038111e
4 changed files with 16 additions and 2 deletions

View File

@@ -410,7 +410,10 @@ def load_rl_datasets(
for i, data_set in enumerate(train_datasets):
_type = cfg.datasets[i]["type"]
ds_type_fn = locals()[_type]
train_datasets[i] = data_set.map(ds_type_fn)
train_datasets[i] = data_set.map(
ds_type_fn,
desc="Mapping RL Dataset",
)
train_dataset = concatenate_datasets(train_datasets)
# eval_dataset = eval_dataset.map(intel_apply_chatml)