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/5244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
> I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks! I published it here: https://github.com/Hubert-Bonisseur/private-dataset-hub I modified the names of a lot of functions for privacy and I don't have time to test it agai...
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
90
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script ### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It shoul...
https://github.com/huggingface/datasets/issues/5244
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
Given the amount of patching it does, this is likely to break at one point. I'd encourage you to wait for a proper support in `datasets` directly if you can wait.
### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_...
31
Allow dataset streaming from private a private source when loading a dataset with a dataset loading script ### Feature request Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source. It shoul...
https://github.com/huggingface/datasets/issues/7447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
Thanks for reporting ! Maybe we should store the epoch in the state_dict, and then when the dataset is iterated on again after setting a new epoch it should restart from scratch instead of resuming ? wdyt ?
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
38
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True) ### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was...
https://github.com/huggingface/datasets/issues/7447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
But why does this only happen when `persistent_workers=True`? I would expect it to work correctly even without storing the epoch number in the state_dict of the iterable dataset.
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
28
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True) ### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was...
https://github.com/huggingface/datasets/issues/7447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
I think persistent_workers=False simply ignores the dataset state_dict when it starts a new epoch, that's why the issue doesn't appear in that case
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
23
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True) ### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was...
https://github.com/huggingface/datasets/issues/7447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
I just released `datasets` 3.4 that includes the fix :) PS: in your script you probably want to set the epoch like this, otherwise it's still set to 0 after the first epoch: ```diff if state_dict is None: - ds.set_epoch(epoch) epoch += 1 + ds.set_epoch(epoch) ```
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
46
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True) ### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was...
https://github.com/huggingface/datasets/issues/7447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
@lhoestq If I understand correctly, the issue was: when training saves a checkpoint of dataloader in epoch 1, the resumed training only consumes partial data in epoch 2, 3, etc. However, with the fix we are facing the issue that: when training saves a checkpoint of dataloader in epoch 2, the resumed training starts f...
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
82
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True) ### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was...
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Thanks for reporting ! I pushed a temporary fix on `master` that uses an URL from a previous commit to access the dataset for now, until we have a better solution
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual r...
31
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected...
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
I changed the URL again to use another host, the fix is available on `master` and we'll probably do a new release of `datasets` tomorrow. In the meantime, feel free to do `load_dataset(..., revision="master")` to use the fixed script
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual r...
39
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected...
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
We just released a new version of `datasets` with a working URL. Feel free to update `datasets` and try again :)
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual r...
21
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected...
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Hello! Unfortunately, this URL does not work for me. Could you please tell me how I can solve the problem? `>>> from datasets import load_dataset >>> dataset = load_dataset("conll2003") Downloading and preparing dataset conll2003/conll2003 (download: 4.63 MiB, generated: 9.78 MiB, post-processed: Unknown size, t...
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual r...
199
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected...
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
@lhoestq Thank you very much for your answer! It works this way, but for my research I need datasets==1.6.3 or closest to it because otherwise the other package would not work as it is built on this version. Do you have any other suggestion? I would really appreciate it. Maybe which version of the datasets is with...
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual r...
63
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected...
https://github.com/huggingface/datasets/issues/4711
Document how to create a dataset loading script for audio/vision
I'm closing this issue as both the Audio and Image sections now have a "Create dataset" page that contains the info about writing the loading script version of a dataset.
Currently, in our docs for Audio/Vision/Text, we explain how to: - Load data - Process data However we only explain how to *Create a dataset loading script* for text data. I think it would be useful that we add the same for Audio/Vision as these have some specificities different from Text. See, for example: ...
30
Document how to create a dataset loading script for audio/vision Currently, in our docs for Audio/Vision/Text, we explain how to: - Load data - Process data However we only explain how to *Create a dataset loading script* for text data. I think it would be useful that we add the same for Audio/Vision as these h...
https://github.com/huggingface/datasets/issues/6013
[FR] `map` should reuse unchanged columns from the previous dataset to avoid disk usage
You can use the `remove_columns` parameter in `map` to avoid duplicating the columns (and save disk space) and then concatenate the original dataset with the map result: ```python from datasets import concatenate_datasets # dummy example ds_new = ds.map(lambda x: {"new_col": x["col"] + 2}, remove_columns=ds.column_...
### Feature request Currently adding a new column with `map` will cause all the data in the dataset to be duplicated and stored/cached on the disk again. It should reuse unchanged columns. ### Motivation This allows having datasets with different columns but sharing some basic columns. Currently, these datasets wou...
93
[FR] `map` should reuse unchanged columns from the previous dataset to avoid disk usage ### Feature request Currently adding a new column with `map` will cause all the data in the dataset to be duplicated and stored/cached on the disk again. It should reuse unchanged columns. ### Motivation This allows having datas...
https://github.com/huggingface/datasets/issues/3939
Source links broken
Thanks for reporting @qqaatw. @mishig25 @sgugger do you think this can be tweaked in the new doc framework? - From: https://github.com/huggingface/datasets/blob/v2.0.0/ - To: https://github.com/huggingface/datasets/blob/2.0.0/
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features...
24
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/s...
https://github.com/huggingface/datasets/issues/3939
Source links broken
@qqaatw thanks a lot for notifying about this issue! in comparison, transformers tags start with `v` like [this one](https://github.com/huggingface/transformers/blob/v4.17.0/src/transformers/models/bert/configuration_bert.py#L54). Therefore, we have to do one of 2 options below: 1. Make necessary changes on doc-...
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features...
64
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/s...
https://github.com/huggingface/datasets/issues/3939
Source links broken
I think option 2 is the easiest and would provide harmony in the HF ecosystem but we can also add a doc config parameter to decide whether the default version has a v or not if `datasets` folks prefer their tags without a v :-)
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features...
45
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/s...
https://github.com/huggingface/datasets/issues/3939
Source links broken
For me it is OK to conform to the rest of libraries and tag/release with a preceding "v", rather than adding an extra argument to the doc builder just for `datasets`. Let me know if it is also OK for you @lhoestq.
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features...
42
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/s...
https://github.com/huggingface/datasets/issues/3939
Source links broken
We could add a tag for each release without a 'v' but it could be confusing on github to see both tags `v2.0.0` and `2.0.0` IMO (not sure if many users check them though). Removing the tags without 'v' would break our versioning for github datasets: the library looks for dataset scripts at the URLs like `https://raw.gi...
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features...
111
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/s...
https://github.com/huggingface/datasets/issues/3939
Source links broken
This is done in #3943 to go along with [doc-builder#146](https://github.com/huggingface/doc-builder/pull/146). Note that this will only work for future versions, so once those two are merged, the actual v2.0.0 doc should be fixed. The easiest is to cherry-pick this commit on the v2.0.0 release branch (or on a new br...
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features...
66
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/s...
https://github.com/huggingface/datasets/issues/7197
ConnectionError: Couldn't reach 'allenai/c4' on the Hub (ConnectionError)数据集下不下来,怎么回事
Also cant download "allenai/c4", but with different error reported: ``` Traceback (most recent call last): ...
### Describe the bug from datasets import load_dataset print("11") traindata = load_dataset('ptb_text_only', 'penn_treebank', split='train') print("22") valdata = load_dataset('ptb_text_only', 'penn_treebank', split='validation') ### Steps to reproduce the b...
109
ConnectionError: Couldn't reach 'allenai/c4' on the Hub (ConnectionError)数据集下不下来,怎么回事 ### Describe the bug from datasets import load_dataset print("11") traindata = load_dataset('ptb_text_only', 'penn_treebank', split='train') print("22") valdata = load_dataset('ptb_text_only', 'penn_tr...
https://github.com/huggingface/datasets/issues/5988
ConnectionError: Couldn't reach dataset_infos.json
Unfortunately, I can't reproduce the error. What does the following code return for you? ```python import requests from huggingface_hub import hf_hub_url r = requests.get(hf_hub_url("codeparrot/codeparrot-clean-train", "dataset_infos.json", repo_type="dataset")) ``` Also, can you provide more info about your ne...
### Describe the bug I'm trying to load codeparrot/codeparrot-clean-train, but get the following error: ConnectionError: Couldn't reach https://huggingface.co/datasets/codeparrot/codeparrot-clean-train/resolve/main/dataset_infos.json (ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'C...
39
ConnectionError: Couldn't reach dataset_infos.json ### Describe the bug I'm trying to load codeparrot/codeparrot-clean-train, but get the following error: ConnectionError: Couldn't reach https://huggingface.co/datasets/codeparrot/codeparrot-clean-train/resolve/main/dataset_infos.json (ConnectionError(ProtocolError...
https://github.com/huggingface/datasets/issues/3365
Add task tags for multimodal datasets
The Hub pulls these tags from [here](https://github.com/huggingface/hub-docs/blob/main/js/src/lib/interfaces/Types.ts) (allows multimodal tasks) now, so I'm closing this issue.
## **Is your feature request related to a problem? Please describe.** Currently, task tags are either exclusively related to text or speech processing: - https://github.com/huggingface/datasets/blob/master/src/datasets/utils/resources/tasks.json ## **Describe the solution you'd like** We should also add tasks...
16
Add task tags for multimodal datasets ## **Is your feature request related to a problem? Please describe.** Currently, task tags are either exclusively related to text or speech processing: - https://github.com/huggingface/datasets/blob/master/src/datasets/utils/resources/tasks.json ## **Describe the solution yo...
https://github.com/huggingface/datasets/issues/7864
add_column and add_item erroneously(?) require new_fingerprint parameter
Take this with a grain of salt, this is just my personal understanding: While you technically can overwrite the new_fingerprint with a string, e.g. ```python t = d.add_column("new_column", col_value, new_fingerprint="dummy_fp") assert t._fingerprint == "dummy_fp" # this is true and will pass ``` this is not desired si...
### Describe the bug Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, which has the fingerprint parameter listed as optional; is there any reason i...
242
add_column and add_item erroneously(?) require new_fingerprint parameter ### Describe the bug Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, whic...
https://github.com/huggingface/datasets/issues/7864
add_column and add_item erroneously(?) require new_fingerprint parameter
Any updates on this? Current behavior suggests that user is supposed to pass in the `new_fingerprint` argument, while examples in documentation doesn't include that argument at all.
### Describe the bug Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, which has the fingerprint parameter listed as optional; is there any reason i...
27
add_column and add_item erroneously(?) require new_fingerprint parameter ### Describe the bug Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, whic...
https://github.com/huggingface/datasets/issues/7864
add_column and add_item erroneously(?) require new_fingerprint parameter
Hi! Triaging older issues — this looks like it's already been fixed. `Dataset.add_column` and `Dataset.add_item` no longer require `new_fingerprint`. On current `main` (`datasets==4.8.6.dev0`): ```python >>> from datasets import Dataset >>> ds = Dataset.from_dict({"a": [1, 2, 3]}) >>> ds.add_column("b", [4, 5, 6])["b...
### Describe the bug Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, which has the fingerprint parameter listed as optional; is there any reason i...
106
add_column and add_item erroneously(?) require new_fingerprint parameter ### Describe the bug Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, whic...
https://github.com/huggingface/datasets/issues/5727
load_dataset fails with FileNotFound error on Windows
Hi! Can you please paste the entire error stack trace, not only the last few lines?
### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) install with: ``conda` install -c huggingface -c conda-...
16
load_dataset fails with FileNotFound error on Windows ### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) i...
https://github.com/huggingface/datasets/issues/5727
load_dataset fails with FileNotFound error on Windows
`----> 1 dataset = datasets.load_dataset("glue", "ax") File ~\anaconda3\envs\huggingface\Lib\site-packages\datasets\load.py:1767, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, verification_mode, ignore_verifications, keep_in_memory, save_infos, revision...
### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) install with: ``conda` install -c huggingface -c conda-...
217
load_dataset fails with FileNotFound error on Windows ### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) i...
https://github.com/huggingface/datasets/issues/5727
load_dataset fails with FileNotFound error on Windows
Okay, this is the issue: ``` FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\...\\.cache\\huggingface' ``` I don't remember seeing this error before. I guess it could happen in a multi-process environment if one of the processes deletes the `datasets` cache as the othe...
### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) install with: ``conda` install -c huggingface -c conda-...
80
load_dataset fails with FileNotFound error on Windows ### Describe the bug Although I can import and run the datasets library in a Colab environment, I cannot successfully load any data on my own machine (Windows 10) despite following the install steps: (1) create conda environment (2) activate environment (3) i...
https://github.com/huggingface/datasets/issues/5905
Offer an alternative to Iterable Dataset that allows lazy loading and processing while skipping batches efficiently
We plan to improve this eventually (see https://github.com/huggingface/datasets/issues/5454 and https://github.com/huggingface/datasets/issues/5380). > Is it possible to lazily load samples of a mapped dataset ? I'm used to [dataset scripts](https://huggingface.co/docs/datasets/dataset_script), maybe something can b...
### Feature request I would like a way to resume training from a checkpoint without waiting for a very long time when using an iterable dataset. ### Motivation I am training models on the speech-recognition task. I have very large datasets that I can't comfortably store on a disk and also quite computationally...
151
Offer an alternative to Iterable Dataset that allows lazy loading and processing while skipping batches efficiently ### Feature request I would like a way to resume training from a checkpoint without waiting for a very long time when using an iterable dataset. ### Motivation I am training models on the speech-...
https://github.com/huggingface/datasets/issues/5193
"One or several metadata. were found, but not in the same directory or in a parent directory"
Also unrelated but still: https://huggingface.co/docs/datasets/image_dataset#generate-the-dataset ```If your loading script passed the test, you should now have a dataset_infos.json file in your dataset folder.``` It's not the case anymore as it's now in the readme.md, it was confusing to me
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
39
"One or several metadata. were found, but not in the same directory or in a parent directory" ### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datase...
https://github.com/huggingface/datasets/issues/5193
"One or several metadata. were found, but not in the same directory or in a parent directory"
And here is my data loader script: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data/blob/main/SDH_16k.py I have one file archive to download that contains the images for all splits and one `metadata.jsonl` to download that contains the informations about what image goes into what split.
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
38
"One or several metadata. were found, but not in the same directory or in a parent directory" ### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datase...
https://github.com/huggingface/datasets/issues/5193
"One or several metadata. were found, but not in the same directory or in a parent directory"
Hi @lambda-science! It seems that your repo is recognized as a packaged module [ImageFolder](https://huggingface.co/docs/datasets/main/en/image_dataset#imagefolder), not as a dataset with the custom loading script, because loader looks for a script that has the same name as the dataset repo. So please try to rename you...
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
50
"One or several metadata. were found, but not in the same directory or in a parent directory" ### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datase...
https://github.com/huggingface/datasets/issues/5193
"One or several metadata. were found, but not in the same directory or in a parent directory"
> Hi @lambda-science! It seems that your repo is recognized as a packaged module [ImageFolder](https://huggingface.co/docs/datasets/main/en/image_dataset#imagefolder), not as a dataset with the custom loading script, because loader looks for a script that has the same name as the dataset repo. So please try to rename y...
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
77
"One or several metadata. were found, but not in the same directory or in a parent directory" ### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datase...
https://github.com/huggingface/datasets/issues/5193
"One or several metadata. were found, but not in the same directory or in a parent directory"
@lambda-science that's not embarrassing at all! it's actually not clear from the documentation that the script should have the same name, so thank you for the issue, we'll add this information to the docs :)
### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datasets import load_dataset load_dataset("corentinm7/MyoQuant-SDH-Data") ``` ```python Downlo...
35
"One or several metadata. were found, but not in the same directory or in a parent directory" ### Describe the bug When loading my own dataset, on loading it I get an error. Here is my dataset link: https://huggingface.co/datasets/corentinm7/MyoQuant-SDH-Data And the error after loading with: ```python from datase...
https://github.com/huggingface/datasets/issues/6800
High overhead when loading lots of subsets from the same dataset
Hi ! It's possible to multiple files at once: ```python data_files = "data/*.jsonl" # Or pass a list of files langs = ['ka-ml', 'br-sr', 'ka-pt', 'id-ko', ..., 'fi-ze_zh', 'he-kk', 'ka-tr'] data_files = [f"data/{lang}.jsonl" for lang in langs] ds = load_dataset("loicmagne/open-subtitles-250-bitext-mining", d...
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
76
High overhead when loading lots of subsets from the same dataset ### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As par...
https://github.com/huggingface/datasets/issues/6800
High overhead when loading lots of subsets from the same dataset
Thanks for your reply, it is indeed much faster, however the result is a dataset where all the subsets are "merged" together, the language pair is lost: ``` DatasetDict({ train: Dataset({ features: ['sentence1', 'sentence2'], num_rows: 247809 }) }) ``` I guess I could add a 'lang' featu...
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
62
High overhead when loading lots of subsets from the same dataset ### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As par...
https://github.com/huggingface/datasets/issues/6800
High overhead when loading lots of subsets from the same dataset
Hi @lhoestq over at https://github.com/embeddings-benchmark/mteb/issues/530 we have started examining these issues and would love to make a PR for datasets if we believe there is a way to improve the speed. As I assume you have a better overview than me @lhoestq, would you be interested in a PR, and might you have an i...
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
108
High overhead when loading lots of subsets from the same dataset ### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As par...
https://github.com/huggingface/datasets/issues/6800
High overhead when loading lots of subsets from the same dataset
Can you retry using `datasets` 2.19 ? We improved a lot the speed of downloading datasets with tons of small files. ``` pip install -U datasets ``` Now this takes 17sec on my side instead of the 17min minutes @loicmagne mentioned :) ```python >>> %time ds = load_dataset("loicmagne/open-subtitles-250-bitext-...
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
92
High overhead when loading lots of subsets from the same dataset ### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As par...
https://github.com/huggingface/datasets/issues/6800
High overhead when loading lots of subsets from the same dataset
> Can you retry using `datasets` 2.19 ? We improved a lot the speed of downloading datasets with tons of small files. > > ``` > pip install -U datasets > ``` > > Now this takes 17sec on my side instead of the 17min minutes @loicmagne mentioned :) > > ```python > >>> %time ds = load_dataset("loicmagne/open-s...
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
182
High overhead when loading lots of subsets from the same dataset ### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As par...
https://github.com/huggingface/datasets/issues/6800
High overhead when loading lots of subsets from the same dataset
It's the fastest way I think :) Alternatively you can download the dataset repository locally using [huggingface_hub](https://huggingface.co/docs/huggingface_hub/guides/download) (either via CLI or in python) and load the subsets one by one locally using a for loop as you were doing before (just pass the directory p...
### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As part of the MTEB benchmark, we may need to load all the subsets of t...
51
High overhead when loading lots of subsets from the same dataset ### Describe the bug I have a multilingual dataset that contains a lot of subsets. Each subset corresponds to a pair of languages, you can see here an example with 250 subsets: [https://hf.co/datasets/loicmagne/open-subtitles-250-bitext-mining](). As par...
https://github.com/huggingface/datasets/issues/6317
sentiment140 dataset unavailable
We have opened an issue in the corresponding Hub dataset: https://huggingface.co/datasets/sentiment140/discussions/3 Let's continue the discussion there.
### Describe the bug loading the dataset using load_dataset("sentiment140") returns the following error ConnectionError: Couldn't reach http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip (error 403) ### Steps to reproduce the bug Run the following code (version should not matter). ``` from data...
16
sentiment140 dataset unavailable ### Describe the bug loading the dataset using load_dataset("sentiment140") returns the following error ConnectionError: Couldn't reach http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip (error 403) ### Steps to reproduce the bug Run the following code (version shou...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
Hi! I agree `skip` can be inefficient to use in the current state. To make it fast, we could use "statistics" stored in Parquet metadata and read only the chunks needed to form a dataset. And thanks to the "datasets-server" project, which aims to store the Parquet versions of the Hub datasets (only the smaller d...
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
75
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
@mariosasko do the current parquet files created by the datasets-server already have the required "statistics"? If not, please open an issue on https://github.com/huggingface/datasets-server with some details to make sure we implement it.
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
32
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
Yes, nothing has to be changed on the datasets-server side. What I mean by "statistics" is that we can use the "row_group" metadata embedded in a Parquet file (by default) to fetch the requested rows more efficiently.
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
37
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
Glad to see the feature could be of interest. I'm sure there are many possible ways to implement this feature. I don't know enough about the datasets-server, but I guess that it is not instantaneous, in the sense that user-owned private datasets might need hours or days until they are ported to the datasets-server ...
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
82
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
re: statistics: - https://arrow.apache.org/docs/python/generated/pyarrow.parquet.FileMetaData.html - https://arrow.apache.org/docs/python/generated/pyarrow.parquet.RowGroupMetaData.html ```python >>> import pyarrow.parquet as pq >>> import hffs >>> fs = hffs.HfFileSystem("glue", repo_type="dataset", revision=...
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
71
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
> user-owned private datasets might need hours or days until they are ported to the datasets-server (if at all) private datasets are not supported yet (https://github.com/huggingface/datasets-server/issues/39)
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
26
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
@versae `Dataset.push_to_hub` writes shards in Parquet, so this solution would also work for such datasets (immediately after the push).
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
19
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
@mariosasko that is right. However, there are still a good amount of datasets for which the shards are created manually. In our very specific case, we create medium-sized datasets (rarely over 100-200GB) of both text and audio, we prepare the shards by hand and then upload then. It would be great to have immediate acce...
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
63
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
From looking at Arrow's source, it seems Parquet stores metadata at the end, which means one needs to iterate over a Parquet file's data before accessing its metadata. We could mimic Dask to address this "limitation" and write metadata in a `_metadata`/`_common_metadata` file in `to_parquet`/`push_to_hub`, which we cou...
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
66
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5380
Improve dataset `.skip()` speed in streaming mode
So if Parquet metadata needs to be in its own file anyway, why not implement this skipping feature by storing the example counts per shard in `dataset_infos.json`? That would allow: - Support both private and public datasets - Immediate access to the feature upon uploading of shards - Use any dataset, not only those...
### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the download of a shard when in streaming mode, which AFAICT...
74
Improve dataset `.skip()` speed in streaming mode ### Feature request Add extra information to the `dataset_infos.json` file to include the number of samples/examples in each shard, for example in a new field `num_examples` alongside `num_bytes`. The `.skip()` function could use this information to ignore the downlo...
https://github.com/huggingface/datasets/issues/5158
Fix language and license tag names in all Hub datasets
Hi @ayushthe1, thanks for your offer. But as you can see, I self-assigned this issue. I have already fixed 200 out of the 402 datasets. My script is still running and fixing the rest. For example: https://huggingface.co/datasets/fhamborg/news_sentiment_newsmtsc/discussions/2/files
While working on this: - #5137 we realized there are still many datasets with deprecated "languages" and "licenses" tag names (instead of "language" and "license"). This is a blocking issue: no subsequent PR can be opened to modify their metadata: a ValueError will be thrown. We should fix the "language" and ...
37
Fix language and license tag names in all Hub datasets While working on this: - #5137 we realized there are still many datasets with deprecated "languages" and "licenses" tag names (instead of "language" and "license"). This is a blocking issue: no subsequent PR can be opened to modify their metadata: a ValueErr...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
The dataset is sadly not really compatible to be loaded with `load_dataset`. So far it is better to git clone it and to use the files directly. A data loading script would be needed to be added to this dataset. But this was too much overhead / not really intuitive how to create it.
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
54
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
Since the dataset is a bunch of TSVs we should not need a dataset script I think. By default it tries to load all the TSVs at once, which fails here because they don't all have the same columns (pd.read_csv uses the first line as header by default). But those files have no header ! So, to properly load any TSV file ...
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
118
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
There are more issues in the dataset. To load OpenSubtitles I have to provide this (see `skiprows`): ```python df_os = pd.read_csv( "./parallel-sentences/OpenSubtitles/OpenSubtitles-en-de-train.tsv.gz", sep="\t", quoting=csv.QUOTE_NONE, header=None, names=["en", "de"], skiprows=[540...
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
39
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
What's wrong with those lines exactly ? Maybe passing `error_bad_lines=False` (and maybe `warn_bad_lines=True`) can be helpful
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
16
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
> What's wrong with those lines exactly ? Stuff like this: `ParserError: Error tokenizing data. C error: Expected 2 fields in line 540345, saw 3`
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
25
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/...
https://github.com/huggingface/datasets/issues/5081
Bug loading `sentence-transformers/parallel-sentences`
> Maybe passing error_bad_lines=False (and maybe warn_bad_lines=True) can be helpful Yes. That would hide the issue but not solve it.
## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the '...
20
Bug loading `sentence-transformers/parallel-sentences` ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("sentence-transformers/parallel-sentences") ``` raises this: ``` /home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/...
https://github.com/huggingface/datasets/issues/4934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
Thanks @albertvillanova for checking the issue. Actually, I can use the dataset like following: ``` >>> from datasets import load_dataset >>> ds=load_dataset("indonesian-nlp/librivox-indonesia") No config specified, defaulting to: librivox-indonesia/all Reusing dataset librivox-indonesia (/root/.cache/huggingface/...
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
102
Dataset Viewer issue for indonesian-nlp/librivox-indonesia ### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: `...
https://github.com/huggingface/datasets/issues/4934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
Yes, the issue arises when streaming (that is used by the viewer): your script does not support streaming and to support it in this case there are some subtleties that we are explaining better in our docs in a work-in progress pull request: - #4872 Just note that when streaming, `local_extracted_archive` is None, a...
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
100
Dataset Viewer issue for indonesian-nlp/librivox-indonesia ### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: `...
https://github.com/huggingface/datasets/issues/4934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
Hi @albertvillanova , I just add the streaming functionality and it works in the first try :-) Thanks a lot!
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
20
Dataset Viewer issue for indonesian-nlp/librivox-indonesia ### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: `...
https://github.com/huggingface/datasets/issues/5856
Error loading natural_questions
Hi! You can avoid this error by using the preprocessed version: ```python import datasets ds = datasets.load_dataset('natural_questions') ``` PS: Once we finish https://github.com/huggingface/datasets/pull/5364, this error will no longer be a problem.
### Describe the bug When try to load natural_questions through datasets == 2.12.0 with python == 3.8.9: ```python import datasets datasets.load_dataset('natural_questions',beam_runner='DirectRunner') ``` It failed with following info: `pyarrow.lib.ArrowNotImplementedError: Nested data conversions not impl...
31
Error loading natural_questions ### Describe the bug When try to load natural_questions through datasets == 2.12.0 with python == 3.8.9: ```python import datasets datasets.load_dataset('natural_questions',beam_runner='DirectRunner') ``` It failed with following info: `pyarrow.lib.ArrowNotImplementedError: ...
https://github.com/huggingface/datasets/issues/5856
Error loading natural_questions
> Hi! You can avoid this error by using the preprocessed version: > > ```python > import datasets > ds = datasets.load_dataset('natural_questions') > ``` > > PS: Once we finish #5364, this error will no longer be a problem. Thanks, wish #5364 finish early
### Describe the bug When try to load natural_questions through datasets == 2.12.0 with python == 3.8.9: ```python import datasets datasets.load_dataset('natural_questions',beam_runner='DirectRunner') ``` It failed with following info: `pyarrow.lib.ArrowNotImplementedError: Nested data conversions not impl...
44
Error loading natural_questions ### Describe the bug When try to load natural_questions through datasets == 2.12.0 with python == 3.8.9: ```python import datasets datasets.load_dataset('natural_questions',beam_runner='DirectRunner') ``` It failed with following info: `pyarrow.lib.ArrowNotImplementedError: ...
https://github.com/huggingface/datasets/issues/4439
TIMIT won't load after manual download: Errors about files that don't exist
To have some context, please see: - #4145 Please, also note that we have recently made some fixes to the script, which are in our GitHub master branch but not yet released: - #4422 - #4425 - #4436
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
38
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtaine...
https://github.com/huggingface/datasets/issues/4439
TIMIT won't load after manual download: Errors about files that don't exist
Thanks Albert! I'll try pulling `datasets` from the git repo instead of PyPI, and/or just wait for the next release.
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
20
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtaine...
https://github.com/huggingface/datasets/issues/4439
TIMIT won't load after manual download: Errors about files that don't exist
I'm closing this issue then. Please, feel free to reopen it again if the problem persists.
## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtained a copy from a friend and also a smaller version from Kaggle. But in both c...
16
TIMIT won't load after manual download: Errors about files that don't exist ## Describe the bug I get the message from HuggingFace that it must be downloaded manually. From the URL provided in the message, I got to UPenn page for manual download. (UPenn apparently want $250? for the dataset??) ...So, ok, I obtaine...
https://github.com/huggingface/datasets/issues/7318
Introduce support for PDFs
Awesome ! Let me know if you have any question or if I can help :) cc @AndreaFrancis as well for viz
### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded in a dictionary like {"pat...
22
Introduce support for PDFs ### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded...
https://github.com/huggingface/datasets/issues/7318
Introduce support for PDFs
Other candidates libraries for the Pdf type: PyMuPDF pypdf and pdfplumber EDIT: Pymupdf looks like a good choice when it comes to maturity + performance + versatility BUT the license is maybe an issue, and pypdf, pypdfium2 or pdfplumber are good options imo
### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded in a dictionary like {"pat...
43
Introduce support for PDFs ### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded...
https://github.com/huggingface/datasets/issues/7318
Introduce support for PDFs
Hi both! I have made a pull request with a first basic implementation of the Pdf feature. I followed closely what I saw on the Video and Image features. It is my first time contributing so any comments are very welcomed. I think it would be useful to outline together what additional things we can implement (e.g. enabli...
### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded in a dictionary like {"pat...
64
Introduce support for PDFs ### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded...
https://github.com/huggingface/datasets/issues/7970
cast_column(..., Audio) fails with load_dataset("csv",)
The following code *does* work: ```py from datasets import load_dataset,Audio,Features dataset = load_dataset("csv",data_files="audio.csv",features=Features({"audio": Audio()})) print(dataset["train"][0]["audio"]) ```
### Describe the bug Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds. ### Steps to reproduce the bug 1. Have any valid audio file `audio.wav` 2. Have ...
16
cast_column(..., Audio) fails with load_dataset("csv",) ### Describe the bug Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds. ### Steps to reproduce th...
https://github.com/huggingface/datasets/issues/7970
cast_column(..., Audio) fails with load_dataset("csv",)
Thanks for reporing ! Are you using pandas v3 by any chance ? The CSV loader uses pandas and this release is brand new and might have caused a breaking change
### Describe the bug Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds. ### Steps to reproduce the bug 1. Have any valid audio file `audio.wav` 2. Have ...
31
cast_column(..., Audio) fails with load_dataset("csv",) ### Describe the bug Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds. ### Steps to reproduce th...
https://github.com/huggingface/datasets/issues/7970
cast_column(..., Audio) fails with load_dataset("csv",)
Hi, I’d like to work on this issue. My plan is to first reproduce the difference between `Dataset.from_dict(...).cast_column("audio", Audio())` and `load_dataset("csv", ...).cast_column("audio", Audio())` on a minimal example, then trace where the CSV-loaded column type diverges and open a focused PR with tests.
### Describe the bug Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds. ### Steps to reproduce the bug 1. Have any valid audio file `audio.wav` 2. Have ...
42
cast_column(..., Audio) fails with load_dataset("csv",) ### Describe the bug Attempt to load a dataset from a csv with a single `audio` column with a single row with a path to an audio file fails when casting the column to Audio, but the exact same dataset created from a dictionary succeeds. ### Steps to reproduce th...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
Hi @jacobbieker, thanks for your request and study of possible alternatives. We are very interested in finding a way to make `datasets` useful to you. Looking at the Zarr docs, I saw that among its storage alternatives, there is the ZIP file format: https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.stor...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
145
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
Ah okay, I missed the option of zip files for zarr, I'll try that with our repos and see if it works! Thanks a lot!
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
25
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
On behalf of the Zarr developers, let me say THANK YOU for working to support Zarr on HF! 🙏 Zarr is a 100% open-source and community driven project (fiscally sponsored by NumFocus). We see it as an ideal format for ML training datasets, particularly in scientific domains. I think the solution of zipping the Zarr s...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
105
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
Also just noting here that I was able to lazily open @jacobbieker's dataset over the internet from HF hub 🚀 ! ```python import xarray as xr url = "https://huggingface.co/datasets/openclimatefix/mrms/resolve/main/data/2016_001.zarr.zip" zip_url = 'zip:///::' + url ds = xr.open_dataset(zip_url, engine='zarr', chu...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
44
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
However, I wasn't able to get streaming working using the Datasets api: ```python from datasets import load_dataset ds = load_dataset("openclimatefix/mrms", streaming=True, split='train') item = next(iter(ds)) ``` <details> <summary>FileNotFoundError traceback</summary> ``` No config specified, defaultin...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
511
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
I'm still messing around with that dataset, so the data might have moved. I currently have each year of MRMS precipitation rate data as it's own zarr, but as they are quite large (on order of 100GB each) I'm working to split them into single days, and as such they are still being moved around, I was just trying to get ...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
67
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
I've mostly finished rearranging the data now and uploading some more, so this works now: ```python import datasets ds = datasets.load_dataset("openclimatefix/mrms", streaming=True, split="train") item = next(iter(ds)) print(item.keys()) print(item["timestamp"]) ``` The MRMS data now goes most of 2016-2022, w...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
47
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
Hi @albertvillanova, I noticed there is now the [HFFileSystem](https://huggingface.co/docs/huggingface_hub/main/en/guides/hf_file_system), where the docs show an example of writing a Zarr store directly to the Hub, and no mention of having too many files. Is there still the restriction on lots of files in `datasets`? I...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
79
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4096
Add support for streaming Zarr stores for hosted datasets
Hi @jacobbieker. Thanks for coming back to this pending issue. In fact, we are now using the `fsspec` API in our `HFFileSystem`, which was not the case when you created this issue. On the other hand, I am not sure of the current limitations, both in terms of the number of files or performance when loading. - I...
**Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support streaming in data in Zarr format as far as I can tell. Zarr s...
145
Add support for streaming Zarr stores for hosted datasets **Is your feature request related to a problem? Please describe.** Lots of geospatial data is stored in the Zarr format. This format works well for n-dimensional data and coordinates, and can have good compression. Unfortunately, HF datasets doesn't support str...
https://github.com/huggingface/datasets/issues/4752
DatasetInfo issue when testing multiple configs: mixed task_templates
I've narrowed down the issue to the `dataset_module_factory` which already creates a `dataset_infos.json` file down in the `.cache/modules/dataset_modules/..` folder. That JSON file already contains the wrong task_templates for `unfiltered`.
## Describe the bug When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel. ## Steps to reproduce the bug In summary, what I want to do is create three configs: - unfiltered: no classlabel, no tasks. Gets data fr...
29
DatasetInfo issue when testing multiple configs: mixed task_templates ## Describe the bug When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel. ## Steps to reproduce the bug In summary, what I want to do is crea...
https://github.com/huggingface/datasets/issues/4752
DatasetInfo issue when testing multiple configs: mixed task_templates
Ugh. Found the issue: apparently `datasets` was reusing the already existing `dataset_infos.json` that is inside `datasets/datasets/hebban-reviews`! Is this desired behavior? Perhaps when `--save_infos` and `--all_configs` are given, an existing `dataset_infos.json` file should first be deleted before continuing wit...
## Describe the bug When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel. ## Steps to reproduce the bug In summary, what I want to do is create three configs: - unfiltered: no classlabel, no tasks. Gets data fr...
58
DatasetInfo issue when testing multiple configs: mixed task_templates ## Describe the bug When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel. ## Steps to reproduce the bug In summary, what I want to do is crea...
https://github.com/huggingface/datasets/issues/4752
DatasetInfo issue when testing multiple configs: mixed task_templates
Hi! I think this is a reasonable solution. Would you be interested in submitting a PR?
## Describe the bug When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel. ## Steps to reproduce the bug In summary, what I want to do is create three configs: - unfiltered: no classlabel, no tasks. Gets data fr...
16
DatasetInfo issue when testing multiple configs: mixed task_templates ## Describe the bug When running the `datasets-cli test` it would seem that some config properties in a DatasetInfo get mangled, leading to issues, e.g., about the ClassLabel. ## Steps to reproduce the bug In summary, what I want to do is crea...
https://github.com/huggingface/datasets/issues/4461
AttributeError: module 'datasets' has no attribute 'load_dataset'
I had a folder named 'datasets' so this is why it can't find the import, it's looking in the wrong place
## Describe the bug I have piped install datasets, but this package doesn't have these attributes: load_dataset, load_metric. ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-5.13.0-44-generic-x86_64-with-debian-bullseye-sid - Python version: 3.6.13 - PyArrow version: 6.0.1
21
AttributeError: module 'datasets' has no attribute 'load_dataset' ## Describe the bug I have piped install datasets, but this package doesn't have these attributes: load_dataset, load_metric. ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-5.13.0-44-generic-x86_64-with-debian-bullseye-sid - Pyt...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
OK, reproduced with hyparquet on https://huggingface.co/spaces/hyperparam/hyperparam, see https://huggingface.co/spaces/hyperparam/hyperparam?url=https%3A%2F%2Fhuggingface.co%2Fdatasets%2Ffacebook%2Fresearch-plan-gen%2Fblob%2Frefs%2Fconvert%2Fparquet%2Farxiv%2Ftest%2F0000.parquet for example Error message: ``` Cross-...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
89
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
Possibly, the solution is to add `HEAD` in `AllowedMethods` in the S3 bucket configuration, as here: ```json [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "HEAD", "GET" ], "AllowedOrigins": [ "*" ], "Expose...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
41
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
cc @assafvayner @rajatarya @Hugoch for viz / fix xet-side a very annoying "feature" with S3 is that presigned GET / HEAD urls aren't compatible with each other, eg a presigned GET can't do HEAD calls, which led to a host of issues and hacks on our side. We even escalated to AWS a few times, without success. Note tha...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
122
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
Thanks for reporting this @cornhundred - we (Xet team) will take on the changes to add appropriate CORS headers to our Bridge service to enable this use case. @severo : Do the repro steps still work for you? I don't see any errors when I go to https://huggingface.co/spaces/hyperparam/hyperparam?url=https%3A%2F%2Fhuggi...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
68
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
And I've filed https://linear.app/xet/issue/XET-815/bridge-add-cors-headers-to-support-parquet-range-reads to track this issue on the Xet side. I'll keep updating this GH issue with progress, but this way we won't lose track of this.
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
29
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
It looks like the bug has been fixed indeed. The HEAD request returns 200 and the response is used by the JS client.
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
23
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
> It looks like the bug has been fixed indeed. The HEAD request returns 200 and the response is used by the JS client. Well now I'm confused, because I'm pretty sure we didn't change/deploy anything on the Xet side related to this.
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
43
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
hmm, me too. I cannot reproduce the issue. Here is a screenshot of the HEAD request, which was an error 3 days ago: <img width="1839" height="1718" alt="Image" src="https://github.com/user-attachments/assets/a2e49839-8ca5-405b-a7a4-c26489e9b417" /> The response headers: ``` HTTP/1.1 200 OK Content-Length: 4086406 C...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
93
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
Ah, this could no longer repro because now Cloudfront has cached this request - so the HEAD request to Cloudfront responds as expected. The original issue is on Xet Bridge service (cas-bridge.xethub.hf.co) - maybe the issue remains that Bridge service doesn't have the appropriate CORS headers to support this request.
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
50
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
Also, I just tried with one of my private datasets. Not sure if it's related, on this URL I get an error, not with HEAD, but with the OPTIONS request. ``` XHR OPTIONS https://cas-bridge.xethub.hf.co/xet-bridge-us/655df24cde919d4162341a19/09ed3e86bf64d019919194d776abaa53b14acae6701129bb09f6169041b43f92?X-Amz-Algorithm=...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
55
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
Thanks @rajatarya, here is a link to a [Google Colab notebook](https://colab.research.google.com/drive/15soyg7g3CCdlBMDDcljeiVsq_yjeJREJ#scrollTo=bG5PfGTBK7wU) where the issue can be reproduced. The notebook tries to access a Hugging Face dataset on the front-end and it only works if we set up a proxy server to avoid t...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
89
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
@cornhundred Sorry for the delay in getting back to you on this. Got wrapped up in other things and just got back to these changes earlier this week. I have a PR updated with some tests. I am a little nervous with deploying these changes without more testing - we don't have automated testing in place for CORS changes g...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
122
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
For info - the `@huggingface/hub` JS lib has a `downloadFile` function that supports ranged requests. It doesn't go through the bridge: ```ts import { downloadFile } from `@huggingface/hub`; const blob = await downloadFile({repo: ..., path: ..., accessToken: ...}); const slice = (await blob.slice(X, Y)).toArrayBuffer...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
100
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...
https://github.com/huggingface/datasets/issues/7931
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access)
@cornhundred : We deployed fixes on our backend and believe this issue should be fixed. The Colab notebook no longer reproduces this error. Please let me know if you continue to see this issue. Thanks for your patience with me as we got this issue addressed. The initial CORS changes planned turned out to be insufficie...
### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge). The redirected host fails CORS preflight for Range/HEAD workflows, blocking partial reads. ([Hugging Face](htt...
118
Enable CORS + HTTP Range support for browser partial reads on cas-bridge.xethub.hf.co (Parquet row-group access) ### Feature request ## Summary Browser-based data tools need Range requests to read Parquet efficiently (footer + selected row groups). Downloads from the Hub redirect to cas-bridge.xethub.hf.co (Xet bridge...