Skip to content

Commit ff2bd10

Browse files
0x404hiyuchang
andauthored
config_name -> subset_name
Co-authored-by: Yuchang Sun <[email protected]>
1 parent 625536f commit ff2bd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trinity/common/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def task_generator(
104104
def load_hf_dataset(config: DataConfig, split: str):
105105
"""Load a Hugging Face dataset with optional configuration name."""
106106
if config.config_name is not None:
107-
hf_dataset = load_dataset(config.dataset_path, config.config_name, split=split)
107+
hf_dataset = load_dataset(config.dataset_path, config.subset_name, split=split)
108108
else:
109109
hf_dataset = load_dataset(config.dataset_path, split=split)
110110
return hf_dataset

0 commit comments

Comments
 (0)