html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/6176
how to limit the size of memory mapped file?
Hi! Can you share the error this reproducer throws in your environment? `streaming=True` streams the dataset as it's iterated over without creating a memory-map file.
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
25
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.07280696928501129, -0.7916355133056641, 0.008368756622076035, 0.36151987314224243, 0.26349204778671265, -0.10469936579465866, -0.13469471037387848, 0.1584824174642563, 0.4648268222808838, 0.2701061964035034, -0.009281227365136147, -0.1514456868171692, -0.26436200737953186, 0.13532063364...
https://github.com/huggingface/datasets/issues/6176
how to limit the size of memory mapped file?
The trace of the error. Streaming works but is slower. ``` Root Cause (first observed failure): [0]: time : 2023-08-24_06:06:01 host : compute-126.cm.cluster rank : 0 (local_rank: 0) exitcode : 1 (pid: 48442) error_file: /tmp/torchelastic_4fqzcuuz/none_rx2470jl/attempt_0/0/error.json ...
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
229
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.16914331912994385, -0.8583162426948547, 0.02387920394539833, 0.35913509130477905, 0.33396321535110474, -0.09380343556404114, -0.1925307661294937, 0.21495455503463745, 0.31732654571533203, 0.25976771116256714, 0.040106162428855896, -0.12824398279190063, -0.3232782483100891, -0.0092922747...
https://github.com/huggingface/datasets/issues/6176
how to limit the size of memory mapped file?
This issue has previously been reported here: https://github.com/huggingface/datasets/issues/5710. Reporting it in the Arrow repo makes more sense as they have control over memory mapping. PS: this is the API to reduce the size of the generated Arrow file: ```python from datasets import load_dataset builder = loa...
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
64
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.06064371019601822, -0.6810963749885559, 0.027649369090795517, 0.3898547887802124, 0.266970157623291, -0.1753152459859848, -0.1274944543838501, 0.16097737848758698, 0.3836732804775238, 0.2431078553199768, 0.005299483425915241, -0.093889981508255, -0.2719053328037262, 0.06746142357587814,...
https://github.com/huggingface/datasets/issues/6176
how to limit the size of memory mapped file?
Thanks for the response. The problem seems not resolved. The memory I allocated to the environment is 64G and the following error still occurs `Python 3.8.16 (default, Jun 12 2023, 18:09:05) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from data...
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
248
how to limit the size of memory mapped file? ### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a...
[ -0.06064538657665253, -0.6840011477470398, 0.026865843683481216, 0.3980746269226074, 0.2742251753807068, -0.05565112829208374, -0.1292104870080948, 0.19934293627738953, 0.3999023735523224, 0.234363853931427, -0.05561867356300354, -0.21571879088878632, -0.23776419460773468, 0.08629578351974...
https://github.com/huggingface/datasets/issues/6172
Make Dataset streaming queries retryable
Hi! The streaming mode also retries requests - `datasets.config.STREAMING_READ_MAX_RETRIES` (20 sec by default) controls the number of retries and `datasets.config.STREAMING_READ_RETRY_INTERVAL` (5 sec) the sleep time between retries. > At step 1800 I got a 504 HTTP status code error from Huggingface hub for my pyto...
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
58
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.29541677236557007, -0.2703626751899719, 0.0007498208433389664, -0.021915949881076813, 0.10868650674819946, 0.013974353671073914, -0.12818634510040283, 0.09762002527713776, -0.01396831776946783, -0.19625161588191986, -0.1876717507839203, 0.003607777878642082, -0.12565554678440094, 0.3983...
https://github.com/huggingface/datasets/issues/6172
Make Dataset streaming queries retryable
I wanted something similar. I have a huge dataset I want to process (laion-2b), but after processing several batches, it sometimes fails with this error: `HTTP 502 Bad Gateway for url`. I had the following code to handle it but this way I believe it restarts processing the data from the first batch? How can I set the a...
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
131
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.32855290174484253, -0.22608715295791626, 0.009165916591882706, -0.042981646955013275, 0.07556590437889099, -0.07040069997310638, -0.0359124056994915, 0.10144779086112976, -0.1280929446220398, -0.21234329044818878, -0.2245352566242218, -0.15045280754566193, -0.044453710317611694, 0.45431...
https://github.com/huggingface/datasets/issues/6172
Make Dataset streaming queries retryable
Hey all! Wondering if there's a way of making Datasets streaming mode somewhat robust to Hub outages? Over the weekend, I got two quite cryptic errors, which I reckon were probably from Hub issues: <details> <summary> Stack Trace 1 </summary> ``` File "/home/sanchitgandhi/small-12-4-tpu-timestamped-prob-0.2/r...
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
1,228
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.316692054271698, -0.300537109375, 0.02615305408835411, 0.1259767711162567, 0.21646563708782196, -0.011194854974746704, 0.008133571594953537, 0.0982767790555954, -0.0398884043097496, -0.09810152649879456, -0.21523402631282806, -0.0718231275677681, -0.11203942447900772, 0.3347072005271911...
https://github.com/huggingface/datasets/issues/6172
Make Dataset streaming queries retryable
Errors are already caught and requests are already retried. What you can do is increase the number of retries before an error is raised. ```python import datasets datasets.config.STREAMING_READ_MAX_RETRIES = 20 # default datasets.config.STREAMING_READ_RETRY_INTERVAL = 5 # default ```
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
38
Make Dataset streaming queries retryable ### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fai...
[ -0.23975417017936707, -0.29467421770095825, -0.02098044380545616, -0.02063944935798645, 0.12140100449323654, 0.01288064569234848, -0.12980778515338898, 0.13797371089458466, 0.017742469906806946, -0.13985763490200043, -0.1861666887998581, -0.043064579367637634, -0.16090545058250427, 0.38718...
https://github.com/huggingface/datasets/issues/6169
Configurations in yaml not working
Unfortunately, I cannot reproduce this behavior on my machine or Colab - the reproducer returns `['main_data', 'additional_data']` as expected.
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
19
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.11527428030967712, -0.4213196933269501, 0.05717812106013298, 0.45447325706481934, 0.3572371006011963, 0.04673735052347183, 0.29891201853752136, -0.01612790673971176, -0.13951541483402252, -0.04843544960021973, -0.3127570152282715, 0.02011111006140709, 0.17264388501644135, 0.183475092053...
https://github.com/huggingface/datasets/issues/6169
Configurations in yaml not working
Thank you for looking into this, Mario. Is this on [my repository](https://huggingface.co/datasets/tsor13/test), or on another one that you have reproduced? Would you mind pointing me to it if so?
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
29
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.11032794415950775, -0.44041767716407776, 0.03916062042117119, 0.46930229663848877, 0.36660563945770264, 0.059038229286670685, 0.2784886956214905, -0.01049673929810524, -0.15312311053276062, -0.07836054265499115, -0.2909979522228241, -0.0175513606518507, 0.1840793490409851, 0.16513012349...
https://github.com/huggingface/datasets/issues/6169
Configurations in yaml not working
Whoa, in colab I received the correct behavior using my dataset. It must have something to do with my local copy of `datasets` (which again just failed). I've tried uninstalling/reinstnalling to no avail
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
33
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.12060359120368958, -0.43727022409439087, 0.07081745564937592, 0.46009451150894165, 0.343311607837677, 0.03130067139863968, 0.29497677087783813, -0.05509840324521065, -0.17239241302013397, -0.04089406132698059, -0.3166310787200928, 0.05706289783120155, 0.17232947051525116, 0.207872048020...
https://github.com/huggingface/datasets/issues/6169
Configurations in yaml not working
hi @tsor13 , I haven't been able to reproduce your issue on `tsor13/test` dataset locally either. reinstalling doesn't help?
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
19
Configurations in yaml not working ### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repositor...
[ -0.12412519752979279, -0.46657779812812805, 0.044538069516420364, 0.450275182723999, 0.3804835081100464, 0.04604152590036392, 0.27616530656814575, -0.010583046823740005, -0.12343521416187286, -0.07216484844684601, -0.3147631585597992, -0.009311892092227936, 0.17964090406894684, 0.198764011...
https://github.com/huggingface/datasets/issues/6162
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
Hi ! Feel free to open a discussion at https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T/discussions to ask the file to be fixed (or directly open a PR with the fixed file) `datasets` expects all the examples to have the same fields
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
36
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.05355988070368767, 0.028242170810699463, 0.021020378917455673, 0.5469896793365479, 0.12235799431800842, 0.10428904742002487, 0.4745459258556366, 0.3862744867801666, 0.14965131878852844, -0.1371254175901413, 0.02116554044187069, 0.608742892742157, 0.18107794225215912, -0.24777692556381226...
https://github.com/huggingface/datasets/issues/6162
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
@lhoestq I think the problem is caused by the fact that hugging face datasets writes a copy of data to the local cache using pyarrow. And the data scheme is inferred from the first few data blocks as can be seen [here](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_writer.py#L570). Maybe setting `...
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
55
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.05355988070368767, 0.028242170810699463, 0.021020378917455673, 0.5469896793365479, 0.12235799431800842, 0.10428904742002487, 0.4745459258556366, 0.3862744867801666, 0.14965131878852844, -0.1371254175901413, 0.02116554044187069, 0.608742892742157, 0.18107794225215912, -0.24777692556381226...
https://github.com/huggingface/datasets/issues/6162
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
> @lhoestq I think the problem is caused by the fact that hugging face datasets writes a copy of data to the local cache using pyarrow. And the data scheme is inferred from the first few data blocks as can be seen [here](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_writer.py#L570). Correct. T...
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
88
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.05355988070368767, 0.028242170810699463, 0.021020378917455673, 0.5469896793365479, 0.12235799431800842, 0.10428904742002487, 0.4745459258556366, 0.3862744867801666, 0.14965131878852844, -0.1371254175901413, 0.02116554044187069, 0.608742892742157, 0.18107794225215912, -0.24777692556381226...
https://github.com/huggingface/datasets/issues/6162
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
@lhoestq I just run below test with streaming=True and is not failing at the problematic example ```python ds = load_dataset('json', data_files='/path_to_local_RedPajamaData/filtered_27f05c041a1c401783f90b9415e40e4b.sampled.jsonl', streaming=True) count = 0 for i in ds['train']: count += 1 print(count) `...
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
49
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields ### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due t...
[ 0.05355988070368767, 0.028242170810699463, 0.021020378917455673, 0.5469896793365479, 0.12235799431800842, 0.10428904742002487, 0.4745459258556366, 0.3862744867801666, 0.14965131878852844, -0.1371254175901413, 0.02116554044187069, 0.608742892742157, 0.18107794225215912, -0.24777692556381226...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
Thanks for reporting, but we can only fix this issue if you can provide a reproducer that consistently reproduces it.
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
20
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
Does this error occur even if you change the cache directory (the `cache_dir` parameter in `load_dataset`)?
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
16
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
@mariosasko And I changed the data file, but executing load_dataset is always the previous result. I had to change something in images.py to use the new results. Using 'cleanup_cache_files' is invalid! Help me.
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
33
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
@mariosasko I added a comprehensive error message. Check that _column_requires_decoding is being passed where it shouldn't be. DatasetInfo.__init__() Whether this parameter is required
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
23
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
I can see the issue now... You can fix it by returning a `DatasetInfo` object in the `_info` method as follows: ```python def _info(self): if self.config.name == "similar_pairs": features = datasets.Features( { "image1": datasets.features.Image(), ...
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
59
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
@mariosasko Oh, that's the problem. Thank you very much. Returned the wrong object and it actually works? I've been training with it for a long time
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
26
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
@mariosasko The original code can still see progress. emmm, I can't see how many examples is generated so far, so I don't know if we should wait
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
27
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
The original issue has been addressed, so I'm closing it. Please open a new issue if you encounter more errors.
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
20
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding' ### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```pyth...
[ -0.0707000270485878, -0.11540181934833527, 0.006694313138723373, 0.3548396825790405, 0.5811519026756287, 0.2653762698173523, 0.13077782094478607, 0.37581172585487366, -0.2371589094400406, 0.07963988184928894, 0.06881742179393768, 0.38877326250076294, -0.07501129060983658, 0.350421011447906...
https://github.com/huggingface/datasets/issues/6156
Why not use self._epoch as seed to shuffle in distributed training with IterableDataset
`_effective_generator` returns a RNG that takes into account `self._epoch` and the current dataset's base shuffling RNG (which can be set by specifying `seed=` in `.shuffle() for example`). To fix your error you can pass `seed=` to `.shuffle()`. And the shuffling will depend on both this seed and `self._epoch`
### Describe the bug Currently, distributed training with `IterableDataset` needs to pass fixed seed to shuffle to keep each node use the same seed to avoid overlapping. https://github.com/huggingface/datasets/blob/a7f8d9019e7cb104eac4106bdc6ec0292f0dc61a/src/datasets/iterable_dataset.py#L1174-L1177 My question ...
48
Why not use self._epoch as seed to shuffle in distributed training with IterableDataset ### Describe the bug Currently, distributed training with `IterableDataset` needs to pass fixed seed to shuffle to keep each node use the same seed to avoid overlapping. https://github.com/huggingface/datasets/blob/a7f8d9019e7...
[ -0.09083980321884155, -0.4473874568939209, 0.10200130939483643, -0.05468001216650009, 0.38097918033599854, -0.1532328724861145, 0.5157514214515686, 0.0062174126505851746, -0.2434297502040863, 0.49071890115737915, 0.10162017494440079, 0.3450295329093933, -0.285529762506485, -0.1475027650594...
https://github.com/huggingface/datasets/issues/6152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
Makes sense, I guess this can be fixed in the load_dataset_builder method. It concerns every packaged builder I think (see values in `_PACKAGED_DATASETS_MODULES`)
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
23
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.27350056171417236, 0.028854534029960632, 0.028967786580324173, 0.41668230295181274, 0.25470706820487976, -0.014593277126550674, 0.27842453122138977, 0.056719765067100525, -0.02187744341790676, 0.03575409948825836, 0.10410941392183304, 0.253427654504776, -0.04276951029896736, 0.040190592...
https://github.com/huggingface/datasets/issues/6152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
I think the behavior is related to these lines, which short circuited the error handling. https://github.com/huggingface/datasets/blob/664a1cb72ea1e6ef7c47e671e2686ca4a35e8d63/src/datasets/load.py#L946-L952 So should data_dir be checked here or still delegating to actual `DatasetModule`? In that case, how to proper...
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
37
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.13462795317173004, 0.09037262201309204, 0.027538374066352844, 0.3838573694229126, 0.1457664668560028, -0.07248003780841827, 0.22981204092502594, 0.013132598251104355, -0.10827817022800446, -0.09232191741466522, 0.16240449249744415, 0.17215926945209503, -0.01608683541417122, -0.033630207...
https://github.com/huggingface/datasets/issues/6152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
This is location in PackagedDatasetModuleFactory.get_module seems the be the right place to check if at least data_dir or data_files are passed
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
21
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.18663102388381958, -0.10024916380643845, -0.009631015360355377, 0.4756280183792114, 0.1902085393667221, -0.0354747399687767, 0.14957676827907562, 0.16363810002803802, 0.031352560967206955, -0.028886422514915466, 0.20590801537036896, 0.19654078781604767, -0.027936235070228577, -0.0205267...
https://github.com/huggingface/datasets/issues/6152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
@mariosasko is this issue still open? i would love to kickstart my journey to open source with this issue! Regards zutarich
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
21
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.29093536734580994, 0.002699345350265503, 0.0479377843439579, 0.4412236213684082, 0.14582756161689758, -0.14808806777000427, 0.27054473757743835, 0.03420322760939598, -0.07471826672554016, -0.046286195516586304, 0.05931876599788666, 0.18162794411182404, -0.05486827343702316, 0.0275696273...
https://github.com/huggingface/datasets/issues/6152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
i think its working as expected . Heres the log i get for the same line - ![image](https://github.com/huggingface/datasets/assets/63234112/8a857ec5-8dd0-4b01-b3a7-7c93444b9558)
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
18
FolderBase Dataset automatically resolves under current directory when data_dir is not specified ### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_f...
[ -0.1393541693687439, -0.07298539578914642, 0.03312366455793381, 0.4095956087112427, 0.26113197207450867, -0.053502582013607025, 0.2549898326396942, 0.016485773026943207, 0.0068825967609882355, -0.027212709188461304, 0.13893836736679077, 0.21913087368011475, -0.008033315651118755, -0.011516...
https://github.com/huggingface/datasets/issues/6151
Faster sorting for single key items
`Dataset.sort` essentially does the same thing except it uses `pyarrow.compute.sort_indices` which doesn't involve copying the data into python objects (saving memory) ```python sort_keys = [(col, "ascending") for col in column_names] indices = pc.sort_indices(self.data, sort_keys=sort_keys) return self.select(in...
### Feature request A faster way to sort a dataset which contains a large number of rows. ### Motivation The current sorting implementations took significantly longer than expected when I was running on a dataset trying to sort by timestamps. **Code snippet:** ```python ds = datasets.load_dataset( "json"...
37
Faster sorting for single key items ### Feature request A faster way to sort a dataset which contains a large number of rows. ### Motivation The current sorting implementations took significantly longer than expected when I was running on a dataset trying to sort by timestamps. **Code snippet:** ```pyth...
[ 0.0044573768973350525, 0.0467047244310379, -0.15846098959445953, -0.1431126743555069, 0.0566248781979084, 0.23127660155296326, 0.16376066207885742, 0.4400392174720764, 0.039285000413656235, 0.12945488095283508, 0.1658165603876114, 0.44436830282211304, -0.20505912601947784, 0.13872006535530...
https://github.com/huggingface/datasets/issues/6150
Allow dataset implement .take
``` dataset = IterableDataset(dataset) if type(dataset) != IterableDataset else dataset # to force dataset.take(batch_size) to work in non-streaming mode ```
### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableDataset .take to use the local pa...
20
Allow dataset implement .take ### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableD...
[ -0.7020734548568726, -0.3154955208301544, -0.04562981799244881, -0.14700862765312195, 0.17551890015602112, -0.25217923521995544, 0.1460409313440323, 0.19208398461341858, 0.09963606297969818, 0.3289705216884613, 0.19659040868282318, 0.12043298035860062, -0.2602097988128662, 0.51718086004257...
https://github.com/huggingface/datasets/issues/6150
Allow dataset implement .take
Feel free to work on this. In addition, `IterableDataset` supports `skip`, so we should also add this method to `Dataset`.
### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableDataset .take to use the local pa...
20
Allow dataset implement .take ### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableD...
[ -0.7220208644866943, -0.16293863952159882, -0.05669761449098587, -0.17003411054611206, 0.23154759407043457, -0.2569749355316162, 0.14589673280715942, 0.11140184104442596, 0.13187702000141144, 0.3458048701286316, 0.15996146202087402, 0.34859970211982727, -0.2097078114748001, 0.3910960555076...
https://github.com/huggingface/datasets/issues/6149
Dataset.from_parquet cannot load subset of columns
Looks like this regression was introduced in `datasets==2.13.0` (`2.12.0` could load a subset of columns) This does not appear to be fixed by https://github.com/huggingface/datasets/pull/6045 (bug still exists on `main`)
### Describe the bug When using `Dataset.from_parquet(path_or_paths, columns=[...])` and a subset of columns, loading fails with a variant of the following ``` ValueError: Couldn't cast a: int64 -- schema metadata -- pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 273 to {'a': V...
29
Dataset.from_parquet cannot load subset of columns ### Describe the bug When using `Dataset.from_parquet(path_or_paths, columns=[...])` and a subset of columns, loading fails with a variant of the following ``` ValueError: Couldn't cast a: int64 -- schema metadata -- pandas: '{"index_columns": [], "column_i...
[ -0.13335858285427094, -0.08192655444145203, 0.08033646643161774, 0.571597695350647, 0.4477813243865967, 0.10835743695497513, 0.31241920590400696, 0.24921821057796478, 0.088655486702919, 0.007296361029148102, -0.02119383215904236, 0.5238873958587646, 0.012996429577469826, 0.1449720859527588...
https://github.com/huggingface/datasets/issues/6147
ValueError when running BeamBasedBuilder with GCS path in cache_dir
The cause of the error seems to be that `datasets` adds "gcs://" as a schema, while `beam` checks only "gs://". datasets: https://github.com/huggingface/datasets/blob/c02a44715c036b5261686669727394b1308a3a4b/src/datasets/builder.py#L822 beam: [link](https://github.com/apache/beam/blob/25e1a64641b1c8a3c0a6c75c6e86...
### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required dependency is installed, e.g., pip install apache-beam[gcp]. Path spec...
39
ValueError when running BeamBasedBuilder with GCS path in cache_dir ### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required ...
[ -0.2981949746608734, 0.19141224026679993, 0.014799796044826508, 0.36861133575439453, 0.2843169569969177, 0.008844129741191864, 0.2713478207588196, 0.1694408506155014, -0.0846979171037674, 0.26944321393966675, 0.10181483626365662, 0.38792532682418823, -0.4240407347679138, -0.333687633275985...
https://github.com/huggingface/datasets/issues/6147
ValueError when running BeamBasedBuilder with GCS path in cache_dir
Hi! We've deprecated the Beam API, as we don't have the bandwidth to support it properly...
### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required dependency is installed, e.g., pip install apache-beam[gcp]. Path spec...
16
ValueError when running BeamBasedBuilder with GCS path in cache_dir ### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required ...
[ -0.2981949746608734, 0.19141224026679993, 0.014799796044826508, 0.36861133575439453, 0.2843169569969177, 0.008844129741191864, 0.2713478207588196, 0.1694408506155014, -0.0846979171037674, 0.26944321393966675, 0.10181483626365662, 0.38792532682418823, -0.4240407347679138, -0.333687633275985...
https://github.com/huggingface/datasets/issues/6146
DatasetGenerationError when load glue benchmark datasets from `load_dataset`
This issue can happen if there is a directory named "glue" relative to the Python script with the `load_dataset` call (similar issue to this one: https://github.com/huggingface/datasets/issues/5228). Is this the case?
### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: --------------------------------------------------------------------------- SchemaInferenceError ...
30
DatasetGenerationError when load glue benchmark datasets from `load_dataset` ### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: ---------------------------------...
[ -0.4479903280735016, 0.22612938284873962, 0.0011698026210069656, 0.3219985365867615, 0.06884875893592834, 0.009246014058589935, 0.4455977976322174, 0.35875818133354187, 0.14821843802928925, 0.014389485120773315, 0.14605595171451569, 0.3755940794944763, 0.00011345464736223221, 0.08936219662...
https://github.com/huggingface/datasets/issues/6146
DatasetGenerationError when load glue benchmark datasets from `load_dataset`
> This issue can happen if there is a directory named "glue" relative to the Python script with the `load_dataset` call (similar issue to this one: #5228). Is this the case? Thats correct! Sorry for my late response.
### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: --------------------------------------------------------------------------- SchemaInferenceError ...
38
DatasetGenerationError when load glue benchmark datasets from `load_dataset` ### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: ---------------------------------...
[ -0.4479903280735016, 0.22612938284873962, 0.0011698026210069656, 0.3219985365867615, 0.06884875893592834, 0.009246014058589935, 0.4455977976322174, 0.35875818133354187, 0.14821843802928925, 0.014389485120773315, 0.14605595171451569, 0.3755940794944763, 0.00011345464736223221, 0.08936219662...
https://github.com/huggingface/datasets/issues/6153
custom load dataset to hub
> This is an issue for the [Datasets repo](https://github.com/huggingface/datasets). Thanks @sgugger , I guess I will wait for them to address the issue . Looking forward to hearing from them
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
30
custom load dataset to hub ### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to kn...
[ -0.09595561772584915, -0.4256044626235962, -0.02857060357928276, 0.09417476505041122, 0.12886443734169006, 0.20121902227401733, 0.44903939962387085, 0.0689777061343193, 0.24217689037322998, -0.0015878155827522278, -0.27853909134864807, 0.4689496159553528, -0.021488912403583527, 0.602734625...
https://github.com/huggingface/datasets/issues/6153
custom load dataset to hub
> You can use `.push_to_hub("<username>/<repo>")` to push a `Dataset` to the Hub. how about subset? like `.load_dataset("<username>/<repo>", "<subset>")`, how can I upload multi-dataset in one repo? thanks a lot !
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
30
custom load dataset to hub ### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to kn...
[ -0.29406723380088806, -0.4400443434715271, -0.10339990258216858, 0.11101488769054413, 0.14489278197288513, 0.17570531368255615, 0.3788090944290161, 0.09106414020061493, 0.20257386565208435, 0.06475281715393066, -0.39361804723739624, 0.49827510118484497, 0.05343193933367729, 0.6498448848724...
https://github.com/huggingface/datasets/issues/6153
custom load dataset to hub
> > You can use `.push_to_hub("<username>/<repo>")` to push a `Dataset` to the Hub. > > how about subset? like `.load_dataset("<username>/<repo>", "<subset>")`, how can I upload multi-dataset in one repo? thanks a lot ! I solved it by upgrading `Datasets` version to 2.15.0
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
42
custom load dataset to hub ### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to kn...
[ -0.29901057481765747, -0.3583149313926697, -0.07365421950817108, 0.14873673021793365, 0.12786591053009033, 0.1778547763824463, 0.3522978127002716, 0.15155166387557983, 0.16484887897968292, 0.09016447514295578, -0.413717657327652, 0.4942428469657898, -0.0019367644563317299, 0.52343761920928...
https://github.com/huggingface/datasets/issues/6144
NIH exporter file not found
another file not found: ``` Traceback (most recent call last): File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/implementations/http.py", line 417, in _info await _file_info( File "/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fs...
### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveri...
283
NIH exporter file not found ### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474...
[ -0.25845763087272644, 0.008933067321777344, -0.06965108215808868, 0.2353886514902115, 0.16815906763076782, 0.1301582157611847, 0.37461408972740173, 0.5034437775611877, 0.030956480652093887, 0.4779503345489502, -0.20891530811786652, 0.1097121313214302, -0.12225700169801712, 0.29824095964431...
https://github.com/huggingface/datasets/issues/6144
NIH exporter file not found
this seems to work but it's rather annoying. Summary of how to make it work: 1. get urls to parquet files into a list 2. load list to load_dataset via `load_dataset('parquet', data_files=urls)` (note api names to hf are really confusing sometimes) 3. then it should work, print a batch of text. presudo code ``...
### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveri...
319
NIH exporter file not found ### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474...
[ -0.25845763087272644, 0.008933067321777344, -0.06965108215808868, 0.2353886514902115, 0.16815906763076782, 0.1301582157611847, 0.37461408972740173, 0.5034437775611877, 0.030956480652093887, 0.4779503345489502, -0.20891530811786652, 0.1097121313214302, -0.12225700169801712, 0.29824095964431...
https://github.com/huggingface/datasets/issues/6142
the-stack-dedup fails to generate
It seems that some parquet files have additional columns. I ran a scan and found that two files have the additional `__id__` column: 1. `hf://datasets/bigcode/the-stack-dedup/data/numpy/data-00000-of-00001.parquet` 2. `hf://datasets/bigcode/the-stack-dedup/data/omgrofl/data-00000-of-00001.parquet` We should o...
### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token" the_stack_ds = ds.load_dataset("...
37
the-stack-dedup fails to generate ### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token"...
[ -0.26080232858657837, -0.025322362780570984, 0.030000489205121994, 0.3818623423576355, 0.04369671642780304, -0.03949389606714249, 0.5020750761032104, 0.3818800151348114, -0.049809277057647705, -0.06253014504909515, 0.2132195234298706, 0.5592827200889587, 0.04533137381076813, 0.054538622498...
https://github.com/huggingface/datasets/issues/6142
the-stack-dedup fails to generate
The files have been fixed ! I'm closing this one but feel free to re-open if you still have the issue
### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token" the_stack_ds = ds.load_dataset("...
21
the-stack-dedup fails to generate ### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token"...
[ -0.26080232858657837, -0.025322362780570984, 0.030000489205121994, 0.3818623423576355, 0.04369671642780304, -0.03949389606714249, 0.5020750761032104, 0.3818800151348114, -0.049809277057647705, -0.06253014504909515, 0.2132195234298706, 0.5592827200889587, 0.04533137381076813, 0.054538622498...
https://github.com/huggingface/datasets/issues/6141
TypeError: ClientSession._request() got an unexpected keyword argument 'https'
Hi! I cannot reproduce this error on my machine or in Colab. Which version of `fsspec` do you have installed?
### Describe the bug Hello, when I ran the [code snippet](https://huggingface.co/docs/datasets/v2.14.4/en/loading#json) on the document, I encountered the following problem: ``` Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more informatio...
20
TypeError: ClientSession._request() got an unexpected keyword argument 'https' ### Describe the bug Hello, when I ran the [code snippet](https://huggingface.co/docs/datasets/v2.14.4/en/loading#json) on the document, I encountered the following problem: ``` Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2....
[ 0.1858508586883545, -0.17859399318695068, -0.05237475782632828, 0.23951628804206848, 0.210856094956398, 0.03215394914150238, 0.06183711811900139, 0.17651456594467163, -0.1830967664718628, -0.04363609850406647, 0.1592230647802353, 0.3644048571586609, 0.18158461153507233, 0.09296353161334991...
https://github.com/huggingface/datasets/issues/6139
Offline dataset viewer
Hi, thanks for the suggestion. It's not possible at the moment. The viewer is part of the Hub codebase and only works on public datasets. Also, it relies on [Datasets Server](https://github.com/huggingface/datasets-server/), which prepares the data and provides an API to access the rows, size, etc. If you're interes...
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
66
Offline dataset viewer ### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some ki...
[ -0.5306938886642456, -0.10730009526014328, -0.06526915729045868, 0.14159582555294037, -0.16132581233978271, 0.02309022843837738, 0.4410686194896698, 0.32372599840164185, 0.11866354942321777, 0.28429853916168213, -0.07933167368173599, 0.25325560569763184, -0.200007826089859, 0.7066414952278...
https://github.com/huggingface/datasets/issues/6139
Offline dataset viewer
Hi, we are building an offline dataset viewer: https://github.com/Renumics/spotlight It supports many HF datasets, but currently you have to use it via Pandas: df=ds.to_pandas() spotlight.show(df) Would love to hear from you if that works for your use case. If not, feel free to open an issue on the repo: https://...
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
50
Offline dataset viewer ### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some ki...
[ -0.5132326483726501, 0.03274796903133392, -0.06676770746707916, 0.0754258930683136, -0.13829351961612701, 0.07182631641626358, 0.4700061082839966, 0.3784925639629364, 0.09861794114112854, 0.1790575236082077, -0.1039872094988823, 0.16178849339485168, -0.17100752890110016, 0.4878659844398498...
https://github.com/huggingface/datasets/issues/6139
Offline dataset viewer
@yuvalkirstain the dataset viewer is now available on private datasets for [PRO users](https://huggingface.co/pricing#pro) and [Enterprise Hub orgs](https://huggingface.co/enterprise). Would it fit your needs?
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
22
Offline dataset viewer ### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some ki...
[ -0.5053918957710266, -0.035690635442733765, -0.08218492567539215, 0.18974022567272186, -0.19470688700675964, 0.01134151965379715, 0.4535970389842987, 0.29954075813293457, 0.08927172422409058, 0.22967448830604553, -0.046800315380096436, 0.24354922771453857, -0.19393005967140198, 0.723965108...
https://github.com/huggingface/datasets/issues/6134
`datasets` cannot be installed alongside `apache-beam`
I noticed that this is actually covered by issue #5613, which for some reason I didn't see when I searched the issues in this repo the first time.
### Describe the bug If one installs `apache-beam` alongside `datasets` (which is required for the [wikipedia](https://huggingface.co/datasets/wikipedia#dataset-summary) dataset) in certain environments (such as a Google Colab notebook), they appear to install successfully, however, actually trying to do something s...
28
`datasets` cannot be installed alongside `apache-beam` ### Describe the bug If one installs `apache-beam` alongside `datasets` (which is required for the [wikipedia](https://huggingface.co/datasets/wikipedia#dataset-summary) dataset) in certain environments (such as a Google Colab notebook), they appear to install...
[ -0.3785070478916168, 0.3001393675804138, -0.019236870110034943, 0.31678611040115356, 0.0022399816662073135, 0.1467147171497345, 0.16303998231887817, 0.2311495542526245, 0.043366361409425735, -0.033071354031562805, -0.18713267147541046, 0.2680508494377136, -0.08574743568897247, -0.210212782...
https://github.com/huggingface/datasets/issues/6133
Dataset is slower after calling `to_iterable_dataset`
It's roughly the same code between the two so we can expected roughly the same speed, could you share a benchmark ?
### Describe the bug Can anyone explain why looping over a dataset becomes slower after calling `to_iterable_dataset` to convert to `IterableDataset` ### Steps to reproduce the bug Any dataset after converting to `IterableDataset` ### Expected behavior Maybe it should be faster on big dataset? I only test on small...
22
Dataset is slower after calling `to_iterable_dataset` ### Describe the bug Can anyone explain why looping over a dataset becomes slower after calling `to_iterable_dataset` to convert to `IterableDataset` ### Steps to reproduce the bug Any dataset after converting to `IterableDataset` ### Expected behavior Maybe ...
[ -0.2174040824174881, -0.3323044180870056, -0.06820900738239288, 0.25205761194229126, 0.29748088121414185, 0.08506972342729568, 0.2828558087348938, 0.2099769413471222, -0.23656868934631348, 0.07266642153263092, -0.08127907663583755, 0.657772958278656, 0.01809060014784336, -0.050601862370967...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
What should be the behavior in this case ? Should it override the default config with the added parameter ?
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
20
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.10071848332881927, -0.21733030676841736, 0.09942471981048584, 0.138337641954422, 0.07441161572933197, 0.030461840331554413, 0.3864666819572449, -0.030250702053308487, 0.0072455331683158875, 0.3657605051994324, 0.2475937306880951, 0.5385403037071228, 0.15046490728855133, 0.09754496067762...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
I know why it should be treated as a new config if overriding parameters are passed. But in some case, I just pass in some common fields like `data_dir`. For example, I want to extend the FolderBasedBuilder as a multi-config version, the `data_dir` or `data_files` are always passed by user and should not be consider...
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
79
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.12708958983421326, -0.21234217286109924, 0.1321590393781662, 0.1479583978652954, 0.12180236726999283, -0.052463315427303314, 0.442813903093338, -0.0014078877866268158, -0.013150251470506191, 0.3561832010746002, 0.2107001692056656, 0.5361362099647522, 0.08675207942724228, 0.0556658431887...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
Thinking more about it I think the current behavior is the right one. Provided parameters should be passed to instantiate a new BuilderConfig. What's the error you're getting ?
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
29
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.17760051786899567, -0.22203558683395386, 0.10286203026771545, 0.12729871273040771, 0.163836270570755, -0.0333736278116703, 0.43836987018585205, 0.01899762451648712, 0.012134678661823273, 0.4391412138938904, 0.14752227067947388, 0.4968748986721039, 0.14622272551059723, 0.1372001022100448...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
For example, this works to use default config with name '_all_': ```python datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train") ``` while this failed to use default config ```python datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train", data_dir='.') ``` After manually sp...
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
40
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.1606946587562561, -0.18930837512016296, 0.12298157811164856, 0.16191735863685608, 0.23092785477638245, 0.006570383906364441, 0.43681982159614563, 0.056640155613422394, 0.008178621530532837, 0.4307260513305664, 0.11619657278060913, 0.4788169860839844, 0.16797833144664764, 0.1444640606641...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
It should work if you explicitly ask for the config you want to override ```python load_dataset('/dataset/with/multiple/config', 'name_of_the_default_config', some_field_in_config='some') ``` Alternatively you can have a BuilderConfig class that when instantiated returns a config with the right default values. ...
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
60
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.23872387409210205, -0.2534017264842987, 0.0903264731168747, 0.07542885094881058, 0.20191647112369537, -0.02673345059156418, 0.4187552034854889, 0.03140871971845627, 0.04826795682311058, 0.5022532939910889, 0.07890907675027847, 0.5601711869239807, 0.1512410193681717, 0.16646063327789307,...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
@lhoestq Yes. But it doesn't work for me. Here's my dataset for example. ``` lass MyDatasetConfig(datasets.BuilderConfig): def __init__(self, name: str, version: str, **kwargs): self.option1 = kwargs.pop("option1", False) self.option2 = kwargs.pop("option2", 5) super().__init__( ...
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
124
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.15546810626983643, -0.19105103611946106, 0.1220829039812088, 0.1262054592370987, 0.13576892018318176, 0.0092812180519104, 0.39707696437835693, -0.008440513163805008, 0.03488986939191818, 0.390209436416626, 0.17155399918556213, 0.49910902976989746, 0.17679956555366516, 0.0378392860293388...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
@lhoestq The error is ``` def _info(self) -> DatasetInfo: _ = self.option1 <- .... AttributeError: 'BuilderConfig' object has no attribute 'option1' ``` which seems to find another unknown config. You can try this line `datasets.load_dataset("indonesian-nlp/librivox-indonesia", split="train",...
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
63
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.14594511687755585, -0.2705953121185303, 0.13886941969394684, 0.16551458835601807, 0.19108061492443085, 0.022060692310333252, 0.45360267162323, 0.06475993990898132, 0.020565301179885864, 0.4646129608154297, 0.06959904730319977, 0.42455095052719116, 0.17303040623664856, 0.1513697803020477...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
I see, you just have to set this class attribute to your builder class :) ```python BUILDER_CONFIG_CLASS = MyDatasetConfig ```
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
20
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.2308122217655182, -0.18711376190185547, 0.10418528318405151, 0.13735905289649963, 0.26602670550346375, 0.048790208995342255, 0.4744296371936798, 0.07422854751348495, 0.00046611763536930084, 0.5087602138519287, 0.10259091854095459, 0.4853575527667999, 0.1757095754146576, 0.15794610977172...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
So what does this attribute do? In most cases it's not used and the [documents for multi-config dataset](https://huggingface.co/docs/datasets/main/en/image_dataset#multiple-configurations) never mentioned that.
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
21
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.10387644171714783, -0.4073186218738556, 0.08251374959945679, 0.16357910633087158, 0.21165812015533447, 0.21384534239768982, 0.4002058207988739, -0.19926875829696655, 0.02706778421998024, 0.45096319913864136, 0.10380776971578598, 0.36296340823173523, 0.1762275993824005, 0.156501665711402...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
It tells which builder config class to instantiate if additional config parameters are passed to load_dataset
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
16
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.1929900348186493, -0.22648170590400696, 0.09661237895488739, 0.19210220873355865, 0.17225050926208496, 0.018309593200683594, 0.4497455954551697, 0.04452288895845413, 0.04450370743870735, 0.45697885751724243, 0.15882079303264618, 0.5114297866821289, 0.17513571679592133, 0.135041221976280...
https://github.com/huggingface/datasets/issues/6130
default config name doesn't work when config kwargs are specified.
@lhoestq maybe we can enhance the document to say something about the common attributes of `DatasetBuilder`
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
16
default config name doesn't work when config kwargs are specified. ### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to...
[ -0.19917605817317963, -0.18726637959480286, 0.07228025794029236, 0.11664003878831863, 0.17154376208782196, 0.05313583463430405, 0.4100954532623291, 0.04448212310671806, 0.007122766226530075, 0.47564440965652466, 0.1492566019296646, 0.5220495462417603, 0.20773714780807495, 0.128852605819702...
https://github.com/huggingface/datasets/issues/6128
IndexError: Invalid key: 88 is out of bounds for size 0
> I tried this and got the following error: ``` Traceback (most recent call last): File "/cephyr/NOBACKUP/groups/snic2021-23-24/LLM4-CodeOpt/env/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 324, in _compile out_code = transform_code_object(code, transform) File "/cephyr/NOBACKUP...
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
326
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transfor...
[ -0.4605797231197357, -0.2765989899635315, -0.027295701205730438, 0.47311878204345703, 0.09124542772769928, -0.04254929721355438, 0.3153265416622162, 0.4706236720085144, 0.08070404827594757, 0.04917013645172119, -0.24383287131786346, 0.4241337776184082, 0.007434375584125519, -0.194642454385...
https://github.com/huggingface/datasets/issues/6128
IndexError: Invalid key: 88 is out of bounds for size 0
Hi @TomasAndersonFang, I guess in this case it may be an issue with `transformers` (or `PyTorch`). I would recommend you open an issue on their repo.
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
26
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transfor...
[ -0.4605797231197357, -0.2765989899635315, -0.027295701205730438, 0.47311878204345703, 0.09124542772769928, -0.04254929721355438, 0.3153265416622162, 0.4706236720085144, 0.08070404827594757, 0.04917013645172119, -0.24383287131786346, 0.4241337776184082, 0.007434375584125519, -0.194642454385...
https://github.com/huggingface/datasets/issues/6128
IndexError: Invalid key: 88 is out of bounds for size 0
@TomasAndersonFang were you able to find a solution to this issue? I would highly appreciate any help. Thanks!
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
18
IndexError: Invalid key: 88 is out of bounds for size 0 ### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transfor...
[ -0.4605797231197357, -0.2765989899635315, -0.027295701205730438, 0.47311878204345703, 0.09124542772769928, -0.04254929721355438, 0.3153265416622162, 0.4706236720085144, 0.08070404827594757, 0.04917013645172119, -0.24383287131786346, 0.4241337776184082, 0.007434375584125519, -0.194642454385...
https://github.com/huggingface/datasets/issues/6126
Private datasets do not load when passing token
Our CI did not catch this issue because with current implementation, stored token in `HfFolder` (which always exists) is used by default.
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
22
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845439016819, 0.26927897334098816, 0.007149696350097656, 0.2665907144546509, -0.10046812891960144, -0.1513126790523529, 0.74147629737854, 0.4454636871814728, 0.05207201465964317, 0.13438206911087036, -0.2761479318141937, 0.32719337940216064, -0.06664903461933136, 0.08730249106884003, ...
https://github.com/huggingface/datasets/issues/6126
Private datasets do not load when passing token
I can confirm this and have the same problem (and just went almost crazy because I couldn't figure out the source of this problem because on another computer everything worked well even with `DownloadMode.FORCE_REDOWNLOAD`).
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
34
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845439016819, 0.26927897334098816, 0.007149696350097656, 0.2665907144546509, -0.10046812891960144, -0.1513126790523529, 0.74147629737854, 0.4454636871814728, 0.05207201465964317, 0.13438206911087036, -0.2761479318141937, 0.32719337940216064, -0.06664903461933136, 0.08730249106884003, ...
https://github.com/huggingface/datasets/issues/6126
Private datasets do not load when passing token
We are planning to do a patch release today, after the merge of the fix: - #6127 In the meantime, the problem can be circumvented by passing `download_config` instead: ```python from datasets import DownloadConfig, load_dataset load_dataset("<DATASET-NAME>", split="train", download_config=DownloadConfig(token=...
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
39
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845439016819, 0.26927897334098816, 0.007149696350097656, 0.2665907144546509, -0.10046812891960144, -0.1513126790523529, 0.74147629737854, 0.4454636871814728, 0.05207201465964317, 0.13438206911087036, -0.2761479318141937, 0.32719337940216064, -0.06664903461933136, 0.08730249106884003, ...
https://github.com/huggingface/datasets/issues/6126
Private datasets do not load when passing token
> We are planning to do a patch release today, after the merge of the fix: > > * [Fix authentication issues #6127](https://github.com/huggingface/datasets/pull/6127) > > > In the meantime, the problem can be circumvented by passing `download_config` instead: > > ```python > from datasets import Download...
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
78
Private datasets do not load when passing token ### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `downl...
[ -0.2845439016819, 0.26927897334098816, 0.007149696350097656, 0.2665907144546509, -0.10046812891960144, -0.1513126790523529, 0.74147629737854, 0.4454636871814728, 0.05207201465964317, 0.13438206911087036, -0.2761479318141937, 0.32719337940216064, -0.06664903461933136, 0.08730249106884003, ...
https://github.com/huggingface/datasets/issues/6124
Datasets crashing runs due to KeyError
i once had the same error and I could fix that by pushing a fake or a dummy commit on my hugging face dataset repo
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
25
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.4270743429660797, 0.023739099502563477, 0.022228561341762543, 0.4859737753868103, 0.30645328760147095, 0.000822208821773529, 0.2155393809080124, 0.35969701409339905, 0.11036765575408936, 0.11428535729646683, -0.09585324674844742, 0.28653615713119507, -0.5202805399894714, 0.1167646721005...
https://github.com/huggingface/datasets/issues/6124
Datasets crashing runs due to KeyError
Hi! We need a reproducer to fix this. Can you provide a link to the dataset (if it's public)?
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
19
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.4270743429660797, 0.023739099502563477, 0.022228561341762543, 0.4859737753868103, 0.30645328760147095, 0.000822208821773529, 0.2155393809080124, 0.35969701409339905, 0.11036765575408936, 0.11428535729646683, -0.09585324674844742, 0.28653615713119507, -0.5202805399894714, 0.1167646721005...
https://github.com/huggingface/datasets/issues/6124
Datasets crashing runs due to KeyError
> Hi! We need a reproducer to fix this. Can you provide a link to the dataset (if it's public)? Hi Mario, Unfortunately, the dataset in question is currently private until the model is trained and released. This is not happening with one dataset but numerous hosted private datasets. I am only loading the da...
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
69
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.4270743429660797, 0.023739099502563477, 0.022228561341762543, 0.4859737753868103, 0.30645328760147095, 0.000822208821773529, 0.2155393809080124, 0.35969701409339905, 0.11036765575408936, 0.11428535729646683, -0.09585324674844742, 0.28653615713119507, -0.5202805399894714, 0.1167646721005...
https://github.com/huggingface/datasets/issues/6124
Datasets crashing runs due to KeyError
Hi, I have the same error in the dataset viewer with my dataset https://huggingface.co/datasets/elsaEU/ELSA10M_track1 Has anyone solved this issue? Edit: After a dummy commit the error changed in ConfigNamesError
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
29
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.4270743429660797, 0.023739099502563477, 0.022228561341762543, 0.4859737753868103, 0.30645328760147095, 0.000822208821773529, 0.2155393809080124, 0.35969701409339905, 0.11036765575408936, 0.11428535729646683, -0.09585324674844742, 0.28653615713119507, -0.5202805399894714, 0.1167646721005...
https://github.com/huggingface/datasets/issues/6124
Datasets crashing runs due to KeyError
@rs9000 The problem seems to be the (large) number of commits, as explained in https://huggingface.co/docs/hub/repositories-recommendations. This can be fixed by running: ```python import huggingface_hub huggingface_hub.super_squash_history(repo_id="elsaEU/ELSA10M_track1") ``` The issue stems from `push_to_hub`...
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
68
Datasets crashing runs due to KeyError ### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes th...
[ -0.4270743429660797, 0.023739099502563477, 0.022228561341762543, 0.4859737753868103, 0.30645328760147095, 0.000822208821773529, 0.2155393809080124, 0.35969701409339905, 0.11036765575408936, 0.11428535729646683, -0.09585324674844742, 0.28653615713119507, -0.5202805399894714, 0.1167646721005...
https://github.com/huggingface/datasets/issues/6123
Inaccurate Bounding Boxes in "wildreceipt" Dataset
Hi! Thanks for the investigation, but we are not the authors of these datasets, so please report this on the Hub instead so that the actual authors can fix it.
### Describe the bug I would like to bring to your attention an issue related to the accuracy of bounding boxes within the "wildreceipt" dataset, which is made available through the Hugging Face API. Specifically, I have identified a discrepancy between the bounding boxes generated by the dataset loading commands, n...
30
Inaccurate Bounding Boxes in "wildreceipt" Dataset ### Describe the bug I would like to bring to your attention an issue related to the accuracy of bounding boxes within the "wildreceipt" dataset, which is made available through the Hugging Face API. Specifically, I have identified a discrepancy between the boundi...
[ 0.05812046304345131, -0.16705361008644104, 0.017445780336856842, 0.37785375118255615, -0.07149197161197662, -0.10320518910884857, -0.047535572201013565, 0.11651021242141724, 0.15703533589839935, 0.05942028760910034, -0.26452016830444336, -0.027786685153841972, -0.04148972034454346, 0.30275...
https://github.com/huggingface/datasets/issues/6120
Lookahead streaming support?
In which format is your dataset? We could expose the `pre_buffer` flag for Parquet to use PyArrow's background thread pool to speed up loading.
### Feature request From what I understand, streaming dataset currently pulls the data, and process the data as it is requested. This can introduce significant latency delays when data is loaded into the training process, needing to wait for each segment. While the delays might be dataset specific (or even mappi...
24
Lookahead streaming support? ### Feature request From what I understand, streaming dataset currently pulls the data, and process the data as it is requested. This can introduce significant latency delays when data is loaded into the training process, needing to wait for each segment. While the delays might be ...
[ -0.48588499426841736, -0.04234772175550461, 0.018325649201869965, -0.33982229232788086, 0.020539145916700363, -0.15050539374351501, 0.16886234283447266, 0.3847529888153076, 0.07267086207866669, -0.13585205376148224, -0.025371691212058067, 0.11459363251924515, -0.23636983335018158, 0.502763...
https://github.com/huggingface/datasets/issues/6118
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator
Hi! `IterableDataset.from_generator` expects a generator function, not the object (to be consistent with `Dataset.from_generator`). You can fix the above snippet as follows: ```python train_dataset = IterableDataset.from_generator(line_generator, fn_kwargs={"files": model_training_files}) ```
### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a generator. **Code example** ``` def line_generator(files: List[Path]): if isinstance(f...
29
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator ### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a ge...
[ -0.19252288341522217, 0.05175009369850159, 0.01248568668961525, 0.254591166973114, 0.19072991609573364, -0.06797067821025848, 0.3202352523803711, 0.2202139049768448, -0.08589575439691544, 0.0689161941409111, 0.4876120388507843, 0.4592864513397217, -0.46445536613464355, -0.0849163830280304,...
https://github.com/huggingface/datasets/issues/6118
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator
to anyone reaching this issue, the argument is `gen_kwargs`: ```py train_dataset = IterableDataset.from_generator(line_generator, gen_kwargs={"files": model_training_files}) ```
### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a generator. **Code example** ``` def line_generator(files: List[Path]): if isinstance(f...
16
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator ### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a ge...
[ -0.19252288341522217, 0.05175009369850159, 0.01248568668961525, 0.254591166973114, 0.19072991609573364, -0.06797067821025848, 0.3202352523803711, 0.2202139049768448, -0.08589575439691544, 0.0689161941409111, 0.4876120388507843, 0.4592864513397217, -0.46445536613464355, -0.0849163830280304,...
https://github.com/huggingface/datasets/issues/6114
Cache not being used when loading commonvoice 8.0.0
You can avoid this by using the `revision` parameter in `load_dataset` to always force downloading a specific commit (if not specified it defaults to HEAD, hence the redownload).
### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used as the cached version last time I touched the ec2 ins...
28
Cache not being used when loading commonvoice 8.0.0 ### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used...
[ -0.009360961616039276, 0.14862418174743652, 0.019389677792787552, 0.4109504222869873, 0.010041216388344765, 0.1771545112133026, 0.09138110280036926, 0.2557068467140198, 0.4379892349243164, -0.15505532920360565, -0.06235896050930023, 0.03413013368844986, 0.3345111012458801, -0.4339958727359...
https://github.com/huggingface/datasets/issues/6114
Cache not being used when loading commonvoice 8.0.0
Thanks @mariosasko this works well, looks like I should have read the documentation a bit more carefully. It is still a bit confusing which hash I should provide: passing `revision = c8fd66e85f086e3abb11eeee55b1737a3d1e8487` from https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/commits/main cau...
### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used as the cached version last time I touched the ec2 ins...
59
Cache not being used when loading commonvoice 8.0.0 ### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used...
[ -0.009360961616039276, 0.14862418174743652, 0.019389677792787552, 0.4109504222869873, 0.010041216388344765, 0.1771545112133026, 0.09138110280036926, 0.2557068467140198, 0.4379892349243164, -0.15505532920360565, -0.06235896050930023, 0.03413013368844986, 0.3345111012458801, -0.4339958727359...
https://github.com/huggingface/datasets/issues/6113
load_dataset() fails with streamlit caching inside docker
Hi! This should be fixed in the latest (patch) release (run `pip install -U datasets` to install it). This behavior was due to a bug in our authentication logic.
### Describe the bug When calling `load_dataset` in a streamlit application running within a docker container, get a failure with the error message: EmptyDatasetError: The directory at hf://datasets/fetch-rewards/inc-rings-2000@bea27cf60842b3641eae418f38864a2ec4cde684 doesn't contain any data files Traceback: Fil...
29
load_dataset() fails with streamlit caching inside docker ### Describe the bug When calling `load_dataset` in a streamlit application running within a docker container, get a failure with the error message: EmptyDatasetError: The directory at hf://datasets/fetch-rewards/inc-rings-2000@bea27cf60842b3641eae418f3886...
[ -0.49024948477745056, 0.21815231442451477, -0.10225403308868408, 0.37660008668899536, 0.2452813684940338, 0.0007972791790962219, 0.6295656561851501, 0.18384714424610138, 0.11621174216270447, 0.029357001185417175, 0.008320461958646774, 0.06578730791807175, 0.05961155146360397, 0.12017665058...
https://github.com/huggingface/datasets/issues/6112
yaml error using push_to_hub with generated README.md
Thanks for reporting! This is a bug in converting the `ArrayXD` types to YAML. It will be fixed soon.
### Describe the bug When I construct a dataset with the following features: ``` features = Features( { "pixel_values": Array3D(dtype="float64", shape=(3, 224, 224)), "input_ids": Sequence(feature=Value(dtype="int64")), "attention_mask": Sequence(Value(dtype="int64")), "token...
19
yaml error using push_to_hub with generated README.md ### Describe the bug When I construct a dataset with the following features: ``` features = Features( { "pixel_values": Array3D(dtype="float64", shape=(3, 224, 224)), "input_ids": Sequence(feature=Value(dtype="int64")), "attentio...
[ -0.14145278930664062, -0.6504640579223633, 0.16394352912902832, 0.21164903044700623, 0.3589768409729004, 0.14997607469558716, 0.371343195438385, 0.235913947224617, 0.149237722158432, -0.15944106876850128, 0.1632692813873291, 0.035204414278268814, -0.10284470021724701, 0.3377150297164917, ...
https://github.com/huggingface/datasets/issues/6111
raise FileNotFoundError("Directory {dataset_path} is neither a `Dataset` directory nor a `DatasetDict` directory." )
This should work: `load_dataset("path/to/downloaded_repo")` `load_from_disk` is intended to be used on directories created with `Dataset.save_to_disk` or `DatasetDict.save_to_disk`
### Describe the bug For researchers in some countries or regions, it is usually the case that the download ability of `load_dataset` is disabled due to the complex network environment. People in these regions often prefer to use git clone or other programming tricks to manually download the files to the disk (for exa...
17
raise FileNotFoundError("Directory {dataset_path} is neither a `Dataset` directory nor a `DatasetDict` directory." ) ### Describe the bug For researchers in some countries or regions, it is usually the case that the download ability of `load_dataset` is disabled due to the complex network environment. People in thes...
[ -0.2685805857181549, -0.06441386044025421, 0.07613176107406616, 0.3604748249053955, 0.048268117010593414, -0.09567484259605408, 0.1072523444890976, 0.2347446084022522, 0.24625617265701294, 0.14202754199504852, -0.1597762256860733, 0.0873812884092331, 0.0206072349101305, 0.10617519170045853...
https://github.com/huggingface/datasets/issues/6111
raise FileNotFoundError("Directory {dataset_path} is neither a `Dataset` directory nor a `DatasetDict` directory." )
> This should work: `load_dataset("path/to/downloaded_repo")` > > `load_from_disk` is intended to be used on directories created with `Dataset.save_to_disk` or `DatasetDict.save_to_disk` Thanks for your help. This works.
### Describe the bug For researchers in some countries or regions, it is usually the case that the download ability of `load_dataset` is disabled due to the complex network environment. People in these regions often prefer to use git clone or other programming tricks to manually download the files to the disk (for exa...
26
raise FileNotFoundError("Directory {dataset_path} is neither a `Dataset` directory nor a `DatasetDict` directory." ) ### Describe the bug For researchers in some countries or regions, it is usually the case that the download ability of `load_dataset` is disabled due to the complex network environment. People in thes...
[ -0.2685805857181549, -0.06441386044025421, 0.07613176107406616, 0.3604748249053955, 0.048268117010593414, -0.09567484259605408, 0.1072523444890976, 0.2347446084022522, 0.24625617265701294, 0.14202754199504852, -0.1597762256860733, 0.0873812884092331, 0.0206072349101305, 0.10617519170045853...
https://github.com/huggingface/datasets/issues/6110
[BUG] Dataset initialized from in-memory data does not create cache.
This is expected behavior. You must provide `cache_file_name` when performing `.map` on an in-memory dataset for the result to be cached.
### Describe the bug `Dataset` initialized from in-memory data (dictionary in my case, haven't tested with other types) does not create cache when processed with the `map` method, unlike `Dataset` initialized by other methods such as `load_dataset`. ### Steps to reproduce the bug ```python # below code was ru...
21
[BUG] Dataset initialized from in-memory data does not create cache. ### Describe the bug `Dataset` initialized from in-memory data (dictionary in my case, haven't tested with other types) does not create cache when processed with the `map` method, unlike `Dataset` initialized by other methods such as `load_datase...
[ -0.0845947340130806, -0.3960634469985962, 0.030023328959941864, 0.37451672554016113, 0.34515082836151123, 0.14292395114898682, 0.03909599035978317, 0.28264233469963074, 0.20719923079013824, 0.004734069108963013, -0.05540502071380615, 0.5577743053436279, 0.06757721304893494, -0.212675526738...
https://github.com/huggingface/datasets/issues/6109
Problems in downloading Amazon reviews from HF
Thanks for reporting, @610v4nn1. Indeed, the source data files are no longer available. We have contacted the authors of the dataset and they report that Amazon has decided to stop distributing the multilingual reviews dataset. We are adding a notification about this issue to the dataset card. See: https://hug...
### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.54s/it] Extracting data files: 100%...
49
Problems in downloading Amazon reviews from HF ### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|██████████| 1/1 [00:...
[ -0.29059702157974243, -0.18349342048168182, -0.09265173971652985, 0.35295331478118896, 0.05249364674091339, 0.1200360432267189, 0.03875163197517395, 0.3933878242969513, 0.08402611315250397, 0.16796785593032837, -0.14502158761024475, -0.6513495445251465, 0.15460169315338135, 0.0938654616475...
https://github.com/huggingface/datasets/issues/6109
Problems in downloading Amazon reviews from HF
For those willing to transform the csv files from Kaggle into Huggingface datasets for their NLP course (exercise on summarisation), you can use this code on Google Collab: `from datasets import load_dataset import pandas as pd from datasets import Dataset, DatasetDict # Load your CSV previously downloaded fi...
### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.54s/it] Extracting data files: 100%...
157
Problems in downloading Amazon reviews from HF ### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|██████████| 1/1 [00:...
[ -0.29059702157974243, -0.18349342048168182, -0.09265173971652985, 0.35295331478118896, 0.05249364674091339, 0.1200360432267189, 0.03875163197517395, 0.3933878242969513, 0.08402611315250397, 0.16796785593032837, -0.14502158761024475, -0.6513495445251465, 0.15460169315338135, 0.0938654616475...
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
Yesterday I waited for more than 12 hours to make sure it was really **stuck** instead of proceeding too slow.
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
20
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("js...
[ -0.24503041803836823, -0.01857014000415802, -0.029039155691862106, 0.22701047360897064, -0.018362510949373245, 0.059319086372852325, 0.26870352029800415, 0.23350222408771515, 0.12182776629924774, 0.18180546164512634, 0.059043578803539276, 0.5354201793670654, -0.11318405717611313, -0.092812...
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
I've had similar weird issues with `load_dataset` as well. Not multiple files, but dataset is quite big, about 50G.
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
19
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("js...
[ -0.24503041803836823, -0.01857014000415802, -0.029039155691862106, 0.22701047360897064, -0.018362510949373245, 0.059319086372852325, 0.26870352029800415, 0.23350222408771515, 0.12182776629924774, 0.18180546164512634, 0.059043578803539276, 0.5354201793670654, -0.11318405717611313, -0.092812...
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
We use a generic multiprocessing code, so there is little we can do about this - unfortunately, turning off multiprocessing seems to be the only solution. Multithreading would make our code easier to maintain and (most likely) avoid issues such as this one, but we cannot use it until the GIL is dropped (no-GIL Python s...
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
67
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("js...
[ -0.24503041803836823, -0.01857014000415802, -0.029039155691862106, 0.22701047360897064, -0.018362510949373245, 0.059319086372852325, 0.26870352029800415, 0.23350222408771515, 0.12182776629924774, 0.18180546164512634, 0.059043578803539276, 0.5354201793670654, -0.11318405717611313, -0.092812...
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
The problem seems to be the `Generating train split`. Is it possible to avoid that? I have a dataset saved, just want to load it but somehow running into issues with that again.
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
33
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("js...
[ -0.24503041803836823, -0.01857014000415802, -0.029039155691862106, 0.22701047360897064, -0.018362510949373245, 0.059319086372852325, 0.26870352029800415, 0.23350222408771515, 0.12182776629924774, 0.18180546164512634, 0.059043578803539276, 0.5354201793670654, -0.11318405717611313, -0.092812...
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
Hey guys, recently I ran into this problem again and I spent one whole day trying to locate the problem. Finally I found the problem seems to be with `pyarrow`'s json parser, and it seems a long-existing problem. Similar issue can be found in #2181. Anyway, my solution is to adjust the `load_dataset`'s parameter `chunk...
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
128
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("js...
[ -0.24503041803836823, -0.01857014000415802, -0.029039155691862106, 0.22701047360897064, -0.018362510949373245, 0.059319086372852325, 0.26870352029800415, 0.23350222408771515, 0.12182776629924774, 0.18180546164512634, 0.059043578803539276, 0.5354201793670654, -0.11318405717611313, -0.092812...
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
Experiencing the same issue with the `kaist-ai/Feedback-Collection` dataset, which is comparatively small i.e. 100k rows. Code to reproduce ``` from datasets import load_dataset dataset = load_dataset("kaist-ai/Feedback-Collection") ``` I have tried setting `num_proc=1` as well as `chunksize=1024, 64` but pro...
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
42
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("js...
[ -0.24503041803836823, -0.01857014000415802, -0.029039155691862106, 0.22701047360897064, -0.018362510949373245, 0.059319086372852325, 0.26870352029800415, 0.23350222408771515, 0.12182776629924774, 0.18180546164512634, 0.059043578803539276, 0.5354201793670654, -0.11318405717611313, -0.092812...
https://github.com/huggingface/datasets/issues/6106
load local json_file as dataset
Hi! We use PyArrow to read JSON files, and PyArrow doesn't allow different value types in the same column. #5776 should address this. In the meantime, you can combine `Dataset.from_generator` with the above code to cast the values to the same type.
### Describe the bug I tried to load local json file as dataset but failed to parsing json file because some columns are 'float' type. ### Steps to reproduce the bug 1. load json file with certain columns are 'float' type. For example `data = load_data("json", data_files=JSON_PATH)` 2. Then, the error will be trigg...
42
load local json_file as dataset ### Describe the bug I tried to load local json file as dataset but failed to parsing json file because some columns are 'float' type. ### Steps to reproduce the bug 1. load json file with certain columns are 'float' type. For example `data = load_data("json", data_files=JSON_PATH)`...
[ -0.20884795486927032, 0.0696876049041748, -0.03522964194417, 0.17629308998584747, 0.43494713306427, 0.08668077737092972, 0.350877046585083, 0.6542980670928955, 0.14965486526489258, 0.05033373832702637, -0.157887265086174, 0.867743730545044, 0.1182992160320282, 0.10017558187246323, -0.180...
https://github.com/huggingface/datasets/issues/6099
How do i get "amazon_us_reviews
Seems like the problem isn't with the library, but the dataset itself hosted on AWS S3. Its [homepage](https://s3.amazonaws.com/amazon-reviews-pds/readme.html) returns an `AccessDenied` XML response, which is the same thing you get if you try to log the `record` that triggers the exception ```python try: ex...
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1...
67
How do i get "amazon_us_reviews ### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00'...
[ -0.04660879448056221, -0.2530133128166199, -0.2823685109615326, 0.24994559586048126, 0.295474112033844, 0.4268629848957062, 0.30982983112335205, 0.08909302949905396, -0.0665658563375473, 0.20722532272338867, 0.07577083259820938, 0.04079410061240196, 0.2035202980041504, 0.3681924641132355, ...
https://github.com/huggingface/datasets/issues/6099
How do i get "amazon_us_reviews
I have figured it out. there was an option of **parquet formated files** i downloaded some from there.
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1...
18
How do i get "amazon_us_reviews ### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00'...
[ -0.04660879448056221, -0.2530133128166199, -0.2823685109615326, 0.24994559586048126, 0.295474112033844, 0.4268629848957062, 0.30982983112335205, 0.08909302949905396, -0.0665658563375473, 0.20722532272338867, 0.07577083259820938, 0.04079410061240196, 0.2035202980041504, 0.3681924641132355, ...
https://github.com/huggingface/datasets/issues/6099
How do i get "amazon_us_reviews
Thanks for reporting, @IqraBaluch. We contacted the authors and unfortunately they reported that Amazon has decided to stop distributing this dataset.
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1...
21
How do i get "amazon_us_reviews ### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00'...
[ -0.04660879448056221, -0.2530133128166199, -0.2823685109615326, 0.24994559586048126, 0.295474112033844, 0.4268629848957062, 0.30982983112335205, 0.08909302949905396, -0.0665658563375473, 0.20722532272338867, 0.07577083259820938, 0.04079410061240196, 0.2035202980041504, 0.3681924641132355, ...
https://github.com/huggingface/datasets/issues/6099
How do i get "amazon_us_reviews
I noticed that some book data is missing, we can only get Books_v1_02 data. Is there any way we can get the Books_v1_00 and Books_v1_01? Really appreciate !!!
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1...
28
How do i get "amazon_us_reviews ### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00'...
[ -0.04660879448056221, -0.2530133128166199, -0.2823685109615326, 0.24994559586048126, 0.295474112033844, 0.4268629848957062, 0.30982983112335205, 0.08909302949905396, -0.0665658563375473, 0.20722532272338867, 0.07577083259820938, 0.04079410061240196, 0.2035202980041504, 0.3681924641132355, ...
https://github.com/huggingface/datasets/issues/6099
How do i get "amazon_us_reviews
@albertvillanova will this dataset be retired given the data are no longer hosted on S3? What is done in cases such as these?
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1...
23
How do i get "amazon_us_reviews ### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00'...
[ -0.04660879448056221, -0.2530133128166199, -0.2823685109615326, 0.24994559586048126, 0.295474112033844, 0.4268629848957062, 0.30982983112335205, 0.08909302949905396, -0.0665658563375473, 0.20722532272338867, 0.07577083259820938, 0.04079410061240196, 0.2035202980041504, 0.3681924641132355, ...
https://github.com/huggingface/datasets/issues/6089
AssertionError: daemonic processes are not allowed to have children
We could add a "threads" parallel backend to `datasets.parallel.parallel_backend` to support downloading with threads but note that `download_and_extract` also decompresses archives, and this is a CPU-intensive task, which is not ideal for (Python) threads (good for IO-intensive tasks).
### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extract(self.download(url_or_urls)) ^^^^^^^^^^^^^^^^^ File "/Users...
38
AssertionError: daemonic processes are not allowed to have children ### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extr...
[ -0.5046077370643616, -0.41358450055122375, -0.15014885365962982, 0.4784199595451355, 0.1318594366312027, -0.006352901458740234, 0.22309695184230804, -0.05357160046696663, -0.0247789453715086, 0.07532718032598495, 0.13872188329696655, 0.24004310369491577, -0.2916395962238312, -0.12241759151...