html_url
stringlengths
51
51
title
stringlengths
9
280
comments
stringlengths
63
24.7k
body
stringlengths
51
58.6k
comments length
int64
16
1.45k
text
stringlengths
186
59.1k
https://github.com/huggingface/datasets/issues/5525
TypeError: Couldn't cast array of type string to null
Thanks, @TJ-Solergibert. I can access your notebook now. Maybe it was just a temporary issue. At first sight, it seems something related to your data: maybe some of the examples do not have all the transcriptions for all the languages. Then, some of them are null when unrolled. And when trying to concatenate with th...
### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned error. I alredy tried reseting the shorter strings...
80
TypeError: Couldn't cast array of type string to null ### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned ...
https://github.com/huggingface/datasets/issues/5525
TypeError: Couldn't cast array of type string to null
See, in this example, "nl" and "ro" transcripts are null: ```python >>> europarl_ds["test"][:1] {'original_speech': ['− Señor Presidente, en primer lugar, quisiera felicitar al señor Seeber por el trabajo realizado, porque en su informe se recogen muchas de las preocupaciones manifestadas en esta'], 'original_lang...
### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned error. I alredy tried reseting the shorter strings...
458
TypeError: Couldn't cast array of type string to null ### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned ...
https://github.com/huggingface/datasets/issues/5525
TypeError: Couldn't cast array of type string to null
You can fix this issue by forcing the cast of None to str by hand: - If you replace this line: ```python source_t += batch[src_lang] ``` - With this line (because the batch size is 1): ```python source_t += [str(batch[src_lang][0])] ``` - Or with this line (if the batch size were larger than 1): ```python so...
### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned error. I alredy tried reseting the shorter strings...
63
TypeError: Couldn't cast array of type string to null ### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned ...
https://github.com/huggingface/datasets/issues/5525
TypeError: Couldn't cast array of type string to null
Problem solved! Thanks @albertvillanova, now I have even increased the batch size and it's crazy fast :rocket: !
### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned error. I alredy tried reseting the shorter strings...
18
TypeError: Couldn't cast array of type string to null ### Describe the bug Processing a dataset I alredy uploaded to the Hub (https://huggingface.co/datasets/tj-solergibert/Europarl-ST) I found that for some splits and some languages (test split, source_lang = "nl") after applying a map function I get the mentioned ...
https://github.com/huggingface/datasets/issues/5131
WikiText 103 tokenizer hangs
any updates on this? It happens to me on [OpenWikiText-20%](https://huggingface.co/datasets/Bingsu/openwebtext_20p) dataset, but not on [OpenWebText-10k](https://huggingface.co/datasets/stas/openwebtext-10k). This is really strange because I don't change anything else in my running script. transformers version 4.18....
See issue here: https://github.com/huggingface/transformers/issues/19702
35
WikiText 103 tokenizer hangs See issue here: https://github.com/huggingface/transformers/issues/19702 any updates on this? It happens to me on [OpenWikiText-20%](https://huggingface.co/datasets/Bingsu/openwebtext_20p) dataset, but not on [OpenWebText-10k](https://huggingface.co/datasets/stas/openwebtext-10k). This is ...
https://github.com/huggingface/datasets/issues/7322
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0
Hi ! `datasets` uses Arrow under the hood which expects each column and array to have fixed types that don't change across rows of a dataset, which is why we get this error. This dataset in particular doesn't have a format compatible with Arrow unfortunately. Don't hesitate to open a discussion or PR on HF to fix the d...
### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``` Error: ``` ArrowInvalid Traceback (most recen...
59
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0 ### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``...
https://github.com/huggingface/datasets/issues/7322
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0
@lhoestq Is it correct to assume that most multimodal datasets with variable number of images across conversations are not compatible with Arrow ? I’m running into a problem while trying to format multimodal datasets (image + text) using the Hugging Face datasets library. Specifically, I’m working with a structure wh...
### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``` Error: ``` ArrowInvalid Traceback (most recen...
313
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0 ### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``...
https://github.com/huggingface/datasets/issues/7322
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0
Datasets without fixed types are harder to use in many data frameworks unfortunately. You will have to handle the case with None values if you want to use Arrow/`datasets` (or any other framework using Arrow like spark, ray, dask). **IMO the short term solution is to fix qwen_vl_utils / process_vision_info.** Alternat...
### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``` Error: ``` ArrowInvalid Traceback (most recen...
80
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0 ### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``...
https://github.com/huggingface/datasets/issues/7322
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0
I totally share the analysis, I am happy to try to help with this! I am currently using Unsloth so it is the `UnslothVisionDataCollator` which has almost the same logic as `qwen_vl_utils.process_vision_info`. Is there a Huggingface class I could patch too ?
### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``` Error: ``` ArrowInvalid Traceback (most recen...
42
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0 ### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``...
https://github.com/huggingface/datasets/issues/6598
Unexpected keyword argument 'hf' when downloading CSV dataset from S3
I am facing similar issue while reading a csv file from s3. Wondering if somebody has found a workaround.
### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w...
19
Unexpected keyword argument 'hf' when downloading CSV dataset from S3 ### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stack...
https://github.com/huggingface/datasets/issues/6598
Unexpected keyword argument 'hf' when downloading CSV dataset from S3
I am facing similar issue while reading a parquet file from s3. i try with every version between 2.14 to 2.16.1 but it dosen't work
### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w...
25
Unexpected keyword argument 'hf' when downloading CSV dataset from S3 ### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stack...
https://github.com/huggingface/datasets/issues/6598
Unexpected keyword argument 'hf' when downloading CSV dataset from S3
Re-define the DownloadConfig might work: ``` class ReviseDownloadConfig(DownloadConfig): def __post_init__(self, use_auth_token): if use_auth_token != "deprecated": warnings.warn( "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed i...
### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w...
60
Unexpected keyword argument 'hf' when downloading CSV dataset from S3 ### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stack...
https://github.com/huggingface/datasets/issues/6598
Unexpected keyword argument 'hf' when downloading CSV dataset from S3
> Re-define the DownloadConfig might work: > > ``` > class ReviseDownloadConfig(DownloadConfig): > def __post_init__(self, use_auth_token): > if use_auth_token != "deprecated": > warnings.warn( > "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and w...
### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w...
66
Unexpected keyword argument 'hf' when downloading CSV dataset from S3 ### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stack...
https://github.com/huggingface/datasets/issues/6598
Unexpected keyword argument 'hf' when downloading CSV dataset from S3
I am currently facing the same issue while using a custom loading script with files located in a remote S3 instance. I was using the `download_custom` functionality but now it is deprecated mentioning that I should use the native S3 loading, which is not working. As stated before, the library forces the existence o...
### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stackoverflow.com/questions/77596258/aws-issue-load-dataset-from-s3-fails-w...
105
Unexpected keyword argument 'hf' when downloading CSV dataset from S3 ### Describe the bug I receive this error message when using `load_dataset` with "csv" path and `dataset_files=s3://...`: ``` TypeError: Session.__init__() got an unexpected keyword argument 'hf' ``` I found a similar issue here: https://stack...
https://github.com/huggingface/datasets/issues/4996
Dataset Viewer issue for Jean-Baptiste/wikiner_fr
The script uses `Dataset.load_from_disk`, which as you can expect, doesn't work in streaming mode. It would probably be more practical to load the dataset locally using `Dataset.load_from_disk` first and then `push_to_hub` to upload it in Parquet on the Hub
### Link https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr ### Description ``` Error code: StreamingRowsError Exception: FileNotFoundError Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptiste/wikiner_fr/resolve/main/data.zip/state.json' Tra...
39
Dataset Viewer issue for Jean-Baptiste/wikiner_fr ### Link https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr ### Description ``` Error code: StreamingRowsError Exception: FileNotFoundError Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptiste...
https://github.com/huggingface/datasets/issues/7195
Add support for 3D datasets
Also look at https://github.com/huggingface/dataset-viewer/blob/f5fd117ceded990a7766e705bba1203fa907d6ad/services/worker/src/worker/job_runners/dataset/modalities.py#L241 which lists the 3D file formats that will assign the 3D modality to a dataset.
See https://huggingface.co/datasets/allenai/objaverse for example
19
Add support for 3D datasets See https://huggingface.co/datasets/allenai/objaverse for example Also look at https://github.com/huggingface/dataset-viewer/blob/f5fd117ceded990a7766e705bba1203fa907d6ad/services/worker/src/worker/job_runners/dataset/modalities.py#L241 which lists the 3D file formats that will assign the 3D...
https://github.com/huggingface/datasets/issues/7195
Add support for 3D datasets
~~we can brainstorm about the UX maybe (i don't expect we should load all models on the page at once – IMO there should be a manual action from user to load + maybe load first couple of row by default) cc @gary149 @cfahlgren1~~ it's more for the viewer issue (https://github.com/huggingface/dataset-viewer/issues/1003...
See https://huggingface.co/datasets/allenai/objaverse for example
51
Add support for 3D datasets See https://huggingface.co/datasets/allenai/objaverse for example ~~we can brainstorm about the UX maybe (i don't expect we should load all models on the page at once – IMO there should be a manual action from user to load + maybe load first couple of row by default) cc @gary149 @cfahlgren1~...
https://github.com/huggingface/datasets/issues/5413
concatenate_datasets fails when two dataset with shards > 1 and unequal shard numbers
Hi ! Thanks for reporting :) I managed to reproduce the hub using ```python from datasets import concatenate_datasets, Dataset, load_from_disk Dataset.from_dict({"a": range(9)}).save_to_disk("tmp/ds1") ds1 = load_from_disk("tmp/ds1") ds1 = concatenate_datasets([ds1, ds1]) Dataset.from_dict({"b": range(6)...
### Describe the bug When using `concatenate_datasets([dataset1, dataset2], axis = 1)` to concatenate two datasets with shards > 1, it fails: ``` File "/home/xzg/anaconda3/envs/tri-transfer/lib/python3.9/site-packages/datasets/combine.py", line 182, in concatenate_datasets return _concatenate_map_style_data...
140
concatenate_datasets fails when two dataset with shards > 1 and unequal shard numbers ### Describe the bug When using `concatenate_datasets([dataset1, dataset2], axis = 1)` to concatenate two datasets with shards > 1, it fails: ``` File "/home/xzg/anaconda3/envs/tri-transfer/lib/python3.9/site-packages/datasets/...
https://github.com/huggingface/datasets/issues/5823
[2.12.0] DatasetDict.save_to_disk not saving to S3
Hi @thejamesmarq, by any chance, did you use multiprocessing `num_proc > 1` when saving your dataset on the s3 bucket ? I'm struggling making it work in a multiprocessing setting while everything works fine with one processor.
### Describe the bug When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket. I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get the same results. ### Steps to reproduce the bug 1. C...
37
[2.12.0] DatasetDict.save_to_disk not saving to S3 ### Describe the bug When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket. I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get the ...
https://github.com/huggingface/datasets/issues/6385
Get an error when i try to concatenate the squad dataset with my own dataset
The `answers.text` field in the JSON dataset needs to be a list of strings, not a string. So, here is the fixed code: ```python from huggingface_hub import notebook_login from datasets import load_dataset notebook_login("mymailadresse", "mypassword") squad = load_dataset("squad", split="train[:5000]") sq...
### Describe the bug Hello, I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last): Cell In[9], line 1 concatenated_dataset = concatenate_datasets([train_dataset, dataset1]) File ~\ana...
126
Get an error when i try to concatenate the squad dataset with my own dataset ### Describe the bug Hello, I'm new here and I need to concatenate the squad dataset with my own dataset i created. I find the following error when i try to do it: Traceback (most recent call last): Cell In[9], line 1 concatena...
https://github.com/huggingface/datasets/issues/5722
Distributed Training Error on Customized Dataset
Hmm the error doesn't seem related to data loading. Regarding `split_dataset_by_node`: it's generally used to split an iterable dataset (e.g. when streaming) in pytorch DDP. It's not needed if you use a regular dataset since the pytorch DataLoader already assigns a subset of the dataset indices to each node.
Hi guys, recently I tried to use `datasets` to train a dual encoder. I finish my own datasets according to the nice [tutorial](https://huggingface.co/docs/datasets/v2.11.0/en/dataset_script) Here are my code: ```python class RetrivalDataset(datasets.GeneratorBasedBuilder): """CrossEncoder dataset.""" B...
49
Distributed Training Error on Customized Dataset Hi guys, recently I tried to use `datasets` to train a dual encoder. I finish my own datasets according to the nice [tutorial](https://huggingface.co/docs/datasets/v2.11.0/en/dataset_script) Here are my code: ```python class RetrivalDataset(datasets.GeneratorBasedBu...
https://github.com/huggingface/datasets/issues/6733
EmptyDatasetError when loading dataset downloaded with HuggingFace cli
Hi! `datasets` is not compatible with `huggingface_hub`'s cache structure, hence the error. You can track https://github.com/huggingface/datasets/issues/5080 to get notified when this is implemented.
### Describe the bug I am using a cluster that does not have access to the internet when given a job. I tried downloading the dataset using the huggingface-cli command and then loading it with load_dataset but I get an error: ```raise EmptyDatasetError(f"The directory at {base_path} doesn't contain any data files...
23
EmptyDatasetError when loading dataset downloaded with HuggingFace cli ### Describe the bug I am using a cluster that does not have access to the internet when given a job. I tried downloading the dataset using the huggingface-cli command and then loading it with load_dataset but I get an error: ```raise EmptyDat...
https://github.com/huggingface/datasets/issues/4271
A typo in docs of datasets.disable_progress_bar
Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :)
## Describe the bug in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable".
17
A typo in docs of datasets.disable_progress_bar ## Describe the bug in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable". Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :)
https://github.com/huggingface/datasets/issues/6846
Unimaginable super slow iteration
In every iteration you load the full "random_input" column in memory, only then to access it's i-th element. You can try using this instead a,b=dataset[i]['random_input'],dataset[i]['random_output']
### Describe the bug Assuming there is a dataset with 52000 sentences, each with a length of 500, it takes 20 seconds to extract a sentence from the dataset……?Is there something wrong with my iteration? ### Steps to reproduce the bug ```python import datasets import time import random num_rows = 52000 n...
25
Unimaginable super slow iteration ### Describe the bug Assuming there is a dataset with 52000 sentences, each with a length of 500, it takes 20 seconds to extract a sentence from the dataset……?Is there something wrong with my iteration? ### Steps to reproduce the bug ```python import datasets import time im...
https://github.com/huggingface/datasets/issues/5725
How to limit the number of examples in dataset, for testing?
Hi! You can use the `nrows` parameter for this: ```python data = load_dataset("json", data_files=data_path, nrows=10) ```
### Describe the bug I am using this command: `data = load_dataset("json", data_files=data_path)` However, I want to add a parameter, to limit the number of loaded examples to be 10, for development purposes, but can't find this simple parameter. ### Steps to reproduce the bug In the description. ### Expected beh...
16
How to limit the number of examples in dataset, for testing? ### Describe the bug I am using this command: `data = load_dataset("json", data_files=data_path)` However, I want to add a parameter, to limit the number of loaded examples to be 10, for development purposes, but can't find this simple parameter. ### Step...
https://github.com/huggingface/datasets/issues/5725
How to limit the number of examples in dataset, for testing?
I misread the format in which the dataset is stored - the `nrows` parameter works for CSV, but not JSON. This means the only option is first to create a DataFrame and then convert it to a Dataset object: ```python import pandas as pd from datasets import Dataset df = pd.read_json(data_path, lines=True, nrows=...
### Describe the bug I am using this command: `data = load_dataset("json", data_files=data_path)` However, I want to add a parameter, to limit the number of loaded examples to be 10, for development purposes, but can't find this simple parameter. ### Steps to reproduce the bug In the description. ### Expected beh...
57
How to limit the number of examples in dataset, for testing? ### Describe the bug I am using this command: `data = load_dataset("json", data_files=data_path)` However, I want to add a parameter, to limit the number of loaded examples to be 10, for development purposes, but can't find this simple parameter. ### Step...
https://github.com/huggingface/datasets/issues/7287
Support for identifier-based automated split construction
Hi ! You can already configure the README.md to have multiple sets of splits, e.g. ```yaml configs: - config_name: my_first_set_of_split data_files: - split: train path: *.csv - config_name: my_second_set_of_split data_files: - split: train path: train-*.csv - split: test path: test-...
### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem to be pretty useful to also allow splits to be based on ide...
41
Support for identifier-based automated split construction ### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem t...
https://github.com/huggingface/datasets/issues/7287
Support for identifier-based automated split construction
Hi - I had something slightly different in mind: Currently the yaml splits specified like this only allow specifying which filenames to pass to each split. But what if I have a situation where I know which individual *training examples* I want to put in each split. I could build split-specific files, however for...
### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem to be pretty useful to also allow splits to be based on ide...
105
Support for identifier-based automated split construction ### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem t...
https://github.com/huggingface/datasets/issues/7287
Support for identifier-based automated split construction
This is not supported right now :/ Though you can load the data in two steps like this ```python from datasets import load_dataset full_dataset = load_dataset("username/dataset", split="train") my_first_set_indices = load_dataset("username/dataset", "my_first_set_of_split", split="train") my_first_set = full_d...
### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem to be pretty useful to also allow splits to be based on ide...
76
Support for identifier-based automated split construction ### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem t...
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
Hi ! I think the issue comes from the "float16" features that are not supported yet in Parquet Feel free to open an issue in `pyarrow` about this. In the meantime, I'd encourage you to use "float32" for your "pooled_prompt_embeds" and "prompt_embeds" features. You can cast them to "float32" using ```python fr...
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
64
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
@lhoestq hm. Thank you very much. Do you think it won't have any impact on the training? That it won't break it or the quality won't degrade because of this? I need to use it for [SDXL training](https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py)
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
38
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
Increasing the precision should not degrade training (it only increases the precision), but make sure that it doesn't break your pytorch code (e.g. if it expects a float16 instead of a float32 somewhere)
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
33
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
@lhoestq just fyi pyarrow 15.0.0 (just released) supports float16 as the underlying parquetcpp does as well now :)
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
18
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
Oh that's amazing ! (and great timing ^^) @kopyl can you try to update `pyarrow` and try again ? Btw @assignUser there seems to be some casting implementations missing with float16 in 15.0.0, e.g. ``` ArrowNotImplementedError: Unsupported cast from int64 to halffloat using function cast_half_float ``` ```...
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
58
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
Ah you are right casting is not implemented yet, it's even mentioned in the docs. This pr references the relevant issues if you'd like to track them https://github.com/apache/arrow/pull/38494
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
28
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
@lhoestq i just recently found out that it's supported in 15.0.0, but wanted to try it first before telling you... Trying this right now and it seemingly works (although i need to wait till the end to make sure there is nothing wrong). Will update you when it's finished. <img width="918" alt="image" src="https://...
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
87
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
@lhoestq also it's strange that there was no error for a dataset with the same features, same data type, but smaller (much smaller). Altho i'm not sure about this, but chances are the dataset was loaded directly, not `load_from_disk`.... Maybe because of this.
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
43
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
> What does that missing casting implementation mean for my specific case and what does it mean in general? Nothing for you, just that casting to float16 using `.cast_column("my_column_name", Value("float16"))` raises an error > Do you know how to push_to_hub with multiple processes? It's not possible (yet ?)....
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
89
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
@lhoestq thank you very much. That would be amazing, I need to create a feature request for this :) By the way, in short, how does hf_transfer improves the upload speed under the hood?
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
34
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6595
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2
@lhoestq i was just able to successfully upload without the dataset with the new pyarrow update and without increasing the precision :)
### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1. Map dataset 2. Save to disk 3. Try to upload: ``` import data...
22
Loading big dataset raises pyarrow.lib.ArrowNotImplementedError 2 ### Describe the bug I'm aware of the issue #5695 . I'm using a modified SDXL trainer: https://github.com/kopyl/diffusers/blob/5e70f604155aeecee254a5c63c5e4236ad4a0d3d/examples/text_to_image/train_text_to_image_sdxl.py#L1027C16-L1027C16 So i 1....
https://github.com/huggingface/datasets/issues/6277
FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either.
`evaluate.load("paws-x", "es")` throws the error because there is no such metric in the `evaluate` lib. So, this is unrelated to our lib.
### Describe the bug I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follows: FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub eit...
22
FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either. ### Describe the bug I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follows:...
https://github.com/huggingface/datasets/issues/7005
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files
If you are trying to load your image dataset from a local folder, you should replace "data_dir=path/to/jsonl/metadata.jsonl" with the real folder path in your computer. https://huggingface.co/docs/datasets/en/image_load#imagefolder
### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all ...
26
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files ### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachmen...
https://github.com/huggingface/datasets/issues/7005
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files
Ah yes. My bad. I was giving file name. I should have given the folder directory as the path. That solved my issue. Thank you @albertvillanova and @lhoestq.
### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachments/files/16016011/metadata_v2.json) file. I have this file in the folder with all ...
28
EmptyDatasetError: The directory at /metadata.jsonl doesn't contain any data files ### Describe the bug while trying to load custom dataset from jsonl file, I get the error: "metadata.jsonl doesn't contain any data files" ### Steps to reproduce the bug This is my [metadata_v2.jsonl](https://github.com/user-attachmen...
https://github.com/huggingface/datasets/issues/8129
`load_dataset()` hangs when `hf_xet` is enabled
Apologies, seems to have been a stale cache issue. Nuking the datasets cache fixed the issue
### Describe the bug Hi! I am getting a peculiar download issue on the latest versions of `datasets` and `hfh` where datasets hang indefinitely: ```py from datasets import load_dataset load_dataset("openai/gsm8k", "main", split="test") ``` Note that: - streaming=True works. - Direct Hub access works. - Th...
16
`load_dataset()` hangs when `hf_xet` is enabled ### Describe the bug Hi! I am getting a peculiar download issue on the latest versions of `datasets` and `hfh` where datasets hang indefinitely: ```py from datasets import load_dataset load_dataset("openai/gsm8k", "main", split="test") ``` Note that: - streaming...
https://github.com/huggingface/datasets/issues/3778
Not be able to download dataset - "Newsroom"
Hi @Darshan2104, thanks for reporting. Please note that at Hugging Face we do not host the data of this dataset, but just a loading script pointing to the host of the data owners. Apparently the data owners changed their data host server. After googling it, I found their new website at: https://lil.nlp.cornell.ed...
Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody has this dataset please share your google driv...
64
Not be able to download dataset - "Newsroom" Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody h...
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi ! I didn't managed to reproduce the issue. When you kill the process, is there any stacktrace that shows at what point in the code python is hanging ?
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear ...
30
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** U...
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @lhoestq , I've traced the issue back to file locking. It's similar to this thread, using Lustre filesystem as well. https://github.com/huggingface/datasets/issues/329 . In this case the user was able to modify and add -o flock option while mounting and it solved the problem. However in other cases such as mine, ...
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear ...
85
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** U...
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @kelvinAI , I've had this issue on our institution's system which uses Lustre (in addition to our compute nodes being siloed off from external network access). The workaround I made for downloading/loading datasets was to set the `$HFHOME` environment variable to a location on the node's local storage (SSD), effecti...
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear ...
200
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** U...
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @jpmcd , thanks for sharing your experience. For my case, the Lustre filesystem (with more storage space) is the scratch storage like the one you've mentioned. We have a local storage for each user but unfortunately there's not enough space in it to 'cache' huge datasets, hence that is why I tried changing HF_HOME t...
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear ...
90
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** U...
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
@jpmcd your comment saved me from pulling my hair out in frustration. Setting `HF_HOME` to a directory that's not on Lustre works like a charm. ✨
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear ...
26
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** U...
https://github.com/huggingface/datasets/issues/5987
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare
Can you explain your use case for `max_shard_size`? On some systems, there is a limit to the size of a memory-mapped file, so we could consider exposing this parameter in `load_dataset`.
### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare` instead. ### Steps to reproduce the bug https://github.com/huggingface/datasets/blo...
31
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare ### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare...
https://github.com/huggingface/datasets/issues/5987
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare
In my use case, users may choose a proper size to balance the cost and benefit of using large shard size. (On azure blob or hdfs which may automatically download the shard from background)
### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare` instead. ### Steps to reproduce the bug https://github.com/huggingface/datasets/blo...
34
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare ### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare...
https://github.com/huggingface/datasets/issues/5987
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare
But `load_dataset` doesn't support caching (and reading) Arrow datasets from remote storage. `load_datset_builder` + `download_and_prepare` is not equal to `load_dataset`. The latter has one more step, `builder.as_dataset`, that memory-maps Arrow files, which only works for local files.
### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare` instead. ### Steps to reproduce the bug https://github.com/huggingface/datasets/blo...
37
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare ### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare...
https://github.com/huggingface/datasets/issues/5987
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare
Thanks. So if I want to use `IterableDataset` and control the size of single arrow file, how should I organize the data loader? Maybe `load_dataset_build` + `download_and_prepare` + `builder.as_dataset` + `dataset.to_iterable_dataset`?
### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare` instead. ### Steps to reproduce the bug https://github.com/huggingface/datasets/blo...
31
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare ### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare...
https://github.com/huggingface/datasets/issues/5987
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare
Yes, this should work. I think we can expose `max_shard_size` in `load_dataset`, so feel free to open a PR.
### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare` instead. ### Steps to reproduce the bug https://github.com/huggingface/datasets/blo...
19
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare ### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare...
https://github.com/huggingface/datasets/issues/5496
Add a `reduce` method
Hi! Sure, feel free to open a PR, so we can see the API you have in mind.
### Feature request Right now the `Dataset` class implements `map()` and `filter()`, but leaves out the third functional idiom popular among Python users: `reduce`. ### Motivation A `reduce` method is often useful when calculating dataset statistics, for example, the occurrence of a particular n-gram or the average...
18
Add a `reduce` method ### Feature request Right now the `Dataset` class implements `map()` and `filter()`, but leaves out the third functional idiom popular among Python users: `reduce`. ### Motivation A `reduce` method is often useful when calculating dataset statistics, for example, the occurrence of a particular...
https://github.com/huggingface/datasets/issues/5496
Add a `reduce` method
Hello, is it possible for this issue/PR to be revisited? The problem with the alternatives presented (besides multiple map stages) is that they don't use the cache. A reduce operation is just as expensive as a map operation because it also goes over the entire dataset. It's equally worth caching. Personally, I have ...
### Feature request Right now the `Dataset` class implements `map()` and `filter()`, but leaves out the third functional idiom popular among Python users: `reduce`. ### Motivation A `reduce` method is often useful when calculating dataset statistics, for example, the occurrence of a particular n-gram or the average...
343
Add a `reduce` method ### Feature request Right now the `Dataset` class implements `map()` and `filter()`, but leaves out the third functional idiom popular among Python users: `reduce`. ### Motivation A `reduce` method is often useful when calculating dataset statistics, for example, the occurrence of a particular...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Hi! I think you can use the newly-added `from_generator` method for that: ```python from datasets import Dataset def gen(): for idx in len(torch_dataset): yield torch_dataset[idx] # this has to be a dictionary ## or if it's an IterableDataset # for ex in torch_dataset: # yield ex ...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
50
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Maybe `Dataset.from_list` can work as well no ? ```python from datasets import Dataset dset = Dataset.from_list(torch_dataset) ```
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
17
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> ```python > from datasets import Dataset > > def gen(): > for idx in len(torch_dataset): > yield torch_dataset[idx] # this has to be a dictionary > ## or if it's an IterableDataset > # for ex in torch_dataset: > # yield ex > > dset = Dataset.from_generator(gen) > ``` I try...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
104
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> ```python > dset = Dataset.from_list(torch_dataset) > ``` It seems that Dataset also has no `from_list` method 😂 ```bash AttributeError: type object 'Dataset' has no attribute 'from_list' ```
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
28
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: > > ```python > from datasets import Dataset > data =...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
187
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
We're releasing `from_generator` and `from_list` today :) In the meantime you can play with them by installing `datasets` from source
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
20
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> We're releasing `from_generator` and `from_list` today :) In the meantime you can play with them by installing `datasets` from source Thanks a lot for your work!
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
27
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> > I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: > > ```python > > from datasets import Dataset > > da...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
294
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Hi ! Right now generator functions are expected to be picklable, so that `datasets` can hash it and use the hash to cache the resulting Dataset on disk. Maybe this can be improved. In the meantime, can you check that you're not using unpickable objects. In your case it looks like you're using a generator object that...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
108
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
> Hi ! Right now generator functions are expected to be picklable, so that `datasets` can hash it and use the hash to cache the resulting Dataset on disk. Maybe this can be improved. > > In the meantime, can you check that you're not using unpickable objects. In your case it looks like you're using a generator objec...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
187
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Iterable datasets are lazy: exactly like `with_transform` they apply processing on the fly when accessing the examples. Therefore you can use `my_iterable_dataset.map()` instead :)
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
24
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
@lhoestq I am having a similar issue. Can you help me understand which kinds of generators are picklable? I previously thought that no generators are picklable so I'm intrigued to hear this.
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
32
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
Generator functions are generally picklable. E.g. ```python import dill as pickle def generator_fn(): for i in range(10): yield i pickle.dumps(generator_fn) ``` however generators are not picklable ```python generator = generator_fn() pickle.dumps(generator) # TypeError: cannot pickle 'gen...
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
77
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4983
How to convert torch.utils.data.Dataset to huggingface dataset?
I'm trying to create an IterableDataset from a generator but I get this error: `PicklingError: Can't pickle <built-in function input>: it's not the same object as builtins.input` What can I do?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below: ```python from datasets import Dataset data = [[1, 2]...
31
How to convert torch.utils.data.Dataset to huggingface dataset? I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, lik...
https://github.com/huggingface/datasets/issues/4802
`with_format` behavior is inconsistent on different datasets
Hi! You can get a `torch.Tensor` if you do the following: ```python raw = load_dataset("beans", split="train") raw = raw.select(range(100)) preprocessor = AutoFeatureExtractor.from_pretrained("nateraw/vit-base-beans") from datasets import Array3D features = raw.features.copy() features["pixel_values"] = data...
## Describe the bug I found a case where `with_format` does not transform the dataset to the requested format. ## Steps to reproduce the bug Run: ```python from transformers import AutoTokenizer, AutoFeatureExtractor from datasets import load_dataset raw = load_dataset("glue", "sst2", split="train") raw =...
167
`with_format` behavior is inconsistent on different datasets ## Describe the bug I found a case where `with_format` does not transform the dataset to the requested format. ## Steps to reproduce the bug Run: ```python from transformers import AutoTokenizer, AutoFeatureExtractor from datasets import load_datase...
https://github.com/huggingface/datasets/issues/4568
XNLI cache reload is very slow
Hi, Could you tell us how you are running this code? I tested on my machine (M1 Mac). And it is running fine both on and off internet. <img width="1033" alt="Screen Shot 2022-07-03 at 1 32 25 AM" src="https://user-images.githubusercontent.com/8711912/177026364-4ad7cedb-e524-4513-97f7-7961bbb34c90.png"> Tested on ...
### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the ...
46
XNLI cache reload is very slow ### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_l...
https://github.com/huggingface/datasets/issues/4568
XNLI cache reload is very slow
Sure, I was running it on a Linux machine. I found that if I turn the Internet off, it would still try to make a HTTPS call which would slow down the cache loading. If you can't reproduce then we can close the issue.
### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the ...
44
XNLI cache reload is very slow ### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_l...
https://github.com/huggingface/datasets/issues/4568
XNLI cache reload is very slow
Hi @Muennighoff! You can set the env variable `HF_DATASETS_OFFLINE` to `1` to avoid this behavior in offline mode. More info is available [here](https://huggingface.co/docs/datasets/master/en/loading#offline).
### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the ...
23
XNLI cache reload is very slow ### Reproduce Using `2.3.3.dev0` `from datasets import load_dataset` `load_dataset("xnli", "en")` Turn off Internet `load_dataset("xnli", "en")` I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_l...
https://github.com/huggingface/datasets/issues/5913
I tried to load a custom dataset using the following statement: dataset = load_dataset('json', data_files=data_files). The dataset contains 50 million text-image pairs, but an error occurred.
Thanks for reporting, @cjt222. What is the structure of your JSON files. Please note that it is normally simpler if the data file format is JSON-Lines instead.
### Describe the bug File "/home/kas/.conda/envs/diffusers/lib/python3.7/site-packages/datasets/builder.py", line 1858, in _prepare_split_single Downloading and preparing dataset json/default to /home/kas/diffusers/examples/dreambooth/cache_data/datasets/json/default-acf423d8c6ef99d0/0.0.0/e347ab1c932092252e717ff3f94...
27
I tried to load a custom dataset using the following statement: dataset = load_dataset('json', data_files=data_files). The dataset contains 50 million text-image pairs, but an error occurred. ### Describe the bug File "/home/kas/.conda/envs/diffusers/lib/python3.7/site-packages/datasets/builder.py", line 1858, in _pre...
https://github.com/huggingface/datasets/issues/5913
I tried to load a custom dataset using the following statement: dataset = load_dataset('json', data_files=data_files). The dataset contains 50 million text-image pairs, but an error occurred.
> Thanks for reporting, @cjt222. > > What is the structure of your JSON files. Please note that it is normally simpler if the data file format is JSON-Lines instead. Thanks! I have encountered similar problems. I modify the json format from list to line and works!
### Describe the bug File "/home/kas/.conda/envs/diffusers/lib/python3.7/site-packages/datasets/builder.py", line 1858, in _prepare_split_single Downloading and preparing dataset json/default to /home/kas/diffusers/examples/dreambooth/cache_data/datasets/json/default-acf423d8c6ef99d0/0.0.0/e347ab1c932092252e717ff3f94...
47
I tried to load a custom dataset using the following statement: dataset = load_dataset('json', data_files=data_files). The dataset contains 50 million text-image pairs, but an error occurred. ### Describe the bug File "/home/kas/.conda/envs/diffusers/lib/python3.7/site-packages/datasets/builder.py", line 1858, in _pre...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Hi @PhilippeMoussalli thanks for opening a detailed issue. It seems the issue is more related to the `datasets` library so I'll ping @lhoestq @mariosasko on this one :) (edit: also can one of you move the issue to the datasets repo? Thanks in advance 🙏)
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
45
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Hi ! The `Image()` info is stored in the **schema metadata**. More precisely there should be a "huggingface" field in the schema metadata that contains the `datasets` feature type of each column. To fix your issue, you can use the same schema as the original Parquet files to write the new ones. You can also get the ...
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
95
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
It appears that the parquet files at `hf://datasets/lambdalabs/pokemon-blip-captions` don't have this metadata, and it is defined in the dataset_infos.json instead (legacy). You can get the right schema with the HF metadata this way: ```python from datasets import load_dataset_builder features = load_dataset_...
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
45
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Btw in the future we might add support for an dedicated Image extension type in Arrow so that you won't need to add the schema metadata anymore ;)
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
28
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Thanks @Wauplin @lhoestq for the quick reply :)! I tried your approach by passing the huggingface schema to the dask writer ``` from datasets import Features, Image, Value df = dd.read_parquet(f"hf://datasets/lambdalabs/pokemon-blip-captions",index=False) features = Features({"image": Image(), "text": Value(...
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
152
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
You don't need the dataset_infos.json file as long as you have the schema with HF metadata ;) I could also check that it works fine myself on the git revision without the dataset_infos.json file. What made you think it didn't work ?
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
42
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
> You don't need the dataset_infos.json file as long as you have the schema with HF metadata ;) I could also check that it works fine myself on the git revision without the dataset_infos.json file. > > What made you think it didn't work ? Those are two identical dataset repos where both were pushed with dask with...
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
116
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
I see ! I think it's a bug on our side - it should work without the metadata - let me investigate
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
22
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Alright, it's fixed: https://huggingface.co/datasets/philippemo/dummy_dataset_without_schema It shows the image correctly now - even without the extra metadata :)
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
17
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Thanks @lhoestq! I tested pushing a dataset again without the metadata and it works perfectly! I appreciate the help
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
19
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Hi @lhoestq, I'v tried pushing another dataset again and I think the issue reappeared again: ``` df = dd.read_parquet(f"hf://datasets/lambdalabs/pokemon-blip-captions") features = datasets.Features({"image": datasets.Image(), "text": datasets.Value("string")}) schema = features.arrow_schema dd.to_parquet(df...
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
102
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
We're doing some changes in the way we're handling image parquet datasets right now. We'll include the fix from https://github.com/huggingface/datasets/pull/5921 in the new datasets-server version in the coming days
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
29
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
alright thanks for the update :), would that be part of the new release of datasets or is it something separate? if so, where can I track it?
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
28
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/5869
Image Encoding Issue when submitting a Parquet Dataset
Once the new version of `datasets` is released (tomorrow probably) we'll open an issue on https://github.com/huggingface/datasets-server to update to this version :)
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
22
Image Encoding Issue when submitting a Parquet Dataset ### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF...
https://github.com/huggingface/datasets/issues/7303
DataFilesNotFoundError for datasets LM1B
Hi ! Can you try with a more recent version of `datasets` ? Also you might need to pass trust_remote_code=True since it's a script based dataset
### Describe the bug Cannot load the dataset https://huggingface.co/datasets/billion-word-benchmark/lm1b ### Steps to reproduce the bug `dataset = datasets.load_dataset('lm1b', split=split)` ### Expected behavior `Traceback (most recent call last): File "/home/hml/projects/DeepLearning/Generative_model/Diffusio...
26
DataFilesNotFoundError for datasets LM1B ### Describe the bug Cannot load the dataset https://huggingface.co/datasets/billion-word-benchmark/lm1b ### Steps to reproduce the bug `dataset = datasets.load_dataset('lm1b', split=split)` ### Expected behavior `Traceback (most recent call last): File "/home/hml/projec...
https://github.com/huggingface/datasets/issues/6465
`load_dataset` uses out-of-date cache instead of re-downloading a changed dataset
I meet a similar problem as using loading scripts. I have to set download_mode='force_redownload' to load the latest script.
### Describe the bug When a dataset is updated on the hub, using `load_dataset` will load the locally cached dataset instead of re-downloading the updated dataset ### Steps to reproduce the bug Here is a minimal example script to 1. create an initial dataset and upload 2. download it so it is stored in cache 3. c...
19
`load_dataset` uses out-of-date cache instead of re-downloading a changed dataset ### Describe the bug When a dataset is updated on the hub, using `load_dataset` will load the locally cached dataset instead of re-downloading the updated dataset ### Steps to reproduce the bug Here is a minimal example script to 1. c...
https://github.com/huggingface/datasets/issues/5274
load_dataset possibly broken for gated datasets?
Btw, thanks very much for finding the hub rollback temporary fix and bringing the issue to our attention @KhoomeiK!
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
19
load_dataset possibly broken for gated datasets? ### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validat...
https://github.com/huggingface/datasets/issues/5274
load_dataset possibly broken for gated datasets?
I see the same issue when calling `load_dataset('poloclub/diffusiondb', 'large_random_1k')` with `datasets==2.7.1` and `huggingface-hub=0.11.0`. No issue with `datasets=2.6.1` and `huggingface_hub==0.10.1`. https://github.com/poloclub/diffusiondb/issues/7
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
20
load_dataset possibly broken for gated datasets? ### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validat...
https://github.com/huggingface/datasets/issues/5274
load_dataset possibly broken for gated datasets?
I fixed my issue by specifying `repo_type` in `hf_hub_url()`. https://github.com/poloclub/diffusiondb/commit/9eb91c79aaca98b0515a0ce45778b8af65b84652 I opened a PR on the Winoground's repo: https://huggingface.co/datasets/facebook/winoground/discussions/2
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
19
load_dataset possibly broken for gated datasets? ### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validat...
https://github.com/huggingface/datasets/issues/5274
load_dataset possibly broken for gated datasets?
This is a bug in the script, indeed. The most robust fix is to use a relative path instead of `hf_hub_url`, which does not depend on `huggingface_hub`'s version 🙂. I've opened a PR here: https://huggingface.co/datasets/facebook/winoground/discussions/3.
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
35
load_dataset possibly broken for gated datasets? ### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validat...
https://github.com/huggingface/datasets/issues/5274
load_dataset possibly broken for gated datasets?
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': tokenizer = AutoTokenizer.from_pretrained(ARGS.model_path, trust_remote_code=True) Please handle automatically for local path and repo name inside, otherwise users always get confused about t...
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
32
load_dataset possibly broken for gated datasets? ### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validat...
https://github.com/huggingface/datasets/issues/5274
load_dataset possibly broken for gated datasets?
I think I'm also hitting this error, trying to load a model from a local path.
### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_rep...
16
load_dataset possibly broken for gated datasets? ### Describe the bug When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub: ``` [/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validat...
https://github.com/huggingface/datasets/issues/3829
[📄 Docs] Create a `datasets` performance guide.
Hi ! Yes this is definitely something we'll explore, since optimizing processing pipelines can be challenging and because performance is key here: we want anyone to be able to play with large-scale datasets more easily. I think we'll start by documenting the performance of the dataset transforms we provide, and then...
## Brief Overview Downloading, saving, and preprocessing large datasets from the `datasets` library can often result in [performance bottlenecks](https://github.com/huggingface/datasets/issues/3735). These performance snags can be challenging to identify and to debug, especially for users who are less experienced with...
60
[📄 Docs] Create a `datasets` performance guide. ## Brief Overview Downloading, saving, and preprocessing large datasets from the `datasets` library can often result in [performance bottlenecks](https://github.com/huggingface/datasets/issues/3735). These performance snags can be challenging to identify and to debug, e...