id
stringlengths
18
24
number
int64
2
8.48k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
createdAt
timestamp[s]date
2020-04-14 18:18:51
2026-08-13 03:02:44
updatedAt
timestamp[s]date
2020-04-29 09:23:05
2026-08-15 04:47:12
closedAt
timestamp[s]date
2020-04-29 09:23:05
2026-07-28 10:29:56
url
stringlengths
48
51
author
dict
labels
dict
comments
listlengths
0
30
I_kwDODunzps5nhvmJ
5,922
Length of table does not accurately reflect the split
### Describe the bug I load a Huggingface Dataset and do `train_test_split`. I'm expecting the underlying table for the dataset to also be split, but it's not. ### Steps to reproduce the bug ![image](https://github.com/huggingface/datasets/assets/8068268/83e5768f-8b4c-422a-945c-832a7585afff) ### Expected behavior...
CLOSED
2023-06-01T18:56:26
2023-06-02T16:13:31
2023-06-02T16:13:31
https://github.com/huggingface/datasets/issues/5922
{ "login": "amogkam" }
{ "nodes": [ { "name": "wontfix" } ] }
[ "As already replied by @lhoestq (private channel):\r\n> `.train_test_split` (as well as `.shard`, `.select`) doesn't create a new arrow table to save time and disk space. Instead, it uses an indices mapping on top of the table that locate which examples are part of train or test.", "This is an optimization that w...
I_kwDODunzps5nbsiN
5,918
File not found for audio dataset
### Describe the bug After loading an audio dataset, and looking at a sample entry, the `path` element, which is supposed to be the path to the audio file, doesn't actually exist. ### Steps to reproduce the bug Run bug.py: ```py import os.path from datasets import load_dataset def run() -> None: cv1...
OPEN
2023-06-01T02:15:29
2026-01-08T03:07:49
null
https://github.com/huggingface/datasets/issues/5918
{ "login": "XekriRedmane" }
{ "nodes": [] }
[ "load_dataset () did not work for loading local files either ", "Running into a similar issue:\n```\nlibrispeech_test = load_dataset(\"librispeech\", split=\"validation.clean\")\nprint(librispeech_test[0])\n\n{'audio': {'path': '/Users/atronchinjames/.cache/huggingface/datasets/downloads/extracted/991033b10b2fdbb...
I_kwDODunzps5nNFlc
5,914
array is too big; `arr.size * arr.dtype.itemsize` is larger than the maximum possible size in Datasets
### Describe the bug When using the `filter` or `map` function to preprocess a dataset, a ValueError is encountered with the error message "array is too big; arr.size * arr.dtype.itemsize is larger than the maximum possible size." Detailed error message: Traceback (most recent call last): File "data_processing...
OPEN
2023-05-30T04:25:00
2024-10-27T04:09:18
null
https://github.com/huggingface/datasets/issues/5914
{ "login": "ravenouse" }
{ "nodes": [] }
[ "Was a fix for this identified?", "> Was a fix for this identified?\r\n\r\nHi @pranav-sridhar \r\nHave you encountered a similar issue with this dataset?\r\nI’ve modified the dataset construction script to address the problem. Feel free to use this updated version to avoid the issue.\r\n\r\n[Ericwang/samromur_chi...
I_kwDODunzps5nM3yc
5,913
I tried to load a custom dataset using the following statement: dataset = load_dataset('json', data_files=data_files). The dataset contains 50 million text-image pairs, but an error occurred.
### Describe the bug File "/home/kas/.conda/envs/diffusers/lib/python3.7/site-packages/datasets/builder.py", line 1858, in _prepare_split_single Downloading and preparing dataset json/default to /home/kas/diffusers/examples/dreambooth/cache_data/datasets/json/default-acf423d8c6ef99d0/0.0.0/e347ab1c932092252e717ff3f94...
CLOSED
2023-05-30T02:55:26
2023-07-24T12:00:38
2023-07-24T12:00:38
https://github.com/huggingface/datasets/issues/5913
{ "login": "cjt222" }
{ "nodes": [] }
[ "Thanks for reporting, @cjt222.\r\n\r\nWhat is the structure of your JSON files. Please note that it is normally simpler if the data file format is JSON-Lines instead. ", "> Thanks for reporting, @cjt222.\r\n> \r\n> What is the structure of your JSON files. Please note that it is normally simpler if the data file...
I_kwDODunzps5nIkfM
5,912
Missing elements in `map` a batched dataset
### Describe the bug As outlined [here](https://discuss.huggingface.co/t/length-error-using-map-with-datasets/40969/3?u=sachin), the following collate function drops 5 out of possible 6 elements in the batch (it is 6 because out of the eight, two are bad links in laion). A reproducible [kaggle kernel ](https://www.kag...
CLOSED
2023-05-29T08:09:19
2023-07-26T15:48:15
2023-07-26T15:48:15
https://github.com/huggingface/datasets/issues/5912
{ "login": "sachinruk" }
{ "nodes": [] }
[ "Hi ! in your code batching is **only used within** `map`, to process examples in batch. The dataset itself however is not batched and returns elements one by one.\r\n\r\nTo iterate on batches, you can do\r\n```python\r\nfor batch in dataset.iter(batch_size=8):\r\n ...\r\n```" ]
I_kwDODunzps5nDRHe
5,910
Cannot use both set_format and set_transform
### Describe the bug I need to process some data using the set_transform method but I also need the data to be formatted for pytorch before processing it. I don't see anywhere in the documentation something that says that both methods cannot be used at the same time. ### Steps to reproduce the bug ``` from...
CLOSED
2023-05-27T19:22:23
2023-07-09T21:40:54
2023-06-16T14:41:24
https://github.com/huggingface/datasets/issues/5910
{ "login": "ybouane" }
{ "nodes": [] }
[ "Currently, it's not possible to chain `set_format`/`set_transform` calls (plus, this is a breaking change if we decide to implement it), so I see two possible solutions:\r\n* using `set_format`/`set_transform` for the 1st transform and then passing the transformed example/batch to the 2nd transform\r\n* implementi...
I_kwDODunzps5nCSpv
5,908
Unbearably slow sorting on big mapped datasets
### Describe the bug For me, with ~40k lines, sorting took 3.5 seconds on a flattened dataset (including the flatten operation) and 22.7 seconds on a mapped dataset (right after sharding), which is about x5 slowdown. Moreover, it seems like it slows down exponentially with bigger datasets (wasn't able to sort 700k lin...
OPEN
2023-05-27T11:08:32
2023-06-13T17:45:10
null
https://github.com/huggingface/datasets/issues/5908
{ "login": "maximxlss" }
{ "nodes": [] }
[ "Hi ! `shard` currently returns a slow dataset by default, with examples evenly distributed in the dataset.\r\n\r\nYou can get a fast dataset using `contiguous=True` (which should be the default imo):\r\n\r\n```python\r\ndataset = dataset.shard(10, 0, contiguous=True)\r\n```\r\n\r\nThis way you don't need to flatte...
I_kwDODunzps5nAcxp
5,906
Could you unpin responses version?
### Describe the bug Could you unpin [this](https://github.com/huggingface/datasets/blob/main/setup.py#L139) or move it to test requirements? This is a testing library and we also use it for our tests as well. We do not want to use a very outdated version. ### Steps to reproduce the bug could not install this librar...
CLOSED
2023-05-26T20:02:14
2023-05-30T17:53:31
2023-05-30T17:53:31
https://github.com/huggingface/datasets/issues/5906
{ "login": "kenimou" }
{ "nodes": [] }
[]
I_kwDODunzps5m-DCQ
5,905
Offer an alternative to Iterable Dataset that allows lazy loading and processing while skipping batches efficiently
### Feature request I would like a way to resume training from a checkpoint without waiting for a very long time when using an iterable dataset. ### Motivation I am training models on the speech-recognition task. I have very large datasets that I can't comfortably store on a disk and also quite computationally...
OPEN
2023-05-26T12:33:02
2023-06-15T13:34:18
null
https://github.com/huggingface/datasets/issues/5905
{ "login": "bruno-hays" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "We plan to improve this eventually (see https://github.com/huggingface/datasets/issues/5454 and https://github.com/huggingface/datasets/issues/5380).\r\n\r\n> Is it possible to lazily load samples of a mapped dataset ? I'm used to [dataset scripts](https://huggingface.co/docs/datasets/dataset_script), maybe someth...
I_kwDODunzps5m45OR
5,898
Loading The flores data set for specific language
### Describe the bug I am trying to load the Flores data set the code which is given is ``` from datasets import load_dataset dataset = load_dataset("facebook/flores") ``` This gives the error of config name ""ValueError: Config name is missing" Now if I add some config it gives me the some error ...
CLOSED
2023-05-25T17:08:55
2023-05-25T17:21:38
2023-05-25T17:21:37
https://github.com/huggingface/datasets/issues/5898
{ "login": "106AbdulBasit" }
{ "nodes": [] }
[ "got that the syntax is like this\r\n\r\ndataset = load_dataset(\"facebook/flores\", \"ace_Arab\")" ]
I_kwDODunzps5m4QNk
5,896
HuggingFace does not cache downloaded files aggressively/early enough
### Describe the bug I wrote the following script: ``` import datasets dataset = datasets.load.load_dataset("wikipedia", "20220301.en", split="train[:10000]") ``` I ran it and spent 90 minutes downloading a 20GB file. Then I saw: ``` Downloading: 100%|████████████████████████████████████████████████████...
CLOSED
2023-05-25T15:14:36
2024-03-15T15:36:07
2024-03-15T15:36:07
https://github.com/huggingface/datasets/issues/5896
{ "login": "jack-jjm" }
{ "nodes": [] }
[ "I also faced this. Any update?", "We've dropped the `apache-beam` dependency in https://huggingface.co/datasets/wikipedia/discussions/19, so you should no longer get this error." ]
I_kwDODunzps5m2Ip0
5,895
The dir name and split strings are confused when loading ArmelR/stack-exchange-instruction dataset
### Describe the bug When I load the ArmelR/stack-exchange-instruction dataset, I encounter a bug that may be raised by confusing the dir name string and the split string about the dataset. When I use the script "datasets.load_dataset('ArmelR/stack-exchange-instruction', data_dir="data/finetune", split="train", ...
CLOSED
2023-05-25T09:39:06
2023-05-29T02:32:12
2023-05-29T02:32:12
https://github.com/huggingface/datasets/issues/5895
{ "login": "DongHande" }
{ "nodes": [] }
[ "Thanks for reporting, @DongHande.\r\n\r\nI think the issue is caused by the metadata in the dataset card: in the header of the `README.md`, they state that the dataset has 4 splits (\"finetune\", \"reward\", \"rl\", \"evaluation\"). \r\n```yaml\r\n splits:\r\n - name: finetune\r\n num_bytes: 6674567576\r\...
I_kwDODunzps5mq1KQ
5,892
User access requests with manual review do not notify the dataset owner
### Describe the bug When a user access requests are enabled, and new requests are set to Manual Review, the dataset owner should be notified of the pending requests. However, instead, currently nothing happens, and so the dataset request can go unanswered for quite some time until the owner happens to check that part...
CLOSED
2023-05-23T17:27:46
2023-07-21T13:55:37
2023-07-21T13:55:36
https://github.com/huggingface/datasets/issues/5892
{ "login": "leondz" }
{ "nodes": [] }
[ "cc @SBrandeis", "I think this has been addressed.\r\n\r\nPlease open a new issue if you are still not getting notified." ]
I_kwDODunzps5mqVXy
5,889
Token Alignment for input and output data over train and test batch/dataset.
`data` > DatasetDict({ train: Dataset({ features: ['input', 'output'], num_rows: 4500 }) test: Dataset({ features: ['input', 'output'], num_rows: 500 }) }) **# input (in-correct sentence)** `data['train'][0]['input']` **>>** 'We are meet sunday 10am12pmET i...
OPEN
2023-05-23T15:58:55
2023-05-23T15:58:55
null
https://github.com/huggingface/datasets/issues/5889
{ "login": "akesh1235" }
{ "nodes": [] }
[]
I_kwDODunzps5mpixu
5,887
HuggingsFace dataset example give error
### Describe the bug ![image](https://github.com/huggingface/datasets/assets/1328316/1f4f0086-3db9-4c79-906b-05a375357cce) ![image](https://github.com/huggingface/datasets/assets/1328316/733ebd3d-89b9-4ece-b80a-00ab5b0a4122) ### Steps to reproduce the bug Use link as reference document written https://c...
CLOSED
2023-05-23T14:09:05
2023-07-25T14:01:01
2023-07-25T14:01:00
https://github.com/huggingface/datasets/issues/5887
{ "login": "donhuvy" }
{ "nodes": [] }
[ "Nice catch @donhuvy, that's because some models don't need the `token_type_ids`, as in this case, as the example is using `distilbert-base-cased`, and according to the DistilBert documentation at https://huggingface.co/transformers/v3.0.2/model_doc/distilbert.html, `DistilBert doesn’t have token_type_ids, you don’...
I_kwDODunzps5mlXKR
5,886
Use work-stealing algorithm when parallel computing
### Feature request when i used Dataset.map api to process data concurrently, i found that it gets slower and slower as it gets closer to completion. Then i read the source code of arrow_dataset.py and found that it shard the dataset and use multiprocessing pool to execute each shard.It may cause the slowest task ...
OPEN
2023-05-23T03:08:44
2023-05-24T15:30:09
null
https://github.com/huggingface/datasets/issues/5886
{ "login": "1014661165" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Alternatively we could set the number of shards to be a factor than the number of processes (current they're equal) - this way it will be less likely to end up with a shard that is significantly slower than all the other ones." ]
I_kwDODunzps5mqBC7
5,888
A way to upload and visualize .mp4 files (millions of them) as part of a dataset
**Is your feature request related to a problem? Please describe.** I recently chose to use huggingface hub as the home for a large multi modal dataset I've been building. https://huggingface.co/datasets/Antreas/TALI It combines images, text, audio and video. Now, I could very easily upload a dataset made via datase...
OPEN
2023-05-22T18:05:26
2023-06-23T03:37:16
null
https://github.com/huggingface/datasets/issues/5888
{ "login": "AntreasAntoniou" }
{ "nodes": [] }
[ "Hi! \r\n\r\nYou want to use `push_to_hub` (creates Parquet files) instead of `save_to_disk` (creates Arrow files) when creating a Hub dataset. Parquet is designed for long-term storage and takes less space than the Arrow format, and, most importantly, `load_dataset` can parse it, which should fix the viewer. \r\n\...
I_kwDODunzps5mfjkM
5,884
`Dataset.to_tf_dataset` fails when strings cannot be encoded as `np.bytes_`
### Describe the bug When loading any dataset that contains a column with strings that are not ASCII-compatible, looping over those records raises the following exception e.g. for `é` character `UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 0: ordinal not in range(128)`. ### Steps to rep...
CLOSED
2023-05-22T12:03:06
2023-06-09T16:04:56
2023-06-09T16:04:55
https://github.com/huggingface/datasets/issues/5884
{ "login": "alvarobartt" }
{ "nodes": [] }
[ "May eventually be solved in #5883 ", "#self-assign" ]
I_kwDODunzps5mfACT
5,881
Split dataset by node: index error when sharding iterable dataset
### Describe the bug Context: we're splitting an iterable dataset by node and then passing it to a torch data loader with multiple workers When we iterate over it for 5 steps, we don't get an error When we instead iterate over it for 8 steps, we get an `IndexError` when fetching the data if we have too many wo...
OPEN
2023-05-22T10:36:13
2025-01-31T16:36:30
null
https://github.com/huggingface/datasets/issues/5881
{ "login": "sanchit-gandhi" }
{ "nodes": [] }
[ "cc @lhoestq in case you have any ideas here! Might need a multi-host set-up to debug (can give you access to a JAX one if you need)", "I am also facing the same problem. Could you let me know if you found a solution for this?", "I couldn't reproduce with the latest version of `datasets` 2.16.1, can you update ...
I_kwDODunzps5mdzu1
5,880
load_dataset from s3 file system through streaming can't not iterate data
### Describe the bug I have a JSON file in my s3 file system(minio), I can use load_dataset to get the file link, but I can't iterate it <img width="816" alt="image" src="https://github.com/huggingface/datasets/assets/59083384/cc0778d3-36f3-45b5-ac68-4e7c664c2ed0"> <img width="1144" alt="image" src="https://github.c...
OPEN
2023-05-22T07:40:27
2023-05-26T12:52:08
null
https://github.com/huggingface/datasets/issues/5880
{ "login": "janineguo" }
{ "nodes": [] }
[ "This sounds related to #5281.\r\n\r\nCan you try passing `storage_options=s3_client.storage_options` instead passing it to `use_auth_token=` ?", "I tried `storage_options` before, but it doesn't work, I checked our source code and I found that we even didn't pass this parameter to the following process. if I use...
I_kwDODunzps5mabXD
5,878
Prefetching for IterableDataset
### Feature request Add support for prefetching the next n batches through iterabledataset to reduce batch loading bottleneck in training loop. ### Motivation The primary motivation behind this is to use hardware accelerators alongside a streaming dataset. This is required when you are in a low ram or low disk...
OPEN
2023-05-20T15:25:40
2025-09-01T20:57:32
null
https://github.com/huggingface/datasets/issues/5878
{ "login": "vyeevani" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Very cool! Do you have a link to the code that you're using to eagerly fetch the data? Would also be interested in hacking around something here for pre-fetching iterable datasets", "I ended up just switching back to the pytorch dataloader and using it's multiprocessing functionality to handle this :(. I'm just ...
I_kwDODunzps5mZlrZ
5,877
Request for text deduplication feature
### Feature request It would be great if there would be support for high performance, highly scalable text deduplication algorithms as part of the datasets library. ### Motivation Motivated by this blog post https://huggingface.co/blog/dedup and this library https://github.com/google-research/deduplicate-text-datase...
OPEN
2023-05-20T01:56:00
2024-01-25T14:40:09
null
https://github.com/huggingface/datasets/issues/5877
{ "login": "SupreethRao99" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "The \"exact match\" deduplication will be possible when we resolve https://github.com/huggingface/datasets/issues/2514 (first, https://github.com/apache/arrow/issues/30950 needs to be addressed on the Arrow side). In the meantime, you can use Polars or DuckDB (e.g., via [datasets-sql](https://github.com/mariosasko...
I_kwDODunzps5mZkdp
5,876
Incompatibility with DataLab
### Describe the bug Hello, I am currently working on a project where both [DataLab](https://github.com/ExpressAI/DataLab) and [datasets](https://github.com/huggingface/datasets) are subdependencies. I noticed that I cannot import both libraries, as they both register FileSystems in `fsspec`, expecting the FileSyste...
CLOSED
2023-05-20T01:39:11
2023-05-25T06:42:34
2023-05-25T06:42:34
https://github.com/huggingface/datasets/issues/5876
{ "login": "helpmefindaname" }
{ "nodes": [ { "name": "good first issue" } ] }
[ "Indeed, `clobber=True` (with a warning if the existing protocol will be overwritten) should fix the issue, but maybe a better solution is to register our compression filesystem before the script is executed and unregister them afterward. WDYT @lhoestq @albertvillanova?", "I think we should use clobber and show a...
I_kwDODunzps5mU9Za
5,875
Why split slicing doesn't behave like list slicing ?
### Describe the bug If I want to get the first 10 samples of my dataset, I can do : ``` ds = datasets.load_dataset('mnist', split='train[:10]') ``` But if I exceed the number of samples in the dataset, an exception is raised : ``` ds = datasets.load_dataset('mnist', split='train[:999999999]') ``` > V...
CLOSED
2023-05-19T07:21:10
2024-01-31T15:54:18
2024-01-31T15:54:18
https://github.com/huggingface/datasets/issues/5875
{ "login": "astariul" }
{ "nodes": [ { "name": "duplicate" } ] }
[ "A duplicate of https://github.com/huggingface/datasets/issues/1774" ]
I_kwDODunzps5mQ6QC
5,874
Using as_dataset on a "parquet" builder
### Describe the bug I used a custom builder to ``download_and_prepare`` a dataset. The first (very minor) issue is that the doc seems to suggest ``download_and_prepare`` will return the dataset, while it does not ([builder.py](https://github.com/huggingface/datasets/blob/main/src/datasets/builder.py#L718-L738)). ```...
CLOSED
2023-05-18T14:09:03
2023-05-31T13:23:55
2023-05-31T13:23:55
https://github.com/huggingface/datasets/issues/5874
{ "login": "rems75" }
{ "nodes": [] }
[ "Hi! You can refer to [this doc](https://huggingface.co/docs/datasets/filesystems#load-and-save-your-datasets-using-your-cloud-storage-filesystem) to see the intended usage (basically, it skips the Arrow -> Parquet conversion step in `ds = load_dataset(...); ds.to_parquet(\"path/to/parquet\")`) and allows writing P...
I_kwDODunzps5mHmvc
5,873
Allow setting the environment variable for the lock file path
### Feature request Add an environment variable to replace the default lock file path. ### Motivation Usually, dataset path is a read-only path while the lock file needs to be modified each time. It would be convenient if the path can be reset individually. ### Your contribution ```/src/datasets/utils/fi...
OPEN
2023-05-17T07:10:02
2023-05-17T07:11:05
null
https://github.com/huggingface/datasets/issues/5873
{ "login": "xin3he" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5mE8qR
5,871
data configuration hash suffix depends on uncanonicalized data_dir
### Describe the bug I am working with the `recipe_nlg` dataset, which requires manual download. Once it's downloaded, I've noticed that the hash in the custom data configuration is different if I add a trailing `/` to my `data_dir`. It took me a while to notice that the hashes were different, and to understand that...
CLOSED
2023-05-16T18:56:04
2023-06-02T15:52:05
2023-06-02T15:52:05
https://github.com/huggingface/datasets/issues/5871
{ "login": "kylrth" }
{ "nodes": [ { "name": "good first issue" } ] }
[ "It could even use `os.path.realpath` to resolve symlinks.", "Indeed, it makes sense to normalize `data_dir`. Feel free to submit a PR (this can be \"fixed\" [here](https://github.com/huggingface/datasets/blob/89f775226321ba94e5bf4670a323c0fb44f5f65c/src/datasets/builder.py#L173))", "#self-assign" ]
I_kwDODunzps5mDW56
5,870
Behaviour difference between datasets.map and IterableDatasets.map
### Describe the bug All the examples in all the docs mentioned throughout huggingface datasets correspond to datasets object, and not IterableDatasets object. At one point of time, they might have been in sync, but the code for datasets version >=2.9.0 is very different as compared to the docs. I basically need to ...
OPEN
2023-05-16T14:32:57
2023-05-16T14:36:05
null
https://github.com/huggingface/datasets/issues/5870
{ "login": "llStringll" }
{ "nodes": [] }
[ "PS - some work is definitely needed for 'special cases' docs, not explanations, just usages of 'functions' under mixture of special cases, like a combination of custom databuilder + iterable dataset for large size + dynamic .map() application." ]
I_kwDODunzps5mCuTz
5,869
Image Encoding Issue when submitting a Parquet Dataset
### Describe the bug Hello, I'd like to report an issue related to pushing a dataset represented as a Parquet file to a dataset repository using Dask. Here are the details: We attempted to load an example dataset in Parquet format from the Hugging Face (HF) filesystem using Dask with the following code snippet...
CLOSED
2023-05-16T09:42:58
2023-06-16T12:48:38
2023-06-16T09:30:48
https://github.com/huggingface/datasets/issues/5869
{ "login": "PhilippeMoussalli" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hi @PhilippeMoussalli thanks for opening a detailed issue. It seems the issue is more related to the `datasets` library so I'll ping @lhoestq @mariosasko on this one :) \n\n(edit: also can one of you move the issue to the datasets repo? Thanks in advance 🙏)", "Hi ! The `Image()` info is stored in the **schema m...
I_kwDODunzps5l_m3q
5,868
Is it possible to change a cached file and 're-cache' it instead of re-generating?
### Feature request Hi, I have a huge cached file using `map`(over 500GB), and I want to change an attribution of each element, is there possible to do it using some method instead of re-generating, because `map` takes over 24 hours ### Motivation For large datasets, I think it is very important because we always f...
CLOSED
2023-05-16T03:45:42
2023-05-17T11:21:36
2023-05-17T11:21:36
https://github.com/huggingface/datasets/issues/5868
{ "login": "zyh3826" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Arrow files/primitives (tables and arrays) are immutable, so re-generating them is the only option, I'm afraid.", "> \r\n\r\nGot it, thanks for your reply" ]
I_kwDODunzps5l9Bzh
5,866
Issue with Sequence features
### Describe the bug Sequences features sometimes causes errors when the specified length is not -1 ### Steps to reproduce the bug ```python import numpy as np from datasets import Features, ClassLabel, Sequence, Value, Dataset feats = Features(**{'target': ClassLabel(names=[0, 1]),'x': Sequence(feature=Va...
CLOSED
2023-05-15T17:13:29
2023-05-26T11:57:17
2023-05-26T11:57:17
https://github.com/huggingface/datasets/issues/5866
{ "login": "alialamiidrissi" }
{ "nodes": [] }
[ "Thanks for reporting! I've opened a PR with a fix." ]
I_kwDODunzps5l82V_
5,864
Slow iteration over Torch tensors
### Describe the bug I have a problem related to this [issue](https://github.com/huggingface/datasets/issues/5841): I get a way slower iteration when using a Torch dataloader if I use vanilla Numpy tensors or if I first apply a ToTensor transform to the input. In particular, it takes 5 seconds to iterate over the vani...
OPEN
2023-05-15T16:43:58
2024-10-08T10:21:48
null
https://github.com/huggingface/datasets/issues/5864
{ "login": "crisostomi" }
{ "nodes": [] }
[ "I am highly interested performance of dataset so I ran your example as a curious user.\r\n```python\r\ntrain_dataset.cast_column(\"x\", Array3D(shape=img_shape, dtype=\"float32\"))\r\n```\r\nhave return values and \"x\" is a new column, it shoulde be\r\n```python\r\nds=train_dataset.cast_column(\"img\", Array3D(sh...
I_kwDODunzps5l7qzm
5,862
IndexError: list index out of range with data hosted on Zenodo
The dataset viewer sometimes raises an `IndexError`: ``` IndexError: list index out of range ``` See: - huggingface/datasets-server#1151 - https://huggingface.co/datasets/reddit/discussions/5 - huggingface/datasets-server#1118 - https://huggingface.co/datasets/krr-oxford/OntoLAMA/discussions/1 - https://hu...
OPEN
2023-05-15T13:47:19
2023-09-25T12:09:51
null
https://github.com/huggingface/datasets/issues/5862
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "This error is also raised when data is hosted on Google Drive:\r\n- https://huggingface.co/datasets/docred/discussions/5\r\n- https://huggingface.co/datasets/linnaeus/discussions/3\r\n- https://huggingface.co/datasets/poleval2019_mt/discussions/3\r\n- https://huggingface.co/datasets/reddit_tifu/discussions/2\r\n- ...
I_kwDODunzps5l4liY
5,858
Throw an error when dataset improperly indexed
### Describe the bug Pandas-style subset indexing on dataset does not throw an error, when maybe it should. Instead returns the first instance of the dataset regardless of index condition. ### Steps to reproduce the bug Steps to reproduce the behavior: 1. `squad = datasets.load_dataset("squad_v2", split="validati...
CLOSED
2023-05-15T05:15:53
2023-05-25T16:23:19
2023-05-25T16:23:19
https://github.com/huggingface/datasets/issues/5858
{ "login": "sarahwie" }
{ "nodes": [] }
[ "Thanks for reporting, @sarahwie.\r\n\r\nPlease note that in `datasets` we do not have vectorized operation like `pandas`. Therefore, your equality comparisons above are `False`:\r\n- For example: `squad['question']` returns a `list`, and this list is not equal to `\"Who was the Norse leader?\"`\r\n\r\nThe `False` ...
I_kwDODunzps5l4kEe
5,857
Adding chemistry dataset/models in huggingface
### Feature request Huggingface is really amazing platform for open science. In addition to computer vision, video and NLP, would it be of interest to add chemistry/materials science dataset/models in Huggingface? Or, if its already done, can you provide some pointers. We have been working on a comprehensive ben...
CLOSED
2023-05-15T05:09:49
2023-07-21T13:45:40
2023-07-21T13:45:40
https://github.com/huggingface/datasets/issues/5857
{ "login": "knc6" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! \r\n\r\nThis would be a nice addition to the Hub! You can find the existing chemistry datasets/models on the Hub (using the `chemistry` tag) [here](https://huggingface.co/search/full-text?q=chemistry&type=model&type=dataset).\r\n\r\nFeel free to ping us here on the Hub if you need help adding the datasets.\r\n...
I_kwDODunzps5l4JnC
5,856
Error loading natural_questions
### Describe the bug When try to load natural_questions through datasets == 2.12.0 with python == 3.8.9: ```python import datasets datasets.load_dataset('natural_questions',beam_runner='DirectRunner') ``` It failed with following info: `pyarrow.lib.ArrowNotImplementedError: Nested data conversions not impl...
CLOSED
2023-05-15T02:46:04
2023-06-05T09:11:19
2023-06-05T09:11:18
https://github.com/huggingface/datasets/issues/5856
{ "login": "Crownor" }
{ "nodes": [] }
[ "Hi! You can avoid this error by using the preprocessed version:\r\n```python\r\nimport datasets\r\nds = datasets.load_dataset('natural_questions')\r\n```\r\n\r\nPS: Once we finish https://github.com/huggingface/datasets/pull/5364, this error will no longer be a problem.", "> Hi! You can avoid this error by using...
I_kwDODunzps5l2f0v
5,855
`to_tf_dataset` consumes too much memory
### Describe the bug Hi, I'm using `to_tf_dataset` to convert a _large_ dataset to `tf.data.Dataset`. I observed that the data loading *before* training took a lot of time and memory, even with `batch_size=1`. After some digging, i believe the reason lies in the shuffle behavior. The [source code](https://github....
CLOSED
2023-05-14T01:22:29
2023-06-08T16:32:52
2023-06-08T16:32:52
https://github.com/huggingface/datasets/issues/5855
{ "login": "massquantity" }
{ "nodes": [] }
[ "Cc @amyeroberts @Rocketknight1 \r\n\r\nIndded I think it's because it does something like this under the hood when there's no multiprocessing:\r\n\r\n```python\r\ntf_dataset = tf_dataset.shuffle(len(dataset))\r\n```\r\n\r\nPS: with multiprocessing it appears to be different:\r\n\r\n```python\r\nindices = np.arange...
I_kwDODunzps5l2eck
5,854
Can not load audiofolder dataset on kaggle
### Describe the bug It's crash log: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/audiofolder/audiofolder.py or any data file in the same directory. Couldn't find 'audiofolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingfac...
CLOSED
2023-05-14T00:50:47
2023-08-16T13:35:36
2023-07-21T13:53:45
https://github.com/huggingface/datasets/issues/5854
{ "login": "ILG2021" }
{ "nodes": [] }
[ "Hi! `audiofolder` requires `datasets>=2.5.0`, so please update the `datasets`' installation (`pip install -U datasets`) in the environment (and restart the env for the update to take effect) to resolve the issue.", "> Hi! `audiofolder` requires `datasets>=2.5.0`, so please update the `datasets`' installation (`p...
I_kwDODunzps5lxysX
5,849
CSV datasets should only read the CSV data files in the repo
When a no-script dataset has many CSV files and a JPG file, the library infers to use the Csv builder, but tries to read as CSV all files in the repo, also the JPG file. I think the Csv builder should filter out non-CSV files when reading. An analogue solution should be implemented for other packaged builders. ...
CLOSED
2023-05-12T12:29:53
2023-06-22T14:16:27
2023-06-22T14:16:27
https://github.com/huggingface/datasets/issues/5849
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5luOc6
5,847
Streaming IterableDataset not working with translation pipeline
### Describe the bug I'm trying to use a streaming dataset for translation inference to avoid downloading the training data. I'm using a pipeline and a dataset, and following the guidance in the tutorial. Instead I get an exception that IterableDataset has no len(). ### Steps to reproduce the bug CODE: ``` ...
OPEN
2023-05-11T21:52:38
2023-05-16T15:59:55
null
https://github.com/huggingface/datasets/issues/5847
{ "login": "jlquinn" }
{ "nodes": [] }
[ "I wasn't sure to file this against transformers or datasets.", "[`KeyDataset`](https://github.com/huggingface/transformers/blob/7f8b909189547944617741d8d3c6c84504701693/src/transformers/pipelines/pt_utils.py#L296) doesn't support iterable datasets, so you either need to implement a version that does (and also in...
I_kwDODunzps5lzJfo
5,851
Error message not clear in interleaving datasets
### System Info standard env ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [X] My own task or dataset (give details below) ### Reproduction I'm tr...
CLOSED
2023-05-11T20:52:13
2023-05-23T10:32:59
2023-05-23T10:32:59
https://github.com/huggingface/datasets/issues/5851
{ "login": "surya-narayanan" }
{ "nodes": [] }
[]
I_kwDODunzps5ls-iK
5,846
load_dataset('bigcode/the-stack-dedup', streaming=True) very slow!
### Describe the bug Running ``` import datasets ds = datasets.load_dataset('bigcode/the-stack-dedup', streaming=True) ``` takes about 2.5 minutes! I would expect this to be near instantaneous. With other datasets, the runtime is one or two seconds. ### Environment info - `datasets` version: 2.1...
CLOSED
2023-05-11T17:58:57
2024-04-08T12:53:17
2024-04-05T12:28:58
https://github.com/huggingface/datasets/issues/5846
{ "login": "tbenthompson" }
{ "nodes": [] }
[ "This is due to the slow resolution of the data files: https://github.com/huggingface/datasets/issues/5537.\r\n\r\nWe plan to switch to `huggingface_hub`'s `HfFileSystem` soon to make the resolution faster (will be up to 20x faster once we merge https://github.com/huggingface/huggingface_hub/pull/1443)\r\n\r\n", ...
I_kwDODunzps5lrhZk
5,844
TypeError: Couldn't cast array of type struct<answer: struct<unanswerable: bool, answerType: string, free_form_answer: string, evidence: list<item: string>, evidenceAnnotate: list<item: string>, highlighted_evidence: list<item: string>>> to ...
### Describe the bug TypeError: Couldn't cast array of type struct<answer: struct<unanswerable: bool, answerType: string, free_form_answer: string, evidence: list<item: string>, evidenceAnnotate: list<item: string>, highlighted_evidence: list<item: string>>> to {'answer': {'unanswerable': Value(dtype='bool', id=None),...
OPEN
2023-05-11T14:15:01
2023-05-11T14:15:01
null
https://github.com/huggingface/datasets/issues/5844
{ "login": "chen-coding" }
{ "nodes": [] }
[]
I_kwDODunzps5lpJvv
5,841
Abusurdly slow on iteration
### Describe the bug I am attempting to iterate through an image dataset, but I am encountering a significant slowdown in the iteration speed. In order to investigate this issue, I conducted the following experiment: ```python a=torch.randn(100,224) a=torch.stack([a] * 10000) a.shape # %% ds=Dataset.from_d...
CLOSED
2023-05-11T08:04:09
2023-05-15T15:38:13
2023-05-15T15:38:13
https://github.com/huggingface/datasets/issues/5841
{ "login": "fecet" }
{ "nodes": [] }
[ "Hi ! You can try to use the [Image](https://huggingface.co/docs/datasets/v2.12.0/en/package_reference/main_classes#datasets.Image) type which [decodes images on-the-fly](https://huggingface.co/docs/datasets/v2.12.0/en/about_dataset_features#image-feature) into pytorch tensors :)\r\n\r\n```python\r\nds = Dataset.fr...
I_kwDODunzps5lo3i1
5,840
load model error.
### Describe the bug I had trained one model use deepspeed, when I load the final load I get the follow error: OSError: Can't load tokenizer for '/XXX/DeepSpeedExamples/applications/DeepSpeed-Chat/output/step3-models/1.3b/actor'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't ...
CLOSED
2023-05-11T07:12:38
2023-05-12T13:44:07
2023-05-12T13:44:06
https://github.com/huggingface/datasets/issues/5840
{ "login": "LanShanPi" }
{ "nodes": [] }
[ "Please report this in the `transformers` repo, as it's not related to `datasets`" ]
I_kwDODunzps5lqAbK
5,842
Remove columns in interable dataset
### Feature request Right now, remove_columns() produces a NotImplementedError for iterable style datasets ### Motivation It would be great to have the same functionality irrespective of whether one is using an iterable or a map-style dataset ### Your contribution hope and courage.
CLOSED
2023-05-11T03:48:46
2023-06-21T16:36:42
2023-06-21T16:36:41
https://github.com/huggingface/datasets/issues/5842
{ "login": "surya-narayanan" }
{ "nodes": [] }
[ "Transferring this issue as it's related to the 🤗 Datasets library ", "Hi @surya-narayanan! Could you provide some code snippet?", "This method has been recently added to the `IterableDataset`, so you need to update the `datasets`' installation (`pip install -U datasets`) to use it." ]
I_kwDODunzps5lqBY3
5,843
Can't add iterable datasets to a Dataset Dict.
### System Info standard env ### Who can help? _No response_ ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below) ### Reproduction Get th...
CLOSED
2023-05-11T02:09:29
2023-05-25T04:51:59
2023-05-25T04:51:59
https://github.com/huggingface/datasets/issues/5843
{ "login": "surya-narayanan" }
{ "nodes": [] }
[ "Transferring as this is relating to the 🤗 Datasets library", "You need to use `IterableDatasetDict` instead of `DatasetDict` for iterable datasets." ]
I_kwDODunzps5lmXDe
5,839
Make models/functions optimized with `torch.compile` hashable
As reported in https://github.com/huggingface/datasets/issues/5819, hashing functions/transforms that reference a model, or a function, optimized with `torch.compile` currently fails due to them not being picklable (the concrete error can be found in the linked issue). The solutions to consider: 1. hashing/pickling...
CLOSED
2023-05-10T20:02:08
2023-11-28T16:29:33
2023-11-28T16:29:33
https://github.com/huggingface/datasets/issues/5839
{ "login": "mariosasko" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5lhO9g
5,838
Streaming support for `load_from_disk`
### Feature request Support for streaming datasets stored in object stores in `load_from_disk`. ### Motivation The `load_from_disk` function supports fetching datasets stored in object stores such as `s3`. In many cases, the datasets that are stored in object stores are very large and being able to stream the data ...
CLOSED
2023-05-10T06:25:22
2024-10-28T14:19:44
2023-05-12T09:37:45
https://github.com/huggingface/datasets/issues/5838
{ "login": "Nilabhra" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "As the name says, `load_from_disk` load the data from your disk. If the data is hosted on S3, it is first downloaded locally and then loaded from your disk.\r\n\r\nThere is a discussion on streaming data from S3 here though: #5281 ", "@lhoestq \r\nThanks for your comment. I have checked out the discussion before...
I_kwDODunzps5lggUo
5,837
Use DeepSpeed load myself " .csv " dataset.
### Describe the bug When I use DeepSpeed train a model with my own " XXX.csv" dataset I got the follow question: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fm001/.conda/envs/hzl/lib/python3.8/site-packages/datasets/load.py", line 1767, in load_dataset builder_instan...
OPEN
2023-05-10T02:39:28
2023-05-15T03:51:36
null
https://github.com/huggingface/datasets/issues/5837
{ "login": "LanShanPi" }
{ "nodes": [] }
[ "Hi ! Doing `load_dataset(\"path/to/data.csv\")` is not supported yet, but you can do\r\n\r\n```python\r\nds = load_dataset(\"csv\", data_files=[\"path/to/data.csv\"])\r\n```", "@lhoestq thank you.", "The other question: \r\nTraceback (most recent call last):\r\n File \"<stdin>\", line 1, in <module>\r\n Fil...
I_kwDODunzps5leU78
5,834
Is uint8 supported?
### Describe the bug I expect the dataset to store the data in the `uint8` data type, but it's returning `int64` instead. While I've found that `datasets` doesn't yet support float16 (https://github.com/huggingface/datasets/issues/4981), I'm wondering if this is the case for other data types as well. Is there a way ...
CLOSED
2023-05-09T17:31:13
2023-05-13T05:04:21
2023-05-13T05:04:21
https://github.com/huggingface/datasets/issues/5834
{ "login": "ryokan0123" }
{ "nodes": [] }
[ "Hi ! The numpy formatting detaults to int64 and float32 - but you can use uint8 using\r\n```python\r\nds = ds.with_format(\"numpy\", dtype=np.uint8)\r\n```", "Related to https://github.com/huggingface/datasets/issues/5517.", "Thank you!\r\nBy setting `ds.with_format(\"numpy\", dtype=np.uint8)`, the dataset ret...
I_kwDODunzps5ldr3q
5,833
Unable to push dataset - `create_pr` problem
### Describe the bug I can't upload to the hub the dataset I manually created locally (Image dataset). I have a problem when using the method `.push_to_hub` which asks for a `create_pr` attribute which is not compatible. ### Steps to reproduce the bug here what I have: ```python dataset.push_to_hub("agomberto/Fr...
CLOSED
2023-05-09T15:32:55
2023-10-24T18:22:29
2023-10-24T18:22:29
https://github.com/huggingface/datasets/issues/5833
{ "login": "agombert" }
{ "nodes": [] }
[ "Thanks for reporting, @agombert.\r\n\r\nIn this case, I think the root issue is authentication: before pushing to Hub, you should authenticate. See our docs: https://huggingface.co/docs/datasets/upload_dataset#upload-with-python\r\n> 2. To upload a dataset on the Hub in Python, you need to log in to your Hugging F...
I_kwDODunzps5ldIYo
5,832
404 Client Error: Not Found for url: https://huggingface.co/api/models/bert-large-cased
### Describe the bug Running [Bert-Large-Cased](https://huggingface.co/bert-large-cased) model causes `HTTPError`, with the following traceback- ``` HTTPError Traceback (most recent call last) <ipython-input-6-5c580443a1ad> in <module> ----> 1 tokenizer = BertTokenizer.from_pretra...
CLOSED
2023-05-09T14:14:59
2023-05-09T14:25:59
2023-05-09T14:25:59
https://github.com/huggingface/datasets/issues/5832
{ "login": "varungupta31" }
{ "nodes": [] }
[ "moved to https://github.com/huggingface/transformers/issues/23233" ]
I_kwDODunzps5lb55L
5,831
[Bug]504 Server Error when loading dataset which was already cached
### Describe the bug I have already cached the dataset using: ``` dataset = load_dataset("databricks/databricks-dolly-15k", cache_dir="/mnt/data/llm/datasets/databricks-dolly-15k") ``` After that, I tried to load it again using the same machine, I got this error: ``` Traceback (most rece...
OPEN
2023-05-09T10:31:07
2023-05-10T01:48:20
null
https://github.com/huggingface/datasets/issues/5831
{ "login": "SingL3" }
{ "nodes": [] }
[ "I am experiencing the same problem with the following environment:\r\n\r\n* `datasets` version: 2.11.0\r\n* Platform: `Linux 5.19.0-41-generic x86_64 GNU/Linux`\r\n* Python version: `3.8.5`\r\n* Huggingface_hub version: 0.13.3\r\n* PyArrow version: `11.0.0`\r\n* Pandas version: `1.5.3`\r\n\r\nTrying to get some di...
I_kwDODunzps5lU02t
5,829
(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
### Describe the bug M2 MBP can't run ```python from datasets import load_dataset jazzy = load_dataset("nomic-ai/gpt4all-j-prompt-generations", revision='v1.2-jazzy') ``` ### Steps to reproduce the bug 1. Use M2 MBP 2. Python 3.10.10 from pyenv 3. Run ``` from datasets import load_dataset jazzy = load_...
CLOSED
2023-05-08T10:07:14
2023-06-30T11:39:14
2023-05-09T00:46:42
https://github.com/huggingface/datasets/issues/5829
{ "login": "elcolie" }
{ "nodes": [] }
[ "Can you paste the error stack trace?", "That is weird. I can't reproduce it again after reboot.\r\n```python\r\nIn [2]: import platform\r\n\r\nIn [3]: platform.platform()\r\nOut[3]: 'macOS-13.2-arm64-arm-64bit'\r\n\r\nIn [4]: from datasets import load_dataset\r\n ...:\r\n ...: jazzy = load_dataset(\"nomic-ai...
I_kwDODunzps5lSEeb
5,828
Stream data concatenation issue
### Describe the bug I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset. ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', id=None), 'audio': {'array': Sequence(feature=Value(dtype='float32', id=...
CLOSED
2023-05-07T21:02:54
2023-06-29T20:07:56
2023-05-10T05:05:47
https://github.com/huggingface/datasets/issues/5828
{ "login": "krishnapriya-18" }
{ "nodes": [] }
[ "Hi! \r\n\r\nYou can call `map` as follows to avoid the error:\r\n```python\r\naugmented_dataset_cln = dataset_cln['train'].map(augment_dataset, features=dataset_cln['train'].features)\r\n```", "Thanks it is solved", "Hi! \r\nI have run into the same problem with you. Could you please let me know how you solve ...
I_kwDODunzps5lQwXu
5,827
load json dataset interrupt when dtype cast problem occured
### Describe the bug i have a json like this: [ {"id": 1, "name": 1}, {"id": 2, "name": "Nan"}, {"id": 3, "name": 3}, .... ] ,which have several problematic rows data like row 2, then i load it with datasets.load_dataset('json', data_files=['xx.json'], split='train'), it will report like this: ...
CLOSED
2023-05-07T04:52:09
2026-03-09T15:58:00
2026-03-09T15:58:00
https://github.com/huggingface/datasets/issues/5827
{ "login": "1014661165" }
{ "nodes": [] }
[ "Indeed the JSON dataset builder raises an error when it encounters an unexpected type.\r\n\r\nThere's an old PR open to add away to ignore such elements though, if it can help: https://github.com/huggingface/datasets/pull/2838", "Hi ! with #8027 you will be able to do \n```python\nfrom datasets import load_datas...
I_kwDODunzps5lKyl7
5,825
FileNotFound even though exists
### Describe the bug I'm trying to download https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_ab-spa_Latn-urd_Arab.jsonl which works fine in my webbrowser, but somehow not with datasets. Am I doing sth wrong? ``` Downloading builder script: 100% 2.82k/2.8...
CLOSED
2023-05-05T09:49:55
2023-08-16T10:02:01
2023-08-16T10:02:01
https://github.com/huggingface/datasets/issues/5825
{ "login": "Muennighoff" }
{ "nodes": [] }
[ "Hi! \r\n\r\nThis would only work if `bigscience/xP3` was a no-code dataset, but it isn't (it has a Python builder script).\r\n\r\nBut this should work: \r\n```python\r\nload_dataset(\"json\", data_files=\"https://huggingface.co/datasets/bigscience/xP3/resolve/main/ur/xp3_facebook_flores_spa_Latn-urd_Arab_devtest_a...
I_kwDODunzps5lJosV
5,823
[2.12.0] DatasetDict.save_to_disk not saving to S3
### Describe the bug When trying to save a `DatasetDict` to a private S3 bucket using `save_to_disk`, the artifacts are instead saved locally, and not in the S3 bucket. I have tried using the deprecated `fs` as well as the `storage_options` arguments and I get the same results. ### Steps to reproduce the bug 1. C...
CLOSED
2023-05-05T05:22:59
2024-05-30T16:11:31
2023-05-05T15:01:17
https://github.com/huggingface/datasets/issues/5823
{ "login": "thejamesmarq" }
{ "nodes": [] }
[ "Hi ! Can you try adding the `s3://` prefix ?\r\n```python\r\nf\"s3://{s3_bucket}/{s3_dir}/{dataset_name}\"\r\n```", "Ugh, yeah that was it. Thank you!", "Hi @thejamesmarq, by any chance, did you use multiprocessing `num_proc > 1` when saving your dataset on the s3 bucket ? I'm struggling making it work in a mu...
I_kwDODunzps5lIHps
5,822
Audio Dataset with_format torch problem
### Describe the bug Common Voice v10 Delta (German) Dataset from here https://commonvoice.mozilla.org/de/datasets ``` audio_dataset = \ (Dataset .from_dict({"audio": ('/tmp/cv-corpus-10.0-delta-2022-07-04/de/clips/' + df.path).to_list()}) .cast_column("audio", Audio(sampling_rate=16_000)) .with...
CLOSED
2023-05-04T20:07:51
2023-05-11T20:45:53
2023-05-11T20:45:53
https://github.com/huggingface/datasets/issues/5822
{ "login": "paulbauriegel" }
{ "nodes": [] }
[ "Hi ! Can you try with a more recent version of `datasets` ?", "Ok, yes it worked with the most recent version. Thanks" ]
I_kwDODunzps5lFUVL
5,820
Incomplete docstring for `BuilderConfig`
Hi guys ! I stumbled upon this docstring while working on a project. Some of the attributes have missing descriptions. https://github.com/huggingface/datasets/blob/bc5fef5b6d91f009e4101684adcb374df2c170f6/src/datasets/builder.py#L104-L117
CLOSED
2023-05-04T12:14:34
2023-05-05T12:31:56
2023-05-05T12:31:56
https://github.com/huggingface/datasets/issues/5820
{ "login": "Laurent2916" }
{ "nodes": [ { "name": "good first issue" } ] }
[ "Thanks for reporting! You are more than welcome to improve `BuilderConfig`'s docstring.\r\n\r\nThis class serves an identical purpose as `tensorflow_datasets`'s `BuilderConfig`, and its docstring is [here](https://github.com/tensorflow/datasets/blob/a95e38b5bb018312c3d3720619c2a8ef83ebf57f/tensorflow_datasets/core...
I_kwDODunzps5lD9Zi
5,819
Cannot pickle error in Dataset.from_generator()
### Describe the bug I'm trying to use Dataset.from_generator() to generate a large dataset. ### Steps to reproduce the bug Code to reproduce: ``` from transformers import T5Tokenizer, T5ForConditionalGeneration, GenerationConfig import torch from tqdm import tqdm from datasets import load_dataset tokenizer...
CLOSED
2023-05-04T08:39:09
2023-05-05T19:20:59
2023-05-05T19:20:58
https://github.com/huggingface/datasets/issues/5819
{ "login": "xinghaow99" }
{ "nodes": [] }
[ "Hi! It should work if you put `model = torch.compile(model)` inside the `generate_data` function. If a referenced object is outside, it needs to be pickable, and that's not the case for the compiled models (or functions). ", "> Hi! It should work if you put `model = torch.compile(model)` inside the `generate_da...
I_kwDODunzps5lCHML
5,818
Ability to update a dataset
### Feature request The ability to load a dataset, add or change something, and save it back to disk. Maybe it's possible, but I can't work out how to do it, e.g. this fails: ```py import datasets dataset = datasets.load_from_disk("data/test1") dataset = dataset.add_item({"text": "A new item"}) dataset.sav...
OPEN
2023-05-04T01:08:13
2023-05-04T20:43:39
null
https://github.com/huggingface/datasets/issues/5818
{ "login": "davidgilbertson" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "This [reply](https://discuss.huggingface.co/t/how-do-i-add-things-rows-to-an-already-saved-dataset/27423) from @mariosasko on the forums may be useful :)", "In this case, I think we can avoid the `PermissionError` by unpacking the underlying `ConcatenationTable` and saving only the newly added data blocks (in ne...
I_kwDODunzps5lBf9a
5,817
Setting `num_proc` errors when `.map` returns additional items.
### Describe the bug I'm using a map function that returns more rows than are passed in. If I try to use `num_proc` I get: ``` File "/home/davidg/.virtualenvs/learning/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 563, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kw...
CLOSED
2023-05-03T21:46:53
2023-05-04T21:14:21
2023-05-04T20:22:25
https://github.com/huggingface/datasets/issues/5817
{ "login": "davidgilbertson" }
{ "nodes": [] }
[ "Hi ! Unfortunately I couldn't reproduce on my side locally and with datasets 2.11 and python 3.10.11 on colab.\r\nWhat version of `multiprocess` are you using ?", "I've got `multiprocess` version `0.70.14`.\r\n\r\nI've done some more testing and the error only occurs in PyCharm's Python Console. It seems to be [...
I_kwDODunzps5k89Zv
5,815
Easy way to create a Kaggle dataset from a Huggingface dataset?
I'm not sure whether this is more appropriately addressed with HuggingFace or Kaggle. I would like to somehow directly create a Kaggle dataset from a HuggingFace Dataset. While Kaggle does provide the option to create a dataset from a URI, that URI must point to a single file. For example: ![image](https://user...
OPEN
2023-05-02T21:43:33
2023-07-26T16:13:31
null
https://github.com/huggingface/datasets/issues/5815
{ "login": "hrbigelow" }
{ "nodes": [] }
[ "Hi @hrbigelow , I'm no expert for such a question so I'll ping @lhoestq from the `datasets` library (also this issue could be moved there if someone with permission can do it :) )", "Hi ! Many datasets are made of several files, and how they are parsed often requires a python script. Because of that, datasets li...
I_kwDODunzps5k1sqZ
5,812
Cannot shuffle interleaved IterableDataset with "all_exhausted" stopping strategy
### Describe the bug Shuffling interleaved `IterableDataset` with "all_exhausted" strategy yields non-exhaustive sampling. ### Steps to reproduce the bug ```py from datasets import IterableDataset, interleave_datasets def gen(bias, length): for i in range(length): yield dict(a=bias+i) seed = 42 ...
CLOSED
2023-05-02T05:26:17
2023-05-04T14:24:51
2023-05-04T14:24:51
https://github.com/huggingface/datasets/issues/5812
{ "login": "offchan42" }
{ "nodes": [ { "name": "bug" }, { "name": "streaming" } ] }
[]
I_kwDODunzps5kuh5G
5,811
load_dataset: TypeError: 'NoneType' object is not callable, on local dataset filename changes
### Describe the bug I've adapted Databrick's [train_dolly.py](/databrickslabs/dolly/blob/master/train_dolly.py) to train using a local dataset, which has been working. Upon changing the filenames of the `.json` & `.py` files in my local dataset directory, `dataset = load_dataset(path_or_dataset)["train"]` throws th...
OPEN
2023-04-30T13:27:17
2025-02-27T07:32:30
null
https://github.com/huggingface/datasets/issues/5811
{ "login": "durapensa" }
{ "nodes": [] }
[ "This error means a `DatasetBuilder` subclass that generates the dataset could not be found inside the script, so make sure `dushowxa-characters/dushowxa-characters.py `is a valid dataset script (assuming `path_or_dataset` is `dushowxa-characters`)\r\n\r\nAlso, we should improve the error to make it more obvious wh...
I_kwDODunzps5kuEKt
5,809
wiki_dpr details for Open Domain Question Answering tasks
Hey guys! Thanks for creating the wiki_dpr dataset! I am currently trying to combine wiki_dpr and my own datasets. but I don't know how to make the embedding value the same way as wiki_dpr. As an experiment, I embeds the text of id="7" of wiki_dpr, but this result was very different from wiki_dpr.
CLOSED
2023-04-30T06:12:04
2023-07-21T14:11:00
2023-07-21T14:11:00
https://github.com/huggingface/datasets/issues/5809
{ "login": "yulgok22" }
{ "nodes": [] }
[ "Hi ! I don't remember exactly how it was done, but maybe you have to embed `f\"{title}<sep>{text}\"` ?\r\n\r\nUsing a HF tokenizer it corresponds to doing\r\n```python\r\ntokenized = tokenizer(titles, texts)\r\n```" ]
I_kwDODunzps5kpfZP
5,806
Return the name of the currently loaded file in the load_dataset function.
### Feature request Add an optional parameter return_file_name in the load_dataset function. When it is set to True, the function will include the name of the file corresponding to the current line as a feature in the returned output. ### Motivation When training large language models, machine problems may interrupt...
OPEN
2023-04-28T13:50:15
2026-08-12T11:05:05
null
https://github.com/huggingface/datasets/issues/5806
{ "login": "s-JoL" }
{ "nodes": [ { "name": "enhancement" }, { "name": "good first issue" } ] }
[ "Implementing this makes sense (e.g., `tensorflow_datasets`' imagefolder returns image filenames). Also, in Datasets 3.0, we plan only to store the bytes of an image/audio, not its path, so this feature would be useful when the path info is still needed.", "Hey @mariosasko, Can I work on this issue, this one seem...
I_kwDODunzps5kpVvx
5,805
Improve `Create a dataset` tutorial
Our [tutorial on how to create a dataset](https://huggingface.co/docs/datasets/create_dataset) is a bit misleading. 1. In **Folder-based builders** section it says that we have two folder-based builders as standard builders, but we also have similar builders (that can be created from directory with data of required f...
OPEN
2023-04-28T13:26:22
2026-06-14T16:45:00
null
https://github.com/huggingface/datasets/issues/5805
{ "login": "polinaeterna" }
{ "nodes": [ { "name": "documentation" } ] }
[ "I can work on this. The link to the tutorial seems to be broken though @polinaeterna. ", "@isunitha98selvan would be great, thank you! which link are you talking about? I think it should work: https://huggingface.co/docs/datasets/create_dataset", "Hey I don't mind working on this issue. From my understanding, ...
I_kwDODunzps5kg2xs
5,799
Files downloaded to cache do not respect umask
As reported by @stas00, files downloaded to the cache do not respect umask: ```bash $ ls -l /path/to/cache/datasets/downloads/ -rw------- 1 uername username 150M Apr 25 16:41 5e646c1d600f065adaeb134e536f6f2f296a6d804bd1f0e1fdcd20ee28c185c6 ``` Related to: - #2065
CLOSED
2023-04-27T08:06:05
2023-04-27T09:30:17
2023-04-27T09:30:17
https://github.com/huggingface/datasets/issues/5799
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5kfNyO
5,798
Support parallelized downloading and processing in load_dataset with Spark
### Feature request When calling `load_dataset` for datasets that have multiple files, support using Spark to distribute the downloading and processing job to worker nodes when `cache_dir` is a cloud file system shared among nodes. ```python load_dataset(..., use_spark=True) ``` ### Motivation Further speed up ...
OPEN
2023-04-27T00:16:11
2023-05-25T14:11:41
null
https://github.com/huggingface/datasets/issues/5798
{ "login": "es94129" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! We're using process pools for parallelism right now. I was wondering if there's a package that implements the same API as a process pool but runs with Spark under the hood ? That or something similar would be cool because users could use whatever distributed framework they want this way.\r\n\r\nFeel free to p...
I_kwDODunzps5kdrUP
5,797
load_dataset is case sentitive?
### Describe the bug load_dataset() function is case sensitive? ### Steps to reproduce the bug The following two code, get totally different behavior. 1. load_dataset('mbzuai/bactrian-x','en') 2. load_dataset('MBZUAI/Bactrian-X','en') ### Expected behavior Compare 1 and 2. 1 will download all 52 subsets, sh...
OPEN
2023-04-26T18:19:04
2023-04-27T11:56:58
null
https://github.com/huggingface/datasets/issues/5797
{ "login": "haonan-li" }
{ "nodes": [] }
[ "Hi @haonan-li , thank you for the report! It seems to be a bug on the [`huggingface_hub`](https://github.com/huggingface/huggingface_hub) site, there is even no such dataset as `mbzuai/bactrian-x` on the Hub. I opened and [issue](https://github.com/huggingface/huggingface_hub/issues/1453) there.", "I think `loa...
I_kwDODunzps5kcg0d
5,794
CI ZeroDivisionError
Sometimes when running our CI on Windows, we get a ZeroDivisionError: ``` FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore - ZeroDivisionError: float division by zero ``` See for example: - https://github.com/huggingface/datasets/actions/runs/4809358266/jobs/8560513110 - https:/...
CLOSED
2023-04-26T14:55:23
2024-05-17T09:12:11
2024-05-17T09:12:11
https://github.com/huggingface/datasets/issues/5794
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[ "Hello!\r\nThis issue seems to have been fixed in https://github.com/huggingface/transformers/pull/24049 \r\nI was looking for my first issue to work on when I noticed this; not sure if there is a specific protocol for suggesting to close an issue.", "Thanks for informing, @zeppdev. I am closing this issue.\r\n\r...
I_kwDODunzps5ka6lo
5,793
IterableDataset.with_format("torch") not working
### Describe the bug After calling the with_format("torch") method on an IterableDataset instance, the data format is unchanged. ### Steps to reproduce the bug ```python from datasets import IterableDataset def gen(): for i in range(4): yield {"a": [i] * 4} dataset = IterableDataset.from_generator(g...
CLOSED
2023-04-26T10:50:23
2023-06-13T15:57:06
2023-06-13T15:57:06
https://github.com/huggingface/datasets/issues/5793
{ "login": "jiangwangyi" }
{ "nodes": [ { "name": "bug" }, { "name": "enhancement" }, { "name": "streaming" } ] }
[ "Hi ! Thanks for reporting, I'm working on it ;)" ]
I_kwDODunzps5kV8YX
5,791
TIFF/TIF support
### Feature request I currently have a dataset (with tiff and json files) where I have to do this: `wget path_to_data/images.zip && unzip images.zip` `wget path_to_data/annotations.zip && unzip annotations.zip` Would it make sense a contribution that supports these type of files? ### Motivation instead o...
CLOSED
2023-04-25T16:14:18
2024-01-15T16:40:33
2024-01-15T16:40:16
https://github.com/huggingface/datasets/issues/5791
{ "login": "sebasmos" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "The issue with multichannel TIFF images has already been reported in Pillow (https://github.com/python-pillow/Pillow/issues/1888). We can't do much about it on our side.\r\n\r\nStill, to avoid the error, you can bypass the default Pillow decoding and define a custom one as follows:\r\n```python\r\nimport tifffile ...
I_kwDODunzps5kSpvr
5,789
Support streaming datasets that use jsonlines
Extend support for streaming datasets that use `jsonlines.open`. Currently, if `jsonlines` is installed, `datasets` raises a `FileNotFoundError`: ``` FileNotFoundError: [Errno 2] No such file or directory: 'https://...' ``` See: - https://huggingface.co/datasets/masakhane/afriqa/discussions/1
OPEN
2023-04-25T07:40:02
2023-04-25T07:40:03
null
https://github.com/huggingface/datasets/issues/5789
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5kMV6O
5,786
Multiprocessing in a `filter` or `map` function with a Pytorch model
### Describe the bug I am trying to use a Pytorch model loaded on CPUs with multiple processes with a `.map` or a `.filter` method. Usually, when dealing with models that are non-pickable, creating a class such that the `map` function is the method `__call__`, and adding `reduce` helps to solve the problem. Howe...
CLOSED
2023-04-24T10:38:07
2023-05-30T09:56:30
2023-04-24T10:43:58
https://github.com/huggingface/datasets/issues/5786
{ "login": "HugoLaurencon" }
{ "nodes": [] }
[ "Hi ! PyTorch may hang when calling `load_state_dict()` in a subprocess. To fix that, set the multiprocessing start method to \"spawn\". Since `datasets` uses `multiprocess`, you should do:\r\n\r\n```python\r\n# Required to avoid issues with pytorch (otherwise hangs during load_state_dict in multiprocessing)\r\nimp...
I_kwDODunzps5kMV4k
5,785
Unsupported data files raise TypeError: 'NoneType' object is not iterable
Currently, we raise a TypeError for unsupported data files: ``` TypeError: 'NoneType' object is not iterable ``` See: - https://github.com/huggingface/datasets-server/issues/1073 We should give a more informative error message.
CLOSED
2023-04-24T10:38:03
2023-04-27T12:57:30
2023-04-27T12:57:30
https://github.com/huggingface/datasets/issues/5785
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "bug" } ] }
[]
I_kwDODunzps5kHaUJ
5,783
Offset overflow while doing regex on a text column
### Describe the bug `ArrowInvalid: offset overflow while concatenating arrays` Same error as [here](https://github.com/huggingface/datasets/issues/615) ### Steps to reproduce the bug Steps to reproduce: (dataset is a few GB big so try in colab maybe) ``` import datasets import re ds = datasets.lo...
OPEN
2023-04-22T19:12:03
2023-09-22T06:44:07
null
https://github.com/huggingface/datasets/issues/5783
{ "login": "nishanthcgit" }
{ "nodes": [] }
[ "Hi! This looks like an Arrow bug, but it can be avoided by reducing the `writer_batch_size`.\r\n\r\n(`ds = ds.map(get_text_caption, writer_batch_size=100)` in Colab runs without issues)\r\n", "@mariosasko I ran into this problem with load_dataset. What should I do", "@AisingioroHao0 You can also pass the `wri...
I_kwDODunzps5kHQDf
5,782
Support for various audio-loading backends instead of always relying on SoundFile
### Feature request Introduce an option to select from a variety of audio-loading backends rather than solely relying on the SoundFile library. For instance, if the ffmpeg library is installed, it can serve as a fallback loading option. ### Motivation - The SoundFile library, used in [features/audio.py](https://gith...
CLOSED
2023-04-22T17:09:25
2023-05-10T20:23:04
2023-05-10T20:23:04
https://github.com/huggingface/datasets/issues/5782
{ "login": "BoringDonut" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! \r\n\r\nYou can use `set_transform`/`with_transform` to define a custom decoding for audio formats not supported by `soundfile`:\r\n```python\r\naudio_dataset_amr = Dataset.from_dict({\"audio\": [\"audio_samples/audio.amr\"]})\r\n\r\ndef decode_audio(batch):\r\n batch[\"audio\"] = [read_ffmpeg(audio_path) f...
I_kwDODunzps5kHF0s
5,781
Error using `load_datasets`
### Describe the bug I tried to load a dataset using the `datasets` library in a conda jupyter notebook and got the below error. ``` ImportError: dlopen(/Users/gilbertyoung/miniforge3/envs/review_sense/lib/python3.8/site-packages/scipy/sparse/linalg/_isolve/_iterative.cpython-38-darwin.so, 0x0002): Library not ...
CLOSED
2023-04-22T15:10:44
2023-05-02T23:41:25
2023-05-02T23:41:25
https://github.com/huggingface/datasets/issues/5781
{ "login": "gjyoungjr" }
{ "nodes": [] }
[ "It looks like an issue with your installation of scipy, can you try reinstalling it ?", "Sorry for the late reply, but that worked @lhoestq . Thanks for the assist." ]
I_kwDODunzps5kGRvt
5,780
TypeError: 'NoneType' object does not support item assignment
command: ``` def load_datasets(formats, data_dir=datadir, data_files=datafile): dataset = load_dataset(formats, data_dir=datadir, data_files=datafile, split=split, streaming=True, **kwargs) return dataset raw_datasets = DatasetDict() raw_datasets["train"] = load_datasets(“csv”, args.datadir, "train.csv", s...
CLOSED
2023-04-22T06:22:43
2023-04-23T08:49:18
2023-04-23T08:49:18
https://github.com/huggingface/datasets/issues/5780
{ "login": "zyb8543d" }
{ "nodes": [] }
[]
I_kwDODunzps5kBit_
5,778
Schrödinger's dataset_dict
### Describe the bug If you use load_dataset('json', data_files="path/test.json"), it will return DatasetDict({train:...}). And if you use load_dataset("path"), it will return DatasetDict({test:...}). Why can't the output behavior be unified? ### Steps to reproduce the bug as description above. ### Expected b...
CLOSED
2023-04-21T08:38:12
2023-07-24T15:15:14
2023-07-24T15:15:14
https://github.com/huggingface/datasets/issues/5778
{ "login": "liujuncn" }
{ "nodes": [] }
[ "Hi ! Passing `data_files=\"path/test.json\"` is equivalent to `data_files={\"train\": [\"path/test.json\"]}`, that's why you end up with a train split. If you don't pass `data_files=`, then split names are inferred from the data files names" ]
I_kwDODunzps5j_v-h
5,777
datasets.load_dataset("code_search_net", "python") : NotADirectoryError: [Errno 20] Not a directory
### Describe the bug While checking out the [tokenizer tutorial](https://huggingface.co/course/chapter6/2?fw=pt), i noticed getting an error while initially downloading the python dataset used in the examples. The [collab with the error is here](https://colab.research.google.com/github/huggingface/notebooks/blob/ma...
CLOSED
2023-04-21T02:08:07
2023-06-05T05:49:52
2023-05-11T11:51:56
https://github.com/huggingface/datasets/issues/5777
null
{ "nodes": [] }
[ "Note:\r\nI listed the datasets and grepped around to find what appears to be an alternative source for this:\r\n\r\nraw_datasets = load_dataset(\"espejelomar/code_search_net_python_10000_examples\", \"python\")", "Thanks for reporting, @jason-brian-anderson.\r\n\r\nYes, this is a known issue: the [CodeSearchNet]...
I_kwDODunzps5j9sLE
5,776
Use Pandas' `read_json` in the JSON builder
Instead of PyArrow's `read_json`, we should use `pd.read_json` in the JSON builder for consistency with the CSV and SQL builders (e.g., to address https://github.com/huggingface/datasets/issues/5725). In Pandas2.0, to get the same performance, we can set the `engine` to "pyarrow". The issue is that Colab still doesn...
OPEN
2023-04-20T17:15:49
2023-04-20T17:15:49
null
https://github.com/huggingface/datasets/issues/5776
{ "login": "mariosasko" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps5j9lxt
5,775
ArrowDataset.save_to_disk lost some logic of remote
### Describe the bug https://github.com/huggingface/datasets/blob/e7ce0ac60c7efc10886471932854903a7c19f172/src/datasets/arrow_dataset.py#L1371 Here is the bug point, when I want to save from a `DatasetDict` class and the items of the instance is like `[('train', Dataset({features: ..., num_rows: ...}))]` , there ...
CLOSED
2023-04-20T16:58:01
2023-04-26T12:11:36
2023-04-26T12:11:17
https://github.com/huggingface/datasets/issues/5775
{ "login": "Zoupers" }
{ "nodes": [] }
[ "We just fixed this on `main` and will do a new release soon :)" ]
I_kwDODunzps5j5X75
5,773
train_dataset does not implement __len__
when train using data precessored by the datasets, I get follow warning and it leads to that I can not set epoch numbers: `ValueError: The train_dataset does not implement __len__, max_steps has to be specified. The number of steps needs to be known in advance for the learning rate scheduler.`
OPEN
2023-04-20T04:37:05
2023-07-19T20:33:13
null
https://github.com/huggingface/datasets/issues/5773
{ "login": "zyb8543d" }
{ "nodes": [] }
[ "Thanks for reporting, @v-yunbin.\r\n\r\nCould you please give more details, the steps to reproduce the bug, the complete error back trace and the environment information (`datasets-cli env`)?", "this is a detail error info from transformers:\r\n```\r\nTraceback (most recent call last):\r\n File \"finetune.py\",...
I_kwDODunzps5j09pc
5,771
Support cloud storage for loading datasets
### Feature request It seems that the the current implementation supports cloud storage only for `load_from_disk`. It would be nice if a similar functionality existed in `load_dataset`. ### Motivation Motivation is pretty clear -- let users work with datasets located in the cloud. ### Your contribution ...
CLOSED
2023-04-19T12:43:53
2023-05-07T17:47:41
2023-05-07T17:47:41
https://github.com/huggingface/datasets/issues/5771
{ "login": "eli-osherovich" }
{ "nodes": [ { "name": "duplicate" }, { "name": "enhancement" } ] }
[ "A duplicate of https://github.com/huggingface/datasets/issues/5281" ]
I_kwDODunzps5jvq-e
5,769
Tiktoken tokenizers are not pickable
### Describe the bug Since tiktoken tokenizer is not pickable, it is not possible to use it inside `dataset.map()` with multiprocessing enabled. However, you [made](https://github.com/huggingface/datasets/issues/5536) tiktoken's tokenizers pickable in `datasets==2.10.0` for caching. For some reason, this logic does no...
CLOSED
2023-04-18T16:07:40
2023-05-04T18:55:57
2023-05-04T18:55:57
https://github.com/huggingface/datasets/issues/5769
{ "login": "markovalexander" }
{ "nodes": [] }
[ "Thanks for reporting, @markovalexander.\r\n\r\nUnfortunately, I'm not able to reproduce the issue: the `tiktoken` tokenizer can be used within `Dataset.map`, both in my local machine and in a Colab notebook: https://colab.research.google.com/drive/1DhJroZgk0sNFJ2Mrz-jYgrmh9jblXaCG?usp=sharing\r\n\r\nAre you sure y...
I_kwDODunzps5jsD3h
5,768
load_dataset("squad") doesn't work in 2.7.1 and 2.10.1
### Describe the bug There is an issue that seems to be unique to the "squad" dataset, in which it cannot be loaded using standard methods. This issue is most quickly reproduced from the command line, using the HF examples to verify a dataset is loaded properly. This is not a problem with "squad_v2" dataset for e...
CLOSED
2023-04-18T07:10:56
2023-04-20T10:27:23
2023-04-20T10:27:22
https://github.com/huggingface/datasets/issues/5768
{ "login": "yaseen157" }
{ "nodes": [] }
[ "Thanks for reporting, @yaseen157.\r\n\r\nCould you please give the complete error stack trace?", "I am not able to reproduce your issue: the dataset loads perfectly on my local machine and on a Colab notebook: https://colab.research.google.com/drive/1Fbdoa1JdNz8DOdX6gmIsOK1nCT8Abj4O?usp=sharing\r\n```python\r\nI...
I_kwDODunzps5jr1E7
5,767
How to use Distill-BERT with different datasets?
### Describe the bug - `transformers` version: 4.11.3 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyTorch version (GPU?): 1.12.0+cu102 (True) - Tensorflow version (GPU?): 2.10.0 (True) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxL...
CLOSED
2023-04-18T06:25:12
2023-04-20T16:52:05
2023-04-20T16:52:05
https://github.com/huggingface/datasets/issues/5767
{ "login": "sauravtii" }
{ "nodes": [] }
[ "Closing this one in favor of the same issue opened in the `transformers` repo." ]
I_kwDODunzps5joNm6
5,766
Support custom feature types
### Feature request I think it would be nice to allow registering custom feature types with the 🤗 Datasets library. For example, allow to do something along the following lines: ``` from datasets.features import register_feature_type # this would be a new function @register_feature_type class CustomFeature...
OPEN
2023-04-17T15:46:41
2024-03-10T11:11:22
null
https://github.com/huggingface/datasets/issues/5766
{ "login": "jmontalt" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! Interesting :) What kind of new types would you like to use ?\r\n\r\nNote that you can already implement your own decoding by using `set_transform` that can decode data on-the-fly when rows are accessed", "An interesting proposal indeed. \r\n\r\nPandas and Polars have the \"extension API\", so doing somethi...
I_kwDODunzps5jn16Y
5,765
ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['text']
### Describe the bug Following is my code that I am trying to run, but facing an error (have attached the whole error below): My code: ``` from collections import OrderedDict import warnings import flwr as fl import torch import numpy as np import random from torch.utils.data import DataLoader from...
OPEN
2023-04-17T15:00:50
2023-04-25T13:50:45
null
https://github.com/huggingface/datasets/issues/5765
{ "login": "sauravtii" }
{ "nodes": [] }
[ "You need to remove the `text` and `text_en` columns before passing the dataset to the `DataLoader` to avoid this error:\r\n```python\r\ntokenized_datasets = tokenized_datasets.remove_columns([\"text\", \"text_en\"])\r\n```\r\n", "Thanks @mariosasko. Now I am getting this error:\r\n\r\n```\r\nTraceback (most rece...
I_kwDODunzps5jlXjm
5,764
ConnectionError: Couldn't reach https://www.dropbox.com/s/zts98j4vkqtsns6/aclImdb_v2.tar?dl=1
### Describe the bug I want to use this (https://huggingface.co/datasets/josianem/imdb) dataset therefore I am trying to load it using the following code: ``` dataset = load_dataset("josianem/imdb") ``` The dataset is not getting loaded and gives the error message as the following: ``` Traceback (most rece...
CLOSED
2023-04-17T09:08:18
2023-04-18T07:18:20
2023-04-18T07:18:20
https://github.com/huggingface/datasets/issues/5764
{ "login": "sauravtii" }
{ "nodes": [] }
[ "Thanks for reporting, @sauravtii.\r\n\r\nUnfortunately, I'm not able to reproduce the issue:\r\n```python\r\nIn [1]: from datasets import load_dataset\r\n\r\nIn [2]: ds = load_dataset(\"josianem/imdb\")\r\n\r\nIn [2]: ds\r\nOut[2]: \r\nDatasetDict({\r\n train: Dataset({\r\n features: ['text', 'label'],\r...
I_kwDODunzps5jjyjG
5,762
Not able to load the pile
### Describe the bug Got this error when I am trying to load the pile dataset ``` TypeError: Couldn't cast array of type struct<file: string, id: string> to {'id': Value(dtype='string', id=None)} ``` ### Steps to reproduce the bug Please visit the following sample notebook https://colab.research.goo...
CLOSED
2023-04-17T03:09:10
2023-04-17T09:37:27
2023-04-17T09:37:27
https://github.com/huggingface/datasets/issues/5762
{ "login": "surya-narayanan" }
{ "nodes": [] }
[ "Thanks for reporting, @surya-narayanan.\r\n\r\nI see you already started a discussion about this on the Community tab of the corresponding dataset: https://huggingface.co/datasets/EleutherAI/the_pile/discussions/10\r\nLet's continue the discussion there!" ]
I_kwDODunzps5jirSW
5,761
One or several metadata.jsonl were found, but not in the same directory or in a parent directory
### Describe the bug An attempt to generate a dataset from a zip archive using imagefolder and metadata.jsonl does not lead to the expected result. Tried all possible locations of the json file: the file in the archive is ignored (generated dataset contains only images), the file next to the archive like [here](http...
OPEN
2023-04-16T16:21:55
2023-04-19T11:53:24
null
https://github.com/huggingface/datasets/issues/5761
{ "login": "blghtr" }
{ "nodes": [] }
[ "Also, when generated from a zip archive, the dataset contains only a few images. In my case, 20 versus 2000+ contained in the archive. The generation from folders works as expected.", "Thanks for reporting, @blghtr.\r\n\r\nYou should include the `metadata.jsonl` in your ZIP archives, at the root level directory....
I_kwDODunzps5jipso
5,760
Multi-image loading in Imagefolder dataset
### Feature request Extend the `imagefolder` dataloading script to support loading multiple images per dataset entry. This only really makes sense if a metadata file is present. Currently you can use the following format (example `metadata.jsonl`: ``` {'file_name': 'path_to_image.png', 'metadata': ...} ... `...
OPEN
2023-04-16T16:01:05
2024-12-01T11:16:09
null
https://github.com/huggingface/datasets/issues/5760
{ "login": "vvvm23" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Supporting this could be useful (I remember a use-case for this on the Hub). Do you agree @polinaeterna? \r\n\r\nImplementing this should be possible if we iterate over metadata files and build image/audio file paths instead of iterating over image/audio files and looking for the corresponding entries in metadata ...
I_kwDODunzps5jidb4
5,759
Can I load in list of list of dict format?
### Feature request my jsonl dataset has following format: ``` [{'input':xxx, 'output':xxx},{'input:xxx,'output':xxx},...] [{'input':xxx, 'output':xxx},{'input:xxx,'output':xxx},...] ``` I try to use `datasets.load_dataset('json', data_files=path)` or `datasets.Dataset.from_json`, it raises ``` File "site-p...
OPEN
2023-04-16T13:50:14
2023-04-19T12:04:36
null
https://github.com/huggingface/datasets/issues/5759
{ "login": "LZY-the-boys" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Thanks for reporting, @LZY-the-boys.\r\n\r\nCould you please give more details about what is your intended dataset structure? What are the names of the columns and the value of each row?\r\n\r\nCurrently, the JSON-Lines format is supported:\r\n- Each line correspond to one row of the dataset\r\n- Each line is comp...
I_kwDODunzps5jiM_n
5,757
Tilde (~) is not supported
### Describe the bug It seems that `~` is not recognized correctly in local paths. Whenever I try to use it I get an exception ### Steps to reproduce the bug ```python load_dataset("imagefolder", data_dir="~/data/my_dataset") ``` Will generate the following error: ``` EmptyDatasetError: The directory at ...
CLOSED
2023-04-16T11:48:10
2023-04-20T15:30:51
2023-04-20T15:30:51
https://github.com/huggingface/datasets/issues/5757
{ "login": "eli-osherovich" }
{ "nodes": [] }
[]