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/6446
Speech Commands v2 dataset doesn't match AST-v2 config
Replacing `model.config.id2label` with `model.config.label2id` should fix the issue. So, the full code to align the labels with the model config is as follows: ```python from datasets import load_dataset from transformers import AutoFeatureExtractor, AutoModelForAudioClassification # extractor = AutoFeatureExt...
### Describe the bug [According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class labels, the dataset itself has 36 class labels. Moreover,...
57
Speech Commands v2 dataset doesn't match AST-v2 config ### Describe the bug [According](https://huggingface.co/MIT/ast-finetuned-speech-commands-v2) to `MIT/ast-finetuned-speech-commands-v2`, the model was trained on the Speech Commands v2 dataset. However, while the model config says the model should have 35 class la...
https://github.com/huggingface/datasets/issues/6193
Dataset loading script method does not work with .pyc file
Before dynamically loading `.py` scripts with `importlib.import_module`, we also parse their contents to check imports, which is tricky to implement for binary `.pyc` files (requires parsing bytecode), so I don't think this is something we want to support (unless more users request it ofc) as this use case is a bit too...
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
59
Dataset loading script method does not work with .pyc file ### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to ...
https://github.com/huggingface/datasets/issues/6193
Dataset loading script method does not work with .pyc file
> Before dynamically loading .py scripts with importlib.import_module, we also parse their contents to check imports, which is tricky to implement for binary .pyc files (requires parsing bytecode), so I don't think this is something we want to support (unless more users request it ofc) as this use case is a bit too spe...
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
76
Dataset loading script method does not work with .pyc file ### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to ...
https://github.com/huggingface/datasets/issues/6193
Dataset loading script method does not work with .pyc file
Hi @lhoestq , Could you share some example code related to the approach that you are suggesting?
### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
17
Dataset loading script method does not work with .pyc file ### Describe the bug The huggingface dataset library specifically looks for ‘.py’ file while loading the dataset using loading script approach and it does not work with ‘.pyc’ file. While deploying in production, it becomes an issue when we are restricted to ...
https://github.com/huggingface/datasets/issues/5577
Cannot load `the_pile_openwebtext2`
Hi! I've merged a PR to use `int32` instead of `int8` for `reddit_scores`, so it should work now.
### Describe the bug I met the same bug mentioned in #3053 which is never fixed. Because several `reddit_scores` are larger than `int8` even `int16`. https://huggingface.co/datasets/the_pile_openwebtext2/blob/main/the_pile_openwebtext2.py#L62 ### Steps to reproduce the bug ```python3 from datasets import load...
18
Cannot load `the_pile_openwebtext2` ### Describe the bug I met the same bug mentioned in #3053 which is never fixed. Because several `reddit_scores` are larger than `int8` even `int16`. https://huggingface.co/datasets/the_pile_openwebtext2/blob/main/the_pile_openwebtext2.py#L62 ### Steps to reproduce the bug `...
https://github.com/huggingface/datasets/issues/7852
Problems with NifTI
> 2. when uploading via the niftifolder feature, the resulting parquet only contains relative paths to the nifti files: what did you use to upload the dataset ? iirc push_to_hub() does upload the bytes as well, but to_parquet() doesn't
### Describe the bug There are currently 2 problems with the new NifTI feature: 1. dealing with zipped files, this is mentioned and explained [here](https://github.com/huggingface/datasets/pull/7815#issuecomment-3496199503) 2. when uploading via the `niftifolder` feature, the resulting parquet only contains relative p...
39
Problems with NifTI ### Describe the bug There are currently 2 problems with the new NifTI feature: 1. dealing with zipped files, this is mentioned and explained [here](https://github.com/huggingface/datasets/pull/7815#issuecomment-3496199503) 2. when uploading via the `niftifolder` feature, the resulting parquet only...
https://github.com/huggingface/datasets/issues/7852
Problems with NifTI
> > 2. when uploading via the niftifolder feature, the resulting parquet only contains relative paths to the nifti files: > > what did you use to upload the dataset ? iirc push_to_hub() does upload the bytes as well, but to_parquet() doesn't I used `push_to_hub` but the problem is that the nifti feature does not have...
### Describe the bug There are currently 2 problems with the new NifTI feature: 1. dealing with zipped files, this is mentioned and explained [here](https://github.com/huggingface/datasets/pull/7815#issuecomment-3496199503) 2. when uploading via the `niftifolder` feature, the resulting parquet only contains relative p...
59
Problems with NifTI ### Describe the bug There are currently 2 problems with the new NifTI feature: 1. dealing with zipped files, this is mentioned and explained [here](https://github.com/huggingface/datasets/pull/7815#issuecomment-3496199503) 2. when uploading via the `niftifolder` feature, the resulting parquet only...
https://github.com/huggingface/datasets/issues/6128
IndexError: Invalid key: 88 is out of bounds for size 0
> I tried this and got the following error: ``` Traceback (most recent call last): File "/cephyr/NOBACKUP/groups/snic2021-23-24/LLM4-CodeOpt/env/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 324, in _compile out_code = transform_code_object(code, transform) File "/cephyr/NOBACKUP...
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
326
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transforme...
https://github.com/huggingface/datasets/issues/6128
IndexError: Invalid key: 88 is out of bounds for size 0
Hi @TomasAndersonFang, I guess in this case it may be an issue with `transformers` (or `PyTorch`). I would recommend you open an issue on their repo.
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
26
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transforme...
https://github.com/huggingface/datasets/issues/6128
IndexError: Invalid key: 88 is out of bounds for size 0
@TomasAndersonFang were you able to find a solution to this issue? I would highly appreciate any help. Thanks!
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
18
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transforme...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
You can list the dataset's columns with `ds.column_names` before `.map` to check whether the dataset has an `image` column. If it doesn't, then this is a bug. Otherwise, please paste the line with the `.map` call.
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
36
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
This is the piece of code I am running: ``` data_transforms = utils.get_data_augmentation(args) image_dataset = utils.load_image_dataset(args.dataset) def resize(examples): examples["pixel_values"] = [image.convert("RGB").resize((300, 300)) for image in examples["image"]] return examples def preproce...
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
1,035
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
The `remove_columns=["image"]` argument in the `.map` call removes the `image` column from the output, so drop this argument to preserve it.
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
21
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
The problem is not with the removal of the image key. The bug is why only the labels are sent to be process, instead of all the featues or dictionary keys. P.S. I just dropped the removal argument as you've suggested, but that didn't solve the problem, because only the labels are being sent to be processed
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
57
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
All the `image_dataset.column_names` after the `map` call should also be present in `preprocess_train `/`preprocess_val` unless (input) `columns` in `set_transform` are specified. If that's not the case, we need a full reproducer (not snippets) with the environment info.
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
37
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
I have resolved the error after including a collate function as indicated in the Quick Start session of the Datasets docs.: Here is what I did: ``` data_transforms = utils.get_data_augmentation(args) image_dataset = utils.load_image_dataset(args.dataset) def preprocess_train(example_batch): example_batch[...
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
139
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/6069
KeyError: dataset has no key "image"
are you using hf Trainer? hf trainer will remove columns not used in model.forward. set `remove_unused_columns=False` might works
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
18
KeyError: dataset has no key "image" ### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. ...
https://github.com/huggingface/datasets/issues/4007
set_format does not work with multi dimension tensor
Hi! Use the `ArrayXD` feature type (where X is the number of dimensions) to get correctly formated tensors. So in your case, define the dataset as follows : ```python ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}, features=Features({"A": Array2D(shape=(2, 2), dtype="float32")})) ```
## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result...
39
set_format does not work with multi dimension tensor ## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_...
https://github.com/huggingface/datasets/issues/4007
set_format does not work with multi dimension tensor
Hi @mariosasko I'm facing the same issue and the only work around I've found so far is to convert my `DatasetDict` to a dictionary and then create new objects with `Dataset.from_dict`. ``` dataset = load_dataset("my_dataset.py") dataset = dataset.map(lambda example: blabla(example)) dict_dataset_test = dataset["tes...
## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result...
84
set_format does not work with multi dimension tensor ## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_...
https://github.com/huggingface/datasets/issues/4007
set_format does not work with multi dimension tensor
Hi! Yes, you can directly pass the `Features` dictionary as `features` in `map` to cast the column to `Array2D`: ```python dataset = dataset.map(lambda example: blabla(example), features=Features(features)) ``` Or you can use `cast` after `map` to do that: ```python dataset = dataset.map(lambda example: blabla(ex...
## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result...
47
set_format does not work with multi dimension tensor ## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_...
https://github.com/huggingface/datasets/issues/6951
load_dataset() should load all subsets, if no specific subset is specified
Feel free to open a PR in `m-a-p/COIG-CQIA` to define a default subset. Currently there is no default. You can find some documentation at https://huggingface.co/docs/hub/datasets-manual-configuration#multiple-configurations
### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```--------------------------------------------------------------------------- ValueError Traceback (most recen...
25
load_dataset() should load all subsets, if no specific subset is specified ### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```-----------------------------------------------------------------...
https://github.com/huggingface/datasets/issues/6951
load_dataset() should load all subsets, if no specific subset is specified
@lhoestq Whilst having a default subset readily available (e.g. `all`) by the dataset author is an ideal solution, it is not always the reality. Without the ability to fork the dataset, this can be problematic. As far as I know, it is not possible at all to specify multiple subsets in a generalized programmat...
### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```--------------------------------------------------------------------------- ValueError Traceback (most recen...
78
load_dataset() should load all subsets, if no specific subset is specified ### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```-----------------------------------------------------------------...
https://github.com/huggingface/datasets/issues/6951
load_dataset() should load all subsets, if no specific subset is specified
Please note that each subset can have different feature columns, thus making it impossible to load them all into a unique Dataset instance. That is why subsets were created: to support different but related datasets to coexist in a single dataset repository. If you would like to programmatically get the list of s...
### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```--------------------------------------------------------------------------- ValueError Traceback (most recen...
59
load_dataset() should load all subsets, if no specific subset is specified ### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```-----------------------------------------------------------------...
https://github.com/huggingface/datasets/issues/6951
load_dataset() should load all subsets, if no specific subset is specified
found a better method in another link that can not only obtain the subset but also get the corresponding split https://huggingface.co/docs/dataset-viewer/splits
### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```--------------------------------------------------------------------------- ValueError Traceback (most recen...
21
load_dataset() should load all subsets, if no specific subset is specified ### Feature request Currently load_dataset() is forcing users to specify a subset. Example `from datasets import load_dataset dataset = load_dataset("m-a-p/COIG-CQIA")` ```-----------------------------------------------------------------...
https://github.com/huggingface/datasets/issues/5129
unexpected `cast` or `class_encode_column` result after `rename_column`
Hi! Unfortunately, I can't reproduce this issue locally (in Python 3.7/3.10) or in Colab. I would assume this is due to a bug we fixed in the latest release, but your version is up-to-date, so I'm not sure if there is something we can do to help...
## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I switched to the older version. ## Steps to reproduce the bug ```python...
47
unexpected `cast` or `class_encode_column` result after `rename_column` ## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I sw...
https://github.com/huggingface/datasets/issues/5129
unexpected `cast` or `class_encode_column` result after `rename_column`
Hi, 方子东. I tried running the code with exact the same configuration (both datasets 2.5.2 and 2.6.1, python, pyarrow, pandas), but on Linux. The results seem to be the expected `{<pyarrow.Int64Scalar: 4>, <pyarrow.Int64Scalar: 2>, <pyarrow.Int64Scalar: 3>, <pyarrow.Int64Scalar: 0>, <pyarrow.Int64Scalar: 1>}`. I don't h...
## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I switched to the older version. ## Steps to reproduce the bug ```python...
56
unexpected `cast` or `class_encode_column` result after `rename_column` ## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I sw...
https://github.com/huggingface/datasets/issues/5129
unexpected `cast` or `class_encode_column` result after `rename_column`
> Hi! Unfortunately, I can't reproduce this issue locally (in Python 3.7/3.10) or in Colab. I would assume this is due to a bug we fixed in the latest release, but your version is up-to-date, so I'm not sure if there is something we can do to help... Thank you for your attention and feel sorry to take your time. Sin...
## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I switched to the older version. ## Steps to reproduce the bug ```python...
99
unexpected `cast` or `class_encode_column` result after `rename_column` ## Describe the bug When invoke `cast` or `class_encode_column` to a colunm renamed by `rename_column` , it will convert all the variables in this column into one variable. I also run this script in version 2.5.2, this bug does not appear. So I sw...
https://github.com/huggingface/datasets/issues/3996
Audio.encode_example() throws an error when writing example from array
Thanks @polinaeterna for reporting this issue. In relation to the decoding of MP3 audio files without torchaudio, I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. But yes, nice to give an alternative to non-torchaudio users (wi...
## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesI...
57
Audio.encode_example() throws an error when writing example from array ## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No for...
https://github.com/huggingface/datasets/issues/3996
Audio.encode_example() throws an error when writing example from array
> I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. Yeah, I know, but as far as I understand, some users just categorically don't want to have torchaudio in their environment. Anyway, it's just a more or less random example, th...
## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesI...
93
Audio.encode_example() throws an error when writing example from array ## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No for...
https://github.com/huggingface/datasets/issues/4612
Release 2.3.0 broke custom iterable datasets
Apparently, `fsspec` does not allow access to attribute-based modules anymore, such as `fsspec.async`. However, this is a fairly simple fix: - Change the import to: `from fsspec import asyn`; - Change line 18 to: `asyn.iothread[0] = None`; - Change line 19 to `asyn.loop[0] = None`.
## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `next(iter(custom_iterable_dataset))` should retu...
45
Release 2.3.0 broke custom iterable datasets ## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `nex...
https://github.com/huggingface/datasets/issues/4612
Release 2.3.0 broke custom iterable datasets
Hi! I think it's easier to replace `import fsspec` with `import fsspec.asyn` and leave the rest unchanged. @gugarosa Are you interested in submitting a PR?
## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `next(iter(custom_iterable_dataset))` should retu...
25
Release 2.3.0 broke custom iterable datasets ## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `nex...
https://github.com/huggingface/datasets/issues/7323
Unexpected cache behaviour using load_dataset
Hi ! Since `datasets` 3.x, the `datasets` specific files are in `cache_dir=` and the HF files are cached using `huggingface_hub` and you can set its cache directory using the `HF_HOME` environment variable. They are independent, for example you can delete the Hub cache (containing downloaded files) but still reload...
### Describe the bug Following the (Cache management)[https://huggingface.co/docs/datasets/en/cache] docu and previous behaviour from datasets version 2.18.0, one is able to change the cache directory. Previously, all downloaded/extracted/etc files were found in this folder. As i have recently update to the latest v...
62
Unexpected cache behaviour using load_dataset ### Describe the bug Following the (Cache management)[https://huggingface.co/docs/datasets/en/cache] docu and previous behaviour from datasets version 2.18.0, one is able to change the cache directory. Previously, all downloaded/extracted/etc files were found in this fol...
https://github.com/huggingface/datasets/issues/7127
Caching shuffles by np.random.Generator results in unintiutive behavior
I first thought this was a mistake of mine, and also posted on stack overflow. https://stackoverflow.com/questions/78913797/iterating-a-huggingface-dataset-from-disk-using-generator-seems-broken-how-to-d It seems to me the issue is the caching step in https://github.com/huggingface/datasets/blob/be5cff059a2a5b8...
### Describe the bug Create a dataset. Save it to disk. Load from disk. Shuffle, usning a `np.random.Generator`. Iterate. Shuffle again. Iterate. The iterates are different since the supplied np.random.Generator has progressed between the shuffles. Load dataset from disk again. Shuffle and Iterate. See same result ...
77
Caching shuffles by np.random.Generator results in unintiutive behavior ### Describe the bug Create a dataset. Save it to disk. Load from disk. Shuffle, usning a `np.random.Generator`. Iterate. Shuffle again. Iterate. The iterates are different since the supplied np.random.Generator has progressed between the shuffles...
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
You are correct that `to_tf_dataset` only handles numerical columns right now, yes, though this is a limitation we might remove in future! The main reason we do this is that our models mostly do not include the tokenizer as a model layer, because it's very difficult to compile some of them in TF. So the "normal" Huggin...
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = Defa...
96
Can't get the text data when calling to_tf_dataset I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers...
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
Thanks for the quick follow-up to my issue. For my use-case, instead of the built-in tokenizers I wanted to use the `TextVectorization` layer to map from strings to integers. To achieve this, I came up with the following solution: ``` from datasets import load_dataset from transformers import DefaultDataCollato...
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = Defa...
212
Can't get the text data when calling to_tf_dataset I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers...
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
> For the future, however, it'd be more convenient to get the string data, since I am also inspecting the dataset (longest sentence, shortest sentence), which is more challenging when working with integer or float. Yes, I agree, so let's keep this issue open.
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = Defa...
44
Can't get the text data when calling to_tf_dataset I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers...
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
Going to close this now - methods like `to_tf_dataset` and `prepare_tf_dataset` now support string data, and have done for a while! If anyone sees this and is encountering issues with string data in those methods, please file a new issue!
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = Defa...
40
Can't get the text data when calling to_tf_dataset I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers...
https://github.com/huggingface/datasets/issues/4084
Errors in `Train with Datasets` Tensorflow code section on Huggingface.co
Hi @blackhat-coder, thanks for reporting. Please note that the `transformers` library updated their data collators API last year (version 4.10.0): - huggingface/transformers#13105 now requiring to pass `return_tensors` argument at Data Collator instantiation. And therefore, we also updated in the `datasets` l...
## Describe the bug Hi ### Error 1 Running the Tensforlow code on [Huggingface](https://huggingface.co/docs/datasets/use_dataset) gives a TypeError: __init__() got an unexpected keyword argument 'return_tensors' ### Error 2 `DataCollatorWithPadding` isn't imported ## Steps to reproduce the bug ```python impo...
69
Errors in `Train with Datasets` Tensorflow code section on Huggingface.co ## Describe the bug Hi ### Error 1 Running the Tensforlow code on [Huggingface](https://huggingface.co/docs/datasets/use_dataset) gives a TypeError: __init__() got an unexpected keyword argument 'return_tensors' ### Error 2 `DataCollatorWit...
https://github.com/huggingface/datasets/issues/4857
No preprocessed wikipedia is working on huggingface/datasets
Thanks for reporting @aninrusimha. Please, note that the preprocessed datasets are still available, as described in the dataset card, e.g.: https://huggingface.co/datasets/wikipedia ```python ds = load_dataset("wikipedia", "20220301.en") ```
## Describe the bug 20220301 wikipedia dump has been deprecated, so now there is no working wikipedia dump on huggingface https://huggingface.co/datasets/wikipedia https://dumps.wikimedia.org/enwiki/
27
No preprocessed wikipedia is working on huggingface/datasets ## Describe the bug 20220301 wikipedia dump has been deprecated, so now there is no working wikipedia dump on huggingface https://huggingface.co/datasets/wikipedia https://dumps.wikimedia.org/enwiki/ Thanks for reporting @aninrusimha. Please, ...
https://github.com/huggingface/datasets/issues/4857
No preprocessed wikipedia is working on huggingface/datasets
This is working now, but I was getting an error a few days ago when running an existing script. Unfortunately I did not do a proper bug report, but for some reason I was unable to load the dataset due to a request being made to the wikimedia website. However, its working now. Thanks for the reply!
## Describe the bug 20220301 wikipedia dump has been deprecated, so now there is no working wikipedia dump on huggingface https://huggingface.co/datasets/wikipedia https://dumps.wikimedia.org/enwiki/
57
No preprocessed wikipedia is working on huggingface/datasets ## Describe the bug 20220301 wikipedia dump has been deprecated, so now there is no working wikipedia dump on huggingface https://huggingface.co/datasets/wikipedia https://dumps.wikimedia.org/enwiki/ This is working now, but I was getting an erro...
https://github.com/huggingface/datasets/issues/4015
Can not correctly parse the classes with imagefolder
I found that the problem arises because the image files in my folder are actually symbolic links (for my own reasons). After modifications, the classes can now be correctly parsed. Therefore, I close this issue.
## Describe the bug I try to load my own image dataset with imagefolder, but the parsing of classes is incorrect. ## Steps to reproduce the bug I organized my dataset (ImageNet) in the following structure: ``` - imagenet/ - train/ - n01440764/ - ILSVRC2012_val_00000293.jpg ...
35
Can not correctly parse the classes with imagefolder ## Describe the bug I try to load my own image dataset with imagefolder, but the parsing of classes is incorrect. ## Steps to reproduce the bug I organized my dataset (ImageNet) in the following structure: ``` - imagenet/ - train/ - n014407...
https://github.com/huggingface/datasets/issues/4634
Can't load the Hausa audio dataset
Could you provide the error details. It is difficult to debug otherwise. Also try other config. `ha` is not a valid.
common_voice_train = load_dataset("common_voice", "ha", split="train+validation")
21
Can't load the Hausa audio dataset common_voice_train = load_dataset("common_voice", "ha", split="train+validation") Could you provide the error details. It is difficult to debug otherwise. Also try other config. `ha` is not a valid.
https://github.com/huggingface/datasets/issues/6032
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info
`HfApi` comes from the `huggingface_hub` package. You can use [this](https://huggingface.co/docs/huggingface_hub/v0.16.3/en/package_reference/utilities#huggingface_hub.configure_http_backend) utility to change the `huggingface_hub`'s `Session` proxies (see the example). We plan to implement https://github.com/huggin...
### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http requests not using the proxies. ### Steps to reproduce the bug 1. Setup proxies i...
32
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info ### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http ...
https://github.com/huggingface/datasets/issues/6032
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info
@mariosasko are you saying if I do the following: ``` def backend_factory() -> requests.Session: session = requests.Session() session.proxies = { "https": "127.0.0.1:8887", "http": "127.0.0.1:8887", } session.verify = "/etc/ssl/certs/ca-certificates.crt" return session ...
### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http requests not using the proxies. ### Steps to reproduce the bug 1. Setup proxies i...
199
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info ### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http ...
https://github.com/huggingface/datasets/issues/6032
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info
`huggingface_hub.configure_http_backend` works for `transformers` because they only use the `huggingface_hub` lib for downloads. Our download logic is a bit more complex (e.g., we also support downloading non-Hub files), so we are not aligned with them yet. In the meantime, it's best to use the env vars.
### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http requests not using the proxies. ### Steps to reproduce the bug 1. Setup proxies i...
46
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info ### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http ...
https://github.com/huggingface/datasets/issues/6032
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info
@mariosasko I fully understand that the logic for dataset is different. I see 2 issues with the current implementation of the env variables: - having the same https_proxy/http_prox/no_proxy env variables for all tools is not good in some case. For example I have 2 differents proxy server. In 2019 we had discussion w...
### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http requests not using the proxies. ### Steps to reproduce the bug 1. Setup proxies i...
146
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info ### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http ...
https://github.com/huggingface/datasets/issues/5260
consumer-finance-complaints dataset not loading
I have opened an issue in that dataset Community tab on the Hub: https://huggingface.co/datasets/consumer-finance-complaints/discussions/1 Please note that in the meantime, you can load the dataset by passing `ignore_verifications=True`: ```python >>> ds = load_dataset("consumer-finance-complaints", ignore_verific...
### Describe the bug Error during dataset loading ### Steps to reproduce the bug ``` >>> import datasets >>> cf_raw = datasets.load_dataset("consumer-finance-complaints") Downloading builder script: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████...
82
consumer-finance-complaints dataset not loading ### Describe the bug Error during dataset loading ### Steps to reproduce the bug ``` >>> import datasets >>> cf_raw = datasets.load_dataset("consumer-finance-complaints") Downloading builder script: 100%|██████████████████████████████████████████████████████████████...
https://github.com/huggingface/datasets/issues/6728
Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT`
Through debugging, I found a potential solution is to modify the code in the error handling module of `huggingface_hub`: https://github.com/huggingface/huggingface_hub/commit/56d6c798c44e83d2a3167e74c022737d8fcbe822
### Describe the bug This bug is triggered under the following conditions: - datasets repo ids without organization names trigger errors, such as `bookcorpus`, `gsm8k`, `wikipedia`, rather than in the form of `A/B`. - If `HF_ENDPOINT` is set and the hostname is not in the form of `(hub-ci.)?huggingface.co`. - T...
20
Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT` ### Describe the bug This bug is triggered under the following conditions: - datasets repo ids without organization names trigger errors, such as `bookcorpus`, `gsm8k`, `wikipedia`, rather than in the form of `A/B`. - If `HF_ENDPOINT` is set a...
https://github.com/huggingface/datasets/issues/6728
Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT`
Thanks for investigating and reporting the bug @padeoe! I've opened a PR in `huggingface_hub` with your suggested fix! :) https://github.com/huggingface/huggingface_hub/pull/2119
### Describe the bug This bug is triggered under the following conditions: - datasets repo ids without organization names trigger errors, such as `bookcorpus`, `gsm8k`, `wikipedia`, rather than in the form of `A/B`. - If `HF_ENDPOINT` is set and the hostname is not in the form of `(hub-ci.)?huggingface.co`. - T...
20
Issue Downloading Certain Datasets After Setting Custom `HF_ENDPOINT` ### Describe the bug This bug is triggered under the following conditions: - datasets repo ids without organization names trigger errors, such as `bookcorpus`, `gsm8k`, `wikipedia`, rather than in the form of `A/B`. - If `HF_ENDPOINT` is set a...
https://github.com/huggingface/datasets/issues/6386
Formatting overhead
Ah I think the `line-profiler` log is off-by-one and it is in fact the `extract_batch` method that's taking forever. Will investigate further.
### Describe the bug Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is due to creating new inst...
22
Formatting overhead ### Describe the bug Hi! I very recently noticed that my training time is dominated by batch formatting. Using Lightning's profilers, I located the bottleneck within `datasets.formatting.formatting` and then narrowed it down with `line-profiler`. It turns out that almost all of the overhead is due ...
https://github.com/huggingface/datasets/issues/5499
`load_dataset` has ~4 seconds of overhead for cached data
Hi ! To skip the verification step that checks if newer data exist, you can enable offline mode with `HF_DATASETS_OFFLINE=1`. Although I agree this step should be much faster for datasets hosted on the HF Hub - we could just compare the commit hash from the local data and the remote git repository. We're not been le...
### Feature request When loading a dataset that has been cached locally, the `load_dataset` function takes a lot longer than it should take to fetch the dataset from disk (or memory). This is particularly noticeable for smaller datasets. For example, wikitext-2, comparing `load_data` (once cached) and `load_from_disk...
77
`load_dataset` has ~4 seconds of overhead for cached data ### Feature request When loading a dataset that has been cached locally, the `load_dataset` function takes a lot longer than it should take to fetch the dataset from disk (or memory). This is particularly noticeable for smaller datasets. For example, wikitext-...
https://github.com/huggingface/datasets/issues/3615
Dataset BnL Historical Newspapers does not work in streaming mode
@albertvillanova let me know if there is anything I can do to help with this. I had a quick look at the code again and though I could try the following changes: - use `download` instead of `download_and_extract` https://github.com/huggingface/datasets/blob/d3d339fb86d378f4cb3c5d1de423315c07a466c6/datasets/bnl_newspap...
## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien
66
Dataset BnL Historical Newspapers does not work in streaming mode ## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that i...
https://github.com/huggingface/datasets/issues/3615
Dataset BnL Historical Newspapers does not work in streaming mode
Thanks @davanstrien. I have already been working on it so that it can be used in the BigScience workshop. I agree that the `rglob()` is not efficient in this case. I tried different solutions without success: - `iter_archive` cannot be used in this case because it does not support ZIP files yet Finally I h...
## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien
57
Dataset BnL Historical Newspapers does not work in streaming mode ## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that i...
https://github.com/huggingface/datasets/issues/3615
Dataset BnL Historical Newspapers does not work in streaming mode
I see this is fixed now 🙂. I also picked up a few other tips from your redactors so hopefully my next attempts will support streaming from the start.
## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that it works fast in streaming mode. CC: @davanstrien
29
Dataset BnL Historical Newspapers does not work in streaming mode ## Describe the bug When trying to load in streaming mode, it "hangs"... ## Steps to reproduce the bug ```python ds = load_dataset("bnl_newspapers", split="train", streaming=True) ``` ## Expected results The code should be optimized, so that i...
https://github.com/huggingface/datasets/issues/7692
xopen: invalid start byte for streaming dataset with trust_remote_code=True
Hi ! it would be cool to convert this dataset to Parquet. This will make it work for `datasets>=4.0`, enable the Dataset Viewer and make it more reliable to load/stream (currently it uses a loading script in python and those are known for having issues sometimes) using `datasets==3.6.0`, here is the command to convert...
### Describe the bug I am trying to load YODAS2 dataset with datasets==3.6.0 ``` from datasets import load_dataset next(iter(load_dataset('espnet/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True))) ``` And get `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid ...
96
xopen: invalid start byte for streaming dataset with trust_remote_code=True ### Describe the bug I am trying to load YODAS2 dataset with datasets==3.6.0 ``` from datasets import load_dataset next(iter(load_dataset('espnet/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True))) ``` And get `Unic...
https://github.com/huggingface/datasets/issues/5477
Unpin sqlalchemy once issue is fixed
@albertvillanova It looks like that issue has been fixed so I made a PR to unpin sqlalchemy!
Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476
17
Unpin sqlalchemy once issue is fixed Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476 @albertvillanova It looks like that issue has been fixed so I made a PR to unpin sqlalchemy!
https://github.com/huggingface/datasets/issues/5477
Unpin sqlalchemy once issue is fixed
The source issue: - https://github.com/pandas-dev/pandas/issues/40686 has been fixed: - https://github.com/pandas-dev/pandas/pull/48576 The fix was released yesterday (2023-04-03) only in `pandas-2.0.0`: - https://github.com/pandas-dev/pandas/releases/tag/v2.0.0 but it will not be back-ported to `pandas-1`:...
Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476
62
Unpin sqlalchemy once issue is fixed Once the source issue is fixed: - pandas-dev/pandas#51015 we should revert the pin introduced in: - #5476 The source issue: - https://github.com/pandas-dev/pandas/issues/40686 has been fixed: - https://github.com/pandas-dev/pandas/pull/48576 The fix was released yesterd...
https://github.com/huggingface/datasets/issues/4619
np arrays get turned into native lists
If you add the line `dataset2.set_format('np')` before calling `dataset2[0]['tmp']` it should return `np.ndarray`. I believe internally it will not store it as a list, it is only returning a list when you index it. ``` In [1]: import datasets, numpy as np In [2]: dataset = datasets.load_dataset("glue", "mrpc")["v...
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
71
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import dat...
https://github.com/huggingface/datasets/issues/4619
np arrays get turned into native lists
I see, thanks! Any idea if the default numpy → list conversion might cause precision loss?
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
16
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import dat...
https://github.com/huggingface/datasets/issues/4619
np arrays get turned into native lists
I'm not super familiar with our datasets works internally, but I think your `np` array will be stored in a `pyarrow` format, and then you take a view of this as a python array. In which case, I think the precision should be preserved.
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
44
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import dat...
https://github.com/huggingface/datasets/issues/6661
Import error on Google Colab
Hi! This can happen if an incompatible `pyarrow` version (`pyarrow<12.0.0`) has been imported before the `datasets` installation and the Colab session hasn't been restarted afterward. To avoid the error, go to "Runtime -> Restart session" after `!pip install -U datasets` and before `import datasets`, or insert the `imp...
### Describe the bug Cannot be imported on Google Colab, the import throws the following error: ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject ### Steps to reproduce the bug 1. `! pip install -U datasets` 2. `import dataset...
65
Import error on Google Colab ### Describe the bug Cannot be imported on Google Colab, the import throws the following error: ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject ### Steps to reproduce the bug 1. `! pip install -U ...
https://github.com/huggingface/datasets/issues/6661
Import error on Google Colab
One possible cause might be the one pointed out by @mariosasko above, and you get the following warning on Colab: ``` WARNING: The following packages were previously imported in this runtime: [pyarrow] You must restart the runtime in order to use newly installed versions. ``` On the other hand, if the old ver...
### Describe the bug Cannot be imported on Google Colab, the import throws the following error: ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject ### Steps to reproduce the bug 1. `! pip install -U datasets` 2. `import dataset...
80
Import error on Google Colab ### Describe the bug Cannot be imported on Google Colab, the import throws the following error: ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject ### Steps to reproduce the bug 1. `! pip install -U ...
https://github.com/huggingface/datasets/issues/6661
Import error on Google Colab
Google Colab now pre-installs PyArrow 14.0.2, making this issue unlikely to happen. So, I'm unpinning it.
### Describe the bug Cannot be imported on Google Colab, the import throws the following error: ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject ### Steps to reproduce the bug 1. `! pip install -U datasets` 2. `import dataset...
16
Import error on Google Colab ### Describe the bug Cannot be imported on Google Colab, the import throws the following error: ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility. Expected 88 from C header, got 72 from PyObject ### Steps to reproduce the bug 1. `! pip install -U ...
https://github.com/huggingface/datasets/issues/5162
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6
Thanks for reporting, @Rijgersberg. We were waiting for the release of `dill` 0.3.6, that happened 2 days ago (24 Oct 2022): https://github.com/uqfoundation/dill/releases/tag/dill-0.3.6 - See comment: https://github.com/huggingface/datasets/pull/4397#discussion_r880629543 Also `multiprocess` 0.70.14 was released...
### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `multiprocess`. ### Steps to reproduce the bug ```bash $ echo "dataset...
43
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6 ### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `mu...
https://github.com/huggingface/datasets/issues/5162
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6
In your specific setup, I guess the compatible configuration is with `multiprocess` 0.70.13 (instead of 0.70.14).
### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `multiprocess`. ### Steps to reproduce the bug ```bash $ echo "dataset...
16
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6 ### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `mu...
https://github.com/huggingface/datasets/issues/5162
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6
> @Rijgersberg this issue is fixed. It will be available in our next `datasets` release. Any chance you have a eta?
### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `multiprocess`. ### Steps to reproduce the bug ```bash $ echo "dataset...
21
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6 ### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `mu...
https://github.com/huggingface/datasets/issues/5162
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6
@Rijgersberg, please also that you can make `pip-compile` work by using the backtracking resolver (instead of the legacy one): https://pip-tools.readthedocs.io/en/latest/#a-note-on-resolvers ``` pip-compile --resolver=backtracking requirements.in ``` This resolver will automatically use `multiprocess` 0.70.13 versi...
### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `multiprocess`. ### Steps to reproduce the bug ```bash $ echo "dataset...
33
Pip-compile: Could not find a version that matches dill<0.3.6,>=0.3.6 ### Describe the bug When using `pip-compile` (part of `pip-tools`) to generate a pinned requirements file that includes `datasets`, a version conflict of `dill` appears. It is caused by a transitive dependency conflict between `datasets` and `mu...
https://github.com/huggingface/datasets/issues/7415
Shard Dataset at specific indices
Hi ! if it's an option I'd suggest to have one sequence per row instead. Otherwise you'd have to make your own save/load mechanism
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from...
24
Shard Dataset at specific indices I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequen...
https://github.com/huggingface/datasets/issues/7415
Shard Dataset at specific indices
Saving one sequence per row is very difficult and heavy and makes all the optimizations pointless. How would a custom save/load mechanism look like?
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from...
24
Shard Dataset at specific indices I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequen...
https://github.com/huggingface/datasets/issues/7415
Shard Dataset at specific indices
You can use `pyarrow` for example to save/load individual arrow or parquet files and control what they contain
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from...
18
Shard Dataset at specific indices I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequen...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
small update: I converted the jsons to parquet and it now works well with 32 proc and the same node. I still think this needs to be understood, since json is a very popular and easy-to-use format.
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
37
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
Hi ! The JSON loader loads full files in memory, unless they are JSON Lines. In this case it iterates on the JSON Lines in a memory efficient manner. I know there is an `ijson` package that works similarly but for general JSON files, maybe it can help and remove the need to load full JSON files in memory
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
59
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
Hi, i understand that json files are probably loaded into memory to read them but aren't they released when we write all the file content into arrow or something?
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
29
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
Yes correct, the JSON data is only in memory during the conversion to Arrow. Then, the data is memory mapped from you disk
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
23
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
so the json files are all loaded into memory before converting to arrow? or do they convert 1 json at a time and then they are realeased? I don't understand how 200GB worth of jsons fill a 378GB node's memory.
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
40
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
Each process converts one JSON file at at time, So the total memory usage is num_proc * json_file_size * overhead, where overhead can be around 2 or 3 for the conversion. So it's indeed surprising that you run out of memory. Is the dataset available somewhere ? or a subset maybe ?
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
52
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
This is a tokenized dataset I created for training a speech-language model with a few features (so it is not private but not easily available). I can send/upload a shard or two and you can copy them however many times you want so you can debug. this should give you something comparable to what I have, but will be easie...
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
73
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
Maybe you can measure the memory usage when loading 1 file with num_proc=1 ? This should already be helpful. Memory usage for tokenized data can be bigger than just text, for example the tokens type can be inferred as int64 and the lists offsets are int32
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
46
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
OK, I will try to do this in the near future. I am a little swamped at the moment. do you have a preferred tool? also My data is just list of ints, there is no offsets
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
37
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
> so the json files are all loaded into memory before converting to arrow? or do they convert 1 json at a time and then they are realeased? I don't understand how 200GB worth of jsons fill a 378GB node's memory. Hello! Is your query solved? I have the same confusion and would like to ask you for advice
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
59
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
no, the issue is still present. I converted the json files to parquet, but json seems to have a problem. Unfortunately i didn't have the time to try and profile the memory usage for 1 file. So if you want to do that, it will be great!
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
47
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/7509
Dataset uses excessive memory when loading files
My dataset is about image descriptions, stored as a 20MB JSON file on disk. However, I need to use the map function to preprocess the images, and after computation, the preprocessed dataset amounts to 70GB. My server has 122GB of RAM, but it still runs out of memory (OOM). This issue is very similar to yours. After so...
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
210
Dataset uses excessive memory when loading files ### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M sam...
https://github.com/huggingface/datasets/issues/5922
Length of table does not accurately reflect the split
As already replied by @lhoestq (private channel): > `.train_test_split` (as well as `.shard`, `.select`) doesn't create a new arrow table to save time and disk space. Instead, it uses an indices mapping on top of the table that locate which examples are part of train or test.
### Describe the bug I load a Huggingface Dataset and do `train_test_split`. I'm expecting the underlying table for the dataset to also be split, but it's not. ### Steps to reproduce the bug ![image](https://github.com/huggingface/datasets/assets/8068268/83e5768f-8b4c-422a-945c-832a7585afff) ### Expected behavior...
47
Length of table does not accurately reflect the split ### Describe the bug I load a Huggingface Dataset and do `train_test_split`. I'm expecting the underlying table for the dataset to also be split, but it's not. ### Steps to reproduce the bug ![image](https://github.com/huggingface/datasets/assets/8068268/83e5768f...
https://github.com/huggingface/datasets/issues/5511
Creating a dummy dataset from a bigger one
Update `datasets` or downgrade `huggingface-hub` ;) The `huggingface-hub` lib did a breaking change a few months ago, and you're using an old version of `datasets` that does't support it
### Describe the bug I often want to create a dummy dataset from a bigger dataset for fast iteration when training. However, I'm having a hard time doing this especially when trying to upload the dataset to the Hub. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset...
29
Creating a dummy dataset from a bigger one ### Describe the bug I often want to create a dummy dataset from a bigger dataset for fast iteration when training. However, I'm having a hard time doing this especially when trying to upload the dataset to the Hub. ### Steps to reproduce the bug ```python from datasets im...
https://github.com/huggingface/datasets/issues/5511
Creating a dummy dataset from a bigger one
Getting same error with latest versions. ```shell --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[99], line 1 ----> 1 dataset.push_to_hub("mirfan899/kids_phoneme_asr") File /opt/conda/lib/python3....
### Describe the bug I often want to create a dummy dataset from a bigger dataset for fast iteration when training. However, I'm having a hard time doing this especially when trying to upload the dataset to the Hub. ### Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset...
237
Creating a dummy dataset from a bigger one ### Describe the bug I often want to create a dummy dataset from a bigger dataset for fast iteration when training. However, I'm having a hard time doing this especially when trying to upload the dataset to the Hub. ### Steps to reproduce the bug ```python from datasets im...
https://github.com/huggingface/datasets/issues/7138
Cache only changed columns?
so I guess a workaround to this is to simply remove all columns except the ones to cache and then add them back with `concatenate_datasets(..., axis=1)`.
### Feature request Cache only the actual changes to the dataset i.e. changed columns. ### Motivation I realized that caching actually saves the complete dataset again. This is especially problematic for image datasets if one wants to only change another column e.g. some metadata and then has to save 5 TB again. #...
26
Cache only changed columns? ### Feature request Cache only the actual changes to the dataset i.e. changed columns. ### Motivation I realized that caching actually saves the complete dataset again. This is especially problematic for image datasets if one wants to only change another column e.g. some metadata and the...
https://github.com/huggingface/datasets/issues/7138
Cache only changed columns?
yes this is the right workaround. We're keeping the cache like this to make it easier for people to delete intermediate cache files
### Feature request Cache only the actual changes to the dataset i.e. changed columns. ### Motivation I realized that caching actually saves the complete dataset again. This is especially problematic for image datasets if one wants to only change another column e.g. some metadata and then has to save 5 TB again. #...
23
Cache only changed columns? ### Feature request Cache only the actual changes to the dataset i.e. changed columns. ### Motivation I realized that caching actually saves the complete dataset again. This is especially problematic for image datasets if one wants to only change another column e.g. some metadata and the...
https://github.com/huggingface/datasets/issues/6638
Cannot download wmt16 dataset
Looks like it works with latest datasets repository ``` - `datasets` version: 2.16.2.dev0 - Platform: Linux-5.15.0-92-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - `huggingface_hub` version: 0.20.3 - PyArrow version: 15.0.0 - Pandas version: 2.0.1 - `fsspec` version: 2023.10.0 ``` Could you expla...
### Describe the bug As of this morning (PST) 2/1/2024, seeing the wmt16 dataset is missing from opus , could you suggest an alternative? ``` Downloading data files: 0%| | 0/4 [00:00<?, ?it/s]Tra...
57
Cannot download wmt16 dataset ### Describe the bug As of this morning (PST) 2/1/2024, seeing the wmt16 dataset is missing from opus , could you suggest an alternative? ``` Downloading data files: 0%| ...
https://github.com/huggingface/datasets/issues/7721
Bad split error message when using percentages
The most basic example is this code: `load_dataset("openslr/librispeech_asr", split="train[10%:20%]")` This results in this ValueError: ``` raise ValueError(f'Unknown split "{split}". Should be one of {list(name2len)}.') ValueError: Unknown split "train". Should be one of ['test.clean', 'test.other', 'train.clean....
### Describe the bug Hi, I'm trying to download a dataset. To not load the entire dataset in memory, I split it as described [here](https://huggingface.co/docs/datasets/v4.0.0/loading#slice-splits) in 10% steps. When doing so, the library returns this error: raise ValueError(f"Bad split: {split}. Available splits...
40
Bad split error message when using percentages ### Describe the bug Hi, I'm trying to download a dataset. To not load the entire dataset in memory, I split it as described [here](https://huggingface.co/docs/datasets/v4.0.0/loading#slice-splits) in 10% steps. When doing so, the library returns this error: raise Va...
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore) I guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what do you thi...
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddin...
60
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embed...
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
doing `.add_column("x",x_data)` also removes the index. the new column might be irrelevant to the index so I don't think it should drop. Minimal example ```python from datasets import load_dataset import numpy as np data=load_dataset("ceyda/cats_vs_dogs_sample") #just a test dataset data=data["train"] emb...
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddin...
47
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embed...
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
I agree `add_column` shouldn't drop the index indeed ! Is it something you'd like to contribute ? I think it's just a matter of copying the `self._indexes` dictionary to the output dataset
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddin...
32
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embed...
https://github.com/huggingface/datasets/issues/3776
Allow download only some files from the Wikipedia dataset
Hi @jvanz, thank you for your proposal. In fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_files` to lo...
**Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I...
70
Allow download only some files from the Wikipedia dataset **Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory...
https://github.com/huggingface/datasets/issues/5352
__init__() got an unexpected keyword argument 'input_size'
Hi @J-shel, thanks for reporting. I think the issue comes from your call to `load_dataset`. As first argument, you should pass: - either the name of your dataset ("mrf") if this is already published on the Hub - or the path to the loading script of your dataset ("path/to/your/local/mrf.py").
### Describe the bug I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html But when I load the dataset, I got an error "__init__() got an unexpected keyword argument...
49
__init__() got an unexpected keyword argument 'input_size' ### Describe the bug I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html But when I load the dataset, I ...
https://github.com/huggingface/datasets/issues/5352
__init__() got an unexpected keyword argument 'input_size'
Hi, following your suggestion, I changed my call to load_dataset. Below is the latest: reader = load_dataset('data/mrf.py',"default", input_size=1024, split=split, streaming=True, keep_in_memory=None) However, I still got the same error. I have one question that is if I only define input_size=2048 in BUILDER_CONFIGS...
### Describe the bug I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html But when I load the dataset, I got an error "__init__() got an unexpected keyword argument...
65
__init__() got an unexpected keyword argument 'input_size' ### Describe the bug I try to define a custom configuration with a input_size attribute following the instructions by "Specifying several dataset configurations" in https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html But when I load the dataset, I ...
https://github.com/huggingface/datasets/issues/5053
Intermittent JSON parse error when streaming the Pile
Maybe #2838 can help. In this PR we allow to skip bad chunks of JSON data to not crash the training Did you have warning messages before the error ? something like this maybe ? ``` 03/24/2022 02:19:46 - WARNING - datasets.utils.streaming_download_manager - Got disconnected from remote data host. Retrying in 5se...
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
95
Intermittent JSON parse error when streaming the Pile ## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact poin...
https://github.com/huggingface/datasets/issues/5053
Intermittent JSON parse error when streaming the Pile
Ah, thanks! I did get errors like that. Sad that PR wasn't merged in! I'm currently just downloading 200GB of the Pile locally to avoid streaming (I have space and it's faster anyway), but that's really useful! I can probably apply the dumb patch of just commenting out the bits that raise the JSON Parse Error lol, ...
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
71
Intermittent JSON parse error when streaming the Pile ## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact poin...
https://github.com/huggingface/datasets/issues/5053
Intermittent JSON parse error when streaming the Pile
Yup you can get some inspiration from this PR. It simply ignores the bad chunks (a chunk is ~a few MBs of data). We'll try to merge this PR soon
## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact point this happens also varied - it happened to me 11B tok...
30
Intermittent JSON parse error when streaming the Pile ## Describe the bug I have an intermittent error when streaming the Pile, where I get a JSON parse error which causes my program to crash. This is intermittent - when I rerun the program with the same random seed it does not crash in the same way. The exact poin...
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
Hi! You can use the `extra_gated_prompt` YAML field in a dataset card for displaying custom messages/warnings that the user must accept before gaining access to the actual dataset. This option also keeps the viewer hidden until the user agrees to terms.
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning messa...
41
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an op...
https://github.com/huggingface/datasets/issues/4163
Optional Content Warning for Datasets
Hi @mariosasko, thanks for explaining how to add this feature. If the current dataset yaml is: ``` --- annotations_creators: - expert language_creators: - expert-generated languages: - en license: - cc-by-4.0 multilinguality: - monolingual pretty_name: HatemojiBuild size_categories: - 1K<n<10K sourc...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an option to select a content warning messa...
64
Optional Content Warning for Datasets **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. We now have hate speech datasets on the hub, like this one: https://huggingface.co/datasets/HannahRoseKirk/HatemojiBuild I'm wondering if there is an op...