Skip to content
Discussion options

You must be logged in to vote

Not supported today. upload_dataset() pushes the whole parquet-files/ folder in one upload_folder() call with path_in_repo="data" hardcoded in _upload_main_dataset_files, and nothing along that path takes a split argument. The top-level directories you spotted come from _upload_processor_files, which names them after the processor directory, so those are processor outputs rather than splits.

If you need splits on the Hub, build the DatasetDict yourself and skip the built-in uploader:

from datasets import load_dataset

ds = load_dataset("parquet", data_files={
    "train": "train-run/parquet-files/*.parquet",
    "validation": "val-run/parquet-files/*.parquet",
})
ds.push_to_hub("your-user…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mannuch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants