mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
for test
Former-commit-id: 95ea942bd32402018e7c5dc61d50153c602ab67a
This commit is contained in:
parent
596f496f19
commit
b634e91c43
@ -59,6 +59,13 @@ def get_dataset(
|
|||||||
dataset_name=data_path,
|
dataset_name=data_path,
|
||||||
subset_name=data_name,
|
subset_name=data_name,
|
||||||
).to_hf_dataset()
|
).to_hf_dataset()
|
||||||
|
|
||||||
|
def map_func(example):
|
||||||
|
# do something to example
|
||||||
|
example['input'] = example['input'] or ''
|
||||||
|
return example
|
||||||
|
|
||||||
|
dataset = dataset.ds_instance.map(map_func)
|
||||||
else:
|
else:
|
||||||
dataset = load_dataset(
|
dataset = load_dataset(
|
||||||
path=data_path,
|
path=data_path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user