Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using 'train' split when loading cached dataset #569

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion open_instruct/dataset_transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def load_or_transform_dataset(self, dcs: List[DatasetConfig], tc: TokenizerConfi
if revision_exists(repo_name, config_hash, repo_type="dataset"):
print(f"✅ Found cached dataset at https://huggingface.co/datasets/{repo_name}/tree/{config_hash}")
# Use the split from the first dataset config as default
return load_dataset(repo_name, split=dcs[0].dataset_split, revision=config_hash)
return load_dataset(repo_name, split='train', revision=config_hash)

print(f"Cache not found, transforming datasets...")

Expand Down