html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/5854 | Can not load audiofolder dataset on kaggle | Hi! `audiofolder` requires `datasets>=2.5.0`, so please update the `datasets`' installation (`pip install -U datasets`) in the environment (and restart the env for the update to take effect) to resolve the issue. | ### Describe the bug
It's crash log:
FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingfac... | 31 | Can not load audiofolder dataset on kaggle
### Describe the bug
It's crash log:
FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at... | [
-0.33059823513031006,
-0.34159576892852783,
0.04055995121598244,
0.610074520111084,
0.3753753900527954,
-0.1381828933954239,
0.269961953163147,
-0.027828626334667206,
0.3341962695121765,
0.14204847812652588,
-0.3253089487552643,
0.5460801124572754,
-0.3359840214252472,
0.3882443904876709,
... |
https://github.com/huggingface/datasets/issues/5854 | Can not load audiofolder dataset on kaggle | > Hi! `audiofolder` requires `datasets>=2.5.0`, so please update the `datasets`' installation (`pip install -U datasets`) in the environment to resolve the issue.
I don't think it is a problem of the version. It runs ok on colab or local machine. Only on kaggle will has this bug. | ### Describe the bug
It's crash log:
FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingfac... | 47 | Can not load audiofolder dataset on kaggle
### Describe the bug
It's crash log:
FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at... | [
-0.32287654280662537,
-0.2874516248703003,
0.04319721832871437,
0.5809457302093506,
0.32738184928894043,
-0.14868751168251038,
0.2948158085346222,
-0.014693960547447205,
0.31191447377204895,
0.16970229148864746,
-0.3131582736968994,
0.5365291833877563,
-0.35251230001449585,
0.3962974548339... |
https://github.com/huggingface/datasets/issues/5854 | Can not load audiofolder dataset on kaggle | Based on your dataset info, the installed version is `2.1.0`, which does not include `audiofolder`.
By default, Kaggle preinstalls `datasets` into a new env, but the version it installs is outdated and does not contain newer features such as `audiofolder` | ### Describe the bug
It's crash log:
FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingfac... | 40 | Can not load audiofolder dataset on kaggle
### Describe the bug
It's crash log:
FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at... | [
-0.3101242184638977,
-0.32566794753074646,
0.043863195925951004,
0.5551075339317322,
0.3240397572517395,
-0.10100160539150238,
0.24710389971733093,
-0.008645333349704742,
0.31990253925323486,
0.11650427430868149,
-0.33480870723724365,
0.555866539478302,
-0.3368622958660126,
0.3863130509853... |
https://github.com/huggingface/datasets/issues/5847 | Streaming IterableDataset not working with translation pipeline | [`KeyDataset`](https://github.com/huggingface/transformers/blob/7f8b909189547944617741d8d3c6c84504701693/src/transformers/pipelines/pt_utils.py#L296) doesn't support iterable datasets, so you either need to implement a version that does (and also indexing nested (translation) fields):
```python
from torch.utils.dat... | ### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that IterableDataset has no len().
### Steps to reproduce the bug
CODE:
```
... | 128 | Streaming IterableDataset not working with translation pipeline
### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that Iterable... | [
-0.509739875793457,
-0.17009742558002472,
-0.03699716180562973,
0.14105817675590515,
0.32595473527908325,
-0.04014096409082413,
0.502347469329834,
0.08091862499713898,
-0.21698825061321259,
0.37072068452835083,
0.11250761151313782,
-0.1291956603527069,
-0.09642938524484634,
-0.056972205638... |
https://github.com/huggingface/datasets/issues/5847 | Streaming IterableDataset not working with translation pipeline | @mariosasko The map snippet didn't quite work, but gave me enough of a clue to get it working. The following snippet does work:
```
def en_translation(x):
return {"en":x['translation']['en']}
ks = ds.map(en_translation, remove_columns=['translation'])
test=[]
for x in iter(ks):
test.append(x['en'])
xx=... | ### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that IterableDataset has no len().
### Steps to reproduce the bug
CODE:
```
... | 219 | Streaming IterableDataset not working with translation pipeline
### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that Iterable... | [
-0.509739875793457,
-0.17009742558002472,
-0.03699716180562973,
0.14105817675590515,
0.32595473527908325,
-0.04014096409082413,
0.502347469329834,
0.08091862499713898,
-0.21698825061321259,
0.37072068452835083,
0.11250761151313782,
-0.1291956603527069,
-0.09642938524484634,
-0.056972205638... |
https://github.com/huggingface/datasets/issues/5847 | Streaming IterableDataset not working with translation pipeline | So perhaps there's no bug exactly, but I would love to see two things: 1) improve the documentation to better understand what's really getting returned. 2) update the example provided of using transformer pipeline with a dataset to include the oddball case that translation appears to be. | ### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that IterableDataset has no len().
### Steps to reproduce the bug
CODE:
```
... | 47 | Streaming IterableDataset not working with translation pipeline
### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that Iterable... | [
-0.509739875793457,
-0.17009742558002472,
-0.03699716180562973,
0.14105817675590515,
0.32595473527908325,
-0.04014096409082413,
0.502347469329834,
0.08091862499713898,
-0.21698825061321259,
0.37072068452835083,
0.11250761151313782,
-0.1291956603527069,
-0.09642938524484634,
-0.056972205638... |
https://github.com/huggingface/datasets/issues/5847 | Streaming IterableDataset not working with translation pipeline | Hi,
for the original snippet, the issue is that `streaming` datasets are not countable (they have no len) and therefore `KeyDataset` cannot work with them ( KeyDataset is a dataset and therefore requires a length).
I modified slightly the original snippet to make it work:
```python
from transformers import pi... | ### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that IterableDataset has no len().
### Steps to reproduce the bug
CODE:
```
... | 166 | Streaming IterableDataset not working with translation pipeline
### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that Iterable... | [
-0.509739875793457,
-0.17009742558002472,
-0.03699716180562973,
0.14105817675590515,
0.32595473527908325,
-0.04014096409082413,
0.502347469329834,
0.08091862499713898,
-0.21698825061321259,
0.37072068452835083,
0.11250761151313782,
-0.1291956603527069,
-0.09642938524484634,
-0.056972205638... |
https://github.com/huggingface/datasets/issues/5847 | Streaming IterableDataset not working with translation pipeline | Maybe moving `KeyDataset` later on in the guide and specify it's mostly for streaming then? Or is it also necessary for batch_size>1 (which is what the current doc implies)? | ### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that IterableDataset has no len().
### Steps to reproduce the bug
CODE:
```
... | 29 | Streaming IterableDataset not working with translation pipeline
### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that Iterable... | [
-0.509739875793457,
-0.17009742558002472,
-0.03699716180562973,
0.14105817675590515,
0.32595473527908325,
-0.04014096409082413,
0.502347469329834,
0.08091862499713898,
-0.21698825061321259,
0.37072068452835083,
0.11250761151313782,
-0.1291956603527069,
-0.09642938524484634,
-0.056972205638... |
https://github.com/huggingface/datasets/issues/5847 | Streaming IterableDataset not working with translation pipeline | Hmm
Iterator (`yield`) :
- Not countable
- Super flexible
- Cannot use `num_workers>1` (threading requires indexing at the correct location, iterators require to iterate in order,so each thread would iterate over the full thing being genuinely a bad idea)
- Can batch
- tqdm doesn't show a nice progress bar (it ... | ### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that IterableDataset has no len().
### Steps to reproduce the bug
CODE:
```
... | 188 | Streaming IterableDataset not working with translation pipeline
### Describe the bug
I'm trying to use a streaming dataset for translation inference to avoid downloading the training data.
I'm using a pipeline and a dataset, and following the guidance in the tutorial.
Instead I get an exception that Iterable... | [
-0.509739875793457,
-0.17009742558002472,
-0.03699716180562973,
0.14105817675590515,
0.32595473527908325,
-0.04014096409082413,
0.502347469329834,
0.08091862499713898,
-0.21698825061321259,
0.37072068452835083,
0.11250761151313782,
-0.1291956603527069,
-0.09642938524484634,
-0.056972205638... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | This is due to the slow resolution of the data files: https://github.com/huggingface/datasets/issues/5537.
We plan to switch to `huggingface_hub`'s `HfFileSystem` soon to make the resolution faster (will be up to 20x faster once we merge https://github.com/huggingface/huggingface_hub/pull/1443)
| ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 35 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.583538293838501,
-0.4485814869403839,
-0.06136561930179596,
0.2794363498687744,
0.2326558381319046,
0.024866998195648193,
0.07487984746694565,
0.21279561519622803,
0.10379193723201752,
-0.05269242823123932,
-0.15228037536144257,
0.2630671560764313,
-0.020501121878623962,
0.4323779642581... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | You're right, when I try to parse more than 50GB of text data, I also get very slow, usually taking hours or even tens of hours. | ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 26 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.6187251806259155,
-0.19934971630573273,
-0.10159100592136383,
0.25945907831192017,
0.19678419828414917,
0.0739760771393776,
0.15669354796409607,
0.2301347404718399,
0.05619112774729729,
-0.041647061705589294,
-0.0456644669175148,
0.2920142710208893,
0.07512547075748444,
0.28548622131347... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | > You're right, when I try to parse more than 50GB of text data, I also get very slow, usually taking hours or even tens of hours.
That's unrelated to the problem discussed in this issue. | ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 36 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.5950620770454407,
-0.1920383870601654,
-0.1071905642747879,
0.20276519656181335,
0.20339636504650116,
0.032430291175842285,
0.1838037371635437,
0.2534238398075104,
0.051749881356954575,
-0.013370543718338013,
-0.057919301092624664,
0.3059338927268982,
0.05831332504749298,
0.308127731084... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | > > You're right, when I try to parse more than 50GB of text data, I also get very slow, usually taking hours or even tens of hours.
>
> That's unrelated to the problem discussed in this issue.
Sorry, I misunderstood it. | ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 43 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.5947155952453613,
-0.24217650294303894,
-0.10786798596382141,
0.22747859358787537,
0.21352596580982208,
0.05493689328432083,
0.16488046944141388,
0.2358594536781311,
0.058708060532808304,
-0.010351359844207764,
-0.08272796124219894,
0.30454790592193604,
0.06317350268363953,
0.3170300126... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | Closing this issue as it has been addressed in `huggingface_hub`!
(This now takes 25s to execute on my machine.) | ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 19 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.6169881224632263,
-0.37961122393608093,
-0.07806388288736343,
0.21874366700649261,
0.1489298939704895,
0.005340903997421265,
0.1898365169763565,
0.18680687248706818,
0.22133226692676544,
-0.06582887470722198,
-0.1320238560438156,
0.4301608204841614,
-0.02872524783015251,
0.3994359672069... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | Thanks for the improvements! 🎉🎉
25 seconds is better but still about 2500x slower than this _should_ be! Loading a tiny 1-2KB metadata file is all that would be necessary with a better design. | ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 34 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.5316188931465149,
-0.1352613866329193,
-0.08581119775772095,
0.18983221054077148,
0.13997161388397217,
0.0163998082280159,
0.2295580357313156,
0.22845861315727234,
0.10692372918128967,
-0.12019675970077515,
-0.061080001294612885,
0.4427022635936737,
0.000225909985601902,
0.3716790974140... |
https://github.com/huggingface/datasets/issues/5846 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow! | Once we merge https://github.com/huggingface/huggingface_hub/pull/2103, this should only take a few seconds.
For the 2500x speed-up (without metadata files with pre-cached results), we wouldn't even be allowed to use `os.path` functions or `requests`/`aiohttp` for HTTP requests, so I don't think this is feasible fo... | ### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds.
### Environment info
- `datasets` version: 2.1... | 88 | load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug
Running
```
import datasets
ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True)
```
takes about 2.5 minutes!
I would expect this to be near instantaneous. With other datasets, the runtime is one o... | [
-0.5551007390022278,
-0.2424783706665039,
-0.0465773306787014,
0.07651609182357788,
0.03582046926021576,
-0.002940654754638672,
0.08022113144397736,
0.3299448788166046,
0.10795703530311584,
-0.0015333518385887146,
-0.4479929208755493,
0.31006985902786255,
-0.006187909282743931,
0.454088598... |
https://github.com/huggingface/datasets/issues/5841 | Abusurdly slow on iteration | Hi ! You can try to use the [Image](https://huggingface.co/docs/datasets/v2.12.0/en/package_reference/main_classes#datasets.Image) type which [decodes images on-the-fly](https://huggingface.co/docs/datasets/v2.12.0/en/about_dataset_features#image-feature) into pytorch tensors :)
```python
ds = Dataset.from_dict({"t... | ### Describe the bug
I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment:
```python
a=torch.randn(100,224)
a=torch.stack([a] * 10000)
a.shape
# %%
ds=Dataset.from_d... | 226 | Abusurdly slow on iteration
### Describe the bug
I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment:
```python
a=torch.randn(100,224)
a=torch.stack([a] * 10000)
a.sh... | [
-0.1845068782567978,
-0.5200334191322327,
-0.04702034592628479,
0.2566426396369934,
0.1268301010131836,
0.15700697898864746,
0.4810784161090851,
0.21948005259037018,
-0.2652483582496643,
0.1919066607952118,
-0.06385333836078644,
0.5231745839118958,
-0.08375857025384903,
-0.4237796068191528... |
https://github.com/huggingface/datasets/issues/5841 | Abusurdly slow on iteration | Anyway, regarding the speed difference between numpy and pytorch, I think the issue is that we first convert numpy sub-arrays to pytorch and then consolidate into one tensor, while we should to the opposite. Indeed converting a numpy array to pytorch has a fix cost that seems to cause a slow down. The current pipeline ... | ### Describe the bug
I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment:
```python
a=torch.randn(100,224)
a=torch.stack([a] * 10000)
a.shape
# %%
ds=Dataset.from_d... | 91 | Abusurdly slow on iteration
### Describe the bug
I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment:
```python
a=torch.randn(100,224)
a=torch.stack([a] * 10000)
a.sh... | [
-0.1845068782567978,
-0.5200334191322327,
-0.04702034592628479,
0.2566426396369934,
0.1268301010131836,
0.15700697898864746,
0.4810784161090851,
0.21948005259037018,
-0.2652483582496643,
0.1919066607952118,
-0.06385333836078644,
0.5231745839118958,
-0.08375857025384903,
-0.4237796068191528... |
https://github.com/huggingface/datasets/issues/5841 | Abusurdly slow on iteration | I have a similar issue: iterating over a dataset takes 5s without applying any transform, but takes ~30s after applying a transform.
Here is the minimum code to reproduce the problem
```python
import numpy as np
from datasets import Dataset, DatasetDict, load_dataset, Array3D, Image, Features
from torch.utils.da... | ### Describe the bug
I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment:
```python
a=torch.randn(100,224)
a=torch.stack([a] * 10000)
a.shape
# %%
ds=Dataset.from_d... | 187 | Abusurdly slow on iteration
### Describe the bug
I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment:
```python
a=torch.randn(100,224)
a=torch.stack([a] * 10000)
a.sh... | [
-0.1845068782567978,
-0.5200334191322327,
-0.04702034592628479,
0.2566426396369934,
0.1268301010131836,
0.15700697898864746,
0.4810784161090851,
0.21948005259037018,
-0.2652483582496643,
0.1919066607952118,
-0.06385333836078644,
0.5231745839118958,
-0.08375857025384903,
-0.4237796068191528... |
https://github.com/huggingface/datasets/issues/5842 | Remove columns in interable dataset | This method has been recently added to the `IterableDataset`, so you need to update the `datasets`' installation (`pip install -U datasets`) to use it. | ### Feature request
Right now, remove_columns() produces a NotImplementedError for iterable style datasets
### Motivation
It would be great to have the same functionality irrespective of whether one is using an iterable or a map-style dataset
### Your contribution
hope and courage. | 24 | Remove columns in interable dataset
### Feature request
Right now, remove_columns() produces a NotImplementedError for iterable style datasets
### Motivation
It would be great to have the same functionality irrespective of whether one is using an iterable or a map-style dataset
### Your contribution
hope and cou... | [
-0.16926446557044983,
-0.1137235164642334,
-0.22988498210906982,
0.10435234010219574,
0.36367905139923096,
0.12261182814836502,
0.3428801894187927,
0.39540815353393555,
0.17784233391284943,
0.3825919032096863,
-0.4183908700942993,
0.6086261868476868,
-0.043572355061769485,
0.09833020716905... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | As the name says, `load_from_disk` load the data from your disk. If the data is hosted on S3, it is first downloaded locally and then loaded from your disk.
There is a discussion on streaming data from S3 here though: #5281 | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 41 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.19136837124824524,
-0.42585304379463196,
-0.14476603269577026,
0.177096426486969,
-0.05689794570207596,
-0.2255256175994873,
-0.010217491537332535,
-0.014616530388593674,
0.270020067691803,
0.08450878411531448,
0.007978013716638088,
0.3509131669998169,
-0.01526304055005312,
0.4365046918... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | @lhoestq
Thanks for your comment. I have checked out the discussion before and attempted at replicating the mentioned changes in the main branch (#5580). What I found was that if a dataset is saved using `save_to_disk`, it cannot be read by `load_dataset`. The error message asks me to to use `load_from_disk` instead.... | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 65 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.2153424471616745,
-0.13543926179409027,
-0.10849553346633911,
0.0045850686728954315,
0.05231457203626633,
-0.1832384467124939,
-0.017614047974348068,
0.03951286897063255,
0.18168658018112183,
0.08003422617912292,
-0.10446067899465561,
0.31715548038482666,
-0.14613650739192963,
0.3981487... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | Using `push_to_hub` you can save the dataset on the HF Hub as parquet files, and reload it / stream it using `load_dataset` :)
If you want to save your dataset somewhere else you can use `.to_parquet` to get a parquet file. If your dataset is big it's usually recommended to shard it into multi parquet files (around ... | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 59 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.43765851855278015,
-0.3938426971435547,
-0.08103151619434357,
0.10626943409442902,
-0.11427460610866547,
-0.12265807390213013,
-0.11332446336746216,
0.11178041994571686,
0.2856537401676178,
0.001908421516418457,
-0.30958718061447144,
0.23676982522010803,
-0.05079349875450134,
0.52669787... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | @lhoestq
I tried the method you mentioned. This the current scenario I'm facing:
- The parquet file can be read from disk and streaming can be enabled.
- The parquet file can be read from `s3` (local MinIO).
- When `streaming=True` is enabled for `s3`, I get the error mentioned below:
```
File ~/.../lib/pytho... | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 106 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.181377112865448,
-0.35487449169158936,
0.027301710098981857,
0.2140738070011139,
-0.07594170421361923,
-0.16613157093524933,
0.14210495352745056,
0.024777036160230637,
0.29747721552848816,
-0.005054347217082977,
-0.08331115543842316,
0.3988790214061737,
0.07521629333496094,
0.5150981545... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | Streaming from S3 is still experimental, there might be a few bugs unfortunately.
Can you share the full stack trace ? | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 21 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.2384147346019745,
-0.3948400318622589,
-0.14688482880592346,
0.11941276490688324,
-0.00791316106915474,
-0.28202298283576965,
-0.03579897806048393,
0.036793939769268036,
0.1819647252559662,
0.0636751651763916,
-0.009757766500115395,
0.36066994071006775,
-0.07663580775260925,
0.469088405... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | @lhoestq
Sure, here you go:
```python
TypeError Traceback (most recent call last)
Cell In[8], line 1
----> 1 dataset = load_dataset("parquet", data_files=["s3://<bucket name>/<data folder>/data-parquet"], storage_options=fs.storage_options, streaming=True)
File ~/.../datasets/... | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 1,037 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.34546253085136414,
-0.24966660141944885,
-0.1360364556312561,
0.11836639046669006,
0.07666731625795364,
-0.062163326889276505,
0.15025515854358673,
0.1314437836408615,
0.30351245403289795,
0.00011920183897018433,
-0.09259112924337387,
0.3016705811023712,
-0.1856057494878769,
0.496601700... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | Is `"data-parquet"` a file ? In `data_files` you should pass the paths to the parquet files (not to a directory). Glob patterns are not supported yet for S3 URLs.
The bug seems to happen because your provided data file has no extension. Because of that it tries to infer it from the file content, but fails because `_... | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 63 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.12845753133296967,
-0.33176350593566895,
0.01568661257624626,
0.4863395094871521,
0.0816134512424469,
-0.4171702265739441,
-0.05320366099476814,
0.0006674639880657196,
0.014363668859004974,
0.13165664672851562,
0.08848366141319275,
0.4564897418022156,
-0.10532765090465546,
0.47039839625... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | @lhoestq
Thank you for your answer. Saving the file with `.parquet` extension solved the issue! This is really great! Really appreciate all the help!
Let me know if I should close the issue or feel free to close it if you want. | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 42 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.2078961282968521,
-0.3044672906398773,
-0.10579216480255127,
0.19229404628276825,
0.19193877279758453,
-0.22231242060661316,
0.05201958864927292,
0.0850493311882019,
0.19627942144870758,
0.08005848526954651,
0.08831939101219177,
0.37090185284614563,
-0.04738380014896393,
0.4568877816200... |
https://github.com/huggingface/datasets/issues/5838 | Streaming support for `load_from_disk` | Cool ! I'm glad it worked out :)
Sure feel free to close the issue, since the original question about streaming with load_from_disk has been answered anyway | ### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ... | 27 | Streaming support for `load_from_disk`
### Feature request
Support for streaming datasets stored in object stores in `load_from_disk`.
### Motivation
The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very... | [
-0.16210709512233734,
-0.34814780950546265,
-0.19091832637786865,
0.0920955240726471,
0.08707400411367416,
-0.33864977955818176,
0.03595197945833206,
0.10286775231361389,
0.17164385318756104,
0.07638224959373474,
0.001348861027508974,
0.36522507667541504,
-0.06152825802564621,
0.4554409980... |
https://github.com/huggingface/datasets/issues/5837 | Use DeepSpeed load myself " .csv " dataset. | Hi ! Doing `load_dataset("path/to/data.csv")` is not supported yet, but you can do
```python
ds = load_dataset("csv", data_files=["path/to/data.csv"])
``` | ### Describe the bug
When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", line 1767, in load_dataset
builder_instan... | 18 | Use DeepSpeed load myself " .csv " dataset.
### Describe the bug
When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", ... | [
-0.2581547498703003,
-0.10589192807674408,
-0.029535073786973953,
0.32248586416244507,
0.14691439270973206,
0.25721442699432373,
0.5154322981834412,
0.12920215725898743,
0.23117032647132874,
0.2553308606147766,
0.03211110085248947,
0.17823074758052826,
-0.1260688453912735,
0.32057058811187... |
https://github.com/huggingface/datasets/issues/5837 | Use DeepSpeed load myself " .csv " dataset. | The other question:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", line 1767, in load_dataset
builder_instance = load_dataset_builder(
File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/da... | ### Describe the bug
When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", line 1767, in load_dataset
builder_instan... | 229 | Use DeepSpeed load myself " .csv " dataset.
### Describe the bug
When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", ... | [
-0.23169106245040894,
-0.08913424611091614,
-0.030085628852248192,
0.38979393243789673,
0.13162636756896973,
0.2130463421344757,
0.5466493964195251,
0.09271937608718872,
0.2302958071231842,
0.258129358291626,
0.02489597164094448,
0.17865696549415588,
-0.069589763879776,
0.32220029830932617... |
https://github.com/huggingface/datasets/issues/5834 | Is uint8 supported? | Hi ! The numpy formatting detaults to int64 and float32 - but you can use uint8 using
```python
ds = ds.with_format("numpy", dtype=np.uint8)
``` | ### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well.
Is there a way ... | 23 | Is uint8 supported?
### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as ... | [
-0.07730643451213837,
-0.37703457474708557,
0.00730544701218605,
0.2908569574356079,
0.5897736549377441,
-0.022670265287160873,
0.505320131778717,
0.21774326264858246,
0.016887959092855453,
-0.1252564787864685,
-0.2633093297481537,
0.10247843712568283,
0.05486686900258064,
0.00420477055013... |
https://github.com/huggingface/datasets/issues/5834 | Is uint8 supported? | Thank you!
By setting `ds.with_format("numpy", dtype=np.uint8)`, the dataset returns the data in `uint8`.
However, `with_format` and `set_format` seem to cast the data on-the-fly.
I want to reduce the dataset size by using `uint8` instead of `int64` and I observe no difference between using `int64` and `uint8` for... | ### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well.
Is there a way ... | 74 | Is uint8 supported?
### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as ... | [
-0.07757612317800522,
-0.3104415535926819,
0.009639158844947815,
0.3099154829978943,
0.6234183311462402,
-0.060397349298000336,
0.4495292901992798,
0.2418004870414734,
-0.0026690177619457245,
-0.12752506136894226,
-0.2918073236942291,
0.16088172793388367,
-0.007652438245713711,
0.030916625... |
https://github.com/huggingface/datasets/issues/5834 | Is uint8 supported? | If the feature type is `Value("uint8")` then it's written an uint8 on disk using the uint8 Arrow dtype.
e.g.
```python
ds = Dataset.from_dict({"a": range(10)}, features=Features({"a": Value("uint8")}))
ds.data.nbytes
# 10
``` | ### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well.
Is there a way ... | 30 | Is uint8 supported?
### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as ... | [
-0.04128502681851387,
-0.40885722637176514,
0.0004548020660877228,
0.26819372177124023,
0.5924244523048401,
-0.038157377392053604,
0.4967973530292511,
0.20345450937747955,
0.04306744411587715,
-0.13159622251987457,
-0.25536516308784485,
0.1405232697725296,
0.033094484359025955,
0.036020085... |
https://github.com/huggingface/datasets/issues/5834 | Is uint8 supported? | Oh, I understand now.
The data was stored in `uint8` from the beginning (when the dataset returns `int64`).
Thank you for your time!
My question is fully resolved. | ### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well.
Is there a way ... | 28 | Is uint8 supported?
### Describe the bug
I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead.
While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as ... | [
-0.014799423515796661,
-0.4249412417411804,
0.0009362157434225082,
0.2994319200515747,
0.5796529650688171,
-0.0617339126765728,
0.49648988246917725,
0.17840254306793213,
0.015032578259706497,
-0.11957652866840363,
-0.21773549914360046,
0.0962386429309845,
0.06890708208084106,
-0.0003129858... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Thanks for reporting, @agombert.
In this case, I think the root issue is authentication: before pushing to Hub, you should authenticate. See our docs: https://huggingface.co/docs/datasets/upload_dataset#upload-with-python
> 2. To upload a dataset on the Hub in Python, you need to log in to your Hugging Face account... | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 50 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Hey @albertvillanova well I actually did :D
<img width="1079" alt="Capture d’écran 2023-05-09 à 18 02 58" src="https://github.com/huggingface/datasets/assets/17645711/e091aa20-06b1-4dd3-bfdb-35e832c66f8d">
| ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 17 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | That is weird that you get a Forbidden error if you are properly authenticated...
Today we had a big outage issue affecting the Hugging Face Hub. Could you please retry to push_to_hub your dataset? Maybe that was the cause... | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 39 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Login successful but also got this error "Forbidden: pass `create_pr=1` as a query parameter to create a Pull Request" | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 19 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Make sure your API token has a `write` role. I had the same issue as you with the `read` token. Creating a `write` token and using that solved the issue. | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 30 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | > Make sure your API token has a `write` role. I had the same issue as you with the `read` token. Creating a `write` token and using that solved the issue.
I generate a token with write role. It works! thank you so much. | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 44 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | @dmitrijsk amazing thanks so much !
The error should be clearer when the token is read-only – I wasted a lot of time there.. | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 24 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Based on the number of reactions (https://github.com/huggingface/datasets/issues/5833#issuecomment-1586521001), many users have issues debugging this. @Wauplin Maybe a more informative error can be thrown in `hfh` if a token's role is insufficient for an op. WDYT? | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 34 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Yes indeed. I created an issue some time ago about it: https://github.com/huggingface/huggingface_hub/issues/1653. I'll prioritize it more and let you know. Thanks for the ping. | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 24 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | Hey everyone :wave: The error message has been fixed to be more informative. As mentioned in https://github.com/huggingface/datasets/issues/5833#issuecomment-1586521001, the n°1 reason why this is happening is that a `read` token has been used instead of `write`. The fix has being shipped on the server meaning that you... | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 100 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | @Wauplin Reopening it. Indeed, the above error message is thrown if pushing to an **existing** repo with a `read` token. However, if the repo does not exist and needs to be created (by calling `create_repo` in `push_to_hub`), then passing a `read` token will raise the following:
```python
HTTPError: 403 Client Error:... | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 140 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5833 | Unable to push dataset - `create_pr` problem | > However, if the repo does not exist and needs to be created (by calling create_repo in push_to_hub), then passing a read token will raise the following:
This seems to be a different issue than the one reported above right? Still agree that a more informative message would be nice. Can you open an issue on moon-lan... | ### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
```python
dataset.push_to_hub("agomberto/Fr... | 73 | Unable to push dataset - `create_pr` problem
### Describe the bug
I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible.
### Steps to reproduce the bug
here what I have:
... | [
-0.33136114478111267,
-0.5114108920097351,
0.04885755851864815,
0.23770450055599213,
0.1608264446258545,
-0.022989042103290558,
0.147964209318161,
0.22991345822811127,
-0.06724822521209717,
0.05386361479759216,
0.1177615076303482,
0.38434383273124695,
-0.08146613091230392,
0.26467683911323... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | I am experiencing the same problem with the following environment:
* `datasets` version: 2.11.0
* Platform: `Linux 5.19.0-41-generic x86_64 GNU/Linux`
* Python version: `3.8.5`
* Huggingface_hub version: 0.13.3
* PyArrow version: `11.0.0`
* Pandas version: `1.5.3`
Trying to get some diagnostics, I got the fo... | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 120 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it agai... | [
-0.1444700062274933,
0.0024901553988456726,
0.03585711494088173,
0.36073100566864014,
0.3455770015716553,
0.07848288863897324,
0.4264729917049408,
0.2986146807670593,
-0.21599853038787842,
-0.0998135358095169,
-0.1425272822380066,
0.34242239594459534,
0.07249687612056732,
0.011892354115843... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | same problem with a private dataset repo, seems the huggingface hub server got some connection problem? | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 16 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it agai... | [
-0.1444700062274933,
0.0024901553988456726,
0.03585711494088173,
0.36073100566864014,
0.3455770015716553,
0.07848288863897324,
0.4264729917049408,
0.2986146807670593,
-0.21599853038787842,
-0.0998135358095169,
-0.1425272822380066,
0.34242239594459534,
0.07249687612056732,
0.011892354115843... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | @SingL3 You can avoid this error by setting the [`HF_DATASETS_OFFLINE`](https://huggingface.co/docs/datasets/v2.12.0/en/loading#offline) env variable to 1. By default, if an internet connection is available, we check whether the cache of a cached dataset is up-to-date.
@lucidBrot `datasets`' cache is still not alig... | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 48 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it agai... | [
-0.1444700062274933,
0.0024901553988456726,
0.03585711494088173,
0.36073100566864014,
0.3455770015716553,
0.07848288863897324,
0.4264729917049408,
0.2986146807670593,
-0.21599853038787842,
-0.0998135358095169,
-0.1425272822380066,
0.34242239594459534,
0.07249687612056732,
0.011892354115843... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | Today we had a big issue affecting the Hugging Face Hub, thus all the `504 Server Error: Gateway Time-out` errors.
It is fixed now and loading your datasets should work as expected. | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 32 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it agai... | [
-0.1444700062274933,
0.0024901553988456726,
0.03585711494088173,
0.36073100566864014,
0.3455770015716553,
0.07848288863897324,
0.4264729917049408,
0.2986146807670593,
-0.21599853038787842,
-0.0998135358095169,
-0.1425272822380066,
0.34242239594459534,
0.07249687612056732,
0.011892354115843... |
https://github.com/huggingface/datasets/issues/5831 | [Bug]504 Server Error when loading dataset which was already cached | Hi, @albertvillanova.
If there is a locally cached version of datasets or something cache using huggingface_hub, when a network problem(either client or server) occurs, is it a better way to fallback to use the current cached version rather than raise a exception and exit? | ### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it again using the same machine, I got this error:
```
Traceback (most rece... | 44 | [Bug]504 Server Error when loading dataset which was already cached
### Describe the bug
I have already cached the dataset using:
```
dataset = load_dataset("databricks/databricks-dolly-15k",
cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k")
```
After that, I tried to load it agai... | [
-0.1444700062274933,
0.0024901553988456726,
0.03585711494088173,
0.36073100566864014,
0.3455770015716553,
0.07848288863897324,
0.4264729917049408,
0.2986146807670593,
-0.21599853038787842,
-0.0998135358095169,
-0.1425272822380066,
0.34242239594459534,
0.07249687612056732,
0.011892354115843... |
https://github.com/huggingface/datasets/issues/5829 | (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) | That is weird. I can't reproduce it again after reboot.
```python
In [2]: import platform
In [3]: platform.platform()
Out[3]: 'macOS-13.2-arm64-arm-64bit'
In [4]: from datasets import load_dataset
...:
...: jazzy = load_dataset("nomic-ai/gpt4all-j-prompt-generations", revision='v1.2-jazzy')
Found cach... | ### Describe the bug
M2 MBP can't run
```python
from datasets import load_dataset
jazzy = load_dataset("nomic-ai/gpt4all-j-prompt-generations", revision='v1.2-jazzy')
```
### Steps to reproduce the bug
1. Use M2 MBP
2. Python 3.10.10 from pyenv
3. Run
```
from datasets import load_dataset
jazzy = load_... | 42 | (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
### Describe the bug
M2 MBP can't run
```python
from datasets import load_dataset
jazzy = load_dataset("nomic-ai/gpt4all-j-prompt-generations", revision='v1.2-jazzy')
```
### Steps to reproduce the bug
1. Use M2 MBP
2. Python 3... | [
-0.4031012952327728,
-0.25214606523513794,
0.0583447702229023,
0.12893803417682648,
0.3469509482383728,
0.0962122306227684,
0.12205599993467331,
0.30883073806762695,
-0.2825143337249756,
0.02816428244113922,
-0.10436982661485672,
0.6357766389846802,
-0.25387677550315857,
-0.062674991786479... |
https://github.com/huggingface/datasets/issues/5828 | Stream data concatenation issue | Hi!
You can call `map` as follows to avoid the error:
```python
augmented_dataset_cln = dataset_cln['train'].map(augment_dataset, features=dataset_cln['train'].features)
``` | ### Describe the bug
I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset.
ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string',
id=None), 'audio': {'array': Sequence(feature=Value(dtype='float32', id=... | 17 | Stream data concatenation issue
### Describe the bug
I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset.
ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string',
id=None), 'audio': {'array': Sequence(... | [
-0.2828325033187866,
-0.07902500778436661,
-0.05130551755428314,
0.25518953800201416,
0.10679221153259277,
-0.029187388718128204,
0.19599582254886627,
0.08489017188549042,
-0.31685444712638855,
0.2629067301750183,
-0.1496361941099167,
0.04651878774166107,
0.05549880117177963,
0.40270641446... |
https://github.com/huggingface/datasets/issues/5828 | Stream data concatenation issue | Hi!
I have run into the same problem with you. Could you please let me know how you solve it? Thanks! | ### Describe the bug
I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset.
ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string',
id=None), 'audio': {'array': Sequence(feature=Value(dtype='float32', id=... | 21 | Stream data concatenation issue
### Describe the bug
I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset.
ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string',
id=None), 'audio': {'array': Sequence(... | [
-0.2828325033187866,
-0.07902500778436661,
-0.05130551755428314,
0.25518953800201416,
0.10679221153259277,
-0.029187388718128204,
0.19599582254886627,
0.08489017188549042,
-0.31685444712638855,
0.2629067301750183,
-0.1496361941099167,
0.04651878774166107,
0.05549880117177963,
0.40270641446... |
https://github.com/huggingface/datasets/issues/5827 | load json dataset interrupt when dtype cast problem occured | Indeed the JSON dataset builder raises an error when it encounters an unexpected type.
There's an old PR open to add away to ignore such elements though, if it can help: https://github.com/huggingface/datasets/pull/2838 | ### Describe the bug
i have a json like this:
[
{"id": 1, "name": 1},
{"id": 2, "name": "Nan"},
{"id": 3, "name": 3},
....
]
,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_files=['xx.json'], split='train'), it will report like this:
... | 32 | load json dataset interrupt when dtype cast problem occured
### Describe the bug
i have a json like this:
[
{"id": 1, "name": 1},
{"id": 2, "name": "Nan"},
{"id": 3, "name": 3},
....
]
,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data... | [
-0.290872186422348,
0.005442008376121521,
-0.023509185761213303,
0.6575195789337158,
0.6633945107460022,
0.04853267967700958,
0.3084114193916321,
0.3364526331424713,
-0.14784416556358337,
-0.007055938243865967,
0.06579530239105225,
0.43404364585876465,
-0.15744218230247498,
0.0103619489818... |
https://github.com/huggingface/datasets/issues/5825 | FileNotFound even though exists | Hi!
This would only work if `bigscience/xP3` was a no-code dataset, but it isn't (it has a Python builder script).
But this should work:
```python
load_dataset("json", data_files="https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.... | ### Describe the bug
I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong?
```
Downloading builder script: 100%
2.82k/2.8... | 28 | FileNotFound even though exists
### Describe the bug
I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong?
```
Downloadi... | [
-0.25108829140663147,
0.14677280187606812,
0.09450709819793701,
0.31087526679039,
0.3156176209449768,
-0.1085442304611206,
0.19184057414531708,
0.4721905589103699,
-0.021108055487275124,
-0.014220580458641052,
0.039334312081336975,
-0.04836183041334152,
-0.0060356007888913155,
0.0782374665... |
https://github.com/huggingface/datasets/issues/5825 | FileNotFound even though exists | > I see, it's not compatible w/ regex right? e.g. `load_dataset("json", data_files="https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/*")`
It should work for patterns that "reference" the local filesystem, but to make this work with the Hub, we must implement https://github.com/huggingface/datasets/issu... | ### Describe the bug
I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong?
```
Downloading builder script: 100%
2.82k/2.8... | 106 | FileNotFound even though exists
### Describe the bug
I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong?
```
Downloadi... | [
-0.25108829140663147,
0.14677280187606812,
0.09450709819793701,
0.31087526679039,
0.3156176209449768,
-0.1085442304611206,
0.19184057414531708,
0.4721905589103699,
-0.021108055487275124,
-0.014220580458641052,
0.039334312081336975,
-0.04836183041334152,
-0.0060356007888913155,
0.0782374665... |
https://github.com/huggingface/datasets/issues/5823 | [2.12.0] DatasetDict.save_to_disk not saving to S3 | Hi @thejamesmarq, by any chance, did you use multiprocessing `num_proc > 1` when saving your dataset on the s3 bucket ? I'm struggling making it work in a multiprocessing setting while everything works fine with one processor. | ### Describe the bug
When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket.
I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get the same results.
### Steps to reproduce the bug
1. C... | 37 | [2.12.0] DatasetDict.save_to_disk not saving to S3
### Describe the bug
When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket.
I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get th... | [
-0.26680463552474976,
0.03102608025074005,
0.10553541779518127,
0.29918405413627625,
0.07444047182798386,
-0.005938984453678131,
0.20655645430088043,
0.052773989737033844,
-0.15776537358760834,
0.01942591369152069,
0.10193471610546112,
0.5192160606384277,
-0.13190287351608276,
0.1944939941... |
https://github.com/huggingface/datasets/issues/5820 | Incomplete docstring for `BuilderConfig` | Thanks for reporting! You are more than welcome to improve `BuilderConfig`'s docstring.
This class serves an identical purpose as `tensorflow_datasets`'s `BuilderConfig`, and its docstring is [here](https://github.com/tensorflow/datasets/blob/a95e38b5bb018312c3d3720619c2a8ef83ebf57f/tensorflow_datasets/core/dataset_... | Hi guys !
I stumbled upon this docstring while working on a project.
Some of the attributes have missing descriptions.
https://github.com/huggingface/datasets/blob/bc5fef5b6d91f009e4101684adcb374df2c170f6/src/datasets/builder.py#L104-L117 | 34 | Incomplete docstring for `BuilderConfig`
Hi guys !
I stumbled upon this docstring while working on a project.
Some of the attributes have missing descriptions.
https://github.com/huggingface/datasets/blob/bc5fef5b6d91f009e4101684adcb374df2c170f6/src/datasets/builder.py#L104-L117
Thanks for reporting! You are m... | [
-0.3216460943222046,
0.1404000222682953,
-0.14106248319149017,
0.21151494979858398,
0.30552035570144653,
0.19221055507659912,
0.10483409464359283,
0.23159615695476532,
-0.21633322536945343,
0.19649136066436768,
0.35195809602737427,
-0.13295745849609375,
0.06480538100004196,
0.0440805852413... |
https://github.com/huggingface/datasets/issues/5819 | Cannot pickle error in Dataset.from_generator() | Hi! It should work if you put `model = torch.compile(model)` inside the `generate_data` function. If a referenced object is outside, it needs to be pickable, and that's not the case for the compiled models (or functions). | ### Describe the bug
I'm trying to use Dataset.from_generator() to generate a large dataset.
### Steps to reproduce the bug
Code to reproduce:
```
from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig
import torch
from tqdm import tqdm
from datasets import load_dataset
tokenizer... | 36 | Cannot pickle error in Dataset.from_generator()
### Describe the bug
I'm trying to use Dataset.from_generator() to generate a large dataset.
### Steps to reproduce the bug
Code to reproduce:
```
from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig
import torch
from tqdm import tq... | [
-0.4289091229438782,
-0.2743401527404785,
0.027514178305864334,
0.5192878246307373,
0.3826914429664612,
-0.06168077141046524,
0.21634811162948608,
0.35366588830947876,
-0.17798985540866852,
0.40683603286743164,
0.15663275122642517,
0.33345919847488403,
-0.24602772295475006,
0.1091280505061... |
https://github.com/huggingface/datasets/issues/5819 | Cannot pickle error in Dataset.from_generator() | > Hi! It should work if you put `model = torch.compile(model)` inside the `generate_data` function. If a referenced object is outside, it needs to be pickable, and that's not the case for the compiled models (or functions).
Hi! Thank you for your reply! Everything works perfectly with your suggestion!
Closing the... | ### Describe the bug
I'm trying to use Dataset.from_generator() to generate a large dataset.
### Steps to reproduce the bug
Code to reproduce:
```
from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig
import torch
from tqdm import tqdm
from datasets import load_dataset
tokenizer... | 52 | Cannot pickle error in Dataset.from_generator()
### Describe the bug
I'm trying to use Dataset.from_generator() to generate a large dataset.
### Steps to reproduce the bug
Code to reproduce:
```
from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig
import torch
from tqdm import tq... | [
-0.4289091229438782,
-0.2743401527404785,
0.027514178305864334,
0.5192878246307373,
0.3826914429664612,
-0.06168077141046524,
0.21634811162948608,
0.35366588830947876,
-0.17798985540866852,
0.40683603286743164,
0.15663275122642517,
0.33345919847488403,
-0.24602772295475006,
0.1091280505061... |
https://github.com/huggingface/datasets/issues/5818 | Ability to update a dataset | In this case, I think we can avoid the `PermissionError` by unpacking the underlying `ConcatenationTable` and saving only the newly added data blocks (in new files). | ### Feature request
The ability to load a dataset, add or change something, and save it back to disk.
Maybe it's possible, but I can't work out how to do it, e.g. this fails:
```py
import datasets
dataset = datasets.load_from_disk("data/test1")
dataset = dataset.add_item({"text": "A new item"})
dataset.sav... | 26 | Ability to update a dataset
### Feature request
The ability to load a dataset, add or change something, and save it back to disk.
Maybe it's possible, but I can't work out how to do it, e.g. this fails:
```py
import datasets
dataset = datasets.load_from_disk("data/test1")
dataset = dataset.add_item({"text... | [
-0.19011063873767853,
0.4618925452232361,
-0.11184905469417572,
-0.09793834388256073,
0.022925274446606636,
0.24772420525550842,
0.10128545016050339,
0.007762709632515907,
-0.31282860040664673,
0.20791499316692352,
-0.03251040726900101,
0.15257585048675537,
-0.3104684352874756,
0.356826812... |
https://github.com/huggingface/datasets/issues/5818 | Ability to update a dataset | Thanks @stevhliu and @mariosasko , so saving to individual files then loading them later, concatenating again and saving again is the recommended way. Good to know.
Question that I hope doesn't sound rude: is this sort of thing (processing a dataset that doesn't fit in memory) outside of `datasets`'s core area of fo... | ### Feature request
The ability to load a dataset, add or change something, and save it back to disk.
Maybe it's possible, but I can't work out how to do it, e.g. this fails:
```py
import datasets
dataset = datasets.load_from_disk("data/test1")
dataset = dataset.add_item({"text": "A new item"})
dataset.sav... | 89 | Ability to update a dataset
### Feature request
The ability to load a dataset, add or change something, and save it back to disk.
Maybe it's possible, but I can't work out how to do it, e.g. this fails:
```py
import datasets
dataset = datasets.load_from_disk("data/test1")
dataset = dataset.add_item({"text... | [
-0.1920248121023178,
0.30247849225997925,
-0.14454351365566254,
-0.03796461969614029,
0.061525218188762665,
0.2540949881076813,
-0.019156109541654587,
-0.047730665653944016,
-0.0634785071015358,
0.19598406553268433,
0.08385584503412247,
0.029836565256118774,
-0.24973727762699127,
0.4215006... |
https://github.com/huggingface/datasets/issues/5817 | Setting `num_proc` errors when `.map` returns additional items. | Hi ! Unfortunately I couldn't reproduce on my side locally and with datasets 2.11 and python 3.10.11 on colab.
What version of `multiprocess` are you using ? | ### Describe the bug
I'm using a map function that returns more rows than are passed in.
If I try to use `num_proc` I get:
```
File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kw... | 27 | Setting `num_proc` errors when `.map` returns additional items.
### Describe the bug
I'm using a map function that returns more rows than are passed in.
If I try to use `num_proc` I get:
```
File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper
... | [
0.24224050343036652,
-0.4123588502407074,
-0.0763755515217781,
0.37606698274612427,
0.06363587081432343,
-0.34870126843452454,
-0.003228243440389633,
0.3338969945907593,
0.02324344962835312,
0.3051273226737976,
0.41750550270080566,
0.46862083673477173,
-0.23825906217098236,
0.1526007503271... |
https://github.com/huggingface/datasets/issues/5817 | Setting `num_proc` errors when `.map` returns additional items. | I've got `multiprocess` version `0.70.14`.
I've done some more testing and the error only occurs in PyCharm's Python Console. It seems to be [this PyCharm bug](https://youtrack.jetbrains.com/issue/PY-51922/Multiprocessing-bug.-Can-only-run-in-debugger.), I'll close this. | ### Describe the bug
I'm using a map function that returns more rows than are passed in.
If I try to use `num_proc` I get:
```
File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kw... | 29 | Setting `num_proc` errors when `.map` returns additional items.
### Describe the bug
I'm using a map function that returns more rows than are passed in.
If I try to use `num_proc` I get:
```
File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper
... | [
0.24224050343036652,
-0.4123588502407074,
-0.0763755515217781,
0.37606698274612427,
0.06363587081432343,
-0.34870126843452454,
-0.003228243440389633,
0.3338969945907593,
0.02324344962835312,
0.3051273226737976,
0.41750550270080566,
0.46862083673477173,
-0.23825906217098236,
0.1526007503271... |
https://github.com/huggingface/datasets/issues/5817 | Setting `num_proc` errors when `.map` returns additional items. | For other users facing this, my workaround is to conditionally set `num_proc` so I can work interactively in the PyCharm Python Console while developing, then when I'm ready to run on the whole dataset, run it as a script and use multiprocessing.
```py
mapped_ds = ds.map(
my_map_function,
batched=True,
... | ### Describe the bug
I'm using a map function that returns more rows than are passed in.
If I try to use `num_proc` I get:
```
File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kw... | 58 | Setting `num_proc` errors when `.map` returns additional items.
### Describe the bug
I'm using a map function that returns more rows than are passed in.
If I try to use `num_proc` I get:
```
File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper
... | [
0.24224050343036652,
-0.4123588502407074,
-0.0763755515217781,
0.37606698274612427,
0.06363587081432343,
-0.34870126843452454,
-0.003228243440389633,
0.3338969945907593,
0.02324344962835312,
0.3051273226737976,
0.41750550270080566,
0.46862083673477173,
-0.23825906217098236,
0.1526007503271... |
https://github.com/huggingface/datasets/issues/5815 | Easy way to create a Kaggle dataset from a Huggingface dataset? | Hi @hrbigelow , I'm no expert for such a question so I'll ping @lhoestq from the `datasets` library (also this issue could be moved there if someone with permission can do it :) ) | I'm not sure whether this is more appropriately addressed with HuggingFace or Kaggle. I would like to somehow directly create a Kaggle dataset from a HuggingFace Dataset.
While Kaggle does provide the option to create a dataset from a URI, that URI must point to a single file. For example:
 | I'm not sure whether this is more appropriately addressed with HuggingFace or Kaggle. I would like to somehow directly create a Kaggle dataset from a HuggingFace Dataset.
While Kaggle does provide the option to create a dataset from a URI, that URI must point to a single file. For example:

Also, we should improve the error to make it more obvious what the pr... | ### Describe the bug
I've adapted Databrick's [train_dolly.py](/databrickslabs/dolly/blob/master/train_dolly.py) to train using a local dataset, which has been working. Upon changing the filenames of the `.json` & `.py` files in my local dataset directory, `dataset = load_dataset(path_or_dataset)["train"]` throws th... | 45 | load_dataset: TypeError: 'NoneType' object is not callable, on local dataset filename changes
### Describe the bug
I've adapted Databrick's [train_dolly.py](/databrickslabs/dolly/blob/master/train_dolly.py) to train using a local dataset, which has been working. Upon changing the filenames of the `.json` & `.py` f... | [
-0.03892188519239426,
0.302040696144104,
0.15307991206645966,
0.35685741901397705,
0.462030827999115,
0.17396512627601624,
0.6785811185836792,
0.3318513035774231,
0.2880823314189911,
0.2160205841064453,
0.20145495235919952,
0.348331093788147,
-0.26490554213523865,
-0.11683300137519836,
-... |
https://github.com/huggingface/datasets/issues/5809 | wiki_dpr details for Open Domain Question Answering tasks | Hi ! I don't remember exactly how it was done, but maybe you have to embed `f"{title}<sep>{text}"` ?
Using a HF tokenizer it corresponds to doing
```python
tokenized = tokenizer(titles, texts)
``` | Hey guys!
Thanks for creating the wiki_dpr dataset!
I am currently trying to combine wiki_dpr and my own datasets. but I don't know how to make the embedding value the same way as wiki_dpr.
As an experiment, I embeds the text of id="7" of wiki_dpr, but this result was very different from wiki_dpr. | 32 | wiki_dpr details for Open Domain Question Answering tasks
Hey guys!
Thanks for creating the wiki_dpr dataset!
I am currently trying to combine wiki_dpr and my own datasets. but I don't know how to make the embedding value the same way as wiki_dpr.
As an experiment, I embeds the text of id="7" of wiki_dpr, bu... | [
0.05833571031689644,
-0.6291360259056091,
0.005163654685020447,
0.25820526480674744,
-0.02756286785006523,
0.018641114234924316,
0.2990281879901886,
0.045442961156368256,
0.17212232947349548,
0.533742368221283,
-0.17683127522468567,
0.1799393594264984,
0.30286505818367004,
0.06368549913167... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | Implementing this makes sense (e.g., `tensorflow_datasets`' imagefolder returns image filenames). Also, in Datasets 3.0, we plan only to store the bytes of an image/audio, not its path, so this feature would be useful when the path info is still needed. | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 40 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.4825649559497833,
-0.09418722242116928,
-0.04889892786741257,
0.03705468773841858,
0.03574053943157196,
-0.14645794034004211,
0.46932077407836914,
0.45563971996307373,
0.1066044420003891,
0.17320865392684937,
0.07409124076366425,
0.5581418871879578,
-0.4119579493999481,
0.30971792340278... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | Hey @mariosasko, Can I work on this issue, this one seems interesting to implement. I have contributed to jupyterlab recently, and would love to contribute here as well. | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 28 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.26706576347351074,
-0.03055237978696823,
-0.017161238938570023,
-0.03512352705001831,
0.018164966255426407,
-0.2046612799167633,
0.45129773020744324,
0.5406882762908936,
0.2023601084947586,
0.15843473374843597,
0.053432099521160126,
0.5594686269760132,
-0.34587737917900085,
0.4969970583... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | @tsabbir96 if you are planning to start working on this, you can take on this issue by writing a comment with only the keyword: #self-assign | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 25 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.41917771100997925,
-0.18147259950637817,
-0.03056933917105198,
-0.016473419964313507,
0.07291541993618011,
-0.13672389090061188,
0.4060406982898712,
0.48408448696136475,
0.24919629096984863,
0.0985666811466217,
0.07769030332565308,
0.5259691476821899,
-0.298679381608963,
0.4785940051078... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | @albertvillanova thank you for letting me contribute here.
@albertvillanova @mariosasko As I am totally new to this repo, could you tell me something more about this issue or perhaps give me some idea on how I can proceed with it? Thanks! | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 41 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.3265041708946228,
-0.2647356390953064,
-0.01758335530757904,
0.07004550099372864,
0.09929793328046799,
-0.13961537182331085,
0.3466265797615051,
0.4475677013397217,
0.22081102430820465,
0.0944114476442337,
0.06968649476766586,
0.4536363184452057,
-0.23294097185134888,
0.4677441716194153... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | Hello there, is this issue resolved? @tsabbir96 are you still working on it? Otherwise I would love to give it a try | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 22 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.3979035019874573,
-0.2282075434923172,
-0.026450028643012047,
0.0230003260076046,
0.09245394915342331,
-0.16651087999343872,
0.3990689516067505,
0.49507102370262146,
0.221370667219162,
0.08451294898986816,
0.08824464678764343,
0.5047295093536377,
-0.2669532001018524,
0.4841460585594177,... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | Hey @mariosasko, I've taken the time to take a look at how we load the datasets usually. My main question now is about the final solution.
So the idea is that whenever we load the datasets we also add a new column in the _generate_tables() method from the builders called filename (or file_name) that should be relate... | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 74 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.36966386437416077,
-0.04746363312005997,
-0.02574930712580681,
0.20428623259067535,
0.03717144951224327,
-0.0648701936006546,
0.35760337114334106,
0.48929235339164734,
0.2324390411376953,
0.0483611524105072,
0.04182252287864685,
0.4462890625,
-0.24884502589702606,
0.4740109443664551,
... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | > Is this issue still open? If yes, I'd like to work upon on it. Thanks
Definitely still open. I gave it a try, but then didn't get any feedback on my last question so I stopped . Feel free to work on it. | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 44 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.3471994698047638,
-0.22424408793449402,
-0.027185793966054916,
0.005224436521530151,
0.11257527023553848,
-0.1808275580406189,
0.39576077461242676,
0.47865331172943115,
0.22163636982440948,
0.09539265185594559,
0.11878429353237152,
0.5177739858627319,
-0.2579132616519928,
0.483607888221... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | It's still open, so feel free to work on it. This can be implemented by adding a param to the packaged builders' configs that inserts a column with file names (in `_generate_tables`) when `True`. Naming this column `file_name` sounds good to me. | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 42 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.5077111721038818,
-0.14263170957565308,
-0.03315088525414467,
0.036459293216466904,
0.05918189138174057,
-0.1509506106376648,
0.3843201696872711,
0.5087963938713074,
0.21042627096176147,
0.11009058356285095,
0.16244663298130035,
0.5358556509017944,
-0.3337228000164032,
0.487054169178009... |
https://github.com/huggingface/datasets/issues/5806 | Return the name of the currently loaded file in the load_dataset function. | Hi is the issues still open, is see no activity since September but it shows that it is still assigned to tsabbir96. If
tsabbir96 is not planning to continue, can i get it assigned to me. | ### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Motivation
When training large language models, machine problems may interrupt... | 36 | Return the name of the currently loaded file in the load_dataset function.
### Feature request
Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output.
### Mo... | [
-0.31062909960746765,
-0.2386891394853592,
-0.05924652889370918,
0.16559720039367676,
0.0021555088460445404,
-0.1808331310749054,
0.4046483337879181,
0.4016396403312683,
0.20307983458042145,
0.037091463804244995,
0.07435174286365509,
0.4502994120121002,
-0.3445892333984375,
0.4916839599609... |
https://github.com/huggingface/datasets/issues/5805 | Improve `Create a dataset` tutorial | I can work on this. The link to the tutorial seems to be broken though @polinaeterna. | Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading.
1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created from directory with data of required f... | 16 | Improve `Create a dataset` tutorial
Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading.
1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created... | [
-0.19121871888637543,
-0.26950109004974365,
-0.048009298741817474,
0.5280865430831909,
0.2393231838941574,
-0.0376354418694973,
0.004639558494091034,
0.024111106991767883,
-0.01922973431646824,
0.2579945921897888,
-0.025773322209715843,
0.08891638368368149,
-0.12057138234376907,
0.32013258... |
https://github.com/huggingface/datasets/issues/5805 | Improve `Create a dataset` tutorial | @isunitha98selvan would be great, thank you! which link are you talking about? I think it should work: https://huggingface.co/docs/datasets/create_dataset | Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading.
1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created from directory with data of required f... | 18 | Improve `Create a dataset` tutorial
Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading.
1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created... | [
-0.18374483287334442,
-0.2780703604221344,
-0.04612886160612106,
0.5162714719772339,
0.2399579882621765,
-0.013876128941774368,
0.030476506799459457,
0.017136482521891594,
-0.02669321373105049,
0.2696180045604706,
0.022135905921459198,
0.08110883086919785,
-0.1318446844816208,
0.3071803450... |
https://github.com/huggingface/datasets/issues/5805 | Improve `Create a dataset` tutorial | Hey I don't mind working on this issue. From my understanding, we want to let the reader know that they can build datasets from `csv`, `json/jsonl`, `parquet` and `txt` files in the **folder-based builders** section and include a link to the full guide. Then in the **from local files** section, we just want to list the... | Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading.
1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created from directory with data of required f... | 64 | Improve `Create a dataset` tutorial
Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading.
1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created... | [
-0.1241278201341629,
-0.26204395294189453,
-0.023828379809856415,
0.5954889059066772,
0.18644410371780396,
-0.018000446259975433,
-0.028906498104333878,
0.01650433987379074,
-0.002578193321824074,
0.21789248287677765,
-0.047884173691272736,
0.16464436054229736,
-0.07955803722143173,
0.3339... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Hi ! We're using process pools for parallelism right now. I was wondering if there's a package that implements the same API as a process pool but runs with Spark under the hood ? That or something similar would be cool because users could use whatever distributed framework they want this way.
Feel free to ping us wh... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 81 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5311521291732788,
-0.45192164182662964,
-0.2895434498786926,
0.08191470801830292,
-0.04725182056427002,
-0.007369503378868103,
0.261364609003067,
0.1978664994239807,
0.28730541467666626,
0.12461373955011368,
0.01936008594930172,
0.47269487380981445,
-0.08305799961090088,
0.5264351367950... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Hi, thanks for taking a look and providing your input! I don't know of such packages, and even it exists, I don't think with the process pool API it's possible to run Spark as backend properly; otherwise I understand a unified API would be preferable.
The process pool API requires splitting the workload to a fixed n... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 132 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5754364728927612,
-0.26495009660720825,
-0.2776188552379608,
0.038482218980789185,
-0.06436093151569366,
-0.011157311499118805,
0.36949920654296875,
0.21103788912296295,
0.25697699189186096,
0.050934210419654846,
-0.021644318476319313,
0.5398141145706177,
-0.046081289649009705,
0.553322... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | I see ! I think we only need an equivalent of `pool.map`. We use it to run download and conversion of data files on disk. That would require less changes in the internal code - and therefore less tests to write ;)
We also use `pool.apply_async` in some places with a `Queue` to get progress updates of the running job... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 84 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5281373858451843,
-0.18202270567417145,
-0.2799941897392273,
0.029995817691087723,
0.0023562945425510406,
-0.012214269489049911,
0.3677156865596771,
0.36550372838974,
0.26282089948654175,
0.14736832678318024,
-0.027858760207891464,
0.5398536920547485,
-0.02363341674208641,
0.35580506920... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | For Spark, `rdd.map` (where `rdd` can be created by `sparkContext.parallelize`) is the most similar as `pool.map`, but it requires creating a Spark RDD first that is used for distributing the `iterable` and the actual parallelization is managed by the Spark framework; `pool.map` takes the splits of `iterable` that are ... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 127 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.4450603723526001,
-0.29352617263793945,
-0.2786247134208679,
-0.005574993789196014,
-0.029473502188920975,
0.01366126537322998,
0.3585394322872162,
0.24527764320373535,
0.26606252789497375,
0.11462721973657608,
-0.1710057556629181,
0.5936987996101379,
-0.10379034280776978,
0.39364457130... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Indeed I think the current use of multiprocessing.Pool in `map_nested` can be rewritten to work like `sparkContext.parallelize` - without splitting the iterable.
Maybe from the user's perspective it's ok to let multiprocessing.Pool or spark distribute the load on their own, as long as it takes a list and runs jobs i... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 56 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5608072280883789,
-0.29045775532722473,
-0.28479525446891785,
0.12091367691755295,
-0.09748159348964691,
0.04721706360578537,
0.43108975887298584,
0.2106950730085373,
0.3261690139770508,
0.09282267093658447,
-0.12442737072706223,
0.47700342535972595,
-0.03488107770681381,
0.429539859294... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | From your feedback, seems to me there are two paths to consider now for supporting spark's `map` function in `map_nested` now:
1. Keep the current `pool.map` implementation, and add an if statement for the spark's `map` code (which is what I did in my current PR) -- the code change is just a few lines in the `map_nest... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 185 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.4737168848514557,
-0.3848661482334137,
-0.25377559661865234,
0.05113651975989342,
-0.212052583694458,
-0.031120028346776962,
0.3600761890411377,
0.3059084117412567,
0.3719863295555115,
-0.014005467295646667,
-0.03372735530138016,
0.5151516795158386,
-0.07134757190942764,
0.2003955543041... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Yup correct ! I think it's a nice path because it would be possible for users to define whatever parallel processing backend they want. I think we still need to discuss how that would look like in the `datasets` API : how to specify it has to use the "spark" parallel backend ? And how to specify the spark session param... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 94 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.36371347308158875,
-0.18536819517612457,
-0.2672675549983978,
0.06818685680627823,
-0.14095398783683777,
-0.04652607813477516,
0.30269941687583923,
0.2803657650947571,
0.24448645114898682,
0.015298821032047272,
0.05880540609359741,
0.49277839064598083,
-0.0721580758690834,
0.51745909452... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Sure, please let me know if you have more updates regarding the API and implementation from the team.
For parameters we don't need to worry about setting them for Spark, because Spark will figure out the environment / number of worker nodes by itself, so it's preferable to just provide some parameter such as `use_sp... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 61 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.4812094271183014,
-0.3032202124595642,
-0.290436714887619,
0.07637686282396317,
-0.020943626761436462,
-0.1009984016418457,
0.3441425859928131,
0.21842190623283386,
0.2572855055332184,
0.07534412294626236,
-0.00004513724707067013,
0.5947645902633667,
-0.14878547191619873,
0.423285990953... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Hi! I wanted to check in to see if there is any update from the team.
A potential change of API I can think of is change the argument to `distributed_backend=...`, which accepts `str`, such as `load_dataset(..., distributed_backend="spark")`.
Implementation wise, we can add a class / function to abstract away the... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 66 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.4750988781452179,
-0.33480143547058105,
-0.2552706301212311,
0.09217183291912079,
-0.11919406056404114,
-0.07862097769975662,
0.3384149968624115,
0.2057936042547226,
0.3066735863685608,
0.09049540758132935,
0.04063589870929718,
0.5110880732536316,
-0.002624700777232647,
0.47931784391403... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | I found this quite interesting: https://github.com/joblib/joblib-spark with this syntax:
```python
with parallel_backend('spark', n_jobs=3):
...
```
cc @lu-wang-dl who might know better | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 21 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.46477290987968445,
-0.22489145398139954,
-0.2864757180213928,
0.15008637309074402,
-0.04983191192150116,
-0.025124549865722656,
0.4391162097454071,
0.1914924830198288,
0.27764424681663513,
0.10016020387411118,
0.010866204276680946,
0.544532299041748,
-0.07295819371938705,
0.486569464206... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Joblib spark is providing Spark backend for joblib. We can implement a general parallel backend like
```
with parallel_backend("<parallel-backedn>", n_jobs=..):
```
It can support multiprocessing , spark, ray, and etc. https://joblib.readthedocs.io/en/latest/parallel.html#joblib.parallel_backend | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 31 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5077944993972778,
-0.21592819690704346,
-0.29632335901260376,
0.10189111530780792,
-0.04983171820640564,
-0.05164731293916702,
0.4365321099758148,
0.2251305878162384,
0.26978787779808044,
0.1350202113389969,
-0.10236342996358871,
0.5332249999046326,
-0.036468103528022766,
0.537841856479... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Thank you @lhoestq for finding this repo. I validated that it can distribute downloading jobs with Spark to arbitrary cluster worker nodes evenly with `n_jobs=-1`.
For the API, I think it makes sense to define it as
```python
load_dataset(..., parallel_backend=<str>)
```
where `parallel_backend` can be `spark`, ... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 82 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.40511655807495117,
-0.19184991717338562,
-0.26870957016944885,
0.046584706753492355,
-0.2636890411376953,
-0.15612901747226715,
0.44920817017555237,
0.15914995968341827,
0.36480140686035156,
-0.00667908787727356,
0.06409873068332672,
0.5088893175125122,
-0.07883074879646301,
0.509770929... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Hello @lhoestq, I wanted to follow up on my previous comment with some prototyping code that demonstrates how `map_nested` would be like if we unify `multiprocessing` and `spark` with `joblib`. The snippet hasn't hashed out the details such as dealing with `tqdm` yet.
In terms of API, the way of using multiprocessin... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 291 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5167413353919983,
-0.30078554153442383,
-0.2685207724571228,
0.08404037356376648,
-0.08992081880569458,
-0.07849755883216858,
0.4483916759490967,
0.20813117921352386,
0.2989468276500702,
0.08510471880435944,
-0.0728195533156395,
0.5960127711296082,
-0.0716032087802887,
0.490204274654388... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Nice ! It should be quite easy to make the change then :)
I think adding spark support can actually be less than 20 lines of code and would roughly require one line of code to change in map_nested:
Maybe we can define a new `datasets.parallel` submodule that has the `parallel_backend()` context manager and a `par... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 108 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.47889840602874756,
-0.278893381357193,
-0.29145121574401855,
0.06545103341341019,
-0.12983112037181854,
0.10031906515359879,
0.3419838845729828,
0.36150863766670227,
0.3637257218360901,
0.05006492882966995,
-0.017161007970571518,
0.5124855637550354,
-0.11141029745340347,
0.4177775084972... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Although until we've switched to all the steps in `load_dataset` to use `datasets.parallel`, I would require the user to explicitly say which step should use Spark. Maybe something like this, but I'm not sure yet:
```python
from datasets.parallel import parallel_backend
with parallel_backend("spark", steps=["dow... | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 106 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.5912808775901794,
-0.16644394397735596,
-0.27467939257621765,
0.04670502245426178,
-0.03728330880403519,
0.011107787489891052,
0.41554269194602966,
0.2909708023071289,
0.2725377678871155,
0.1264847069978714,
-0.05809551477432251,
0.5138406157493591,
-0.09657623618841171,
0.4409128725528... |
https://github.com/huggingface/datasets/issues/5798 | Support parallelized downloading and processing in load_dataset with Spark | Sounds good! I like the partial rollout idea.
So for example `map_nested` would call `parallel_map` under the hood if `num_proc != 1` or `parallel_backend` is specified right?
I would be happy to start a PR next week to explore this path. | ### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```python
load_dataset(..., use_spark=True)
```
### Motivation
Further speed up ... | 41 | Support parallelized downloading and processing in load_dataset with Spark
### Feature request
When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes.
```pyth... | [
-0.44032415747642517,
-0.3532623052597046,
-0.2629157304763794,
0.1536308079957962,
-0.07885192334651947,
0.0010521560907363892,
0.34744662046432495,
0.233102485537529,
0.26936787366867065,
0.038971491158008575,
0.11368623375892639,
0.5241243243217468,
-0.06608089059591293,
0.5449795722961... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.