We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 625536f commit ff2bd10Copy full SHA for ff2bd10
trinity/common/task.py
@@ -104,7 +104,7 @@ def task_generator(
104
def load_hf_dataset(config: DataConfig, split: str):
105
"""Load a Hugging Face dataset with optional configuration name."""
106
if config.config_name is not None:
107
- hf_dataset = load_dataset(config.dataset_path, config.config_name, split=split)
+ hf_dataset = load_dataset(config.dataset_path, config.subset_name, split=split)
108
else:
109
hf_dataset = load_dataset(config.dataset_path, split=split)
110
return hf_dataset
0 commit comments