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/6521
The order of the splits is not preserved
After investigation, I think the issue was introduced by the use of the Parquet export: - #6448 I am proposing a fix. CC: @lhoestq
We had a regression and the order of the splits is not preserved. They are alphabetically sorted, instead of preserving original "train", "validation", "test" order. Check: In branch "main" ```python In [9]: dataset = load_dataset("adversarial_qa", '"adversarialQA") In [10]: dataset Out[10]: DatasetDict({ ...
24
The order of the splits is not preserved We had a regression and the order of the splits is not preserved. They are alphabetically sorted, instead of preserving original "train", "validation", "test" order. Check: In branch "main" ```python In [9]: dataset = load_dataset("adversarial_qa", '"adversarialQA") In [...
https://github.com/huggingface/datasets/issues/8201
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training.
Hi @aihao2000 ! I was looking into this multi-machine training scenario and just opened a PR (#8203 ) that safely skips feature inference for empty shards during distributed streaming. please! Check it out and see if it looks like it will resolve the weird bugs you were hitting!
### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webdataset", data_files=args.train_dataset, split="train", streaming=True,cache_dir='/dev/shm/.cache' ) args.train...
48
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training. ### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webd...
https://github.com/huggingface/datasets/issues/8201
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training.
it looks like there less dataset files (=shards) than ranks. We should improve the error message in that case and suggest to either disable streaming or to run fewer nodes. @aihao2000 are you using `split_dataset_by_node()` or `.shard()` to distributed the dataset among the training nodes ? Thanks @Wolfram-St for taki...
### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webdataset", data_files=args.train_dataset, split="train", streaming=True,cache_dir='/dev/shm/.cache' ) args.train...
175
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training. ### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webd...
https://github.com/huggingface/datasets/issues/8201
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training.
@lhoestq I use ```shard``` after ```load_dataset```. Does the number of `.tar` files *have* to be greater than `num_processes`? The number of my target files should also be significantly greater than the number of training processes; furthermore, to the best of my understanding, the `load_dataset` function should not b...
### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webdataset", data_files=args.train_dataset, split="train", streaming=True,cache_dir='/dev/shm/.cache' ) args.train...
115
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training. ### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webd...
https://github.com/huggingface/datasets/issues/8201
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training.
Can you check the value of `ds.num_shards` ? Or share the code you are using ? > Does the number of .tar files have to be greater than num_processes? Yes, this way you can use .shard() and each node has at least one shard to stream from. Otherwise you can use split_dataset_by_node() but if there aren't enough shards,...
### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webdataset", data_files=args.train_dataset, split="train", streaming=True,cache_dir='/dev/shm/.cache' ) args.train...
182
Encountered an error when loading data in WebDataset format using `load_datasets` during multi-matchines training. ### Describe the bug Single-machine training works fine, but multi-machine training throws up all sorts of weird bugs. Help me! ### Steps to reproduce the bug train_dataset = load_dataset( "webd...
https://github.com/huggingface/datasets/issues/4029
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold
Hi ! You can access the faiss index with ```python faiss_index = my_dataset.get_index("my_index_name").faiss_index ``` and then do whatever you want with it, e.g. query it using range_search: ```python threshold = 0.95 limits, distances, indices = faiss_index.range_search(x=xq, thresh=threshold) texts = datas...
**Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I wou...
41
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold **Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity th...
https://github.com/huggingface/datasets/issues/4029
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold
wow, that's great, thank you for the explanation. (if that's not already in the documentation, could be worth adding it) which type of faiss index is Datasets using? I looked into faiss recently and I understand that there are several different types of indexes and the choice is important, e.g. regarding which dista...
**Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I wou...
76
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold **Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity th...
https://github.com/huggingface/datasets/issues/4029
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold
`Dataset.add_faiss_index` has a `string_factory` parameter, used to set the type of index (see the faiss documentation about [index factory](https://github.com/facebookresearch/faiss/wiki/The-index-factory)). Alternatively, you can pass an index you've defined yourself using faiss with the `custom_index` parameter of `...
**Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I wou...
44
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold **Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity th...
https://github.com/huggingface/datasets/issues/4609
librispeech dataset has to download whole subset when specifing the split to use
Hi! You can use streaming to fetch only a subset of the data: ```python raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100", streaming=True) ``` Also, we plan to make it possible to download a particular split in the non-streaming mode, but this task is not easy due to how our dataset scripts a...
## Describe the bug librispeech dataset has to download whole subset when specifing the split to use ## Steps to reproduce the bug see below # Sample code to reproduce the bug ``` !pip install datasets from datasets import load_dataset raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100") ...
51
librispeech dataset has to download whole subset when specifing the split to use ## Describe the bug librispeech dataset has to download whole subset when specifing the split to use ## Steps to reproduce the bug see below # Sample code to reproduce the bug ``` !pip install datasets from datasets import load_da...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
Thanks for reporting, @sauravtii. Unfortunately, I'm not able to reproduce the issue: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("josianem/imdb") In [2]: ds Out[2]: DatasetDict({ train: Dataset({ features: ['text', 'label'], num_rows: 25799 })...
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
72
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
Thanks @albertvillanova. I am facing another issue now ``` Traceback (most recent call last): File "sample.py", line 4, in <module> dataset = load_dataset("josianem/imdb") File "/home/saurav/.local/lib/python3.8/site-packages/datasets/load.py", line 1112, in load_dataset builder_instance.download_an...
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
99
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
Your connection didn't work and you got an empty dataset (`num_bytes=0, num_examples=0`): ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [ { 'expected': SplitInfo(name='train', num_bytes=34501348, num_examples=25799, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_b...
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
145
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
After pasting the link in the browser, it did start the download so it seems that the link is working. But even after including the `download_mode` in my code I am facing the same issue: Error: ``` Traceback (most recent call last): File "sample.py", line 4, in <module> dataset = load_dataset("josianem/imd...
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
148
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
I have tried again to reproduce your issue without success: the dataset loads perfectly, both in my local machine and in a Colab notebook. - See: https://colab.research.google.com/drive/1dky3T0XGFuldggy22NNQQN-UqOFqvnuY?usp=sharing I think the cause maight be that you are using a very old version of `datasets`. Ple...
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
56
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
That worked!! Thanks @albertvillanova : ) ``` Downloading builder script: 100%|███████| 4.20k/4.20k [00:00<00:00, 6.69MB/s] Downloading metadata: 100%|█████████████| 2.60k/2.60k [00:00<00:00, 3.41MB/s] Downloading readme: 100%|███████████████| 7.52k/7.52k [00:00<00:00, 12.6MB/s] Downloading and preparing dataset...
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
86
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/5764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
That is because the cache got the "empty" download file the first time you tried and got the connection error. Then, once you no longer get the connection error, you need to refresh the cache by passing `download_mode="force_redownload"`.
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
38
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1 ### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is...
https://github.com/huggingface/datasets/issues/4935
Dataset Viewer issue for ubuntu_dialogs_corpus
The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.4.0/en/loading#manual-download), and the dataset viewer respects this. We will try to improve the error display though. Thanks for r...
### Link _No response_ ### Description _No response_ ### Owner _No response_
32
Dataset Viewer issue for ubuntu_dialogs_corpus ### Link _No response_ ### Description _No response_ ### Owner _No response_ The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.4.0/...
https://github.com/huggingface/datasets/issues/7669
How can I add my custom data to huggingface datasets
Hey @xiagod The easiest way to add your custom data to Hugging Face Datasets is to use the built-in load_dataset function with your local files. Some examples include: CSV files: from datasets import load_dataset dataset = load_dataset("csv", data_files="my_file.csv") JSON or JSONL files: from datasets import load_...
I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.
122
How can I add my custom data to huggingface datasets I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that. Hey @xiagod The easiest way to add your custom data to Hugging Face Datasets is to use the built-in load_dataset function with your local files. Some examples include: CSV...
https://github.com/huggingface/datasets/issues/5645
Datasets map and select(range()) is giving dill error
It looks like an error that we observed once in https://github.com/huggingface/datasets/pull/5166 Can you try to update `datasets` ? ``` pip install -U datasets ``` if it doesn't work, can you make sure you don't have packages installed that may modify `dill`'s behavior, such as `apache-beam` ?
### Describe the bug I'm using Huggingface Datasets library to load the dataset in google colab When I do, > data = train_dataset.select(range(10)) or > train_datasets = train_dataset.map( > process_data_to_model_inputs, > batched=True, > batch_size=batch_size, > remove_columns...
46
Datasets map and select(range()) is giving dill error ### Describe the bug I'm using Huggingface Datasets library to load the dataset in google colab When I do, > data = train_dataset.select(range(10)) or > train_datasets = train_dataset.map( > process_data_to_model_inputs, > batched=True,...
https://github.com/huggingface/datasets/issues/6060
Dataset.map() execute twice when in PyTorch DDP mode
Sorry for asking a duplicate question about `num_proc`, I searched the forum and find the solution. But I still can't make the trick with `torch.distributed.barrier()` to only map at the main process work. The [post on forum]( https://discuss.huggingface.co/t/slow-processing-with-map-when-using-deepspeed-or-fairscal...
### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only execute map at the main process doesn't always work. W...
40
Dataset.map() execute twice when in PyTorch DDP mode ### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only e...
https://github.com/huggingface/datasets/issues/6060
Dataset.map() execute twice when in PyTorch DDP mode
If it does the `map` twice then it means the hash of your map function is not some same between your two processes. Can you make sure your map functions have the same hash in different processes ? ```python from datasets.fingerprint import Hasher print(Hasher.hash(lambda x: cut_reorder_keys(x, num_stations_li...
### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only execute map at the main process doesn't always work. W...
95
Dataset.map() execute twice when in PyTorch DDP mode ### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only e...
https://github.com/huggingface/datasets/issues/6060
Dataset.map() execute twice when in PyTorch DDP mode
Thanks for help! I find the fingerprint between processes don't have same hash: ``` Rank 0: Gpu 0 cut_reorder_keys fingerprint c7f47f40e9a67657 Rank 0: Gpu 0 random_shift fingerprint 240a0ce79831e7d4 Rank 1: Gpu 1 cut_reorder_keys fingerprint 20edd3d9cf284001 Rank 1: Gpu 1 random_shift fingerprint 819f7c1c18e773...
### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only execute map at the main process doesn't always work. W...
90
Dataset.map() execute twice when in PyTorch DDP mode ### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only e...
https://github.com/huggingface/datasets/issues/6060
Dataset.map() execute twice when in PyTorch DDP mode
I finally figure it out. The fingerprint of the function will change if other key-value pairs change in `args` even the `args.num_stations_list` is not changed. ```python lambda x: cut_reorder_keys(x, num_stations_list=args.num_stations_list, is_pad=True, is_train=True) ``` My `args` contains the key `rank` whi...
### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only execute map at the main process doesn't always work. W...
86
Dataset.map() execute twice when in PyTorch DDP mode ### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only e...
https://github.com/huggingface/datasets/issues/7882
Inconsistent loading of LFS-hosted files in epfml/FineWeb-HQ dataset
It should be all good now, sorry for the inconvenience. We found an error that happened during the migration of this repository from Git LFS to Xet and fixed the issue
### Describe the bug Some files in the `epfml/FineWeb-HQ` dataset fail to load via the Hugging Face `datasets` library. - xet-hosted files load fine - LFS-hosted files sometimes fail Example: - Fails: https://huggingface.co/datasets/epfml/FineWeb-HQ/blob/main/data/CC-MAIN-2024-26/000_00003.parquet - Works: ht...
31
Inconsistent loading of LFS-hosted files in epfml/FineWeb-HQ dataset ### Describe the bug Some files in the `epfml/FineWeb-HQ` dataset fail to load via the Hugging Face `datasets` library. - xet-hosted files load fine - LFS-hosted files sometimes fail Example: - Fails: https://huggingface.co/datasets/epfml/Fine...
https://github.com/huggingface/datasets/issues/7597
Download datasets from a private hub in 2025
Hi ! First, and in the general case, Hugging Face does offer to host private datasets, and with a subscription you can even choose the region in which the repositories are hosted (US, EU) Then if you happen to have a private deployment, you can set the HF_ENDPOINT environment variable (same as in https://github.com/hu...
### Feature request In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature. The obvious workaround is to clone the repo first and then l...
54
Download datasets from a private hub in 2025 ### Feature request In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature. The obvious wor...
https://github.com/huggingface/datasets/issues/7356
How about adding a feature to pass the key when performing map on DatasetDict?
Hi ! Can you give an example of what it would look like to use this new feature ? Note that currently you can already do ```python ds["train"] = ds["train"].map(process_train) ds["test"] = ds["test"].map(process_test) ```
### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task. So, I thought it would be nice to pass the key (like train, valid) when perf...
34
How about adding a feature to pass the key when performing map on DatasetDict? ### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task....
https://github.com/huggingface/datasets/issues/7356
How about adding a feature to pass the key when performing map on DatasetDict?
@lhoestq Thanks for the response! Let me clarify what I'm looking for with an example: Currently, we need to write separate processing functions or call .map() separately: ```python # Current approach def process_train(example): # Training-specific processing return example def process_valid(example): #...
### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task. So, I thought it would be nice to pass the key (like train, valid) when perf...
170
How about adding a feature to pass the key when performing map on DatasetDict? ### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task....
https://github.com/huggingface/datasets/issues/7356
How about adding a feature to pass the key when performing map on DatasetDict?
I see ! I think it makes sense, and it's more readable than doing something like this: ```python from functools import partial ds = DatasetDict({key: ds[key].map(partial(process, split_key=key)) for key in ds}) ``` PS: you named the argument `with_key` in your example, but it might be even clearer with it's name...
### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task. So, I thought it would be nice to pass the key (like train, valid) when perf...
54
How about adding a feature to pass the key when performing map on DatasetDict? ### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task....
https://github.com/huggingface/datasets/issues/7356
How about adding a feature to pass the key when performing map on DatasetDict?
@lhoestq I agree. It seems better to use `with_split`. So can I open a PR with this change?
### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task. So, I thought it would be nice to pass the key (like train, valid) when perf...
18
How about adding a feature to pass the key when performing map on DatasetDict? ### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task....
https://github.com/huggingface/datasets/issues/6357
Allow passing a multiprocessing context to functions that support `num_proc`
Are there any updates on this? This is still a problem when using Datasets inside Ray processes.
### Feature request Allow specifying [a multiprocessing context](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods) to functions that support `num_proc` or use multiprocessing pools. For example, the following could be done: ```python dataset = dataset.map(_func, num_proc=2, mp_cont...
17
Allow passing a multiprocessing context to functions that support `num_proc` ### Feature request Allow specifying [a multiprocessing context](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods) to functions that support `num_proc` or use multiprocessing pools. For example, the following ...
https://github.com/huggingface/datasets/issues/6357
Allow passing a multiprocessing context to functions that support `num_proc`
Any updates on this? Getting ``` DeprecationWarning: This process (pid=269) is multi-threaded, use of fork() may lead to deadlocks in the child. self.pid = os.fork() ``` when using `num_proc` on python 3.12. I believe the default will be set to spawn for python 3.14, but was wondering if any fixes will be made for ...
### Feature request Allow specifying [a multiprocessing context](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods) to functions that support `num_proc` or use multiprocessing pools. For example, the following could be done: ```python dataset = dataset.map(_func, num_proc=2, mp_cont...
58
Allow passing a multiprocessing context to functions that support `num_proc` ### Feature request Allow specifying [a multiprocessing context](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods) to functions that support `num_proc` or use multiprocessing pools. For example, the following ...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi ! Are you having this issue only with this specific dataset, or it also happens with other ones like `squad` ?
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
22
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
@lhoestq It happens also on `squad`. It successfully downloads the whole dataset and then crashes on: ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCES...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
61
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I see the same error in Windows-10.0.19042 as of a few days ago: `Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\source\event_loop.c:74: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_group, &thread_options) == AWS_OP_SUCCESS` python 3.8.12 ...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
95
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I'm not sure what `datasets` has to do with a crash that seems related to `aws-c-io`, could it be an issue with your environment ?
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
25
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> I'm not sure what `datasets` has to do with a crash that seems related to `aws-c-io`, could it be an issue with your environment ? Agreed, this issue is not likely a bug in datasets, since I get the identical error without datasets installed.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
45
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Will close this issue. Bug in `aws-c-io` shouldn't be in `datasets` repo. Nevertheless, it can be useful to know that it happens. Thanks @leehaust @lhoestq
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
25
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I have also had this issue since a few days, when running scripts using PyCharm in particular, but it does not seem to affect the script from running, only reporting this error at the end of the run.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
38
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I also get this issue, It appears after my script has finished running. I get the following error message ``` Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_fn, el_gro...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
95
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
@CallumMcMahon Do you have a small reproducer for this problem on Linux? I can reproduce this on Windows but sadly not with linux.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
23
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Any updates on this issue? I started receiving the same error a few days ago on the amazon reviews
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
19
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi, I also ran into this issue, Windows only. It caused our massive binary to minidump left and right, very annoying. When the program is doing an exit, the destructors in the exit-handlers want to do cleanup, leading to code in event_loop.c, on line 73-ish: AWS_FATAL_ASSERT( aws_thread_launch(&cleanup...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
254
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
I also encountered the same problem, but I made an error in the multi gpu training environment on Linux, and the single gpu training environment will not make an error. i use accelerate package to do multi gpu training.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
39
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> I also get this issue, It appears after my script has finished running. I get the following error message > > ``` > Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1637179816120/work/source/event_loop.c:72: aws_thread_launch(&cleanup_thread, s_event_loop_destroy_async_thread_...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
130
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Potentially related AWS issue: https://github.com/aws/aws-sdk-cpp/issues/1809 Ran into this issue today while training a BPE tokenizer on a dataset. Train code: ```python """Train a ByteLevelBPETokenizer based on a given dataset. The dataset must be on the HF Hub. This script is adaptated from the Transform...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
384
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
There is also a discussion here https://issues.apache.org/jira/browse/ARROW-15141 where it is suggested for conda users to use an older version of aws-sdk-cpp: `aws-sdk-cpp=1.8.186`
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
22
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
First of all, I’d never call a downgrade a solution, at most a (very) temporary workaround. Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. From: Bo-Ru (Roy) Lu ***@***.***> Sent: Thursday, 15 September 2022 01:12 To: huggingfac...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
111
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> First of all, I’d never call a downgrade a solution, at most a (very) temporary workaround. Very much so! It looks like an apparent fix for the underlying problem [might](https://github.com/awslabs/aws-c-io/pull/515) have landed, but it sounds like it might still be a bit of a [lift](https://github.com/aws/aws-sdk...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
97
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
For pip people, I confirmed that installing the nightly version of pyarrow also solves this by: `pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ --prefer-binary --pre pyarrow --upgrade`. (See https://arrow.apache.org/docs/python/install.html#installing-nightly-packages) Any version after https://gi...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
33
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> Furthermore: This bug also happens outside pyarrow, I incorporate AWS in a standalone Windows C-program and that crashes during exit. Do you have a reproducer you could share? I'd like to test if the new versions that supposedly solve this actually do, but we don't have a way to test it...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
52
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi, No – sorry. It is part of a massive eco-system which cannot easily be shared. But I think the problem was summarized quite clearly: Windows does not allow a CreateThread while doing ExitProcess. The cleanup that gets called as part of the exit handler code tries to start a thread, the fatal-assert on that caus...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
281
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> No – sorry. It is part of a massive eco-system which cannot easily be shared. OK, was worth a try... > The fix I applied simply removes that fatal assert, that solves the problem for me. This seems to be what https://github.com/awslabs/aws-c-io/pull/515 did upstream. > I’ll try and upgrade to the latest A...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
86
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
Hi, I also encountered the same problem, but I made an error on Ubuntu without using `datasets` as @Crabzmatic he wrote. At that time, I find my version of pyarrow is 9.0.0, which is different from as follow: > https://github.com/huggingface/datasets/issues/3310#issuecomment-1247390774 > Downgrading pyarrow to 6....
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
171
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> I get the following error message: Not sure what's going on, but that shouldn't happen, especially as we're pinning to a version that should avoid this. Can you please open an issue https://github.com/conda-forge/arrow-cpp-feedstock, including the requested output of `conda list` & `conda info`?
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
44
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
pyarrow 10.0.1 was just released in conda-forge, which is the first release where we're building against aws-sdk-cpp 1.9.* again after more than a year. Since we cannot test the failure reported here on our infra, I'd be very grateful if someone could verify that the problem does or doesn't reappear. 🙃 ``` conda ...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
58
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
> pyarrow 10.0.1 was just released in conda-forge, which is the first release where we're building against aws-sdk-cpp 1.9.* again after more than a year. Since we cannot test the failure reported here on our infra, I'd be very grateful if someone could verify that the problem does or doesn't reappear. 🙃 > > ``` >...
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
77
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/3310
Fatal error condition occurred in aws-c-io
@liuchaoqun, with `pip install pyarrow` you don't get aws-bindings, they're too complicated to package into wheels as far as I know. And even if they're packaged, at the time of the release of pyarrow 10 it would have still been pinned to aws 1.8 for the same reasons as in this issue.
## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurred in D:\bld\aws-c-io_1633633258269\work\sou...
52
Fatal error condition occurred in aws-c-io ## Describe the bug Fatal error when using the library ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en') ``` ## Expected results No fatal errors ## Actual results ``` Fatal error condition occurre...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
The transfer of the dummy dataset to the dummy org works as expected: ```python In [1]: from datasets import load_dataset; ds = load_dataset("dummy_canonical_dataset", download_mode="force_redownload"); ds Downloading builder script: 100%|██████████████████████████████████████████████████████████████████████████████...
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
140
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
Maybe we should be a bit more proactive with these transfers. There are only ≈70 canonical models, so reaching that number with datasets would be great, too. It's not easy considering the current number of ≈750 canonical datasets, but doable. For instance, it shouldn't be too hard to transfer these datasets (partial...
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
470
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
Next week I can take care of some of them :) In most cases we just need to send an email to ask them if they're ok with it. Let's coordinate on slack ?
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
34
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
I can also continuing working on this if we agree this has become a priority now.
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
16
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
cool stuff! this morning on my side i moved huggingface.co/ctrl (a not very used model) to its rightful entity
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
19
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
As a previous step before transferring the datasets, we decided we should convert them to Parquet, so that the viewer does not stop working (the viewer does not support datasets with scripts). Datasets converted to Parquet: - [x] adversarial_qa - [x] ai2_arc - [x] americas_nli - [x] anli - [x] asset - [x] bea...
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
361
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
For `c4` and `mc4` I was thinking of adding the corresponding configs to `allenai/c4` and redirect `c4` and `mc4` to `allenai/c4`. I'll open a PR on `allenai/c4` if it's good for you
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
32
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/5096
Transfer some canonical datasets under an organization namespace
@davanstrien and @lhoestq, I have shared with you this spreadsheet: https://docs.google.com/spreadsheets/d/1GvNTd1UxmtTvEFOK-Eq6E3Str4FUWQuWZsEN0WVFirs/edit?usp=sharing This way we can take datasets by batches to contact the authors and transfer to the organizations.
As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organization namespace, we are deprecating the canonical one (and eventua...
28
Transfer some canonical datasets under an organization namespace As discussed during our @huggingface/datasets meeting, we are planning to move some "canonical" dataset scripts under their corresponding organization namespace (if this does not exist). On the contrary, if the dataset already exists under the organiza...
https://github.com/huggingface/datasets/issues/6371
`Dataset.from_generator` should not try to download from HF GCS
Indeed, setting `try_from_gcs` to `False` makes sense for `from_generator`. We plan to deprecate and remove `try_from_hf_gcs` soon, as we can use Hub for file hosting now, but this is a good temporary fix.
### Describe the bug When using [`Dataset.from_generator`](https://github.com/huggingface/datasets/blob/c9c1166e1cf81d38534020f9c167b326585339e5/src/datasets/arrow_dataset.py#L1072) with `streaming=False`, the internal logic will call [`download_and_prepare`](https://github.com/huggingface/datasets/blob/main/src/datas...
33
`Dataset.from_generator` should not try to download from HF GCS ### Describe the bug When using [`Dataset.from_generator`](https://github.com/huggingface/datasets/blob/c9c1166e1cf81d38534020f9c167b326585339e5/src/datasets/arrow_dataset.py#L1072) with `streaming=False`, the internal logic will call [`download_and_prepa...
https://github.com/huggingface/datasets/issues/4419
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual`
Hi! If the only goal is to improve readability, it's better to use `assertTupleEqual` than `assertSequenceEqual` for Python tuples. Also, note that this function is called internally by `assertEqual`, but I guess we can accept a PR to be more verbose.
**Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittest` added that function in `v3.1`, as detailed at https://docs.python.org/3/library...
41
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual` **Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittes...
https://github.com/huggingface/datasets/issues/4419
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual`
Hi @mariosasko, right! I'll update the issue title/desc with `assertTupleEqual` even though as you said it seems to be internally using `assertEqual` so I'm not sure whether it's worth it or not... https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTupleEqual
**Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittest` added that function in `v3.1`, as detailed at https://docs.python.org/3/library...
33
Update `unittest` assertions over tuples from `assertEqual` to `assertTupleEqual` **Is your feature request related to a problem? Please describe.** So this is more a readability improvement rather than a proposal, wouldn't it be better to use `assertTupleEqual` over the tuples rather than `assertEqual`? As `unittes...
https://github.com/huggingface/datasets/issues/7619
`from_list` fails while `from_generator` works for large datasets
Thanks for the report! This behavior is expected due to how `from_list()` and `from_generator()` differ internally. - `from_list()` builds the entire dataset in memory at once, which can easily exceed limits (especially with variable-length arrays or millions of rows). The Arrow error you're seeing (`Value too large t...
### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `Dataset.from_generator`. ### Steps to reproduce the bug #### Snip...
119
`from_list` fails while `from_generator` works for large datasets ### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `D...
https://github.com/huggingface/datasets/issues/7619
`from_list` fails while `from_generator` works for large datasets
@ArjunJagdale Yes, it is related to using large dataset but not in the way that you have described. As I understand, the problem here is that `datasets` does not use `LargeList` with 64-bit offsets from PyArrow when using `from_list`. However, with `from_generator` this seems to work okay, likely due to batching. As su...
### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `Dataset.from_generator`. ### Steps to reproduce the bug #### Snip...
82
`from_list` fails while `from_generator` works for large datasets ### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `D...
https://github.com/huggingface/datasets/issues/7619
`from_list` fails while `from_generator` works for large datasets
Thanks for the clarification — you're absolutely right, this seems tied to the use of 32-bit list offsets in from_list() under the hood. That distinction between List and LargeList in PyArrow is a crucial one, and definitely worth highlighting in the docs or error message. Happy to help if a check or fallback to LargeL...
### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `Dataset.from_generator`. ### Steps to reproduce the bug #### Snip...
58
`from_list` fails while `from_generator` works for large datasets ### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `D...
https://github.com/huggingface/datasets/issues/6756
Support SQLite files?
You can use `Dataset.from_sql(path_to_sql_file)` already. Though we haven't added the Sql dataset builder to the `_PACKAGED_DATASETS_MODULES` list or in `_EXTENSION_TO_MODULE` to map `.sqlite` to the Sql dataset builder This would allow to load a dataset repository with a `.sqlite` file using `load_dataset` and enab...
### Feature request Support loading a dataset from a SQLite file https://huggingface.co/datasets/severo/test_iris_sqlite/tree/main ### Motivation SQLite is a popular file format. ### Your contribution See discussion on slack: https://huggingface.slack.com/archives/C04L6P8KNQ5/p1702481859117909 (internal) In ...
47
Support SQLite files? ### Feature request Support loading a dataset from a SQLite file https://huggingface.co/datasets/severo/test_iris_sqlite/tree/main ### Motivation SQLite is a popular file format. ### Your contribution See discussion on slack: https://huggingface.slack.com/archives/C04L6P8KNQ5/p170248185911...
https://github.com/huggingface/datasets/issues/6756
Support SQLite files?
Considering `Dataset.from_sql`'s (extremely) low usage, I don't think many users are interested in using this format for their datasets. Also, SQLite files are hard/impossible to stream efficiently and require custom logic to define splits/subsets, so IMO we shouldn't encourage people to use SQLite on the Hub. @seve...
### Feature request Support loading a dataset from a SQLite file https://huggingface.co/datasets/severo/test_iris_sqlite/tree/main ### Motivation SQLite is a popular file format. ### Your contribution See discussion on slack: https://huggingface.slack.com/archives/C04L6P8KNQ5/p1702481859117909 (internal) In ...
59
Support SQLite files? ### Feature request Support loading a dataset from a SQLite file https://huggingface.co/datasets/severo/test_iris_sqlite/tree/main ### Motivation SQLite is a popular file format. ### Your contribution See discussion on slack: https://huggingface.slack.com/archives/C04L6P8KNQ5/p170248185911...
https://github.com/huggingface/datasets/issues/5608
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files.
Hi! > naming convention of mp3 files Yes, this could be the problem. MP3 files should end with `.mp3`/`.MP3` to be recognized as audio files. If the file names are not the culprit, can you paste the audio folder's directory structure to help us reproduce the error (e.g., by running the `tree "x"` command)?
### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does anyone know what could possibly cause this (naming convention of mp3 files, etc.) ### Steps to reproduce the b...
54
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files. ### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does...
https://github.com/huggingface/datasets/issues/5608
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files.
Hi! I'm sorry, I don't want to reveal my entire dataset, but here's a snippet (all of the mp3 files below are some of the ones not being recognized by audiofolder. Also, for another dataset, audiofolder loaded zero mp3 files because "train" was in the name of one of the mp3 files. my_dataset ├── data │   ├── VHA_In...
### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does anyone know what could possibly cause this (naming convention of mp3 files, etc.) ### Steps to reproduce the b...
94
audiofolder only creates dataset of 13 rows (files) when the data folder it's reading from has 20,000 mp3 files. ### Describe the bug x = load_dataset("audiofolder", data_dir="x") When running this, x is a dataset of 13 rows (files) when it should be 20,000 rows (files) as the data_dir "x" has 20,000 mp3 files. Does...
https://github.com/huggingface/datasets/issues/4462
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter
Yup it can also work, and maybe it's simpler this way. Opening a PR to fix bigbench instead of https://github.com/huggingface/datasets/pull/4463
As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `NonMatchingSplitsSizesError`. This is because it will check for expected the number ...
20
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `No...
https://github.com/huggingface/datasets/issues/4462
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter
Hi @lhoestq, Thank you for taking a look at this issue, and proposing a solution. Unfortunately, after trying the fix in #4465 I still see the same issue. I think there is some subtlety where the config name gets overwritten somewhere when `BUILDER_CONFIGS`[(link)](https://github.com/huggingface/datasets/blob/m...
As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `NonMatchingSplitsSizesError`. This is because it will check for expected the number ...
140
BigBench: NonMatchingSplitsSizesError when passing a dataset configuration parameter As noticed in https://github.com/huggingface/datasets/pull/4125 when a dataset config class has a parameter that reduces the number of examples (e.g. named `max_examples`), then loading the dataset and passing `max_examples` raises `No...
https://github.com/huggingface/datasets/issues/7147
IterableDataset strange deadlock
Yes `interleave_datasets` seems to have an issue with shuffling, could you open a new issue on this ? Then regarding the deadlock, it has to do with interleave_dataset with probabilities=[1, 0] with workers that may contain an empty dataset in first position (it can be empty since you distribute 1024 shard to 8 work...
### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, gen_kwargs={"shards": lis...
85
IterableDataset strange deadlock ### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, ...
https://github.com/huggingface/datasets/issues/7147
IterableDataset strange deadlock
Opened https://github.com/huggingface/datasets/issues/7156 Can the deadlock be fixed somehow? The point of IterableDataset is so we don't need to preload the entire dataset, which loses some meaning if we need to see how many examples are in the dataset in order to set shards correctly.
### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, gen_kwargs={"shards": lis...
44
IterableDataset strange deadlock ### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, ...
https://github.com/huggingface/datasets/issues/7147
IterableDataset strange deadlock
~~And it is kinda strange that `Commenting out the final shuffle avoids the issue` since if the infinite loop is inside interleave_datasets you'd expect that to happen regardless of the additional shuffle call?~~ Edit: oh I guess without the shuffle it's guaranteed every worker gets something, but the shuffle makes ...
### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, gen_kwargs={"shards": lis...
158
IterableDataset strange deadlock ### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, ...
https://github.com/huggingface/datasets/issues/7147
IterableDataset strange deadlock
well the second dataset passed to interleave_datasets is never exhausted, since it's never sampled. But we could also state that the stream of examples from the second dataset is empty if it has probability 0, so I opened https://github.com/huggingface/datasets/pull/7157 to fix the infinite loop issue by ignoring datas...
### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, gen_kwargs={"shards": lis...
58
IterableDataset strange deadlock ### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, ...
https://github.com/huggingface/datasets/issues/7147
IterableDataset strange deadlock
Thanks for taking a look! I think you're right that this is ultimately an issue that the user opts into by specifying a dataset with probability 0, because the user is basically saying "I want to force this `interleave_datasets` call to run forever" and yet one of the workers can end up having only empty shards to m...
### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, gen_kwargs={"shards": lis...
137
IterableDataset strange deadlock ### Describe the bug ``` import datasets import torch.utils.data num_shards = 1024 def gen(shards): for shard in shards: if shard < 25: yield {"shard": shard} def main(): dataset = datasets.IterableDataset.from_generator( gen, ...
https://github.com/huggingface/datasets/issues/4386
Bug for wiki_auto_asset_turk from GEM
Hi @StevenTang1998, We have fixed the issue: - #4389 The fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by installing `datasets` from our GitHub repo: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/...
40
Bug for wiki_auto_asset_turk from GEM ## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>...
https://github.com/huggingface/datasets/issues/4386
Bug for wiki_auto_asset_turk from GEM
Thanks for your reply!! And the totto dataset has the same problem. The url should be change to [https://storage.googleapis.com/totto-public/totto_data.zip](https://storage.googleapis.com/totto-public/totto_data.zip).
## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/...
19
Bug for wiki_auto_asset_turk from GEM ## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>...
https://github.com/huggingface/datasets/issues/4386
Bug for wiki_auto_asset_turk from GEM
Hi again @StevenTang1998, I don't see any problem when loading `totto` dataset: ```python In [4]: import datasets ...: ds = datasets.load_dataset("totto") Downloading builder script: 5.58kB [00:00, 5.33MB/s] ...
## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/...
134
Bug for wiki_auto_asset_turk from GEM ## Describe the bug The script of wiki_auto_asset_turk for GEM may be out of date. ## Steps to reproduce the bug ```python import datasets datasets.load_dataset('gem', 'wiki_auto_asset_turk') ``` ## Actual results ``` Traceback (most recent call last): File "<stdin>...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
Hi @diarray-hub , thanks for opening the issue :) Let me ping @lhoestq and @severo from the dataset viewer team :hugs:
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
21
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
Hi ! why not modify the manifest.json file directly ? this way users see in the viewer the dataset as is instead which makes it easier to use using e.g. the `datasets` library
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
33
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
Can I create and push the dataset with the dataset library while also pushing the dataset directory, mainting its structure and all the files as with git?
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
27
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
> Can I create and push the dataset with the dataset library while also pushing the dataset directory, mainting its structure and all the files as with git? yes push_to_hub simply uploads Parquet files in a directory named "data" in the git repository
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
43
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
That's the problem actually, I need that the data stays in the same format and the directory they are in keep the same structure in order to go quick with Nemo training so users of Nvidia's Nemo framework don't need to write any preprocessing code before starting training. That's why I used git instead of push_to_hub s...
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
117
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
Happy to help if you think the Nemo dataset format should be supported in `datasets` (and therefore in the HF Viewer that is based on `datasets`). Maybe the Nemo team could help as well Though I'm not sure if there is only one but actually many formats/structure in Nemo depending on the task ?
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
54
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
Yeah, you're right Quentin, it depends of the task. This one is for ASR. And, yes maybe they can help. I noticed that they already share their models through HF. Maybe someone in your teams already have a contact point there. Anyway it's not really a big issues since people can easily understand the dataset and its for...
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
83
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
In that case I'd recommend you to upload the dataset in Nemo format and 1) add the "nemo" tag 2) add how to use the dataset in Nemo in the dataset README.md The viewer is likely to show the audio content by default but without the transcriptions. You can also configure the viewer to show the transcriptions instea...
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
61
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
I already did, it's just a little bit "dommage" (Hope you'll understand, you speak french right? Cause I don't know any english word for this) that I have to choose which one the viewer displays. But it's no problem for the usability of the dataset. Thanks Quentin :+1:
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
48
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
It's "dommage" for now, but feel free to ping the Nemo people if you think there is room for making this better together :) Kinda related, but the `datasets` AudioFolder structure looks similar and simply asks for a `metadata.jsonl` with a field named "file_name" to link the transcriptions to the audio files - you c...
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
110
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/7315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
Right, actually that was my idea when I opened this issues. That's what I suggested, taking my case as an exemple but you should think of a more general approach like adding a field to configure the viewer as you wish in the metadata (in the dataset card) or a config.yaml or json file. With a level of abstraction like...
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
75
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library #### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer...
https://github.com/huggingface/datasets/issues/6488
429 Client Error
I'm getting a similar issue even though I've already downloaded the dataset 😅 ``` huggingface_hub.utils._errors.HfHubHTTPError: 429 Client Error: Too Many Requests for url: https://huggingface.co/api/datasets/HuggingFaceM4/WebSight ```
Hello, I was downloading the following dataset and after 20% of data was downloaded, I started getting error 429. It is not resolved since a few days. How should I resolve it? Thanks Dataset: https://huggingface.co/datasets/cerebras/SlimPajama-627B Error: `requests.exceptions.HTTPError: 429 Client Error: Too M...
25
429 Client Error Hello, I was downloading the following dataset and after 20% of data was downloaded, I started getting error 429. It is not resolved since a few days. How should I resolve it? Thanks Dataset: https://huggingface.co/datasets/cerebras/SlimPajama-627B Error: `requests.exceptions.HTTPError: 429 Cl...
https://github.com/huggingface/datasets/issues/5244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
Hi ! What kind of private source ? We're exploring adding support for cloud storage and URIs like s3://, gs:// etc. with authentication in the download manager
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
27
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script ### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It shoul...
https://github.com/huggingface/datasets/issues/5244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
Hello! It's a google cloud storage, so gs://, but I'm using it with https. Being able to provide a file system like [here](https://huggingface.co/docs/datasets/main/filesystems#load-serialized-datasets) would be even more practical indeed. I've found a quite complicated workaround which consists of monkey patching al...
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
159
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script ### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It shoul...
https://github.com/huggingface/datasets/issues/5244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks!
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
24
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script ### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It shoul...