html_url stringlengths 51 51 | comments stringlengths 67 24.7k | title stringlengths 6 280 | body stringlengths 51 36.2k | comment_length int64 16 1.45k | text stringlengths 190 38.3k | embeddings list |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/5044 | I think the simplest is to always memory map the local file without copy, but still have a cached directory in the cache at `~/.cache/huggingface` instead of saving `map` results next to the original data.
In practice we can even use symlinks if it makes the implementation simpler | integrate `load_from_disk` into `load_dataset` | **Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one has to choose a different loader depending on how ... | 48 | integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one ... | [
-0.44635629653930664,
-0.25477927923202515,
0.010255582630634308,
0.2019413411617279,
0.2771255671977997,
-0.0641511082649231,
0.34563830494880676,
0.05371476709842682,
0.18767520785331726,
0.003259710967540741,
-0.12002961337566376,
0.4315915107727051,
-0.21891234815120697,
0.365950495004... |
https://github.com/huggingface/datasets/issues/5044 | Yes, so that you always have the cached entry for any dataset, but the "payload" doesn't have to be physically in the cache if it's already on the local filesystem. As you said a symlink will do. | integrate `load_from_disk` into `load_dataset` | **Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one has to choose a different loader depending on how ... | 37 | integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one ... | [
-0.44635629653930664,
-0.25477927923202515,
0.010255582630634308,
0.2019413411617279,
0.2771255671977997,
-0.0641511082649231,
0.34563830494880676,
0.05371476709842682,
0.18767520785331726,
0.003259710967540741,
-0.12002961337566376,
0.4315915107727051,
-0.21891234815120697,
0.365950495004... |
https://github.com/huggingface/datasets/issues/5044 | We haven't had the bandwidth to implement this so far. Let me know if you'd be interested in contributing this feature :) | integrate `load_from_disk` into `load_dataset` | **Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one has to choose a different loader depending on how ... | 22 | integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one ... | [
-0.44635629653930664,
-0.25477927923202515,
0.010255582630634308,
0.2019413411617279,
0.2771255671977997,
-0.0641511082649231,
0.34563830494880676,
0.05371476709842682,
0.18767520785331726,
0.003259710967540741,
-0.12002961337566376,
0.4315915107727051,
-0.21891234815120697,
0.365950495004... |
https://github.com/huggingface/datasets/issues/5044 | @lhoestq I can jump into that. What I don't like is having functions with many parameters input. Even though they are optional, it's always harder to reason about and test such cases.
If there are more features worth to work on, feel free to ping me. It's a lot of fun to help :smile: | integrate `load_from_disk` into `load_dataset` | **Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one has to choose a different loader depending on how ... | 54 | integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one ... | [
-0.44635629653930664,
-0.25477927923202515,
0.010255582630634308,
0.2019413411617279,
0.2771255671977997,
-0.0641511082649231,
0.34563830494880676,
0.05371476709842682,
0.18767520785331726,
0.003259710967540741,
-0.12002961337566376,
0.4315915107727051,
-0.21891234815120697,
0.365950495004... |
https://github.com/huggingface/datasets/issues/5044 | Thanks a lot for your help @mariusz-jachimowicz-83 :)
I think as a first step we could implement an Arrow dataset builder to be able to load and stream Arrow datasets locally or from Hugging Face. Maybe something similar to the Parquet builder at [src/datasets/packaged_modules/parquet/parquet.py](https://github.com/... | integrate `load_from_disk` into `load_dataset` | **Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one has to choose a different loader depending on how ... | 70 | integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one ... | [
-0.44635629653930664,
-0.25477927923202515,
0.010255582630634308,
0.2019413411617279,
0.2771255671977997,
-0.0641511082649231,
0.34563830494880676,
0.05371476709842682,
0.18767520785331726,
0.003259710967540741,
-0.12002961337566376,
0.4315915107727051,
-0.21891234815120697,
0.365950495004... |
https://github.com/huggingface/datasets/issues/5044 | @lhoestq Let me know if you have further recommendations or anything that you would like to add but you don't have bandwith for. | integrate `load_from_disk` into `load_dataset` | **Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one has to choose a different loader depending on how ... | 23 | integrate `load_from_disk` into `load_dataset`
**Is your feature request related to a problem? Please describe.**
Is it possible to make `load_dataset` more universal similar to `from_pretrained` in `transformers` so that it can handle the hub, and the local path datasets of all supported types?
Currently one ... | [
-0.44635629653930664,
-0.25477927923202515,
0.010255582630634308,
0.2019413411617279,
0.2771255671977997,
-0.0641511082649231,
0.34563830494880676,
0.05371476709842682,
0.18767520785331726,
0.003259710967540741,
-0.12002961337566376,
0.4315915107727051,
-0.21891234815120697,
0.365950495004... |
https://github.com/huggingface/datasets/issues/5038 | Hi! It seems like `flatten_indices` (called in `unique`) doesn't know how to handle empty indices mappings. I'm working on the fix. | `Dataset.unique` showing wrong output after filtering | ## Describe the bug
After filtering a dataset, and if no samples remain, `Dataset.unique` will return the unique values of the unfiltered dataset.
## Steps to reproduce the bug
```python
from datasets import Dataset
dataset = Dataset.from_dict({'id': [0]})
dataset = dataset.filter(lambda _: False)
print(data... | 21 | `Dataset.unique` showing wrong output after filtering
## Describe the bug
After filtering a dataset, and if no samples remain, `Dataset.unique` will return the unique values of the unfiltered dataset.
## Steps to reproduce the bug
```python
from datasets import Dataset
dataset = Dataset.from_dict({'id': [0]}... | [
0.12757018208503723,
-0.30221888422966003,
-0.04662981256842613,
0.14327242970466614,
0.10523302853107452,
0.12953975796699524,
0.39575278759002686,
0.08936890214681625,
-0.030218251049518585,
0.13340336084365845,
-0.03949242830276489,
0.5570564270019531,
-0.0364566370844841,
-0.0091445893... |
https://github.com/huggingface/datasets/issues/5032 | Hi ! You can in the `features` folder how we implemented the audio and image feature types.
We can have something similar to videos. What we need to decide:
- the video loading library to use
- the output format when a user accesses a video type object
- what parameters a `Video()` feature type needs
also cc @... | new dataset type: single-label and multi-label video classification | **Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset.
**Describe the solution you'd like**
Assume I h... | 71 | new dataset type: single-label and multi-label video classification
**Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro... | [
-0.20656844973564148,
-0.17477484047412872,
-0.009809106588363647,
-0.02111285924911499,
0.05933553725481033,
-0.1979743242263794,
0.6924852132797241,
0.03697884827852249,
-0.5309862494468689,
-0.15186966955661774,
-0.16085165739059448,
0.004333082586526871,
-0.6190939545631409,
0.49934077... |
https://github.com/huggingface/datasets/issues/5032 | Hi ! I think we just missing which lib we're going to use to decode the videos + which parameters must go in the `Video` type | new dataset type: single-label and multi-label video classification | **Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset.
**Describe the solution you'd like**
Assume I h... | 26 | new dataset type: single-label and multi-label video classification
**Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro... | [
-0.24146978557109833,
-0.1344395875930786,
0.0021864846348762512,
-0.0020538419485092163,
0.04629525542259216,
-0.21092160046100616,
0.6544613242149353,
0.04085897281765938,
-0.5185304880142212,
-0.1022033616900444,
-0.1690845489501953,
0.07043946534395218,
-0.6277961134910583,
0.407850384... |
https://github.com/huggingface/datasets/issues/5032 | pytorchvideo uses [pyav](https://github.com/PyAV-Org/PyAV) as the default decoder: https://github.com/facebookresearch/pytorchvideo/blob/c8d23d8b7e597586a9e2d18f6ed31ad8aa379a7a/pytorchvideo/data/labeled_video_dataset.py#L37
Also it would be great if `optionally` audio can also be decoded from the video as in pytorc... | new dataset type: single-label and multi-label video classification | **Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset.
**Describe the solution you'd like**
Assume I h... | 36 | new dataset type: single-label and multi-label video classification
**Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro... | [
-0.24553143978118896,
-0.12737007439136505,
0.0012589730322360992,
-0.02961202710866928,
0.10663264989852905,
-0.21920791268348694,
0.6609010100364685,
0.020413201302289963,
-0.5795263051986694,
-0.08067625761032104,
-0.1888125091791153,
0.14815108478069305,
-0.5741210579872131,
0.28009718... |
https://github.com/huggingface/datasets/issues/5032 | @sayakpaul I did do quite a bit of work on [this PR](https://github.com/huggingface/datasets/pull/4532) a while back to add a video feature. It's outdated, but uses my `encoded_video` [package](https://github.com/nateraw/encoded-video) under the hood, which is basically a wrapper around PyAV stolen from [pytorchvideo](... | new dataset type: single-label and multi-label video classification | **Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches from a video dataset.
**Describe the solution you'd like**
Assume I h... | 67 | new dataset type: single-label and multi-label video classification
**Is your feature request related to a problem? Please describe.**
In my research, I am dealing with multi-modal (audio+text+frame sequence) video classification. It would be great if the datasets library supported generating multi-modal batches fro... | [
-0.29071953892707825,
-0.12987646460533142,
0.0008971355855464935,
-0.08380110561847687,
0.032520659267902374,
-0.15826815366744995,
0.7191744446754456,
0.062427274882793427,
-0.5241209864616394,
-0.10248780250549316,
-0.08797061443328857,
0.08317135274410248,
-0.6178998351097107,
0.378030... |
https://github.com/huggingface/datasets/issues/5028 | Hi! Yes, you can either use the `gen_kwargs` param in `Dataset.from_generator` (`ds = Dataset.from_generator(gen, gen_kwargs={"param1": val})`) or wrap the generator function with `functools.partial`
(`ds = Dataset.from_generator(functools.partial(gen, param1="val"))`) to pass custom parameters to it.
| passing parameters to the method passed to Dataset.from_generator() | Big thanks for providing dataset creation via a generator.
I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows.
```
from datasets import Dataset
def gen(param1):
for idx in len(custom_dataset):
yield custom_dataset[id... | 33 | passing parameters to the method passed to Dataset.from_generator()
Big thanks for providing dataset creation via a generator.
I want to ask whether there is any way that parameters can be passed to the method Dataset.from_generator() method, like as follows.
```
from datasets import Dataset
def gen(param1):... | [
0.03988051414489746,
0.19671247899532318,
-0.032088249921798706,
0.20860111713409424,
0.3242539167404175,
-0.18615508079528809,
0.1362987458705902,
0.20249325037002563,
-0.3697398900985718,
0.03992563858628273,
0.27100181579589844,
0.5735810399055481,
-0.18443851172924042,
-0.1891741156578... |
https://github.com/huggingface/datasets/issues/5025 | Hi! Our processors are meant to be used in `batched` mode, so if `batched` is `False`, you need to drop the batch dimension (the error message warns you that the array has an extra dimension meaning it's 4D instead of 3D) to avoid the error:
```python
def prepare_examples(examples):
#Some preporcessing for each ... | Custom Json Dataset Throwing Error when batch is False | ## Describe the bug
A clear and concise description of what the bug is.
I tried to create my custom dataset using below code
```
from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D
from torchvision import transforms
from transformers import AutoProcessor
# we'll use the Auto API here -... | 93 | Custom Json Dataset Throwing Error when batch is False
## Describe the bug
A clear and concise description of what the bug is.
I tried to create my custom dataset using below code
```
from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D
from torchvision import transforms
from transform... | [
-0.208346426486969,
-0.1921481192111969,
-0.07093670964241028,
0.3017364740371704,
0.13636870682239532,
0.010352425277233124,
0.4672946035861969,
0.290227472782135,
-0.0067365095019340515,
0.08248186856508255,
0.26205337047576904,
0.26010942459106445,
-0.36587443947792053,
0.10612703859806... |
https://github.com/huggingface/datasets/issues/5025 | > Hi! Our processors are meant to be used in `batched` mode, so if `batched` is `False`, you need to drop the batch dimension (the error message warns you that the array has an extra dimension meaning it's 4D instead of 3D) to avoid the error:
>
> ```python
> def prepare_examples(examples):
> #Some preporcessi... | Custom Json Dataset Throwing Error when batch is False | ## Describe the bug
A clear and concise description of what the bug is.
I tried to create my custom dataset using below code
```
from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D
from torchvision import transforms
from transformers import AutoProcessor
# we'll use the Auto API here -... | 118 | Custom Json Dataset Throwing Error when batch is False
## Describe the bug
A clear and concise description of what the bug is.
I tried to create my custom dataset using below code
```
from datasets import Features, Sequence, ClassLabel, Value, Array2D, Array3D
from torchvision import transforms
from transform... | [
-0.208346426486969,
-0.1921481192111969,
-0.07093670964241028,
0.3017364740371704,
0.13636870682239532,
0.010352425277233124,
0.4672946035861969,
0.290227472782135,
-0.0067365095019340515,
0.08248186856508255,
0.26205337047576904,
0.26010942459106445,
-0.36587443947792053,
0.10612703859806... |
https://github.com/huggingface/datasets/issues/5021 | Hi! What's the structure of your image folder? `datasets` by default tries to infer to what split each file belongs based on directory/file names. If it's OK to load all the images inside the `dataset` folder in the `train` split, you can do the following:
```python
dataset = load_dataset("imagefolder", data_files="d... | Split is inferred from filename and overrides metadata.jsonl | ## Describe the bug
Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files.
This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder
## Steps to reproduce th... | 51 | Split is inferred from filename and overrides metadata.jsonl
## Describe the bug
Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files.
This behavior is documented for directory names but not filenames: https://huggingface.co/docs... | [
0.05747745931148529,
0.021086066961288452,
-0.06381217390298843,
0.5179054141044617,
0.11288280785083771,
0.18704620003700256,
0.38813939690589905,
0.3922387659549713,
0.01679977774620056,
0.21734006702899933,
-0.12034689635038376,
0.3918396234512329,
-0.20038187503814697,
0.04234235733747... |
https://github.com/huggingface/datasets/issues/5021 | Thanks! Specifying `data_files` worked for that case.
I'm new to the library, so let me try rephrasing the issue. If there's no actual bug here, sorry for the trouble.
I've uploaded an example [here](https://files.catbox.moe/nfj2pd.zip) with the following files:
```
.
├── bug.py
└── imagefolder
├── tes... | Split is inferred from filename and overrides metadata.jsonl | ## Describe the bug
Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files.
This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder
## Steps to reproduce th... | 150 | Split is inferred from filename and overrides metadata.jsonl
## Describe the bug
Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files.
This behavior is documented for directory names but not filenames: https://huggingface.co/docs... | [
0.04267439991235733,
0.006399855017662048,
-0.03466194495558739,
0.497266948223114,
0.09559202194213867,
0.18740229308605194,
0.3946737051010132,
0.3969040513038635,
-0.014017898589372635,
0.1711658537387848,
-0.1785876452922821,
0.39359763264656067,
-0.19119977951049805,
0.019231237471103... |
https://github.com/huggingface/datasets/issues/5021 | This looks like a duplicate of https://github.com/huggingface/datasets/issues/4895 (the problem is explained in this comment: https://github.com/huggingface/datasets/issues/4895#issuecomment-1248269550).
In the meantime, you can do the following to fetch all the splits:
```python
dataset = load_dataset("imagefolde... | Split is inferred from filename and overrides metadata.jsonl | ## Describe the bug
Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files.
This behavior is documented for directory names but not filenames: https://huggingface.co/docs/datasets/image_dataset#imagefolder
## Steps to reproduce th... | 37 | Split is inferred from filename and overrides metadata.jsonl
## Describe the bug
Including the strings "test" or "train" anywhere in a filename causes `datasets` to infer the split and silently ignore all other files.
This behavior is documented for directory names but not filenames: https://huggingface.co/docs... | [
0.10290071368217468,
0.024445533752441406,
-0.06702593713998795,
0.46174266934394836,
0.08765816688537598,
0.2101045548915863,
0.3528493344783783,
0.3635421097278595,
0.004549756646156311,
0.1651327908039093,
-0.15118303894996643,
0.44368976354599,
-0.20380206406116486,
-0.0276161171495914... |
https://github.com/huggingface/datasets/issues/5014 | Hi! We don't currently have a builder for parsing custom `conll` datasets, but I guess we could add one as a packaged module (similarly to what [TFDS](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/core/dataset_builders/conll/conll_dataset_builder.py) did). @lhoestq @albertvillanova WDYT?
In ... | I need to read the custom dataset in conll format | I need to read the custom dataset in conll format
| 137 | I need to read the custom dataset in conll format
I need to read the custom dataset in conll format
Hi! We don't currently have a builder for parsing custom `conll` datasets, but I guess we could add one as a packaged module (similarly to what [TFDS](https://github.com/tensorflow/datasets/blob/master/tensorflow_d... | [
-0.4587496519088745,
0.011594071984291077,
-0.18534229695796967,
0.23707586526870728,
0.13481299579143524,
0.21644653379917145,
0.39922192692756653,
0.34351301193237305,
-0.4873548746109009,
0.02529752627015114,
-0.26638054847717285,
0.2430921196937561,
-0.3531593680381775,
0.4143039584159... |
https://github.com/huggingface/datasets/issues/5014 | I think we could add a dedicated builder if you think this format is general enough. | I need to read the custom dataset in conll format | I need to read the custom dataset in conll format
| 16 | I need to read the custom dataset in conll format
I need to read the custom dataset in conll format
I think we could add a dedicated builder if you think this format is general enough. | [
-0.4651763141155243,
0.17232371866703033,
-0.22875528037548065,
0.04054711014032364,
0.1192893236875534,
0.12518632411956787,
0.37645211815834045,
0.20615825057029724,
-0.4536241888999939,
0.2830810546875,
-0.2519293427467346,
0.11082801222801208,
-0.2176365703344345,
0.47608885169029236,
... |
https://github.com/huggingface/datasets/issues/5014 |
> I think we could add a dedicated builder if you think this format is general enough.
I think its functions are incomplete. It should have to_ Conll and from_ There are two methods of conll. | I need to read the custom dataset in conll format | I need to read the custom dataset in conll format
| 36 | I need to read the custom dataset in conll format
I need to read the custom dataset in conll format
> I think we could add a dedicated builder if you think this format is general enough.
I think its functions are incomplete. It should have to_ Conll and from_ There are two methods of conll. | [
-0.3836572766304016,
0.13543403148651123,
-0.14543208479881287,
0.12189830839633942,
0.17940880358219147,
-0.006354168057441711,
0.34691232442855835,
0.29411613941192627,
-0.5567653775215149,
0.26320183277130127,
-0.20346108078956604,
0.06095423176884651,
-0.16631421446800232,
0.2996092140... |
https://github.com/huggingface/datasets/issues/5013 | Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ? | would huggingface like publish cpp binding for datasets package ? | HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks | 27 | would huggingface like publish cpp binding for datasets package ?
HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks
Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus usin... | [
-0.15040692687034607,
-0.6395565867424011,
-0.08259402215480804,
0.08187500387430191,
0.09981751441955566,
-0.24678358435630798,
0.11569446325302124,
0.005056900903582573,
-0.10657477378845215,
0.1353689432144165,
-0.261924147605896,
0.26693177223205566,
-0.22225555777549744,
0.52197444438... |
https://github.com/huggingface/datasets/issues/5013 | > Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus using the python libraries ?
for example ,the huggingface load_model() and load_dataset() can execute in cpp env | would huggingface like publish cpp binding for datasets package ? | HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks | 40 | would huggingface like publish cpp binding for datasets package ?
HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks
> Hi ! Can you share more information about your use case ? How could it help you to have cpp bindings versus us... | [
-0.11176756769418716,
-0.7132205963134766,
-0.0498846173286438,
0.10632000118494034,
0.14780600368976593,
-0.1989235281944275,
0.10186146944761276,
0.023375194519758224,
-0.04466814547777176,
0.11003848165273666,
-0.30504879355430603,
0.28889569640159607,
-0.20051008462905884,
0.5899173021... |
https://github.com/huggingface/datasets/issues/5013 | If it's a viable option for you, you can check [tch-rs](https://github.com/LaurentMazare/tch-rs) to load models in Rust. Regarding datasets, you can first download them in python and then use Arrow C++ or Rust to load them | would huggingface like publish cpp binding for datasets package ? | HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks | 35 | would huggingface like publish cpp binding for datasets package ?
HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks
If it's a viable option for you, you can check [tch-rs](https://github.com/LaurentMazare/tch-rs) to load models ... | [
-0.4306069016456604,
-0.32234740257263184,
0.005383644253015518,
0.1004888191819191,
0.11539746820926666,
-0.07726012170314789,
-0.029294654726982117,
0.17963969707489014,
0.061829835176467896,
0.07767020165920258,
-0.5464898943901062,
0.3083961009979248,
-0.2540321350097656,
0.60314643383... |
https://github.com/huggingface/datasets/issues/5013 | If you are more adventurous, another option is to embed python calls inside c++ e.g. with `pybind11`. | would huggingface like publish cpp binding for datasets package ? | HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks | 17 | would huggingface like publish cpp binding for datasets package ?
HI:
I use cpp env libtorch, I like use hugggingface ,but huggingface not cpp binding, would you like publish cpp binding for it.
thanks
If you are more adventurous, another option is to embed python calls inside c++ e.g. with `pybind11`. | [
-0.3280453681945801,
-0.5319106578826904,
-0.010915733873844147,
-0.009757749736309052,
0.20415037870407104,
-0.15778058767318726,
0.10446459800004959,
0.09144504368305206,
-0.10828083008527756,
0.20271316170692444,
-0.31489893794059753,
0.28619518876075745,
-0.2463665008544922,
0.68667685... |
https://github.com/huggingface/datasets/issues/5012 | Hi ! Support for URIs like `s3://...` is not implemented yet in `data_files=`. You can use the HTTP URL instead if your data is public in the meantime | Force JSON format regardless of file naming on S3 | I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It gives me
```
InvalidSchema: No connection adap... | 28 | Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
... | [
0.23562420904636383,
-0.03260734677314758,
0.0137639120221138,
-0.013254502788186073,
0.179307758808136,
-0.1757846474647522,
0.19756413996219635,
0.253214567899704,
0.08307398855686188,
0.07370846718549728,
-0.01387026533484459,
0.5979514122009277,
-0.21022000908851624,
0.4327723383903503... |
https://github.com/huggingface/datasets/issues/5012 | Hi,
I want to make sure I understand this response. I have a set of files on S3 that are private for security reasons. Because they are not public files I cannot read those files (many are parquet) into my hf notebooks in Kaggle? That can't be correct, can it? | Force JSON format regardless of file naming on S3 | I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It gives me
```
InvalidSchema: No connection adap... | 50 | Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
... | [
0.37514743208885193,
-0.22132426500320435,
0.04070274904370308,
0.03849975764751434,
0.09746836870908737,
-0.16973109543323517,
0.2889717221260071,
0.15318533778190613,
0.16126881539821625,
0.06703730672597885,
-0.12092678248882294,
0.6312376260757446,
-0.10404244065284729,
0.5032792091369... |
https://github.com/huggingface/datasets/issues/5012 | Hi ! There is a discussion at https://github.com/huggingface/datasets/issues/5281
Using the latest `datasets` 2.11 you can try passing fsspec URLs to private buckets to `data_files` in `load_dataset()`. Though this is still experimental and undocumented, so feedback is welcome. You may not have the best experience t... | Force JSON format regardless of file naming on S3 | I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
It gives me
```
InvalidSchema: No connection adap... | 57 | Force JSON format regardless of file naming on S3
I have a file on S3 created by Data Version Control, it looks like `s3://dvc/ac/badff5b134382a0f25248f1b45d7b2` but contains a json file. If I run
```python
dataset = load_dataset(
"json",
data_files='s3://dvc/ac/badff5b134382a0f25248f1b45d7b2'
)
```
... | [
0.17231088876724243,
0.029758259654045105,
0.047462452203035355,
0.03164861351251602,
0.18879055976867676,
-0.14227065443992615,
0.20482781529426575,
0.19066542387008667,
0.11577406525611877,
0.0675097107887268,
-0.046311646699905396,
0.5999647378921509,
-0.15975868701934814,
0.57800489664... |
https://github.com/huggingface/datasets/issues/5009 | I think this is because some columns are mostly empty lists. In particular the train and validation splits only have empty lists for `val_ann`. Therefore the type inference doesn't know which type is inside (or it would have to scan the other splits first before knowing).
You can fix that by specifying the features ... | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly | ## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge... | 145 | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t... | [
-0.19701597094535828,
0.2147456705570221,
0.128627747297287,
0.5178276896476746,
0.08397316932678223,
0.11888168007135391,
0.35095781087875366,
0.4608618915081024,
0.2735694646835327,
0.0217759907245636,
-0.050082623958587646,
0.3347475528717041,
-0.06883764266967773,
-0.16067570447921753,... |
https://github.com/huggingface/datasets/issues/5009 | `gram_ann` and `val_ann` are annotations that only exist for part of the test set. I wanted to keep all the columns consistent across all files, so I added them to train and validation as well. I'll check if removing them from those files is still compliant with this repo. Otherwise, I will do as you suggested. Thanks ... | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly | ## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge... | 59 | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t... | [
-0.19701597094535828,
0.2147456705570221,
0.128627747297287,
0.5178276896476746,
0.08397316932678223,
0.11888168007135391,
0.35095781087875366,
0.4608618915081024,
0.2735694646835327,
0.0217759907245636,
-0.050082623958587646,
0.3347475528717041,
-0.06883764266967773,
-0.16067570447921753,... |
https://github.com/huggingface/datasets/issues/5009 | @lhoestq I followed the exact steps you described but it seems like I'm getting the same error unfortunately. Any other ideas? Thanks in advance | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly | ## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge... | 24 | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t... | [
-0.19701597094535828,
0.2147456705570221,
0.128627747297287,
0.5178276896476746,
0.08397316932678223,
0.11888168007135391,
0.35095781087875366,
0.4608618915081024,
0.2735694646835327,
0.0217759907245636,
-0.050082623958587646,
0.3347475528717041,
-0.06883764266967773,
-0.16067570447921753,... |
https://github.com/huggingface/datasets/issues/5009 | Hi ! If you move `dataset_infos.json` from `data/` to the root of your dataset repository if should work :) | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly | ## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge... | 19 | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t... | [
-0.19701597094535828,
0.2147456705570221,
0.128627747297287,
0.5178276896476746,
0.08397316932678223,
0.11888168007135391,
0.35095781087875366,
0.4608618915081024,
0.2735694646835327,
0.0217759907245636,
-0.050082623958587646,
0.3347475528717041,
-0.06883764266967773,
-0.16067570447921753,... |
https://github.com/huggingface/datasets/issues/5009 | I tried that and pushed to the [hub](https://huggingface.co/datasets/StonyBrookNLP/tellmewhy/tree/main). Now, there is a new error.
```
File "/home/yklal95/tellmewhy/src/prepare_data.py", line 67, in main
dataset = load_dataset('StonyBrookNLP/tellmewhy')
File "/home/yklal95/anaconda3/envs/tmw-generalization... | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly | ## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge... | 87 | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t... | [
-0.19701597094535828,
0.2147456705570221,
0.128627747297287,
0.5178276896476746,
0.08397316932678223,
0.11888168007135391,
0.35095781087875366,
0.4608618915081024,
0.2735694646835327,
0.0217759907245636,
-0.050082623958587646,
0.3347475528717041,
-0.06883764266967773,
-0.16067570447921753,... |
https://github.com/huggingface/datasets/issues/5009 | Oh I see - the code I gave you returns local paths instead of URLs to store metadata about files to download.
I opened a PR in your repo here to remove this: https://huggingface.co/datasets/StonyBrookNLP/tellmewhy/discussions/1
sorry for the inconvenience ! | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly | ## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/train.jsonl")`, it loads the dataset correctly. However, when I try to load it from the hub, I ge... | 39 | Error loading StonyBrookNLP/tellmewhy dataset from hub even though local copy loads correctly
## Describe the bug
I have added a new dataset with the identifier `StonyBrookNLP/tellmewhy` to the hub. When I load the individual files using my local copy using `dataset = datasets.load_dataset("json", data_files="data/t... | [
-0.19701597094535828,
0.2147456705570221,
0.128627747297287,
0.5178276896476746,
0.08397316932678223,
0.11888168007135391,
0.35095781087875366,
0.4608618915081024,
0.2735694646835327,
0.0217759907245636,
-0.050082623958587646,
0.3347475528717041,
-0.06883764266967773,
-0.16067570447921753,... |
https://github.com/huggingface/datasets/issues/5000 | <img width="519" alt="Capture d’écran 2022-09-20 à 22 33 47" src="https://user-images.githubusercontent.com/1676121/191358952-1220cb7d-745a-4203-a66b-3c707b25038f.png">
```
Not found.
Error code: SplitsResponseNotFound
```
https://datasets-server.huggingface.co/splits?dataset=asapp/slue
```json
{"err... | Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 22 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
<img width="519" alt="Capture d’écran 2022-09-20 à 22 33 47" src="https://user-images.github... | [
-0.41825634241104126,
-0.4197005331516266,
0.042974960058927536,
0.5092346668243408,
0.2707150876522064,
0.08821797370910645,
0.11993779242038727,
0.2425871640443802,
-0.059912580996751785,
0.10223285853862762,
-0.20221774280071259,
0.1809994876384735,
-0.008216578513383865,
0.226982623338... |
https://github.com/huggingface/datasets/issues/5000 | I just launched a refresh. It's weird, I don't see any entry for this dataset in the cache, it's a bug on our side. In order to try to understand what happened, did you change the visibility status from private to public, by any chance? | Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 45 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
I just launched a refresh. It's weird, I don't see any entry for this dataset in the cache, it... | [
-0.38746196031570435,
-0.3276960551738739,
0.03514394164085388,
0.4508456885814667,
0.388911634683609,
0.005907371640205383,
0.23917630314826965,
0.004538809880614281,
-0.04942923039197922,
0.1388254016637802,
-0.21663391590118408,
0.2715502679347992,
-0.08159637451171875,
0.08345978707075... |
https://github.com/huggingface/datasets/issues/5000 | The dataset is being refreshed, please retry later.
<img width="802" alt="Capture d’écran 2022-09-20 à 22 39 46" src="https://user-images.githubusercontent.com/1676121/191360072-7cc86486-4e84-4b47-8f9a-4a69fe84a5ac.png">
| Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 18 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
The dataset is being refreshed, please retry later.
<img width="802" alt="Capture d’écran ... | [
-0.595561683177948,
-0.3185790479183197,
0.019723370671272278,
0.4023900330066681,
0.30100953578948975,
0.04922319948673248,
0.15796084702014923,
0.09199532866477966,
-0.13057008385658264,
0.10692735016345978,
-0.13252422213554382,
0.25494465231895447,
-0.00917728804051876,
0.1947393119335... |
https://github.com/huggingface/datasets/issues/5000 | OK. We now have an issue because the dataset cannot be streamed, and the dataset viewer relies on it.
Maybe @huggingface/datasets can help:
```
Error code: StreamingRowsError
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://public-dataset-model-store.awsdev.a... | Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 180 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
OK. We now have an issue because the dataset cannot be streamed, and the dataset viewer relies... | [
-0.5810030698776245,
-0.3571322560310364,
0.04822974279522896,
0.4917396008968353,
0.3302581012248993,
0.06502358615398407,
-0.01746317744255066,
0.16445043683052063,
-0.08153634518384933,
0.14145275950431824,
-0.28831779956817627,
0.3967939019203186,
-0.12663054466247559,
0.17756512761116... |
https://github.com/huggingface/datasets/issues/5000 | Thanks @severo,
Do I have to modify the python script to support streaming so that it can be previewed?
Is there a document somewhere that I can follow?
| Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 28 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
Thanks @severo,
Do I have to modify the python script to support streaming so that it can ... | [
-0.620335578918457,
-0.40980595350265503,
-0.010135430842638016,
0.22220483422279358,
0.20668785274028778,
0.1436499059200287,
0.07231995463371277,
0.12204372882843018,
-0.019981741905212402,
0.15276199579238892,
-0.1623474508523941,
0.2940067946910858,
-0.15850357711315155,
0.366784870624... |
https://github.com/huggingface/datasets/issues/5000 | Hi @fwu-asapp thanks for reporting, and thanks @severo for the investigation.
As explained by @severo, the preview requires that your dataset loading script supports streaming.
There are several options here:
- the easiest would be to replace the source files, archived using ZIP instead TAR: the TAR format does ... | Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 198 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
Hi @fwu-asapp thanks for reporting, and thanks @severo for the investigation.
As explained ... | [
-0.4768863916397095,
-0.4940895438194275,
0.09501074999570847,
0.33490869402885437,
0.4099435806274414,
0.018746525049209595,
0.01012360118329525,
0.09197349846363068,
0.00927414745092392,
0.2121286392211914,
-0.4385014772415161,
0.172027587890625,
-0.13517653942108154,
0.31681451201438904... |
https://github.com/huggingface/datasets/issues/5000 | Thanks @albertvillanova for your clarification. I'll talk to my collaborators to see if we can replace those files. Let me just close this issue for now. | Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 26 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
Thanks @albertvillanova for your clarification. I'll talk to my collaborators to see if we can... | [
-0.486463725566864,
-0.2881256639957428,
-0.02444498799741268,
0.318584680557251,
0.3820772171020508,
0.09221476316452026,
0.14512158930301666,
0.14523109793663025,
-0.07332322746515274,
0.20413073897361755,
-0.2296060025691986,
0.2834063172340393,
-0.1321125626564026,
0.24041414260864258,... |
https://github.com/huggingface/datasets/issues/5000 | FYI, after replacing the source files with the ZIP ones, the dataset viewer works well. Thanks again to @severo and @albertvillanova for your help! | Dataset Viewer issue for asapp/slue | ### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes | 24 | Dataset Viewer issue for asapp/slue
### Link
https://huggingface.co/datasets/asapp/slue/viewer/
### Description
Hi,
I wonder how to get the dataset viewer of our slue dataset to work.
Best,
Felix
### Owner
Yes
FYI, after replacing the source files with the ZIP ones, the dataset viewer works well. Thanks... | [
-0.5353677272796631,
-0.33656421303749084,
0.026200294494628906,
0.43792039155960083,
0.40814700722694397,
0.05784022808074951,
0.11444593966007233,
0.1465609073638916,
-0.15743759274482727,
0.23124253749847412,
-0.18963177502155304,
0.37261834740638733,
-0.09914927184581757,
0.26467320322... |
https://github.com/huggingface/datasets/issues/4996 | The script uses `Dataset.load_from_disk`, which as you can expect, doesn't work in streaming mode.
It would probably be more practical to load the dataset locally using `Dataset.load_from_disk` first and then `push_to_hub` to upload it in Parquet on the Hub | Dataset Viewer issue for Jean-Baptiste/wikiner_fr | ### Link
https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr
### Description
```
Error code: StreamingRowsError
Exception: FileNotFoundError
Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptiste/wikiner_fr/resolve/main/data.zip/state.json'
Tra... | 39 | Dataset Viewer issue for Jean-Baptiste/wikiner_fr
### Link
https://huggingface.co/datasets/Jean-Baptiste/wikiner_fr
### Description
```
Error code: StreamingRowsError
Exception: FileNotFoundError
Message: [Errno 2] No such file or directory: 'zip:/data/train::https:/huggingface.co/datasets/Jean-Baptis... | [
-0.436465322971344,
-0.036744847893714905,
-0.06776556372642517,
0.3714854419231415,
0.15514078736305237,
0.05801223963499069,
0.05579429492354393,
0.6739025115966797,
-0.31415125727653503,
0.12999123334884644,
-0.11926944553852081,
0.2555708885192871,
-0.15878352522850037,
0.1817163378000... |
https://github.com/huggingface/datasets/issues/4990 | Hi @Wauplin, thanks for raising this potential issue.
The choice of passing `"no-token"` instead of `None` was made in this PR:
- #4536
According to the PR description, the reason why it is passed is to avoid that `HfApi.dataset_info` uses the local token when no token should be used. | "no-token" is passed to `huggingface_hub` when token is `None` | ## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee... | 49 | "no-token" is passed to `huggingface_hub` when token is `None`
## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu... | [
0.25282377004623413,
-0.7009134292602539,
0.04250628873705864,
0.23121653497219086,
0.11068825423717499,
-0.28031036257743835,
0.17624729871749878,
0.15300297737121582,
-0.11803615093231201,
0.1984674334526062,
0.0877932459115982,
0.028763141483068466,
0.2687617838382721,
0.058050952851772... |
https://github.com/huggingface/datasets/issues/4990 | Hi @albertvillanova , thanks for finding the original issue :+1:
As of next release of `huggingface_hub`, the `token` argument will be deprecated in favor of the `use_auth_token` argument in `dataset_info` method. This change as been done by @SBrandeis in https://github.com/huggingface/huggingface_hub/pull/928. `us... | "no-token" is passed to `huggingface_hub` when token is `None` | ## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee... | 147 | "no-token" is passed to `huggingface_hub` when token is `None`
## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu... | [
0.28196197748184204,
-0.6787627935409546,
0.039504483342170715,
0.2238372266292572,
0.1343381106853485,
-0.2506915032863617,
0.24630537629127502,
0.19882100820541382,
-0.12347077578306198,
0.12250412255525589,
0.04897656291723251,
0.13557934761047363,
0.06179705634713173,
-0.13884399831295... |
https://github.com/huggingface/datasets/issues/4990 | What is current strategy in term of updating `huggingface_hub` version in `datasets` ? I don't want to break stuff in the next release so let's find a proper solution :) | "no-token" is passed to `huggingface_hub` when token is `None` | ## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee... | 30 | "no-token" is passed to `huggingface_hub` when token is `None`
## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu... | [
0.19790101051330566,
-0.6772457957267761,
-0.013981837779283524,
0.2222701907157898,
-0.024641593918204308,
-0.3031509816646576,
0.12335039675235748,
0.18204298615455627,
-0.20400680601596832,
0.14178785681724548,
0.08585762232542038,
0.1067005842924118,
0.007463432848453522,
0.03843895345... |
https://github.com/huggingface/datasets/issues/4990 | As soon as `token` is deprecated and hfh has a new release, we'll update `datasets` to use the new argument instead. Does it sound good to you ? | "no-token" is passed to `huggingface_hub` when token is `None` | ## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee... | 28 | "no-token" is passed to `huggingface_hub` when token is `None`
## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu... | [
0.25896772742271423,
-0.7293567061424255,
0.03134031221270561,
0.20067700743675232,
-0.029090140014886856,
-0.2577570080757141,
0.14840610325336456,
0.18894566595554352,
-0.09243299067020416,
0.14462870359420776,
0.055855557322502136,
0.0001539178192615509,
0.06369109451770782,
-0.08414611... |
https://github.com/huggingface/datasets/issues/4990 | Hi @Wauplin, thanks for the warning about the deprecation of `token` in favor of `use_auth_token`.
Indeed, in datasets we use internally `use_auth_token`, which in this case was transformed to `token` to call `HfApi.dataset_info`:
https://github.com/huggingface/datasets/blob/1a9385d7cc8a3241b44015145ef56a230fdadc51... | "no-token" is passed to `huggingface_hub` when token is `None` | ## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` value could be sent directly to be handle by `huggingface_hub`. I fee... | 82 | "no-token" is passed to `huggingface_hub` when token is `None`
## Describe the bug
In the 2 lines listed below, a token is passed to `huggingface_hub` to get information from a dataset. If no token is provided, a "no-token" string is passed. What is the purpose of it ? If no real, I would prefer if the `None` valu... | [
0.19348448514938354,
-0.5523172616958618,
0.061112888157367706,
0.0748656839132309,
0.006892632693052292,
-0.2559255361557007,
0.2637164890766144,
0.19955581426620483,
-0.14704596996307373,
0.08689950406551361,
0.0014350302517414093,
-0.03947167471051216,
0.2637213468551636,
0.012263171374... |
https://github.com/huggingface/datasets/issues/4988 | Thanks @hamid-vakilzadeh ! Let us know if you have some questions or if we can help | Add `IterableDataset.from_generator` to the API | We've just added `Dataset.from_generator` to the API. It would also be cool to add `IterableDataset.from_generator` to support creating an iterable dataset from a generator.
cc @lhoestq | 16 | Add `IterableDataset.from_generator` to the API
We've just added `Dataset.from_generator` to the API. It would also be cool to add `IterableDataset.from_generator` to support creating an iterable dataset from a generator.
cc @lhoestq
Thanks @hamid-vakilzadeh ! Let us know if you have some questions or if we can... | [
-0.48686322569847107,
0.034543946385383606,
-0.20454120635986328,
-0.03221211954951286,
0.1901211142539978,
-0.10316184908151627,
0.18629686534404755,
0.45222628116607666,
-0.029613282531499863,
0.3787185549736023,
0.1656016707420349,
0.33202940225601196,
-0.1770991086959839,
0.20673802495... |
https://github.com/huggingface/datasets/issues/4983 | Hi! I think you can use the newly-added `from_generator` method for that:
```python
from datasets import Dataset
def gen():
for idx in len(torch_dataset):
yield torch_dataset[idx] # this has to be a dictionary
## or if it's an IterableDataset
# for ex in torch_dataset:
# yield ex
... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 50 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.044371817260980606,
-0.5013183355331421,
-0.010783981531858444,
0.3054502606391907,
0.3853740096092224,
0.23980149626731873,
-0.0787028968334198,
0.11976765841245651,
-0.03848229721188545,
0.09930369257926941,
-0.13930803537368774,
0.15262162685394287,
-0.3614993691444397,
0.14646959304... |
https://github.com/huggingface/datasets/issues/4983 | Maybe `Dataset.from_list` can work as well no ?
```python
from datasets import Dataset
dset = Dataset.from_list(torch_dataset)
``` | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 17 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.04258472099900246,
-0.5204418897628784,
-0.03426598012447357,
0.30459707975387573,
0.4214358329772949,
0.2987169027328491,
-0.07740223407745361,
0.1058884933590889,
0.008070036768913269,
0.08160886913537979,
-0.2267814576625824,
0.1671779453754425,
-0.3443012833595276,
0.129203855991363... |
https://github.com/huggingface/datasets/issues/4983 | > ```python
> from datasets import Dataset
>
> def gen():
> for idx in len(torch_dataset):
> yield torch_dataset[idx] # this has to be a dictionary
> ## or if it's an IterableDataset
> # for ex in torch_dataset:
> # yield ex
>
> dset = Dataset.from_generator(gen)
> ```
I try... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 104 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.14425164461135864,
-0.4300364851951599,
-0.004021819680929184,
0.3285951316356659,
0.37945830821990967,
0.23986510932445526,
-0.03017759695649147,
0.11686286330223083,
-0.0044408515095710754,
0.12482431530952454,
-0.07780882716178894,
0.21056592464447021,
-0.3390640616416931,
0.04392087... |
https://github.com/huggingface/datasets/issues/4983 | > ```python
> dset = Dataset.from_list(torch_dataset)
> ```
It seems that Dataset also has no `from_list` method 😂
```bash
AttributeError: type object 'Dataset' has no attribute 'from_list'
``` | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 28 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.06361745297908783,
-0.4848394989967346,
-0.03307081758975983,
0.31002962589263916,
0.4129195213317871,
0.30785125494003296,
-0.054908499121665955,
0.10785064846277237,
0.07592104375362396,
0.10735893249511719,
-0.19532883167266846,
0.2170177400112152,
-0.31354257464408875,
0.06821864098... |
https://github.com/huggingface/datasets/issues/4983 | > I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
>
> ```python
> from datasets import Dataset
> data =... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 187 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.00578819215297699,
-0.5595133900642395,
-0.045721814036369324,
0.28353065252304077,
0.4611295759677887,
0.25842714309692383,
0.0052824364975094795,
0.09215540438890457,
-0.014008302241563797,
0.12703457474708557,
-0.17885519564151764,
0.20138251781463623,
-0.32762646675109863,
0.0400698... |
https://github.com/huggingface/datasets/issues/4983 | We're releasing `from_generator` and `from_list` today :)
In the meantime you can play with them by installing `datasets` from source | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 20 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.106394462287426,
-0.4694139361381531,
-0.031529877334833145,
0.3338090777397156,
0.42934221029281616,
0.24172082543373108,
-0.07922326773405075,
0.10991750657558441,
-0.06694847345352173,
0.1251252144575119,
-0.18707218766212463,
0.1528669148683548,
-0.3557218313217163,
0.08285033702850... |
https://github.com/huggingface/datasets/issues/4983 | > We're releasing `from_generator` and `from_list` today :) In the meantime you can play with them by installing `datasets` from source
Thanks a lot for your work! | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 27 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.09902111440896988,
-0.48787739872932434,
-0.03271099925041199,
0.3409374952316284,
0.42732012271881104,
0.24055299162864685,
-0.07815434038639069,
0.10982389748096466,
-0.05979488044977188,
0.113616943359375,
-0.18995410203933716,
0.1660090684890747,
-0.35458624362945557,
0.093716695904... |
https://github.com/huggingface/datasets/issues/4983 | > > I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
> > ```python
> > from datasets import Dataset
> > da... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 294 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
0.00979093462228775,
-0.5521003007888794,
-0.05157587677240372,
0.26948249340057373,
0.4655552804470062,
0.25287312269210815,
0.003918884787708521,
0.11896820366382599,
-0.013935361057519913,
0.13641753792762756,
-0.17744141817092896,
0.2021634727716446,
-0.32129064202308655,
0.04389780759... |
https://github.com/huggingface/datasets/issues/4983 | Hi ! Right now generator functions are expected to be picklable, so that `datasets` can hash it and use the hash to cache the resulting Dataset on disk. Maybe this can be improved.
In the meantime, can you check that you're not using unpickable objects. In your case it looks like you're using a generator object that... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 108 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.015316501259803772,
-0.37647944688796997,
0.023010876029729843,
0.3307293653488159,
0.5059037208557129,
0.19528385996818542,
-0.09379406273365021,
0.1258394420146942,
0.023321442306041718,
0.11674822866916656,
-0.12190467864274979,
0.23164422810077667,
-0.3326250910758972,
0.03051785379... |
https://github.com/huggingface/datasets/issues/4983 | > Hi ! Right now generator functions are expected to be picklable, so that `datasets` can hash it and use the hash to cache the resulting Dataset on disk. Maybe this can be improved.
>
> In the meantime, can you check that you're not using unpickable objects. In your case it looks like you're using a generator objec... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 187 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.09438642859458923,
-0.3931621313095093,
0.026491429656744003,
0.31187841296195984,
0.5127145051956177,
0.18641875684261322,
-0.04443687945604324,
0.16245675086975098,
-0.08811692148447037,
0.07791361957788467,
-0.13433502614498138,
0.22476385533809662,
-0.2620982825756073,
-0.0229563675... |
https://github.com/huggingface/datasets/issues/4983 | Iterable datasets are lazy: exactly like `with_transform` they apply processing on the fly when accessing the examples.
Therefore you can use `my_iterable_dataset.map()` instead :) | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 24 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.11331367492675781,
-0.4797592759132385,
-0.03749551996588707,
0.26019927859306335,
0.4151488244533539,
0.2749333381652832,
-0.1021370217204094,
0.1776650995016098,
-0.06663212925195694,
0.1024758368730545,
-0.2514953017234802,
0.20491482317447662,
-0.3743201792240143,
0.1102268472313880... |
https://github.com/huggingface/datasets/issues/4983 | @lhoestq I am having a similar issue. Can you help me understand which kinds of generators are picklable? I previously thought that no generators are picklable so I'm intrigued to hear this. | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 32 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.029847830533981323,
-0.4415746331214905,
0.00415140762925148,
0.37687623500823975,
0.46421247720718384,
0.056484684348106384,
-0.053736161440610886,
0.011406732723116875,
0.07604542374610901,
0.14993220567703247,
-0.2429540902376175,
0.31589260697364807,
-0.4018261730670929,
0.234341382... |
https://github.com/huggingface/datasets/issues/4983 | Generator functions are generally picklable. E.g.
```python
import dill as pickle
def generator_fn():
for i in range(10):
yield i
pickle.dumps(generator_fn)
```
however generators are not picklable
```python
generator = generator_fn()
pickle.dumps(generator)
# TypeError: cannot pickle 'gen... | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 77 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.09451159834861755,
-0.3778720200061798,
0.02815096825361252,
0.33519458770751953,
0.3770979344844818,
0.11020682752132416,
-0.13368123769760132,
0.10178929567337036,
0.02914717048406601,
0.131289541721344,
-0.18327246606349945,
0.272588312625885,
-0.42565056681632996,
0.1131977215409278... |
https://github.com/huggingface/datasets/issues/4983 | I'm trying to create an IterableDataset from a generator but I get this error:
`PicklingError: Can't pickle <built-in function input>: it's not the same object as builtins.input`
What can I do? | How to convert torch.utils.data.Dataset to huggingface dataset? | I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, like below:
```python
from datasets import Dataset
data = [[1, 2]... | 31 | How to convert torch.utils.data.Dataset to huggingface dataset?
I look through the huggingface dataset docs, and it seems that there is no offical support function to convert `torch.utils.data.Dataset` to huggingface dataset. However, there is a way to convert huggingface dataset to `torch.utils.data.Dataset`, l... | [
-0.11531291902065277,
-0.5207846760749817,
-0.014464601874351501,
0.3105407953262329,
0.3461545407772064,
0.2425915002822876,
-0.08286085724830627,
0.13700246810913086,
-0.02369387447834015,
0.0823168158531189,
-0.15151362121105194,
0.17983278632164001,
-0.3926085829734802,
0.1887307465076... |
https://github.com/huggingface/datasets/issues/4982 | Hi again! Can you please pass the directory name containing the dataset script instead of the script name to `datasets-cli test`? | Create dataset_infos.json with VALIDATION and TEST splits | The problem is described in that [issue](https://github.com/huggingface/datasets/issues/4895#issuecomment-1247975569).
> When I try to create data_infos.json using datasets-cli test Peter.py --save_infos --all_configs I get an error:
> ValueError: Unknown split "test". Should be one of ['train'].
>
> The data_i... | 21 | Create dataset_infos.json with VALIDATION and TEST splits
The problem is described in that [issue](https://github.com/huggingface/datasets/issues/4895#issuecomment-1247975569).
> When I try to create data_infos.json using datasets-cli test Peter.py --save_infos --all_configs I get an error:
> ValueError: Unknown... | [
-0.002343699336051941,
-0.26565468311309814,
0.04977362975478172,
0.44563108682632446,
0.1949014812707901,
0.1424383521080017,
0.294554740190506,
0.42254310846328735,
-0.07759256660938263,
0.04826311767101288,
-0.11665166169404984,
0.09244971722364426,
-0.11206108331680298,
0.2680185735225... |
https://github.com/huggingface/datasets/issues/4981 | Hi @dconathan, thanks for reporting.
We rely on Arrow as a backend, and as far as I know currently support for `float16` in Arrow is not fully implemented in Python (C++), hence the `ArrowNotImplementedError` you get.
See, e.g.: https://arrow.apache.org/docs/status.html?highlight=float16#data-types | Can't create a dataset with `float16` features | ## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e... | 39 | Can't create a dataset with `float16` features
## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol... | [
-0.20098859071731567,
-0.10930410027503967,
0.016125429421663284,
0.021241120994091034,
0.3870999813079834,
0.15218713879585266,
0.453069806098938,
0.03342564404010773,
-0.29963988065719604,
-0.060641199350357056,
-0.10168600082397461,
0.39165961742401123,
0.08138635754585266,
-0.272502660... |
https://github.com/huggingface/datasets/issues/4981 | Thanks for the link…. didn’t realize arrow didn’t support it yet. Should it be removed from https://huggingface.co/docs/datasets/v2.4.0/en/package_reference/main_classes#datasets.Value until Arrow supports it? | Can't create a dataset with `float16` features | ## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e... | 21 | Can't create a dataset with `float16` features
## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol... | [
-0.20098859071731567,
-0.10930410027503967,
0.016125429421663284,
0.021241120994091034,
0.3870999813079834,
0.15218713879585266,
0.453069806098938,
0.03342564404010773,
-0.29963988065719604,
-0.060641199350357056,
-0.10168600082397461,
0.39165961742401123,
0.08138635754585266,
-0.272502660... |
https://github.com/huggingface/datasets/issues/4981 | Yes, you are right: maybe we should either remove it from our docs or add a comment explaining the issue.
The thing is that in Arrow it is partially supported: you can create `float16` values, but you can't cast them from/to other types. And current implementation of `Value` always tries to perform a cast from `floa... | Can't create a dataset with `float16` features | ## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e... | 58 | Can't create a dataset with `float16` features
## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol... | [
-0.20098859071731567,
-0.10930410027503967,
0.016125429421663284,
0.021241120994091034,
0.3870999813079834,
0.15218713879585266,
0.453069806098938,
0.03342564404010773,
-0.29963988065719604,
-0.060641199350357056,
-0.10168600082397461,
0.39165961742401123,
0.08138635754585266,
-0.272502660... |
https://github.com/huggingface/datasets/issues/4981 | Would you accept a PR to fix this? @lhoestq Do you have an idea of how hard it would be to fix? | Can't create a dataset with `float16` features | ## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e... | 22 | Can't create a dataset with `float16` features
## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol... | [
-0.20098859071731567,
-0.10930410027503967,
0.016125429421663284,
0.021241120994091034,
0.3870999813079834,
0.15218713879585266,
0.453069806098938,
0.03342564404010773,
-0.29963988065719604,
-0.060641199350357056,
-0.10168600082397461,
0.39165961742401123,
0.08138635754585266,
-0.272502660... |
https://github.com/huggingface/datasets/issues/4981 | I think the issue comes mostly from pyarrow not supporting `float16` completely.
For example you stil can't cast from/to `float16`
```python
import numpy as np
import pyarrow as pa
pa.array(range(5)).cast(pa.float16())
# ArrowNotImplementedError: Unsupported cast from int64 to halffloat using function cast_ha... | Can't create a dataset with `float16` features | ## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e... | 75 | Can't create a dataset with `float16` features
## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol... | [
-0.20098859071731567,
-0.10930410027503967,
0.016125429421663284,
0.021241120994091034,
0.3870999813079834,
0.15218713879585266,
0.453069806098938,
0.03342564404010773,
-0.29963988065719604,
-0.060641199350357056,
-0.10168600082397461,
0.39165961742401123,
0.08138635754585266,
-0.272502660... |
https://github.com/huggingface/datasets/issues/4981 | Hmm it seems like we can either:
1. try to fix pyarrow upstream
2. half-support float16 with some workaround to make sure we don't ever do casting internally
| Can't create a dataset with `float16` features | ## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried older versions of `pyarrow` as well with the same e... | 28 | Can't create a dataset with `float16` features
## Describe the bug
I can't create a dataset with `float16` features.
I understand from the traceback that this is a `pyarrow` error, but I don't see anywhere in the `datasets` documentation about how to successfully do this. Is it actually supported? I've tried ol... | [
-0.20098859071731567,
-0.10930410027503967,
0.016125429421663284,
0.021241120994091034,
0.3870999813079834,
0.15218713879585266,
0.453069806098938,
0.03342564404010773,
-0.29963988065719604,
-0.060641199350357056,
-0.10168600082397461,
0.39165961742401123,
0.08138635754585266,
-0.272502660... |
https://github.com/huggingface/datasets/issues/4980 | The whole datasets library is pretty much a wrapper to pyarrow (just take a look at some of the source for a Dataset) https://github.com/huggingface/datasets/blob/51aef08ad7053c0bfe8f9a961207b26df15850d3/src/datasets/arrow_dataset.py#L639
I think removing the pyarrow dependency would involve a complete rewrite / a ... | Make `pyarrow` optional | **Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
| 44 | Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
The whole datasets library is pretty much a wrapper to... | [
-0.1536480039358139,
0.3306680917739868,
-0.07162709534168243,
-0.20790807902812958,
0.1279977262020111,
-0.13656041026115417,
0.2966093122959137,
0.20462238788604736,
-0.3974739611148834,
0.2452406883239746,
0.15917730331420898,
0.5092922449111938,
0.06397419422864914,
-0.0184364877641201... |
https://github.com/huggingface/datasets/issues/4980 | Thanks for the proposal, @KOLANICH. And also thanks for your answer, @dconathan.
Indeed, we are using `pyarrow` as the backend for our datasets, in order to cache them and also allow memory-mapping (using datasets larger than your RAM memory).
One way to avoid using `pyarrow` could be loading the datasets in stre... | Make `pyarrow` optional | **Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
| 73 | Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
Thanks for the proposal, @KOLANICH. And also thanks fo... | [
-0.25128233432769775,
0.23354625701904297,
-0.06958995759487152,
-0.17832019925117493,
0.2254275679588318,
-0.0929359719157219,
0.1692323535680771,
0.24594321846961975,
-0.29941534996032715,
0.41223081946372986,
0.18024705350399017,
0.2740868926048279,
0.03926115483045578,
-0.1444969773292... |
https://github.com/huggingface/datasets/issues/4980 | Thanks for the info. Could `datasets` then be made optional for `transformers` instead? I used `transformers` only to deal with pretrained models to deploy them (convert to ONNX, and then I use TVM), so I don't really need `pyarrow` and `datasets` by now.
| Make `pyarrow` optional | **Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
| 43 | Make `pyarrow` optional
**Is your feature request related to a problem? Please describe.**
Is `pyarrow` really needed for every dataset?
**Describe the solution you'd like**
It is made optional.
**Describe alternatives you've considered**
Likely, no.
Thanks for the info. Could `datasets` then be made opt... | [
-0.11282618343830109,
0.11583767831325531,
-0.014203380793333054,
-0.3061763644218445,
0.2762342691421509,
-0.12688413262367249,
0.45049721002578735,
0.06423346698284149,
-0.6160655617713928,
0.23828066885471344,
0.16016770899295807,
0.2766503393650055,
0.1153191477060318,
-0.0769664496183... |
https://github.com/huggingface/datasets/issues/4977 | Hi @sashavor, thanks for your suggestion.
Until now we have the CLI command
```
datasets-cli test datasets/<your-dataset-folder> --save_infos --all_configs
```
that generates the `dataset_infos.json` with the size of the downloaded dataset, among other information.
We are currently in the middle of removing ... | Providing dataset size | **Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).
**Describe the solution yo... | 78 | Providing dataset size
**Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).
*... | [
-0.639900803565979,
-0.21281176805496216,
-0.11318647116422653,
0.1496444195508957,
-0.009435917250812054,
0.12655465304851532,
0.16801565885543823,
0.311484158039093,
0.1417110711336136,
0.4140157997608185,
-0.08500209450721741,
0.09813965111970901,
0.12638583779335022,
0.5448516011238098... |
https://github.com/huggingface/datasets/issues/4977 | Additionally, the download size can be inferred by doing HEAD requests to the files to be downloaded. And for files hosted on the hub you can even get the file sizes using the Hub API | Providing dataset size | **Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).
**Describe the solution yo... | 35 | Providing dataset size
**Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).
*... | [
-0.6667076945304871,
-0.42143547534942627,
-0.16970448195934296,
0.18404656648635864,
-0.12761008739471436,
0.03915058821439743,
0.07760552316904068,
0.20611754059791565,
0.19284506142139435,
0.4761049151420593,
-0.1431061029434204,
0.03092186525464058,
0.10718600451946259,
0.5899719595909... |
https://github.com/huggingface/datasets/issues/4977 | Amazing @albertvillanova ! I think just having that information visible in the dataset info (without having to do any requests/additional coding) would be really useful :hugs: | Providing dataset size | **Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).
**Describe the solution yo... | 26 | Providing dataset size
**Is your feature request related to a problem? Please describe.**
Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded).
*... | [
-0.5743653178215027,
-0.32491371035575867,
-0.18929684162139893,
0.19186565279960632,
-0.06566031277179718,
0.06097163259983063,
0.0905623808503151,
0.19731184840202332,
0.10598070919513702,
0.4567711651325226,
-0.08113725483417511,
0.07303205132484436,
0.06301721930503845,
0.6416532993316... |
https://github.com/huggingface/datasets/issues/4976 | There is this related issue already: https://github.com/huggingface/datasets/issues/4113
And I guess we need a CI job for 3.9 ^^ | Hope to adapt Python3.9 as soon as possible | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternat... | 18 | Hope to adapt Python3.9 as soon as possible
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A... | [
-0.07192540168762207,
-0.45752543210983276,
-0.21028369665145874,
0.04659220576286316,
0.028432734310626984,
-0.16763624548912048,
0.09926819056272507,
0.0111929252743721,
-0.16036775708198547,
0.29400914907455444,
0.11267346888780594,
0.2191610336303711,
-0.16616931557655334,
0.7333261370... |
https://github.com/huggingface/datasets/issues/4965 | Hi! This seems like a bug in `soundfile`. Could you please open an issue in their repo? `soundfile` works without any issues on my M1, so I'm not sure we can help. | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() | ## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.csv")["train"]
dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ... | 32 | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.c... | [
-0.17689573764801025,
-0.05003140866756439,
0.008499249815940857,
0.3107318580150604,
0.7080487608909607,
-0.035839952528476715,
0.4516223073005676,
0.12757350504398346,
-0.06962443888187408,
0.08208535611629486,
-0.04652908444404602,
0.2427278608083725,
-0.01392468623816967,
0.06805381178... |
https://github.com/huggingface/datasets/issues/4965 | Hi @hoangtnm - I upgraded to python 3.10 and it fixed the problem for me. I was also running 3.8 on an M1 mac. | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() | ## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.csv")["train"]
dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ... | 24 | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.c... | [
-0.17689573764801025,
-0.05003140866756439,
0.008499249815940857,
0.3107318580150604,
0.7080487608909607,
-0.035839952528476715,
0.4516223073005676,
0.12757350504398346,
-0.06962443888187408,
0.08208535611629486,
-0.04652908444404602,
0.2427278608083725,
-0.01392468623816967,
0.06805381178... |
https://github.com/huggingface/datasets/issues/4965 | Same here, upgrade python didn't work for me
MemoryError: Cannot allocate write+execute memory for ffi.callback()
any idea? | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() | ## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.csv")["train"]
dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ... | 17 | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.c... | [
-0.17689573764801025,
-0.05003140866756439,
0.008499249815940857,
0.3107318580150604,
0.7080487608909607,
-0.035839952528476715,
0.4516223073005676,
0.12757350504398346,
-0.06962443888187408,
0.08208535611629486,
-0.04652908444404602,
0.2427278608083725,
-0.01392468623816967,
0.06805381178... |
https://github.com/huggingface/datasets/issues/4965 | This is a `soundfile` issue, so there isn't much we can do about it. Hopefully, it gets fixed soon. | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() | ## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.csv")["train"]
dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ... | 19 | [Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
## Describe the bug
I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work.
## Steps to reproduce the bug
```python
import datasets
dataset = load_dataset("csv", data_files="./train.c... | [
-0.17689573764801025,
-0.05003140866756439,
0.008499249815940857,
0.3107318580150604,
0.7080487608909607,
-0.035839952528476715,
0.4516223073005676,
0.12757350504398346,
-0.06962443888187408,
0.08208535611629486,
-0.04652908444404602,
0.2427278608083725,
-0.01392468623816967,
0.06805381178... |
https://github.com/huggingface/datasets/issues/4964 | note i have tried the same code with `datasets` version 2.4.0, the outcome is the very same as described above. | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 20 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.12206099927425385,
0.01400691270828247,
-0.048549834638834,
0.5855892300605774,
0.48243045806884766,
0.17416206002235413,
0.3983023762702942,
0.1284886747598648,
0.2194158136844635,
0.02684307098388672,
-0.09757259488105774,
0.4009019732475281,
-0.20765890181064606,
0.0020355060696601868... |
https://github.com/huggingface/datasets/issues/4964 | Seems related to issues #4623 and #4802 so it would appear this issue has been around for a few months. | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 20 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.1040220856666565,
0.0022096335887908936,
-0.0180317685008049,
0.5737428069114685,
0.5291053056716919,
0.1468905359506607,
0.42076826095581055,
0.18014931678771973,
0.16058549284934998,
0.007637478411197662,
-0.08344835042953491,
0.339846134185791,
-0.18867436051368713,
-0.048918560147285... |
https://github.com/huggingface/datasets/issues/4964 | Hi ! `Dataset.from_dict` keeps the data in memory. You can write on disk and reload them with
```python
dataset.save_to_disk("path/to/local")
dataset = load_from_disk("path/to/local")
```
this way you'll end up with a dataset loaded from your disk using memory mapping, and it won't fill up your RAM :)
related t... | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 49 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.04555228352546692,
0.015199586749076843,
-0.09774081408977509,
0.5263457894325256,
0.5173766016960144,
0.1556321680545807,
0.31598860025405884,
0.20819225907325745,
0.23385852575302124,
0.05587378889322281,
-0.0937248021364212,
0.40046367049217224,
-0.18303823471069336,
0.049385383725166... |
https://github.com/huggingface/datasets/issues/4964 | @lhoestq thnx for getting back to me! i've tested the suggested method, but unfortunately the memory consumption is the very same:
```
from datasets import Dataset, Features, Array2D, Array3D, load_from_disk
import numpy as np
column_name = "a"
array_shape = (64, 64, 3)
data = np.random.random((10000,) + ar... | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 93 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.11394532024860382,
0.01923772692680359,
-0.05138075724244118,
0.5630339980125427,
0.5003137588500977,
0.1463424265384674,
0.38970747590065,
0.1397998332977295,
0.267291396856308,
0.03321870043873787,
-0.09661106765270233,
0.4270651340484619,
-0.23984938859939575,
0.011586003005504608,
... |
https://github.com/huggingface/datasets/issues/4964 | When you call `colum_value = foo_db[column_name]`, you load the full column in memory.
If you want to avoid filling up your memory, you can access chunks of data instead
```python
embeddings = dataset[i:i + chunk_size]["embeddings"]
``` | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 36 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.08300688117742538,
0.008690595626831055,
-0.07957545667886734,
0.53579181432724,
0.5002106428146362,
0.1898765116930008,
0.3353511691093445,
0.19083446264266968,
0.20698079466819763,
0.09125441312789917,
-0.07150684297084808,
0.35089704394340515,
-0.17139741778373718,
-0.0086513906717300... |
https://github.com/huggingface/datasets/issues/4964 | @lhoestq yeah that's intentional, i.e. i really want to load the whole column into the memory. but as said above there's an unreasonable amount of overhead for the memory. the np array itself is using about 1G of memory:
```
>>> getsizeof(data)/1024/1024
937.5001525878906
```
that accessing of column above is usin... | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 59 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.11036156117916107,
0.02442978322505951,
-0.060390450060367584,
0.5220665335655212,
0.503948450088501,
0.16475389897823334,
0.32889875769615173,
0.16100972890853882,
0.2858532667160034,
0.054387543350458145,
-0.07730758190155029,
0.4090927541255951,
-0.16685926914215088,
-0.03842705488204... |
https://github.com/huggingface/datasets/issues/4964 | The dataset must be twice as big because we use regular arrow ListArray under the hood and not FixedSizeListArray. Basically we store unnecessary offsets.
And this should affect performance as well. When we developed this, FixedSizeListArray still had some issues but they should be resolved on the PyArrow side now | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 50 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.10385589301586151,
0.07983490824699402,
-0.058831214904785156,
0.5339335799217224,
0.4910029172897339,
0.1300964504480362,
0.367165207862854,
0.1042260080575943,
0.10174550116062164,
-0.016853228211402893,
-0.13531041145324707,
0.45066672563552856,
-0.23931728303432465,
-0.09191545099020... |
https://github.com/huggingface/datasets/issues/4964 | A doubling would be fine. My very basic understanding of PyArrow is that using ListArray is probably related to the issue though. Using a multi-dimensional array in datasets is storing everything as strange nested 1d object arrays, which I imagine is creating the massive overhead.
I think it should be a PyArrow Tens... | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 54 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.07217985391616821,
0.10704460740089417,
-0.05946248024702072,
0.44945162534713745,
0.46474918723106384,
0.14292053878307343,
0.4368581473827362,
0.1740468144416809,
0.09247276186943054,
0.06381107866764069,
-0.12260519713163376,
0.41188427805900574,
-0.18801426887512207,
-0.1255065053701... |
https://github.com/huggingface/datasets/issues/4964 | PyArrow tensors are not part of the Arrow format AFAIK:
> There is no direct support in the arrow columnar format to store Tensors as column values.
source: https://github.com/apache/arrow/issues/4802#issuecomment-508494694 | Column of arrays (2D+) are using unreasonably high memory | ## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
```python
from datasets import Dataset, Features, Array2D, ... | 29 | Column of arrays (2D+) are using unreasonably high memory
## Describe the bug
When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage.
## Steps to reproduce the bug
... | [
0.10138064622879028,
0.02366548776626587,
-0.05811404436826706,
0.48171648383140564,
0.4805806577205658,
0.10301560163497925,
0.4667884409427643,
0.2531792223453522,
0.1613386571407318,
0.034452613443136215,
-0.042137566953897476,
0.47871628403663635,
-0.2240971475839615,
-0.19256159663200... |
https://github.com/huggingface/datasets/issues/4963 | Hi @julien-c,
Out of the box, we only support JSON lines (NDJSON) data files, but your data file is a regular JSON file. The reason is we use `pyarrow.json.read_json` and this only supports line-delimited JSON. | Dataset without script does not support regular JSON data file | ### Link
https://huggingface.co/datasets/julien-c/label-studio-my-dogs
### Description
<img width="1115" alt="image" src="https://user-images.githubusercontent.com/326577/189422048-7e9c390f-bea7-4521-a232-43f049ccbd1f.png">
### Owner
Yes | 35 | Dataset without script does not support regular JSON data file
### Link
https://huggingface.co/datasets/julien-c/label-studio-my-dogs
### Description
<img width="1115" alt="image" src="https://user-images.githubusercontent.com/326577/189422048-7e9c390f-bea7-4521-a232-43f049ccbd1f.png">
### Owner
Yes
Hi @juli... | [
-0.18610844016075134,
0.2325306087732315,
-0.17697177827358246,
0.22134165465831757,
0.3106287717819214,
0.09546856582164764,
0.3358681797981262,
0.4323410093784332,
-0.10013682395219803,
0.11419609189033508,
0.05909360200166702,
0.36055585741996765,
-0.006553687155246735,
0.26309701800346... |
https://github.com/huggingface/datasets/issues/4961 | loading `fsspec==2022.7.1` fixes this issue, setup.py would need to be changed to prevent users from using the latest version of fsspec. | fsspec 2022.8.2 breaks xopen in streaming mode | ## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True)
```
... | 21 | fsspec 2022.8.2 breaks xopen in streaming mode
## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', '... | [
-0.5926550626754761,
0.019043326377868652,
0.0057497769594192505,
-0.03190235048532486,
0.09576155245304108,
-0.3419186472892761,
0.28033778071403503,
0.3058052062988281,
0.165524423122406,
0.14295943081378937,
-0.21082016825675964,
0.14903880655765533,
0.05245561525225639,
0.5407685041427... |
https://github.com/huggingface/datasets/issues/4961 | Hi @DCNemesis, thanks for reporting.
That was a temporary issue in `fsspec` releases 2022.8.0 and 2022.8.1. But they fixed it in their patch release 2022.8.2 (and yanked both previous versions). See:
- https://github.com/huggingface/transformers/pull/18846
Are you sure you have version 2022.8.2 installed?
```sh... | fsspec 2022.8.2 breaks xopen in streaming mode | ## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True)
```
... | 47 | fsspec 2022.8.2 breaks xopen in streaming mode
## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', '... | [
-0.5926550626754761,
0.019043326377868652,
0.0057497769594192505,
-0.03190235048532486,
0.09576155245304108,
-0.3419186472892761,
0.28033778071403503,
0.3058052062988281,
0.165524423122406,
0.14295943081378937,
-0.21082016825675964,
0.14903880655765533,
0.05245561525225639,
0.5407685041427... |
https://github.com/huggingface/datasets/issues/4961 | @albertvillanova I was using a temporary Google Colab instance, but checking it again today it seems it was loading 2022.8.1 rather than 2022.8.2. It's surprising that colab is using the version that was replaced the same day it was released. Testing with 2022.8.2 did work. It appears Colab [will be fixing it](https://... | fsspec 2022.8.2 breaks xopen in streaming mode | ## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True)
```
... | 56 | fsspec 2022.8.2 breaks xopen in streaming mode
## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', '... | [
-0.5926550626754761,
0.019043326377868652,
0.0057497769594192505,
-0.03190235048532486,
0.09576155245304108,
-0.3419186472892761,
0.28033778071403503,
0.3058052062988281,
0.165524423122406,
0.14295943081378937,
-0.21082016825675964,
0.14903880655765533,
0.05245561525225639,
0.5407685041427... |
https://github.com/huggingface/datasets/issues/4961 | Thanks for the additional information.
Once we know 2022.8.2 works, I'm closing this issue. Feel free to reopen it if necessary. | fsspec 2022.8.2 breaks xopen in streaming mode | ## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True)
```
... | 21 | fsspec 2022.8.2 breaks xopen in streaming mode
## Describe the bug
When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable.
## Steps to reproduce the bug
```python
import datasets
data = datasets.load_dataset('MLCommons/ml_spoken_words', '... | [
-0.5926550626754761,
0.019043326377868652,
0.0057497769594192505,
-0.03190235048532486,
0.09576155245304108,
-0.3419186472892761,
0.28033778071403503,
0.3058052062988281,
0.165524423122406,
0.14295943081378937,
-0.21082016825675964,
0.14903880655765533,
0.05245561525225639,
0.5407685041427... |
https://github.com/huggingface/datasets/issues/4960 | Following worked:
```
data_dir = "/Users/dlituiev/repos/datasets/bioasq/"
bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir, name="bioasq_9b_source")
```
Would maintainers be open to one of the following:
- automating this with a latest default config (e.g. `bioasq_9b_source`); how can this... | BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema' | ## Describe the bug
I am trying to load a dataset from drive and running into an error.
## Steps to reproduce the bug
```python
data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b"
bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir)
```
## Actual results
`AttributeError: ... | 73 | BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
## Describe the bug
I am trying to load a dataset from drive and running into an error.
## Steps to reproduce the bug
```python
data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b"
bioasq_task_b = load_dataset("aps/bioasq... | [
-0.4792845845222473,
0.29812633991241455,
0.037679702043533325,
0.41576075553894043,
0.2735460102558136,
0.09569986164569855,
0.427506685256958,
0.20452578365802765,
0.19170457124710083,
0.2745845317840576,
0.12277472019195557,
0.02802855893969536,
-0.13475432991981506,
0.467828631401062,
... |
https://github.com/huggingface/datasets/issues/4960 | Hi ! In general the list of available configurations is prompted. I think this is an issue with this specific dataset.
Feel free to open a new discussions at https://huggingface.co/datasets/aps/bioasq_task_b/discussions
cc @apsdehal
In particular it sounds like the `BUILDER_CONFIG_CLASS= BigBioConfig ` class a... | BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema' | ## Describe the bug
I am trying to load a dataset from drive and running into an error.
## Steps to reproduce the bug
```python
data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b"
bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir)
```
## Actual results
`AttributeError: ... | 58 | BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
## Describe the bug
I am trying to load a dataset from drive and running into an error.
## Steps to reproduce the bug
```python
data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b"
bioasq_task_b = load_dataset("aps/bioasq... | [
-0.4792845845222473,
0.29812633991241455,
0.037679702043533325,
0.41576075553894043,
0.2735460102558136,
0.09569986164569855,
0.427506685256958,
0.20452578365802765,
0.19170457124710083,
0.2745845317840576,
0.12277472019195557,
0.02802855893969536,
-0.13475432991981506,
0.467828631401062,
... |
https://github.com/huggingface/datasets/issues/4942 | Thanks for reporting, @wmpauli.
Indeed we recently fixed this issue:
- #4801
The fix will be accessible after our next library release. In the meantime, you can have it by passing `revision="main"` to `load_dataset`. | Trec Dataset has incorrect labels | ## Describe the bug
Both coarse and fine labels seem to be out of line.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = "trec"
raw_datasets = load_dataset(dataset)
df = pd.DataFrame(raw_datasets["test"])
df.head()
```
## Expected results
text (string) | coarse_labe... | 34 | Trec Dataset has incorrect labels
## Describe the bug
Both coarse and fine labels seem to be out of line.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = "trec"
raw_datasets = load_dataset(dataset)
df = pd.DataFrame(raw_datasets["test"])
df.head()
```
## Expected ... | [
0.08693233132362366,
-0.10107595473527908,
0.003067266196012497,
0.5229558944702148,
0.2834126353263855,
0.07323794066905975,
0.31996700167655945,
0.05552424490451813,
-0.2980967164039612,
0.10409171879291534,
-0.20085759460926056,
0.4974694550037384,
0.24275173246860504,
0.078985944390296... |
https://github.com/huggingface/datasets/issues/4936 | If you need an example of a small audio datasets, I just created few hours ago a speech dataset with only 300MB of compressed audio files https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia. It works also with streaming (@albertvillanova helped me adding this functionality) :-) | vivos (Vietnamese speech corpus) dataset not accessible | ## Describe the bug
VIVOS data is not accessible anymore, neither of these links work (at least from France):
* https://ailab.hcmus.edu.vn/assets/vivos.tar.gz (data)
* https://ailab.hcmus.edu.vn/vivos (dataset page)
Therefore `load_dataset` doesn't work.
## Steps to reproduce the bug
```python
ds = load_dat... | 39 | vivos (Vietnamese speech corpus) dataset not accessible
## Describe the bug
VIVOS data is not accessible anymore, neither of these links work (at least from France):
* https://ailab.hcmus.edu.vn/assets/vivos.tar.gz (data)
* https://ailab.hcmus.edu.vn/vivos (dataset page)
Therefore `load_dataset` doesn't work.
... | [
-0.12232276052236557,
0.1436934769153595,
-0.06916818022727966,
0.1589307337999344,
0.25530701875686646,
-0.26797571778297424,
0.19797714054584503,
0.3506038188934326,
-0.1846996396780014,
0.22698818147182465,
-0.5419904589653015,
-0.11451038718223572,
0.05729386955499649,
-0.1427379548549... |
https://github.com/huggingface/datasets/issues/4935 | The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.4.0/en/loading#manual-download), and the dataset viewer respects this.
We will try to improve the error display though. Thanks for r... | Dataset Viewer issue for ubuntu_dialogs_corpus | ### Link
_No response_
### Description
_No response_
### Owner
_No response_ | 32 | Dataset Viewer issue for ubuntu_dialogs_corpus
### Link
_No response_
### Description
_No response_
### Owner
_No response_
The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.... | [
-0.3187231421470642,
-0.07901442050933838,
-0.006921153515577316,
0.2489609569311142,
0.20231451094150543,
0.29621362686157227,
0.22899416089057922,
0.23128920793533325,
0.028678499162197113,
0.19641345739364624,
-0.38812530040740967,
0.2583980858325958,
-0.0654933750629425,
0.086490057408... |
https://github.com/huggingface/datasets/issues/4934 | Thanks @albertvillanova for checking the issue. Actually, I can use the dataset like following:
```
>>> from datasets import load_dataset
>>> ds=load_dataset("indonesian-nlp/librivox-indonesia")
No config specified, defaulting to: librivox-indonesia/all
Reusing dataset librivox-indonesia (/root/.cache/huggingface/... | Dataset Viewer issue for indonesian-nlp/librivox-indonesia | ### Link
https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia
### Description
I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message:
```
Server error
Status code: 400
Exception: TypeEr... | 102 | Dataset Viewer issue for indonesian-nlp/librivox-indonesia
### Link
https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia
### Description
I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message:
... | [
-0.3000684976577759,
-0.28596240282058716,
0.06741742789745331,
0.5013381242752075,
0.25291863083839417,
-0.10567621886730194,
0.05864019691944122,
0.3209858536720276,
0.07752667367458344,
0.09025949239730835,
-0.3962744474411011,
-0.018536726012825966,
-0.24254319071769714,
0.149313569068... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.