html_url
stringlengths 51
51
| title
stringlengths 6
280
| comments
stringlengths 67
24.7k
| body
stringlengths 51
36.2k
| __index_level_0__
int64 1
1.17k
| comment_length
int64 16
1.45k
| text
stringlengths 190
38.3k
| embeddings
sequence |
---|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | FYI there are still 2k+ weekly users on `datasets` 2.6.1 which doesn't support the string label format for class labels. And among those, some are using datasets with class labels like imdb (60 users), conllpp (40), msra_ner (40), peoples_daily_enr (40), weibo_ner (30), conll2003 (20), etc. And renaming to string would break these users code. | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 54 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
FYI there are still 2k+ weekly users on `datasets` 2.6.1 which doesn't support the string label format for class labels. And among those, some are using datasets with class labels like imdb (60 users), conllpp (40), msra_ner (40), peoples_daily_enr (40), weibo_ner (30), conll2003 (20), etc. And renaming to string would break these users code. | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | but isn't `datasets 2.6.1` downloading files from the Hub with the corresponding tag? I thought we had something like this before | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 21 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
but isn't `datasets 2.6.1` downloading files from the Hub with the corresponding tag? I thought we had something like this before | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | We're using `main` as models do. Some datasets need to be updated from time to time, e.g. when a link to download the data is dead.
But yea a year ago we had those tags, we just ended up not using them | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 42 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
We're using `main` as models do. Some datasets need to be updated from time to time, e.g. when a link to download the data is dead.
But yea a year ago we had those tags, we just ended up not using them | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | I opened https://github.com/huggingface/datasets/issues/5406 to communicate on this. Let me know what you think, and if it sounds good to you I can pin this issue | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 25 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
I opened https://github.com/huggingface/datasets/issues/5406 to communicate on this. Let me know what you think, and if it sounds good to you I can pin this issue | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | So, is it OK to make the bulk edit on the Hub now or should we wait longer? If the latter, how long? | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 23 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
So, is it OK to make the bulk edit on the Hub now or should we wait longer? If the latter, how long? | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | I think we can do it. If you want to be extra cautious you can do it for all datasets except imdb and conllpp for now which are actively used by 2.6.1 users. For those two we can keep the YAML like this for some more time, or alternatively use the old dataset_infos.json file | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 54 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
I think we can do it. If you want to be extra cautious you can do it for all datasets except imdb and conllpp for now which are actively used by 2.6.1 users. For those two we can keep the YAML like this for some more time, or alternatively use the old dataset_infos.json file | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | The bulk edit of canonical datasets (except imdb and conllpp) is running.
See e.g.: https://huggingface.co/datasets/acronym_identification/discussions/3
EDITED:
Done, except for "universal_morphologies", where I get
```
HTTPError: 413 Client Error: Payload Too Large for url: https://huggingface.co/api/validate-yaml
```
Also not done for the datasets missing matadata "dataset_info":
- mc4: https://huggingface.co/datasets/mc4/discussions/3
- the_pile: https://huggingface.co/datasets/the_pile/discussions/6
- timit_asr: https://huggingface.co/datasets/timit_asr/discussions/1 | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 53 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
The bulk edit of canonical datasets (except imdb and conllpp) is running.
See e.g.: https://huggingface.co/datasets/acronym_identification/discussions/3
EDITED:
Done, except for "universal_morphologies", where I get
```
HTTPError: 413 Client Error: Payload Too Large for url: https://huggingface.co/api/validate-yaml
```
Also not done for the datasets missing matadata "dataset_info":
- mc4: https://huggingface.co/datasets/mc4/discussions/3
- the_pile: https://huggingface.co/datasets/the_pile/discussions/6
- timit_asr: https://huggingface.co/datasets/timit_asr/discussions/1 | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | @lhoestq, there are 6 community datasets with YAML integer keys in their `dataset_info` `class_label`:
- indonlp/indonlu
- rcds/swiss_judgment_prediction
- Jean-Baptiste/wikiner_fr
- Bingsu/Cat_and_Dog
- taskydata/tasky_or_not
- RCC-MSU/collection3
Maybe we could open a PR on them as well? | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 36 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
@lhoestq, there are 6 community datasets with YAML integer keys in their `dataset_info` `class_label`:
- indonlp/indonlu
- rcds/swiss_judgment_prediction
- Jean-Baptiste/wikiner_fr
- Bingsu/Cat_and_Dog
- taskydata/tasky_or_not
- RCC-MSU/collection3
Maybe we could open a PR on them as well? | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | Let's do this then:
- [x] [indonlp/indonlu](https://huggingface.co/datasets/indonlp/indonlu/discussions/3)
- [x] rcds/swiss_judgment_prediction
- [x] Jean-Baptiste/wikiner_fr
- [x] Bingsu/Cat_and_Dog -> merged
- [x] taskydata/tasky_or_not (was already using quotes)
- [x] RCC-MSU/collection3
EDIT: all done :) | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 32 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
Let's do this then:
- [x] [indonlp/indonlu](https://huggingface.co/datasets/indonlp/indonlu/discussions/3)
- [x] rcds/swiss_judgment_prediction
- [x] Jean-Baptiste/wikiner_fr
- [x] Bingsu/Cat_and_Dog -> merged
- [x] taskydata/tasky_or_not (was already using quotes)
- [x] RCC-MSU/collection3
EDIT: all done :) | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5275 | YAML integer keys are not preserved Hub server-side | @lhoestq I was not asking you to do it, but asking if you agree me to do it... :man_facepalming:
As I self-assigned this issue... :sweat_smile: | After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets | 404 | 25 | YAML integer keys are not preserved Hub server-side
After an internal discussion (https://github.com/huggingface/moon-landing/issues/4563):
- YAML integer keys are not preserved server-side: they are transformed to strings
- See for example this Hub PR: https://huggingface.co/datasets/acronym_identification/discussions/1/files
- Original:
```yaml
class_label:
names:
0: B-long
1: B-short
```
- Returned by the server:
```yaml
class_label:
names:
'0': B-long
'1': B-short
```
- They are planning to enforce only string keys
- Other projects already use interger-transformed-to string keys: e.g. `transformers` models `id2label`: https://huggingface.co/roberta-large-mnli/blob/main/config.json
```yaml
"id2label": {
"0": "CONTRADICTION",
"1": "NEUTRAL",
"2": "ENTAILMENT"
}
```
On the other hand, at `datasets` we are currently using YAML integer keys for `dataset_info` `class_label`.
Please note (thanks @lhoestq for pointing out) that previous versions (2.6 and 2.7) of `datasets` need being patched:
```python
In [18]: Features._from_yaml_list([{'dtype': {'class_label': {'names': {'0': 'neg', '1': 'pos'}}}, 'name': 'label'}])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-974f07eea526> in <module>
----> 1 Features._from_yaml_list(ry)
~/Desktop/hf/nlp/src/datasets/features/features.py in _from_yaml_list(cls, yaml_data)
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
1744
-> 1745 return cls.from_dict(from_yaml_inner(yaml_data))
1746
1747 def encode_example(self, example):
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in <dictcomp>(.0)
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
-> 1741 return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
1742 else:
1743 raise TypeError(f"Expected a dict or a list but got {type(obj)}: {obj}")
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1734 return {"_type": snakecase_to_camelcase(obj["dtype"])}
1735 else:
-> 1736 return from_yaml_inner(obj["dtype"])
1737 else:
1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
~/Desktop/hf/nlp/src/datasets/features/features.py in from_yaml_inner(obj)
1736 return from_yaml_inner(obj["dtype"])
1737 else:
-> 1738 return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
1739 elif isinstance(obj, list):
1740 names = [_feature.pop("name") for _feature in obj]
~/Desktop/hf/nlp/src/datasets/features/features.py in unsimplify(feature)
1704 if isinstance(feature.get("class_label"), dict) and isinstance(feature["class_label"].get("names"), dict):
1705 label_ids = sorted(feature["class_label"]["names"])
-> 1706 if label_ids and label_ids != list(range(label_ids[-1] + 1)):
1707 raise ValueError(
1708 f"ClassLabel expected a value for all label ids [0:{label_ids[-1] + 1}] but some ids are missing."
TypeError: can only concatenate str (not "int") to str
```
TODO:
- [x] Remove YAML integer keys from `dataset_info` metadata
- [x] Make a patch release for affected `datasets` versions: 2.6 and 2.7
- [x] Communicate on the fix
- [x] Wait for adoption
- [x] Bulk edit the Hub to fix this in all canonical datasets
@lhoestq I was not asking you to do it, but asking if you agree me to do it... :man_facepalming:
As I self-assigned this issue... :sweat_smile: | [
-1.0408730506896973,
-0.7701073288917542,
-0.7022444009780884,
1.6244213581085205,
-0.0046040830202400684,
-1.3531185388565063,
0.038567349314689636,
-0.9089091420173645,
1.5970324277877808,
-0.737040638923645,
0.4560614228248596,
-1.7285661697387695,
-0.056928135454654694,
-0.7012096047401428,
-0.691463828086853,
-0.5185955166816711,
-0.3688766658306122,
-0.6537396907806396,
1.0677032470703125,
2.383251905441284,
1.2606788873672485,
-1.3681923151016235,
2.7000386714935303,
0.6863099932670593,
-0.20013846457004547,
-0.8350132703781128,
0.3924037516117096,
-0.05357480049133301,
-1.3974602222442627,
-0.1870509386062622,
-0.9410507082939148,
-0.12258613109588623,
-0.7033438682556152,
-0.6584617495536804,
0.019157040864229202,
0.637058675289154,
-0.18058302998542786,
-0.48445436358451843,
-0.4225333631038666,
-0.8145272731781006,
0.6303462386131287,
-0.312856525182724,
0.8700832724571228,
-0.29414424300193787,
1.7370504140853882,
-0.6037698984146118,
0.47730115056037903,
0.5127712488174438,
1.2614033222198486,
0.1983277052640915,
-0.0177773330360651,
0.42146146297454834,
0.30988091230392456,
0.012505271472036839,
0.6535382270812988,
1.279472827911377,
0.6654226183891296,
0.515979528427124,
0.8554595112800598,
-2.2788949012756348,
1.2444804906845093,
-0.7941913604736328,
0.2137012481689453,
1.3158940076828003,
-1.061267614364624,
0.39781978726387024,
-1.904649257659912,
-0.02909719944000244,
0.3824917674064636,
-2.0829555988311768,
0.2042439877986908,
-1.1861679553985596,
-0.5012950897216797,
1.055898904800415,
0.2931826114654541,
-1.2912541627883911,
-0.08744693547487259,
-0.26252180337905884,
0.919524610042572,
0.3316324055194855,
1.1297425031661987,
-1.6694973707199097,
0.12115323543548584,
-0.2821483612060547,
0.32166680693626404,
-1.1286296844482422,
-1.5444263219833374,
0.5319427251815796,
0.6948263049125671,
0.6060218214988708,
-0.20582760870456696,
0.8273425698280334,
-1.0804189443588257,
0.7778181433677673,
-1.045493483543396,
-1.9227458238601685,
-1.3523812294006348,
-2.391176223754883,
-2.2934622764587402,
0.661237895488739,
-0.42349743843078613,
-0.3077097237110138,
2.0569915771484375,
-1.025778889656067,
-1.775640606880188,
1.0828548669815063,
0.4573945701122284,
0.02129504084587097,
2.295417308807373,
0.19760958850383759,
-0.9877180457115173,
0.7439398169517517,
-0.9401102066040039,
0.5762067437171936,
-0.3695654273033142,
1.2931021451950073,
0.3935571610927582,
-1.0366586446762085,
1.685412049293518,
-0.5121771693229675,
0.5569300055503845,
-0.7800008654594421,
-0.2768935263156891,
-0.4671497642993927,
0.16849371790885925,
1.9271962642669678,
-0.2057754248380661,
1.4139779806137085,
-0.15002644062042236,
-1.463492751121521,
-1.3343980312347412,
0.7291809320449829,
0.48337748646736145,
-0.8265796303749084,
0.21521823108196259,
-0.40567028522491455,
0.16746729612350464,
0.020606335252523422,
1.0636261701583862,
1.2474592924118042,
0.8398810029029846,
-0.17099305987358093,
-0.9709761738777161,
0.0742487832903862,
0.07293300330638885,
-0.6011219024658203,
-1.6788901090621948,
-0.2043614387512207,
0.26039302349090576,
0.6415389776229858,
-1.1934562921524048,
1.99076509475708,
0.8599629402160645,
2.088482141494751,
0.9035555124282837,
-0.3996222913265228,
1.6349469423294067,
0.07609384506940842,
1.945443034172058,
-0.26350677013397217,
0.6348891854286194,
-0.5097642540931702,
-1.2791908979415894,
0.756320059299469,
-0.27399933338165283,
-2.0181734561920166,
-0.3449425995349884,
-0.9857178330421448,
-0.08252639323472977,
-0.9213479161262512,
1.0473990440368652,
-0.12000450491905212,
-1.3481110334396362,
0.23320749402046204,
-0.724306583404541,
0.027955375611782074,
-1.3447948694229126,
0.2912006080150604,
0.7489147782325745,
-0.7527821660041809,
0.1119077131152153,
-0.45109039545059204,
-1.412293553352356,
-0.6787096858024597,
0.4985062777996063,
1.725153923034668,
-0.7304862141609192,
0.9494531750679016,
1.0372886657714844,
-0.5898350477218628,
-0.02776521071791649,
0.463804692029953,
-0.4305064380168915,
0.845798671245575,
-0.9634573459625244,
-0.5638775825500488,
1.084417700767517,
-0.21227508783340454,
-0.5548032522201538,
1.3445335626602173,
0.7508818507194519,
-0.9718801975250244,
-0.3900630474090576,
-0.12626953423023224,
-0.7336319088935852,
0.08494801074266434,
-1.6182565689086914,
-0.019440896809101105,
0.27579614520072937,
-1.4769539833068848,
-0.5107789635658264,
-0.09288667142391205,
1.2930506467819214,
0.019086547195911407,
1.2555031776428223,
-0.18616560101509094,
-0.08091138303279877,
-0.5424821376800537,
-0.5446280837059021,
0.10515490174293518,
-0.1121862605214119,
-0.696673572063446,
0.32595372200012207,
-0.7647159099578857,
0.23090924322605133,
1.4003318548202515,
0.2267809808254242,
0.1283995658159256,
0.4985145628452301,
1.2924346923828125,
0.3985799551010132,
0.005417167209088802,
-0.889101505279541,
-1.661258339881897,
2.0204756259918213,
-1.655457615852356,
1.9643040895462036,
0.7799001932144165,
0.05330521613359451,
-1.792585849761963,
-1.931237816810608,
1.5795061588287354,
1.1544057130813599,
2.5149662494659424,
0.6584175825119019,
0.4343487620353699,
-0.8979084491729736,
-0.5967490673065186,
0.49055609107017517,
-0.6916947364807129,
-0.9425269365310669,
0.1823262870311737,
2.374319314956665,
1.7020318508148193,
-0.32988953590393066,
-0.2248906046152115,
-0.909546971321106,
1.4707027673721313,
-0.18263036012649536,
0.3097199499607086,
1.9161713123321533,
-0.33854857087135315,
-1.012420892715454,
1.3118293285369873,
-2.4855422973632812,
0.36052262783050537,
2.0131924152374268,
0.33365097641944885,
0.09426869451999664,
-1.124778389930725,
-0.7769780158996582,
-0.04308142885565758,
-0.5035684108734131,
-1.1899759769439697,
0.4557609260082245,
-0.17818309366703033,
-0.8137859106063843,
-1.3974621295928955,
0.13013136386871338,
-1.1674543619155884,
-1.7139736413955688,
0.313245952129364,
1.7705079317092896,
2.1719024181365967,
-0.8913441896438599,
1.4191614389419556,
-0.301815003156662,
0.3165881633758545,
1.2513957023620605,
1.3141276836395264,
3.1897799968719482,
1.8967031240463257,
-1.2471660375595093,
0.682180643081665,
-0.19764161109924316,
-0.5523201823234558,
1.1920838356018066,
-1.068853497505188,
1.1319557428359985,
-0.35135993361473083,
-1.2441141605377197,
-1.177237629890442,
0.8626114726066589,
0.4644314646720886,
-0.0444849468767643,
-0.4621001183986664,
0.946323812007904,
0.26315855979919434,
1.296122431755066,
0.667824387550354,
-0.19986242055892944,
0.4984922707080841,
-0.28750669956207275,
-0.43956127762794495,
1.5225995779037476,
0.029296305030584335,
-1.3984919786453247,
-2.3589820861816406,
-0.10380403697490692,
-1.02935791015625,
-0.050608616322278976,
-0.8748688697814941,
-1.0553356409072876,
1.5050153732299805,
0.4685162901878357,
-1.0134224891662598,
-0.06807099282741547,
-0.41180434823036194,
-0.5092899799346924,
2.6001880168914795,
-1.4472012519836426,
-0.32191914319992065,
-0.9919608235359192,
-0.5703170299530029,
1.589681625366211,
-1.0551203489303589,
-0.2842560112476349,
-1.0690447092056274,
-0.4446946084499359,
-1.3127402067184448,
-0.5553953647613525,
-0.018003124743700027,
-0.6867199540138245,
0.7862802147865295,
0.04441823065280914,
-1.3490617275238037,
-0.34723934531211853,
-1.1434800624847412,
0.7916651964187622,
-0.3422718644142151,
0.1271107941865921,
1.7882983684539795,
0.29489263892173767,
-0.2789112627506256,
0.8114125728607178,
1.1643418073654175,
0.6632770895957947,
-0.45528632402420044,
0.40572410821914673,
-0.5578303933143616,
0.5078191757202148,
-1.2366617918014526,
0.3319423794746399,
-2.9038729667663574,
0.6342657208442688,
0.14570653438568115,
-0.013953193090856075,
-0.17745272815227509,
-1.5588409900665283,
0.9610621929168701,
2.426807403564453,
-1.1084243059158325,
0.5900624394416809,
0.2565639913082123,
1.2037568092346191,
-1.728782057762146,
-0.12202233076095581,
-0.6406611800193787,
2.1341006755828857,
-0.16545245051383972,
1.1323765516281128,
-0.5326627492904663,
-2.4419937133789062,
0.52796471118927,
-1.314199447631836,
-0.9750667810440063,
0.7465675473213196,
-0.8469306230545044,
0.20026586949825287,
-1.2300173044204712,
-0.13001024723052979,
-0.9778188467025757,
-1.1127808094024658,
0.5616105198860168,
0.032503917813301086,
0.6819432973861694,
-0.7271178960800171,
0.3242341876029968,
-2.2324423789978027,
-1.441817283630371,
-0.20400312542915344,
-0.8758860230445862,
0.5237598419189453,
-0.324349045753479,
0.7818187475204468,
-0.03759661689400673,
-0.061712510883808136,
0.2761937081813812,
1.427053451538086,
3.2185842990875244,
0.060967445373535156,
0.3864271342754364,
-0.27352941036224365,
-1.0488085746765137,
1.6458665132522583,
0.9091199040412903,
-0.2474960833787918,
-0.5725178122520447,
-0.9547584056854248,
1.3452516794204712,
1.9149171113967896,
1.0716217756271362,
0.023457977920770645,
-0.9380669593811035,
-0.8775374293327332,
0.09672161191701889,
0.10348507016897202,
0.44691747426986694,
0.9568676352500916,
0.1997697502374649,
0.10707499086856842,
1.3034738302230835,
1.0340514183044434,
-0.26597562432289124,
0.4176729917526245,
-0.8492412567138672,
-0.3892165422439575,
0.5946409702301025,
0.34779855608940125,
0.00789265800267458,
0.20877136290073395,
-1.0659061670303345,
-0.2726849317550659,
-0.19806385040283203,
-0.7639394998550415,
-0.7467139959335327,
-0.46909624338150024,
-0.3838854730129242,
1.6572763919830322,
-0.07539968937635422,
-0.6306440830230713,
-0.014076792635023594,
-0.8149074912071228,
-0.006860858295112848,
-0.9984377026557922,
0.2093280702829361,
-0.235490620136261,
0.06359823793172836,
-0.26886996626853943,
1.7000445127487183,
-0.9878244400024414,
-2.184363842010498,
0.20933891832828522,
0.33655819296836853,
-0.4435059130191803,
-0.0695173591375351,
1.8194265365600586,
0.556350588798523,
1.2980574369430542,
1.6040085554122925,
1.1274223327636719,
-0.707725465297699,
-1.2748966217041016,
0.6666622757911682,
1.015491008758545,
-1.3158138990402222,
0.9071686863899231,
-0.11535654962062836,
-0.48696884512901306,
0.44508326053619385,
1.3496758937835693,
0.3973340094089508,
-1.9237730503082275,
0.7824522256851196,
-1.0904064178466797,
0.9811438322067261,
0.8487024903297424,
0.8430540561676025,
0.08845198154449463,
0.7185457348823547,
-1.249273419380188,
-0.9521636962890625,
-0.5870260000228882,
-0.6941964626312256,
1.7942601442337036,
-0.3346031606197357,
0.36411917209625244,
-0.2322087287902832,
-1.3517719507217407,
0.04892566800117493,
0.6701324582099915,
0.30361491441726685,
-0.38671132922172546,
0.7008498907089233,
-0.6447710990905762,
-1.1046555042266846,
-1.2290254831314087,
-0.5194385647773743,
-0.9753630757331848,
-0.9278361797332764,
0.929904043674469,
0.795814573764801,
0.5080201625823975,
1.9814268350601196,
0.7990131974220276,
0.11676540970802307,
-2.607595443725586,
0.8353211283683777,
0.41900286078453064,
-0.09956737607717514,
0.7489778399467468,
0.29348599910736084,
1.202975869178772,
-0.265322744846344,
0.6642299890518188,
-2.3369877338409424,
2.2832887172698975,
-0.127031147480011,
0.7379521727561951,
0.01550393644720316,
-0.0452781617641449,
0.9185872673988342,
0.4424589276313782,
0.4685898423194885,
-1.108899474143982,
0.8403599858283997,
-0.6799681186676025,
1.1520942449569702,
0.7575534582138062,
-0.9108068943023682,
0.12982890009880066,
1.1311184167861938,
0.3452853560447693,
-0.6057058572769165,
-1.0294651985168457,
-0.792931318283081,
0.9432105422019958,
1.7808457612991333,
0.03503328189253807,
0.12218818068504333,
0.9078561067581177,
0.7405461668968201,
-1.3394864797592163,
-0.07451040297746658,
-0.5696659684181213,
-0.5966539978981018,
1.9529340267181396,
2.0272984504699707,
-0.12286516278982162,
-0.04912605509161949,
-0.8445611000061035,
-1.4400376081466675,
0.8633478879928589,
0.20065459609031677,
-0.15701322257518768,
0.7497331500053406,
-0.713571310043335,
1.2472150325775146,
0.7875136733055115,
0.79814612865448,
0.19243751466274261,
0.04107757285237312,
0.1839907467365265,
-0.38684460520744324,
-1.1512264013290405,
-0.303552508354187,
-1.003665566444397,
-2.5267751216888428,
0.46110525727272034,
-0.11406384408473969,
-1.360511302947998,
0.07107823342084885,
-0.9543542861938477,
0.7958982586860657,
-0.5245850086212158,
-1.188862919807434,
-1.2398793697357178,
0.3138774633407593,
-0.05866565555334091,
0.6957724690437317,
-1.636508822441101,
-0.10461944341659546,
1.1656336784362793,
1.027736783027649,
-0.8136901259422302,
0.8012029528617859,
0.23700067400932312,
0.9968034625053406,
0.9940078854560852,
-0.30843862891197205,
0.4392925202846527,
0.2519877254962921,
-1.3168622255325317,
0.3099089562892914,
1.407358169555664,
0.10361934453248978,
1.4023116827011108,
-0.4217624068260193,
0.005352209322154522,
0.40308985114097595,
-0.2833695113658905,
-0.5737597942352295,
-0.8054677844047546,
0.6005483865737915,
-0.049579109996557236,
-0.9548851251602173,
-0.008348710834980011,
0.15043479204177856,
-0.07422035932540894,
0.2795800566673279,
-1.5040781497955322,
-0.022431999444961548,
-0.2967975437641144,
-0.6201371550559998,
-1.3389893770217896,
-0.07616735249757767,
1.2673040628433228,
-0.7431545853614807,
-0.10197149217128754,
0.6102046370506287,
-0.019050465896725655,
0.47081097960472107,
0.6095697283744812,
-0.7401481866836548,
-0.3477274179458618,
-0.1090073361992836,
-0.4233863949775696,
0.314302533864975,
1.2795343399047852,
-0.05649885535240173,
-0.9980476498603821,
0.5338262319564819,
-0.2844947576522827,
0.16085566580295563,
1.848912000656128,
-0.0487179271876812,
-0.9405298829078674,
0.36312344670295715,
-0.7760326862335205,
1.8529170751571655,
1.6535853147506714,
1.310779333114624,
-0.16632072627544403,
-0.9688704609870911,
0.7532356977462769,
-0.4530012607574463,
-0.3815463185310364,
0.8496095538139343,
0.26048174500465393,
-0.3261968493461609,
-1.3793361186981201,
0.6827433705329895,
1.3927254676818848,
-0.8366569876670837,
-0.7990677952766418,
0.1829093098640442,
-0.7971938848495483,
1.2081416845321655,
0.7251547574996948,
0.3297564685344696,
0.35931456089019775,
1.633001685142517,
0.7058981657028198,
-0.43687883019447327,
0.5669860243797302,
0.4706328213214874,
-0.15268023312091827,
-1.9373629093170166,
-1.156838059425354,
0.30261698365211487,
-0.4739754796028137,
-1.5086233615875244,
1.4244873523712158,
-1.3560813665390015,
-1.0022145509719849,
0.6074708700180054,
0.14172488451004028,
1.3614490032196045,
0.35457125306129456,
1.6777043342590332,
1.9404462575912476,
0.8348367810249329,
0.5266101360321045,
1.0543056726455688,
-0.27027150988578796,
-0.27945420145988464,
1.619726538658142,
-0.575859010219574,
0.7199044823646545,
1.0747835636138916,
-0.3419831395149231,
-1.3154109716415405,
-0.8584495782852173,
-1.2854641675949097,
-0.8552103638648987,
1.0781124830245972,
0.18255022168159485,
-1.2114741802215576,
0.41192013025283813,
1.6945596933364868,
-0.06994128227233887,
-0.20833007991313934,
0.7418990731239319,
0.3072572648525238,
-0.7995828986167908,
-0.020034421235322952,
-0.9880983829498291,
0.5810849070549011,
-0.3334863483905792,
-0.2971791923046112,
0.21923232078552246,
0.5847113728523254,
1.2276207208633423,
0.2300586849451065,
0.09650817513465881,
1.2565641403198242,
-1.3880034685134888,
1.3085670471191406,
-1.1629966497421265,
0.38894301652908325,
-2.3074357509613037,
1.4772355556488037,
-0.9954094290733337,
2.040283441543579,
-2.719855546951294,
0.390784353017807,
-0.38673797249794006,
-0.6064528822898865,
0.1460481882095337,
-0.15022997558116913,
0.021434687077999115,
0.006470651365816593,
-1.0484589338302612,
-0.1230277419090271,
-0.8700222373008728,
0.42048388719558716,
1.2528958320617676,
1.3617801666259766,
-0.9650933146476746,
-0.38040754199028015,
-1.6467193365097046,
-0.20110931992530823,
-0.4388408064842224,
0.19003623723983765,
-1.7498329877853394,
-0.2441907823085785,
-2.0219802856445312,
-2.342684268951416,
-1.3235552310943604,
-1.0192370414733887,
1.3057262897491455,
0.05001576617360115,
-0.8890218138694763,
1.0725992918014526,
-0.4067283868789673,
-1.7346830368041992,
1.2338309288024902,
-2.1758241653442383
] |
https://github.com/huggingface/datasets/issues/5274 | load_dataset possibly broken for gated datasets? | Btw, thanks very much for finding the hub rollback temporary fix and bringing the issue to our attention @KhoomeiK! | ### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing | 405 | 19 | load_dataset possibly broken for gated datasets?
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
Btw, thanks very much for finding the hub rollback temporary fix and bringing the issue to our attention @KhoomeiK! | [
-1.164981722831726,
-0.9435233473777771,
-0.6933580040931702,
1.5841468572616577,
-0.10520774126052856,
-1.24787175655365,
0.08946772664785385,
-1.031479001045227,
1.6185061931610107,
-0.617906391620636,
0.32892268896102905,
-1.6454746723175049,
-0.05761728063225746,
-0.6638556718826294,
-0.7463286519050598,
-0.8311182260513306,
-0.3425488770008087,
-0.740972638130188,
1.0538965463638306,
2.4681811332702637,
1.3199275732040405,
-1.3870187997817993,
2.7813332080841064,
0.7471301555633545,
-0.2219313532114029,
-1.040116786956787,
0.5477426052093506,
-0.010233028791844845,
-1.2346973419189453,
-0.45504018664360046,
-0.9278683662414551,
-0.05023159086704254,
-0.6031692028045654,
-0.4394838809967041,
-0.048890817910432816,
0.4811355769634247,
-0.2812110185623169,
-0.4131679832935333,
-0.614477813243866,
-0.7613973617553711,
0.396744042634964,
-0.3321212828159332,
0.919744610786438,
-0.34862828254699707,
1.8152680397033691,
-0.5944768786430359,
0.3813662827014923,
0.6851481199264526,
1.346784234046936,
0.16947095096111298,
-0.04398563876748085,
0.3241068124771118,
0.3963862955570221,
-0.02851911634206772,
0.5908149480819702,
1.229514718055725,
0.6285789608955383,
0.4822631776332855,
0.6563504338264465,
-2.300766706466675,
1.271494746208191,
-0.9346966743469238,
0.24239006638526917,
1.3194222450256348,
-0.917691171169281,
0.3146926462650299,
-1.8088698387145996,
0.0054930346086621284,
0.5877346992492676,
-2.1908695697784424,
0.31309497356414795,
-1.3433701992034912,
-0.5046539306640625,
0.9700031876564026,
0.32477012276649475,
-1.2924176454544067,
0.11345457285642624,
-0.44882169365882874,
1.0880868434906006,
0.420566588640213,
1.0956639051437378,
-1.6812143325805664,
-0.00010238494724035263,
-0.24761097133159637,
0.15940243005752563,
-1.251594066619873,
-1.6160261631011963,
0.5598020553588867,
0.6669357419013977,
0.6280912756919861,
-0.10704723745584488,
1.0083725452423096,
-1.0849487781524658,
0.8187326788902283,
-1.0311832427978516,
-1.7247369289398193,
-1.447083592414856,
-2.3079798221588135,
-2.2318036556243896,
0.6717017292976379,
-0.5522171854972839,
-0.48133334517478943,
1.9923311471939087,
-0.9928760528564453,
-1.781393051147461,
1.1356796026229858,
0.3110399842262268,
0.041863296180963516,
2.348031759262085,
0.1758105605840683,
-0.7632251381874084,
0.44714170694351196,
-0.8056187033653259,
0.7385704517364502,
-0.40077391266822815,
1.3924294710159302,
0.4038821756839752,
-1.0358790159225464,
1.5637273788452148,
-0.45590752363204956,
0.6002976298332214,
-0.6698043346405029,
-0.4678942561149597,
-0.6926966309547424,
0.27954208850860596,
1.9427071809768677,
-0.3568502962589264,
1.5777969360351562,
-0.33997252583503723,
-1.4845484495162964,
-1.5321850776672363,
0.8805238008499146,
0.47223618626594543,
-0.7757461071014404,
0.14926500618457794,
-0.4410977363586426,
0.1554322987794876,
-0.12492810189723969,
1.1168440580368042,
1.2749570608139038,
0.7353455424308777,
-0.3519679605960846,
-0.7436535954475403,
0.14582675695419312,
-0.05227718874812126,
-0.6990189552307129,
-1.7501121759414673,
-0.27030149102211,
0.21955212950706482,
0.6326656937599182,
-1.2605451345443726,
1.7428659200668335,
0.8733494281768799,
1.9417834281921387,
1.025571584701538,
-0.28564193844795227,
1.5357023477554321,
0.05798112973570824,
1.8097808361053467,
-0.5047250986099243,
0.5652081966400146,
-0.36731189489364624,
-1.1734031438827515,
0.8386775851249695,
-0.37112292647361755,
-2.025653600692749,
-0.7323032021522522,
-0.7932493090629578,
-0.18564373254776,
-0.7834951877593994,
0.8860134482383728,
-0.2924436628818512,
-1.4402695894241333,
0.153441920876503,
-0.7567888498306274,
0.21659694612026215,
-1.2267963886260986,
0.27044883370399475,
0.7288182973861694,
-0.6405755877494812,
0.04732430726289749,
-0.2610902786254883,
-1.2145596742630005,
-0.5208664536476135,
0.41918647289276123,
1.8490760326385498,
-0.7164488434791565,
0.8842188715934753,
1.0596987009048462,
-0.6755892634391785,
0.07851459830999374,
0.3208622634410858,
-0.3184506595134735,
0.8185319900512695,
-1.0604323148727417,
-0.4694887399673462,
1.133581280708313,
-0.20560480654239655,
-0.7156127095222473,
1.4339905977249146,
0.801072359085083,
-1.003158450126648,
-0.2899375855922699,
-0.1557897925376892,
-0.858022153377533,
0.05133338272571564,
-1.5657801628112793,
-0.10759036242961884,
0.29064908623695374,
-1.540202260017395,
-0.4340466558933258,
-0.23690681159496307,
1.3663064241409302,
-0.1477772295475006,
1.4228651523590088,
-0.3253491520881653,
-0.15791679918766022,
-0.23280949890613556,
-0.4444383978843689,
0.10052171349525452,
-0.2782761752605438,
-0.5575470328330994,
0.14751002192497253,
-0.746298611164093,
0.36065587401390076,
1.4467096328735352,
0.36366114020347595,
0.02771451696753502,
0.5056150555610657,
1.1580641269683838,
0.3910258114337921,
-0.05684298649430275,
-0.8809309601783752,
-1.5788592100143433,
1.9598500728607178,
-1.439897894859314,
2.0522820949554443,
0.8604710102081299,
-0.027998603880405426,
-1.7993967533111572,
-1.9408910274505615,
1.3258432149887085,
1.117835521697998,
2.301769495010376,
0.5964608192443848,
0.40899229049682617,
-0.8529551029205322,
-0.650399386882782,
0.31101736426353455,
-0.9348832964897156,
-0.6921253204345703,
0.16345281898975372,
2.3850064277648926,
1.810834288597107,
-0.4772586226463318,
-0.2940295338630676,
-1.0094414949417114,
1.4153112173080444,
-0.24319934844970703,
0.2657826542854309,
1.9474478960037231,
-0.2222953587770462,
-0.9649109244346619,
1.2848719358444214,
-2.3520004749298096,
0.23904824256896973,
2.0682332515716553,
0.21857286989688873,
0.11843608319759369,
-1.4118207693099976,
-0.6573805809020996,
-0.2782759964466095,
-0.45252418518066406,
-1.2212011814117432,
0.5035863518714905,
-0.27645888924598694,
-0.7531366944313049,
-1.429539442062378,
0.1387365162372589,
-1.1385338306427002,
-1.670628547668457,
0.2688457667827606,
1.9651192426681519,
2.0008771419525146,
-0.8135129809379578,
1.560620903968811,
-0.3404412269592285,
0.1361526995897293,
1.330521583557129,
1.2794677019119263,
3.124140501022339,
1.8687046766281128,
-1.3377498388290405,
0.7437678575515747,
-0.15322533249855042,
-0.5103050470352173,
1.2108161449432373,
-1.218560814857483,
1.1876145601272583,
-0.2209096997976303,
-1.195598840713501,
-1.2583776712417603,
0.9526479244232178,
0.514011800289154,
0.036729924380779266,
-0.5131485462188721,
1.166985273361206,
0.09501037001609802,
1.2940552234649658,
0.6101595163345337,
-0.427479088306427,
0.5904476642608643,
-0.31208178400993347,
-0.49979543685913086,
1.4975757598876953,
0.19649454951286316,
-1.3971354961395264,
-2.346486806869507,
-0.18555279076099396,
-0.887212336063385,
-0.02711428701877594,
-0.6718616485595703,
-1.0956530570983887,
1.578361988067627,
0.40530702471733093,
-1.1693781614303589,
-0.27726972103118896,
-0.3167662024497986,
-0.4660673439502716,
2.6446170806884766,
-1.3458795547485352,
-0.1359514445066452,
-0.9864707589149475,
-0.6233817338943481,
1.6643893718719482,
-1.1824573278427124,
-0.263749897480011,
-1.0439372062683105,
-0.6231564879417419,
-1.2625428438186646,
-0.6356157660484314,
0.051714543253183365,
-0.7939619421958923,
0.8368746638298035,
0.18515610694885254,
-1.2281486988067627,
-0.337127149105072,
-0.8524305820465088,
1.0472043752670288,
-0.21144886314868927,
0.22331923246383667,
1.960737943649292,
0.32755759358406067,
-0.4547622799873352,
0.7869923710823059,
1.2000155448913574,
0.5655977129936218,
-0.605111300945282,
0.1622219681739807,
-0.6479949355125427,
0.3283972442150116,
-1.4321613311767578,
0.22801312804222107,
-2.8580284118652344,
0.5917702913284302,
-0.024807646870613098,
-0.07008760422468185,
0.009344919584691525,
-1.3972883224487305,
1.1277685165405273,
2.5925142765045166,
-1.2045905590057373,
0.47846680879592896,
0.4182671010494232,
1.1658778190612793,
-1.6753560304641724,
0.24899598956108093,
-0.41922688484191895,
2.0737833976745605,
0.14123985171318054,
1.2592499256134033,
-0.42993301153182983,
-2.3111679553985596,
0.5692020058631897,
-1.2762361764907837,
-1.1348521709442139,
0.820002555847168,
-0.9057861566543579,
0.18128333985805511,
-1.5062471628189087,
-0.22820799052715302,
-0.9222207069396973,
-1.1817809343338013,
0.7585182189941406,
0.08704152703285217,
0.3815445899963379,
-0.6648653149604797,
0.4036989212036133,
-2.135561227798462,
-1.4059394598007202,
-0.1561557650566101,
-0.9252493381500244,
0.5115057229995728,
-0.37994757294654846,
0.6058667898178101,
-0.14418330788612366,
0.03816039115190506,
0.30475232005119324,
1.4516887664794922,
3.4211549758911133,
0.21489191055297852,
0.2664327025413513,
-0.13741639256477356,
-0.938351035118103,
1.3905061483383179,
0.8299745321273804,
-0.16382308304309845,
-0.509511411190033,
-1.0165581703186035,
1.3169399499893188,
1.951603651046753,
1.0661959648132324,
0.08618282526731491,
-0.8612470626831055,
-0.8015888929367065,
-0.07751023769378662,
0.19928650557994843,
0.5188562870025635,
0.8974763751029968,
0.0389682799577713,
0.058729756623506546,
1.3223474025726318,
1.138014554977417,
-0.4419650137424469,
0.4759581387042999,
-0.8896891474723816,
-0.4327513575553894,
0.46044033765792847,
0.23256303369998932,
-0.029375705868005753,
0.44006988406181335,
-0.9798145294189453,
-0.30619704723358154,
-0.4104348421096802,
-0.8676499724388123,
-0.6579200029373169,
-0.3851188123226166,
-0.3707408308982849,
1.5810728073120117,
0.07880858331918716,
-0.5092877149581909,
-0.006612345576286316,
-0.7218018770217896,
-0.16112494468688965,
-1.0451605319976807,
0.21089214086532593,
-0.13106557726860046,
-0.07001306861639023,
-0.14988195896148682,
1.6531087160110474,
-0.9641625881195068,
-2.0577023029327393,
0.18435870110988617,
0.2988874614238739,
-0.24746210873126984,
0.1642671674489975,
1.755432367324829,
0.48249953985214233,
1.3576507568359375,
1.319828987121582,
0.9439149498939514,
-0.6857343912124634,
-1.2701162099838257,
0.6610371470451355,
1.0612529516220093,
-1.3491417169570923,
0.8496251106262207,
-0.10115381330251694,
-0.5486934185028076,
0.6439147591590881,
1.3393174409866333,
0.49454623460769653,
-1.9904603958129883,
0.7971628308296204,
-0.9528102874755859,
0.7805139422416687,
0.7080086469650269,
0.7200925350189209,
0.2256806343793869,
0.7845051288604736,
-1.1825742721557617,
-1.1573034524917603,
-0.7685995697975159,
-0.7054041624069214,
1.875732183456421,
-0.2892187535762787,
0.5387307405471802,
-0.19630275666713715,
-1.3188145160675049,
-0.16876941919326782,
0.7843390107154846,
0.41056588292121887,
-0.496155709028244,
0.8064010143280029,
-0.6279460191726685,
-0.9663026928901672,
-1.2821964025497437,
-0.403687059879303,
-1.0022231340408325,
-0.9327811598777771,
1.0063533782958984,
0.8306058645248413,
0.3590148985385895,
1.9520090818405151,
0.6373191475868225,
0.24614182114601135,
-2.5876712799072266,
0.91660076379776,
0.35677146911621094,
-0.08428235352039337,
0.8869017958641052,
0.3433201313018799,
1.062010407447815,
0.07731466740369797,
0.6043308973312378,
-2.3971900939941406,
2.2541584968566895,
-0.19825638830661774,
0.6564921736717224,
-0.0619155652821064,
-0.23331546783447266,
1.1100845336914062,
0.4546469748020172,
0.4965176582336426,
-1.0949231386184692,
0.7393906712532043,
-0.5154545903205872,
1.1700977087020874,
0.86334627866745,
-0.897280216217041,
-0.012448940426111221,
1.324879765510559,
0.42216333746910095,
-0.5602340698242188,
-0.9651876091957092,
-0.8744874000549316,
1.0355327129364014,
1.7111037969589233,
0.1270485818386078,
-0.020865987986326218,
0.8879324793815613,
0.5884667038917542,
-1.258431315422058,
0.09825491160154343,
-0.6272300481796265,
-0.7097404599189758,
1.752143383026123,
2.068272352218628,
-0.17037111520767212,
-0.18999062478542328,
-0.7508409023284912,
-1.2720524072647095,
0.7309697866439819,
-0.06952653080224991,
0.04320739582180977,
0.6950228810310364,
-0.5979512929916382,
1.156827688217163,
0.7593487501144409,
1.0069098472595215,
0.09625985473394394,
0.23404866456985474,
0.43557852506637573,
-0.3212265074253082,
-1.2057371139526367,
-0.265638142824173,
-1.1307564973831177,
-2.494018077850342,
0.4707939922809601,
-0.17749446630477905,
-1.4182108640670776,
0.019480276852846146,
-1.0083115100860596,
1.017551064491272,
-0.6116112470626831,
-1.0705567598342896,
-1.4734315872192383,
0.23299311101436615,
-0.13062699139118195,
0.820868968963623,
-1.5918632745742798,
-0.1565152108669281,
1.2183082103729248,
0.9057591557502747,
-0.660005509853363,
0.9767372608184814,
0.24059925973415375,
1.0521308183670044,
0.8518179655075073,
-0.366592675447464,
0.5285852551460266,
0.02622940018773079,
-1.3453830480575562,
0.45667126774787903,
1.2373981475830078,
0.1588427722454071,
1.5069388151168823,
-0.4566305875778198,
0.0034042587503790855,
0.46480995416641235,
-0.5989124774932861,
-0.5160354971885681,
-0.5329486131668091,
0.6346726417541504,
0.04488932341337204,
-0.9452962875366211,
0.003542122431099415,
-0.09751518070697784,
-0.28179988265037537,
0.16633188724517822,
-1.5319761037826538,
-0.13795797526836395,
-0.33609631657600403,
-0.5725500583648682,
-1.2682141065597534,
-0.0016972417943179607,
1.3478190898895264,
-0.7556517124176025,
-0.3161041736602783,
0.5669949650764465,
0.28731396794319153,
0.5132197737693787,
0.5884379744529724,
-0.6922250390052795,
-0.23628874123096466,
-0.24101337790489197,
-0.4673633277416229,
0.31489405035972595,
1.3151381015777588,
-0.10425350069999695,
-0.9591120481491089,
0.6382723450660706,
-0.40754440426826477,
0.04554489627480507,
1.9456892013549805,
0.10270816832780838,
-0.7613304853439331,
0.26166075468063354,
-0.7206352353096008,
1.896478533744812,
1.7246571779251099,
1.3126417398452759,
-0.18810999393463135,
-0.9137364625930786,
0.6964407563209534,
-0.3234478533267975,
-0.3487159311771393,
0.8747273683547974,
0.39807289838790894,
-0.19801786541938782,
-1.431917428970337,
0.6278098821640015,
1.276633620262146,
-0.9062241315841675,
-0.7313993573188782,
0.1214069277048111,
-0.8444844484329224,
1.1417962312698364,
0.662498950958252,
0.301828533411026,
0.3059297502040863,
1.5496207475662231,
0.767576277256012,
-0.45950716733932495,
0.5610786080360413,
0.5485661625862122,
-0.1970718801021576,
-2.0656216144561768,
-1.1039505004882812,
0.3500509560108185,
-0.45720043778419495,
-1.6416290998458862,
1.3479504585266113,
-1.1923688650131226,
-1.0045287609100342,
0.6140663027763367,
0.06619081646203995,
1.3854204416275024,
0.3222527801990509,
1.6338400840759277,
2.10597562789917,
0.8558726906776428,
0.4165519177913666,
1.181461215019226,
-0.151609867811203,
-0.4667569100856781,
1.8357970714569092,
-0.4179325997829437,
0.5650604963302612,
1.0888091325759888,
-0.4062954783439636,
-1.1421650648117065,
-0.7733889818191528,
-1.3200969696044922,
-0.6811683177947998,
1.2551358938217163,
0.029760386794805527,
-1.1113555431365967,
0.2953905761241913,
1.6057372093200684,
0.08883200585842133,
-0.30596140027046204,
0.6372091174125671,
0.4380311071872711,
-0.8243221640586853,
-0.023163514211773872,
-0.8728556036949158,
0.5588263869285583,
-0.1698325276374817,
-0.3560081422328949,
0.32168155908584595,
0.4939180612564087,
1.3863675594329834,
-0.03955982252955437,
0.09190823137760162,
1.140406847000122,
-1.3950533866882324,
1.5216078758239746,
-0.7150751352310181,
0.26375821232795715,
-2.441812038421631,
1.4207513332366943,
-0.7962465286254883,
1.956993818283081,
-2.581942319869995,
0.47851380705833435,
-0.5861269235610962,
-0.4239743947982788,
0.3175710141658783,
-0.3491069972515106,
0.11072228103876114,
-0.15526531636714935,
-1.0467146635055542,
-0.06137344241142273,
-0.6890144348144531,
0.6091440320014954,
1.1694903373718262,
1.3737903833389282,
-1.1126785278320312,
-0.19444628059864044,
-1.7326205968856812,
-0.209672212600708,
-0.7788735628128052,
0.32491248846054077,
-1.9759600162506104,
-0.13150104880332947,
-1.9717174768447876,
-2.352260112762451,
-1.251930832862854,
-0.7997088432312012,
1.0306940078735352,
0.17682117223739624,
-0.9027115106582642,
1.213303565979004,
-0.39506247639656067,
-1.7783207893371582,
1.0533215999603271,
-2.1549298763275146
] |
https://github.com/huggingface/datasets/issues/5274 | load_dataset possibly broken for gated datasets? | I see the same issue when calling `load_dataset('poloclub/diffusiondb', 'large_random_1k')` with `datasets==2.7.1` and `huggingface-hub=0.11.0`. No issue with `datasets=2.6.1` and `huggingface_hub==0.10.1`.
https://github.com/poloclub/diffusiondb/issues/7 | ### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing | 405 | 20 | load_dataset possibly broken for gated datasets?
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
I see the same issue when calling `load_dataset('poloclub/diffusiondb', 'large_random_1k')` with `datasets==2.7.1` and `huggingface-hub=0.11.0`. No issue with `datasets=2.6.1` and `huggingface_hub==0.10.1`.
https://github.com/poloclub/diffusiondb/issues/7 | [
-1.1627769470214844,
-0.9396863579750061,
-0.694536566734314,
1.584586501121521,
-0.10271137207746506,
-1.236308217048645,
0.08759176731109619,
-1.0136518478393555,
1.626143455505371,
-0.6152274012565613,
0.3277794122695923,
-1.6505234241485596,
-0.07038149237632751,
-0.6641340851783752,
-0.7475151419639587,
-0.8167465925216675,
-0.34165701270103455,
-0.736856997013092,
1.0610007047653198,
2.467165946960449,
1.3044688701629639,
-1.3785287141799927,
2.782640218734741,
0.7311512231826782,
-0.22014760971069336,
-1.04608154296875,
0.540795087814331,
-0.005822842940688133,
-1.2233253717422485,
-0.4388003647327423,
-0.9219483137130737,
-0.04225790873169899,
-0.598207414150238,
-0.45325613021850586,
-0.040470801293849945,
0.48734524846076965,
-0.28780999779701233,
-0.4188859164714813,
-0.6103013157844543,
-0.7573521733283997,
0.3983583450317383,
-0.33191004395484924,
0.9198247194290161,
-0.3489879071712494,
1.8153167963027954,
-0.5902371406555176,
0.3817572295665741,
0.6842895150184631,
1.3547475337982178,
0.16182398796081543,
-0.04322703555226326,
0.34655362367630005,
0.39367422461509705,
-0.01092998031526804,
0.5868631601333618,
1.2368240356445312,
0.6193885803222656,
0.4707372784614563,
0.6567714810371399,
-2.3093621730804443,
1.2611515522003174,
-0.9116464853286743,
0.2370213270187378,
1.3076938390731812,
-0.9149900078773499,
0.3101799190044403,
-1.8037828207015991,
0.010874029248952866,
0.5833097696304321,
-2.1991686820983887,
0.318909227848053,
-1.3511474132537842,
-0.5048376321792603,
0.967025637626648,
0.3323129117488861,
-1.2928376197814941,
0.11880695074796677,
-0.44658565521240234,
1.0834481716156006,
0.42036113142967224,
1.093714952468872,
-1.6762083768844604,
0.005694732069969177,
-0.2260037660598755,
0.16057181358337402,
-1.2379560470581055,
-1.6001839637756348,
0.5565096735954285,
0.6631393432617188,
0.6366131901741028,
-0.11862421780824661,
1.011183738708496,
-1.0695724487304688,
0.8056773543357849,
-1.028196096420288,
-1.727561593055725,
-1.4493943452835083,
-2.3194973468780518,
-2.2318663597106934,
0.6829299926757812,
-0.5434595346450806,
-0.4692337214946747,
1.9893016815185547,
-0.9903791546821594,
-1.7931187152862549,
1.1368016004562378,
0.3162595331668854,
0.04784751310944557,
2.3341798782348633,
0.17202579975128174,
-0.7727096080780029,
0.45476680994033813,
-0.811312198638916,
0.7494103312492371,
-0.39359498023986816,
1.3936688899993896,
0.41388100385665894,
-1.0321533679962158,
1.5604134798049927,
-0.4471692740917206,
0.6011828184127808,
-0.6707017421722412,
-0.46766480803489685,
-0.7015184760093689,
0.28286489844322205,
1.9498884677886963,
-0.35306355357170105,
1.5857329368591309,
-0.352044016122818,
-1.4951121807098389,
-1.5306396484375,
0.8784252405166626,
0.4753871262073517,
-0.7699687480926514,
0.1592322587966919,
-0.4490479528903961,
0.16425076127052307,
-0.12307371199131012,
1.1235357522964478,
1.2698034048080444,
0.7258356213569641,
-0.34472793340682983,
-0.7437511682510376,
0.1505969762802124,
-0.04603393003344536,
-0.6818758845329285,
-1.7617679834365845,
-0.2802566587924957,
0.23349052667617798,
0.6266583204269409,
-1.2600328922271729,
1.746622920036316,
0.8616984486579895,
1.9532485008239746,
1.0237629413604736,
-0.2865467071533203,
1.538086175918579,
0.050718218088150024,
1.8282108306884766,
-0.49486252665519714,
0.5470545887947083,
-0.3610673248767853,
-1.181496262550354,
0.8270516395568848,
-0.3562358021736145,
-2.0265915393829346,
-0.7383238673210144,
-0.7986805438995361,
-0.18207862973213196,
-0.7865490317344666,
0.8708637952804565,
-0.3062453269958496,
-1.4447718858718872,
0.1451975405216217,
-0.7609338164329529,
0.21943321824073792,
-1.2172359228134155,
0.2667440176010132,
0.7330716252326965,
-0.6348433494567871,
0.0469716340303421,
-0.27295657992362976,
-1.2141706943511963,
-0.5150876045227051,
0.4209861159324646,
1.8512377738952637,
-0.7167203426361084,
0.8859487771987915,
1.0573681592941284,
-0.6772803664207458,
0.08802113682031631,
0.31536349654197693,
-0.32074522972106934,
0.8089535236358643,
-1.0560766458511353,
-0.4703928530216217,
1.1437908411026,
-0.20804771780967712,
-0.7137161493301392,
1.425140619277954,
0.8049315214157104,
-1.0033921003341675,
-0.29143446683883667,
-0.14824682474136353,
-0.8587408661842346,
0.03791434317827225,
-1.5820218324661255,
-0.1127321720123291,
0.2915287911891937,
-1.5418822765350342,
-0.4465252459049225,
-0.23477959632873535,
1.3496153354644775,
-0.1459772288799286,
1.4149781465530396,
-0.3349517285823822,
-0.1424272656440735,
-0.2377101480960846,
-0.4522480070590973,
0.10515128821134567,
-0.2888249158859253,
-0.5745108127593994,
0.15186312794685364,
-0.744337260723114,
0.36032912135124207,
1.441458821296692,
0.3642900884151459,
0.02536354586482048,
0.5099610090255737,
1.172628402709961,
0.3982447385787964,
-0.04874523729085922,
-0.8672778606414795,
-1.5962275266647339,
1.960219383239746,
-1.4401359558105469,
2.03991436958313,
0.8411029577255249,
-0.03158436343073845,
-1.7929697036743164,
-1.9448589086532593,
1.3286315202713013,
1.1176457405090332,
2.3020033836364746,
0.5950726270675659,
0.4120854139328003,
-0.8467836976051331,
-0.6678105592727661,
0.2967040538787842,
-0.9292702674865723,
-0.6953492164611816,
0.15754899382591248,
2.389615297317505,
1.8051005601882935,
-0.48975276947021484,
-0.298526406288147,
-1.0197879076004028,
1.423775315284729,
-0.24787145853042603,
0.2789168059825897,
1.9588122367858887,
-0.2296716570854187,
-0.9589728116989136,
1.288090705871582,
-2.357297420501709,
0.24859684705734253,
2.0636754035949707,
0.21149024367332458,
0.13376912474632263,
-1.409346580505371,
-0.648466944694519,
-0.27341026067733765,
-0.4473097026348114,
-1.2249449491500854,
0.4994279444217682,
-0.27480757236480713,
-0.7518497705459595,
-1.412908673286438,
0.14557987451553345,
-1.1356276273727417,
-1.6779208183288574,
0.27086716890335083,
1.9700489044189453,
2.003772497177124,
-0.8215242028236389,
1.5598453283309937,
-0.35298171639442444,
0.13836818933486938,
1.3346688747406006,
1.2847907543182373,
3.1201415061950684,
1.8722246885299683,
-1.3250443935394287,
0.7451207637786865,
-0.16068759560585022,
-0.514742910861969,
1.2177653312683105,
-1.213379979133606,
1.1668065786361694,
-0.21834048628807068,
-1.1928471326828003,
-1.2427579164505005,
0.9410190582275391,
0.5206700563430786,
0.03749369457364082,
-0.5111097097396851,
1.166405439376831,
0.09694389998912811,
1.2912180423736572,
0.6198900938034058,
-0.4276494085788727,
0.5942699909210205,
-0.3028571307659149,
-0.5089542865753174,
1.4845918416976929,
0.1936342418193817,
-1.4120607376098633,
-2.340907573699951,
-0.1958886981010437,
-0.9025574922561646,
-0.02230183407664299,
-0.6768035888671875,
-1.0914323329925537,
1.5684020519256592,
0.4010137617588043,
-1.1617287397384644,
-0.2684441804885864,
-0.3137005865573883,
-0.46155276894569397,
2.6495606899261475,
-1.3388211727142334,
-0.14710783958435059,
-0.9833998680114746,
-0.6267869472503662,
1.675293207168579,
-1.1658756732940674,
-0.26277199387550354,
-1.045649766921997,
-0.6110802292823792,
-1.26325261592865,
-0.6346723437309265,
0.046974290162324905,
-0.795406699180603,
0.8311316967010498,
0.18078595399856567,
-1.22144615650177,
-0.32686689496040344,
-0.8643830418586731,
1.0637718439102173,
-0.2072601616382599,
0.21120139956474304,
1.9665383100509644,
0.33269888162612915,
-0.45860522985458374,
0.7944016456604004,
1.1974948644638062,
0.5574384331703186,
-0.6021974086761475,
0.17211756110191345,
-0.6517136693000793,
0.3298532962799072,
-1.4480406045913696,
0.21533679962158203,
-2.853628158569336,
0.5944618582725525,
-0.02493070624768734,
-0.07817324250936508,
-0.0033791838213801384,
-1.4005573987960815,
1.117384910583496,
2.5905144214630127,
-1.2196298837661743,
0.47991836071014404,
0.4259469211101532,
1.1779202222824097,
-1.6739895343780518,
0.2430228292942047,
-0.43578073382377625,
2.0746142864227295,
0.14732271432876587,
1.2581039667129517,
-0.42089390754699707,
-2.2953200340270996,
0.5708819031715393,
-1.2822883129119873,
-1.1347788572311401,
0.8214117884635925,
-0.9148894548416138,
0.19310787320137024,
-1.5037338733673096,
-0.2311093509197235,
-0.9135457277297974,
-1.1808677911758423,
0.7576084136962891,
0.08746307343244553,
0.3721503019332886,
-0.6549146175384521,
0.40567436814308167,
-2.1410043239593506,
-1.3972634077072144,
-0.1665622591972351,
-0.9347790479660034,
0.5187277793884277,
-0.3782379627227783,
0.6042428612709045,
-0.15076744556427002,
0.029506824910640717,
0.29932641983032227,
1.4562381505966187,
3.425762176513672,
0.21561157703399658,
0.25171127915382385,
-0.1406746208667755,
-0.9304032921791077,
1.400629997253418,
0.8363803029060364,
-0.17545098066329956,
-0.4987606704235077,
-1.014170527458191,
1.323384404182434,
1.9595783948898315,
1.0676382780075073,
0.08717157691717148,
-0.8569639921188354,
-0.8040195107460022,
-0.06238581985235214,
0.18505927920341492,
0.519956111907959,
0.8899641036987305,
0.039389174431562424,
0.0637311264872551,
1.3030648231506348,
1.1324961185455322,
-0.43400561809539795,
0.48232632875442505,
-0.9007517099380493,
-0.4260759651660919,
0.4614703953266144,
0.2272718846797943,
-0.036592260003089905,
0.44476118683815,
-0.9748173952102661,
-0.29496830701828003,
-0.3992425799369812,
-0.8664763569831848,
-0.6707985401153564,
-0.3811420500278473,
-0.37365850806236267,
1.5801821947097778,
0.08299994468688965,
-0.5119810104370117,
-0.016271177679300308,
-0.7189706563949585,
-0.16471967101097107,
-1.0388675928115845,
0.2047182023525238,
-0.124689482152462,
-0.06772055476903915,
-0.15258288383483887,
1.6358833312988281,
-0.9649982452392578,
-2.062844753265381,
0.19155564904212952,
0.31270718574523926,
-0.24071276187896729,
0.16983503103256226,
1.7608814239501953,
0.48805612325668335,
1.3478503227233887,
1.3299038410186768,
0.9489200711250305,
-0.6850496530532837,
-1.2580736875534058,
0.6624680161476135,
1.0543780326843262,
-1.3538382053375244,
0.8545485138893127,
-0.1001076027750969,
-0.5482648015022278,
0.6379424929618835,
1.3492859601974487,
0.5030263066291809,
-1.9891843795776367,
0.8043224811553955,
-0.951039731502533,
0.7830749154090881,
0.7078392505645752,
0.7237440943717957,
0.22559255361557007,
0.7950209379196167,
-1.1798784732818604,
-1.1626297235488892,
-0.781640887260437,
-0.7151110172271729,
1.8848450183868408,
-0.2795543670654297,
0.5340774655342102,
-0.1897185742855072,
-1.3140734434127808,
-0.1656324863433838,
0.7908393740653992,
0.3961622416973114,
-0.497639536857605,
0.8168083429336548,
-0.6295813918113708,
-0.9637116193771362,
-1.2772513628005981,
-0.4031696617603302,
-1.0070892572402954,
-0.9438018798828125,
1.0060430765151978,
0.8203989863395691,
0.36592739820480347,
1.9425718784332275,
0.6402155160903931,
0.24796369671821594,
-2.5863213539123535,
0.9216012954711914,
0.34762170910835266,
-0.07304763048887253,
0.86423259973526,
0.33413204550743103,
1.0782169103622437,
0.06579627096652985,
0.6146761775016785,
-2.3878259658813477,
2.238851308822632,
-0.18988817930221558,
0.654259979724884,
-0.06924356520175934,
-0.22439315915107727,
1.0877420902252197,
0.45437851548194885,
0.4966256320476532,
-1.100462794303894,
0.745039701461792,
-0.5197149515151978,
1.1661193370819092,
0.862040102481842,
-0.906213104724884,
-0.0066970158368349075,
1.3336223363876343,
0.4131613075733185,
-0.5616881847381592,
-0.9735651016235352,
-0.862329363822937,
1.0382572412490845,
1.703843116760254,
0.1194659098982811,
-0.019146330654621124,
0.8961019515991211,
0.5831829309463501,
-1.2634210586547852,
0.09229341149330139,
-0.6210700869560242,
-0.6959159970283508,
1.7640777826309204,
2.0761406421661377,
-0.1728769838809967,
-0.19135919213294983,
-0.7601605653762817,
-1.2581868171691895,
0.7272821664810181,
-0.0548986978828907,
0.03817722573876381,
0.7065407037734985,
-0.6081426739692688,
1.1644220352172852,
0.7519893050193787,
0.9970932006835938,
0.08536054939031601,
0.22204843163490295,
0.43608227372169495,
-0.3146500289440155,
-1.198752999305725,
-0.2820046544075012,
-1.127974271774292,
-2.5031254291534424,
0.46678757667541504,
-0.18394044041633606,
-1.4194056987762451,
0.022742722183465958,
-1.0127192735671997,
1.0215635299682617,
-0.6104212999343872,
-1.0752151012420654,
-1.4613893032073975,
0.22203660011291504,
-0.12621673941612244,
0.8176491856575012,
-1.5977298021316528,
-0.16342803835868835,
1.2163841724395752,
0.8912118077278137,
-0.6649998426437378,
0.9761919975280762,
0.24168479442596436,
1.0510880947113037,
0.8492154479026794,
-0.36566025018692017,
0.5337242484092712,
0.024154741317033768,
-1.3454452753067017,
0.46262577176094055,
1.2401381731033325,
0.16331660747528076,
1.5026551485061646,
-0.46548736095428467,
-0.0013835923746228218,
0.4655681550502777,
-0.6040536165237427,
-0.5331958532333374,
-0.5227460265159607,
0.6440699696540833,
0.03785372152924538,
-0.9576212763786316,
0.005975729785859585,
-0.07801740616559982,
-0.2786709666252136,
0.17902407050132751,
-1.5337133407592773,
-0.1506364941596985,
-0.3277357220649719,
-0.567775309085846,
-1.2665518522262573,
-0.005722732283174992,
1.3456841707229614,
-0.7708684802055359,
-0.3056756556034088,
0.5777856111526489,
0.27825865149497986,
0.5080122947692871,
0.5848364233970642,
-0.6850435733795166,
-0.2262234091758728,
-0.24054992198944092,
-0.4579128324985504,
0.30729222297668457,
1.323203444480896,
-0.08831680566072464,
-0.9664819836616516,
0.6346872448921204,
-0.4056766629219055,
0.04851792752742767,
1.931441307067871,
0.0903967022895813,
-0.7611602544784546,
0.2525114417076111,
-0.7254547476768494,
1.8864622116088867,
1.71193528175354,
1.3286081552505493,
-0.1871931254863739,
-0.9177653789520264,
0.6919332146644592,
-0.31923773884773254,
-0.34174618124961853,
0.8664760589599609,
0.4011788070201874,
-0.19647684693336487,
-1.4256733655929565,
0.636171817779541,
1.2774468660354614,
-0.896798849105835,
-0.7381088137626648,
0.11345959454774857,
-0.8492597341537476,
1.1470153331756592,
0.6551446318626404,
0.2951653301715851,
0.30626723170280457,
1.5577342510223389,
0.7667779922485352,
-0.4578292667865753,
0.5646039843559265,
0.5555322766304016,
-0.19766965508460999,
-2.074998617172241,
-1.1091207265853882,
0.3521604835987091,
-0.448901504278183,
-1.6433161497116089,
1.344186782836914,
-1.181280493736267,
-1.0026371479034424,
0.6158648133277893,
0.06901942193508148,
1.390123963356018,
0.3175470232963562,
1.6317951679229736,
2.1051852703094482,
0.8605354428291321,
0.4215872883796692,
1.1756463050842285,
-0.15084925293922424,
-0.4665720462799072,
1.8111079931259155,
-0.4150456488132477,
0.5664494633674622,
1.0706313848495483,
-0.4103947579860687,
-1.1503239870071411,
-0.7760886549949646,
-1.3198997974395752,
-0.67965167760849,
1.2479844093322754,
0.03471642732620239,
-1.1229417324066162,
0.2985391616821289,
1.6199071407318115,
0.09249371290206909,
-0.30533555150032043,
0.6446990966796875,
0.43635767698287964,
-0.8212251663208008,
-0.015989666804671288,
-0.8861740827560425,
0.5464386343955994,
-0.15981224179267883,
-0.34915855526924133,
0.3160168528556824,
0.4950650632381439,
1.3820539712905884,
-0.03703591972589493,
0.10021128505468369,
1.1408555507659912,
-1.390108346939087,
1.5242209434509277,
-0.7336885333061218,
0.2787390351295471,
-2.450709581375122,
1.425057053565979,
-0.8050816059112549,
1.9508309364318848,
-2.5764987468719482,
0.48586446046829224,
-0.5853124856948853,
-0.42295533418655396,
0.31363752484321594,
-0.3541783094406128,
0.1026003509759903,
-0.14406999945640564,
-1.0553075075149536,
-0.05508958548307419,
-0.696794867515564,
0.6188203692436218,
1.1795270442962646,
1.366910457611084,
-1.103715419769287,
-0.2025851011276245,
-1.7412989139556885,
-0.21670719981193542,
-0.78072190284729,
0.3289247155189514,
-1.9839951992034912,
-0.12845703959465027,
-1.9791103601455688,
-2.3558220863342285,
-1.24190092086792,
-0.8085734844207764,
1.0222164392471313,
0.17648696899414062,
-0.9017074108123779,
1.2187254428863525,
-0.3879300355911255,
-1.7842742204666138,
1.0626009702682495,
-2.1601130962371826
] |
https://github.com/huggingface/datasets/issues/5274 | load_dataset possibly broken for gated datasets? | I fixed my issue by specifying `repo_type` in `hf_hub_url()`. https://github.com/poloclub/diffusiondb/commit/9eb91c79aaca98b0515a0ce45778b8af65b84652
I opened a PR on the Winoground's repo: https://huggingface.co/datasets/facebook/winoground/discussions/2 | ### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing | 405 | 19 | load_dataset possibly broken for gated datasets?
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
I fixed my issue by specifying `repo_type` in `hf_hub_url()`. https://github.com/poloclub/diffusiondb/commit/9eb91c79aaca98b0515a0ce45778b8af65b84652
I opened a PR on the Winoground's repo: https://huggingface.co/datasets/facebook/winoground/discussions/2 | [
-1.1589348316192627,
-0.930630087852478,
-0.6910487413406372,
1.5931141376495361,
-0.10755360126495361,
-1.252598762512207,
0.10067114979028702,
-1.0211414098739624,
1.6300737857818604,
-0.6181714534759521,
0.3355807960033417,
-1.6532946825027466,
-0.06397479772567749,
-0.6669210195541382,
-0.7557344436645508,
-0.8162238597869873,
-0.3396647572517395,
-0.742156982421875,
1.0497775077819824,
2.4729692935943604,
1.3123911619186401,
-1.3751291036605835,
2.767005681991577,
0.7331680059432983,
-0.23402588069438934,
-1.0385754108428955,
0.5436269044876099,
-0.007672509644180536,
-1.2208431959152222,
-0.44514000415802,
-0.9126409292221069,
-0.049444690346717834,
-0.6062679290771484,
-0.4639240503311157,
-0.052338920533657074,
0.492965430021286,
-0.2856683135032654,
-0.41995900869369507,
-0.5966957807540894,
-0.7613823413848877,
0.40102171897888184,
-0.3331996500492096,
0.9252579212188721,
-0.352792352437973,
1.8165632486343384,
-0.5880321264266968,
0.38950294256210327,
0.6857174634933472,
1.3604766130447388,
0.16972655057907104,
-0.052732713520526886,
0.34129348397254944,
0.40274858474731445,
-0.01884973794221878,
0.5827614068984985,
1.229771375656128,
0.6225482225418091,
0.47253990173339844,
0.6622864007949829,
-2.309450626373291,
1.2674918174743652,
-0.921255350112915,
0.2402460277080536,
1.3022105693817139,
-0.9078675508499146,
0.2948542535305023,
-1.80427885055542,
0.014073215425014496,
0.5834358930587769,
-2.1866729259490967,
0.32330265641212463,
-1.3565821647644043,
-0.5059847831726074,
0.9779752492904663,
0.33175376057624817,
-1.298124074935913,
0.10679075121879578,
-0.44550976157188416,
1.0780402421951294,
0.4203096628189087,
1.0873520374298096,
-1.6781586408615112,
0.0012563513591885567,
-0.24149560928344727,
0.1659003496170044,
-1.2316020727157593,
-1.598179578781128,
0.5513859987258911,
0.6684554815292358,
0.6285382509231567,
-0.11896729469299316,
1.0081725120544434,
-1.0711464881896973,
0.8129595518112183,
-1.0337141752243042,
-1.7249655723571777,
-1.4524078369140625,
-2.313462495803833,
-2.2258458137512207,
0.6731933355331421,
-0.5501112937927246,
-0.4795386493206024,
1.9919719696044922,
-0.9920125007629395,
-1.7873237133026123,
1.1431050300598145,
0.3118051290512085,
0.04394527152180672,
2.3313965797424316,
0.17271558940410614,
-0.7773956060409546,
0.444609671831131,
-0.8132081031799316,
0.7398276329040527,
-0.3959532380104065,
1.3911736011505127,
0.41124051809310913,
-1.046579360961914,
1.5549650192260742,
-0.4529629647731781,
0.6030099391937256,
-0.6719377040863037,
-0.46773868799209595,
-0.6844574213027954,
0.28865137696266174,
1.9458703994750977,
-0.3518185317516327,
1.5769195556640625,
-0.34101879596710205,
-1.4904776811599731,
-1.5290089845657349,
0.883537769317627,
0.4795951843261719,
-0.7646849155426025,
0.16535168886184692,
-0.44564318656921387,
0.160932719707489,
-0.1242038756608963,
1.1129118204116821,
1.2771525382995605,
0.733694314956665,
-0.3543141186237335,
-0.7387956380844116,
0.16078174114227295,
-0.04133680835366249,
-0.6992858648300171,
-1.7638154029846191,
-0.27696195244789124,
0.22145047783851624,
0.6240990161895752,
-1.254950761795044,
1.7493839263916016,
0.865964412689209,
1.9549851417541504,
1.0187193155288696,
-0.2774793803691864,
1.5412238836288452,
0.05210394039750099,
1.8129584789276123,
-0.4883970618247986,
0.5555006265640259,
-0.36750954389572144,
-1.178672194480896,
0.8338263034820557,
-0.35510483384132385,
-2.0249788761138916,
-0.7399994134902954,
-0.791121244430542,
-0.17401684820652008,
-0.8013455867767334,
0.8636295795440674,
-0.29158464074134827,
-1.4520394802093506,
0.15238116681575775,
-0.7659187316894531,
0.21487201750278473,
-1.2238200902938843,
0.2731007933616638,
0.722923994064331,
-0.6442552804946899,
0.05964063107967377,
-0.2720452845096588,
-1.2001532316207886,
-0.5152184963226318,
0.42268311977386475,
1.8513281345367432,
-0.7202366590499878,
0.8836463689804077,
1.0663405656814575,
-0.6744771003723145,
0.09021547436714172,
0.31377699971199036,
-0.3302639126777649,
0.8062038421630859,
-1.0614347457885742,
-0.4623490273952484,
1.1454918384552002,
-0.20027978718280792,
-0.7180413007736206,
1.4219285249710083,
0.8040400743484497,
-1.0026201009750366,
-0.28194746375083923,
-0.16417105495929718,
-0.8528257608413696,
0.0453638955950737,
-1.5709736347198486,
-0.10375437140464783,
0.29064759612083435,
-1.5326271057128906,
-0.434821218252182,
-0.23369097709655762,
1.3652012348175049,
-0.14738981425762177,
1.4178204536437988,
-0.32930976152420044,
-0.14901186525821686,
-0.23848825693130493,
-0.4461979866027832,
0.10244166105985641,
-0.28100571036338806,
-0.5562961101531982,
0.1462603062391281,
-0.7362253665924072,
0.36839035153388977,
1.4327442646026611,
0.35197514295578003,
0.02775564044713974,
0.4960894286632538,
1.1711537837982178,
0.3886699676513672,
-0.04493962228298187,
-0.8732309341430664,
-1.5787701606750488,
1.9571099281311035,
-1.4378610849380493,
2.04958176612854,
0.856297492980957,
-0.018025070428848267,
-1.787859320640564,
-1.9484190940856934,
1.3281939029693604,
1.122302532196045,
2.297008514404297,
0.5982226133346558,
0.4120559096336365,
-0.8526921272277832,
-0.6517914533615112,
0.3194941580295563,
-0.9380759000778198,
-0.6947423219680786,
0.16625092923641205,
2.3850677013397217,
1.806923747062683,
-0.4728393852710724,
-0.299373596906662,
-1.0169419050216675,
1.4273020029067993,
-0.24246157705783844,
0.2697013318538666,
1.962494134902954,
-0.22264406085014343,
-0.9646598100662231,
1.2929279804229736,
-2.356450319290161,
0.2497686743736267,
2.0608770847320557,
0.20573435723781586,
0.13232606649398804,
-1.4079456329345703,
-0.6440737247467041,
-0.2731543779373169,
-0.4527740478515625,
-1.217434287071228,
0.5085632801055908,
-0.2764278054237366,
-0.7446116209030151,
-1.4129962921142578,
0.15703845024108887,
-1.1326414346694946,
-1.6748014688491821,
0.2628965675830841,
1.9724080562591553,
1.9884451627731323,
-0.8233370780944824,
1.5636743307113647,
-0.35086536407470703,
0.13569338619709015,
1.3342536687850952,
1.2835103273391724,
3.122300386428833,
1.880653738975525,
-1.333003282546997,
0.7393609285354614,
-0.1517615169286728,
-0.5171219110488892,
1.212796926498413,
-1.220698356628418,
1.170418381690979,
-0.20950795710086823,
-1.1823316812515259,
-1.2531981468200684,
0.9354643821716309,
0.5159411430358887,
0.040172699838876724,
-0.5221235752105713,
1.1580851078033447,
0.09828230738639832,
1.2860281467437744,
0.6048269271850586,
-0.4208478629589081,
0.598275899887085,
-0.3040890395641327,
-0.4993763566017151,
1.482640027999878,
0.20018096268177032,
-1.388513445854187,
-2.3534257411956787,
-0.18539488315582275,
-0.9025651216506958,
-0.029904479160904884,
-0.6764330863952637,
-1.096118688583374,
1.5761486291885376,
0.39281195402145386,
-1.1655422449111938,
-0.2674315869808197,
-0.30844634771347046,
-0.4549844264984131,
2.6494102478027344,
-1.3366353511810303,
-0.13556154072284698,
-0.9810714721679688,
-0.626125693321228,
1.6771650314331055,
-1.1833688020706177,
-0.26610782742500305,
-1.0579819679260254,
-0.6037169694900513,
-1.2584362030029297,
-0.6467370986938477,
0.04578900337219238,
-0.792827844619751,
0.8438799381256104,
0.1881362497806549,
-1.2512398958206177,
-0.3416125774383545,
-0.8573596477508545,
1.0673543214797974,
-0.2071986347436905,
0.20987112820148468,
1.9608454704284668,
0.3285380005836487,
-0.4585828483104706,
0.787493109703064,
1.1942358016967773,
0.5618224143981934,
-0.5962491035461426,
0.1864457130432129,
-0.6561448574066162,
0.33401376008987427,
-1.441099762916565,
0.22555164992809296,
-2.849837303161621,
0.593422532081604,
-0.020594462752342224,
-0.08174125105142593,
-0.0087854890152812,
-1.4081730842590332,
1.1187478303909302,
2.5956737995147705,
-1.2159390449523926,
0.4697245657444,
0.42093026638031006,
1.1831282377243042,
-1.6768449544906616,
0.24404656887054443,
-0.42579224705696106,
2.080343723297119,
0.13398303091526031,
1.2763651609420776,
-0.4182288646697998,
-2.3107011318206787,
0.5702145099639893,
-1.281746506690979,
-1.145918369293213,
0.8234379291534424,
-0.9102457761764526,
0.17368505895137787,
-1.503360629081726,
-0.23499779403209686,
-0.9045954942703247,
-1.176212191581726,
0.7678117752075195,
0.09819693118333817,
0.38730567693710327,
-0.6673851013183594,
0.40612155199050903,
-2.1347427368164062,
-1.399896264076233,
-0.16897465288639069,
-0.9278706312179565,
0.5111805200576782,
-0.3702462315559387,
0.5952891111373901,
-0.15579815208911896,
0.02995513379573822,
0.3232659697532654,
1.460057020187378,
3.435788154602051,
0.2230684906244278,
0.2534685730934143,
-0.1400061696767807,
-0.922095537185669,
1.392364740371704,
0.8311278820037842,
-0.17395243048667908,
-0.5009342432022095,
-1.0204334259033203,
1.306110143661499,
1.9573249816894531,
1.0642797946929932,
0.08376714587211609,
-0.8586827516555786,
-0.8125630617141724,
-0.07788215577602386,
0.17935484647750854,
0.5102089643478394,
0.8885113000869751,
0.04526977241039276,
0.05816281586885452,
1.307826042175293,
1.1173372268676758,
-0.4477405846118927,
0.4845181405544281,
-0.8979761600494385,
-0.4304092526435852,
0.4597848057746887,
0.23367325961589813,
-0.04052432253956795,
0.43163490295410156,
-0.972468376159668,
-0.3063088655471802,
-0.40472763776779175,
-0.8611090183258057,
-0.6692707538604736,
-0.3825104832649231,
-0.37094631791114807,
1.5832496881484985,
0.08120160549879074,
-0.5169463157653809,
-0.008119875565171242,
-0.7105816602706909,
-0.16133591532707214,
-1.0329803228378296,
0.19925430417060852,
-0.13226479291915894,
-0.06584649533033371,
-0.14715559780597687,
1.6356709003448486,
-0.9722409248352051,
-2.061086893081665,
0.18773449957370758,
0.30848297476768494,
-0.24449920654296875,
0.17002159357070923,
1.7631597518920898,
0.49063223600387573,
1.3445204496383667,
1.318192481994629,
0.9512641429901123,
-0.6888238191604614,
-1.265907645225525,
0.6631850004196167,
1.0499576330184937,
-1.3541042804718018,
0.8505326509475708,
-0.09062173962593079,
-0.5456478595733643,
0.6359503269195557,
1.3448092937469482,
0.5046162605285645,
-1.9894648790359497,
0.7930426597595215,
-0.9485180377960205,
0.7741174697875977,
0.7128376960754395,
0.7173444032669067,
0.2274957299232483,
0.789330244064331,
-1.1662029027938843,
-1.1572457551956177,
-0.7653882503509521,
-0.7192490100860596,
1.877303957939148,
-0.29360219836235046,
0.5321668386459351,
-0.18531624972820282,
-1.3369226455688477,
-0.1705165058374405,
0.7906918525695801,
0.3936353325843811,
-0.5077675580978394,
0.8052875995635986,
-0.6233350038528442,
-0.9461377859115601,
-1.2791037559509277,
-0.4064478278160095,
-1.009223461151123,
-0.945451021194458,
0.9960943460464478,
0.8284062147140503,
0.36226198077201843,
1.9401170015335083,
0.6472477912902832,
0.2513928711414337,
-2.579827070236206,
0.9287365674972534,
0.3633919656276703,
-0.074219711124897,
0.868638277053833,
0.3487257957458496,
1.0657973289489746,
0.06928911060094833,
0.6197174787521362,
-2.403235912322998,
2.252545118331909,
-0.19434385001659393,
0.6454854011535645,
-0.058423228561878204,
-0.23977679014205933,
1.0938080549240112,
0.4410446286201477,
0.5026733875274658,
-1.0950148105621338,
0.7475860118865967,
-0.5217037200927734,
1.1689244508743286,
0.8535240888595581,
-0.8950612545013428,
-0.013566836714744568,
1.331214189529419,
0.4201391339302063,
-0.5671588182449341,
-0.9643542766571045,
-0.879278302192688,
1.0419094562530518,
1.6995772123336792,
0.12232328951358795,
-0.022289741784334183,
0.8956737518310547,
0.5817955732345581,
-1.2573497295379639,
0.08673359453678131,
-0.6289752721786499,
-0.7186141014099121,
1.7719483375549316,
2.081608772277832,
-0.1792532056570053,
-0.2092391550540924,
-0.769588828086853,
-1.253340482711792,
0.742003321647644,
-0.06130777299404144,
0.020045485347509384,
0.692916989326477,
-0.6085762977600098,
1.1572229862213135,
0.7585582733154297,
1.0046297311782837,
0.09535905718803406,
0.22008240222930908,
0.4350346028804779,
-0.32305335998535156,
-1.1945641040802002,
-0.28390729427337646,
-1.1386100053787231,
-2.501610040664673,
0.468148797750473,
-0.1732969731092453,
-1.40703284740448,
0.015309436246752739,
-1.015251874923706,
1.0191642045974731,
-0.611797571182251,
-1.0625756978988647,
-1.4620667695999146,
0.2244526892900467,
-0.13070160150527954,
0.8103634119033813,
-1.6034164428710938,
-0.16018690168857574,
1.2189069986343384,
0.8993203639984131,
-0.6734745502471924,
0.970603346824646,
0.23560725152492523,
1.0565398931503296,
0.863667368888855,
-0.36177533864974976,
0.5320090055465698,
0.01935705728828907,
-1.3373982906341553,
0.4673021137714386,
1.2445993423461914,
0.16232217848300934,
1.5064173936843872,
-0.4575974643230438,
0.0032746894285082817,
0.4534376859664917,
-0.6034281253814697,
-0.5264217853546143,
-0.5408819913864136,
0.6439803838729858,
0.04697815328836441,
-0.960830807685852,
0.008673649281263351,
-0.07897845655679703,
-0.2791237235069275,
0.17025747895240784,
-1.549304485321045,
-0.14099320769309998,
-0.30543261766433716,
-0.5651131868362427,
-1.2638423442840576,
-0.013587692752480507,
1.3478418588638306,
-0.7513084411621094,
-0.31008750200271606,
0.5776292085647583,
0.2807141840457916,
0.5107740163803101,
0.582707405090332,
-0.6862994432449341,
-0.23073187470436096,
-0.24358446896076202,
-0.4649868607521057,
0.315173864364624,
1.3341586589813232,
-0.08168181777000427,
-0.9594497680664062,
0.64207923412323,
-0.4053877890110016,
0.04694057255983353,
1.9389785528182983,
0.09744449704885483,
-0.7633397579193115,
0.2603679299354553,
-0.7161943912506104,
1.8955457210540771,
1.7284547090530396,
1.3250483274459839,
-0.18504750728607178,
-0.9303903579711914,
0.6892797946929932,
-0.33320245146751404,
-0.35986244678497314,
0.8745005130767822,
0.39580443501472473,
-0.20056983828544617,
-1.4139604568481445,
0.6382429599761963,
1.2723016738891602,
-0.8984252214431763,
-0.7486568689346313,
0.11686365306377411,
-0.8411663770675659,
1.1404893398284912,
0.6557977199554443,
0.3019144833087921,
0.31130364537239075,
1.556672215461731,
0.7718613147735596,
-0.46035945415496826,
0.5676672458648682,
0.5583159923553467,
-0.19348838925361633,
-2.0646064281463623,
-1.1164860725402832,
0.3601374626159668,
-0.45722147822380066,
-1.6490578651428223,
1.340890884399414,
-1.1936919689178467,
-1.0058884620666504,
0.620741605758667,
0.06580022722482681,
1.3906458616256714,
0.31342849135398865,
1.6343134641647339,
2.094984769821167,
0.8560299873352051,
0.4295063614845276,
1.1713550090789795,
-0.16369807720184326,
-0.47135981917381287,
1.8148698806762695,
-0.42249244451522827,
0.5554043054580688,
1.0865981578826904,
-0.40557143092155457,
-1.1488268375396729,
-0.7845977544784546,
-1.3266416788101196,
-0.6868946552276611,
1.2503646612167358,
0.0346611887216568,
-1.133065938949585,
0.3074415326118469,
1.6252187490463257,
0.07786928117275238,
-0.3141588568687439,
0.6343647241592407,
0.4371417462825775,
-0.8273986577987671,
-0.01952272653579712,
-0.8816659450531006,
0.5546219348907471,
-0.16402332484722137,
-0.3554668128490448,
0.32800543308258057,
0.5014857053756714,
1.391311764717102,
-0.033285997807979584,
0.09747183322906494,
1.131380558013916,
-1.3931862115859985,
1.5185773372650146,
-0.7308545112609863,
0.273448646068573,
-2.4358816146850586,
1.4240812063217163,
-0.793390154838562,
1.9440114498138428,
-2.5798463821411133,
0.4818525016307831,
-0.5764232873916626,
-0.4279657304286957,
0.3166459798812866,
-0.35096776485443115,
0.11744540929794312,
-0.14735350012779236,
-1.0547298192977905,
-0.06074628233909607,
-0.6902931928634644,
0.6153131723403931,
1.170172929763794,
1.3644856214523315,
-1.106986403465271,
-0.20211166143417358,
-1.732201337814331,
-0.21337321400642395,
-0.7647985219955444,
0.33066314458847046,
-1.9824886322021484,
-0.12838304042816162,
-1.9798731803894043,
-2.350151777267456,
-1.238492488861084,
-0.8034566640853882,
1.0209753513336182,
0.17832858860492706,
-0.8974318504333496,
1.2116484642028809,
-0.3912230432033539,
-1.792812466621399,
1.0551146268844604,
-2.1575350761413574
] |
https://github.com/huggingface/datasets/issues/5274 | load_dataset possibly broken for gated datasets? | This is a bug in the script, indeed. The most robust fix is to use a relative path instead of `hf_hub_url`, which does not depend on `huggingface_hub`'s version π. I've opened a PR here: https://huggingface.co/datasets/facebook/winoground/discussions/3. | ### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing | 405 | 35 | load_dataset possibly broken for gated datasets?
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
This is a bug in the script, indeed. The most robust fix is to use a relative path instead of `hf_hub_url`, which does not depend on `huggingface_hub`'s version π. I've opened a PR here: https://huggingface.co/datasets/facebook/winoground/discussions/3. | [
-1.1654448509216309,
-0.9421223402023315,
-0.698532223701477,
1.5894887447357178,
-0.10140039771795273,
-1.244494080543518,
0.09759931266307831,
-1.0252436399459839,
1.6389073133468628,
-0.6162582039833069,
0.3300282955169678,
-1.6529356241226196,
-0.05931784212589264,
-0.671543538570404,
-0.7460424900054932,
-0.8288406133651733,
-0.33741289377212524,
-0.7426087260246277,
1.0549794435501099,
2.4764106273651123,
1.3087290525436401,
-1.3906502723693848,
2.7721550464630127,
0.7426271438598633,
-0.21633405983448029,
-1.0384142398834229,
0.5451937913894653,
-0.01027983520179987,
-1.2256262302398682,
-0.4498358368873596,
-0.9280566573143005,
-0.049677036702632904,
-0.6003715395927429,
-0.4577905833721161,
-0.04821003973484039,
0.47184431552886963,
-0.28386190533638,
-0.418954461812973,
-0.606082558631897,
-0.7611933350563049,
0.3918066620826721,
-0.3491213917732239,
0.9239504933357239,
-0.35170990228652954,
1.814699411392212,
-0.5854655504226685,
0.38819923996925354,
0.6871896386146545,
1.3565473556518555,
0.16925546526908875,
-0.04590296000242233,
0.3383534848690033,
0.39395639300346375,
-0.03303838521242142,
0.5866044759750366,
1.2247496843338013,
0.6311580538749695,
0.4725649654865265,
0.6609259247779846,
-2.304532527923584,
1.2752292156219482,
-0.9142997860908508,
0.2448669821023941,
1.3063738346099854,
-0.9020972847938538,
0.3130438029766083,
-1.807962417602539,
0.01001629326492548,
0.5904662013053894,
-2.19404673576355,
0.30976206064224243,
-1.3442859649658203,
-0.5030027627944946,
0.97386234998703,
0.3266066014766693,
-1.3041119575500488,
0.10294190794229507,
-0.4463133215904236,
1.0748993158340454,
0.41662269830703735,
1.100734829902649,
-1.6798462867736816,
0.0007615257054567337,
-0.23832263052463531,
0.16480796039104462,
-1.2329776287078857,
-1.6018376350402832,
0.5600847601890564,
0.6715450882911682,
0.6248530745506287,
-0.10159847140312195,
1.0011969804763794,
-1.0685908794403076,
0.812022864818573,
-1.023450255393982,
-1.7263514995574951,
-1.4512590169906616,
-2.3196780681610107,
-2.2345051765441895,
0.6759195327758789,
-0.5492050647735596,
-0.47985726594924927,
1.9935736656188965,
-0.995312511920929,
-1.7887341976165771,
1.1387946605682373,
0.3072792589664459,
0.05120936036109924,
2.3538026809692383,
0.17144814133644104,
-0.7752760052680969,
0.4490152895450592,
-0.8082179427146912,
0.7397207617759705,
-0.40162527561187744,
1.3885068893432617,
0.4009353220462799,
-1.0440768003463745,
1.5597509145736694,
-0.45994505286216736,
0.5974363684654236,
-0.6805717945098877,
-0.45810556411743164,
-0.6841063499450684,
0.2732446491718292,
1.9342896938323975,
-0.3483588993549347,
1.571149230003357,
-0.34075918793678284,
-1.4866701364517212,
-1.5362976789474487,
0.8779414892196655,
0.47941333055496216,
-0.7641726732254028,
0.1625695526599884,
-0.4365883469581604,
0.1562982201576233,
-0.11884016543626785,
1.1102945804595947,
1.273690104484558,
0.7227416038513184,
-0.35296180844306946,
-0.7524478435516357,
0.1470198631286621,
-0.06294349581003189,
-0.7025406360626221,
-1.7618383169174194,
-0.27322423458099365,
0.22162550687789917,
0.6312211155891418,
-1.2629361152648926,
1.7516589164733887,
0.8590233325958252,
1.9508880376815796,
1.028791069984436,
-0.2783452272415161,
1.5444458723068237,
0.04776184260845184,
1.8182862997055054,
-0.5005647540092468,
0.5630266666412354,
-0.36838260293006897,
-1.1716513633728027,
0.8303029537200928,
-0.3577313721179962,
-2.030958890914917,
-0.7372491955757141,
-0.7878841161727905,
-0.18444085121154785,
-0.7747260332107544,
0.8753636479377747,
-0.2972290813922882,
-1.430867314338684,
0.16076315939426422,
-0.7675962448120117,
0.20807115733623505,
-1.222224473953247,
0.270977258682251,
0.7208652496337891,
-0.642989993095398,
0.059599388390779495,
-0.27237948775291443,
-1.207452416419983,
-0.5140732526779175,
0.4081137180328369,
1.8472312688827515,
-0.7263140678405762,
0.8767396807670593,
1.063088297843933,
-0.6675564646720886,
0.07659772783517838,
0.3268941044807434,
-0.318141907453537,
0.8209938406944275,
-1.0536906719207764,
-0.4672028720378876,
1.1458889245986938,
-0.19415776431560516,
-0.7207086682319641,
1.430620551109314,
0.7908937931060791,
-1.002547264099121,
-0.28298431634902954,
-0.1471976637840271,
-0.8625427484512329,
0.038848087191581726,
-1.5767438411712646,
-0.11244190484285355,
0.2889271080493927,
-1.5393966436386108,
-0.43327662348747253,
-0.23250199854373932,
1.3674571514129639,
-0.12659631669521332,
1.4264267683029175,
-0.3301011323928833,
-0.15164032578468323,
-0.23772799968719482,
-0.4364536702632904,
0.09580374509096146,
-0.29241743683815,
-0.558938205242157,
0.15312127768993378,
-0.7354411482810974,
0.3601143956184387,
1.4390116930007935,
0.3600481450557709,
0.031115751713514328,
0.50260990858078,
1.151788353919983,
0.39425426721572876,
-0.04784306511282921,
-0.8671513795852661,
-1.5815905332565308,
1.958181381225586,
-1.4368921518325806,
2.044163703918457,
0.8723882436752319,
-0.026679381728172302,
-1.7921452522277832,
-1.944114327430725,
1.326814889907837,
1.1252686977386475,
2.2969107627868652,
0.5880845785140991,
0.404582142829895,
-0.8481108546257019,
-0.6548045873641968,
0.3109363913536072,
-0.9314481616020203,
-0.7079539895057678,
0.1539870947599411,
2.3928487300872803,
1.8207156658172607,
-0.46838751435279846,
-0.28989100456237793,
-1.0230261087417603,
1.4272857904434204,
-0.24527029693126678,
0.26942476630210876,
1.9653236865997314,
-0.23165641725063324,
-0.9700461030006409,
1.291190266609192,
-2.352418899536133,
0.2305554747581482,
2.061689615249634,
0.2091042846441269,
0.12900789082050323,
-1.4118480682373047,
-0.6577642560005188,
-0.2651253640651703,
-0.45544669032096863,
-1.216305136680603,
0.5047532916069031,
-0.2815101444721222,
-0.7387659549713135,
-1.430474877357483,
0.14878132939338684,
-1.1321738958358765,
-1.6809734106063843,
0.2552994191646576,
1.9588385820388794,
2.0028064250946045,
-0.8157222270965576,
1.5571982860565186,
-0.3438345193862915,
0.12909147143363953,
1.3292903900146484,
1.2807965278625488,
3.1239166259765625,
1.8810690641403198,
-1.3309319019317627,
0.7452247738838196,
-0.15602421760559082,
-0.5064110159873962,
1.2017792463302612,
-1.216086506843567,
1.176731824874878,
-0.21955086290836334,
-1.194277286529541,
-1.2471247911453247,
0.9472055435180664,
0.5190099477767944,
0.038512419909238815,
-0.5142399072647095,
1.170706868171692,
0.09637127071619034,
1.2859398126602173,
0.6106603145599365,
-0.4176327586174011,
0.5998234152793884,
-0.3087570071220398,
-0.5100730657577515,
1.486496090888977,
0.19582366943359375,
-1.3885271549224854,
-2.3502631187438965,
-0.18894216418266296,
-0.894422173500061,
-0.023959068581461906,
-0.6809755563735962,
-1.0953925848007202,
1.5906323194503784,
0.39749324321746826,
-1.171730399131775,
-0.27498987317085266,
-0.3181675374507904,
-0.4644835293292999,
2.641181468963623,
-1.3484644889831543,
-0.14490269124507904,
-0.9895026087760925,
-0.6169337034225464,
1.6617857217788696,
-1.183884620666504,
-0.2646145820617676,
-1.047860860824585,
-0.609067976474762,
-1.2581578493118286,
-0.6361314058303833,
0.035568155348300934,
-0.8027926683425903,
0.8428921699523926,
0.18810556828975677,
-1.2348206043243408,
-0.33544617891311646,
-0.8530133962631226,
1.0531152486801147,
-0.19834432005882263,
0.22068484127521515,
1.960874080657959,
0.3384362757205963,
-0.46128538250923157,
0.7853902578353882,
1.2001582384109497,
0.5576744675636292,
-0.6056600213050842,
0.17326593399047852,
-0.6512820720672607,
0.3429672420024872,
-1.4339889287948608,
0.22279176115989685,
-2.8550164699554443,
0.5843456983566284,
-0.028100721538066864,
-0.07798467576503754,
0.006114249117672443,
-1.389766812324524,
1.1218476295471191,
2.6016619205474854,
-1.2065223455429077,
0.475623220205307,
0.4196591377258301,
1.177922010421753,
-1.6797945499420166,
0.26033902168273926,
-0.4239255487918854,
2.0737016201019287,
0.13345815241336823,
1.2532365322113037,
-0.4201255440711975,
-2.311577320098877,
0.5630679130554199,
-1.2830142974853516,
-1.1402000188827515,
0.8221015930175781,
-0.9022426605224609,
0.1815812587738037,
-1.500610589981079,
-0.21923093497753143,
-0.9026998281478882,
-1.1837221384048462,
0.7568162083625793,
0.08559054881334305,
0.38498592376708984,
-0.6616529226303101,
0.4044542610645294,
-2.138298273086548,
-1.3973506689071655,
-0.16794535517692566,
-0.9191247224807739,
0.5115137100219727,
-0.37119776010513306,
0.6057997345924377,
-0.16058415174484253,
0.04054366797208786,
0.31119200587272644,
1.4430153369903564,
3.422677516937256,
0.22560207545757294,
0.2729993760585785,
-0.13987113535404205,
-0.9261816740036011,
1.3868807554244995,
0.8339594006538391,
-0.17286080121994019,
-0.5146111845970154,
-1.0198262929916382,
1.3216724395751953,
1.957438349723816,
1.0571749210357666,
0.09963993728160858,
-0.8651203513145447,
-0.8013688325881958,
-0.07077348232269287,
0.19663436710834503,
0.5143361687660217,
0.9039722681045532,
0.0434861034154892,
0.05998845770955086,
1.3226454257965088,
1.1404367685317993,
-0.42871248722076416,
0.4857826232910156,
-0.8862223625183105,
-0.4411567151546478,
0.4653151333332062,
0.23390449583530426,
-0.04136490821838379,
0.4393536448478699,
-0.9728829264640808,
-0.2988206148147583,
-0.4092855453491211,
-0.8722847700119019,
-0.6605949401855469,
-0.3829692006111145,
-0.36994630098342896,
1.5931017398834229,
0.07603093236684799,
-0.5074232816696167,
-0.008613944053649902,
-0.7102201581001282,
-0.16092166304588318,
-1.034628987312317,
0.2013598084449768,
-0.12364815920591354,
-0.07093288004398346,
-0.14766515791416168,
1.6496262550354004,
-0.9635897278785706,
-2.0608978271484375,
0.1935865879058838,
0.3001568615436554,
-0.2452862709760666,
0.17399799823760986,
1.763275146484375,
0.49589046835899353,
1.3595741987228394,
1.3182169198989868,
0.9402768611907959,
-0.6884661316871643,
-1.2791826725006104,
0.6581708192825317,
1.0589542388916016,
-1.3497203588485718,
0.856143593788147,
-0.10104604810476303,
-0.5514065027236938,
0.6318687796592712,
1.3435842990875244,
0.5029915571212769,
-1.9904839992523193,
0.7990314364433289,
-0.9591104984283447,
0.7843631505966187,
0.706842839717865,
0.7163404226303101,
0.22063343226909637,
0.7760393023490906,
-1.1734468936920166,
-1.1638123989105225,
-0.7776874303817749,
-0.7181180119514465,
1.8831110000610352,
-0.29690009355545044,
0.5426583886146545,
-0.1896507441997528,
-1.337656855583191,
-0.1681508868932724,
0.783410370349884,
0.4033128321170807,
-0.5002976655960083,
0.7987603545188904,
-0.6278760433197021,
-0.9597513675689697,
-1.2930091619491577,
-0.40440064668655396,
-1.006063461303711,
-0.9200925230979919,
1.0078707933425903,
0.8256799578666687,
0.34899887442588806,
1.9422616958618164,
0.6387040019035339,
0.249320849776268,
-2.5864527225494385,
0.920728862285614,
0.36250102519989014,
-0.07923127710819244,
0.8766811490058899,
0.33967381715774536,
1.0551013946533203,
0.06782826036214828,
0.6121366620063782,
-2.4016997814178467,
2.2525997161865234,
-0.18964822590351105,
0.6560855507850647,
-0.058566246181726456,
-0.23515698313713074,
1.0839192867279053,
0.4447052478790283,
0.5038964748382568,
-1.0746442079544067,
0.7313995361328125,
-0.5099903345108032,
1.177980661392212,
0.8517838716506958,
-0.8859891891479492,
-0.012898745015263557,
1.3235970735549927,
0.42167210578918457,
-0.5674018263816833,
-0.955192506313324,
-0.8796664476394653,
1.0336577892303467,
1.7230379581451416,
0.11889834702014923,
-0.014590831473469734,
0.8899113535881042,
0.5822698473930359,
-1.2597217559814453,
0.08585093170404434,
-0.63556307554245,
-0.7154911756515503,
1.7533893585205078,
2.089620590209961,
-0.17175164818763733,
-0.19833000004291534,
-0.7590393424034119,
-1.2667077779769897,
0.7346290349960327,
-0.061070989817380905,
0.03039638325572014,
0.6988884806632996,
-0.6007541418075562,
1.1588705778121948,
0.7643581032752991,
1.0039700269699097,
0.09711183607578278,
0.22998221218585968,
0.4281232953071594,
-0.3220430016517639,
-1.1957471370697021,
-0.2698401212692261,
-1.1309010982513428,
-2.4962193965911865,
0.4646903872489929,
-0.17136257886886597,
-1.419714331626892,
0.017443757504224777,
-1.0118035078048706,
1.0183013677597046,
-0.5957500338554382,
-1.0618990659713745,
-1.4601918458938599,
0.22362619638442993,
-0.12563923001289368,
0.8242958188056946,
-1.5952123403549194,
-0.15514308214187622,
1.2177358865737915,
0.9083027243614197,
-0.6713080406188965,
0.9738807082176208,
0.23685139417648315,
1.049604892730713,
0.8596477508544922,
-0.3593555688858032,
0.5268017649650574,
0.03110434114933014,
-1.3286460638046265,
0.45192596316337585,
1.228367805480957,
0.16962994635105133,
1.5013467073440552,
-0.46529486775398254,
-0.0056073348969221115,
0.4579136073589325,
-0.5896546244621277,
-0.5114874839782715,
-0.5439184904098511,
0.6418578028678894,
0.04565981775522232,
-0.9524170756340027,
0.008026347495615482,
-0.08768533170223236,
-0.2853020131587982,
0.16694729030132294,
-1.5306040048599243,
-0.14065547287464142,
-0.32169026136398315,
-0.5642427802085876,
-1.2658478021621704,
-0.010121960192918777,
1.3477227687835693,
-0.7596995830535889,
-0.3124645948410034,
0.5767419934272766,
0.2886204719543457,
0.5127872228622437,
0.5934468507766724,
-0.6911064982414246,
-0.23828372359275818,
-0.22296996414661407,
-0.4627605676651001,
0.31706905364990234,
1.3327118158340454,
-0.0922151431441307,
-0.9636827111244202,
0.6453520655632019,
-0.4058939516544342,
0.04869343340396881,
1.938751220703125,
0.10180148482322693,
-0.7629980444908142,
0.2603771984577179,
-0.7224704027175903,
1.8908487558364868,
1.7233810424804688,
1.3170558214187622,
-0.18353453278541565,
-0.920688271522522,
0.6972991824150085,
-0.31746017932891846,
-0.35661837458610535,
0.8822649121284485,
0.40159639716148376,
-0.20372448861598969,
-1.4244979619979858,
0.6197448372840881,
1.2574574947357178,
-0.8970639109611511,
-0.7436153292655945,
0.1057388111948967,
-0.8468371629714966,
1.1438490152359009,
0.6671209931373596,
0.3032246530056,
0.3006019592285156,
1.5599429607391357,
0.764080286026001,
-0.4761255383491516,
0.5643379092216492,
0.5497375726699829,
-0.2016863077878952,
-2.06640887260437,
-1.1021760702133179,
0.33946675062179565,
-0.4557826519012451,
-1.639168620109558,
1.3331202268600464,
-1.197950839996338,
-1.0085009336471558,
0.6046415567398071,
0.05827280506491661,
1.3869212865829468,
0.3139508068561554,
1.629813551902771,
2.108525514602661,
0.8718116283416748,
0.41810426115989685,
1.1825251579284668,
-0.1596170961856842,
-0.46304821968078613,
1.824468731880188,
-0.41680777072906494,
0.5610030293464661,
1.0735028982162476,
-0.4050115942955017,
-1.1455029249191284,
-0.7695087790489197,
-1.3120876550674438,
-0.6898906826972961,
1.24899423122406,
0.03401448205113411,
-1.1116825342178345,
0.30049315094947815,
1.601706862449646,
0.08795815706253052,
-0.30941203236579895,
0.6169024109840393,
0.44563964009284973,
-0.8271060585975647,
-0.027137108147144318,
-0.8796554803848267,
0.5477747321128845,
-0.1655626744031906,
-0.3479671776294708,
0.31936660408973694,
0.500341534614563,
1.3856843709945679,
-0.03182517737150192,
0.0964425727725029,
1.1406891345977783,
-1.3955286741256714,
1.5269134044647217,
-0.7174882292747498,
0.26798102259635925,
-2.4423274993896484,
1.4281431436538696,
-0.8026316165924072,
1.9507620334625244,
-2.5872230529785156,
0.48676708340644836,
-0.5807527303695679,
-0.43073099851608276,
0.31503695249557495,
-0.34405437111854553,
0.11566390842199326,
-0.15544208884239197,
-1.0622174739837646,
-0.05949053168296814,
-0.6865838170051575,
0.6019886136054993,
1.1678054332733154,
1.3674933910369873,
-1.106311559677124,
-0.1985170990228653,
-1.7402892112731934,
-0.21736358106136322,
-0.7801551818847656,
0.3210338354110718,
-1.9770420789718628,
-0.13287794589996338,
-1.9712250232696533,
-2.3514301776885986,
-1.2504584789276123,
-0.8073421716690063,
1.0321931838989258,
0.18388858437538147,
-0.9100908637046814,
1.205183744430542,
-0.3869576156139374,
-1.7910401821136475,
1.0549052953720093,
-2.1538655757904053
] |
https://github.com/huggingface/datasets/issues/5274 | load_dataset possibly broken for gated datasets? | huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name':
tokenizer = AutoTokenizer.from_pretrained(ARGS.model_path, trust_remote_code=True)
Please handle automatically for local path and repo name inside, otherwise users always get confused about this | ### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing | 405 | 32 | load_dataset possibly broken for gated datasets?
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name':
tokenizer = AutoTokenizer.from_pretrained(ARGS.model_path, trust_remote_code=True)
Please handle automatically for local path and repo name inside, otherwise users always get confused about this | [
-1.1610548496246338,
-0.943801760673523,
-0.6889219284057617,
1.5928653478622437,
-0.10551269352436066,
-1.2442333698272705,
0.10522346198558807,
-1.0045015811920166,
1.6222649812698364,
-0.6120343208312988,
0.33346378803253174,
-1.6445868015289307,
-0.05387020483613014,
-0.6559549570083618,
-0.7468464374542236,
-0.8263611793518066,
-0.3375468850135803,
-0.7360762357711792,
1.0732338428497314,
2.4785428047180176,
1.3097063302993774,
-1.370446801185608,
2.7710087299346924,
0.7250478267669678,
-0.223329558968544,
-1.0550142526626587,
0.543380618095398,
0.004195511341094971,
-1.2318881750106812,
-0.44912806153297424,
-0.9308329820632935,
-0.04622361436486244,
-0.596561074256897,
-0.4523875415325165,
-0.03514460474252701,
0.4769079089164734,
-0.27662286162376404,
-0.4263376295566559,
-0.6221057176589966,
-0.760683536529541,
0.3946634531021118,
-0.33388298749923706,
0.9158275127410889,
-0.35124528408050537,
1.819044828414917,
-0.5859118700027466,
0.39055874943733215,
0.6904329061508179,
1.350913643836975,
0.1705581247806549,
-0.04426729306578636,
0.3308444321155548,
0.3928368389606476,
-0.009787032380700111,
0.5886737108230591,
1.2313143014907837,
0.6195214986801147,
0.4638150632381439,
0.6558140516281128,
-2.307317018508911,
1.2732943296432495,
-0.9193973541259766,
0.24111780524253845,
1.313469648361206,
-0.9195928573608398,
0.30303671956062317,
-1.8170619010925293,
0.014171464368700981,
0.5847666263580322,
-2.1919355392456055,
0.3243674635887146,
-1.3524941205978394,
-0.5053722858428955,
0.9733849763870239,
0.3286663293838501,
-1.298736333847046,
0.10618817061185837,
-0.4542537033557892,
1.0778319835662842,
0.4153939187526703,
1.0920169353485107,
-1.6824769973754883,
-0.00714071374386549,
-0.23259441554546356,
0.16767175495624542,
-1.2396249771118164,
-1.5961259603500366,
0.5650768280029297,
0.6785744428634644,
0.6188595294952393,
-0.1118386760354042,
1.002223253250122,
-1.083667516708374,
0.8270218372344971,
-1.025809645652771,
-1.7373466491699219,
-1.4552943706512451,
-2.3251609802246094,
-2.2395060062408447,
0.6732282638549805,
-0.5314933061599731,
-0.4832344949245453,
1.9951586723327637,
-0.9971277713775635,
-1.782790184020996,
1.1506996154785156,
0.3018062114715576,
0.05445757508277893,
2.3460662364959717,
0.1750427931547165,
-0.7799208164215088,
0.45322200655937195,
-0.8131382465362549,
0.7419745922088623,
-0.39912569522857666,
1.3939322233200073,
0.4031153917312622,
-1.0374817848205566,
1.555341362953186,
-0.439001202583313,
0.5885001420974731,
-0.6694542169570923,
-0.46569153666496277,
-0.681786298751831,
0.2730952799320221,
1.946826696395874,
-0.34799572825431824,
1.5803970098495483,
-0.33915838599205017,
-1.4897748231887817,
-1.5194554328918457,
0.8765271902084351,
0.47969430685043335,
-0.7582062482833862,
0.15069043636322021,
-0.44795045256614685,
0.1619923859834671,
-0.12220197170972824,
1.1103953123092651,
1.2825026512145996,
0.7297168970108032,
-0.3603720963001251,
-0.7424567937850952,
0.14738613367080688,
-0.056898873299360275,
-0.6891610622406006,
-1.7676374912261963,
-0.26732268929481506,
0.21724891662597656,
0.630013108253479,
-1.2618072032928467,
1.7384639978408813,
0.8684471845626831,
1.944668173789978,
1.0236397981643677,
-0.2781096398830414,
1.5362352132797241,
0.06119294464588165,
1.8221346139907837,
-0.5014408826828003,
0.5546733140945435,
-0.3726970851421356,
-1.1684318780899048,
0.823065996170044,
-0.3597777187824249,
-2.0352609157562256,
-0.7450979948043823,
-0.7831641435623169,
-0.18629176914691925,
-0.7936110496520996,
0.8756152391433716,
-0.28691384196281433,
-1.4497551918029785,
0.15708528459072113,
-0.7658461332321167,
0.21192346513271332,
-1.2174464464187622,
0.26655542850494385,
0.7300403118133545,
-0.6427273750305176,
0.05488152801990509,
-0.2616811990737915,
-1.2117488384246826,
-0.5146816968917847,
0.42003995180130005,
1.8407000303268433,
-0.709348201751709,
0.8886946439743042,
1.0678730010986328,
-0.6769106388092041,
0.08944781869649887,
0.31455621123313904,
-0.3286570906639099,
0.8058595657348633,
-1.0499637126922607,
-0.45694828033447266,
1.141977310180664,
-0.21232496201992035,
-0.7083195447921753,
1.4259693622589111,
0.7954226732254028,
-1.0016114711761475,
-0.28864389657974243,
-0.1461867392063141,
-0.8531925678253174,
0.051370155066251755,
-1.5794036388397217,
-0.11329208314418793,
0.2980321943759918,
-1.537927269935608,
-0.4356464445590973,
-0.23074334859848022,
1.3755757808685303,
-0.13737216591835022,
1.423222303390503,
-0.3131704032421112,
-0.14384658634662628,
-0.2372903823852539,
-0.4483988583087921,
0.10646679997444153,
-0.2875528335571289,
-0.554935097694397,
0.16329838335514069,
-0.7401585578918457,
0.3778044879436493,
1.4392987489700317,
0.36181318759918213,
0.025182705372571945,
0.4947190582752228,
1.1595492362976074,
0.390478253364563,
-0.0499899759888649,
-0.8703576326370239,
-1.5861022472381592,
1.9573910236358643,
-1.4438769817352295,
2.066763401031494,
0.8688545227050781,
-0.027959246188402176,
-1.7824208736419678,
-1.9493212699890137,
1.317429780960083,
1.10946524143219,
2.301537036895752,
0.5883628129959106,
0.4077783524990082,
-0.8432494401931763,
-0.6527837514877319,
0.30730873346328735,
-0.9361993074417114,
-0.692237138748169,
0.1639256477355957,
2.391702651977539,
1.7988502979278564,
-0.46658021211624146,
-0.28978803753852844,
-1.0199084281921387,
1.4215271472930908,
-0.2402379810810089,
0.2794381380081177,
1.9616570472717285,
-0.21621590852737427,
-0.9634535312652588,
1.2884145975112915,
-2.3544397354125977,
0.2549499571323395,
2.0727379322052,
0.20411191880702972,
0.11747568845748901,
-1.4151012897491455,
-0.650550127029419,
-0.28144708275794983,
-0.44998764991760254,
-1.2109802961349487,
0.5070043802261353,
-0.28228211402893066,
-0.7586307525634766,
-1.4178340435028076,
0.1403009295463562,
-1.1400142908096313,
-1.6825387477874756,
0.26242929697036743,
1.976842999458313,
1.995290756225586,
-0.8145713806152344,
1.546264410018921,
-0.3518737256526947,
0.12133461236953735,
1.3292112350463867,
1.2868964672088623,
3.1193296909332275,
1.879889726638794,
-1.325894832611084,
0.7409082651138306,
-0.15956489741802216,
-0.5005227327346802,
1.2107713222503662,
-1.214754343032837,
1.1811782121658325,
-0.20390646159648895,
-1.1895891427993774,
-1.257736086845398,
0.9546878337860107,
0.5259705781936646,
0.027120299637317657,
-0.5113855600357056,
1.1670706272125244,
0.10009682178497314,
1.2887705564498901,
0.607102632522583,
-0.42059794068336487,
0.6039249897003174,
-0.31533363461494446,
-0.5016534328460693,
1.485880970954895,
0.1960562765598297,
-1.4000166654586792,
-2.3476216793060303,
-0.19799740612506866,
-0.8914927244186401,
-0.02905161678791046,
-0.6714787483215332,
-1.1004905700683594,
1.584316372871399,
0.4022228419780731,
-1.1640070676803589,
-0.2653154730796814,
-0.31257864832878113,
-0.4622260332107544,
2.6501455307006836,
-1.331475019454956,
-0.13271459937095642,
-0.981094241142273,
-0.6247085332870483,
1.6686445474624634,
-1.1823136806488037,
-0.2707739770412445,
-1.0515637397766113,
-0.6009327173233032,
-1.2529000043869019,
-0.6493722200393677,
0.04921465367078781,
-0.7980002164840698,
0.8190562725067139,
0.18634925782680511,
-1.2390718460083008,
-0.3481622338294983,
-0.8493508100509644,
1.0685091018676758,
-0.19050991535186768,
0.20808781683444977,
1.9577491283416748,
0.3285115361213684,
-0.46672460436820984,
0.787413477897644,
1.1992565393447876,
0.564186692237854,
-0.6002810001373291,
0.17607863247394562,
-0.648874044418335,
0.33247268199920654,
-1.4391424655914307,
0.23358699679374695,
-2.852064371109009,
0.593142032623291,
-0.021261747926473618,
-0.07994130998849869,
0.004267524927854538,
-1.3935075998306274,
1.1342560052871704,
2.5871124267578125,
-1.2036833763122559,
0.4845065474510193,
0.4238250255584717,
1.1657438278198242,
-1.6703002452850342,
0.2528802752494812,
-0.42260825634002686,
2.07716965675354,
0.14837807416915894,
1.2646021842956543,
-0.42944997549057007,
-2.3006784915924072,
0.5723243951797485,
-1.2748357057571411,
-1.1348838806152344,
0.8174037933349609,
-0.9149600267410278,
0.1880774199962616,
-1.5038022994995117,
-0.23749075829982758,
-0.9025734663009644,
-1.1817306280136108,
0.743256688117981,
0.09145175665616989,
0.3794652223587036,
-0.6614037752151489,
0.4006592631340027,
-2.140078544616699,
-1.3988317251205444,
-0.16718612611293793,
-0.937129020690918,
0.5189282894134521,
-0.3707076907157898,
0.5996453762054443,
-0.15217673778533936,
0.03390907496213913,
0.3090223968029022,
1.4593703746795654,
3.4247589111328125,
0.21124114096164703,
0.25683721899986267,
-0.14051102101802826,
-0.934677004814148,
1.3926503658294678,
0.8341207504272461,
-0.16912202537059784,
-0.5129368305206299,
-1.015850305557251,
1.3095606565475464,
1.9679691791534424,
1.0713474750518799,
0.09094427525997162,
-0.8562275171279907,
-0.8125571012496948,
-0.06545381247997284,
0.1861545890569687,
0.5173194408416748,
0.896796464920044,
0.04890656843781471,
0.058593884110450745,
1.3175783157348633,
1.13469660282135,
-0.44532060623168945,
0.47944176197052,
-0.9022212028503418,
-0.43613943457603455,
0.45284655690193176,
0.22551049292087555,
-0.04088974371552467,
0.44255322217941284,
-0.9741291999816895,
-0.29851144552230835,
-0.4041113555431366,
-0.8685060739517212,
-0.6688113212585449,
-0.37729376554489136,
-0.37649810314178467,
1.5916869640350342,
0.08155395835638046,
-0.49596107006073,
-0.010102515108883381,
-0.6992354393005371,
-0.16694998741149902,
-1.0413007736206055,
0.199558287858963,
-0.12160828709602356,
-0.05863279104232788,
-0.1559576541185379,
1.6452836990356445,
-0.966123104095459,
-2.0689079761505127,
0.18528050184249878,
0.2893293797969818,
-0.2504086494445801,
0.17025674879550934,
1.769641637802124,
0.48644059896469116,
1.3480260372161865,
1.3202738761901855,
0.9480055570602417,
-0.6810147762298584,
-1.2731573581695557,
0.6644144058227539,
1.0468542575836182,
-1.3581089973449707,
0.8585982322692871,
-0.10826729238033295,
-0.5500049591064453,
0.6395199298858643,
1.3621658086776733,
0.5077838897705078,
-1.9942259788513184,
0.8005750179290771,
-0.958085298538208,
0.7707866430282593,
0.703452467918396,
0.7141019105911255,
0.22466924786567688,
0.7923260927200317,
-1.1745113134384155,
-1.1573764085769653,
-0.7685906887054443,
-0.7219035625457764,
1.8796353340148926,
-0.2994875907897949,
0.5331525802612305,
-0.19139783084392548,
-1.3315186500549316,
-0.17423710227012634,
0.7808531522750854,
0.40072619915008545,
-0.5000158548355103,
0.7980095148086548,
-0.6283923387527466,
-0.9536401033401489,
-1.2790194749832153,
-0.3998466730117798,
-1.007354497909546,
-0.9277595281600952,
1.003253698348999,
0.8187633752822876,
0.364128977060318,
1.942405104637146,
0.6314345598220825,
0.25053322315216064,
-2.590987205505371,
0.927525520324707,
0.3582953214645386,
-0.07600066065788269,
0.8807535171508789,
0.3292712867259979,
1.0848551988601685,
0.06687432527542114,
0.6072133779525757,
-2.3940744400024414,
2.2434439659118652,
-0.18747426569461823,
0.660098671913147,
-0.05559558793902397,
-0.22243627905845642,
1.0892276763916016,
0.44777944684028625,
0.5078611373901367,
-1.0912796258926392,
0.7484868764877319,
-0.519086480140686,
1.1618720293045044,
0.8570451736450195,
-0.8935564756393433,
-0.017824070528149605,
1.3211408853530884,
0.41593942046165466,
-0.5646727085113525,
-0.9597792625427246,
-0.8805996179580688,
1.0215908288955688,
1.7082676887512207,
0.11417418718338013,
-0.016328435391187668,
0.8923176527023315,
0.5753079652786255,
-1.2580361366271973,
0.08221477270126343,
-0.6340861320495605,
-0.7131665945053101,
1.757206916809082,
2.083540678024292,
-0.17845584452152252,
-0.20846813917160034,
-0.7549091577529907,
-1.2643098831176758,
0.7197265625,
-0.08187701553106308,
0.04112739861011505,
0.6968816518783569,
-0.5942825078964233,
1.1522622108459473,
0.7483160495758057,
1.0088534355163574,
0.08918560296297073,
0.22631512582302094,
0.42908400297164917,
-0.31893661618232727,
-1.1994253396987915,
-0.2856803834438324,
-1.1355900764465332,
-2.5061228275299072,
0.4751282036304474,
-0.1812652349472046,
-1.4187521934509277,
0.01967492513358593,
-1.0139213800430298,
1.009549856185913,
-0.6125234365463257,
-1.0725905895233154,
-1.4630488157272339,
0.21801084280014038,
-0.129946768283844,
0.8148610591888428,
-1.6052168607711792,
-0.1630079448223114,
1.2201627492904663,
0.9006341695785522,
-0.6703577041625977,
0.9859213829040527,
0.24100255966186523,
1.0524288415908813,
0.8449255228042603,
-0.36455339193344116,
0.5271376371383667,
0.04110828787088394,
-1.3307541608810425,
0.4686625599861145,
1.2335093021392822,
0.16630905866622925,
1.5090131759643555,
-0.46679458022117615,
0.0007422333583235741,
0.47409141063690186,
-0.6011573076248169,
-0.5222272872924805,
-0.5315979719161987,
0.6504184007644653,
0.029469706118106842,
-0.9556678533554077,
0.005141331814229488,
-0.09681344777345657,
-0.2826383411884308,
0.16083666682243347,
-1.5347682237625122,
-0.14002905786037445,
-0.32430002093315125,
-0.5695655345916748,
-1.2669072151184082,
-0.009997494518756866,
1.3491697311401367,
-0.7637463808059692,
-0.31546345353126526,
0.5631550550460815,
0.29343971610069275,
0.5176047086715698,
0.5925836563110352,
-0.6843677759170532,
-0.23347918689250946,
-0.2373863309621811,
-0.46422454714775085,
0.32125645875930786,
1.330047369003296,
-0.08890119194984436,
-0.9666907787322998,
0.6349363327026367,
-0.41325661540031433,
0.058458536863327026,
1.9532874822616577,
0.0925992950797081,
-0.7568880319595337,
0.26401594281196594,
-0.7173342704772949,
1.8959425687789917,
1.7158842086791992,
1.3298293352127075,
-0.18975737690925598,
-0.9251872301101685,
0.6973521709442139,
-0.322965532541275,
-0.3582533299922943,
0.8693788051605225,
0.40485095977783203,
-0.19816423952579498,
-1.4136604070663452,
0.6359817981719971,
1.2685215473175049,
-0.9111344814300537,
-0.7375571727752686,
0.12704229354858398,
-0.8454641103744507,
1.149476408958435,
0.6609382629394531,
0.30266517400741577,
0.30062511563301086,
1.5456503629684448,
0.7596633434295654,
-0.4680962860584259,
0.5657898187637329,
0.5544425249099731,
-0.21233509480953217,
-2.0614240169525146,
-1.0989952087402344,
0.3468148708343506,
-0.44962838292121887,
-1.6353932619094849,
1.3358640670776367,
-1.1899960041046143,
-1.0040287971496582,
0.6011477708816528,
0.060296811163425446,
1.3874237537384033,
0.3244655132293701,
1.642193078994751,
2.1036365032196045,
0.8694491386413574,
0.42649364471435547,
1.1776050329208374,
-0.1581200212240219,
-0.473056823015213,
1.8252509832382202,
-0.42025360465049744,
0.5658789873123169,
1.0809005498886108,
-0.41054567694664,
-1.1559034585952759,
-0.7788951396942139,
-1.3144735097885132,
-0.6768069267272949,
1.245519995689392,
0.03474631905555725,
-1.123549222946167,
0.29938384890556335,
1.6055182218551636,
0.096662737429142,
-0.3069918155670166,
0.6242493391036987,
0.4365482032299042,
-0.8182117938995361,
-0.030921755358576775,
-0.8854753971099854,
0.5351126194000244,
-0.1670820415019989,
-0.35569053888320923,
0.31827911734580994,
0.5011404752731323,
1.3800290822982788,
-0.04070764780044556,
0.0948747843503952,
1.1385715007781982,
-1.4016108512878418,
1.5255224704742432,
-0.7101987600326538,
0.2725459337234497,
-2.432404041290283,
1.4234133958816528,
-0.8027787208557129,
1.9424220323562622,
-2.5825111865997314,
0.4872805178165436,
-0.5767726898193359,
-0.4334025979042053,
0.3036350607872009,
-0.3497273921966553,
0.11383970826864243,
-0.14440201222896576,
-1.0621891021728516,
-0.06169349327683449,
-0.6923785209655762,
0.6120110750198364,
1.166760802268982,
1.3600106239318848,
-1.1095353364944458,
-0.2031622678041458,
-1.7341557741165161,
-0.2256210297346115,
-0.78163743019104,
0.32320544123649597,
-1.9790862798690796,
-0.1310402750968933,
-1.9735493659973145,
-2.351685047149658,
-1.2404556274414062,
-0.808600902557373,
1.0257679224014282,
0.1887761354446411,
-0.8967924118041992,
1.2040287256240845,
-0.38235941529273987,
-1.7847212553024292,
1.0510300397872925,
-2.1473419666290283
] |
https://github.com/huggingface/datasets/issues/5274 | load_dataset possibly broken for gated datasets? | I think I'm also hitting this error, trying to load a model from a local path. | ### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing | 405 | 16 | load_dataset possibly broken for gated datasets?
### Describe the bug
When trying to download the [winoground dataset](https://huggingface.co/datasets/facebook/winoground), I get this error unless I roll back the version of huggingface-hub:
```
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
165 if repo_id.count("/") > 1:
166 raise HFValidationError(
--> 167 "Repo id must be in the form 'repo_name' or 'namespace/repo_name':"
168 f" '{repo_id}'. Use `repo_type` argument if needed."
169 )
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'datasets/facebook/winoground'. Use `repo_type` argument if needed
```
### Steps to reproduce the bug
Install requirements:
```
pip install transformers
pip install datasets
# It works if you uncomment the following line, rolling back huggingface hub:
# pip install huggingface-hub==0.10.1
```
Then:
```
from datasets import load_dataset
auth_token = "" # Replace with an auth token, which you can get from your huggingface account: Profile -> Settings -> Access Tokens -> New Token
winoground = load_dataset("facebook/winoground", use_auth_token=auth_token)["test"]
```
### Expected behavior
Downloading of the datset
### Environment info
Just a google colab; see here: https://colab.research.google.com/drive/15wwOSte2CjTazdnCWYUm2VPlFbk2NGc0?usp=sharing
I think I'm also hitting this error, trying to load a model from a local path. | [
-1.166681170463562,
-0.945696234703064,
-0.6965746879577637,
1.5829026699066162,
-0.10187029838562012,
-1.2396893501281738,
0.09540574252605438,
-1.0175329446792603,
1.63392972946167,
-0.6130630373954773,
0.3329285979270935,
-1.6495697498321533,
-0.05647682771086693,
-0.6658057570457458,
-0.7434102892875671,
-0.8273240923881531,
-0.3277416527271271,
-0.7383644580841064,
1.0633981227874756,
2.4773426055908203,
1.3008534908294678,
-1.3882472515106201,
2.7783241271972656,
0.7395695447921753,
-0.22143368422985077,
-1.0405243635177612,
0.5357823371887207,
-0.01034973468631506,
-1.2282485961914062,
-0.4468417763710022,
-0.9273166656494141,
-0.04586535692214966,
-0.6055644154548645,
-0.4593021869659424,
-0.04403995722532272,
0.48006996512413025,
-0.279357373714447,
-0.4153416156768799,
-0.6091120839118958,
-0.753211498260498,
0.3980937600135803,
-0.341654896736145,
0.9230156540870667,
-0.34672802686691284,
1.8121272325515747,
-0.5861986875534058,
0.3757600486278534,
0.6871644258499146,
1.3527723550796509,
0.16774873435497284,
-0.03648579120635986,
0.343688428401947,
0.3876376450061798,
-0.02062297612428665,
0.5869287252426147,
1.2212263345718384,
0.6225014925003052,
0.4684506356716156,
0.6621315479278564,
-2.3058927059173584,
1.2752991914749146,
-0.9274008870124817,
0.2548803687095642,
1.3077341318130493,
-0.9063529372215271,
0.3169712424278259,
-1.8047912120819092,
0.005930159240961075,
0.5853803157806396,
-2.194221258163452,
0.31878912448883057,
-1.3469864130020142,
-0.507911741733551,
0.9718493819236755,
0.3376642167568207,
-1.2968873977661133,
0.1088876873254776,
-0.4472608268260956,
1.0734227895736694,
0.4193696677684784,
1.0912896394729614,
-1.6807175874710083,
-0.0025750426575541496,
-0.23283281922340393,
0.17418253421783447,
-1.2321844100952148,
-1.6028412580490112,
0.5583144426345825,
0.6621559858322144,
0.6335641145706177,
-0.11321280896663666,
0.9971909523010254,
-1.0769391059875488,
0.8175317645072937,
-1.0279995203018188,
-1.7200068235397339,
-1.4534204006195068,
-2.3226444721221924,
-2.2409827709198,
0.6825137734413147,
-0.5475425124168396,
-0.47618699073791504,
1.988471269607544,
-0.9908027052879333,
-1.7825769186019897,
1.1479285955429077,
0.30770912766456604,
0.037384748458862305,
2.348506212234497,
0.1672329157590866,
-0.7774904370307922,
0.4547538757324219,
-0.8180146813392639,
0.7491415739059448,
-0.3976367712020874,
1.3972053527832031,
0.4132530093193054,
-1.029513955116272,
1.5498250722885132,
-0.46679550409317017,
0.5909059643745422,
-0.6645877361297607,
-0.46368876099586487,
-0.698657214641571,
0.2826603651046753,
1.9385888576507568,
-0.34148967266082764,
1.5896497964859009,
-0.34598544239997864,
-1.4952154159545898,
-1.5304813385009766,
0.8797144889831543,
0.4722846746444702,
-0.7727835774421692,
0.16184097528457642,
-0.4418824315071106,
0.15923404693603516,
-0.114484041929245,
1.1180311441421509,
1.269578218460083,
0.7250851988792419,
-0.3440689146518707,
-0.7461795210838318,
0.1490502655506134,
-0.057737085968256,
-0.701181948184967,
-1.7638812065124512,
-0.27514389157295227,
0.2260294407606125,
0.6219478845596313,
-1.258060097694397,
1.7416996955871582,
0.8620944023132324,
1.945609450340271,
1.022202968597412,
-0.27506381273269653,
1.552435040473938,
0.05513567849993706,
1.820152759552002,
-0.5061120986938477,
0.5632033944129944,
-0.36968865990638733,
-1.1724841594696045,
0.8207939267158508,
-0.36693039536476135,
-2.0305521488189697,
-0.7349612712860107,
-0.7919896245002747,
-0.18970201909542084,
-0.7890892028808594,
0.8707489371299744,
-0.2943685054779053,
-1.4457632303237915,
0.1594342738389969,
-0.7601755857467651,
0.2170354127883911,
-1.2213544845581055,
0.2724669277667999,
0.7263035178184509,
-0.6413149237632751,
0.05399514362215996,
-0.27441707253456116,
-1.205776572227478,
-0.51457279920578,
0.4156007170677185,
1.843509554862976,
-0.7124534249305725,
0.8772963881492615,
1.0574169158935547,
-0.6633358597755432,
0.08371396362781525,
0.32707488536834717,
-0.32833564281463623,
0.8026097416877747,
-1.056643009185791,
-0.47037118673324585,
1.1478192806243896,
-0.20095694065093994,
-0.7009605765342712,
1.4225512742996216,
0.8030263781547546,
-1.0008798837661743,
-0.28486672043800354,
-0.15499773621559143,
-0.8633121848106384,
0.04322613403201103,
-1.5780013799667358,
-0.11272548139095306,
0.2860701084136963,
-1.5374045372009277,
-0.44259312748908997,
-0.24000458419322968,
1.3439096212387085,
-0.14509962499141693,
1.418292760848999,
-0.3339426517486572,
-0.1333203762769699,
-0.23374751210212708,
-0.45002707839012146,
0.10449084639549255,
-0.284042626619339,
-0.5591042041778564,
0.1497640311717987,
-0.7336878180503845,
0.36399221420288086,
1.4503527879714966,
0.36553800106048584,
0.0323602519929409,
0.4934903681278229,
1.161568522453308,
0.38814374804496765,
-0.043149977922439575,
-0.8663559556007385,
-1.5835177898406982,
1.967010736465454,
-1.4420008659362793,
2.046980857849121,
0.8645814061164856,
-0.02010234445333481,
-1.7793728113174438,
-1.9306014776229858,
1.3224537372589111,
1.1194244623184204,
2.2932944297790527,
0.5904756784439087,
0.4039117693901062,
-0.8496031165122986,
-0.6549900770187378,
0.3045697808265686,
-0.9316743016242981,
-0.7054167985916138,
0.16002482175827026,
2.391634941101074,
1.8160089254379272,
-0.4721720516681671,
-0.290840208530426,
-1.0206804275512695,
1.430485486984253,
-0.251554936170578,
0.26495563983917236,
1.9590463638305664,
-0.22635908424854279,
-0.9721582531929016,
1.2919921875,
-2.3533215522766113,
0.2386757880449295,
2.064249277114868,
0.21605485677719116,
0.13071511685848236,
-1.4107789993286133,
-0.6540343165397644,
-0.2771862745285034,
-0.442326158285141,
-1.22049880027771,
0.5042133331298828,
-0.28132927417755127,
-0.745622992515564,
-1.4307781457901,
0.14888951182365417,
-1.1379671096801758,
-1.6781606674194336,
0.2591620683670044,
1.966710090637207,
2.0071139335632324,
-0.8180026412010193,
1.5478814840316772,
-0.3483906388282776,
0.13062265515327454,
1.3294105529785156,
1.2760300636291504,
3.1290555000305176,
1.869065284729004,
-1.3269952535629272,
0.7393177151679993,
-0.15941424667835236,
-0.5134714841842651,
1.2106046676635742,
-1.2119555473327637,
1.1683043241500854,
-0.20670601725578308,
-1.1831380128860474,
-1.2448909282684326,
0.9444382786750793,
0.520963728427887,
0.03544522076845169,
-0.5119508504867554,
1.1676766872406006,
0.08523084223270416,
1.2856378555297852,
0.6130863428115845,
-0.41508787870407104,
0.5828491449356079,
-0.3009641170501709,
-0.506139874458313,
1.491682767868042,
0.19595932960510254,
-1.4007997512817383,
-2.3464553356170654,
-0.1949477344751358,
-0.8990022540092468,
-0.03118538297712803,
-0.6822218298912048,
-1.0952633619308472,
1.5758401155471802,
0.3987906873226166,
-1.1633390188217163,
-0.2661074697971344,
-0.30856236815452576,
-0.46393728256225586,
2.650777816772461,
-1.3405239582061768,
-0.14867395162582397,
-0.9782906174659729,
-0.6270536780357361,
1.6614621877670288,
-1.1814180612564087,
-0.26004064083099365,
-1.0565805435180664,
-0.6141449213027954,
-1.2607711553573608,
-0.6336603760719299,
0.03858968988060951,
-0.8066479563713074,
0.8346571922302246,
0.19164875149726868,
-1.2308013439178467,
-0.3333912491798401,
-0.8623109459877014,
1.059914469718933,
-0.19370661675930023,
0.22087426483631134,
1.9497809410095215,
0.32099080085754395,
-0.4701680839061737,
0.7950683832168579,
1.1997504234313965,
0.5599965453147888,
-0.6091157793998718,
0.16415847837924957,
-0.663910984992981,
0.33583950996398926,
-1.4400763511657715,
0.23173017799854279,
-2.8527379035949707,
0.5954725742340088,
-0.027900543063879013,
-0.0910133570432663,
-0.004741894081234932,
-1.4016674757003784,
1.1263271570205688,
2.5989396572113037,
-1.2041795253753662,
0.48370760679244995,
0.4149027466773987,
1.1819547414779663,
-1.682706356048584,
0.25463005900382996,
-0.4145439565181732,
2.0801687240600586,
0.14199714362621307,
1.2563302516937256,
-0.41974377632141113,
-2.321011781692505,
0.5645835995674133,
-1.2839159965515137,
-1.1301517486572266,
0.8117347359657288,
-0.908307671546936,
0.17489048838615417,
-1.503717303276062,
-0.2337963581085205,
-0.9087024927139282,
-1.174525499343872,
0.7559905052185059,
0.0939389318227768,
0.38425686955451965,
-0.6691542863845825,
0.4071190357208252,
-2.1447083950042725,
-1.4031071662902832,
-0.1589820832014084,
-0.9182687401771545,
0.5191065669059753,
-0.3696872889995575,
0.6044243574142456,
-0.15305590629577637,
0.030755802989006042,
0.30926865339279175,
1.4575246572494507,
3.431558847427368,
0.2178158462047577,
0.2698323428630829,
-0.12822668254375458,
-0.9195176959037781,
1.3865280151367188,
0.8270760178565979,
-0.1829957664012909,
-0.5023694634437561,
-1.0249038934707642,
1.3309472799301147,
1.9634900093078613,
1.056199073791504,
0.09249646961688995,
-0.8557195067405701,
-0.7981917262077332,
-0.07148930430412292,
0.1970466673374176,
0.511242687702179,
0.8857415914535522,
0.038843486458063126,
0.06329357624053955,
1.329818606376648,
1.1412714719772339,
-0.4460102915763855,
0.48794376850128174,
-0.8991915583610535,
-0.4335317611694336,
0.46679380536079407,
0.22190774977207184,
-0.04107757657766342,
0.44516703486442566,
-0.970127522945404,
-0.2943395972251892,
-0.406826376914978,
-0.8606768846511841,
-0.667373776435852,
-0.38479164242744446,
-0.3679753243923187,
1.586930274963379,
0.08371950685977936,
-0.511978268623352,
-0.008700288832187653,
-0.7095762491226196,
-0.1671530306339264,
-1.0379638671875,
0.18542860448360443,
-0.12554773688316345,
-0.05708930641412735,
-0.15145273506641388,
1.641103744506836,
-0.9647340774536133,
-2.063473701477051,
0.18047519028186798,
0.3068220913410187,
-0.2405012845993042,
0.16377727687358856,
1.773124098777771,
0.4844089150428772,
1.3481441736221313,
1.3134982585906982,
0.9439362287521362,
-0.6812531352043152,
-1.271203637123108,
0.6674925684928894,
1.0551952123641968,
-1.338333249092102,
0.8524900078773499,
-0.11024908721446991,
-0.5515152812004089,
0.6426754593849182,
1.340955376625061,
0.5028842091560364,
-1.9840750694274902,
0.8080014586448669,
-0.9584549069404602,
0.7853903770446777,
0.7059091925621033,
0.7130833864212036,
0.22447583079338074,
0.7928892970085144,
-1.1813130378723145,
-1.1528877019882202,
-0.7801973819732666,
-0.7102859616279602,
1.8886210918426514,
-0.27995529770851135,
0.5316936373710632,
-0.19635923206806183,
-1.3257907629013062,
-0.1632968783378601,
0.783039391040802,
0.40628373622894287,
-0.49697810411453247,
0.7986686825752258,
-0.639208197593689,
-0.9628942012786865,
-1.2868027687072754,
-0.40288475155830383,
-1.0096213817596436,
-0.9306243658065796,
1.0007879734039307,
0.8238829970359802,
0.3569130003452301,
1.9418097734451294,
0.6473650932312012,
0.25493302941322327,
-2.577772378921509,
0.9254065155982971,
0.3465770483016968,
-0.07690691947937012,
0.8702141642570496,
0.34211409091949463,
1.0712814331054688,
0.07617112994194031,
0.61100172996521,
-2.3889260292053223,
2.2496533393859863,
-0.19137853384017944,
0.6623930335044861,
-0.05824049934744835,
-0.22471341490745544,
1.0894575119018555,
0.44743838906288147,
0.4980415403842926,
-1.0926672220230103,
0.7359748482704163,
-0.5123710036277771,
1.1714242696762085,
0.8618544340133667,
-0.8927007913589478,
-0.0133417509496212,
1.3190138339996338,
0.40803179144859314,
-0.5676029920578003,
-0.9714643955230713,
-0.8650014400482178,
1.0393773317337036,
1.7020941972732544,
0.1245272159576416,
-0.024517623707652092,
0.8881485462188721,
0.5816799998283386,
-1.256321907043457,
0.08986417949199677,
-0.6234760880470276,
-0.7163326144218445,
1.7512410879135132,
2.0847034454345703,
-0.18204760551452637,
-0.20182320475578308,
-0.7535207271575928,
-1.2712650299072266,
0.7312451601028442,
-0.06107474863529205,
0.04219433665275574,
0.7009347677230835,
-0.6014670133590698,
1.1504696607589722,
0.7699087262153625,
1.00235915184021,
0.1050366759300232,
0.22237862646579742,
0.4351899027824402,
-0.3145626187324524,
-1.1912144422531128,
-0.286293089389801,
-1.145577311515808,
-2.4987521171569824,
0.47298288345336914,
-0.17220580577850342,
-1.426811695098877,
0.02550555393099785,
-1.0093846321105957,
1.019294261932373,
-0.6142178177833557,
-1.063616394996643,
-1.4618226289749146,
0.22978575527668,
-0.13660761713981628,
0.8166951537132263,
-1.608436942100525,
-0.15291696786880493,
1.2111921310424805,
0.9063190817832947,
-0.6566154956817627,
0.9777400493621826,
0.236906960606575,
1.0489197969436646,
0.8609555959701538,
-0.3677321672439575,
0.5218924283981323,
0.04279952496290207,
-1.3409696817398071,
0.45926806330680847,
1.240114450454712,
0.1680523008108139,
1.4937371015548706,
-0.457705557346344,
0.0028909174725413322,
0.4608328938484192,
-0.5947379469871521,
-0.5250371694564819,
-0.5259377956390381,
0.6438647508621216,
0.04278365150094032,
-0.9575624465942383,
-0.0011165179312229156,
-0.08416205644607544,
-0.28472059965133667,
0.17191846668720245,
-1.537750244140625,
-0.14622485637664795,
-0.32882049679756165,
-0.5636958479881287,
-1.2678873538970947,
-0.012561572715640068,
1.3508884906768799,
-0.7655909061431885,
-0.3095882833003998,
0.5790470838546753,
0.2970641851425171,
0.5062760710716248,
0.592995285987854,
-0.699083685874939,
-0.23232926428318024,
-0.23128604888916016,
-0.4545971155166626,
0.3047269880771637,
1.3163673877716064,
-0.10133199393749237,
-0.973294734954834,
0.6291305422782898,
-0.40587684512138367,
0.0545138455927372,
1.9359121322631836,
0.09678423404693604,
-0.7629700899124146,
0.26432493329048157,
-0.7245272994041443,
1.9019831418991089,
1.7329856157302856,
1.3251510858535767,
-0.17958244681358337,
-0.9229102730751038,
0.703087568283081,
-0.32193446159362793,
-0.3518778383731842,
0.8716676235198975,
0.39728599786758423,
-0.19727696478366852,
-1.428597092628479,
0.6285130381584167,
1.2650587558746338,
-0.8914850354194641,
-0.7439284920692444,
0.108793243765831,
-0.8454633951187134,
1.1454110145568848,
0.6575819849967957,
0.3015536367893219,
0.3066192865371704,
1.5678735971450806,
0.7681261897087097,
-0.4789813458919525,
0.5686109066009521,
0.5553870797157288,
-0.20221948623657227,
-2.065401077270508,
-1.1180375814437866,
0.33643805980682373,
-0.44724786281585693,
-1.634762167930603,
1.3400195837020874,
-1.1853519678115845,
-0.9921277165412903,
0.6221075654029846,
0.06423294544219971,
1.3819717168807983,
0.3064356744289398,
1.634900689125061,
2.1050338745117188,
0.8601405620574951,
0.41534364223480225,
1.167350172996521,
-0.1631208062171936,
-0.4672752916812897,
1.8228296041488647,
-0.4036763310432434,
0.5691764950752258,
1.074223518371582,
-0.41651901602745056,
-1.1530030965805054,
-0.7763243317604065,
-1.3074886798858643,
-0.6866762638092041,
1.2471485137939453,
0.03928887099027634,
-1.1232787370681763,
0.2972223162651062,
1.6269090175628662,
0.07522797584533691,
-0.31188175082206726,
0.6301496028900146,
0.4504449665546417,
-0.8195368051528931,
-0.015306470915675163,
-0.8961660265922546,
0.5518493056297302,
-0.1673818826675415,
-0.3491312861442566,
0.31164249777793884,
0.5078536868095398,
1.3819373846054077,
-0.018122417852282524,
0.09187032282352448,
1.1392407417297363,
-1.398543357849121,
1.519834041595459,
-0.7256589531898499,
0.28218555450439453,
-2.4349420070648193,
1.4175783395767212,
-0.803029477596283,
1.947521686553955,
-2.584660291671753,
0.48922300338745117,
-0.5924569964408875,
-0.4355964958667755,
0.3132955729961395,
-0.35522201657295227,
0.11789484322071075,
-0.14020955562591553,
-1.052423357963562,
-0.0555349700152874,
-0.6957365870475769,
0.6131829023361206,
1.1741849184036255,
1.3674941062927246,
-1.1111258268356323,
-0.20031194388866425,
-1.7231308221817017,
-0.21554994583129883,
-0.7801553010940552,
0.31884506344795227,
-1.9837417602539062,
-0.12868784368038177,
-1.9737862348556519,
-2.346755266189575,
-1.2580969333648682,
-0.8078421950340271,
1.03123140335083,
0.18046946823596954,
-0.906842827796936,
1.2156527042388916,
-0.3911707401275635,
-1.771575689315796,
1.0587230920791626,
-2.159083127975464
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | Hi ! We're using the Arrow format for the datasets, and PyArrow tensors are not part of the Arrow format AFAIK:
> There is no direct support in the arrow columnar format to store Tensors as column values.
source: https://github.com/apache/arrow/issues/4802#issuecomment-508494694 | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 40 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
Hi ! We're using the Arrow format for the datasets, and PyArrow tensors are not part of the Arrow format AFAIK:
> There is no direct support in the arrow columnar format to store Tensors as column values.
source: https://github.com/apache/arrow/issues/4802#issuecomment-508494694 | [
-1.2616667747497559,
-0.8597630858421326,
-0.8196055293083191,
1.475063681602478,
-0.13086485862731934,
-1.2175335884094238,
0.049577496945858,
-1.1207655668258667,
1.632009744644165,
-0.7782407999038696,
0.29627755284309387,
-1.6741230487823486,
0.1077297180891037,
-0.5368885397911072,
-0.7770323753356934,
-0.8977963924407959,
-0.3721787631511688,
-0.7441357374191284,
0.9733633399009705,
2.569822311401367,
1.2261106967926025,
-1.4534438848495483,
2.7151737213134766,
0.7969189882278442,
-0.17351838946342468,
-1.0053738355636597,
0.5396347641944885,
0.09917726367712021,
-1.2158187627792358,
-0.5237981081008911,
-0.928174614906311,
-0.08831507712602615,
-0.4248083531856537,
-0.4593122899532318,
0.0019247392192482948,
0.358225017786026,
-0.2584010660648346,
-0.3408658504486084,
-0.5526498556137085,
-0.7497355937957764,
0.3922681510448456,
-0.4565076529979706,
0.9338732361793518,
-0.3637522757053375,
1.8441108465194702,
-0.5260289311408997,
0.3695773780345917,
0.6898487210273743,
1.3019438982009888,
0.1243257001042366,
0.014285863377153873,
0.3607429563999176,
0.4196755886077881,
-0.000799296423792839,
0.4754193127155304,
1.1208983659744263,
0.6848351359367371,
0.5258500576019287,
0.724433958530426,
-2.13992977142334,
1.3065273761749268,
-0.9627665877342224,
0.25647443532943726,
1.4218436479568481,
-0.9652359485626221,
0.40240809321403503,
-1.7585389614105225,
-0.12166769057512283,
0.5625730752944946,
-2.3003804683685303,
0.25585103034973145,
-1.2417548894882202,
-0.5578520894050598,
0.9702364206314087,
0.2387986034154892,
-1.3069461584091187,
0.0957975685596466,
-0.4916384518146515,
1.1047706604003906,
0.5623239874839783,
1.0898982286453247,
-1.611751914024353,
0.04378858208656311,
-0.27749621868133545,
0.006628171540796757,
-1.3446837663650513,
-1.5063420534133911,
0.5064765214920044,
0.6688308119773865,
0.6355064511299133,
0.01787859946489334,
0.9711647033691406,
-1.078725814819336,
0.8160662055015564,
-0.9287447929382324,
-1.6929723024368286,
-1.3812850713729858,
-2.355114698410034,
-2.2255125045776367,
0.8171983361244202,
-0.46861451864242554,
-0.5658361911773682,
2.081555128097534,
-1.0293147563934326,
-1.7609009742736816,
1.1086409091949463,
0.30532267689704895,
0.0062665147706866264,
2.4804255962371826,
0.18852479755878448,
-0.7015520930290222,
0.3252740800380707,
-0.6936347484588623,
0.8198397755622864,
-0.5804914236068726,
1.2636722326278687,
0.5050536394119263,
-1.0436466932296753,
1.71210515499115,
-0.4249233901500702,
0.48979058861732483,
-0.7652803063392639,
-0.48507726192474365,
-0.7790941596031189,
0.356630802154541,
1.8911398649215698,
-0.3828132748603821,
1.5077162981033325,
-0.31089529395103455,
-1.4606678485870361,
-1.6738698482513428,
0.8245577812194824,
0.4379027783870697,
-0.8209413886070251,
0.1759021282196045,
-0.3446931540966034,
0.12479300051927567,
-0.07477348297834396,
1.1152485609054565,
1.1896847486495972,
0.645081102848053,
-0.256665974855423,
-0.8161619901657104,
0.24411223828792572,
-0.09362258017063141,
-0.6784073114395142,
-1.7536295652389526,
-0.31369641423225403,
0.13544006645679474,
0.6383988857269287,
-1.2204376459121704,
1.7498903274536133,
0.8296734690666199,
1.876402497291565,
1.0054274797439575,
-0.3254927694797516,
1.531799077987671,
0.05576973780989647,
1.8379392623901367,
-0.500120997428894,
0.6531288027763367,
-0.29608070850372314,
-1.1745657920837402,
0.8348134160041809,
-0.36150825023651123,
-2.00895619392395,
-0.735345721244812,
-0.8666671514511108,
-0.21967215836048126,
-0.8164947628974915,
0.9377343058586121,
-0.24291570484638214,
-1.2918696403503418,
0.3037544786930084,
-0.709054708480835,
0.11028243601322174,
-1.275408387184143,
0.3518424928188324,
0.7932500839233398,
-0.5481314659118652,
-0.0036499141715466976,
-0.2688072621822357,
-1.3352351188659668,
-0.4891686737537384,
0.2607472538948059,
2.0341637134552,
-0.7686797380447388,
0.8486377596855164,
0.9992849230766296,
-0.7045599818229675,
-0.01386001706123352,
0.3415467441082001,
-0.35658174753189087,
0.8688396215438843,
-1.1314085721969604,
-0.44312822818756104,
1.1005427837371826,
-0.18283040821552277,
-0.6702359914779663,
1.4384123086929321,
0.8930999040603638,
-0.9816993474960327,
-0.2671971619129181,
-0.21156637370586395,
-0.7458997368812561,
-0.018169820308685303,
-1.5654529333114624,
-0.12867411971092224,
0.39932116866111755,
-1.4788823127746582,
-0.45855268836021423,
-0.10329804569482803,
1.355031132698059,
-0.2133525162935257,
1.5433443784713745,
-0.34448370337486267,
-0.1618291586637497,
-0.29801276326179504,
-0.4037333130836487,
0.13636675477027893,
-0.21443165838718414,
-0.6270391941070557,
0.18267953395843506,
-0.7351899743080139,
0.3096425235271454,
1.3816453218460083,
0.41430726647377014,
0.11225755512714386,
0.5614815354347229,
1.0541712045669556,
0.34563666582107544,
-0.07042812556028366,
-0.904931902885437,
-1.5765899419784546,
2.036400318145752,
-1.3763915300369263,
2.03498911857605,
0.8264856338500977,
-0.000883275642991066,
-1.8213773965835571,
-1.9111348390579224,
1.4017804861068726,
1.162779688835144,
2.2630581855773926,
0.6530677080154419,
0.3959023058414459,
-0.7954291701316833,
-0.7212904095649719,
0.3047690987586975,
-1.065293312072754,
-0.7075428366661072,
0.10597503185272217,
2.3209640979766846,
1.735193133354187,
-0.4773584008216858,
-0.2068713754415512,
-0.9463804960250854,
1.3521617650985718,
-0.21226230263710022,
0.17670698463916779,
2.00661563873291,
-0.2772931158542633,
-0.9893836379051208,
1.1422324180603027,
-2.488205671310425,
0.1317877471446991,
2.0081613063812256,
0.27117228507995605,
0.06630508601665497,
-1.4042584896087646,
-0.6352158188819885,
-0.33770260214805603,
-0.4213782250881195,
-1.2358813285827637,
0.5188366770744324,
-0.2539176642894745,
-0.8079776167869568,
-1.4332183599472046,
0.18128173053264618,
-1.1645294427871704,
-1.6987851858139038,
0.28400498628616333,
1.8953701257705688,
2.013270616531372,
-0.7764478325843811,
1.5749019384384155,
-0.25888296961784363,
0.12665921449661255,
1.3419710397720337,
1.2819396257400513,
3.1472108364105225,
1.8166108131408691,
-1.235260248184204,
0.678414523601532,
-0.18767733871936798,
-0.4959430396556854,
1.1482325792312622,
-1.1386576890945435,
1.214004635810852,
-0.08412499725818634,
-1.2973743677139282,
-1.2585546970367432,
0.9948551058769226,
0.4837774336338043,
0.1448565125465393,
-0.5492185950279236,
1.3260706663131714,
0.034007735550403595,
1.3655753135681152,
0.563245952129364,
-0.3204136788845062,
0.5269873738288879,
-0.3250718414783478,
-0.4250095784664154,
1.5610326528549194,
0.15809184312820435,
-1.4744551181793213,
-2.3462753295898438,
-0.18648067116737366,
-0.8357836008071899,
-0.05604145675897598,
-0.6290618181228638,
-1.11702299118042,
1.7278127670288086,
0.49596673250198364,
-1.1956149339675903,
-0.3344219923019409,
-0.36213916540145874,
-0.6669396758079529,
2.658301591873169,
-1.4686121940612793,
-0.27468371391296387,
-1.0146881341934204,
-0.4852246046066284,
1.658990502357483,
-1.2462438344955444,
-0.1536007672548294,
-1.013370156288147,
-0.631361186504364,
-1.3192754983901978,
-0.5792562365531921,
-0.017820071429014206,
-0.9692750573158264,
0.7791802287101746,
0.19092249870300293,
-1.082645297050476,
-0.274109810590744,
-0.8441581130027771,
0.8393096923828125,
-0.06344415247440338,
0.33473899960517883,
1.8580973148345947,
0.5009614825248718,
-0.42227211594581604,
0.722834587097168,
1.194648027420044,
0.6698700785636902,
-0.6407076120376587,
0.23145247995853424,
-0.6718899011611938,
0.37943485379219055,
-1.2898319959640503,
0.23943205177783966,
-2.9371893405914307,
0.6370616555213928,
-0.1386459320783615,
-0.08719026297330856,
0.026792731136083603,
-1.2435975074768066,
1.1388294696807861,
2.6806211471557617,
-1.12294602394104,
0.4707249701023102,
0.29112282395362854,
1.249815583229065,
-1.5746238231658936,
0.3492879271507263,
-0.3903316557407379,
2.058687925338745,
0.15316732227802277,
1.2699780464172363,
-0.43771785497665405,
-2.32063889503479,
0.6705714464187622,
-1.2640143632888794,
-1.1531717777252197,
0.7659290432929993,
-0.8102485537528992,
0.08451038599014282,
-1.4447202682495117,
-0.12193913012742996,
-0.9134653806686401,
-1.2388534545898438,
0.7599921822547913,
0.07512902468442917,
0.4282638728618622,
-0.5796087980270386,
0.35834866762161255,
-2.108938455581665,
-1.2767778635025024,
-0.16417187452316284,
-0.9296708106994629,
0.5020616054534912,
-0.2654937505722046,
0.725450873374939,
-0.1765090525150299,
0.08853419125080109,
0.34296780824661255,
1.4435093402862549,
3.3463079929351807,
0.17205916345119476,
0.49055832624435425,
-0.16935931146144867,
-0.9246825575828552,
1.4651938676834106,
0.8904464244842529,
-0.13660390675067902,
-0.577469527721405,
-0.9585181474685669,
1.3660507202148438,
1.8993977308273315,
0.930333137512207,
0.12768283486366272,
-0.7796356678009033,
-0.693248987197876,
0.02121531218290329,
0.26194536685943604,
0.4769022762775421,
0.9520814418792725,
0.014550692401826382,
0.017756499350070953,
1.4009554386138916,
1.3040258884429932,
-0.5109355449676514,
0.3688628673553467,
-0.868744969367981,
-0.4558272659778595,
0.49416375160217285,
0.2808811366558075,
0.02584265172481537,
0.3851463198661804,
-0.9772626161575317,
-0.2790745496749878,
-0.2950589954853058,
-0.9303169250488281,
-0.7389470338821411,
-0.3514058291912079,
-0.4056406617164612,
1.636215329170227,
0.1007169559597969,
-0.44587603211402893,
0.0180882066488266,
-0.861624538898468,
-0.09695353358983994,
-1.0954185724258423,
0.23695997893810272,
-0.1077483594417572,
-0.12267601490020752,
-0.05093153193593025,
1.8666499853134155,
-0.9718194603919983,
-2.1073288917541504,
0.27584779262542725,
0.26911088824272156,
-0.31082114577293396,
0.23373112082481384,
1.719356894493103,
0.5299555659294128,
1.4973807334899902,
1.274547815322876,
0.8850430846214294,
-0.6799873113632202,
-1.336276650428772,
0.7339329123497009,
1.0387959480285645,
-1.3818811178207397,
0.8659080266952515,
-0.025181856006383896,
-0.5147747993469238,
0.6513105630874634,
1.278463363647461,
0.39765283465385437,
-1.9777634143829346,
0.8262732028961182,
-0.9271568655967712,
0.8010228872299194,
0.6709213852882385,
0.7075863480567932,
0.29458802938461304,
0.8129411935806274,
-1.3201230764389038,
-1.1863309144973755,
-0.7728418111801147,
-0.5795549750328064,
1.9260740280151367,
-0.2559501528739929,
0.5583385229110718,
-0.11198866367340088,
-1.3804070949554443,
-0.1245194524526596,
0.6541470289230347,
0.3306618928909302,
-0.36906078457832336,
0.8943790197372437,
-0.701024055480957,
-1.0714128017425537,
-1.4262113571166992,
-0.47150522470474243,
-0.9479149580001831,
-0.9121339321136475,
1.0378183126449585,
0.8798997402191162,
0.15109783411026,
1.8922655582427979,
0.5645245313644409,
0.2521829903125763,
-2.699641466140747,
0.8879134654998779,
0.17174787819385529,
-0.11197484284639359,
0.8998392820358276,
0.23964917659759521,
1.0175977945327759,
-0.008729254826903343,
0.4570501744747162,
-2.462002992630005,
2.2981653213500977,
-0.18871137499809265,
0.6978031396865845,
0.015273257158696651,
-0.18255366384983063,
1.1526504755020142,
0.5692505836486816,
0.5755758285522461,
-1.0739821195602417,
0.5971192717552185,
-0.6854857802391052,
1.32920241355896,
0.904058039188385,
-0.8153984546661377,
-0.05759093165397644,
1.3592658042907715,
0.5071961879730225,
-0.49319690465927124,
-0.9182164669036865,
-0.8970237970352173,
0.8735822439193726,
1.7485548257827759,
0.04058726504445076,
-0.032260745763778687,
0.7790931463241577,
0.6152111887931824,
-1.3272866010665894,
0.12207033485174179,
-0.6774773001670837,
-0.7520673871040344,
1.6638696193695068,
2.0408012866973877,
-0.1684468388557434,
-0.19558994472026825,
-0.7096298933029175,
-1.2420859336853027,
0.7451058030128479,
-0.12208172678947449,
0.16003535687923431,
0.6620739102363586,
-0.7119498252868652,
1.049997329711914,
0.8210511803627014,
0.9696526527404785,
0.09543543308973312,
0.39587751030921936,
0.29358914494514465,
-0.42657989263534546,
-1.1981873512268066,
-0.2578231692314148,
-1.1602776050567627,
-2.5835061073303223,
0.43168938159942627,
-0.378628134727478,
-1.4251387119293213,
0.027392849326133728,
-1.0859037637710571,
0.9595203995704651,
-0.5688551068305969,
-1.1078388690948486,
-1.482460856437683,
0.1808512657880783,
-0.11593618243932724,
0.9701103568077087,
-1.5460015535354614,
-0.07408566772937775,
1.3027790784835815,
0.8991184830665588,
-0.5770915150642395,
0.9949914813041687,
0.2257971465587616,
1.1605861186981201,
0.8322203755378723,
-0.3547985851764679,
0.49802130460739136,
-0.03858816623687744,
-1.3760251998901367,
0.44997158646583557,
1.1578539609909058,
0.15228424966335297,
1.5131096839904785,
-0.5014010071754456,
-0.006759042851626873,
0.4186372756958008,
-0.5699610710144043,
-0.45932239294052124,
-0.4821925163269043,
0.7005128264427185,
0.07562398910522461,
-0.992264986038208,
-0.02053128555417061,
-0.05546439811587334,
-0.2713831067085266,
0.1474047154188156,
-1.5306611061096191,
-0.268724650144577,
-0.36504292488098145,
-0.5555535554885864,
-1.275605320930481,
0.1032087653875351,
1.234931468963623,
-0.7429959774017334,
-0.20342695713043213,
0.39875367283821106,
0.34328943490982056,
0.49608486890792847,
0.6044331192970276,
-0.6653563380241394,
-0.4540426433086395,
-0.2812974154949188,
-0.314371258020401,
0.24286751449108124,
1.2193278074264526,
-0.22893387079238892,
-0.9426412582397461,
0.6411313414573669,
-0.3568776845932007,
0.02820396050810814,
1.9055734872817993,
0.08491974323987961,
-0.832960307598114,
0.30933162569999695,
-0.616474449634552,
1.879340648651123,
1.6481291055679321,
1.3190714120864868,
-0.12303423136472702,
-0.8969860076904297,
0.625478982925415,
-0.33368435502052307,
-0.28959619998931885,
0.8328301310539246,
0.5281637907028198,
-0.19457510113716125,
-1.4578344821929932,
0.5587940812110901,
1.202247142791748,
-0.9036681056022644,
-0.7957156300544739,
0.09404303878545761,
-0.8102279305458069,
1.042750597000122,
0.7817761301994324,
0.3821268379688263,
0.24893184006214142,
1.547723650932312,
0.782819390296936,
-0.5751579999923706,
0.5318335890769958,
0.5103542804718018,
-0.11692369729280472,
-2.0804173946380615,
-0.9502833485603333,
0.2510714828968048,
-0.3932133913040161,
-1.5942533016204834,
1.4055672883987427,
-1.090955138206482,
-0.8633187413215637,
0.4927087426185608,
0.1846589744091034,
1.3755524158477783,
0.3171394467353821,
1.565872073173523,
1.990681529045105,
0.7857859134674072,
0.19350576400756836,
1.2551624774932861,
-0.059139788150787354,
-0.4395381212234497,
1.8136440515518188,
-0.4634723961353302,
0.49834108352661133,
1.0944446325302124,
-0.36842381954193115,
-1.0110028982162476,
-0.7476917505264282,
-1.156675100326538,
-0.6989502906799316,
1.1744308471679688,
0.1427057534456253,
-1.0475133657455444,
0.18655389547348022,
1.4958466291427612,
0.04947083815932274,
-0.3390597403049469,
0.5196928977966309,
0.4373967945575714,
-0.731714129447937,
-0.14794988930225372,
-0.8591907024383545,
0.596254289150238,
-0.06019910052418709,
-0.2900342643260956,
0.4349069893360138,
0.4408072531223297,
1.2889022827148438,
-0.026487726718187332,
0.1702524572610855,
1.1905664205551147,
-1.4271949529647827,
1.495344877243042,
-0.595095694065094,
0.23342429101467133,
-2.3769617080688477,
1.4646244049072266,
-0.7585762739181519,
1.9312598705291748,
-2.6129238605499268,
0.3752184212207794,
-0.6011990308761597,
-0.3941001296043396,
0.31281816959381104,
-0.4003725051879883,
0.17059871554374695,
-0.1669500470161438,
-1.0583806037902832,
-0.08971457928419113,
-0.7422680854797363,
0.5541428327560425,
1.1233328580856323,
1.2944177389144897,
-1.1135551929473877,
-0.24195532500743866,
-1.7166211605072021,
-0.10101012140512466,
-0.7679811120033264,
0.40970686078071594,
-2.066432476043701,
-0.17957474291324615,
-2.007228136062622,
-2.330803394317627,
-1.4568006992340088,
-0.8029318451881409,
1.063560128211975,
0.08476854115724564,
-0.8860413432121277,
1.1740792989730835,
-0.3908829092979431,
-1.773854374885559,
1.0182126760482788,
-2.14810848236084
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | @wesm @rok its been around three years. any updates, regarding dataset arrow tensor support? π I know you must be very busy, would appreciate to learn what is the state of art. I saw the PR is still open [#8510](https://github.com/apache/arrow/pull/8510) | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 40 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
@wesm @rok its been around three years. any updates, regarding dataset arrow tensor support? π I know you must be very busy, would appreciate to learn what is the state of art. I saw the PR is still open [#8510](https://github.com/apache/arrow/pull/8510) | [
-1.227628231048584,
-0.8346138596534729,
-0.8156286478042603,
1.4517902135849,
-0.11719761788845062,
-1.1693084239959717,
0.08736445009708405,
-1.0970841646194458,
1.6340159177780151,
-0.7574005722999573,
0.26353609561920166,
-1.6616263389587402,
0.10948612540960312,
-0.5806421637535095,
-0.814013659954071,
-0.8736176490783691,
-0.41046610474586487,
-0.7170245051383972,
0.974810779094696,
2.568605422973633,
1.206873893737793,
-1.394636631011963,
2.741072416305542,
0.7610751986503601,
-0.14212636649608612,
-1.0220377445220947,
0.5573031306266785,
0.07169034332036972,
-1.193674087524414,
-0.5168805122375488,
-0.950880229473114,
-0.09173935651779175,
-0.4088587760925293,
-0.49423545598983765,
0.01738181710243225,
0.3416363596916199,
-0.24149295687675476,
-0.3377448320388794,
-0.5534303784370422,
-0.7530713081359863,
0.41505691409111023,
-0.4516185224056244,
0.9540291428565979,
-0.33904141187667847,
1.8417994976043701,
-0.5684646964073181,
0.3958469033241272,
0.7104047536849976,
1.3209915161132812,
0.1357470154762268,
0.0012124273926019669,
0.3836820721626282,
0.42859113216400146,
0.042841605842113495,
0.5139050483703613,
1.1314955949783325,
0.6886915564537048,
0.5547389984130859,
0.722107470035553,
-2.131443977355957,
1.2972662448883057,
-1.018799066543579,
0.26196181774139404,
1.3738243579864502,
-0.9273192882537842,
0.461299329996109,
-1.7098920345306396,
-0.1341407597064972,
0.5919291973114014,
-2.3183600902557373,
0.26723167300224304,
-1.2664433717727661,
-0.5801630616188049,
0.9056994318962097,
0.2959003150463104,
-1.284895658493042,
0.1198236271739006,
-0.4817488193511963,
1.1050708293914795,
0.5347515940666199,
1.0779814720153809,
-1.596175193786621,
0.025857187807559967,
-0.2928621172904968,
0.023490767925977707,
-1.3458597660064697,
-1.4817065000534058,
0.4889846444129944,
0.6801485419273376,
0.5861239433288574,
-0.0004624631255865097,
0.9706953167915344,
-1.0662007331848145,
0.827975332736969,
-0.9183852076530457,
-1.6987894773483276,
-1.395401954650879,
-2.3269660472869873,
-2.2386434078216553,
0.8143212795257568,
-0.4390820562839508,
-0.5747880339622498,
2.067042112350464,
-0.9928796291351318,
-1.7818138599395752,
1.1310540437698364,
0.2527211308479309,
0.021333403885364532,
2.5155975818634033,
0.2284957468509674,
-0.6970850229263306,
0.3252841830253601,
-0.708958089351654,
0.8322187066078186,
-0.5507389903068542,
1.2982454299926758,
0.5112485885620117,
-1.0223497152328491,
1.742544174194336,
-0.3900791108608246,
0.49864462018013,
-0.7122452259063721,
-0.489459753036499,
-0.7765704393386841,
0.3327580988407135,
1.9075225591659546,
-0.3564838469028473,
1.5193721055984497,
-0.3324590027332306,
-1.492275595664978,
-1.6588644981384277,
0.8457415103912354,
0.4559321999549866,
-0.8163251876831055,
0.16706450283527374,
-0.3441070318222046,
0.12212222069501877,
-0.08010783791542053,
1.140747308731079,
1.2296323776245117,
0.6487624645233154,
-0.23020468652248383,
-0.8100194334983826,
0.26643162965774536,
-0.09473181515932083,
-0.661411702632904,
-1.7676328420639038,
-0.3355894088745117,
0.15389560163021088,
0.6387608051300049,
-1.2245432138442993,
1.7433192729949951,
0.8230562210083008,
1.8863636255264282,
1.0372048616409302,
-0.3049231767654419,
1.5129742622375488,
0.05095204338431358,
1.8236932754516602,
-0.5005908608436584,
0.6580303907394409,
-0.32597243785858154,
-1.1662768125534058,
0.8461202383041382,
-0.3683148920536041,
-2.0361790657043457,
-0.7537815570831299,
-0.8920482397079468,
-0.20044483244419098,
-0.8169637322425842,
0.9418041110038757,
-0.2468058317899704,
-1.3229254484176636,
0.3110617399215698,
-0.7659510374069214,
0.123786561191082,
-1.2920290231704712,
0.3414398431777954,
0.7728431820869446,
-0.5965574383735657,
-0.02629818022251129,
-0.26801079511642456,
-1.3366854190826416,
-0.45509424805641174,
0.27858027815818787,
2.024219512939453,
-0.7655391097068787,
0.8302497863769531,
1.004551887512207,
-0.7426444292068481,
-0.04343509301543236,
0.34516096115112305,
-0.3624191880226135,
0.8304146528244019,
-1.0884828567504883,
-0.42553675174713135,
1.1413092613220215,
-0.18999159336090088,
-0.680996298789978,
1.4541163444519043,
0.907221794128418,
-0.9691690802574158,
-0.2963925898075104,
-0.19642303884029388,
-0.7922553420066833,
-0.006501157768070698,
-1.5695308446884155,
-0.16065657138824463,
0.42742109298706055,
-1.4688175916671753,
-0.44956913590431213,
-0.09741269797086716,
1.3661295175552368,
-0.20729286968708038,
1.545289397239685,
-0.302659809589386,
-0.2060951143503189,
-0.29246824979782104,
-0.42543449997901917,
0.1582210212945938,
-0.23947618901729584,
-0.6194740533828735,
0.19144579768180847,
-0.7163188457489014,
0.3464151620864868,
1.3819551467895508,
0.4029065668582916,
0.07758967578411102,
0.5725076198577881,
1.0244470834732056,
0.33013421297073364,
-0.053310826420784,
-0.9161661863327026,
-1.5569212436676025,
2.023839235305786,
-1.3816897869110107,
1.999367594718933,
0.784548819065094,
-0.036708369851112366,
-1.8209799528121948,
-1.8805010318756104,
1.422187328338623,
1.1756482124328613,
2.261523485183716,
0.6263196468353271,
0.36977824568748474,
-0.7678134441375732,
-0.7291934490203857,
0.2791309654712677,
-1.0824021100997925,
-0.7143858671188354,
0.0881560817360878,
2.343707323074341,
1.7445720434188843,
-0.509005606174469,
-0.2175072431564331,
-0.9827550053596497,
1.3455767631530762,
-0.24809503555297852,
0.172907292842865,
2.0190987586975098,
-0.31050390005111694,
-1.003674864768982,
1.1560386419296265,
-2.4892542362213135,
0.14448890089988708,
1.9528695344924927,
0.29470086097717285,
0.08866017311811447,
-1.4598311185836792,
-0.6091161370277405,
-0.3524327278137207,
-0.3983057141304016,
-1.2298716306686401,
0.5576120615005493,
-0.23035599291324615,
-0.8594189882278442,
-1.4238110780715942,
0.1562911421060562,
-1.1466501951217651,
-1.6879873275756836,
0.29428139328956604,
1.9158645868301392,
2.0317554473876953,
-0.7385667562484741,
1.5348917245864868,
-0.26593536138534546,
0.12855590879917145,
1.3276655673980713,
1.2706196308135986,
3.1341278553009033,
1.9054003953933716,
-1.2305458784103394,
0.6611133813858032,
-0.17782266438007355,
-0.5493752956390381,
1.15833580493927,
-1.1619367599487305,
1.2093191146850586,
-0.11932723969221115,
-1.2217552661895752,
-1.2225912809371948,
1.0098108053207397,
0.45991435647010803,
0.12427177280187607,
-0.5232145190238953,
1.3128565549850464,
0.06459876894950867,
1.3599873781204224,
0.5721188187599182,
-0.31389161944389343,
0.5665030479431152,
-0.34463608264923096,
-0.40691015124320984,
1.5518479347229004,
0.1848117709159851,
-1.516351580619812,
-2.34309983253479,
-0.15080544352531433,
-0.8467423319816589,
-0.06113913655281067,
-0.6068045496940613,
-1.0831851959228516,
1.7256120443344116,
0.44814738631248474,
-1.2244915962219238,
-0.31018775701522827,
-0.3571718633174896,
-0.6489161849021912,
2.690915584564209,
-1.4688303470611572,
-0.3006702959537506,
-1.0034774541854858,
-0.5067981481552124,
1.6325805187225342,
-1.2381099462509155,
-0.15071703493595123,
-0.9825081825256348,
-0.631033182144165,
-1.324371337890625,
-0.6031097769737244,
-0.028090912848711014,
-0.9548410773277283,
0.7180894017219543,
0.17128834128379822,
-1.048275113105774,
-0.24571077525615692,
-0.8509227633476257,
0.8491536378860474,
-0.09777214378118515,
0.2951065003871918,
1.8768304586410522,
0.4509941637516022,
-0.39358285069465637,
0.7063071131706238,
1.169208288192749,
0.6762683987617493,
-0.6249788403511047,
0.18957312405109406,
-0.6586066484451294,
0.32708701491355896,
-1.3178049325942993,
0.2602773606777191,
-2.8944218158721924,
0.6464130282402039,
-0.1293790340423584,
-0.1060541644692421,
-0.009329390712082386,
-1.2342963218688965,
1.1677292585372925,
2.676595449447632,
-1.146641731262207,
0.4347356855869293,
0.266102135181427,
1.261016607284546,
-1.5425509214401245,
0.35511982440948486,
-0.3967032730579376,
2.0701003074645996,
0.21802528202533722,
1.2440510988235474,
-0.4324755072593689,
-2.2808713912963867,
0.7171878814697266,
-1.258202075958252,
-1.1650736331939697,
0.7453998923301697,
-0.790240466594696,
0.09820719063282013,
-1.406407356262207,
-0.13759203255176544,
-0.9072375893592834,
-1.2361016273498535,
0.7484557628631592,
0.07921377569437027,
0.41336116194725037,
-0.5592940449714661,
0.33293068408966064,
-2.1026694774627686,
-1.3001893758773804,
-0.16493657231330872,
-0.9381633400917053,
0.5024358034133911,
-0.2559404671192169,
0.6789016723632812,
-0.1687966138124466,
0.025879401713609695,
0.344425767660141,
1.455636978149414,
3.3510818481445312,
0.18924866616725922,
0.4831181466579437,
-0.17009830474853516,
-0.9399747252464294,
1.39766263961792,
0.8907239437103271,
-0.09983775019645691,
-0.5732580423355103,
-0.9437248706817627,
1.3475589752197266,
1.9343624114990234,
0.9645885229110718,
0.14231829345226288,
-0.793827474117279,
-0.6993895173072815,
0.03380031883716583,
0.2485474795103073,
0.4363061189651489,
0.9440206289291382,
0.002146688289940357,
0.007730920799076557,
1.3332611322402954,
1.3098748922348022,
-0.5006653070449829,
0.36900508403778076,
-0.8953382968902588,
-0.4202301502227783,
0.5095524191856384,
0.23868760466575623,
-0.019706476479768753,
0.39045214653015137,
-0.9768652319908142,
-0.2577081322669983,
-0.2931062579154968,
-0.934868335723877,
-0.7873578667640686,
-0.3164648413658142,
-0.36702674627304077,
1.6524066925048828,
0.1481415331363678,
-0.48379650712013245,
0.014064309187233448,
-0.8501488566398621,
-0.11216529458761215,
-1.0512555837631226,
0.1860445886850357,
-0.060697875916957855,
-0.12477023154497147,
-0.038985446095466614,
1.868008017539978,
-0.9527962803840637,
-2.1151745319366455,
0.26659300923347473,
0.2689222991466522,
-0.3097129464149475,
0.24745972454547882,
1.7099926471710205,
0.5533511638641357,
1.4778109788894653,
1.2692837715148926,
0.9406521320343018,
-0.6130916476249695,
-1.3185657262802124,
0.7455658316612244,
1.0450729131698608,
-1.3990051746368408,
0.8406951427459717,
-0.015566549263894558,
-0.500037670135498,
0.6594984531402588,
1.2788077592849731,
0.3924204409122467,
-1.9598324298858643,
0.7987889051437378,
-0.901744544506073,
0.7477635741233826,
0.6328943967819214,
0.6810149550437927,
0.35001078248023987,
0.8060988783836365,
-1.2884790897369385,
-1.177188515663147,
-0.8046851754188538,
-0.5298124551773071,
1.9523950815200806,
-0.24148617684841156,
0.5688918232917786,
-0.12186912447214127,
-1.3785035610198975,
-0.10810251533985138,
0.6955490112304688,
0.31656962633132935,
-0.40350180864334106,
0.879554808139801,
-0.6989483833312988,
-1.1249409914016724,
-1.4348524808883667,
-0.48118290305137634,
-0.9366042613983154,
-0.9296645522117615,
1.0441786050796509,
0.8499189019203186,
0.1968689113855362,
1.8968867063522339,
0.5722264051437378,
0.2658834457397461,
-2.7101528644561768,
0.8973485827445984,
0.19063109159469604,
-0.10750845819711685,
0.8685014247894287,
0.23383726179599762,
0.9724237322807312,
-0.041738010942935944,
0.471622496843338,
-2.4678986072540283,
2.285649061203003,
-0.18590062856674194,
0.6897010207176208,
0.04049934819340706,
-0.19045723974704742,
1.1276293992996216,
0.6032329797744751,
0.5942513346672058,
-1.0745601654052734,
0.6049095988273621,
-0.6900419592857361,
1.318713903427124,
0.9646492004394531,
-0.791991651058197,
-0.058695778250694275,
1.4045836925506592,
0.4735566973686218,
-0.4780098497867584,
-0.8554087281227112,
-0.9093630909919739,
0.8972196578979492,
1.7359331846237183,
-0.009367729537189007,
-0.05051602050662041,
0.7971784472465515,
0.6237754225730896,
-1.322296380996704,
0.14671167731285095,
-0.7048745155334473,
-0.7524647116661072,
1.6548997163772583,
2.067664384841919,
-0.19219723343849182,
-0.1857014000415802,
-0.7434277534484863,
-1.263778567314148,
0.6957876086235046,
-0.0986819937825203,
0.10599034279584885,
0.6907265186309814,
-0.6867050528526306,
1.0785455703735352,
0.8239920139312744,
0.9367311596870422,
0.14817692339420319,
0.4124460816383362,
0.29693174362182617,
-0.43292808532714844,
-1.1883924007415771,
-0.31390824913978577,
-1.1342113018035889,
-2.6076083183288574,
0.40993359684944153,
-0.4124108850955963,
-1.4456324577331543,
0.054960474371910095,
-1.1257505416870117,
0.9310672283172607,
-0.5763304829597473,
-1.0543413162231445,
-1.4888758659362793,
0.23751209676265717,
-0.09235087037086487,
0.9882971048355103,
-1.5931053161621094,
-0.07351154088973999,
1.2818764448165894,
0.8728533983230591,
-0.5802465081214905,
0.9768295288085938,
0.26137953996658325,
1.1690776348114014,
0.8159002065658569,
-0.3850565254688263,
0.4830986261367798,
-0.024024859070777893,
-1.3480993509292603,
0.48586785793304443,
1.1954504251480103,
0.1445462703704834,
1.4714434146881104,
-0.4858751893043518,
-0.023365337401628494,
0.3889642357826233,
-0.6180315613746643,
-0.47953686118125916,
-0.5168275237083435,
0.6997740268707275,
0.08397766202688217,
-1.006095290184021,
-0.042961474508047104,
-0.06290660053491592,
-0.27139630913734436,
0.16576771438121796,
-1.5435824394226074,
-0.2626582980155945,
-0.35257938504219055,
-0.5879106521606445,
-1.2699501514434814,
0.05606841295957565,
1.2684186697006226,
-0.7645342946052551,
-0.20651623606681824,
0.41823944449424744,
0.3560233414173126,
0.5010263323783875,
0.6133197546005249,
-0.6731804609298706,
-0.43462374806404114,
-0.2956538200378418,
-0.3338870108127594,
0.2624930143356323,
1.2624787092208862,
-0.2212354838848114,
-0.9642221927642822,
0.6552836894989014,
-0.39277201890945435,
0.01272962149232626,
1.9016419649124146,
0.08095722645521164,
-0.853094220161438,
0.33284515142440796,
-0.6226365566253662,
1.9024845361709595,
1.6425272226333618,
1.2696501016616821,
-0.1127636656165123,
-0.8755326271057129,
0.6150731444358826,
-0.3045251965522766,
-0.2905158996582031,
0.8533433675765991,
0.5178006291389465,
-0.18738923966884613,
-1.4388775825500488,
0.5539915561676025,
1.2486194372177124,
-0.9097557067871094,
-0.8384690880775452,
0.0976393073797226,
-0.856333315372467,
1.0674015283584595,
0.7597082853317261,
0.36946555972099304,
0.21899649500846863,
1.5484123229980469,
0.7699560523033142,
-0.5756710767745972,
0.5071215033531189,
0.518118679523468,
-0.09931673109531403,
-2.1181411743164062,
-0.965303361415863,
0.25489553809165955,
-0.3632825016975403,
-1.5707122087478638,
1.3907314538955688,
-1.092990517616272,
-0.850895881652832,
0.5056796669960022,
0.2239397168159485,
1.3623062372207642,
0.2810226082801819,
1.5627954006195068,
1.9785634279251099,
0.7719238996505737,
0.2500467300415039,
1.2657800912857056,
-0.07749731093645096,
-0.4294717013835907,
1.7699695825576782,
-0.43869277834892273,
0.512042760848999,
1.0956664085388184,
-0.3455980718135834,
-1.0388100147247314,
-0.7563414573669434,
-1.1556761264801025,
-0.6680606007575989,
1.2132010459899902,
0.10886339843273163,
-1.0944883823394775,
0.17558345198631287,
1.5381343364715576,
0.0536721870303154,
-0.3686487674713135,
0.47130265831947327,
0.43677374720573425,
-0.6867770552635193,
-0.11349943280220032,
-0.9129353165626526,
0.570259153842926,
-0.06195962801575661,
-0.2676795423030853,
0.4259878695011139,
0.42657533288002014,
1.2324206829071045,
-0.06691700965166092,
0.15573301911354065,
1.1497937440872192,
-1.459540605545044,
1.5416096448898315,
-0.5738372802734375,
0.2460707277059555,
-2.398820400238037,
1.429124116897583,
-0.7416240572929382,
1.9468036890029907,
-2.601803779602051,
0.3479948043823242,
-0.6026787757873535,
-0.39820632338523865,
0.3043416738510132,
-0.37717580795288086,
0.1476183384656906,
-0.20091986656188965,
-1.069082260131836,
-0.061176810413599014,
-0.7798609137535095,
0.5642493367195129,
1.1142582893371582,
1.3331116437911987,
-1.1188467741012573,
-0.24471060931682587,
-1.7240363359451294,
-0.10871672630310059,
-0.7750318646430969,
0.4112112820148468,
-2.0545694828033447,
-0.17689207196235657,
-1.9874018430709839,
-2.3243675231933594,
-1.4440349340438843,
-0.8082274198532104,
1.0499672889709473,
0.06255178153514862,
-0.8939372301101685,
1.1999261379241943,
-0.37008583545684814,
-1.8354735374450684,
1.0520111322402954,
-2.1368966102600098
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | Hey @franz101 & @lhoestq!
There is a plan and a PR to create an [ExtensionArray of Tensors](https://github.com/apache/arrow/pull/8510) of equal sizes as well as a plan to do the same for Tensors of different sizes [ARROW-8714](https://issues.apache.org/jira/browse/ARROW-8714). | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 35 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
Hey @franz101 & @lhoestq!
There is a plan and a PR to create an [ExtensionArray of Tensors](https://github.com/apache/arrow/pull/8510) of equal sizes as well as a plan to do the same for Tensors of different sizes [ARROW-8714](https://issues.apache.org/jira/browse/ARROW-8714). | [
-1.2315962314605713,
-0.8662494421005249,
-0.8215600252151489,
1.4744234085083008,
-0.11499932408332825,
-1.1810026168823242,
0.07930249720811844,
-1.0522478818893433,
1.6218692064285278,
-0.7236481308937073,
0.2855849266052246,
-1.6477020978927612,
0.07372456789016724,
-0.5865066647529602,
-0.7962965369224548,
-0.8488878011703491,
-0.36406251788139343,
-0.6849601864814758,
0.9901219606399536,
2.592038154602051,
1.2246736288070679,
-1.4356900453567505,
2.74811053276062,
0.8083614706993103,
-0.12857843935489655,
-0.9878206253051758,
0.5059906244277954,
0.12472925335168839,
-1.2086057662963867,
-0.49807479977607727,
-0.9435281753540039,
-0.05641382932662964,
-0.4142034649848938,
-0.47433191537857056,
-0.019278613850474358,
0.37005528807640076,
-0.24522915482521057,
-0.3722357153892517,
-0.5793581008911133,
-0.7635666131973267,
0.411454975605011,
-0.41759228706359863,
0.9105966687202454,
-0.2968538999557495,
1.8038560152053833,
-0.5796751976013184,
0.34513139724731445,
0.6767145991325378,
1.3361597061157227,
0.11596118658781052,
0.02972659468650818,
0.39552199840545654,
0.46297118067741394,
0.009780176915228367,
0.5225480198860168,
1.2027093172073364,
0.7016313076019287,
0.5364178419113159,
0.7290747761726379,
-2.147226095199585,
1.291047215461731,
-1.0313339233398438,
0.31076759099960327,
1.3710161447525024,
-0.9366356134414673,
0.42250075936317444,
-1.7190418243408203,
-0.1590351015329361,
0.5785119533538818,
-2.3392858505249023,
0.2383648157119751,
-1.2399722337722778,
-0.5832260847091675,
0.8960210680961609,
0.29168012738227844,
-1.2805947065353394,
0.0881844162940979,
-0.48535454273223877,
1.0814142227172852,
0.5189296007156372,
1.0713697671890259,
-1.6560359001159668,
0.012251888401806355,
-0.2688696086406708,
0.06933767348527908,
-1.3347176313400269,
-1.4892929792404175,
0.47092103958129883,
0.7024959921836853,
0.6091057062149048,
-0.005032310262322426,
0.930470883846283,
-1.1196030378341675,
0.8564022779464722,
-0.9325203895568848,
-1.6706340312957764,
-1.3966697454452515,
-2.3654134273529053,
-2.2588613033294678,
0.8100950121879578,
-0.42894071340560913,
-0.5577016472816467,
2.0214040279388428,
-0.9657753705978394,
-1.7742468118667603,
1.104293942451477,
0.30171865224838257,
0.02010897919535637,
2.5047452449798584,
0.18027634918689728,
-0.717367947101593,
0.35719791054725647,
-0.7115446329116821,
0.8519614338874817,
-0.570910632610321,
1.3142285346984863,
0.5228843688964844,
-1.017580270767212,
1.7293742895126343,
-0.4064127206802368,
0.48422449827194214,
-0.8105562925338745,
-0.46805325150489807,
-0.7550702691078186,
0.3398607671260834,
1.8571879863739014,
-0.3477148115634918,
1.5503747463226318,
-0.3313121497631073,
-1.4450782537460327,
-1.6788513660430908,
0.8139775991439819,
0.46869131922721863,
-0.8077629208564758,
0.13860173523426056,
-0.3643281161785126,
0.16834965348243713,
-0.0459793396294117,
1.141518473625183,
1.1844476461410522,
0.6364753842353821,
-0.22772426903247833,
-0.7944295406341553,
0.23991650342941284,
-0.09552852809429169,
-0.6905902028083801,
-1.7618625164031982,
-0.29329028725624084,
0.16580401360988617,
0.6045165061950684,
-1.2524257898330688,
1.7852058410644531,
0.8034539818763733,
1.9055798053741455,
1.003053903579712,
-0.2965813875198364,
1.5634465217590332,
0.04085015133023262,
1.8287584781646729,
-0.4883235692977905,
0.6509827375411987,
-0.32656142115592957,
-1.1979594230651855,
0.7931475043296814,
-0.3909042775630951,
-2.074718952178955,
-0.7203190922737122,
-0.8524882197380066,
-0.18836672604084015,
-0.7932093739509583,
0.9181888103485107,
-0.2670443058013916,
-1.2974629402160645,
0.24394555389881134,
-0.7172868251800537,
0.07935351878404617,
-1.2474967241287231,
0.333446204662323,
0.7837899327278137,
-0.6141901016235352,
0.019756227731704712,
-0.2465548813343048,
-1.334871530532837,
-0.5126376152038574,
0.29340142011642456,
2.0335209369659424,
-0.729731023311615,
0.7887288928031921,
1.025113582611084,
-0.7164692878723145,
0.027944639325141907,
0.3786269724369049,
-0.3662365674972534,
0.8325905203819275,
-1.0803275108337402,
-0.40157604217529297,
1.1360522508621216,
-0.18216733634471893,
-0.6703019142150879,
1.448717474937439,
0.9150314927101135,
-0.950263500213623,
-0.2941987216472626,
-0.1738215833902359,
-0.7715548276901245,
0.018356185406446457,
-1.554917812347412,
-0.12606032192707062,
0.38914549350738525,
-1.4518749713897705,
-0.4425615966320038,
-0.12788984179496765,
1.3737738132476807,
-0.21422626078128815,
1.508858323097229,
-0.32358670234680176,
-0.16452471911907196,
-0.2863081991672516,
-0.412992000579834,
0.11301743239164352,
-0.2621702253818512,
-0.611781895160675,
0.21389785408973694,
-0.6959666013717651,
0.33957818150520325,
1.4657493829727173,
0.42807167768478394,
0.14765314757823944,
0.5554057359695435,
1.0152170658111572,
0.3380875885486603,
-0.07182338833808899,
-0.8802764415740967,
-1.5687992572784424,
2.0020036697387695,
-1.3509495258331299,
2.0789926052093506,
0.8419304490089417,
-0.029342614114284515,
-1.8031474351882935,
-1.905529260635376,
1.4166364669799805,
1.1960670948028564,
2.333165407180786,
0.6100603938102722,
0.391267329454422,
-0.7914494872093201,
-0.7140717506408691,
0.275147408246994,
-1.0339826345443726,
-0.7349151372909546,
0.12592610716819763,
2.3427233695983887,
1.7510156631469727,
-0.5055527091026306,
-0.19884386658668518,
-1.0514006614685059,
1.3859106302261353,
-0.2440960556268692,
0.1983562856912613,
1.9859102964401245,
-0.2706736624240875,
-1.027184009552002,
1.195791482925415,
-2.477841854095459,
0.1304568499326706,
1.973008394241333,
0.33028730750083923,
0.08104720711708069,
-1.4273239374160767,
-0.6354894042015076,
-0.3924480378627777,
-0.3935832977294922,
-1.205712080001831,
0.5123138427734375,
-0.24604924023151398,
-0.8585836291313171,
-1.440063238143921,
0.14692506194114685,
-1.1275634765625,
-1.6899330615997314,
0.30409955978393555,
1.8682048320770264,
2.006124258041382,
-0.7556642293930054,
1.5118385553359985,
-0.23332175612449646,
0.10580497980117798,
1.3111612796783447,
1.2925721406936646,
3.157421112060547,
1.8592510223388672,
-1.201545238494873,
0.6812337636947632,
-0.1948859840631485,
-0.5074900388717651,
1.1324363946914673,
-1.204731822013855,
1.1824266910552979,
-0.07920044660568237,
-1.2458051443099976,
-1.2762869596481323,
1.0349533557891846,
0.5083015561103821,
0.09826113283634186,
-0.576908528804779,
1.2609022855758667,
0.05719989910721779,
1.344673752784729,
0.5777297616004944,
-0.2841491401195526,
0.52755206823349,
-0.3512997329235077,
-0.4309214651584625,
1.5638008117675781,
0.17051638662815094,
-1.530840277671814,
-2.345648765563965,
-0.1342940330505371,
-0.8926859498023987,
-0.10535602271556854,
-0.6597505211830139,
-1.0902100801467896,
1.737880825996399,
0.4529338777065277,
-1.2087211608886719,
-0.27019113302230835,
-0.3749377727508545,
-0.6601212620735168,
2.699298143386841,
-1.4551693201065063,
-0.334443598985672,
-1.0208319425582886,
-0.48386889696121216,
1.628463864326477,
-1.2137852907180786,
-0.16332626342773438,
-0.9632796049118042,
-0.6391700506210327,
-1.3046224117279053,
-0.5860530138015747,
-0.031808868050575256,
-0.9276301264762878,
0.7257363200187683,
0.16893596947193146,
-1.0740406513214111,
-0.30622297525405884,
-0.8149290680885315,
0.8815284967422485,
-0.09358330816030502,
0.29383549094200134,
1.903978943824768,
0.48461708426475525,
-0.3952297270298004,
0.7417948842048645,
1.219102382659912,
0.6483572125434875,
-0.588567316532135,
0.24266143143177032,
-0.6541686654090881,
0.35625308752059937,
-1.333378553390503,
0.24880017340183258,
-2.8930306434631348,
0.6532843708992004,
-0.11809910088777542,
-0.12060289829969406,
-0.00018440373241901398,
-1.244150996208191,
1.1346821784973145,
2.6686911582946777,
-1.1417573690414429,
0.4608243703842163,
0.28894731402397156,
1.2332042455673218,
-1.5939109325408936,
0.3042158782482147,
-0.3783961534500122,
2.0422751903533936,
0.2122732400894165,
1.2042821645736694,
-0.4722532033920288,
-2.2740800380706787,
0.6496348977088928,
-1.271781325340271,
-1.0877676010131836,
0.7309632897377014,
-0.8188575506210327,
0.12339135259389877,
-1.4133167266845703,
-0.11803241074085236,
-0.8765354156494141,
-1.2460297346115112,
0.7234303951263428,
0.08445572853088379,
0.4546352028846741,
-0.5893213152885437,
0.35417744517326355,
-2.0945146083831787,
-1.282586932182312,
-0.19835257530212402,
-0.9408709406852722,
0.5261769890785217,
-0.2630186378955841,
0.7015477418899536,
-0.1791052520275116,
0.048144325613975525,
0.3320065140724182,
1.4752066135406494,
3.340865135192871,
0.22178764641284943,
0.5119275450706482,
-0.1634320616722107,
-0.90493243932724,
1.4132025241851807,
0.8765320777893066,
-0.12345432490110397,
-0.5759571194648743,
-0.9541569352149963,
1.4274529218673706,
1.9036751985549927,
0.9858149886131287,
0.13933037221431732,
-0.7919541001319885,
-0.7547386288642883,
-0.00958900898694992,
0.25813090801239014,
0.3798154294490814,
0.9287511706352234,
-0.01400106679648161,
0.0007780352607369423,
1.3551247119903564,
1.3522183895111084,
-0.5067926645278931,
0.4255484342575073,
-0.9175986647605896,
-0.426008015871048,
0.47315770387649536,
0.2772749960422516,
-0.03645515441894531,
0.4076555073261261,
-1.013810634613037,
-0.29681700468063354,
-0.29828450083732605,
-0.9048223495483398,
-0.7510911226272583,
-0.3308233618736267,
-0.3722323179244995,
1.6607563495635986,
0.1137000247836113,
-0.4669472277164459,
-0.005838701967149973,
-0.8152682781219482,
-0.12658117711544037,
-1.0553337335586548,
0.23080839216709137,
-0.04506947472691536,
-0.09754839539527893,
-0.08789584785699844,
1.880458116531372,
-0.9411869645118713,
-2.152620792388916,
0.257510781288147,
0.2534773349761963,
-0.35946616530418396,
0.22380304336547852,
1.7089576721191406,
0.5237700939178467,
1.4425363540649414,
1.3041646480560303,
0.9210470914840698,
-0.5927154421806335,
-1.3012949228286743,
0.7561661601066589,
1.031782627105713,
-1.3647079467773438,
0.8698897957801819,
-0.05465586856007576,
-0.46497854590415955,
0.6637827754020691,
1.2663660049438477,
0.40055137872695923,
-1.952714443206787,
0.7825868725776672,
-0.924429714679718,
0.7725245952606201,
0.6417413353919983,
0.6471103429794312,
0.3089958727359772,
0.797735333442688,
-1.3378479480743408,
-1.2030341625213623,
-0.7743015885353088,
-0.5887401700019836,
1.967489242553711,
-0.209561288356781,
0.5682263374328613,
-0.14499618113040924,
-1.381360411643982,
-0.12087308615446091,
0.6821238398551941,
0.30330944061279297,
-0.41306325793266296,
0.895901083946228,
-0.7247971892356873,
-1.0883784294128418,
-1.4026589393615723,
-0.4858962595462799,
-0.956510066986084,
-0.8933156132698059,
1.0359781980514526,
0.8571704626083374,
0.18340882658958435,
1.9565356969833374,
0.564532995223999,
0.2886693775653839,
-2.7056572437286377,
0.8548970818519592,
0.1947290450334549,
-0.08719026297330856,
0.8629687428474426,
0.243769571185112,
0.945785403251648,
0.005747629329562187,
0.46166741847991943,
-2.459913969039917,
2.2823469638824463,
-0.16746337711811066,
0.7279083132743835,
0.04550597071647644,
-0.15994158387184143,
1.115881085395813,
0.6004697680473328,
0.5287324786186218,
-1.0818042755126953,
0.5750119686126709,
-0.6836200952529907,
1.2942712306976318,
0.8979558348655701,
-0.7991716861724854,
-0.05178907513618469,
1.3587888479232788,
0.47214174270629883,
-0.45348840951919556,
-0.9093847870826721,
-0.9055619239807129,
0.874013364315033,
1.7418501377105713,
0.05004821717739105,
-0.0029797302559018135,
0.7997032999992371,
0.6207516193389893,
-1.31094229221344,
0.11541703343391418,
-0.7015485763549805,
-0.7447671294212341,
1.656913161277771,
2.088186502456665,
-0.1757752150297165,
-0.19952379167079926,
-0.6667547225952148,
-1.2649472951889038,
0.7053096890449524,
-0.11937146633863449,
0.12816904485225677,
0.6846199035644531,
-0.7172038555145264,
1.0540361404418945,
0.8656978011131287,
0.9270148277282715,
0.11490986496210098,
0.3586169183254242,
0.2772443890571594,
-0.4265458583831787,
-1.2325876951217651,
-0.28792598843574524,
-1.1528223752975464,
-2.599835157394409,
0.41027453541755676,
-0.33704712986946106,
-1.4585102796554565,
0.04942280054092407,
-1.1267341375350952,
0.9119347929954529,
-0.5915863513946533,
-1.0981483459472656,
-1.4650390148162842,
0.21237196028232574,
-0.11996454745531082,
0.9365493059158325,
-1.5672149658203125,
-0.08574109524488449,
1.282570719718933,
0.891543984413147,
-0.5816773176193237,
0.9791924357414246,
0.24220143258571625,
1.1750773191452026,
0.8475034832954407,
-0.380864679813385,
0.44223183393478394,
-0.019320545718073845,
-1.3383188247680664,
0.45386791229248047,
1.1711845397949219,
0.178449809551239,
1.5022410154342651,
-0.5247084498405457,
0.02272004261612892,
0.4039633870124817,
-0.5950449705123901,
-0.5112441778182983,
-0.5111098885536194,
0.7018720507621765,
0.050412070006132126,
-1.0160211324691772,
-0.06912955641746521,
-0.03085150569677353,
-0.2788046598434448,
0.17283065617084503,
-1.5350483655929565,
-0.2210557609796524,
-0.3644736707210541,
-0.5090447664260864,
-1.2871376276016235,
0.1192299947142601,
1.2389510869979858,
-0.7988058924674988,
-0.21584464609622955,
0.4096728265285492,
0.34854352474212646,
0.5028648376464844,
0.6554650068283081,
-0.6486259698867798,
-0.45475703477859497,
-0.261605441570282,
-0.34685879945755005,
0.268579363822937,
1.2572041749954224,
-0.24093204736709595,
-0.9253002405166626,
0.640859842300415,
-0.43797704577445984,
0.07519088685512543,
1.906968355178833,
0.06711414456367493,
-0.8204779028892517,
0.33079957962036133,
-0.6378843784332275,
1.9033204317092896,
1.6786155700683594,
1.2871453762054443,
-0.11785244196653366,
-0.8813769221305847,
0.6194935441017151,
-0.32854798436164856,
-0.3081659972667694,
0.8085854053497314,
0.4766392707824707,
-0.2320518046617508,
-1.4518048763275146,
0.509564220905304,
1.2147860527038574,
-0.8706395626068115,
-0.7901310920715332,
0.10602854937314987,
-0.8224708437919617,
1.0643600225448608,
0.7913058400154114,
0.33533668518066406,
0.2779582142829895,
1.563693642616272,
0.7587968707084656,
-0.5427460670471191,
0.5149670839309692,
0.5307116508483887,
-0.10242903977632523,
-2.0873632431030273,
-0.9553040862083435,
0.19940228760242462,
-0.3681291937828064,
-1.5776755809783936,
1.3560597896575928,
-1.0945582389831543,
-0.8691489100456238,
0.5094181895256042,
0.1874222308397293,
1.374561071395874,
0.2704097330570221,
1.584157943725586,
1.9909533262252808,
0.782821774482727,
0.2242634892463684,
1.232535719871521,
-0.06097167357802391,
-0.43940553069114685,
1.816567301750183,
-0.41852155327796936,
0.5401718020439148,
1.079048991203308,
-0.34366199374198914,
-1.0816923379898071,
-0.7133225798606873,
-1.192766785621643,
-0.6884785294532776,
1.2241458892822266,
0.1408688724040985,
-1.0518549680709839,
0.15595507621765137,
1.5471588373184204,
0.0542476512491703,
-0.35203444957733154,
0.47991499304771423,
0.4171410799026489,
-0.7003621459007263,
-0.12812836468219757,
-0.9035051465034485,
0.5809899568557739,
-0.06702394783496857,
-0.31351354718208313,
0.36611804366111755,
0.4458049237728119,
1.230492353439331,
-0.055116526782512665,
0.12716440856456757,
1.179272174835205,
-1.4801818132400513,
1.529241681098938,
-0.6380999684333801,
0.27369385957717896,
-2.389522075653076,
1.4719470739364624,
-0.7576948404312134,
1.931207537651062,
-2.6321659088134766,
0.4087858200073242,
-0.5752531290054321,
-0.42759403586387634,
0.3396766185760498,
-0.4042571187019348,
0.16610918939113617,
-0.16533268988132477,
-1.0488282442092896,
-0.06904508918523788,
-0.72715163230896,
0.5307822227478027,
1.1255587339401245,
1.3330538272857666,
-1.1137893199920654,
-0.28031349182128906,
-1.7256073951721191,
-0.10412707924842834,
-0.7898820042610168,
0.39974239468574524,
-2.035539150238037,
-0.1809154748916626,
-1.9832922220230103,
-2.2769174575805664,
-1.4747494459152222,
-0.8039970397949219,
1.0216453075408936,
0.06773491948843002,
-0.8772411346435547,
1.139214277267456,
-0.41595637798309326,
-1.7787185907363892,
1.0115649700164795,
-2.193906545639038
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | The work stalled a little because it was not clear where TensorArray would live. However Arrow community recently agreed to make a [well-known-extension-type document](https://lists.apache.org/thread/sxd5fhc42hb6svs79t3fd79gkqj83pfh) and I would like https://github.com/apache/arrow/pull/8510 to land there and add an implementation to C++/Python + another language. Is that something you would find beneficial to you? | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 50 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
The work stalled a little because it was not clear where TensorArray would live. However Arrow community recently agreed to make a [well-known-extension-type document](https://lists.apache.org/thread/sxd5fhc42hb6svs79t3fd79gkqj83pfh) and I would like https://github.com/apache/arrow/pull/8510 to land there and add an implementation to C++/Python + another language. Is that something you would find beneficial to you? | [
-1.2057559490203857,
-0.8485380411148071,
-0.794712245464325,
1.4630470275878906,
-0.0865713432431221,
-1.1721067428588867,
0.06361003965139389,
-1.0848536491394043,
1.6137750148773193,
-0.703575611114502,
0.2958816885948181,
-1.6359429359436035,
0.08151936531066895,
-0.5687112808227539,
-0.774023711681366,
-0.9018722176551819,
-0.36424198746681213,
-0.7503941059112549,
0.9858361482620239,
2.6012048721313477,
1.1189908981323242,
-1.4666748046875,
2.7133123874664307,
0.7085483074188232,
-0.14958682656288147,
-1.0023486614227295,
0.5048466324806213,
0.08904453366994858,
-1.2326955795288086,
-0.5314054489135742,
-0.9579491019248962,
-0.06794227659702301,
-0.4596051871776581,
-0.5029089450836182,
0.04624170437455177,
0.35029006004333496,
-0.18770760297775269,
-0.3369954526424408,
-0.5842239260673523,
-0.7659953236579895,
0.44184693694114685,
-0.45990118384361267,
0.9110385775566101,
-0.30081358551979065,
1.7999658584594727,
-0.5306158661842346,
0.3962474465370178,
0.6628285050392151,
1.3418428897857666,
0.16927695274353027,
0.006460879929363728,
0.3834037482738495,
0.41824328899383545,
-0.033330775797367096,
0.4961817264556885,
1.1584844589233398,
0.6949999332427979,
0.5506852269172668,
0.7281764149665833,
-2.1567282676696777,
1.3262712955474854,
-0.9952113032341003,
0.2881142795085907,
1.3530850410461426,
-0.9684485793113708,
0.4192107915878296,
-1.7672028541564941,
-0.1327664852142334,
0.5810889005661011,
-2.3511908054351807,
0.25464940071105957,
-1.2379355430603027,
-0.5599810481071472,
0.9389215111732483,
0.2762983739376068,
-1.2540192604064941,
0.10769602656364441,
-0.4945047199726105,
1.0591983795166016,
0.5010302662849426,
1.101855754852295,
-1.6477515697479248,
0.0006239879876375198,
-0.2713611125946045,
0.08680837601423264,
-1.3335838317871094,
-1.5213944911956787,
0.49085143208503723,
0.684499204158783,
0.5745559930801392,
-0.02527131699025631,
0.9403874278068542,
-1.0892653465270996,
0.8481213450431824,
-0.9016197323799133,
-1.6658856868743896,
-1.398639440536499,
-2.354503631591797,
-2.274719476699829,
0.7918412089347839,
-0.45174935460090637,
-0.5345199108123779,
2.0500075817108154,
-1.000706434249878,
-1.7600646018981934,
1.0873713493347168,
0.276425302028656,
-0.013727400451898575,
2.4823391437530518,
0.17868947982788086,
-0.7334391474723816,
0.34660065174102783,
-0.7270868420600891,
0.8598159551620483,
-0.5441067218780518,
1.2958369255065918,
0.5175456404685974,
-1.0118601322174072,
1.6973762512207031,
-0.3773917257785797,
0.5092281699180603,
-0.7648853063583374,
-0.5104141235351562,
-0.7804719805717468,
0.34490764141082764,
1.9046721458435059,
-0.36381736397743225,
1.563443660736084,
-0.30260932445526123,
-1.519364595413208,
-1.6402866840362549,
0.8382883667945862,
0.49269556999206543,
-0.8198661804199219,
0.10929745435714722,
-0.3409232199192047,
0.15493080019950867,
-0.0279325470328331,
1.1180448532104492,
1.2462291717529297,
0.6525927186012268,
-0.2365424633026123,
-0.8364757895469666,
0.24563124775886536,
-0.08152374625205994,
-0.672912061214447,
-1.7821176052093506,
-0.3406136929988861,
0.15921564400196075,
0.6234239935874939,
-1.2981090545654297,
1.7749700546264648,
0.8397671580314636,
1.9206085205078125,
1.010277509689331,
-0.3138734698295593,
1.5527980327606201,
0.03853769227862358,
1.8317761421203613,
-0.4617261290550232,
0.6659239530563354,
-0.32184135913848877,
-1.1806459426879883,
0.7548234462738037,
-0.3730597496032715,
-2.0467369556427,
-0.7337599992752075,
-0.8582330346107483,
-0.17349787056446075,
-0.8063979148864746,
0.8897566795349121,
-0.2554168701171875,
-1.3605749607086182,
0.2705232799053192,
-0.688567578792572,
0.1296588033437729,
-1.279987096786499,
0.32985496520996094,
0.7650511860847473,
-0.6389672160148621,
0.01492398977279663,
-0.2610604465007782,
-1.327134609222412,
-0.48123645782470703,
0.25175079703330994,
1.9939939975738525,
-0.7368007302284241,
0.8482022881507874,
1.0240962505340576,
-0.7177455425262451,
0.015295673161745071,
0.3470019996166229,
-0.32440653443336487,
0.8681403398513794,
-1.1366748809814453,
-0.3509860932826996,
1.0943360328674316,
-0.16013257205486298,
-0.6599641442298889,
1.4442410469055176,
0.8864583969116211,
-0.9794606566429138,
-0.3205261826515198,
-0.18861845135688782,
-0.7633818984031677,
-0.007635302376002073,
-1.5602397918701172,
-0.14520803093910217,
0.3737936019897461,
-1.4746410846710205,
-0.4272078573703766,
-0.1562478095293045,
1.3292489051818848,
-0.22675128281116486,
1.5250582695007324,
-0.3083707392215729,
-0.1923981010913849,
-0.30250313878059387,
-0.4581575095653534,
0.1457059234380722,
-0.26720571517944336,
-0.6360083818435669,
0.24772626161575317,
-0.6961023211479187,
0.33970388770103455,
1.4605450630187988,
0.3943844735622406,
0.10270539671182632,
0.5257876515388489,
1.066091537475586,
0.3619081377983093,
-0.0535251721739769,
-0.890308141708374,
-1.536489486694336,
2.0110409259796143,
-1.389392614364624,
2.033543109893799,
0.8593875169754028,
-0.035339538007974625,
-1.7753469944000244,
-1.8871421813964844,
1.385371446609497,
1.1976168155670166,
2.351064682006836,
0.6228713989257812,
0.4221707582473755,
-0.8070480823516846,
-0.6920666098594666,
0.3168478012084961,
-1.0251941680908203,
-0.7797456383705139,
0.09504836797714233,
2.3659274578094482,
1.7583880424499512,
-0.4850863516330719,
-0.20523612201213837,
-1.0190250873565674,
1.3685047626495361,
-0.20742598176002502,
0.1745033711194992,
1.9985873699188232,
-0.23894314467906952,
-1.0824823379516602,
1.1583726406097412,
-2.4020800590515137,
0.16437877714633942,
2.000473976135254,
0.324138879776001,
0.06278621405363083,
-1.4242758750915527,
-0.6168535351753235,
-0.3381701409816742,
-0.3662682771682739,
-1.2442898750305176,
0.5501540899276733,
-0.22844991087913513,
-0.8017456531524658,
-1.473196029663086,
0.1165585070848465,
-1.1686153411865234,
-1.669536828994751,
0.3096036911010742,
1.871305227279663,
2.0127758979797363,
-0.7298536896705627,
1.4607393741607666,
-0.2843506634235382,
0.10289296507835388,
1.2730398178100586,
1.2476210594177246,
3.143470048904419,
1.9028127193450928,
-1.227189302444458,
0.6459283232688904,
-0.2093305140733719,
-0.46750780940055847,
1.1284546852111816,
-1.1355886459350586,
1.1877195835113525,
-0.10885641723871231,
-1.2135348320007324,
-1.228217601776123,
1.0025696754455566,
0.4983089566230774,
0.07333704084157944,
-0.5467938184738159,
1.2792840003967285,
0.091588094830513,
1.356379508972168,
0.5589274764060974,
-0.2878512442111969,
0.5920402407646179,
-0.33047792315483093,
-0.47593531012535095,
1.6036217212677002,
0.1677664816379547,
-1.5049309730529785,
-2.383103847503662,
-0.1569550484418869,
-0.8869587779045105,
-0.06294886022806168,
-0.6363683938980103,
-1.0693342685699463,
1.7140686511993408,
0.4667244851589203,
-1.2035255432128906,
-0.31421664357185364,
-0.3635687828063965,
-0.6669085621833801,
2.696719169616699,
-1.4338059425354004,
-0.27282077074050903,
-0.9800844788551331,
-0.4890453517436981,
1.5883104801177979,
-1.205371379852295,
-0.2185007631778717,
-0.9850142002105713,
-0.6300898790359497,
-1.280587911605835,
-0.5791734457015991,
-0.06685452908277512,
-0.9229638576507568,
0.7365291714668274,
0.20694692432880402,
-1.0727150440216064,
-0.26931431889533997,
-0.8264795541763306,
0.8502526879310608,
-0.06121446192264557,
0.28367212414741516,
1.8374319076538086,
0.46574392914772034,
-0.37360280752182007,
0.7083678841590881,
1.193845510482788,
0.6309366226196289,
-0.6235394477844238,
0.17686514556407928,
-0.6529139876365662,
0.3113020360469818,
-1.3277301788330078,
0.26176130771636963,
-2.9076762199401855,
0.673115611076355,
-0.12616722285747528,
-0.07994014769792557,
-0.021772462874650955,
-1.222991704940796,
1.1180894374847412,
2.670412302017212,
-1.144683837890625,
0.45959898829460144,
0.3453967273235321,
1.2116928100585938,
-1.588409662246704,
0.31859374046325684,
-0.37508025765419006,
2.094014883041382,
0.20389048755168915,
1.217329502105713,
-0.4895210266113281,
-2.2903072834014893,
0.6100722551345825,
-1.2194249629974365,
-1.1424944400787354,
0.743811845779419,
-0.8158623576164246,
0.05613037943840027,
-1.3825147151947021,
-0.12365882843732834,
-0.8578648567199707,
-1.2629368305206299,
0.7516090869903564,
0.09439175575971603,
0.46636536717414856,
-0.6112288236618042,
0.3625701665878296,
-2.137017011642456,
-1.3509085178375244,
-0.2006223499774933,
-0.9553263187408447,
0.4942566156387329,
-0.2784179747104645,
0.6931768655776978,
-0.17028935253620148,
0.08516571670770645,
0.3266776204109192,
1.4402787685394287,
3.324796676635742,
0.2248377948999405,
0.482633501291275,
-0.18657468259334564,
-0.9216015934944153,
1.399003028869629,
0.8971914052963257,
-0.13597582280635834,
-0.6072965860366821,
-0.9970537424087524,
1.382201910018921,
1.9510607719421387,
1.0213191509246826,
0.10619544237852097,
-0.7881990671157837,
-0.7057027220726013,
-0.005299084819853306,
0.24974513053894043,
0.438208669424057,
0.9440727829933167,
-0.009480724111199379,
0.05554760992527008,
1.4165377616882324,
1.3293578624725342,
-0.5063733458518982,
0.3920430541038513,
-0.8705719113349915,
-0.4444781541824341,
0.4646921455860138,
0.27094966173171997,
-0.006079404149204493,
0.3887867331504822,
-1.016925573348999,
-0.25736114382743835,
-0.3138464093208313,
-0.9544124007225037,
-0.7660688757896423,
-0.3456454277038574,
-0.3612929582595825,
1.6900267601013184,
0.11981320381164551,
-0.4466644525527954,
0.04573624208569527,
-0.8044595122337341,
-0.11123653501272202,
-1.0678470134735107,
0.22218000888824463,
-0.05144330486655235,
-0.09625688940286636,
-0.03888624161481857,
1.8837647438049316,
-0.9432260394096375,
-2.1484878063201904,
0.24865484237670898,
0.24769890308380127,
-0.35889577865600586,
0.21989178657531738,
1.7239203453063965,
0.5230622291564941,
1.4541356563568115,
1.262787103652954,
0.9477869868278503,
-0.6620581150054932,
-1.2769815921783447,
0.7253450751304626,
1.0430128574371338,
-1.3631901741027832,
0.8182136416435242,
-0.06333371996879578,
-0.49032747745513916,
0.6705032587051392,
1.2971899509429932,
0.4047127068042755,
-1.9847755432128906,
0.8031704425811768,
-0.8910753130912781,
0.708046019077301,
0.6736802458763123,
0.6759104132652283,
0.2495235800743103,
0.8129432797431946,
-1.3203246593475342,
-1.1692767143249512,
-0.7616634964942932,
-0.5585545301437378,
1.9716968536376953,
-0.24577927589416504,
0.5368256568908691,
-0.1349094808101654,
-1.3468194007873535,
-0.11697597056627274,
0.7267263531684875,
0.3231378495693207,
-0.4177504777908325,
0.8725454211235046,
-0.6823606491088867,
-1.0922157764434814,
-1.4122443199157715,
-0.4785679578781128,
-0.9535757303237915,
-0.9194502234458923,
1.022684097290039,
0.8149055242538452,
0.20665700733661652,
1.940664529800415,
0.590364396572113,
0.24937385320663452,
-2.702150583267212,
0.8979854583740234,
0.23109208047389984,
-0.11884655058383942,
0.9288527369499207,
0.2317955642938614,
0.9896066784858704,
-0.008829177357256413,
0.49429911375045776,
-2.446444511413574,
2.2822277545928955,
-0.17976583540439606,
0.7183704972267151,
0.023960426449775696,
-0.21237623691558838,
1.111767292022705,
0.5897194743156433,
0.5793389678001404,
-1.1052629947662354,
0.6178067326545715,
-0.6674544811248779,
1.2513456344604492,
0.9235747456550598,
-0.8122476935386658,
-0.0569760762155056,
1.3426258563995361,
0.4312405586242676,
-0.4548775255680084,
-0.8924035429954529,
-0.901768684387207,
0.9013707041740417,
1.78013277053833,
-0.009306742809712887,
0.019863899797201157,
0.7948981523513794,
0.6316893696784973,
-1.3208680152893066,
0.10539989918470383,
-0.7048651576042175,
-0.8014932870864868,
1.6332471370697021,
2.0828640460968018,
-0.15858352184295654,
-0.25033268332481384,
-0.6786091327667236,
-1.2509706020355225,
0.7007540464401245,
-0.07888690382242203,
0.15006859600543976,
0.6959996223449707,
-0.6760392189025879,
1.0712287425994873,
0.8509379029273987,
0.9837806820869446,
0.09682819247245789,
0.3485085964202881,
0.32438740134239197,
-0.3833840787410736,
-1.2041668891906738,
-0.3325074017047882,
-1.1668217182159424,
-2.567641496658325,
0.42938292026519775,
-0.31531739234924316,
-1.4615764617919922,
0.06566379964351654,
-1.0885009765625,
0.8843433856964111,
-0.5969359874725342,
-1.1099200248718262,
-1.502791404724121,
0.22295524179935455,
-0.14924584329128265,
0.9252247214317322,
-1.5503895282745361,
-0.11242540180683136,
1.2418370246887207,
0.9316495656967163,
-0.5844665765762329,
0.9630827307701111,
0.2336152046918869,
1.129713773727417,
0.852604866027832,
-0.39569467306137085,
0.4922775626182556,
0.020420696586370468,
-1.3516626358032227,
0.43793985247612,
1.208106279373169,
0.2111092358827591,
1.4677660465240479,
-0.5153937339782715,
0.013718344271183014,
0.38906142115592957,
-0.5503920912742615,
-0.45069631934165955,
-0.5445523262023926,
0.7034353613853455,
0.0665123462677002,
-1.028311014175415,
-0.025815626606345177,
-0.0512060672044754,
-0.21627359092235565,
0.17117129266262054,
-1.5147590637207031,
-0.2551630139350891,
-0.3258357644081116,
-0.5649207830429077,
-1.273728847503662,
0.03537115827202797,
1.2351572513580322,
-0.776637852191925,
-0.19280508160591125,
0.4243742525577545,
0.42176300287246704,
0.5174524784088135,
0.6173880696296692,
-0.6769102215766907,
-0.47853776812553406,
-0.2427556961774826,
-0.3482087254524231,
0.3151065707206726,
1.2048368453979492,
-0.18186365067958832,
-0.9762861728668213,
0.6819047927856445,
-0.4160449802875519,
0.08937879651784897,
1.9073173999786377,
0.09310869872570038,
-0.8154566287994385,
0.3381562829017639,
-0.6382092833518982,
1.907846212387085,
1.6708476543426514,
1.2901256084442139,
-0.10699861496686935,
-0.8936428427696228,
0.638746440410614,
-0.33387109637260437,
-0.3024582266807556,
0.8843516707420349,
0.4873882830142975,
-0.15241946280002594,
-1.4349381923675537,
0.5477966070175171,
1.2616291046142578,
-0.8519639372825623,
-0.8459064960479736,
0.07070495188236237,
-0.8387609124183655,
1.1009929180145264,
0.7290168404579163,
0.33413705229759216,
0.2233380526304245,
1.610520839691162,
0.7792965769767761,
-0.571024477481842,
0.5425057411193848,
0.5037490725517273,
-0.1702238768339157,
-2.1084542274475098,
-0.981508731842041,
0.2442738115787506,
-0.3652704060077667,
-1.5482542514801025,
1.3755927085876465,
-1.1347055435180664,
-0.8714157342910767,
0.5449241399765015,
0.14151433110237122,
1.359468936920166,
0.3053756356239319,
1.5714795589447021,
2.0474400520324707,
0.8139988780021667,
0.23714645206928253,
1.2349226474761963,
-0.09595166146755219,
-0.4245969355106354,
1.8360602855682373,
-0.40387728810310364,
0.4902987778186798,
1.105581521987915,
-0.3871127963066101,
-1.0503792762756348,
-0.763471782207489,
-1.176954746246338,
-0.701994776725769,
1.1371381282806396,
0.12369836866855621,
-1.136423110961914,
0.1507132649421692,
1.5992851257324219,
0.07157852500677109,
-0.37138310074806213,
0.5554214715957642,
0.3992440402507782,
-0.6969125866889954,
-0.12312498688697815,
-0.9287357330322266,
0.565452516078949,
-0.11839178204536438,
-0.2774624824523926,
0.370869904756546,
0.446792870759964,
1.1973159313201904,
0.002359713427722454,
0.11614981293678284,
1.1683220863342285,
-1.4257736206054688,
1.52716064453125,
-0.5843998789787292,
0.2697732746601105,
-2.4017181396484375,
1.4545097351074219,
-0.7281298041343689,
1.9024693965911865,
-2.5662624835968018,
0.4252109229564667,
-0.6066134572029114,
-0.429298996925354,
0.3301128149032593,
-0.3698600232601166,
0.20155905187129974,
-0.1402956247329712,
-1.0606138706207275,
-0.10802162438631058,
-0.783696174621582,
0.5443731546401978,
1.1050999164581299,
1.2949843406677246,
-1.0840613842010498,
-0.25063490867614746,
-1.738020658493042,
-0.10805440694093704,
-0.7235636115074158,
0.3546745777130127,
-2.0264317989349365,
-0.19716273248195648,
-1.9741435050964355,
-2.321303606033325,
-1.4736835956573486,
-0.7803741693496704,
1.0735056400299072,
0.11054344475269318,
-0.8769287467002869,
1.1191158294677734,
-0.3894360363483429,
-1.8136882781982422,
1.0645639896392822,
-2.1987357139587402
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | that is a great update, thank you.
it looks like this feature would benefit datasets implementation of [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9f2ff14673cac1f1ad56d80221a793f5938b68c7/src/datasets/features/features.py#L585-L641). Is that correct @eladsegal @lhoestq?
| ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 23 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
that is a great update, thank you.
it looks like this feature would benefit datasets implementation of [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9f2ff14673cac1f1ad56d80221a793f5938b68c7/src/datasets/features/features.py#L585-L641). Is that correct @eladsegal @lhoestq?
| [
-1.2291728258132935,
-0.8438693284988403,
-0.7793156504631042,
1.443038821220398,
-0.05872143805027008,
-1.2098084688186646,
0.11510451138019562,
-1.0984108448028564,
1.6741318702697754,
-0.7274332642555237,
0.26608240604400635,
-1.6994414329528809,
0.04949298873543739,
-0.5619229078292847,
-0.7541205883026123,
-0.8982391357421875,
-0.3732258081436157,
-0.7617089152336121,
0.9901233911514282,
2.6172943115234375,
1.171200156211853,
-1.3679161071777344,
2.7790138721466064,
0.7183826565742493,
-0.18333184719085693,
-0.9889947772026062,
0.5156822800636292,
0.08556928485631943,
-1.2237317562103271,
-0.47651368379592896,
-0.9444770216941833,
-0.11062712222337723,
-0.42449069023132324,
-0.490815132856369,
0.03952057659626007,
0.3562853932380676,
-0.2442987859249115,
-0.34962818026542664,
-0.5392922163009644,
-0.7429890632629395,
0.41659116744995117,
-0.4171544909477234,
0.9281437993049622,
-0.3283410966396332,
1.8619760274887085,
-0.5295051336288452,
0.3715563416481018,
0.6869189739227295,
1.3172266483306885,
0.1574675440788269,
0.016066040843725204,
0.357209175825119,
0.3601062297821045,
-0.040545009076595306,
0.5067927241325378,
1.2010223865509033,
0.6633433699607849,
0.5322567820549011,
0.7227566242218018,
-2.1649184226989746,
1.3218419551849365,
-1.008514165878296,
0.25786644220352173,
1.4183975458145142,
-0.9085655808448792,
0.3948275148868561,
-1.7364959716796875,
-0.11954115331172943,
0.566386878490448,
-2.328061819076538,
0.2247922718524933,
-1.2333134412765503,
-0.6055842041969299,
0.9565358757972717,
0.28696587681770325,
-1.2530534267425537,
0.10713142156600952,
-0.4467177093029022,
1.1019799709320068,
0.513574481010437,
1.143774390220642,
-1.6857364177703857,
0.011907065287232399,
-0.2919498085975647,
0.08664709329605103,
-1.3425006866455078,
-1.5642606019973755,
0.5178715586662292,
0.6685823798179626,
0.6548895239830017,
0.022036870941519737,
0.9389380812644958,
-1.039710521697998,
0.7925933003425598,
-0.925346314907074,
-1.639665961265564,
-1.371268391609192,
-2.3474621772766113,
-2.251831531524658,
0.8155191540718079,
-0.4443671703338623,
-0.599498450756073,
2.05142879486084,
-0.9993961453437805,
-1.773155689239502,
1.082594633102417,
0.3011326789855957,
-0.033760908991098404,
2.5170722007751465,
0.29506951570510864,
-0.7065014243125916,
0.37737801671028137,
-0.7054235935211182,
0.8368308544158936,
-0.49683356285095215,
1.3493313789367676,
0.5103410482406616,
-1.0363514423370361,
1.6415162086486816,
-0.4456408619880676,
0.5100235939025879,
-0.7327508330345154,
-0.49901777505874634,
-0.7810073494911194,
0.38090819120407104,
1.8788338899612427,
-0.3386061489582062,
1.5342258214950562,
-0.3165355622768402,
-1.5098240375518799,
-1.6792635917663574,
0.8146601915359497,
0.506257176399231,
-0.8035443425178528,
0.1512356400489807,
-0.3481195867061615,
0.1103515475988388,
-0.03253564238548279,
1.1055089235305786,
1.2125307321548462,
0.6218365430831909,
-0.2999970316886902,
-0.8382278084754944,
0.2584231197834015,
-0.08528213202953339,
-0.7051489353179932,
-1.7603929042816162,
-0.2882589101791382,
0.13490402698516846,
0.6233009696006775,
-1.2877782583236694,
1.7679799795150757,
0.8119945526123047,
1.9115979671478271,
1.0239077806472778,
-0.30156710743904114,
1.5368934869766235,
0.07614973932504654,
1.8018162250518799,
-0.47609013319015503,
0.6778942346572876,
-0.3305209279060364,
-1.1636239290237427,
0.7736092209815979,
-0.40822213888168335,
-2.0202443599700928,
-0.7818908095359802,
-0.8373711705207825,
-0.15690594911575317,
-0.8268409371376038,
0.8985817432403564,
-0.23375019431114197,
-1.3988667726516724,
0.26508936285972595,
-0.7253162264823914,
0.13772475719451904,
-1.3083758354187012,
0.34828490018844604,
0.7781869769096375,
-0.6333430409431458,
0.0072605181485414505,
-0.21473857760429382,
-1.3370434045791626,
-0.41975486278533936,
0.2697877585887909,
2.0197737216949463,
-0.7272822856903076,
0.7911969423294067,
1.046990990638733,
-0.7029605507850647,
0.03214358165860176,
0.31719204783439636,
-0.30046772956848145,
0.8247133493423462,
-1.111324429512024,
-0.35066795349121094,
1.1104482412338257,
-0.1304786503314972,
-0.6675921678543091,
1.4605777263641357,
0.8948616981506348,
-1.0209602117538452,
-0.22966402769088745,
-0.22390025854110718,
-0.7573474645614624,
-0.04510708898305893,
-1.5689966678619385,
-0.16496405005455017,
0.36496636271476746,
-1.4206608533859253,
-0.44988375902175903,
-0.17598190903663635,
1.364506721496582,
-0.21231019496917725,
1.488366723060608,
-0.32136425375938416,
-0.16765931248664856,
-0.3389689326286316,
-0.4158746302127838,
0.13026446104049683,
-0.29643696546554565,
-0.6058933734893799,
0.19589734077453613,
-0.7226657271385193,
0.29115980863571167,
1.4322208166122437,
0.4135580062866211,
0.15791422128677368,
0.536526620388031,
1.0837363004684448,
0.33429932594299316,
-0.08629192411899567,
-0.8480669856071472,
-1.5423041582107544,
2.009119987487793,
-1.3450766801834106,
2.0192441940307617,
0.8188353776931763,
-0.03657875582575798,
-1.7920609712600708,
-1.872183918952942,
1.4199271202087402,
1.188989520072937,
2.3013336658477783,
0.6040915250778198,
0.396187424659729,
-0.8027269244194031,
-0.7294875383377075,
0.28037312626838684,
-0.9635463356971741,
-0.7113346457481384,
0.14686012268066406,
2.354884624481201,
1.6996318101882935,
-0.5242621302604675,
-0.16608786582946777,
-0.9730191826820374,
1.3188167810440063,
-0.2550826966762543,
0.18004730343818665,
2.053799629211426,
-0.3326946198940277,
-1.0533246994018555,
1.2218703031539917,
-2.4334301948547363,
0.11141017079353333,
1.9536257982254028,
0.292972594499588,
0.04400106146931648,
-1.4183235168457031,
-0.6594494581222534,
-0.3927258849143982,
-0.38696929812431335,
-1.2119110822677612,
0.5194397568702698,
-0.22475025057792664,
-0.863768458366394,
-1.515973687171936,
0.15025347471237183,
-1.139837622642517,
-1.6661667823791504,
0.33420059084892273,
1.9009456634521484,
2.0283286571502686,
-0.802542507648468,
1.4921016693115234,
-0.22169828414916992,
0.0921265259385109,
1.3033422231674194,
1.2383787631988525,
3.1383330821990967,
1.8456242084503174,
-1.2003178596496582,
0.6833582520484924,
-0.20122084021568298,
-0.543507993221283,
1.1470173597335815,
-1.153164029121399,
1.184242606163025,
-0.0920460894703865,
-1.2712304592132568,
-1.2623125314712524,
0.9818648099899292,
0.5154980421066284,
0.10547897964715958,
-0.5639366507530212,
1.2850937843322754,
0.07712238281965256,
1.3767644166946411,
0.5385813117027283,
-0.2789810299873352,
0.5396089553833008,
-0.36056914925575256,
-0.48775359988212585,
1.5713196992874146,
0.15215173363685608,
-1.5294166803359985,
-2.3287901878356934,
-0.18957537412643433,
-0.8273918628692627,
-0.04838883876800537,
-0.6367684006690979,
-1.085246205329895,
1.7235387563705444,
0.4699307084083557,
-1.192787766456604,
-0.291218101978302,
-0.39448270201683044,
-0.6127579808235168,
2.6972591876983643,
-1.4324398040771484,
-0.2559869885444641,
-1.0167332887649536,
-0.45969003438949585,
1.6136945486068726,
-1.2068209648132324,
-0.11137348413467407,
-0.999252438545227,
-0.6399582624435425,
-1.316953182220459,
-0.5620144605636597,
-0.033639032393693924,
-0.9532543420791626,
0.7252646088600159,
0.2520476281642914,
-1.0682339668273926,
-0.25295692682266235,
-0.8624217510223389,
0.9077135324478149,
-0.10050021857023239,
0.27893519401550293,
1.8543347120285034,
0.48218899965286255,
-0.4361477792263031,
0.6899648308753967,
1.2616057395935059,
0.6389873027801514,
-0.6429200172424316,
0.17800134420394897,
-0.676019012928009,
0.34908604621887207,
-1.373790979385376,
0.2362457513809204,
-2.9015891551971436,
0.6441136002540588,
-0.12199696898460388,
-0.12359552830457687,
-0.010804967023432255,
-1.2550888061523438,
1.1547950506210327,
2.6460506916046143,
-1.14483642578125,
0.48244693875312805,
0.37833499908447266,
1.2608128786087036,
-1.518611192703247,
0.3444170653820038,
-0.4100797772407532,
2.0169851779937744,
0.18925362825393677,
1.2260215282440186,
-0.4908968508243561,
-2.2452335357666016,
0.6432661414146423,
-1.25692617893219,
-1.1198701858520508,
0.7894951701164246,
-0.881156861782074,
0.151539146900177,
-1.3925215005874634,
-0.0854821503162384,
-0.8457386493682861,
-1.256919503211975,
0.7314598560333252,
0.09752684831619263,
0.4307234287261963,
-0.5741428732872009,
0.41099655628204346,
-2.1676411628723145,
-1.3359367847442627,
-0.195631206035614,
-0.9817119240760803,
0.5369605422019958,
-0.30854710936546326,
0.6698699593544006,
-0.17962884902954102,
0.05002078786492348,
0.3883899748325348,
1.452595591545105,
3.3182332515716553,
0.21538019180297852,
0.4756098687648773,
-0.15683981776237488,
-0.954716682434082,
1.4205735921859741,
0.8756306171417236,
-0.15807491540908813,
-0.5406448841094971,
-0.9942187070846558,
1.3435230255126953,
1.9161049127578735,
1.0592625141143799,
0.10045503079891205,
-0.810016930103302,
-0.7812526822090149,
0.03869428485631943,
0.2808307707309723,
0.3935087025165558,
0.9258347153663635,
0.0019381474703550339,
0.06038873642683029,
1.401660442352295,
1.3287909030914307,
-0.5711073875427246,
0.4610556662082672,
-0.9191688299179077,
-0.4849149286746979,
0.46626484394073486,
0.25424903631210327,
-0.01803865283727646,
0.43784087896347046,
-1.025232195854187,
-0.3085276484489441,
-0.26687830686569214,
-0.8678424954414368,
-0.7866194248199463,
-0.3362266421318054,
-0.36354807019233704,
1.6783170700073242,
0.08950679004192352,
-0.49057120084762573,
0.02675759047269821,
-0.8345909714698792,
-0.14239943027496338,
-1.0471343994140625,
0.21667012572288513,
-0.07831614464521408,
-0.13402272760868073,
-0.05287030711770058,
1.8700681924819946,
-0.9636576771736145,
-2.0958797931671143,
0.24073287844657898,
0.27036359906196594,
-0.35384127497673035,
0.21543902158737183,
1.6995890140533447,
0.5466246604919434,
1.4761755466461182,
1.259304404258728,
0.9310266375541687,
-0.6392015218734741,
-1.3383312225341797,
0.7345658540725708,
0.9908850193023682,
-1.3631393909454346,
0.8575206995010376,
-0.07660393416881561,
-0.5113431811332703,
0.6230680346488953,
1.3064194917678833,
0.42469245195388794,
-1.9131277799606323,
0.7913357615470886,
-0.8686493039131165,
0.7507011294364929,
0.6580142974853516,
0.7121915221214294,
0.25534766912460327,
0.7780809998512268,
-1.3166505098342896,
-1.208072543144226,
-0.7925809025764465,
-0.5862056016921997,
1.9293766021728516,
-0.25162121653556824,
0.5719894170761108,
-0.16428586840629578,
-1.3540114164352417,
-0.06947405636310577,
0.7119038105010986,
0.32142019271850586,
-0.38433757424354553,
0.8783307075500488,
-0.6841469407081604,
-1.0732240676879883,
-1.407427191734314,
-0.4650101959705353,
-0.9722376465797424,
-0.8586044907569885,
1.0368294715881348,
0.8793253302574158,
0.24124103784561157,
1.930904746055603,
0.5751562714576721,
0.30948033928871155,
-2.673182725906372,
0.9004473090171814,
0.21828565001487732,
-0.08716248720884323,
0.8627526760101318,
0.2732393145561218,
1.0391992330551147,
0.0191327016800642,
0.4709497392177582,
-2.4429821968078613,
2.299442768096924,
-0.1921340823173523,
0.703603208065033,
0.0033254483714699745,
-0.1727219521999359,
1.0812652111053467,
0.5806398987770081,
0.5650529265403748,
-1.112754464149475,
0.5795790553092957,
-0.6863489151000977,
1.276705026626587,
0.9391511678695679,
-0.8175989985466003,
-0.034077201038599014,
1.3731982707977295,
0.4978998005390167,
-0.4689773619174957,
-0.9315083026885986,
-0.897590696811676,
0.8779047727584839,
1.7057406902313232,
0.0008213240653276443,
-0.010976826772093773,
0.8132206797599792,
0.6157084703445435,
-1.318850040435791,
0.08931044489145279,
-0.6913215517997742,
-0.7871072292327881,
1.7039235830307007,
2.1210412979125977,
-0.15322893857955933,
-0.21721401810646057,
-0.6681855320930481,
-1.2427538633346558,
0.7626156210899353,
-0.06505823135375977,
0.18286380171775818,
0.6649684906005859,
-0.700660228729248,
1.1117980480194092,
0.823235809803009,
0.9144359230995178,
0.1265655755996704,
0.37483638525009155,
0.3136419355869293,
-0.40367716550827026,
-1.2113229036331177,
-0.3028065264225006,
-1.1553797721862793,
-2.5909130573272705,
0.40561628341674805,
-0.3377339541912079,
-1.4746872186660767,
0.06949139386415482,
-1.1033825874328613,
0.8959014415740967,
-0.5751425623893738,
-1.0437676906585693,
-1.520190715789795,
0.23007303476333618,
-0.11718514561653137,
0.9878311157226562,
-1.5518933534622192,
-0.10845571011304855,
1.2796229124069214,
0.9166938662528992,
-0.5452718138694763,
0.9655300974845886,
0.24229204654693604,
1.0947531461715698,
0.8419738411903381,
-0.38708409667015076,
0.5347168445587158,
-0.025593040511012077,
-1.3365495204925537,
0.42160889506340027,
1.1991090774536133,
0.19279295206069946,
1.4903991222381592,
-0.45016181468963623,
0.022147629410028458,
0.43103182315826416,
-0.5712907314300537,
-0.48244884610176086,
-0.5377979278564453,
0.6952381134033203,
0.1117687001824379,
-1.0031758546829224,
-0.056809235364198685,
-0.03763978183269501,
-0.24682828783988953,
0.21045222878456116,
-1.5321298837661743,
-0.25705206394195557,
-0.37945663928985596,
-0.5630529522895813,
-1.2990918159484863,
0.044088203459978104,
1.2487516403198242,
-0.8086902499198914,
-0.1738816201686859,
0.39991411566734314,
0.3784613013267517,
0.47691115736961365,
0.6205257773399353,
-0.7107552289962769,
-0.40988293290138245,
-0.3201470673084259,
-0.33419209718704224,
0.28713899850845337,
1.2302758693695068,
-0.20081108808517456,
-0.999779224395752,
0.647786021232605,
-0.3810640871524811,
0.0757029801607132,
1.920565128326416,
0.07782665640115738,
-0.8408434987068176,
0.28231415152549744,
-0.6433302164077759,
1.8954540491104126,
1.655660629272461,
1.327152132987976,
-0.12945806980133057,
-0.9270179867744446,
0.5850895047187805,
-0.3216216564178467,
-0.296550452709198,
0.9100735187530518,
0.4383237659931183,
-0.172011137008667,
-1.42787504196167,
0.5356091856956482,
1.2448395490646362,
-0.8426896929740906,
-0.7677674293518066,
0.06603856384754181,
-0.8476663827896118,
1.1080156564712524,
0.7154300212860107,
0.29912835359573364,
0.2667745053768158,
1.5707650184631348,
0.7674258947372437,
-0.5594763159751892,
0.4931672513484955,
0.5137337446212769,
-0.13570234179496765,
-2.1156537532806396,
-0.9375256299972534,
0.20638415217399597,
-0.4063921570777893,
-1.5709974765777588,
1.3597272634506226,
-1.115186333656311,
-0.8690443634986877,
0.4686861038208008,
0.13062840700149536,
1.373860478401184,
0.291871041059494,
1.6088075637817383,
2.014624834060669,
0.8148553967475891,
0.220768541097641,
1.253057599067688,
-0.12374532967805862,
-0.38936740159988403,
1.8192389011383057,
-0.422247976064682,
0.4785105288028717,
1.0564838647842407,
-0.39965206384658813,
-1.03653883934021,
-0.8083442449569702,
-1.211786150932312,
-0.7119909524917603,
1.164141297340393,
0.12463156133890152,
-1.094964623451233,
0.21227189898490906,
1.554420828819275,
0.025697804987430573,
-0.36282074451446533,
0.5570052266120911,
0.4421481192111969,
-0.7127240896224976,
-0.11052991449832916,
-0.8769533634185791,
0.5352105498313904,
-0.060884252190589905,
-0.3228908181190491,
0.34136638045310974,
0.47314852476119995,
1.22531259059906,
-0.02265245094895363,
0.1388554871082306,
1.2105302810668945,
-1.4176409244537354,
1.4758938550949097,
-0.6344900131225586,
0.26024842262268066,
-2.4025063514709473,
1.4364298582077026,
-0.6955195665359497,
1.902213215827942,
-2.598733901977539,
0.44512104988098145,
-0.5437868237495422,
-0.44611474871635437,
0.3062901794910431,
-0.4262508153915405,
0.19633182883262634,
-0.11396320909261703,
-1.0615254640579224,
-0.12475341558456421,
-0.7708723545074463,
0.5497443079948425,
1.1099631786346436,
1.3346062898635864,
-1.0499006509780884,
-0.20899608731269836,
-1.6865803003311157,
-0.12101823836565018,
-0.7464169859886169,
0.3255811035633087,
-2.0080933570861816,
-0.212625652551651,
-2.0189104080200195,
-2.3307292461395264,
-1.4382261037826538,
-0.7818626165390015,
1.06578528881073,
0.050641708076000214,
-0.9039316177368164,
1.1391795873641968,
-0.4193953573703766,
-1.8129000663757324,
1.077813982963562,
-2.1624748706817627
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | TensorArray sounds great ! Looking forward to it :)
We've had our own ExtensionArray for fixed shape tensors for a while now, hoping to see something more standardized by the arrow community.
Also super interested in the extension array for tensors of different sizes cc @mariosasko | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 46 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
TensorArray sounds great ! Looking forward to it :)
We've had our own ExtensionArray for fixed shape tensors for a while now, hoping to see something more standardized by the arrow community.
Also super interested in the extension array for tensors of different sizes cc @mariosasko | [
-1.2637381553649902,
-0.8725166916847229,
-0.8232227563858032,
1.485222339630127,
-0.14555218815803528,
-1.181028127670288,
0.057432375848293304,
-1.1441025733947754,
1.6153661012649536,
-0.7522043585777283,
0.26796606183052063,
-1.64031982421875,
0.13885024189949036,
-0.5830496549606323,
-0.7910454273223877,
-0.9012641310691833,
-0.38310661911964417,
-0.6756640672683716,
0.9754803776741028,
2.6048781871795654,
1.204079270362854,
-1.3978379964828491,
2.721572160720825,
0.7940923571586609,
-0.13185282051563263,
-1.000914454460144,
0.5704033970832825,
0.08484950661659241,
-1.2253217697143555,
-0.5080582499504089,
-0.936987042427063,
-0.12800593674182892,
-0.4279315769672394,
-0.4602908790111542,
0.007886822335422039,
0.322221040725708,
-0.23140540719032288,
-0.3474040925502777,
-0.5833187699317932,
-0.7573981881141663,
0.3839251399040222,
-0.46113017201423645,
0.9663947820663452,
-0.3656090199947357,
1.8454203605651855,
-0.5110281705856323,
0.38792163133621216,
0.6829083561897278,
1.3740191459655762,
0.14568078517913818,
-0.02317657321691513,
0.41348183155059814,
0.4027842879295349,
0.007051886059343815,
0.4734102189540863,
1.0818339586257935,
0.6858963966369629,
0.5303748846054077,
0.744760274887085,
-2.112752676010132,
1.3303325176239014,
-1.0669801235198975,
0.2582297623157501,
1.4348498582839966,
-0.9354314208030701,
0.4066111147403717,
-1.6903562545776367,
-0.14193865656852722,
0.5997368097305298,
-2.310861825942993,
0.22642585635185242,
-1.2353503704071045,
-0.5821805000305176,
0.9776807427406311,
0.28834763169288635,
-1.2933398485183716,
0.06331470608711243,
-0.4501270651817322,
1.0874388217926025,
0.5313035845756531,
1.0811868906021118,
-1.652941107749939,
0.07880938053131104,
-0.34218162298202515,
0.016331259161233902,
-1.36338472366333,
-1.449532151222229,
0.4980902075767517,
0.6849443316459656,
0.5852633118629456,
0.043599117547273636,
0.9491904973983765,
-1.0934398174285889,
0.832212507724762,
-0.9390197396278381,
-1.6854630708694458,
-1.392205834388733,
-2.400965452194214,
-2.2664573192596436,
0.8069059252738953,
-0.45869675278663635,
-0.5927006006240845,
2.059211254119873,
-0.9908813238143921,
-1.7591191530227661,
1.1170611381530762,
0.24360410869121552,
0.000576898455619812,
2.5027854442596436,
0.1834205836057663,
-0.6608178019523621,
0.3141021430492401,
-0.7040062546730042,
0.8606131672859192,
-0.5763000845909119,
1.3319720029830933,
0.5054762959480286,
-1.0275341272354126,
1.7163457870483398,
-0.3720709979534149,
0.5069838762283325,
-0.7334917187690735,
-0.4963044822216034,
-0.7696956396102905,
0.3967258334159851,
1.8899792432785034,
-0.3354892134666443,
1.5069342851638794,
-0.34010326862335205,
-1.474259376525879,
-1.679879069328308,
0.8394474387168884,
0.4460519552230835,
-0.7993423342704773,
0.18469735980033875,
-0.24771960079669952,
0.12486166507005692,
-0.07680512219667435,
1.1406868696212769,
1.2236840724945068,
0.6269491910934448,
-0.2294032722711563,
-0.8252904415130615,
0.2134634554386139,
-0.11560166627168655,
-0.7541657090187073,
-1.7736363410949707,
-0.2941291034221649,
0.1016971543431282,
0.6674184203147888,
-1.2559250593185425,
1.757659912109375,
0.8429873585700989,
1.8615554571151733,
1.0047601461410522,
-0.2662805914878845,
1.5266742706298828,
0.058370694518089294,
1.7860329151153564,
-0.5150522589683533,
0.6600713729858398,
-0.37899184226989746,
-1.1662051677703857,
0.8048637509346008,
-0.37547925114631653,
-2.011600971221924,
-0.7280111908912659,
-0.8592336773872375,
-0.23575468361377716,
-0.8368468880653381,
0.9352490901947021,
-0.272087424993515,
-1.2855325937271118,
0.3390057384967804,
-0.7181147336959839,
0.10471540689468384,
-1.2307841777801514,
0.40042567253112793,
0.7313107848167419,
-0.5806399583816528,
0.012263982556760311,
-0.27532824873924255,
-1.3197470903396606,
-0.5120837092399597,
0.231866717338562,
1.9906208515167236,
-0.7944727540016174,
0.7843612432479858,
1.0123281478881836,
-0.7044995427131653,
-0.06490520387887955,
0.3622090518474579,
-0.32174238562583923,
0.8318658471107483,
-1.1401383876800537,
-0.4521699845790863,
1.114115834236145,
-0.19447162747383118,
-0.6282092332839966,
1.4774541854858398,
0.8434284925460815,
-1.0130572319030762,
-0.25948554277420044,
-0.19207105040550232,
-0.791987419128418,
0.045354001224040985,
-1.6297937631607056,
-0.16336116194725037,
0.3916501998901367,
-1.5313156843185425,
-0.4744155704975128,
-0.07489075511693954,
1.3614431619644165,
-0.20270545780658722,
1.5077226161956787,
-0.35750994086265564,
-0.184363454580307,
-0.29086026549339294,
-0.40466928482055664,
0.1089770570397377,
-0.18971708416938782,
-0.5824769735336304,
0.16698762774467468,
-0.7180975675582886,
0.3847994804382324,
1.4254215955734253,
0.36149775981903076,
0.10851401835680008,
0.5417795181274414,
1.0292879343032837,
0.3335162103176117,
-0.038498859852552414,
-0.91573566198349,
-1.5551639795303345,
2.0148229598999023,
-1.4337100982666016,
2.0405690670013428,
0.8379625678062439,
-0.0096448864787817,
-1.7797274589538574,
-1.8779168128967285,
1.42454195022583,
1.1965495347976685,
2.210192918777466,
0.6448314189910889,
0.3710213601589203,
-0.7858194708824158,
-0.6923877000808716,
0.2965744435787201,
-1.0348025560379028,
-0.7208698987960815,
0.12600290775299072,
2.317136764526367,
1.7317920923233032,
-0.4806126654148102,
-0.17189984023571014,
-0.9630739092826843,
1.3727827072143555,
-0.21776671707630157,
0.18698877096176147,
2.0404419898986816,
-0.29236549139022827,
-1.0552576780319214,
1.1355856657028198,
-2.468735933303833,
0.09077119827270508,
1.9787788391113281,
0.3168690502643585,
0.09429014474153519,
-1.4173105955123901,
-0.6428883671760559,
-0.3680979609489441,
-0.3308832347393036,
-1.2418718338012695,
0.4936961531639099,
-0.24637947976589203,
-0.7964761257171631,
-1.4612778425216675,
0.1669466197490692,
-1.1698578596115112,
-1.6445177793502808,
0.299556702375412,
1.892215609550476,
2.0182607173919678,
-0.7394585609436035,
1.5731587409973145,
-0.24644911289215088,
0.1264611929655075,
1.3350918292999268,
1.2104772329330444,
3.1616806983947754,
1.8668668270111084,
-1.2066757678985596,
0.6357701420783997,
-0.1690579354763031,
-0.4690391719341278,
1.1401190757751465,
-1.1246097087860107,
1.23417067527771,
-0.05780323967337608,
-1.2130523920059204,
-1.2514921426773071,
0.9963222742080688,
0.44628971815109253,
0.11801657825708389,
-0.5614063739776611,
1.2580146789550781,
0.02249722182750702,
1.3405014276504517,
0.5216696858406067,
-0.29459235072135925,
0.5191969275474548,
-0.35655203461647034,
-0.4241880476474762,
1.563892126083374,
0.22059819102287292,
-1.505269169807434,
-2.3344154357910156,
-0.14455148577690125,
-0.8127297163009644,
-0.07413103431463242,
-0.5983051061630249,
-1.12409508228302,
1.700008749961853,
0.44555893540382385,
-1.2034164667129517,
-0.31623297929763794,
-0.3719068467617035,
-0.7028869390487671,
2.737025022506714,
-1.5117567777633667,
-0.31346648931503296,
-1.008913516998291,
-0.4901672303676605,
1.6433160305023193,
-1.2889971733093262,
-0.1850190907716751,
-0.9774895906448364,
-0.5984271764755249,
-1.2963621616363525,
-0.589348316192627,
-0.024446025490760803,
-1.0012001991271973,
0.7568782567977905,
0.21330970525741577,
-1.051551103591919,
-0.27905604243278503,
-0.819430410861969,
0.8411630392074585,
-0.08172931522130966,
0.3136577606201172,
1.8545879125595093,
0.48606154322624207,
-0.3943236768245697,
0.7354788184165955,
1.1983685493469238,
0.6902680397033691,
-0.651928722858429,
0.192739799618721,
-0.6584728360176086,
0.35190775990486145,
-1.270050287246704,
0.320555180311203,
-2.8909661769866943,
0.5726900696754456,
-0.09145872294902802,
-0.07539243251085281,
0.04353559389710426,
-1.2470828294754028,
1.1220011711120605,
2.6704325675964355,
-1.1427512168884277,
0.4750593602657318,
0.273833304643631,
1.2435922622680664,
-1.5882518291473389,
0.39988744258880615,
-0.34462806582450867,
2.0631942749023438,
0.17881032824516296,
1.192620038986206,
-0.4499504268169403,
-2.372018575668335,
0.675000786781311,
-1.2754343748092651,
-1.1858179569244385,
0.6961883306503296,
-0.8274675607681274,
0.060523003339767456,
-1.4313236474990845,
-0.13554193079471588,
-0.8742839097976685,
-1.254709005355835,
0.7716881632804871,
0.10193853825330734,
0.4096946120262146,
-0.603154182434082,
0.33430376648902893,
-2.1313939094543457,
-1.3144404888153076,
-0.14202673733234406,
-0.9292497038841248,
0.5114284157752991,
-0.32120680809020996,
0.6939316391944885,
-0.19827207922935486,
0.07600840926170349,
0.3622692823410034,
1.447872281074524,
3.37406325340271,
0.1936095803976059,
0.5206468105316162,
-0.17987512052059174,
-0.9104183912277222,
1.404001235961914,
0.8818564414978027,
-0.09688365459442139,
-0.5575426816940308,
-0.9639930129051208,
1.4061349630355835,
1.8867390155792236,
0.8884897828102112,
0.11953235417604446,
-0.7818701267242432,
-0.6874120831489563,
0.005760563537478447,
0.2976635992527008,
0.41484951972961426,
0.8969458341598511,
0.014280560426414013,
0.009807447902858257,
1.3836171627044678,
1.3097631931304932,
-0.5590206384658813,
0.3402734696865082,
-0.8823955655097961,
-0.4521806538105011,
0.5046798586845398,
0.2970586121082306,
-0.04246796667575836,
0.34062087535858154,
-0.9190053939819336,
-0.29945802688598633,
-0.32922741770744324,
-0.9442437887191772,
-0.7599502801895142,
-0.31378859281539917,
-0.37619706988334656,
1.6916377544403076,
0.1393236368894577,
-0.48772338032722473,
-0.056569654494524,
-0.8513435125350952,
-0.12188109755516052,
-1.0583865642547607,
0.19589269161224365,
-0.04938687011599541,
-0.1544855237007141,
-0.07341521233320236,
1.8974826335906982,
-0.9639312028884888,
-2.130857467651367,
0.285386323928833,
0.22540560364723206,
-0.2972368001937866,
0.24255354702472687,
1.6924935579299927,
0.5360069870948792,
1.4830275774002075,
1.3038934469223022,
0.9192978739738464,
-0.6598137617111206,
-1.3475427627563477,
0.7303863167762756,
1.0381953716278076,
-1.4378914833068848,
0.8278864622116089,
-0.00689550768584013,
-0.4834218919277191,
0.6753107309341431,
1.2592462301254272,
0.43059173226356506,
-1.9248123168945312,
0.8141509890556335,
-0.9348228573799133,
0.8184728026390076,
0.6881185173988342,
0.6843634247779846,
0.30301597714424133,
0.7632939219474792,
-1.2627696990966797,
-1.2199629545211792,
-0.815751314163208,
-0.6166109442710876,
1.9799773693084717,
-0.2777348458766937,
0.5660627484321594,
-0.13832251727581024,
-1.3707085847854614,
-0.12446955591440201,
0.6513513922691345,
0.28665125370025635,
-0.3907018005847931,
0.8823407292366028,
-0.7546370625495911,
-1.1007903814315796,
-1.4928585290908813,
-0.49705296754837036,
-0.9032400250434875,
-0.934882640838623,
1.0755224227905273,
0.8657397031784058,
0.16803902387619019,
1.9475018978118896,
0.5595546960830688,
0.2712043821811676,
-2.6701321601867676,
0.8886680006980896,
0.16140522062778473,
-0.12566092610359192,
0.8766080141067505,
0.2620379328727722,
0.9611341953277588,
-0.009710242971777916,
0.42671650648117065,
-2.425663948059082,
2.359469175338745,
-0.19486090540885925,
0.7250747084617615,
0.016503620892763138,
-0.14886534214019775,
1.1349518299102783,
0.6130819320678711,
0.564648449420929,
-1.043704628944397,
0.5506308674812317,
-0.6742286682128906,
1.3517173528671265,
0.9157403111457825,
-0.7574092745780945,
-0.08504889160394669,
1.318998098373413,
0.4891626536846161,
-0.5320868492126465,
-0.8916353583335876,
-0.9434669613838196,
0.8512307405471802,
1.7234362363815308,
0.026704341173171997,
-0.03290634974837303,
0.7448364496231079,
0.622531533241272,
-1.2994295358657837,
0.13417865335941315,
-0.6811292171478271,
-0.7735738158226013,
1.653259038925171,
2.070236921310425,
-0.2006530612707138,
-0.205431267619133,
-0.6670398116111755,
-1.2193208932876587,
0.7147581577301025,
-0.10072067379951477,
0.16727761924266815,
0.6152303218841553,
-0.6591801047325134,
1.0505658388137817,
0.958483099937439,
0.9219704270362854,
0.1262662559747696,
0.4315878748893738,
0.31321871280670166,
-0.4122520089149475,
-1.16402006149292,
-0.25382137298583984,
-1.1831448078155518,
-2.5998427867889404,
0.4713926613330841,
-0.3481754958629608,
-1.4381266832351685,
0.03407688066363335,
-1.0903676748275757,
0.9679540991783142,
-0.5543168187141418,
-1.037935733795166,
-1.5238745212554932,
0.15543454885482788,
-0.08227603137493134,
1.006973147392273,
-1.581850290298462,
-0.06885235756635666,
1.305929183959961,
0.8963279724121094,
-0.5892625451087952,
0.9977157115936279,
0.2713615894317627,
1.1413222551345825,
0.798772931098938,
-0.3852944076061249,
0.48636171221733093,
-0.035131439566612244,
-1.3722156286239624,
0.45868536829948425,
1.1493430137634277,
0.1437220573425293,
1.4914946556091309,
-0.4935210049152374,
0.0043304311111569405,
0.3718857765197754,
-0.5697925686836243,
-0.42358317971229553,
-0.5106170773506165,
0.6856719255447388,
0.11043740808963776,
-0.9102416038513184,
-0.0754196047782898,
-0.0568632110953331,
-0.2945766746997833,
0.14063063263893127,
-1.5572822093963623,
-0.2639879286289215,
-0.40546539425849915,
-0.5798936486244202,
-1.3151882886886597,
0.028080832213163376,
1.261078119277954,
-0.7299620509147644,
-0.1837291717529297,
0.4275217354297638,
0.39185968041419983,
0.4695468544960022,
0.6618269085884094,
-0.6512442231178284,
-0.4662622809410095,
-0.29266348481178284,
-0.32466670870780945,
0.24016590416431427,
1.2573935985565186,
-0.2540583610534668,
-0.9481652975082397,
0.6597331166267395,
-0.3300006091594696,
0.05396890640258789,
1.8708653450012207,
0.10047673434019089,
-0.8239666223526001,
0.34540215134620667,
-0.640436589717865,
1.94001042842865,
1.6513068675994873,
1.3128085136413574,
-0.12248852103948593,
-0.9333895444869995,
0.6546087265014648,
-0.298250675201416,
-0.27223289012908936,
0.8287217020988464,
0.5191120505332947,
-0.21705181896686554,
-1.4268428087234497,
0.5709578394889832,
1.197456955909729,
-0.838150143623352,
-0.8211015462875366,
0.09515175968408585,
-0.7844969034194946,
1.0117034912109375,
0.7878643870353699,
0.37493622303009033,
0.286943256855011,
1.5898637771606445,
0.7644368410110474,
-0.6115841865539551,
0.5038131475448608,
0.5055451989173889,
-0.08130727708339691,
-2.0636937618255615,
-0.9813267588615417,
0.22542718052864075,
-0.439730167388916,
-1.6003212928771973,
1.4160500764846802,
-1.0822745561599731,
-0.8363050818443298,
0.5002928972244263,
0.15214870870113373,
1.3901166915893555,
0.30665069818496704,
1.5499064922332764,
1.99564528465271,
0.7527064085006714,
0.263853520154953,
1.2656179666519165,
-0.08872750401496887,
-0.4015561044216156,
1.8325203657150269,
-0.4168681204319,
0.5045067667961121,
1.155964970588684,
-0.3071646988391876,
-0.9924519658088684,
-0.7668610215187073,
-1.1754015684127808,
-0.6931494474411011,
1.166144847869873,
0.10150494426488876,
-1.0946367979049683,
0.18919594585895538,
1.5311583280563354,
0.04764852672815323,
-0.33901044726371765,
0.43458104133605957,
0.4507342278957367,
-0.7485968470573425,
-0.17958667874336243,
-0.8775157332420349,
0.6084212064743042,
-0.09071798622608185,
-0.31684067845344543,
0.45299074053764343,
0.4137285649776459,
1.2546665668487549,
-0.03425233066082001,
0.17605440318584442,
1.1554003953933716,
-1.4888697862625122,
1.5118069648742676,
-0.5932175517082214,
0.235810324549675,
-2.3514740467071533,
1.4600379467010498,
-0.6971552968025208,
1.9251946210861206,
-2.648746967315674,
0.38968396186828613,
-0.5922385454177856,
-0.3965551555156708,
0.33915337920188904,
-0.37379398941993713,
0.18835486471652985,
-0.1672932356595993,
-1.0554840564727783,
-0.0526420995593071,
-0.711270809173584,
0.582888662815094,
1.1196616888046265,
1.2716519832611084,
-1.1073848009109497,
-0.20454400777816772,
-1.7158238887786865,
-0.1043073907494545,
-0.7308215498924255,
0.3726669251918793,
-2.0456793308258057,
-0.19101592898368835,
-1.9773509502410889,
-2.300537109375,
-1.4700042009353638,
-0.7669944167137146,
1.1056727170944214,
0.08733255416154861,
-0.8800076842308044,
1.1612322330474854,
-0.3868606686592102,
-1.774713158607483,
0.982862114906311,
-2.116478204727173
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | @rok Thanks for keeping us updated! I think it's best to introduce a new feature type that would use this extension type under the hood. I'll create an issue to discuss the design with the community in the coming days.
Also, is there a tentative time frame for the variable-shape Tensor extension type? | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 53 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
@rok Thanks for keeping us updated! I think it's best to introduce a new feature type that would use this extension type under the hood. I'll create an issue to discuss the design with the community in the coming days.
Also, is there a tentative time frame for the variable-shape Tensor extension type? | [
-1.2690497636795044,
-0.843891978263855,
-0.8586638569831848,
1.4805312156677246,
-0.13790814578533173,
-1.1721389293670654,
0.054437000304460526,
-1.1228569746017456,
1.6547662019729614,
-0.7912502288818359,
0.27640849351882935,
-1.6508591175079346,
0.14977411925792694,
-0.6157693266868591,
-0.7920710444450378,
-0.9250564575195312,
-0.39673107862472534,
-0.7388364672660828,
1.001918911933899,
2.5733683109283447,
1.1792924404144287,
-1.4284430742263794,
2.7122440338134766,
0.7766330242156982,
-0.0994715690612793,
-1.0018243789672852,
0.5441073775291443,
0.03723321482539177,
-1.2303210496902466,
-0.5304785966873169,
-0.9629782438278198,
-0.14715179800987244,
-0.43134695291519165,
-0.5039071440696716,
0.0006009172648191452,
0.3351594805717468,
-0.22667774558067322,
-0.36148181557655334,
-0.554679274559021,
-0.7556334137916565,
0.401516318321228,
-0.4425453543663025,
0.9575197100639343,
-0.36822423338890076,
1.8233247995376587,
-0.483106404542923,
0.4048330783843994,
0.7092916965484619,
1.38545560836792,
0.16686268150806427,
-0.02048228494822979,
0.3654341697692871,
0.43124905228614807,
0.019652284681797028,
0.47419440746307373,
1.1016480922698975,
0.684409499168396,
0.5594305396080017,
0.7377092242240906,
-2.1560826301574707,
1.3334096670150757,
-1.0726876258850098,
0.27062228322029114,
1.4034911394119263,
-0.9456272125244141,
0.4386650621891022,
-1.7129924297332764,
-0.10728868842124939,
0.5903285145759583,
-2.3207342624664307,
0.21737150847911835,
-1.2422908544540405,
-0.582438051700592,
0.91085284948349,
0.3159198462963104,
-1.325576663017273,
0.07387013733386993,
-0.4106152057647705,
1.1078561544418335,
0.5467749238014221,
1.1251341104507446,
-1.6253851652145386,
0.07729712128639221,
-0.3280717432498932,
0.08575160801410675,
-1.366184115409851,
-1.4437291622161865,
0.5160422921180725,
0.7232228517532349,
0.5559307336807251,
0.05879007652401924,
0.9368560314178467,
-1.0806580781936646,
0.8354340195655823,
-0.9062058329582214,
-1.692988634109497,
-1.408286213874817,
-2.352424383163452,
-2.2739031314849854,
0.8164997100830078,
-0.44948676228523254,
-0.5710794925689697,
2.072268486022949,
-1.0109186172485352,
-1.7635616064071655,
1.093035101890564,
0.20034174621105194,
-0.0032803970389068127,
2.489238977432251,
0.15724003314971924,
-0.7013304233551025,
0.28869956731796265,
-0.7121164798736572,
0.8447182178497314,
-0.5977370738983154,
1.3097455501556396,
0.49988630414009094,
-1.0049992799758911,
1.6999322175979614,
-0.37108010053634644,
0.4913177192211151,
-0.7185708284378052,
-0.4472508430480957,
-0.7764453887939453,
0.37897971272468567,
1.874814748764038,
-0.29084447026252747,
1.5368177890777588,
-0.2954917550086975,
-1.48307466506958,
-1.7098491191864014,
0.8572781085968018,
0.4583597481250763,
-0.8118856549263,
0.1942710429430008,
-0.3231799304485321,
0.12593933939933777,
-0.09556680172681808,
1.145076036453247,
1.2514547109603882,
0.6412157416343689,
-0.22826695442199707,
-0.8224780559539795,
0.22740218043327332,
-0.10123620927333832,
-0.7310317754745483,
-1.7661209106445312,
-0.31893908977508545,
0.10831117630004883,
0.6682919859886169,
-1.2018767595291138,
1.7611392736434937,
0.8322827219963074,
1.889374852180481,
1.0356204509735107,
-0.26375460624694824,
1.558288812637329,
0.06383774429559708,
1.7801729440689087,
-0.4854443371295929,
0.6717273592948914,
-0.35667476058006287,
-1.1628371477127075,
0.8410711288452148,
-0.4204123914241791,
-2.0039591789245605,
-0.7225931882858276,
-0.8672777414321899,
-0.2161712795495987,
-0.8165536522865295,
0.9279794096946716,
-0.25046128034591675,
-1.3045721054077148,
0.32691994309425354,
-0.714546799659729,
0.10721440613269806,
-1.2525417804718018,
0.4020775258541107,
0.7570517063140869,
-0.5522828698158264,
0.013317271135747433,
-0.2945261597633362,
-1.334354043006897,
-0.4925369620323181,
0.21788258850574493,
1.9940991401672363,
-0.7648352980613708,
0.7968886494636536,
0.9861471056938171,
-0.7175745368003845,
-0.07052046805620193,
0.37224772572517395,
-0.3221305012702942,
0.8337638974189758,
-1.079840064048767,
-0.38459014892578125,
1.0934128761291504,
-0.21475179493427277,
-0.6310092806816101,
1.4457588195800781,
0.8766355514526367,
-0.9873173236846924,
-0.25158804655075073,
-0.22518596053123474,
-0.8392629027366638,
0.026164349168539047,
-1.6218078136444092,
-0.16068701446056366,
0.42280885577201843,
-1.5133291482925415,
-0.46620604395866394,
-0.07166462391614914,
1.3292118310928345,
-0.1719970554113388,
1.5065970420837402,
-0.3593997061252594,
-0.16242678463459015,
-0.2693527936935425,
-0.3790481388568878,
0.18460014462471008,
-0.21461708843708038,
-0.5791937112808228,
0.16034500300884247,
-0.6951704025268555,
0.35541170835494995,
1.3680561780929565,
0.3711027204990387,
0.0721854642033577,
0.5106542706489563,
1.0560729503631592,
0.3258177638053894,
-0.0007866844534873962,
-0.8877143263816833,
-1.5199049711227417,
2.056431531906128,
-1.3931771516799927,
2.02701997756958,
0.7959966063499451,
-0.016389625146985054,
-1.8270161151885986,
-1.8568247556686401,
1.435740351676941,
1.1668230295181274,
2.2181236743927,
0.6521857976913452,
0.3628849387168884,
-0.8057559132575989,
-0.6921200752258301,
0.3244395852088928,
-1.0054091215133667,
-0.7383489608764648,
0.10007143765687943,
2.347083330154419,
1.7610242366790771,
-0.5114488005638123,
-0.20064961910247803,
-0.9636786580085754,
1.370768427848816,
-0.2106756865978241,
0.20587150752544403,
2.031627655029297,
-0.29310059547424316,
-1.0249853134155273,
1.1494089365005493,
-2.4705543518066406,
0.06776847690343857,
2.0012876987457275,
0.2818666398525238,
0.08837319910526276,
-1.4261747598648071,
-0.6270168423652649,
-0.3393343687057495,
-0.36111900210380554,
-1.261425256729126,
0.5328740477561951,
-0.27239546179771423,
-0.7881880402565002,
-1.4562370777130127,
0.17125843465328217,
-1.1453088521957397,
-1.6578415632247925,
0.2503175437450409,
1.9147905111312866,
2.0009372234344482,
-0.7139551639556885,
1.5562454462051392,
-0.2730056047439575,
0.13787566125392914,
1.3095430135726929,
1.1985267400741577,
3.190603017807007,
1.8692516088485718,
-1.1906334161758423,
0.6423924565315247,
-0.1854107677936554,
-0.4991971254348755,
1.1093155145645142,
-1.1452704668045044,
1.204343557357788,
-0.04113520681858063,
-1.213432788848877,
-1.2125691175460815,
1.0035568475723267,
0.4522826373577118,
0.10425960272550583,
-0.5727189779281616,
1.3068320751190186,
0.05101324990391731,
1.3356941938400269,
0.5181738138198853,
-0.25668618083000183,
0.5339508056640625,
-0.37096402049064636,
-0.47175365686416626,
1.5478540658950806,
0.21933980286121368,
-1.4762978553771973,
-2.317694902420044,
-0.16302970051765442,
-0.8182629942893982,
-0.025396253913640976,
-0.6092593669891357,
-1.0639033317565918,
1.734807014465332,
0.46848830580711365,
-1.214748740196228,
-0.3048900067806244,
-0.39245980978012085,
-0.6735772490501404,
2.723872184753418,
-1.472000241279602,
-0.32541438937187195,
-0.9829564094543457,
-0.5293035507202148,
1.6311272382736206,
-1.2768534421920776,
-0.15711542963981628,
-1.0176408290863037,
-0.5784748196601868,
-1.299464464187622,
-0.5864563584327698,
-0.07058753818273544,
-0.9583776593208313,
0.7555239796638489,
0.22138762474060059,
-1.0780335664749146,
-0.2554008662700653,
-0.8364431262016296,
0.8114327788352966,
-0.08779966086149216,
0.31399354338645935,
1.8969677686691284,
0.4385462701320648,
-0.3986726403236389,
0.7161891460418701,
1.1441092491149902,
0.6742074489593506,
-0.6035601496696472,
0.2073037475347519,
-0.5858578681945801,
0.36230385303497314,
-1.2343814373016357,
0.2793148159980774,
-2.8853397369384766,
0.6312996745109558,
-0.10180184245109558,
-0.13631117343902588,
0.014726248569786549,
-1.2295814752578735,
1.1134494543075562,
2.6892123222351074,
-1.136189579963684,
0.44467028975486755,
0.27322882413864136,
1.2844760417938232,
-1.612159252166748,
0.3840197026729584,
-0.37337398529052734,
2.1181390285491943,
0.20405513048171997,
1.1989845037460327,
-0.4286838173866272,
-2.414790391921997,
0.6387763023376465,
-1.2649468183517456,
-1.161991000175476,
0.718695342540741,
-0.7681543827056885,
0.0244312547147274,
-1.4080653190612793,
-0.14585092663764954,
-0.8590587377548218,
-1.2161766290664673,
0.7915147542953491,
0.08910585939884186,
0.4464399218559265,
-0.6341743469238281,
0.32311689853668213,
-2.137007236480713,
-1.32937753200531,
-0.19698242843151093,
-0.9266390800476074,
0.487877756357193,
-0.31791171431541443,
0.6795381307601929,
-0.2050754576921463,
0.09523879736661911,
0.3513684868812561,
1.437968373298645,
3.402708053588867,
0.19644716382026672,
0.5336070656776428,
-0.18780240416526794,
-0.9045908451080322,
1.4136910438537598,
0.8635932207107544,
-0.08536502718925476,
-0.5712677836418152,
-0.9680134057998657,
1.3546063899993896,
1.9084781408309937,
0.8864611387252808,
0.14039120078086853,
-0.764755368232727,
-0.6856166124343872,
-0.031603630632162094,
0.2557094395160675,
0.3876541554927826,
0.9046310782432556,
0.006012960337102413,
0.026659920811653137,
1.3715237379074097,
1.2758482694625854,
-0.5010399222373962,
0.3854614496231079,
-0.8700352907180786,
-0.44515082240104675,
0.48764050006866455,
0.3118842542171478,
-0.07159850001335144,
0.3665412962436676,
-0.9262503981590271,
-0.27189940214157104,
-0.34788185358047485,
-0.9582549333572388,
-0.7464953064918518,
-0.313427597284317,
-0.3399879038333893,
1.727210521697998,
0.16190581023693085,
-0.5067317485809326,
-0.022628184407949448,
-0.8442842960357666,
-0.11832926422357559,
-1.0567911863327026,
0.2188996970653534,
-0.07113126665353775,
-0.12759996950626373,
-0.019950462505221367,
1.9039639234542847,
-0.9286236763000488,
-2.124811887741089,
0.2671035826206207,
0.22621817886829376,
-0.2909911572933197,
0.2399614006280899,
1.6822667121887207,
0.5499571561813354,
1.5038529634475708,
1.3482192754745483,
0.9422853589057922,
-0.667811393737793,
-1.4017033576965332,
0.7179551124572754,
0.9864980578422546,
-1.4139270782470703,
0.8482027053833008,
-0.003233734518289566,
-0.514482855796814,
0.6112865209579468,
1.26767897605896,
0.40460726618766785,
-1.967825174331665,
0.8166301846504211,
-0.9225936532020569,
0.7678167223930359,
0.6441946625709534,
0.6296417713165283,
0.3180776536464691,
0.8086633086204529,
-1.2284773588180542,
-1.2320685386657715,
-0.7919268608093262,
-0.6210942268371582,
1.9609533548355103,
-0.3004205524921417,
0.608341634273529,
-0.14208605885505676,
-1.4034125804901123,
-0.09870578348636627,
0.6290685534477234,
0.31808727979660034,
-0.34419727325439453,
0.8666071891784668,
-0.7502114176750183,
-1.1626718044281006,
-1.4640264511108398,
-0.4896041452884674,
-0.9724972248077393,
-0.9384723901748657,
1.05875563621521,
0.851445734500885,
0.1936124861240387,
1.9495753049850464,
0.5911902785301208,
0.235210582613945,
-2.6866815090179443,
0.8629822731018066,
0.17157413065433502,
-0.07489864528179169,
0.9016242623329163,
0.2903362810611725,
0.9814275503158569,
-0.017059560865163803,
0.45068061351776123,
-2.43811297416687,
2.3329665660858154,
-0.2269277721643448,
0.7230344414710999,
0.007533912546932697,
-0.1823577731847763,
1.0975604057312012,
0.607204794883728,
0.5742819309234619,
-1.040401816368103,
0.591891884803772,
-0.6888845562934875,
1.3362045288085938,
0.947280764579773,
-0.7496243119239807,
-0.04915638267993927,
1.335929274559021,
0.44234248995780945,
-0.544111430644989,
-0.8850984573364258,
-0.9502773880958557,
0.8390940427780151,
1.7263942956924438,
0.016826022416353226,
-0.03792916238307953,
0.7594637870788574,
0.6085368394851685,
-1.2911022901535034,
0.15178659558296204,
-0.7027347683906555,
-0.8318292498588562,
1.671532154083252,
2.070892095565796,
-0.17097660899162292,
-0.16523385047912598,
-0.6698715090751648,
-1.2783950567245483,
0.6943134665489197,
-0.03867296501994133,
0.08587216585874557,
0.6263535022735596,
-0.6815531253814697,
1.0595321655273438,
0.8975920081138611,
0.9493371248245239,
0.153470978140831,
0.3741404712200165,
0.32775405049324036,
-0.41593846678733826,
-1.1468751430511475,
-0.28262796998023987,
-1.1369335651397705,
-2.573239803314209,
0.4366419315338135,
-0.35082703828811646,
-1.4552054405212402,
0.002828444354236126,
-1.066586971282959,
0.9338449239730835,
-0.5658000111579895,
-1.0533939599990845,
-1.486250400543213,
0.2124895304441452,
-0.0834747850894928,
0.9649892449378967,
-1.5925157070159912,
-0.06972696632146835,
1.2847598791122437,
0.887942373752594,
-0.5949328541755676,
1.0150420665740967,
0.2415577620267868,
1.1527719497680664,
0.8497668504714966,
-0.42887964844703674,
0.46703842282295227,
-0.03267809376120567,
-1.3717036247253418,
0.48777061700820923,
1.1478538513183594,
0.10416240990161896,
1.4732367992401123,
-0.48656928539276123,
-0.03913233429193497,
0.3496835231781006,
-0.5923677682876587,
-0.40031009912490845,
-0.55743807554245,
0.7522079348564148,
0.07931304723024368,
-0.9080005884170532,
-0.05711323767900467,
-0.03305451199412346,
-0.27916258573532104,
0.14047014713287354,
-1.5468411445617676,
-0.2249116152524948,
-0.38384419679641724,
-0.5554649829864502,
-1.317366123199463,
0.03397310525178909,
1.2733608484268188,
-0.7344241142272949,
-0.17266078293323517,
0.4445229172706604,
0.42649054527282715,
0.47881266474723816,
0.6462076306343079,
-0.6486227512359619,
-0.4750886857509613,
-0.2757991850376129,
-0.3555136024951935,
0.2626241445541382,
1.243322491645813,
-0.25169670581817627,
-0.9145783185958862,
0.6452672481536865,
-0.33318960666656494,
0.026106134057044983,
1.8859968185424805,
0.09616103023290634,
-0.8447769284248352,
0.3134475350379944,
-0.6191900372505188,
1.9287844896316528,
1.67778742313385,
1.3053746223449707,
-0.1218300461769104,
-0.9164754748344421,
0.6412044763565063,
-0.3199520707130432,
-0.3030377924442291,
0.8048080801963806,
0.5099179148674011,
-0.20958930253982544,
-1.4591994285583496,
0.5807939171791077,
1.1711677312850952,
-0.8418407440185547,
-0.8629442453384399,
0.060398299247026443,
-0.8045305609703064,
1.058143973350525,
0.7729284167289734,
0.3841433823108673,
0.22877638041973114,
1.610357642173767,
0.7620454430580139,
-0.5884602069854736,
0.5315871238708496,
0.5127705931663513,
-0.11866280436515808,
-2.0844881534576416,
-0.9856412410736084,
0.226715087890625,
-0.40316420793533325,
-1.6038577556610107,
1.3989425897598267,
-1.0895271301269531,
-0.8279710412025452,
0.4620772898197174,
0.16150477528572083,
1.369011640548706,
0.2919999063014984,
1.5479011535644531,
2.010556221008301,
0.7788563966751099,
0.31918126344680786,
1.2711819410324097,
-0.09748539328575134,
-0.4177156090736389,
1.811576008796692,
-0.41714197397232056,
0.5089304447174072,
1.1286159753799438,
-0.3485085964202881,
-1.0247676372528076,
-0.7624498605728149,
-1.143281102180481,
-0.7028546333312988,
1.164111614227295,
0.09261717647314072,
-1.0962156057357788,
0.1955047845840454,
1.5265406370162964,
0.04282847046852112,
-0.3864303231239319,
0.4285237789154053,
0.46522095799446106,
-0.6984454393386841,
-0.11087736487388611,
-0.913665235042572,
0.5930383205413818,
-0.12173710018396378,
-0.34768441319465637,
0.4648644030094147,
0.43537068367004395,
1.2859982252120972,
-0.05222739651799202,
0.17788764834403992,
1.1538845300674438,
-1.434356451034546,
1.4828373193740845,
-0.5628950595855713,
0.2336173802614212,
-2.3375957012176514,
1.420017123222351,
-0.6909236907958984,
1.9884446859359741,
-2.636651039123535,
0.3565487563610077,
-0.591338038444519,
-0.4098980128765106,
0.3796546459197998,
-0.3787670433521271,
0.18063537776470184,
-0.16968435049057007,
-1.0609867572784424,
-0.06460627168416977,
-0.7677197456359863,
0.5285053849220276,
1.0740904808044434,
1.2940564155578613,
-1.0854111909866333,
-0.2242397516965866,
-1.6966155767440796,
-0.11363916844129562,
-0.7571484446525574,
0.3734859824180603,
-2.0514535903930664,
-0.19492068886756897,
-2.0173466205596924,
-2.310925006866455,
-1.4386265277862549,
-0.7901447415351868,
1.0507447719573975,
0.06907536089420319,
-0.8439821600914001,
1.1787973642349243,
-0.3442138433456421,
-1.831394910812378,
1.0056648254394531,
-2.074056386947632
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | @mariosasko please tag me in the discussion, perhaps I can contribute.
As for the [variable shape tensor array](https://github.com/apache/arrow/issues/24868) - I'd be interested in working on it but didn't see much interest in community yet. Are you saying `huggingface/datasets` could use it? | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 41 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
@mariosasko please tag me in the discussion, perhaps I can contribute.
As for the [variable shape tensor array](https://github.com/apache/arrow/issues/24868) - I'd be interested in working on it but didn't see much interest in community yet. Are you saying `huggingface/datasets` could use it? | [
-1.2609074115753174,
-0.8706880211830139,
-0.8021917939186096,
1.5096793174743652,
-0.11551310867071152,
-1.1556404829025269,
0.0735068991780281,
-1.0844746828079224,
1.6590081453323364,
-0.7683582901954651,
0.2756827175617218,
-1.6488361358642578,
0.11169324815273285,
-0.5392711162567139,
-0.8183303475379944,
-0.8834581971168518,
-0.37904685735702515,
-0.7421723008155823,
1.0008962154388428,
2.572563648223877,
1.1752958297729492,
-1.4344242811203003,
2.7428689002990723,
0.752895176410675,
-0.09278763830661774,
-1.0736116170883179,
0.5430525541305542,
0.04018399864435196,
-1.2230900526046753,
-0.501319169998169,
-0.972990870475769,
-0.08663620799779892,
-0.4341980516910553,
-0.4650706946849823,
0.026469463482499123,
0.3328813910484314,
-0.2217504233121872,
-0.3599272072315216,
-0.544045627117157,
-0.7817865610122681,
0.4061852693557739,
-0.41864320635795593,
0.9740190505981445,
-0.33413586020469666,
1.8381038904190063,
-0.5341672897338867,
0.4155943989753723,
0.6689894199371338,
1.3370028734207153,
0.15387122333049774,
-0.006842324975878,
0.3900112211704254,
0.4437575042247772,
-0.0026294682174921036,
0.512204647064209,
1.125913381576538,
0.6713131666183472,
0.5374341011047363,
0.7068024277687073,
-2.175614356994629,
1.3053228855133057,
-1.0110058784484863,
0.28586336970329285,
1.343546748161316,
-0.9092363715171814,
0.42413976788520813,
-1.7345823049545288,
-0.08354969322681427,
0.6021677255630493,
-2.2769510746002197,
0.23323611915111542,
-1.2742735147476196,
-0.5562740564346313,
0.9476786851882935,
0.2538835108280182,
-1.311877965927124,
0.09865377843379974,
-0.4205782115459442,
1.1475213766098022,
0.5161463618278503,
1.0958139896392822,
-1.627903699874878,
0.060836344957351685,
-0.265581339597702,
0.05592639744281769,
-1.2933803796768188,
-1.5041652917861938,
0.4870864748954773,
0.6955108046531677,
0.6199058890342712,
-0.008520444855093956,
0.968578577041626,
-1.1226575374603271,
0.8137379288673401,
-0.9144823551177979,
-1.6770706176757812,
-1.3769211769104004,
-2.3517487049102783,
-2.2844479084014893,
0.8179448246955872,
-0.42786240577697754,
-0.5374946594238281,
2.0473949909210205,
-0.9840831756591797,
-1.786468267440796,
1.1358866691589355,
0.2622469663619995,
0.018991714343428612,
2.4594850540161133,
0.1734863817691803,
-0.7318723797798157,
0.36021557450294495,
-0.7124175429344177,
0.8028510212898254,
-0.5861085653305054,
1.3509172201156616,
0.4942401945590973,
-1.0180845260620117,
1.704521656036377,
-0.4183703362941742,
0.5055233240127563,
-0.7354812026023865,
-0.46137261390686035,
-0.7869974970817566,
0.3708744943141937,
1.9261767864227295,
-0.35670924186706543,
1.5173206329345703,
-0.29170459508895874,
-1.504479169845581,
-1.6668623685836792,
0.8291246294975281,
0.4859670102596283,
-0.7924950122833252,
0.14212128520011902,
-0.3228696584701538,
0.13532768189907074,
-0.07813240587711334,
1.0982658863067627,
1.1892811059951782,
0.6770014762878418,
-0.23413746058940887,
-0.8411259055137634,
0.27328208088874817,
-0.12603095173835754,
-0.6741052269935608,
-1.7908875942230225,
-0.30865439772605896,
0.16035686433315277,
0.6438478827476501,
-1.2583175897598267,
1.7517428398132324,
0.7985594272613525,
1.912976861000061,
1.0318762063980103,
-0.27550044655799866,
1.5550436973571777,
0.057118192315101624,
1.849453330039978,
-0.47583186626434326,
0.6456950306892395,
-0.33500435948371887,
-1.1972867250442505,
0.8285917043685913,
-0.39723706245422363,
-1.9798848628997803,
-0.7538463473320007,
-0.8643568754196167,
-0.174429252743721,
-0.8378292322158813,
0.8973895311355591,
-0.27795538306236267,
-1.3714852333068848,
0.2910028100013733,
-0.728702187538147,
0.16247785091400146,
-1.2642697095870972,
0.3602059781551361,
0.7395952343940735,
-0.6017618775367737,
0.008265597745776176,
-0.256474107503891,
-1.3521925210952759,
-0.496596097946167,
0.2733131945133209,
2.0332517623901367,
-0.7713339328765869,
0.8281554579734802,
1.0242607593536377,
-0.7306925058364868,
-0.04366020858287811,
0.3498906195163727,
-0.338064581155777,
0.8295714259147644,
-1.125382661819458,
-0.42764750123023987,
1.1645537614822388,
-0.17217165231704712,
-0.6179179549217224,
1.425093173980713,
0.8933717608451843,
-0.9808374643325806,
-0.2578119933605194,
-0.17990854382514954,
-0.7075191736221313,
0.006010608747601509,
-1.5891128778457642,
-0.14943723380565643,
0.4121801257133484,
-1.4748910665512085,
-0.4620404839515686,
-0.12226830422878265,
1.3517297506332397,
-0.26074454188346863,
1.5448997020721436,
-0.33547288179397583,
-0.15341848134994507,
-0.29329022765159607,
-0.41347575187683105,
0.14778223633766174,
-0.21690112352371216,
-0.6245560050010681,
0.18754929304122925,
-0.7254239916801453,
0.3578994870185852,
1.37638258934021,
0.3836229145526886,
0.06583213806152344,
0.541431188583374,
1.0829092264175415,
0.3366805613040924,
-0.03963162750005722,
-0.9166980385780334,
-1.5453606843948364,
2.0243747234344482,
-1.3807621002197266,
2.0088865756988525,
0.7777474522590637,
-0.036570847034454346,
-1.7910184860229492,
-1.863122582435608,
1.4108401536941528,
1.1890110969543457,
2.308626413345337,
0.6279692053794861,
0.3852459192276001,
-0.7984303832054138,
-0.7100874185562134,
0.2764337658882141,
-1.0164698362350464,
-0.7437993884086609,
0.10035988688468933,
2.340369462966919,
1.7272387742996216,
-0.4702307879924774,
-0.19883087277412415,
-0.9541733264923096,
1.3640236854553223,
-0.2751114070415497,
0.20398229360580444,
2.02803373336792,
-0.2842138111591339,
-1.0611562728881836,
1.166748285293579,
-2.4657208919525146,
0.14222636818885803,
1.9832007884979248,
0.28227105736732483,
0.07325688004493713,
-1.4858676195144653,
-0.642228901386261,
-0.3275677263736725,
-0.3873745799064636,
-1.2534042596817017,
0.5410244464874268,
-0.27638107538223267,
-0.8551048636436462,
-1.4461911916732788,
0.14900898933410645,
-1.131562352180481,
-1.6836904287338257,
0.2502301037311554,
1.920783519744873,
2.0117437839508057,
-0.7621020078659058,
1.5303317308425903,
-0.22881248593330383,
0.13234633207321167,
1.3390084505081177,
1.2417372465133667,
3.1654176712036133,
1.9114964008331299,
-1.1965053081512451,
0.6835921406745911,
-0.2140556126832962,
-0.49486276507377625,
1.1650108098983765,
-1.1242915391921997,
1.1768125295639038,
-0.11610119789838791,
-1.2787569761276245,
-1.2409673929214478,
0.9988271594047546,
0.49228814244270325,
0.12161266058683395,
-0.516044020652771,
1.2783565521240234,
0.05150561034679413,
1.3492649793624878,
0.5710465908050537,
-0.308051198720932,
0.5446807146072388,
-0.3331795930862427,
-0.44397830963134766,
1.5490504503250122,
0.1489439755678177,
-1.513230323791504,
-2.3250553607940674,
-0.1697966605424881,
-0.8667293787002563,
-0.1058434322476387,
-0.6037145853042603,
-1.1288622617721558,
1.6776018142700195,
0.45721498131752014,
-1.2331801652908325,
-0.31211379170417786,
-0.3378937840461731,
-0.6659846305847168,
2.685614824295044,
-1.4216762781143188,
-0.32368534803390503,
-0.9958115220069885,
-0.5150753855705261,
1.6283169984817505,
-1.2454581260681152,
-0.13355685770511627,
-0.9966660141944885,
-0.6134721636772156,
-1.3386799097061157,
-0.608688235282898,
-0.02764911949634552,
-0.9638903737068176,
0.7067427635192871,
0.2180740088224411,
-1.0986661911010742,
-0.27940234541893005,
-0.8639578223228455,
0.8413548469543457,
-0.02711387351155281,
0.28916028141975403,
1.8864785432815552,
0.46492376923561096,
-0.40604105591773987,
0.7216475605964661,
1.1861029863357544,
0.6681381464004517,
-0.6280671954154968,
0.2567293643951416,
-0.6798696517944336,
0.37050607800483704,
-1.3326027393341064,
0.2276424616575241,
-2.8863472938537598,
0.6997920870780945,
-0.09977081418037415,
-0.1296599954366684,
-0.019966639578342438,
-1.243263840675354,
1.1345438957214355,
2.64255690574646,
-1.1579421758651733,
0.47226545214653015,
0.30228477716445923,
1.2901612520217896,
-1.6001216173171997,
0.33497950434684753,
-0.38653746247291565,
2.0966238975524902,
0.15255433320999146,
1.2406774759292603,
-0.4048191010951996,
-2.298433780670166,
0.6786695122718811,
-1.279115080833435,
-1.1456952095031738,
0.7429301142692566,
-0.8140923380851746,
0.10989943891763687,
-1.386946201324463,
-0.1265551596879959,
-0.8915754556655884,
-1.2457618713378906,
0.7691498398780823,
0.0932827889919281,
0.41183948516845703,
-0.57643061876297,
0.3853314518928528,
-2.12947940826416,
-1.3029409646987915,
-0.1969430148601532,
-0.9659990072250366,
0.5088924169540405,
-0.28643831610679626,
0.6582046747207642,
-0.1760914921760559,
0.037950299680233,
0.35041746497154236,
1.4427061080932617,
3.4081227779388428,
0.22104451060295105,
0.4985292851924896,
-0.11920429766178131,
-0.9835928678512573,
1.404726266860962,
0.8843686580657959,
-0.1524071842432022,
-0.5514662265777588,
-0.9454004168510437,
1.3740817308425903,
1.8911761045455933,
0.9308481812477112,
0.14781410992145538,
-0.7653031349182129,
-0.7136508226394653,
0.02160104550421238,
0.20678205788135529,
0.4330372214317322,
0.9198360443115234,
0.031298063695430756,
0.016034884378314018,
1.3491507768630981,
1.2982003688812256,
-0.4956151247024536,
0.39589396119117737,
-0.911493718624115,
-0.4496704339981079,
0.5126426219940186,
0.26911547780036926,
0.008174058049917221,
0.3536912500858307,
-0.9587185382843018,
-0.2632816731929779,
-0.30216658115386963,
-0.9573782086372375,
-0.7694639563560486,
-0.35649925470352173,
-0.31617307662963867,
1.6388999223709106,
0.120338074862957,
-0.49282118678092957,
0.006731206551194191,
-0.8481850624084473,
-0.11114915460348129,
-1.0492331981658936,
0.2064376175403595,
-0.07461567223072052,
-0.15239490568637848,
-0.03322724252939224,
1.8710519075393677,
-0.9340915679931641,
-2.106560707092285,
0.24100838601589203,
0.25162747502326965,
-0.3194425106048584,
0.2347722053527832,
1.71085786819458,
0.5489419102668762,
1.4907186031341553,
1.2944705486297607,
0.9334786534309387,
-0.619995653629303,
-1.3303699493408203,
0.7423288226127625,
1.0091564655303955,
-1.363541603088379,
0.8616276979446411,
-0.04008886218070984,
-0.488193541765213,
0.6265857815742493,
1.2863236665725708,
0.37898746132850647,
-1.9213826656341553,
0.778990626335144,
-0.8918473720550537,
0.7575307488441467,
0.6598971486091614,
0.7077118754386902,
0.28731656074523926,
0.8135172724723816,
-1.2821216583251953,
-1.1723705530166626,
-0.7809886932373047,
-0.5866503119468689,
1.926973819732666,
-0.29156970977783203,
0.5480824708938599,
-0.13699384033679962,
-1.404011845588684,
-0.12509554624557495,
0.6978104710578918,
0.30823156237602234,
-0.3996320962905884,
0.8855630159378052,
-0.740919828414917,
-1.0766417980194092,
-1.4346708059310913,
-0.4709372818470001,
-0.9446724057197571,
-0.9340259432792664,
1.0324928760528564,
0.8745731115341187,
0.22113262116909027,
1.9032915830612183,
0.5748167634010315,
0.28928208351135254,
-2.707188606262207,
0.8869211673736572,
0.19770561158657074,
-0.12284082174301147,
0.8863059282302856,
0.2483665496110916,
0.994556725025177,
-0.041434235870838165,
0.49985048174858093,
-2.430102586746216,
2.27451491355896,
-0.19108515977859497,
0.7005531191825867,
0.04273358732461929,
-0.2028452306985855,
1.1292997598648071,
0.5555546879768372,
0.5811852216720581,
-1.0822288990020752,
0.606544554233551,
-0.6660221815109253,
1.3024777173995972,
0.9122692346572876,
-0.7986500859260559,
-0.03321393206715584,
1.3333179950714111,
0.44382333755493164,
-0.4941284954547882,
-0.9048120975494385,
-0.9133886694908142,
0.9002131223678589,
1.6884928941726685,
0.008453872054815292,
-0.051128506660461426,
0.8049833178520203,
0.6023675203323364,
-1.3305193185806274,
0.12578542530536652,
-0.6986390948295593,
-0.7386025190353394,
1.6864194869995117,
2.0892724990844727,
-0.17071692645549774,
-0.23459315299987793,
-0.7015911340713501,
-1.2733407020568848,
0.6895878911018372,
-0.07023036479949951,
0.10738623887300491,
0.682539701461792,
-0.6858336329460144,
1.044046401977539,
0.8343359231948853,
0.9497082829475403,
0.12873882055282593,
0.39141878485679626,
0.3262157738208771,
-0.4456516206264496,
-1.189682126045227,
-0.2614533305168152,
-1.1514263153076172,
-2.5882973670959473,
0.40458500385284424,
-0.31453371047973633,
-1.4474127292633057,
0.06791551411151886,
-1.1147500276565552,
0.9405542016029358,
-0.5811579823493958,
-1.0651906728744507,
-1.4696669578552246,
0.22211933135986328,
-0.11383634805679321,
0.9456461668014526,
-1.5599230527877808,
-0.10620106756687164,
1.2991654872894287,
0.9221551418304443,
-0.56883704662323,
0.9844397306442261,
0.23728586733341217,
1.1616946458816528,
0.8343990445137024,
-0.4167616367340088,
0.5083135962486267,
-0.022941460832953453,
-1.3528878688812256,
0.47272080183029175,
1.1548937559127808,
0.13633444905281067,
1.476450800895691,
-0.5089418888092041,
-0.008621877059340477,
0.4028502404689789,
-0.6295744776725769,
-0.496826708316803,
-0.5047794580459595,
0.6813960075378418,
0.07631120830774307,
-0.9601587057113647,
-0.051259659230709076,
-0.01234760507941246,
-0.2419157475233078,
0.1698531061410904,
-1.5581454038619995,
-0.23659998178482056,
-0.3105112910270691,
-0.583318829536438,
-1.2738404273986816,
0.06196329742670059,
1.246111273765564,
-0.7928187847137451,
-0.2068135142326355,
0.41681966185569763,
0.354981392621994,
0.508604884147644,
0.6184394359588623,
-0.663921594619751,
-0.46260544657707214,
-0.30104199051856995,
-0.31233859062194824,
0.23606152832508087,
1.3088997602462769,
-0.2163178026676178,
-0.9562872648239136,
0.6635606288909912,
-0.3862867057323456,
0.04478529840707779,
1.8831478357315063,
0.08105196803808212,
-0.8424150347709656,
0.30016231536865234,
-0.6358906626701355,
1.9369717836380005,
1.6609526872634888,
1.3201565742492676,
-0.11682497709989548,
-0.8508914113044739,
0.618276834487915,
-0.3424188792705536,
-0.3264392912387848,
0.8425438404083252,
0.5040199160575867,
-0.1747252196073532,
-1.4519507884979248,
0.5590100288391113,
1.2150583267211914,
-0.8599783778190613,
-0.8068059086799622,
0.0756789967417717,
-0.8360774517059326,
1.0881531238555908,
0.7412851452827454,
0.39662185311317444,
0.2500554323196411,
1.5865808725357056,
0.7837494015693665,
-0.5435785055160522,
0.5398155450820923,
0.5071380734443665,
-0.11786454170942307,
-2.1189630031585693,
-0.9815248847007751,
0.24220649898052216,
-0.40679433941841125,
-1.5749062299728394,
1.378732442855835,
-1.0794726610183716,
-0.8474172949790955,
0.5085185766220093,
0.21347332000732422,
1.349738359451294,
0.30173319578170776,
1.575391173362732,
1.9878617525100708,
0.7720093131065369,
0.2569592595100403,
1.2356523275375366,
-0.07110365480184555,
-0.44093209505081177,
1.8128126859664917,
-0.42845451831817627,
0.5299813747406006,
1.0668284893035889,
-0.36185625195503235,
-1.0524348020553589,
-0.7745411992073059,
-1.18004310131073,
-0.6680464148521423,
1.141327977180481,
0.15083861351013184,
-1.0991462469100952,
0.16718856990337372,
1.5622402429580688,
0.029676424339413643,
-0.34159526228904724,
0.5245938897132874,
0.38376566767692566,
-0.7131108641624451,
-0.08142606914043427,
-0.8629451394081116,
0.5793395042419434,
-0.0630781352519989,
-0.27669045329093933,
0.41671058535575867,
0.4412677586078644,
1.2560322284698486,
-0.037427954375743866,
0.135658398270607,
1.1637706756591797,
-1.4333220720291138,
1.5009081363677979,
-0.6345859169960022,
0.2965676486492157,
-2.397677421569824,
1.4042043685913086,
-0.7581512928009033,
1.8980023860931396,
-2.6294124126434326,
0.39534276723861694,
-0.5759050846099854,
-0.4374645948410034,
0.2958388924598694,
-0.3988782465457916,
0.16218113899230957,
-0.1691507250070572,
-1.0588412284851074,
-0.06793858855962753,
-0.7658790946006775,
0.563502311706543,
1.0913007259368896,
1.305467963218689,
-1.1198376417160034,
-0.224241241812706,
-1.7571660280227661,
-0.0738934576511383,
-0.7406534552574158,
0.3900839686393738,
-2.042654037475586,
-0.18151719868183136,
-1.9643417596817017,
-2.272331714630127,
-1.4213294982910156,
-0.8007674813270569,
1.0196322202682495,
0.06761808693408966,
-0.8690193295478821,
1.1840978860855103,
-0.3599354922771454,
-1.792661428451538,
1.0168884992599487,
-2.137118339538574
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | pyarrow 12 is out π, will have a look if I can work on it for the ExtensionArray | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 18 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
pyarrow 12 is out π, will have a look if I can work on it for the ExtensionArray | [
-1.2772842645645142,
-0.8833597302436829,
-0.8107840418815613,
1.5195692777633667,
-0.1420256495475769,
-1.1844289302825928,
0.06985602527856827,
-1.1193996667861938,
1.638187289237976,
-0.7719319462776184,
0.3115450441837311,
-1.6871585845947266,
0.1620226800441742,
-0.5521688461303711,
-0.7586855888366699,
-0.916197657585144,
-0.33677420020103455,
-0.7367455363273621,
0.9914917945861816,
2.587195873260498,
1.1920136213302612,
-1.4005435705184937,
2.721334457397461,
0.7525734305381775,
-0.14235953986644745,
-1.0405752658843994,
0.543683648109436,
0.1061963364481926,
-1.1830791234970093,
-0.5383225679397583,
-0.9847390651702881,
-0.15220069885253906,
-0.3820038139820099,
-0.48521173000335693,
-0.00540961604565382,
0.3523045480251312,
-0.2473200261592865,
-0.348211407661438,
-0.5488113760948181,
-0.76447594165802,
0.3896090090274811,
-0.47217103838920593,
0.9664298892021179,
-0.37798449397087097,
1.844480276107788,
-0.4928918480873108,
0.4009553790092468,
0.6786961555480957,
1.3574838638305664,
0.13498665392398834,
-0.04099632799625397,
0.37103965878486633,
0.421210914850235,
-0.009967377409338951,
0.4816846251487732,
1.061010718345642,
0.6774157285690308,
0.5726975202560425,
0.6897756457328796,
-2.1255462169647217,
1.3419678211212158,
-1.0600483417510986,
0.2558993101119995,
1.4018938541412354,
-0.9643720388412476,
0.40475377440452576,
-1.6702556610107422,
-0.15692226588726044,
0.5911552309989929,
-2.282827615737915,
0.23306117951869965,
-1.2156481742858887,
-0.6034122109413147,
0.9700928330421448,
0.33166706562042236,
-1.322181224822998,
-0.011721623130142689,
-0.42737913131713867,
1.097137689590454,
0.5146216750144958,
1.0551708936691284,
-1.6052463054656982,
0.10130571573972702,
-0.34933310747146606,
0.0008909339085221291,
-1.3704745769500732,
-1.4802166223526,
0.5067477226257324,
0.6806262731552124,
0.6414588093757629,
0.02622537687420845,
0.9610010981559753,
-1.1003339290618896,
0.8125289678573608,
-0.9229047298431396,
-1.6648005247116089,
-1.3016177415847778,
-2.4014904499053955,
-2.267472267150879,
0.8203298449516296,
-0.4612475335597992,
-0.600932776927948,
2.072394371032715,
-1.0156868696212769,
-1.7355289459228516,
1.1250760555267334,
0.19305698573589325,
0.02967187389731407,
2.529371500015259,
0.19562505185604095,
-0.6588388085365295,
0.32984068989753723,
-0.7150432467460632,
0.8784130811691284,
-0.5855030417442322,
1.328463077545166,
0.46922776103019714,
-1.0843002796173096,
1.7259939908981323,
-0.32496389746665955,
0.5166866779327393,
-0.7530204057693481,
-0.4831681549549103,
-0.7841142416000366,
0.385393887758255,
1.8524930477142334,
-0.32930198311805725,
1.4822702407836914,
-0.31973713636398315,
-1.4470502138137817,
-1.6952943801879883,
0.8188894987106323,
0.4709251821041107,
-0.7908905744552612,
0.1957419216632843,
-0.299905002117157,
0.11356457322835922,
-0.04558175802230835,
1.170055866241455,
1.2374141216278076,
0.6462628245353699,
-0.26651257276535034,
-0.8394680619239807,
0.22161291539669037,
-0.10619784891605377,
-0.697043776512146,
-1.7363930940628052,
-0.3220972418785095,
0.04535288363695145,
0.6829739212989807,
-1.2047865390777588,
1.7929502725601196,
0.8239551186561584,
1.8846182823181152,
1.0227948427200317,
-0.2387067973613739,
1.5063530206680298,
0.06442359834909439,
1.7873164415359497,
-0.489637166261673,
0.6360613703727722,
-0.3197704255580902,
-1.1619958877563477,
0.8373982310295105,
-0.4106013774871826,
-1.9568957090377808,
-0.7892937064170837,
-0.8455784916877747,
-0.21773502230644226,
-0.820469081401825,
0.937890350818634,
-0.2842073440551758,
-1.3073749542236328,
0.35718101263046265,
-0.7319691181182861,
0.08240564912557602,
-1.273425579071045,
0.4011342525482178,
0.7266253232955933,
-0.6094071865081787,
-0.010588095523416996,
-0.2981506884098053,
-1.3144922256469727,
-0.523976743221283,
0.22845736145973206,
2.0446460247039795,
-0.768688976764679,
0.8132129311561584,
1.0342392921447754,
-0.716255247592926,
-0.07200756669044495,
0.3662523031234741,
-0.3133959472179413,
0.8158136606216431,
-1.1424752473831177,
-0.42022407054901123,
1.091689109802246,
-0.20164112746715546,
-0.6637548208236694,
1.4887770414352417,
0.8550671339035034,
-1.0040949583053589,
-0.23973311483860016,
-0.20794831216335297,
-0.7743255496025085,
0.010973556898534298,
-1.5771890878677368,
-0.14039993286132812,
0.43861690163612366,
-1.4888533353805542,
-0.4418003559112549,
-0.06702104955911636,
1.3626182079315186,
-0.17110362648963928,
1.4722257852554321,
-0.32876625657081604,
-0.21560369431972504,
-0.26447927951812744,
-0.3592470586299896,
0.12401100248098373,
-0.23558835685253143,
-0.5937623381614685,
0.1822010576725006,
-0.6851217150688171,
0.3419872224330902,
1.3998562097549438,
0.38748085498809814,
0.09632435441017151,
0.5393221378326416,
1.0360668897628784,
0.326549768447876,
-0.027152691036462784,
-0.897017776966095,
-1.5119401216506958,
1.9552558660507202,
-1.3798942565917969,
1.9896281957626343,
0.8535173535346985,
-0.010217368602752686,
-1.8310818672180176,
-1.8542912006378174,
1.425398588180542,
1.2149529457092285,
2.203984498977661,
0.6812983155250549,
0.3438735008239746,
-0.7872903347015381,
-0.7049587368965149,
0.28627029061317444,
-1.0346238613128662,
-0.7113428711891174,
0.12594053149223328,
2.331322193145752,
1.7273437976837158,
-0.4588339626789093,
-0.1482543796300888,
-0.965665340423584,
1.34413480758667,
-0.222873717546463,
0.16960786283016205,
2.0543954372406006,
-0.35410693287849426,
-1.0594667196273804,
1.1462159156799316,
-2.4774303436279297,
0.07971534878015518,
1.9722065925598145,
0.314993292093277,
0.0731285884976387,
-1.456971287727356,
-0.6561517119407654,
-0.3518124222755432,
-0.37924742698669434,
-1.269594430923462,
0.5685725808143616,
-0.29301172494888306,
-0.7946924567222595,
-1.4796875715255737,
0.17785508930683136,
-1.1426576375961304,
-1.6728785037994385,
0.3062591254711151,
1.8911659717559814,
2.0572268962860107,
-0.7131853103637695,
1.5948103666305542,
-0.2521437704563141,
0.11809820681810379,
1.3545165061950684,
1.200063705444336,
3.1405510902404785,
1.8580509424209595,
-1.178463101387024,
0.6686469912528992,
-0.16426701843738556,
-0.5064427256584167,
1.159879207611084,
-1.136173129081726,
1.2222795486450195,
-0.0719476193189621,
-1.2354549169540405,
-1.2732760906219482,
0.996105432510376,
0.44189730286598206,
0.1106337234377861,
-0.5241314768791199,
1.3269104957580566,
0.0912448912858963,
1.3471248149871826,
0.5212415456771851,
-0.2241978794336319,
0.5584447383880615,
-0.3737654685974121,
-0.43827682733535767,
1.556833028793335,
0.20203818380832672,
-1.5215426683425903,
-2.32649302482605,
-0.1740027219057083,
-0.8124393820762634,
-0.036624182015657425,
-0.6312061548233032,
-1.1009050607681274,
1.7417312860488892,
0.48414018750190735,
-1.233954668045044,
-0.31825166940689087,
-0.37262552976608276,
-0.6977480053901672,
2.700639486312866,
-1.4202443361282349,
-0.3312530219554901,
-1.0043648481369019,
-0.49628910422325134,
1.6127970218658447,
-1.288802146911621,
-0.15850761532783508,
-1.0062626600265503,
-0.5796244740486145,
-1.2655119895935059,
-0.5669873952865601,
0.0009429212659597397,
-1.0487970113754272,
0.7704691886901855,
0.20185983180999756,
-1.0402461290359497,
-0.2534802258014679,
-0.8039160370826721,
0.8242782950401306,
-0.05614514276385307,
0.33800840377807617,
1.8690990209579468,
0.48848047852516174,
-0.4249725043773651,
0.715540885925293,
1.2006169557571411,
0.6482887268066406,
-0.6276146769523621,
0.21083185076713562,
-0.6422556042671204,
0.36927011609077454,
-1.2203720808029175,
0.26472678780555725,
-2.950622081756592,
0.6132746338844299,
-0.11696165055036545,
-0.11345445364713669,
0.00482152309268713,
-1.2514721155166626,
1.1253972053527832,
2.6684231758117676,
-1.1367645263671875,
0.4878959059715271,
0.2612287402153015,
1.2758387327194214,
-1.5615066289901733,
0.3893895447254181,
-0.3922254741191864,
2.0305683612823486,
0.16855214536190033,
1.1881494522094727,
-0.445732444524765,
-2.321153402328491,
0.7463962435722351,
-1.2595317363739014,
-1.1718961000442505,
0.6948992013931274,
-0.8120500445365906,
0.07919520139694214,
-1.3866912126541138,
-0.09601599723100662,
-0.8172346353530884,
-1.2153949737548828,
0.7669203877449036,
0.11035529524087906,
0.40049776434898376,
-0.5773829817771912,
0.36619260907173157,
-2.108661413192749,
-1.3375499248504639,
-0.1837889850139618,
-0.9325959086418152,
0.516656219959259,
-0.3302323520183563,
0.6920040249824524,
-0.22426460683345795,
0.10098575055599213,
0.3618849813938141,
1.4800679683685303,
3.376490592956543,
0.1765097826719284,
0.5430638790130615,
-0.16191606223583221,
-0.9238409996032715,
1.4161016941070557,
0.8669259548187256,
-0.06255103647708893,
-0.5909056067466736,
-0.9923704862594604,
1.3542076349258423,
1.8823561668395996,
0.8903291821479797,
0.20283401012420654,
-0.774564802646637,
-0.6766990423202515,
-0.0314965583384037,
0.3210071325302124,
0.38945937156677246,
0.8978409767150879,
0.03416299447417259,
-0.01292932778596878,
1.3969697952270508,
1.293091058731079,
-0.561994194984436,
0.3809889853000641,
-0.8897340297698975,
-0.4828628897666931,
0.509400486946106,
0.2722243368625641,
-0.02623603120446205,
0.3481152355670929,
-0.9260562062263489,
-0.29628124833106995,
-0.26881036162376404,
-0.9343647956848145,
-0.7765972018241882,
-0.31416887044906616,
-0.38054582476615906,
1.6885697841644287,
0.08654437959194183,
-0.5233019590377808,
-0.032225653529167175,
-0.8605902194976807,
-0.1200500875711441,
-1.1038986444473267,
0.1841244101524353,
-0.08618534356355667,
-0.16145575046539307,
-0.030891846865415573,
1.9452643394470215,
-0.9611099362373352,
-2.1440176963806152,
0.28673815727233887,
0.2657182216644287,
-0.2520504891872406,
0.25412437319755554,
1.6743055582046509,
0.5762812495231628,
1.516782283782959,
1.2738505601882935,
0.9160642027854919,
-0.623027503490448,
-1.4065653085708618,
0.7229499816894531,
1.0160250663757324,
-1.3881555795669556,
0.8396353125572205,
0.011080591939389706,
-0.4676334261894226,
0.6422030925750732,
1.268140196800232,
0.4621334969997406,
-1.9243147373199463,
0.8040098547935486,
-0.8991547226905823,
0.8328667283058167,
0.7123973369598389,
0.6807898879051208,
0.28069254755973816,
0.7739786505699158,
-1.2577784061431885,
-1.2292251586914062,
-0.808296263217926,
-0.5974335074424744,
1.965490460395813,
-0.2972407937049866,
0.6370189189910889,
-0.17185044288635254,
-1.4058748483657837,
-0.08543725311756134,
0.6446707248687744,
0.2938254475593567,
-0.3756062984466553,
0.8453336954116821,
-0.7495526671409607,
-1.1050224304199219,
-1.5097687244415283,
-0.4565621316432953,
-0.9482079744338989,
-0.9195438623428345,
1.1215639114379883,
0.8375322818756104,
0.16811688244342804,
1.9196600914001465,
0.5794754028320312,
0.2863595485687256,
-2.6846699714660645,
0.8742443323135376,
0.1743304431438446,
-0.0951843410730362,
0.8919178247451782,
0.2946876883506775,
0.960259735584259,
-0.0004957402125000954,
0.42499181628227234,
-2.441645383834839,
2.3684113025665283,
-0.21947355568408966,
0.6944053173065186,
0.03759058564901352,
-0.17391113936901093,
1.1580264568328857,
0.5714306235313416,
0.5707145929336548,
-1.0438717603683472,
0.5723846554756165,
-0.6659000515937805,
1.4053055047988892,
0.8992185592651367,
-0.7548606991767883,
-0.07147891074419022,
1.3438838720321655,
0.510482668876648,
-0.5041927099227905,
-0.8619143962860107,
-0.965203046798706,
0.8530940413475037,
1.7504709959030151,
0.02292029932141304,
-0.050724614411592484,
0.722068190574646,
0.5890012979507446,
-1.2845059633255005,
0.09852638095617294,
-0.6934940218925476,
-0.7845024466514587,
1.6739182472229004,
2.0953805446624756,
-0.21387222409248352,
-0.21476563811302185,
-0.7037720084190369,
-1.2302218675613403,
0.7359524369239807,
-0.0824730396270752,
0.11017114669084549,
0.6327901482582092,
-0.6612656712532043,
1.0268877744674683,
0.9035400152206421,
0.9265132546424866,
0.19439494609832764,
0.42640432715415955,
0.3080025613307953,
-0.428900808095932,
-1.1597778797149658,
-0.2436324506998062,
-1.1696429252624512,
-2.6536953449249268,
0.397024005651474,
-0.3846889138221741,
-1.4549640417099,
-0.0028331619687378407,
-1.1229383945465088,
0.9663671851158142,
-0.5266793370246887,
-1.057046890258789,
-1.5146403312683105,
0.16315260529518127,
-0.0813545361161232,
1.0243866443634033,
-1.582274079322815,
-0.08190132677555084,
1.2907382249832153,
0.9170203804969788,
-0.6325728297233582,
0.951447606086731,
0.2411791980266571,
1.1532846689224243,
0.8153609037399292,
-0.43010133504867554,
0.47414982318878174,
-0.05598118528723717,
-1.3480110168457031,
0.44665852189064026,
1.1600431203842163,
0.12222818285226822,
1.5027943849563599,
-0.4557587802410126,
-0.017182428389787674,
0.3801887333393097,
-0.5836362838745117,
-0.4788382649421692,
-0.5054745674133301,
0.713769257068634,
0.07835932821035385,
-0.9404029250144958,
-0.05688738077878952,
-0.0005096336826682091,
-0.30475252866744995,
0.15384799242019653,
-1.5393189191818237,
-0.264223575592041,
-0.4213354289531708,
-0.5890505313873291,
-1.3260838985443115,
0.0404297299683094,
1.2276285886764526,
-0.7007098197937012,
-0.16385173797607422,
0.35161590576171875,
0.3557319939136505,
0.47244423627853394,
0.6718645691871643,
-0.6894702911376953,
-0.48752832412719727,
-0.2712406814098358,
-0.35577794909477234,
0.2598435878753662,
1.2586597204208374,
-0.25559890270233154,
-0.9398856163024902,
0.644454836845398,
-0.31460148096084595,
0.06297872960567474,
1.883329153060913,
0.09039943665266037,
-0.8684921264648438,
0.3152804970741272,
-0.6329725980758667,
1.9370927810668945,
1.6318711042404175,
1.3046352863311768,
-0.11181335896253586,
-0.8969626426696777,
0.62735515832901,
-0.2774280309677124,
-0.32634708285331726,
0.8243610262870789,
0.49267148971557617,
-0.2178981900215149,
-1.4260095357894897,
0.5884195566177368,
1.1931638717651367,
-0.8195019364356995,
-0.8515897393226624,
0.08034628629684448,
-0.7972966432571411,
1.0527315139770508,
0.7455870509147644,
0.4558574855327606,
0.30332157015800476,
1.5748209953308105,
0.7584453225135803,
-0.6072208285331726,
0.5429080724716187,
0.46627527475357056,
-0.061563484370708466,
-2.0880420207977295,
-0.982799768447876,
0.23795463144779205,
-0.4877317249774933,
-1.5606428384780884,
1.3965872526168823,
-1.06494140625,
-0.8426597714424133,
0.5231884121894836,
0.1734636425971985,
1.421236515045166,
0.2866394817829132,
1.534783124923706,
1.9544843435287476,
0.7545021772384644,
0.2518514096736908,
1.2652647495269775,
-0.09096059948205948,
-0.4147788882255554,
1.838293194770813,
-0.4108332693576813,
0.4745785593986511,
1.138484001159668,
-0.29622122645378113,
-1.0171533823013306,
-0.7503054738044739,
-1.1216460466384888,
-0.7397830486297607,
1.1249115467071533,
0.1583595722913742,
-1.101603627204895,
0.18159377574920654,
1.4830453395843506,
0.033128105103969574,
-0.3372002840042114,
0.4082219898700714,
0.44191575050354004,
-0.7307420372962952,
-0.138593852519989,
-0.8591423630714417,
0.6049526929855347,
-0.12020311504602432,
-0.31472134590148926,
0.4448753595352173,
0.4373732805252075,
1.2758268117904663,
-0.09577125310897827,
0.15839627385139465,
1.1187554597854614,
-1.4874628782272339,
1.493059754371643,
-0.5501441955566406,
0.25157785415649414,
-2.343295097351074,
1.4306929111480713,
-0.7141130566596985,
1.966370701789856,
-2.686866521835327,
0.37625426054000854,
-0.5587358474731445,
-0.41912826895713806,
0.3027797043323517,
-0.37633851170539856,
0.19201305508613586,
-0.1950962096452713,
-1.0560033321380615,
-0.04228540509939194,
-0.7580296397209167,
0.5288966298103333,
1.109676480293274,
1.2769407033920288,
-1.0772809982299805,
-0.22537150979042053,
-1.6884151697158813,
-0.09143698960542679,
-0.786689817905426,
0.3758755624294281,
-2.085714340209961,
-0.24853330850601196,
-1.9943174123764038,
-2.296083688735962,
-1.3868861198425293,
-0.8164394497871399,
1.0794365406036377,
0.08051305264234543,
-0.8703854084014893,
1.1761399507522583,
-0.3552849590778351,
-1.8096466064453125,
0.9940156936645508,
-2.132408380508423
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | I think these two issues need to be fixed first on the Arrow side before adding the tensor feature type here: https://github.com/apache/arrow/issues/35573 and https://github.com/apache/arrow/issues/35599.
@rok We've had a couple of requests for supporting variable-shape tensors on the forum/GH, but I did not manage to find the concrete issues using the search. TF/TFDS (and PyTorch with the `nested_tensor` API) support them, so it makes sense for us to do the same eventually (the Ray project has an [extension](https://github.com/ray-project/ray/blob/42a8d1489b37243f203120899a23d919dc85bf2a/python/ray/air/util/tensor_extensions/arrow.py#L634) type to support this case) | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 82 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
I think these two issues need to be fixed first on the Arrow side before adding the tensor feature type here: https://github.com/apache/arrow/issues/35573 and https://github.com/apache/arrow/issues/35599.
@rok We've had a couple of requests for supporting variable-shape tensors on the forum/GH, but I did not manage to find the concrete issues using the search. TF/TFDS (and PyTorch with the `nested_tensor` API) support them, so it makes sense for us to do the same eventually (the Ray project has an [extension](https://github.com/ray-project/ray/blob/42a8d1489b37243f203120899a23d919dc85bf2a/python/ray/air/util/tensor_extensions/arrow.py#L634) type to support this case) | [
-1.242809534072876,
-0.8941860198974609,
-0.8214192390441895,
1.4933303594589233,
-0.07892344892024994,
-1.2114989757537842,
0.03045007400214672,
-1.0318002700805664,
1.6215815544128418,
-0.6636566519737244,
0.2455071657896042,
-1.6365723609924316,
0.05044537037611008,
-0.5615926384925842,
-0.8018316626548767,
-0.8233581185340881,
-0.3372950255870819,
-0.7979567646980286,
0.9948103427886963,
2.534395456314087,
1.238776683807373,
-1.4100106954574585,
2.7416019439697266,
0.7239121198654175,
-0.21827197074890137,
-1.0095031261444092,
0.5538813471794128,
0.02464917115867138,
-1.225185513496399,
-0.5288532972335815,
-0.9252831935882568,
-0.028880152851343155,
-0.43967878818511963,
-0.4856370985507965,
0.005276843905448914,
0.38204893469810486,
-0.22993238270282745,
-0.2925717830657959,
-0.5770657062530518,
-0.749282717704773,
0.444766104221344,
-0.3678785562515259,
0.9304456114768982,
-0.25430533289909363,
1.807465672492981,
-0.5396877527236938,
0.372018039226532,
0.6681013107299805,
1.3658699989318848,
0.180415540933609,
-0.03358900174498558,
0.38942116498947144,
0.39240825176239014,
-0.008679577149450779,
0.5005667209625244,
1.2656006813049316,
0.7240114808082581,
0.49723580479621887,
0.7373061180114746,
-2.1887547969818115,
1.3600192070007324,
-0.99000084400177,
0.2604668438434601,
1.3837778568267822,
-0.932698667049408,
0.4116525650024414,
-1.816119909286499,
-0.10224978625774384,
0.5149980187416077,
-2.376098394393921,
0.25353628396987915,
-1.2771756649017334,
-0.5800517201423645,
0.9613295197486877,
0.2688950300216675,
-1.3032852411270142,
0.10770688205957413,
-0.516253650188446,
1.1124104261398315,
0.536422073841095,
1.1327557563781738,
-1.6203325986862183,
0.007889943197369576,
-0.19687111675739288,
0.07388734072446823,
-1.3282884359359741,
-1.5809991359710693,
0.4892485737800598,
0.6682649254798889,
0.5973268151283264,
-0.0038297902792692184,
0.9624541401863098,
-1.038988709449768,
0.8353674411773682,
-0.8740330338478088,
-1.6361466646194458,
-1.4119532108306885,
-2.3034446239471436,
-2.2465617656707764,
0.8445166945457458,
-0.5108396410942078,
-0.5298290848731995,
2.0370590686798096,
-0.9955505132675171,
-1.8051754236221313,
1.1043486595153809,
0.3468453884124756,
0.020763210952281952,
2.450655937194824,
0.20264795422554016,
-0.7350103259086609,
0.34645944833755493,
-0.6930381059646606,
0.8215099573135376,
-0.4838443994522095,
1.320369005203247,
0.5514612793922424,
-0.9921098947525024,
1.7025861740112305,
-0.36314719915390015,
0.49640223383903503,
-0.7551632523536682,
-0.49714601039886475,
-0.7735010385513306,
0.35233259201049805,
1.9167627096176147,
-0.4444899260997772,
1.562735676765442,
-0.32741138339042664,
-1.5162880420684814,
-1.5989415645599365,
0.8581658005714417,
0.4974021017551422,
-0.8821355104446411,
0.1316279172897339,
-0.4404570758342743,
0.11368820071220398,
-0.03253836929798126,
1.107664704322815,
1.2418948411941528,
0.6341692209243774,
-0.2730942666530609,
-0.828801155090332,
0.19759970903396606,
-0.10699565708637238,
-0.6305121183395386,
-1.8075861930847168,
-0.3266027867794037,
0.2052919566631317,
0.6365707516670227,
-1.2991951704025269,
1.7574480772018433,
0.8085424304008484,
1.9555779695510864,
0.9932609796524048,
-0.37618160247802734,
1.5096715688705444,
0.03700784593820572,
1.8286665678024292,
-0.520656406879425,
0.6331409215927124,
-0.32177814841270447,
-1.164153814315796,
0.8675620555877686,
-0.36507701873779297,
-1.9979052543640137,
-0.7283928990364075,
-0.8482540249824524,
-0.19654038548469543,
-0.8096785545349121,
0.8821290731430054,
-0.2598680257797241,
-1.3381669521331787,
0.2075185775756836,
-0.7420331239700317,
0.10549765080213547,
-1.2959128618240356,
0.26856327056884766,
0.79915851354599,
-0.6145750284194946,
0.03675082325935364,
-0.24916009604930878,
-1.31795072555542,
-0.483047217130661,
0.32366982102394104,
2.007553815841675,
-0.6772308945655823,
0.8843087553977966,
1.0471330881118774,
-0.7605812549591064,
0.031213199719786644,
0.36518123745918274,
-0.3282097280025482,
0.8900439143180847,
-1.0985736846923828,
-0.4210264980792999,
1.093718409538269,
-0.15619975328445435,
-0.6442399024963379,
1.4020437002182007,
0.8677359819412231,
-0.9855573177337646,
-0.2984384298324585,
-0.17178986966609955,
-0.8090077638626099,
0.036644645035266876,
-1.546981930732727,
-0.2046150267124176,
0.3484300971031189,
-1.5201224088668823,
-0.44025880098342896,
-0.16329051554203033,
1.352344036102295,
-0.2361726015806198,
1.5439324378967285,
-0.3040904700756073,
-0.14643755555152893,
-0.2898874580860138,
-0.45384931564331055,
0.11408229917287827,
-0.2105620801448822,
-0.5975493788719177,
0.22374002635478973,
-0.7398704290390015,
0.3349702060222626,
1.4544333219528198,
0.4123763144016266,
0.062316641211509705,
0.5318304300308228,
1.0988281965255737,
0.39826253056526184,
-0.06450323760509491,
-0.9002381563186646,
-1.5881861448287964,
2.0234928131103516,
-1.4237200021743774,
1.968363642692566,
0.8437593579292297,
-0.017322896048426628,
-1.805958867073059,
-1.8891429901123047,
1.3884215354919434,
1.1556365489959717,
2.345881938934326,
0.6348843574523926,
0.45740315318107605,
-0.75360506772995,
-0.6982407569885254,
0.36443233489990234,
-1.0261400938034058,
-0.7195714712142944,
0.10068637877702713,
2.3643102645874023,
1.7753267288208008,
-0.4873318076133728,
-0.2931697368621826,
-0.9979228973388672,
1.317834496498108,
-0.20686396956443787,
0.18246017396450043,
1.966745138168335,
-0.24338693916797638,
-0.9995623230934143,
1.2142938375473022,
-2.4076762199401855,
0.18816423416137695,
1.990150809288025,
0.314530611038208,
0.0682917907834053,
-1.4526032209396362,
-0.5870169401168823,
-0.30387943983078003,
-0.43910685181617737,
-1.200904130935669,
0.5281983613967896,
-0.2282138466835022,
-0.8394566178321838,
-1.4402295351028442,
0.10356609523296356,
-1.1609997749328613,
-1.709907054901123,
0.28644031286239624,
1.9304085969924927,
2.0121443271636963,
-0.7978768348693848,
1.4870343208312988,
-0.2654021978378296,
0.06604451686143875,
1.2754536867141724,
1.2748945951461792,
3.1248183250427246,
1.8238333463668823,
-1.2429386377334595,
0.686043381690979,
-0.19103817641735077,
-0.49322742223739624,
1.149261236190796,
-1.156830906867981,
1.1621077060699463,
-0.1368817538022995,
-1.2409082651138306,
-1.1890041828155518,
1.0364501476287842,
0.48587048053741455,
0.08532243221998215,
-0.5387845635414124,
1.235495686531067,
0.09350711852312088,
1.274224042892456,
0.5792568922042847,
-0.37973254919052124,
0.5651503801345825,
-0.3321404457092285,
-0.5399311780929565,
1.560408353805542,
0.13187859952449799,
-1.4678276777267456,
-2.353255033493042,
-0.14336225390434265,
-0.8705286979675293,
-0.016106169670820236,
-0.6651078462600708,
-1.0644049644470215,
1.6648646593093872,
0.4831431210041046,
-1.2024568319320679,
-0.31759846210479736,
-0.3819630444049835,
-0.62702876329422,
2.626877784729004,
-1.4180394411087036,
-0.26341724395751953,
-1.009216547012329,
-0.48862412571907043,
1.5869890451431274,
-1.197199821472168,
-0.21793343126773834,
-0.9673994779586792,
-0.634739100933075,
-1.3040930032730103,
-0.6093215346336365,
-0.03015318140387535,
-0.8947930335998535,
0.694142758846283,
0.12323158979415894,
-1.0519517660140991,
-0.2485695481300354,
-0.8195232152938843,
0.8962509036064148,
-0.11814694106578827,
0.23818814754486084,
1.8944857120513916,
0.4536518454551697,
-0.38271385431289673,
0.7479436993598938,
1.1655657291412354,
0.6019380688667297,
-0.5982404947280884,
0.17310327291488647,
-0.6497464179992676,
0.34085699915885925,
-1.3557082414627075,
0.2606261074542999,
-2.916529655456543,
0.6388939619064331,
-0.12617479264736176,
-0.0747172012925148,
-0.03104948066174984,
-1.25153386592865,
1.1320183277130127,
2.656752109527588,
-1.1530762910842896,
0.44608137011528015,
0.3486349284648895,
1.2027190923690796,
-1.5989030599594116,
0.3015042543411255,
-0.4207627773284912,
2.0920610427856445,
0.1998526006937027,
1.2636568546295166,
-0.47637805342674255,
-2.2570619583129883,
0.631500244140625,
-1.2013919353485107,
-1.091064214706421,
0.7449373602867126,
-0.7802071571350098,
0.13577239215373993,
-1.4350063800811768,
-0.20428816974163055,
-0.8498015999794006,
-1.2440130710601807,
0.7589149475097656,
0.04997602850198746,
0.43911731243133545,
-0.5819646716117859,
0.3702884316444397,
-2.0981626510620117,
-1.3070716857910156,
-0.14680969715118408,
-0.9859607219696045,
0.5456048250198364,
-0.3057680130004883,
0.6093150973320007,
-0.12739312648773193,
0.07812579721212387,
0.2633974850177765,
1.406367540359497,
3.3869543075561523,
0.22975902259349823,
0.4178158938884735,
-0.15623709559440613,
-0.9353809356689453,
1.4174250364303589,
0.9535483121871948,
-0.12160064280033112,
-0.602632999420166,
-0.9650810956954956,
1.3791680335998535,
1.9670464992523193,
1.0051236152648926,
0.13890592753887177,
-0.8139873743057251,
-0.799323558807373,
0.002968890592455864,
0.23849815130233765,
0.4052612781524658,
0.9293177723884583,
0.016823966056108475,
0.06815486401319504,
1.3612855672836304,
1.3048045635223389,
-0.5186104774475098,
0.43185675144195557,
-0.9270166754722595,
-0.40871137380599976,
0.391383558511734,
0.27558910846710205,
0.005474169738590717,
0.40979859232902527,
-1.0620158910751343,
-0.28668636083602905,
-0.3667435348033905,
-0.9387680888175964,
-0.7558171153068542,
-0.28859418630599976,
-0.33369913697242737,
1.6588155031204224,
0.10529245436191559,
-0.4657710790634155,
0.027876531705260277,
-0.8114362359046936,
-0.11658453941345215,
-1.0565420389175415,
0.21444930136203766,
-0.08825819194316864,
-0.08645663410425186,
-0.09546197205781937,
1.7865971326828003,
-0.9315725564956665,
-2.1649014949798584,
0.237528994679451,
0.24047240614891052,
-0.3691104054450989,
0.2538315951824188,
1.734053611755371,
0.49824193120002747,
1.461234450340271,
1.3276464939117432,
0.9629278779029846,
-0.6760900616645813,
-1.252571940422058,
0.7245943546295166,
0.9982048273086548,
-1.365538239479065,
0.8189321756362915,
-0.07774624228477478,
-0.505957305431366,
0.6583123207092285,
1.3195596933364868,
0.4043612778186798,
-2.0241026878356934,
0.8445669412612915,
-0.8997401595115662,
0.7070352435112,
0.5982159376144409,
0.7122876644134521,
0.3114238679409027,
0.8147543668746948,
-1.2996163368225098,
-1.1986007690429688,
-0.7623835206031799,
-0.6038553714752197,
1.9289696216583252,
-0.2270289808511734,
0.5293177962303162,
-0.08316946029663086,
-1.3764188289642334,
-0.16091154515743256,
0.7105638980865479,
0.3105257749557495,
-0.4403887093067169,
0.9002469182014465,
-0.6477906107902527,
-1.0569517612457275,
-1.4114348888397217,
-0.49666568636894226,
-0.917180597782135,
-0.9046116471290588,
0.9578747749328613,
0.8235087394714355,
0.24316592514514923,
1.9640682935714722,
0.5377830266952515,
0.2990763485431671,
-2.6817774772644043,
0.936072826385498,
0.2925930917263031,
-0.06445790827274323,
0.9631211161613464,
0.28579339385032654,
1.0278120040893555,
-0.019115395843982697,
0.48557671904563904,
-2.3867743015289307,
2.238542079925537,
-0.16077786684036255,
0.7219578623771667,
0.03327082097530365,
-0.24422647058963776,
1.1402184963226318,
0.5522576570510864,
0.614124059677124,
-1.1409417390823364,
0.6739317178726196,
-0.668164849281311,
1.2014575004577637,
0.8892461061477661,
-0.8524300456047058,
-0.013039730489253998,
1.370392084121704,
0.44849371910095215,
-0.42150193452835083,
-0.8788726329803467,
-0.9048055410385132,
0.9162342548370361,
1.7404789924621582,
0.019231576472520828,
0.048483043909072876,
0.8012077808380127,
0.6238877773284912,
-1.3171895742416382,
0.11641380190849304,
-0.695887565612793,
-0.7489275932312012,
1.6802864074707031,
2.0170063972473145,
-0.1845182329416275,
-0.2650452256202698,
-0.6849886178970337,
-1.2948427200317383,
0.6923128366470337,
-0.10611852258443832,
0.1744038611650467,
0.690069854259491,
-0.7362558245658875,
1.1447757482528687,
0.8133766651153564,
0.9519968628883362,
0.03775542974472046,
0.3257361948490143,
0.3208441734313965,
-0.40784382820129395,
-1.1624678373336792,
-0.3220856785774231,
-1.1410837173461914,
-2.5581982135772705,
0.442448228597641,
-0.2979849576950073,
-1.461584448814392,
0.059808507561683655,
-1.072595477104187,
0.9082689881324768,
-0.5804340243339539,
-1.1128895282745361,
-1.4534835815429688,
0.28272154927253723,
-0.1964116096496582,
0.943279504776001,
-1.583244800567627,
-0.17226675152778625,
1.2765007019042969,
0.895852267742157,
-0.5938020944595337,
1.0061017274856567,
0.2147822231054306,
1.0652797222137451,
0.8224895596504211,
-0.4110807180404663,
0.4710729718208313,
0.05641964077949524,
-1.3897384405136108,
0.4528166949748993,
1.1964929103851318,
0.1865472048521042,
1.4955151081085205,
-0.47127601504325867,
0.00655412208288908,
0.4163004457950592,
-0.5989171266555786,
-0.5194040536880493,
-0.48024943470954895,
0.6935708522796631,
0.006192383356392384,
-1.0416889190673828,
-0.05020027607679367,
-0.05038682371377945,
-0.27079445123672485,
0.16003243625164032,
-1.5492640733718872,
-0.29676130414009094,
-0.33691927790641785,
-0.5495238900184631,
-1.2695156335830688,
0.0787537693977356,
1.2505520582199097,
-0.8273817896842957,
-0.24536463618278503,
0.49180302023887634,
0.43005090951919556,
0.45685699582099915,
0.5785880088806152,
-0.6436410546302795,
-0.43819114565849304,
-0.24917490780353546,
-0.36662760376930237,
0.3094489872455597,
1.2258456945419312,
-0.16398219764232635,
-0.9708187580108643,
0.6615428328514099,
-0.41357317566871643,
0.057442642748355865,
1.9045523405075073,
0.04896803945302963,
-0.7854172587394714,
0.33137819170951843,
-0.6071548461914062,
1.8897958993911743,
1.6739013195037842,
1.3177074193954468,
-0.12147364765405655,
-0.8434666395187378,
0.6368862986564636,
-0.2825008034706116,
-0.2717370092868805,
0.9305959343910217,
0.47010838985443115,
-0.18704432249069214,
-1.459802508354187,
0.4958423674106598,
1.2451573610305786,
-0.9312366247177124,
-0.7636489272117615,
0.03322761505842209,
-0.8346214890480042,
1.1216742992401123,
0.7144866585731506,
0.2890782654285431,
0.2058972418308258,
1.5707260370254517,
0.7368831634521484,
-0.5124552249908447,
0.5306568741798401,
0.49912741780281067,
-0.14383938908576965,
-2.127582311630249,
-0.9658665657043457,
0.23119287192821503,
-0.3603074252605438,
-1.5542491674423218,
1.3481061458587646,
-1.0884336233139038,
-0.8980067372322083,
0.45003625750541687,
0.15734925866127014,
1.351614236831665,
0.2507663667201996,
1.639077067375183,
2.0700058937072754,
0.7974564433097839,
0.23148475587368011,
1.2285032272338867,
-0.06857401877641678,
-0.38366636633872986,
1.8217817544937134,
-0.46308431029319763,
0.5433628559112549,
1.070906400680542,
-0.3905809819698334,
-1.0872656106948853,
-0.7464703321456909,
-1.2139989137649536,
-0.7308189868927002,
1.22194242477417,
0.12560293078422546,
-1.0454500913619995,
0.20311124622821808,
1.5674546957015991,
0.1132035180926323,
-0.2998948097229004,
0.5338523983955383,
0.501350998878479,
-0.6989335417747498,
-0.10049601644277573,
-0.852411150932312,
0.5771009922027588,
-0.07759514451026917,
-0.31189480423927307,
0.33872368931770325,
0.469668447971344,
1.2571009397506714,
-0.01944754458963871,
0.12368424236774445,
1.1429225206375122,
-1.4154250621795654,
1.6171283721923828,
-0.6221616864204407,
0.2629269063472748,
-2.3960940837860107,
1.4378435611724854,
-0.7384746074676514,
1.9470396041870117,
-2.5707876682281494,
0.4013083279132843,
-0.5953843593597412,
-0.39144429564476013,
0.3113199472427368,
-0.409112811088562,
0.14489226043224335,
-0.17761091887950897,
-0.996103048324585,
-0.14988814294338226,
-0.7252673506736755,
0.568234920501709,
1.1856485605239868,
1.34138023853302,
-1.1255253553390503,
-0.22932615876197815,
-1.7659426927566528,
-0.08453845977783203,
-0.7073479294776917,
0.36603814363479614,
-2.004861354827881,
-0.171365886926651,
-2.0052075386047363,
-2.3496897220611572,
-1.4197824001312256,
-0.8184022307395935,
1.0292587280273438,
0.10557243227958679,
-0.9250141978263855,
1.1675817966461182,
-0.4041822552680969,
-1.7913455963134766,
1.0775831937789917,
-2.1666877269744873
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | > @rok We've had a couple of requests for supporting variable-shape tensors on the forum/GH, but I did not manage to find the concrete issues using the search. TF/TFDS (and PyTorch with the `nested_tensor` API) support them, so it makes sense for us to do the same eventually (the Ray project has an [extension](https://github.com/ray-project/ray/blob/42a8d1489b37243f203120899a23d919dc85bf2a/python/ray/air/util/tensor_extensions/arrow.py#L634) type to support this case)
That does make sense indeed. We should probably also be careful about memory layout to enable zero-copy interface to TF/PyTorch. | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 79 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
> @rok We've had a couple of requests for supporting variable-shape tensors on the forum/GH, but I did not manage to find the concrete issues using the search. TF/TFDS (and PyTorch with the `nested_tensor` API) support them, so it makes sense for us to do the same eventually (the Ray project has an [extension](https://github.com/ray-project/ray/blob/42a8d1489b37243f203120899a23d919dc85bf2a/python/ray/air/util/tensor_extensions/arrow.py#L634) type to support this case)
That does make sense indeed. We should probably also be careful about memory layout to enable zero-copy interface to TF/PyTorch. | [
-1.2489198446273804,
-0.8851757049560547,
-0.8072120547294617,
1.5038992166519165,
-0.09859387576580048,
-1.1747244596481323,
0.04526480287313461,
-1.0500566959381104,
1.617171287536621,
-0.6993175148963928,
0.2473825067281723,
-1.6311113834381104,
0.08085696399211884,
-0.5594146251678467,
-0.7755758762359619,
-0.8538268208503723,
-0.3697737157344818,
-0.7827185988426208,
1.0214139223098755,
2.5692718029022217,
1.2500808238983154,
-1.4052400588989258,
2.745945692062378,
0.7020106911659241,
-0.18637414276599884,
-0.9996552467346191,
0.5187284350395203,
0.04674138128757477,
-1.253825306892395,
-0.5591611266136169,
-0.9156501293182373,
-0.05443067103624344,
-0.457776814699173,
-0.4763053059577942,
0.003989235498011112,
0.3626915216445923,
-0.22627957165241241,
-0.31828463077545166,
-0.5708006024360657,
-0.7518420219421387,
0.4117988049983978,
-0.39344102144241333,
0.9032712578773499,
-0.29603031277656555,
1.8282747268676758,
-0.5320820808410645,
0.37355414032936096,
0.6805790066719055,
1.385047435760498,
0.1778644174337387,
-0.03799164295196533,
0.41664478182792664,
0.376085489988327,
-0.04978162795305252,
0.5257337093353271,
1.2121585607528687,
0.6924100518226624,
0.4756503701210022,
0.7185429334640503,
-2.177424669265747,
1.3475892543792725,
-1.044168472290039,
0.24756543338298798,
1.4081510305404663,
-0.9397310018539429,
0.4200391173362732,
-1.79619300365448,
-0.10259415209293365,
0.49029541015625,
-2.348928213119507,
0.2484351545572281,
-1.2438191175460815,
-0.5741475820541382,
0.9866421818733215,
0.269280344247818,
-1.3389503955841064,
0.09553651511669159,
-0.5062078833580017,
1.1111940145492554,
0.49028676748275757,
1.1307467222213745,
-1.6550549268722534,
0.005473446100950241,
-0.24034659564495087,
0.07905784994363785,
-1.3306963443756104,
-1.5796799659729004,
0.48569580912590027,
0.6905618906021118,
0.5930243134498596,
0.03952261060476303,
0.9583244919776917,
-1.072975754737854,
0.8348509669303894,
-0.8858588337898254,
-1.636239767074585,
-1.4141108989715576,
-2.318638563156128,
-2.2420966625213623,
0.8435423374176025,
-0.4810353219509125,
-0.5838764905929565,
2.0617916584014893,
-1.0003395080566406,
-1.7941092252731323,
1.1591062545776367,
0.3327925503253937,
-0.01640477031469345,
2.487947940826416,
0.1984446495771408,
-0.728493869304657,
0.35267606377601624,
-0.7008535265922546,
0.864300549030304,
-0.5228138566017151,
1.3265380859375,
0.5139921307563782,
-0.9968454837799072,
1.6682261228561401,
-0.34367111325263977,
0.5326297879219055,
-0.7478511929512024,
-0.5034496188163757,
-0.7744117379188538,
0.3552580177783966,
1.9380466938018799,
-0.37962648272514343,
1.5537676811218262,
-0.3111811876296997,
-1.5167946815490723,
-1.5984790325164795,
0.8861417174339294,
0.4936425983905792,
-0.83208829164505,
0.14504195749759674,
-0.3886902630329132,
0.15783585608005524,
-0.012537205591797829,
1.1055116653442383,
1.2485039234161377,
0.6144708395004272,
-0.26724931597709656,
-0.8391873836517334,
0.1915246993303299,
-0.12197352200746536,
-0.6524395942687988,
-1.7767419815063477,
-0.32195624709129333,
0.12456976622343063,
0.6403964757919312,
-1.3168314695358276,
1.7390965223312378,
0.8171958327293396,
1.9749400615692139,
1.01215660572052,
-0.33198311924934387,
1.5448403358459473,
0.09992992877960205,
1.8023031949996948,
-0.5103563070297241,
0.6367915868759155,
-0.34675678610801697,
-1.1698169708251953,
0.8629340529441833,
-0.3695846199989319,
-2.018357515335083,
-0.734592080116272,
-0.8124114274978638,
-0.18342453241348267,
-0.8106549978256226,
0.8786349296569824,
-0.24575576186180115,
-1.332524061203003,
0.2531406283378601,
-0.7451668977737427,
0.10131023824214935,
-1.3180512189865112,
0.29747945070266724,
0.7809367775917053,
-0.6081910729408264,
0.02809944748878479,
-0.2656721770763397,
-1.343523621559143,
-0.4625832736492157,
0.28088808059692383,
1.9862958192825317,
-0.7108179330825806,
0.8939608335494995,
1.0643583536148071,
-0.734700083732605,
0.0027949605137109756,
0.36966672539711,
-0.3158978819847107,
0.8918017148971558,
-1.083383321762085,
-0.4337752163410187,
1.1403253078460693,
-0.16384609043598175,
-0.6398128271102905,
1.4104446172714233,
0.8584839701652527,
-0.980622410774231,
-0.2972373366355896,
-0.20093035697937012,
-0.8503380417823792,
0.028810881078243256,
-1.5946049690246582,
-0.19469237327575684,
0.34397265315055847,
-1.4928643703460693,
-0.44448474049568176,
-0.15234751999378204,
1.34380042552948,
-0.24863450229167938,
1.5463780164718628,
-0.3280427157878876,
-0.1181856170296669,
-0.29633331298828125,
-0.44933250546455383,
0.11366568505764008,
-0.21345604956150055,
-0.6038678288459778,
0.23806150257587433,
-0.7209939956665039,
0.3480376899242401,
1.43498694896698,
0.3889308571815491,
0.06976424157619476,
0.5195398926734924,
1.0597916841506958,
0.34370771050453186,
-0.058110713958740234,
-0.8867449760437012,
-1.5936537981033325,
2.0180697441101074,
-1.4147495031356812,
2.023083448410034,
0.8479081392288208,
-0.005919881165027618,
-1.753529667854309,
-1.8841105699539185,
1.4025808572769165,
1.189906120300293,
2.2795279026031494,
0.6319796442985535,
0.4255763590335846,
-0.7695663571357727,
-0.7223283052444458,
0.32930460572242737,
-1.0346148014068604,
-0.7276545166969299,
0.12410799413919449,
2.3507115840911865,
1.765852451324463,
-0.4859212040901184,
-0.23246368765830994,
-0.96950763463974,
1.3498858213424683,
-0.24729783833026886,
0.15747381746768951,
2.020228385925293,
-0.22568559646606445,
-1.0155607461929321,
1.2236965894699097,
-2.398590087890625,
0.16950814425945282,
1.9744943380355835,
0.3177165389060974,
0.06323684751987457,
-1.4479482173919678,
-0.6194502115249634,
-0.318691611289978,
-0.36008450388908386,
-1.23313570022583,
0.5392729640007019,
-0.2514362633228302,
-0.8214200139045715,
-1.464695692062378,
0.1209324523806572,
-1.1786856651306152,
-1.6792980432510376,
0.3231322467327118,
1.9137319326400757,
2.0024044513702393,
-0.7826119661331177,
1.5259606838226318,
-0.27101409435272217,
0.06837958097457886,
1.2390843629837036,
1.2399836778640747,
3.1234278678894043,
1.8450348377227783,
-1.2130910158157349,
0.6648504734039307,
-0.19544024765491486,
-0.48506125807762146,
1.1748989820480347,
-1.1410595178604126,
1.2041791677474976,
-0.091476209461689,
-1.2306679487228394,
-1.2214007377624512,
1.0336986780166626,
0.48569822311401367,
0.06858022511005402,
-0.5414527654647827,
1.2297300100326538,
0.0826248750090599,
1.307557463645935,
0.5401059985160828,
-0.33595898747444153,
0.5380066633224487,
-0.34016263484954834,
-0.5433328747749329,
1.5440605878829956,
0.12201281636953354,
-1.4743804931640625,
-2.3184287548065186,
-0.16974037885665894,
-0.8116047382354736,
0.0023207571357488632,
-0.6854574680328369,
-1.0623985528945923,
1.6883820295333862,
0.4793015122413635,
-1.2209906578063965,
-0.29777395725250244,
-0.37152621150016785,
-0.6504572629928589,
2.6475791931152344,
-1.417691707611084,
-0.26313287019729614,
-1.002806305885315,
-0.49195989966392517,
1.5544763803482056,
-1.2170767784118652,
-0.2107415646314621,
-0.9675650596618652,
-0.6003040075302124,
-1.2556363344192505,
-0.6233953833580017,
-0.019510803744196892,
-0.9358413815498352,
0.7186843156814575,
0.16313990950584412,
-1.0981515645980835,
-0.2894909083843231,
-0.8408017158508301,
0.8872528076171875,
-0.10460926592350006,
0.23506391048431396,
1.8389997482299805,
0.47373393177986145,
-0.3929974138736725,
0.7737642526626587,
1.1859114170074463,
0.6019542217254639,
-0.5851900577545166,
0.17664296925067902,
-0.6286624670028687,
0.3445483148097992,
-1.3140089511871338,
0.2885397970676422,
-2.8966214656829834,
0.631756067276001,
-0.07827302068471909,
-0.05632741376757622,
-0.01639649085700512,
-1.217820405960083,
1.1409107446670532,
2.654575824737549,
-1.1124213933944702,
0.462628036737442,
0.3564607501029968,
1.1896631717681885,
-1.5936726331710815,
0.3272395431995392,
-0.4021926820278168,
2.093351364135742,
0.18750515580177307,
1.2405437231063843,
-0.4751681685447693,
-2.2944157123565674,
0.605862021446228,
-1.2512273788452148,
-1.1188287734985352,
0.7317278385162354,
-0.8135045766830444,
0.10097846388816833,
-1.4233559370040894,
-0.20891720056533813,
-0.8289611339569092,
-1.2293967008590698,
0.759523868560791,
0.06073324382305145,
0.44621703028678894,
-0.5656932592391968,
0.37264034152030945,
-2.1403043270111084,
-1.3229165077209473,
-0.1541532427072525,
-0.9799454212188721,
0.5330991148948669,
-0.31600382924079895,
0.6233076453208923,
-0.15609131753444672,
0.06905356794595718,
0.2964605391025543,
1.4318013191223145,
3.397786855697632,
0.21914315223693848,
0.4439454674720764,
-0.16101905703544617,
-0.919740617275238,
1.4085005521774292,
0.9383203387260437,
-0.11484784632921219,
-0.5970704555511475,
-0.9734264612197876,
1.3769702911376953,
1.954791784286499,
0.989899218082428,
0.1084645465016365,
-0.8019368648529053,
-0.7829923629760742,
-0.05222748592495918,
0.21600563824176788,
0.4113563001155853,
0.9245863556861877,
0.0359015017747879,
0.0713747963309288,
1.384281873703003,
1.3039085865020752,
-0.5488384962081909,
0.4194942116737366,
-0.9107224941253662,
-0.4325081706047058,
0.40977075695991516,
0.2833907902240753,
-0.026200026273727417,
0.37793391942977905,
-0.9962446689605713,
-0.2958368957042694,
-0.3730871379375458,
-0.9209008812904358,
-0.7715005874633789,
-0.29846683144569397,
-0.34166228771209717,
1.6794012784957886,
0.11033641546964645,
-0.4595995843410492,
-0.0004266155883669853,
-0.8203349709510803,
-0.13463355600833893,
-1.040482759475708,
0.21785907447338104,
-0.10920272767543793,
-0.10269052535295486,
-0.10152950137853622,
1.831849455833435,
-0.962171733379364,
-2.143721342086792,
0.2077198624610901,
0.22754642367362976,
-0.3292199373245239,
0.20480579137802124,
1.732995629310608,
0.49857398867607117,
1.4731959104537964,
1.3002748489379883,
0.94847172498703,
-0.6829597353935242,
-1.3192209005355835,
0.7342353463172913,
0.9938185811042786,
-1.3688137531280518,
0.8163452744483948,
-0.04156993329524994,
-0.46652528643608093,
0.665235698223114,
1.3168509006500244,
0.46520915627479553,
-1.9753464460372925,
0.8350277543067932,
-0.9066295027732849,
0.7302336096763611,
0.6197171211242676,
0.6793172359466553,
0.289375901222229,
0.7993760704994202,
-1.2964988946914673,
-1.200637936592102,
-0.795227587223053,
-0.5979687571525574,
1.9316716194152832,
-0.2712912857532501,
0.5255035758018494,
-0.0915583074092865,
-1.4086166620254517,
-0.13004110753536224,
0.6819779276847839,
0.3310277760028839,
-0.4054516851902008,
0.8473683595657349,
-0.6771940588951111,
-1.0670863389968872,
-1.426405906677246,
-0.441184401512146,
-0.931943416595459,
-0.8986786603927612,
0.9977903962135315,
0.8282363414764404,
0.2055625319480896,
1.935060977935791,
0.5704312324523926,
0.2882694900035858,
-2.6826088428497314,
0.9360283613204956,
0.2670237720012665,
-0.10656468570232391,
0.919072151184082,
0.29935985803604126,
0.9939685463905334,
0.0010954290628433228,
0.4496903419494629,
-2.402268648147583,
2.272860288619995,
-0.20532993972301483,
0.7289587259292603,
0.03963292017579079,
-0.22399988770484924,
1.1229034662246704,
0.5696299076080322,
0.6108657121658325,
-1.1259113550186157,
0.6148662567138672,
-0.6553938388824463,
1.2344077825546265,
0.9318917393684387,
-0.8184258341789246,
-0.036229457706213,
1.3662203550338745,
0.40632134675979614,
-0.4631848931312561,
-0.9163346886634827,
-0.9096602201461792,
0.9062837958335876,
1.7345287799835205,
0.02993110939860344,
0.03411990404129028,
0.794670581817627,
0.6413293480873108,
-1.300908088684082,
0.11118131875991821,
-0.7191020250320435,
-0.8029613494873047,
1.6714743375778198,
2.047907590866089,
-0.1571808010339737,
-0.26896682381629944,
-0.6676754951477051,
-1.2602816820144653,
0.6968498826026917,
-0.10223310440778732,
0.17574192583560944,
0.6531403064727783,
-0.6898225545883179,
1.1287037134170532,
0.8589762449264526,
0.95332270860672,
0.06795565783977509,
0.3140387535095215,
0.3415631949901581,
-0.40618228912353516,
-1.1707897186279297,
-0.32822999358177185,
-1.141918659210205,
-2.590052604675293,
0.40962642431259155,
-0.29627105593681335,
-1.4500948190689087,
0.02643771469593048,
-1.0860246419906616,
0.9127450585365295,
-0.5640527606010437,
-1.1004664897918701,
-1.4802709817886353,
0.2505027949810028,
-0.167149156332016,
0.9408729672431946,
-1.5918165445327759,
-0.18059343099594116,
1.2593730688095093,
0.8998873233795166,
-0.5653076171875,
0.9925984740257263,
0.22439375519752502,
1.0670815706253052,
0.8260135054588318,
-0.4039691388607025,
0.49283674359321594,
0.06013382971286774,
-1.3417572975158691,
0.4650106728076935,
1.1782392263412476,
0.1653878092765808,
1.4820048809051514,
-0.4650789201259613,
0.0004956405609846115,
0.3783179223537445,
-0.5760058164596558,
-0.48567208647727966,
-0.49588605761528015,
0.7349907159805298,
0.0120944669470191,
-0.9932355880737305,
-0.054322611540555954,
-0.0734260082244873,
-0.2874397337436676,
0.17349645495414734,
-1.5571913719177246,
-0.25042447447776794,
-0.351929247379303,
-0.5450830459594727,
-1.315683364868164,
0.03933754190802574,
1.2840451002120972,
-0.8152146935462952,
-0.24713818728923798,
0.4728716313838959,
0.42032819986343384,
0.4889194965362549,
0.6206997632980347,
-0.6582945585250854,
-0.4314385652542114,
-0.27570387721061707,
-0.3610711097717285,
0.31346595287323,
1.246669888496399,
-0.16077585518360138,
-0.9399030208587646,
0.6492547392845154,
-0.3873816430568695,
0.06527972966432571,
1.9008573293685913,
0.08888988196849823,
-0.811578094959259,
0.3477795422077179,
-0.5946386456489563,
1.897716760635376,
1.693739414215088,
1.3203941583633423,
-0.12713998556137085,
-0.8747408986091614,
0.6745802760124207,
-0.3044847548007965,
-0.3388950824737549,
0.9048764705657959,
0.4679041802883148,
-0.19880886375904083,
-1.441773772239685,
0.5425341725349426,
1.256818413734436,
-0.8386819362640381,
-0.8307616114616394,
0.03023505210876465,
-0.8603358864784241,
1.0876327753067017,
0.7211008667945862,
0.3184686303138733,
0.22065746784210205,
1.5730477571487427,
0.7331240177154541,
-0.5413609743118286,
0.5092206597328186,
0.5276283621788025,
-0.1484256237745285,
-2.121443748474121,
-1.0025660991668701,
0.22617097198963165,
-0.39716270565986633,
-1.5652498006820679,
1.3779813051223755,
-1.0683811902999878,
-0.9002674221992493,
0.4752814471721649,
0.12542220950126648,
1.3588545322418213,
0.23353800177574158,
1.6022225618362427,
2.0647194385528564,
0.805355429649353,
0.2668689489364624,
1.2419495582580566,
-0.08269481360912323,
-0.39588749408721924,
1.8351653814315796,
-0.404901921749115,
0.5253841280937195,
1.1127831935882568,
-0.3777272403240204,
-1.0691018104553223,
-0.7623683214187622,
-1.1927311420440674,
-0.7312278151512146,
1.2047975063323975,
0.12861812114715576,
-1.0519894361495972,
0.1691991686820984,
1.5911026000976562,
0.1167435571551323,
-0.3410915732383728,
0.5129467248916626,
0.4898702800273895,
-0.7057029008865356,
-0.09333924204111099,
-0.8985241651535034,
0.557000458240509,
-0.08734343945980072,
-0.3272838294506073,
0.37263450026512146,
0.4382508099079132,
1.264112949371338,
-0.01678023487329483,
0.11609683185815811,
1.116715669631958,
-1.419089436531067,
1.5420736074447632,
-0.5948887467384338,
0.272286593914032,
-2.373582601547241,
1.4302408695220947,
-0.70482337474823,
1.9382808208465576,
-2.5680270195007324,
0.39625102281570435,
-0.6150766015052795,
-0.3686682879924774,
0.30139148235321045,
-0.40067020058631897,
0.164123073220253,
-0.13808098435401917,
-1.018705129623413,
-0.13660438358783722,
-0.7151066064834595,
0.5723201036453247,
1.1479194164276123,
1.3693126440048218,
-1.0800889730453491,
-0.22246187925338745,
-1.7307556867599487,
-0.07217773050069809,
-0.7088528871536255,
0.34124651551246643,
-2.007697582244873,
-0.2236032336950302,
-2.0047948360443115,
-2.330857992172241,
-1.4098749160766602,
-0.780967652797699,
1.0475109815597534,
0.12958593666553497,
-0.8931350708007812,
1.1786150932312012,
-0.4001418352127075,
-1.8115291595458984,
1.079405426979065,
-2.1284639835357666
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | Not with with the Arrow format, and therefore not in `datasets`. But they released a new [FixedShapeTensorArray](https://arrow.apache.org/docs/python/extending_types.html#fixed-size-tensor) to store tensors in Arrow format. We plan to support this in `datasets` at one point ! | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 34 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
Not with with the Arrow format, and therefore not in `datasets`. But they released a new [FixedShapeTensorArray](https://arrow.apache.org/docs/python/extending_types.html#fixed-size-tensor) to store tensors in Arrow format. We plan to support this in `datasets` at one point ! | [
-1.2541366815567017,
-0.8225389719009399,
-0.7896014451980591,
1.4339585304260254,
-0.12255171686410904,
-1.2411704063415527,
0.10955997556447983,
-1.12460458278656,
1.6916745901107788,
-0.7805758714675903,
0.25898730754852295,
-1.6747157573699951,
0.11477481573820114,
-0.5438895225524902,
-0.8189136385917664,
-0.8957001566886902,
-0.37547770142555237,
-0.736132800579071,
0.9683504700660706,
2.5842461585998535,
1.2195122241973877,
-1.41087007522583,
2.69417667388916,
0.7551057934761047,
-0.15330111980438232,
-0.978426992893219,
0.5253445506095886,
0.09755712002515793,
-1.262058138847351,
-0.4903028905391693,
-0.9249346852302551,
-0.1156015694141388,
-0.4374655783176422,
-0.5106595754623413,
0.018900152295827866,
0.3679872155189514,
-0.2545313239097595,
-0.34444698691368103,
-0.5406743288040161,
-0.7722837924957275,
0.3885129392147064,
-0.46417832374572754,
0.9442473649978638,
-0.3852497637271881,
1.8136481046676636,
-0.5628799200057983,
0.42584630846977234,
0.7004781365394592,
1.3577446937561035,
0.14839233458042145,
-0.038743313401937485,
0.385909765958786,
0.42031505703926086,
0.008681247942149639,
0.45975571870803833,
1.118316411972046,
0.671735942363739,
0.5191806554794312,
0.6976888179779053,
-2.1835238933563232,
1.3081382513046265,
-1.0328866243362427,
0.2829212546348572,
1.3942596912384033,
-0.9473844766616821,
0.3744884729385376,
-1.718235969543457,
-0.15552949905395508,
0.6001245975494385,
-2.309448480606079,
0.26601442694664,
-1.2678556442260742,
-0.5928827524185181,
0.9763042330741882,
0.3172280490398407,
-1.254794716835022,
0.06482914090156555,
-0.4307079613208771,
1.0805193185806274,
0.5371500849723816,
1.1011649370193481,
-1.6190563440322876,
0.06736800074577332,
-0.2787003219127655,
0.037992898374795914,
-1.3085514307022095,
-1.505140781402588,
0.5150659084320068,
0.6759280562400818,
0.6101694107055664,
-0.027104094624519348,
0.9440057277679443,
-1.057755470275879,
0.799342155456543,
-0.9383695125579834,
-1.7206579446792603,
-1.3869588375091553,
-2.342466354370117,
-2.246086359024048,
0.7791689038276672,
-0.46822863817214966,
-0.5550194978713989,
2.0794270038604736,
-0.9805977940559387,
-1.7696425914764404,
1.1285258531570435,
0.271435409784317,
0.008557728491723537,
2.456533193588257,
0.20578287541866302,
-0.6804012060165405,
0.3383459150791168,
-0.719266951084137,
0.7914659976959229,
-0.5956873297691345,
1.2776654958724976,
0.4792194664478302,
-1.0553323030471802,
1.6837760210037231,
-0.4202260971069336,
0.5297467708587646,
-0.7659499645233154,
-0.48229992389678955,
-0.7707458734512329,
0.370495468378067,
1.8754810094833374,
-0.36882296204566956,
1.5162912607192993,
-0.2994082272052765,
-1.4810980558395386,
-1.660196304321289,
0.8187004923820496,
0.4395897388458252,
-0.7632763981819153,
0.1411229372024536,
-0.3336951434612274,
0.13745808601379395,
-0.0987730398774147,
1.1329419612884521,
1.1997277736663818,
0.6938786506652832,
-0.26281416416168213,
-0.8260094523429871,
0.26853591203689575,
-0.05823085084557533,
-0.6970987915992737,
-1.7558614015579224,
-0.29873305559158325,
0.1166251078248024,
0.5988816022872925,
-1.2420564889907837,
1.7872997522354126,
0.8147948384284973,
1.9253112077713013,
0.9925196170806885,
-0.2991887927055359,
1.5386942625045776,
0.07223185151815414,
1.861701250076294,
-0.4706384241580963,
0.6621830463409424,
-0.2909862995147705,
-1.161347508430481,
0.8432645201683044,
-0.3879961669445038,
-2.030871629714966,
-0.7199954390525818,
-0.8747484087944031,
-0.19246812164783478,
-0.8333669304847717,
0.9394837021827698,
-0.20180849730968475,
-1.3279551267623901,
0.27018338441848755,
-0.7268689274787903,
0.10276683419942856,
-1.2745407819747925,
0.3649052381515503,
0.7613614797592163,
-0.5693552494049072,
0.02339361608028412,
-0.26947447657585144,
-1.3545879125595093,
-0.47590172290802,
0.29065513610839844,
2.0359575748443604,
-0.777218222618103,
0.8503748774528503,
1.0413331985473633,
-0.7352724075317383,
-0.020449504256248474,
0.34236255288124084,
-0.3672625720500946,
0.848280668258667,
-1.12003755569458,
-0.3948817849159241,
1.1447404623031616,
-0.20361162722110748,
-0.6552319526672363,
1.4453349113464355,
0.8371716141700745,
-1.00138258934021,
-0.19933590292930603,
-0.2050418257713318,
-0.7504680752754211,
-0.0029536476358771324,
-1.5920209884643555,
-0.12746886909008026,
0.4108782112598419,
-1.4432796239852905,
-0.44379928708076477,
-0.09990763664245605,
1.3650530576705933,
-0.18890498578548431,
1.5130754709243774,
-0.3364938199520111,
-0.1418403536081314,
-0.32220444083213806,
-0.36540359258651733,
0.12090017646551132,
-0.23938988149166107,
-0.6221885085105896,
0.1755198985338211,
-0.7325304746627808,
0.32465609908103943,
1.3935266733169556,
0.37557297945022583,
0.10871069878339767,
0.5766133666038513,
1.021324872970581,
0.33501726388931274,
-0.09351340681314468,
-0.8962768316268921,
-1.6069896221160889,
2.023895740509033,
-1.3257802724838257,
2.0047714710235596,
0.7885691523551941,
0.0002434970811009407,
-1.8180989027023315,
-1.9043289422988892,
1.400705099105835,
1.1304348707199097,
2.286438465118408,
0.6077480912208557,
0.395126074552536,
-0.7653107643127441,
-0.7098703980445862,
0.3053012192249298,
-1.0277115106582642,
-0.6830572485923767,
0.10556437075138092,
2.3234047889709473,
1.7255116701126099,
-0.47691115736961365,
-0.16878119111061096,
-0.9810776710510254,
1.368234395980835,
-0.2495357245206833,
0.19927512109279633,
2.0263702869415283,
-0.3013744354248047,
-1.0000553131103516,
1.1662886142730713,
-2.472212076187134,
0.12412477284669876,
1.9652115106582642,
0.2510269582271576,
0.09193050861358643,
-1.3902875185012817,
-0.5998778939247131,
-0.377685546875,
-0.41102659702301025,
-1.2189912796020508,
0.49876219034194946,
-0.2169724553823471,
-0.8374650478363037,
-1.42511785030365,
0.2057296484708786,
-1.1090205907821655,
-1.6953558921813965,
0.27607813477516174,
1.9033255577087402,
2.0086257457733154,
-0.7426791191101074,
1.5429242849349976,
-0.25793981552124023,
0.1161312684416771,
1.3072534799575806,
1.2661066055297852,
3.140441656112671,
1.8661974668502808,
-1.242720603942871,
0.6866446733474731,
-0.17301425337791443,
-0.5014553666114807,
1.158155083656311,
-1.1550309658050537,
1.2139308452606201,
-0.10043200105428696,
-1.2618149518966675,
-1.2676974534988403,
1.0043797492980957,
0.4832080602645874,
0.13070082664489746,
-0.5654021501541138,
1.3185153007507324,
0.029350150376558304,
1.3763595819473267,
0.5663446187973022,
-0.33557119965553284,
0.5426170229911804,
-0.32087987661361694,
-0.44407591223716736,
1.5641193389892578,
0.2193893939256668,
-1.4880728721618652,
-2.3720996379852295,
-0.14696131646633148,
-0.8651698231697083,
-0.06733706593513489,
-0.645566999912262,
-1.0762792825698853,
1.711815595626831,
0.4778704047203064,
-1.186259150505066,
-0.33134087920188904,
-0.34517794847488403,
-0.6536876559257507,
2.70234751701355,
-1.4543452262878418,
-0.26091840863227844,
-1.0006881952285767,
-0.4992717504501343,
1.649060845375061,
-1.2778780460357666,
-0.1481384038925171,
-1.0068442821502686,
-0.6268585324287415,
-1.3029643297195435,
-0.628760814666748,
-0.01315211784094572,
-0.9846569299697876,
0.7702617049217224,
0.1890198141336441,
-1.1351773738861084,
-0.2927911579608917,
-0.8788673877716064,
0.8772091269493103,
-0.08845703303813934,
0.28807079792022705,
1.8584743738174438,
0.4717504680156708,
-0.3825291097164154,
0.711858868598938,
1.2006944417953491,
0.6611227989196777,
-0.6418667435646057,
0.23548582196235657,
-0.7133384346961975,
0.36367034912109375,
-1.3060976266860962,
0.24730052053928375,
-2.9097797870635986,
0.6019262671470642,
-0.12814515829086304,
-0.05399564653635025,
-0.019088957458734512,
-1.2613495588302612,
1.1088069677352905,
2.6742281913757324,
-1.175235390663147,
0.47542569041252136,
0.28110024333000183,
1.2504441738128662,
-1.5420571565628052,
0.35052812099456787,
-0.3824619948863983,
2.0605854988098145,
0.1792880743741989,
1.2392034530639648,
-0.42379167675971985,
-2.2869489192962646,
0.7068069577217102,
-1.2851436138153076,
-1.1264231204986572,
0.7348504066467285,
-0.7941800355911255,
0.07278648018836975,
-1.4011256694793701,
-0.11566544324159622,
-0.8564828038215637,
-1.264938473701477,
0.7752688527107239,
0.0671103373169899,
0.44367295503616333,
-0.5763713121414185,
0.3817298710346222,
-2.1278035640716553,
-1.281762719154358,
-0.18474939465522766,
-0.9335023760795593,
0.49916255474090576,
-0.2474656105041504,
0.709617018699646,
-0.21944588422775269,
0.06677934527397156,
0.3922015428543091,
1.4044084548950195,
3.353639841079712,
0.2118828147649765,
0.45936232805252075,
-0.1686587631702423,
-0.9290980696678162,
1.4032682180404663,
0.8730067610740662,
-0.14078423380851746,
-0.53983074426651,
-0.9731908440589905,
1.3646223545074463,
1.9179563522338867,
0.9566207528114319,
0.14338324964046478,
-0.8442794680595398,
-0.7540768980979919,
0.020210351794958115,
0.22258765995502472,
0.421830952167511,
0.9001113176345825,
0.03279923275113106,
0.01639557257294655,
1.396806001663208,
1.3141533136367798,
-0.47973692417144775,
0.4170595407485962,
-0.9117496013641357,
-0.45736733078956604,
0.5144814848899841,
0.30592674016952515,
0.042268648743629456,
0.36860835552215576,
-0.9649624824523926,
-0.27814191579818726,
-0.2989393174648285,
-0.8916516900062561,
-0.7641633152961731,
-0.3690055012702942,
-0.39566826820373535,
1.6705713272094727,
0.13618788123130798,
-0.4730731248855591,
-0.0008964622393250465,
-0.8345498442649841,
-0.056490808725357056,
-1.0517818927764893,
0.2561085820198059,
-0.08741631358861923,
-0.1258309930562973,
-0.08745863288640976,
1.8565973043441772,
-0.964626669883728,
-2.0881199836730957,
0.26602667570114136,
0.22165387868881226,
-0.39708900451660156,
0.20601359009742737,
1.7248449325561523,
0.5984640717506409,
1.4989681243896484,
1.3000671863555908,
0.9201000928878784,
-0.6323158740997314,
-1.3437395095825195,
0.731476902961731,
1.0389291048049927,
-1.3874698877334595,
0.8364125490188599,
0.028733529150485992,
-0.5465960502624512,
0.6654359698295593,
1.2592432498931885,
0.40272918343544006,
-1.9837185144424438,
0.7856112122535706,
-0.9229216575622559,
0.8173961639404297,
0.667432427406311,
0.7202906012535095,
0.3017423152923584,
0.7881544828414917,
-1.3201558589935303,
-1.1985292434692383,
-0.7770636677742004,
-0.5760390758514404,
1.9322706460952759,
-0.27732425928115845,
0.5638310313224792,
-0.1604296863079071,
-1.4266046285629272,
-0.11878608167171478,
0.6646182537078857,
0.3233603537082672,
-0.4089222848415375,
0.8757790923118591,
-0.6794465184211731,
-1.0853967666625977,
-1.4410967826843262,
-0.4767095744609833,
-0.9944657683372498,
-0.8932068943977356,
1.0602562427520752,
0.8646571040153503,
0.22376486659049988,
1.8725286722183228,
0.5537264943122864,
0.2758607566356659,
-2.69309139251709,
0.8742566108703613,
0.1783507764339447,
-0.11654015630483627,
0.8493771553039551,
0.284546822309494,
0.9836843013763428,
-0.06506714224815369,
0.4833192229270935,
-2.473156690597534,
2.289285659790039,
-0.18166208267211914,
0.6976861953735352,
0.08826588839292526,
-0.15089374780654907,
1.0989145040512085,
0.5982098579406738,
0.5519213080406189,
-1.0808390378952026,
0.5939220190048218,
-0.7323189377784729,
1.345935583114624,
0.9179323315620422,
-0.7911620140075684,
-0.11377693712711334,
1.361384391784668,
0.485580712556839,
-0.4922121465206146,
-0.8932405710220337,
-0.9552412033081055,
0.8934414982795715,
1.6930586099624634,
0.011021804995834827,
-0.04441889747977257,
0.8279419541358948,
0.6228079795837402,
-1.3024908304214478,
0.13470156490802765,
-0.7044677138328552,
-0.7508299946784973,
1.6736069917678833,
2.046187400817871,
-0.15820257365703583,
-0.19050483405590057,
-0.6883810758590698,
-1.2437453269958496,
0.7501474618911743,
-0.1181158646941185,
0.10126499831676483,
0.6658480763435364,
-0.6798213720321655,
1.0681370496749878,
0.8736891150474548,
0.9227606654167175,
0.13990308344364166,
0.3747219741344452,
0.2750130295753479,
-0.43355563282966614,
-1.1850979328155518,
-0.259917676448822,
-1.1245249509811401,
-2.569437026977539,
0.4504449963569641,
-0.3384906053543091,
-1.4621609449386597,
0.018416807055473328,
-1.126540184020996,
0.9430328607559204,
-0.5789571404457092,
-1.0749815702438354,
-1.4740369319915771,
0.21753434836864471,
-0.11412185430526733,
0.972161054611206,
-1.5466334819793701,
-0.08512339740991592,
1.2920621633529663,
0.87910395860672,
-0.5994520783424377,
1.0114164352416992,
0.2383812814950943,
1.1424752473831177,
0.8373973965644836,
-0.38203901052474976,
0.4851493239402771,
-0.01353949774056673,
-1.3249417543411255,
0.46938008069992065,
1.1613656282424927,
0.14965476095676422,
1.4967490434646606,
-0.5064444541931152,
-0.0022488138638436794,
0.4037068486213684,
-0.5943194627761841,
-0.4623872637748718,
-0.5049163699150085,
0.7060297131538391,
0.08569204062223434,
-0.9681158065795898,
-0.03677148371934891,
-0.03992822393774986,
-0.2680934965610504,
0.16747726500034332,
-1.5392265319824219,
-0.24181869626045227,
-0.31747621297836304,
-0.546795666217804,
-1.2651746273040771,
0.049767374992370605,
1.2805392742156982,
-0.7354360222816467,
-0.163701131939888,
0.4258115887641907,
0.3205887973308563,
0.49410533905029297,
0.6389681100845337,
-0.6549897789955139,
-0.4214468002319336,
-0.3116927146911621,
-0.30319055914878845,
0.23871544003486633,
1.2700707912445068,
-0.20516550540924072,
-0.913411557674408,
0.6564980745315552,
-0.3803336024284363,
0.028187692165374756,
1.9036555290222168,
0.10685029625892639,
-0.8570966720581055,
0.3365364968776703,
-0.6461782455444336,
1.9373453855514526,
1.6925971508026123,
1.3262419700622559,
-0.07567936927080154,
-0.9400874972343445,
0.5774325728416443,
-0.339426726102829,
-0.34333375096321106,
0.8208065629005432,
0.5088282823562622,
-0.20024283230304718,
-1.3878464698791504,
0.571040689945221,
1.1879156827926636,
-0.858522355556488,
-0.8601567149162292,
0.12837472558021545,
-0.8096711039543152,
1.0653988122940063,
0.7636914253234863,
0.3796897530555725,
0.2298349291086197,
1.5351616144180298,
0.7922597527503967,
-0.5875096321105957,
0.5442658066749573,
0.5014790296554565,
-0.09675092250108719,
-2.0530567169189453,
-0.9589132070541382,
0.2656315565109253,
-0.416629821062088,
-1.5880255699157715,
1.4220212697982788,
-1.106624722480774,
-0.8736720085144043,
0.49922066926956177,
0.22276367247104645,
1.3781710863113403,
0.3030683100223541,
1.5779341459274292,
1.988611102104187,
0.8067002892494202,
0.25005319714546204,
1.2905747890472412,
-0.07066521793603897,
-0.4364969730377197,
1.7680628299713135,
-0.428353488445282,
0.5014600157737732,
1.0804550647735596,
-0.35315704345703125,
-1.0134398937225342,
-0.7625184059143066,
-1.1886972188949585,
-0.725766658782959,
1.1511433124542236,
0.1567654311656952,
-1.0910861492156982,
0.169733464717865,
1.5473934412002563,
0.005564285442233086,
-0.35319623351097107,
0.5078246593475342,
0.3996790051460266,
-0.6999642848968506,
-0.12465269863605499,
-0.8795242309570312,
0.570487380027771,
-0.0663214772939682,
-0.32137003540992737,
0.41067570447921753,
0.4457114040851593,
1.2791719436645508,
-0.04367148131132126,
0.170975461602211,
1.1658300161361694,
-1.453230857849121,
1.5058608055114746,
-0.5978158116340637,
0.2618049085140228,
-2.38041090965271,
1.424816370010376,
-0.7398262023925781,
1.9392714500427246,
-2.661236524581909,
0.3757079243659973,
-0.5724201798439026,
-0.38954564929008484,
0.27590808272361755,
-0.3955906629562378,
0.16879865527153015,
-0.15358762443065643,
-1.1217920780181885,
-0.09557001292705536,
-0.7372301816940308,
0.5536888837814331,
1.09949791431427,
1.305394172668457,
-1.1245633363723755,
-0.2693738639354706,
-1.7372918128967285,
-0.08707281202077866,
-0.7246505618095398,
0.42844849824905396,
-1.9977312088012695,
-0.16645680367946625,
-1.9818326234817505,
-2.3090147972106934,
-1.4588574171066284,
-0.7675127387046814,
1.0635018348693848,
0.033760759979486465,
-0.8773807883262634,
1.1751844882965088,
-0.3735211491584778,
-1.8075134754180908,
1.0297985076904297,
-2.1811578273773193
] |
https://github.com/huggingface/datasets/issues/5272 | Use pyarrow Tensor dtype | There is also an open issue to enable the conversion of `pyarrow.Tensor` to `pyarrow.FixedShapeTensorType`: https://github.com/apache/arrow/issues/35068. This way one could indirectly use `pyarrow.Tensor` in Arrow format. | ### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary | 406 | 25 | Use pyarrow Tensor dtype
### Feature request
I was going the discussion of converting tensors to lists.
Is there a way to leverage pyarrow's Tensors for nested arrays / embeddings?
For example:
```python
import pyarrow as pa
import numpy as np
x = np.array([[2, 2, 4], [4, 5, 100]], np.int32)
pa.Tensor.from_numpy(x, dim_names=["dim1","dim2"])
```
[Apache docs](https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html)
Maybe this belongs into the pyarrow features / repo.
### Motivation
Working with big data, we need to make sure to use the best data structures and IO out there
### Your contribution
Can try to a PR if code changes necessary
There is also an open issue to enable the conversion of `pyarrow.Tensor` to `pyarrow.FixedShapeTensorType`: https://github.com/apache/arrow/issues/35068. This way one could indirectly use `pyarrow.Tensor` in Arrow format. | [
-1.2293732166290283,
-0.8464484214782715,
-0.780316948890686,
1.500978946685791,
-0.13241878151893616,
-1.1858869791030884,
0.11145978420972824,
-1.1397055387496948,
1.664076805114746,
-0.7372061014175415,
0.32999387383461,
-1.657983660697937,
0.12195675820112228,
-0.5744415521621704,
-0.796715497970581,
-0.8877403140068054,
-0.37498754262924194,
-0.6962960958480835,
0.9544146060943604,
2.5785393714904785,
1.2115073204040527,
-1.3925504684448242,
2.701059103012085,
0.7920804619789124,
-0.14421245455741882,
-1.0301352739334106,
0.5438146591186523,
0.09969373047351837,
-1.21195650100708,
-0.5500825643539429,
-0.8789743781089783,
-0.11862356215715408,
-0.40363776683807373,
-0.5076115727424622,
-0.00041316263377666473,
0.3890182673931122,
-0.2550640404224396,
-0.36978450417518616,
-0.5450485944747925,
-0.793651819229126,
0.4149665832519531,
-0.5050038695335388,
0.9402574896812439,
-0.35645592212677,
1.7981113195419312,
-0.5320828557014465,
0.43499112129211426,
0.7076379060745239,
1.3691083192825317,
0.11288131773471832,
-0.03091983124613762,
0.40094518661499023,
0.43422070145606995,
0.02883569523692131,
0.4978850781917572,
1.0809234380722046,
0.7017279863357544,
0.5131196975708008,
0.7256785035133362,
-2.1811912059783936,
1.2901356220245361,
-1.0210741758346558,
0.22197991609573364,
1.345374584197998,
-0.9302634596824646,
0.373302698135376,
-1.7069860696792603,
-0.13993945717811584,
0.560019314289093,
-2.308035373687744,
0.25483784079551697,
-1.2861871719360352,
-0.5553739666938782,
0.941730260848999,
0.3114223778247833,
-1.293689250946045,
0.028769243508577347,
-0.42606788873672485,
1.0911121368408203,
0.5515764355659485,
1.0571836233139038,
-1.5994200706481934,
0.042205095291137695,
-0.3046700060367584,
0.037736088037490845,
-1.3288044929504395,
-1.4546244144439697,
0.4633536636829376,
0.7086436152458191,
0.6059168577194214,
0.021976452320814133,
0.9692608714103699,
-1.0786536931991577,
0.8068710565567017,
-0.9487295746803284,
-1.7234957218170166,
-1.3483113050460815,
-2.354322910308838,
-2.217543363571167,
0.836144745349884,
-0.4493219554424286,
-0.5643455386161804,
2.062824010848999,
-0.9795447587966919,
-1.7932792901992798,
1.080801248550415,
0.2632405757904053,
-0.0014549437910318375,
2.469198226928711,
0.16833442449569702,
-0.712905764579773,
0.2836131155490875,
-0.6962238550186157,
0.7945853471755981,
-0.5643637776374817,
1.3233870267868042,
0.48219195008277893,
-1.06709623336792,
1.705876350402832,
-0.33356502652168274,
0.5241726636886597,
-0.7798731923103333,
-0.448743999004364,
-0.7453626394271851,
0.3656854033470154,
1.8599658012390137,
-0.3571099042892456,
1.4782114028930664,
-0.30345502495765686,
-1.4374144077301025,
-1.6785023212432861,
0.8347777128219604,
0.45846623182296753,
-0.7414206266403198,
0.1419871300458908,
-0.32805728912353516,
0.13516448438167572,
-0.11041292548179626,
1.133715271949768,
1.208892822265625,
0.674767255783081,
-0.2632984519004822,
-0.7930512428283691,
0.2585773169994354,
-0.058721527457237244,
-0.7233167886734009,
-1.7866672277450562,
-0.3219967186450958,
0.16072553396224976,
0.6351646184921265,
-1.2401694059371948,
1.7650240659713745,
0.8362116813659668,
1.8931063413619995,
1.0091452598571777,
-0.2901352047920227,
1.567308783531189,
0.045338090509176254,
1.833022952079773,
-0.4835159182548523,
0.6302371025085449,
-0.31330257654190063,
-1.16242516040802,
0.8161863684654236,
-0.32728755474090576,
-2.007270097732544,
-0.737159788608551,
-0.8531131148338318,
-0.20977476239204407,
-0.8126389384269714,
0.9423388838768005,
-0.25449255108833313,
-1.2881683111190796,
0.25278183817863464,
-0.7611749768257141,
0.06370391696691513,
-1.2615182399749756,
0.3649984300136566,
0.7483010292053223,
-0.5739294290542603,
0.029470980167388916,
-0.28963807225227356,
-1.318013310432434,
-0.5042858719825745,
0.24321870505809784,
2.008334159851074,
-0.785780131816864,
0.834580659866333,
1.0376026630401611,
-0.7583076357841492,
-0.03673684969544411,
0.356975257396698,
-0.3487095236778259,
0.8083909153938293,
-1.1179462671279907,
-0.40946292877197266,
1.1404107809066772,
-0.17101402580738068,
-0.7162674069404602,
1.509623408317566,
0.8970457315444946,
-0.955211877822876,
-0.24374526739120483,
-0.19392554461956024,
-0.7596231698989868,
0.01654251292347908,
-1.6081488132476807,
-0.13688497245311737,
0.4231441020965576,
-1.4678062200546265,
-0.4187361001968384,
-0.08909962326288223,
1.3407466411590576,
-0.20307675004005432,
1.5220820903778076,
-0.27975133061408997,
-0.1754911243915558,
-0.2529759705066681,
-0.360672265291214,
0.06011826545000076,
-0.20972339808940887,
-0.6334623098373413,
0.1943095624446869,
-0.7096222639083862,
0.3581676781177521,
1.3840973377227783,
0.3960634768009186,
0.09865845739841461,
0.539528489112854,
1.0268880128860474,
0.31782037019729614,
-0.022168532013893127,
-0.905536413192749,
-1.5587877035140991,
2.0107061862945557,
-1.350907564163208,
2.033219814300537,
0.829671323299408,
-0.016169317066669464,
-1.7954715490341187,
-1.8847613334655762,
1.4166064262390137,
1.1471447944641113,
2.2734057903289795,
0.6796717047691345,
0.3694794476032257,
-0.7854520678520203,
-0.6943143010139465,
0.28545868396759033,
-1.0642216205596924,
-0.7054179310798645,
0.1345774233341217,
2.3481295108795166,
1.7175757884979248,
-0.4759335517883301,
-0.1680840700864792,
-1.0237191915512085,
1.3553059101104736,
-0.2606351375579834,
0.1644299328327179,
2.0723376274108887,
-0.25051218271255493,
-0.9728654026985168,
1.1280567646026611,
-2.4425511360168457,
0.12852834165096283,
1.9832632541656494,
0.2604309916496277,
0.0794183686375618,
-1.4428038597106934,
-0.6251473426818848,
-0.34692028164863586,
-0.382716566324234,
-1.2581361532211304,
0.5350526571273804,
-0.24279166758060455,
-0.8441057205200195,
-1.419716715812683,
0.18221572041511536,
-1.1391924619674683,
-1.7261310815811157,
0.307140052318573,
1.9202073812484741,
1.9762414693832397,
-0.6981312036514282,
1.5805025100708008,
-0.2538243532180786,
0.10864192992448807,
1.350555419921875,
1.250564455986023,
3.1360793113708496,
1.8809422254562378,
-1.226219654083252,
0.6610879302024841,
-0.20642444491386414,
-0.5244704484939575,
1.1674131155014038,
-1.178589940071106,
1.180748701095581,
-0.13073205947875977,
-1.2433346509933472,
-1.259635329246521,
1.0219517946243286,
0.4760797917842865,
0.16115118563175201,
-0.5381945371627808,
1.2714204788208008,
0.10312163829803467,
1.3464109897613525,
0.5567305088043213,
-0.2580932378768921,
0.6061562895774841,
-0.3212767243385315,
-0.42503446340560913,
1.530662178993225,
0.1932613104581833,
-1.443690299987793,
-2.360456705093384,
-0.16201873123645782,
-0.8565678000450134,
-0.08442211151123047,
-0.584813117980957,
-1.1052324771881104,
1.7178336381912231,
0.47007685899734497,
-1.263891339302063,
-0.3065638840198517,
-0.3537833094596863,
-0.6852233409881592,
2.7331128120422363,
-1.4193530082702637,
-0.31146666407585144,
-1.0174404382705688,
-0.5024977922439575,
1.6522103548049927,
-1.2391633987426758,
-0.15581734478473663,
-1.0115879774093628,
-0.5806066989898682,
-1.3284447193145752,
-0.6199813485145569,
-0.018151815980672836,
-0.9827528595924377,
0.7781200408935547,
0.22632773220539093,
-1.1005356311798096,
-0.2916189730167389,
-0.836317777633667,
0.8708481788635254,
-0.07019143551588058,
0.2920043170452118,
1.8605895042419434,
0.5296614766120911,
-0.38200947642326355,
0.7083041667938232,
1.1326030492782593,
0.6593513488769531,
-0.6095424890518188,
0.28070497512817383,
-0.6400323510169983,
0.32941752672195435,
-1.284049391746521,
0.24732725322246552,
-2.918593645095825,
0.6178557276725769,
-0.13206037878990173,
-0.09677981585264206,
-0.03154349699616432,
-1.2233821153640747,
1.1458438634872437,
2.7201898097991943,
-1.147121787071228,
0.44854798913002014,
0.2941572666168213,
1.2434803247451782,
-1.5302461385726929,
0.38170433044433594,
-0.3925989270210266,
2.056899070739746,
0.18065206706523895,
1.2597711086273193,
-0.44237667322158813,
-2.3371171951293945,
0.7247934937477112,
-1.2685819864273071,
-1.1891868114471436,
0.7453573942184448,
-0.8162319660186768,
0.06550446897745132,
-1.3867144584655762,
-0.09054837375879288,
-0.843578040599823,
-1.2324204444885254,
0.780895471572876,
0.0939568355679512,
0.4189111590385437,
-0.5962429046630859,
0.357523649930954,
-2.1008331775665283,
-1.3158092498779297,
-0.21105915307998657,
-0.9300301671028137,
0.5361470580101013,
-0.2652801275253296,
0.6699658632278442,
-0.20967023074626923,
0.033165063709020615,
0.37615349888801575,
1.464889407157898,
3.372148275375366,
0.21197029948234558,
0.4746706187725067,
-0.19873717427253723,
-0.9157703518867493,
1.4172528982162476,
0.8781700134277344,
-0.1264319270849228,
-0.5396708250045776,
-0.9455143213272095,
1.3283531665802002,
1.9154086112976074,
0.9305804371833801,
0.12027052789926529,
-0.8163923621177673,
-0.7577377557754517,
0.003657146356999874,
0.26021677255630493,
0.42142024636268616,
0.9130454063415527,
0.06451603770256042,
-0.0137562807649374,
1.3574167490005493,
1.2804388999938965,
-0.5278633236885071,
0.39911922812461853,
-0.8871687650680542,
-0.43006324768066406,
0.5135979056358337,
0.25379204750061035,
-0.006674688309431076,
0.36701616644859314,
-0.995319664478302,
-0.2368091642856598,
-0.3101577162742615,
-0.9204943180084229,
-0.8132547736167908,
-0.3548702299594879,
-0.3707835376262665,
1.6918562650680542,
0.10161765664815903,
-0.46540454030036926,
0.006725289858877659,
-0.8381290435791016,
-0.08539891242980957,
-1.0358080863952637,
0.23449502885341644,
-0.09903997927904129,
-0.0937003493309021,
-0.04308433085680008,
1.9136998653411865,
-0.9727151393890381,
-2.080418825149536,
0.3059313893318176,
0.22075331211090088,
-0.3459591269493103,
0.2878072261810303,
1.6861919164657593,
0.5905619263648987,
1.498533844947815,
1.2707711458206177,
0.9188715815544128,
-0.6309072375297546,
-1.3270326852798462,
0.7135642170906067,
1.0258244276046753,
-1.370723843574524,
0.8353127241134644,
0.012646063230931759,
-0.4854150414466858,
0.6469148397445679,
1.2897409200668335,
0.40515750646591187,
-2.006065845489502,
0.7736283540725708,
-0.856293797492981,
0.7887921333312988,
0.67913419008255,
0.6668847799301147,
0.3027700185775757,
0.771602988243103,
-1.2926393747329712,
-1.20806884765625,
-0.8097688555717468,
-0.5772196054458618,
1.9432697296142578,
-0.25211772322654724,
0.6066842079162598,
-0.10082148015499115,
-1.4538825750350952,
-0.10796376317739487,
0.638563334941864,
0.3606514036655426,
-0.4137129485607147,
0.8719138503074646,
-0.6760321855545044,
-1.094186544418335,
-1.4661133289337158,
-0.4971560537815094,
-0.9445350170135498,
-0.9247081875801086,
1.0162434577941895,
0.8656364679336548,
0.16998356580734253,
1.8678220510482788,
0.5824996829032898,
0.25841817259788513,
-2.70951509475708,
0.8885237574577332,
0.16414572298526764,
-0.08809419721364975,
0.859835147857666,
0.2516673803329468,
0.9512676000595093,
-0.013342540711164474,
0.4750029742717743,
-2.486445665359497,
2.3325321674346924,
-0.1879873126745224,
0.6331660747528076,
0.047179341316223145,
-0.2248745709657669,
1.101616621017456,
0.5627747178077698,
0.5755093097686768,
-1.0845385789871216,
0.6205276250839233,
-0.6972900032997131,
1.3446909189224243,
0.8646578788757324,
-0.7779520750045776,
-0.09135712683200836,
1.3721959590911865,
0.48093414306640625,
-0.5042486786842346,
-0.8859035968780518,
-0.964038610458374,
0.8543643951416016,
1.73514986038208,
0.0158718079328537,
-0.06387959420681,
0.8135511875152588,
0.5933780670166016,
-1.3189748525619507,
0.10359089821577072,
-0.704750120639801,
-0.7555625438690186,
1.6864376068115234,
2.0675878524780273,
-0.22210966050624847,
-0.237167626619339,
-0.7243236899375916,
-1.1874569654464722,
0.7253428101539612,
-0.11091707646846771,
0.08976829051971436,
0.6614300012588501,
-0.6601054072380066,
1.0757834911346436,
0.8739743232727051,
0.9762442708015442,
0.10517419129610062,
0.42997628450393677,
0.25629380345344543,
-0.47947725653648376,
-1.2118316888809204,
-0.27984902262687683,
-1.1605918407440186,
-2.6069235801696777,
0.4459710419178009,
-0.35149073600769043,
-1.452085018157959,
0.006592008285224438,
-1.1633789539337158,
0.9217445254325867,
-0.5630592107772827,
-1.0690830945968628,
-1.45943021774292,
0.16911634802818298,
-0.10616873949766159,
0.9847075343132019,
-1.5560519695281982,
-0.05044329911470413,
1.3152292966842651,
0.8917863368988037,
-0.6093073487281799,
0.9651270508766174,
0.22080107033252716,
1.1881362199783325,
0.8460250496864319,
-0.3809678256511688,
0.48886922001838684,
-0.061873745173215866,
-1.3374918699264526,
0.4499080777168274,
1.1361061334609985,
0.1730661690235138,
1.5149952173233032,
-0.48693931102752686,
0.013474545441567898,
0.38303229212760925,
-0.6413338780403137,
-0.4735889732837677,
-0.542923092842102,
0.7350228428840637,
0.10927431285381317,
-0.9802526235580444,
-0.03091268613934517,
-0.025995448231697083,
-0.23612381517887115,
0.14377343654632568,
-1.5475561618804932,
-0.23857755959033966,
-0.339356392621994,
-0.5838572978973389,
-1.263818621635437,
0.08281949907541275,
1.1971081495285034,
-0.7428428530693054,
-0.19317689538002014,
0.3982384502887726,
0.2808930277824402,
0.5313209891319275,
0.6317324638366699,
-0.7135061621665955,
-0.5123326778411865,
-0.29247403144836426,
-0.35474663972854614,
0.27962642908096313,
1.2758721113204956,
-0.17980314791202545,
-0.9232805371284485,
0.6723850965499878,
-0.3877738118171692,
0.06555068492889404,
1.904087781906128,
0.08396288007497787,
-0.8447966575622559,
0.30197715759277344,
-0.6180636286735535,
1.8849810361862183,
1.660524845123291,
1.3181003332138062,
-0.08164523541927338,
-0.9263400435447693,
0.6183333396911621,
-0.3700847327709198,
-0.34407490491867065,
0.824156641960144,
0.5228540897369385,
-0.1839076429605484,
-1.388710856437683,
0.5751413702964783,
1.2316468954086304,
-0.866813063621521,
-0.8493858575820923,
0.09308858215808868,
-0.8209567070007324,
1.0703386068344116,
0.7541470527648926,
0.3528458774089813,
0.24997945129871368,
1.5116665363311768,
0.7544816732406616,
-0.555744469165802,
0.5253690481185913,
0.5149888396263123,
-0.11137948930263519,
-2.1033709049224854,
-0.9672731757164001,
0.26314258575439453,
-0.4064214825630188,
-1.6312206983566284,
1.400646448135376,
-1.1128336191177368,
-0.8456857800483704,
0.5114097595214844,
0.20671433210372925,
1.4347314834594727,
0.30791452527046204,
1.5640732049942017,
1.9879885911941528,
0.807877242565155,
0.2559347152709961,
1.278820514678955,
-0.09076472371816635,
-0.47421368956565857,
1.8059825897216797,
-0.4429050087928772,
0.4984249174594879,
1.0781599283218384,
-0.2821427583694458,
-1.0425392389297485,
-0.7683581113815308,
-1.2129263877868652,
-0.6894378066062927,
1.2120689153671265,
0.14770634472370148,
-1.121741771697998,
0.19522728025913239,
1.5613532066345215,
0.03521372377872467,
-0.38319358229637146,
0.47162142395973206,
0.3941856622695923,
-0.7643266916275024,
-0.12087948620319366,
-0.8664364814758301,
0.5833632349967957,
-0.08149440586566925,
-0.2692306935787201,
0.41636422276496887,
0.45708411931991577,
1.2642545700073242,
-0.07328851521015167,
0.16960035264492035,
1.1320233345031738,
-1.4159537553787231,
1.5445386171340942,
-0.6031160354614258,
0.29749396443367004,
-2.3759384155273438,
1.4284474849700928,
-0.7572898268699646,
1.942700743675232,
-2.6278603076934814,
0.37654945254325867,
-0.5597806572914124,
-0.39361876249313354,
0.2611067295074463,
-0.3925989866256714,
0.15031401813030243,
-0.1797867715358734,
-1.0907844305038452,
-0.06849820911884308,
-0.7759528160095215,
0.5488195419311523,
1.1296707391738892,
1.3287354707717896,
-1.1259793043136597,
-0.21368561685085297,
-1.7427700757980347,
-0.0964437797665596,
-0.7579596042633057,
0.4564319849014282,
-2.008025884628296,
-0.17858891189098358,
-2.018742561340332,
-2.3172028064727783,
-1.4349230527877808,
-0.7676862478256226,
1.0015051364898682,
0.07297481596469879,
-0.8374033570289612,
1.1071959733963013,
-0.36034825444221497,
-1.805317759513855,
1.0051236152648926,
-2.120035409927368
] |
https://github.com/huggingface/datasets/issues/5270 | When len(_URLS) > 16, download will hang | It can fix the bug temporarily.
```python
from datasets import DownloadConfig
config = DownloadConfig(num_proc=8)
In [5]: dataset = load_dataset('Freed-Wu/kodak', split='test', download_config=config)
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/6cf51f2b3d686d24a33fe86945f9e16802def212325f9345cf3cbb1b9f5f4a57...
Downloading data files #4: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.39obj/s]
Downloading data files #2: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.38obj/s]
Downloading data files #3: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.13obj/s]
Downloading data files #7: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.09obj/s]
Downloading data files #5: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.08obj/s]
Downloading data files #0: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.08obj/s]
Downloading data files #1: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:10<00:00, 3.36s/obj]
Downloading data: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 492k/492k [00:01<00:00, 253kB/s]
Downloading data files #6: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:13<00:00, 4.63s/obj]
Extracting data files #0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1407.17obj/s]
Extracting data files #1: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1325.91obj/s]
Extracting data files #3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1524.46obj/s]
Extracting data files #2: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1404.66obj/s]
Extracting data files #4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1538.63obj/s]
Extracting data files #6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1711.73obj/s]
Extracting data files #7: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 2144.33obj/s]
Extracting data files #5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1964.85obj/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/6cf51f2b3d686d24a33fe86945f9e16802def212325f9345cf3cbb1b9f5f4a57. Subsequent calls will reuse this data.
``` | ### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4 | 407 | 176 | When len(_URLS) > 16, download will hang
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
It can fix the bug temporarily.
```python
from datasets import DownloadConfig
config = DownloadConfig(num_proc=8)
In [5]: dataset = load_dataset('Freed-Wu/kodak', split='test', download_config=config)
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/6cf51f2b3d686d24a33fe86945f9e16802def212325f9345cf3cbb1b9f5f4a57...
Downloading data files #4: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.39obj/s]
Downloading data files #2: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.38obj/s]
Downloading data files #3: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.13obj/s]
Downloading data files #7: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.09obj/s]
Downloading data files #5: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.08obj/s]
Downloading data files #0: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:02<00:00, 1.08obj/s]
Downloading data files #1: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:10<00:00, 3.36s/obj]
Downloading data: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 492k/492k [00:01<00:00, 253kB/s]
Downloading data files #6: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:13<00:00, 4.63s/obj]
Extracting data files #0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1407.17obj/s]
Extracting data files #1: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1325.91obj/s]
Extracting data files #3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1524.46obj/s]
Extracting data files #2: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1404.66obj/s]
Extracting data files #4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1538.63obj/s]
Extracting data files #6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1711.73obj/s]
Extracting data files #7: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 2144.33obj/s]
Extracting data files #5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [00:00<00:00, 1964.85obj/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/6cf51f2b3d686d24a33fe86945f9e16802def212325f9345cf3cbb1b9f5f4a57. Subsequent calls will reuse this data.
``` | [
-1.1831002235412598,
-0.7964313626289368,
-0.8935063481330872,
1.395546555519104,
-0.00040889717638492584,
-1.206254243850708,
0.03157553821802139,
-1.2821110486984253,
1.383806586265564,
-0.60782790184021,
0.3354189693927765,
-1.6794019937515259,
-0.023689469322562218,
-0.5440512895584106,
-0.7670542001724243,
-0.884920060634613,
-0.5127160549163818,
-0.7630585432052612,
0.9521726369857788,
2.589951753616333,
1.2574434280395508,
-1.437203288078308,
2.777752637863159,
0.7295539975166321,
-0.2443307787179947,
-0.9027097821235657,
0.6067115664482117,
0.09648631513118744,
-1.4490153789520264,
-0.3945408761501312,
-0.871597170829773,
-0.1746840924024582,
-0.591763973236084,
-0.2919817566871643,
0.1469988226890564,
0.3323148488998413,
-0.2715051770210266,
-0.3746410012245178,
-0.5586672425270081,
-0.8036198019981384,
0.48684653639793396,
-0.31234675645828247,
0.9470586180686951,
-0.2735808491706848,
1.6939886808395386,
-0.6806448698043823,
0.31420716643333435,
0.8416528105735779,
1.223264455795288,
0.05922895297408104,
0.14138714969158173,
0.5048596858978271,
0.29535651206970215,
-0.017778906971216202,
0.3947092592716217,
1.1999088525772095,
0.6012348532676697,
0.3058759570121765,
0.8210134506225586,
-2.0610032081604004,
1.1843948364257812,
-0.8874382972717285,
0.29790058732032776,
1.3475747108459473,
-0.7567381858825684,
0.3139544129371643,
-1.8475066423416138,
-0.11947757750749588,
0.685857355594635,
-2.1402676105499268,
0.31459882855415344,
-1.269043207168579,
-0.5658167004585266,
0.8756285309791565,
0.289573609828949,
-1.0418484210968018,
0.2283639907836914,
-0.6495102643966675,
1.0752880573272705,
0.38127100467681885,
1.2036117315292358,
-1.638258695602417,
0.025702595710754395,
-0.2268105447292328,
0.06455512344837189,
-1.33641517162323,
-1.517869472503662,
0.5689225196838379,
0.5447085499763489,
0.7261240482330322,
0.07436087727546692,
0.9225505590438843,
-0.9523410797119141,
0.9107556939125061,
-1.0376827716827393,
-1.7712987661361694,
-1.4604434967041016,
-2.3746256828308105,
-2.1955606937408447,
0.7634177207946777,
-0.34678804874420166,
-0.465222030878067,
1.9505841732025146,
-0.7243105173110962,
-1.731957197189331,
1.0375373363494873,
0.33181050419807434,
-0.040835339576005936,
2.3735568523406982,
0.2649112939834595,
-0.8015103936195374,
0.4597839415073395,
-0.7015070915222168,
0.8237481713294983,
-0.2030056267976761,
1.3507609367370605,
0.40522444248199463,
-0.8103618621826172,
1.5876621007919312,
-0.5756219625473022,
0.430961549282074,
-0.7024213075637817,
-0.5156911015510559,
-0.8026571869850159,
0.2351623922586441,
1.9293479919433594,
-0.3263534903526306,
1.5139697790145874,
-0.3763890266418457,
-1.6088308095932007,
-1.4306167364120483,
0.7805135250091553,
0.5881714820861816,
-0.8959589004516602,
0.07734467834234238,
-0.3372019827365875,
0.06787232309579849,
0.00640662107616663,
1.0280756950378418,
1.3048137426376343,
0.6135244369506836,
-0.3214500844478607,
-0.930023729801178,
0.17459721863269806,
-0.10879319906234741,
-0.9010105729103088,
-1.8532633781433105,
-0.20330195128917694,
0.14287185668945312,
0.7520173192024231,
-1.3716083765029907,
1.740256667137146,
0.8169207572937012,
2.0935797691345215,
0.9658703804016113,
-0.5011084079742432,
1.5355757474899292,
-0.015447476878762245,
1.9023624658584595,
-0.4902294874191284,
0.6212446689605713,
-0.4092009961605072,
-1.0458378791809082,
0.9618399739265442,
-0.26579737663269043,
-2.1125574111938477,
-0.7719725370407104,
-0.8265596032142639,
-0.21776238083839417,
-0.7554849982261658,
1.0102131366729736,
-0.2530413568019867,
-1.438345193862915,
0.2462361603975296,
-0.9090346097946167,
0.05446167662739754,
-1.212890386581421,
0.09106307476758957,
0.6145615577697754,
-0.5472444891929626,
0.058944035321474075,
-0.1258831024169922,
-1.3354840278625488,
-0.41867557168006897,
0.3246628940105438,
1.9621626138687134,
-0.6755498647689819,
0.868130087852478,
1.107319712638855,
-0.5697984099388123,
0.15954521298408508,
0.29868894815444946,
-0.32255345582962036,
0.8246430158615112,
-1.2923959493637085,
-0.47928953170776367,
1.0494937896728516,
0.0813538208603859,
-0.5707858800888062,
1.4676450490951538,
0.8892377614974976,
-1.1241282224655151,
-0.2852725386619568,
-0.13689029216766357,
-0.9463268518447876,
0.08814161270856857,
-1.6691404581069946,
-0.1828915923833847,
0.374592125415802,
-1.4908896684646606,
-0.5013982653617859,
-0.2881675362586975,
1.240898847579956,
-0.1324899047613144,
1.5040298700332642,
-0.3950502574443817,
-0.18533028662204742,
-0.3283054828643799,
-0.4687420427799225,
0.07123174518346786,
-0.3613949716091156,
-0.5757715702056885,
0.17032763361930847,
-0.8076232075691223,
0.28251463174819946,
1.472819447517395,
0.2513711750507355,
0.1537964642047882,
0.3608832359313965,
1.127221703529358,
0.3427889943122864,
0.15371933579444885,
-0.7920228242874146,
-1.5274879932403564,
2.1009762287139893,
-1.5878227949142456,
1.9476054906845093,
0.858500063419342,
0.17175360023975372,
-1.959407925605774,
-1.8117363452911377,
1.317237377166748,
1.1090577840805054,
2.3706159591674805,
0.674962043762207,
0.446479469537735,
-0.7635929584503174,
-0.6922028660774231,
0.2812958359718323,
-0.9376507997512817,
-0.649767279624939,
0.3166142404079437,
2.464780330657959,
1.7856800556182861,
-0.4189006984233856,
-0.15967263281345367,
-0.6262452006340027,
1.4282234907150269,
-0.09689433127641678,
0.0699738934636116,
2.100438356399536,
-0.08279190957546234,
-1.0520299673080444,
1.2213975191116333,
-2.40228533744812,
0.18638475239276886,
2.0038068294525146,
0.385577529668808,
0.18262532353401184,
-1.4312424659729004,
-0.7366765141487122,
-0.4482172429561615,
-0.4153901934623718,
-1.214919090270996,
0.5921441316604614,
-0.3323526382446289,
-0.9459272623062134,
-1.5041134357452393,
0.03908727690577507,
-1.1575103998184204,
-1.718449592590332,
0.34433141350746155,
1.8782955408096313,
2.139071226119995,
-0.7722951173782349,
1.5654689073562622,
-0.3884638249874115,
-0.009649472311139107,
1.2450141906738281,
1.2252087593078613,
3.0376832485198975,
1.8719390630722046,
-1.2110563516616821,
0.7519481182098389,
-0.19551293551921844,
-0.450099378824234,
0.9612755179405212,
-1.157013177871704,
1.1570600271224976,
-0.0924561470746994,
-1.214854121208191,
-1.0838617086410522,
1.0839601755142212,
0.43099433183670044,
0.03717423975467682,
-0.5573232173919678,
1.3323854207992554,
-0.025654081255197525,
1.2929260730743408,
0.5806914567947388,
-0.2504194676876068,
0.3932234048843384,
-0.34922581911087036,
-0.5330519080162048,
1.6475927829742432,
0.18890710175037384,
-1.4765536785125732,
-2.5965514183044434,
-0.27959978580474854,
-0.8229559659957886,
0.0041359104216098785,
-0.703359842300415,
-1.2362346649169922,
1.7026920318603516,
0.2966614067554474,
-1.3202173709869385,
-0.3493804633617401,
-0.3407231271266937,
-0.5138747096061707,
2.5879507064819336,
-1.5280481576919556,
-0.1203959658741951,
-0.9189705848693848,
-0.4795127511024475,
1.6378198862075806,
-1.0806304216384888,
-0.28816255927085876,
-1.1530448198318481,
-0.5490396022796631,
-1.220895528793335,
-0.5973449349403381,
0.05018420144915581,
-0.8489276766777039,
0.8270252346992493,
0.15013761818408966,
-1.042029619216919,
-0.23358474671840668,
-0.9661553502082825,
0.99484783411026,
-0.0202823244035244,
0.25796160101890564,
1.9101306200027466,
0.3773961067199707,
-0.3061896562576294,
0.6646486520767212,
1.2470067739486694,
0.6454036831855774,
-0.7564278841018677,
-0.05532296001911163,
-0.5794935822486877,
0.23824508488178253,
-1.4058136940002441,
0.27192679047584534,
-2.8441531658172607,
0.7640033960342407,
-0.09392907470464706,
0.012839307077229023,
0.07442496716976166,
-1.2524473667144775,
1.3234585523605347,
2.671555280685425,
-1.1666450500488281,
0.5811202526092529,
0.2662331759929657,
1.1149733066558838,
-1.456034541130066,
0.2992223799228668,
-0.3641814589500427,
2.0640408992767334,
0.015983037650585175,
1.2287535667419434,
-0.5529026985168457,
-2.2881100177764893,
0.6858084201812744,
-1.2282159328460693,
-1.1216344833374023,
0.8393670916557312,
-0.780830979347229,
0.24475856125354767,
-1.5465342998504639,
-0.34486642479896545,
-1.1308025121688843,
-1.178510069847107,
0.6194885969161987,
0.20555122196674347,
0.5175097584724426,
-0.5384711027145386,
0.2962762415409088,
-2.4004058837890625,
-1.517067313194275,
-0.08359743654727936,
-1.0258989334106445,
0.5754418969154358,
-0.3030985891819,
0.7122008800506592,
0.04803530126810074,
0.030694857239723206,
0.3081076443195343,
1.3089213371276855,
3.403426170349121,
0.06810255348682404,
0.25830239057540894,
-0.0908200666308403,
-0.9789037704467773,
1.2128033638000488,
0.939342200756073,
-0.0965944230556488,
-0.5353326797485352,
-0.9236720204353333,
1.0922343730926514,
2.036224842071533,
1.0636638402938843,
-0.10197128355503082,
-0.85760498046875,
-0.7525764107704163,
0.10695906728506088,
0.302132785320282,
0.6457135677337646,
1.0049066543579102,
-0.09858915209770203,
0.0419473722577095,
1.5545029640197754,
1.117685317993164,
-0.45635542273521423,
0.40849795937538147,
-0.9832962155342102,
-0.3581847548484802,
0.4558601379394531,
0.18101491034030914,
0.03727973625063896,
0.46895015239715576,
-1.0973937511444092,
-0.2591489553451538,
-0.34931084513664246,
-0.8765802383422852,
-0.7178031802177429,
-0.4314797520637512,
-0.42357397079467773,
1.516516089439392,
0.14406949281692505,
-0.44721564650535583,
0.144668310880661,
-0.6598252654075623,
-0.15994341671466827,
-1.2625757455825806,
0.22619560360908508,
-0.29715266823768616,
0.0008595697581768036,
-0.10243389755487442,
1.861072301864624,
-0.9026471972465515,
-1.98001229763031,
0.12279562652111053,
0.3105636239051819,
-0.37406376004219055,
0.2562895119190216,
1.6707295179367065,
0.6869750022888184,
1.3143463134765625,
1.1935356855392456,
0.8373276591300964,
-0.6643142104148865,
-1.2774418592453003,
0.5445952415466309,
1.1378554105758667,
-1.2321884632110596,
0.7362762093544006,
-0.15777523815631866,
-0.43298572301864624,
0.6789652109146118,
1.549861192703247,
0.32021379470825195,
-2.1855905055999756,
0.9464059472084045,
-0.7664560675621033,
0.8429578542709351,
0.7260503768920898,
0.6653342247009277,
0.27045199275016785,
0.6693781614303589,
-1.2698276042938232,
-1.0635020732879639,
-0.8861461281776428,
-0.7022046446800232,
1.7589646577835083,
-0.193929061293602,
0.4135930836200714,
-0.16728995740413666,
-1.2178959846496582,
-0.09832961857318878,
0.6269291043281555,
0.4101422429084778,
-0.42429250478744507,
0.7582682967185974,
-0.5184478759765625,
-1.2488923072814941,
-1.2222522497177124,
-0.5482287406921387,
-0.895444929599762,
-0.91767418384552,
0.9011217355728149,
0.7302436828613281,
0.5051820874214172,
1.9570754766464233,
0.7688510417938232,
0.12834113836288452,
-2.7106165885925293,
0.9519063234329224,
0.20512591302394867,
0.0005215778946876526,
1.0613741874694824,
0.30427175760269165,
1.1262474060058594,
0.036111198365688324,
0.480984091758728,
-2.421140432357788,
2.272157907485962,
-0.22246026992797852,
0.6410552859306335,
-0.1791212111711502,
-0.1714293211698532,
1.0582828521728516,
0.5250701904296875,
0.5026729702949524,
-1.0267010927200317,
0.6259607672691345,
-0.691760241985321,
1.1045511960983276,
0.8817881941795349,
-0.7890010476112366,
0.02925875037908554,
1.3225138187408447,
0.4696236252784729,
-0.519905686378479,
-0.9462131857872009,
-0.7617583870887756,
0.9582419395446777,
1.7184871435165405,
-0.06022343784570694,
0.13872554898262024,
0.8803568482398987,
0.4979963004589081,
-1.2570738792419434,
-0.03427254036068916,
-0.7465394735336304,
-0.8323113322257996,
1.7018314599990845,
2.0442986488342285,
-0.16509957611560822,
0.020301032811403275,
-0.8198617696762085,
-1.3398972749710083,
0.7540846467018127,
-0.20003265142440796,
0.22279092669487,
0.48967376351356506,
-0.681515097618103,
1.2742615938186646,
0.5258406400680542,
0.9632222056388855,
0.07666978985071182,
0.44105014204978943,
0.29056310653686523,
-0.375714510679245,
-1.1608163118362427,
-0.46166113018989563,
-1.1514668464660645,
-2.3069803714752197,
0.5220313668251038,
-0.15073417127132416,
-1.5164097547531128,
0.023883838206529617,
-0.9149415493011475,
0.951291024684906,
-0.5451600551605225,
-0.9170194268226624,
-1.490433692932129,
0.4842691123485565,
-0.10786847770214081,
1.1055030822753906,
-1.5813579559326172,
-0.10396864265203476,
1.2168867588043213,
0.9066603183746338,
-0.5919228196144104,
0.9719661474227905,
0.32767432928085327,
1.04547119140625,
0.8092650771141052,
-0.33117756247520447,
0.5170092582702637,
0.08204106986522675,
-1.2106528282165527,
0.4933101236820221,
1.1814894676208496,
0.11674395203590393,
1.4212719202041626,
-0.44145113229751587,
-0.024174882099032402,
0.25483402609825134,
-0.42500126361846924,
-0.37829095125198364,
-0.5154972672462463,
0.5720119476318359,
0.24025975167751312,
-1.079209566116333,
-0.17528226971626282,
-0.11307888478040695,
-0.2064385861158371,
0.21280640363693237,
-1.4931960105895996,
-0.28210169076919556,
-0.3822837173938751,
-0.4114128053188324,
-1.2229328155517578,
0.020343750715255737,
1.2564138174057007,
-0.6353122591972351,
-0.19389384984970093,
0.39854171872138977,
0.40836822986602783,
0.6069535613059998,
0.8041912913322449,
-0.5904163122177124,
-0.464028537273407,
-0.3513842821121216,
-0.266406387090683,
0.2205265462398529,
1.157096028327942,
-0.11625387519598007,
-1.0148814916610718,
0.7357619404792786,
-0.5250295400619507,
0.07869961857795715,
1.8879050016403198,
-0.015713408589363098,
-0.7853544354438782,
0.35354718565940857,
-0.6689367890357971,
2.0205912590026855,
1.769407033920288,
1.1463147401809692,
-0.2617747485637665,
-0.8840662240982056,
0.6520087122917175,
-0.3229823410511017,
-0.15539997816085815,
0.8277779221534729,
0.4759269952774048,
-0.19135576486587524,
-1.3892476558685303,
0.3983214795589447,
1.4410029649734497,
-0.9449535012245178,
-0.8218284249305725,
0.13037464022636414,
-0.8748202919960022,
1.0357611179351807,
0.8008122444152832,
0.3791251480579376,
0.3848569691181183,
1.5085759162902832,
0.7897619009017944,
-0.5830574035644531,
0.6130512952804565,
0.4388166666030884,
-0.07274381816387177,
-2.1488068103790283,
-1.1315042972564697,
0.33426523208618164,
-0.2558114230632782,
-1.6999074220657349,
1.343685507774353,
-1.034403920173645,
-0.9098383188247681,
0.5526687502861023,
-0.06987372785806656,
1.1595699787139893,
0.3722257912158966,
1.6324483156204224,
2.008458375930786,
0.8537591695785522,
0.2886279821395874,
1.3347892761230469,
-0.07602481544017792,
-0.45470207929611206,
1.9691473245620728,
-0.49457409977912903,
0.5100213885307312,
0.9848899245262146,
-0.4721055030822754,
-0.9413639307022095,
-0.8040280938148499,
-1.32611882686615,
-0.6924737691879272,
1.0597070455551147,
0.043950971215963364,
-1.2621749639511108,
0.26005515456199646,
1.6531786918640137,
0.14693483710289001,
-0.3843289315700531,
0.7172317504882812,
0.396758496761322,
-0.9263324737548828,
-0.13004744052886963,
-0.9990461468696594,
0.5236508250236511,
-0.001281512901186943,
-0.20667441189289093,
0.2395220249891281,
0.5589317679405212,
1.3218625783920288,
-0.01637546718120575,
0.07259245216846466,
1.150046944618225,
-1.4613847732543945,
1.5790140628814697,
-0.5593695044517517,
0.30935904383659363,
-2.3851726055145264,
1.2785840034484863,
-0.6811651587486267,
1.8268612623214722,
-2.620434522628784,
0.330219030380249,
-0.5672618746757507,
-0.5044602155685425,
0.2047412246465683,
-0.1998102366924286,
0.32274165749549866,
-0.10266778618097305,
-1.0243569612503052,
-0.08277367800474167,
-0.7301852703094482,
0.4583387076854706,
1.0940130949020386,
1.3914529085159302,
-0.9721823930740356,
-0.1779947429895401,
-1.6548691987991333,
-0.11309554427862167,
-0.6751148700714111,
0.2927905023097992,
-1.9742356538772583,
-0.049047790467739105,
-1.8892107009887695,
-2.2977731227874756,
-1.5026956796646118,
-0.9214491844177246,
1.0281667709350586,
0.16708382964134216,
-1.1403928995132446,
1.1420351266860962,
-0.453678160905838,
-1.6329355239868164,
1.0969369411468506,
-2.0776515007019043
] |
https://github.com/huggingface/datasets/issues/5270 | When len(_URLS) > 16, download will hang | Thanks for reporting ! This sounds like an issue with python multiprocessing. If we switch to multithreading for the downloads it should be much more robust - let me know if this is something you'd like to contribute, I'd be happy to help and give you some pointers | ### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4 | 407 | 48 | When len(_URLS) > 16, download will hang
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
Thanks for reporting ! This sounds like an issue with python multiprocessing. If we switch to multithreading for the downloads it should be much more robust - let me know if this is something you'd like to contribute, I'd be happy to help and give you some pointers | [
-1.1831002235412598,
-0.7964313626289368,
-0.8935063481330872,
1.395546555519104,
-0.00040889717638492584,
-1.206254243850708,
0.03157553821802139,
-1.2821110486984253,
1.383806586265564,
-0.60782790184021,
0.3354189693927765,
-1.6794019937515259,
-0.023689469322562218,
-0.5440512895584106,
-0.7670542001724243,
-0.884920060634613,
-0.5127160549163818,
-0.7630585432052612,
0.9521726369857788,
2.589951753616333,
1.2574434280395508,
-1.437203288078308,
2.777752637863159,
0.7295539975166321,
-0.2443307787179947,
-0.9027097821235657,
0.6067115664482117,
0.09648631513118744,
-1.4490153789520264,
-0.3945408761501312,
-0.871597170829773,
-0.1746840924024582,
-0.591763973236084,
-0.2919817566871643,
0.1469988226890564,
0.3323148488998413,
-0.2715051770210266,
-0.3746410012245178,
-0.5586672425270081,
-0.8036198019981384,
0.48684653639793396,
-0.31234675645828247,
0.9470586180686951,
-0.2735808491706848,
1.6939886808395386,
-0.6806448698043823,
0.31420716643333435,
0.8416528105735779,
1.223264455795288,
0.05922895297408104,
0.14138714969158173,
0.5048596858978271,
0.29535651206970215,
-0.017778906971216202,
0.3947092592716217,
1.1999088525772095,
0.6012348532676697,
0.3058759570121765,
0.8210134506225586,
-2.0610032081604004,
1.1843948364257812,
-0.8874382972717285,
0.29790058732032776,
1.3475747108459473,
-0.7567381858825684,
0.3139544129371643,
-1.8475066423416138,
-0.11947757750749588,
0.685857355594635,
-2.1402676105499268,
0.31459882855415344,
-1.269043207168579,
-0.5658167004585266,
0.8756285309791565,
0.289573609828949,
-1.0418484210968018,
0.2283639907836914,
-0.6495102643966675,
1.0752880573272705,
0.38127100467681885,
1.2036117315292358,
-1.638258695602417,
0.025702595710754395,
-0.2268105447292328,
0.06455512344837189,
-1.33641517162323,
-1.517869472503662,
0.5689225196838379,
0.5447085499763489,
0.7261240482330322,
0.07436087727546692,
0.9225505590438843,
-0.9523410797119141,
0.9107556939125061,
-1.0376827716827393,
-1.7712987661361694,
-1.4604434967041016,
-2.3746256828308105,
-2.1955606937408447,
0.7634177207946777,
-0.34678804874420166,
-0.465222030878067,
1.9505841732025146,
-0.7243105173110962,
-1.731957197189331,
1.0375373363494873,
0.33181050419807434,
-0.040835339576005936,
2.3735568523406982,
0.2649112939834595,
-0.8015103936195374,
0.4597839415073395,
-0.7015070915222168,
0.8237481713294983,
-0.2030056267976761,
1.3507609367370605,
0.40522444248199463,
-0.8103618621826172,
1.5876621007919312,
-0.5756219625473022,
0.430961549282074,
-0.7024213075637817,
-0.5156911015510559,
-0.8026571869850159,
0.2351623922586441,
1.9293479919433594,
-0.3263534903526306,
1.5139697790145874,
-0.3763890266418457,
-1.6088308095932007,
-1.4306167364120483,
0.7805135250091553,
0.5881714820861816,
-0.8959589004516602,
0.07734467834234238,
-0.3372019827365875,
0.06787232309579849,
0.00640662107616663,
1.0280756950378418,
1.3048137426376343,
0.6135244369506836,
-0.3214500844478607,
-0.930023729801178,
0.17459721863269806,
-0.10879319906234741,
-0.9010105729103088,
-1.8532633781433105,
-0.20330195128917694,
0.14287185668945312,
0.7520173192024231,
-1.3716083765029907,
1.740256667137146,
0.8169207572937012,
2.0935797691345215,
0.9658703804016113,
-0.5011084079742432,
1.5355757474899292,
-0.015447476878762245,
1.9023624658584595,
-0.4902294874191284,
0.6212446689605713,
-0.4092009961605072,
-1.0458378791809082,
0.9618399739265442,
-0.26579737663269043,
-2.1125574111938477,
-0.7719725370407104,
-0.8265596032142639,
-0.21776238083839417,
-0.7554849982261658,
1.0102131366729736,
-0.2530413568019867,
-1.438345193862915,
0.2462361603975296,
-0.9090346097946167,
0.05446167662739754,
-1.212890386581421,
0.09106307476758957,
0.6145615577697754,
-0.5472444891929626,
0.058944035321474075,
-0.1258831024169922,
-1.3354840278625488,
-0.41867557168006897,
0.3246628940105438,
1.9621626138687134,
-0.6755498647689819,
0.868130087852478,
1.107319712638855,
-0.5697984099388123,
0.15954521298408508,
0.29868894815444946,
-0.32255345582962036,
0.8246430158615112,
-1.2923959493637085,
-0.47928953170776367,
1.0494937896728516,
0.0813538208603859,
-0.5707858800888062,
1.4676450490951538,
0.8892377614974976,
-1.1241282224655151,
-0.2852725386619568,
-0.13689029216766357,
-0.9463268518447876,
0.08814161270856857,
-1.6691404581069946,
-0.1828915923833847,
0.374592125415802,
-1.4908896684646606,
-0.5013982653617859,
-0.2881675362586975,
1.240898847579956,
-0.1324899047613144,
1.5040298700332642,
-0.3950502574443817,
-0.18533028662204742,
-0.3283054828643799,
-0.4687420427799225,
0.07123174518346786,
-0.3613949716091156,
-0.5757715702056885,
0.17032763361930847,
-0.8076232075691223,
0.28251463174819946,
1.472819447517395,
0.2513711750507355,
0.1537964642047882,
0.3608832359313965,
1.127221703529358,
0.3427889943122864,
0.15371933579444885,
-0.7920228242874146,
-1.5274879932403564,
2.1009762287139893,
-1.5878227949142456,
1.9476054906845093,
0.858500063419342,
0.17175360023975372,
-1.959407925605774,
-1.8117363452911377,
1.317237377166748,
1.1090577840805054,
2.3706159591674805,
0.674962043762207,
0.446479469537735,
-0.7635929584503174,
-0.6922028660774231,
0.2812958359718323,
-0.9376507997512817,
-0.649767279624939,
0.3166142404079437,
2.464780330657959,
1.7856800556182861,
-0.4189006984233856,
-0.15967263281345367,
-0.6262452006340027,
1.4282234907150269,
-0.09689433127641678,
0.0699738934636116,
2.100438356399536,
-0.08279190957546234,
-1.0520299673080444,
1.2213975191116333,
-2.40228533744812,
0.18638475239276886,
2.0038068294525146,
0.385577529668808,
0.18262532353401184,
-1.4312424659729004,
-0.7366765141487122,
-0.4482172429561615,
-0.4153901934623718,
-1.214919090270996,
0.5921441316604614,
-0.3323526382446289,
-0.9459272623062134,
-1.5041134357452393,
0.03908727690577507,
-1.1575103998184204,
-1.718449592590332,
0.34433141350746155,
1.8782955408096313,
2.139071226119995,
-0.7722951173782349,
1.5654689073562622,
-0.3884638249874115,
-0.009649472311139107,
1.2450141906738281,
1.2252087593078613,
3.0376832485198975,
1.8719390630722046,
-1.2110563516616821,
0.7519481182098389,
-0.19551293551921844,
-0.450099378824234,
0.9612755179405212,
-1.157013177871704,
1.1570600271224976,
-0.0924561470746994,
-1.214854121208191,
-1.0838617086410522,
1.0839601755142212,
0.43099433183670044,
0.03717423975467682,
-0.5573232173919678,
1.3323854207992554,
-0.025654081255197525,
1.2929260730743408,
0.5806914567947388,
-0.2504194676876068,
0.3932234048843384,
-0.34922581911087036,
-0.5330519080162048,
1.6475927829742432,
0.18890710175037384,
-1.4765536785125732,
-2.5965514183044434,
-0.27959978580474854,
-0.8229559659957886,
0.0041359104216098785,
-0.703359842300415,
-1.2362346649169922,
1.7026920318603516,
0.2966614067554474,
-1.3202173709869385,
-0.3493804633617401,
-0.3407231271266937,
-0.5138747096061707,
2.5879507064819336,
-1.5280481576919556,
-0.1203959658741951,
-0.9189705848693848,
-0.4795127511024475,
1.6378198862075806,
-1.0806304216384888,
-0.28816255927085876,
-1.1530448198318481,
-0.5490396022796631,
-1.220895528793335,
-0.5973449349403381,
0.05018420144915581,
-0.8489276766777039,
0.8270252346992493,
0.15013761818408966,
-1.042029619216919,
-0.23358474671840668,
-0.9661553502082825,
0.99484783411026,
-0.0202823244035244,
0.25796160101890564,
1.9101306200027466,
0.3773961067199707,
-0.3061896562576294,
0.6646486520767212,
1.2470067739486694,
0.6454036831855774,
-0.7564278841018677,
-0.05532296001911163,
-0.5794935822486877,
0.23824508488178253,
-1.4058136940002441,
0.27192679047584534,
-2.8441531658172607,
0.7640033960342407,
-0.09392907470464706,
0.012839307077229023,
0.07442496716976166,
-1.2524473667144775,
1.3234585523605347,
2.671555280685425,
-1.1666450500488281,
0.5811202526092529,
0.2662331759929657,
1.1149733066558838,
-1.456034541130066,
0.2992223799228668,
-0.3641814589500427,
2.0640408992767334,
0.015983037650585175,
1.2287535667419434,
-0.5529026985168457,
-2.2881100177764893,
0.6858084201812744,
-1.2282159328460693,
-1.1216344833374023,
0.8393670916557312,
-0.780830979347229,
0.24475856125354767,
-1.5465342998504639,
-0.34486642479896545,
-1.1308025121688843,
-1.178510069847107,
0.6194885969161987,
0.20555122196674347,
0.5175097584724426,
-0.5384711027145386,
0.2962762415409088,
-2.4004058837890625,
-1.517067313194275,
-0.08359743654727936,
-1.0258989334106445,
0.5754418969154358,
-0.3030985891819,
0.7122008800506592,
0.04803530126810074,
0.030694857239723206,
0.3081076443195343,
1.3089213371276855,
3.403426170349121,
0.06810255348682404,
0.25830239057540894,
-0.0908200666308403,
-0.9789037704467773,
1.2128033638000488,
0.939342200756073,
-0.0965944230556488,
-0.5353326797485352,
-0.9236720204353333,
1.0922343730926514,
2.036224842071533,
1.0636638402938843,
-0.10197128355503082,
-0.85760498046875,
-0.7525764107704163,
0.10695906728506088,
0.302132785320282,
0.6457135677337646,
1.0049066543579102,
-0.09858915209770203,
0.0419473722577095,
1.5545029640197754,
1.117685317993164,
-0.45635542273521423,
0.40849795937538147,
-0.9832962155342102,
-0.3581847548484802,
0.4558601379394531,
0.18101491034030914,
0.03727973625063896,
0.46895015239715576,
-1.0973937511444092,
-0.2591489553451538,
-0.34931084513664246,
-0.8765802383422852,
-0.7178031802177429,
-0.4314797520637512,
-0.42357397079467773,
1.516516089439392,
0.14406949281692505,
-0.44721564650535583,
0.144668310880661,
-0.6598252654075623,
-0.15994341671466827,
-1.2625757455825806,
0.22619560360908508,
-0.29715266823768616,
0.0008595697581768036,
-0.10243389755487442,
1.861072301864624,
-0.9026471972465515,
-1.98001229763031,
0.12279562652111053,
0.3105636239051819,
-0.37406376004219055,
0.2562895119190216,
1.6707295179367065,
0.6869750022888184,
1.3143463134765625,
1.1935356855392456,
0.8373276591300964,
-0.6643142104148865,
-1.2774418592453003,
0.5445952415466309,
1.1378554105758667,
-1.2321884632110596,
0.7362762093544006,
-0.15777523815631866,
-0.43298572301864624,
0.6789652109146118,
1.549861192703247,
0.32021379470825195,
-2.1855905055999756,
0.9464059472084045,
-0.7664560675621033,
0.8429578542709351,
0.7260503768920898,
0.6653342247009277,
0.27045199275016785,
0.6693781614303589,
-1.2698276042938232,
-1.0635020732879639,
-0.8861461281776428,
-0.7022046446800232,
1.7589646577835083,
-0.193929061293602,
0.4135930836200714,
-0.16728995740413666,
-1.2178959846496582,
-0.09832961857318878,
0.6269291043281555,
0.4101422429084778,
-0.42429250478744507,
0.7582682967185974,
-0.5184478759765625,
-1.2488923072814941,
-1.2222522497177124,
-0.5482287406921387,
-0.895444929599762,
-0.91767418384552,
0.9011217355728149,
0.7302436828613281,
0.5051820874214172,
1.9570754766464233,
0.7688510417938232,
0.12834113836288452,
-2.7106165885925293,
0.9519063234329224,
0.20512591302394867,
0.0005215778946876526,
1.0613741874694824,
0.30427175760269165,
1.1262474060058594,
0.036111198365688324,
0.480984091758728,
-2.421140432357788,
2.272157907485962,
-0.22246026992797852,
0.6410552859306335,
-0.1791212111711502,
-0.1714293211698532,
1.0582828521728516,
0.5250701904296875,
0.5026729702949524,
-1.0267010927200317,
0.6259607672691345,
-0.691760241985321,
1.1045511960983276,
0.8817881941795349,
-0.7890010476112366,
0.02925875037908554,
1.3225138187408447,
0.4696236252784729,
-0.519905686378479,
-0.9462131857872009,
-0.7617583870887756,
0.9582419395446777,
1.7184871435165405,
-0.06022343784570694,
0.13872554898262024,
0.8803568482398987,
0.4979963004589081,
-1.2570738792419434,
-0.03427254036068916,
-0.7465394735336304,
-0.8323113322257996,
1.7018314599990845,
2.0442986488342285,
-0.16509957611560822,
0.020301032811403275,
-0.8198617696762085,
-1.3398972749710083,
0.7540846467018127,
-0.20003265142440796,
0.22279092669487,
0.48967376351356506,
-0.681515097618103,
1.2742615938186646,
0.5258406400680542,
0.9632222056388855,
0.07666978985071182,
0.44105014204978943,
0.29056310653686523,
-0.375714510679245,
-1.1608163118362427,
-0.46166113018989563,
-1.1514668464660645,
-2.3069803714752197,
0.5220313668251038,
-0.15073417127132416,
-1.5164097547531128,
0.023883838206529617,
-0.9149415493011475,
0.951291024684906,
-0.5451600551605225,
-0.9170194268226624,
-1.490433692932129,
0.4842691123485565,
-0.10786847770214081,
1.1055030822753906,
-1.5813579559326172,
-0.10396864265203476,
1.2168867588043213,
0.9066603183746338,
-0.5919228196144104,
0.9719661474227905,
0.32767432928085327,
1.04547119140625,
0.8092650771141052,
-0.33117756247520447,
0.5170092582702637,
0.08204106986522675,
-1.2106528282165527,
0.4933101236820221,
1.1814894676208496,
0.11674395203590393,
1.4212719202041626,
-0.44145113229751587,
-0.024174882099032402,
0.25483402609825134,
-0.42500126361846924,
-0.37829095125198364,
-0.5154972672462463,
0.5720119476318359,
0.24025975167751312,
-1.079209566116333,
-0.17528226971626282,
-0.11307888478040695,
-0.2064385861158371,
0.21280640363693237,
-1.4931960105895996,
-0.28210169076919556,
-0.3822837173938751,
-0.4114128053188324,
-1.2229328155517578,
0.020343750715255737,
1.2564138174057007,
-0.6353122591972351,
-0.19389384984970093,
0.39854171872138977,
0.40836822986602783,
0.6069535613059998,
0.8041912913322449,
-0.5904163122177124,
-0.464028537273407,
-0.3513842821121216,
-0.266406387090683,
0.2205265462398529,
1.157096028327942,
-0.11625387519598007,
-1.0148814916610718,
0.7357619404792786,
-0.5250295400619507,
0.07869961857795715,
1.8879050016403198,
-0.015713408589363098,
-0.7853544354438782,
0.35354718565940857,
-0.6689367890357971,
2.0205912590026855,
1.769407033920288,
1.1463147401809692,
-0.2617747485637665,
-0.8840662240982056,
0.6520087122917175,
-0.3229823410511017,
-0.15539997816085815,
0.8277779221534729,
0.4759269952774048,
-0.19135576486587524,
-1.3892476558685303,
0.3983214795589447,
1.4410029649734497,
-0.9449535012245178,
-0.8218284249305725,
0.13037464022636414,
-0.8748202919960022,
1.0357611179351807,
0.8008122444152832,
0.3791251480579376,
0.3848569691181183,
1.5085759162902832,
0.7897619009017944,
-0.5830574035644531,
0.6130512952804565,
0.4388166666030884,
-0.07274381816387177,
-2.1488068103790283,
-1.1315042972564697,
0.33426523208618164,
-0.2558114230632782,
-1.6999074220657349,
1.343685507774353,
-1.034403920173645,
-0.9098383188247681,
0.5526687502861023,
-0.06987372785806656,
1.1595699787139893,
0.3722257912158966,
1.6324483156204224,
2.008458375930786,
0.8537591695785522,
0.2886279821395874,
1.3347892761230469,
-0.07602481544017792,
-0.45470207929611206,
1.9691473245620728,
-0.49457409977912903,
0.5100213885307312,
0.9848899245262146,
-0.4721055030822754,
-0.9413639307022095,
-0.8040280938148499,
-1.32611882686615,
-0.6924737691879272,
1.0597070455551147,
0.043950971215963364,
-1.2621749639511108,
0.26005515456199646,
1.6531786918640137,
0.14693483710289001,
-0.3843289315700531,
0.7172317504882812,
0.396758496761322,
-0.9263324737548828,
-0.13004744052886963,
-0.9990461468696594,
0.5236508250236511,
-0.001281512901186943,
-0.20667441189289093,
0.2395220249891281,
0.5589317679405212,
1.3218625783920288,
-0.01637546718120575,
0.07259245216846466,
1.150046944618225,
-1.4613847732543945,
1.5790140628814697,
-0.5593695044517517,
0.30935904383659363,
-2.3851726055145264,
1.2785840034484863,
-0.6811651587486267,
1.8268612623214722,
-2.620434522628784,
0.330219030380249,
-0.5672618746757507,
-0.5044602155685425,
0.2047412246465683,
-0.1998102366924286,
0.32274165749549866,
-0.10266778618097305,
-1.0243569612503052,
-0.08277367800474167,
-0.7301852703094482,
0.4583387076854706,
1.0940130949020386,
1.3914529085159302,
-0.9721823930740356,
-0.1779947429895401,
-1.6548691987991333,
-0.11309554427862167,
-0.6751148700714111,
0.2927905023097992,
-1.9742356538772583,
-0.049047790467739105,
-1.8892107009887695,
-2.2977731227874756,
-1.5026956796646118,
-0.9214491844177246,
1.0281667709350586,
0.16708382964134216,
-1.1403928995132446,
1.1420351266860962,
-0.453678160905838,
-1.6329355239868164,
1.0969369411468506,
-2.0776515007019043
] |
https://github.com/huggingface/datasets/issues/5270 | When len(_URLS) > 16, download will hang | > an issue with python multiprocessing
If it is an issue with multiprocessing, should we report it to upstream? | ### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4 | 407 | 19 | When len(_URLS) > 16, download will hang
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
> an issue with python multiprocessing
If it is an issue with multiprocessing, should we report it to upstream? | [
-1.1831002235412598,
-0.7964313626289368,
-0.8935063481330872,
1.395546555519104,
-0.00040889717638492584,
-1.206254243850708,
0.03157553821802139,
-1.2821110486984253,
1.383806586265564,
-0.60782790184021,
0.3354189693927765,
-1.6794019937515259,
-0.023689469322562218,
-0.5440512895584106,
-0.7670542001724243,
-0.884920060634613,
-0.5127160549163818,
-0.7630585432052612,
0.9521726369857788,
2.589951753616333,
1.2574434280395508,
-1.437203288078308,
2.777752637863159,
0.7295539975166321,
-0.2443307787179947,
-0.9027097821235657,
0.6067115664482117,
0.09648631513118744,
-1.4490153789520264,
-0.3945408761501312,
-0.871597170829773,
-0.1746840924024582,
-0.591763973236084,
-0.2919817566871643,
0.1469988226890564,
0.3323148488998413,
-0.2715051770210266,
-0.3746410012245178,
-0.5586672425270081,
-0.8036198019981384,
0.48684653639793396,
-0.31234675645828247,
0.9470586180686951,
-0.2735808491706848,
1.6939886808395386,
-0.6806448698043823,
0.31420716643333435,
0.8416528105735779,
1.223264455795288,
0.05922895297408104,
0.14138714969158173,
0.5048596858978271,
0.29535651206970215,
-0.017778906971216202,
0.3947092592716217,
1.1999088525772095,
0.6012348532676697,
0.3058759570121765,
0.8210134506225586,
-2.0610032081604004,
1.1843948364257812,
-0.8874382972717285,
0.29790058732032776,
1.3475747108459473,
-0.7567381858825684,
0.3139544129371643,
-1.8475066423416138,
-0.11947757750749588,
0.685857355594635,
-2.1402676105499268,
0.31459882855415344,
-1.269043207168579,
-0.5658167004585266,
0.8756285309791565,
0.289573609828949,
-1.0418484210968018,
0.2283639907836914,
-0.6495102643966675,
1.0752880573272705,
0.38127100467681885,
1.2036117315292358,
-1.638258695602417,
0.025702595710754395,
-0.2268105447292328,
0.06455512344837189,
-1.33641517162323,
-1.517869472503662,
0.5689225196838379,
0.5447085499763489,
0.7261240482330322,
0.07436087727546692,
0.9225505590438843,
-0.9523410797119141,
0.9107556939125061,
-1.0376827716827393,
-1.7712987661361694,
-1.4604434967041016,
-2.3746256828308105,
-2.1955606937408447,
0.7634177207946777,
-0.34678804874420166,
-0.465222030878067,
1.9505841732025146,
-0.7243105173110962,
-1.731957197189331,
1.0375373363494873,
0.33181050419807434,
-0.040835339576005936,
2.3735568523406982,
0.2649112939834595,
-0.8015103936195374,
0.4597839415073395,
-0.7015070915222168,
0.8237481713294983,
-0.2030056267976761,
1.3507609367370605,
0.40522444248199463,
-0.8103618621826172,
1.5876621007919312,
-0.5756219625473022,
0.430961549282074,
-0.7024213075637817,
-0.5156911015510559,
-0.8026571869850159,
0.2351623922586441,
1.9293479919433594,
-0.3263534903526306,
1.5139697790145874,
-0.3763890266418457,
-1.6088308095932007,
-1.4306167364120483,
0.7805135250091553,
0.5881714820861816,
-0.8959589004516602,
0.07734467834234238,
-0.3372019827365875,
0.06787232309579849,
0.00640662107616663,
1.0280756950378418,
1.3048137426376343,
0.6135244369506836,
-0.3214500844478607,
-0.930023729801178,
0.17459721863269806,
-0.10879319906234741,
-0.9010105729103088,
-1.8532633781433105,
-0.20330195128917694,
0.14287185668945312,
0.7520173192024231,
-1.3716083765029907,
1.740256667137146,
0.8169207572937012,
2.0935797691345215,
0.9658703804016113,
-0.5011084079742432,
1.5355757474899292,
-0.015447476878762245,
1.9023624658584595,
-0.4902294874191284,
0.6212446689605713,
-0.4092009961605072,
-1.0458378791809082,
0.9618399739265442,
-0.26579737663269043,
-2.1125574111938477,
-0.7719725370407104,
-0.8265596032142639,
-0.21776238083839417,
-0.7554849982261658,
1.0102131366729736,
-0.2530413568019867,
-1.438345193862915,
0.2462361603975296,
-0.9090346097946167,
0.05446167662739754,
-1.212890386581421,
0.09106307476758957,
0.6145615577697754,
-0.5472444891929626,
0.058944035321474075,
-0.1258831024169922,
-1.3354840278625488,
-0.41867557168006897,
0.3246628940105438,
1.9621626138687134,
-0.6755498647689819,
0.868130087852478,
1.107319712638855,
-0.5697984099388123,
0.15954521298408508,
0.29868894815444946,
-0.32255345582962036,
0.8246430158615112,
-1.2923959493637085,
-0.47928953170776367,
1.0494937896728516,
0.0813538208603859,
-0.5707858800888062,
1.4676450490951538,
0.8892377614974976,
-1.1241282224655151,
-0.2852725386619568,
-0.13689029216766357,
-0.9463268518447876,
0.08814161270856857,
-1.6691404581069946,
-0.1828915923833847,
0.374592125415802,
-1.4908896684646606,
-0.5013982653617859,
-0.2881675362586975,
1.240898847579956,
-0.1324899047613144,
1.5040298700332642,
-0.3950502574443817,
-0.18533028662204742,
-0.3283054828643799,
-0.4687420427799225,
0.07123174518346786,
-0.3613949716091156,
-0.5757715702056885,
0.17032763361930847,
-0.8076232075691223,
0.28251463174819946,
1.472819447517395,
0.2513711750507355,
0.1537964642047882,
0.3608832359313965,
1.127221703529358,
0.3427889943122864,
0.15371933579444885,
-0.7920228242874146,
-1.5274879932403564,
2.1009762287139893,
-1.5878227949142456,
1.9476054906845093,
0.858500063419342,
0.17175360023975372,
-1.959407925605774,
-1.8117363452911377,
1.317237377166748,
1.1090577840805054,
2.3706159591674805,
0.674962043762207,
0.446479469537735,
-0.7635929584503174,
-0.6922028660774231,
0.2812958359718323,
-0.9376507997512817,
-0.649767279624939,
0.3166142404079437,
2.464780330657959,
1.7856800556182861,
-0.4189006984233856,
-0.15967263281345367,
-0.6262452006340027,
1.4282234907150269,
-0.09689433127641678,
0.0699738934636116,
2.100438356399536,
-0.08279190957546234,
-1.0520299673080444,
1.2213975191116333,
-2.40228533744812,
0.18638475239276886,
2.0038068294525146,
0.385577529668808,
0.18262532353401184,
-1.4312424659729004,
-0.7366765141487122,
-0.4482172429561615,
-0.4153901934623718,
-1.214919090270996,
0.5921441316604614,
-0.3323526382446289,
-0.9459272623062134,
-1.5041134357452393,
0.03908727690577507,
-1.1575103998184204,
-1.718449592590332,
0.34433141350746155,
1.8782955408096313,
2.139071226119995,
-0.7722951173782349,
1.5654689073562622,
-0.3884638249874115,
-0.009649472311139107,
1.2450141906738281,
1.2252087593078613,
3.0376832485198975,
1.8719390630722046,
-1.2110563516616821,
0.7519481182098389,
-0.19551293551921844,
-0.450099378824234,
0.9612755179405212,
-1.157013177871704,
1.1570600271224976,
-0.0924561470746994,
-1.214854121208191,
-1.0838617086410522,
1.0839601755142212,
0.43099433183670044,
0.03717423975467682,
-0.5573232173919678,
1.3323854207992554,
-0.025654081255197525,
1.2929260730743408,
0.5806914567947388,
-0.2504194676876068,
0.3932234048843384,
-0.34922581911087036,
-0.5330519080162048,
1.6475927829742432,
0.18890710175037384,
-1.4765536785125732,
-2.5965514183044434,
-0.27959978580474854,
-0.8229559659957886,
0.0041359104216098785,
-0.703359842300415,
-1.2362346649169922,
1.7026920318603516,
0.2966614067554474,
-1.3202173709869385,
-0.3493804633617401,
-0.3407231271266937,
-0.5138747096061707,
2.5879507064819336,
-1.5280481576919556,
-0.1203959658741951,
-0.9189705848693848,
-0.4795127511024475,
1.6378198862075806,
-1.0806304216384888,
-0.28816255927085876,
-1.1530448198318481,
-0.5490396022796631,
-1.220895528793335,
-0.5973449349403381,
0.05018420144915581,
-0.8489276766777039,
0.8270252346992493,
0.15013761818408966,
-1.042029619216919,
-0.23358474671840668,
-0.9661553502082825,
0.99484783411026,
-0.0202823244035244,
0.25796160101890564,
1.9101306200027466,
0.3773961067199707,
-0.3061896562576294,
0.6646486520767212,
1.2470067739486694,
0.6454036831855774,
-0.7564278841018677,
-0.05532296001911163,
-0.5794935822486877,
0.23824508488178253,
-1.4058136940002441,
0.27192679047584534,
-2.8441531658172607,
0.7640033960342407,
-0.09392907470464706,
0.012839307077229023,
0.07442496716976166,
-1.2524473667144775,
1.3234585523605347,
2.671555280685425,
-1.1666450500488281,
0.5811202526092529,
0.2662331759929657,
1.1149733066558838,
-1.456034541130066,
0.2992223799228668,
-0.3641814589500427,
2.0640408992767334,
0.015983037650585175,
1.2287535667419434,
-0.5529026985168457,
-2.2881100177764893,
0.6858084201812744,
-1.2282159328460693,
-1.1216344833374023,
0.8393670916557312,
-0.780830979347229,
0.24475856125354767,
-1.5465342998504639,
-0.34486642479896545,
-1.1308025121688843,
-1.178510069847107,
0.6194885969161987,
0.20555122196674347,
0.5175097584724426,
-0.5384711027145386,
0.2962762415409088,
-2.4004058837890625,
-1.517067313194275,
-0.08359743654727936,
-1.0258989334106445,
0.5754418969154358,
-0.3030985891819,
0.7122008800506592,
0.04803530126810074,
0.030694857239723206,
0.3081076443195343,
1.3089213371276855,
3.403426170349121,
0.06810255348682404,
0.25830239057540894,
-0.0908200666308403,
-0.9789037704467773,
1.2128033638000488,
0.939342200756073,
-0.0965944230556488,
-0.5353326797485352,
-0.9236720204353333,
1.0922343730926514,
2.036224842071533,
1.0636638402938843,
-0.10197128355503082,
-0.85760498046875,
-0.7525764107704163,
0.10695906728506088,
0.302132785320282,
0.6457135677337646,
1.0049066543579102,
-0.09858915209770203,
0.0419473722577095,
1.5545029640197754,
1.117685317993164,
-0.45635542273521423,
0.40849795937538147,
-0.9832962155342102,
-0.3581847548484802,
0.4558601379394531,
0.18101491034030914,
0.03727973625063896,
0.46895015239715576,
-1.0973937511444092,
-0.2591489553451538,
-0.34931084513664246,
-0.8765802383422852,
-0.7178031802177429,
-0.4314797520637512,
-0.42357397079467773,
1.516516089439392,
0.14406949281692505,
-0.44721564650535583,
0.144668310880661,
-0.6598252654075623,
-0.15994341671466827,
-1.2625757455825806,
0.22619560360908508,
-0.29715266823768616,
0.0008595697581768036,
-0.10243389755487442,
1.861072301864624,
-0.9026471972465515,
-1.98001229763031,
0.12279562652111053,
0.3105636239051819,
-0.37406376004219055,
0.2562895119190216,
1.6707295179367065,
0.6869750022888184,
1.3143463134765625,
1.1935356855392456,
0.8373276591300964,
-0.6643142104148865,
-1.2774418592453003,
0.5445952415466309,
1.1378554105758667,
-1.2321884632110596,
0.7362762093544006,
-0.15777523815631866,
-0.43298572301864624,
0.6789652109146118,
1.549861192703247,
0.32021379470825195,
-2.1855905055999756,
0.9464059472084045,
-0.7664560675621033,
0.8429578542709351,
0.7260503768920898,
0.6653342247009277,
0.27045199275016785,
0.6693781614303589,
-1.2698276042938232,
-1.0635020732879639,
-0.8861461281776428,
-0.7022046446800232,
1.7589646577835083,
-0.193929061293602,
0.4135930836200714,
-0.16728995740413666,
-1.2178959846496582,
-0.09832961857318878,
0.6269291043281555,
0.4101422429084778,
-0.42429250478744507,
0.7582682967185974,
-0.5184478759765625,
-1.2488923072814941,
-1.2222522497177124,
-0.5482287406921387,
-0.895444929599762,
-0.91767418384552,
0.9011217355728149,
0.7302436828613281,
0.5051820874214172,
1.9570754766464233,
0.7688510417938232,
0.12834113836288452,
-2.7106165885925293,
0.9519063234329224,
0.20512591302394867,
0.0005215778946876526,
1.0613741874694824,
0.30427175760269165,
1.1262474060058594,
0.036111198365688324,
0.480984091758728,
-2.421140432357788,
2.272157907485962,
-0.22246026992797852,
0.6410552859306335,
-0.1791212111711502,
-0.1714293211698532,
1.0582828521728516,
0.5250701904296875,
0.5026729702949524,
-1.0267010927200317,
0.6259607672691345,
-0.691760241985321,
1.1045511960983276,
0.8817881941795349,
-0.7890010476112366,
0.02925875037908554,
1.3225138187408447,
0.4696236252784729,
-0.519905686378479,
-0.9462131857872009,
-0.7617583870887756,
0.9582419395446777,
1.7184871435165405,
-0.06022343784570694,
0.13872554898262024,
0.8803568482398987,
0.4979963004589081,
-1.2570738792419434,
-0.03427254036068916,
-0.7465394735336304,
-0.8323113322257996,
1.7018314599990845,
2.0442986488342285,
-0.16509957611560822,
0.020301032811403275,
-0.8198617696762085,
-1.3398972749710083,
0.7540846467018127,
-0.20003265142440796,
0.22279092669487,
0.48967376351356506,
-0.681515097618103,
1.2742615938186646,
0.5258406400680542,
0.9632222056388855,
0.07666978985071182,
0.44105014204978943,
0.29056310653686523,
-0.375714510679245,
-1.1608163118362427,
-0.46166113018989563,
-1.1514668464660645,
-2.3069803714752197,
0.5220313668251038,
-0.15073417127132416,
-1.5164097547531128,
0.023883838206529617,
-0.9149415493011475,
0.951291024684906,
-0.5451600551605225,
-0.9170194268226624,
-1.490433692932129,
0.4842691123485565,
-0.10786847770214081,
1.1055030822753906,
-1.5813579559326172,
-0.10396864265203476,
1.2168867588043213,
0.9066603183746338,
-0.5919228196144104,
0.9719661474227905,
0.32767432928085327,
1.04547119140625,
0.8092650771141052,
-0.33117756247520447,
0.5170092582702637,
0.08204106986522675,
-1.2106528282165527,
0.4933101236820221,
1.1814894676208496,
0.11674395203590393,
1.4212719202041626,
-0.44145113229751587,
-0.024174882099032402,
0.25483402609825134,
-0.42500126361846924,
-0.37829095125198364,
-0.5154972672462463,
0.5720119476318359,
0.24025975167751312,
-1.079209566116333,
-0.17528226971626282,
-0.11307888478040695,
-0.2064385861158371,
0.21280640363693237,
-1.4931960105895996,
-0.28210169076919556,
-0.3822837173938751,
-0.4114128053188324,
-1.2229328155517578,
0.020343750715255737,
1.2564138174057007,
-0.6353122591972351,
-0.19389384984970093,
0.39854171872138977,
0.40836822986602783,
0.6069535613059998,
0.8041912913322449,
-0.5904163122177124,
-0.464028537273407,
-0.3513842821121216,
-0.266406387090683,
0.2205265462398529,
1.157096028327942,
-0.11625387519598007,
-1.0148814916610718,
0.7357619404792786,
-0.5250295400619507,
0.07869961857795715,
1.8879050016403198,
-0.015713408589363098,
-0.7853544354438782,
0.35354718565940857,
-0.6689367890357971,
2.0205912590026855,
1.769407033920288,
1.1463147401809692,
-0.2617747485637665,
-0.8840662240982056,
0.6520087122917175,
-0.3229823410511017,
-0.15539997816085815,
0.8277779221534729,
0.4759269952774048,
-0.19135576486587524,
-1.3892476558685303,
0.3983214795589447,
1.4410029649734497,
-0.9449535012245178,
-0.8218284249305725,
0.13037464022636414,
-0.8748202919960022,
1.0357611179351807,
0.8008122444152832,
0.3791251480579376,
0.3848569691181183,
1.5085759162902832,
0.7897619009017944,
-0.5830574035644531,
0.6130512952804565,
0.4388166666030884,
-0.07274381816387177,
-2.1488068103790283,
-1.1315042972564697,
0.33426523208618164,
-0.2558114230632782,
-1.6999074220657349,
1.343685507774353,
-1.034403920173645,
-0.9098383188247681,
0.5526687502861023,
-0.06987372785806656,
1.1595699787139893,
0.3722257912158966,
1.6324483156204224,
2.008458375930786,
0.8537591695785522,
0.2886279821395874,
1.3347892761230469,
-0.07602481544017792,
-0.45470207929611206,
1.9691473245620728,
-0.49457409977912903,
0.5100213885307312,
0.9848899245262146,
-0.4721055030822754,
-0.9413639307022095,
-0.8040280938148499,
-1.32611882686615,
-0.6924737691879272,
1.0597070455551147,
0.043950971215963364,
-1.2621749639511108,
0.26005515456199646,
1.6531786918640137,
0.14693483710289001,
-0.3843289315700531,
0.7172317504882812,
0.396758496761322,
-0.9263324737548828,
-0.13004744052886963,
-0.9990461468696594,
0.5236508250236511,
-0.001281512901186943,
-0.20667441189289093,
0.2395220249891281,
0.5589317679405212,
1.3218625783920288,
-0.01637546718120575,
0.07259245216846466,
1.150046944618225,
-1.4613847732543945,
1.5790140628814697,
-0.5593695044517517,
0.30935904383659363,
-2.3851726055145264,
1.2785840034484863,
-0.6811651587486267,
1.8268612623214722,
-2.620434522628784,
0.330219030380249,
-0.5672618746757507,
-0.5044602155685425,
0.2047412246465683,
-0.1998102366924286,
0.32274165749549866,
-0.10266778618097305,
-1.0243569612503052,
-0.08277367800474167,
-0.7301852703094482,
0.4583387076854706,
1.0940130949020386,
1.3914529085159302,
-0.9721823930740356,
-0.1779947429895401,
-1.6548691987991333,
-0.11309554427862167,
-0.6751148700714111,
0.2927905023097992,
-1.9742356538772583,
-0.049047790467739105,
-1.8892107009887695,
-2.2977731227874756,
-1.5026956796646118,
-0.9214491844177246,
1.0281667709350586,
0.16708382964134216,
-1.1403928995132446,
1.1420351266860962,
-0.453678160905838,
-1.6329355239868164,
1.0969369411468506,
-2.0776515007019043
] |
https://github.com/huggingface/datasets/issues/5270 | When len(_URLS) > 16, download will hang | Debugging this would require quite some work in my opinion, and I've often failed to make reproducible examples, since it's pretty correlated to one's environment + hardware. So I wouldn't spend too much time on this unless we manage to reproduce this on another machine consistently.
Instead I'd encourage a more pragmatic fix that is: not create tons of processes (on regular machines it may slow things down anyway), and instead use multithreading by default. | ### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4 | 407 | 75 | When len(_URLS) > 16, download will hang
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
Debugging this would require quite some work in my opinion, and I've often failed to make reproducible examples, since it's pretty correlated to one's environment + hardware. So I wouldn't spend too much time on this unless we manage to reproduce this on another machine consistently.
Instead I'd encourage a more pragmatic fix that is: not create tons of processes (on regular machines it may slow things down anyway), and instead use multithreading by default. | [
-1.1831002235412598,
-0.7964313626289368,
-0.8935063481330872,
1.395546555519104,
-0.00040889717638492584,
-1.206254243850708,
0.03157553821802139,
-1.2821110486984253,
1.383806586265564,
-0.60782790184021,
0.3354189693927765,
-1.6794019937515259,
-0.023689469322562218,
-0.5440512895584106,
-0.7670542001724243,
-0.884920060634613,
-0.5127160549163818,
-0.7630585432052612,
0.9521726369857788,
2.589951753616333,
1.2574434280395508,
-1.437203288078308,
2.777752637863159,
0.7295539975166321,
-0.2443307787179947,
-0.9027097821235657,
0.6067115664482117,
0.09648631513118744,
-1.4490153789520264,
-0.3945408761501312,
-0.871597170829773,
-0.1746840924024582,
-0.591763973236084,
-0.2919817566871643,
0.1469988226890564,
0.3323148488998413,
-0.2715051770210266,
-0.3746410012245178,
-0.5586672425270081,
-0.8036198019981384,
0.48684653639793396,
-0.31234675645828247,
0.9470586180686951,
-0.2735808491706848,
1.6939886808395386,
-0.6806448698043823,
0.31420716643333435,
0.8416528105735779,
1.223264455795288,
0.05922895297408104,
0.14138714969158173,
0.5048596858978271,
0.29535651206970215,
-0.017778906971216202,
0.3947092592716217,
1.1999088525772095,
0.6012348532676697,
0.3058759570121765,
0.8210134506225586,
-2.0610032081604004,
1.1843948364257812,
-0.8874382972717285,
0.29790058732032776,
1.3475747108459473,
-0.7567381858825684,
0.3139544129371643,
-1.8475066423416138,
-0.11947757750749588,
0.685857355594635,
-2.1402676105499268,
0.31459882855415344,
-1.269043207168579,
-0.5658167004585266,
0.8756285309791565,
0.289573609828949,
-1.0418484210968018,
0.2283639907836914,
-0.6495102643966675,
1.0752880573272705,
0.38127100467681885,
1.2036117315292358,
-1.638258695602417,
0.025702595710754395,
-0.2268105447292328,
0.06455512344837189,
-1.33641517162323,
-1.517869472503662,
0.5689225196838379,
0.5447085499763489,
0.7261240482330322,
0.07436087727546692,
0.9225505590438843,
-0.9523410797119141,
0.9107556939125061,
-1.0376827716827393,
-1.7712987661361694,
-1.4604434967041016,
-2.3746256828308105,
-2.1955606937408447,
0.7634177207946777,
-0.34678804874420166,
-0.465222030878067,
1.9505841732025146,
-0.7243105173110962,
-1.731957197189331,
1.0375373363494873,
0.33181050419807434,
-0.040835339576005936,
2.3735568523406982,
0.2649112939834595,
-0.8015103936195374,
0.4597839415073395,
-0.7015070915222168,
0.8237481713294983,
-0.2030056267976761,
1.3507609367370605,
0.40522444248199463,
-0.8103618621826172,
1.5876621007919312,
-0.5756219625473022,
0.430961549282074,
-0.7024213075637817,
-0.5156911015510559,
-0.8026571869850159,
0.2351623922586441,
1.9293479919433594,
-0.3263534903526306,
1.5139697790145874,
-0.3763890266418457,
-1.6088308095932007,
-1.4306167364120483,
0.7805135250091553,
0.5881714820861816,
-0.8959589004516602,
0.07734467834234238,
-0.3372019827365875,
0.06787232309579849,
0.00640662107616663,
1.0280756950378418,
1.3048137426376343,
0.6135244369506836,
-0.3214500844478607,
-0.930023729801178,
0.17459721863269806,
-0.10879319906234741,
-0.9010105729103088,
-1.8532633781433105,
-0.20330195128917694,
0.14287185668945312,
0.7520173192024231,
-1.3716083765029907,
1.740256667137146,
0.8169207572937012,
2.0935797691345215,
0.9658703804016113,
-0.5011084079742432,
1.5355757474899292,
-0.015447476878762245,
1.9023624658584595,
-0.4902294874191284,
0.6212446689605713,
-0.4092009961605072,
-1.0458378791809082,
0.9618399739265442,
-0.26579737663269043,
-2.1125574111938477,
-0.7719725370407104,
-0.8265596032142639,
-0.21776238083839417,
-0.7554849982261658,
1.0102131366729736,
-0.2530413568019867,
-1.438345193862915,
0.2462361603975296,
-0.9090346097946167,
0.05446167662739754,
-1.212890386581421,
0.09106307476758957,
0.6145615577697754,
-0.5472444891929626,
0.058944035321474075,
-0.1258831024169922,
-1.3354840278625488,
-0.41867557168006897,
0.3246628940105438,
1.9621626138687134,
-0.6755498647689819,
0.868130087852478,
1.107319712638855,
-0.5697984099388123,
0.15954521298408508,
0.29868894815444946,
-0.32255345582962036,
0.8246430158615112,
-1.2923959493637085,
-0.47928953170776367,
1.0494937896728516,
0.0813538208603859,
-0.5707858800888062,
1.4676450490951538,
0.8892377614974976,
-1.1241282224655151,
-0.2852725386619568,
-0.13689029216766357,
-0.9463268518447876,
0.08814161270856857,
-1.6691404581069946,
-0.1828915923833847,
0.374592125415802,
-1.4908896684646606,
-0.5013982653617859,
-0.2881675362586975,
1.240898847579956,
-0.1324899047613144,
1.5040298700332642,
-0.3950502574443817,
-0.18533028662204742,
-0.3283054828643799,
-0.4687420427799225,
0.07123174518346786,
-0.3613949716091156,
-0.5757715702056885,
0.17032763361930847,
-0.8076232075691223,
0.28251463174819946,
1.472819447517395,
0.2513711750507355,
0.1537964642047882,
0.3608832359313965,
1.127221703529358,
0.3427889943122864,
0.15371933579444885,
-0.7920228242874146,
-1.5274879932403564,
2.1009762287139893,
-1.5878227949142456,
1.9476054906845093,
0.858500063419342,
0.17175360023975372,
-1.959407925605774,
-1.8117363452911377,
1.317237377166748,
1.1090577840805054,
2.3706159591674805,
0.674962043762207,
0.446479469537735,
-0.7635929584503174,
-0.6922028660774231,
0.2812958359718323,
-0.9376507997512817,
-0.649767279624939,
0.3166142404079437,
2.464780330657959,
1.7856800556182861,
-0.4189006984233856,
-0.15967263281345367,
-0.6262452006340027,
1.4282234907150269,
-0.09689433127641678,
0.0699738934636116,
2.100438356399536,
-0.08279190957546234,
-1.0520299673080444,
1.2213975191116333,
-2.40228533744812,
0.18638475239276886,
2.0038068294525146,
0.385577529668808,
0.18262532353401184,
-1.4312424659729004,
-0.7366765141487122,
-0.4482172429561615,
-0.4153901934623718,
-1.214919090270996,
0.5921441316604614,
-0.3323526382446289,
-0.9459272623062134,
-1.5041134357452393,
0.03908727690577507,
-1.1575103998184204,
-1.718449592590332,
0.34433141350746155,
1.8782955408096313,
2.139071226119995,
-0.7722951173782349,
1.5654689073562622,
-0.3884638249874115,
-0.009649472311139107,
1.2450141906738281,
1.2252087593078613,
3.0376832485198975,
1.8719390630722046,
-1.2110563516616821,
0.7519481182098389,
-0.19551293551921844,
-0.450099378824234,
0.9612755179405212,
-1.157013177871704,
1.1570600271224976,
-0.0924561470746994,
-1.214854121208191,
-1.0838617086410522,
1.0839601755142212,
0.43099433183670044,
0.03717423975467682,
-0.5573232173919678,
1.3323854207992554,
-0.025654081255197525,
1.2929260730743408,
0.5806914567947388,
-0.2504194676876068,
0.3932234048843384,
-0.34922581911087036,
-0.5330519080162048,
1.6475927829742432,
0.18890710175037384,
-1.4765536785125732,
-2.5965514183044434,
-0.27959978580474854,
-0.8229559659957886,
0.0041359104216098785,
-0.703359842300415,
-1.2362346649169922,
1.7026920318603516,
0.2966614067554474,
-1.3202173709869385,
-0.3493804633617401,
-0.3407231271266937,
-0.5138747096061707,
2.5879507064819336,
-1.5280481576919556,
-0.1203959658741951,
-0.9189705848693848,
-0.4795127511024475,
1.6378198862075806,
-1.0806304216384888,
-0.28816255927085876,
-1.1530448198318481,
-0.5490396022796631,
-1.220895528793335,
-0.5973449349403381,
0.05018420144915581,
-0.8489276766777039,
0.8270252346992493,
0.15013761818408966,
-1.042029619216919,
-0.23358474671840668,
-0.9661553502082825,
0.99484783411026,
-0.0202823244035244,
0.25796160101890564,
1.9101306200027466,
0.3773961067199707,
-0.3061896562576294,
0.6646486520767212,
1.2470067739486694,
0.6454036831855774,
-0.7564278841018677,
-0.05532296001911163,
-0.5794935822486877,
0.23824508488178253,
-1.4058136940002441,
0.27192679047584534,
-2.8441531658172607,
0.7640033960342407,
-0.09392907470464706,
0.012839307077229023,
0.07442496716976166,
-1.2524473667144775,
1.3234585523605347,
2.671555280685425,
-1.1666450500488281,
0.5811202526092529,
0.2662331759929657,
1.1149733066558838,
-1.456034541130066,
0.2992223799228668,
-0.3641814589500427,
2.0640408992767334,
0.015983037650585175,
1.2287535667419434,
-0.5529026985168457,
-2.2881100177764893,
0.6858084201812744,
-1.2282159328460693,
-1.1216344833374023,
0.8393670916557312,
-0.780830979347229,
0.24475856125354767,
-1.5465342998504639,
-0.34486642479896545,
-1.1308025121688843,
-1.178510069847107,
0.6194885969161987,
0.20555122196674347,
0.5175097584724426,
-0.5384711027145386,
0.2962762415409088,
-2.4004058837890625,
-1.517067313194275,
-0.08359743654727936,
-1.0258989334106445,
0.5754418969154358,
-0.3030985891819,
0.7122008800506592,
0.04803530126810074,
0.030694857239723206,
0.3081076443195343,
1.3089213371276855,
3.403426170349121,
0.06810255348682404,
0.25830239057540894,
-0.0908200666308403,
-0.9789037704467773,
1.2128033638000488,
0.939342200756073,
-0.0965944230556488,
-0.5353326797485352,
-0.9236720204353333,
1.0922343730926514,
2.036224842071533,
1.0636638402938843,
-0.10197128355503082,
-0.85760498046875,
-0.7525764107704163,
0.10695906728506088,
0.302132785320282,
0.6457135677337646,
1.0049066543579102,
-0.09858915209770203,
0.0419473722577095,
1.5545029640197754,
1.117685317993164,
-0.45635542273521423,
0.40849795937538147,
-0.9832962155342102,
-0.3581847548484802,
0.4558601379394531,
0.18101491034030914,
0.03727973625063896,
0.46895015239715576,
-1.0973937511444092,
-0.2591489553451538,
-0.34931084513664246,
-0.8765802383422852,
-0.7178031802177429,
-0.4314797520637512,
-0.42357397079467773,
1.516516089439392,
0.14406949281692505,
-0.44721564650535583,
0.144668310880661,
-0.6598252654075623,
-0.15994341671466827,
-1.2625757455825806,
0.22619560360908508,
-0.29715266823768616,
0.0008595697581768036,
-0.10243389755487442,
1.861072301864624,
-0.9026471972465515,
-1.98001229763031,
0.12279562652111053,
0.3105636239051819,
-0.37406376004219055,
0.2562895119190216,
1.6707295179367065,
0.6869750022888184,
1.3143463134765625,
1.1935356855392456,
0.8373276591300964,
-0.6643142104148865,
-1.2774418592453003,
0.5445952415466309,
1.1378554105758667,
-1.2321884632110596,
0.7362762093544006,
-0.15777523815631866,
-0.43298572301864624,
0.6789652109146118,
1.549861192703247,
0.32021379470825195,
-2.1855905055999756,
0.9464059472084045,
-0.7664560675621033,
0.8429578542709351,
0.7260503768920898,
0.6653342247009277,
0.27045199275016785,
0.6693781614303589,
-1.2698276042938232,
-1.0635020732879639,
-0.8861461281776428,
-0.7022046446800232,
1.7589646577835083,
-0.193929061293602,
0.4135930836200714,
-0.16728995740413666,
-1.2178959846496582,
-0.09832961857318878,
0.6269291043281555,
0.4101422429084778,
-0.42429250478744507,
0.7582682967185974,
-0.5184478759765625,
-1.2488923072814941,
-1.2222522497177124,
-0.5482287406921387,
-0.895444929599762,
-0.91767418384552,
0.9011217355728149,
0.7302436828613281,
0.5051820874214172,
1.9570754766464233,
0.7688510417938232,
0.12834113836288452,
-2.7106165885925293,
0.9519063234329224,
0.20512591302394867,
0.0005215778946876526,
1.0613741874694824,
0.30427175760269165,
1.1262474060058594,
0.036111198365688324,
0.480984091758728,
-2.421140432357788,
2.272157907485962,
-0.22246026992797852,
0.6410552859306335,
-0.1791212111711502,
-0.1714293211698532,
1.0582828521728516,
0.5250701904296875,
0.5026729702949524,
-1.0267010927200317,
0.6259607672691345,
-0.691760241985321,
1.1045511960983276,
0.8817881941795349,
-0.7890010476112366,
0.02925875037908554,
1.3225138187408447,
0.4696236252784729,
-0.519905686378479,
-0.9462131857872009,
-0.7617583870887756,
0.9582419395446777,
1.7184871435165405,
-0.06022343784570694,
0.13872554898262024,
0.8803568482398987,
0.4979963004589081,
-1.2570738792419434,
-0.03427254036068916,
-0.7465394735336304,
-0.8323113322257996,
1.7018314599990845,
2.0442986488342285,
-0.16509957611560822,
0.020301032811403275,
-0.8198617696762085,
-1.3398972749710083,
0.7540846467018127,
-0.20003265142440796,
0.22279092669487,
0.48967376351356506,
-0.681515097618103,
1.2742615938186646,
0.5258406400680542,
0.9632222056388855,
0.07666978985071182,
0.44105014204978943,
0.29056310653686523,
-0.375714510679245,
-1.1608163118362427,
-0.46166113018989563,
-1.1514668464660645,
-2.3069803714752197,
0.5220313668251038,
-0.15073417127132416,
-1.5164097547531128,
0.023883838206529617,
-0.9149415493011475,
0.951291024684906,
-0.5451600551605225,
-0.9170194268226624,
-1.490433692932129,
0.4842691123485565,
-0.10786847770214081,
1.1055030822753906,
-1.5813579559326172,
-0.10396864265203476,
1.2168867588043213,
0.9066603183746338,
-0.5919228196144104,
0.9719661474227905,
0.32767432928085327,
1.04547119140625,
0.8092650771141052,
-0.33117756247520447,
0.5170092582702637,
0.08204106986522675,
-1.2106528282165527,
0.4933101236820221,
1.1814894676208496,
0.11674395203590393,
1.4212719202041626,
-0.44145113229751587,
-0.024174882099032402,
0.25483402609825134,
-0.42500126361846924,
-0.37829095125198364,
-0.5154972672462463,
0.5720119476318359,
0.24025975167751312,
-1.079209566116333,
-0.17528226971626282,
-0.11307888478040695,
-0.2064385861158371,
0.21280640363693237,
-1.4931960105895996,
-0.28210169076919556,
-0.3822837173938751,
-0.4114128053188324,
-1.2229328155517578,
0.020343750715255737,
1.2564138174057007,
-0.6353122591972351,
-0.19389384984970093,
0.39854171872138977,
0.40836822986602783,
0.6069535613059998,
0.8041912913322449,
-0.5904163122177124,
-0.464028537273407,
-0.3513842821121216,
-0.266406387090683,
0.2205265462398529,
1.157096028327942,
-0.11625387519598007,
-1.0148814916610718,
0.7357619404792786,
-0.5250295400619507,
0.07869961857795715,
1.8879050016403198,
-0.015713408589363098,
-0.7853544354438782,
0.35354718565940857,
-0.6689367890357971,
2.0205912590026855,
1.769407033920288,
1.1463147401809692,
-0.2617747485637665,
-0.8840662240982056,
0.6520087122917175,
-0.3229823410511017,
-0.15539997816085815,
0.8277779221534729,
0.4759269952774048,
-0.19135576486587524,
-1.3892476558685303,
0.3983214795589447,
1.4410029649734497,
-0.9449535012245178,
-0.8218284249305725,
0.13037464022636414,
-0.8748202919960022,
1.0357611179351807,
0.8008122444152832,
0.3791251480579376,
0.3848569691181183,
1.5085759162902832,
0.7897619009017944,
-0.5830574035644531,
0.6130512952804565,
0.4388166666030884,
-0.07274381816387177,
-2.1488068103790283,
-1.1315042972564697,
0.33426523208618164,
-0.2558114230632782,
-1.6999074220657349,
1.343685507774353,
-1.034403920173645,
-0.9098383188247681,
0.5526687502861023,
-0.06987372785806656,
1.1595699787139893,
0.3722257912158966,
1.6324483156204224,
2.008458375930786,
0.8537591695785522,
0.2886279821395874,
1.3347892761230469,
-0.07602481544017792,
-0.45470207929611206,
1.9691473245620728,
-0.49457409977912903,
0.5100213885307312,
0.9848899245262146,
-0.4721055030822754,
-0.9413639307022095,
-0.8040280938148499,
-1.32611882686615,
-0.6924737691879272,
1.0597070455551147,
0.043950971215963364,
-1.2621749639511108,
0.26005515456199646,
1.6531786918640137,
0.14693483710289001,
-0.3843289315700531,
0.7172317504882812,
0.396758496761322,
-0.9263324737548828,
-0.13004744052886963,
-0.9990461468696594,
0.5236508250236511,
-0.001281512901186943,
-0.20667441189289093,
0.2395220249891281,
0.5589317679405212,
1.3218625783920288,
-0.01637546718120575,
0.07259245216846466,
1.150046944618225,
-1.4613847732543945,
1.5790140628814697,
-0.5593695044517517,
0.30935904383659363,
-2.3851726055145264,
1.2785840034484863,
-0.6811651587486267,
1.8268612623214722,
-2.620434522628784,
0.330219030380249,
-0.5672618746757507,
-0.5044602155685425,
0.2047412246465683,
-0.1998102366924286,
0.32274165749549866,
-0.10266778618097305,
-1.0243569612503052,
-0.08277367800474167,
-0.7301852703094482,
0.4583387076854706,
1.0940130949020386,
1.3914529085159302,
-0.9721823930740356,
-0.1779947429895401,
-1.6548691987991333,
-0.11309554427862167,
-0.6751148700714111,
0.2927905023097992,
-1.9742356538772583,
-0.049047790467739105,
-1.8892107009887695,
-2.2977731227874756,
-1.5026956796646118,
-0.9214491844177246,
1.0281667709350586,
0.16708382964134216,
-1.1403928995132446,
1.1420351266860962,
-0.453678160905838,
-1.6329355239868164,
1.0969369411468506,
-2.0776515007019043
] |
https://github.com/huggingface/datasets/issues/5270 | When len(_URLS) > 16, download will hang | I am not expert of python. I hear about python has GIL, which result in multi processing is worse than multi threading. So I am not sure if this change makes sense?
And if this is a bug of multi processing, why not report to upstream and let them fix? And even if change it to multi threading, how can we make sure it can truly fix this problem? | ### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4 | 407 | 69 | When len(_URLS) > 16, download will hang
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
I am not expert of python. I hear about python has GIL, which result in multi processing is worse than multi threading. So I am not sure if this change makes sense?
And if this is a bug of multi processing, why not report to upstream and let them fix? And even if change it to multi threading, how can we make sure it can truly fix this problem? | [
-1.1831002235412598,
-0.7964313626289368,
-0.8935063481330872,
1.395546555519104,
-0.00040889717638492584,
-1.206254243850708,
0.03157553821802139,
-1.2821110486984253,
1.383806586265564,
-0.60782790184021,
0.3354189693927765,
-1.6794019937515259,
-0.023689469322562218,
-0.5440512895584106,
-0.7670542001724243,
-0.884920060634613,
-0.5127160549163818,
-0.7630585432052612,
0.9521726369857788,
2.589951753616333,
1.2574434280395508,
-1.437203288078308,
2.777752637863159,
0.7295539975166321,
-0.2443307787179947,
-0.9027097821235657,
0.6067115664482117,
0.09648631513118744,
-1.4490153789520264,
-0.3945408761501312,
-0.871597170829773,
-0.1746840924024582,
-0.591763973236084,
-0.2919817566871643,
0.1469988226890564,
0.3323148488998413,
-0.2715051770210266,
-0.3746410012245178,
-0.5586672425270081,
-0.8036198019981384,
0.48684653639793396,
-0.31234675645828247,
0.9470586180686951,
-0.2735808491706848,
1.6939886808395386,
-0.6806448698043823,
0.31420716643333435,
0.8416528105735779,
1.223264455795288,
0.05922895297408104,
0.14138714969158173,
0.5048596858978271,
0.29535651206970215,
-0.017778906971216202,
0.3947092592716217,
1.1999088525772095,
0.6012348532676697,
0.3058759570121765,
0.8210134506225586,
-2.0610032081604004,
1.1843948364257812,
-0.8874382972717285,
0.29790058732032776,
1.3475747108459473,
-0.7567381858825684,
0.3139544129371643,
-1.8475066423416138,
-0.11947757750749588,
0.685857355594635,
-2.1402676105499268,
0.31459882855415344,
-1.269043207168579,
-0.5658167004585266,
0.8756285309791565,
0.289573609828949,
-1.0418484210968018,
0.2283639907836914,
-0.6495102643966675,
1.0752880573272705,
0.38127100467681885,
1.2036117315292358,
-1.638258695602417,
0.025702595710754395,
-0.2268105447292328,
0.06455512344837189,
-1.33641517162323,
-1.517869472503662,
0.5689225196838379,
0.5447085499763489,
0.7261240482330322,
0.07436087727546692,
0.9225505590438843,
-0.9523410797119141,
0.9107556939125061,
-1.0376827716827393,
-1.7712987661361694,
-1.4604434967041016,
-2.3746256828308105,
-2.1955606937408447,
0.7634177207946777,
-0.34678804874420166,
-0.465222030878067,
1.9505841732025146,
-0.7243105173110962,
-1.731957197189331,
1.0375373363494873,
0.33181050419807434,
-0.040835339576005936,
2.3735568523406982,
0.2649112939834595,
-0.8015103936195374,
0.4597839415073395,
-0.7015070915222168,
0.8237481713294983,
-0.2030056267976761,
1.3507609367370605,
0.40522444248199463,
-0.8103618621826172,
1.5876621007919312,
-0.5756219625473022,
0.430961549282074,
-0.7024213075637817,
-0.5156911015510559,
-0.8026571869850159,
0.2351623922586441,
1.9293479919433594,
-0.3263534903526306,
1.5139697790145874,
-0.3763890266418457,
-1.6088308095932007,
-1.4306167364120483,
0.7805135250091553,
0.5881714820861816,
-0.8959589004516602,
0.07734467834234238,
-0.3372019827365875,
0.06787232309579849,
0.00640662107616663,
1.0280756950378418,
1.3048137426376343,
0.6135244369506836,
-0.3214500844478607,
-0.930023729801178,
0.17459721863269806,
-0.10879319906234741,
-0.9010105729103088,
-1.8532633781433105,
-0.20330195128917694,
0.14287185668945312,
0.7520173192024231,
-1.3716083765029907,
1.740256667137146,
0.8169207572937012,
2.0935797691345215,
0.9658703804016113,
-0.5011084079742432,
1.5355757474899292,
-0.015447476878762245,
1.9023624658584595,
-0.4902294874191284,
0.6212446689605713,
-0.4092009961605072,
-1.0458378791809082,
0.9618399739265442,
-0.26579737663269043,
-2.1125574111938477,
-0.7719725370407104,
-0.8265596032142639,
-0.21776238083839417,
-0.7554849982261658,
1.0102131366729736,
-0.2530413568019867,
-1.438345193862915,
0.2462361603975296,
-0.9090346097946167,
0.05446167662739754,
-1.212890386581421,
0.09106307476758957,
0.6145615577697754,
-0.5472444891929626,
0.058944035321474075,
-0.1258831024169922,
-1.3354840278625488,
-0.41867557168006897,
0.3246628940105438,
1.9621626138687134,
-0.6755498647689819,
0.868130087852478,
1.107319712638855,
-0.5697984099388123,
0.15954521298408508,
0.29868894815444946,
-0.32255345582962036,
0.8246430158615112,
-1.2923959493637085,
-0.47928953170776367,
1.0494937896728516,
0.0813538208603859,
-0.5707858800888062,
1.4676450490951538,
0.8892377614974976,
-1.1241282224655151,
-0.2852725386619568,
-0.13689029216766357,
-0.9463268518447876,
0.08814161270856857,
-1.6691404581069946,
-0.1828915923833847,
0.374592125415802,
-1.4908896684646606,
-0.5013982653617859,
-0.2881675362586975,
1.240898847579956,
-0.1324899047613144,
1.5040298700332642,
-0.3950502574443817,
-0.18533028662204742,
-0.3283054828643799,
-0.4687420427799225,
0.07123174518346786,
-0.3613949716091156,
-0.5757715702056885,
0.17032763361930847,
-0.8076232075691223,
0.28251463174819946,
1.472819447517395,
0.2513711750507355,
0.1537964642047882,
0.3608832359313965,
1.127221703529358,
0.3427889943122864,
0.15371933579444885,
-0.7920228242874146,
-1.5274879932403564,
2.1009762287139893,
-1.5878227949142456,
1.9476054906845093,
0.858500063419342,
0.17175360023975372,
-1.959407925605774,
-1.8117363452911377,
1.317237377166748,
1.1090577840805054,
2.3706159591674805,
0.674962043762207,
0.446479469537735,
-0.7635929584503174,
-0.6922028660774231,
0.2812958359718323,
-0.9376507997512817,
-0.649767279624939,
0.3166142404079437,
2.464780330657959,
1.7856800556182861,
-0.4189006984233856,
-0.15967263281345367,
-0.6262452006340027,
1.4282234907150269,
-0.09689433127641678,
0.0699738934636116,
2.100438356399536,
-0.08279190957546234,
-1.0520299673080444,
1.2213975191116333,
-2.40228533744812,
0.18638475239276886,
2.0038068294525146,
0.385577529668808,
0.18262532353401184,
-1.4312424659729004,
-0.7366765141487122,
-0.4482172429561615,
-0.4153901934623718,
-1.214919090270996,
0.5921441316604614,
-0.3323526382446289,
-0.9459272623062134,
-1.5041134357452393,
0.03908727690577507,
-1.1575103998184204,
-1.718449592590332,
0.34433141350746155,
1.8782955408096313,
2.139071226119995,
-0.7722951173782349,
1.5654689073562622,
-0.3884638249874115,
-0.009649472311139107,
1.2450141906738281,
1.2252087593078613,
3.0376832485198975,
1.8719390630722046,
-1.2110563516616821,
0.7519481182098389,
-0.19551293551921844,
-0.450099378824234,
0.9612755179405212,
-1.157013177871704,
1.1570600271224976,
-0.0924561470746994,
-1.214854121208191,
-1.0838617086410522,
1.0839601755142212,
0.43099433183670044,
0.03717423975467682,
-0.5573232173919678,
1.3323854207992554,
-0.025654081255197525,
1.2929260730743408,
0.5806914567947388,
-0.2504194676876068,
0.3932234048843384,
-0.34922581911087036,
-0.5330519080162048,
1.6475927829742432,
0.18890710175037384,
-1.4765536785125732,
-2.5965514183044434,
-0.27959978580474854,
-0.8229559659957886,
0.0041359104216098785,
-0.703359842300415,
-1.2362346649169922,
1.7026920318603516,
0.2966614067554474,
-1.3202173709869385,
-0.3493804633617401,
-0.3407231271266937,
-0.5138747096061707,
2.5879507064819336,
-1.5280481576919556,
-0.1203959658741951,
-0.9189705848693848,
-0.4795127511024475,
1.6378198862075806,
-1.0806304216384888,
-0.28816255927085876,
-1.1530448198318481,
-0.5490396022796631,
-1.220895528793335,
-0.5973449349403381,
0.05018420144915581,
-0.8489276766777039,
0.8270252346992493,
0.15013761818408966,
-1.042029619216919,
-0.23358474671840668,
-0.9661553502082825,
0.99484783411026,
-0.0202823244035244,
0.25796160101890564,
1.9101306200027466,
0.3773961067199707,
-0.3061896562576294,
0.6646486520767212,
1.2470067739486694,
0.6454036831855774,
-0.7564278841018677,
-0.05532296001911163,
-0.5794935822486877,
0.23824508488178253,
-1.4058136940002441,
0.27192679047584534,
-2.8441531658172607,
0.7640033960342407,
-0.09392907470464706,
0.012839307077229023,
0.07442496716976166,
-1.2524473667144775,
1.3234585523605347,
2.671555280685425,
-1.1666450500488281,
0.5811202526092529,
0.2662331759929657,
1.1149733066558838,
-1.456034541130066,
0.2992223799228668,
-0.3641814589500427,
2.0640408992767334,
0.015983037650585175,
1.2287535667419434,
-0.5529026985168457,
-2.2881100177764893,
0.6858084201812744,
-1.2282159328460693,
-1.1216344833374023,
0.8393670916557312,
-0.780830979347229,
0.24475856125354767,
-1.5465342998504639,
-0.34486642479896545,
-1.1308025121688843,
-1.178510069847107,
0.6194885969161987,
0.20555122196674347,
0.5175097584724426,
-0.5384711027145386,
0.2962762415409088,
-2.4004058837890625,
-1.517067313194275,
-0.08359743654727936,
-1.0258989334106445,
0.5754418969154358,
-0.3030985891819,
0.7122008800506592,
0.04803530126810074,
0.030694857239723206,
0.3081076443195343,
1.3089213371276855,
3.403426170349121,
0.06810255348682404,
0.25830239057540894,
-0.0908200666308403,
-0.9789037704467773,
1.2128033638000488,
0.939342200756073,
-0.0965944230556488,
-0.5353326797485352,
-0.9236720204353333,
1.0922343730926514,
2.036224842071533,
1.0636638402938843,
-0.10197128355503082,
-0.85760498046875,
-0.7525764107704163,
0.10695906728506088,
0.302132785320282,
0.6457135677337646,
1.0049066543579102,
-0.09858915209770203,
0.0419473722577095,
1.5545029640197754,
1.117685317993164,
-0.45635542273521423,
0.40849795937538147,
-0.9832962155342102,
-0.3581847548484802,
0.4558601379394531,
0.18101491034030914,
0.03727973625063896,
0.46895015239715576,
-1.0973937511444092,
-0.2591489553451538,
-0.34931084513664246,
-0.8765802383422852,
-0.7178031802177429,
-0.4314797520637512,
-0.42357397079467773,
1.516516089439392,
0.14406949281692505,
-0.44721564650535583,
0.144668310880661,
-0.6598252654075623,
-0.15994341671466827,
-1.2625757455825806,
0.22619560360908508,
-0.29715266823768616,
0.0008595697581768036,
-0.10243389755487442,
1.861072301864624,
-0.9026471972465515,
-1.98001229763031,
0.12279562652111053,
0.3105636239051819,
-0.37406376004219055,
0.2562895119190216,
1.6707295179367065,
0.6869750022888184,
1.3143463134765625,
1.1935356855392456,
0.8373276591300964,
-0.6643142104148865,
-1.2774418592453003,
0.5445952415466309,
1.1378554105758667,
-1.2321884632110596,
0.7362762093544006,
-0.15777523815631866,
-0.43298572301864624,
0.6789652109146118,
1.549861192703247,
0.32021379470825195,
-2.1855905055999756,
0.9464059472084045,
-0.7664560675621033,
0.8429578542709351,
0.7260503768920898,
0.6653342247009277,
0.27045199275016785,
0.6693781614303589,
-1.2698276042938232,
-1.0635020732879639,
-0.8861461281776428,
-0.7022046446800232,
1.7589646577835083,
-0.193929061293602,
0.4135930836200714,
-0.16728995740413666,
-1.2178959846496582,
-0.09832961857318878,
0.6269291043281555,
0.4101422429084778,
-0.42429250478744507,
0.7582682967185974,
-0.5184478759765625,
-1.2488923072814941,
-1.2222522497177124,
-0.5482287406921387,
-0.895444929599762,
-0.91767418384552,
0.9011217355728149,
0.7302436828613281,
0.5051820874214172,
1.9570754766464233,
0.7688510417938232,
0.12834113836288452,
-2.7106165885925293,
0.9519063234329224,
0.20512591302394867,
0.0005215778946876526,
1.0613741874694824,
0.30427175760269165,
1.1262474060058594,
0.036111198365688324,
0.480984091758728,
-2.421140432357788,
2.272157907485962,
-0.22246026992797852,
0.6410552859306335,
-0.1791212111711502,
-0.1714293211698532,
1.0582828521728516,
0.5250701904296875,
0.5026729702949524,
-1.0267010927200317,
0.6259607672691345,
-0.691760241985321,
1.1045511960983276,
0.8817881941795349,
-0.7890010476112366,
0.02925875037908554,
1.3225138187408447,
0.4696236252784729,
-0.519905686378479,
-0.9462131857872009,
-0.7617583870887756,
0.9582419395446777,
1.7184871435165405,
-0.06022343784570694,
0.13872554898262024,
0.8803568482398987,
0.4979963004589081,
-1.2570738792419434,
-0.03427254036068916,
-0.7465394735336304,
-0.8323113322257996,
1.7018314599990845,
2.0442986488342285,
-0.16509957611560822,
0.020301032811403275,
-0.8198617696762085,
-1.3398972749710083,
0.7540846467018127,
-0.20003265142440796,
0.22279092669487,
0.48967376351356506,
-0.681515097618103,
1.2742615938186646,
0.5258406400680542,
0.9632222056388855,
0.07666978985071182,
0.44105014204978943,
0.29056310653686523,
-0.375714510679245,
-1.1608163118362427,
-0.46166113018989563,
-1.1514668464660645,
-2.3069803714752197,
0.5220313668251038,
-0.15073417127132416,
-1.5164097547531128,
0.023883838206529617,
-0.9149415493011475,
0.951291024684906,
-0.5451600551605225,
-0.9170194268226624,
-1.490433692932129,
0.4842691123485565,
-0.10786847770214081,
1.1055030822753906,
-1.5813579559326172,
-0.10396864265203476,
1.2168867588043213,
0.9066603183746338,
-0.5919228196144104,
0.9719661474227905,
0.32767432928085327,
1.04547119140625,
0.8092650771141052,
-0.33117756247520447,
0.5170092582702637,
0.08204106986522675,
-1.2106528282165527,
0.4933101236820221,
1.1814894676208496,
0.11674395203590393,
1.4212719202041626,
-0.44145113229751587,
-0.024174882099032402,
0.25483402609825134,
-0.42500126361846924,
-0.37829095125198364,
-0.5154972672462463,
0.5720119476318359,
0.24025975167751312,
-1.079209566116333,
-0.17528226971626282,
-0.11307888478040695,
-0.2064385861158371,
0.21280640363693237,
-1.4931960105895996,
-0.28210169076919556,
-0.3822837173938751,
-0.4114128053188324,
-1.2229328155517578,
0.020343750715255737,
1.2564138174057007,
-0.6353122591972351,
-0.19389384984970093,
0.39854171872138977,
0.40836822986602783,
0.6069535613059998,
0.8041912913322449,
-0.5904163122177124,
-0.464028537273407,
-0.3513842821121216,
-0.266406387090683,
0.2205265462398529,
1.157096028327942,
-0.11625387519598007,
-1.0148814916610718,
0.7357619404792786,
-0.5250295400619507,
0.07869961857795715,
1.8879050016403198,
-0.015713408589363098,
-0.7853544354438782,
0.35354718565940857,
-0.6689367890357971,
2.0205912590026855,
1.769407033920288,
1.1463147401809692,
-0.2617747485637665,
-0.8840662240982056,
0.6520087122917175,
-0.3229823410511017,
-0.15539997816085815,
0.8277779221534729,
0.4759269952774048,
-0.19135576486587524,
-1.3892476558685303,
0.3983214795589447,
1.4410029649734497,
-0.9449535012245178,
-0.8218284249305725,
0.13037464022636414,
-0.8748202919960022,
1.0357611179351807,
0.8008122444152832,
0.3791251480579376,
0.3848569691181183,
1.5085759162902832,
0.7897619009017944,
-0.5830574035644531,
0.6130512952804565,
0.4388166666030884,
-0.07274381816387177,
-2.1488068103790283,
-1.1315042972564697,
0.33426523208618164,
-0.2558114230632782,
-1.6999074220657349,
1.343685507774353,
-1.034403920173645,
-0.9098383188247681,
0.5526687502861023,
-0.06987372785806656,
1.1595699787139893,
0.3722257912158966,
1.6324483156204224,
2.008458375930786,
0.8537591695785522,
0.2886279821395874,
1.3347892761230469,
-0.07602481544017792,
-0.45470207929611206,
1.9691473245620728,
-0.49457409977912903,
0.5100213885307312,
0.9848899245262146,
-0.4721055030822754,
-0.9413639307022095,
-0.8040280938148499,
-1.32611882686615,
-0.6924737691879272,
1.0597070455551147,
0.043950971215963364,
-1.2621749639511108,
0.26005515456199646,
1.6531786918640137,
0.14693483710289001,
-0.3843289315700531,
0.7172317504882812,
0.396758496761322,
-0.9263324737548828,
-0.13004744052886963,
-0.9990461468696594,
0.5236508250236511,
-0.001281512901186943,
-0.20667441189289093,
0.2395220249891281,
0.5589317679405212,
1.3218625783920288,
-0.01637546718120575,
0.07259245216846466,
1.150046944618225,
-1.4613847732543945,
1.5790140628814697,
-0.5593695044517517,
0.30935904383659363,
-2.3851726055145264,
1.2785840034484863,
-0.6811651587486267,
1.8268612623214722,
-2.620434522628784,
0.330219030380249,
-0.5672618746757507,
-0.5044602155685425,
0.2047412246465683,
-0.1998102366924286,
0.32274165749549866,
-0.10266778618097305,
-1.0243569612503052,
-0.08277367800474167,
-0.7301852703094482,
0.4583387076854706,
1.0940130949020386,
1.3914529085159302,
-0.9721823930740356,
-0.1779947429895401,
-1.6548691987991333,
-0.11309554427862167,
-0.6751148700714111,
0.2927905023097992,
-1.9742356538772583,
-0.049047790467739105,
-1.8892107009887695,
-2.2977731227874756,
-1.5026956796646118,
-0.9214491844177246,
1.0281667709350586,
0.16708382964134216,
-1.1403928995132446,
1.1420351266860962,
-0.453678160905838,
-1.6329355239868164,
1.0969369411468506,
-2.0776515007019043
] |
https://github.com/huggingface/datasets/issues/5270 | When len(_URLS) > 16, download will hang | > Just my 2c. No offense.
sure np ^^
> I hear about python has GIL, which result in multi processing is worse than multi threading. So I am not sure if this change makes sense?
Here the bottleneck speed is the bandwidth used to download the files. When downloading, the GIL is released, so multithreading gives the same speed as multiprocessing.
> And if this is a bug of multi processing, why not report to upstream and let them fix?
Usually to fix a bug it's important to be able to reproduce it. This way you can share it, experiment with it, and then make sure it's fixed. Here I'm afraid it's not easy to reproduce. Though I think that spawning too many processes for your machine can lead to this kind of issues.
> And even if change it to multi threading, how can we make sure it can truly fix this problem?
Multithreading is more robust in python because IIRC there are less locks involved which are often the cause of code hanging for no reason. | ### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4 | 407 | 179 | When len(_URLS) > 16, download will hang
### Describe the bug
```python
In [9]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 1.88MB/s]
[11/19/22 22:16:21] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/bd1cc3434212e3e654f7e16ad618f8a1470b5982b086c91b1d6bc7187183c6e9...
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:02<00:00, 239kB/s]
#10: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.06s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 534k/534k [00:02<00:00, 193kB/s]
#14: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.37s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 692k/692k [00:02<00:00, 269kB/s]
#12: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.44s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 566k/566k [00:02<00:00, 210kB/s]
#5: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 613k/613k [00:02<00:00, 235kB/s]
#13: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.53s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 786k/786k [00:02<00:00, 342kB/s]
#3: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.60s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 619k/619k [00:02<00:00, 254kB/s]
#4: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:04<00:00, 4.68s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 737k/737k [00:02<00:00, 271kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 788k/788k [00:02<00:00, 285kB/s]
#6: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 618k/618k [00:04<00:00, 153kB/s]
#0: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2/2 [00:11<00:00, 5.69s/obj]
^CProcess ForkPoolWorker-47:
Process ForkPoolWorker-46:
Process ForkPoolWorker-36:
Process ForkPoolWorker-38:ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:05<00:00, 5.04s/obj]
Process ForkPoolWorker-37:
Process ForkPoolWorker-45:
Process ForkPoolWorker-39:
Process ForkPoolWorker-43:
Process ForkPoolWorker-33:
Process ForkPoolWorker-18:
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/queues.py", line 365, in get
res = self._reader.recv_bytes()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
File "/usr/lib/python3.10/multiprocessing/connection.py", line 221, in recv_bytes
buf = self._recv_bytes(maxlength)
KeyboardInterrupt
KeyboardInterrupt
File "/usr/lib/python3.10/multiprocessing/connection.py", line 419, in _recv_bytes
buf = self._recv(4)
File "/usr/lib/python3.10/multiprocessing/connection.py", line 384, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 114, in worker
task = get()
File "/usr/lib/python3.10/multiprocessing/queues.py", line 364, in get
with self._rlock:
File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 95, in __enter__
return self._semlock.__enter__()
KeyboardInterrupt
Process ForkPoolWorker-20:
Process ForkPoolWorker-44:
Process ForkPoolWorker-22:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#1: 0%| | 0/2 [03:00<?, ?obj/s]
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 659, in get_from_cache
http_get(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 442, in http_get
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
KeyboardInterrupt
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#3: 0%| | 0/2 [03:00<?, ?obj/s]
#11: 0%| | 0/1 [00:49<?, ?obj/s]
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
resp = self.send(
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
KeyboardInterrupt
#5: 0%| | 0/1 [03:00<?, ?obj/s]
KeyboardInterrupt
Process ForkPoolWorker-42:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 215, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/usr/lib/python3.10/site-packages/datasets/utils/py_utils.py", line 197, in _single_map_nested
return function(data_struct)
File "/usr/lib/python3.10/site-packages/datasets/utils/download_manager.py", line 217, in _download
return cached_path(url_or_filename, download_config=download_config)
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 298, in cached_path
output_path = get_from_cache(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 561, in get_from_cache
response = http_head(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 476, in http_head
response = _request_with_retry(
File "/usr/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 405, in _request_with_retry
response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
File "/usr/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
KeyboardInterrupt
#9: 0%| | 0/1 [00:51<?, ?obj/s]
```
### Steps to reproduce the bug
```python
"""Kodak.
Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import datasets
NUMBER = 17
_DESCRIPTION = """\
The pictures below link to lossless, true color (24 bits per pixel, aka "full
color") images. It is my understanding they have been released by the Eastman
Kodak Company for unrestricted usage. Many sites use them as a standard test
suite for compression testing, etc. Prior to this site, they were only
available in the Sun Raster format via ftp. This meant that the images could
not be previewed before downloading. Since their release, however, the lossless
PNG format has been incorporated into all the major browsers. Since PNG
supports 24-bit lossless color (which GIF and JPEG do not), it is now possible
to offer this browser-friendly access to the images.
"""
_HOMEPAGE = "https://r0k.us/graphics/kodak/"
_LICENSE = "GPLv3"
_URLS = [
f"https://github.com/MohamedBakrAli/Kodak-Lossless-True-Color-Image-Suite/raw/master/PhotoCD_PCD0992/{i}.png"
for i in range(1, 1 + NUMBER)
]
class Kodak(datasets.GeneratorBasedBuilder):
"""Kodak datasets."""
VERSION = datasets.Version("0.0.1")
def _info(self):
features = datasets.Features(
{
"image": datasets.Image(),
}
)
return datasets.DatasetInfo(
description=_DESCRIPTION,
features=features,
homepage=_HOMEPAGE,
license=_LICENSE,
)
def _split_generators(self, dl_manager):
"""Return SplitGenerators."""
file_paths = dl_manager.download_and_extract(_URLS)
return [
datasets.SplitGenerator(
name=datasets.Split.TEST,
gen_kwargs={
"file_paths": file_paths,
},
),
]
def _generate_examples(self, file_paths):
"""Yield examples."""
for file_path in file_paths:
yield file_path, {"image": file_path}
```
### Expected behavior
When `len(_URLS) < 16`, it works.
```python
In [3]: dataset = load_dataset('Freed-Wu/kodak', split='test')
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 2.53k/2.53k [00:00<00:00, 3.02MB/s]
[11/19/22 22:04:28] WARNING Using custom data configuration default builder.py:379
Downloading and preparing dataset kodak/default to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475...
Downloading: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 593k/593k [00:00<00:00, 2.88MB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 621k/621k [00:03<00:00, 166kB/s]
Downloading: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 531k/531k [00:01<00:00, 366kB/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:13<00:00, 1.18it/s]
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16/16 [00:00<00:00, 3832.38it/s]
Dataset kodak downloaded and prepared to /home/wzy/.cache/huggingface/datasets/Freed-Wu___kodak/default/0.0.1/d26017602a592b5bfa7e008127cdf9dec5af220c9068005f1b4eda036031f475. Subsequent calls will reuse this data.
```
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-6.0.8-arch1-1-x86_64-with-glibc2.36
- Python version: 3.10.8
- PyArrow version: 9.0.0
- Pandas version: 1.4.4
> Just my 2c. No offense.
sure np ^^
> I hear about python has GIL, which result in multi processing is worse than multi threading. So I am not sure if this change makes sense?
Here the bottleneck speed is the bandwidth used to download the files. When downloading, the GIL is released, so multithreading gives the same speed as multiprocessing.
> And if this is a bug of multi processing, why not report to upstream and let them fix?
Usually to fix a bug it's important to be able to reproduce it. This way you can share it, experiment with it, and then make sure it's fixed. Here I'm afraid it's not easy to reproduce. Though I think that spawning too many processes for your machine can lead to this kind of issues.
> And even if change it to multi threading, how can we make sure it can truly fix this problem?
Multithreading is more robust in python because IIRC there are less locks involved which are often the cause of code hanging for no reason. | [
-1.1831002235412598,
-0.7964313626289368,
-0.8935063481330872,
1.395546555519104,
-0.00040889717638492584,
-1.206254243850708,
0.03157553821802139,
-1.2821110486984253,
1.383806586265564,
-0.60782790184021,
0.3354189693927765,
-1.6794019937515259,
-0.023689469322562218,
-0.5440512895584106,
-0.7670542001724243,
-0.884920060634613,
-0.5127160549163818,
-0.7630585432052612,
0.9521726369857788,
2.589951753616333,
1.2574434280395508,
-1.437203288078308,
2.777752637863159,
0.7295539975166321,
-0.2443307787179947,
-0.9027097821235657,
0.6067115664482117,
0.09648631513118744,
-1.4490153789520264,
-0.3945408761501312,
-0.871597170829773,
-0.1746840924024582,
-0.591763973236084,
-0.2919817566871643,
0.1469988226890564,
0.3323148488998413,
-0.2715051770210266,
-0.3746410012245178,
-0.5586672425270081,
-0.8036198019981384,
0.48684653639793396,
-0.31234675645828247,
0.9470586180686951,
-0.2735808491706848,
1.6939886808395386,
-0.6806448698043823,
0.31420716643333435,
0.8416528105735779,
1.223264455795288,
0.05922895297408104,
0.14138714969158173,
0.5048596858978271,
0.29535651206970215,
-0.017778906971216202,
0.3947092592716217,
1.1999088525772095,
0.6012348532676697,
0.3058759570121765,
0.8210134506225586,
-2.0610032081604004,
1.1843948364257812,
-0.8874382972717285,
0.29790058732032776,
1.3475747108459473,
-0.7567381858825684,
0.3139544129371643,
-1.8475066423416138,
-0.11947757750749588,
0.685857355594635,
-2.1402676105499268,
0.31459882855415344,
-1.269043207168579,
-0.5658167004585266,
0.8756285309791565,
0.289573609828949,
-1.0418484210968018,
0.2283639907836914,
-0.6495102643966675,
1.0752880573272705,
0.38127100467681885,
1.2036117315292358,
-1.638258695602417,
0.025702595710754395,
-0.2268105447292328,
0.06455512344837189,
-1.33641517162323,
-1.517869472503662,
0.5689225196838379,
0.5447085499763489,
0.7261240482330322,
0.07436087727546692,
0.9225505590438843,
-0.9523410797119141,
0.9107556939125061,
-1.0376827716827393,
-1.7712987661361694,
-1.4604434967041016,
-2.3746256828308105,
-2.1955606937408447,
0.7634177207946777,
-0.34678804874420166,
-0.465222030878067,
1.9505841732025146,
-0.7243105173110962,
-1.731957197189331,
1.0375373363494873,
0.33181050419807434,
-0.040835339576005936,
2.3735568523406982,
0.2649112939834595,
-0.8015103936195374,
0.4597839415073395,
-0.7015070915222168,
0.8237481713294983,
-0.2030056267976761,
1.3507609367370605,
0.40522444248199463,
-0.8103618621826172,
1.5876621007919312,
-0.5756219625473022,
0.430961549282074,
-0.7024213075637817,
-0.5156911015510559,
-0.8026571869850159,
0.2351623922586441,
1.9293479919433594,
-0.3263534903526306,
1.5139697790145874,
-0.3763890266418457,
-1.6088308095932007,
-1.4306167364120483,
0.7805135250091553,
0.5881714820861816,
-0.8959589004516602,
0.07734467834234238,
-0.3372019827365875,
0.06787232309579849,
0.00640662107616663,
1.0280756950378418,
1.3048137426376343,
0.6135244369506836,
-0.3214500844478607,
-0.930023729801178,
0.17459721863269806,
-0.10879319906234741,
-0.9010105729103088,
-1.8532633781433105,
-0.20330195128917694,
0.14287185668945312,
0.7520173192024231,
-1.3716083765029907,
1.740256667137146,
0.8169207572937012,
2.0935797691345215,
0.9658703804016113,
-0.5011084079742432,
1.5355757474899292,
-0.015447476878762245,
1.9023624658584595,
-0.4902294874191284,
0.6212446689605713,
-0.4092009961605072,
-1.0458378791809082,
0.9618399739265442,
-0.26579737663269043,
-2.1125574111938477,
-0.7719725370407104,
-0.8265596032142639,
-0.21776238083839417,
-0.7554849982261658,
1.0102131366729736,
-0.2530413568019867,
-1.438345193862915,
0.2462361603975296,
-0.9090346097946167,
0.05446167662739754,
-1.212890386581421,
0.09106307476758957,
0.6145615577697754,
-0.5472444891929626,
0.058944035321474075,
-0.1258831024169922,
-1.3354840278625488,
-0.41867557168006897,
0.3246628940105438,
1.9621626138687134,
-0.6755498647689819,
0.868130087852478,
1.107319712638855,
-0.5697984099388123,
0.15954521298408508,
0.29868894815444946,
-0.32255345582962036,
0.8246430158615112,
-1.2923959493637085,
-0.47928953170776367,
1.0494937896728516,
0.0813538208603859,
-0.5707858800888062,
1.4676450490951538,
0.8892377614974976,
-1.1241282224655151,
-0.2852725386619568,
-0.13689029216766357,
-0.9463268518447876,
0.08814161270856857,
-1.6691404581069946,
-0.1828915923833847,
0.374592125415802,
-1.4908896684646606,
-0.5013982653617859,
-0.2881675362586975,
1.240898847579956,
-0.1324899047613144,
1.5040298700332642,
-0.3950502574443817,
-0.18533028662204742,
-0.3283054828643799,
-0.4687420427799225,
0.07123174518346786,
-0.3613949716091156,
-0.5757715702056885,
0.17032763361930847,
-0.8076232075691223,
0.28251463174819946,
1.472819447517395,
0.2513711750507355,
0.1537964642047882,
0.3608832359313965,
1.127221703529358,
0.3427889943122864,
0.15371933579444885,
-0.7920228242874146,
-1.5274879932403564,
2.1009762287139893,
-1.5878227949142456,
1.9476054906845093,
0.858500063419342,
0.17175360023975372,
-1.959407925605774,
-1.8117363452911377,
1.317237377166748,
1.1090577840805054,
2.3706159591674805,
0.674962043762207,
0.446479469537735,
-0.7635929584503174,
-0.6922028660774231,
0.2812958359718323,
-0.9376507997512817,
-0.649767279624939,
0.3166142404079437,
2.464780330657959,
1.7856800556182861,
-0.4189006984233856,
-0.15967263281345367,
-0.6262452006340027,
1.4282234907150269,
-0.09689433127641678,
0.0699738934636116,
2.100438356399536,
-0.08279190957546234,
-1.0520299673080444,
1.2213975191116333,
-2.40228533744812,
0.18638475239276886,
2.0038068294525146,
0.385577529668808,
0.18262532353401184,
-1.4312424659729004,
-0.7366765141487122,
-0.4482172429561615,
-0.4153901934623718,
-1.214919090270996,
0.5921441316604614,
-0.3323526382446289,
-0.9459272623062134,
-1.5041134357452393,
0.03908727690577507,
-1.1575103998184204,
-1.718449592590332,
0.34433141350746155,
1.8782955408096313,
2.139071226119995,
-0.7722951173782349,
1.5654689073562622,
-0.3884638249874115,
-0.009649472311139107,
1.2450141906738281,
1.2252087593078613,
3.0376832485198975,
1.8719390630722046,
-1.2110563516616821,
0.7519481182098389,
-0.19551293551921844,
-0.450099378824234,
0.9612755179405212,
-1.157013177871704,
1.1570600271224976,
-0.0924561470746994,
-1.214854121208191,
-1.0838617086410522,
1.0839601755142212,
0.43099433183670044,
0.03717423975467682,
-0.5573232173919678,
1.3323854207992554,
-0.025654081255197525,
1.2929260730743408,
0.5806914567947388,
-0.2504194676876068,
0.3932234048843384,
-0.34922581911087036,
-0.5330519080162048,
1.6475927829742432,
0.18890710175037384,
-1.4765536785125732,
-2.5965514183044434,
-0.27959978580474854,
-0.8229559659957886,
0.0041359104216098785,
-0.703359842300415,
-1.2362346649169922,
1.7026920318603516,
0.2966614067554474,
-1.3202173709869385,
-0.3493804633617401,
-0.3407231271266937,
-0.5138747096061707,
2.5879507064819336,
-1.5280481576919556,
-0.1203959658741951,
-0.9189705848693848,
-0.4795127511024475,
1.6378198862075806,
-1.0806304216384888,
-0.28816255927085876,
-1.1530448198318481,
-0.5490396022796631,
-1.220895528793335,
-0.5973449349403381,
0.05018420144915581,
-0.8489276766777039,
0.8270252346992493,
0.15013761818408966,
-1.042029619216919,
-0.23358474671840668,
-0.9661553502082825,
0.99484783411026,
-0.0202823244035244,
0.25796160101890564,
1.9101306200027466,
0.3773961067199707,
-0.3061896562576294,
0.6646486520767212,
1.2470067739486694,
0.6454036831855774,
-0.7564278841018677,
-0.05532296001911163,
-0.5794935822486877,
0.23824508488178253,
-1.4058136940002441,
0.27192679047584534,
-2.8441531658172607,
0.7640033960342407,
-0.09392907470464706,
0.012839307077229023,
0.07442496716976166,
-1.2524473667144775,
1.3234585523605347,
2.671555280685425,
-1.1666450500488281,
0.5811202526092529,
0.2662331759929657,
1.1149733066558838,
-1.456034541130066,
0.2992223799228668,
-0.3641814589500427,
2.0640408992767334,
0.015983037650585175,
1.2287535667419434,
-0.5529026985168457,
-2.2881100177764893,
0.6858084201812744,
-1.2282159328460693,
-1.1216344833374023,
0.8393670916557312,
-0.780830979347229,
0.24475856125354767,
-1.5465342998504639,
-0.34486642479896545,
-1.1308025121688843,
-1.178510069847107,
0.6194885969161987,
0.20555122196674347,
0.5175097584724426,
-0.5384711027145386,
0.2962762415409088,
-2.4004058837890625,
-1.517067313194275,
-0.08359743654727936,
-1.0258989334106445,
0.5754418969154358,
-0.3030985891819,
0.7122008800506592,
0.04803530126810074,
0.030694857239723206,
0.3081076443195343,
1.3089213371276855,
3.403426170349121,
0.06810255348682404,
0.25830239057540894,
-0.0908200666308403,
-0.9789037704467773,
1.2128033638000488,
0.939342200756073,
-0.0965944230556488,
-0.5353326797485352,
-0.9236720204353333,
1.0922343730926514,
2.036224842071533,
1.0636638402938843,
-0.10197128355503082,
-0.85760498046875,
-0.7525764107704163,
0.10695906728506088,
0.302132785320282,
0.6457135677337646,
1.0049066543579102,
-0.09858915209770203,
0.0419473722577095,
1.5545029640197754,
1.117685317993164,
-0.45635542273521423,
0.40849795937538147,
-0.9832962155342102,
-0.3581847548484802,
0.4558601379394531,
0.18101491034030914,
0.03727973625063896,
0.46895015239715576,
-1.0973937511444092,
-0.2591489553451538,
-0.34931084513664246,
-0.8765802383422852,
-0.7178031802177429,
-0.4314797520637512,
-0.42357397079467773,
1.516516089439392,
0.14406949281692505,
-0.44721564650535583,
0.144668310880661,
-0.6598252654075623,
-0.15994341671466827,
-1.2625757455825806,
0.22619560360908508,
-0.29715266823768616,
0.0008595697581768036,
-0.10243389755487442,
1.861072301864624,
-0.9026471972465515,
-1.98001229763031,
0.12279562652111053,
0.3105636239051819,
-0.37406376004219055,
0.2562895119190216,
1.6707295179367065,
0.6869750022888184,
1.3143463134765625,
1.1935356855392456,
0.8373276591300964,
-0.6643142104148865,
-1.2774418592453003,
0.5445952415466309,
1.1378554105758667,
-1.2321884632110596,
0.7362762093544006,
-0.15777523815631866,
-0.43298572301864624,
0.6789652109146118,
1.549861192703247,
0.32021379470825195,
-2.1855905055999756,
0.9464059472084045,
-0.7664560675621033,
0.8429578542709351,
0.7260503768920898,
0.6653342247009277,
0.27045199275016785,
0.6693781614303589,
-1.2698276042938232,
-1.0635020732879639,
-0.8861461281776428,
-0.7022046446800232,
1.7589646577835083,
-0.193929061293602,
0.4135930836200714,
-0.16728995740413666,
-1.2178959846496582,
-0.09832961857318878,
0.6269291043281555,
0.4101422429084778,
-0.42429250478744507,
0.7582682967185974,
-0.5184478759765625,
-1.2488923072814941,
-1.2222522497177124,
-0.5482287406921387,
-0.895444929599762,
-0.91767418384552,
0.9011217355728149,
0.7302436828613281,
0.5051820874214172,
1.9570754766464233,
0.7688510417938232,
0.12834113836288452,
-2.7106165885925293,
0.9519063234329224,
0.20512591302394867,
0.0005215778946876526,
1.0613741874694824,
0.30427175760269165,
1.1262474060058594,
0.036111198365688324,
0.480984091758728,
-2.421140432357788,
2.272157907485962,
-0.22246026992797852,
0.6410552859306335,
-0.1791212111711502,
-0.1714293211698532,
1.0582828521728516,
0.5250701904296875,
0.5026729702949524,
-1.0267010927200317,
0.6259607672691345,
-0.691760241985321,
1.1045511960983276,
0.8817881941795349,
-0.7890010476112366,
0.02925875037908554,
1.3225138187408447,
0.4696236252784729,
-0.519905686378479,
-0.9462131857872009,
-0.7617583870887756,
0.9582419395446777,
1.7184871435165405,
-0.06022343784570694,
0.13872554898262024,
0.8803568482398987,
0.4979963004589081,
-1.2570738792419434,
-0.03427254036068916,
-0.7465394735336304,
-0.8323113322257996,
1.7018314599990845,
2.0442986488342285,
-0.16509957611560822,
0.020301032811403275,
-0.8198617696762085,
-1.3398972749710083,
0.7540846467018127,
-0.20003265142440796,
0.22279092669487,
0.48967376351356506,
-0.681515097618103,
1.2742615938186646,
0.5258406400680542,
0.9632222056388855,
0.07666978985071182,
0.44105014204978943,
0.29056310653686523,
-0.375714510679245,
-1.1608163118362427,
-0.46166113018989563,
-1.1514668464660645,
-2.3069803714752197,
0.5220313668251038,
-0.15073417127132416,
-1.5164097547531128,
0.023883838206529617,
-0.9149415493011475,
0.951291024684906,
-0.5451600551605225,
-0.9170194268226624,
-1.490433692932129,
0.4842691123485565,
-0.10786847770214081,
1.1055030822753906,
-1.5813579559326172,
-0.10396864265203476,
1.2168867588043213,
0.9066603183746338,
-0.5919228196144104,
0.9719661474227905,
0.32767432928085327,
1.04547119140625,
0.8092650771141052,
-0.33117756247520447,
0.5170092582702637,
0.08204106986522675,
-1.2106528282165527,
0.4933101236820221,
1.1814894676208496,
0.11674395203590393,
1.4212719202041626,
-0.44145113229751587,
-0.024174882099032402,
0.25483402609825134,
-0.42500126361846924,
-0.37829095125198364,
-0.5154972672462463,
0.5720119476318359,
0.24025975167751312,
-1.079209566116333,
-0.17528226971626282,
-0.11307888478040695,
-0.2064385861158371,
0.21280640363693237,
-1.4931960105895996,
-0.28210169076919556,
-0.3822837173938751,
-0.4114128053188324,
-1.2229328155517578,
0.020343750715255737,
1.2564138174057007,
-0.6353122591972351,
-0.19389384984970093,
0.39854171872138977,
0.40836822986602783,
0.6069535613059998,
0.8041912913322449,
-0.5904163122177124,
-0.464028537273407,
-0.3513842821121216,
-0.266406387090683,
0.2205265462398529,
1.157096028327942,
-0.11625387519598007,
-1.0148814916610718,
0.7357619404792786,
-0.5250295400619507,
0.07869961857795715,
1.8879050016403198,
-0.015713408589363098,
-0.7853544354438782,
0.35354718565940857,
-0.6689367890357971,
2.0205912590026855,
1.769407033920288,
1.1463147401809692,
-0.2617747485637665,
-0.8840662240982056,
0.6520087122917175,
-0.3229823410511017,
-0.15539997816085815,
0.8277779221534729,
0.4759269952774048,
-0.19135576486587524,
-1.3892476558685303,
0.3983214795589447,
1.4410029649734497,
-0.9449535012245178,
-0.8218284249305725,
0.13037464022636414,
-0.8748202919960022,
1.0357611179351807,
0.8008122444152832,
0.3791251480579376,
0.3848569691181183,
1.5085759162902832,
0.7897619009017944,
-0.5830574035644531,
0.6130512952804565,
0.4388166666030884,
-0.07274381816387177,
-2.1488068103790283,
-1.1315042972564697,
0.33426523208618164,
-0.2558114230632782,
-1.6999074220657349,
1.343685507774353,
-1.034403920173645,
-0.9098383188247681,
0.5526687502861023,
-0.06987372785806656,
1.1595699787139893,
0.3722257912158966,
1.6324483156204224,
2.008458375930786,
0.8537591695785522,
0.2886279821395874,
1.3347892761230469,
-0.07602481544017792,
-0.45470207929611206,
1.9691473245620728,
-0.49457409977912903,
0.5100213885307312,
0.9848899245262146,
-0.4721055030822754,
-0.9413639307022095,
-0.8040280938148499,
-1.32611882686615,
-0.6924737691879272,
1.0597070455551147,
0.043950971215963364,
-1.2621749639511108,
0.26005515456199646,
1.6531786918640137,
0.14693483710289001,
-0.3843289315700531,
0.7172317504882812,
0.396758496761322,
-0.9263324737548828,
-0.13004744052886963,
-0.9990461468696594,
0.5236508250236511,
-0.001281512901186943,
-0.20667441189289093,
0.2395220249891281,
0.5589317679405212,
1.3218625783920288,
-0.01637546718120575,
0.07259245216846466,
1.150046944618225,
-1.4613847732543945,
1.5790140628814697,
-0.5593695044517517,
0.30935904383659363,
-2.3851726055145264,
1.2785840034484863,
-0.6811651587486267,
1.8268612623214722,
-2.620434522628784,
0.330219030380249,
-0.5672618746757507,
-0.5044602155685425,
0.2047412246465683,
-0.1998102366924286,
0.32274165749549866,
-0.10266778618097305,
-1.0243569612503052,
-0.08277367800474167,
-0.7301852703094482,
0.4583387076854706,
1.0940130949020386,
1.3914529085159302,
-0.9721823930740356,
-0.1779947429895401,
-1.6548691987991333,
-0.11309554427862167,
-0.6751148700714111,
0.2927905023097992,
-1.9742356538772583,
-0.049047790467739105,
-1.8892107009887695,
-2.2977731227874756,
-1.5026956796646118,
-0.9214491844177246,
1.0281667709350586,
0.16708382964134216,
-1.1403928995132446,
1.1420351266860962,
-0.453678160905838,
-1.6329355239868164,
1.0969369411468506,
-2.0776515007019043
] |
https://github.com/huggingface/datasets/issues/5265 | Get an IterableDataset from a map-style Dataset | I think `stream` could be misleading since the data is not being streamed from remote endpoints (one could think that's the case when they see `load_dataset` followed by `stream`). Hence, I prefer the second option.
PS: When we resolve https://github.com/huggingface/datasets/issues/4542, we could add `as_tf_dataset` to the API for consistency and deprecate `to_tf_dataset`. | This is useful to leverage iterable datasets specific features like:
- fast approximate shuffling
- lazy map, filter etc.
Iterating over the resulting iterable dataset should be at least as fast at iterating over the map-style dataset.
Here are some ideas regarding the API:
```python
# 1.
# - consistency with load_dataset(..., streaming=True)
# - gives intuition that map/filter/etc. are done on-the-fly
ids = ds.stream()
# 2.
# - more explicit on the output type
# - but maybe sounds like a conversion tool rather than a step in a processing pipeline
ids = ds.as_iterable_dataset()
``` | 409 | 52 | Get an IterableDataset from a map-style Dataset
This is useful to leverage iterable datasets specific features like:
- fast approximate shuffling
- lazy map, filter etc.
Iterating over the resulting iterable dataset should be at least as fast at iterating over the map-style dataset.
Here are some ideas regarding the API:
```python
# 1.
# - consistency with load_dataset(..., streaming=True)
# - gives intuition that map/filter/etc. are done on-the-fly
ids = ds.stream()
# 2.
# - more explicit on the output type
# - but maybe sounds like a conversion tool rather than a step in a processing pipeline
ids = ds.as_iterable_dataset()
```
I think `stream` could be misleading since the data is not being streamed from remote endpoints (one could think that's the case when they see `load_dataset` followed by `stream`). Hence, I prefer the second option.
PS: When we resolve https://github.com/huggingface/datasets/issues/4542, we could add `as_tf_dataset` to the API for consistency and deprecate `to_tf_dataset`. | [
-1.2037006616592407,
-0.9202494025230408,
-0.8061541318893433,
1.4473017454147339,
-0.2001117616891861,
-1.363838791847229,
0.17746953666210175,
-1.0125523805618286,
1.727375864982605,
-0.825336217880249,
0.35830309987068176,
-1.6870815753936768,
-0.020995160564780235,
-0.5805915594100952,
-0.8166040182113647,
-0.8194072842597961,
-0.4558824300765991,
-0.7358054518699646,
0.9250798225402832,
2.424281358718872,
1.2492446899414062,
-1.29607093334198,
2.6606686115264893,
0.6859025359153748,
-0.21965312957763672,
-0.9835113286972046,
0.4669649600982666,
-0.014758968725800514,
-1.3347105979919434,
-0.3996339440345764,
-0.9417003989219666,
-0.09981337189674377,
-0.6094098687171936,
-0.5858698487281799,
0.0858878642320633,
0.4283616542816162,
-0.262483686208725,
-0.48456424474716187,
-0.4301023483276367,
-0.8248593211174011,
0.5486871004104614,
-0.3300870954990387,
1.0182366371154785,
-0.39897921681404114,
1.9290947914123535,
-0.5879281163215637,
0.4816000461578369,
0.6451578736305237,
1.4094719886779785,
0.19000288844108582,
-0.08060818910598755,
0.34022316336631775,
0.33239036798477173,
0.0695764496922493,
0.44966641068458557,
1.1133286952972412,
0.6124865412712097,
0.5294755697250366,
0.75355464220047,
-2.2202677726745605,
1.3278851509094238,
-1.0432549715042114,
0.26151391863822937,
1.3831932544708252,
-0.9858953952789307,
0.2893133759498596,
-1.74360191822052,
-0.107778400182724,
0.5018409490585327,
-2.3210413455963135,
0.17707309126853943,
-1.31718909740448,
-0.42447951436042786,
1.0011035203933716,
0.3328123390674591,
-1.2172213792800903,
0.13126231729984283,
-0.4604489803314209,
0.9953263998031616,
0.5850764513015747,
1.1376293897628784,
-1.7551672458648682,
-0.056504957377910614,
-0.3259492814540863,
0.15331850945949554,
-1.3085936307907104,
-1.4548295736312866,
0.49890783429145813,
0.6573050618171692,
0.593076229095459,
-0.06052928417921066,
1.0068986415863037,
-0.8999801874160767,
0.8047906756401062,
-0.9459473490715027,
-1.6435682773590088,
-1.3810697793960571,
-2.280534505844116,
-2.341043472290039,
0.7526154518127441,
-0.43912678956985474,
-0.4723933935165405,
2.0055811405181885,
-1.0145392417907715,
-1.7585437297821045,
1.0906685590744019,
0.1522735059261322,
0.012421717867255211,
2.290473461151123,
0.17448611557483673,
-0.7483936548233032,
0.5130167007446289,
-0.6841045618057251,
0.7444737553596497,
-0.4276922047138214,
1.3502757549285889,
0.4437178671360016,
-1.0613553524017334,
1.5830495357513428,
-0.47899967432022095,
0.5721636414527893,
-0.6519097685813904,
-0.5480380654335022,
-0.8459231853485107,
0.29050412774086,
1.9213858842849731,
-0.28261566162109375,
1.6092263460159302,
-0.24549894034862518,
-1.577702283859253,
-1.5495202541351318,
0.8862006664276123,
0.4689866006374359,
-0.7740213871002197,
0.10208459198474884,
-0.3021830916404724,
0.15487094223499298,
-0.0056513515301048756,
1.1076312065124512,
1.157686471939087,
0.7197621464729309,
-0.35576221346855164,
-0.8903532028198242,
0.2947561740875244,
0.004307064227759838,
-0.8158333897590637,
-1.677550196647644,
-0.36868855357170105,
0.17748263478279114,
0.6632444858551025,
-1.1929978132247925,
1.7918771505355835,
0.8412798643112183,
1.9479588270187378,
0.9993014335632324,
-0.24001309275627136,
1.4525121450424194,
-0.03377694636583328,
1.8425644636154175,
-0.4532988369464874,
0.6890488862991333,
-0.37781670689582825,
-1.1986197233200073,
0.7255048155784607,
-0.364266961812973,
-2.076071262359619,
-0.7278339862823486,
-0.8902004957199097,
-0.11787876486778259,
-0.7076581120491028,
0.9683327078819275,
-0.28637728095054626,
-1.4296073913574219,
0.20504432916641235,
-0.676200270652771,
0.13209739327430725,
-1.2384597063064575,
0.2735736072063446,
0.7110188007354736,
-0.6964288353919983,
0.050020650029182434,
-0.2661556005477905,
-1.2724095582962036,
-0.47729936242103577,
0.29143089056015015,
1.8559285402297974,
-0.741772472858429,
0.93271803855896,
0.9639042615890503,
-0.7434319853782654,
0.04211239516735077,
0.3459056615829468,
-0.24348509311676025,
0.8274519443511963,
-1.0213136672973633,
-0.3068966567516327,
1.2514169216156006,
-0.24295645952224731,
-0.6450502276420593,
1.467207431793213,
0.7207778096199036,
-0.9662227630615234,
-0.16948723793029785,
-0.20333121716976166,
-0.8068568110466003,
-0.06904356181621552,
-1.6374696493148804,
0.05602128803730011,
0.31141072511672974,
-1.5380040407180786,
-0.48830899596214294,
-0.14397351443767548,
1.24069344997406,
-0.09703998267650604,
1.3633098602294922,
-0.2713577449321747,
-0.22344976663589478,
-0.40708836913108826,
-0.44924962520599365,
0.07876010239124298,
-0.15305311977863312,
-0.6632767915725708,
0.24243347346782684,
-0.7774580121040344,
0.29611650109291077,
1.4759013652801514,
0.2919062077999115,
0.06184045225381851,
0.5168383717536926,
1.1471000909805298,
0.3223283290863037,
-0.13668015599250793,
-0.804487943649292,
-1.6555403470993042,
2.1148641109466553,
-1.4195691347122192,
1.8898042440414429,
0.6773332953453064,
-0.08382044732570648,
-1.7577874660491943,
-1.8501313924789429,
1.3649961948394775,
1.1834534406661987,
2.297703504562378,
0.6053513884544373,
0.33957844972610474,
-0.8530769944190979,
-0.6444888114929199,
0.36700987815856934,
-0.9557741284370422,
-0.8259009718894958,
0.08199751377105713,
2.363680601119995,
1.7786167860031128,
-0.46113747358322144,
-0.2522988021373749,
-1.1289799213409424,
1.346698522567749,
-0.1871287077665329,
0.16704478859901428,
1.983890175819397,
-0.2456115335226059,
-1.0663936138153076,
1.3854010105133057,
-2.3900997638702393,
0.15729846060276031,
2.0188395977020264,
0.3607109785079956,
0.0822518914937973,
-1.3983426094055176,
-0.6871907711029053,
-0.2153625637292862,
-0.3477206528186798,
-1.2254022359848022,
0.5104939341545105,
-0.3188210129737854,
-0.8044256567955017,
-1.3988457918167114,
0.14949849247932434,
-1.0885447263717651,
-1.699319839477539,
0.30371201038360596,
1.7946581840515137,
2.0103085041046143,
-0.6873993277549744,
1.458502173423767,
-0.28081196546554565,
0.2716042995452881,
1.318798542022705,
1.2945984601974487,
3.103987455368042,
1.9439315795898438,
-1.2807183265686035,
0.7430811524391174,
-0.1410137265920639,
-0.47957104444503784,
1.1946064233779907,
-1.2222793102264404,
1.2520561218261719,
-0.2171795517206192,
-1.2857651710510254,
-1.2048242092132568,
0.8935481309890747,
0.538991391658783,
0.0806146115064621,
-0.4931069016456604,
1.2135225534439087,
0.054944686591625214,
1.295756220817566,
0.6128540635108948,
-0.36078912019729614,
0.5938188433647156,
-0.41703397035598755,
-0.5172024369239807,
1.557699203491211,
0.25172752141952515,
-1.390438199043274,
-2.346121072769165,
-0.19314609467983246,
-0.8354371786117554,
0.017153814435005188,
-0.6466792225837708,
-0.9326412081718445,
1.6734309196472168,
0.3739916980266571,
-1.2497724294662476,
-0.16647642850875854,
-0.3449797034263611,
-0.5694217681884766,
2.725552558898926,
-1.4153610467910767,
-0.22355052828788757,
-1.0349000692367554,
-0.6910899877548218,
1.6598509550094604,
-1.2520854473114014,
-0.21129193902015686,
-0.9837729930877686,
-0.5590081810951233,
-1.395233392715454,
-0.566336452960968,
-0.03810250014066696,
-0.9133606553077698,
0.753836989402771,
0.1701759696006775,
-1.2442058324813843,
-0.33386191725730896,
-0.9382420182228088,
0.8393839001655579,
-0.11598179489374161,
0.16100355982780457,
1.8730723857879639,
0.4341171681880951,
-0.36884161829948425,
0.6536500453948975,
1.225771188735962,
0.6377606987953186,
-0.6658064723014832,
0.25531649589538574,
-0.7189143300056458,
0.3340704143047333,
-1.327325701713562,
0.2619732618331909,
-2.8220574855804443,
0.6254120469093323,
-0.11590712517499924,
-0.126917764544487,
-0.06380561739206314,
-1.337670087814331,
1.035943865776062,
2.648280382156372,
-1.2031832933425903,
0.40169230103492737,
0.2751743793487549,
1.1980242729187012,
-1.5410304069519043,
0.2731338441371918,
-0.5192708969116211,
2.1469295024871826,
0.20128846168518066,
1.2889140844345093,
-0.468402624130249,
-2.196463108062744,
0.6266130208969116,
-1.1907745599746704,
-1.2275302410125732,
0.7795948386192322,
-0.795916736125946,
0.09479311853647232,
-1.3597328662872314,
-0.1628521978855133,
-0.7898014783859253,
-1.2766672372817993,
0.8030293583869934,
0.19135931134223938,
0.5363668203353882,
-0.6537589430809021,
0.35342296957969666,
-2.1781232357025146,
-1.309937834739685,
-0.21429133415222168,
-0.9439519047737122,
0.4955872595310211,
-0.30686521530151367,
0.6679264903068542,
-0.1932601034641266,
0.009452290832996368,
0.38688838481903076,
1.411070704460144,
3.4148099422454834,
0.196221724152565,
0.3237244188785553,
-0.1675189584493637,
-0.945992112159729,
1.4831002950668335,
0.9829737544059753,
-0.19655226171016693,
-0.4724988341331482,
-0.9657298922538757,
1.249819278717041,
1.9656144380569458,
1.01781165599823,
0.01780281402170658,
-0.8432469367980957,
-0.7563651204109192,
0.04089399427175522,
0.13627022504806519,
0.43192023038864136,
0.8879348635673523,
0.0829046368598938,
0.11401604861021042,
1.4026495218276978,
1.066971778869629,
-0.37448424100875854,
0.42565497756004333,
-0.809878408908844,
-0.44710230827331543,
0.6201454997062683,
0.42259979248046875,
-0.035160355269908905,
0.3836469352245331,
-1.053725004196167,
-0.14637131989002228,
-0.36595454812049866,
-0.9117683172225952,
-0.6803293824195862,
-0.5408821105957031,
-0.40208491683006287,
1.6695698499679565,
-0.017754359170794487,
-0.5547727346420288,
-0.039744071662425995,
-0.7873713970184326,
-0.13102272152900696,
-1.0085124969482422,
0.3689497411251068,
-0.09426669776439667,
-0.07640346884727478,
-0.06494710594415665,
1.82469642162323,
-0.9459733963012695,
-2.0983283519744873,
0.29867103695869446,
0.2528541088104248,
-0.36684268712997437,
0.1713547259569168,
1.580381989479065,
0.5315814018249512,
1.413741946220398,
1.4576506614685059,
1.0204070806503296,
-0.665716826915741,
-1.362200140953064,
0.681366503238678,
0.90995854139328,
-1.4104667901992798,
0.7743015885353088,
0.012945402413606644,
-0.523388147354126,
0.6331357359886169,
1.1849257946014404,
0.4305650591850281,
-1.9308617115020752,
0.7615435719490051,
-0.8918052911758423,
0.6921406984329224,
0.7932250499725342,
0.7604823112487793,
0.22924894094467163,
0.8228194713592529,
-1.2751009464263916,
-1.1493040323257446,
-0.7435218691825867,
-0.7143570780754089,
1.9008698463439941,
-0.22334212064743042,
0.6253631711006165,
-0.14203551411628723,
-1.2854382991790771,
-0.11822795122861862,
0.7841581702232361,
0.3111908435821533,
-0.43240153789520264,
0.8901939988136292,
-0.6815109252929688,
-1.0748414993286133,
-1.3829665184020996,
-0.5366218686103821,
-1.0296686887741089,
-0.9263410568237305,
1.0388301610946655,
0.8028007745742798,
0.3092212677001953,
1.8903040885925293,
0.6443799138069153,
0.2606132924556732,
-2.6582181453704834,
0.8319807648658752,
0.2968628704547882,
0.05288819968700409,
0.8265719413757324,
0.30964747071266174,
1.0262105464935303,
-0.05277295410633087,
0.5969783663749695,
-2.3732078075408936,
2.2780914306640625,
-0.21572168171405792,
0.6497665047645569,
-0.024066608399152756,
-0.14873765408992767,
1.0599725246429443,
0.6012612581253052,
0.5283585786819458,
-1.0942035913467407,
0.7862024307250977,
-0.709860622882843,
1.216698169708252,
0.8937617540359497,
-0.9254404902458191,
-0.025474831461906433,
1.3610026836395264,
0.5118213295936584,
-0.44397199153900146,
-1.0005801916122437,
-0.8534254431724548,
0.965876579284668,
1.6871325969696045,
-0.0012264628894627094,
-0.054011791944503784,
0.8892207741737366,
0.6386507749557495,
-1.3302651643753052,
0.03011799044907093,
-0.7187058329582214,
-0.7820132374763489,
1.6930941343307495,
2.0490882396698,
-0.08769981563091278,
-0.12599430978298187,
-0.783317506313324,
-1.1914976835250854,
0.719404935836792,
0.12407983094453812,
0.02133522555232048,
0.7190885543823242,
-0.6875216960906982,
1.1395477056503296,
0.9321793913841248,
0.9281814098358154,
0.190712571144104,
0.20634712278842926,
0.26523205637931824,
-0.2853964567184448,
-1.2091461420059204,
-0.3081717789173126,
-1.0603132247924805,
-2.5247013568878174,
0.5306500792503357,
-0.245281383395195,
-1.5538326501846313,
0.11098700016736984,
-1.0726326704025269,
0.9520472288131714,
-0.6381163001060486,
-1.1176915168762207,
-1.465701699256897,
0.25168782472610474,
-0.08883173018693924,
0.8475812673568726,
-1.571582555770874,
-0.08793792128562927,
1.1824208498001099,
0.9206703901290894,
-0.6230842471122742,
1.006561279296875,
0.2072729617357254,
1.0507473945617676,
0.9065569043159485,
-0.3316633403301239,
0.5196699500083923,
0.2125881463289261,
-1.389086127281189,
0.4562793970108032,
1.1392942667007446,
0.2084597945213318,
1.4920368194580078,
-0.5476734042167664,
0.11957303434610367,
0.44055938720703125,
-0.5574019551277161,
-0.44990015029907227,
-0.7147316932678223,
0.7068160772323608,
0.13026922941207886,
-0.9683427214622498,
-0.044809602200984955,
-0.10699956864118576,
-0.157246932387352,
0.2394639104604721,
-1.5041077136993408,
-0.20813395082950592,
-0.31836995482444763,
-0.5818414092063904,
-1.1529685258865356,
-0.030957644805312157,
1.4229012727737427,
-0.8208819627761841,
-0.11956407874822617,
0.5339800119400024,
0.35673025250434875,
0.5637034177780151,
0.6508303284645081,
-0.7343394160270691,
-0.2512308359146118,
-0.2308257818222046,
-0.3978104591369629,
0.3065492808818817,
1.327020525932312,
-0.08488748967647552,
-1.0631000995635986,
0.769869327545166,
-0.3051900863647461,
0.09664490073919296,
1.899554967880249,
0.05527271330356598,
-0.7999668717384338,
0.2566227316856384,
-0.7366097569465637,
1.8865872621536255,
1.6463388204574585,
1.315292239189148,
-0.08415302634239197,
-0.9333855509757996,
0.5882155895233154,
-0.2982558012008667,
-0.27788046002388,
0.8966860175132751,
0.4929194152355194,
-0.19271530210971832,
-1.3814979791641235,
0.615200936794281,
1.241814136505127,
-0.8411491513252258,
-0.8178125023841858,
0.08638869971036911,
-0.7926877737045288,
1.1157773733139038,
0.6242685914039612,
0.36884671449661255,
0.2885361313819885,
1.6601895093917847,
0.6695592403411865,
-0.37472793459892273,
0.5685796737670898,
0.5306597948074341,
-0.1170981302857399,
-2.0869650840759277,
-1.0936474800109863,
0.3763938248157501,
-0.4996078312397003,
-1.561822533607483,
1.3408068418502808,
-1.2370661497116089,
-0.8661998510360718,
0.516476035118103,
0.11293088644742966,
1.532243013381958,
0.33316925168037415,
1.6170074939727783,
2.080470561981201,
0.9610978364944458,
0.3172861933708191,
1.373856782913208,
-0.086049884557724,
-0.3691045939922333,
1.6947461366653442,
-0.4648743271827698,
0.5177525877952576,
1.058995008468628,
-0.31815311312675476,
-1.0209262371063232,
-0.7749156951904297,
-1.27480149269104,
-0.6761769652366638,
1.038663387298584,
0.13523676991462708,
-1.1238701343536377,
0.2484547644853592,
1.6375360488891602,
0.0515558198094368,
-0.2618561089038849,
0.6443970203399658,
0.3184276819229126,
-0.7541695237159729,
-0.04135303199291229,
-0.9932391047477722,
0.49018022418022156,
-0.21005745232105255,
-0.37488821148872375,
0.23955772817134857,
0.4732336103916168,
1.224513053894043,
0.06211920827627182,
0.10744953900575638,
1.2244709730148315,
-1.3767248392105103,
1.4181220531463623,
-0.7503803968429565,
0.30558842420578003,
-2.4349629878997803,
1.3530356884002686,
-0.8534662127494812,
1.872342586517334,
-2.636296033859253,
0.3983292877674103,
-0.5697808265686035,
-0.45886296033859253,
0.3632669448852539,
-0.3801765441894531,
0.1594257950782776,
-0.13799463212490082,
-1.0857782363891602,
-0.015653444454073906,
-0.8120488524436951,
0.6227392554283142,
1.0903911590576172,
1.3658527135849,
-1.0916297435760498,
-0.2881186306476593,
-1.817861557006836,
-0.18572045862674713,
-0.6455550193786621,
0.362400084733963,
-1.9413458108901978,
-0.12846869230270386,
-1.9607621431350708,
-2.439412832260132,
-1.3582695722579956,
-0.7987518310546875,
1.0793834924697876,
0.11993838101625443,
-0.8656375408172607,
1.0989805459976196,
-0.349470317363739,
-1.7934004068374634,
1.0435532331466675,
-2.2385988235473633
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | Could you share the full stack trace please ?
Can you also try running this code ? It can be useful to determine if the issue comes from `datasets` or `fsspec` (streaming) or `pyarrow` (parquet reading):
```python
ds = load_dataset("parquet", data_files=a_parquet_file_url, use_auth_token=True)
``` | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 43 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
Could you share the full stack trace please ?
Can you also try running this code ? It can be useful to determine if the issue comes from `datasets` or `fsspec` (streaming) or `pyarrow` (parquet reading):
```python
ds = load_dataset("parquet", data_files=a_parquet_file_url, use_auth_token=True)
``` | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | Here's the full trace
```
Traceback (most recent call last):
File "/home/loubna_huggingface_co/load.py", line 15, in <module>
ds_all = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java",use_auth_token=True, split="train", revision="v1.1.a1")
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1742, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 814, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 905, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 1502, in _prepare_split
for key, table in logging.tqdm(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 286, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1227, in pyarrow._parquet.ParquetReader.open
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
when running
```python
ds = load_dataset("parquet", data_files="https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/blob/v1.1.a1/data/java/data_0000.parquet", use_auth_token=True)
```
I get 401 error, but that's the case for the python subset too which I can load properly
```
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1719, in load_dataset
builder_instance = load_dataset_builder(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1497, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1134, in dataset_module_factory
return PackagedDatasetModuleFactory(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 707, in get_module
data_files = DataFilesDict.from_local_or_remote(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 795, in from_local_or_remote
DataFilesList.from_local_or_remote(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 764, in from_local_or_remote
origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 710, in _get_origin_metadata_locally_or_by_urls
return thread_map(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 94, in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 76, in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs))
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1183, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
yield fs.pop().result()
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 701, in _get_single_origin_metadata_locally_or_by_urls
return (request_etag(data_file, use_auth_token=use_auth_token),)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 411, in request_etag
response.raise_for_status()
File "/opt/conda/envs/venv/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/blob/v1.1.a1/data/python/data_0000.parquet``` | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 301 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
Here's the full trace
```
Traceback (most recent call last):
File "/home/loubna_huggingface_co/load.py", line 15, in <module>
ds_all = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java",use_auth_token=True, split="train", revision="v1.1.a1")
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1742, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 814, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 905, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 1502, in _prepare_split
for key, table in logging.tqdm(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 286, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1227, in pyarrow._parquet.ParquetReader.open
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
when running
```python
ds = load_dataset("parquet", data_files="https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/blob/v1.1.a1/data/java/data_0000.parquet", use_auth_token=True)
```
I get 401 error, but that's the case for the python subset too which I can load properly
```
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1719, in load_dataset
builder_instance = load_dataset_builder(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1497, in load_dataset_builder
dataset_module = dataset_module_factory(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1134, in dataset_module_factory
return PackagedDatasetModuleFactory(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 707, in get_module
data_files = DataFilesDict.from_local_or_remote(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 795, in from_local_or_remote
DataFilesList.from_local_or_remote(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 764, in from_local_or_remote
origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 710, in _get_origin_metadata_locally_or_by_urls
return thread_map(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 94, in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 76, in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs))
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1183, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
yield fs.pop().result()
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/opt/conda/envs/venv/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/data_files.py", line 701, in _get_single_origin_metadata_locally_or_by_urls
return (request_etag(data_file, use_auth_token=use_auth_token),)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 411, in request_etag
response.raise_for_status()
File "/opt/conda/envs/venv/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/blob/v1.1.a1/data/python/data_0000.parquet``` | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | Can you check you used the right token ? You shouldn't get a 401 using your token | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 17 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
Can you check you used the right token ? You shouldn't get a 401 using your token | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | I checked itβs the right token, when loading the full dataset I get the error after data extraction so I can access the files.
```
Downloading and preparing dataset parquet/bigcode--the-stack-dedup-pjj to /home/loubna_huggingface_co/.cache/huggingface/datasets/bigcode___parquet/bigcode--the-stack-dedup-pjj-872ffac7f4bb46ca/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec...
Downloading data files: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 22.38it/s]
Extracting data files: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 49.91it/s]
Traceback (most recent call last):
File "/home/loubna_huggingface_co/load_ds.py", line 5, in <module>
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", use_auth_token=True,split="train", revision="v1.1.a1")
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1742, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 814, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 905, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 1502, in _prepare_split
for key, table in logging.tqdm(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 286, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1227, in pyarrow._parquet.ParquetReader.open
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
Could it be that I'm using a wrong url, I just copied it from the address bar | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 172 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
I checked itβs the right token, when loading the full dataset I get the error after data extraction so I can access the files.
```
Downloading and preparing dataset parquet/bigcode--the-stack-dedup-pjj to /home/loubna_huggingface_co/.cache/huggingface/datasets/bigcode___parquet/bigcode--the-stack-dedup-pjj-872ffac7f4bb46ca/0.0.0/2a3b91fbd88a2c90d1dbbb32b460cf621d31bd5b05b934492fdef7d8d6f236ec...
Downloading data files: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 22.38it/s]
Extracting data files: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1/1 [00:00<00:00, 49.91it/s]
Traceback (most recent call last):
File "/home/loubna_huggingface_co/load_ds.py", line 5, in <module>
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", use_auth_token=True,split="train", revision="v1.1.a1")
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py", line 1742, in load_dataset
builder_instance.download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 814, in download_and_prepare
self._download_and_prepare(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 905, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py", line 1502, in _prepare_split
for key, table in logging.tqdm(
File "/opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py", line 1195, in __iter__
for obj in iterable:
File "/opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
parquet_file = pq.ParquetFile(f)
File "/opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py", line 286, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1227, in pyarrow._parquet.ParquetReader.open
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
Could it be that I'm using a wrong url, I just copied it from the address bar | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | The URL is wrong indeed, the right one is the one with "resolve" (the one you get when clicking on "download")- otherwise you try to download an html page ;)
```
https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/resolve/v1.1.a1/data/java/data_0000.parquet
``` | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 33 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
The URL is wrong indeed, the right one is the one with "resolve" (the one you get when clicking on "download")- otherwise you try to download an html page ;)
```
https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj/resolve/v1.1.a1/data/java/data_0000.parquet
``` | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | Ah thanks! So I tried it with the first parquet file and it works, is there a way to know which parquet file was causing the issue since there are a lot of shards? | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 34 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
Ah thanks! So I tried it with the first parquet file and it works, is there a way to know which parquet file was causing the issue since there are a lot of shards? | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | I think you have to try them all :/
Alternatively you can add a try/catch in `parquet.py` in `datasets` to raise the name of the file that fails at doing `parquet_file = pq.ParquetFile(f)` when you run your initial code
```python
load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
```
but it will still iterate on all the files until it fails | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 58 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
I think you have to try them all :/
Alternatively you can add a try/catch in `parquet.py` in `datasets` to raise the name of the file that fails at doing `parquet_file = pq.ParquetFile(f)` when you run your initial code
```python
load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
```
but it will still iterate on all the files until it fails | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | I did find the file, and I get the same error as before
```
Downloading data files: 100%|βββββββββββββββββββ| 1/1 [00:00<00:00, 8160.12it/s]
Extracting data files: 100%|ββββββββββββββββββββ| 1/1 [00:00<00:00, 1447.81it/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
Input In [22], in <cell line: 7>()
4 data_features = (data["train"].features)
6 url = "/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7"
----> 7 data = load_dataset("parquet",
8 data_files=url,
9 split="train",
10 features=data_features,
11 use_auth_token=True)
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py:1742, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1739 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1741 # Download and prepare data
-> 1742 builder_instance.download_and_prepare(
1743 download_config=download_config,
1744 download_mode=download_mode,
1745 ignore_verifications=ignore_verifications,
1746 try_from_hf_gcs=try_from_hf_gcs,
1747 use_auth_token=use_auth_token,
1748 )
1750 # Build dataset for splits
1751 keep_in_memory = (
1752 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1753 )
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:814, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, storage_options, **download_and_prepare_kwargs)
808 if not downloaded_from_gcs:
809 prepare_split_kwargs = {
810 "file_format": file_format,
811 "max_shard_size": max_shard_size,
812 **download_and_prepare_kwargs,
813 }
--> 814 self._download_and_prepare(
815 dl_manager=dl_manager,
816 verify_infos=verify_infos,
817 **prepare_split_kwargs,
818 **download_and_prepare_kwargs,
819 )
820 # Sync info
821 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:905, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
901 split_dict.add(split_generator.split_info)
903 try:
904 # Prepare split will record examples associated to the split
--> 905 self._prepare_split(split_generator, **prepare_split_kwargs)
906 except OSError as e:
907 raise OSError(
908 "Cannot find data file. "
909 + (self.manual_download_instructions or "")
910 + "\nOriginal error:\n"
911 + str(e)
912 ) from None
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:1502, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, max_shard_size)
1500 total_num_examples, total_num_bytes = 0, 0
1501 try:
-> 1502 for key, table in logging.tqdm(
1503 generator,
1504 unit=" tables",
1505 leave=False,
1506 disable=not logging.is_progress_bar_enabled(),
1507 ):
1508 if max_shard_size is not None and writer._num_bytes > max_shard_size:
1509 num_examples, num_bytes = writer.finalize()
File /opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py:1195, in tqdm.__iter__(self)
1192 time = self._time
1194 try:
-> 1195 for obj in iterable:
1196 yield obj
1197 # Update and possibly print the progressbar.
1198 # Note: does not call self.update(1) for speed optimisation.
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py:67, in Parquet._generate_tables(self, files)
65 for file_idx, file in enumerate(itertools.chain.from_iterable(files)):
66 with open(file, "rb") as f:
---> 67 parquet_file = pq.ParquetFile(f)
68 try:
69 for batch_idx, record_batch in enumerate(
70 parquet_file.iter_batches(batch_size=self.config.batch_size, columns=self.config.columns)
71 ):
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py:286, in ParquetFile.__init__(self, source, metadata, common_metadata, read_dictionary, memory_map, buffer_size, pre_buffer, coerce_int96_timestamp_unit, decryption_properties, thrift_string_size_limit, thrift_container_size_limit)
280 def __init__(self, source, *, metadata=None, common_metadata=None,
281 read_dictionary=None, memory_map=False, buffer_size=0,
282 pre_buffer=False, coerce_int96_timestamp_unit=None,
283 decryption_properties=None, thrift_string_size_limit=None,
284 thrift_container_size_limit=None):
285 self.reader = ParquetReader()
--> 286 self.reader.open(
287 source, use_memory_map=memory_map,
288 buffer_size=buffer_size, pre_buffer=pre_buffer,
289 read_dictionary=read_dictionary, metadata=metadata,
290 coerce_int96_timestamp_unit=coerce_int96_timestamp_unit,
291 decryption_properties=decryption_properties,
292 thrift_string_size_limit=thrift_string_size_limit,
293 thrift_container_size_limit=thrift_container_size_limit,
294 )
295 self.common_metadata = common_metadata
296 self._nested_paths_by_prefix = self._build_nested_paths()
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/_parquet.pyx:1227, in pyarrow._parquet.ParquetReader.open()
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/error.pxi:100, in pyarrow.lib.check_status()
ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
``` | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 465 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
I did find the file, and I get the same error as before
```
Downloading data files: 100%|βββββββββββββββββββ| 1/1 [00:00<00:00, 8160.12it/s]
Extracting data files: 100%|ββββββββββββββββββββ| 1/1 [00:00<00:00, 1447.81it/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
Input In [22], in <cell line: 7>()
4 data_features = (data["train"].features)
6 url = "/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7"
----> 7 data = load_dataset("parquet",
8 data_files=url,
9 split="train",
10 features=data_features,
11 use_auth_token=True)
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/load.py:1742, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1739 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1741 # Download and prepare data
-> 1742 builder_instance.download_and_prepare(
1743 download_config=download_config,
1744 download_mode=download_mode,
1745 ignore_verifications=ignore_verifications,
1746 try_from_hf_gcs=try_from_hf_gcs,
1747 use_auth_token=use_auth_token,
1748 )
1750 # Build dataset for splits
1751 keep_in_memory = (
1752 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1753 )
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:814, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, storage_options, **download_and_prepare_kwargs)
808 if not downloaded_from_gcs:
809 prepare_split_kwargs = {
810 "file_format": file_format,
811 "max_shard_size": max_shard_size,
812 **download_and_prepare_kwargs,
813 }
--> 814 self._download_and_prepare(
815 dl_manager=dl_manager,
816 verify_infos=verify_infos,
817 **prepare_split_kwargs,
818 **download_and_prepare_kwargs,
819 )
820 # Sync info
821 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:905, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
901 split_dict.add(split_generator.split_info)
903 try:
904 # Prepare split will record examples associated to the split
--> 905 self._prepare_split(split_generator, **prepare_split_kwargs)
906 except OSError as e:
907 raise OSError(
908 "Cannot find data file. "
909 + (self.manual_download_instructions or "")
910 + "\nOriginal error:\n"
911 + str(e)
912 ) from None
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/builder.py:1502, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, max_shard_size)
1500 total_num_examples, total_num_bytes = 0, 0
1501 try:
-> 1502 for key, table in logging.tqdm(
1503 generator,
1504 unit=" tables",
1505 leave=False,
1506 disable=not logging.is_progress_bar_enabled(),
1507 ):
1508 if max_shard_size is not None and writer._num_bytes > max_shard_size:
1509 num_examples, num_bytes = writer.finalize()
File /opt/conda/envs/venv/lib/python3.9/site-packages/tqdm/std.py:1195, in tqdm.__iter__(self)
1192 time = self._time
1194 try:
-> 1195 for obj in iterable:
1196 yield obj
1197 # Update and possibly print the progressbar.
1198 # Note: does not call self.update(1) for speed optimisation.
File /opt/conda/envs/venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py:67, in Parquet._generate_tables(self, files)
65 for file_idx, file in enumerate(itertools.chain.from_iterable(files)):
66 with open(file, "rb") as f:
---> 67 parquet_file = pq.ParquetFile(f)
68 try:
69 for batch_idx, record_batch in enumerate(
70 parquet_file.iter_batches(batch_size=self.config.batch_size, columns=self.config.columns)
71 ):
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/parquet/__init__.py:286, in ParquetFile.__init__(self, source, metadata, common_metadata, read_dictionary, memory_map, buffer_size, pre_buffer, coerce_int96_timestamp_unit, decryption_properties, thrift_string_size_limit, thrift_container_size_limit)
280 def __init__(self, source, *, metadata=None, common_metadata=None,
281 read_dictionary=None, memory_map=False, buffer_size=0,
282 pre_buffer=False, coerce_int96_timestamp_unit=None,
283 decryption_properties=None, thrift_string_size_limit=None,
284 thrift_container_size_limit=None):
285 self.reader = ParquetReader()
--> 286 self.reader.open(
287 source, use_memory_map=memory_map,
288 buffer_size=buffer_size, pre_buffer=pre_buffer,
289 read_dictionary=read_dictionary, metadata=metadata,
290 coerce_int96_timestamp_unit=coerce_int96_timestamp_unit,
291 decryption_properties=decryption_properties,
292 thrift_string_size_limit=thrift_string_size_limit,
293 thrift_container_size_limit=thrift_container_size_limit,
294 )
295 self.common_metadata = common_metadata
296 self._nested_paths_by_prefix = self._build_nested_paths()
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/_parquet.pyx:1227, in pyarrow._parquet.ParquetReader.open()
File /opt/conda/envs/venv/lib/python3.9/site-packages/pyarrow/error.pxi:100, in pyarrow.lib.check_status()
ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
``` | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | Can you check the JSON file associated to `/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7` ? In the JSON file we can know from where it was downloaded
You can find it at `/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7.json` | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 28 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
Can you check the JSON file associated to `/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7` ? In the JSON file we can know from where it was downloaded
You can find it at `/home/loubna_huggingface_co/.cache/huggingface/datasets/downloads/93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7.json` | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | I'm able to load it properly using
```python
ds = load_dataset("parquet", data_files=a_parquet_file_url, use_auth_token=token)
```
My guess is that your download was corrupted. Please delete `93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7` and `93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7.json` locally and try again | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 31 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
I'm able to load it properly using
```python
ds = load_dataset("parquet", data_files=a_parquet_file_url, use_auth_token=token)
```
My guess is that your download was corrupted. Please delete `93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7` and `93431bc4380de07de8b0ab533666cb5a6120cbe266779e0a63c86bf7717475d7.json` locally and try again | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | That worked, thanks! But I thought if something went wrong with a download `datasets` creates new cache for all the files, that's not the case? (at some point I even changed dataset versions so it was still using that cache?) | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 40 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
That worked, thanks! But I thought if something went wrong with a download `datasets` creates new cache for all the files, that's not the case? (at some point I even changed dataset versions so it was still using that cache?) | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | Cool !
> But I thought if something went wrong with a download datasets creates new cache for all the files
We don't perform integrity verifications if we don't know in advance the hash of the file to download.
> at some point I even changed dataset versions so it was still using that cache?
`datasets` caches the files by URL and ETag. If the content of a file changes, then the ETag changes and so it redownloads the file | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 80 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
Cool !
> But I thought if something went wrong with a download datasets creates new cache for all the files
We don't perform integrity verifications if we don't know in advance the hash of the file to download.
> at some point I even changed dataset versions so it was still using that cache?
`datasets` caches the files by URL and ETag. If the content of a file changes, then the ETag changes and so it redownloads the file | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5264 | `datasets` can't read a Parquet file in Python 3.9.13 | I experience the same error in v 2.12.0. But found out it was due to one column from polars was a categorical dtype (related to the error from #5706. Temporarily resolved it by casting the column to str instead. | ### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
``` | 410 | 39 | `datasets` can't read a Parquet file in Python 3.9.13
### Describe the bug
I have an error when trying to load this [dataset](https://huggingface.co/datasets/bigcode/the-stack-dedup-pjj) (it's private but I can add you to the bigcode org). `datasets` can't read one of the parquet files in the Java subset
```python
from datasets import load_dataset
ds = load_dataset("bigcode/the-stack-dedup-pjj", data_dir="data/java", split="train", revision="v1.1.a1", use_auth_token=True)
````
```
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
```
It seems to be an issue with new Python versions, Because it works in these two environements:
```
- `datasets` version: 2.6.1
- Platform: Linux-5.4.0-131-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-debian-10.13
- Python version: 3.7.12
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
But not in this:
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
### Steps to reproduce the bug
Load the dataset in python 3.9.13
### Expected behavior
Load the dataset without the pyarrow error.
### Environment info
```
- `datasets` version: 2.6.1
- Platform: Linux-4.19.0-22-cloud-amd64-x86_64-with-glibc2.28
- Python version: 3.9.13
- PyArrow version: 9.0.0
- Pandas version: 1.3.4
```
I experience the same error in v 2.12.0. But found out it was due to one column from polars was a categorical dtype (related to the error from #5706. Temporarily resolved it by casting the column to str instead. | [
-1.127129077911377,
-0.7440928220748901,
-0.6380985975265503,
1.4514446258544922,
-0.1577606201171875,
-1.312083125114441,
0.18238748610019684,
-1.0312397480010986,
1.752678632736206,
-0.7964548468589783,
0.35350868105888367,
-1.6552176475524902,
0.04227261617779732,
-0.5186208486557007,
-0.7342584133148193,
-0.829250156879425,
-0.3719278872013092,
-0.7044937610626221,
1.0504151582717896,
2.430662155151367,
1.2054109573364258,
-1.3900182247161865,
2.6711487770080566,
0.646260142326355,
-0.19262626767158508,
-0.8869633674621582,
0.49949967861175537,
-0.018425162881612778,
-1.5064839124679565,
-0.30170074105262756,
-0.9339976906776428,
-0.12565039098262787,
-0.5957282781600952,
-0.6560280323028564,
0.023520000278949738,
0.4133736789226532,
-0.3088895082473755,
-0.49601876735687256,
-0.42709094285964966,
-0.7988458275794983,
0.43710076808929443,
-0.3085929751396179,
0.9214369058609009,
-0.4012548625469208,
1.6743342876434326,
-0.5814008116722107,
0.5739579796791077,
0.7539367079734802,
1.2346930503845215,
0.20475590229034424,
-0.03884882479906082,
0.3237294852733612,
0.3547998368740082,
0.025201722979545593,
0.568919837474823,
1.1226872205734253,
0.6554288268089294,
0.4185762405395508,
0.7033442854881287,
-2.236528158187866,
1.3505219221115112,
-0.9429283142089844,
0.2475089132785797,
1.2916746139526367,
-1.012624979019165,
0.28846320509910583,
-1.7434818744659424,
-0.08079604059457779,
0.45646363496780396,
-2.216216802597046,
0.2663370370864868,
-1.386888861656189,
-0.5222780704498291,
1.0511810779571533,
0.3886299729347229,
-1.1561857461929321,
-0.0010404149070382118,
-0.3107863664627075,
0.9227480292320251,
0.40975266695022583,
1.1636296510696411,
-1.6383181810379028,
0.009785125032067299,
-0.2966741621494293,
0.23171916604042053,
-1.170901894569397,
-1.5262947082519531,
0.5268713235855103,
0.7656381726264954,
0.5450713634490967,
-0.14855104684829712,
0.9718855619430542,
-0.9897277355194092,
0.7425824999809265,
-0.9363260865211487,
-1.8319915533065796,
-1.3375943899154663,
-2.281346559524536,
-2.3242979049682617,
0.7258870005607605,
-0.4766288697719574,
-0.37588757276535034,
2.0982918739318848,
-1.0954233407974243,
-1.7580374479293823,
1.0312161445617676,
0.29894623160362244,
-0.08739513903856277,
2.2804720401763916,
0.20876210927963257,
-0.7813799381256104,
0.5372569561004639,
-0.8513801097869873,
0.5946177244186401,
-0.356074720621109,
1.3045105934143066,
0.3729782998561859,
-1.0943716764450073,
1.5207377672195435,
-0.3543136715888977,
0.6052939891815186,
-0.6588241457939148,
-0.40323951840400696,
-0.6372302174568176,
0.20864197611808777,
1.888182282447815,
-0.2924664616584778,
1.4407155513763428,
-0.23562785983085632,
-1.5399137735366821,
-1.4828616380691528,
0.7860580682754517,
0.5630836486816406,
-0.6053656935691833,
0.10793597251176834,
-0.2314620465040207,
0.10257170349359512,
-0.027342842891812325,
1.0651816129684448,
1.2556244134902954,
0.8894985914230347,
-0.29518237709999084,
-0.8864983320236206,
0.17197531461715698,
0.020375344902276993,
-0.6976041793823242,
-1.8008581399917603,
-0.25304749608039856,
0.15167583525180817,
0.6383677124977112,
-1.2598276138305664,
1.824144959449768,
0.874584972858429,
1.9898083209991455,
0.9440106749534607,
-0.42073461413383484,
1.6049367189407349,
0.12832048535346985,
1.9473016262054443,
-0.30609220266342163,
0.6622082591056824,
-0.43369218707084656,
-1.201438307762146,
0.830356776714325,
-0.27611929178237915,
-2.0209262371063232,
-0.5072659254074097,
-0.8738235831260681,
-0.11811921000480652,
-0.7754830121994019,
1.049852728843689,
-0.17165334522724152,
-1.4160763025283813,
0.20881608128547668,
-0.7467220425605774,
0.057656385004520416,
-1.2963553667068481,
0.31310707330703735,
0.765233039855957,
-0.6493319272994995,
0.1235584169626236,
-0.3350592851638794,
-1.3132352828979492,
-0.5382459759712219,
0.37229254841804504,
1.747743844985962,
-0.7412360310554504,
1.0608339309692383,
1.1032562255859375,
-0.7477694749832153,
-0.07008212804794312,
0.43272408843040466,
-0.39982837438583374,
0.8809928894042969,
-1.0614646673202515,
-0.4012792110443115,
1.153475046157837,
-0.18334145843982697,
-0.5854575037956238,
1.4238293170928955,
0.656752347946167,
-1.0128220319747925,
-0.15285786986351013,
-0.17419245839118958,
-0.7537514567375183,
0.11043859273195267,
-1.664729356765747,
-0.06674625724554062,
0.3352328836917877,
-1.535631537437439,
-0.44851425290107727,
-0.11148373037576675,
1.3534348011016846,
-0.05983855947852135,
1.398497223854065,
-0.19929400086402893,
-0.15922588109970093,
-0.5077635049819946,
-0.3302187919616699,
0.09026464819908142,
-0.1954939067363739,
-0.6128200888633728,
0.39298495650291443,
-0.7869748473167419,
0.22462226450443268,
1.4173706769943237,
0.24768194556236267,
0.00020001549273729324,
0.5586994886398315,
1.069635272026062,
0.3934166133403778,
-0.13066203892230988,
-0.8875427842140198,
-1.587998390197754,
2.0529086589813232,
-1.4398393630981445,
2.0307207107543945,
0.7266432046890259,
-0.010888720862567425,
-1.8371167182922363,
-1.9855601787567139,
1.435355544090271,
1.0375792980194092,
2.4953665733337402,
0.5526753664016724,
0.45364508032798767,
-0.7948480844497681,
-0.650317907333374,
0.43831345438957214,
-0.8916722536087036,
-0.7456866502761841,
0.23312965035438538,
2.39741849899292,
1.6128586530685425,
-0.39222705364227295,
-0.16712044179439545,
-1.0661702156066895,
1.4611434936523438,
-0.11761008203029633,
0.25722360610961914,
1.9700021743774414,
-0.26788002252578735,
-1.045639157295227,
1.2474119663238525,
-2.3327152729034424,
0.24094846844673157,
1.9769166707992554,
0.23202480375766754,
0.10349118709564209,
-1.3421015739440918,
-0.7367430925369263,
-0.23229220509529114,
-0.5151154398918152,
-1.2235742807388306,
0.556431770324707,
-0.2006678581237793,
-0.8368618488311768,
-1.421014666557312,
0.13058695197105408,
-1.122887134552002,
-1.8249387741088867,
0.20677049458026886,
1.8597782850265503,
2.0478997230529785,
-0.764976441860199,
1.4950965642929077,
-0.31970688700675964,
0.1778155267238617,
1.208343505859375,
1.1459672451019287,
3.132075786590576,
1.9361557960510254,
-1.3452825546264648,
0.7432702779769897,
-0.04653991386294365,
-0.4120693504810333,
1.1639636754989624,
-1.1745232343673706,
1.2591001987457275,
-0.2393006980419159,
-1.219925045967102,
-1.1704344749450684,
0.9163303971290588,
0.4623280167579651,
0.02160777896642685,
-0.46324092149734497,
1.121099591255188,
0.14769846200942993,
1.3735055923461914,
0.5890252590179443,
-0.19311055541038513,
0.706489086151123,
-0.3680659234523773,
-0.45445874333381653,
1.550264835357666,
0.19561262428760529,
-1.3104006052017212,
-2.369582176208496,
-0.21755346655845642,
-0.9255018830299377,
-0.009807368740439415,
-0.6565119624137878,
-0.9434429407119751,
1.5770677328109741,
0.5310266017913818,
-1.1119931936264038,
-0.16692566871643066,
-0.3660052716732025,
-0.5638289451599121,
2.6593668460845947,
-1.3643821477890015,
-0.1778133064508438,
-1.0002055168151855,
-0.6413180232048035,
1.5556435585021973,
-1.1952576637268066,
-0.2522799074649811,
-1.080079197883606,
-0.47731509804725647,
-1.3221285343170166,
-0.6093129515647888,
-0.02998315915465355,
-0.817761242389679,
0.8012543320655823,
0.1511426717042923,
-1.2953153848648071,
-0.3821476399898529,
-0.9825263023376465,
0.8556143045425415,
-0.06743347644805908,
0.14099904894828796,
1.8319967985153198,
0.3443584144115448,
-0.35402432084083557,
0.6617571115493774,
1.0613772869110107,
0.6254393458366394,
-0.5200220346450806,
0.4051174521446228,
-0.7038705348968506,
0.33860817551612854,
-1.2834104299545288,
0.27174070477485657,
-2.878899335861206,
0.6308399438858032,
-0.0313168503344059,
0.009803993627429008,
-0.15609034895896912,
-1.342657446861267,
1.0428006649017334,
2.546517848968506,
-1.1405932903289795,
0.576469361782074,
0.3136742115020752,
1.1420769691467285,
-1.5349668264389038,
0.21140392124652863,
-0.498311847448349,
2.167194366455078,
0.12245693802833557,
1.1134870052337646,
-0.4212387204170227,
-2.366997718811035,
0.6475119590759277,
-1.2211735248565674,
-1.0958789587020874,
0.8214117884635925,
-0.7928770780563354,
0.09254398941993713,
-1.2025444507598877,
-0.1425085812807083,
-0.7900988459587097,
-1.2252774238586426,
0.6615299582481384,
0.035931963473558426,
0.5980658531188965,
-0.6569511890411377,
0.3589477241039276,
-2.186950206756592,
-1.3119136095046997,
-0.30221885442733765,
-0.9140608310699463,
0.4777088463306427,
-0.293460875749588,
0.7852548360824585,
-0.1677294373512268,
-0.08604048192501068,
0.38036030530929565,
1.2883732318878174,
3.3383569717407227,
0.05527052283287048,
0.29785603284835815,
-0.20015905797481537,
-1.0677156448364258,
1.4090280532836914,
0.9708924889564514,
-0.21464397013187408,
-0.537638783454895,
-1.0837031602859497,
1.1665542125701904,
1.971677303314209,
1.0433058738708496,
0.05473705381155014,
-0.919353187084198,
-0.9304616451263428,
0.14532767236232758,
0.09428943693637848,
0.5055616497993469,
0.8990052342414856,
0.15459749102592468,
0.0703708678483963,
1.497377872467041,
1.1241320371627808,
-0.29105618596076965,
0.367963969707489,
-0.8820632100105286,
-0.4816442131996155,
0.5863071084022522,
0.42949897050857544,
0.042684197425842285,
0.2554681897163391,
-1.102150559425354,
-0.20711195468902588,
-0.2955854535102844,
-0.8922621607780457,
-0.757977306842804,
-0.46096593141555786,
-0.36297157406806946,
1.7561109066009521,
-0.0543619841337204,
-0.5246802568435669,
-0.003988317679613829,
-0.7780837416648865,
0.022775474935770035,
-1.0023415088653564,
0.4093204438686371,
-0.22503423690795898,
0.06837459653615952,
-0.1728551834821701,
1.7454713582992554,
-0.9380476474761963,
-2.0321426391601562,
0.25965169072151184,
0.1672726720571518,
-0.40745437145233154,
0.15696682035923004,
1.7307449579238892,
0.6955217123031616,
1.4265172481536865,
1.4464598894119263,
1.0384156703948975,
-0.6479107737541199,
-1.3271080255508423,
0.6347828507423401,
0.9337723255157471,
-1.4594240188598633,
0.7360262274742126,
0.010078854858875275,
-0.4831670820713043,
0.5474115014076233,
1.3268934488296509,
0.45076048374176025,
-2.117480754852295,
0.776283860206604,
-0.8957383036613464,
0.7836093306541443,
0.7554538249969482,
0.8455097079277039,
0.0050391629338264465,
0.7661625146865845,
-1.267364263534546,
-1.0687696933746338,
-0.6126660704612732,
-0.7366731762886047,
1.875486135482788,
-0.32220134139060974,
0.5118041634559631,
-0.30153515934944153,
-1.4527887105941772,
-0.02802239917218685,
0.6143274307250977,
0.32459360361099243,
-0.48436254262924194,
0.7289124131202698,
-0.6432525515556335,
-1.1599152088165283,
-1.3437713384628296,
-0.5167428255081177,
-1.0909358263015747,
-0.9140520095825195,
0.9750533699989319,
0.7980872988700867,
0.5452731847763062,
1.8657422065734863,
0.6533371806144714,
0.15949323773384094,
-2.6308226585388184,
0.8765548467636108,
0.3481724262237549,
-0.0498351976275444,
0.8259551525115967,
0.3266395926475525,
1.03752601146698,
-0.2158108949661255,
0.6537427306175232,
-2.4235198497772217,
2.3450987339019775,
-0.2167316973209381,
0.6903841495513916,
0.13146720826625824,
-0.15519364178180695,
0.9775441288948059,
0.5565379858016968,
0.5858356952667236,
-1.1531920433044434,
0.7746726870536804,
-0.7166581749916077,
1.2895450592041016,
0.8236772418022156,
-0.8345824480056763,
-0.05501153692603111,
1.1801276206970215,
0.4252913296222687,
-0.44133105874061584,
-0.9220957159996033,
-1.062129020690918,
0.934817373752594,
1.781619906425476,
-0.07101824879646301,
0.03456103801727295,
0.8763336539268494,
0.6905761361122131,
-1.3580832481384277,
0.01581369899213314,
-0.7805677056312561,
-0.7128345370292664,
1.715867519378662,
2.0502912998199463,
-0.11343122273683548,
-0.17016533017158508,
-0.7529273629188538,
-1.2601401805877686,
0.787284791469574,
0.13688018918037415,
0.008639132604002953,
0.6772488355636597,
-0.5865232348442078,
1.182817816734314,
0.8589314222335815,
0.9148159027099609,
0.25325068831443787,
0.2095257043838501,
0.20047107338905334,
-0.3508884012699127,
-1.2382038831710815,
-0.2557017207145691,
-0.9335009455680847,
-2.553173303604126,
0.5034778714179993,
-0.17990507185459137,
-1.448065161705017,
-0.03332434594631195,
-1.035663366317749,
0.7437049746513367,
-0.5157538056373596,
-1.1176096200942993,
-1.3524161577224731,
0.18865980207920074,
-0.13355517387390137,
0.9088947772979736,
-1.6062108278274536,
-0.07774509489536285,
1.3255573511123657,
1.0035359859466553,
-0.7117382884025574,
1.0385429859161377,
0.20712901651859283,
1.063944935798645,
0.9865013957023621,
-0.3246878683567047,
0.4941655993461609,
0.22838681936264038,
-1.3117927312850952,
0.3660977780818939,
1.2397929430007935,
0.13552325963974,
1.4859458208084106,
-0.6548642516136169,
0.05386731028556824,
0.3743741512298584,
-0.43960848450660706,
-0.514603316783905,
-0.7670536637306213,
0.7436146140098572,
-0.01250394806265831,
-0.9489648938179016,
0.05069288611412048,
0.024989347904920578,
-0.08542309701442719,
0.18843910098075867,
-1.4708789587020874,
-0.10245810449123383,
-0.2673307955265045,
-0.6547099351882935,
-1.283923625946045,
-0.10661225765943527,
1.276196002960205,
-0.7793144583702087,
-0.11950963735580444,
0.41229313611984253,
0.17696867883205414,
0.5657060146331787,
0.6829977035522461,
-0.7101927399635315,
-0.4295281767845154,
-0.21821743249893188,
-0.4091525375843048,
0.391633003950119,
1.3505265712738037,
-0.009769085794687271,
-0.9674202799797058,
0.6327338218688965,
-0.4044237434864044,
0.06019347161054611,
1.9863873720169067,
0.01455281488597393,
-0.8908267617225647,
0.35129138827323914,
-0.7265427708625793,
1.8909533023834229,
1.7707072496414185,
1.3224960565567017,
-0.08763019740581512,
-1.059805989265442,
0.6225032210350037,
-0.423262357711792,
-0.48723074793815613,
0.9951421022415161,
0.3910215198993683,
-0.24677473306655884,
-1.2946534156799316,
0.661837100982666,
1.3142070770263672,
-0.8767850399017334,
-0.8379954695701599,
0.18269237875938416,
-0.7490902543067932,
1.1172842979431152,
0.7754306197166443,
0.3455073833465576,
0.35998034477233887,
1.5875694751739502,
0.8295047283172607,
-0.5085889101028442,
0.5840628743171692,
0.40184786915779114,
-0.1891143023967743,
-2.0072317123413086,
-1.1665494441986084,
0.37759891152381897,
-0.5641298294067383,
-1.6061090230941772,
1.4798418283462524,
-1.2514355182647705,
-0.9888838529586792,
0.5855951309204102,
0.07566194981336594,
1.3378186225891113,
0.2925100028514862,
1.6257795095443726,
1.9977753162384033,
0.9559853672981262,
0.4065210223197937,
1.305056095123291,
-0.24806609749794006,
-0.387338250875473,
1.7372846603393555,
-0.549375593662262,
0.5641274452209473,
1.0701611042022705,
-0.35188791155815125,
-1.0972347259521484,
-0.8883305191993713,
-1.1917219161987305,
-0.739683985710144,
1.1661431789398193,
0.10723639279603958,
-1.1432628631591797,
0.3670411705970764,
1.6105784177780151,
0.040237169712781906,
-0.2723601460456848,
0.7407990097999573,
0.2783840298652649,
-0.7818143963813782,
-0.08192940056324005,
-1.0131866931915283,
0.520720362663269,
-0.3056023418903351,
-0.3735297918319702,
0.2768235206604004,
0.5106674432754517,
1.3208239078521729,
0.03303227201104164,
0.07126494497060776,
1.2666759490966797,
-1.3632093667984009,
1.4574730396270752,
-0.8508186340332031,
0.3510020971298218,
-2.2542030811309814,
1.3437461853027344,
-0.9314281940460205,
1.90791654586792,
-2.6732189655303955,
0.44205403327941895,
-0.3848237693309784,
-0.49131038784980774,
0.1771688163280487,
-0.3009294867515564,
0.1685890555381775,
-0.15158464014530182,
-1.2014405727386475,
-0.15669555962085724,
-0.8647949695587158,
0.5437323451042175,
1.095262885093689,
1.4059538841247559,
-1.0632750988006592,
-0.33289623260498047,
-1.717916488647461,
-0.14924472570419312,
-0.6472287178039551,
0.3853077292442322,
-1.8175551891326904,
-0.18457578122615814,
-1.9365479946136475,
-2.435637950897217,
-1.2835044860839844,
-0.8823758959770203,
1.1558107137680054,
0.05539613962173462,
-0.8260936141014099,
1.0112000703811646,
-0.39878466725349426,
-1.90964937210083,
1.133084774017334,
-2.2174646854400635
] |
https://github.com/huggingface/datasets/issues/5262 | AttributeError: 'Value' object has no attribute 'names' | Hi ! It looks like your "isDif" column is a Sequence of Value("string"), not a Sequence of ClassLabel.
You can convert your Value("string") feature type to a ClassLabel feature type this way:
```python
from datasets import ClassLabel, Sequence
# provide the label_names yourself
label_names = [...]
# OR get them from the dataset
label_names = sorted(set(label for labels in raw_datasets["train"]["isDif"] for label in labels))
# Cast to ClassLabel
raw_datasets = raw_datasets.cast_column("isDif", Sequence(ClassLabel(names=label_names)))
```
| Hello
I'm trying to build a model for custom token classification
I already followed the token classification course on huggingface
while adapting the code to my work, this message occures :
'Value' object has no attribute 'names'
Here's my code:
`raw_datasets`
generates
DatasetDict({
train: Dataset({
features: ['isDisf', 'pos', 'tokens', 'id'],
num_rows: 14
})
})
`raw_datasets["train"][3]["isDisf"]`
generates
['B_RM', 'I_RM', 'I_RM', 'B_RP', 'I_RP', 'O', 'O']
`dis_feature = raw_datasets["train"].features["isDisf"]
dis_feature`
generates
Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)
and
`label_names = dis_feature.feature.names
label_names`
generates
AttributeError Traceback (most recent call last)
[<ipython-input-28-972fd54a869a>](https://localhost:8080/#) in <module>
----> 1 label_names = dis_feature.feature.names
2 label_names
AttributeError: 'Value' object has
AttributeError: 'Value' object has no attribute 'names'
Thank you for your help | 411 | 73 | AttributeError: 'Value' object has no attribute 'names'
Hello
I'm trying to build a model for custom token classification
I already followed the token classification course on huggingface
while adapting the code to my work, this message occures :
'Value' object has no attribute 'names'
Here's my code:
`raw_datasets`
generates
DatasetDict({
train: Dataset({
features: ['isDisf', 'pos', 'tokens', 'id'],
num_rows: 14
})
})
`raw_datasets["train"][3]["isDisf"]`
generates
['B_RM', 'I_RM', 'I_RM', 'B_RP', 'I_RP', 'O', 'O']
`dis_feature = raw_datasets["train"].features["isDisf"]
dis_feature`
generates
Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)
and
`label_names = dis_feature.feature.names
label_names`
generates
AttributeError Traceback (most recent call last)
[<ipython-input-28-972fd54a869a>](https://localhost:8080/#) in <module>
----> 1 label_names = dis_feature.feature.names
2 label_names
AttributeError: 'Value' object has
AttributeError: 'Value' object has no attribute 'names'
Thank you for your help
Hi ! It looks like your "isDif" column is a Sequence of Value("string"), not a Sequence of ClassLabel.
You can convert your Value("string") feature type to a ClassLabel feature type this way:
```python
from datasets import ClassLabel, Sequence
# provide the label_names yourself
label_names = [...]
# OR get them from the dataset
label_names = sorted(set(label for labels in raw_datasets["train"]["isDif"] for label in labels))
# Cast to ClassLabel
raw_datasets = raw_datasets.cast_column("isDif", Sequence(ClassLabel(names=label_names)))
```
| [
-1.2943975925445557,
-1.0447160005569458,
-0.7585463523864746,
1.714986801147461,
-0.18971481919288635,
-1.163691759109497,
0.06965956836938858,
-1.0429133176803589,
1.6883434057235718,
-0.7910295724868774,
0.2946482300758362,
-1.645073652267456,
-0.004370155744254589,
-0.6497818827629089,
-0.6871684193611145,
-0.7965825200080872,
-0.290588915348053,
-0.8468726277351379,
1.068515658378601,
2.4413750171661377,
1.2588098049163818,
-1.4667656421661377,
2.8030521869659424,
0.7478471398353577,
-0.13605839014053345,
-1.0227153301239014,
0.48937779664993286,
-0.07442112267017365,
-1.246781349182129,
-0.4747326374053955,
-1.007282018661499,
0.0025408919900655746,
-0.635270357131958,
-0.44278281927108765,
-0.05364469438791275,
0.43937695026397705,
-0.3142799735069275,
-0.5007396340370178,
-0.5765396356582642,
-0.7151336669921875,
0.3675197958946228,
-0.34388911724090576,
0.9050173163414001,
-0.28929203748703003,
1.7675808668136597,
-0.48929184675216675,
0.29841917753219604,
0.6299066543579102,
1.3441109657287598,
0.2729555368423462,
0.03093332052230835,
0.33791613578796387,
0.36482036113739014,
-0.07354824990034103,
0.5933762788772583,
1.2587018013000488,
0.6129694581031799,
0.42899370193481445,
0.8788922429084778,
-2.2964284420013428,
1.2750669717788696,
-1.0985840559005737,
0.33500319719314575,
1.2948126792907715,
-0.8521400690078735,
0.4243588447570801,
-1.7403082847595215,
0.019852926954627037,
0.7139933109283447,
-2.14461350440979,
0.32450294494628906,
-1.3375935554504395,
-0.5094440579414368,
0.9626291990280151,
0.31435370445251465,
-1.3126044273376465,
0.10778307169675827,
-0.4837265610694885,
1.0694547891616821,
0.38896942138671875,
1.0326933860778809,
-1.7222646474838257,
0.06744857877492905,
-0.2539721429347992,
0.22592419385910034,
-1.2029178142547607,
-1.5905382633209229,
0.6067674160003662,
0.5752079486846924,
0.6732235550880432,
-0.07888570427894592,
1.1284992694854736,
-1.1462615728378296,
0.6911994218826294,
-1.0878384113311768,
-1.735015869140625,
-1.4153273105621338,
-2.285327196121216,
-2.1538829803466797,
0.6282133460044861,
-0.5086778998374939,
-0.5355621576309204,
2.031623601913452,
-0.9062386155128479,
-1.74212646484375,
1.1749756336212158,
0.44438445568084717,
0.13480833172798157,
2.4012138843536377,
0.1638936698436737,
-0.8189016580581665,
0.48315566778182983,
-0.738660454750061,
0.7565814852714539,
-0.33598726987838745,
1.3743808269500732,
0.40042465925216675,
-0.8879058957099915,
1.66892671585083,
-0.4638640880584717,
0.6358518004417419,
-0.6018876433372498,
-0.40282827615737915,
-0.7196905612945557,
0.2525891661643982,
1.8498691320419312,
-0.25039392709732056,
1.456796407699585,
-0.3745364546775818,
-1.531050205230713,
-1.6081942319869995,
0.9139895439147949,
0.35614198446273804,
-0.9123175740242004,
0.09803105890750885,
-0.4702609181404114,
0.1595870852470398,
-0.13241437077522278,
1.232550024986267,
1.2720288038253784,
0.6574356555938721,
-0.3004264235496521,
-0.880811870098114,
0.14298689365386963,
-0.1129339337348938,
-0.7429857850074768,
-1.7907335758209229,
-0.22098006308078766,
0.19539447128772736,
0.7554950714111328,
-1.2145631313323975,
1.6915534734725952,
0.9426541924476624,
1.8967211246490479,
1.0341227054595947,
-0.3348175287246704,
1.5546752214431763,
0.08895635604858398,
1.7388681173324585,
-0.5811629295349121,
0.5944546461105347,
-0.34443968534469604,
-1.1620047092437744,
0.8691736459732056,
-0.35246413946151733,
-2.0246505737304688,
-0.7761200666427612,
-0.7572929859161377,
-0.15997180342674255,
-0.8248381018638611,
0.8802830576896667,
-0.3465425372123718,
-1.499971866607666,
0.25634104013442993,
-0.7681611776351929,
0.15839701890945435,
-1.1046333312988281,
0.3190308213233948,
0.6670856475830078,
-0.5734858512878418,
0.12300696969032288,
-0.2675197720527649,
-1.3028148412704468,
-0.49339860677719116,
0.392122745513916,
1.89973783493042,
-0.7276672124862671,
0.7423250079154968,
1.0837033987045288,
-0.6270231008529663,
0.04153352603316307,
0.16692233085632324,
-0.2688353657722473,
0.8645678758621216,
-1.0308529138565063,
-0.5771673321723938,
1.1972994804382324,
-0.20571354031562805,
-0.6480741500854492,
1.4250504970550537,
0.7393131256103516,
-0.9800253510475159,
-0.2639896273612976,
-0.14228267967700958,
-0.7800810933113098,
-0.027893586084246635,
-1.4849447011947632,
-0.18477998673915863,
0.48357629776000977,
-1.5638142824172974,
-0.42355120182037354,
-0.21776217222213745,
1.349778175354004,
-0.16115806996822357,
1.4394301176071167,
-0.37010639905929565,
-0.13143420219421387,
-0.18024544417858124,
-0.37822049856185913,
0.21766959130764008,
-0.29085731506347656,
-0.6721101999282837,
0.02498488873243332,
-0.8192992806434631,
0.3283637762069702,
1.4582849740982056,
0.344718337059021,
0.040334396064281464,
0.49543142318725586,
1.2053580284118652,
0.4852299094200134,
0.11844663321971893,
-0.84571373462677,
-1.500109314918518,
1.971389889717102,
-1.4940838813781738,
2.0498645305633545,
0.7422640323638916,
0.011380074545741081,
-1.8153048753738403,
-1.8553247451782227,
1.3916499614715576,
1.2038542032241821,
2.297800302505493,
0.5963878035545349,
0.37942105531692505,
-0.8384689688682556,
-0.6258243322372437,
0.2866314649581909,
-0.9178919792175293,
-0.6604664325714111,
0.16999654471874237,
2.3888015747070312,
1.8251678943634033,
-0.4152544140815735,
-0.19263654947280884,
-0.8851736187934875,
1.5183405876159668,
-0.28736811876296997,
0.30929064750671387,
1.983899712562561,
-0.255033016204834,
-1.007909893989563,
1.3598171472549438,
-2.430856704711914,
0.20739498734474182,
2.0619215965270996,
0.2945176362991333,
0.07644183188676834,
-1.3412575721740723,
-0.7148054242134094,
-0.30708032846450806,
-0.4429381489753723,
-1.352017879486084,
0.4879457950592041,
-0.3388945460319519,
-0.7316451668739319,
-1.4723535776138306,
0.20456092059612274,
-1.0987166166305542,
-1.6144943237304688,
0.24488110840320587,
1.943781852722168,
2.084541082382202,
-0.7599179148674011,
1.638651728630066,
-0.2688405513763428,
0.1679736077785492,
1.2212870121002197,
1.325210452079773,
3.0605649948120117,
1.8145421743392944,
-1.2264124155044556,
0.5848389863967896,
-0.1107831746339798,
-0.5023767948150635,
1.12923264503479,
-1.1827540397644043,
1.3068071603775024,
-0.11043577641248703,
-1.134232997894287,
-1.173445463180542,
0.9174493551254272,
0.5282465815544128,
-0.04343113303184509,
-0.536622941493988,
1.1383427381515503,
-0.05408579111099243,
1.2569247484207153,
0.6191259622573853,
-0.39893949031829834,
0.5440970063209534,
-0.3952406048774719,
-0.5475671291351318,
1.495927333831787,
0.059217795729637146,
-1.422637939453125,
-2.242788791656494,
-0.14475451409816742,
-0.7501787543296814,
0.027511782944202423,
-0.5967028737068176,
-1.1100887060165405,
1.6906323432922363,
0.28857165575027466,
-1.145580530166626,
-0.2317129224538803,
-0.37275195121765137,
-0.4821084141731262,
2.668163299560547,
-1.2538278102874756,
-0.29834187030792236,
-0.9993968605995178,
-0.5973705649375916,
1.6501057147979736,
-1.0857691764831543,
-0.1815022975206375,
-1.0591017007827759,
-0.5605304837226868,
-1.3693307638168335,
-0.5662347078323364,
0.08106667548418045,
-0.8902590870857239,
0.9093264937400818,
0.2623888850212097,
-1.2438534498214722,
-0.38664311170578003,
-0.8683961033821106,
0.9007982611656189,
-0.21930371224880219,
0.2050691545009613,
1.9936410188674927,
0.30242854356765747,
-0.43254148960113525,
0.8303564190864563,
1.1484557390213013,
0.6594623327255249,
-0.5977655649185181,
0.156363844871521,
-0.5575978755950928,
0.4081968069076538,
-1.3649128675460815,
0.21841882169246674,
-2.9883956909179688,
0.6535246968269348,
0.03368892893195152,
-0.14500127732753754,
0.029379617422819138,
-1.3777722120285034,
1.0549129247665405,
2.51403546333313,
-1.1717463731765747,
0.48423731327056885,
0.31346821784973145,
1.2169820070266724,
-1.7136342525482178,
0.22638675570487976,
-0.390397846698761,
2.0417752265930176,
0.07600376009941101,
1.2351484298706055,
-0.40812748670578003,
-2.3588638305664062,
0.6344167590141296,
-1.302233099937439,
-1.0782426595687866,
0.6919131278991699,
-1.0573394298553467,
0.27031439542770386,
-1.5678706169128418,
-0.33083969354629517,
-0.9489216804504395,
-1.117227554321289,
0.6492804288864136,
0.2003154158592224,
0.3094198703765869,
-0.5884411931037903,
0.37063246965408325,
-2.14782452583313,
-1.4200406074523926,
-0.14056222140789032,
-0.9774158000946045,
0.556731104850769,
-0.46478164196014404,
0.6196669340133667,
-0.11995841562747955,
0.02148139476776123,
0.34439384937286377,
1.5479114055633545,
3.350078582763672,
0.1884390264749527,
0.341819703578949,
-0.23815694451332092,
-0.9503839612007141,
1.5219311714172363,
0.9352569580078125,
-0.1427728533744812,
-0.44283825159072876,
-1.1023415327072144,
1.4288172721862793,
1.9591487646102905,
0.8738479614257812,
0.04062371328473091,
-0.777334451675415,
-0.7054101228713989,
-0.09779549390077591,
0.20396262407302856,
0.46839118003845215,
0.9117539525032043,
0.09888505190610886,
-0.0001338934525847435,
1.4400694370269775,
1.1077804565429688,
-0.443727970123291,
0.33241862058639526,
-0.9197110533714294,
-0.4469955563545227,
0.5171635746955872,
0.23887915909290314,
-0.11998892575502396,
0.39093655347824097,
-0.9866107106208801,
-0.2506828010082245,
-0.4382776618003845,
-0.8107653260231018,
-0.6676336526870728,
-0.41652220487594604,
-0.2896977663040161,
1.5554049015045166,
0.2626674175262451,
-0.6365445256233215,
-0.0966358482837677,
-0.7851282358169556,
-0.12194526940584183,
-1.100364089012146,
0.20051154494285583,
-0.14953063428401947,
-0.1125892624258995,
-0.20093537867069244,
1.6728519201278687,
-0.8417001366615295,
-2.036010265350342,
0.012746572494506836,
0.29888176918029785,
-0.19042418897151947,
0.2597973346710205,
1.7416104078292847,
0.5315707325935364,
1.4226651191711426,
1.3052992820739746,
0.9628551006317139,
-0.6380195617675781,
-1.3028578758239746,
0.6098318099975586,
1.0435307025909424,
-1.3189390897750854,
0.9271664023399353,
-0.09347840398550034,
-0.5991033315658569,
0.6320313811302185,
1.3932849168777466,
0.5082087516784668,
-1.9827731847763062,
0.8702505230903625,
-1.0004513263702393,
0.8909435272216797,
0.7091508507728577,
0.6523752808570862,
0.2597147226333618,
0.836700975894928,
-1.182193398475647,
-1.1347885131835938,
-0.7558989524841309,
-0.803869903087616,
1.9533251523971558,
-0.43513524532318115,
0.5881186127662659,
-0.19031333923339844,
-1.2556627988815308,
-0.09068433940410614,
0.6851841807365417,
0.4198824167251587,
-0.4374930262565613,
0.8401910662651062,
-0.6713593006134033,
-1.074682354927063,
-1.2793859243392944,
-0.4189950227737427,
-0.9269424080848694,
-1.0263285636901855,
1.0145535469055176,
0.7710412740707397,
0.266934871673584,
1.903785228729248,
0.701131284236908,
0.165890172123909,
-2.4493138790130615,
0.8630669116973877,
0.34468698501586914,
-0.14707434177398682,
0.7610428929328918,
0.32733726501464844,
1.106991171836853,
0.0024286946281790733,
0.49068498611450195,
-2.330566883087158,
2.266774892807007,
-0.15186843276023865,
0.8158096075057983,
-0.07301481813192368,
-0.1320039927959442,
1.0977250337600708,
0.4696635603904724,
0.5886774659156799,
-0.9509612321853638,
0.6236691474914551,
-0.5577126741409302,
1.2336094379425049,
0.9808080792427063,
-0.7550036907196045,
-0.07632799446582794,
1.404902696609497,
0.43620914220809937,
-0.6982860565185547,
-1.0046427249908447,
-0.8940613865852356,
0.9054542183876038,
1.689647912979126,
0.02198345586657524,
0.01116655021905899,
0.7679112553596497,
0.6284858584403992,
-1.2507892847061157,
-0.00323037663474679,
-0.6485585570335388,
-0.7570674419403076,
1.755033016204834,
2.1117823123931885,
-0.31330031156539917,
-0.13255104422569275,
-0.603436291217804,
-1.3986507654190063,
0.6944409608840942,
-0.12487813085317612,
0.07316487282514572,
0.6269519925117493,
-0.6708397269248962,
1.0046989917755127,
0.7124725580215454,
0.8764063715934753,
0.09937780350446701,
0.35196614265441895,
0.45638662576675415,
-0.405910849571228,
-1.2346289157867432,
-0.2714998126029968,
-1.0937803983688354,
-2.39003849029541,
0.341147780418396,
-0.04814765974879265,
-1.3657008409500122,
0.0009406954050064087,
-0.978053867816925,
1.0134365558624268,
-0.5740792751312256,
-1.1364301443099976,
-1.4320526123046875,
0.23887820541858673,
0.024970661848783493,
0.8628185391426086,
-1.5251522064208984,
-0.13743434846401215,
1.2524502277374268,
0.9996943473815918,
-0.7168819308280945,
0.9917550086975098,
0.24583517014980316,
1.119063138961792,
0.8025118112564087,
-0.36935389041900635,
0.5393064022064209,
-0.0857277438044548,
-1.2711842060089111,
0.49018561840057373,
1.2058366537094116,
0.19342593848705292,
1.4702585935592651,
-0.3649817109107971,
-0.07009902596473694,
0.4080880880355835,
-0.6552854180335999,
-0.4108351469039917,
-0.4444774389266968,
0.5154459476470947,
-0.03281079977750778,
-0.7974181175231934,
-0.0731913223862648,
-0.024059122428297997,
-0.3709781765937805,
0.14529107511043549,
-1.5616263151168823,
-0.1483362466096878,
-0.3506084680557251,
-0.5482455492019653,
-1.2655856609344482,
0.004726839251816273,
1.434070348739624,
-0.690727949142456,
-0.35426002740859985,
0.46524888277053833,
0.4058648943901062,
0.4606747627258301,
0.5854193568229675,
-0.7692148685455322,
-0.28095316886901855,
-0.2141929417848587,
-0.3038545250892639,
0.24506397545337677,
1.334947943687439,
-0.10239032655954361,
-1.000287652015686,
0.6231313347816467,
-0.4026435613632202,
-0.014961021021008492,
1.8038188219070435,
-0.07081739604473114,
-0.7603810429573059,
0.26812970638275146,
-0.810736358165741,
1.918715476989746,
1.7041561603546143,
1.2759655714035034,
-0.28634321689605713,
-0.9172033071517944,
0.7354459166526794,
-0.5054940581321716,
-0.4327019453048706,
0.7722998857498169,
0.33595478534698486,
-0.20740452408790588,
-1.4254816770553589,
0.7541517615318298,
1.2035380601882935,
-0.8661715388298035,
-0.78241366147995,
0.15543775260448456,
-0.799787163734436,
1.1451077461242676,
0.6247130036354065,
0.3217313885688782,
0.3331303000450134,
1.6969656944274902,
0.8287036418914795,
-0.47340071201324463,
0.4774479269981384,
0.627583384513855,
-0.19822749495506287,
-2.0920910835266113,
-1.2071360349655151,
0.26243019104003906,
-0.5079638957977295,
-1.6710067987442017,
1.3418971300125122,
-1.0986084938049316,
-0.9525671005249023,
0.543143093585968,
0.013795433565974236,
1.2539982795715332,
0.43451178073883057,
1.4901123046875,
2.053065538406372,
0.8336784839630127,
0.4846775531768799,
1.2360880374908447,
-0.19582217931747437,
-0.4323154091835022,
1.904059648513794,
-0.4193209409713745,
0.5320086479187012,
1.1100850105285645,
-0.299502432346344,
-1.207513689994812,
-0.7170795202255249,
-1.3266321420669556,
-0.6658914089202881,
1.1138499975204468,
0.09609124809503555,
-1.1594305038452148,
0.26263707876205444,
1.570265531539917,
0.14035996794700623,
-0.35123807191848755,
0.7128764390945435,
0.41682159900665283,
-0.7417453527450562,
-0.06437131762504578,
-0.8982788324356079,
0.5642563700675964,
-0.22660338878631592,
-0.33529144525527954,
0.3847745656967163,
0.4666792154312134,
1.4253605604171753,
-0.0003566453233361244,
0.16279372572898865,
1.0770363807678223,
-1.3951424360275269,
1.5187568664550781,
-0.8100110292434692,
0.3075559139251709,
-2.402188539505005,
1.3702231645584106,
-0.7449949383735657,
2.1112658977508545,
-2.7010715007781982,
0.4237019419670105,
-0.5987461805343628,
-0.48353803157806396,
0.285733699798584,
-0.28331148624420166,
0.09872834384441376,
-0.015771498903632164,
-1.1330350637435913,
0.026384688913822174,
-0.5964966416358948,
0.5383210182189941,
1.1833370923995972,
1.313878059387207,
-1.1847846508026123,
-0.27940744161605835,
-1.6659355163574219,
-0.20689889788627625,
-0.8721379041671753,
0.22843702137470245,
-2.0753939151763916,
-0.303705096244812,
-1.8251912593841553,
-2.3650898933410645,
-1.1914610862731934,
-0.737727165222168,
1.1232354640960693,
0.073643259704113,
-0.9194762110710144,
1.411128282546997,
-0.30739301443099976,
-1.7896769046783447,
1.0477675199508667,
-2.0804176330566406
] |
https://github.com/huggingface/datasets/issues/5261 | Add PubTables-1M | cc @albertvillanova the author would like to add this dataset to the hub: https://github.com/microsoft/table-transformer/issues/68#issuecomment-1319114621. Could you help him out? | ### Name
PubTables-1M
### Paper
https://openaccess.thecvf.com/content/CVPR2022/html/Smock_PubTables-1M_Towards_Comprehensive_Table_Extraction_From_Unstructured_Documents_CVPR_2022_paper.html
### Data
https://github.com/microsoft/table-transformer
### Motivation
Table Transformer is now available in π€ Transformer, and it was trained on PubTables-1M. It's a large dataset for table extraction and structure recognition in unstructured documents. | 412 | 19 | Add PubTables-1M
### Name
PubTables-1M
### Paper
https://openaccess.thecvf.com/content/CVPR2022/html/Smock_PubTables-1M_Towards_Comprehensive_Table_Extraction_From_Unstructured_Documents_CVPR_2022_paper.html
### Data
https://github.com/microsoft/table-transformer
### Motivation
Table Transformer is now available in π€ Transformer, and it was trained on PubTables-1M. It's a large dataset for table extraction and structure recognition in unstructured documents.
cc @albertvillanova the author would like to add this dataset to the hub: https://github.com/microsoft/table-transformer/issues/68#issuecomment-1319114621. Could you help him out? | [
-1.1623380184173584,
-1.0103501081466675,
-0.8922041654586792,
1.558434009552002,
-0.057132016867399216,
-1.349482774734497,
0.1320275068283081,
-0.9109132289886475,
1.5353827476501465,
-0.652519166469574,
0.25948649644851685,
-1.6395589113235474,
-0.027351584285497665,
-0.5485790371894836,
-0.7330024838447571,
-0.7883615493774414,
-0.30184534192085266,
-0.7300596237182617,
1.0408296585083008,
2.515357732772827,
1.1523430347442627,
-1.3366636037826538,
2.765028953552246,
0.6230514645576477,
-0.2989439070224762,
-0.9804279208183289,
0.5097001194953918,
0.005149542354047298,
-1.183194637298584,
-0.4658868610858917,
-0.9223858118057251,
0.07918395102024078,
-0.5020456910133362,
-0.37022319436073303,
0.12041100114583969,
0.4435882568359375,
-0.22228462994098663,
-0.2813609540462494,
-0.6098750233650208,
-0.8909252882003784,
0.39631369709968567,
-0.370614618062973,
0.9447875022888184,
-0.3140355348587036,
1.8107869625091553,
-0.5694596767425537,
0.3822717070579529,
0.6927635073661804,
1.280052900314331,
0.03465186432003975,
0.0007537025958299637,
0.22069698572158813,
0.3912917971611023,
0.0014605307951569557,
0.40768900513648987,
1.2029591798782349,
0.5205824375152588,
0.4731748700141907,
0.6460604667663574,
-2.1685996055603027,
1.3888869285583496,
-0.7849278450012207,
0.27668139338493347,
1.4421921968460083,
-1.0829936265945435,
0.390024870634079,
-1.7193094491958618,
-0.09351124614477158,
0.5728767514228821,
-2.2816338539123535,
0.27020442485809326,
-1.192317247390747,
-0.5881619453430176,
0.9234246611595154,
0.29695430397987366,
-1.2087305784225464,
0.032895278185606,
-0.5424144268035889,
1.1141666173934937,
0.5093338489532471,
1.0951011180877686,
-1.5645076036453247,
-0.10839006304740906,
-0.14474646747112274,
-0.08940433710813522,
-1.3980345726013184,
-1.5999490022659302,
0.5053012371063232,
0.6873025298118591,
0.6211344003677368,
-0.07141759246587753,
0.9227698445320129,
-1.0462279319763184,
0.8901805877685547,
-0.8454743027687073,
-1.5699797868728638,
-1.3375834226608276,
-2.5924105644226074,
-2.3568320274353027,
0.7249220013618469,
-0.44105595350265503,
-0.5283111929893494,
1.9868000745773315,
-0.9224926233291626,
-1.7959702014923096,
1.193665623664856,
0.24004173278808594,
0.15596604347229004,
2.3972952365875244,
0.36850008368492126,
-0.7287619113922119,
0.3959684371948242,
-0.7094061970710754,
0.7649261355400085,
-0.5391179323196411,
1.3424627780914307,
0.5319393277168274,
-0.8839036822319031,
1.5697195529937744,
-0.4522109925746918,
0.5687897205352783,
-0.6973466277122498,
-0.4536607265472412,
-0.9097186326980591,
0.3273245394229889,
1.811777114868164,
-0.2945835292339325,
1.5819027423858643,
-0.32949841022491455,
-1.5605549812316895,
-1.6002092361450195,
0.7786102294921875,
0.5031754970550537,
-0.8447462320327759,
0.15831832587718964,
-0.4039030373096466,
0.12732529640197754,
0.01521213073283434,
1.1190485954284668,
1.3098639249801636,
0.6241071224212646,
-0.2666601538658142,
-0.9087275862693787,
0.33175724744796753,
-0.051359355449676514,
-0.6275445222854614,
-1.801002860069275,
-0.2574492394924164,
0.3212263286113739,
0.5702248215675354,
-1.2620596885681152,
1.756622076034546,
0.8697803020477295,
2.0748515129089355,
0.8636444211006165,
-0.2008376568555832,
1.4770896434783936,
0.012949838303029537,
1.9146642684936523,
-0.4976171553134918,
0.6223966479301453,
-0.308408260345459,
-1.0988868474960327,
0.7710691094398499,
-0.5091341733932495,
-2.0097129344940186,
-0.7046974301338196,
-1.0746022462844849,
-0.1783149689435959,
-0.6728206872940063,
0.8997344374656677,
-0.3361009657382965,
-1.1960448026657104,
0.2097897082567215,
-0.7361062169075012,
0.13690511882305145,
-1.1987916231155396,
0.16639456152915955,
0.7971257567405701,
-0.6441033482551575,
-0.023289203643798828,
-0.23971734941005707,
-1.2272920608520508,
-0.4806828200817108,
0.4874660074710846,
1.9475914239883423,
-0.7728933095932007,
1.0778263807296753,
0.8922404646873474,
-0.7353249192237854,
0.1828421801328659,
0.31002628803253174,
-0.4371331036090851,
0.8396692276000977,
-1.1025890111923218,
-0.337328165769577,
1.140950322151184,
-0.2852255702018738,
-0.6252885460853577,
1.4740829467773438,
0.800565242767334,
-1.0010185241699219,
-0.27163589000701904,
-0.1538456827402115,
-0.807363748550415,
-0.020956560969352722,
-1.6267471313476562,
-0.1707015037536621,
0.23233871161937714,
-1.4183504581451416,
-0.4270269572734833,
-0.24468742311000824,
1.4141618013381958,
-0.19412760436534882,
1.4216148853302002,
-0.255158007144928,
-0.27848097681999207,
-0.4645889699459076,
-0.580825686454773,
0.07283315807580948,
-0.2779313921928406,
-0.5136848092079163,
0.2136780470609665,
-0.8115885853767395,
0.3138344883918762,
1.5377287864685059,
0.40148305892944336,
0.11897634714841843,
0.5737224221229553,
1.138041377067566,
0.401817262172699,
-0.040235381573438644,
-0.8647683262825012,
-1.5803184509277344,
1.95431649684906,
-1.4264452457427979,
1.9485070705413818,
0.8343048095703125,
-0.0295085646212101,
-1.7819485664367676,
-1.9150245189666748,
1.3336427211761475,
1.1674480438232422,
2.4196784496307373,
0.628885805606842,
0.3635745942592621,
-0.8706591129302979,
-0.7837439179420471,
0.3125242590904236,
-1.0428886413574219,
-0.7923158407211304,
0.07607749849557877,
2.3258323669433594,
1.7981972694396973,
-0.41165611147880554,
-0.2799769639968872,
-0.93465256690979,
1.3472349643707275,
-0.13024365901947021,
0.19360552728176117,
2.0558581352233887,
-0.28536590933799744,
-0.956392228603363,
1.0543487071990967,
-2.3924717903137207,
0.21233338117599487,
2.065117835998535,
0.24238182604312897,
0.03753481060266495,
-1.4741008281707764,
-0.6333158016204834,
-0.3142818212509155,
-0.3175296485424042,
-1.1040911674499512,
0.5758605599403381,
-0.3167440593242645,
-0.8715543150901794,
-1.4519078731536865,
0.1333838403224945,
-1.0933054685592651,
-1.6926175355911255,
0.33489054441452026,
1.8932158946990967,
2.1781413555145264,
-0.8503902554512024,
1.3910771608352661,
-0.10078278183937073,
0.05402029678225517,
1.3521441221237183,
1.341966152191162,
3.157979965209961,
1.9641051292419434,
-1.1559706926345825,
0.7314498424530029,
-0.07692768424749374,
-0.403671532869339,
1.0895183086395264,
-1.0596164464950562,
1.1861951351165771,
-0.1546841263771057,
-1.230414867401123,
-1.2504510879516602,
0.994688868522644,
0.6586081385612488,
-0.04407500475645065,
-0.5293852090835571,
1.4026801586151123,
0.02358003705739975,
1.4043591022491455,
0.5522684454917908,
-0.3455677032470703,
0.5632052421569824,
-0.38308730721473694,
-0.6096886396408081,
1.568993091583252,
0.24257387220859528,
-1.6620233058929443,
-2.404998779296875,
-0.32894372940063477,
-0.8661718368530273,
-0.1745760589838028,
-0.6096404194831848,
-1.0982651710510254,
1.5341362953186035,
0.4433021545410156,
-1.1974618434906006,
-0.31744590401649475,
-0.3011983036994934,
-0.6175479888916016,
2.6191792488098145,
-1.3300479650497437,
-0.20802117884159088,
-0.9819127917289734,
-0.3182120621204376,
1.6344575881958008,
-1.245843529701233,
-0.3706648647785187,
-1.092160940170288,
-0.6760405898094177,
-1.2931857109069824,
-0.5916354656219482,
0.02428261563181877,
-0.8761683106422424,
0.6944213509559631,
0.003696249797940254,
-1.158483862876892,
-0.15636073052883148,
-0.9663503170013428,
0.949123740196228,
-0.08844596892595291,
0.22274984419345856,
1.840054988861084,
0.4112790822982788,
-0.42127475142478943,
0.844190239906311,
1.193068265914917,
0.6103512644767761,
-0.769294798374176,
0.15700663626194,
-0.618533194065094,
0.33335375785827637,
-1.3665549755096436,
0.31951817870140076,
-2.967289924621582,
0.6696451902389526,
-0.15757805109024048,
-0.18646541237831116,
-0.16350573301315308,
-1.3207314014434814,
1.1563048362731934,
2.477294683456421,
-1.2163264751434326,
0.5532585382461548,
0.4066786468029022,
1.25963294506073,
-1.7241368293762207,
0.2951532006263733,
-0.47271305322647095,
2.037872552871704,
0.07261164486408234,
1.2765356302261353,
-0.49113839864730835,
-2.037675380706787,
0.589935302734375,
-1.179534912109375,
-0.9666992425918579,
0.678342878818512,
-0.9029448628425598,
0.23532983660697937,
-1.3710851669311523,
-0.21844224631786346,
-0.7349859476089478,
-1.3964991569519043,
0.6292929649353027,
0.10895418375730515,
0.42520326375961304,
-0.5253332257270813,
0.37860777974128723,
-2.1680309772491455,
-1.4084196090698242,
-0.21250814199447632,
-1.0037002563476562,
0.4922221004962921,
-0.40605661273002625,
0.6356754302978516,
-0.19455523788928986,
0.09125687927007675,
0.24485273659229279,
1.4593496322631836,
3.3851921558380127,
0.1688988357782364,
0.2838510572910309,
-0.11026477813720703,
-0.8753047585487366,
1.5091383457183838,
0.9885374307632446,
-0.06318781524896622,
-0.44761329889297485,
-0.9966837167739868,
1.343506932258606,
2.0534393787384033,
1.1399229764938354,
0.1610671728849411,
-0.8855667114257812,
-0.7042086124420166,
-0.051099151372909546,
0.07042761147022247,
0.510452926158905,
0.9258320927619934,
0.06292017549276352,
0.07442595809698105,
1.3979365825653076,
1.2366397380828857,
-0.37241852283477783,
0.5069975256919861,
-0.925987184047699,
-0.3999677896499634,
0.30845755338668823,
0.23866024613380432,
-0.03295663371682167,
0.40438610315322876,
-1.0399681329727173,
-0.2625736594200134,
-0.30803388357162476,
-0.9430840611457825,
-0.780864953994751,
-0.40855100750923157,
-0.3256292939186096,
1.6941566467285156,
0.13253577053546906,
-0.47319966554641724,
-0.003171693067997694,
-0.7514584064483643,
-0.17436282336711884,
-1.0639562606811523,
0.15346375107765198,
-0.08990726619958878,
-0.013080015778541565,
-0.03187641128897667,
1.7505182027816772,
-1.024872064590454,
-2.3156819343566895,
0.2503446340560913,
0.2589949071407318,
-0.41394150257110596,
0.1257282942533493,
1.7404595613479614,
0.49591872096061707,
1.3983124494552612,
1.2836761474609375,
1.0317270755767822,
-0.78631591796875,
-1.2340633869171143,
0.7300089001655579,
0.9583337306976318,
-1.447331190109253,
0.7885891795158386,
-0.2629154622554779,
-0.4425865709781647,
0.7314997911453247,
1.2701653242111206,
0.4424075782299042,
-1.939947485923767,
0.8902314901351929,
-0.9328356385231018,
0.8555315136909485,
0.8594621419906616,
0.8631276488304138,
0.32075467705726624,
0.84200119972229,
-1.2114394903182983,
-1.137223243713379,
-0.8263022899627686,
-0.6079522371292114,
1.9478431940078735,
-0.26158037781715393,
0.4595816731452942,
-0.11101970821619034,
-1.2318600416183472,
-0.10210522264242172,
0.8533627986907959,
0.26561465859413147,
-0.2933536767959595,
0.8624739646911621,
-0.7811875939369202,
-0.8960380554199219,
-1.3833985328674316,
-0.4604322612285614,
-1.0559594631195068,
-1.0339250564575195,
1.0454814434051514,
0.7816166281700134,
0.36897048354148865,
1.9012088775634766,
0.5777173638343811,
0.38546571135520935,
-2.6163783073425293,
0.9337801933288574,
0.32676780223846436,
0.11491964012384415,
0.8562323451042175,
0.15490904450416565,
1.2446342706680298,
-0.08416353166103363,
0.5150536894798279,
-2.3121540546417236,
2.1199615001678467,
-0.18292354047298431,
0.5767999291419983,
0.009777589701116085,
-0.18333777785301208,
1.101500391960144,
0.5484033823013306,
0.5960978865623474,
-1.1393663883209229,
0.8360258340835571,
-0.5552585124969482,
1.1398048400878906,
0.8640962243080139,
-0.8594247102737427,
0.10786924511194229,
1.4376018047332764,
0.5635955929756165,
-0.5150360465049744,
-0.8715580701828003,
-0.8429923057556152,
0.9194424152374268,
1.698575735092163,
-0.01487631443887949,
0.017435118556022644,
0.848219633102417,
0.5083855986595154,
-1.2696670293807983,
0.04021880775690079,
-0.6861982345581055,
-0.5515420436859131,
1.7071481943130493,
2.0203609466552734,
-0.09041555970907211,
-0.23855093121528625,
-0.7811095714569092,
-1.231624722480774,
0.5082371830940247,
-0.017811369150877,
-0.016632435843348503,
0.6508496999740601,
-0.6773418188095093,
1.037082314491272,
0.6619633436203003,
0.8853482604026794,
-0.05280666798353195,
0.22655874490737915,
0.3719269633293152,
-0.316915363073349,
-1.2433480024337769,
-0.4063364267349243,
-1.11210036277771,
-2.45979642868042,
0.49787649512290955,
-0.29972031712532043,
-1.4005119800567627,
0.09029824286699295,
-1.0659669637680054,
0.945139467716217,
-0.6287086606025696,
-1.146156668663025,
-1.4887689352035522,
0.22919902205467224,
-0.33050376176834106,
0.8252938985824585,
-1.598261833190918,
-0.1996246874332428,
1.3355040550231934,
0.8570775389671326,
-0.7796804308891296,
1.06706702709198,
0.14479367434978485,
1.03424072265625,
0.7378525137901306,
-0.42524421215057373,
0.4720991551876068,
0.15290071070194244,
-1.4048584699630737,
0.5299633741378784,
1.171865701675415,
0.16595299541950226,
1.5417969226837158,
-0.5318261981010437,
0.07889152318239212,
0.5086458921432495,
-0.486306756734848,
-0.5267108082771301,
-0.44034066796302795,
0.7369365692138672,
0.011136009357869625,
-0.9834234714508057,
0.03143392130732536,
-0.18552987277507782,
-0.3260529339313507,
0.22707466781139374,
-1.6429879665374756,
-0.3100217878818512,
-0.3139077425003052,
-0.45348286628723145,
-1.3485298156738281,
0.13461291790008545,
1.270409107208252,
-0.7814676761627197,
-0.28862887620925903,
0.4307839870452881,
0.3598501682281494,
0.5223813056945801,
0.6545765995979309,
-0.6476154327392578,
-0.2894688546657562,
-0.2968175411224365,
-0.21003474295139313,
0.317229300737381,
1.1381562948226929,
-0.057875730097293854,
-1.126657247543335,
0.7292840480804443,
-0.3917618989944458,
0.11524059623479843,
1.9228533506393433,
0.058692816644907,
-0.7942215800285339,
0.26299092173576355,
-0.6561629772186279,
2.0428011417388916,
1.515418529510498,
1.3767857551574707,
-0.12405235320329666,
-0.7959149479866028,
0.6920949816703796,
-0.17367789149284363,
-0.2393730878829956,
0.9796598553657532,
0.5295183658599854,
-0.2097722887992859,
-1.4081668853759766,
0.4609828591346741,
1.2291663885116577,
-1.0053497552871704,
-0.8494017124176025,
0.11148393154144287,
-0.8471049070358276,
1.1861058473587036,
0.7211876511573792,
0.4188750982284546,
0.17349012196063995,
1.5975908041000366,
0.6591032147407532,
-0.5609893202781677,
0.5595721006393433,
0.4340437948703766,
-0.09383253753185272,
-1.966442584991455,
-0.9096844792366028,
0.3786256015300751,
-0.31808775663375854,
-1.4812417030334473,
1.2776446342468262,
-1.0917553901672363,
-0.9091511964797974,
0.4946497976779938,
0.18509280681610107,
1.4056087732315063,
0.17426659166812897,
1.683288335800171,
2.0066802501678467,
0.8028096556663513,
0.3270609378814697,
1.3047916889190674,
-0.11356837302446365,
-0.4718409776687622,
1.8133705854415894,
-0.4922204315662384,
0.6006050705909729,
1.037788987159729,
-0.4735916256904602,
-1.235838770866394,
-0.7561865448951721,
-1.0550388097763062,
-0.5517726540565491,
1.1915700435638428,
0.2456309050321579,
-1.0690268278121948,
0.11924811452627182,
1.5286625623703003,
0.21785634756088257,
-0.2685410678386688,
0.5223503708839417,
0.38915470242500305,
-0.748799741268158,
-0.03241522237658501,
-0.8236533403396606,
0.5866015553474426,
-0.16108354926109314,
-0.3551153540611267,
0.33195579051971436,
0.4454230070114136,
1.2286831140518188,
-0.06671394407749176,
0.11878245323896408,
1.2050909996032715,
-1.3112496137619019,
1.4842473268508911,
-0.5727745890617371,
0.22971051931381226,
-2.325911045074463,
1.3637701272964478,
-0.8189613223075867,
1.9373589754104614,
-2.658046245574951,
0.2668687105178833,
-0.7071171998977661,
-0.46782171726226807,
0.3743293285369873,
-0.29155218601226807,
0.08875898271799088,
-0.21955564618110657,
-1.0913947820663452,
-0.07155035436153412,
-0.8161202073097229,
0.5728138089179993,
1.3150852918624878,
1.2601858377456665,
-1.0097078084945679,
-0.3040989935398102,
-1.7503758668899536,
-0.22873574495315552,
-0.8195118308067322,
0.37863075733184814,
-2.044363021850586,
-0.17755286395549774,
-1.9423044919967651,
-2.318293809890747,
-1.4288567304611206,
-0.847403883934021,
1.0261510610580444,
0.2424127608537674,
-0.9828248620033264,
1.1992074251174927,
-0.26160746812820435,
-1.6687060594558716,
1.0685889720916748,
-2.1538827419281006
] |
https://github.com/huggingface/datasets/issues/5260 | consumer-finance-complaints dataset not loading | I have opened an issue in that dataset Community tab on the Hub: https://huggingface.co/datasets/consumer-finance-complaints/discussions/1
Please note that in the meantime, you can load the dataset by passing `ignore_verifications=True`:
```python
>>> ds = load_dataset("consumer-finance-complaints", ignore_verifications=True)
>>> ds
DatasetDict({
train: Dataset({
features: ['Date Received', 'Product', 'Sub Product', 'Issue', 'Sub Issue', 'Complaint Text', 'Company Public Response', 'Company', 'State', 'Zip Code', 'Tags', 'Consumer Consent Provided', 'Submitted via', 'Date Sent To Company', 'Company Response To Consumer', 'Timely Response', 'Consumer Disputed', 'Complaint ID'],
num_rows: 3079747
})
})
``` | ### Describe the bug
Error during dataset loading
### Steps to reproduce the bug
```
>>> import datasets
>>> cf_raw = datasets.load_dataset("consumer-finance-complaints")
Downloading builder script: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 8.42k/8.42k [00:00<00:00, 3.33MB/s]
Downloading metadata: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 5.60k/5.60k [00:00<00:00, 2.90MB/s]
Downloading readme: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16.6k/16.6k [00:00<00:00, 510kB/s]
Downloading and preparing dataset consumer-finance-complaints/default to /root/.cache/huggingface/datasets/consumer-finance-complaints/default/0.0.0/30e483d37fb4b25bb98cad1bfd2dc48f6ed6d1f3371eb4568c625a61d1a79b69...
Downloading data: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 511M/511M [00:04<00:00, 103MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 931, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=1605177353, num_examples=2455765, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=2043641693, num_examples=3079747, shard_lengths=[721000, 656000, 788000, 846000, 68747], dataset_name='consumer-finance-complaints')}]
```
### Expected behavior
dataset should load
### Environment info
>>> datasets.__version__
'2.7.0'
Python 3.8.10
"Ubuntu 20.04.4 LTS" | 413 | 82 | consumer-finance-complaints dataset not loading
### Describe the bug
Error during dataset loading
### Steps to reproduce the bug
```
>>> import datasets
>>> cf_raw = datasets.load_dataset("consumer-finance-complaints")
Downloading builder script: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 8.42k/8.42k [00:00<00:00, 3.33MB/s]
Downloading metadata: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 5.60k/5.60k [00:00<00:00, 2.90MB/s]
Downloading readme: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 16.6k/16.6k [00:00<00:00, 510kB/s]
Downloading and preparing dataset consumer-finance-complaints/default to /root/.cache/huggingface/datasets/consumer-finance-complaints/default/0.0.0/30e483d37fb4b25bb98cad1bfd2dc48f6ed6d1f3371eb4568c625a61d1a79b69...
Downloading data: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 511M/511M [00:04<00:00, 103MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/load.py", line 1741, in load_dataset
builder_instance.download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 822, in download_and_prepare
self._download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 1555, in _download_and_prepare
super()._download_and_prepare(
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/builder.py", line 931, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/skunk-pod-storage-lee-2emartie-40ibm-2ecom-pvc/anaconda3/envs/datasets/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=1605177353, num_examples=2455765, shard_lengths=None, dataset_name=None), 'recorded': SplitInfo(name='train', num_bytes=2043641693, num_examples=3079747, shard_lengths=[721000, 656000, 788000, 846000, 68747], dataset_name='consumer-finance-complaints')}]
```
### Expected behavior
dataset should load
### Environment info
>>> datasets.__version__
'2.7.0'
Python 3.8.10
"Ubuntu 20.04.4 LTS"
I have opened an issue in that dataset Community tab on the Hub: https://huggingface.co/datasets/consumer-finance-complaints/discussions/1
Please note that in the meantime, you can load the dataset by passing `ignore_verifications=True`:
```python
>>> ds = load_dataset("consumer-finance-complaints", ignore_verifications=True)
>>> ds
DatasetDict({
train: Dataset({
features: ['Date Received', 'Product', 'Sub Product', 'Issue', 'Sub Issue', 'Complaint Text', 'Company Public Response', 'Company', 'State', 'Zip Code', 'Tags', 'Consumer Consent Provided', 'Submitted via', 'Date Sent To Company', 'Company Response To Consumer', 'Timely Response', 'Consumer Disputed', 'Complaint ID'],
num_rows: 3079747
})
})
``` | [
-1.252050518989563,
-0.8717260360717773,
-0.682008683681488,
1.2991600036621094,
-0.05448300018906593,
-1.283751368522644,
0.05778641998767853,
-1.1295137405395508,
1.5036581754684448,
-0.6835867762565613,
0.2739424705505371,
-1.6836925745010376,
-0.04383329674601555,
-0.4981963634490967,
-0.6862749457359314,
-0.844772219657898,
-0.41518983244895935,
-0.8571358323097229,
1.030489206314087,
2.5425519943237305,
1.3104581832885742,
-1.3246276378631592,
2.8642444610595703,
0.637782096862793,
-0.237125426530838,
-0.9118945002555847,
0.5410395860671997,
0.07115679234266281,
-1.392358422279358,
-0.33327358961105347,
-0.9302824139595032,
-0.05596219748258591,
-0.597977340221405,
-0.3613288402557373,
0.09049298614263535,
0.44892844557762146,
-0.28711962699890137,
-0.3258378803730011,
-0.5354973673820496,
-0.7485429644584656,
0.5540788769721985,
-0.32390835881233215,
0.9546047449111938,
-0.32507091760635376,
1.7037196159362793,
-0.6097036600112915,
0.4512377083301544,
0.6771047711372375,
1.183765172958374,
0.14019206166267395,
0.10908756405115128,
0.35372358560562134,
0.32289451360702515,
0.006397919729351997,
0.47808727622032166,
1.2521315813064575,
0.5330907106399536,
0.3990655541419983,
0.6618773937225342,
-2.1090645790100098,
1.2563514709472656,
-0.7416364550590515,
0.23971718549728394,
1.316615343093872,
-0.8176793456077576,
0.4016827642917633,
-1.8356759548187256,
-0.16594800353050232,
0.5570528507232666,
-2.2310030460357666,
0.17896753549575806,
-1.319805383682251,
-0.6202005743980408,
0.9200812578201294,
0.36228764057159424,
-1.1343424320220947,
0.14962711930274963,
-0.5791546702384949,
1.0814307928085327,
0.4545283615589142,
1.215384840965271,
-1.6169536113739014,
0.013132447376847267,
-0.1742573380470276,
0.17670950293540955,
-1.2640758752822876,
-1.6406153440475464,
0.5442728400230408,
0.6219464540481567,
0.7198930382728577,
-0.03789480775594711,
0.9195315837860107,
-1.0703136920928955,
0.8259980082511902,
-0.949177086353302,
-1.7434890270233154,
-1.3876432180404663,
-2.391906261444092,
-2.3499369621276855,
0.7853301167488098,
-0.4599810540676117,
-0.4655444324016571,
2.035027027130127,
-0.9455485343933105,
-1.8111265897750854,
1.0521025657653809,
0.3105878531932831,
-0.10444682091474533,
2.3676037788391113,
0.30652618408203125,
-0.8117619752883911,
0.5901704430580139,
-0.7131872177124023,
0.7710242867469788,
-0.27075323462486267,
1.3472567796707153,
0.47174495458602905,
-0.990293562412262,
1.576393485069275,
-0.5599426627159119,
0.5640134811401367,
-0.6835322380065918,
-0.53634113073349,
-0.7627722024917603,
0.18379881978034973,
1.9127891063690186,
-0.2913478910923004,
1.5962717533111572,
-0.2943333089351654,
-1.613667607307434,
-1.520667314529419,
0.8091561198234558,
0.5880489945411682,
-0.8587337136268616,
0.09223167598247528,
-0.4427684545516968,
0.12865883111953735,
0.09397881478071213,
1.0271334648132324,
1.281437873840332,
0.7827664613723755,
-0.22658076882362366,
-0.8531396389007568,
0.21208006143569946,
-0.11497034877538681,
-0.7252521514892578,
-1.830664038658142,
-0.18842318654060364,
0.17236602306365967,
0.6745328903198242,
-1.2847615480422974,
1.8121215105056763,
0.8564890027046204,
2.078110933303833,
0.9829230904579163,
-0.39924249053001404,
1.48076593875885,
0.0341927632689476,
1.842142939567566,
-0.35685524344444275,
0.6113160848617554,
-0.3699764013290405,
-1.1031551361083984,
0.803769588470459,
-0.32183995842933655,
-2.0204293727874756,
-0.6833322048187256,
-0.8468663096427917,
-0.160008043050766,
-0.7845123410224915,
0.9232197403907776,
-0.2045709788799286,
-1.4988038539886475,
0.22942185401916504,
-0.7272336483001709,
0.13368088006973267,
-1.3478423357009888,
0.2172137200832367,
0.7230533957481384,
-0.7128965854644775,
0.016787555068731308,
-0.26650699973106384,
-1.3185759782791138,
-0.4884188175201416,
0.4165700674057007,
1.955424189567566,
-0.670385479927063,
0.9444997906684875,
1.0279361009597778,
-0.6718794107437134,
0.09120272099971771,
0.2892085015773773,
-0.35215866565704346,
0.7739381194114685,
-1.1881157159805298,
-0.37858015298843384,
1.1281938552856445,
-0.14346405863761902,
-0.5587599277496338,
1.4033254384994507,
0.7908363342285156,
-1.0836949348449707,
-0.2610672116279602,
-0.16979393362998962,
-0.8448042869567871,
0.0034234346821904182,
-1.6491737365722656,
-0.1260124295949936,
0.3057434856891632,
-1.5095584392547607,
-0.45431292057037354,
-0.16832175850868225,
1.2678216695785522,
-0.12124409526586533,
1.4589290618896484,
-0.2881828844547272,
-0.0791625827550888,
-0.3970475196838379,
-0.5299516916275024,
0.13071542978286743,
-0.18195515871047974,
-0.615087628364563,
0.1650441288948059,
-0.8307832479476929,
0.19592425227165222,
1.467952847480774,
0.29643064737319946,
0.10232873260974884,
0.4793010354042053,
1.081156611442566,
0.33879706263542175,
-0.07669986039400101,
-0.8053653240203857,
-1.586247444152832,
2.0252883434295654,
-1.5201914310455322,
1.9163811206817627,
0.7900795340538025,
-0.040783464908599854,
-1.9110349416732788,
-1.8830751180648804,
1.3553979396820068,
1.0507725477218628,
2.421511173248291,
0.5882039666175842,
0.47034189105033875,
-0.7612524628639221,
-0.7206342220306396,
0.32067620754241943,
-0.8537001609802246,
-0.749967634677887,
0.19381332397460938,
2.339556932449341,
1.7240216732025146,
-0.5553991794586182,
-0.19248250126838684,
-0.8245363831520081,
1.2884063720703125,
-0.18027201294898987,
0.15144774317741394,
2.0229599475860596,
-0.29845690727233887,
-1.0052906274795532,
1.3532356023788452,
-2.373117446899414,
0.27405986189842224,
2.0103158950805664,
0.29766127467155457,
0.1273355484008789,
-1.3541094064712524,
-0.6726183295249939,
-0.32746392488479614,
-0.4355051517486572,
-1.2276943922042847,
0.5526977777481079,
-0.3095203638076782,
-0.9196679592132568,
-1.5121774673461914,
0.018490854650735855,
-1.193922996520996,
-1.755355954170227,
0.34387272596359253,
1.8875871896743774,
2.1384387016296387,
-0.8050075769424438,
1.4074236154556274,
-0.26467767357826233,
0.0808480829000473,
1.2472076416015625,
1.2458072900772095,
3.118908166885376,
1.8754394054412842,
-1.2676236629486084,
0.7999373078346252,
-0.18308135867118835,
-0.4994368851184845,
1.1470664739608765,
-1.1521804332733154,
1.161344289779663,
-0.2411976158618927,
-1.3146003484725952,
-1.2084741592407227,
1.0559146404266357,
0.49389511346817017,
0.013034971430897713,
-0.4713502824306488,
1.3253086805343628,
0.09952542185783386,
1.4111907482147217,
0.53554368019104,
-0.3492048382759094,
0.5181049108505249,
-0.3353370726108551,
-0.5447368025779724,
1.6683210134506226,
0.1397751271724701,
-1.5488563776016235,
-2.4575796127319336,
-0.24991145730018616,
-0.8892912268638611,
-0.0020278478041291237,
-0.6919963955879211,
-1.1099300384521484,
1.5618064403533936,
0.44369956851005554,
-1.1340827941894531,
-0.305957168340683,
-0.3658711612224579,
-0.5398062467575073,
2.591794967651367,
-1.4031994342803955,
-0.11857879906892776,
-0.9024268984794617,
-0.5251153707504272,
1.5673744678497314,
-1.2176570892333984,
-0.2567581534385681,
-1.0345250368118286,
-0.6113829016685486,
-1.3059165477752686,
-0.5115525126457214,
0.016078272834420204,
-0.9188121557235718,
0.8030726909637451,
0.11133135855197906,
-1.073734164237976,
-0.2397339642047882,
-1.011443018913269,
0.9983055591583252,
-0.11318834871053696,
0.21689480543136597,
1.8025695085525513,
0.3647073209285736,
-0.3944871425628662,
0.6489636898040771,
1.2601488828659058,
0.6139807105064392,
-0.6422256231307983,
0.01025887206196785,
-0.669080913066864,
0.38735049962997437,
-1.3528450727462769,
0.22592398524284363,
-2.916945457458496,
0.8029418587684631,
-0.13310450315475464,
-0.020806271582841873,
-0.04331038519740105,
-1.3439717292785645,
1.1090704202651978,
2.6277499198913574,
-1.1733754873275757,
0.5799915790557861,
0.35790547728538513,
1.105339527130127,
-1.4820083379745483,
0.2242051362991333,
-0.5049628019332886,
1.9873459339141846,
0.04306740686297417,
1.1599675416946411,
-0.5281195640563965,
-2.253523349761963,
0.6734519004821777,
-1.1908951997756958,
-1.069204330444336,
0.8053159713745117,
-0.8839097619056702,
0.23418638110160828,
-1.3622663021087646,
-0.2098100781440735,
-1.0707099437713623,
-1.152151346206665,
0.6057940125465393,
0.17654210329055786,
0.5234496593475342,
-0.5600910782814026,
0.35887202620506287,
-2.332418441772461,
-1.4617725610733032,
-0.17415228486061096,
-1.0387814044952393,
0.507351279258728,
-0.3676237463951111,
0.6698673367500305,
-0.045058056712150574,
0.06637660413980484,
0.2939510941505432,
1.3346774578094482,
3.3241474628448486,
0.036112572997808456,
0.21133452653884888,
-0.14733588695526123,
-1.123521327972412,
1.4339960813522339,
0.9167222380638123,
-0.1794981062412262,
-0.5861015915870667,
-0.9821335673332214,
1.2067766189575195,
2.0177812576293945,
1.1470080614089966,
0.008356600999832153,
-0.8598414659500122,
-0.7314077019691467,
0.12633207440376282,
0.21686097979545593,
0.5906795263290405,
0.9979923963546753,
-0.042318206280469894,
0.13947582244873047,
1.3950121402740479,
1.1565407514572144,
-0.2897489368915558,
0.43207260966300964,
-0.8625608682632446,
-0.38392043113708496,
0.5032073855400085,
0.24053019285202026,
0.09092582762241364,
0.45937126874923706,
-1.1004033088684082,
-0.21824660897254944,
-0.2576458752155304,
-0.9360817670822144,
-0.7382909655570984,
-0.34700632095336914,
-0.4206535518169403,
1.6334301233291626,
0.008433813229203224,
-0.46197709441185,
0.024042222648859024,
-0.7667291164398193,
-0.12397707998752594,
-1.07212495803833,
0.23386144638061523,
-0.19629982113838196,
0.0035907942801713943,
-0.08346706628799438,
1.746738076210022,
-0.9801855087280273,
-2.1169047355651855,
0.15328654646873474,
0.27533242106437683,
-0.39090871810913086,
0.1443156599998474,
1.7098110914230347,
0.6205160617828369,
1.3885002136230469,
1.3444596529006958,
0.9278689026832581,
-0.6414687633514404,
-1.230373501777649,
0.6872945427894592,
0.9403511881828308,
-1.3221033811569214,
0.8681867122650146,
-0.142159104347229,
-0.5137014389038086,
0.610516369342804,
1.3716944456100464,
0.4301181435585022,
-1.987769365310669,
0.9445947408676147,
-0.91214919090271,
0.8428555130958557,
0.7159603238105774,
0.8013189435005188,
0.2230721116065979,
0.8704929351806641,
-1.2877179384231567,
-1.0577692985534668,
-0.7159740328788757,
-0.6134284138679504,
1.844940423965454,
-0.21580645442008972,
0.3859449028968811,
-0.19004526734352112,
-1.156446099281311,
-0.021833304315805435,
0.719204306602478,
0.38472336530685425,
-0.32041409611701965,
0.7478145956993103,
-0.5590825080871582,
-1.1217657327651978,
-1.2731634378433228,
-0.4263424277305603,
-0.9787634015083313,
-0.7893258929252625,
0.9848830103874207,
0.7096450924873352,
0.5390682220458984,
1.9568772315979004,
0.642802894115448,
0.27311941981315613,
-2.745112895965576,
0.866870641708374,
0.2889619469642639,
-0.05306291580200195,
0.9494079947471619,
0.3114684522151947,
1.1892558336257935,
-0.015853647142648697,
0.5963374376296997,
-2.3130338191986084,
2.2087533473968506,
-0.26146459579467773,
0.6786496043205261,
-0.01838081330060959,
-0.040010496973991394,
1.0786583423614502,
0.6288426518440247,
0.5288716554641724,
-1.1764414310455322,
0.7970843315124512,
-0.6419007182121277,
1.0927295684814453,
0.9157194495201111,
-0.8800681233406067,
0.1340000331401825,
1.351559042930603,
0.46659260988235474,
-0.4630174934864044,
-0.9522055387496948,
-0.7928768992424011,
0.975543200969696,
1.7610359191894531,
-0.06445461511611938,
0.059959106147289276,
0.8345197439193726,
0.6389106512069702,
-1.3659837245941162,
0.015288200229406357,
-0.6604729294776917,
-0.6728955507278442,
1.7844830751419067,
2.016319751739502,
0.008959706872701645,
-0.06801415979862213,
-0.7540003061294556,
-1.39702570438385,
0.8381643295288086,
-0.06486876308917999,
0.1302090585231781,
0.6751686930656433,
-0.7318547964096069,
1.2064791917800903,
0.5686403512954712,
0.9524821043014526,
0.08061220496892929,
0.30178725719451904,
0.30998173356056213,
-0.26698264479637146,
-1.1692899465560913,
-0.40180182456970215,
-1.0680768489837646,
-2.470649480819702,
0.43508586287498474,
-0.2805444896221161,
-1.4882899522781372,
0.02152058854699135,
-0.9416826963424683,
0.8682167530059814,
-0.5284372568130493,
-1.0118439197540283,
-1.4328118562698364,
0.35712930560112,
-0.1557534635066986,
0.9589570164680481,
-1.612072467803955,
-0.20711204409599304,
1.2485705614089966,
0.9461729526519775,
-0.6422962546348572,
0.964446485042572,
0.3493383824825287,
0.9109720587730408,
0.7983702421188354,
-0.4218119978904724,
0.5569778680801392,
0.06763498485088348,
-1.227997064590454,
0.4390180706977844,
1.2830406427383423,
0.12128365784883499,
1.3271408081054688,
-0.44369199872016907,
-0.010666215792298317,
0.3924688398838043,
-0.4783838987350464,
-0.4898713231086731,
-0.5134963989257812,
0.6290033459663391,
0.06712561845779419,
-1.063329815864563,
-0.20270594954490662,
-0.08468839526176453,
-0.1704876720905304,
0.26782622933387756,
-1.5202463865280151,
-0.2433570921421051,
-0.3906777799129486,
-0.48951512575149536,
-1.3291592597961426,
0.026067759841680527,
1.2815533876419067,
-0.853049099445343,
-0.1585889458656311,
0.416487455368042,
0.3290509283542633,
0.583609938621521,
0.6605381369590759,
-0.7710453271865845,
-0.2902340590953827,
-0.4076154828071594,
-0.32154011726379395,
0.1652754843235016,
1.2497754096984863,
-0.09405707567930222,
-1.0625150203704834,
0.6452787518501282,
-0.38812828063964844,
0.1673302948474884,
1.9923371076583862,
0.035161092877388,
-0.7340381741523743,
0.3213551640510559,
-0.751764178276062,
1.8367578983306885,
1.7182154655456543,
1.2942379713058472,
-0.13749808073043823,
-0.8750525712966919,
0.5170076489448547,
-0.28911179304122925,
-0.205576092004776,
0.8749839663505554,
0.49051278829574585,
-0.226859450340271,
-1.4087640047073364,
0.5586715340614319,
1.2674479484558105,
-0.8639150261878967,
-0.7043743133544922,
0.02685200795531273,
-0.8996197581291199,
1.2082334756851196,
0.7555612921714783,
0.3420768678188324,
0.2816108763217926,
1.5311787128448486,
0.6986864805221558,
-0.5576764941215515,
0.5410049557685852,
0.4108186960220337,
-0.1534443497657776,
-2.059640884399414,
-1.0413575172424316,
0.3433000445365906,
-0.3296470642089844,
-1.6086063385009766,
1.4142171144485474,
-1.1010695695877075,
-0.9690749645233154,
0.5200967192649841,
0.09389466792345047,
1.2706283330917358,
0.30226191878318787,
1.7643961906433105,
2.0665156841278076,
0.9906660318374634,
0.34037667512893677,
1.2246350049972534,
-0.14357760548591614,
-0.4013560116291046,
1.829290509223938,
-0.4323214590549469,
0.5170941948890686,
1.035836100578308,
-0.43922632932662964,
-1.0040103197097778,
-0.8730566501617432,
-1.2058069705963135,
-0.7063809037208557,
1.0733715295791626,
0.08742920309305191,
-1.1671539545059204,
0.1985771358013153,
1.6648743152618408,
0.10206707566976547,
-0.17177996039390564,
0.7421517968177795,
0.41881945729255676,
-0.8203768134117126,
-0.1519574224948883,
-0.9404121041297913,
0.5727113485336304,
-0.16336336731910706,
-0.3610411584377289,
0.12229052931070328,
0.49569404125213623,
1.2759017944335938,
-0.0036533926613628864,
0.09818342328071594,
1.332955241203308,
-1.3003225326538086,
1.3988524675369263,
-0.671954870223999,
0.2488442063331604,
-2.3846304416656494,
1.3893381357192993,
-0.8107783794403076,
1.872510313987732,
-2.5999813079833984,
0.44840261340141296,
-0.5591607689857483,
-0.4256773591041565,
0.22592908143997192,
-0.30772891640663147,
0.14211314916610718,
-0.13201850652694702,
-0.988704264163971,
-0.15954935550689697,
-0.7275806665420532,
0.5483176708221436,
1.161318302154541,
1.3983864784240723,
-1.0061566829681396,
-0.252875953912735,
-1.6828958988189697,
-0.1605493426322937,
-0.6375629901885986,
0.3039386570453644,
-1.9109840393066406,
-0.17004159092903137,
-1.996885061264038,
-2.447230815887451,
-1.4045827388763428,
-0.9292973279953003,
1.1565346717834473,
0.08250556141138077,
-1.0397295951843262,
1.1403791904449463,
-0.3974970877170563,
-1.750769019126892,
1.249108076095581,
-2.200526237487793
] |
https://github.com/huggingface/datasets/issues/5259 | datasets 2.7 introduces sharding error | I notice a comment in the code says:
`Having lists of different sizes makes sharding ambigious, raise an error in this case until we decide how to define sharding without ambiguity for users`
... which suggests this update was pushed knowing that it might break some things. But, it didn't seem to have a useful error message of an argument that could be passed to avoid the error. | ### Describe the bug
dataset fails to load with runtime error
`RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.`
### Steps to reproduce the bug
With datasets[audio] 2.7 loaded, and logged into hugging face,
`data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)`
creates the error.
Full stack trace:
```---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-7-8cb9ca0f79f0>](https://localhost:8080/#) in <module>
----> 1 data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)
5 frames
[/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs)
1745 try_from_hf_gcs=try_from_hf_gcs,
1746 use_auth_token=use_auth_token,
-> 1747 num_proc=num_proc,
1748 )
1749
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
824 verify_infos=verify_infos,
825 **prepare_split_kwargs,
--> 826 **download_and_prepare_kwargs,
827 )
828 # Sync info
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs)
1554 def _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs):
1555 super()._download_and_prepare(
-> 1556 dl_manager, verify_infos, check_duplicate_keys=verify_infos, **prepare_splits_kwargs
1557 )
1558
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
911 try:
912 # Prepare split will record examples associated to the split
--> 913 self._prepare_split(split_generator, **prepare_split_kwargs)
914 except OSError as e:
915 raise OSError(
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1362 fpath = path_join(self._output_dir, fname)
1363
-> 1364 num_input_shards = _number_of_shards_in_gen_kwargs(split_generator.gen_kwargs)
1365 if num_input_shards <= 1 and num_proc is not None:
1366 logger.warning(
[/usr/local/lib/python3.7/dist-packages/datasets/utils/sharding.py](https://localhost:8080/#) in _number_of_shards_in_gen_kwargs(gen_kwargs)
16 + "\n".join(f"\t- key {key} has length {length}" for key, length in lists_lengths.items())
17 + "\nTo fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, "
---> 18 + "and use tuples otherwise. In the end there should only be one single list, or several lists with the same length."
19 )
20 )
RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.```
### Expected behavior
the dataset loads in datasets version 2.6.1 and should load with datasets 2.7
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 6.0.1
- Pandas version: 1.3.5 | 414 | 68 | datasets 2.7 introduces sharding error
### Describe the bug
dataset fails to load with runtime error
`RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.`
### Steps to reproduce the bug
With datasets[audio] 2.7 loaded, and logged into hugging face,
`data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)`
creates the error.
Full stack trace:
```---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-7-8cb9ca0f79f0>](https://localhost:8080/#) in <module>
----> 1 data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)
5 frames
[/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs)
1745 try_from_hf_gcs=try_from_hf_gcs,
1746 use_auth_token=use_auth_token,
-> 1747 num_proc=num_proc,
1748 )
1749
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
824 verify_infos=verify_infos,
825 **prepare_split_kwargs,
--> 826 **download_and_prepare_kwargs,
827 )
828 # Sync info
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs)
1554 def _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs):
1555 super()._download_and_prepare(
-> 1556 dl_manager, verify_infos, check_duplicate_keys=verify_infos, **prepare_splits_kwargs
1557 )
1558
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
911 try:
912 # Prepare split will record examples associated to the split
--> 913 self._prepare_split(split_generator, **prepare_split_kwargs)
914 except OSError as e:
915 raise OSError(
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1362 fpath = path_join(self._output_dir, fname)
1363
-> 1364 num_input_shards = _number_of_shards_in_gen_kwargs(split_generator.gen_kwargs)
1365 if num_input_shards <= 1 and num_proc is not None:
1366 logger.warning(
[/usr/local/lib/python3.7/dist-packages/datasets/utils/sharding.py](https://localhost:8080/#) in _number_of_shards_in_gen_kwargs(gen_kwargs)
16 + "\n".join(f"\t- key {key} has length {length}" for key, length in lists_lengths.items())
17 + "\nTo fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, "
---> 18 + "and use tuples otherwise. In the end there should only be one single list, or several lists with the same length."
19 )
20 )
RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.```
### Expected behavior
the dataset loads in datasets version 2.6.1 and should load with datasets 2.7
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
I notice a comment in the code says:
`Having lists of different sizes makes sharding ambigious, raise an error in this case until we decide how to define sharding without ambiguity for users`
... which suggests this update was pushed knowing that it might break some things. But, it didn't seem to have a useful error message of an argument that could be passed to avoid the error. | [
-1.1912273168563843,
-0.8506546020507812,
-0.5274680256843567,
1.3883565664291382,
-0.02130597084760666,
-1.3325260877609253,
0.13133041560649872,
-0.9343574047088623,
1.5297203063964844,
-0.8634192943572998,
0.29767003655433655,
-1.7201601266860962,
0.023665711283683777,
-0.725886344909668,
-0.6225886940956116,
-0.7012693881988525,
-0.3172246813774109,
-0.7207426428794861,
1.1586427688598633,
2.4115066528320312,
1.1683112382888794,
-1.3696231842041016,
2.849388360977173,
0.6824321150779724,
-0.2492702305316925,
-0.8375873565673828,
0.41571545600891113,
0.0245790034532547,
-1.4177800416946411,
-0.24709810316562653,
-1.0317730903625488,
-0.03458375856280327,
-0.7125115990638733,
-0.4595675766468048,
0.04378721863031387,
0.4629855751991272,
-0.1987547129392624,
-0.38955721259117126,
-0.41076865792274475,
-0.7369451522827148,
0.5853082537651062,
-0.25130581855773926,
0.8786571621894836,
-0.20424138009548187,
1.795166015625,
-0.5653884410858154,
0.5183064937591553,
0.5369793772697449,
1.186366081237793,
0.16598305106163025,
-0.06380578130483627,
0.3457498252391815,
0.25929245352745056,
0.06328818947076797,
0.6072626709938049,
1.2035422325134277,
0.6594119071960449,
0.5294656753540039,
0.6716601848602295,
-2.2261459827423096,
1.3383127450942993,
-0.8576511144638062,
0.28947189450263977,
1.4343101978302002,
-1.0874491930007935,
0.5298207402229309,
-1.8440362215042114,
-0.14093773066997528,
0.4360063076019287,
-2.2108635902404785,
0.17584897577762604,
-1.257144808769226,
-0.5045803189277649,
0.9365003705024719,
0.3633688688278198,
-1.2346343994140625,
0.045928630977869034,
-0.46751734614372253,
1.0273562669754028,
0.3341600298881531,
1.083069920539856,
-1.6957346200942993,
0.07115247845649719,
-0.23080295324325562,
0.29235517978668213,
-1.184767246246338,
-1.6439939737319946,
0.6458845138549805,
0.729424238204956,
0.6391682624816895,
-0.14361970126628876,
0.9253424406051636,
-1.1817128658294678,
0.7903297543525696,
-1.0291824340820312,
-1.6852861642837524,
-1.3053935766220093,
-2.490710735321045,
-2.406585454940796,
0.7194384336471558,
-0.4468645453453064,
-0.3705155551433563,
2.1772518157958984,
-1.1186981201171875,
-1.7008609771728516,
1.096173644065857,
0.3049165606498718,
-0.09777577221393585,
2.437390089035034,
0.2134111374616623,
-0.9039912223815918,
0.7207759618759155,
-0.9242975115776062,
0.6542707681655884,
-0.41113343834877014,
1.29055655002594,
0.39414510130882263,
-1.1088629961013794,
1.5578852891921997,
-0.4441349506378174,
0.5058189034461975,
-0.7076848149299622,
-0.4159752428531647,
-0.5797667503356934,
0.14711597561836243,
1.9254982471466064,
-0.12668375670909882,
1.4803489446640015,
-0.15464885532855988,
-1.4016891717910767,
-1.3414363861083984,
0.8102881908416748,
0.45759543776512146,
-0.9256055951118469,
0.19227054715156555,
-0.40830814838409424,
0.13971161842346191,
0.10818692296743393,
1.0755716562271118,
1.2731083631515503,
0.7166493535041809,
-0.20195144414901733,
-0.9094502329826355,
0.06967341899871826,
-0.17241089046001434,
-0.555298388004303,
-1.7783644199371338,
-0.2249610871076584,
0.07354570180177689,
0.6527321934700012,
-1.1960045099258423,
1.919539213180542,
0.8729049563407898,
2.029632091522217,
0.9360588788986206,
-0.42129263281822205,
1.493823528289795,
0.09750552475452423,
1.8982493877410889,
-0.4003336727619171,
0.7076719999313354,
-0.5362423062324524,
-1.214365005493164,
0.7892927527427673,
-0.34231144189834595,
-1.9658933877944946,
-0.3315967917442322,
-0.8674770593643188,
-0.1834273338317871,
-0.8866212964057922,
1.039563775062561,
-0.14534038305282593,
-1.4160315990447998,
0.2535470128059387,
-0.5795106291770935,
0.2570839524269104,
-1.3765603303909302,
0.2885098457336426,
0.7548274397850037,
-0.676887571811676,
0.017145484685897827,
-0.45165082812309265,
-1.3981364965438843,
-0.6297789216041565,
0.5511230230331421,
1.7026399374008179,
-0.6336870789527893,
0.9725430011749268,
1.0424221754074097,
-0.5629591345787048,
-0.10381222516298294,
0.44194772839546204,
-0.361558735370636,
0.8484653830528259,
-1.0088164806365967,
-0.5416908860206604,
1.1621291637420654,
-0.38606929779052734,
-0.47879758477211,
1.3109745979309082,
0.7080528736114502,
-1.0451210737228394,
-0.30518999695777893,
-0.13470223546028137,
-0.8463535904884338,
0.0862204059958458,
-1.6196179389953613,
-0.07305449992418289,
0.3724030554294586,
-1.542488694190979,
-0.4244108498096466,
-0.056593313813209534,
1.3594175577163696,
-0.02068508230149746,
1.3864860534667969,
-0.21488496661186218,
-0.07139893621206284,
-0.49739906191825867,
-0.5608544945716858,
0.20779156684875488,
-0.10144936293363571,
-0.5367140173912048,
0.25169771909713745,
-0.7666531205177307,
0.20207741856575012,
1.483464002609253,
0.177992045879364,
0.10896746069192886,
0.49530911445617676,
1.0866347551345825,
0.34823301434516907,
-0.17776775360107422,
-0.8890720009803772,
-1.666596531867981,
1.9821325540542603,
-1.6433110237121582,
1.970752239227295,
0.8508881330490112,
0.00238826684653759,
-1.8096449375152588,
-1.8075741529464722,
1.4977539777755737,
1.1008249521255493,
2.4386494159698486,
0.5113677382469177,
0.4669511020183563,
-0.8657821416854858,
-0.6507256627082825,
0.43483054637908936,
-0.7185779809951782,
-0.8572127819061279,
0.1881730556488037,
2.339265823364258,
1.7053606510162354,
-0.33158546686172485,
-0.18051478266716003,
-0.9542693495750427,
1.3593134880065918,
-0.30243897438049316,
0.2671879529953003,
1.9234638214111328,
-0.4938841164112091,
-1.0614458322525024,
1.3106242418289185,
-2.512098789215088,
0.33649519085884094,
2.0287928581237793,
0.33597037196159363,
0.07715108245611191,
-1.166887640953064,
-0.6875033378601074,
-0.14662262797355652,
-0.4621986150741577,
-1.2369554042816162,
0.44529950618743896,
-0.2468327134847641,
-0.7580223679542542,
-1.4381194114685059,
0.012500938959419727,
-1.2360718250274658,
-1.7279242277145386,
0.3495553433895111,
1.7809919118881226,
2.2361955642700195,
-0.8052656054496765,
1.3647534847259521,
-0.2826872766017914,
0.3383063077926636,
1.148307204246521,
1.2854151725769043,
3.1703546047210693,
1.8721966743469238,
-1.2822600603103638,
0.6776071786880493,
-0.13027949631214142,
-0.5205389261245728,
1.1572598218917847,
-0.9778807759284973,
1.20402193069458,
-0.21807906031608582,
-1.3816196918487549,
-1.2547920942306519,
0.9411582350730896,
0.4328593909740448,
-0.02670629322528839,
-0.5264825224876404,
1.1544591188430786,
0.21955977380275726,
1.2947653532028198,
0.6498984098434448,
-0.32153722643852234,
0.44309714436531067,
-0.37609830498695374,
-0.5927072167396545,
1.595457673072815,
0.0713995099067688,
-1.5627259016036987,
-2.3548529148101807,
-0.21583108603954315,
-0.9640592336654663,
0.013687037862837315,
-0.9352563619613647,
-1.0182526111602783,
1.4397799968719482,
0.4627602696418762,
-0.9218719005584717,
-0.10057059675455093,
-0.3427474796772003,
-0.5297356247901917,
2.580406665802002,
-1.3609941005706787,
-0.24037989974021912,
-0.9133313894271851,
-0.6707979440689087,
1.5338945388793945,
-1.1978009939193726,
-0.24613617360591888,
-1.0469932556152344,
-0.5348005294799805,
-1.2189885377883911,
-0.35748109221458435,
-0.05786525458097458,
-0.8318114876747131,
0.7227341532707214,
0.012197458185255527,
-1.3264672756195068,
-0.2629024386405945,
-1.093345284461975,
0.9101055860519409,
-0.2683008909225464,
0.0662376880645752,
1.6571711301803589,
0.2088557332754135,
-0.45975202322006226,
0.8515570163726807,
1.2772725820541382,
0.6773244738578796,
-0.5649043321609497,
0.16021385788917542,
-0.6490420699119568,
0.5188791155815125,
-1.1497901678085327,
0.3534906506538391,
-3.0136969089508057,
0.6091535687446594,
0.010566958226263523,
-0.02536497265100479,
-0.10796455293893814,
-1.5351539850234985,
0.9501428604125977,
2.3912205696105957,
-1.1484947204589844,
0.6232710480690002,
0.35917264223098755,
1.2709248065948486,
-1.6272025108337402,
0.04238464683294296,
-0.6613125205039978,
2.049708366394043,
0.002057909034192562,
1.0357308387756348,
-0.5341998338699341,
-2.3981573581695557,
0.5015202760696411,
-1.2258639335632324,
-0.9475016593933105,
0.7891274094581604,
-0.8528828620910645,
0.21068644523620605,
-1.2016209363937378,
-0.1068384051322937,
-0.9541433453559875,
-1.1865496635437012,
0.4840033948421478,
0.04900837317109108,
0.6156224012374878,
-0.630059003829956,
0.25276875495910645,
-2.2340850830078125,
-1.403773307800293,
-0.1201719120144844,
-0.9075002670288086,
0.435364305973053,
-0.3936677575111389,
0.7319841384887695,
-0.1340954452753067,
0.04177871346473694,
0.26651641726493835,
1.543910264968872,
3.1592490673065186,
0.007596948184072971,
0.35431933403015137,
-0.24216733872890472,
-1.0373201370239258,
1.5448060035705566,
0.9223072528839111,
-0.250951886177063,
-0.5925050973892212,
-0.9221538305282593,
1.4006834030151367,
1.9209860563278198,
1.0012290477752686,
0.061058927327394485,
-0.9067657589912415,
-0.7371363043785095,
0.11390247195959091,
0.1756288856267929,
0.4952487349510193,
0.986984372138977,
0.1159108504652977,
0.17708632349967957,
1.3367841243743896,
1.0426076650619507,
-0.3388596475124359,
0.4834204316139221,
-0.830735445022583,
-0.40433013439178467,
0.5328003168106079,
0.3368091881275177,
-0.011107807978987694,
0.30942636728286743,
-1.0390455722808838,
-0.24225421249866486,
-0.2603241503238678,
-0.802169144153595,
-0.6936513781547546,
-0.39724719524383545,
-0.4669429063796997,
1.7370176315307617,
-0.016907665878534317,
-0.5627831220626831,
0.054743263870477676,
-0.7045604586601257,
-0.10186196118593216,
-1.0502558946609497,
0.2527318596839905,
-0.13695727288722992,
0.09130405634641647,
-0.13512291014194489,
1.694628357887268,
-0.9487143754959106,
-2.2353363037109375,
0.06323530524969101,
0.2623751759529114,
-0.28601330518722534,
-0.10363355278968811,
1.8562159538269043,
0.49175602197647095,
1.4320721626281738,
1.5500825643539429,
1.1145350933074951,
-0.6273167133331299,
-1.38138747215271,
0.8505666851997375,
0.9856504201889038,
-1.3523677587509155,
0.9495629072189331,
-0.17653168737888336,
-0.6599190831184387,
0.5744735598564148,
1.291736364364624,
0.44958218932151794,
-2.014214277267456,
0.881575882434845,
-1.2658497095108032,
0.9603232741355896,
0.8185209035873413,
0.8072544932365417,
0.1679811328649521,
0.8963161706924438,
-1.2426215410232544,
-0.9995319247245789,
-0.6004347205162048,
-0.6502416729927063,
1.8923685550689697,
-0.29494062066078186,
0.33028730750083923,
-0.3066439628601074,
-1.2621259689331055,
0.13235659897327423,
0.6894370913505554,
0.31865960359573364,
-0.31633085012435913,
0.7536992430686951,
-0.7436661124229431,
-1.1103264093399048,
-1.3035640716552734,
-0.45975401997566223,
-1.066839575767517,
-0.8426624536514282,
1.0512397289276123,
0.7267263531684875,
0.5186416506767273,
1.9341585636138916,
0.662230372428894,
0.20529985427856445,
-2.544569969177246,
0.8450461626052856,
0.34186479449272156,
-0.18736042082309723,
0.8028069138526917,
0.3000180721282959,
1.2811856269836426,
-0.12849418818950653,
0.6075982451438904,
-2.3585917949676514,
2.2574026584625244,
-0.24211637675762177,
0.7310406565666199,
0.13354183733463287,
0.07816003262996674,
1.0582062005996704,
0.5288975238800049,
0.4938124418258667,
-1.0516924858093262,
0.9235109090805054,
-0.5842387676239014,
1.13547945022583,
0.863357424736023,
-0.917845606803894,
0.13566552102565765,
1.1937098503112793,
0.3993211090564728,
-0.5764870643615723,
-0.9903178215026855,
-0.8754305839538574,
0.8948095440864563,
1.6980677843093872,
-0.006651835050433874,
0.05258936807513237,
0.759922444820404,
0.7641488909721375,
-1.2496391534805298,
0.04270736128091812,
-0.4986550807952881,
-0.6508926749229431,
1.7820134162902832,
2.051637649536133,
-0.06682250648736954,
0.03824998810887337,
-0.7342889904975891,
-1.4948444366455078,
0.8466861844062805,
0.07367326319217682,
-0.07068736851215363,
0.7385869026184082,
-0.6320491433143616,
1.1057472229003906,
0.8081523180007935,
0.7802718281745911,
0.274808794260025,
-0.0035836249589920044,
0.285300076007843,
-0.30198314785957336,
-1.1505311727523804,
-0.30908411741256714,
-1.0202136039733887,
-2.586601734161377,
0.4025624990463257,
-0.23501397669315338,
-1.4713737964630127,
0.17286019027233124,
-0.9242760539054871,
0.777722954750061,
-0.4796622395515442,
-1.201769232749939,
-1.3740023374557495,
0.3050473630428314,
-0.13783669471740723,
0.8372578620910645,
-1.6462910175323486,
-0.113674096763134,
1.0972586870193481,
0.9174476861953735,
-0.6517448425292969,
0.9412901997566223,
0.3049599826335907,
0.9281877875328064,
0.8973604440689087,
-0.3706163167953491,
0.5337797999382019,
0.2917252480983734,
-1.347497820854187,
0.3546435534954071,
1.4034843444824219,
0.14754202961921692,
1.3216784000396729,
-0.369243323802948,
-0.07313451170921326,
0.4297603368759155,
-0.3154526650905609,
-0.5750327706336975,
-0.6305130124092102,
0.5822297930717468,
-0.08974296599626541,
-0.9041887521743774,
-0.1313127875328064,
0.02059461548924446,
-0.2409522980451584,
0.3143658936023712,
-1.5486985445022583,
-0.13252222537994385,
-0.480584055185318,
-0.5281803607940674,
-1.482679009437561,
-0.06014128774404526,
1.3876042366027832,
-0.7565673589706421,
-0.12590554356575012,
0.6043125987052917,
0.2547689378261566,
0.49252545833587646,
0.6949980854988098,
-0.7066866755485535,
-0.2011818140745163,
-0.1422479897737503,
-0.44906988739967346,
0.30628108978271484,
1.2961088418960571,
-0.16305804252624512,
-0.9012911319732666,
0.506985068321228,
-0.21526312828063965,
0.16745848953723907,
1.8809617757797241,
0.053514402359724045,
-0.9447609782218933,
0.3987726867198944,
-0.765326201915741,
1.8960459232330322,
1.64472234249115,
1.2801886796951294,
-0.13863693177700043,
-0.9028530120849609,
0.6369768381118774,
-0.32028451561927795,
-0.3152923285961151,
0.8940393924713135,
0.3493845462799072,
-0.3165925443172455,
-1.4295178651809692,
0.7684996128082275,
1.2455328702926636,
-0.7202604413032532,
-0.7684681415557861,
0.14714805781841278,
-0.8184725642204285,
1.2284382581710815,
0.6191934943199158,
0.34439295530319214,
0.2593310475349426,
1.6365163326263428,
0.735814094543457,
-0.6128051280975342,
0.5375749468803406,
0.4255492091178894,
-0.18358555436134338,
-1.9842687845230103,
-1.1670222282409668,
0.27910250425338745,
-0.5108690857887268,
-1.5024793148040771,
1.416208267211914,
-1.2033803462982178,
-1.044240951538086,
0.551311194896698,
0.10311168432235718,
1.2527564764022827,
0.34856116771698,
1.682183027267456,
1.9767773151397705,
0.9118769764900208,
0.5254868865013123,
1.1913498640060425,
-0.23596245050430298,
-0.2611010670661926,
1.7008417844772339,
-0.4328717887401581,
0.6396017074584961,
1.111791968345642,
-0.47142112255096436,
-1.1655364036560059,
-0.7832609415054321,
-1.1374295949935913,
-0.7483234405517578,
1.0401922464370728,
0.14174297451972961,
-1.1024186611175537,
0.38184139132499695,
1.5818949937820435,
-0.0026508215814828873,
-0.09214145690202713,
0.7574975490570068,
0.37049898505210876,
-0.6500353217124939,
-0.11669237166643143,
-1.0361632108688354,
0.6046714186668396,
-0.42309457063674927,
-0.37406954169273376,
0.22482937574386597,
0.5977236032485962,
1.2019416093826294,
0.15617908537387848,
0.18859484791755676,
1.232188105583191,
-1.4209448099136353,
1.1654036045074463,
-0.9799352288246155,
0.38604268431663513,
-2.3117523193359375,
1.4050993919372559,
-0.8280192613601685,
2.0041916370391846,
-2.752321243286133,
0.426153302192688,
-0.5252036452293396,
-0.6360994577407837,
0.20422716438770294,
-0.14683175086975098,
0.06428563594818115,
-0.07091835141181946,
-1.0500460863113403,
-0.10489914566278458,
-0.8408606052398682,
0.49030232429504395,
1.2485331296920776,
1.3738523721694946,
-0.9024001955986023,
-0.29084324836730957,
-1.5843102931976318,
-0.17863045632839203,
-0.4882814884185791,
0.1424533575773239,
-1.8034601211547852,
-0.17646203935146332,
-2.0652568340301514,
-2.4881319999694824,
-1.3415915966033936,
-1.0047379732131958,
1.3403797149658203,
0.11622100323438644,
-0.973055362701416,
1.2253133058547974,
-0.3851014971733093,
-1.7452629804611206,
1.163698673248291,
-2.1820621490478516
] |
https://github.com/huggingface/datasets/issues/5259 | datasets 2.7 introduces sharding error | Sorry for the inconvenience, I opened a PR in your repo to fix this: https://huggingface.co/datasets/sil-ai/bloom-speech/discussions/2
Basically we've always considered lists in `gen_kwargs` to be a shard list that we can split and pass into different workers to generate the dataset (e.g. if you pass `num_proc=` in `load_dataset()` to generate the dataset in parallel), but it was documented only recently | ### Describe the bug
dataset fails to load with runtime error
`RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.`
### Steps to reproduce the bug
With datasets[audio] 2.7 loaded, and logged into hugging face,
`data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)`
creates the error.
Full stack trace:
```---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-7-8cb9ca0f79f0>](https://localhost:8080/#) in <module>
----> 1 data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)
5 frames
[/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs)
1745 try_from_hf_gcs=try_from_hf_gcs,
1746 use_auth_token=use_auth_token,
-> 1747 num_proc=num_proc,
1748 )
1749
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
824 verify_infos=verify_infos,
825 **prepare_split_kwargs,
--> 826 **download_and_prepare_kwargs,
827 )
828 # Sync info
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs)
1554 def _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs):
1555 super()._download_and_prepare(
-> 1556 dl_manager, verify_infos, check_duplicate_keys=verify_infos, **prepare_splits_kwargs
1557 )
1558
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
911 try:
912 # Prepare split will record examples associated to the split
--> 913 self._prepare_split(split_generator, **prepare_split_kwargs)
914 except OSError as e:
915 raise OSError(
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1362 fpath = path_join(self._output_dir, fname)
1363
-> 1364 num_input_shards = _number_of_shards_in_gen_kwargs(split_generator.gen_kwargs)
1365 if num_input_shards <= 1 and num_proc is not None:
1366 logger.warning(
[/usr/local/lib/python3.7/dist-packages/datasets/utils/sharding.py](https://localhost:8080/#) in _number_of_shards_in_gen_kwargs(gen_kwargs)
16 + "\n".join(f"\t- key {key} has length {length}" for key, length in lists_lengths.items())
17 + "\nTo fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, "
---> 18 + "and use tuples otherwise. In the end there should only be one single list, or several lists with the same length."
19 )
20 )
RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.```
### Expected behavior
the dataset loads in datasets version 2.6.1 and should load with datasets 2.7
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 6.0.1
- Pandas version: 1.3.5 | 414 | 59 | datasets 2.7 introduces sharding error
### Describe the bug
dataset fails to load with runtime error
`RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.`
### Steps to reproduce the bug
With datasets[audio] 2.7 loaded, and logged into hugging face,
`data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)`
creates the error.
Full stack trace:
```---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
[<ipython-input-7-8cb9ca0f79f0>](https://localhost:8080/#) in <module>
----> 1 data = datasets.load_dataset('sil-ai/bloom-speech', 'bis', use_auth_token=True)
5 frames
[/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, num_proc, **config_kwargs)
1745 try_from_hf_gcs=try_from_hf_gcs,
1746 use_auth_token=use_auth_token,
-> 1747 num_proc=num_proc,
1748 )
1749
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, num_proc, storage_options, **download_and_prepare_kwargs)
824 verify_infos=verify_infos,
825 **prepare_split_kwargs,
--> 826 **download_and_prepare_kwargs,
827 )
828 # Sync info
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs)
1554 def _download_and_prepare(self, dl_manager, verify_infos, **prepare_splits_kwargs):
1555 super()._download_and_prepare(
-> 1556 dl_manager, verify_infos, check_duplicate_keys=verify_infos, **prepare_splits_kwargs
1557 )
1558
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
911 try:
912 # Prepare split will record examples associated to the split
--> 913 self._prepare_split(split_generator, **prepare_split_kwargs)
914 except OSError as e:
915 raise OSError(
[/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _prepare_split(self, split_generator, check_duplicate_keys, file_format, num_proc, max_shard_size)
1362 fpath = path_join(self._output_dir, fname)
1363
-> 1364 num_input_shards = _number_of_shards_in_gen_kwargs(split_generator.gen_kwargs)
1365 if num_input_shards <= 1 and num_proc is not None:
1366 logger.warning(
[/usr/local/lib/python3.7/dist-packages/datasets/utils/sharding.py](https://localhost:8080/#) in _number_of_shards_in_gen_kwargs(gen_kwargs)
16 + "\n".join(f"\t- key {key} has length {length}" for key, length in lists_lengths.items())
17 + "\nTo fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, "
---> 18 + "and use tuples otherwise. In the end there should only be one single list, or several lists with the same length."
19 )
20 )
RuntimeError: Sharding is ambiguous for this dataset: we found several data sources lists of different lengths, and we don't know over which list we should parallelize:
- key audio_files has length 46
- key data has length 0
To fix this, check the 'gen_kwargs' and make sure to use lists only for data sources, and use tuples otherwise. In the end there should only be one single list, or several lists with the same length.```
### Expected behavior
the dataset loads in datasets version 2.6.1 and should load with datasets 2.7
### Environment info
- `datasets` version: 2.7.0
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.15
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
Sorry for the inconvenience, I opened a PR in your repo to fix this: https://huggingface.co/datasets/sil-ai/bloom-speech/discussions/2
Basically we've always considered lists in `gen_kwargs` to be a shard list that we can split and pass into different workers to generate the dataset (e.g. if you pass `num_proc=` in `load_dataset()` to generate the dataset in parallel), but it was documented only recently | [
-1.1912273168563843,
-0.8506546020507812,
-0.5274680256843567,
1.3883565664291382,
-0.02130597084760666,
-1.3325260877609253,
0.13133041560649872,
-0.9343574047088623,
1.5297203063964844,
-0.8634192943572998,
0.29767003655433655,
-1.7201601266860962,
0.023665711283683777,
-0.725886344909668,
-0.6225886940956116,
-0.7012693881988525,
-0.3172246813774109,
-0.7207426428794861,
1.1586427688598633,
2.4115066528320312,
1.1683112382888794,
-1.3696231842041016,
2.849388360977173,
0.6824321150779724,
-0.2492702305316925,
-0.8375873565673828,
0.41571545600891113,
0.0245790034532547,
-1.4177800416946411,
-0.24709810316562653,
-1.0317730903625488,
-0.03458375856280327,
-0.7125115990638733,
-0.4595675766468048,
0.04378721863031387,
0.4629855751991272,
-0.1987547129392624,
-0.38955721259117126,
-0.41076865792274475,
-0.7369451522827148,
0.5853082537651062,
-0.25130581855773926,
0.8786571621894836,
-0.20424138009548187,
1.795166015625,
-0.5653884410858154,
0.5183064937591553,
0.5369793772697449,
1.186366081237793,
0.16598305106163025,
-0.06380578130483627,
0.3457498252391815,
0.25929245352745056,
0.06328818947076797,
0.6072626709938049,
1.2035422325134277,
0.6594119071960449,
0.5294656753540039,
0.6716601848602295,
-2.2261459827423096,
1.3383127450942993,
-0.8576511144638062,
0.28947189450263977,
1.4343101978302002,
-1.0874491930007935,
0.5298207402229309,
-1.8440362215042114,
-0.14093773066997528,
0.4360063076019287,
-2.2108635902404785,
0.17584897577762604,
-1.257144808769226,
-0.5045803189277649,
0.9365003705024719,
0.3633688688278198,
-1.2346343994140625,
0.045928630977869034,
-0.46751734614372253,
1.0273562669754028,
0.3341600298881531,
1.083069920539856,
-1.6957346200942993,
0.07115247845649719,
-0.23080295324325562,
0.29235517978668213,
-1.184767246246338,
-1.6439939737319946,
0.6458845138549805,
0.729424238204956,
0.6391682624816895,
-0.14361970126628876,
0.9253424406051636,
-1.1817128658294678,
0.7903297543525696,
-1.0291824340820312,
-1.6852861642837524,
-1.3053935766220093,
-2.490710735321045,
-2.406585454940796,
0.7194384336471558,
-0.4468645453453064,
-0.3705155551433563,
2.1772518157958984,
-1.1186981201171875,
-1.7008609771728516,
1.096173644065857,
0.3049165606498718,
-0.09777577221393585,
2.437390089035034,
0.2134111374616623,
-0.9039912223815918,
0.7207759618759155,
-0.9242975115776062,
0.6542707681655884,
-0.41113343834877014,
1.29055655002594,
0.39414510130882263,
-1.1088629961013794,
1.5578852891921997,
-0.4441349506378174,
0.5058189034461975,
-0.7076848149299622,
-0.4159752428531647,
-0.5797667503356934,
0.14711597561836243,
1.9254982471466064,
-0.12668375670909882,
1.4803489446640015,
-0.15464885532855988,
-1.4016891717910767,
-1.3414363861083984,
0.8102881908416748,
0.45759543776512146,
-0.9256055951118469,
0.19227054715156555,
-0.40830814838409424,
0.13971161842346191,
0.10818692296743393,
1.0755716562271118,
1.2731083631515503,
0.7166493535041809,
-0.20195144414901733,
-0.9094502329826355,
0.06967341899871826,
-0.17241089046001434,
-0.555298388004303,
-1.7783644199371338,
-0.2249610871076584,
0.07354570180177689,
0.6527321934700012,
-1.1960045099258423,
1.919539213180542,
0.8729049563407898,
2.029632091522217,
0.9360588788986206,
-0.42129263281822205,
1.493823528289795,
0.09750552475452423,
1.8982493877410889,
-0.4003336727619171,
0.7076719999313354,
-0.5362423062324524,
-1.214365005493164,
0.7892927527427673,
-0.34231144189834595,
-1.9658933877944946,
-0.3315967917442322,
-0.8674770593643188,
-0.1834273338317871,
-0.8866212964057922,
1.039563775062561,
-0.14534038305282593,
-1.4160315990447998,
0.2535470128059387,
-0.5795106291770935,
0.2570839524269104,
-1.3765603303909302,
0.2885098457336426,
0.7548274397850037,
-0.676887571811676,
0.017145484685897827,
-0.45165082812309265,
-1.3981364965438843,
-0.6297789216041565,
0.5511230230331421,
1.7026399374008179,
-0.6336870789527893,
0.9725430011749268,
1.0424221754074097,
-0.5629591345787048,
-0.10381222516298294,
0.44194772839546204,
-0.361558735370636,
0.8484653830528259,
-1.0088164806365967,
-0.5416908860206604,
1.1621291637420654,
-0.38606929779052734,
-0.47879758477211,
1.3109745979309082,
0.7080528736114502,
-1.0451210737228394,
-0.30518999695777893,
-0.13470223546028137,
-0.8463535904884338,
0.0862204059958458,
-1.6196179389953613,
-0.07305449992418289,
0.3724030554294586,
-1.542488694190979,
-0.4244108498096466,
-0.056593313813209534,
1.3594175577163696,
-0.02068508230149746,
1.3864860534667969,
-0.21488496661186218,
-0.07139893621206284,
-0.49739906191825867,
-0.5608544945716858,
0.20779156684875488,
-0.10144936293363571,
-0.5367140173912048,
0.25169771909713745,
-0.7666531205177307,
0.20207741856575012,
1.483464002609253,
0.177992045879364,
0.10896746069192886,
0.49530911445617676,
1.0866347551345825,
0.34823301434516907,
-0.17776775360107422,
-0.8890720009803772,
-1.666596531867981,
1.9821325540542603,
-1.6433110237121582,
1.970752239227295,
0.8508881330490112,
0.00238826684653759,
-1.8096449375152588,
-1.8075741529464722,
1.4977539777755737,
1.1008249521255493,
2.4386494159698486,
0.5113677382469177,
0.4669511020183563,
-0.8657821416854858,
-0.6507256627082825,
0.43483054637908936,
-0.7185779809951782,
-0.8572127819061279,
0.1881730556488037,
2.339265823364258,
1.7053606510162354,
-0.33158546686172485,
-0.18051478266716003,
-0.9542693495750427,
1.3593134880065918,
-0.30243897438049316,
0.2671879529953003,
1.9234638214111328,
-0.4938841164112091,
-1.0614458322525024,
1.3106242418289185,
-2.512098789215088,
0.33649519085884094,
2.0287928581237793,
0.33597037196159363,
0.07715108245611191,
-1.166887640953064,
-0.6875033378601074,
-0.14662262797355652,
-0.4621986150741577,
-1.2369554042816162,
0.44529950618743896,
-0.2468327134847641,
-0.7580223679542542,
-1.4381194114685059,
0.012500938959419727,
-1.2360718250274658,
-1.7279242277145386,
0.3495553433895111,
1.7809919118881226,
2.2361955642700195,
-0.8052656054496765,
1.3647534847259521,
-0.2826872766017914,
0.3383063077926636,
1.148307204246521,
1.2854151725769043,
3.1703546047210693,
1.8721966743469238,
-1.2822600603103638,
0.6776071786880493,
-0.13027949631214142,
-0.5205389261245728,
1.1572598218917847,
-0.9778807759284973,
1.20402193069458,
-0.21807906031608582,
-1.3816196918487549,
-1.2547920942306519,
0.9411582350730896,
0.4328593909740448,
-0.02670629322528839,
-0.5264825224876404,
1.1544591188430786,
0.21955977380275726,
1.2947653532028198,
0.6498984098434448,
-0.32153722643852234,
0.44309714436531067,
-0.37609830498695374,
-0.5927072167396545,
1.595457673072815,
0.0713995099067688,
-1.5627259016036987,
-2.3548529148101807,
-0.21583108603954315,
-0.9640592336654663,
0.013687037862837315,
-0.9352563619613647,
-1.0182526111602783,
1.4397799968719482,
0.4627602696418762,
-0.9218719005584717,
-0.10057059675455093,
-0.3427474796772003,
-0.5297356247901917,
2.580406665802002,
-1.3609941005706787,
-0.24037989974021912,
-0.9133313894271851,
-0.6707979440689087,
1.5338945388793945,
-1.1978009939193726,
-0.24613617360591888,
-1.0469932556152344,
-0.5348005294799805,
-1.2189885377883911,
-0.35748109221458435,
-0.05786525458097458,
-0.8318114876747131,
0.7227341532707214,
0.012197458185255527,
-1.3264672756195068,
-0.2629024386405945,
-1.093345284461975,
0.9101055860519409,
-0.2683008909225464,
0.0662376880645752,
1.6571711301803589,
0.2088557332754135,
-0.45975202322006226,
0.8515570163726807,
1.2772725820541382,
0.6773244738578796,
-0.5649043321609497,
0.16021385788917542,
-0.6490420699119568,
0.5188791155815125,
-1.1497901678085327,
0.3534906506538391,
-3.0136969089508057,
0.6091535687446594,
0.010566958226263523,
-0.02536497265100479,
-0.10796455293893814,
-1.5351539850234985,
0.9501428604125977,
2.3912205696105957,
-1.1484947204589844,
0.6232710480690002,
0.35917264223098755,
1.2709248065948486,
-1.6272025108337402,
0.04238464683294296,
-0.6613125205039978,
2.049708366394043,
0.002057909034192562,
1.0357308387756348,
-0.5341998338699341,
-2.3981573581695557,
0.5015202760696411,
-1.2258639335632324,
-0.9475016593933105,
0.7891274094581604,
-0.8528828620910645,
0.21068644523620605,
-1.2016209363937378,
-0.1068384051322937,
-0.9541433453559875,
-1.1865496635437012,
0.4840033948421478,
0.04900837317109108,
0.6156224012374878,
-0.630059003829956,
0.25276875495910645,
-2.2340850830078125,
-1.403773307800293,
-0.1201719120144844,
-0.9075002670288086,
0.435364305973053,
-0.3936677575111389,
0.7319841384887695,
-0.1340954452753067,
0.04177871346473694,
0.26651641726493835,
1.543910264968872,
3.1592490673065186,
0.007596948184072971,
0.35431933403015137,
-0.24216733872890472,
-1.0373201370239258,
1.5448060035705566,
0.9223072528839111,
-0.250951886177063,
-0.5925050973892212,
-0.9221538305282593,
1.4006834030151367,
1.9209860563278198,
1.0012290477752686,
0.061058927327394485,
-0.9067657589912415,
-0.7371363043785095,
0.11390247195959091,
0.1756288856267929,
0.4952487349510193,
0.986984372138977,
0.1159108504652977,
0.17708632349967957,
1.3367841243743896,
1.0426076650619507,
-0.3388596475124359,
0.4834204316139221,
-0.830735445022583,
-0.40433013439178467,
0.5328003168106079,
0.3368091881275177,
-0.011107807978987694,
0.30942636728286743,
-1.0390455722808838,
-0.24225421249866486,
-0.2603241503238678,
-0.802169144153595,
-0.6936513781547546,
-0.39724719524383545,
-0.4669429063796997,
1.7370176315307617,
-0.016907665878534317,
-0.5627831220626831,
0.054743263870477676,
-0.7045604586601257,
-0.10186196118593216,
-1.0502558946609497,
0.2527318596839905,
-0.13695727288722992,
0.09130405634641647,
-0.13512291014194489,
1.694628357887268,
-0.9487143754959106,
-2.2353363037109375,
0.06323530524969101,
0.2623751759529114,
-0.28601330518722534,
-0.10363355278968811,
1.8562159538269043,
0.49175602197647095,
1.4320721626281738,
1.5500825643539429,
1.1145350933074951,
-0.6273167133331299,
-1.38138747215271,
0.8505666851997375,
0.9856504201889038,
-1.3523677587509155,
0.9495629072189331,
-0.17653168737888336,
-0.6599190831184387,
0.5744735598564148,
1.291736364364624,
0.44958218932151794,
-2.014214277267456,
0.881575882434845,
-1.2658497095108032,
0.9603232741355896,
0.8185209035873413,
0.8072544932365417,
0.1679811328649521,
0.8963161706924438,
-1.2426215410232544,
-0.9995319247245789,
-0.6004347205162048,
-0.6502416729927063,
1.8923685550689697,
-0.29494062066078186,
0.33028730750083923,
-0.3066439628601074,
-1.2621259689331055,
0.13235659897327423,
0.6894370913505554,
0.31865960359573364,
-0.31633085012435913,
0.7536992430686951,
-0.7436661124229431,
-1.1103264093399048,
-1.3035640716552734,
-0.45975401997566223,
-1.066839575767517,
-0.8426624536514282,
1.0512397289276123,
0.7267263531684875,
0.5186416506767273,
1.9341585636138916,
0.662230372428894,
0.20529985427856445,
-2.544569969177246,
0.8450461626052856,
0.34186479449272156,
-0.18736042082309723,
0.8028069138526917,
0.3000180721282959,
1.2811856269836426,
-0.12849418818950653,
0.6075982451438904,
-2.3585917949676514,
2.2574026584625244,
-0.24211637675762177,
0.7310406565666199,
0.13354183733463287,
0.07816003262996674,
1.0582062005996704,
0.5288975238800049,
0.4938124418258667,
-1.0516924858093262,
0.9235109090805054,
-0.5842387676239014,
1.13547945022583,
0.863357424736023,
-0.917845606803894,
0.13566552102565765,
1.1937098503112793,
0.3993211090564728,
-0.5764870643615723,
-0.9903178215026855,
-0.8754305839538574,
0.8948095440864563,
1.6980677843093872,
-0.006651835050433874,
0.05258936807513237,
0.759922444820404,
0.7641488909721375,
-1.2496391534805298,
0.04270736128091812,
-0.4986550807952881,
-0.6508926749229431,
1.7820134162902832,
2.051637649536133,
-0.06682250648736954,
0.03824998810887337,
-0.7342889904975891,
-1.4948444366455078,
0.8466861844062805,
0.07367326319217682,
-0.07068736851215363,
0.7385869026184082,
-0.6320491433143616,
1.1057472229003906,
0.8081523180007935,
0.7802718281745911,
0.274808794260025,
-0.0035836249589920044,
0.285300076007843,
-0.30198314785957336,
-1.1505311727523804,
-0.30908411741256714,
-1.0202136039733887,
-2.586601734161377,
0.4025624990463257,
-0.23501397669315338,
-1.4713737964630127,
0.17286019027233124,
-0.9242760539054871,
0.777722954750061,
-0.4796622395515442,
-1.201769232749939,
-1.3740023374557495,
0.3050473630428314,
-0.13783669471740723,
0.8372578620910645,
-1.6462910175323486,
-0.113674096763134,
1.0972586870193481,
0.9174476861953735,
-0.6517448425292969,
0.9412901997566223,
0.3049599826335907,
0.9281877875328064,
0.8973604440689087,
-0.3706163167953491,
0.5337797999382019,
0.2917252480983734,
-1.347497820854187,
0.3546435534954071,
1.4034843444824219,
0.14754202961921692,
1.3216784000396729,
-0.369243323802948,
-0.07313451170921326,
0.4297603368759155,
-0.3154526650905609,
-0.5750327706336975,
-0.6305130124092102,
0.5822297930717468,
-0.08974296599626541,
-0.9041887521743774,
-0.1313127875328064,
0.02059461548924446,
-0.2409522980451584,
0.3143658936023712,
-1.5486985445022583,
-0.13252222537994385,
-0.480584055185318,
-0.5281803607940674,
-1.482679009437561,
-0.06014128774404526,
1.3876042366027832,
-0.7565673589706421,
-0.12590554356575012,
0.6043125987052917,
0.2547689378261566,
0.49252545833587646,
0.6949980854988098,
-0.7066866755485535,
-0.2011818140745163,
-0.1422479897737503,
-0.44906988739967346,
0.30628108978271484,
1.2961088418960571,
-0.16305804252624512,
-0.9012911319732666,
0.506985068321228,
-0.21526312828063965,
0.16745848953723907,
1.8809617757797241,
0.053514402359724045,
-0.9447609782218933,
0.3987726867198944,
-0.765326201915741,
1.8960459232330322,
1.64472234249115,
1.2801886796951294,
-0.13863693177700043,
-0.9028530120849609,
0.6369768381118774,
-0.32028451561927795,
-0.3152923285961151,
0.8940393924713135,
0.3493845462799072,
-0.3165925443172455,
-1.4295178651809692,
0.7684996128082275,
1.2455328702926636,
-0.7202604413032532,
-0.7684681415557861,
0.14714805781841278,
-0.8184725642204285,
1.2284382581710815,
0.6191934943199158,
0.34439295530319214,
0.2593310475349426,
1.6365163326263428,
0.735814094543457,
-0.6128051280975342,
0.5375749468803406,
0.4255492091178894,
-0.18358555436134338,
-1.9842687845230103,
-1.1670222282409668,
0.27910250425338745,
-0.5108690857887268,
-1.5024793148040771,
1.416208267211914,
-1.2033803462982178,
-1.044240951538086,
0.551311194896698,
0.10311168432235718,
1.2527564764022827,
0.34856116771698,
1.682183027267456,
1.9767773151397705,
0.9118769764900208,
0.5254868865013123,
1.1913498640060425,
-0.23596245050430298,
-0.2611010670661926,
1.7008417844772339,
-0.4328717887401581,
0.6396017074584961,
1.111791968345642,
-0.47142112255096436,
-1.1655364036560059,
-0.7832609415054321,
-1.1374295949935913,
-0.7483234405517578,
1.0401922464370728,
0.14174297451972961,
-1.1024186611175537,
0.38184139132499695,
1.5818949937820435,
-0.0026508215814828873,
-0.09214145690202713,
0.7574975490570068,
0.37049898505210876,
-0.6500353217124939,
-0.11669237166643143,
-1.0361632108688354,
0.6046714186668396,
-0.42309457063674927,
-0.37406954169273376,
0.22482937574386597,
0.5977236032485962,
1.2019416093826294,
0.15617908537387848,
0.18859484791755676,
1.232188105583191,
-1.4209448099136353,
1.1654036045074463,
-0.9799352288246155,
0.38604268431663513,
-2.3117523193359375,
1.4050993919372559,
-0.8280192613601685,
2.0041916370391846,
-2.752321243286133,
0.426153302192688,
-0.5252036452293396,
-0.6360994577407837,
0.20422716438770294,
-0.14683175086975098,
0.06428563594818115,
-0.07091835141181946,
-1.0500460863113403,
-0.10489914566278458,
-0.8408606052398682,
0.49030232429504395,
1.2485331296920776,
1.3738523721694946,
-0.9024001955986023,
-0.29084324836730957,
-1.5843102931976318,
-0.17863045632839203,
-0.4882814884185791,
0.1424533575773239,
-1.8034601211547852,
-0.17646203935146332,
-2.0652568340301514,
-2.4881319999694824,
-1.3415915966033936,
-1.0047379732131958,
1.3403797149658203,
0.11622100323438644,
-0.973055362701416,
1.2253133058547974,
-0.3851014971733093,
-1.7452629804611206,
1.163698673248291,
-2.1820621490478516
] |
https://github.com/huggingface/datasets/issues/5258 | Restore order of split names in dataset_info for canonical datasets | The bulk edit is running...
See for example:
- A single config: https://huggingface.co/datasets/acronym_identification/discussions/2
- Multiple configs: https://huggingface.co/datasets/babi_qa/discussions/1 | After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example:
- https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c
Note that this order is the one appearing in the preview of the datasets.
I'm making a bulk edit to align the order of the splits appearing in the metadata info with the order appearing in the loading script.
Related to:
- #5202 | 415 | 17 | Restore order of split names in dataset_info for canonical datasets
After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example:
- https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c
Note that this order is the one appearing in the preview of the datasets.
I'm making a bulk edit to align the order of the splits appearing in the metadata info with the order appearing in the loading script.
Related to:
- #5202
The bulk edit is running...
See for example:
- A single config: https://huggingface.co/datasets/acronym_identification/discussions/2
- Multiple configs: https://huggingface.co/datasets/babi_qa/discussions/1 | [
-1.1784639358520508,
-0.8576855063438416,
-0.9429694414138794,
1.484458088874817,
-0.11630483716726303,
-1.3196907043457031,
0.07442894577980042,
-1.035192608833313,
1.7252873182296753,
-0.7967444062232971,
0.2646755278110504,
-1.7799776792526245,
-0.021074946969747543,
-0.5518752336502075,
-0.7375206351280212,
-0.8938601613044739,
-0.44621387124061584,
-0.7775585055351257,
0.9264881610870361,
2.5477371215820312,
1.1956604719161987,
-1.302293300628662,
2.7250406742095947,
0.6810390949249268,
-0.2593387961387634,
-1.032884955406189,
0.6015816926956177,
0.01562107726931572,
-1.2134567499160767,
-0.4313082993030548,
-0.9425024390220642,
0.06017865240573883,
-0.5487397909164429,
-0.441201776266098,
0.049774594604969025,
0.36300331354141235,
-0.25014248490333557,
-0.19954976439476013,
-0.5347010493278503,
-0.7884361147880554,
0.40555670857429504,
-0.28541505336761475,
0.9119805097579956,
-0.4949825406074524,
1.8467495441436768,
-0.5095513463020325,
0.26606473326683044,
0.761440098285675,
1.3588647842407227,
0.03469211608171463,
-0.04216086119413376,
0.1934860348701477,
0.29571348428726196,
0.005020304583013058,
0.3482014238834381,
1.1905903816223145,
0.463442325592041,
0.4751853346824646,
0.6439496874809265,
-2.201237201690674,
1.3800022602081299,
-0.9162774682044983,
0.2501542568206787,
1.4062926769256592,
-0.9557462334632874,
0.3390102684497833,
-1.7744202613830566,
-0.034076303243637085,
0.5560711026191711,
-2.3530755043029785,
0.14013734459877014,
-1.1845548152923584,
-0.5831038355827332,
0.9375895857810974,
0.18277885019779205,
-1.2054017782211304,
0.17726729810237885,
-0.47661277651786804,
1.141470193862915,
0.6911524534225464,
1.256139874458313,
-1.601416826248169,
0.015913022682070732,
-0.31439122557640076,
-0.012470199726521969,
-1.506388545036316,
-1.5225577354431152,
0.499575138092041,
0.675539493560791,
0.626652181148529,
0.012338737025856972,
0.8827422261238098,
-0.9047530293464661,
0.8139294385910034,
-0.824508011341095,
-1.6298784017562866,
-1.3693153858184814,
-2.3557519912719727,
-2.272961139678955,
0.7656299471855164,
-0.4756007790565491,
-0.4742758572101593,
2.031583309173584,
-1.1187396049499512,
-1.793540358543396,
1.0487627983093262,
0.30027344822883606,
0.13979029655456543,
2.338566780090332,
0.2745516300201416,
-0.6841192841529846,
0.33014214038848877,
-0.5785837173461914,
0.832665205001831,
-0.32804372906684875,
1.3362010717391968,
0.6317943930625916,
-1.0182808637619019,
1.5702712535858154,
-0.49266037344932556,
0.4950829744338989,
-0.6932120323181152,
-0.496583491563797,
-0.8587708473205566,
0.37965017557144165,
1.7842661142349243,
-0.405269056558609,
1.6179585456848145,
-0.31142616271972656,
-1.532732367515564,
-1.5863877534866333,
0.8575466275215149,
0.5546859502792358,
-0.8417790532112122,
0.09730962663888931,
-0.42155078053474426,
0.01585533656179905,
-0.025505036115646362,
1.1029503345489502,
1.15959632396698,
0.6898766160011292,
-0.32063940167427063,
-0.8339151740074158,
0.25877219438552856,
-0.07795774936676025,
-0.6242072582244873,
-1.8852883577346802,
-0.26098164916038513,
0.2021869719028473,
0.7128311991691589,
-1.1889456510543823,
1.7438013553619385,
0.8559607267379761,
1.9475353956222534,
1.0152840614318848,
-0.20944035053253174,
1.5161231756210327,
-0.08947242796421051,
1.8185672760009766,
-0.45142456889152527,
0.6638510823249817,
-0.2983459234237671,
-1.1935925483703613,
0.8208643198013306,
-0.3960658609867096,
-2.0279924869537354,
-0.8513537049293518,
-0.9315908551216125,
-0.15840165317058563,
-0.7226560115814209,
0.9503267407417297,
-0.33890843391418457,
-1.296507716178894,
0.19644850492477417,
-0.5600224137306213,
0.06726710498332977,
-1.2217885255813599,
0.18832914531230927,
0.711338460445404,
-0.6425661444664001,
-0.15047994256019592,
-0.2696097791194916,
-1.3313806056976318,
-0.5021838545799255,
0.32830071449279785,
1.9503023624420166,
-0.6991412043571472,
0.9481773376464844,
0.9869444370269775,
-0.7378658652305603,
0.11689174920320511,
0.29712599515914917,
-0.26304516196250916,
0.8838140368461609,
-1.0336772203445435,
-0.4394519031047821,
1.0712153911590576,
-0.1447787880897522,
-0.8170044422149658,
1.5353063344955444,
0.7919377684593201,
-1.0141706466674805,
-0.24287906289100647,
-0.20237049460411072,
-0.815524697303772,
-0.0033053583465516567,
-1.571597695350647,
-0.1226535215973854,
0.17971858382225037,
-1.3931232690811157,
-0.4937235414981842,
-0.20566792786121368,
1.3743222951889038,
-0.221809521317482,
1.4012950658798218,
-0.2830444276332855,
-0.28499215841293335,
-0.45843929052352905,
-0.5080438852310181,
0.1941867619752884,
-0.14919699728488922,
-0.6307393908500671,
0.32047176361083984,
-0.9849475622177124,
0.3518442213535309,
1.3360044956207275,
0.471169650554657,
0.06510955095291138,
0.6307111978530884,
1.0441123247146606,
0.30459898710250854,
-0.0740901529788971,
-0.9503872990608215,
-1.5628211498260498,
2.0556437969207764,
-1.4621778726577759,
1.8814092874526978,
0.7518343925476074,
-0.010684274137020111,
-1.8562496900558472,
-1.8655498027801514,
1.3889009952545166,
1.1997432708740234,
2.307021379470825,
0.5363671183586121,
0.3595176339149475,
-0.8354445695877075,
-0.7829374074935913,
0.2927223742008209,
-1.0009870529174805,
-0.7160474061965942,
0.10035603493452072,
2.420200824737549,
1.8539140224456787,
-0.5100851655006409,
-0.24499939382076263,
-0.9372713565826416,
1.1341978311538696,
0.010891454294323921,
0.1303839385509491,
2.078282117843628,
-0.3162305951118469,
-1.0782378911972046,
1.2507604360580444,
-2.3470394611358643,
0.1382598876953125,
1.9517806768417358,
0.27408939599990845,
0.05823367089033127,
-1.4815912246704102,
-0.6707971096038818,
-0.26527297496795654,
-0.47382861375808716,
-1.248496413230896,
0.6719764471054077,
-0.3503967821598053,
-0.9526041746139526,
-1.4486992359161377,
0.1116667091846466,
-1.1782193183898926,
-1.6969776153564453,
0.4352351129055023,
1.7774170637130737,
2.045637369155884,
-0.6592276096343994,
1.5067002773284912,
-0.2519831359386444,
0.12796975672245026,
1.264275312423706,
1.2820814847946167,
3.1977033615112305,
1.8709807395935059,
-1.3005847930908203,
0.65721595287323,
-0.07326051592826843,
-0.44729939103126526,
1.1567951440811157,
-1.005843162536621,
1.2076905965805054,
-0.32468944787979126,
-1.2876745462417603,
-1.2826995849609375,
1.1040685176849365,
0.40247687697410583,
0.10532772541046143,
-0.6156682372093201,
1.308544397354126,
0.04962655156850815,
1.3438146114349365,
0.5254325270652771,
-0.4497247040271759,
0.5327237248420715,
-0.37547361850738525,
-0.5882479548454285,
1.6112622022628784,
0.12112153321504593,
-1.5497225522994995,
-2.2631170749664307,
-0.2907007932662964,
-0.7349515557289124,
-0.08927201479673386,
-0.6602452397346497,
-0.9898992776870728,
1.651998519897461,
0.52345871925354,
-1.3519972562789917,
-0.31313616037368774,
-0.4612372815608978,
-0.6214606165885925,
2.615638256072998,
-1.4757660627365112,
-0.18252524733543396,
-1.0181480646133423,
-0.44038936495780945,
1.6230041980743408,
-1.201629400253296,
-0.1144896000623703,
-1.0057024955749512,
-0.6911188960075378,
-1.4388912916183472,
-0.5116516947746277,
0.002409132197499275,
-0.8998980522155762,
0.8062852621078491,
-0.022177863866090775,
-0.9582011699676514,
-0.21066153049468994,
-0.819813072681427,
0.8995440602302551,
-0.12068440765142441,
0.2585793137550354,
1.8878204822540283,
0.4546467065811157,
-0.4212900996208191,
0.666857123374939,
1.1151206493377686,
0.6306478381156921,
-0.6607745289802551,
0.21863393485546112,
-0.7060778141021729,
0.2852923274040222,
-1.302571177482605,
0.2885320782661438,
-2.996933937072754,
0.6993604898452759,
-0.054749660193920135,
0.024119051173329353,
-0.027526695281267166,
-1.2178614139556885,
1.0758342742919922,
2.590660333633423,
-1.254348874092102,
0.4120621979236603,
0.35815224051475525,
1.1433128118515015,
-1.5965046882629395,
0.3080848753452301,
-0.5097349286079407,
2.050977945327759,
0.09802646189928055,
1.2352731227874756,
-0.5667091012001038,
-2.0755136013031006,
0.6357497572898865,
-1.2583998441696167,
-0.9932560920715332,
0.8447175621986389,
-0.7225841879844666,
0.17556913197040558,
-1.454961895942688,
-0.15635545551776886,
-0.968045711517334,
-1.3257430791854858,
0.8741547465324402,
0.20614053308963776,
0.5042434930801392,
-0.6320064663887024,
0.30505886673927307,
-2.172637701034546,
-1.2901225090026855,
-0.15206460654735565,
-0.930031955242157,
0.44807204604148865,
-0.30039137601852417,
0.5960425734519958,
-0.013938138261437416,
0.19526083767414093,
0.30994632840156555,
1.2917444705963135,
3.4780447483062744,
0.24295766651630402,
0.3773635923862457,
-0.13053667545318604,
-0.9969509840011597,
1.4583677053451538,
1.0148465633392334,
0.014765284955501556,
-0.541205883026123,
-0.9782379269599915,
1.3008686304092407,
1.9595844745635986,
1.1379551887512207,
0.16337800025939941,
-0.9832350015640259,
-0.7166901230812073,
-0.013678908348083496,
0.2317558079957962,
0.5991604924201965,
0.8817554712295532,
-0.08307328820228577,
0.17295393347740173,
1.4459936618804932,
1.2727044820785522,
-0.3456198275089264,
0.4831116795539856,
-0.9408308267593384,
-0.4391176402568817,
0.4991164207458496,
0.3842233121395111,
0.06786592304706573,
0.5255239009857178,
-1.0756511688232422,
-0.2644796669483185,
-0.28310084342956543,
-0.9253455996513367,
-0.6702995896339417,
-0.4509313404560089,
-0.40596961975097656,
1.532438039779663,
0.15667763352394104,
-0.4605655372142792,
-0.023926876485347748,
-0.8916122913360596,
-0.23185034096240997,
-1.0727163553237915,
0.24418134987354279,
-0.17411580681800842,
-0.05878695100545883,
-0.14579208195209503,
1.7566553354263306,
-1.0336720943450928,
-2.1833555698394775,
0.3075614869594574,
0.2859661281108856,
-0.40719175338745117,
0.12752537429332733,
1.5976380109786987,
0.5156675577163696,
1.3681104183197021,
1.2726937532424927,
1.0101498365402222,
-0.6056125164031982,
-1.348099708557129,
0.6485485434532166,
0.8856955766677856,
-1.4628443717956543,
0.9259702563285828,
-0.15476112067699432,
-0.5284128785133362,
0.8152095675468445,
1.2505059242248535,
0.39421546459198,
-1.9567238092422485,
0.7898685932159424,
-0.8182918429374695,
0.7153305411338806,
0.6656508445739746,
0.8233314752578735,
0.2517626881599426,
0.8221356868743896,
-1.2429715394973755,
-1.163130521774292,
-0.8289200067520142,
-0.564098596572876,
1.897442102432251,
-0.17171341180801392,
0.5880043506622314,
-0.17498089373111725,
-1.2292348146438599,
-0.15116508305072784,
0.7128567695617676,
0.2920316159725189,
-0.3417130708694458,
0.9308790564537048,
-0.6507507562637329,
-1.069652795791626,
-1.369781732559204,
-0.44923877716064453,
-0.8542900681495667,
-0.9014030694961548,
1.08047616481781,
0.8399099707603455,
0.3126024901866913,
1.935857892036438,
0.42992153763771057,
0.2765507698059082,
-2.6579625606536865,
0.7845125198364258,
0.27937453985214233,
0.15881693363189697,
0.8793175220489502,
0.2735355794429779,
1.1280274391174316,
-0.0005894331261515617,
0.5738615989685059,
-2.297642230987549,
2.209555149078369,
-0.27569901943206787,
0.7285968661308289,
-0.060014814138412476,
-0.267883837223053,
1.1312421560287476,
0.5718461871147156,
0.6588582396507263,
-1.1588306427001953,
0.8005957007408142,
-0.5912767052650452,
1.1753795146942139,
1.0539460182189941,
-0.8627320528030396,
-0.009311579167842865,
1.3480268716812134,
0.5496493577957153,
-0.3687872886657715,
-0.8592171669006348,
-0.801881730556488,
0.8861079812049866,
1.7602344751358032,
-0.08681116253137589,
0.11201094090938568,
0.8513789176940918,
0.6797746419906616,
-1.2114393711090088,
0.13325855135917664,
-0.7992676496505737,
-0.6576950550079346,
1.661759376525879,
2.0173425674438477,
-0.06651409715414047,
-0.07130363583564758,
-0.7629178762435913,
-1.150178074836731,
0.7667527198791504,
0.024179743602871895,
0.05065600574016571,
0.657093346118927,
-0.7070683836936951,
1.1208438873291016,
0.7841976881027222,
0.9945663809776306,
-0.045614734292030334,
0.5014982223510742,
0.33545440435409546,
-0.30593934655189514,
-1.1918712854385376,
-0.4115859866142273,
-1.0485575199127197,
-2.557035446166992,
0.49658483266830444,
-0.3562091290950775,
-1.3951016664505005,
-0.05779154598712921,
-1.0259171724319458,
0.8702095150947571,
-0.6081583499908447,
-1.1044589281082153,
-1.4151742458343506,
0.3027215301990509,
-0.15909206867218018,
0.8777903914451599,
-1.6150835752487183,
-0.037320803850889206,
1.3614115715026855,
0.8710429072380066,
-0.5813164114952087,
1.01409912109375,
0.30504924058914185,
0.9846501350402832,
0.7996260523796082,
-0.4237802028656006,
0.4405888319015503,
0.14701156318187714,
-1.4039156436920166,
0.3639431297779083,
1.0418329238891602,
0.20731405913829803,
1.4039660692214966,
-0.5251637697219849,
0.13690368831157684,
0.5348200798034668,
-0.5812231302261353,
-0.4449703097343445,
-0.5328544974327087,
0.7537763118743896,
0.059324637055397034,
-0.9128780364990234,
0.14035023748874664,
-0.17159631848335266,
-0.3093777298927307,
0.282924622297287,
-1.42499577999115,
-0.33628350496292114,
-0.3859429657459259,
-0.46189749240875244,
-1.3778316974639893,
0.051821351051330566,
1.3644828796386719,
-0.7634447813034058,
-0.16838620603084564,
0.5082865357398987,
0.4008435010910034,
0.5807875990867615,
0.6459046602249146,
-0.6411678791046143,
-0.37573355436325073,
-0.3558051288127899,
-0.2402297407388687,
0.3457430303096771,
1.1455973386764526,
-0.1936701536178589,
-1.0642387866973877,
0.7956975102424622,
-0.364430695772171,
0.11732395738363266,
2.0780630111694336,
0.03771299868822098,
-0.7709964513778687,
0.3553565442562103,
-0.7407812476158142,
1.7879077196121216,
1.6286128759384155,
1.3226308822631836,
-0.1726142019033432,
-0.8991807699203491,
0.5979142785072327,
-0.21223647892475128,
-0.24765919148921967,
0.9470347762107849,
0.5078484416007996,
-0.14623458683490753,
-1.4835189580917358,
0.4697490334510803,
1.2264089584350586,
-0.9729310274124146,
-0.7382965087890625,
0.08398093283176422,
-0.9307058453559875,
1.0790268182754517,
0.6941231489181519,
0.42469504475593567,
0.25749146938323975,
1.5559494495391846,
0.5785836577415466,
-0.501931369304657,
0.3141896724700928,
0.36373916268348694,
-0.11929599940776825,
-2.1117870807647705,
-0.8840762376785278,
0.3636800944805145,
-0.36758294701576233,
-1.5768301486968994,
1.2884496450424194,
-1.2251983880996704,
-0.8927521109580994,
0.48870956897735596,
0.1532803326845169,
1.3359771966934204,
0.2145150601863861,
1.7195826768875122,
2.059978723526001,
0.8721330761909485,
0.2502279281616211,
1.401366949081421,
-0.000796106643974781,
-0.3625864088535309,
1.772663950920105,
-0.427280455827713,
0.4987579584121704,
1.1207776069641113,
-0.3501279652118683,
-1.0540498495101929,
-0.8074089288711548,
-1.0444575548171997,
-0.6189982295036316,
1.2341102361679077,
0.19454437494277954,
-1.1648995876312256,
0.13921983540058136,
1.5069259405136108,
0.13910648226737976,
-0.1875627636909485,
0.6030462980270386,
0.5220207571983337,
-0.690228283405304,
-0.10510009527206421,
-0.8735727667808533,
0.4799187183380127,
-0.21704719960689545,
-0.3044835329055786,
0.27523910999298096,
0.3983275592327118,
1.2270293235778809,
0.007692588493227959,
0.15770095586776733,
1.3075811862945557,
-1.3903156518936157,
1.484789252281189,
-0.5224596858024597,
0.23782244324684143,
-2.518954038619995,
1.466145634651184,
-0.7815160155296326,
1.8609025478363037,
-2.6122190952301025,
0.3506355583667755,
-0.5548793077468872,
-0.42421138286590576,
0.38187864422798157,
-0.3682303726673126,
0.0665317177772522,
-0.09056846052408218,
-0.9759230017662048,
-0.05933355540037155,
-0.8404664993286133,
0.5612626671791077,
1.2798247337341309,
1.3143824338912964,
-1.088855504989624,
-0.3439643383026123,
-1.734269380569458,
-0.2598971724510193,
-0.7962073087692261,
0.33515602350234985,
-2.048920154571533,
-0.19825536012649536,
-1.977204442024231,
-2.4849555492401123,
-1.472592830657959,
-0.8491128087043762,
1.1321138143539429,
0.20406295359134674,
-0.8858304619789124,
0.9878636002540588,
-0.33785849809646606,
-1.7516849040985107,
1.0774171352386475,
-2.1202893257141113
] |
https://github.com/huggingface/datasets/issues/5258 | Restore order of split names in dataset_info for canonical datasets | TODO: Add "dataset_info" YAML metadata to:
- [x] "chr_en" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- Fixing PR: https://huggingface.co/datasets/chr_en/discussions/1
- [x] "conll2000" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "crime_and_punish" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "dart" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "iwslt2017" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [ ] "mc4" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- [ ] "the_pile" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- [ ] "timit_asr" has no metadata JSON file, nor "dataset_info" YAML tag in its card | After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example:
- https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c
Note that this order is the one appearing in the preview of the datasets.
I'm making a bulk edit to align the order of the splits appearing in the metadata info with the order appearing in the loading script.
Related to:
- #5202 | 415 | 141 | Restore order of split names in dataset_info for canonical datasets
After a bulk edit of canonical datasets to create the YAML `dataset_info` metadata, the split names were accidentally sorted alphabetically. See for example:
- https://huggingface.co/datasets/bc2gm_corpus/commit/2384629484401ecf4bb77cd808816719c424e57c
Note that this order is the one appearing in the preview of the datasets.
I'm making a bulk edit to align the order of the splits appearing in the metadata info with the order appearing in the loading script.
Related to:
- #5202
TODO: Add "dataset_info" YAML metadata to:
- [x] "chr_en" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- Fixing PR: https://huggingface.co/datasets/chr_en/discussions/1
- [x] "conll2000" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "crime_and_punish" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "dart" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [x] "iwslt2017" has no metadata JSON file, but it has "dataset_info" YAML tag in its card
- [ ] "mc4" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- [ ] "the_pile" has no metadata JSON file, nor "dataset_info" YAML tag in its card
- [ ] "timit_asr" has no metadata JSON file, nor "dataset_info" YAML tag in its card | [
-1.1292970180511475,
-0.9018511772155762,
-0.9200505614280701,
1.6121294498443604,
-0.12510985136032104,
-1.174870252609253,
0.048734698444604874,
-1.1038354635238647,
1.7090401649475098,
-0.8901389837265015,
0.2816278040409088,
-1.716794490814209,
0.01931200921535492,
-0.5463775992393494,
-0.6655616760253906,
-0.9752233624458313,
-0.37272971868515015,
-0.7399348616600037,
1.0248451232910156,
2.453195571899414,
1.2225606441497803,
-1.412315845489502,
2.770092248916626,
0.601116955280304,
-0.2381291389465332,
-0.9578463435173035,
0.4839763641357422,
0.10863945633172989,
-1.0047224760055542,
-0.3686448037624359,
-0.8897609114646912,
-0.1258855164051056,
-0.5344822406768799,
-0.3767757713794708,
-0.056527212262153625,
0.3498260974884033,
-0.3629014492034912,
-0.3166712820529938,
-0.6371746063232422,
-0.7435405254364014,
0.4086771011352539,
-0.27909061312675476,
0.9999189972877502,
-0.3475514352321625,
1.90260648727417,
-0.5778113603591919,
0.3193840980529785,
0.7117502689361572,
1.1623880863189697,
0.31765425205230713,
0.13626794517040253,
0.18086214363574982,
0.3629261553287506,
-0.16407650709152222,
0.5040004849433899,
1.2589353322982788,
0.5916735529899597,
0.5786243081092834,
0.7885746955871582,
-2.1771044731140137,
1.2816828489303589,
-0.9874733090400696,
0.24258944392204285,
1.4265509843826294,
-0.8467711806297302,
0.4248135983943939,
-1.7791850566864014,
-0.08344211429357529,
0.6027331352233887,
-2.3020107746124268,
0.3163909614086151,
-1.2665131092071533,
-0.6225728392601013,
0.9764639735221863,
0.20481254160404205,
-1.2481715679168701,
0.27401113510131836,
-0.37516388297080994,
1.1082215309143066,
0.5305386781692505,
1.2222304344177246,
-1.5863778591156006,
0.044279761612415314,
-0.21085025370121002,
0.11504152417182922,
-1.3355642557144165,
-1.5378904342651367,
0.5376610159873962,
0.46555450558662415,
0.6043451428413391,
0.030679889023303986,
0.9978408217430115,
-1.1019189357757568,
0.8002867698669434,
-1.0413786172866821,
-1.6000936031341553,
-1.3916208744049072,
-2.3112528324127197,
-2.3323006629943848,
0.7944325804710388,
-0.4692767262458801,
-0.5736760497093201,
2.0381312370300293,
-1.0188554525375366,
-1.6644165515899658,
1.2152019739151,
0.32883599400520325,
0.10103186964988708,
2.538524866104126,
0.22039338946342468,
-0.7610242962837219,
0.546515166759491,
-0.5536718368530273,
0.85732501745224,
-0.21865850687026978,
1.1527771949768066,
0.5239229202270508,
-1.057634711265564,
1.546603798866272,
-0.4134809374809265,
0.6495674252510071,
-0.5496618747711182,
-0.564832866191864,
-0.7877118587493896,
0.34926122426986694,
1.7370390892028809,
-0.2676427364349365,
1.5826783180236816,
-0.2939892113208771,
-1.5743603706359863,
-1.703675389289856,
0.9211986064910889,
0.4372369050979614,
-0.8804717063903809,
0.041438620537519455,
-0.36415979266166687,
0.09624788165092468,
-0.057253871113061905,
1.2459660768508911,
1.259092092514038,
0.7084600329399109,
-0.34738272428512573,
-0.7639340758323669,
0.046598099172115326,
-0.06921930611133575,
-0.6730276346206665,
-1.7931804656982422,
-0.20871108770370483,
0.28036797046661377,
0.6061410903930664,
-1.2061606645584106,
1.6147428750991821,
0.9008949398994446,
1.925502896308899,
1.0337703227996826,
-0.3274334967136383,
1.5044989585876465,
-0.027395129203796387,
1.6851407289505005,
-0.3621511161327362,
0.5175492763519287,
-0.3234807550907135,
-1.2649619579315186,
0.8560822606086731,
-0.3508208096027374,
-2.0599281787872314,
-1.0173988342285156,
-0.7804803848266602,
-0.14413899183273315,
-0.8058320879936218,
0.8149171471595764,
-0.20890474319458008,
-1.4471580982208252,
0.2637336850166321,
-0.5180203914642334,
-0.014481974765658379,
-1.2609550952911377,
0.29397764801979065,
0.5952309370040894,
-0.6854783892631531,
-0.14300626516342163,
-0.18018262088298798,
-1.3128496408462524,
-0.44285789132118225,
0.21034668385982513,
2.014479637145996,
-0.7001620531082153,
0.8508849143981934,
1.0768321752548218,
-0.7447385191917419,
0.1271161586046219,
0.1480891853570938,
-0.34703686833381653,
0.8421413898468018,
-1.1099121570587158,
-0.4990532696247101,
1.0780372619628906,
-0.14645732939243317,
-0.675696849822998,
1.5411936044692993,
0.7297457456588745,
-0.9878053665161133,
-0.26515311002731323,
-0.1420574188232422,
-0.809945821762085,
-0.06466765701770782,
-1.4355016946792603,
-0.23146052658557892,
0.3373050093650818,
-1.3670774698257446,
-0.4239182472229004,
-0.26855769753456116,
1.2836588621139526,
-0.29191792011260986,
1.352519154548645,
-0.43631917238235474,
-0.3122676610946655,
-0.4112335443496704,
-0.5149649977684021,
0.12331171333789825,
-0.200887069106102,
-0.6486853957176208,
0.1416223645210266,
-0.8079411387443542,
0.2792474627494812,
1.25333571434021,
0.4274928867816925,
0.05716709420084953,
0.42558911442756653,
1.175489902496338,
0.4098491370677948,
0.009682740084826946,
-0.9297640323638916,
-1.4074950218200684,
2.0363781452178955,
-1.5036990642547607,
2.0486767292022705,
0.7480301260948181,
-0.06802217662334442,
-1.8141143321990967,
-1.9060823917388916,
1.39081609249115,
1.147115707397461,
2.3816821575164795,
0.41877055168151855,
0.42698565125465393,
-0.8465690016746521,
-0.7834101915359497,
0.258761465549469,
-1.0693377256393433,
-0.5765782594680786,
0.2597799301147461,
2.3601648807525635,
1.7596008777618408,
-0.46505239605903625,
-0.0967351421713829,
-0.8185462951660156,
1.2923204898834229,
-0.0570099875330925,
0.1324293315410614,
2.073716878890991,
-0.2343067079782486,
-1.1780141592025757,
1.3487539291381836,
-2.3318240642547607,
0.028407931327819824,
2.0010976791381836,
0.31666678190231323,
0.005370998755097389,
-1.3218013048171997,
-0.6618675589561462,
-0.33641767501831055,
-0.4675160348415375,
-1.3187000751495361,
0.58585125207901,
-0.28169888257980347,
-0.8626271486282349,
-1.4575053453445435,
0.20925942063331604,
-1.1903016567230225,
-1.5823137760162354,
0.34886324405670166,
1.8710074424743652,
2.164201259613037,
-0.8186060786247253,
1.5621384382247925,
-0.3287389278411865,
-0.00533471442759037,
1.2170284986495972,
1.285783052444458,
3.1442081928253174,
1.779260277748108,
-1.2778000831604004,
0.4857825040817261,
-0.16377311944961548,
-0.47756171226501465,
1.0459356307983398,
-1.2089447975158691,
1.3204771280288696,
-0.2194773405790329,
-1.1696925163269043,
-1.255354881286621,
0.9187845587730408,
0.3449541926383972,
0.14367687702178955,
-0.6280809640884399,
1.2169561386108398,
0.10789138078689575,
1.4243292808532715,
0.5427780747413635,
-0.3174508512020111,
0.4712921380996704,
-0.4814400374889374,
-0.5363680124282837,
1.636478066444397,
0.004535242915153503,
-1.5385088920593262,
-2.161332607269287,
-0.2612800896167755,
-0.8110260367393494,
0.08310171216726303,
-0.5370107889175415,
-1.055467128753662,
1.7317125797271729,
0.36029481887817383,
-1.3385556936264038,
-0.33180952072143555,
-0.4282039701938629,
-0.6456354260444641,
2.759232521057129,
-1.4191906452178955,
-0.17593522369861603,
-0.9695746898651123,
-0.5860289931297302,
1.6415159702301025,
-1.0328816175460815,
-0.1623331904411316,
-0.8984232544898987,
-0.5749614834785461,
-1.4012290239334106,
-0.4536578059196472,
0.168114572763443,
-1.0579837560653687,
0.9432772994041443,
0.14911970496177673,
-1.0856056213378906,
-0.2589125633239746,
-0.8090997338294983,
0.8365851640701294,
-0.19945138692855835,
0.27152737975120544,
1.9562326669692993,
0.2998332679271698,
-0.37918341159820557,
0.7241516709327698,
1.1807243824005127,
0.6898521780967712,
-0.7284639477729797,
0.15251733362674713,
-0.7327753305435181,
0.3819926977157593,
-1.2540384531021118,
0.2733793556690216,
-2.9186012744903564,
0.6870331764221191,
-0.09163986146450043,
-0.04890387877821922,
0.015688959509134293,
-1.186081051826477,
1.1054558753967285,
2.5408408641815186,
-1.166723608970642,
0.36733534932136536,
0.33643049001693726,
1.2281676530838013,
-1.6745585203170776,
0.223286971449852,
-0.49988630414009094,
2.061391830444336,
0.09173013269901276,
1.1656265258789062,
-0.5082904696464539,
-2.258295774459839,
0.6689354777336121,
-1.3553258180618286,
-1.0908985137939453,
0.9192587733268738,
-0.8540867567062378,
0.23505450785160065,
-1.4977396726608276,
-0.27445152401924133,
-0.9661568403244019,
-1.2661447525024414,
0.6723213195800781,
0.17968931794166565,
0.45881083607673645,
-0.5154726505279541,
0.2976071238517761,
-2.311669111251831,
-1.4754242897033691,
-0.21781091392040253,
-1.0375728607177734,
0.49962854385375977,
-0.46415841579437256,
0.7310145497322083,
-0.20708827674388885,
0.13816499710083008,
0.42822110652923584,
1.4991244077682495,
3.304964065551758,
0.24896571040153503,
0.41486769914627075,
-0.2547909915447235,
-1.0270912647247314,
1.460288166999817,
0.9553995728492737,
-0.013192115351557732,
-0.518957793712616,
-1.029321312904358,
1.2648541927337646,
1.991598129272461,
1.030635952949524,
0.08245420455932617,
-0.8973323106765747,
-0.6572431921958923,
-0.10490569472312927,
0.2344437688589096,
0.535953164100647,
0.935648500919342,
-0.08851288259029388,
0.16222256422042847,
1.4592465162277222,
1.1606820821762085,
-0.2908194065093994,
0.2955096662044525,
-0.8192186951637268,
-0.46451640129089355,
0.6488617062568665,
0.2361524999141693,
0.035608209669589996,
0.5081158876419067,
-1.1109919548034668,
-0.3893702030181885,
-0.4478627145290375,
-0.8376978635787964,
-0.7228116989135742,
-0.34905606508255005,
-0.34382519125938416,
1.5754162073135376,
0.1290416419506073,
-0.4347566068172455,
0.09254973381757736,
-0.8447439670562744,
-0.23524688184261322,
-1.1932703256607056,
0.18845027685165405,
-0.21211808919906616,
-0.2195250242948532,
-0.13846459984779358,
1.7885286808013916,
-1.0719749927520752,
-2.0170702934265137,
0.17275361716747284,
0.379843145608902,
-0.19519755244255066,
0.15535081923007965,
1.5953571796417236,
0.4633941054344177,
1.5239440202713013,
1.1214312314987183,
0.9261489510536194,
-0.73175448179245,
-1.3347347974777222,
0.6363036632537842,
1.010804295539856,
-1.3415933847427368,
0.9030299782752991,
-0.24873410165309906,
-0.5730063319206238,
0.6584501266479492,
1.357529878616333,
0.41096875071525574,
-1.8862051963806152,
0.8562841415405273,
-1.0045441389083862,
0.7125393152236938,
0.5991224050521851,
0.6911691427230835,
0.17485442757606506,
0.7650678157806396,
-1.1563236713409424,
-1.099585771560669,
-0.6710617542266846,
-0.588854193687439,
1.903301477432251,
-0.31196871399879456,
0.604527473449707,
-0.2169734388589859,
-1.1725213527679443,
0.03148385137319565,
0.7092969417572021,
0.435891330242157,
-0.3197275400161743,
0.896212637424469,
-0.6880951523780823,
-0.8741598725318909,
-1.376858115196228,
-0.33597448468208313,
-0.9986400008201599,
-0.9375492930412292,
1.0987703800201416,
0.867919921875,
0.18911847472190857,
1.8790054321289062,
0.7068231105804443,
0.41952916979789734,
-2.5230252742767334,
0.9291101098060608,
0.2837730348110199,
-0.10649364441633224,
0.8480864763259888,
0.3241611421108246,
1.0961999893188477,
0.01905239000916481,
0.5267291069030762,
-2.4073984622955322,
2.3204166889190674,
-0.20166614651679993,
0.8054463267326355,
-0.05788808688521385,
-0.21342386305332184,
1.0697672367095947,
0.617615818977356,
0.5227252840995789,
-1.2200840711593628,
0.6916142702102661,
-0.3747492730617523,
1.1161134243011475,
0.9747045040130615,
-0.728723406791687,
0.018318362534046173,
1.3646067380905151,
0.4995861053466797,
-0.4391791522502899,
-0.8296362161636353,
-0.7329869866371155,
0.8853558897972107,
1.7715778350830078,
-0.05282288044691086,
0.12121663987636566,
0.9144827127456665,
0.6472562551498413,
-1.2583526372909546,
0.04294431582093239,
-0.6150227785110474,
-0.787985622882843,
1.6692187786102295,
2.0022153854370117,
-0.13187678158283234,
-0.11111005395650864,
-0.758707582950592,
-1.2166152000427246,
0.9290898442268372,
0.00674137007445097,
0.17384013533592224,
0.559554934501648,
-0.7998076677322388,
1.0927859544754028,
0.8562561273574829,
0.894646942615509,
0.2069232165813446,
0.3713807463645935,
0.5006157159805298,
-0.3628001809120178,
-1.0826631784439087,
-0.2301654815673828,
-0.9568674564361572,
-2.420891761779785,
0.4353182017803192,
-0.25792279839515686,
-1.3249210119247437,
-0.12024373561143875,
-1.0013864040374756,
0.9220355749130249,
-0.5766003727912903,
-1.0297119617462158,
-1.5539900064468384,
0.26416218280792236,
0.020318809896707535,
1.0533924102783203,
-1.5224499702453613,
-0.3121985197067261,
1.2338345050811768,
0.9552860260009766,
-0.645576536655426,
0.8609319925308228,
0.1548781841993332,
0.9498701691627502,
0.7325882315635681,
-0.47551456093788147,
0.529488205909729,
0.004525848664343357,
-1.3150522708892822,
0.3627648949623108,
1.12788987159729,
0.21344679594039917,
1.5198824405670166,
-0.46391940116882324,
-0.052486851811409,
0.43834662437438965,
-0.5947096943855286,
-0.47181978821754456,
-0.5047313570976257,
0.6589542627334595,
0.020340919494628906,
-0.9228830933570862,
0.03785563260316849,
-0.10193692147731781,
-0.32780417799949646,
0.23116527497768402,
-1.3707131147384644,
-0.2183922380208969,
-0.5036766529083252,
-0.6030198335647583,
-1.2701752185821533,
0.0000035958364605903625,
1.3540971279144287,
-0.7608730792999268,
-0.16886967420578003,
0.3916165232658386,
0.44832268357276917,
0.45395660400390625,
0.6054856777191162,
-0.7772871851921082,
-0.3945973813533783,
-0.41965603828430176,
-0.21376937627792358,
0.28374722599983215,
1.3255422115325928,
-0.19598771631717682,
-1.0847879648208618,
0.7032690048217773,
-0.3339051306247711,
0.0532316230237484,
2.0259807109832764,
0.06956354528665543,
-0.7729640603065491,
0.41728833317756653,
-0.7575933337211609,
1.8110651969909668,
1.7896006107330322,
1.3739831447601318,
-0.2573191821575165,
-0.8981063961982727,
0.6974650621414185,
-0.4599449634552002,
-0.3198377788066864,
0.8927593231201172,
0.3599023222923279,
-0.2100803405046463,
-1.7173899412155151,
0.625091552734375,
1.3041218519210815,
-0.8973225951194763,
-0.7125158905982971,
0.14926642179489136,
-0.8526224493980408,
1.0283511877059937,
0.6089144349098206,
0.4031904935836792,
0.3260868191719055,
1.5589580535888672,
0.813875138759613,
-0.47426268458366394,
0.3003152012825012,
0.5893816947937012,
-0.02625831961631775,
-2.050459861755371,
-1.1250276565551758,
0.3419880270957947,
-0.5474551320075989,
-1.4760197401046753,
1.5028965473175049,
-1.0516939163208008,
-1.0546143054962158,
0.5851638913154602,
-0.0013078832998871803,
1.2569880485534668,
0.28579455614089966,
1.6541985273361206,
2.0798850059509277,
0.8151482343673706,
0.352050244808197,
1.2564016580581665,
-0.17246657609939575,
-0.4828372001647949,
1.8274980783462524,
-0.49909818172454834,
0.3690616488456726,
1.0914545059204102,
-0.3590202331542969,
-1.0681366920471191,
-0.816411554813385,
-1.1887277364730835,
-0.6991442441940308,
1.1282918453216553,
0.15651600062847137,
-1.0605653524398804,
0.1809295266866684,
1.6292295455932617,
0.1399243324995041,
-0.3846750855445862,
0.6138268113136292,
0.5018130540847778,
-0.7586090564727783,
-0.08330380171537399,
-0.8492567539215088,
0.53647780418396,
-0.13300268352031708,
-0.2880987823009491,
0.34137704968452454,
0.44902363419532776,
1.421115756034851,
-0.03995004668831825,
0.056008633226156235,
1.185265064239502,
-1.4869071245193481,
1.4995324611663818,
-0.6636717319488525,
0.2746257483959198,
-2.4155261516571045,
1.362939476966858,
-0.6975358128547668,
1.9699134826660156,
-2.5560903549194336,
0.436547189950943,
-0.5666921734809875,
-0.46561819314956665,
0.34776079654693604,
-0.35115405917167664,
0.17551197111606598,
-0.06507319957017899,
-0.9850748181343079,
-0.04984503239393234,
-0.7518975734710693,
0.6050005555152893,
1.2096939086914062,
1.3751811981201172,
-1.122836709022522,
-0.4268437922000885,
-1.6038810014724731,
-0.20479799807071686,
-0.7783424258232117,
0.17519788444042206,
-1.9860469102859497,
-0.33382245898246765,
-1.8930492401123047,
-2.420645236968994,
-1.4410040378570557,
-0.8689818978309631,
1.1733968257904053,
0.18415747582912445,
-1.0197389125823975,
1.2340869903564453,
-0.3857191801071167,
-1.8724578619003296,
1.28155517578125,
-2.036325693130493
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | Cool ! Let us know if you have questions or if we can help :)
I guess we'll also have to create the NYU CS Department on the Hub ? | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 30 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
Cool ! Let us know if you have questions or if we can help :)
I guess we'll also have to create the NYU CS Department on the Hub ? | [
-1.2556132078170776,
-0.9806215167045593,
-0.7550493478775024,
1.4765340089797974,
-0.08026260137557983,
-1.2752023935317993,
0.031151369214057922,
-1.0098958015441895,
1.6203230619430542,
-0.69265216588974,
0.3238406777381897,
-1.6983169317245483,
-0.08072172105312347,
-0.5908728837966919,
-0.6896325945854187,
-0.866422176361084,
-0.36983367800712585,
-0.7894015908241272,
1.0350275039672852,
2.56986665725708,
1.2320841550827026,
-1.377134084701538,
2.74509596824646,
0.7550135254859924,
-0.33524730801582336,
-1.0221500396728516,
0.4813004434108734,
-0.004874303936958313,
-1.3321917057037354,
-0.5383749604225159,
-0.9747191071510315,
-0.010061712935566902,
-0.538179874420166,
-0.4561050534248352,
0.07858677208423615,
0.4245642423629761,
-0.21230581402778625,
-0.33293816447257996,
-0.6448533535003662,
-0.7440896034240723,
0.45576176047325134,
-0.3631257116794586,
0.9442963004112244,
-0.29563695192337036,
1.7953522205352783,
-0.580596923828125,
0.34597185254096985,
0.6707355976104736,
1.3647722005844116,
0.1197485700249672,
0.011037391610443592,
0.31342414021492004,
0.420830637216568,
-0.04767566919326782,
0.5497941374778748,
1.1483556032180786,
0.5910468101501465,
0.4386119246482849,
0.6069859266281128,
-2.1853272914886475,
1.3312602043151855,
-0.9954243302345276,
0.31748923659324646,
1.391838550567627,
-0.9198663830757141,
0.3523782789707184,
-1.7164709568023682,
-0.01680625230073929,
0.624437689781189,
-2.2261483669281006,
0.19140060245990753,
-1.303980827331543,
-0.5295051336288452,
0.9817465543746948,
0.38875776529312134,
-1.2751725912094116,
0.2221134454011917,
-0.5015752911567688,
1.1103181838989258,
0.46655037999153137,
1.1422921419143677,
-1.7195606231689453,
-0.031980495899915695,
-0.20783987641334534,
0.09698417037725449,
-1.314494252204895,
-1.5681016445159912,
0.499432235956192,
0.7057707905769348,
0.6619376540184021,
-0.03716244921088219,
0.914393424987793,
-0.9576699733734131,
0.8465022444725037,
-0.9237427115440369,
-1.6382595300674438,
-1.444564938545227,
-2.3266139030456543,
-2.3112807273864746,
0.8109882473945618,
-0.5518913865089417,
-0.4952464997768402,
2.0063986778259277,
-1.0884406566619873,
-1.8038828372955322,
1.1102039813995361,
0.31518417596817017,
0.053740181028842926,
2.4140076637268066,
0.2358693927526474,
-0.6552669405937195,
0.44570454955101013,
-0.7458001971244812,
0.8638580441474915,
-0.3835894763469696,
1.3323922157287598,
0.46621838212013245,
-1.048680067062378,
1.5758413076400757,
-0.46035704016685486,
0.5087525248527527,
-0.6982232928276062,
-0.4186112582683563,
-0.8145653605461121,
0.36692750453948975,
1.8860623836517334,
-0.36469733715057373,
1.6272313594818115,
-0.41075363755226135,
-1.572226881980896,
-1.6072789430618286,
0.7714781761169434,
0.49830546975135803,
-0.8530269265174866,
0.136921688914299,
-0.510219931602478,
0.130651593208313,
0.02673688530921936,
1.056198000907898,
1.2324435710906982,
0.5980232954025269,
-0.4278443157672882,
-0.8386582732200623,
0.21567124128341675,
-0.04965554177761078,
-0.7050380110740662,
-1.771382451057434,
-0.37051379680633545,
0.23654165863990784,
0.6262804865837097,
-1.2910094261169434,
1.7198233604431152,
0.8449875712394714,
2.021470546722412,
0.9430158138275146,
-0.3616381883621216,
1.4820709228515625,
0.09883706271648407,
1.8084079027175903,
-0.5699650049209595,
0.6821187734603882,
-0.2998557388782501,
-1.1043241024017334,
0.7766481637954712,
-0.4615812599658966,
-2.020407199859619,
-0.8200421333312988,
-0.7673803567886353,
-0.14549818634986877,
-0.8240326642990112,
0.9214749932289124,
-0.28504395484924316,
-1.3966562747955322,
0.22199270129203796,
-0.7527920007705688,
0.2115274965763092,
-1.236664891242981,
0.19972777366638184,
0.77079176902771,
-0.6337184309959412,
-0.03376017138361931,
-0.21304501593112946,
-1.3060814142227173,
-0.4444088041782379,
0.3638034462928772,
1.9320826530456543,
-0.644486665725708,
0.9078356623649597,
1.0110210180282593,
-0.6441240906715393,
0.16627606749534607,
0.35883620381355286,
-0.3773513734340668,
0.885899543762207,
-1.0765970945358276,
-0.3493213355541229,
1.219096064567566,
-0.17617787420749664,
-0.674721896648407,
1.45013427734375,
0.7816643714904785,
-1.0503060817718506,
-0.28824377059936523,
-0.15658773481845856,
-0.8076539039611816,
-0.013590512797236443,
-1.6558579206466675,
-0.1701454222202301,
0.2843731641769409,
-1.4600777626037598,
-0.35871273279190063,
-0.25578877329826355,
1.3152425289154053,
-0.18926088511943817,
1.4243178367614746,
-0.3646625280380249,
-0.16490665078163147,
-0.3508925139904022,
-0.4115593135356903,
0.2220258116722107,
-0.28834280371665955,
-0.5652869939804077,
0.207801952958107,
-0.841042160987854,
0.29862746596336365,
1.4472941160202026,
0.3778465688228607,
0.10669013857841492,
0.37431344389915466,
1.0727378129959106,
0.3381415009498596,
-0.13319185376167297,
-0.9662303924560547,
-1.6121982336044312,
2.0657882690429688,
-1.3414976596832275,
1.9377868175506592,
0.9060489535331726,
-0.014385109767317772,
-1.8156845569610596,
-1.7880258560180664,
1.2367796897888184,
1.145738959312439,
2.361201286315918,
0.5614039301872253,
0.35458189249038696,
-0.8271609544754028,
-0.6784378290176392,
0.31534719467163086,
-1.0249642133712769,
-0.7425137162208557,
0.12632733583450317,
2.4531068801879883,
1.877039909362793,
-0.4337168037891388,
-0.23844200372695923,
-0.9668484926223755,
1.2750773429870605,
-0.20638315379619598,
0.14855481684207916,
2.072427272796631,
-0.26213234663009644,
-0.9737018346786499,
1.2857438325881958,
-2.367361545562744,
0.1812126785516739,
1.9763816595077515,
0.2517198920249939,
0.12815548479557037,
-1.4815311431884766,
-0.7382847666740417,
-0.33408600091934204,
-0.41877904534339905,
-1.242602825164795,
0.6103078722953796,
-0.31004995107650757,
-0.9042007327079773,
-1.4329150915145874,
0.10450878739356995,
-1.1178102493286133,
-1.7129931449890137,
0.2887563109397888,
1.8433171510696411,
2.0541133880615234,
-0.8618270754814148,
1.4598655700683594,
-0.237502783536911,
0.10653600096702576,
1.2703354358673096,
1.3267425298690796,
3.092008590698242,
1.8979523181915283,
-1.3346718549728394,
0.6989852786064148,
-0.18754777312278748,
-0.44178295135498047,
1.1988654136657715,
-1.1540899276733398,
1.2129453420639038,
-0.2079341858625412,
-1.2602379322052002,
-1.2430036067962646,
1.090840458869934,
0.5641605257987976,
-0.011807202361524105,
-0.5741621255874634,
1.2529441118240356,
0.04845824092626572,
1.3239268064498901,
0.5696990489959717,
-0.4358392357826233,
0.5390927791595459,
-0.32764169573783875,
-0.5570031404495239,
1.5213618278503418,
0.11516953259706497,
-1.501579999923706,
-2.356506109237671,
-0.20303787291049957,
-0.8409854769706726,
-0.08440987765789032,
-0.6728687882423401,
-1.0342259407043457,
1.5791316032409668,
0.40915611386299133,
-1.3591123819351196,
-0.3276313245296478,
-0.341869056224823,
-0.5211098194122314,
2.6607916355133057,
-1.3031542301177979,
-0.20178747177124023,
-1.0438740253448486,
-0.5001450777053833,
1.6450011730194092,
-1.1602343320846558,
-0.20461443066596985,
-1.063902497291565,
-0.7572259306907654,
-1.262886881828308,
-0.5366544127464294,
-0.07545550167560577,
-0.9222058653831482,
0.693587601184845,
0.07284106314182281,
-1.0624220371246338,
-0.29503047466278076,
-0.8153139352798462,
0.9466966390609741,
-0.0638946145772934,
0.2577064633369446,
1.9192923307418823,
0.3867037892341614,
-0.4131675660610199,
0.7181437611579895,
1.1870307922363281,
0.6194443106651306,
-0.7215628027915955,
0.08092682808637619,
-0.6629515886306763,
0.3067324161529541,
-1.3568464517593384,
0.26540523767471313,
-2.9562370777130127,
0.6918118000030518,
-0.05540413036942482,
-0.1406877487897873,
-0.015356749296188354,
-1.25614595413208,
1.1805696487426758,
2.636207342147827,
-1.211489200592041,
0.5033242106437683,
0.35724902153015137,
1.1951112747192383,
-1.5765910148620605,
0.27940505743026733,
-0.41429218649864197,
2.1338555812835693,
0.1876213103532791,
1.257441520690918,
-0.4629662334918976,
-2.1371827125549316,
0.6189479827880859,
-1.2791850566864014,
-0.9937757849693298,
0.7779211401939392,
-0.8562098145484924,
0.14073924720287323,
-1.5109755992889404,
-0.16762349009513855,
-0.7996176481246948,
-1.281600832939148,
0.7167885899543762,
0.09154161810874939,
0.4778468906879425,
-0.5361568927764893,
0.3632850646972656,
-2.134582042694092,
-1.3623722791671753,
-0.18472126126289368,
-0.9765529632568359,
0.4598807990550995,
-0.3701980412006378,
0.6088010668754578,
-0.061376623809337616,
0.08318553119897842,
0.3284667134284973,
1.3326797485351562,
3.4321846961975098,
0.3338794410228729,
0.2978438436985016,
-0.08818910270929337,
-0.9737019538879395,
1.3798236846923828,
0.9262344241142273,
-0.16234908998012543,
-0.5228482484817505,
-0.9813960790634155,
1.3734863996505737,
2.0129008293151855,
1.0895280838012695,
0.1572103649377823,
-0.9093364477157593,
-0.9172177314758301,
0.05407020449638367,
0.2270692139863968,
0.41505861282348633,
0.8336902260780334,
0.008877172134816647,
0.11737906187772751,
1.4626803398132324,
1.1867213249206543,
-0.41759344935417175,
0.4639814794063568,
-0.9321935176849365,
-0.47760114073753357,
0.3278147876262665,
0.25621387362480164,
0.11873620003461838,
0.48554161190986633,
-0.981972873210907,
-0.2635737359523773,
-0.38037681579589844,
-0.8690337538719177,
-0.6860346794128418,
-0.4761122763156891,
-0.3783882260322571,
1.5113258361816406,
0.19724905490875244,
-0.4607474207878113,
-0.0017002900131046772,
-0.7593262195587158,
-0.16632337868213654,
-1.0818276405334473,
0.22899284958839417,
-0.06758160144090652,
-0.02224285714328289,
-0.14246614277362823,
1.798876404762268,
-0.9212338924407959,
-2.1535964012145996,
0.1991083323955536,
0.30335256457328796,
-0.3967415988445282,
0.12790681421756744,
1.7295440435409546,
0.5041868090629578,
1.4099986553192139,
1.2137397527694702,
0.9837256073951721,
-0.5618699789047241,
-1.2816745042800903,
0.7536422610282898,
0.9757354855537415,
-1.3410133123397827,
0.9199283719062805,
-0.1820085048675537,
-0.5029894709587097,
0.7095328569412231,
1.2600139379501343,
0.36695653200149536,
-1.9189646244049072,
0.8602836728096008,
-0.8942819237709045,
0.8109034895896912,
0.6452766060829163,
0.7255951166152954,
0.20723243057727814,
0.7644945979118347,
-1.3455678224563599,
-1.128458023071289,
-0.7714744806289673,
-0.5894973278045654,
1.9481613636016846,
-0.2711944878101349,
0.5593526363372803,
-0.16287866234779358,
-1.3080759048461914,
-0.05850861594080925,
0.7636889219284058,
0.2867096960544586,
-0.43331724405288696,
0.9195728898048401,
-0.6254675984382629,
-1.065894365310669,
-1.3446247577667236,
-0.39007773995399475,
-0.8929586410522461,
-0.9232512712478638,
1.0532608032226562,
0.8763806819915771,
0.3291928768157959,
1.8724157810211182,
0.5469278693199158,
0.3160192370414734,
-2.6261372566223145,
0.9856765866279602,
0.22470135986804962,
0.030042577534914017,
0.9692457318305969,
0.22712524235248566,
1.052354097366333,
0.05787070840597153,
0.45817604660987854,
-2.356081485748291,
2.2186145782470703,
-0.18090935051441193,
0.6400805115699768,
-0.06053376942873001,
-0.1647176742553711,
1.2063158750534058,
0.4612739384174347,
0.656140148639679,
-1.139330267906189,
0.7594326734542847,
-0.5123692154884338,
1.1124918460845947,
0.8563495874404907,
-0.8792458772659302,
-0.030249517410993576,
1.3940730094909668,
0.45932289958000183,
-0.4902839958667755,
-0.9234376549720764,
-0.8560817837715149,
0.9330552816390991,
1.7056313753128052,
0.0168442539870739,
-0.09230928868055344,
0.8381325602531433,
0.6185717582702637,
-1.2281593084335327,
0.08398043364286423,
-0.6756616234779358,
-0.671588659286499,
1.6635096073150635,
2.1263959407806396,
-0.05695303902029991,
-0.1986718326807022,
-0.7014294862747192,
-1.2529486417770386,
0.6941431164741516,
-0.13388220965862274,
0.14742009341716766,
0.6497272253036499,
-0.683667778968811,
1.1288485527038574,
0.7687286734580994,
0.9746861457824707,
0.12543556094169617,
0.2337753176689148,
0.4437001049518585,
-0.324270635843277,
-1.1962475776672363,
-0.42845574021339417,
-1.1541311740875244,
-2.4670255184173584,
0.4537006914615631,
-0.20440992712974548,
-1.448039174079895,
0.048410046845674515,
-1.09562087059021,
0.8873310089111328,
-0.5884356498718262,
-1.0017461776733398,
-1.4071252346038818,
0.3204731345176697,
-0.2368910312652588,
0.8872548937797546,
-1.6495461463928223,
-0.06385362148284912,
1.1675959825515747,
0.8642949461936951,
-0.520329475402832,
0.9792453646659851,
0.23450183868408203,
0.9870427250862122,
0.8782793283462524,
-0.32488980889320374,
0.4815845787525177,
0.1895938664674759,
-1.347569227218628,
0.42285168170928955,
1.1807670593261719,
0.2896448075771332,
1.408322811126709,
-0.46745872497558594,
0.1203656867146492,
0.4220374822616577,
-0.5809301733970642,
-0.48908594250679016,
-0.41189104318618774,
0.6978367567062378,
0.24994568526744843,
-1.0171282291412354,
-0.035570431500673294,
-0.11469563841819763,
-0.2685632109642029,
0.16482307016849518,
-1.506273865699768,
-0.22288662195205688,
-0.3262258470058441,
-0.5577097535133362,
-1.2255066633224487,
-0.00813895370811224,
1.4336862564086914,
-0.9060839414596558,
-0.20497016608715057,
0.5564896464347839,
0.38913530111312866,
0.58689945936203,
0.7333565354347229,
-0.6098252534866333,
-0.25146183371543884,
-0.2732483744621277,
-0.2761659026145935,
0.3237427771091461,
1.2410550117492676,
-0.09308885782957077,
-0.9000858664512634,
0.6893889904022217,
-0.4797808825969696,
0.15581315755844116,
2.029200792312622,
0.0694245919585228,
-0.8092768788337708,
0.3414217233657837,
-0.6873745322227478,
1.8935158252716064,
1.7199827432632446,
1.297694444656372,
-0.06605417281389236,
-0.9729062914848328,
0.6115183234214783,
-0.1683688759803772,
-0.38341858983039856,
0.9919755458831787,
0.41112008690834045,
-0.20600222051143646,
-1.4175233840942383,
0.46539223194122314,
1.2083566188812256,
-0.9134342074394226,
-0.7824901342391968,
0.15742534399032593,
-0.8811188340187073,
1.121472716331482,
0.6758370995521545,
0.31190982460975647,
0.22468534111976624,
1.4886510372161865,
0.7562315464019775,
-0.49761536717414856,
0.44895681738853455,
0.4714880883693695,
-0.22148309648036957,
-2.1367952823638916,
-0.9848511219024658,
0.3044661581516266,
-0.3901250958442688,
-1.5314643383026123,
1.1895233392715454,
-1.1832836866378784,
-0.9775441884994507,
0.577558159828186,
0.025232825428247452,
1.3754914999008179,
0.2581466734409332,
1.6147855520248413,
2.1583664417266846,
0.887092649936676,
0.281423956155777,
1.2826439142227173,
-0.04490368813276291,
-0.48084893822669983,
1.75609290599823,
-0.3920014500617981,
0.5429807305335999,
0.9916202425956726,
-0.41182732582092285,
-1.0817246437072754,
-0.7587929964065552,
-1.1394054889678955,
-0.6924079656600952,
1.2282781600952148,
0.15525715053081512,
-1.054925560951233,
0.2160918116569519,
1.5912739038467407,
0.11131154745817184,
-0.22544248402118683,
0.605092465877533,
0.5530357956886292,
-0.735368013381958,
-0.05931887403130531,
-0.9283943772315979,
0.4907835125923157,
-0.11014755070209503,
-0.283422589302063,
0.2592730224132538,
0.4052351117134094,
1.2767647504806519,
0.011664924211800098,
0.12969069182872772,
1.1169341802597046,
-1.4139952659606934,
1.5260891914367676,
-0.5125165581703186,
0.29698750376701355,
-2.5292060375213623,
1.4149664640426636,
-0.7545807361602783,
1.8984817266464233,
-2.608773946762085,
0.43513864278793335,
-0.6233065724372864,
-0.5918318629264832,
0.33532819151878357,
-0.4050646722316742,
0.15566010773181915,
-0.12996666133403778,
-1.0575273036956787,
-0.09132905304431915,
-0.7343516945838928,
0.5442770719528198,
1.1863585710525513,
1.32718825340271,
-1.1317718029022217,
-0.2627863883972168,
-1.7571568489074707,
-0.14248794317245483,
-0.7944969534873962,
0.33874738216400146,
-1.945353388786316,
-0.06090010330080986,
-1.9291175603866577,
-2.357039213180542,
-1.4063624143600464,
-0.7335459589958191,
1.0079562664031982,
0.2010820209980011,
-0.9746344089508057,
1.145369529724121,
-0.4128786623477936,
-1.8098429441452026,
1.0116158723831177,
-2.199489116668701
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > I guess we'll also have to create the NYU CS Department on the Hub ?
Yes, you're right! Let me add it to my profile first, and then we can transfer. Meanwhile, if it's recommended to loop the dataset author in here, let me know.
Also, the NYU Depth dataset seems big. Any example scripts for creating image datasets that I could refer? | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 64 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> I guess we'll also have to create the NYU CS Department on the Hub ?
Yes, you're right! Let me add it to my profile first, and then we can transfer. Meanwhile, if it's recommended to loop the dataset author in here, let me know.
Also, the NYU Depth dataset seems big. Any example scripts for creating image datasets that I could refer? | [
-1.2594894170761108,
-0.9918869733810425,
-0.7631050944328308,
1.4472155570983887,
-0.11300910264253616,
-1.2485182285308838,
0.06163175404071808,
-1.0427157878875732,
1.6452549695968628,
-0.7358764410018921,
0.295784056186676,
-1.6956183910369873,
-0.09183178842067719,
-0.5751165747642517,
-0.6935320496559143,
-0.85402512550354,
-0.37744465470314026,
-0.821952760219574,
1.0236780643463135,
2.5636754035949707,
1.1914786100387573,
-1.3848932981491089,
2.7473537921905518,
0.7322510480880737,
-0.30425170063972473,
-1.0462912321090698,
0.4985038936138153,
-0.005519654601812363,
-1.330275058746338,
-0.5046971440315247,
-0.9968975782394409,
0.0024735042825341225,
-0.5479029417037964,
-0.46761518716812134,
0.05596276372671127,
0.4096251130104065,
-0.20190304517745972,
-0.35158297419548035,
-0.6337226629257202,
-0.7308881878852844,
0.44162338972091675,
-0.3617626130580902,
0.9696261286735535,
-0.29250967502593994,
1.7872116565704346,
-0.5235740542411804,
0.3699125647544861,
0.6877220273017883,
1.3494595289230347,
0.1303614377975464,
0.04153389483690262,
0.2691192328929901,
0.4280848205089569,
-0.03104780800640583,
0.5322917103767395,
1.147945761680603,
0.6170433163642883,
0.4534512758255005,
0.6008174419403076,
-2.2291271686553955,
1.3215725421905518,
-0.9775968790054321,
0.361966997385025,
1.3913668394088745,
-0.89316725730896,
0.3621986508369446,
-1.7367922067642212,
-0.048851072788238525,
0.616588830947876,
-2.2151272296905518,
0.16488084197044373,
-1.3016698360443115,
-0.506937563419342,
0.9562443494796753,
0.39257121086120605,
-1.2746899127960205,
0.24172177910804749,
-0.503493070602417,
1.1055155992507935,
0.46229076385498047,
1.1542633771896362,
-1.7247830629348755,
-0.03395531326532364,
-0.2177688628435135,
0.10725515335798264,
-1.2879606485366821,
-1.5864310264587402,
0.5139906406402588,
0.6662377119064331,
0.6445792317390442,
-0.06670339405536652,
0.9211286902427673,
-0.9828228950500488,
0.8372794389724731,
-0.9457460641860962,
-1.6596366167068481,
-1.4038783311843872,
-2.3072211742401123,
-2.3271560668945312,
0.7885407209396362,
-0.5423026084899902,
-0.4797214865684509,
2.035691022872925,
-1.0624656677246094,
-1.7821012735366821,
1.10463547706604,
0.3172290027141571,
0.04714743793010712,
2.4093189239501953,
0.24385008215904236,
-0.6524144411087036,
0.443167507648468,
-0.7244781851768494,
0.8818353414535522,
-0.3654758930206299,
1.3485277891159058,
0.4578717052936554,
-1.0174319744110107,
1.5850008726119995,
-0.43038803339004517,
0.5163440108299255,
-0.6941591501235962,
-0.4387538433074951,
-0.8188483715057373,
0.3476960361003876,
1.8741240501403809,
-0.3775925636291504,
1.6261636018753052,
-0.4466729462146759,
-1.5840973854064941,
-1.6248444318771362,
0.7905555963516235,
0.5030987858772278,
-0.8465114235877991,
0.09566155821084976,
-0.4957648515701294,
0.13723789155483246,
0.005062502808868885,
1.0999221801757812,
1.2506580352783203,
0.6137722134590149,
-0.4303934574127197,
-0.8354317545890808,
0.18759040534496307,
-0.07047031819820404,
-0.7231772541999817,
-1.7749648094177246,
-0.34433841705322266,
0.23321230709552765,
0.6408133506774902,
-1.2727046012878418,
1.7128928899765015,
0.8633703589439392,
2.009927749633789,
0.939264178276062,
-0.3703801929950714,
1.469245433807373,
0.08480704575777054,
1.8267685174942017,
-0.5656337738037109,
0.651761531829834,
-0.3154667615890503,
-1.1164857149124146,
0.7969046831130981,
-0.4161059558391571,
-2.0138330459594727,
-0.819239616394043,
-0.8027967214584351,
-0.20452673733234406,
-0.8033810257911682,
0.9033016562461853,
-0.30930188298225403,
-1.3962043523788452,
0.22201143205165863,
-0.7265397310256958,
0.18411412835121155,
-1.2077364921569824,
0.2258569300174713,
0.7520959973335266,
-0.6470739841461182,
-0.028658611699938774,
-0.1953677386045456,
-1.306046485900879,
-0.456977516412735,
0.3535124659538269,
1.9234085083007812,
-0.6703259944915771,
0.92403644323349,
1.0283056497573853,
-0.6659747362136841,
0.12989728152751923,
0.34404465556144714,
-0.3697100579738617,
0.8542299270629883,
-1.0773757696151733,
-0.3646985590457916,
1.2077915668487549,
-0.19390852749347687,
-0.6508585214614868,
1.4445570707321167,
0.735735297203064,
-1.0600166320800781,
-0.2990127205848694,
-0.13045524060726166,
-0.799604594707489,
-0.021389272063970566,
-1.667251467704773,
-0.20059899985790253,
0.30235999822616577,
-1.4822536706924438,
-0.3926050066947937,
-0.28614452481269836,
1.2944073677062988,
-0.17953932285308838,
1.417575478553772,
-0.3264724016189575,
-0.1708156317472458,
-0.3363102376461029,
-0.4175601601600647,
0.22132769227027893,
-0.27797695994377136,
-0.5332627296447754,
0.20973734557628632,
-0.8741330504417419,
0.2932407855987549,
1.4757031202316284,
0.38408413529396057,
0.08763651549816132,
0.3901371955871582,
1.05733323097229,
0.37919166684150696,
-0.09844047576189041,
-0.9539337158203125,
-1.5716339349746704,
2.074674367904663,
-1.3811094760894775,
1.938634991645813,
0.8658814430236816,
-0.03456587716937065,
-1.83974289894104,
-1.8195345401763916,
1.2608082294464111,
1.1394110918045044,
2.368968963623047,
0.5669020414352417,
0.356049120426178,
-0.7978485822677612,
-0.6619173884391785,
0.3207102417945862,
-0.9944913983345032,
-0.7379040718078613,
0.12088917195796967,
2.435871124267578,
1.8679288625717163,
-0.4628455340862274,
-0.21890975534915924,
-0.9713038802146912,
1.2666501998901367,
-0.1903158724308014,
0.19283458590507507,
2.0737712383270264,
-0.2934172451496124,
-1.000103235244751,
1.2876046895980835,
-2.366877317428589,
0.20150257647037506,
1.9602630138397217,
0.25102052092552185,
0.11605513840913773,
-1.4749294519424438,
-0.6966677308082581,
-0.3184587061405182,
-0.43281489610671997,
-1.2542078495025635,
0.6181793808937073,
-0.31290385127067566,
-0.9063867330551147,
-1.4703419208526611,
0.10401792079210281,
-1.1135656833648682,
-1.7022223472595215,
0.27956894040107727,
1.8786263465881348,
2.0561482906341553,
-0.8582354784011841,
1.453116774559021,
-0.2572789788246155,
0.11662755906581879,
1.2534173727035522,
1.293867826461792,
3.075068473815918,
1.9004749059677124,
-1.3394575119018555,
0.6799840331077576,
-0.1843838393688202,
-0.4359110891819,
1.1769121885299683,
-1.120120882987976,
1.2200630903244019,
-0.21007749438285828,
-1.2487369775772095,
-1.2454816102981567,
1.0839546918869019,
0.5359163284301758,
-0.002057016361504793,
-0.5450931191444397,
1.2701985836029053,
0.03713338077068329,
1.3088767528533936,
0.5811799168586731,
-0.4539325535297394,
0.5689001083374023,
-0.3256166875362396,
-0.5497452616691589,
1.5425924062728882,
0.12246982753276825,
-1.5218441486358643,
-2.3603947162628174,
-0.2366229146718979,
-0.856669008731842,
-0.049565330147743225,
-0.6531388163566589,
-1.0466399192810059,
1.5840595960617065,
0.3981057405471802,
-1.3331003189086914,
-0.3343804180622101,
-0.3469192385673523,
-0.5182253122329712,
2.6487314701080322,
-1.3018226623535156,
-0.18882904946804047,
-1.0327494144439697,
-0.5158043503761292,
1.6451412439346313,
-1.161759376525879,
-0.20466136932373047,
-1.0424270629882812,
-0.733238935470581,
-1.2835956811904907,
-0.5180279016494751,
-0.04124916344881058,
-0.9314878582954407,
0.7097322940826416,
0.0967562347650528,
-1.0427136421203613,
-0.26451072096824646,
-0.811494767665863,
0.9493961334228516,
-0.06402189284563065,
0.2621452212333679,
1.9366387128829956,
0.400918185710907,
-0.41785573959350586,
0.7218501567840576,
1.1861920356750488,
0.646257758140564,
-0.7120829224586487,
0.08499392122030258,
-0.6830046772956848,
0.3324548006057739,
-1.3463103771209717,
0.22215019166469574,
-2.949907064437866,
0.6784133911132812,
-0.08303933590650558,
-0.13593117892742157,
0.02539197914302349,
-1.2746250629425049,
1.1492964029312134,
2.6048126220703125,
-1.2432643175125122,
0.49533942341804504,
0.3623678386211395,
1.2029606103897095,
-1.5436609983444214,
0.2948072552680969,
-0.41617703437805176,
2.1350595951080322,
0.213728129863739,
1.2278298139572144,
-0.47612473368644714,
-2.132471799850464,
0.6155408620834351,
-1.2706210613250732,
-1.0114660263061523,
0.7554197311401367,
-0.8530519604682922,
0.12324410676956177,
-1.52275812625885,
-0.17133551836013794,
-0.8121814727783203,
-1.294499158859253,
0.7114364504814148,
0.09976787120103836,
0.45332071185112,
-0.5741580724716187,
0.3770136535167694,
-2.1297647953033447,
-1.3688372373580933,
-0.20716592669487,
-0.9724166393280029,
0.4920002520084381,
-0.36117228865623474,
0.6259825825691223,
-0.0857517197728157,
0.06883969902992249,
0.31898170709609985,
1.3297752141952515,
3.446485757827759,
0.332820862531662,
0.28599461913108826,
-0.11588069796562195,
-1.0052540302276611,
1.4076484441757202,
0.9584102034568787,
-0.1379222571849823,
-0.5179011821746826,
-0.9954952001571655,
1.3499687910079956,
2.032172203063965,
1.0664740800857544,
0.13223442435264587,
-0.8849467039108276,
-0.8595699071884155,
0.05115732550621033,
0.2579861879348755,
0.4343850016593933,
0.8710730075836182,
-0.006803516298532486,
0.13049674034118652,
1.4443142414093018,
1.1844815015792847,
-0.41469624638557434,
0.45088109374046326,
-0.9130370616912842,
-0.47757241129875183,
0.36617913842201233,
0.24923229217529297,
0.11326286941766739,
0.4705522656440735,
-1.018183708190918,
-0.27911001443862915,
-0.3938641846179962,
-0.8949479460716248,
-0.678881049156189,
-0.4455678462982178,
-0.37368595600128174,
1.4974350929260254,
0.199630007147789,
-0.46927085518836975,
0.01785269007086754,
-0.746261715888977,
-0.16628508269786835,
-1.0904792547225952,
0.2451746165752411,
-0.07634873688220978,
-0.030792346224188805,
-0.1231556385755539,
1.8275295495986938,
-0.9036713242530823,
-2.124356985092163,
0.20853416621685028,
0.3015161454677582,
-0.3956313729286194,
0.16401390731334686,
1.7285871505737305,
0.5259355306625366,
1.426194190979004,
1.2510180473327637,
0.9766464233398438,
-0.5744695663452148,
-1.2466933727264404,
0.7647517323493958,
0.9493764042854309,
-1.3464939594268799,
0.8987246155738831,
-0.16167603433132172,
-0.5309927463531494,
0.7560892105102539,
1.2740978002548218,
0.36721834540367126,
-1.96576988697052,
0.8607715368270874,
-0.8949218392372131,
0.8013491630554199,
0.6484383940696716,
0.7715473175048828,
0.21438315510749817,
0.7558568716049194,
-1.3254249095916748,
-1.1228090524673462,
-0.7648967504501343,
-0.5942234992980957,
1.9651533365249634,
-0.23949798941612244,
0.5757168531417847,
-0.16971850395202637,
-1.279983639717102,
-0.060323476791381836,
0.744365394115448,
0.28707408905029297,
-0.44218993186950684,
0.8920984268188477,
-0.6316220760345459,
-1.060926079750061,
-1.357453465461731,
-0.41416478157043457,
-0.928139865398407,
-0.9372047185897827,
1.0450785160064697,
0.8621112108230591,
0.3652033507823944,
1.8770805597305298,
0.525321364402771,
0.31697165966033936,
-2.620035171508789,
0.9817195534706116,
0.24932241439819336,
-0.0201563723385334,
0.9761695265769958,
0.2514314353466034,
1.0683276653289795,
0.0540798157453537,
0.49128013849258423,
-2.3637001514434814,
2.2201461791992188,
-0.17494846880435944,
0.6792635321617126,
-0.0757436454296112,
-0.15809090435504913,
1.1859663724899292,
0.4745386242866516,
0.6338911056518555,
-1.1470447778701782,
0.7708154320716858,
-0.5136879682540894,
1.115563154220581,
0.8951088786125183,
-0.853137195110321,
-0.03311330825090408,
1.40497887134552,
0.48493942618370056,
-0.4743903875350952,
-0.91188645362854,
-0.8698260188102722,
0.9068682789802551,
1.7232476472854614,
-0.03095894679427147,
-0.08001088351011276,
0.8196068406105042,
0.6108721494674683,
-1.2367781400680542,
0.06604231894016266,
-0.6675605773925781,
-0.6753759980201721,
1.626492977142334,
2.111696243286133,
-0.06878481805324554,
-0.17447301745414734,
-0.6773802638053894,
-1.247581124305725,
0.6684221625328064,
-0.11228161305189133,
0.1485087126493454,
0.6382371783256531,
-0.6866550445556641,
1.1272914409637451,
0.7686747908592224,
0.961215078830719,
0.10717226564884186,
0.26052388548851013,
0.43571653962135315,
-0.3123141825199127,
-1.1441887617111206,
-0.370486855506897,
-1.1345714330673218,
-2.465488910675049,
0.44221198558807373,
-0.21271340548992157,
-1.4600402116775513,
0.03208734840154648,
-1.0548287630081177,
0.8967540264129639,
-0.5871278047561646,
-1.0360928773880005,
-1.43259859085083,
0.31966471672058105,
-0.20310740172863007,
0.9151028394699097,
-1.6776179075241089,
-0.06601238995790482,
1.186295509338379,
0.8615472912788391,
-0.5197761654853821,
1.01619291305542,
0.2655474841594696,
0.9972156286239624,
0.8414652347564697,
-0.34182095527648926,
0.4732884168624878,
0.1613670140504837,
-1.3429934978485107,
0.4163084030151367,
1.183504343032837,
0.2727126181125641,
1.3904863595962524,
-0.49639174342155457,
0.11287788301706314,
0.4355006814002991,
-0.5656211972236633,
-0.48645123839378357,
-0.3959636986255646,
0.6832311153411865,
0.2225397676229477,
-0.988344132900238,
-0.04865488409996033,
-0.10814720392227173,
-0.2727392017841339,
0.17111465334892273,
-1.478877067565918,
-0.2535446882247925,
-0.39437800645828247,
-0.5380869507789612,
-1.2246935367584229,
0.001535181887447834,
1.4312763214111328,
-0.8834019303321838,
-0.2111271172761917,
0.5495723485946655,
0.40205803513526917,
0.5864087343215942,
0.713127851486206,
-0.6112763285636902,
-0.2831559479236603,
-0.2783808410167694,
-0.29163071513175964,
0.3085222542285919,
1.277672290802002,
-0.11437134444713593,
-0.9350115656852722,
0.7058327198028564,
-0.46749064326286316,
0.1230945885181427,
1.9838813543319702,
0.05920199304819107,
-0.7962564826011658,
0.3224276006221771,
-0.6774548292160034,
1.9019144773483276,
1.7170751094818115,
1.325079083442688,
-0.07232222706079483,
-0.9540112018585205,
0.5775749087333679,
-0.19601453840732574,
-0.37820935249328613,
0.9735051989555359,
0.4081333577632904,
-0.20281168818473816,
-1.4277822971343994,
0.46838879585266113,
1.2194470167160034,
-0.9187100529670715,
-0.7524271011352539,
0.14832192659378052,
-0.8548184037208557,
1.127842664718628,
0.6623046398162842,
0.33225002884864807,
0.222673699259758,
1.4925578832626343,
0.7572662234306335,
-0.4924786388874054,
0.4527319371700287,
0.4746021628379822,
-0.2093917578458786,
-2.157078266143799,
-1.0003339052200317,
0.3028826117515564,
-0.4005272686481476,
-1.5169552564620972,
1.2246816158294678,
-1.1764976978302002,
-0.9954270720481873,
0.5633143782615662,
0.037496596574783325,
1.36955988407135,
0.31577688455581665,
1.6013803482055664,
2.169351577758789,
0.8956469893455505,
0.3154633939266205,
1.3161388635635376,
-0.06603770703077316,
-0.4760245978832245,
1.7471872568130493,
-0.39054355025291443,
0.4962468445301056,
0.9970324039459229,
-0.39400044083595276,
-1.0527923107147217,
-0.7464763522148132,
-1.171385645866394,
-0.6597577929496765,
1.2054446935653687,
0.13252165913581848,
-1.0568327903747559,
0.23956307768821716,
1.586386799812317,
0.110274538397789,
-0.2691245377063751,
0.6065343618392944,
0.5455554723739624,
-0.7127287983894348,
-0.05886014550924301,
-0.9185864329338074,
0.4985463321208954,
-0.15593086183071136,
-0.28526344895362854,
0.27618342638015747,
0.4291718006134033,
1.2849448919296265,
-0.0020535611547529697,
0.1401243656873703,
1.1391923427581787,
-1.412395715713501,
1.5301666259765625,
-0.5141290426254272,
0.27959081530570984,
-2.514110565185547,
1.3997585773468018,
-0.7353544235229492,
1.9252214431762695,
-2.621211051940918,
0.4349966049194336,
-0.6069153547286987,
-0.5683504343032837,
0.34017413854599,
-0.37999555468559265,
0.16140934824943542,
-0.1495501846075058,
-1.0536842346191406,
-0.09740091860294342,
-0.7455551028251648,
0.5464984774589539,
1.1752158403396606,
1.3149503469467163,
-1.1348375082015991,
-0.2871283292770386,
-1.7580299377441406,
-0.13700340688228607,
-0.7798858880996704,
0.3061705231666565,
-1.9675931930541992,
-0.08171916007995605,
-1.911133050918579,
-2.3825695514678955,
-1.3930028676986694,
-0.7407979369163513,
1.0231317281723022,
0.17378070950508118,
-0.959658682346344,
1.1729910373687744,
-0.3966106176376343,
-1.8399089574813843,
0.9959836006164551,
-2.1995015144348145
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | You can check the imagenet-1k one.
PS: If the licenses allows it, it'b be nice to host the dataset as sharded TAR archives (like imagenet-1k) instead of the ZIP format they use:
- it will make streaming much faster
- ZIP compression is not well suited for images
- it will allow parallel processing of the dataset (you can pass a subset of shards to each worker)
> if it's recommended to loop the dataset author in here, let me know.
It's recommended indeed, you can send them an email once you have the dataset ready and invite them to the org on the Hub | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 105 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
You can check the imagenet-1k one.
PS: If the licenses allows it, it'b be nice to host the dataset as sharded TAR archives (like imagenet-1k) instead of the ZIP format they use:
- it will make streaming much faster
- ZIP compression is not well suited for images
- it will allow parallel processing of the dataset (you can pass a subset of shards to each worker)
> if it's recommended to loop the dataset author in here, let me know.
It's recommended indeed, you can send them an email once you have the dataset ready and invite them to the org on the Hub | [
-1.26051926612854,
-0.9953506588935852,
-0.758684515953064,
1.455559492111206,
-0.14103803038597107,
-1.256151795387268,
0.036871861666440964,
-1.0196441411972046,
1.6544607877731323,
-0.7343916893005371,
0.30483075976371765,
-1.6769485473632812,
-0.05552991107106209,
-0.589270830154419,
-0.6971518993377686,
-0.8748115301132202,
-0.3903783857822418,
-0.8258004784584045,
1.019411325454712,
2.560157060623169,
1.2288978099822998,
-1.3770102262496948,
2.7829172611236572,
0.7316126823425293,
-0.2721351385116577,
-1.0115691423416138,
0.4815312623977661,
-0.024662548676133156,
-1.3460397720336914,
-0.5266298055648804,
-0.971683919429779,
0.004152538254857063,
-0.5692024827003479,
-0.4750858247280121,
0.04374312981963158,
0.4121604561805725,
-0.21280980110168457,
-0.3583804965019226,
-0.614251434803009,
-0.7412353754043579,
0.45583435893058777,
-0.41708335280418396,
0.984403133392334,
-0.3117572069168091,
1.799283742904663,
-0.5345839262008667,
0.33873990178108215,
0.6658574342727661,
1.3420767784118652,
0.14155781269073486,
0.015231244266033173,
0.2915922701358795,
0.4243452250957489,
-0.02678263746201992,
0.5126914381980896,
1.167349100112915,
0.6608259677886963,
0.45204606652259827,
0.6324664354324341,
-2.19580078125,
1.3377469778060913,
-0.9486243724822998,
0.3245261609554291,
1.3540980815887451,
-0.8933703303337097,
0.40249037742614746,
-1.7379016876220703,
-0.05150311067700386,
0.6110687255859375,
-2.21574330329895,
0.16932126879692078,
-1.2904008626937866,
-0.517443060874939,
0.9867270588874817,
0.3519251346588135,
-1.2642560005187988,
0.22286191582679749,
-0.5195289850234985,
1.110270380973816,
0.45606139302253723,
1.1399952173233032,
-1.7005079984664917,
-0.008052206598222256,
-0.22698476910591125,
0.11817661672830582,
-1.2684783935546875,
-1.5855932235717773,
0.5229281187057495,
0.691486120223999,
0.64505535364151,
-0.0874253362417221,
0.9546630382537842,
-0.9767706394195557,
0.8386049866676331,
-0.9485493302345276,
-1.659420371055603,
-1.4421038627624512,
-2.2997944355010986,
-2.30871844291687,
0.797619640827179,
-0.5196306109428406,
-0.4754470884799957,
2.016770124435425,
-1.078764796257019,
-1.760177493095398,
1.1036432981491089,
0.2757527828216553,
0.024614475667476654,
2.4061737060546875,
0.19478517770767212,
-0.6948590874671936,
0.46797212958335876,
-0.6987576484680176,
0.8665968179702759,
-0.36579230427742004,
1.3334078788757324,
0.4070403575897217,
-1.047210693359375,
1.561916708946228,
-0.5024325251579285,
0.5064262747764587,
-0.6709577441215515,
-0.45464038848876953,
-0.8016719818115234,
0.3278350830078125,
1.850782036781311,
-0.3782133162021637,
1.6283748149871826,
-0.41607022285461426,
-1.5500812530517578,
-1.6340372562408447,
0.795083224773407,
0.5026172995567322,
-0.821926474571228,
0.07619258761405945,
-0.4592961370944977,
0.13338372111320496,
0.010069059208035469,
1.0643513202667236,
1.198075771331787,
0.6368961930274963,
-0.39136555790901184,
-0.8533350229263306,
0.19028878211975098,
-0.06146804988384247,
-0.6959980130195618,
-1.775364875793457,
-0.34409067034721375,
0.19499149918556213,
0.6384226083755493,
-1.3052235841751099,
1.717714786529541,
0.855941891670227,
2.028815984725952,
0.9993651509284973,
-0.34437787532806396,
1.489376187324524,
0.11424782127141953,
1.8104840517044067,
-0.5618910193443298,
0.6605013608932495,
-0.329374223947525,
-1.125170350074768,
0.7517586350440979,
-0.4037306010723114,
-2.0114314556121826,
-0.7510578632354736,
-0.7839720249176025,
-0.18743056058883667,
-0.806429922580719,
0.9305493235588074,
-0.3090275824069977,
-1.3621046543121338,
0.23374837636947632,
-0.7301928997039795,
0.15354105830192566,
-1.20682954788208,
0.21918237209320068,
0.7741695046424866,
-0.6663519740104675,
0.010459577664732933,
-0.22942262887954712,
-1.2954477071762085,
-0.4542567729949951,
0.35421502590179443,
1.9190130233764648,
-0.6893530488014221,
0.9010438323020935,
1.0174298286437988,
-0.6485719680786133,
0.07209926098585129,
0.36512383818626404,
-0.3600301146507263,
0.8597678542137146,
-1.0942245721817017,
-0.40672335028648376,
1.1945775747299194,
-0.1963655650615692,
-0.6525962948799133,
1.422276496887207,
0.7228307127952576,
-1.0541789531707764,
-0.29842668771743774,
-0.11398077756166458,
-0.8201950192451477,
0.007358584553003311,
-1.6564974784851074,
-0.16238829493522644,
0.3205539286136627,
-1.5120043754577637,
-0.3911077678203583,
-0.26542928814888,
1.2674201726913452,
-0.15231415629386902,
1.4247961044311523,
-0.3512476086616516,
-0.1640930473804474,
-0.3387422263622284,
-0.40289241075515747,
0.1624574065208435,
-0.24393188953399658,
-0.5743499994277954,
0.20968419313430786,
-0.8618156313896179,
0.28591084480285645,
1.4669305086135864,
0.405247300863266,
0.055829890072345734,
0.4247632622718811,
1.0881822109222412,
0.37584739923477173,
-0.10610655695199966,
-0.9314491748809814,
-1.5801955461502075,
2.0728979110717773,
-1.3510072231292725,
1.9190971851348877,
0.9280970692634583,
-0.01638060063123703,
-1.8536323308944702,
-1.7797459363937378,
1.2622857093811035,
1.1322675943374634,
2.3850178718566895,
0.5983707308769226,
0.3652097284793854,
-0.7822715044021606,
-0.6764744520187378,
0.3568000793457031,
-1.0009602308273315,
-0.776178777217865,
0.15406471490859985,
2.458866834640503,
1.8653632402420044,
-0.4052658677101135,
-0.21071499586105347,
-0.9767276048660278,
1.2943328619003296,
-0.17789524793624878,
0.17230814695358276,
2.0344207286834717,
-0.2758161127567291,
-1.0136425495147705,
1.28922438621521,
-2.3319993019104004,
0.20739242434501648,
1.9754586219787598,
0.2913539707660675,
0.09234606474637985,
-1.4558979272842407,
-0.6853840947151184,
-0.30964988470077515,
-0.4018470048904419,
-1.2722218036651611,
0.5882070660591125,
-0.35106465220451355,
-0.8989391922950745,
-1.468153715133667,
0.08645182847976685,
-1.1003351211547852,
-1.6831179857254028,
0.3008197546005249,
1.8562935590744019,
2.058284282684326,
-0.8276886940002441,
1.4686599969863892,
-0.2564944624900818,
0.12914496660232544,
1.2511591911315918,
1.280734658241272,
3.1397719383239746,
1.9108173847198486,
-1.3172569274902344,
0.6759933233261108,
-0.18017688393592834,
-0.4258001148700714,
1.158385992050171,
-1.1835874319076538,
1.2321186065673828,
-0.2185530662536621,
-1.2915462255477905,
-1.2176541090011597,
1.0818428993225098,
0.537748396396637,
0.0018241191282868385,
-0.5493955016136169,
1.2621256113052368,
0.05704815685749054,
1.3211966753005981,
0.5841964483261108,
-0.42946672439575195,
0.5579346418380737,
-0.31566381454467773,
-0.5788748264312744,
1.5240334272384644,
0.11619147658348083,
-1.5039921998977661,
-2.3268651962280273,
-0.21107563376426697,
-0.8288703560829163,
-0.07152561843395233,
-0.6813691258430481,
-1.0261234045028687,
1.5968692302703857,
0.3932027816772461,
-1.3402626514434814,
-0.31095021963119507,
-0.3471270501613617,
-0.5257641077041626,
2.647193431854248,
-1.3507620096206665,
-0.18786710500717163,
-1.0445632934570312,
-0.5228193998336792,
1.6045582294464111,
-1.1588157415390015,
-0.19766658544540405,
-1.0494558811187744,
-0.7045384645462036,
-1.2658872604370117,
-0.5324321985244751,
-0.0479155108332634,
-0.8600704669952393,
0.7449986934661865,
0.11786649376153946,
-1.0582560300827026,
-0.2859264016151428,
-0.8288041353225708,
0.9188543558120728,
-0.10263176262378693,
0.23568886518478394,
1.9272783994674683,
0.3929119110107422,
-0.4199998378753662,
0.7078487277030945,
1.1702520847320557,
0.6506285667419434,
-0.7153061032295227,
0.08211464434862137,
-0.6886588931083679,
0.3374953866004944,
-1.352721095085144,
0.242625892162323,
-2.947669744491577,
0.6663854122161865,
-0.060241684317588806,
-0.14183774590492249,
0.05603239685297012,
-1.273928165435791,
1.099341869354248,
2.6346824169158936,
-1.2184078693389893,
0.49130645394325256,
0.35780367255210876,
1.1716139316558838,
-1.6140259504318237,
0.2746228873729706,
-0.4530866742134094,
2.0986344814300537,
0.16291916370391846,
1.2312239408493042,
-0.5063099265098572,
-2.1851096153259277,
0.6281822323799133,
-1.2621182203292847,
-1.0420916080474854,
0.7760977149009705,
-0.8758456110954285,
0.1185283437371254,
-1.4852166175842285,
-0.18519234657287598,
-0.8446782231330872,
-1.3051602840423584,
0.7349850535392761,
0.12303393334150314,
0.477519690990448,
-0.5700302720069885,
0.3379262387752533,
-2.1332547664642334,
-1.3671977519989014,
-0.21960973739624023,
-0.9530108571052551,
0.4546997845172882,
-0.3795691132545471,
0.6404638886451721,
-0.11197840422391891,
0.03284100815653801,
0.3173099160194397,
1.3263517618179321,
3.410024642944336,
0.3047022819519043,
0.27957507967948914,
-0.13232740759849548,
-0.9928685426712036,
1.3830323219299316,
0.9347313046455383,
-0.1523468792438507,
-0.5147386193275452,
-1.0074955224990845,
1.3474940061569214,
1.9989488124847412,
1.0483850240707397,
0.14368292689323425,
-0.892263650894165,
-0.8589555025100708,
0.043775685131549835,
0.253619521856308,
0.4530801475048065,
0.8689720630645752,
-0.0017251749522984028,
0.1338721513748169,
1.4683458805084229,
1.2209070920944214,
-0.3847697973251343,
0.44881612062454224,
-0.8730672001838684,
-0.48202234506607056,
0.40863025188446045,
0.26073288917541504,
0.09264516085386276,
0.43065810203552246,
-1.0189459323883057,
-0.25639188289642334,
-0.4156920909881592,
-0.92044997215271,
-0.6777133345603943,
-0.4058712124824524,
-0.33680248260498047,
1.527374267578125,
0.1384606957435608,
-0.4806828498840332,
-0.03715265542268753,
-0.7578678131103516,
-0.19048398733139038,
-1.0545687675476074,
0.27136287093162537,
-0.10247626155614853,
-0.04440392553806305,
-0.13496306538581848,
1.797245979309082,
-0.918269693851471,
-2.1589057445526123,
0.20695099234580994,
0.27236828207969666,
-0.34913402795791626,
0.1538999080657959,
1.736923336982727,
0.5249950885772705,
1.4273946285247803,
1.2714805603027344,
0.9647852778434753,
-0.5842516422271729,
-1.291322112083435,
0.7315381169319153,
0.9953421950340271,
-1.3643277883529663,
0.8828673362731934,
-0.17252662777900696,
-0.5362779498100281,
0.7399265170097351,
1.261090874671936,
0.3786359429359436,
-1.9546983242034912,
0.8785434365272522,
-0.8999592661857605,
0.7986251711845398,
0.7000307440757751,
0.78497713804245,
0.20406100153923035,
0.7736015319824219,
-1.337561845779419,
-1.1167480945587158,
-0.7549769282341003,
-0.581165075302124,
1.9502482414245605,
-0.2341776192188263,
0.582581639289856,
-0.1795523762702942,
-1.3168712854385376,
-0.05052325874567032,
0.7289645671844482,
0.285627543926239,
-0.456915020942688,
0.8603059649467468,
-0.6545360088348389,
-1.0800299644470215,
-1.3643860816955566,
-0.4002344608306885,
-0.9323715567588806,
-0.9161311388015747,
1.0393259525299072,
0.8385352492332458,
0.35549092292785645,
1.9189940690994263,
0.5589286684989929,
0.287698894739151,
-2.6533730030059814,
0.9656917452812195,
0.24223628640174866,
-0.041888102889060974,
0.9904767870903015,
0.2810656428337097,
1.0067129135131836,
0.053459521383047104,
0.4840705394744873,
-2.379950761795044,
2.213724374771118,
-0.21270060539245605,
0.700598955154419,
-0.06414929032325745,
-0.15592044591903687,
1.1837730407714844,
0.5067134499549866,
0.6312713027000427,
-1.1167473793029785,
0.7810850143432617,
-0.5088881850242615,
1.146353840827942,
0.8785231709480286,
-0.8814769983291626,
0.00045161042362451553,
1.3759939670562744,
0.4715867340564728,
-0.484519898891449,
-0.9184609055519104,
-0.8509066700935364,
0.9032542705535889,
1.754574179649353,
0.006339543499052525,
-0.05374599248170853,
0.847553551197052,
0.6285113096237183,
-1.2489711046218872,
0.1018867939710617,
-0.6748878359794617,
-0.7014417052268982,
1.6440106630325317,
2.067323923110962,
-0.09730025380849838,
-0.17701050639152527,
-0.6602467894554138,
-1.1980217695236206,
0.6985997557640076,
-0.0563041977584362,
0.13667377829551697,
0.668600857257843,
-0.6956000328063965,
1.1216139793395996,
0.7927143573760986,
0.9366359710693359,
0.10759717971086502,
0.2633359134197235,
0.45739203691482544,
-0.3255831301212311,
-1.1637400388717651,
-0.33867642283439636,
-1.117771863937378,
-2.449435234069824,
0.43720442056655884,
-0.17326071858406067,
-1.4479823112487793,
0.05498771369457245,
-1.028153896331787,
0.8869730830192566,
-0.5477327704429626,
-1.0695128440856934,
-1.4413338899612427,
0.30951014161109924,
-0.1719585359096527,
0.9277945756912231,
-1.6543391942977905,
-0.061999548226594925,
1.1542468070983887,
0.8985455632209778,
-0.5499492883682251,
0.9785533547401428,
0.2361811101436615,
1.0122894048690796,
0.8996036052703857,
-0.3436495363712311,
0.42734813690185547,
0.1774950623512268,
-1.3408703804016113,
0.39949336647987366,
1.1560430526733398,
0.24684008955955505,
1.417822241783142,
-0.5126656293869019,
0.07617376744747162,
0.4069100320339203,
-0.5355775952339172,
-0.45884761214256287,
-0.4270746409893036,
0.6983729004859924,
0.16335022449493408,
-0.9408344030380249,
-0.04788661375641823,
-0.12908697128295898,
-0.2514001429080963,
0.1549096703529358,
-1.4917898178100586,
-0.20102372765541077,
-0.37275606393814087,
-0.5249021053314209,
-1.2359799146652222,
-0.0036465958692133427,
1.4283889532089233,
-0.8852686882019043,
-0.23116788268089294,
0.5685872435569763,
0.3750416338443756,
0.5754827260971069,
0.6924076676368713,
-0.6293405294418335,
-0.32345718145370483,
-0.2273864448070526,
-0.3046448230743408,
0.2843034565448761,
1.2945280075073242,
-0.12014974653720856,
-0.9471759796142578,
0.7070513963699341,
-0.4696679413318634,
0.11960446089506149,
1.9971404075622559,
0.10371246933937073,
-0.8015746474266052,
0.32040125131607056,
-0.7101415395736694,
1.8893803358078003,
1.7062593698501587,
1.3207283020019531,
-0.07055521011352539,
-0.9411520957946777,
0.6222721338272095,
-0.20503532886505127,
-0.40415889024734497,
0.9593555331230164,
0.4474392831325531,
-0.19034934043884277,
-1.4266347885131836,
0.49922338128089905,
1.2010793685913086,
-0.9033405780792236,
-0.7215868234634399,
0.15754541754722595,
-0.8269801735877991,
1.130974292755127,
0.6664682030677795,
0.3582744896411896,
0.2178887128829956,
1.5250163078308105,
0.7466978430747986,
-0.47733861207962036,
0.517210841178894,
0.4682082533836365,
-0.20279932022094727,
-2.166956901550293,
-1.0460331439971924,
0.32231855392456055,
-0.4016675651073456,
-1.5250751972198486,
1.2523373365402222,
-1.208444356918335,
-0.9901939630508423,
0.5535103678703308,
0.052110426127910614,
1.3733371496200562,
0.28060057759284973,
1.6011804342269897,
2.1768038272857666,
0.8945122361183167,
0.315897673368454,
1.3125027418136597,
-0.0761134997010231,
-0.44261619448661804,
1.7911039590835571,
-0.43070194125175476,
0.5466939210891724,
0.997742235660553,
-0.4034568667411804,
-1.0579062700271606,
-0.7143117189407349,
-1.1986886262893677,
-0.6589130759239197,
1.1752582788467407,
0.1106620505452156,
-1.0444000959396362,
0.24126440286636353,
1.5737050771713257,
0.08696682006120682,
-0.24624058604240417,
0.6023737788200378,
0.5128903388977051,
-0.7107585072517395,
-0.07506256550550461,
-0.8915533423423767,
0.5250473618507385,
-0.1567278802394867,
-0.29304566979408264,
0.2539569139480591,
0.4477958083152771,
1.2908748388290405,
0.01991904526948929,
0.11297871172428131,
1.1672859191894531,
-1.3821208477020264,
1.4924982786178589,
-0.5899080634117126,
0.2555021345615387,
-2.517590284347534,
1.419988751411438,
-0.7691554427146912,
1.8921352624893188,
-2.607431411743164,
0.4599393606185913,
-0.6170915365219116,
-0.5568085312843323,
0.3500373959541321,
-0.34223395586013794,
0.15668272972106934,
-0.15733855962753296,
-1.0430700778961182,
-0.06704899668693542,
-0.7129752039909363,
0.5687889456748962,
1.1907875537872314,
1.3469014167785645,
-1.1457886695861816,
-0.28854674100875854,
-1.7611808776855469,
-0.13487973809242249,
-0.7718453407287598,
0.3432959020137787,
-1.9742764234542847,
-0.1084236204624176,
-1.9216166734695435,
-2.392263412475586,
-1.3958255052566528,
-0.7667539119720459,
1.0315945148468018,
0.1789715588092804,
-0.9982573390007019,
1.1881158351898193,
-0.41091644763946533,
-1.8216807842254639,
0.9977366328239441,
-2.212336778640747
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > You can check the imagenet-1k one.
Where can I find the script? Are you referring to https://huggingface.co/docs/datasets/image_process ? Or is there anything more specific? | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 25 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> You can check the imagenet-1k one.
Where can I find the script? Are you referring to https://huggingface.co/docs/datasets/image_process ? Or is there anything more specific? | [
-1.223741888999939,
-0.9847789406776428,
-0.7758535742759705,
1.4617940187454224,
-0.08738827705383301,
-1.294161081314087,
0.05745107680559158,
-0.9999666213989258,
1.6386126279830933,
-0.694317102432251,
0.32002031803131104,
-1.702799677848816,
-0.10135525465011597,
-0.5801669955253601,
-0.7078663110733032,
-0.8580073714256287,
-0.36382120847702026,
-0.8139007091522217,
1.0040076971054077,
2.59135103225708,
1.231323003768921,
-1.3418323993682861,
2.7335779666900635,
0.7526211738586426,
-0.3442954123020172,
-1.0135327577590942,
0.4623164236545563,
0.001451730728149414,
-1.3467305898666382,
-0.5129597187042236,
-0.9673410654067993,
0.018243219703435898,
-0.5506019592285156,
-0.4787133038043976,
0.06247645616531372,
0.4513305127620697,
-0.2276226282119751,
-0.3360656201839447,
-0.652591347694397,
-0.7546300888061523,
0.44718441367149353,
-0.38291627168655396,
0.9577988386154175,
-0.3084211051464081,
1.7920079231262207,
-0.5959457159042358,
0.3417799770832062,
0.6862643361091614,
1.3222984075546265,
0.10384806245565414,
0.02546614781022072,
0.28331395983695984,
0.4127531945705414,
-0.04717344045639038,
0.5559728145599365,
1.19184410572052,
0.6092567443847656,
0.44353005290031433,
0.6084032654762268,
-2.19870662689209,
1.3366092443466187,
-0.957334041595459,
0.3418765962123871,
1.3726478815078735,
-0.9073641300201416,
0.37467360496520996,
-1.719730257987976,
-0.03634367510676384,
0.6515289545059204,
-2.209413528442383,
0.18663132190704346,
-1.3049324750900269,
-0.5267995595932007,
0.9582616090774536,
0.37441959977149963,
-1.2561208009719849,
0.20215857028961182,
-0.5012106895446777,
1.115263819694519,
0.4759443998336792,
1.1390511989593506,
-1.7071402072906494,
-0.018458707258105278,
-0.19195599853992462,
0.09203854203224182,
-1.3012200593948364,
-1.5769487619400024,
0.506435215473175,
0.6962065100669861,
0.6764877438545227,
-0.05062222108244896,
0.9268587827682495,
-0.964773416519165,
0.8457306623458862,
-0.8954071402549744,
-1.6615943908691406,
-1.4374648332595825,
-2.3294849395751953,
-2.312105178833008,
0.7925297617912292,
-0.5302408337593079,
-0.479184627532959,
2.0061676502227783,
-1.0703163146972656,
-1.8034248352050781,
1.084355354309082,
0.30254635214805603,
0.057527437806129456,
2.3923802375793457,
0.2713335454463959,
-0.6918144822120667,
0.431171178817749,
-0.7219013571739197,
0.8710422515869141,
-0.3611895740032196,
1.3328967094421387,
0.47626975178718567,
-1.0432066917419434,
1.5539450645446777,
-0.49942895770072937,
0.5082765817642212,
-0.6885810494422913,
-0.439962774515152,
-0.8017436861991882,
0.33465859293937683,
1.8522299528121948,
-0.392277330160141,
1.6391850709915161,
-0.40679317712783813,
-1.5653871297836304,
-1.630944013595581,
0.757992684841156,
0.4923813045024872,
-0.8476569652557373,
0.1131061539053917,
-0.5155259966850281,
0.12467395514249802,
0.013561316765844822,
1.0910944938659668,
1.2203196287155151,
0.585969090461731,
-0.4371841549873352,
-0.840594470500946,
0.21326382458209991,
-0.026485737413167953,
-0.7053003311157227,
-1.757620930671692,
-0.33559897541999817,
0.2688133716583252,
0.6110768914222717,
-1.2952016592025757,
1.7266978025436401,
0.8342299461364746,
2.0189008712768555,
0.9523652195930481,
-0.3534778952598572,
1.4736799001693726,
0.06977515667676926,
1.8224793672561646,
-0.5769017934799194,
0.672765851020813,
-0.31061500310897827,
-1.108109474182129,
0.7805997133255005,
-0.4543386697769165,
-2.0349411964416504,
-0.8068996071815491,
-0.7991759181022644,
-0.14597050845623016,
-0.8200356364250183,
0.9107791781425476,
-0.25703492760658264,
-1.4054313898086548,
0.21400970220565796,
-0.7605268359184265,
0.17628376185894012,
-1.2253469228744507,
0.16616326570510864,
0.7633056044578552,
-0.6360316276550293,
-0.05364768207073212,
-0.19560419023036957,
-1.3193848133087158,
-0.4302278161048889,
0.3673121929168701,
1.9564305543899536,
-0.6269655823707581,
0.9459452033042908,
1.0083117485046387,
-0.667472243309021,
0.17344120144844055,
0.33464041352272034,
-0.37247714400291443,
0.8749329447746277,
-1.0845608711242676,
-0.33459532260894775,
1.1669831275939941,
-0.1678866297006607,
-0.6956967711448669,
1.4479737281799316,
0.7616356015205383,
-1.0442023277282715,
-0.30005234479904175,
-0.1364460587501526,
-0.770194947719574,
-0.019781604409217834,
-1.6479336023330688,
-0.15389490127563477,
0.28053510189056396,
-1.4271636009216309,
-0.3835282623767853,
-0.25711867213249207,
1.3150885105133057,
-0.1842493712902069,
1.4129546880722046,
-0.32163724303245544,
-0.1574062705039978,
-0.3431783616542816,
-0.420585036277771,
0.19999684393405914,
-0.2694821357727051,
-0.5547395348548889,
0.22919373214244843,
-0.8754701018333435,
0.2797183096408844,
1.4401863813400269,
0.3711256682872772,
0.11980804055929184,
0.3809598684310913,
1.0520148277282715,
0.3510526418685913,
-0.11612962186336517,
-0.9536841511726379,
-1.5939216613769531,
2.0811173915863037,
-1.3176298141479492,
1.940058708190918,
0.9059979319572449,
-0.029306605458259583,
-1.8362653255462646,
-1.838012456893921,
1.2309175729751587,
1.1379374265670776,
2.3857004642486572,
0.5731873512268066,
0.3576870858669281,
-0.7923667430877686,
-0.6955627799034119,
0.3279486894607544,
-1.023477554321289,
-0.748631477355957,
0.13815465569496155,
2.417696475982666,
1.8575509786605835,
-0.4391315281391144,
-0.2472103089094162,
-0.9869674444198608,
1.2448883056640625,
-0.2099950611591339,
0.1369524896144867,
2.0823707580566406,
-0.283234179019928,
-0.9751907587051392,
1.2934595346450806,
-2.343336820602417,
0.20972256362438202,
1.981146216392517,
0.26663076877593994,
0.11081071943044662,
-1.4780601263046265,
-0.7134671807289124,
-0.35393303632736206,
-0.4237253963947296,
-1.2319176197052002,
0.623424768447876,
-0.29554057121276855,
-0.9198998808860779,
-1.4561994075775146,
0.07643533498048782,
-1.0851696729660034,
-1.7301528453826904,
0.295338898897171,
1.8436492681503296,
2.0435805320739746,
-0.8765872716903687,
1.447670817375183,
-0.26875466108322144,
0.07145246863365173,
1.252132773399353,
1.3536045551300049,
3.091982364654541,
1.9066390991210938,
-1.339346170425415,
0.7200880646705627,
-0.18417905271053314,
-0.4118318557739258,
1.185874581336975,
-1.1464972496032715,
1.1985033750534058,
-0.23722387850284576,
-1.2762733697891235,
-1.2447257041931152,
1.1092793941497803,
0.5706499814987183,
-0.01764656975865364,
-0.5758962631225586,
1.269757628440857,
0.04157046973705292,
1.3405365943908691,
0.5993212461471558,
-0.45398426055908203,
0.5545890927314758,
-0.3104012608528137,
-0.539833664894104,
1.5280534029006958,
0.11903458088636398,
-1.5103349685668945,
-2.357370615005493,
-0.2153128832578659,
-0.8561902046203613,
-0.10483149439096451,
-0.671217143535614,
-1.065575361251831,
1.5938310623168945,
0.4153409004211426,
-1.3518495559692383,
-0.3257426917552948,
-0.34841880202293396,
-0.5076191425323486,
2.6553561687469482,
-1.322361707687378,
-0.16097885370254517,
-1.0606950521469116,
-0.4797174036502838,
1.6254469156265259,
-1.1579630374908447,
-0.20958472788333893,
-1.0683594942092896,
-0.7671024799346924,
-1.2882089614868164,
-0.5547791719436646,
-0.04751969128847122,
-0.9040274024009705,
0.6796795129776001,
0.07192149013280869,
-1.0537056922912598,
-0.27350670099258423,
-0.8205239176750183,
0.968696117401123,
-0.08620868623256683,
0.2590448558330536,
1.9382121562957764,
0.3815099596977234,
-0.4300674498081207,
0.7092365622520447,
1.1807185411453247,
0.6379281878471375,
-0.7312334179878235,
0.0847681537270546,
-0.6858207583427429,
0.3130532205104828,
-1.3811163902282715,
0.22840985655784607,
-2.9672889709472656,
0.6965482831001282,
-0.07694660872220993,
-0.12988577783107758,
0.00992660690099001,
-1.274474024772644,
1.1746221780776978,
2.6173110008239746,
-1.208079218864441,
0.4938035309314728,
0.3583056628704071,
1.1439231634140015,
-1.560920000076294,
0.2755811810493469,
-0.42017799615859985,
2.1193013191223145,
0.17921848595142365,
1.2629190683364868,
-0.4613112807273865,
-2.0870094299316406,
0.638968288898468,
-1.2703418731689453,
-0.9688504338264465,
0.8025336265563965,
-0.8438869714736938,
0.14678943157196045,
-1.4970406293869019,
-0.1589818149805069,
-0.8156294226646423,
-1.2985602617263794,
0.7471423745155334,
0.0872703343629837,
0.4860081970691681,
-0.5545221567153931,
0.361653596162796,
-2.150036573410034,
-1.3423445224761963,
-0.2075078785419464,
-0.986716091632843,
0.4743746817111969,
-0.3298127353191376,
0.6025695204734802,
-0.06358157098293304,
0.08661407232284546,
0.32430776953697205,
1.313247799873352,
3.441762685775757,
0.3107436001300812,
0.24346591532230377,
-0.06624700129032135,
-0.9905317425727844,
1.3720983266830444,
0.9370319247245789,
-0.1640358567237854,
-0.5247759819030762,
-0.9835434556007385,
1.364599347114563,
2.0338211059570312,
1.0960696935653687,
0.17258979380130768,
-0.9477274417877197,
-0.9201416373252869,
0.07040488719940186,
0.23761028051376343,
0.44090545177459717,
0.8502868413925171,
0.015111259184777737,
0.13150165975093842,
1.4745408296585083,
1.207398533821106,
-0.3962737023830414,
0.483079731464386,
-0.9508348107337952,
-0.4769863784313202,
0.3235109746456146,
0.2646973431110382,
0.12499585002660751,
0.49014127254486084,
-1.025012731552124,
-0.25758281350135803,
-0.3815341591835022,
-0.8779252767562866,
-0.7030029892921448,
-0.46806952357292175,
-0.3745744526386261,
1.5088282823562622,
0.18516188859939575,
-0.45203667879104614,
0.009463741444051266,
-0.7496983408927917,
-0.16715234518051147,
-1.0770741701126099,
0.2374904900789261,
-0.06707847863435745,
0.0007627829909324646,
-0.1412786841392517,
1.8002071380615234,
-0.8999390006065369,
-2.141235589981079,
0.22317589819431305,
0.3092469274997711,
-0.4353674352169037,
0.13257965445518494,
1.7542967796325684,
0.5483784675598145,
1.4039984941482544,
1.2046334743499756,
0.9865116477012634,
-0.5534551739692688,
-1.2543443441390991,
0.7398127913475037,
0.9703546762466431,
-1.3421484231948853,
0.9221887588500977,
-0.20967048406600952,
-0.48576822876930237,
0.7208899855613708,
1.2731595039367676,
0.3546188473701477,
-1.9185534715652466,
0.8692559003829956,
-0.865057110786438,
0.8081080913543701,
0.624237060546875,
0.7894584536552429,
0.22048786282539368,
0.7539969086647034,
-1.370234727859497,
-1.1141377687454224,
-0.7571207284927368,
-0.5568962097167969,
1.9355897903442383,
-0.24415048956871033,
0.5759159326553345,
-0.20599417388439178,
-1.3069711923599243,
-0.07849854975938797,
0.7845240235328674,
0.2989959418773651,
-0.4419824779033661,
0.9169563055038452,
-0.5912699699401855,
-1.0483864545822144,
-1.319106101989746,
-0.3828210234642029,
-0.8804804086685181,
-0.9137018322944641,
1.0270297527313232,
0.832502543926239,
0.3894803822040558,
1.8826173543930054,
0.508956789970398,
0.32086896896362305,
-2.6497559547424316,
0.978638768196106,
0.21652890741825104,
0.020891327410936356,
0.9803369045257568,
0.244425967335701,
1.0602843761444092,
0.02808602899312973,
0.46232870221138,
-2.3514492511749268,
2.1868674755096436,
-0.15434595942497253,
0.6450603604316711,
-0.03397407382726669,
-0.1692190021276474,
1.1851527690887451,
0.45369797945022583,
0.6553466320037842,
-1.1434653997421265,
0.7809669971466064,
-0.5288417339324951,
1.1088290214538574,
0.8723708391189575,
-0.8894815444946289,
-0.04056181758642197,
1.4253411293029785,
0.46326571702957153,
-0.4343259632587433,
-0.9131588935852051,
-0.8432614803314209,
0.9271597266197205,
1.707993745803833,
0.02469421550631523,
-0.06569255888462067,
0.841000497341156,
0.624436616897583,
-1.238466739654541,
0.07847445458173752,
-0.6827970147132874,
-0.6426185965538025,
1.6822184324264526,
2.1030166149139404,
-0.06716959178447723,
-0.2197076976299286,
-0.6911855340003967,
-1.2298812866210938,
0.7044264674186707,
-0.14185521006584167,
0.1392868161201477,
0.6860551834106445,
-0.6908780336380005,
1.131340742111206,
0.7171836495399475,
0.968562662601471,
0.0641915574669838,
0.2879353165626526,
0.4481864273548126,
-0.33546045422554016,
-1.2052245140075684,
-0.4156825840473175,
-1.1636415719985962,
-2.4495396614074707,
0.4614045321941376,
-0.193510964512825,
-1.4519743919372559,
0.043041784316301346,
-1.0853476524353027,
0.890961766242981,
-0.5886380672454834,
-1.022720456123352,
-1.4091508388519287,
0.3185970187187195,
-0.2360890954732895,
0.9056360721588135,
-1.631848692893982,
-0.08910346776247025,
1.1855101585388184,
0.8655834794044495,
-0.5313518047332764,
0.9775732755661011,
0.22064581513404846,
0.9700254201889038,
0.8652729392051697,
-0.3208234906196594,
0.4663684070110321,
0.19007277488708496,
-1.3416755199432373,
0.4134603440761566,
1.1888619661331177,
0.2908264696598053,
1.4084246158599854,
-0.49405670166015625,
0.13841597735881805,
0.44686925411224365,
-0.5700234770774841,
-0.487449049949646,
-0.3888535499572754,
0.6932732462882996,
0.2507508397102356,
-1.0356197357177734,
-0.069286048412323,
-0.10008424520492554,
-0.24897944927215576,
0.16140519082546234,
-1.4740668535232544,
-0.2201242744922638,
-0.3241121470928192,
-0.5488865971565247,
-1.2404918670654297,
0.005960376001894474,
1.4163181781768799,
-0.9066815376281738,
-0.20634879171848297,
0.5358554124832153,
0.36349016427993774,
0.5980016589164734,
0.7140274047851562,
-0.6169467568397522,
-0.2543058395385742,
-0.29311683773994446,
-0.26097047328948975,
0.32893234491348267,
1.2453007698059082,
-0.09939700365066528,
-0.9377052187919617,
0.7152986526489258,
-0.506693959236145,
0.15263503789901733,
2.033601760864258,
0.06977248191833496,
-0.8127537369728088,
0.317548006772995,
-0.670911967754364,
1.885757565498352,
1.7228258848190308,
1.2852362394332886,
-0.0429551899433136,
-0.9796377420425415,
0.5807890892028809,
-0.18047428131103516,
-0.403886616230011,
0.9982385635375977,
0.40750446915626526,
-0.20781521499156952,
-1.411940336227417,
0.4612646698951721,
1.2487214803695679,
-0.9549611806869507,
-0.7635215520858765,
0.17919711768627167,
-0.8862928152084351,
1.1177232265472412,
0.6553518176078796,
0.31651467084884644,
0.23836398124694824,
1.470015048980713,
0.7379484176635742,
-0.4835323691368103,
0.4692378640174866,
0.460594117641449,
-0.23002584278583527,
-2.124934673309326,
-0.9774177074432373,
0.3074406683444977,
-0.3926538825035095,
-1.5172183513641357,
1.2094224691390991,
-1.2061238288879395,
-0.9925553798675537,
0.5530006885528564,
0.043742835521698,
1.3597692251205444,
0.26016807556152344,
1.6224416494369507,
2.169095516204834,
0.8867713212966919,
0.2631455957889557,
1.2981141805648804,
-0.0389515645802021,
-0.47402501106262207,
1.7569180727005005,
-0.40702831745147705,
0.545315146446228,
0.9671960473060608,
-0.4181849956512451,
-1.080911636352539,
-0.7743310332298279,
-1.1643253564834595,
-0.6865273118019104,
1.2336291074752808,
0.16870546340942383,
-1.051744818687439,
0.20923350751399994,
1.6004787683486938,
0.11360570788383484,
-0.22301118075847626,
0.630645751953125,
0.5308384299278259,
-0.7425878643989563,
-0.04075179249048233,
-0.9301397204399109,
0.5055407285690308,
-0.08700773119926453,
-0.2594442367553711,
0.21489475667476654,
0.4334191381931305,
1.2650448083877563,
-0.000627501867711544,
0.1393522471189499,
1.1339415311813354,
-1.3913702964782715,
1.5560506582260132,
-0.47466033697128296,
0.28819918632507324,
-2.5385525226593018,
1.4057040214538574,
-0.7634057402610779,
1.8947639465332031,
-2.6011886596679688,
0.4357081949710846,
-0.5930169820785522,
-0.5509477853775024,
0.3139454126358032,
-0.38927534222602844,
0.15916019678115845,
-0.13506411015987396,
-1.0463676452636719,
-0.07853013277053833,
-0.7483701705932617,
0.5674099922180176,
1.1764600276947021,
1.3366883993148804,
-1.1561014652252197,
-0.2710407078266144,
-1.7646304368972778,
-0.15233895182609558,
-0.8161829710006714,
0.3529471755027771,
-1.9404455423355103,
-0.07009894400835037,
-1.9111285209655762,
-2.390174150466919,
-1.432883381843567,
-0.7373559474945068,
0.9947720766067505,
0.19341392815113068,
-0.9898518919944763,
1.109117031097412,
-0.4000522494316101,
-1.8300082683563232,
1.0026862621307373,
-2.2344374656677246
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | Update: started working on it here: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2.
I am facing an issue and I have detailed it here: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/discussions/1
Edit: The issue is gone.
However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
@lhoestq
| ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 57 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
Update: started working on it here: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2.
I am facing an issue and I have detailed it here: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/discussions/1
Edit: The issue is gone.
However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
@lhoestq
| [
-1.259260654449463,
-0.9667745232582092,
-0.7338662147521973,
1.4255297183990479,
-0.06738032400608063,
-1.3016494512557983,
0.034929826855659485,
-0.9852809906005859,
1.624879240989685,
-0.6701973080635071,
0.2786862850189209,
-1.6788406372070312,
-0.14117608964443207,
-0.567862331867218,
-0.6709458827972412,
-0.8339583873748779,
-0.3794788122177124,
-0.8360317349433899,
0.9959034323692322,
2.5556063652038574,
1.2423015832901,
-1.3414429426193237,
2.779399871826172,
0.7658945322036743,
-0.320769727230072,
-1.0345791578292847,
0.5054100155830383,
-0.01644774340093136,
-1.3672778606414795,
-0.5140618681907654,
-0.9429689645767212,
0.03469982370734215,
-0.5255764722824097,
-0.4638727605342865,
0.07188145816326141,
0.46585193276405334,
-0.19973930716514587,
-0.3246569037437439,
-0.6957944631576538,
-0.715970516204834,
0.44862642884254456,
-0.33931779861450195,
0.9573314785957336,
-0.301682710647583,
1.7537404298782349,
-0.5429636836051941,
0.33528268337249756,
0.6974438428878784,
1.3543020486831665,
0.09024862945079803,
0.07738832384347916,
0.2619573175907135,
0.4367031753063202,
0.003969274461269379,
0.549272894859314,
1.2070690393447876,
0.6136252284049988,
0.4219813048839569,
0.6220090985298157,
-2.215698719024658,
1.304227590560913,
-0.9066708087921143,
0.35675501823425293,
1.3499817848205566,
-0.8706533908843994,
0.3437739908695221,
-1.7610023021697998,
-0.0076576946303248405,
0.627215564250946,
-2.2131006717681885,
0.17699606716632843,
-1.3217148780822754,
-0.532781183719635,
0.9363352060317993,
0.33601585030555725,
-1.2262001037597656,
0.240810364484787,
-0.5237146615982056,
1.1293487548828125,
0.5234553813934326,
1.15385103225708,
-1.6824352741241455,
-0.03871864080429077,
-0.17434784770011902,
0.10772810131311417,
-1.2686487436294556,
-1.6106523275375366,
0.5111192464828491,
0.7081683874130249,
0.7217418551445007,
-0.09419157356023788,
0.9334069490432739,
-0.9641178846359253,
0.8319762349128723,
-0.9102299213409424,
-1.6692003011703491,
-1.435610294342041,
-2.3161232471466064,
-2.3049888610839844,
0.7847444415092468,
-0.5507012605667114,
-0.45118603110313416,
1.9827730655670166,
-1.0835696458816528,
-1.816118597984314,
1.045682430267334,
0.32751983404159546,
0.11123958975076675,
2.359341621398926,
0.25054481625556946,
-0.7054267525672913,
0.4267082214355469,
-0.6869441866874695,
0.849237859249115,
-0.3018965721130371,
1.3016711473464966,
0.48674020171165466,
-1.0062865018844604,
1.5928164720535278,
-0.4765198826789856,
0.547153115272522,
-0.7183640599250793,
-0.4454582929611206,
-0.7942095994949341,
0.32521161437034607,
1.8367962837219238,
-0.4063898026943207,
1.6322343349456787,
-0.4170212745666504,
-1.5844203233718872,
-1.6027088165283203,
0.7496960759162903,
0.5107871294021606,
-0.8278891444206238,
0.0744311586022377,
-0.5480139851570129,
0.12511305510997772,
-0.003718612715601921,
1.0865479707717896,
1.1961427927017212,
0.6119834184646606,
-0.44214922189712524,
-0.8100005388259888,
0.20940369367599487,
0.005512570030987263,
-0.7254188060760498,
-1.7768853902816772,
-0.3245772421360016,
0.2966708838939667,
0.6305040717124939,
-1.267706274986267,
1.7435057163238525,
0.8142489194869995,
2.0511891841888428,
0.941677451133728,
-0.3672257363796234,
1.4624100923538208,
0.07214240729808807,
1.8104429244995117,
-0.58441162109375,
0.6212723851203918,
-0.2827754318714142,
-1.0989099740982056,
0.8188371658325195,
-0.42902714014053345,
-2.0228002071380615,
-0.800883412361145,
-0.7940351963043213,
-0.16244840621948242,
-0.7868729829788208,
0.8851630091667175,
-0.2932327687740326,
-1.3993028402328491,
0.13277408480644226,
-0.7393556237220764,
0.19155894219875336,
-1.1958959102630615,
0.1382163166999817,
0.7725752592086792,
-0.6656030416488647,
-0.05278533324599266,
-0.16767922043800354,
-1.3118793964385986,
-0.47507330775260925,
0.40180864930152893,
1.909425139427185,
-0.633557140827179,
0.8991137742996216,
1.0386266708374023,
-0.6734764575958252,
0.2158837914466858,
0.2967747449874878,
-0.3562564551830292,
0.8540191054344177,
-1.0864330530166626,
-0.352145254611969,
1.20942223072052,
-0.165671706199646,
-0.715445876121521,
1.4626215696334839,
0.7760986685752869,
-1.0856378078460693,
-0.3061714470386505,
-0.11160918325185776,
-0.7987818121910095,
-0.04090157523751259,
-1.6290472745895386,
-0.17960608005523682,
0.2900567054748535,
-1.4378101825714111,
-0.4008178114891052,
-0.28605541586875916,
1.3151065111160278,
-0.13827276229858398,
1.421840786933899,
-0.3211708962917328,
-0.1648590862751007,
-0.3292994797229767,
-0.4397330582141876,
0.17019687592983246,
-0.2761935889720917,
-0.5739951133728027,
0.18973861634731293,
-0.9353668093681335,
0.3048429787158966,
1.482039213180542,
0.37293851375579834,
0.10052607208490372,
0.4021148383617401,
1.1199568510055542,
0.36806315183639526,
-0.11068246513605118,
-0.9460979700088501,
-1.5820680856704712,
2.0720937252044678,
-1.3360142707824707,
1.9049853086471558,
0.8661854267120361,
-0.01712982729077339,
-1.8500761985778809,
-1.8361178636550903,
1.228999376296997,
1.1055717468261719,
2.4150540828704834,
0.5527498126029968,
0.3125931918621063,
-0.7912899255752563,
-0.7054767608642578,
0.32222047448158264,
-0.9908120632171631,
-0.7080089449882507,
0.11434447020292282,
2.4474470615386963,
1.93458890914917,
-0.482972115278244,
-0.2781035602092743,
-0.930043637752533,
1.2355509996414185,
-0.2223479151725769,
0.18968725204467773,
2.087981700897217,
-0.2782435119152069,
-0.9165786504745483,
1.3308948278427124,
-2.3605310916900635,
0.27031344175338745,
2.002507209777832,
0.26431798934936523,
0.14033156633377075,
-1.4689738750457764,
-0.7081611156463623,
-0.3443433940410614,
-0.4574543535709381,
-1.2568981647491455,
0.6472864151000977,
-0.3461807668209076,
-0.9712283611297607,
-1.4015543460845947,
0.08105972409248352,
-1.087776780128479,
-1.7581164836883545,
0.3373665511608124,
1.8656805753707886,
2.045797824859619,
-0.8703423738479614,
1.426344871520996,
-0.2536858320236206,
0.08216403424739838,
1.2996585369110107,
1.3682070970535278,
3.1085448265075684,
1.8738685846328735,
-1.3464184999465942,
0.7511647939682007,
-0.22030718624591827,
-0.43031829595565796,
1.1692650318145752,
-1.169684648513794,
1.1506097316741943,
-0.29685941338539124,
-1.2922122478485107,
-1.2211910486221313,
1.1394851207733154,
0.5689703822135925,
0.028233647346496582,
-0.5877813696861267,
1.2674908638000488,
0.03878287225961685,
1.3213640451431274,
0.6075114607810974,
-0.4974817633628845,
0.5411056876182556,
-0.2807764708995819,
-0.5637144446372986,
1.4861980676651,
0.10737872868776321,
-1.5389562845230103,
-2.31988787651062,
-0.21360592544078827,
-0.8469252586364746,
-0.10409247130155563,
-0.6538088917732239,
-1.0458506345748901,
1.6025582551956177,
0.4074110984802246,
-1.3504480123519897,
-0.30827340483665466,
-0.3417775630950928,
-0.4779559373855591,
2.640160083770752,
-1.2842259407043457,
-0.1621476709842682,
-1.0749160051345825,
-0.4537775218486786,
1.6785773038864136,
-1.128225326538086,
-0.20171181857585907,
-1.074272871017456,
-0.7619284391403198,
-1.293479084968567,
-0.5279453992843628,
-0.00692787067964673,
-0.8947030305862427,
0.7011586427688599,
0.03650524094700813,
-1.0368807315826416,
-0.23833662271499634,
-0.8126767873764038,
1.0447144508361816,
-0.112611323595047,
0.21657055616378784,
1.9554136991500854,
0.39074525237083435,
-0.40644869208335876,
0.7057958841323853,
1.1818878650665283,
0.6338230967521667,
-0.7565352320671082,
0.08826496452093124,
-0.6787749528884888,
0.34725064039230347,
-1.4566614627838135,
0.21381402015686035,
-2.954425573348999,
0.7317622900009155,
-0.07521425932645798,
-0.1203048899769783,
0.0020860927179455757,
-1.3056836128234863,
1.1297023296356201,
2.6323282718658447,
-1.2657970190048218,
0.4787061810493469,
0.41036197543144226,
1.140652060508728,
-1.5343225002288818,
0.27193114161491394,
-0.45191824436187744,
2.080622911453247,
0.16998091340065002,
1.2733484506607056,
-0.48104652762413025,
-2.123359203338623,
0.6122675538063049,
-1.2614589929580688,
-0.921320378780365,
0.801884114742279,
-0.8832560777664185,
0.1967696100473404,
-1.5461772680282593,
-0.14483389258384705,
-0.8624331951141357,
-1.2960295677185059,
0.7550758719444275,
0.1215306743979454,
0.42591792345046997,
-0.5589969158172607,
0.3670686185359955,
-2.088353157043457,
-1.3430672883987427,
-0.20213428139686584,
-0.9974488615989685,
0.5076068639755249,
-0.35163989663124084,
0.5651484727859497,
-0.02284366637468338,
0.043777287006378174,
0.2995286285877228,
1.2971001863479614,
3.4382688999176025,
0.286677747964859,
0.21094991266727448,
-0.09737330675125122,
-1.0359774827957153,
1.3787389993667603,
0.9576797485351562,
-0.1550433486700058,
-0.5050424933433533,
-0.9645272493362427,
1.3433443307876587,
2.0470833778381348,
1.1173197031021118,
0.1253288835287094,
-0.9668300747871399,
-0.9162970781326294,
0.09336192160844803,
0.24774236977100372,
0.472505658864975,
0.8776602745056152,
0.003607753664255142,
0.11348240822553635,
1.4466460943222046,
1.173280119895935,
-0.3356489837169647,
0.46215081214904785,
-0.9772089123725891,
-0.45662540197372437,
0.35680311918258667,
0.2584248483181,
0.16894087195396423,
0.5304879546165466,
-1.0771340131759644,
-0.2699280381202698,
-0.3788493871688843,
-0.8753801584243774,
-0.6807507276535034,
-0.46891337633132935,
-0.35418301820755005,
1.4582152366638184,
0.1773204803466797,
-0.49396848678588867,
0.051046643406152725,
-0.7530791759490967,
-0.21197761595249176,
-1.0514026880264282,
0.2765621244907379,
-0.09545274823904037,
0.007963701151311398,
-0.17631618678569794,
1.7129673957824707,
-0.9218445420265198,
-2.1402716636657715,
0.21805527806282043,
0.29900476336479187,
-0.4246874451637268,
0.1291712075471878,
1.7293933629989624,
0.5372786521911621,
1.3902186155319214,
1.225007176399231,
0.9773847460746765,
-0.5543962121009827,
-1.241576075553894,
0.7294760942459106,
0.982143223285675,
-1.345443844795227,
0.9470832347869873,
-0.22064882516860962,
-0.549089789390564,
0.7655243277549744,
1.3033337593078613,
0.32158204913139343,
-1.9599319696426392,
0.8603418469429016,
-0.864885151386261,
0.8033375144004822,
0.645723283290863,
0.8077296614646912,
0.20995986461639404,
0.7795224785804749,
-1.36031973361969,
-1.1430599689483643,
-0.7518666386604309,
-0.5955832600593567,
1.9261332750320435,
-0.23537442088127136,
0.5767409205436707,
-0.1663028597831726,
-1.2745839357376099,
-0.0884549617767334,
0.787944495677948,
0.26969408988952637,
-0.46896806359291077,
0.9060635566711426,
-0.6142792701721191,
-0.9983425736427307,
-1.2634937763214111,
-0.39117881655693054,
-0.8817703723907471,
-0.9263303875923157,
1.0254465341567993,
0.8482390642166138,
0.43138909339904785,
1.888573408126831,
0.5422468185424805,
0.3438087999820709,
-2.6428654193878174,
0.9690499305725098,
0.21265895664691925,
0.033149901777505875,
0.9832007884979248,
0.21192261576652527,
1.046216368675232,
0.05719038099050522,
0.5312086343765259,
-2.3403632640838623,
2.1496176719665527,
-0.15586784482002258,
0.6117082238197327,
-0.04387979209423065,
-0.20365522801876068,
1.1826128959655762,
0.46272581815719604,
0.6550947427749634,
-1.1535723209381104,
0.8095968961715698,
-0.49265170097351074,
1.0582973957061768,
0.8202427625656128,
-0.8930056691169739,
-0.00240809703245759,
1.4237169027328491,
0.47864091396331787,
-0.4319990873336792,
-0.952976644039154,
-0.7984915375709534,
0.9409736394882202,
1.668119192123413,
0.02299373969435692,
-0.09468516707420349,
0.8676524758338928,
0.652820348739624,
-1.2109473943710327,
0.07768146693706512,
-0.6329383850097656,
-0.5834900736808777,
1.684394121170044,
2.084167957305908,
-0.07191193848848343,
-0.15020082890987396,
-0.6956496834754944,
-1.1833733320236206,
0.6501569747924805,
-0.13210532069206238,
0.10011569410562515,
0.6739622354507446,
-0.7136470079421997,
1.1478666067123413,
0.6374567151069641,
0.9615963101387024,
0.017889708280563354,
0.30536898970603943,
0.4370497465133667,
-0.3506491780281067,
-1.2433685064315796,
-0.457183301448822,
-1.1417760848999023,
-2.4401233196258545,
0.43864887952804565,
-0.18988226354122162,
-1.460611343383789,
0.06061258167028427,
-1.0973339080810547,
0.8771900534629822,
-0.6406817436218262,
-1.0378681421279907,
-1.3738889694213867,
0.3674481511116028,
-0.22183725237846375,
0.8904736638069153,
-1.6641594171524048,
-0.08186613023281097,
1.1917625665664673,
0.857727587223053,
-0.5279381275177002,
0.9596854448318481,
0.2543470859527588,
1.000168800354004,
0.8495123982429504,
-0.3199562132358551,
0.47369325160980225,
0.18544647097587585,
-1.3728538751602173,
0.3942328691482544,
1.168215036392212,
0.28305450081825256,
1.4299085140228271,
-0.4751478433609009,
0.1473402976989746,
0.4811280369758606,
-0.6399233341217041,
-0.4851621687412262,
-0.39759138226509094,
0.6963322162628174,
0.23285889625549316,
-1.0462419986724854,
-0.12254607677459717,
-0.10376108437776566,
-0.27761024236679077,
0.21027621626853943,
-1.4916390180587769,
-0.26061803102493286,
-0.34255480766296387,
-0.493753582239151,
-1.25506591796875,
0.05004490911960602,
1.403821587562561,
-0.896133542060852,
-0.2476496696472168,
0.555529773235321,
0.34647807478904724,
0.5944305658340454,
0.6794853806495667,
-0.6375845074653625,
-0.2172621637582779,
-0.2888762354850769,
-0.28218886256217957,
0.30024152994155884,
1.2340484857559204,
-0.08588769286870956,
-0.9444520473480225,
0.7317004799842834,
-0.5392600297927856,
0.1346338540315628,
2.050025224685669,
0.044562675058841705,
-0.7817350625991821,
0.34337615966796875,
-0.7307739853858948,
1.8144577741622925,
1.7165085077285767,
1.2949546575546265,
-0.07081355899572372,
-0.916505753993988,
0.5470921993255615,
-0.19356243312358856,
-0.3661440312862396,
0.9807111024856567,
0.396238774061203,
-0.2121644765138626,
-1.3968992233276367,
0.45932304859161377,
1.250105619430542,
-0.9555959701538086,
-0.7379854917526245,
0.16209331154823303,
-0.8989975452423096,
1.146409034729004,
0.653965950012207,
0.27217477560043335,
0.22727930545806885,
1.466325044631958,
0.7214677929878235,
-0.4312683939933777,
0.4227701425552368,
0.4716457724571228,
-0.20545370876789093,
-2.115617513656616,
-0.9488782286643982,
0.3232104182243347,
-0.38289475440979004,
-1.56240713596344,
1.1949341297149658,
-1.2276681661605835,
-1.0085928440093994,
0.541226863861084,
0.06847517937421799,
1.3550196886062622,
0.30576857924461365,
1.6315330266952515,
2.1936593055725098,
0.8843145370483398,
0.2645958662033081,
1.2940685749053955,
-0.029506158083677292,
-0.46629080176353455,
1.7787827253341675,
-0.4260970652103424,
0.5793103575706482,
0.9639117121696472,
-0.4255710542201996,
-1.108642339706421,
-0.7650730013847351,
-1.2018994092941284,
-0.6636789441108704,
1.2464923858642578,
0.14694789052009583,
-1.0836799144744873,
0.21424545347690582,
1.5906836986541748,
0.12818434834480286,
-0.20205046236515045,
0.6584786772727966,
0.54183429479599,
-0.7500012516975403,
-0.0725388377904892,
-0.8768140077590942,
0.5003456473350525,
-0.07821512967348099,
-0.2877092957496643,
0.22972583770751953,
0.4808489680290222,
1.287532925605774,
-0.002841754350811243,
0.13426074385643005,
1.15367591381073,
-1.3592642545700073,
1.5769929885864258,
-0.5322529077529907,
0.2742534279823303,
-2.561123847961426,
1.394595742225647,
-0.786714494228363,
1.8987749814987183,
-2.5692224502563477,
0.45719432830810547,
-0.5982873439788818,
-0.5651147365570068,
0.3217633068561554,
-0.3885599672794342,
0.12490978091955185,
-0.12275024503469467,
-1.0076487064361572,
-0.04640209674835205,
-0.7590153813362122,
0.5869313478469849,
1.2065589427947998,
1.358937382698059,
-1.1590665578842163,
-0.3051152229309082,
-1.7913979291915894,
-0.20914404094219208,
-0.8680887818336487,
0.36264073848724365,
-1.9424396753311157,
-0.02386961691081524,
-1.9116613864898682,
-2.4140875339508057,
-1.4206457138061523,
-0.7611745595932007,
0.9741458296775818,
0.21621011197566986,
-0.9745884537696838,
1.128340244293213,
-0.4314171075820923,
-1.7970393896102905,
0.9897991418838501,
-2.2402524948120117
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | A Colab Notebook demonstrating the dataset loading part:
https://colab.research.google.com/gist/sayakpaul/aa0958c8d4ad8518d52a78f28044d871/scratchpad.ipynb
@osanseviero @lhoestq
I will work on a notebook to work with the dataset including data visualization. | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 25 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
A Colab Notebook demonstrating the dataset loading part:
https://colab.research.google.com/gist/sayakpaul/aa0958c8d4ad8518d52a78f28044d871/scratchpad.ipynb
@osanseviero @lhoestq
I will work on a notebook to work with the dataset including data visualization. | [
-1.2391453981399536,
-0.982610285282135,
-0.7549592852592468,
1.4493565559387207,
-0.10115392506122589,
-1.2454036474227905,
0.0454426109790802,
-1.018690586090088,
1.6505067348480225,
-0.6742739081382751,
0.30427923798561096,
-1.6889703273773193,
-0.10531026870012283,
-0.5792118310928345,
-0.6938631534576416,
-0.8583341240882874,
-0.35585445165634155,
-0.814244270324707,
1.0163205862045288,
2.5920698642730713,
1.240590214729309,
-1.3464932441711426,
2.766991376876831,
0.7466093897819519,
-0.3086743652820587,
-1.0187817811965942,
0.478039413690567,
-0.018770214170217514,
-1.3441474437713623,
-0.5146195888519287,
-0.9737315773963928,
-0.00040875934064388275,
-0.5533741116523743,
-0.48703351616859436,
0.06819416582584381,
0.418131947517395,
-0.22120364010334015,
-0.3231625258922577,
-0.6496371626853943,
-0.7305716276168823,
0.4569433331489563,
-0.34261608123779297,
0.9367779493331909,
-0.28346192836761475,
1.7954699993133545,
-0.594970166683197,
0.34397953748703003,
0.648780107498169,
1.3789857625961304,
0.1250830441713333,
0.01017353031784296,
0.2943670153617859,
0.42045241594314575,
-0.02500920370221138,
0.524810254573822,
1.1789424419403076,
0.6065099239349365,
0.418984979391098,
0.5878734588623047,
-2.188173532485962,
1.330116629600525,
-0.9392192363739014,
0.3231099843978882,
1.3607981204986572,
-0.9119226932525635,
0.35614803433418274,
-1.7221437692642212,
-0.05672810226678848,
0.6084010004997253,
-2.1998648643493652,
0.18145962059497833,
-1.3465317487716675,
-0.5337584018707275,
0.9451649785041809,
0.34977447986602783,
-1.2677892446517944,
0.21298211812973022,
-0.5077798962593079,
1.1100504398345947,
0.49018868803977966,
1.1707026958465576,
-1.7290676832199097,
-0.06345280259847641,
-0.22549836337566376,
0.12531185150146484,
-1.2757501602172852,
-1.5775079727172852,
0.5180045366287231,
0.6718363165855408,
0.6718496680259705,
-0.04784982651472092,
0.9060302376747131,
-0.9708272218704224,
0.8412715196609497,
-0.9560675621032715,
-1.6403731107711792,
-1.4146480560302734,
-2.2949557304382324,
-2.317830801010132,
0.7966358661651611,
-0.5017781257629395,
-0.45526158809661865,
1.9987404346466064,
-1.0810868740081787,
-1.8115869760513306,
1.074263334274292,
0.3010876178741455,
0.029908709228038788,
2.397695541381836,
0.25245606899261475,
-0.6837244629859924,
0.432300329208374,
-0.73863285779953,
0.8409599661827087,
-0.3507760167121887,
1.3679801225662231,
0.47619712352752686,
-1.0081920623779297,
1.5813100337982178,
-0.4488140344619751,
0.5326076149940491,
-0.7018606662750244,
-0.4408707320690155,
-0.7944192886352539,
0.33759579062461853,
1.9029030799865723,
-0.3986273407936096,
1.6576241254806519,
-0.40823066234588623,
-1.5906585454940796,
-1.6165629625320435,
0.7880880832672119,
0.5252264142036438,
-0.8335941433906555,
0.09236782044172287,
-0.5051397085189819,
0.11003506183624268,
0.02960016205906868,
1.0547739267349243,
1.2224653959274292,
0.6497175693511963,
-0.4452963173389435,
-0.8523052334785461,
0.1714620143175125,
-0.019936133176088333,
-0.7187815308570862,
-1.7702863216400146,
-0.3510933816432953,
0.23886924982070923,
0.650154173374176,
-1.3003020286560059,
1.6952812671661377,
0.8351163268089294,
2.007040023803711,
0.9568485021591187,
-0.3455984890460968,
1.500083088874817,
0.08931321650743484,
1.8196784257888794,
-0.5537312626838684,
0.670747697353363,
-0.3254201412200928,
-1.1105133295059204,
0.7855380177497864,
-0.4328368902206421,
-2.0193796157836914,
-0.8217235803604126,
-0.7792160511016846,
-0.15840256214141846,
-0.8287577629089355,
0.899690568447113,
-0.2900335490703583,
-1.4232025146484375,
0.2276124209165573,
-0.7670135498046875,
0.19521568715572357,
-1.2103550434112549,
0.1954614818096161,
0.7438809871673584,
-0.6062957644462585,
-0.00432348670437932,
-0.21141217648983002,
-1.3018295764923096,
-0.46473854780197144,
0.3620604872703552,
1.9258466958999634,
-0.6575374007225037,
0.910374104976654,
1.0359607934951782,
-0.6607040166854858,
0.16703082621097565,
0.3351399302482605,
-0.3596070408821106,
0.8576609492301941,
-1.0917150974273682,
-0.3020859956741333,
1.1651623249053955,
-0.1459232121706009,
-0.6303682327270508,
1.4407670497894287,
0.7900582551956177,
-1.0645129680633545,
-0.29106253385543823,
-0.11620959639549255,
-0.7776528596878052,
-0.031275130808353424,
-1.6456485986709595,
-0.17636968195438385,
0.2948622703552246,
-1.4608162641525269,
-0.393868625164032,
-0.277553915977478,
1.3364677429199219,
-0.14678968489170074,
1.4144560098648071,
-0.316417396068573,
-0.18408912420272827,
-0.360989511013031,
-0.40168413519859314,
0.18758392333984375,
-0.27850228548049927,
-0.5552870035171509,
0.23626209795475006,
-0.8473755121231079,
0.2989204227924347,
1.4776406288146973,
0.38906463980674744,
0.08958129584789276,
0.37925997376441956,
1.0818884372711182,
0.3470000922679901,
-0.10467323660850525,
-0.9506045579910278,
-1.6058741807937622,
2.0486621856689453,
-1.3488247394561768,
1.9305812120437622,
0.8975606560707092,
-0.008348117582499981,
-1.8508461713790894,
-1.8716790676116943,
1.2534496784210205,
1.1483582258224487,
2.3867738246917725,
0.5632060170173645,
0.3575502336025238,
-0.791435182094574,
-0.6670366525650024,
0.3238108456134796,
-1.0137203931808472,
-0.7440564036369324,
0.14551454782485962,
2.4393837451934814,
1.8626439571380615,
-0.47250378131866455,
-0.23601925373077393,
-1.001129150390625,
1.2458733320236206,
-0.1898215115070343,
0.14668120443820953,
2.0771729946136475,
-0.2690926492214203,
-1.003900170326233,
1.2894278764724731,
-2.3304665088653564,
0.19850772619247437,
1.9925408363342285,
0.2684999108314514,
0.11501595377922058,
-1.4727407693862915,
-0.73626708984375,
-0.33651378750801086,
-0.4789793789386749,
-1.2243839502334595,
0.6114461421966553,
-0.30174627900123596,
-0.9148300886154175,
-1.482858657836914,
0.08913422375917435,
-1.1017261743545532,
-1.7282804250717163,
0.28656044602394104,
1.8705509901046753,
2.0112571716308594,
-0.8742661476135254,
1.438389778137207,
-0.24542443454265594,
0.08998999744653702,
1.279106616973877,
1.3292120695114136,
3.0889892578125,
1.874929428100586,
-1.331733226776123,
0.7492156624794006,
-0.1804988980293274,
-0.41323745250701904,
1.165604591369629,
-1.1678047180175781,
1.1984950304031372,
-0.2796690762042999,
-1.2504724264144897,
-1.239293098449707,
1.081176519393921,
0.5554192662239075,
0.005126728676259518,
-0.5196114182472229,
1.252189040184021,
0.06401880830526352,
1.3325433731079102,
0.5805239081382751,
-0.42487359046936035,
0.5764919519424438,
-0.3014012277126312,
-0.5395145416259766,
1.507728099822998,
0.11969859153032303,
-1.5139411687850952,
-2.372154951095581,
-0.21766532957553864,
-0.8462225794792175,
-0.10625295341014862,
-0.6349693536758423,
-1.0603150129318237,
1.5866373777389526,
0.42979907989501953,
-1.3395274877548218,
-0.2984912097454071,
-0.34531769156455994,
-0.5013545155525208,
2.649942398071289,
-1.3156794309616089,
-0.1850699633359909,
-1.0369083881378174,
-0.49541911482810974,
1.62129545211792,
-1.1355351209640503,
-0.1991862803697586,
-1.0433433055877686,
-0.7094963788986206,
-1.2639864683151245,
-0.5343431830406189,
-0.056102994829416275,
-0.9072249531745911,
0.6991294026374817,
0.0753006711602211,
-1.0544037818908691,
-0.2545744478702545,
-0.8184385895729065,
0.9822356700897217,
-0.044769544154405594,
0.2304302603006363,
1.9512227773666382,
0.3943757116794586,
-0.4184628427028656,
0.7184014916419983,
1.181579351425171,
0.6026692390441895,
-0.7383639812469482,
0.08915692567825317,
-0.7081544399261475,
0.2995350956916809,
-1.387162446975708,
0.2324024885892868,
-2.928387403488159,
0.694866955280304,
-0.07628538459539413,
-0.1439049392938614,
-0.003243118990212679,
-1.3036597967147827,
1.1854009628295898,
2.645646810531616,
-1.2227238416671753,
0.48478078842163086,
0.3527008295059204,
1.1712501049041748,
-1.546605110168457,
0.27025389671325684,
-0.42142951488494873,
2.1114397048950195,
0.22869542241096497,
1.2670038938522339,
-0.4708032011985779,
-2.1273930072784424,
0.617334246635437,
-1.2870559692382812,
-1.0346007347106934,
0.7753622531890869,
-0.862521231174469,
0.1589505672454834,
-1.5212241411209106,
-0.14174340665340424,
-0.8068639039993286,
-1.2812985181808472,
0.7091089487075806,
0.09933421015739441,
0.4646250605583191,
-0.5802361369132996,
0.38307321071624756,
-2.108353853225708,
-1.3548160791397095,
-0.17757470905780792,
-0.9900616407394409,
0.4532019793987274,
-0.35778844356536865,
0.6030883193016052,
-0.08862246572971344,
0.0719912052154541,
0.34447354078292847,
1.3387004137039185,
3.4323959350585938,
0.3121693730354309,
0.25490424036979675,
-0.10585526376962662,
-0.9907940626144409,
1.3802493810653687,
0.9497637748718262,
-0.17514406144618988,
-0.5116267800331116,
-0.9762130975723267,
1.3299181461334229,
2.0370333194732666,
1.108174443244934,
0.1287766695022583,
-0.8946021199226379,
-0.9238566756248474,
0.06591902673244476,
0.25031229853630066,
0.42198577523231506,
0.8659065365791321,
0.005884891375899315,
0.11802492290735245,
1.4548505544662476,
1.186497688293457,
-0.42662203311920166,
0.472039133310318,
-0.9503768682479858,
-0.48049500584602356,
0.3379189670085907,
0.2516845166683197,
0.12003713101148605,
0.47610267996788025,
-1.0454750061035156,
-0.26497024297714233,
-0.40693333745002747,
-0.8976638317108154,
-0.7103523015975952,
-0.44358956813812256,
-0.3545568287372589,
1.513932228088379,
0.18411436676979065,
-0.4717561602592468,
-0.000751059502363205,
-0.7284809947013855,
-0.1655956655740738,
-1.0716335773468018,
0.2681119740009308,
-0.08277323096990585,
-0.015109885483980179,
-0.11040759831666946,
1.7734829187393188,
-0.9533312320709229,
-2.132418632507324,
0.22230878472328186,
0.29197925329208374,
-0.41280436515808105,
0.15920275449752808,
1.7255580425262451,
0.5527774095535278,
1.4210749864578247,
1.2356185913085938,
0.9676628112792969,
-0.5718003511428833,
-1.274770736694336,
0.7589238286018372,
0.9384142756462097,
-1.3479028940200806,
0.8813993334770203,
-0.18272915482521057,
-0.5191253423690796,
0.7157511115074158,
1.249877691268921,
0.37506669759750366,
-1.9404802322387695,
0.8290327191352844,
-0.8556408286094666,
0.7615727186203003,
0.6316478848457336,
0.7743676900863647,
0.24051228165626526,
0.7424769997596741,
-1.340097427368164,
-1.115099549293518,
-0.7648618221282959,
-0.5819823145866394,
1.9346802234649658,
-0.23426099121570587,
0.5766953825950623,
-0.18559038639068604,
-1.2791284322738647,
-0.0710446909070015,
0.7632067203521729,
0.27814561128616333,
-0.4739530384540558,
0.8887028098106384,
-0.6086850762367249,
-1.0479403734207153,
-1.2942692041397095,
-0.42470431327819824,
-0.90883868932724,
-0.9225127100944519,
1.0208464860916138,
0.8336843848228455,
0.3773044943809509,
1.914678692817688,
0.5288688540458679,
0.3386573791503906,
-2.6203932762145996,
0.9721331000328064,
0.26741161942481995,
0.017490766942501068,
0.9923198223114014,
0.2374180555343628,
1.0227383375167847,
0.053594399243593216,
0.493553102016449,
-2.354097366333008,
2.2213516235351562,
-0.17404523491859436,
0.6581212878227234,
-0.04054363816976547,
-0.1813509613275528,
1.1861251592636108,
0.4622475802898407,
0.6392899751663208,
-1.1400107145309448,
0.7807269096374512,
-0.5203376412391663,
1.089699387550354,
0.849468469619751,
-0.8557019829750061,
-0.010388133116066456,
1.3891083002090454,
0.4746756851673126,
-0.43938925862312317,
-0.9108334183692932,
-0.8736444115638733,
0.9483895897865295,
1.738498568534851,
-0.004564385861158371,
-0.03981240838766098,
0.8503895998001099,
0.6148680448532104,
-1.2763848304748535,
0.04263964295387268,
-0.6867825388908386,
-0.6460163593292236,
1.685400366783142,
2.102691888809204,
-0.06829941272735596,
-0.1944701224565506,
-0.6990771889686584,
-1.234833002090454,
0.7253017425537109,
-0.11700249463319778,
0.14013341069221497,
0.6474478840827942,
-0.6765533089637756,
1.1563200950622559,
0.7550597190856934,
1.0093988180160522,
0.08097042888402939,
0.2840583026409149,
0.4191977381706238,
-0.32121309638023376,
-1.185039758682251,
-0.3811277151107788,
-1.1341164112091064,
-2.4587576389312744,
0.47107163071632385,
-0.21124917268753052,
-1.4561465978622437,
0.06926031410694122,
-1.0900611877441406,
0.8886863589286804,
-0.5965760350227356,
-1.012036681175232,
-1.4254354238510132,
0.3374454975128174,
-0.24811036884784698,
0.9285560250282288,
-1.6390435695648193,
-0.06957054883241653,
1.1953805685043335,
0.9012361168861389,
-0.5512780547142029,
0.9977807998657227,
0.2425157129764557,
0.9943356513977051,
0.8793484568595886,
-0.324363648891449,
0.4675459861755371,
0.17222091555595398,
-1.3278111219406128,
0.4042340815067291,
1.2086586952209473,
0.3065924346446991,
1.429482102394104,
-0.4950655698776245,
0.14515703916549683,
0.45462891459465027,
-0.5816684365272522,
-0.4953981935977936,
-0.4228094220161438,
0.6906632781028748,
0.25176605582237244,
-1.0404778718948364,
-0.059557463973760605,
-0.11159045994281769,
-0.24572859704494476,
0.1850327104330063,
-1.4849748611450195,
-0.23775707185268402,
-0.3366357386112213,
-0.5857128500938416,
-1.2137317657470703,
0.017565224319696426,
1.4096771478652954,
-0.9000442624092102,
-0.22622786462306976,
0.5502362847328186,
0.3783704936504364,
0.5759820938110352,
0.7012240886688232,
-0.6359879970550537,
-0.29525139927864075,
-0.2718479335308075,
-0.29571014642715454,
0.3158496022224426,
1.2444640398025513,
-0.08242969959974289,
-0.9609876871109009,
0.7261610627174377,
-0.5023846626281738,
0.15221478044986725,
2.0193898677825928,
0.03141166642308235,
-0.796554446220398,
0.2865166664123535,
-0.6725018620491028,
1.889097809791565,
1.7237484455108643,
1.2966266870498657,
-0.06694068014621735,
-0.9494759440422058,
0.5784623026847839,
-0.16870567202568054,
-0.37500855326652527,
1.0055277347564697,
0.4117436408996582,
-0.20604580640792847,
-1.4098436832427979,
0.43820250034332275,
1.2174426317214966,
-0.9410789012908936,
-0.7122389674186707,
0.11953061074018478,
-0.8654497861862183,
1.1350667476654053,
0.6460113525390625,
0.2849009335041046,
0.24043036997318268,
1.4792124032974243,
0.7363771200180054,
-0.47471317648887634,
0.46400412917137146,
0.4492473006248474,
-0.20538213849067688,
-2.1363067626953125,
-0.9823011755943298,
0.3129289150238037,
-0.365911066532135,
-1.546702265739441,
1.1975346803665161,
-1.1932049989700317,
-0.9734801054000854,
0.5469886064529419,
0.0601690448820591,
1.369368314743042,
0.2615312337875366,
1.6303131580352783,
2.1790575981140137,
0.9201304912567139,
0.27946314215660095,
1.2891144752502441,
-0.033969856798648834,
-0.47845765948295593,
1.7506718635559082,
-0.40536752343177795,
0.5441151261329651,
0.976774275302887,
-0.4136706590652466,
-1.0905601978302002,
-0.7662537097930908,
-1.1898815631866455,
-0.6847468018531799,
1.223670482635498,
0.15389513969421387,
-1.102038860321045,
0.2335079163312912,
1.6021850109100342,
0.11253470182418823,
-0.24326446652412415,
0.6121892333030701,
0.5337957739830017,
-0.7256596684455872,
-0.04317183420062065,
-0.922473669052124,
0.4862188994884491,
-0.11719584465026855,
-0.29215139150619507,
0.24548226594924927,
0.42598143219947815,
1.2886393070220947,
0.028783969581127167,
0.11645147949457169,
1.1633169651031494,
-1.3975110054016113,
1.5469759702682495,
-0.5114626288414001,
0.28678080439567566,
-2.518380880355835,
1.3875311613082886,
-0.7640706896781921,
1.8706793785095215,
-2.604111909866333,
0.4487912058830261,
-0.5985640287399292,
-0.5339045524597168,
0.30256104469299316,
-0.3926286995410919,
0.16534997522830963,
-0.13151457905769348,
-1.0286552906036377,
-0.11735938489437103,
-0.7758515477180481,
0.5557236671447754,
1.164280891418457,
1.333927869796753,
-1.1349431276321411,
-0.254882276058197,
-1.749319076538086,
-0.1836419403553009,
-0.7714183330535889,
0.3110032379627228,
-1.9483946561813354,
-0.061861082911491394,
-1.9224845170974731,
-2.390362024307251,
-1.3966158628463745,
-0.7437053322792053,
0.9994735717773438,
0.17164795100688934,
-0.9659929275512695,
1.1209707260131836,
-0.416354238986969,
-1.828778862953186,
1.0122895240783691,
-2.267272472381592
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | @osanseviero @lhoestq things seem to work fine with the current version of the dataset [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2). Here's a notebook I developed to help with visualization: https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing.
@lhoestq I need your help with the following:
> However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
@osanseviero @lhoestq question for you:
Where should we host the dataset? I think hosting it under hf.co/datasets (that is HF is the org) is fine as we have ImageNet-1k hosted similarly. We could then reach out to Diana Wofk (author of [Fast Depth](https://github.com/dwofk/fast-depth) and the owner of the repo on which TFDS NYU Depth V2 is based) for a review. WDYT? | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 127 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
@osanseviero @lhoestq things seem to work fine with the current version of the dataset [here](https://huggingface.co/datasets/sayakpaul/nyu_depth_v2). Here's a notebook I developed to help with visualization: https://colab.research.google.com/drive/1K3ZU8XUPRDOYD38MQS9nreQXJYitlKSW?usp=sharing.
@lhoestq I need your help with the following:
> However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
@osanseviero @lhoestq question for you:
Where should we host the dataset? I think hosting it under hf.co/datasets (that is HF is the org) is fine as we have ImageNet-1k hosted similarly. We could then reach out to Diana Wofk (author of [Fast Depth](https://github.com/dwofk/fast-depth) and the owner of the repo on which TFDS NYU Depth V2 is based) for a review. WDYT? | [
-1.2748229503631592,
-0.9704703092575073,
-0.7422835826873779,
1.4314460754394531,
-0.130035862326622,
-1.2615610361099243,
0.08466703444719315,
-1.0315412282943726,
1.6358650922775269,
-0.6931165456771851,
0.29257670044898987,
-1.6689316034317017,
-0.08216101676225662,
-0.5732949376106262,
-0.6964020729064941,
-0.8383297920227051,
-0.3989374339580536,
-0.8066001534461975,
0.9857370853424072,
2.5608372688293457,
1.248395323753357,
-1.3494492769241333,
2.772317409515381,
0.7599455714225769,
-0.30626416206359863,
-1.0118379592895508,
0.47846952080726624,
-0.022609179839491844,
-1.356233835220337,
-0.5054447650909424,
-0.9757850170135498,
0.008283654227852821,
-0.5427728295326233,
-0.4941430389881134,
0.09061805158853531,
0.41647109389305115,
-0.1908368468284607,
-0.3455146849155426,
-0.6691192984580994,
-0.7319097518920898,
0.4429664611816406,
-0.3571981191635132,
0.9612299203872681,
-0.27918052673339844,
1.785649299621582,
-0.5739643573760986,
0.35349953174591064,
0.6982775330543518,
1.3569796085357666,
0.096019446849823,
0.03991464897990227,
0.2912134826183319,
0.42868053913116455,
-0.0005568498745560646,
0.5348445177078247,
1.2002898454666138,
0.6165199875831604,
0.4282051622867584,
0.6370691061019897,
-2.193089008331299,
1.2972888946533203,
-0.9353851675987244,
0.3552859127521515,
1.3637884855270386,
-0.902638852596283,
0.3885672092437744,
-1.7584450244903564,
-0.023452628403902054,
0.6036636829376221,
-2.2257304191589355,
0.1805221438407898,
-1.2948890924453735,
-0.5348470211029053,
0.9281655550003052,
0.3197213411331177,
-1.234960675239563,
0.22494393587112427,
-0.5402654409408569,
1.1231250762939453,
0.49344635009765625,
1.1605033874511719,
-1.7149816751480103,
-0.038771823048591614,
-0.24234214425086975,
0.1327052116394043,
-1.2663664817810059,
-1.5874170064926147,
0.5244929194450378,
0.7147692441940308,
0.6639647483825684,
-0.05250167101621628,
0.9454607367515564,
-0.9611884951591492,
0.8696244359016418,
-0.9385321140289307,
-1.6336764097213745,
-1.4293287992477417,
-2.2860894203186035,
-2.266890287399292,
0.7563737630844116,
-0.5110524892807007,
-0.49576234817504883,
2.0107102394104004,
-1.0578598976135254,
-1.7942345142364502,
1.0820949077606201,
0.28243759274482727,
0.0526680089533329,
2.394158124923706,
0.226647287607193,
-0.6776381731033325,
0.43672627210617065,
-0.6996439695358276,
0.8393063545227051,
-0.3590845763683319,
1.3031163215637207,
0.4407061040401459,
-1.0024586915969849,
1.585604190826416,
-0.47662994265556335,
0.5505213737487793,
-0.7119950652122498,
-0.46312597393989563,
-0.7919073700904846,
0.31899142265319824,
1.8871448040008545,
-0.4145970940589905,
1.623150110244751,
-0.4249548316001892,
-1.56253182888031,
-1.6032710075378418,
0.7814273238182068,
0.5195081233978271,
-0.816058337688446,
0.09088047593832016,
-0.5278176665306091,
0.1060962900519371,
0.029900778084993362,
1.0648120641708374,
1.2216238975524902,
0.6236128211021423,
-0.40799662470817566,
-0.8400286436080933,
0.19391420483589172,
-0.011597191914916039,
-0.7344234585762024,
-1.7936068773269653,
-0.33504360914230347,
0.21989193558692932,
0.664222002029419,
-1.2862776517868042,
1.6913297176361084,
0.8306500315666199,
2.01522159576416,
0.9760569334030151,
-0.3513204753398895,
1.500187873840332,
0.09193702042102814,
1.7923609018325806,
-0.5690237283706665,
0.6561707854270935,
-0.3182678520679474,
-1.1174983978271484,
0.8131546378135681,
-0.406549870967865,
-2.0492584705352783,
-0.7693007588386536,
-0.7649101614952087,
-0.18584954738616943,
-0.8181025385856628,
0.8950076699256897,
-0.30994275212287903,
-1.3977636098861694,
0.2095913290977478,
-0.7458558082580566,
0.19825845956802368,
-1.2031567096710205,
0.2034432291984558,
0.7414730191230774,
-0.6294736266136169,
0.010241959244012833,
-0.2077770233154297,
-1.306779146194458,
-0.46650993824005127,
0.3830125331878662,
1.9109816551208496,
-0.6609157919883728,
0.8740681409835815,
1.0242973566055298,
-0.6549099683761597,
0.126027911901474,
0.32483476400375366,
-0.3642386496067047,
0.8783913254737854,
-1.091151237487793,
-0.3657580018043518,
1.174196481704712,
-0.1536969542503357,
-0.6772843599319458,
1.4493314027786255,
0.7687808871269226,
-1.0567904710769653,
-0.3077240288257599,
-0.12585565447807312,
-0.826085090637207,
-0.02658761665225029,
-1.6637200117111206,
-0.17854037880897522,
0.2923107445240021,
-1.4721122980117798,
-0.4275161921977997,
-0.29379621148109436,
1.328195333480835,
-0.11484470218420029,
1.455831527709961,
-0.32238757610321045,
-0.17183348536491394,
-0.3203384578227997,
-0.3892529606819153,
0.17432060837745667,
-0.27640485763549805,
-0.5758617520332336,
0.18969795107841492,
-0.8600751757621765,
0.2913557291030884,
1.4919461011886597,
0.3693374991416931,
0.08807868510484695,
0.4167470335960388,
1.0657850503921509,
0.3540111184120178,
-0.09574692696332932,
-0.9515870213508606,
-1.5838702917099,
2.044456958770752,
-1.3770959377288818,
1.9410210847854614,
0.8842853903770447,
-0.026779163628816605,
-1.8526556491851807,
-1.8579176664352417,
1.2628711462020874,
1.1414388418197632,
2.385104179382324,
0.5512429475784302,
0.3468349277973175,
-0.7711653709411621,
-0.689130961894989,
0.3153397738933563,
-0.9986315369606018,
-0.7619856595993042,
0.12471223622560501,
2.4650778770446777,
1.8872402906417847,
-0.45430701971054077,
-0.2450074553489685,
-0.9647398591041565,
1.2542370557785034,
-0.19214126467704773,
0.15379756689071655,
2.0702147483825684,
-0.27716177701950073,
-0.9772633910179138,
1.3073532581329346,
-2.361345052719116,
0.2062842845916748,
1.9643079042434692,
0.2498730719089508,
0.11704712361097336,
-1.4547439813613892,
-0.7099773287773132,
-0.33710286021232605,
-0.45366600155830383,
-1.2592803239822388,
0.5970826745033264,
-0.33144423365592957,
-0.8926972150802612,
-1.4349676370620728,
0.09220414608716965,
-1.0780068635940552,
-1.7032479047775269,
0.28793179988861084,
1.9023802280426025,
2.027857542037964,
-0.8567685484886169,
1.464391827583313,
-0.29413220286369324,
0.09622934460639954,
1.2720693349838257,
1.3514989614486694,
3.111022710800171,
1.9083585739135742,
-1.3432338237762451,
0.729557454586029,
-0.2136366069316864,
-0.43629294633865356,
1.1360489130020142,
-1.1590932607650757,
1.1981127262115479,
-0.2509136497974396,
-1.2614914178848267,
-1.2326161861419678,
1.086821436882019,
0.5518208742141724,
0.003581590950489044,
-0.5396705865859985,
1.2678990364074707,
0.0688689574599266,
1.329211950302124,
0.5943984985351562,
-0.43924203515052795,
0.579617440700531,
-0.30185404419898987,
-0.527933657169342,
1.530004620552063,
0.10511719435453415,
-1.510703206062317,
-2.355368137359619,
-0.192990243434906,
-0.823594331741333,
-0.07091235369443893,
-0.663024365901947,
-1.0502495765686035,
1.5975353717803955,
0.3956146240234375,
-1.3392412662506104,
-0.31101107597351074,
-0.3438744843006134,
-0.4672342538833618,
2.634819507598877,
-1.3609099388122559,
-0.20331239700317383,
-1.049677848815918,
-0.4873600900173187,
1.639144778251648,
-1.1693177223205566,
-0.22639471292495728,
-1.0430277585983276,
-0.7242648601531982,
-1.270093321800232,
-0.5259976983070374,
-0.01152028888463974,
-0.9233956933021545,
0.7278339266777039,
0.09038838744163513,
-1.069564938545227,
-0.25068411231040955,
-0.8127092123031616,
0.984820544719696,
-0.08434896171092987,
0.23698294162750244,
1.96975839138031,
0.3831217885017395,
-0.4371623992919922,
0.706927478313446,
1.1915611028671265,
0.6275526881217957,
-0.7412920594215393,
0.07676555961370468,
-0.6981809735298157,
0.3443385362625122,
-1.3973027467727661,
0.22818362712860107,
-2.9142603874206543,
0.6886489987373352,
-0.046640314161777496,
-0.11449406296014786,
0.007737338542938232,
-1.295791745185852,
1.140614628791809,
2.637106418609619,
-1.2245599031448364,
0.4735397696495056,
0.36193710565567017,
1.174250602722168,
-1.5301380157470703,
0.27022138237953186,
-0.4333195686340332,
2.106889486312866,
0.20550966262817383,
1.2589802742004395,
-0.46033039689064026,
-2.171945333480835,
0.5994692444801331,
-1.2600067853927612,
-1.007849931716919,
0.7832496166229248,
-0.8319551944732666,
0.12970823049545288,
-1.5216306447982788,
-0.1744559109210968,
-0.8671752214431763,
-1.264582633972168,
0.7239943742752075,
0.1554778814315796,
0.48546940088272095,
-0.6255859732627869,
0.35380664467811584,
-2.1106255054473877,
-1.3474491834640503,
-0.19313162565231323,
-0.9622421264648438,
0.4699988067150116,
-0.33864232897758484,
0.6055693030357361,
-0.07660592347383499,
0.05279761180281639,
0.3275817632675171,
1.3451706171035767,
3.4166321754455566,
0.2888577878475189,
0.24976038932800293,
-0.14470326900482178,
-1.0009046792984009,
1.3789288997650146,
0.941447377204895,
-0.15087267756462097,
-0.5246031284332275,
-0.9842264652252197,
1.3127511739730835,
2.0086894035339355,
1.0750794410705566,
0.1521715223789215,
-0.9194864630699158,
-0.8892905712127686,
0.04942694306373596,
0.2664933502674103,
0.43987950682640076,
0.8815702795982361,
0.016797414049506187,
0.10707423835992813,
1.445645809173584,
1.1935415267944336,
-0.3982595205307007,
0.46228793263435364,
-0.9461799263954163,
-0.4736068844795227,
0.3756583333015442,
0.27029430866241455,
0.1044885441660881,
0.4312369227409363,
-1.0309252738952637,
-0.26079580187797546,
-0.3933829367160797,
-0.8930625915527344,
-0.6916098594665527,
-0.4042679965496063,
-0.33066505193710327,
1.5002899169921875,
0.1921771764755249,
-0.47538015246391296,
-0.00009256415069103241,
-0.7517566680908203,
-0.18398067355155945,
-1.0655815601348877,
0.2683436870574951,
-0.10288868099451065,
-0.009064694866538048,
-0.12488966435194016,
1.7431050539016724,
-0.8980816006660461,
-2.1169517040252686,
0.21848666667938232,
0.27653810381889343,
-0.38633689284324646,
0.1693865954875946,
1.732625961303711,
0.5692678689956665,
1.40769624710083,
1.2348943948745728,
0.9701780676841736,
-0.5417467355728149,
-1.2770417928695679,
0.7454915642738342,
0.9714253544807434,
-1.3567051887512207,
0.8865932822227478,
-0.1591249406337738,
-0.5457384586334229,
0.7517083883285522,
1.2519173622131348,
0.37334343791007996,
-1.972946286201477,
0.8416069746017456,
-0.8819503784179688,
0.776850163936615,
0.6634683012962341,
0.7799115777015686,
0.25115767121315,
0.7811477184295654,
-1.3238835334777832,
-1.1347534656524658,
-0.7598549127578735,
-0.5842307806015015,
1.9604862928390503,
-0.23993882536888123,
0.5887200236320496,
-0.19100475311279297,
-1.2939516305923462,
-0.07049056887626648,
0.7508638501167297,
0.28276297450065613,
-0.4839745759963989,
0.8764692544937134,
-0.6437646746635437,
-1.0506327152252197,
-1.2665773630142212,
-0.4209749400615692,
-0.9079161286354065,
-0.9316205382347107,
1.008738398551941,
0.8788683414459229,
0.4002751111984253,
1.908077359199524,
0.526588499546051,
0.3209196627140045,
-2.63309645652771,
0.9542407393455505,
0.25326183438301086,
-0.007395295891910791,
0.9766864776611328,
0.2193070352077484,
1.0339123010635376,
0.06944078952074051,
0.5040803551673889,
-2.3716793060302734,
2.212580442428589,
-0.1761508584022522,
0.679042637348175,
-0.05566464737057686,
-0.16681751608848572,
1.164233922958374,
0.4974474310874939,
0.6401911973953247,
-1.0947110652923584,
0.7790298461914062,
-0.5495668053627014,
1.138576865196228,
0.8520264625549316,
-0.8565946221351624,
-0.02454213611781597,
1.407772421836853,
0.4764115810394287,
-0.45929259061813354,
-0.9054623246192932,
-0.874982476234436,
0.9392615556716919,
1.7341457605361938,
0.0013129031285643578,
-0.0450565367937088,
0.8347609639167786,
0.6779760718345642,
-1.2351288795471191,
0.07062198966741562,
-0.6818667650222778,
-0.6484920382499695,
1.635081171989441,
2.0825717449188232,
-0.09782668203115463,
-0.17298445105552673,
-0.696329653263092,
-1.234419822692871,
0.7056667804718018,
-0.12900590896606445,
0.1566070318222046,
0.6488184928894043,
-0.7130914330482483,
1.1474320888519287,
0.7226149439811707,
0.9887647032737732,
0.10560425370931625,
0.301778107881546,
0.40372905135154724,
-0.3318367600440979,
-1.2090978622436523,
-0.3863908648490906,
-1.136875033378601,
-2.4593961238861084,
0.44763028621673584,
-0.18378332257270813,
-1.449821949005127,
0.06371434032917023,
-1.075024962425232,
0.8988308906555176,
-0.6154974102973938,
-1.0462501049041748,
-1.4331841468811035,
0.33968761563301086,
-0.19867590069770813,
0.8981730341911316,
-1.6567257642745972,
-0.04463848099112511,
1.1827081441879272,
0.8810206055641174,
-0.5201083421707153,
0.9729490280151367,
0.2621687352657318,
0.9874311685562134,
0.8815809488296509,
-0.299159437417984,
0.43822285532951355,
0.16691303253173828,
-1.325392246246338,
0.40577012300491333,
1.1700924634933472,
0.27262547612190247,
1.446215271949768,
-0.48816919326782227,
0.11918327957391739,
0.4354272484779358,
-0.5672562718391418,
-0.49113744497299194,
-0.43710893392562866,
0.6738694310188293,
0.18851551413536072,
-1.0156811475753784,
-0.08745003491640091,
-0.12174271792173386,
-0.2692970633506775,
0.17437198758125305,
-1.4932271242141724,
-0.225988507270813,
-0.3530605435371399,
-0.5523557662963867,
-1.2466719150543213,
0.023490525782108307,
1.4164077043533325,
-0.8781810402870178,
-0.2508805990219116,
0.5260422229766846,
0.3843650221824646,
0.5794239640235901,
0.6956131458282471,
-0.6367787718772888,
-0.2771490812301636,
-0.2630484700202942,
-0.28181812167167664,
0.29475897550582886,
1.2598161697387695,
-0.11118815839290619,
-0.9265114665031433,
0.7157147526741028,
-0.5328648686408997,
0.12498796731233597,
2.0235323905944824,
0.039523132145404816,
-0.7989900708198547,
0.30324676632881165,
-0.6993643045425415,
1.8799843788146973,
1.7204028367996216,
1.2868024110794067,
-0.10021866858005524,
-0.9348970651626587,
0.5801628828048706,
-0.2461547553539276,
-0.3768315613269806,
0.9747316241264343,
0.415368914604187,
-0.20874905586242676,
-1.4133881330490112,
0.4619670808315277,
1.2386882305145264,
-0.9147778153419495,
-0.7371076941490173,
0.15283721685409546,
-0.8603039979934692,
1.1301716566085815,
0.6939168572425842,
0.29392698407173157,
0.21731635928153992,
1.4819107055664062,
0.7339113354682922,
-0.4703767001628876,
0.4791828989982605,
0.4664030075073242,
-0.1842358112335205,
-2.157305955886841,
-0.992581844329834,
0.2907286584377289,
-0.3520720899105072,
-1.5441884994506836,
1.2373219728469849,
-1.200740933418274,
-0.9927518963813782,
0.5331411957740784,
0.06767605990171432,
1.3609461784362793,
0.293071985244751,
1.6225709915161133,
2.160271406173706,
0.8835403323173523,
0.3090396523475647,
1.3145551681518555,
-0.0331115797162056,
-0.44997817277908325,
1.7729226350784302,
-0.43581318855285645,
0.5476840734481812,
0.9978340268135071,
-0.418197363615036,
-1.0654003620147705,
-0.7657886147499084,
-1.2103885412216187,
-0.6779334545135498,
1.2448714971542358,
0.1198684349656105,
-1.0743834972381592,
0.23050636053085327,
1.58488929271698,
0.11982475966215134,
-0.25606605410575867,
0.6337451338768005,
0.5292425751686096,
-0.7393868565559387,
-0.07464880496263504,
-0.9210934042930603,
0.5065240263938904,
-0.11479352414608002,
-0.30309391021728516,
0.25866225361824036,
0.45517396926879883,
1.2973313331604004,
-0.006926946807652712,
0.09935729950666428,
1.1726752519607544,
-1.4311044216156006,
1.5425339937210083,
-0.535038411617279,
0.2750050723552704,
-2.5351791381835938,
1.4220534563064575,
-0.7673656344413757,
1.9059760570526123,
-2.5886998176574707,
0.44870725274086,
-0.5939379334449768,
-0.5351117849349976,
0.31214579939842224,
-0.3513525724411011,
0.16358783841133118,
-0.1513814926147461,
-1.017468810081482,
-0.07207687199115753,
-0.7350451350212097,
0.5649796724319458,
1.175804615020752,
1.3349559307098389,
-1.1709513664245605,
-0.2703363001346588,
-1.761867642402649,
-0.1865653097629547,
-0.8191444873809814,
0.34318238496780396,
-1.9829881191253662,
-0.06169871613383293,
-1.9090099334716797,
-2.4003915786743164,
-1.383573055267334,
-0.756855845451355,
0.9891466498374939,
0.19436931610107422,
-0.9515273571014404,
1.1393307447433472,
-0.43069320917129517,
-1.826660394668579,
1.0030514001846313,
-2.217679023742676
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
First you can separate the train data and the validation data.
Then since the dataset is quite big, you can even shard the train split and the validation split in multiple TAR archives. Something around 16 archives for train and 4 for validation would be fine for example.
Also no need to gzip the TAR archives, the images are already compressed in png or jpeg. | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 98 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> However, since the dataset is distributed as a single TAR archive (following the [URL used in TensorFlow Datasets](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/nyu_depth_v2/nyu_depth_v2_dataset_builder.py)) the loading is taking longer. How would suggest to shard the single TAR archive?
First you can separate the train data and the validation data.
Then since the dataset is quite big, you can even shard the train split and the validation split in multiple TAR archives. Something around 16 archives for train and 4 for validation would be fine for example.
Also no need to gzip the TAR archives, the images are already compressed in png or jpeg. | [
-1.312416911125183,
-0.9801265597343445,
-0.7264724373817444,
1.3997122049331665,
-0.09051664173603058,
-1.3254600763320923,
0.05023389682173729,
-1.0348151922225952,
1.6519296169281006,
-0.7212836146354675,
0.24899353086948395,
-1.6647167205810547,
-0.09948335587978363,
-0.5452768206596375,
-0.7034453749656677,
-0.8654152750968933,
-0.3958685100078583,
-0.8257198929786682,
0.9959255456924438,
2.5430846214294434,
1.2507472038269043,
-1.3550536632537842,
2.7641701698303223,
0.7813506722450256,
-0.3130161464214325,
-1.030121088027954,
0.4954720735549927,
-0.03655959293246269,
-1.3736242055892944,
-0.5142004489898682,
-0.9908801317214966,
0.06150035187602043,
-0.5108343958854675,
-0.4717296361923218,
0.05874108150601387,
0.43676143884658813,
-0.20441694557666779,
-0.3256344199180603,
-0.6910997033119202,
-0.7180413007736206,
0.42935383319854736,
-0.34570741653442383,
0.9939731359481812,
-0.3000788390636444,
1.7663518190383911,
-0.5509876608848572,
0.35483354330062866,
0.6932149529457092,
1.3281742334365845,
0.07835130393505096,
0.05117524787783623,
0.2641993463039398,
0.4138154685497284,
-0.019796326756477356,
0.5236365795135498,
1.2120939493179321,
0.6281678676605225,
0.44427022337913513,
0.6428312659263611,
-2.2093665599823,
1.3080689907073975,
-0.9300895929336548,
0.3346571922302246,
1.3647531270980835,
-0.9008710980415344,
0.38730841875076294,
-1.750193476676941,
-0.018613066524267197,
0.6284514665603638,
-2.2353408336639404,
0.1465037316083908,
-1.3423796892166138,
-0.5122351050376892,
0.926876962184906,
0.34223929047584534,
-1.2113827466964722,
0.2588531970977783,
-0.5584787726402283,
1.1085925102233887,
0.5303168296813965,
1.1485209465026855,
-1.6728582382202148,
-0.024958904832601547,
-0.18027547001838684,
0.10425731539726257,
-1.3005436658859253,
-1.6178306341171265,
0.5355950593948364,
0.7095295786857605,
0.6940199136734009,
-0.08042996376752853,
0.9672771692276001,
-0.9860393404960632,
0.8160589933395386,
-0.9172151684761047,
-1.6702197790145874,
-1.4378305673599243,
-2.296192169189453,
-2.2871623039245605,
0.782954216003418,
-0.5664070248603821,
-0.512732207775116,
2.0434703826904297,
-1.1259788274765015,
-1.7744141817092896,
1.0653877258300781,
0.26806387305259705,
0.08104850351810455,
2.3990628719329834,
0.24770967662334442,
-0.6975388526916504,
0.4476717412471771,
-0.665630578994751,
0.8483027815818787,
-0.3440122604370117,
1.2889056205749512,
0.4569000005722046,
-1.0122169256210327,
1.611135482788086,
-0.4575825035572052,
0.5551010966300964,
-0.6999375224113464,
-0.4783172309398651,
-0.8148456811904907,
0.3290686309337616,
1.8423188924789429,
-0.3987845778465271,
1.6465439796447754,
-0.4227133095264435,
-1.570002555847168,
-1.6064369678497314,
0.7687578201293945,
0.5033181309700012,
-0.8361833691596985,
0.07365497946739197,
-0.5176669955253601,
0.10575117915868759,
0.006360377185046673,
1.0940617322921753,
1.2025551795959473,
0.6340269446372986,
-0.4210222065448761,
-0.8352534174919128,
0.21423207223415375,
-0.023146774619817734,
-0.7270244359970093,
-1.743892788887024,
-0.3220338523387909,
0.26454073190689087,
0.6280364394187927,
-1.2651530504226685,
1.7354532480239868,
0.8313464522361755,
2.016991138458252,
0.9492059946060181,
-0.374997615814209,
1.435534954071045,
0.07963193953037262,
1.8101836442947388,
-0.553573727607727,
0.621132493019104,
-0.28860384225845337,
-1.1231526136398315,
0.8018040657043457,
-0.40058714151382446,
-2.027440071105957,
-0.7791410684585571,
-0.78351891040802,
-0.1783514767885208,
-0.8028711080551147,
0.8893728852272034,
-0.30855172872543335,
-1.3886902332305908,
0.18860961496829987,
-0.6913040280342102,
0.18002517521381378,
-1.1971142292022705,
0.1827041655778885,
0.758643388748169,
-0.6526393294334412,
-0.04604935273528099,
-0.19696921110153198,
-1.3146519660949707,
-0.46209612488746643,
0.3821007013320923,
1.9094864130020142,
-0.6667004823684692,
0.904798150062561,
1.0303106307983398,
-0.6344996094703674,
0.13248950242996216,
0.3058454692363739,
-0.3126069903373718,
0.8687880635261536,
-1.075963020324707,
-0.3596561849117279,
1.2123339176177979,
-0.1761619597673416,
-0.6785647869110107,
1.4387856721878052,
0.7322338819503784,
-1.061525821685791,
-0.3216579556465149,
-0.12522131204605103,
-0.8429582715034485,
-0.040292564779520035,
-1.6488044261932373,
-0.18921321630477905,
0.3136872947216034,
-1.4786194562911987,
-0.4023362994194031,
-0.25373604893684387,
1.3075270652770996,
-0.1501680463552475,
1.4416286945343018,
-0.3309682011604309,
-0.1867443025112152,
-0.3294846713542938,
-0.44257840514183044,
0.18939091265201569,
-0.2543122172355652,
-0.5623196363449097,
0.17245373129844666,
-0.922917902469635,
0.2800842225551605,
1.4768296480178833,
0.397184818983078,
0.09404179453849792,
0.4307449460029602,
1.1049526929855347,
0.3612460196018219,
-0.13883963227272034,
-0.9478068351745605,
-1.5821568965911865,
2.0627317428588867,
-1.3547431230545044,
1.9085969924926758,
0.8529132604598999,
-0.0652889832854271,
-1.8538345098495483,
-1.8147779703140259,
1.2315242290496826,
1.1227139234542847,
2.3574836254119873,
0.5511584281921387,
0.3448207676410675,
-0.7637037038803101,
-0.6854334473609924,
0.3462415933609009,
-1.0001288652420044,
-0.7158988118171692,
0.11634263396263123,
2.4239935874938965,
1.904167652130127,
-0.44426944851875305,
-0.26392441987991333,
-0.9783269166946411,
1.2550921440124512,
-0.21946656703948975,
0.16969679296016693,
2.0548532009124756,
-0.3057537078857422,
-0.9383765459060669,
1.3276289701461792,
-2.348902940750122,
0.22652477025985718,
1.9907259941101074,
0.26332584023475647,
0.11521857976913452,
-1.4402737617492676,
-0.6698184609413147,
-0.3527980446815491,
-0.440449059009552,
-1.2828090190887451,
0.6076040267944336,
-0.35710954666137695,
-0.9087607264518738,
-1.4314866065979004,
0.06377777457237244,
-1.0904312133789062,
-1.7214558124542236,
0.28068211674690247,
1.9054359197616577,
2.055363893508911,
-0.8089749813079834,
1.4505672454833984,
-0.27237263321876526,
0.09575682878494263,
1.2736525535583496,
1.3417471647262573,
3.1255412101745605,
1.8828283548355103,
-1.3406836986541748,
0.7373300790786743,
-0.20510925352573395,
-0.41441723704338074,
1.1620970964431763,
-1.147584080696106,
1.198961615562439,
-0.2680278420448303,
-1.321775197982788,
-1.2141855955123901,
1.113283634185791,
0.5451322197914124,
0.04080963879823685,
-0.5991793274879456,
1.2777197360992432,
0.02933138981461525,
1.331945538520813,
0.591476559638977,
-0.4926672577857971,
0.5570921301841736,
-0.28522276878356934,
-0.5685258507728577,
1.5042473077774048,
0.10767379403114319,
-1.5194454193115234,
-2.3495335578918457,
-0.22641108930110931,
-0.8183677196502686,
-0.06598091870546341,
-0.67719566822052,
-1.0243252515792847,
1.6224201917648315,
0.39861437678337097,
-1.3402847051620483,
-0.3156757354736328,
-0.3472059369087219,
-0.48205581307411194,
2.653440237045288,
-1.3159066438674927,
-0.16289205849170685,
-1.0762778520584106,
-0.47194603085517883,
1.6541374921798706,
-1.1578576564788818,
-0.1892070323228836,
-1.0432230234146118,
-0.736689031124115,
-1.2854338884353638,
-0.550830602645874,
-0.02285296469926834,
-0.9139875173568726,
0.7229165434837341,
0.06089096888899803,
-1.0318121910095215,
-0.24416445195674896,
-0.7999742031097412,
1.0135960578918457,
-0.12621872127056122,
0.21456705033779144,
1.9628067016601562,
0.3944116532802582,
-0.4189668595790863,
0.7258146405220032,
1.1860435009002686,
0.63690584897995,
-0.733726441860199,
0.026563026010990143,
-0.7225016951560974,
0.3691524863243103,
-1.3923531770706177,
0.2103712558746338,
-2.9553470611572266,
0.6986887454986572,
-0.07280614227056503,
-0.10232480615377426,
0.04200327396392822,
-1.3152673244476318,
1.0823084115982056,
2.641857385635376,
-1.2618474960327148,
0.4852732717990875,
0.38405027985572815,
1.135770320892334,
-1.5602408647537231,
0.2732234299182892,
-0.4509945213794708,
2.0690863132476807,
0.1792435199022293,
1.2649173736572266,
-0.4640992283821106,
-2.1281490325927734,
0.6040086150169373,
-1.2326862812042236,
-0.9792277216911316,
0.8054539561271667,
-0.8593065738677979,
0.1806747168302536,
-1.4931169748306274,
-0.14671972393989563,
-0.8502873778343201,
-1.2785017490386963,
0.7707124948501587,
0.1241508424282074,
0.4499851167201996,
-0.5560598373413086,
0.3378217816352844,
-2.117338180541992,
-1.340448260307312,
-0.20388174057006836,
-0.9942879676818848,
0.4941955804824829,
-0.3575364947319031,
0.5777520537376404,
-0.057195913046598434,
0.04769742861390114,
0.2877745032310486,
1.3016982078552246,
3.4166548252105713,
0.30418458580970764,
0.20198474824428558,
-0.11685708165168762,
-1.008427619934082,
1.415555715560913,
0.9322652816772461,
-0.1526283472776413,
-0.5241473317146301,
-0.9782029390335083,
1.3482216596603394,
1.9995698928833008,
1.0489060878753662,
0.14144201576709747,
-0.9175547361373901,
-0.8544286489486694,
0.08960789442062378,
0.2550090253353119,
0.4794503450393677,
0.8869591355323792,
-0.005656655877828598,
0.11808659136295319,
1.4614108800888062,
1.1904419660568237,
-0.3766053020954132,
0.4561740458011627,
-0.9252221584320068,
-0.46546733379364014,
0.3818749487400055,
0.2680424153804779,
0.1385178118944168,
0.4967794418334961,
-1.0157557725906372,
-0.2542247772216797,
-0.4165451228618622,
-0.8817892670631409,
-0.6668105721473694,
-0.4107196033000946,
-0.36035478115081787,
1.4757449626922607,
0.16479450464248657,
-0.49473699927330017,
0.018887821584939957,
-0.7553297877311707,
-0.22364315390586853,
-1.0476559400558472,
0.29348254203796387,
-0.08060596883296967,
-0.013962707482278347,
-0.15023988485336304,
1.7186962366104126,
-0.9044551253318787,
-2.1165802478790283,
0.2214975655078888,
0.28642287850379944,
-0.3920203745365143,
0.14691179990768433,
1.752869725227356,
0.5163013935089111,
1.407514214515686,
1.2801191806793213,
0.950646698474884,
-0.5729703903198242,
-1.2373682260513306,
0.7244314551353455,
0.9499319791793823,
-1.3520963191986084,
0.9301047325134277,
-0.18306660652160645,
-0.5648191571235657,
0.7717884182929993,
1.2765798568725586,
0.37077149748802185,
-1.9661715030670166,
0.8892027735710144,
-0.892053484916687,
0.7656357884407043,
0.6642453670501709,
0.8261628746986389,
0.22078977525234222,
0.7995780110359192,
-1.3292853832244873,
-1.1561157703399658,
-0.7462882995605469,
-0.5785768032073975,
1.947934865951538,
-0.23149734735488892,
0.5925977230072021,
-0.16607382893562317,
-1.2975555658340454,
-0.08121578395366669,
0.7513039112091064,
0.3030431866645813,
-0.43868350982666016,
0.8806688189506531,
-0.6648002862930298,
-1.0540250539779663,
-1.3083515167236328,
-0.377201110124588,
-0.907059371471405,
-0.9148024320602417,
1.0422250032424927,
0.8419031500816345,
0.38521361351013184,
1.8937774896621704,
0.5204138159751892,
0.32077205181121826,
-2.6490297317504883,
0.9575479626655579,
0.22304359078407288,
0.0030332952737808228,
0.9559684991836548,
0.21979831159114838,
1.0100082159042358,
0.047207579016685486,
0.49557602405548096,
-2.361274003982544,
2.1704084873199463,
-0.18688653409481049,
0.6801985502243042,
-0.044643692672252655,
-0.1789517104625702,
1.1779948472976685,
0.4838423430919647,
0.6615698933601379,
-1.150223731994629,
0.8221015930175781,
-0.4975551664829254,
1.1062248945236206,
0.8786349296569824,
-0.8849325180053711,
-0.005154197104275227,
1.4415481090545654,
0.493499755859375,
-0.4794120490550995,
-0.9250925183296204,
-0.860603928565979,
0.9157721996307373,
1.6913212537765503,
0.015527398325502872,
-0.07792864739894867,
0.8537331223487854,
0.6662428379058838,
-1.2126542329788208,
0.10263875126838684,
-0.6405243873596191,
-0.6283187866210938,
1.6323274374008179,
2.0706076622009277,
-0.08418826758861542,
-0.15329532325267792,
-0.6567248106002808,
-1.1845948696136475,
0.677553117275238,
-0.12743917107582092,
0.13249532878398895,
0.6730211973190308,
-0.6903262138366699,
1.1365145444869995,
0.7178369164466858,
0.9390029907226562,
0.07952228933572769,
0.29636356234550476,
0.43495380878448486,
-0.2934033274650574,
-1.2013614177703857,
-0.37186717987060547,
-1.1206461191177368,
-2.429373264312744,
0.4146742820739746,
-0.2045052945613861,
-1.4703177213668823,
0.06728269904851913,
-1.046505093574524,
0.8752996325492859,
-0.6200848817825317,
-1.0767838954925537,
-1.416387915611267,
0.323507159948349,
-0.1885693222284317,
0.9070318341255188,
-1.6673002243041992,
-0.09936046600341797,
1.1899895668029785,
0.8717401623725891,
-0.5264812707901001,
1.0023858547210693,
0.27056756615638733,
0.9925410747528076,
0.857780396938324,
-0.34303218126296997,
0.42876750230789185,
0.13890661299228668,
-1.363959789276123,
0.41429615020751953,
1.163121223449707,
0.25124430656433105,
1.4164106845855713,
-0.4883251488208771,
0.09824343025684357,
0.45773303508758545,
-0.5955632328987122,
-0.47413283586502075,
-0.4115680158138275,
0.6988783478736877,
0.19358015060424805,
-0.9765077829360962,
-0.09441887587308884,
-0.13469839096069336,
-0.2911872863769531,
0.20588454604148865,
-1.4777344465255737,
-0.2522444427013397,
-0.36449697613716125,
-0.4940575659275055,
-1.2377456426620483,
0.023745320737361908,
1.4383037090301514,
-0.9283652305603027,
-0.22564825415611267,
0.5493521094322205,
0.37695416808128357,
0.5972975492477417,
0.6949450969696045,
-0.6298546195030212,
-0.2176113724708557,
-0.28423866629600525,
-0.2788894474506378,
0.29245927929878235,
1.2555367946624756,
-0.12268007546663284,
-0.9379124045372009,
0.6958643794059753,
-0.49417462944984436,
0.0882534608244896,
2.0442490577697754,
0.06929070502519608,
-0.7532418370246887,
0.3274194598197937,
-0.7312716245651245,
1.8210604190826416,
1.7178161144256592,
1.3204907178878784,
-0.06441275030374527,
-0.9290177822113037,
0.5518347024917603,
-0.21608905494213104,
-0.37085390090942383,
0.9863830804824829,
0.4200998544692993,
-0.22136275470256805,
-1.3975579738616943,
0.5060588717460632,
1.1917250156402588,
-0.9113541841506958,
-0.6694586277008057,
0.12749101221561432,
-0.8635714650154114,
1.1078115701675415,
0.6580818891525269,
0.2907234728336334,
0.22864983975887299,
1.514501929283142,
0.7413245439529419,
-0.44823893904685974,
0.45169395208358765,
0.49197918176651,
-0.21266141533851624,
-2.1585049629211426,
-0.9770179986953735,
0.3092953562736511,
-0.35346075892448425,
-1.5510286092758179,
1.2362416982650757,
-1.2304630279541016,
-1.0109140872955322,
0.5163474678993225,
0.0899580642580986,
1.3733514547348022,
0.3174187242984772,
1.6223945617675781,
2.2017085552215576,
0.8990130424499512,
0.2989022731781006,
1.3347442150115967,
-0.031862013041973114,
-0.42426228523254395,
1.7759677171707153,
-0.4143263101577759,
0.5241022109985352,
0.9696013927459717,
-0.41463810205459595,
-1.0967638492584229,
-0.7322321534156799,
-1.220241904258728,
-0.6535516977310181,
1.2164524793624878,
0.10294558852910995,
-1.0623493194580078,
0.22918647527694702,
1.5725603103637695,
0.11501836031675339,
-0.19773678481578827,
0.629241406917572,
0.5545675754547119,
-0.7190954685211182,
-0.11067358404397964,
-0.8846589922904968,
0.5112519860267639,
-0.10741249471902847,
-0.301506370306015,
0.2555268108844757,
0.44766366481781006,
1.2825149297714233,
0.010791807435452938,
0.14629124104976654,
1.1496175527572632,
-1.414625644683838,
1.5327059030532837,
-0.5449002981185913,
0.2557010352611542,
-2.5532000064849854,
1.428170919418335,
-0.7957722544670105,
1.9077599048614502,
-2.6062886714935303,
0.47617214918136597,
-0.6073495745658875,
-0.5601288080215454,
0.33140403032302856,
-0.3722812831401825,
0.13162337243556976,
-0.1424722820520401,
-0.9987640380859375,
-0.056927282363176346,
-0.737326979637146,
0.6090153455734253,
1.170426368713379,
1.3560023307800293,
-1.1717027425765991,
-0.2836678922176361,
-1.7724376916885376,
-0.16635295748710632,
-0.8437371850013733,
0.38043153285980225,
-1.951415777206421,
-0.04269452765583992,
-1.9098875522613525,
-2.4439942836761475,
-1.3911279439926147,
-0.7334735989570618,
1.010782241821289,
0.20621441304683685,
-1.0011602640151978,
1.1814912557601929,
-0.43271929025650024,
-1.82918381690979,
1.0080983638763428,
-2.2408416271209717
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > Then since the dataset is quite big, you can even shard the train split and the validation split in multiple TAR archives. Something around 16 archives for train and 4 for validation would be fine for example.
Yes, I got you. But this process seems to be manual and should be tailored for the given dataset. Do you have any script that you used to create the ImageNet-1k shards?
> Also no need to gzip the TAR archives, the images are already compressed in png or jpeg.
I was not going to do that. Not sure what brought it up. | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 101 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> Then since the dataset is quite big, you can even shard the train split and the validation split in multiple TAR archives. Something around 16 archives for train and 4 for validation would be fine for example.
Yes, I got you. But this process seems to be manual and should be tailored for the given dataset. Do you have any script that you used to create the ImageNet-1k shards?
> Also no need to gzip the TAR archives, the images are already compressed in png or jpeg.
I was not going to do that. Not sure what brought it up. | [
-1.2831224203109741,
-1.0018346309661865,
-0.7222522497177124,
1.4142065048217773,
-0.13830256462097168,
-1.2847861051559448,
0.04809454455971718,
-1.0556159019470215,
1.6483359336853027,
-0.7258670330047607,
0.3011879026889801,
-1.6580396890640259,
-0.04847100377082825,
-0.5541866421699524,
-0.7191399335861206,
-0.8624619245529175,
-0.40137675404548645,
-0.8207835555076599,
0.9961001873016357,
2.583832263946533,
1.258385181427002,
-1.3856385946273804,
2.7490224838256836,
0.7431789040565491,
-0.2976727783679962,
-1.0068974494934082,
0.4991004467010498,
-0.05228067934513092,
-1.3911962509155273,
-0.5071390271186829,
-0.9909299612045288,
0.038344625383615494,
-0.5481166839599609,
-0.48343703150749207,
0.03840414807200432,
0.41578224301338196,
-0.21584947407245636,
-0.33054476976394653,
-0.6290020942687988,
-0.7347934246063232,
0.4296529293060303,
-0.38087546825408936,
0.9874178171157837,
-0.3169829547405243,
1.7720677852630615,
-0.5389904379844666,
0.39479944109916687,
0.6730278134346008,
1.3192310333251953,
0.10102830827236176,
0.030437935143709183,
0.2717057764530182,
0.43818315863609314,
-0.038082245737314224,
0.5038491487503052,
1.145577073097229,
0.6387850046157837,
0.4419194459915161,
0.6471380591392517,
-2.1795430183410645,
1.3160805702209473,
-0.9420030117034912,
0.3266454041004181,
1.3341176509857178,
-0.8895710706710815,
0.3884740471839905,
-1.7715916633605957,
-0.04922901839017868,
0.6142863035202026,
-2.2000732421875,
0.1339530348777771,
-1.3117105960845947,
-0.5128159523010254,
0.9799364805221558,
0.34515610337257385,
-1.266386866569519,
0.2330443561077118,
-0.5342525243759155,
1.090821623802185,
0.49549567699432373,
1.154389500617981,
-1.7159302234649658,
-0.018128547817468643,
-0.2250153124332428,
0.12462133169174194,
-1.272170901298523,
-1.5803292989730835,
0.5401099324226379,
0.6984083652496338,
0.6341185569763184,
-0.04879187420010567,
0.9596861600875854,
-0.9855276346206665,
0.8330767154693604,
-0.9294961094856262,
-1.663045048713684,
-1.4424724578857422,
-2.293268918991089,
-2.301619291305542,
0.7921446561813354,
-0.5528936982154846,
-0.4732532799243927,
2.0231635570526123,
-1.1198307275772095,
-1.771376371383667,
1.101097583770752,
0.27454161643981934,
0.05032628774642944,
2.4034385681152344,
0.21763208508491516,
-0.6797981262207031,
0.45266085863113403,
-0.6887031197547913,
0.8281456828117371,
-0.37314435839653015,
1.326561689376831,
0.43056347966194153,
-1.0345356464385986,
1.5844837427139282,
-0.45255759358406067,
0.5400646924972534,
-0.6552881002426147,
-0.46039530634880066,
-0.7977497577667236,
0.3227323591709137,
1.8529906272888184,
-0.40706828236579895,
1.6346956491470337,
-0.41098853945732117,
-1.5759769678115845,
-1.631539225578308,
0.7953751683235168,
0.503437876701355,
-0.8228632807731628,
0.06998437643051147,
-0.4475729167461395,
0.09861643612384796,
0.012676853686571121,
1.0464826822280884,
1.2407385110855103,
0.6566426753997803,
-0.40524858236312866,
-0.8508253693580627,
0.20628434419631958,
-0.06735306978225708,
-0.7377440929412842,
-1.7639167308807373,
-0.3659774363040924,
0.21010911464691162,
0.6465095281600952,
-1.257468581199646,
1.7023282051086426,
0.877189040184021,
1.9940825700759888,
0.982090175151825,
-0.3619239032268524,
1.4774430990219116,
0.11344526708126068,
1.798326015472412,
-0.5727038979530334,
0.6412345170974731,
-0.3166253864765167,
-1.11212956905365,
0.7927234768867493,
-0.41544321179389954,
-2.027181386947632,
-0.7406205534934998,
-0.7722729444503784,
-0.18819279968738556,
-0.8277971744537354,
0.9123781323432922,
-0.2783888578414917,
-1.3667006492614746,
0.2595164477825165,
-0.7142180800437927,
0.13880568742752075,
-1.1842210292816162,
0.22518329322338104,
0.7623170614242554,
-0.6625882387161255,
0.001844809390604496,
-0.22536425292491913,
-1.3034957647323608,
-0.46205317974090576,
0.33698564767837524,
1.8942604064941406,
-0.6734811663627625,
0.8943420648574829,
1.0005743503570557,
-0.6571292877197266,
0.07637296617031097,
0.39809665083885193,
-0.36790767312049866,
0.8429412841796875,
-1.0719443559646606,
-0.37444421648979187,
1.1757733821868896,
-0.17107637226581573,
-0.635683000087738,
1.3989841938018799,
0.7110022902488708,
-1.0298196077346802,
-0.27313634753227234,
-0.13466869294643402,
-0.8312394022941589,
-0.011106866411864758,
-1.6627932786941528,
-0.1885281801223755,
0.26613155007362366,
-1.5169188976287842,
-0.4067411720752716,
-0.24053028225898743,
1.2740716934204102,
-0.15327872335910797,
1.4335969686508179,
-0.3488152027130127,
-0.17263911664485931,
-0.332158625125885,
-0.41999948024749756,
0.18389806151390076,
-0.23839421570301056,
-0.5332536101341248,
0.21776293218135834,
-0.9002709984779358,
0.30631905794143677,
1.459088921546936,
0.37914973497390747,
0.05526503548026085,
0.40477797389030457,
1.0300153493881226,
0.39570799469947815,
-0.14287985861301422,
-0.9295543432235718,
-1.575913429260254,
2.0997936725616455,
-1.3709019422531128,
1.9363526105880737,
0.8853785991668701,
-0.052751969546079636,
-1.8650211095809937,
-1.8367695808410645,
1.2261388301849365,
1.128780484199524,
2.3826375007629395,
0.5819610357284546,
0.3634830117225647,
-0.7565880417823792,
-0.6871122717857361,
0.40158990025520325,
-0.9866281747817993,
-0.7488903999328613,
0.11852014064788818,
2.4076433181762695,
1.8675885200500488,
-0.43777695298194885,
-0.22002030909061432,
-0.99176025390625,
1.294730544090271,
-0.16627323627471924,
0.16478675603866577,
2.037264347076416,
-0.2851087749004364,
-0.9987618327140808,
1.3288733959197998,
-2.316136598587036,
0.21440666913986206,
1.9679309129714966,
0.2708057463169098,
0.10410872101783752,
-1.463722586631775,
-0.6681315898895264,
-0.31498485803604126,
-0.39165547490119934,
-1.2658051252365112,
0.6040168404579163,
-0.3325478136539459,
-0.9047751426696777,
-1.4625537395477295,
0.06787943840026855,
-1.1364834308624268,
-1.7061115503311157,
0.27549657225608826,
1.8928675651550293,
2.0502004623413086,
-0.8240208625793457,
1.4847052097320557,
-0.2700776755809784,
0.11554926633834839,
1.237535834312439,
1.2804639339447021,
3.1197991371154785,
1.912416934967041,
-1.337091088294983,
0.7074660062789917,
-0.1817568987607956,
-0.38715851306915283,
1.1485795974731445,
-1.1137800216674805,
1.2167013883590698,
-0.25504788756370544,
-1.2573070526123047,
-1.189104437828064,
1.0938806533813477,
0.5252361297607422,
-0.0023551303893327713,
-0.5644898414611816,
1.258493423461914,
0.03190510347485542,
1.3307032585144043,
0.5781999230384827,
-0.4335395395755768,
0.5742000937461853,
-0.2969907820224762,
-0.5759407877922058,
1.511027216911316,
0.15622256696224213,
-1.4907945394515991,
-2.3352086544036865,
-0.22326846420764923,
-0.8303535580635071,
-0.06032957881689072,
-0.6492831707000732,
-1.0243068933486938,
1.5894705057144165,
0.40696537494659424,
-1.3852061033248901,
-0.32570597529411316,
-0.33970946073532104,
-0.49790677428245544,
2.654400587081909,
-1.3269082307815552,
-0.17867989838123322,
-1.0442482233047485,
-0.5189394950866699,
1.5928493738174438,
-1.1700491905212402,
-0.18887735903263092,
-1.0509936809539795,
-0.6953636407852173,
-1.285539150238037,
-0.5578575134277344,
-0.04248156398534775,
-0.8775236010551453,
0.702839732170105,
0.11074306070804596,
-1.0644865036010742,
-0.2788165211677551,
-0.8274007439613342,
0.9515619277954102,
-0.08482536673545837,
0.2408583164215088,
1.9468744993209839,
0.3853317201137543,
-0.3987760841846466,
0.697645366191864,
1.1572794914245605,
0.6550923585891724,
-0.701565146446228,
0.06924699246883392,
-0.7598592638969421,
0.3411191403865814,
-1.339945673942566,
0.2249552309513092,
-2.9244608879089355,
0.6956735849380493,
-0.06443162262439728,
-0.1214086264371872,
0.02061573974788189,
-1.2988951206207275,
1.1054867506027222,
2.6717705726623535,
-1.208258032798767,
0.48874518275260925,
0.346389502286911,
1.146654725074768,
-1.5389286279678345,
0.30832788348197937,
-0.4277137815952301,
2.1411542892456055,
0.19548602402210236,
1.236470103263855,
-0.5017643570899963,
-2.1580464839935303,
0.6123544573783875,
-1.247707486152649,
-1.0399795770645142,
0.7732053995132446,
-0.8312364220619202,
0.09756636619567871,
-1.490630865097046,
-0.14959071576595306,
-0.8194741606712341,
-1.2911651134490967,
0.7363753914833069,
0.11815164983272552,
0.5024839043617249,
-0.5714665651321411,
0.3699490427970886,
-2.1317148208618164,
-1.3558756113052368,
-0.22448047995567322,
-0.9498976469039917,
0.4463091194629669,
-0.3293941020965576,
0.6533601880073547,
-0.09936398267745972,
0.037083931267261505,
0.3309197425842285,
1.2932875156402588,
3.4705731868743896,
0.2957266569137573,
0.2668576240539551,
-0.13884837925434113,
-0.9891464710235596,
1.399509310722351,
0.9066448211669922,
-0.1514734923839569,
-0.5535115599632263,
-1.0146987438201904,
1.3387373685836792,
2.022962808609009,
1.0183579921722412,
0.16013115644454956,
-0.9193435907363892,
-0.8711401224136353,
0.06838738918304443,
0.2048778235912323,
0.4469927251338959,
0.8971591591835022,
0.01568710245192051,
0.126206636428833,
1.496878981590271,
1.2106261253356934,
-0.38799312710762024,
0.45708510279655457,
-0.889596164226532,
-0.46580827236175537,
0.3881980776786804,
0.30325448513031006,
0.11480987071990967,
0.45281925797462463,
-1.0001434087753296,
-0.24330459535121918,
-0.4518378973007202,
-0.9053053259849548,
-0.6855503916740417,
-0.4101216793060303,
-0.34614434838294983,
1.5311623811721802,
0.1835922747850418,
-0.47993889451026917,
-0.012303929775953293,
-0.7761278748512268,
-0.14985449612140656,
-1.0559024810791016,
0.27330896258354187,
-0.08490197360515594,
-0.00265682814642787,
-0.1360146701335907,
1.7937098741531372,
-0.9148670434951782,
-2.125941276550293,
0.23892143368721008,
0.2767484784126282,
-0.3715150058269501,
0.1520981788635254,
1.7223904132843018,
0.5396594405174255,
1.4004265069961548,
1.2677206993103027,
0.9803757667541504,
-0.5899699330329895,
-1.278433918952942,
0.7507019639015198,
0.9554268717765808,
-1.3877060413360596,
0.8928524255752563,
-0.13628420233726501,
-0.5366901755332947,
0.7714108228683472,
1.249297857284546,
0.3696286976337433,
-1.9814698696136475,
0.8895602822303772,
-0.8709586262702942,
0.7597123980522156,
0.6548600792884827,
0.7913995981216431,
0.21090880036354065,
0.7795758843421936,
-1.331626057624817,
-1.111255407333374,
-0.7435162663459778,
-0.5664198994636536,
1.9582948684692383,
-0.2360648661851883,
0.5815333724021912,
-0.16292527318000793,
-1.3515408039093018,
-0.09488163888454437,
0.7239686250686646,
0.287518709897995,
-0.4516638517379761,
0.8585327863693237,
-0.6435031890869141,
-1.0769476890563965,
-1.3573142290115356,
-0.4173180162906647,
-0.9187740087509155,
-0.9241105914115906,
1.0424607992172241,
0.8174845576286316,
0.39492347836494446,
1.8948198556900024,
0.510789692401886,
0.2918549180030823,
-2.657398223876953,
0.9865774512290955,
0.2357812523841858,
-0.002568768337368965,
0.9837405681610107,
0.2486058622598648,
1.000407338142395,
0.01850491762161255,
0.49388182163238525,
-2.365893602371216,
2.2084760665893555,
-0.19005247950553894,
0.7204625606536865,
-0.028375083580613136,
-0.1591460257768631,
1.1617964506149292,
0.49387073516845703,
0.6567637324333191,
-1.1382009983062744,
0.7759426832199097,
-0.5132248401641846,
1.1332391500473022,
0.903805136680603,
-0.8727638721466064,
-0.030354740098118782,
1.3788508176803589,
0.45658421516418457,
-0.4777924716472626,
-0.9024903178215027,
-0.8641989231109619,
0.8950508832931519,
1.7539122104644775,
-0.01919557899236679,
-0.0646824985742569,
0.8436362743377686,
0.6407181620597839,
-1.2680782079696655,
0.08476707339286804,
-0.7024568319320679,
-0.6755948066711426,
1.6269041299819946,
2.0582692623138428,
-0.07469667494297028,
-0.18238139152526855,
-0.6708773970603943,
-1.2581144571304321,
0.7160941958427429,
-0.09145784378051758,
0.14962072670459747,
0.6683657765388489,
-0.6881501078605652,
1.1194871664047241,
0.7879763841629028,
0.9863862991333008,
0.0933414101600647,
0.26716071367263794,
0.4433493912220001,
-0.31034958362579346,
-1.1516915559768677,
-0.3610585629940033,
-1.1287777423858643,
-2.4543731212615967,
0.46626871824264526,
-0.175962433218956,
-1.4540737867355347,
0.036509908735752106,
-1.016446590423584,
0.8780116438865662,
-0.5401832461357117,
-1.0593154430389404,
-1.4568631649017334,
0.31416937708854675,
-0.2030976414680481,
0.941189169883728,
-1.658130168914795,
-0.06750491261482239,
1.1527557373046875,
0.9030724167823792,
-0.5244202017784119,
1.0048750638961792,
0.2724677324295044,
0.9860411286354065,
0.883741557598114,
-0.3442382216453552,
0.4007842242717743,
0.1735142022371292,
-1.3338212966918945,
0.386214941740036,
1.1711537837982178,
0.281335711479187,
1.3842674493789673,
-0.5424461364746094,
0.14179407060146332,
0.4215587377548218,
-0.5574917197227478,
-0.46586278080940247,
-0.41282328963279724,
0.7167067527770996,
0.20000821352005005,
-0.9790132641792297,
-0.07987679541110992,
-0.14943666756153107,
-0.2563353180885315,
0.1572859138250351,
-1.4856956005096436,
-0.19409005343914032,
-0.357218474149704,
-0.5250211954116821,
-1.2232862710952759,
-0.021984174847602844,
1.4571613073349,
-0.8778509497642517,
-0.2409447878599167,
0.5612034797668457,
0.3919388949871063,
0.5943149328231812,
0.6801910996437073,
-0.623924732208252,
-0.3004072606563568,
-0.2607254981994629,
-0.29457324743270874,
0.29865366220474243,
1.2726643085479736,
-0.10295000672340393,
-0.9339252710342407,
0.6986218690872192,
-0.4830590486526489,
0.08745115995407104,
2.022394895553589,
0.08298808336257935,
-0.7767813801765442,
0.3287937641143799,
-0.6947169303894043,
1.8761919736862183,
1.7537349462509155,
1.3279556035995483,
-0.04853451997041702,
-0.963761031627655,
0.588468611240387,
-0.22402456402778625,
-0.3997841477394104,
0.9754436016082764,
0.4298142194747925,
-0.20668022334575653,
-1.4236557483673096,
0.48726019263267517,
1.2025891542434692,
-0.92705237865448,
-0.7091207504272461,
0.1259613037109375,
-0.8491578698158264,
1.1190738677978516,
0.6670239567756653,
0.345246285200119,
0.22636328637599945,
1.5326151847839355,
0.7479069828987122,
-0.48899561166763306,
0.4764804244041443,
0.47484108805656433,
-0.22551710903644562,
-2.1584553718566895,
-1.0245341062545776,
0.3154406249523163,
-0.3886500597000122,
-1.5512179136276245,
1.2457761764526367,
-1.255269169807434,
-0.9946185350418091,
0.5334705114364624,
0.07423947751522064,
1.3498705625534058,
0.30126622319221497,
1.5968507528305054,
2.1615004539489746,
0.907588005065918,
0.3093443810939789,
1.3390146493911743,
-0.055163297802209854,
-0.43321073055267334,
1.782589077949524,
-0.43101203441619873,
0.5394011735916138,
1.0043818950653076,
-0.4004260003566742,
-1.0650113821029663,
-0.7479841709136963,
-1.1632671356201172,
-0.651041567325592,
1.2185337543487549,
0.10115045309066772,
-1.0720289945602417,
0.2648932635784149,
1.570946216583252,
0.0874837338924408,
-0.24147918820381165,
0.6056113839149475,
0.547289252281189,
-0.68707674741745,
-0.07695905864238739,
-0.9223063588142395,
0.5121550559997559,
-0.14513470232486725,
-0.3010503947734833,
0.268047034740448,
0.4233270585536957,
1.2842875719070435,
-0.0013993866741657257,
0.12470993399620056,
1.1814113855361938,
-1.4146531820297241,
1.5048954486846924,
-0.5469058752059937,
0.2700009047985077,
-2.5099925994873047,
1.41549813747406,
-0.7558814287185669,
1.8985694646835327,
-2.6218369007110596,
0.4435237646102905,
-0.5969139933586121,
-0.5593349933624268,
0.3220789134502411,
-0.337011456489563,
0.13820131123065948,
-0.1630374640226364,
-1.017805576324463,
-0.08249177038669586,
-0.712737500667572,
0.5928109884262085,
1.1493780612945557,
1.355010986328125,
-1.1662380695343018,
-0.2506053149700165,
-1.7640458345413208,
-0.11871185898780823,
-0.7964450716972351,
0.3344024121761322,
-1.9649327993392944,
-0.09343983232975006,
-1.9263685941696167,
-2.4268605709075928,
-1.4112682342529297,
-0.7407143115997314,
1.0043141841888428,
0.21253275871276855,
-0.9699004888534546,
1.1754924058914185,
-0.41987860202789307,
-1.8560832738876343,
1.02707040309906,
-2.2176926136016846
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > Yes, I got you. But this process seems to be manual and should be tailored for the given dataset. Do you have any script that you used to create the ImageNet-1k shards?
I don't, but I agree it'd be nice to have a script for that !
> I was not going to do that. Not sure what brought it up.
The original dataset is gzipped for some reason | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 70 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> Yes, I got you. But this process seems to be manual and should be tailored for the given dataset. Do you have any script that you used to create the ImageNet-1k shards?
I don't, but I agree it'd be nice to have a script for that !
> I was not going to do that. Not sure what brought it up.
The original dataset is gzipped for some reason | [
-1.2502022981643677,
-0.9894199371337891,
-0.7495439648628235,
1.4310518503189087,
-0.12397024035453796,
-1.243316888809204,
0.03835870698094368,
-1.0311987400054932,
1.6498304605484009,
-0.7146725058555603,
0.32033777236938477,
-1.6812856197357178,
-0.07961028069257736,
-0.5783882141113281,
-0.6991156339645386,
-0.8503369688987732,
-0.3781154155731201,
-0.8109248876571655,
1.014136552810669,
2.5915379524230957,
1.2201229333877563,
-1.4049772024154663,
2.7226080894470215,
0.7476228475570679,
-0.286315381526947,
-1.0375770330429077,
0.47368624806404114,
-0.012874500826001167,
-1.342333436012268,
-0.5113673806190491,
-0.9859474301338196,
-0.007341395597904921,
-0.557665228843689,
-0.4899650812149048,
0.034791987389326096,
0.425123393535614,
-0.21542561054229736,
-0.3298591375350952,
-0.6435878872871399,
-0.7493037581443787,
0.45703577995300293,
-0.3832688629627228,
0.9751570820808411,
-0.2998019754886627,
1.7949851751327515,
-0.5459732413291931,
0.3745919466018677,
0.6705543398857117,
1.3462657928466797,
0.11801599711179733,
0.029738400131464005,
0.2732107937335968,
0.441872775554657,
-0.04138020798563957,
0.5374852418899536,
1.134076476097107,
0.6407228112220764,
0.4387838840484619,
0.6251702308654785,
-2.175818681716919,
1.3397059440612793,
-0.9517285823822021,
0.34801185131073,
1.350967526435852,
-0.8965452313423157,
0.38620448112487793,
-1.7468795776367188,
-0.05971543490886688,
0.6261699795722961,
-2.201300621032715,
0.16393771767616272,
-1.324972152709961,
-0.5094233751296997,
0.9736623764038086,
0.3348196744918823,
-1.2850841283798218,
0.23334047198295593,
-0.4967080056667328,
1.1033596992492676,
0.4491717517375946,
1.142211675643921,
-1.7329676151275635,
-0.0041946652345359325,
-0.23181912302970886,
0.1279010772705078,
-1.2480958700180054,
-1.578560709953308,
0.5309544205665588,
0.6861805319786072,
0.6571319103240967,
-0.054601047188043594,
0.93495112657547,
-0.9936858415603638,
0.8305447101593018,
-0.9443673491477966,
-1.6620509624481201,
-1.4160912036895752,
-2.321521043777466,
-2.329101800918579,
0.7895724773406982,
-0.513650119304657,
-0.4655832350254059,
2.022484302520752,
-1.0976448059082031,
-1.7968217134475708,
1.1017471551895142,
0.303363561630249,
0.042115021497011185,
2.4093856811523438,
0.21682685613632202,
-0.666543185710907,
0.46234437823295593,
-0.7157493233680725,
0.8704124689102173,
-0.35298535227775574,
1.3514760732650757,
0.4585901200771332,
-1.0178008079528809,
1.6008720397949219,
-0.45367857813835144,
0.5244112610816956,
-0.667884111404419,
-0.45355671644210815,
-0.8005877137184143,
0.32905301451683044,
1.8722848892211914,
-0.39589983224868774,
1.6397982835769653,
-0.40457460284233093,
-1.5852497816085815,
-1.6299247741699219,
0.7772043347358704,
0.4987097978591919,
-0.8479496240615845,
0.08915621787309647,
-0.48603373765945435,
0.1291694939136505,
0.005446559749543667,
1.0692163705825806,
1.2264978885650635,
0.607335090637207,
-0.4131063222885132,
-0.8635812997817993,
0.1934027075767517,
-0.04470318555831909,
-0.7297609448432922,
-1.7776989936828613,
-0.3672987222671509,
0.20860415697097778,
0.6461989283561707,
-1.258607029914856,
1.7204689979553223,
0.8504624366760254,
2.0036659240722656,
0.9823411703109741,
-0.34971630573272705,
1.496488332748413,
0.10411403328180313,
1.8135221004486084,
-0.578999936580658,
0.6526527404785156,
-0.3274279236793518,
-1.122456431388855,
0.7956011295318604,
-0.4308377802371979,
-2.038693904876709,
-0.7688722610473633,
-0.7775957584381104,
-0.17001506686210632,
-0.8040682673454285,
0.9013300538063049,
-0.2697407007217407,
-1.3771696090698242,
0.24233022332191467,
-0.7450827360153198,
0.15594512224197388,
-1.1919662952423096,
0.22223782539367676,
0.7611255645751953,
-0.6556556820869446,
-0.007018215022981167,
-0.22522547841072083,
-1.3164819478988647,
-0.4394743740558624,
0.352788507938385,
1.9092339277267456,
-0.6595006585121155,
0.8955442905426025,
0.9984688758850098,
-0.6604481339454651,
0.11336728185415268,
0.364902138710022,
-0.35844120383262634,
0.8431077003479004,
-1.0847750902175903,
-0.3586108386516571,
1.1714400053024292,
-0.1787148118019104,
-0.6141977310180664,
1.393858790397644,
0.7206094264984131,
-1.0358158349990845,
-0.26625126600265503,
-0.14702734351158142,
-0.8099525570869446,
-0.012615812011063099,
-1.6648685932159424,
-0.18507236242294312,
0.28227606415748596,
-1.4949365854263306,
-0.392380028963089,
-0.2466086447238922,
1.2799227237701416,
-0.14594930410385132,
1.4136794805526733,
-0.3252650797367096,
-0.1763809621334076,
-0.3371846079826355,
-0.4073522984981537,
0.17971888184547424,
-0.25248804688453674,
-0.5381051301956177,
0.20646852254867554,
-0.8908725380897522,
0.30190959572792053,
1.4648420810699463,
0.38357892632484436,
0.0650787428021431,
0.3920886814594269,
1.0379972457885742,
0.3661447763442993,
-0.10574588924646378,
-0.9256953001022339,
-1.5670467615127563,
2.0708022117614746,
-1.3432785272598267,
1.9380905628204346,
0.8908069133758545,
-0.03520451486110687,
-1.8433430194854736,
-1.8230828046798706,
1.2558668851852417,
1.1393377780914307,
2.3827247619628906,
0.5734961032867432,
0.33825305104255676,
-0.7860591411590576,
-0.6782559752464294,
0.386942982673645,
-1.0006415843963623,
-0.7461512684822083,
0.09632174670696259,
2.399014472961426,
1.8758184909820557,
-0.4750972390174866,
-0.22669300436973572,
-0.9672056436538696,
1.3050181865692139,
-0.20259538292884827,
0.15338853001594543,
2.049602746963501,
-0.28865721821784973,
-1.002455472946167,
1.3261280059814453,
-2.330857753753662,
0.21468967199325562,
1.9716277122497559,
0.2799716591835022,
0.12083900719881058,
-1.469130277633667,
-0.6889411807060242,
-0.3056803047657013,
-0.40343838930130005,
-1.2483364343643188,
0.6244045495986938,
-0.3148508667945862,
-0.9111932516098022,
-1.4798085689544678,
0.08565878868103027,
-1.1038506031036377,
-1.7223331928253174,
0.3056153655052185,
1.8697694540023804,
2.052320957183838,
-0.8542864918708801,
1.451537013053894,
-0.23640790581703186,
0.13052132725715637,
1.2674330472946167,
1.292258381843567,
3.0900700092315674,
1.908993124961853,
-1.3039511442184448,
0.6804885268211365,
-0.17287972569465637,
-0.41778451204299927,
1.193302869796753,
-1.1368393898010254,
1.2015595436096191,
-0.2522255778312683,
-1.2460908889770508,
-1.2031631469726562,
1.0909250974655151,
0.5322827696800232,
-0.005993642378598452,
-0.5435790419578552,
1.2665488719940186,
0.043579038232564926,
1.3175636529922485,
0.588006317615509,
-0.43894854187965393,
0.5742919445037842,
-0.31856808066368103,
-0.5609064102172852,
1.5197837352752686,
0.1497008204460144,
-1.5248562097549438,
-2.3441925048828125,
-0.20886901021003723,
-0.8281832933425903,
-0.06366385519504547,
-0.6518353223800659,
-1.051553726196289,
1.5762568712234497,
0.40335240960121155,
-1.3671600818634033,
-0.309566855430603,
-0.341903954744339,
-0.5326560139656067,
2.6296191215515137,
-1.3129862546920776,
-0.18509173393249512,
-1.0498791933059692,
-0.5003781914710999,
1.5885708332061768,
-1.1631202697753906,
-0.17869612574577332,
-1.0549697875976562,
-0.7162831425666809,
-1.2887417078018188,
-0.529498815536499,
-0.05135393887758255,
-0.8876281380653381,
0.6988028883934021,
0.09745695441961288,
-1.074524998664856,
-0.2841736972332001,
-0.8200522065162659,
0.9335593581199646,
-0.07909490168094635,
0.24799978733062744,
1.9313478469848633,
0.37546008825302124,
-0.4043242633342743,
0.7137923240661621,
1.186333179473877,
0.647257387638092,
-0.7160958647727966,
0.10901806503534317,
-0.7224392294883728,
0.3325095772743225,
-1.3647472858428955,
0.22309935092926025,
-2.920398473739624,
0.7134648561477661,
-0.07117652148008347,
-0.13067325949668884,
0.022049836814403534,
-1.285977840423584,
1.127410888671875,
2.6375882625579834,
-1.2053539752960205,
0.49492543935775757,
0.34009847044944763,
1.1645114421844482,
-1.528882622718811,
0.2894527316093445,
-0.43320146203041077,
2.1439390182495117,
0.20645049214363098,
1.2330938577651978,
-0.49460017681121826,
-2.1583244800567627,
0.6279215812683105,
-1.2598544359207153,
-1.0268299579620361,
0.769000768661499,
-0.8628320097923279,
0.11349126696586609,
-1.5089771747589111,
-0.16301167011260986,
-0.8316547274589539,
-1.292933702468872,
0.7585689425468445,
0.09782743453979492,
0.47382691502571106,
-0.5587972402572632,
0.36398759484291077,
-2.1186296939849854,
-1.3752957582473755,
-0.21233606338500977,
-0.9762612581253052,
0.46386390924453735,
-0.32277554273605347,
0.6241816282272339,
-0.1078714057803154,
0.051125895231962204,
0.33145469427108765,
1.324859619140625,
3.446094036102295,
0.2969914972782135,
0.2840329110622406,
-0.12271969020366669,
-1.0036722421646118,
1.3839192390441895,
0.927210807800293,
-0.14507359266281128,
-0.5231583118438721,
-1.0190473794937134,
1.3418247699737549,
2.0162501335144043,
1.0551398992538452,
0.12566620111465454,
-0.9172102212905884,
-0.8579210638999939,
0.038128811866045,
0.22210562229156494,
0.4321803152561188,
0.891769289970398,
0.03907714784145355,
0.11826884001493454,
1.458478569984436,
1.2149592638015747,
-0.38710567355155945,
0.4479696750640869,
-0.9001204371452332,
-0.47978296875953674,
0.3672102093696594,
0.27351248264312744,
0.11815711110830307,
0.4605572819709778,
-1.0170691013336182,
-0.2656468451023102,
-0.4201776385307312,
-0.9116232991218567,
-0.7056898474693298,
-0.45231226086616516,
-0.36351051926612854,
1.5304410457611084,
0.18815705180168152,
-0.5031226277351379,
0.005862676538527012,
-0.7527244091033936,
-0.16821834444999695,
-1.0434353351593018,
0.24014025926589966,
-0.07637222856283188,
-0.03156191483139992,
-0.12449541687965393,
1.8050156831741333,
-0.9260545372962952,
-2.141684055328369,
0.24833953380584717,
0.2996404767036438,
-0.3960505425930023,
0.14543142914772034,
1.7199026346206665,
0.5454334020614624,
1.4090752601623535,
1.2505443096160889,
0.9781309366226196,
-0.5857121348381042,
-1.2675765752792358,
0.7435591220855713,
0.9662686586380005,
-1.3777960538864136,
0.8925725221633911,
-0.1476556658744812,
-0.5159258842468262,
0.751613438129425,
1.2600114345550537,
0.3757418692111969,
-1.936854600906372,
0.879003643989563,
-0.8726216554641724,
0.7987433671951294,
0.6295188665390015,
0.7789483070373535,
0.2256135642528534,
0.754871666431427,
-1.3435640335083008,
-1.102913737297058,
-0.7772620320320129,
-0.5635138750076294,
1.9621210098266602,
-0.262386292219162,
0.5997480154037476,
-0.17202433943748474,
-1.321565866470337,
-0.11025319993495941,
0.7421252131462097,
0.2714864909648895,
-0.4533083736896515,
0.8824777603149414,
-0.6189141869544983,
-1.0491372346878052,
-1.3366672992706299,
-0.4102390706539154,
-0.9261448383331299,
-0.9192723631858826,
1.0318820476531982,
0.8230006694793701,
0.3798305094242096,
1.9004284143447876,
0.5266032218933105,
0.3135729134082794,
-2.6572818756103516,
0.9842759966850281,
0.23719295859336853,
0.0019656792283058167,
0.9903619885444641,
0.2545561194419861,
1.0159380435943604,
0.014017343521118164,
0.500596821308136,
-2.3466901779174805,
2.234156847000122,
-0.1735907793045044,
0.6945019364356995,
-0.037783846259117126,
-0.17120903730392456,
1.1748709678649902,
0.4789818823337555,
0.6382834911346436,
-1.1317247152328491,
0.7819736003875732,
-0.5114446878433228,
1.1111979484558105,
0.8841049671173096,
-0.8523656129837036,
-0.027559811249375343,
1.3910616636276245,
0.47319480776786804,
-0.4635118842124939,
-0.9215074181556702,
-0.8347557783126831,
0.9268302321434021,
1.7599233388900757,
-0.01204208005219698,
-0.0959572046995163,
0.8439938426017761,
0.6185181140899658,
-1.2522557973861694,
0.08244775235652924,
-0.6923953890800476,
-0.6787312626838684,
1.642015814781189,
2.092233657836914,
-0.07229062169790268,
-0.18558552861213684,
-0.6815282106399536,
-1.250769019126892,
0.6823511719703674,
-0.07625290006399155,
0.10808228701353073,
0.6538983583450317,
-0.7032729387283325,
1.1385488510131836,
0.7729044556617737,
0.9608790278434753,
0.0922522321343422,
0.2718137204647064,
0.44584742188453674,
-0.3229985237121582,
-1.1822763681411743,
-0.38574209809303284,
-1.1420745849609375,
-2.461850643157959,
0.4715511202812195,
-0.18703240156173706,
-1.4502899646759033,
0.028404921293258667,
-1.0549708604812622,
0.8994527459144592,
-0.5413217544555664,
-1.0453622341156006,
-1.4661492109298706,
0.3233572244644165,
-0.20015501976013184,
0.9464213848114014,
-1.6404097080230713,
-0.04062020033597946,
1.1509935855865479,
0.8948274254798889,
-0.547565221786499,
0.9827552437782288,
0.26922446489334106,
0.9818246960639954,
0.8771848082542419,
-0.35157328844070435,
0.4447895288467407,
0.1773536503314972,
-1.334816575050354,
0.39258402585983276,
1.1882933378219604,
0.2678929567337036,
1.3925920724868774,
-0.5303657650947571,
0.1315801739692688,
0.4319525361061096,
-0.5658690929412842,
-0.4642396569252014,
-0.4064811170101166,
0.7112940549850464,
0.24109235405921936,
-1.008094310760498,
-0.10121198743581772,
-0.11122941225767136,
-0.2302691638469696,
0.1777113378047943,
-1.5122188329696655,
-0.22237515449523926,
-0.3613691031932831,
-0.5269546508789062,
-1.2250157594680786,
-0.0375167652964592,
1.461079716682434,
-0.8987993001937866,
-0.23628732562065125,
0.5774628520011902,
0.3837852478027344,
0.5976648330688477,
0.68608158826828,
-0.6063069701194763,
-0.30950412154197693,
-0.2606385052204132,
-0.3000609874725342,
0.295737087726593,
1.2587437629699707,
-0.11975064873695374,
-0.9368883371353149,
0.7160966992378235,
-0.46262121200561523,
0.1161823496222496,
1.9958689212799072,
0.05667296051979065,
-0.8144649863243103,
0.3463762402534485,
-0.6653218269348145,
1.8872098922729492,
1.7250356674194336,
1.3070873022079468,
-0.06381742656230927,
-0.9317438006401062,
0.5983766913414001,
-0.20589476823806763,
-0.3890332877635956,
0.9708718061447144,
0.4134620428085327,
-0.1985599398612976,
-1.4258588552474976,
0.48061037063598633,
1.2296805381774902,
-0.9613240957260132,
-0.7462508082389832,
0.1404285728931427,
-0.8683642148971558,
1.111733078956604,
0.6526355147361755,
0.3426576554775238,
0.2224837839603424,
1.519655466079712,
0.7392581701278687,
-0.4727948307991028,
0.4914571940898895,
0.47140997648239136,
-0.22023695707321167,
-2.150596857070923,
-1.0264766216278076,
0.29253512620925903,
-0.4053184390068054,
-1.5336086750030518,
1.2210321426391602,
-1.2363730669021606,
-0.9878436923027039,
0.5645806193351746,
0.047915149480104446,
1.3593735694885254,
0.27485644817352295,
1.6095776557922363,
2.14799427986145,
0.8997334837913513,
0.30364158749580383,
1.3237701654434204,
-0.052189406007528305,
-0.44585442543029785,
1.7719056606292725,
-0.41129034757614136,
0.5459723472595215,
0.996123194694519,
-0.3933083117008209,
-1.0614001750946045,
-0.7512360215187073,
-1.1669691801071167,
-0.6649884581565857,
1.212551236152649,
0.1248411163687706,
-1.0807889699935913,
0.24256879091262817,
1.5906158685684204,
0.09359659254550934,
-0.25888973474502563,
0.5905734300613403,
0.531665027141571,
-0.7027720212936401,
-0.056491680443286896,
-0.9189031720161438,
0.5052663683891296,
-0.14865821599960327,
-0.305038183927536,
0.2640162706375122,
0.432522177696228,
1.2843148708343506,
-0.0010186955332756042,
0.11160625517368317,
1.1599535942077637,
-1.4106571674346924,
1.5144680738449097,
-0.5113576054573059,
0.2856959402561188,
-2.5191900730133057,
1.4032176733016968,
-0.7383469343185425,
1.9362541437149048,
-2.616732120513916,
0.4421202838420868,
-0.6302250027656555,
-0.5547346472740173,
0.310932993888855,
-0.34159913659095764,
0.1561741828918457,
-0.15809482336044312,
-1.0349886417388916,
-0.08752720057964325,
-0.7207490801811218,
0.5615824460983276,
1.174314260482788,
1.360344648361206,
-1.140082836151123,
-0.2555004954338074,
-1.7720332145690918,
-0.12992259860038757,
-0.7672964334487915,
0.2996148467063904,
-1.959592580795288,
-0.07927120476961136,
-1.9133788347244263,
-2.4051363468170166,
-1.409745216369629,
-0.7340685129165649,
0.9883399605751038,
0.17830440402030945,
-0.9821211695671082,
1.1707875728607178,
-0.3846755623817444,
-1.847640037536621,
1.0328905582427979,
-2.215297222137451
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > Where should we host the dataset? I think hosting it under hf.co/datasets (that is HF is the org) is fine as we have ImageNet-1k hosted similarly.
Maybe you can create an org for NYU Courant (this is the institute of the lab of the main author of the dataset if I'm not mistaken), and invite the authors to join.
We don't add datasets without namespace anymore | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 67 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> Where should we host the dataset? I think hosting it under hf.co/datasets (that is HF is the org) is fine as we have ImageNet-1k hosted similarly.
Maybe you can create an org for NYU Courant (this is the institute of the lab of the main author of the dataset if I'm not mistaken), and invite the authors to join.
We don't add datasets without namespace anymore | [
-1.2460134029388428,
-0.9728449583053589,
-0.7658005356788635,
1.4270813465118408,
-0.1195533499121666,
-1.295505404472351,
0.054065804928541183,
-1.0159238576889038,
1.6485549211502075,
-0.7340158224105835,
0.30905866622924805,
-1.6992076635360718,
-0.09951045364141464,
-0.571240246295929,
-0.6937566995620728,
-0.8362858891487122,
-0.3741084635257721,
-0.8251644968986511,
1.0111536979675293,
2.592323064804077,
1.2337089776992798,
-1.3754518032073975,
2.7616329193115234,
0.7322009801864624,
-0.3008500635623932,
-1.0114538669586182,
0.4788528084754944,
-0.0014717308804392815,
-1.3619815111160278,
-0.5375507473945618,
-0.9866481423377991,
0.009971884079277515,
-0.5384342074394226,
-0.49401602149009705,
0.051132939755916595,
0.41962599754333496,
-0.2224486768245697,
-0.3614464998245239,
-0.6129528284072876,
-0.746575653553009,
0.44636407494544983,
-0.35622406005859375,
0.9490121603012085,
-0.30071592330932617,
1.7803318500518799,
-0.5431219935417175,
0.3362790048122406,
0.6725156903266907,
1.3485122919082642,
0.13719278573989868,
-0.0004971008747816086,
0.295686811208725,
0.410379022359848,
-0.031108468770980835,
0.5414268374443054,
1.1912803649902344,
0.6467365026473999,
0.4343845844268799,
0.631556510925293,
-2.2035720348358154,
1.3329185247421265,
-0.9811918139457703,
0.33243197202682495,
1.3967950344085693,
-0.9139471650123596,
0.3760002553462982,
-1.7231636047363281,
-0.0639282688498497,
0.6107525825500488,
-2.222217082977295,
0.16361281275749207,
-1.3085421323776245,
-0.4791066646575928,
0.9563665390014648,
0.36703401803970337,
-1.2573554515838623,
0.22815655171871185,
-0.5094020366668701,
1.1093266010284424,
0.46365487575531006,
1.1755764484405518,
-1.7193101644515991,
-0.05982520058751106,
-0.23739618062973022,
0.12762883305549622,
-1.2825262546539307,
-1.6049139499664307,
0.5045098662376404,
0.6921422481536865,
0.6550790667533875,
-0.08148810267448425,
0.9498689770698547,
-0.9817714095115662,
0.820084273815155,
-0.9103639721870422,
-1.663162350654602,
-1.4429610967636108,
-2.2917990684509277,
-2.303490400314331,
0.7901895046234131,
-0.5273331999778748,
-0.5005977153778076,
2.0392980575561523,
-1.0932645797729492,
-1.7929540872573853,
1.0792573690414429,
0.29714110493659973,
0.03969546779990196,
2.4049344062805176,
0.23594985902309418,
-0.671015202999115,
0.4389907419681549,
-0.6881651878356934,
0.8489488959312439,
-0.3285316228866577,
1.3329839706420898,
0.4620159864425659,
-1.042744755744934,
1.593019723892212,
-0.45182400941848755,
0.5185712575912476,
-0.6830106377601624,
-0.43409448862075806,
-0.7948910593986511,
0.32722318172454834,
1.8561712503433228,
-0.383780837059021,
1.6500952243804932,
-0.42297980189323425,
-1.564389944076538,
-1.6458725929260254,
0.8032988905906677,
0.5056692361831665,
-0.8404441475868225,
0.07642108201980591,
-0.4964267313480377,
0.11515317857265472,
0.02671787142753601,
1.083544373512268,
1.2045129537582397,
0.6204029321670532,
-0.4087604582309723,
-0.8376471996307373,
0.2123553454875946,
-0.03908226266503334,
-0.7206130027770996,
-1.7676336765289307,
-0.34107688069343567,
0.22952504456043243,
0.6325125098228455,
-1.269164800643921,
1.699264407157898,
0.8631991147994995,
1.9718307256698608,
0.9829806685447693,
-0.3567790985107422,
1.4621005058288574,
0.104294553399086,
1.8017678260803223,
-0.561104416847229,
0.6745602488517761,
-0.3192914128303528,
-1.1322160959243774,
0.8031916618347168,
-0.4265859127044678,
-2.016066789627075,
-0.7917231917381287,
-0.7796094417572021,
-0.15486203134059906,
-0.809720516204834,
0.916921854019165,
-0.28130003809928894,
-1.396774172782898,
0.21813800930976868,
-0.7212790846824646,
0.1789613962173462,
-1.189368724822998,
0.23819611966609955,
0.7541906237602234,
-0.6460378766059875,
-0.007913712412118912,
-0.1917751282453537,
-1.3120718002319336,
-0.44596704840660095,
0.3365449905395508,
1.9036668539047241,
-0.6928381323814392,
0.9021310806274414,
1.0081820487976074,
-0.6677942276000977,
0.153327077627182,
0.3364255428314209,
-0.3598979711532593,
0.8742638826370239,
-1.0595800876617432,
-0.3403969407081604,
1.175402283668518,
-0.18022297322750092,
-0.6454290151596069,
1.436610221862793,
0.7409765720367432,
-1.0403313636779785,
-0.28011712431907654,
-0.12795104086399078,
-0.8609436750411987,
-0.04246257618069649,
-1.6747798919677734,
-0.1940784603357315,
0.27844372391700745,
-1.4747037887573242,
-0.41730186343193054,
-0.2682496905326843,
1.3219716548919678,
-0.15270623564720154,
1.427722692489624,
-0.3665178418159485,
-0.16803009808063507,
-0.3473798930644989,
-0.3930988311767578,
0.21451623737812042,
-0.2407599836587906,
-0.5470731854438782,
0.2207636535167694,
-0.8724703788757324,
0.2679953873157501,
1.4650784730911255,
0.4248603880405426,
0.07796628773212433,
0.3987600803375244,
1.0779467821121216,
0.3648793697357178,
-0.1348777413368225,
-0.9243372082710266,
-1.5961846113204956,
2.0905661582946777,
-1.3434596061706543,
1.92976975440979,
0.8780725002288818,
-0.015192651189863682,
-1.854209065437317,
-1.8239154815673828,
1.2534211874008179,
1.132983684539795,
2.3699042797088623,
0.5601333379745483,
0.36146992444992065,
-0.7882881760597229,
-0.6738935112953186,
0.34809431433677673,
-1.0010414123535156,
-0.7277082800865173,
0.11134873330593109,
2.4047842025756836,
1.86806321144104,
-0.47572633624076843,
-0.21462884545326233,
-0.9962294697761536,
1.2654818296432495,
-0.20228224992752075,
0.1696404218673706,
2.0474443435668945,
-0.29806625843048096,
-0.9902013540267944,
1.3231289386749268,
-2.3230552673339844,
0.20291706919670105,
1.9712461233139038,
0.23910275101661682,
0.11013409495353699,
-1.461928129196167,
-0.7165466547012329,
-0.30276820063591003,
-0.4195981025695801,
-1.257736325263977,
0.6047818064689636,
-0.3336554765701294,
-0.8972697257995605,
-1.4709142446517944,
0.08616532385349274,
-1.1131685972213745,
-1.6992844343185425,
0.2992538809776306,
1.8677676916122437,
2.010192632675171,
-0.8443039059638977,
1.4761137962341309,
-0.25406259298324585,
0.12665963172912598,
1.2552170753479004,
1.320354700088501,
3.1159229278564453,
1.9095535278320312,
-1.3484596014022827,
0.6938549876213074,
-0.16619420051574707,
-0.4253772795200348,
1.1699254512786865,
-1.1414602994918823,
1.2060083150863647,
-0.23273047804832458,
-1.2934645414352417,
-1.2193530797958374,
1.0765953063964844,
0.5286855697631836,
0.021232545375823975,
-0.5579878687858582,
1.248336911201477,
0.009027971886098385,
1.3201665878295898,
0.5787263512611389,
-0.42847728729248047,
0.5804346203804016,
-0.3432358503341675,
-0.5451331734657288,
1.509874939918518,
0.1354369968175888,
-1.4934968948364258,
-2.354872226715088,
-0.20669612288475037,
-0.8165579438209534,
-0.052613791078329086,
-0.6697611808776855,
-1.0072563886642456,
1.5992897748947144,
0.40790387988090515,
-1.3153408765792847,
-0.3584606349468231,
-0.35850220918655396,
-0.5071866512298584,
2.6453158855438232,
-1.3249766826629639,
-0.16660094261169434,
-1.0479320287704468,
-0.5145255923271179,
1.6082993745803833,
-1.1680723428726196,
-0.1890915483236313,
-1.0418576002120972,
-0.7100644111633301,
-1.2899129390716553,
-0.5488155484199524,
-0.04732070490717888,
-0.9156171083450317,
0.7094241380691528,
0.08220647275447845,
-1.0449937582015991,
-0.2752167582511902,
-0.8246368765830994,
0.9309508800506592,
-0.10263718664646149,
0.2340804785490036,
1.9308568239212036,
0.40528082847595215,
-0.42277663946151733,
0.7168036103248596,
1.1666477918624878,
0.6331403851509094,
-0.6876991391181946,
0.08627937734127045,
-0.6972651481628418,
0.3117647171020508,
-1.3795874118804932,
0.22691796720027924,
-2.9562809467315674,
0.6830207109451294,
-0.07648962736129761,
-0.11130641400814056,
0.0235820934176445,
-1.2729235887527466,
1.1221177577972412,
2.611652135848999,
-1.2179876565933228,
0.4790024161338806,
0.3648945391178131,
1.197471022605896,
-1.5762521028518677,
0.2771083414554596,
-0.432045042514801,
2.1252171993255615,
0.2186671644449234,
1.2506539821624756,
-0.46888887882232666,
-2.1194539070129395,
0.6096392273902893,
-1.2664731740951538,
-1.0020173788070679,
0.7729765176773071,
-0.8446875810623169,
0.13954904675483704,
-1.510942816734314,
-0.16169990599155426,
-0.8019194006919861,
-1.253198266029358,
0.754383385181427,
0.10166035592556,
0.4654024541378021,
-0.5729063749313354,
0.3360389471054077,
-2.103915214538574,
-1.3303207159042358,
-0.19317764043807983,
-0.987308919429779,
0.4724850356578827,
-0.35747668147087097,
0.5947741270065308,
-0.09949220716953278,
0.05597386509180069,
0.30713897943496704,
1.3054143190383911,
3.4306039810180664,
0.31788715720176697,
0.2601480484008789,
-0.12726736068725586,
-0.9932737350463867,
1.4037879705429077,
0.9478167295455933,
-0.1642058938741684,
-0.5280203223228455,
-0.9964156150817871,
1.3527593612670898,
2.015042543411255,
1.0583407878875732,
0.1405773013830185,
-0.9106155633926392,
-0.8755404353141785,
0.04545045644044876,
0.2393403947353363,
0.4550771713256836,
0.885495126247406,
0.01621498167514801,
0.11253384500741959,
1.489089846611023,
1.1959412097930908,
-0.4108191430568695,
0.4673391580581665,
-0.9173631072044373,
-0.5012044906616211,
0.3514483869075775,
0.2773312032222748,
0.10387452691793442,
0.4789884090423584,
-1.010040521621704,
-0.26040521264076233,
-0.4062020778656006,
-0.8998311161994934,
-0.6930029392242432,
-0.4463305175304413,
-0.36582261323928833,
1.5172433853149414,
0.18519489467144012,
-0.5073763132095337,
-0.024660106748342514,
-0.7543188333511353,
-0.21346552670001984,
-1.0384323596954346,
0.28667572140693665,
-0.08701270073652267,
-0.016462747007608414,
-0.127736896276474,
1.7604161500930786,
-0.900713324546814,
-2.133815050125122,
0.20455732941627502,
0.2820250689983368,
-0.3974963128566742,
0.14968891441822052,
1.728084921836853,
0.5330831408500671,
1.4119676351547241,
1.273666262626648,
0.9496781229972839,
-0.5521622896194458,
-1.2659105062484741,
0.7281973361968994,
0.9496572613716125,
-1.3614718914031982,
0.9020376801490784,
-0.16386093199253082,
-0.5498153567314148,
0.7375795841217041,
1.2727978229522705,
0.3895641267299652,
-1.9486297369003296,
0.8599216341972351,
-0.8772134780883789,
0.7785226106643677,
0.6408107876777649,
0.7669413089752197,
0.22177627682685852,
0.7713848352432251,
-1.3433276414871216,
-1.1423348188400269,
-0.7434461712837219,
-0.5976927876472473,
1.929739236831665,
-0.25139448046684265,
0.5761920213699341,
-0.1873633712530136,
-1.304892659187317,
-0.07750929892063141,
0.7480911016464233,
0.26100096106529236,
-0.4730266332626343,
0.8934696912765503,
-0.5966539978981018,
-1.069185733795166,
-1.3408960103988647,
-0.39185115694999695,
-0.911477267742157,
-0.9003884792327881,
1.0479788780212402,
0.8592062592506409,
0.3390582799911499,
1.893852949142456,
0.5222058296203613,
0.30099162459373474,
-2.630089521408081,
0.9550020098686218,
0.24215397238731384,
-0.01566796749830246,
1.0047188997268677,
0.23449768126010895,
1.0261378288269043,
0.041610945016145706,
0.4799920618534088,
-2.365636110305786,
2.206371545791626,
-0.18895098567008972,
0.671193540096283,
-0.06977289915084839,
-0.16932907700538635,
1.1918563842773438,
0.4641532897949219,
0.6643384695053101,
-1.1501375436782837,
0.7940247058868408,
-0.5251251459121704,
1.102293848991394,
0.9120709300041199,
-0.8648727536201477,
-0.03285234794020653,
1.4167404174804688,
0.4948098659515381,
-0.48630115389823914,
-0.9143234491348267,
-0.8837335109710693,
0.9121080040931702,
1.7286016941070557,
0.008359084837138653,
-0.07975543290376663,
0.8363004326820374,
0.6471263766288757,
-1.2679383754730225,
0.10695560276508331,
-0.6473835706710815,
-0.6543804407119751,
1.6572051048278809,
2.0944478511810303,
-0.06127692759037018,
-0.1957903951406479,
-0.662588894367218,
-1.2455766201019287,
0.6871258616447449,
-0.07749666273593903,
0.12554258108139038,
0.6818867325782776,
-0.699889600276947,
1.172737956047058,
0.7609133720397949,
0.9530401825904846,
0.11903390288352966,
0.2879864573478699,
0.4299253821372986,
-0.3112815320491791,
-1.1953788995742798,
-0.38253581523895264,
-1.1511143445968628,
-2.426842212677002,
0.4541250765323639,
-0.1919313371181488,
-1.4652827978134155,
0.045146066695451736,
-1.061577320098877,
0.894743025302887,
-0.5935666561126709,
-1.0473710298538208,
-1.4473512172698975,
0.29661086201667786,
-0.17586494982242584,
0.904587984085083,
-1.655503749847412,
-0.0565866120159626,
1.2024847269058228,
0.8930277824401855,
-0.5105910897254944,
0.9879259467124939,
0.2759648263454437,
1.0046428442001343,
0.8823472261428833,
-0.36390507221221924,
0.4624294638633728,
0.15687620639801025,
-1.3368970155715942,
0.440199077129364,
1.1860543489456177,
0.2942570447921753,
1.4193496704101562,
-0.5007079243659973,
0.1305573731660843,
0.44911760091781616,
-0.544867217540741,
-0.4714309275150299,
-0.4150965213775635,
0.7071439623832703,
0.21258549392223358,
-0.9647818803787231,
-0.07996859401464462,
-0.09664182364940643,
-0.26306504011154175,
0.17386581003665924,
-1.490890622138977,
-0.21048256754875183,
-0.3673972487449646,
-0.5267270803451538,
-1.2196767330169678,
-0.02153737097978592,
1.451930284500122,
-0.8992445468902588,
-0.22380012273788452,
0.5873165726661682,
0.3758121132850647,
0.5918976664543152,
0.7077255249023438,
-0.610727071762085,
-0.28254157304763794,
-0.28604716062545776,
-0.3170979917049408,
0.3088269531726837,
1.270321011543274,
-0.13107001781463623,
-0.9307512044906616,
0.7118191123008728,
-0.4609147608280182,
0.11487558484077454,
2.0086092948913574,
0.0395066924393177,
-0.7977232933044434,
0.3169993460178375,
-0.68131023645401,
1.8982352018356323,
1.7419198751449585,
1.3042340278625488,
-0.057239335030317307,
-0.959957480430603,
0.5799697637557983,
-0.18285709619522095,
-0.38246431946754456,
1.0051252841949463,
0.41162073612213135,
-0.19034890830516815,
-1.4164737462997437,
0.48417750000953674,
1.2063164710998535,
-0.9465546011924744,
-0.707702100276947,
0.12791042029857635,
-0.8798872828483582,
1.1233248710632324,
0.6681888103485107,
0.3058624267578125,
0.21304921805858612,
1.4981393814086914,
0.7287306785583496,
-0.4566376507282257,
0.44013118743896484,
0.498879611492157,
-0.21669067442417145,
-2.151160478591919,
-0.9953526258468628,
0.30243754386901855,
-0.3959813714027405,
-1.5305125713348389,
1.228213906288147,
-1.215047836303711,
-0.982717752456665,
0.5468998551368713,
0.04184480383992195,
1.3668828010559082,
0.28392264246940613,
1.6312788724899292,
2.1826260089874268,
0.929693877696991,
0.2759065330028534,
1.2996630668640137,
-0.06690312176942825,
-0.43353527784347534,
1.7544435262680054,
-0.38986873626708984,
0.5269554257392883,
1.005395770072937,
-0.40515825152397156,
-1.0760552883148193,
-0.7532500624656677,
-1.1954622268676758,
-0.6618815660476685,
1.2008371353149414,
0.1318081021308899,
-1.065845251083374,
0.2022254317998886,
1.550405740737915,
0.10568224638700485,
-0.25105276703834534,
0.5926868319511414,
0.547677755355835,
-0.6868168711662292,
-0.07328446209430695,
-0.9294095635414124,
0.5151599645614624,
-0.1461382657289505,
-0.3012615442276001,
0.26480141282081604,
0.4152510166168213,
1.2880512475967407,
0.007178684696555138,
0.1529644876718521,
1.1691129207611084,
-1.4240102767944336,
1.512892246246338,
-0.5583301782608032,
0.2588798403739929,
-2.523833990097046,
1.4483506679534912,
-0.7659683227539062,
1.9197227954864502,
-2.6128814220428467,
0.46932315826416016,
-0.6220107674598694,
-0.5366826057434082,
0.36272332072257996,
-0.3821585178375244,
0.14527060091495514,
-0.12673743069171906,
-1.0463060140609741,
-0.09667667001485825,
-0.7091406583786011,
0.5639593005180359,
1.1881495714187622,
1.319329857826233,
-1.1518126726150513,
-0.2935498058795929,
-1.7436665296554565,
-0.16931571066379547,
-0.7939937114715576,
0.325070321559906,
-1.969663381576538,
-0.07370184361934662,
-1.9186246395111084,
-2.444824457168579,
-1.3985621929168701,
-0.7294204831123352,
1.0181161165237427,
0.20475901663303375,
-0.9802895784378052,
1.1578357219696045,
-0.4183865189552307,
-1.8293250799179077,
1.0354608297348022,
-2.214754819869995
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | Updates: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/discussions/5
The entire process (preparing multiple archives, preparing data loading script, etc.) was fun and engaging, thanks to the documentation. I believe we could work on a small blog post that would work as a reference for the future contributors following this path. What say?
Cc: @lhoestq @osanseviero | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 49 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
Updates: https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/discussions/5
The entire process (preparing multiple archives, preparing data loading script, etc.) was fun and engaging, thanks to the documentation. I believe we could work on a small blog post that would work as a reference for the future contributors following this path. What say?
Cc: @lhoestq @osanseviero | [
-1.240260124206543,
-0.9698141813278198,
-0.7448647022247314,
1.4538019895553589,
-0.10162544250488281,
-1.271998643875122,
0.061522625386714935,
-0.9880688190460205,
1.6347531080245972,
-0.6904858946800232,
0.3260641098022461,
-1.6857664585113525,
-0.10317085683345795,
-0.5748937726020813,
-0.676932692527771,
-0.8449775576591492,
-0.39112526178359985,
-0.8190450668334961,
1.005531907081604,
2.576860189437866,
1.2442491054534912,
-1.368139386177063,
2.7450878620147705,
0.7584494948387146,
-0.3159666955471039,
-1.005323886871338,
0.47252416610717773,
-0.010511770844459534,
-1.348279595375061,
-0.5197956562042236,
-0.972419261932373,
-0.006708797998726368,
-0.5605567693710327,
-0.4724615216255188,
0.058577246963977814,
0.4350678622722626,
-0.19999000430107117,
-0.3447566330432892,
-0.6584358215332031,
-0.7185960412025452,
0.4641425609588623,
-0.3531495928764343,
0.964504599571228,
-0.2900944650173187,
1.78835928440094,
-0.5823740363121033,
0.35718202590942383,
0.6582191586494446,
1.338516354560852,
0.10274524986743927,
0.03155055269598961,
0.3008973002433777,
0.43909314274787903,
-0.03034646436572075,
0.5456319451332092,
1.1839019060134888,
0.6483690738677979,
0.44441789388656616,
0.612939715385437,
-2.184673309326172,
1.3201968669891357,
-0.9816076159477234,
0.3478924036026001,
1.3711187839508057,
-0.894370436668396,
0.37326696515083313,
-1.7452852725982666,
-0.06196281686425209,
0.617622435092926,
-2.19224214553833,
0.17227177321910858,
-1.328011393547058,
-0.5225124359130859,
0.9525394439697266,
0.36412250995635986,
-1.293450951576233,
0.19512568414211273,
-0.5068730711936951,
1.0968300104141235,
0.4738340675830841,
1.1570098400115967,
-1.7290713787078857,
-0.016432376578450203,
-0.2292432337999344,
0.11499621719121933,
-1.2721093893051147,
-1.574874758720398,
0.5268690586090088,
0.6752040386199951,
0.680994987487793,
-0.05948804318904877,
0.9196385145187378,
-0.9817467331886292,
0.8494904637336731,
-0.9312196969985962,
-1.6369889974594116,
-1.4372786283493042,
-2.3254406452178955,
-2.3267343044281006,
0.8001166582107544,
-0.5209829211235046,
-0.4727560877799988,
2.007049798965454,
-1.0530719757080078,
-1.7937930822372437,
1.075177550315857,
0.3014422357082367,
0.07435184717178345,
2.382742166519165,
0.2556977868080139,
-0.6789554953575134,
0.4387943744659424,
-0.7162356376647949,
0.8743042349815369,
-0.3419252932071686,
1.3450089693069458,
0.46359550952911377,
-1.028495192527771,
1.590223789215088,
-0.4626871645450592,
0.5318830609321594,
-0.6918992400169373,
-0.45063385367393494,
-0.7815879583358765,
0.31649819016456604,
1.8663583993911743,
-0.38376155495643616,
1.6184817552566528,
-0.41640448570251465,
-1.5888822078704834,
-1.6189061403274536,
0.7941073179244995,
0.5001538991928101,
-0.8495047092437744,
0.09623011201620102,
-0.520812451839447,
0.097933828830719,
0.03056081011891365,
1.0885653495788574,
1.2120006084442139,
0.6285144090652466,
-0.45839133858680725,
-0.8441599011421204,
0.18582211434841156,
-0.029250245541334152,
-0.7254722714424133,
-1.7598804235458374,
-0.3665374219417572,
0.24035654962062836,
0.6467937231063843,
-1.2662190198898315,
1.7314209938049316,
0.8436904549598694,
2.0116448402404785,
0.949901282787323,
-0.3475910425186157,
1.4779374599456787,
0.05091124400496483,
1.8169584274291992,
-0.5864312052726746,
0.6436687707901001,
-0.3338499069213867,
-1.11040198802948,
0.815449059009552,
-0.42503058910369873,
-2.0415849685668945,
-0.8039805293083191,
-0.7844693660736084,
-0.17705664038658142,
-0.8387121558189392,
0.8929733633995056,
-0.3022543489933014,
-1.3946887254714966,
0.20888720452785492,
-0.7541179656982422,
0.1964094042778015,
-1.203946828842163,
0.1902952343225479,
0.7423810362815857,
-0.6460309624671936,
-0.008770273067057133,
-0.20027591288089752,
-1.3052914142608643,
-0.4589739739894867,
0.3835633099079132,
1.909851312637329,
-0.6305115818977356,
0.8927454352378845,
1.0232515335083008,
-0.6616383790969849,
0.1474500298500061,
0.31306585669517517,
-0.36689260601997375,
0.876308798789978,
-1.065272569656372,
-0.3389025926589966,
1.2034776210784912,
-0.16917072236537933,
-0.6597862243652344,
1.4401220083236694,
0.7355897426605225,
-1.0664634704589844,
-0.3209175169467926,
-0.13613374531269073,
-0.8192722797393799,
-0.03138885647058487,
-1.6451618671417236,
-0.1704195886850357,
0.2959594428539276,
-1.4578083753585815,
-0.3909529149532318,
-0.26880598068237305,
1.3030911684036255,
-0.1559712141752243,
1.4245991706848145,
-0.3247119188308716,
-0.172622412443161,
-0.3276362121105194,
-0.410026878118515,
0.1933843046426773,
-0.257720947265625,
-0.5355768203735352,
0.2290026843547821,
-0.8890537023544312,
0.2928214371204376,
1.4868929386138916,
0.37131181359291077,
0.09575109928846359,
0.3770589828491211,
1.0694515705108643,
0.3822610676288605,
-0.10881197452545166,
-0.9379891157150269,
-1.5781646966934204,
2.0944135189056396,
-1.35065758228302,
1.9115086793899536,
0.8892307877540588,
-0.03481234982609749,
-1.8560181856155396,
-1.855022668838501,
1.241382360458374,
1.133230447769165,
2.3804078102111816,
0.5480549335479736,
0.3477247953414917,
-0.777818500995636,
-0.6673092842102051,
0.3407502770423889,
-1.0044047832489014,
-0.7634665966033936,
0.13217730820178986,
2.4317948818206787,
1.8812341690063477,
-0.44391903281211853,
-0.24526242911815643,
-0.9799957871437073,
1.2619439363479614,
-0.20359782874584198,
0.1622147262096405,
2.0867226123809814,
-0.2963334918022156,
-0.9973354339599609,
1.3169394731521606,
-2.3603434562683105,
0.21076326072216034,
1.9811090230941772,
0.2858034074306488,
0.13610829412937164,
-1.458504319190979,
-0.7116830348968506,
-0.3336959779262543,
-0.44616585969924927,
-1.2213994264602661,
0.6216435432434082,
-0.30851224064826965,
-0.9221875667572021,
-1.449399471282959,
0.07555144280195236,
-1.100057601928711,
-1.7325621843338013,
0.29424935579299927,
1.863932728767395,
2.039212703704834,
-0.8520950078964233,
1.4378567934036255,
-0.24919280409812927,
0.10618671029806137,
1.2821507453918457,
1.3247531652450562,
3.099809408187866,
1.8926355838775635,
-1.3389229774475098,
0.7222567200660706,
-0.18593616783618927,
-0.44303688406944275,
1.1301759481430054,
-1.1558096408843994,
1.1724398136138916,
-0.26483598351478577,
-1.2415437698364258,
-1.2214521169662476,
1.0879271030426025,
0.5237165093421936,
0.014661098830401897,
-0.5413060188293457,
1.2682092189788818,
0.08175627887248993,
1.3089485168457031,
0.5935642123222351,
-0.43299952149391174,
0.5587776899337769,
-0.29158806800842285,
-0.5413564443588257,
1.516936182975769,
0.14719247817993164,
-1.5150834321975708,
-2.3326520919799805,
-0.2072926014661789,
-0.8572866916656494,
-0.09824129194021225,
-0.6240676641464233,
-1.0233874320983887,
1.5929850339889526,
0.39881446957588196,
-1.3672456741333008,
-0.3018101155757904,
-0.3246239423751831,
-0.4803290367126465,
2.668811798095703,
-1.3309298753738403,
-0.178802952170372,
-1.059516191482544,
-0.5133155584335327,
1.640334129333496,
-1.1622428894042969,
-0.20585767924785614,
-1.053275227546692,
-0.7215700745582581,
-1.2568854093551636,
-0.5302615165710449,
-0.04214669018983841,
-0.9371839165687561,
0.6742995381355286,
0.055953845381736755,
-1.0514360666275024,
-0.278311163187027,
-0.8187152147293091,
0.9676318168640137,
-0.08752910047769547,
0.2596108615398407,
1.9392476081848145,
0.40841615200042725,
-0.3974023163318634,
0.7149823904037476,
1.2025930881500244,
0.621060848236084,
-0.7133570909500122,
0.08817853033542633,
-0.6859467029571533,
0.3395894765853882,
-1.389825463294983,
0.2431717962026596,
-2.924136161804199,
0.6911472082138062,
-0.08030259609222412,
-0.1438097208738327,
-0.004285341128706932,
-1.2939646244049072,
1.1599018573760986,
2.633486270904541,
-1.230058193206787,
0.48869773745536804,
0.3656814992427826,
1.1655751466751099,
-1.5509908199310303,
0.26228663325309753,
-0.42001020908355713,
2.1436965465545654,
0.22077611088752747,
1.2645174264907837,
-0.4707626700401306,
-2.122361183166504,
0.5974763631820679,
-1.2766401767730713,
-0.989707887172699,
0.7797564268112183,
-0.8393723964691162,
0.16987690329551697,
-1.5258313417434692,
-0.13629135489463806,
-0.8120133876800537,
-1.2742959260940552,
0.7120513916015625,
0.14440114796161652,
0.444229394197464,
-0.5777876973152161,
0.3553396463394165,
-2.1168770790100098,
-1.3532356023788452,
-0.1835528314113617,
-0.976874589920044,
0.4668126702308655,
-0.34956830739974976,
0.6217580437660217,
-0.07250820100307465,
0.050862815231084824,
0.3303386867046356,
1.3242952823638916,
3.4462788105010986,
0.30602777004241943,
0.26248833537101746,
-0.09988505393266678,
-0.9772406816482544,
1.3955665826797485,
0.9377932548522949,
-0.1685311496257782,
-0.5324329137802124,
-0.999792218208313,
1.3620113134384155,
2.024484157562256,
1.0885214805603027,
0.13449469208717346,
-0.8963961601257324,
-0.9300388693809509,
0.050532758235931396,
0.25849011540412903,
0.4301431477069855,
0.8579503297805786,
0.010429692454636097,
0.12238460034132004,
1.4522446393966675,
1.1769561767578125,
-0.39804792404174805,
0.4668434262275696,
-0.9432777762413025,
-0.4822162389755249,
0.33523520827293396,
0.2729274332523346,
0.12757955491542816,
0.47240862250328064,
-1.0230436325073242,
-0.293435275554657,
-0.3963906168937683,
-0.8896535038948059,
-0.7031139135360718,
-0.43778374791145325,
-0.36880549788475037,
1.5085463523864746,
0.18105024099349976,
-0.4881982207298279,
0.018831394612789154,
-0.7329640984535217,
-0.1817246675491333,
-1.0637915134429932,
0.2653413712978363,
-0.07478045672178268,
-0.001960365567356348,
-0.12710727751255035,
1.7648506164550781,
-0.9263028502464294,
-2.156043291091919,
0.22135691344738007,
0.2972756326198578,
-0.40215450525283813,
0.15496467053890228,
1.710359811782837,
0.5387499928474426,
1.4216551780700684,
1.229012131690979,
0.9698500037193298,
-0.5550549030303955,
-1.278521180152893,
0.7609354257583618,
0.9843372106552124,
-1.3618117570877075,
0.8891053199768066,
-0.19219033420085907,
-0.4989176094532013,
0.725606381893158,
1.2344024181365967,
0.3541136384010315,
-1.962093710899353,
0.8435144424438477,
-0.8682229518890381,
0.7598069310188293,
0.6604094505310059,
0.7662230730056763,
0.23099201917648315,
0.734760582447052,
-1.3534387350082397,
-1.1165214776992798,
-0.7635915875434875,
-0.5917156338691711,
1.9437239170074463,
-0.24824880063533783,
0.5866283178329468,
-0.15539702773094177,
-1.2873129844665527,
-0.08520501106977463,
0.7603299617767334,
0.26350006461143494,
-0.4972534477710724,
0.9204609394073486,
-0.6280492544174194,
-1.0396933555603027,
-1.3288582563400269,
-0.42212945222854614,
-0.9158498644828796,
-0.9140211939811707,
1.0190510749816895,
0.838072657585144,
0.370089590549469,
1.900510311126709,
0.5191859006881714,
0.34185126423835754,
-2.638585329055786,
0.9661977887153625,
0.24637611210346222,
0.02247636765241623,
1.001105785369873,
0.24372322857379913,
1.0250942707061768,
0.05151139944791794,
0.5116332173347473,
-2.3789689540863037,
2.2273054122924805,
-0.16007916629314423,
0.6532170176506042,
-0.03891706094145775,
-0.17526090145111084,
1.180762767791748,
0.478982150554657,
0.6489155292510986,
-1.1426492929458618,
0.782474935054779,
-0.5081308484077454,
1.1074508428573608,
0.837061882019043,
-0.8635064959526062,
-0.027260545641183853,
1.4024559259414673,
0.4682092070579529,
-0.45224499702453613,
-0.9151555895805359,
-0.843787431716919,
0.9347233772277832,
1.7084522247314453,
-0.012650171294808388,
-0.07822586596012115,
0.8282573819160461,
0.6289928555488586,
-1.2490482330322266,
0.0657346323132515,
-0.6620465517044067,
-0.6594018936157227,
1.6393133401870728,
2.0892765522003174,
-0.07830914109945297,
-0.1810203194618225,
-0.7033296227455139,
-1.2561231851577759,
0.6905133724212646,
-0.11966247856616974,
0.13918007910251617,
0.6586193442344666,
-0.7003651857376099,
1.142114281654358,
0.745069682598114,
0.9683329463005066,
0.08878738433122635,
0.2921925485134125,
0.42359399795532227,
-0.3148036003112793,
-1.1893559694290161,
-0.4009479284286499,
-1.1719229221343994,
-2.45780611038208,
0.4438166916370392,
-0.19850647449493408,
-1.460498571395874,
0.06837902963161469,
-1.0943901538848877,
0.8905448317527771,
-0.5968558192253113,
-1.0255168676376343,
-1.4245773553848267,
0.3464234471321106,
-0.19895538687705994,
0.939329206943512,
-1.6685467958450317,
-0.06900288164615631,
1.1550238132476807,
0.8677830696105957,
-0.5373563170433044,
0.9727426767349243,
0.25492438673973083,
0.9735379219055176,
0.8597812056541443,
-0.2985105514526367,
0.48284900188446045,
0.1872042715549469,
-1.3397444486618042,
0.38749435544013977,
1.1849857568740845,
0.28266850113868713,
1.3895187377929688,
-0.4909796118736267,
0.15796110033988953,
0.44120869040489197,
-0.6060320138931274,
-0.48507076501846313,
-0.3975878655910492,
0.6997122168540955,
0.23547007143497467,
-1.0422873497009277,
-0.10036133974790573,
-0.10281720757484436,
-0.26362180709838867,
0.18041865527629852,
-1.4782164096832275,
-0.2505168616771698,
-0.34984463453292847,
-0.5370321273803711,
-1.2364367246627808,
-0.020059380680322647,
1.4272719621658325,
-0.8794073462486267,
-0.22922064363956451,
0.5717802047729492,
0.37954509258270264,
0.5812273025512695,
0.7235293388366699,
-0.6130877137184143,
-0.2602751851081848,
-0.25884461402893066,
-0.27845239639282227,
0.3135151267051697,
1.266739845275879,
-0.09391997009515762,
-0.937757670879364,
0.7439802289009094,
-0.48582321405410767,
0.1503007709980011,
2.0235331058502197,
0.046126868575811386,
-0.7904415726661682,
0.2949855625629425,
-0.6742842197418213,
1.868952751159668,
1.7562750577926636,
1.2694824934005737,
-0.056203339248895645,
-0.9568347334861755,
0.5893662571907043,
-0.18260864913463593,
-0.36313512921333313,
0.9939173460006714,
0.38146987557411194,
-0.22253793478012085,
-1.4161781072616577,
0.4647549092769623,
1.2468500137329102,
-0.934619128704071,
-0.746300995349884,
0.16552004218101501,
-0.8965276479721069,
1.1350294351577759,
0.6711106896400452,
0.32601067423820496,
0.206726536154747,
1.4924638271331787,
0.7300342917442322,
-0.4544565975666046,
0.46410277485847473,
0.4790211319923401,
-0.21093645691871643,
-2.146249532699585,
-0.9880408644676208,
0.29356127977371216,
-0.4061526656150818,
-1.5266767740249634,
1.2000088691711426,
-1.2235455513000488,
-0.9830995798110962,
0.559006929397583,
0.0476677268743515,
1.3794246912002563,
0.2959865927696228,
1.6132748126983643,
2.165151596069336,
0.8887041807174683,
0.27580222487449646,
1.2997519969940186,
-0.02980710193514824,
-0.46173998713493347,
1.745566725730896,
-0.40644875168800354,
0.5547980070114136,
0.9955853223800659,
-0.4248278737068176,
-1.0840108394622803,
-0.7546815276145935,
-1.172914743423462,
-0.6787368655204773,
1.2357516288757324,
0.15068043768405914,
-1.0718780755996704,
0.2414848655462265,
1.598907232284546,
0.10779470950365067,
-0.22403381764888763,
0.5860445499420166,
0.5422700047492981,
-0.7535880208015442,
-0.05018414929509163,
-0.9274689555168152,
0.5209366679191589,
-0.11684537678956985,
-0.30207958817481995,
0.26288673281669617,
0.43530622124671936,
1.2789844274520874,
0.0077551910653710365,
0.1485995352268219,
1.1394256353378296,
-1.4392075538635254,
1.5477337837219238,
-0.5160509347915649,
0.2706863582134247,
-2.515977382659912,
1.4228812456130981,
-0.7557788491249084,
1.8902454376220703,
-2.6088407039642334,
0.4429977536201477,
-0.5892035365104675,
-0.57333904504776,
0.3179248571395874,
-0.3602893054485321,
0.14977122843265533,
-0.1413499116897583,
-1.0207934379577637,
-0.09907887130975723,
-0.7459468245506287,
0.5647771954536438,
1.1706832647323608,
1.3489220142364502,
-1.1361197233200073,
-0.28137657046318054,
-1.7573710680007935,
-0.17334909737110138,
-0.8070834279060364,
0.31517651677131653,
-1.945900559425354,
-0.05123052000999451,
-1.916096806526184,
-2.38142728805542,
-1.3954966068267822,
-0.7394770383834839,
0.9972481727600098,
0.19390444457530975,
-0.9560296535491943,
1.136155128479004,
-0.4074379801750183,
-1.8484766483306885,
0.9995435476303101,
-2.2385191917419434
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > I believe we could work on a small blog post that would work as a reference for the future contributors following this path. What say?
@polinaeterna already mentioned it would be nice to present this process for audio (it's exactly the same), I believe it can be useful to many people | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 52 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> I believe we could work on a small blog post that would work as a reference for the future contributors following this path. What say?
@polinaeterna already mentioned it would be nice to present this process for audio (it's exactly the same), I believe it can be useful to many people | [
-1.2498047351837158,
-0.9619775414466858,
-0.7630162239074707,
1.480979323387146,
-0.11475542187690735,
-1.260727882385254,
0.05008315667510033,
-0.9921640753746033,
1.6455448865890503,
-0.7147794365882874,
0.3447566330432892,
-1.6768184900283813,
-0.07218116521835327,
-0.6016589403152466,
-0.7140501737594604,
-0.8472907543182373,
-0.36985141038894653,
-0.8093405961990356,
1.0021063089370728,
2.567842960357666,
1.2244179248809814,
-1.3822945356369019,
2.7450222969055176,
0.7471526861190796,
-0.2933697998523712,
-1.0070246458053589,
0.46465787291526794,
-0.005487763788551092,
-1.3247318267822266,
-0.531804084777832,
-0.9700009822845459,
-0.006666541565209627,
-0.5499743223190308,
-0.4588492512702942,
0.06027402728796005,
0.4246049225330353,
-0.2162993997335434,
-0.3552824556827545,
-0.6410693526268005,
-0.7323815226554871,
0.46199774742126465,
-0.373654842376709,
0.9830049872398376,
-0.29870083928108215,
1.7935762405395508,
-0.5725056529045105,
0.3510534465312958,
0.6254366040229797,
1.3491761684417725,
0.12406821548938751,
0.015837006270885468,
0.2669835388660431,
0.43309280276298523,
-0.04664727672934532,
0.557174801826477,
1.1761627197265625,
0.6489276885986328,
0.4738613963127136,
0.6131073236465454,
-2.175534725189209,
1.3158255815505981,
-0.983943521976471,
0.32816338539123535,
1.3579212427139282,
-0.9213573336601257,
0.3841882646083832,
-1.7182248830795288,
-0.07044555991888046,
0.6475505232810974,
-2.214824914932251,
0.15331779420375824,
-1.3160191774368286,
-0.5117581486701965,
0.9658250212669373,
0.36197614669799805,
-1.2885562181472778,
0.2151675671339035,
-0.48581600189208984,
1.111799716949463,
0.435419499874115,
1.1437859535217285,
-1.7267473936080933,
0.0065755704417824745,
-0.20440228283405304,
0.11410322040319443,
-1.2848607301712036,
-1.5803112983703613,
0.518041729927063,
0.6744651794433594,
0.6801203489303589,
-0.053009260445833206,
0.914953351020813,
-0.9733121991157532,
0.8470636010169983,
-0.9436301589012146,
-1.6413060426712036,
-1.4195740222930908,
-2.316160202026367,
-2.3145132064819336,
0.8172310590744019,
-0.4933163821697235,
-0.4748593866825104,
2.0126280784606934,
-1.06191086769104,
-1.7907233238220215,
1.0826048851013184,
0.2780141234397888,
0.03952154144644737,
2.4119577407836914,
0.244358092546463,
-0.685386061668396,
0.46686461567878723,
-0.7383100986480713,
0.8886933326721191,
-0.3760112226009369,
1.359481692314148,
0.45836761593818665,
-1.02232825756073,
1.5700910091400146,
-0.4839792251586914,
0.5120774507522583,
-0.702124297618866,
-0.4519900977611542,
-0.8013302087783813,
0.32869839668273926,
1.8680249452590942,
-0.35928767919540405,
1.6204369068145752,
-0.4082384705543518,
-1.591485857963562,
-1.6274255514144897,
0.7886936664581299,
0.4921497702598572,
-0.8449909090995789,
0.10529246181249619,
-0.5054342746734619,
0.12455588579177856,
0.037329260259866714,
1.0965453386306763,
1.2012736797332764,
0.6149823665618896,
-0.4360449016094208,
-0.8389065861701965,
0.21009916067123413,
-0.04176740348339081,
-0.6979430317878723,
-1.7596040964126587,
-0.34993216395378113,
0.23905298113822937,
0.6158971190452576,
-1.290921926498413,
1.7481282949447632,
0.8540463447570801,
1.9938682317733765,
0.9638428092002869,
-0.34334826469421387,
1.4818812608718872,
0.0706709772348404,
1.821277379989624,
-0.5665789246559143,
0.6526101231575012,
-0.340358167886734,
-1.0921244621276855,
0.7831177115440369,
-0.43908798694610596,
-2.0239715576171875,
-0.8100733757019043,
-0.7799445986747742,
-0.16258996725082397,
-0.8556963801383972,
0.9157299399375916,
-0.28288182616233826,
-1.394006371498108,
0.2542952597141266,
-0.7687782049179077,
0.19491484761238098,
-1.1914119720458984,
0.2230921983718872,
0.7695647478103638,
-0.6588267087936401,
-0.00685357628390193,
-0.2170633226633072,
-1.3079756498336792,
-0.42898035049438477,
0.3636452257633209,
1.9497895240783691,
-0.6422504186630249,
0.9039920568466187,
1.0080934762954712,
-0.6284261345863342,
0.11145978420972824,
0.33382195234298706,
-0.34584182500839233,
0.8615067601203918,
-1.077839732170105,
-0.3333200216293335,
1.1993627548217773,
-0.17513324320316315,
-0.6342822313308716,
1.4422687292099,
0.7310972213745117,
-1.0533255338668823,
-0.30704614520072937,
-0.14387564361095428,
-0.8152036070823669,
-0.03273804858326912,
-1.6497600078582764,
-0.180048868060112,
0.30582308769226074,
-1.4718598127365112,
-0.3894971013069153,
-0.25960421562194824,
1.2918306589126587,
-0.20740942656993866,
1.4209747314453125,
-0.32858189940452576,
-0.18340222537517548,
-0.3305502235889435,
-0.43712684512138367,
0.19738073647022247,
-0.2673238515853882,
-0.569397509098053,
0.21702192723751068,
-0.8396444916725159,
0.29048269987106323,
1.4806749820709229,
0.36639800667762756,
0.08686138689517975,
0.37331292033195496,
1.0732325315475464,
0.37541916966438293,
-0.09331443905830383,
-0.9477241039276123,
-1.571908712387085,
2.083592414855957,
-1.376500129699707,
1.9374873638153076,
0.9017747044563293,
-0.024119270965456963,
-1.8266079425811768,
-1.8103139400482178,
1.2487239837646484,
1.1550920009613037,
2.3738842010498047,
0.5602928400039673,
0.33063217997550964,
-0.7898776531219482,
-0.656406819820404,
0.34634995460510254,
-1.0365506410598755,
-0.7784578800201416,
0.13529416918754578,
2.425269603729248,
1.8632084131240845,
-0.4284437894821167,
-0.24801230430603027,
-0.982688307762146,
1.2939770221710205,
-0.19835296273231506,
0.13261902332305908,
2.071315050125122,
-0.2700657248497009,
-1.0014309883117676,
1.2944422960281372,
-2.3666024208068848,
0.21715980768203735,
1.9855290651321411,
0.31083738803863525,
0.09780669212341309,
-1.494704008102417,
-0.7056918144226074,
-0.3369586169719696,
-0.4101112484931946,
-1.2424043416976929,
0.622356653213501,
-0.3082345128059387,
-0.8891249299049377,
-1.4629745483398438,
0.1044626384973526,
-1.0886136293411255,
-1.722429871559143,
0.25050485134124756,
1.8583922386169434,
2.0723705291748047,
-0.8621604442596436,
1.4345239400863647,
-0.2446931153535843,
0.10325215011835098,
1.2761902809143066,
1.3055741786956787,
3.113162040710449,
1.8909121751785278,
-1.313412070274353,
0.6825262308120728,
-0.19363583624362946,
-0.4212644100189209,
1.1647511720657349,
-1.1618255376815796,
1.205334186553955,
-0.23712798953056335,
-1.2460192441940308,
-1.2376211881637573,
1.0570530891418457,
0.538692057132721,
-0.011601696722209454,
-0.539137065410614,
1.2719619274139404,
0.06729781627655029,
1.3174073696136475,
0.5818800330162048,
-0.41292884945869446,
0.5467991232872009,
-0.30739814043045044,
-0.5463054180145264,
1.5212939977645874,
0.12855666875839233,
-1.5121352672576904,
-2.3353025913238525,
-0.19635626673698425,
-0.8616465926170349,
-0.07487916946411133,
-0.6359628438949585,
-1.0513020753860474,
1.58468759059906,
0.39492088556289673,
-1.342977523803711,
-0.29282042384147644,
-0.33865344524383545,
-0.5369133353233337,
2.672407865524292,
-1.3383322954177856,
-0.1977575123310089,
-1.058350682258606,
-0.5235213041305542,
1.6313326358795166,
-1.1583651304244995,
-0.19031250476837158,
-1.0331535339355469,
-0.7336327433586121,
-1.2699410915374756,
-0.5225822329521179,
-0.07523690909147263,
-0.9040857553482056,
0.6643974184989929,
0.09054145961999893,
-1.0799975395202637,
-0.2777717113494873,
-0.8156766295433044,
0.9253994822502136,
-0.06531175225973129,
0.2794020473957062,
1.941948652267456,
0.3804098665714264,
-0.42534658312797546,
0.7368267178535461,
1.1948336362838745,
0.6234883666038513,
-0.6908015608787537,
0.10312402248382568,
-0.6812844276428223,
0.3250183165073395,
-1.3677688837051392,
0.2463492453098297,
-2.9371867179870605,
0.6867695450782776,
-0.07293260097503662,
-0.14992780983448029,
0.015929508954286575,
-1.2710191011428833,
1.1652772426605225,
2.626329183578491,
-1.2104934453964233,
0.508775532245636,
0.3350152373313904,
1.1764270067214966,
-1.5816142559051514,
0.27257075905799866,
-0.3948296904563904,
2.1464688777923584,
0.21634384989738464,
1.2434054613113403,
-0.47545912861824036,
-2.1428744792938232,
0.6218719482421875,
-1.2957508563995361,
-1.011138677597046,
0.7891609072685242,
-0.8546873927116394,
0.12913104891777039,
-1.4746134281158447,
-0.15730907022953033,
-0.8180036544799805,
-1.2928171157836914,
0.7175419926643372,
0.10111650079488754,
0.45769909024238586,
-0.5580847859382629,
0.36728256940841675,
-2.1347670555114746,
-1.3484033346176147,
-0.20010238885879517,
-0.9837601780891418,
0.47802451252937317,
-0.3645351827144623,
0.61602783203125,
-0.10720980912446976,
0.05671781301498413,
0.3229609429836273,
1.354862928390503,
3.438486337661743,
0.3483639657497406,
0.31028690934181213,
-0.1018495112657547,
-0.9705245494842529,
1.3669744729995728,
0.9315541982650757,
-0.19093964993953705,
-0.5296441912651062,
-0.9927442669868469,
1.366231083869934,
1.996313452720642,
1.053308367729187,
0.1280197948217392,
-0.88956618309021,
-0.9024704694747925,
0.048541437834501266,
0.2364717572927475,
0.43937036395072937,
0.8838550448417664,
-0.006695432588458061,
0.12016065418720245,
1.455750584602356,
1.168814778327942,
-0.40250352025032043,
0.44893303513526917,
-0.921379029750824,
-0.4673204720020294,
0.34344449639320374,
0.27339401841163635,
0.09545575082302094,
0.4642675220966339,
-0.9687835574150085,
-0.26454755663871765,
-0.39941155910491943,
-0.9020451307296753,
-0.7020590305328369,
-0.4527188837528229,
-0.34741997718811035,
1.5287014245986938,
0.18382391333580017,
-0.4936768412590027,
0.022672604769468307,
-0.7561094760894775,
-0.18882368505001068,
-1.0631815195083618,
0.22387251257896423,
-0.06536753475666046,
-0.044749293476343155,
-0.09685524553060532,
1.8164194822311401,
-0.897116482257843,
-2.145472288131714,
0.19350098073482513,
0.30207937955856323,
-0.38777634501457214,
0.15001080930233002,
1.718877911567688,
0.5251027941703796,
1.4006774425506592,
1.2335903644561768,
0.9713135361671448,
-0.5707739591598511,
-1.322012186050415,
0.75331711769104,
0.9597236514091492,
-1.358166217803955,
0.9010950326919556,
-0.17620663344860077,
-0.46869513392448425,
0.7047731876373291,
1.2590937614440918,
0.3818571865558624,
-1.926930546760559,
0.8318884372711182,
-0.8894197940826416,
0.7759396433830261,
0.659594714641571,
0.754299521446228,
0.24081742763519287,
0.741814136505127,
-1.3379193544387817,
-1.115446925163269,
-0.7563799619674683,
-0.5996843576431274,
1.9574222564697266,
-0.2392890900373459,
0.5853918790817261,
-0.150138720870018,
-1.3162401914596558,
-0.09160086512565613,
0.7626340389251709,
0.3065652549266815,
-0.4480455219745636,
0.9017735123634338,
-0.6546870470046997,
-1.0594041347503662,
-1.3362345695495605,
-0.42431020736694336,
-0.8886311054229736,
-0.9399291276931763,
1.0326544046401978,
0.8423662781715393,
0.33965662121772766,
1.9125734567642212,
0.5523501634597778,
0.31817978620529175,
-2.6397886276245117,
0.9683995246887207,
0.24827459454536438,
0.007359755225479603,
0.9780632853507996,
0.2500338554382324,
1.0290369987487793,
0.058474794030189514,
0.4824274480342865,
-2.3914432525634766,
2.255711078643799,
-0.19509878754615784,
0.6816547513008118,
-0.04237469285726547,
-0.1795801967382431,
1.195215106010437,
0.4748983085155487,
0.6426752805709839,
-1.1498911380767822,
0.7634716629981995,
-0.5241304636001587,
1.125057339668274,
0.858530580997467,
-0.8556962013244629,
-0.02302657440304756,
1.394425630569458,
0.4364944398403168,
-0.4793252944946289,
-0.9269076585769653,
-0.8590666651725769,
0.926507294178009,
1.7150357961654663,
0.01704740896821022,
-0.07887939363718033,
0.8336160182952881,
0.5927273035049438,
-1.2528523206710815,
0.0630902349948883,
-0.6853294968605042,
-0.708583414554596,
1.6573864221572876,
2.1078450679779053,
-0.06011969596147537,
-0.21697784960269928,
-0.6938880085945129,
-1.2455943822860718,
0.7093722820281982,
-0.08656392991542816,
0.14784826338291168,
0.6696786880493164,
-0.6830748915672302,
1.124467134475708,
0.7932785749435425,
0.9587584733963013,
0.10732481628656387,
0.2766839861869812,
0.4464662969112396,
-0.30789583921432495,
-1.1748749017715454,
-0.39658212661743164,
-1.1914613246917725,
-2.46126389503479,
0.40525126457214355,
-0.20654229819774628,
-1.4457541704177856,
0.06303733587265015,
-1.0697212219238281,
0.8607534170150757,
-0.5954560041427612,
-1.0414321422576904,
-1.424964427947998,
0.3098980486392975,
-0.21176742017269135,
0.9355360865592957,
-1.6472777128219604,
-0.07885108888149261,
1.1330790519714355,
0.9056136012077332,
-0.5391673445701599,
0.9730135798454285,
0.21324987709522247,
0.9929890036582947,
0.8647776246070862,
-0.3282465934753418,
0.47608983516693115,
0.192148357629776,
-1.3464505672454834,
0.39536094665527344,
1.1909418106079102,
0.2542775571346283,
1.3917744159698486,
-0.49247515201568604,
0.14170348644256592,
0.4239102602005005,
-0.5836841464042664,
-0.4920215606689453,
-0.3962426781654358,
0.7123409509658813,
0.241964191198349,
-0.9871939420700073,
-0.0690254420042038,
-0.10686919838190079,
-0.24665164947509766,
0.16067534685134888,
-1.4995157718658447,
-0.23540161550045013,
-0.34635069966316223,
-0.5817469358444214,
-1.224790096282959,
-0.03444680571556091,
1.429768443107605,
-0.9045600295066833,
-0.21324796974658966,
0.5573081970214844,
0.40522390604019165,
0.5765816569328308,
0.6896704435348511,
-0.634943962097168,
-0.26642680168151855,
-0.22769302129745483,
-0.2699710428714752,
0.3368724286556244,
1.279018759727478,
-0.09319508820772171,
-0.937498152256012,
0.7099947333335876,
-0.47818440198898315,
0.15375705063343048,
1.995797038078308,
0.05423855036497116,
-0.7866748571395874,
0.3044768273830414,
-0.6950951814651489,
1.894215703010559,
1.7401893138885498,
1.2590572834014893,
-0.04229661077260971,
-0.9621986150741577,
0.6238303780555725,
-0.18676882982254028,
-0.3767658472061157,
0.9610169529914856,
0.3933868408203125,
-0.22971825301647186,
-1.4141340255737305,
0.451058030128479,
1.2251510620117188,
-0.9019825458526611,
-0.75546795129776,
0.143318772315979,
-0.8794714212417603,
1.1024430990219116,
0.6376658082008362,
0.3594704270362854,
0.22857576608657837,
1.5353875160217285,
0.7674863934516907,
-0.47165006399154663,
0.4787260591983795,
0.45868387818336487,
-0.20179596543312073,
-2.1560678482055664,
-1.0184931755065918,
0.2964428961277008,
-0.40516605973243713,
-1.527642011642456,
1.2124265432357788,
-1.209085464477539,
-0.9707415699958801,
0.568279504776001,
0.04352342337369919,
1.3869030475616455,
0.283165842294693,
1.5730496644973755,
2.147712230682373,
0.8856673240661621,
0.285322368144989,
1.2883391380310059,
-0.07753179967403412,
-0.4719574451446533,
1.7560378313064575,
-0.41103965044021606,
0.5570077896118164,
0.9781882762908936,
-0.40942394733428955,
-1.0829501152038574,
-0.7395814061164856,
-1.1713249683380127,
-0.6806633472442627,
1.2065857648849487,
0.17066214978694916,
-1.066361427307129,
0.24785232543945312,
1.5928443670272827,
0.07990177720785141,
-0.22004088759422302,
0.5791863799095154,
0.5579013228416443,
-0.7493360042572021,
-0.05544925853610039,
-0.9190829992294312,
0.5090077519416809,
-0.12942524254322052,
-0.2933470606803894,
0.26565372943878174,
0.4154537618160248,
1.2548203468322754,
0.022094212472438812,
0.1320679932832718,
1.1336735486984253,
-1.4203568696975708,
1.554703950881958,
-0.4961566627025604,
0.2727554738521576,
-2.5118415355682373,
1.4215962886810303,
-0.7492016553878784,
1.9160029888153076,
-2.633141279220581,
0.44483017921447754,
-0.5986301302909851,
-0.5654786825180054,
0.33638525009155273,
-0.3679949939250946,
0.1789036989212036,
-0.14436033368110657,
-1.0373657941818237,
-0.08326917886734009,
-0.7335101962089539,
0.5599889755249023,
1.167420506477356,
1.3487181663513184,
-1.1171009540557861,
-0.25893211364746094,
-1.756327748298645,
-0.14143778383731842,
-0.7841605544090271,
0.2940841019153595,
-1.955106258392334,
-0.062072496861219406,
-1.9364725351333618,
-2.3573999404907227,
-1.4005653858184814,
-0.7157434821128845,
0.9833176732063293,
0.1786595731973648,
-0.9706845879554749,
1.1692875623703003,
-0.40315723419189453,
-1.8167352676391602,
1.0027917623519897,
-2.2235589027404785
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | Cool. Let's work on that after the NYU Depth Dataset is fully in on Hub (under the appropriate org). π€ | ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 20 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
Cool. Let's work on that after the NYU Depth Dataset is fully in on Hub (under the appropriate org). π€ | [
-1.2555408477783203,
-0.9777818322181702,
-0.7503148913383484,
1.4747987985610962,
-0.085499107837677,
-1.2650866508483887,
0.055142972618341446,
-0.9797371625900269,
1.6250982284545898,
-0.6978059411048889,
0.33140185475349426,
-1.7021369934082031,
-0.12146373093128204,
-0.5797374248504639,
-0.6852308511734009,
-0.8862292766571045,
-0.38016659021377563,
-0.7876648902893066,
1.010277509689331,
2.5853710174560547,
1.2269058227539062,
-1.3487153053283691,
2.757154941558838,
0.7526284456253052,
-0.31430619955062866,
-1.015668272972107,
0.4781236946582794,
0.015311287716031075,
-1.334769606590271,
-0.5354861617088318,
-0.981496274471283,
-0.01819247379899025,
-0.526705265045166,
-0.45975926518440247,
0.09390658140182495,
0.42776185274124146,
-0.214842289686203,
-0.34746748208999634,
-0.641090989112854,
-0.7473035454750061,
0.44384682178497314,
-0.38513171672821045,
0.9552764892578125,
-0.3028154671192169,
1.7997974157333374,
-0.5846573710441589,
0.3445824682712555,
0.6587226986885071,
1.3590316772460938,
0.11910836398601532,
0.01852632686495781,
0.31270450353622437,
0.4274134933948517,
-0.021271144971251488,
0.549103319644928,
1.161259651184082,
0.5997433066368103,
0.4276920557022095,
0.6106599569320679,
-2.1867339611053467,
1.316138505935669,
-0.9841801524162292,
0.32257288694381714,
1.395556926727295,
-0.9168906807899475,
0.3819963037967682,
-1.7029005289077759,
-0.0358765572309494,
0.6482265591621399,
-2.224064350128174,
0.1649724394083023,
-1.313692569732666,
-0.5064277648925781,
0.9692885279655457,
0.38678422570228577,
-1.2799116373062134,
0.2013920247554779,
-0.502661943435669,
1.122968077659607,
0.4666546583175659,
1.144832968711853,
-1.7168233394622803,
-0.04409889876842499,
-0.20308449864387512,
0.0944008082151413,
-1.3096367120742798,
-1.5776318311691284,
0.5007797479629517,
0.698586642742157,
0.6684406995773315,
-0.044126275926828384,
0.9002385139465332,
-0.9673550724983215,
0.8297104835510254,
-0.9244040250778198,
-1.6365388631820679,
-1.4386751651763916,
-2.3284084796905518,
-2.3160293102264404,
0.812235414981842,
-0.5280014872550964,
-0.5030027031898499,
2.006045341491699,
-1.0716259479522705,
-1.8109816312789917,
1.0884339809417725,
0.3149944245815277,
0.05882969871163368,
2.4176077842712402,
0.24066974222660065,
-0.6646775007247925,
0.4381025433540344,
-0.7263793349266052,
0.8474352359771729,
-0.37209370732307434,
1.3539115190505981,
0.476203978061676,
-1.0557769536972046,
1.5732167959213257,
-0.46808475255966187,
0.5120298862457275,
-0.7084901332855225,
-0.4210495054721832,
-0.8132177591323853,
0.340423583984375,
1.868685007095337,
-0.36972081661224365,
1.6447352170944214,
-0.3986499011516571,
-1.5671573877334595,
-1.6279072761535645,
0.7688489556312561,
0.4952816367149353,
-0.8361460566520691,
0.09920263290405273,
-0.503202497959137,
0.1271655559539795,
0.030553702265024185,
1.0725075006484985,
1.2105158567428589,
0.5926806330680847,
-0.44065552949905396,
-0.8453401327133179,
0.21115471422672272,
-0.02811579592525959,
-0.6973395943641663,
-1.7634217739105225,
-0.36969342827796936,
0.25356510281562805,
0.617888331413269,
-1.285080909729004,
1.7123781442642212,
0.8366766571998596,
2.015528917312622,
0.951113224029541,
-0.36107054352760315,
1.4818344116210938,
0.10133327543735504,
1.816836953163147,
-0.5903629064559937,
0.686985194683075,
-0.28851160407066345,
-1.0863515138626099,
0.7772316932678223,
-0.4495023488998413,
-2.0212013721466064,
-0.8188343048095703,
-0.7798379063606262,
-0.14778177440166473,
-0.8284114003181458,
0.920534610748291,
-0.28068411350250244,
-1.3981176614761353,
0.2175411432981491,
-0.7827441096305847,
0.19875486195087433,
-1.2244436740875244,
0.19912447035312653,
0.7678783535957336,
-0.6222996711730957,
-0.02249920926988125,
-0.1947581022977829,
-1.3190644979476929,
-0.43989020586013794,
0.3684941232204437,
1.9416885375976562,
-0.6519051194190979,
0.9152711033821106,
0.998456597328186,
-0.6596455574035645,
0.16886639595031738,
0.3296395242214203,
-0.3827880322933197,
0.874927282333374,
-1.0755290985107422,
-0.3408440053462982,
1.2243107557296753,
-0.1732516884803772,
-0.675447940826416,
1.456030011177063,
0.7806227803230286,
-1.058835744857788,
-0.29108527302742004,
-0.1545587182044983,
-0.7923316359519958,
-0.00017523765563964844,
-1.6612069606781006,
-0.1678214967250824,
0.28920722007751465,
-1.4264771938323975,
-0.3719877600669861,
-0.2667172849178314,
1.3258092403411865,
-0.17433419823646545,
1.4233345985412598,
-0.3319345712661743,
-0.19006019830703735,
-0.35665833950042725,
-0.421259343624115,
0.20754149556159973,
-0.2929651737213135,
-0.5652363896369934,
0.21965427696704865,
-0.8481820225715637,
0.31035304069519043,
1.4399017095565796,
0.3923814594745636,
0.09814830124378204,
0.3957182765007019,
1.0723470449447632,
0.33632034063339233,
-0.13152003288269043,
-0.97243732213974,
-1.617158055305481,
2.078322649002075,
-1.3322505950927734,
1.9267324209213257,
0.8886795043945312,
-0.015032311901450157,
-1.8128770589828491,
-1.8079367876052856,
1.2265052795410156,
1.1427927017211914,
2.3666069507598877,
0.5643194317817688,
0.3339921534061432,
-0.8148578405380249,
-0.6777163147926331,
0.3013794720172882,
-1.0224697589874268,
-0.7249084115028381,
0.13835753500461578,
2.447308301925659,
1.8802951574325562,
-0.43599894642829895,
-0.2131986767053604,
-0.9810010194778442,
1.2780559062957764,
-0.23683740198612213,
0.14494267106056213,
2.086273431777954,
-0.2568574547767639,
-0.9925732612609863,
1.278646469116211,
-2.3479974269866943,
0.19406773149967194,
1.970666527748108,
0.2716503143310547,
0.10169202089309692,
-1.490667462348938,
-0.7506013512611389,
-0.36568543314933777,
-0.39711299538612366,
-1.2634344100952148,
0.6168680191040039,
-0.3060658574104309,
-0.9121536016464233,
-1.4556275606155396,
0.08854664862155914,
-1.0969399213790894,
-1.7270740270614624,
0.2787758708000183,
1.833174467086792,
2.043443441390991,
-0.8450911045074463,
1.435791254043579,
-0.22505256533622742,
0.08195602893829346,
1.2641938924789429,
1.3248039484024048,
3.0827267169952393,
1.9145697355270386,
-1.3177802562713623,
0.7201975584030151,
-0.1820201575756073,
-0.4412754774093628,
1.2092748880386353,
-1.1769468784332275,
1.2160838842391968,
-0.23104757070541382,
-1.2778106927871704,
-1.2556824684143066,
1.0871427059173584,
0.558336615562439,
-0.016887066885828972,
-0.5795100331306458,
1.2690967321395874,
0.036874618381261826,
1.348576307296753,
0.5723580718040466,
-0.4399477243423462,
0.5454219579696655,
-0.3236929774284363,
-0.5622760653495789,
1.5364329814910889,
0.12829361855983734,
-1.5163246393203735,
-2.372286796569824,
-0.22186194360256195,
-0.833296000957489,
-0.10049568116664886,
-0.6609337329864502,
-1.0430577993392944,
1.600746989250183,
0.4171934127807617,
-1.3434712886810303,
-0.3223188817501068,
-0.3433973491191864,
-0.5186211466789246,
2.694030284881592,
-1.3038904666900635,
-0.17514242231845856,
-1.0581445693969727,
-0.48748892545700073,
1.642303466796875,
-1.1458489894866943,
-0.18966667354106903,
-1.067700743675232,
-0.7363182306289673,
-1.2741076946258545,
-0.5459523797035217,
-0.07875679433345795,
-0.9143029451370239,
0.6839233040809631,
0.0736374706029892,
-1.0682077407836914,
-0.27409160137176514,
-0.818968653678894,
0.9555190205574036,
-0.04638438671827316,
0.25078094005584717,
1.9260785579681396,
0.39482659101486206,
-0.3928580582141876,
0.7264771461486816,
1.1692516803741455,
0.6429648399353027,
-0.7223889231681824,
0.0794420838356018,
-0.6703536510467529,
0.30043652653694153,
-1.3767881393432617,
0.23802116513252258,
-2.966174602508545,
0.6953270435333252,
-0.07684394717216492,
-0.14624635875225067,
-0.009551351889967918,
-1.2543139457702637,
1.1948508024215698,
2.6433303356170654,
-1.2388050556182861,
0.4924312233924866,
0.3622155487537384,
1.1834832429885864,
-1.5792255401611328,
0.27884581685066223,
-0.41829296946525574,
2.1360175609588623,
0.20301036536693573,
1.2452419996261597,
-0.46715715527534485,
-2.11480712890625,
0.623870313167572,
-1.2911624908447266,
-0.9952860474586487,
0.7775628566741943,
-0.853280246257782,
0.15583276748657227,
-1.5075241327285767,
-0.15501566231250763,
-0.7956370115280151,
-1.3004854917526245,
0.7295117974281311,
0.10879641771316528,
0.4707026779651642,
-0.519025981426239,
0.360765665769577,
-2.140216588973999,
-1.362058162689209,
-0.2147017866373062,
-0.9896178245544434,
0.47879457473754883,
-0.3419864773750305,
0.6112529039382935,
-0.06927953660488129,
0.07028931379318237,
0.3218322992324829,
1.3405675888061523,
3.4259016513824463,
0.3235340416431427,
0.28118637204170227,
-0.07816462218761444,
-0.9910926818847656,
1.3716609477996826,
0.9248997569084167,
-0.17506153881549835,
-0.5105450749397278,
-0.9642660021781921,
1.3606306314468384,
2.0255165100097656,
1.0922112464904785,
0.15474101901054382,
-0.9193458557128906,
-0.9115965962409973,
0.04156424477696419,
0.22541695833206177,
0.4200153350830078,
0.8366779685020447,
0.006859078072011471,
0.1155436635017395,
1.4785287380218506,
1.2013126611709595,
-0.39987707138061523,
0.4649446904659271,
-0.9318543076515198,
-0.47733020782470703,
0.34708619117736816,
0.2556099593639374,
0.11929379403591156,
0.4983789324760437,
-0.9941644072532654,
-0.2578693926334381,
-0.38186681270599365,
-0.8805602788925171,
-0.6951652765274048,
-0.46089968085289,
-0.3805382251739502,
1.5189917087554932,
0.19190286099910736,
-0.4776304364204407,
0.007276743650436401,
-0.744240939617157,
-0.17237220704555511,
-1.0704941749572754,
0.25579142570495605,
-0.0758260041475296,
-0.015141583047807217,
-0.12620410323143005,
1.7736995220184326,
-0.9287717342376709,
-2.1523542404174805,
0.187383770942688,
0.3265950679779053,
-0.4056450426578522,
0.13964445888996124,
1.7115956544876099,
0.5259751677513123,
1.413465142250061,
1.2205113172531128,
0.9751554131507874,
-0.5633020401000977,
-1.3096879720687866,
0.7441359758377075,
0.9726731181144714,
-1.3255765438079834,
0.9221082329750061,
-0.18465031683444977,
-0.49399974942207336,
0.7047629356384277,
1.269832730293274,
0.36361873149871826,
-1.9192148447036743,
0.843756377696991,
-0.8700891733169556,
0.7963557839393616,
0.6394901871681213,
0.752856969833374,
0.19971589744091034,
0.7434804439544678,
-1.3593332767486572,
-1.1248546838760376,
-0.7711275815963745,
-0.5726033449172974,
1.9385186433792114,
-0.26253581047058105,
0.5594934821128845,
-0.1697111874818802,
-1.3003793954849243,
-0.05344501510262489,
0.7594943046569824,
0.29188022017478943,
-0.44316011667251587,
0.9199217557907104,
-0.6174290180206299,
-1.0726959705352783,
-1.3403427600860596,
-0.3844280540943146,
-0.8848750591278076,
-0.9220377206802368,
1.0537300109863281,
0.8562033772468567,
0.346943199634552,
1.8635691404342651,
0.5228205919265747,
0.31547075510025024,
-2.6298794746398926,
0.9718424677848816,
0.22512781620025635,
0.032172419130802155,
0.9727471470832825,
0.23234763741493225,
1.0492058992385864,
0.03825179487466812,
0.4775354564189911,
-2.354710102081299,
2.1929056644439697,
-0.1777559071779251,
0.6425181031227112,
-0.038829006254673004,
-0.15902134776115417,
1.1825361251831055,
0.45909762382507324,
0.6604838371276855,
-1.1374200582504272,
0.7834703326225281,
-0.5048642754554749,
1.1049120426177979,
0.8598648905754089,
-0.8860744833946228,
-0.020779699087142944,
1.4215010404586792,
0.47476959228515625,
-0.456344336271286,
-0.9253653287887573,
-0.8448524475097656,
0.9276423454284668,
1.6897190809249878,
0.00817757286131382,
-0.1088247001171112,
0.8423119187355042,
0.616748571395874,
-1.2345484495162964,
0.08466668426990509,
-0.6759119033813477,
-0.6544455885887146,
1.6643234491348267,
2.126098155975342,
-0.059731047600507736,
-0.20472466945648193,
-0.7058769464492798,
-1.2248995304107666,
0.6800941824913025,
-0.10970138013362885,
0.11927880346775055,
0.66085284948349,
-0.6757009029388428,
1.124429702758789,
0.7477758526802063,
0.9747194647789001,
0.1218823790550232,
0.2795395255088806,
0.4291898012161255,
-0.3218163549900055,
-1.217628002166748,
-0.4145577847957611,
-1.168137550354004,
-2.460355520248413,
0.4304937720298767,
-0.22452162206172943,
-1.4633069038391113,
0.06861422955989838,
-1.0970568656921387,
0.869217574596405,
-0.6102964282035828,
-1.0131655931472778,
-1.4085201025009155,
0.31468430161476135,
-0.22394104301929474,
0.8932752013206482,
-1.6448862552642822,
-0.06462877988815308,
1.1787837743759155,
0.8654502630233765,
-0.5270200967788696,
0.9709120988845825,
0.242428719997406,
1.0033502578735352,
0.8815401196479797,
-0.3183348774909973,
0.4791543483734131,
0.17454829812049866,
-1.3469622135162354,
0.44968289136886597,
1.184556245803833,
0.30223751068115234,
1.421485424041748,
-0.49090439081192017,
0.13768218457698822,
0.42686501145362854,
-0.5846714377403259,
-0.4893166422843933,
-0.38212087750434875,
0.7088281512260437,
0.24854841828346252,
-1.0301369428634644,
-0.06135569512844086,
-0.10669082403182983,
-0.2503300905227661,
0.1667335033416748,
-1.5021343231201172,
-0.2271304428577423,
-0.33163511753082275,
-0.5578972697257996,
-1.2142443656921387,
-0.02742856740951538,
1.4061676263809204,
-0.9179308414459229,
-0.20647777616977692,
0.5521388053894043,
0.38854536414146423,
0.6047492623329163,
0.716607928276062,
-0.6054612398147583,
-0.26303812861442566,
-0.2729511857032776,
-0.26890701055526733,
0.3280222713947296,
1.231416940689087,
-0.10783529281616211,
-0.9078394770622253,
0.7180636525154114,
-0.48614153265953064,
0.15813802182674408,
2.023547887802124,
0.0589914433658123,
-0.8080264329910278,
0.31056299805641174,
-0.6776725053787231,
1.889526605606079,
1.7242701053619385,
1.2850706577301025,
-0.04959489032626152,
-0.9707364439964294,
0.5875717401504517,
-0.1641124188899994,
-0.38792842626571655,
0.9844585657119751,
0.42514312267303467,
-0.19904032349586487,
-1.388695240020752,
0.46450144052505493,
1.2141164541244507,
-0.9200127124786377,
-0.7655421495437622,
0.16767679154872894,
-0.9106043577194214,
1.1186696290969849,
0.6635435819625854,
0.31105107069015503,
0.23280704021453857,
1.4872597455978394,
0.7423130869865417,
-0.4820592701435089,
0.43269509077072144,
0.44794097542762756,
-0.23207789659500122,
-2.1235873699188232,
-0.9771688580513,
0.30866655707359314,
-0.39647185802459717,
-1.5337848663330078,
1.1816643476486206,
-1.2022409439086914,
-0.9502420425415039,
0.5647878646850586,
0.061657559126615524,
1.383069396018982,
0.26412805914878845,
1.611254334449768,
2.1502768993377686,
0.8983200788497925,
0.26467686891555786,
1.280196189880371,
-0.019058289006352425,
-0.4732776880264282,
1.752564549446106,
-0.36382895708084106,
0.5402400493621826,
0.988207221031189,
-0.4137348234653473,
-1.102398157119751,
-0.7527547478675842,
-1.1595882177352905,
-0.6530784964561462,
1.2152535915374756,
0.17244435846805573,
-1.0805449485778809,
0.19814786314964294,
1.565720796585083,
0.10919010639190674,
-0.22285331785678864,
0.6117548942565918,
0.5466347932815552,
-0.7291495203971863,
-0.03538491576910019,
-0.9418610334396362,
0.4903418719768524,
-0.09024380147457123,
-0.2572207748889923,
0.24231046438217163,
0.41590431332588196,
1.2847000360488892,
0.02345629408955574,
0.15326346457004547,
1.1244473457336426,
-1.4005600214004517,
1.5353256464004517,
-0.5041670799255371,
0.27572333812713623,
-2.5102663040161133,
1.4027628898620605,
-0.7541100978851318,
1.8665436506271362,
-2.6141066551208496,
0.45420822501182556,
-0.6272106766700745,
-0.5589990019798279,
0.3239009976387024,
-0.39903879165649414,
0.1613198071718216,
-0.118996262550354,
-1.071001410484314,
-0.08909675478935242,
-0.752139687538147,
0.5425657629966736,
1.1838661432266235,
1.3169633150100708,
-1.140804648399353,
-0.28646206855773926,
-1.7699217796325684,
-0.15757377445697784,
-0.8193165063858032,
0.3467816412448883,
-1.9375760555267334,
-0.05479063093662262,
-1.9143134355545044,
-2.3898534774780273,
-1.395011305809021,
-0.7114887833595276,
1.0015789270401,
0.1938169300556183,
-0.9833529591560364,
1.1527875661849976,
-0.4082542955875397,
-1.8205398321151733,
1.0129661560058594,
-2.225445508956909
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | @lhoestq need to discuss something while I am adding the dataset card to https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/.
As per [Papers With Code](https://paperswithcode.com/dataset/nyuv2), NYU Depth v2 is used for many different tasks:
* Monocular depth estimation
* Depth estimation
* Semantic segmentation
* Plane instance segmentation
* ...
So, while writing the supported task part of the dataset card, should we focus on all these? IMO, we could focus on just depth estimation and semantic segmentation for now since we have supported models for these two. WDYT?
Also, I am getting:
```
remote: Your push was accepted, but with warnings:
remote: - Warning: The task_ids "depth-estimation" is not in the official list: acceptability-classification, entity-linking-classification, fact-checking, intent-classification, multi-class-classification, multi-label-classification, multi-input-text-classification, natural-language-inference, semantic-similarity-classification, sentiment-classification, topic-classification, semantic-similarity-scoring, sentiment-scoring, sentiment-analysis, hate-speech-detection, text-scoring, named-entity-recognition, part-of-speech, parsing, lemmatization, word-sense-disambiguation, coreference-resolution, extractive-qa, open-domain-qa, closed-domain-qa, news-articles-summarization, news-articles-headline-generation, dialogue-generation, dialogue-modeling, language-modeling, text-simplification, explanation-generation, abstractive-qa, open-domain-abstractive-qa, closed-domain-qa, open-book-qa, closed-book-qa, slot-filling, masked-language-modeling, keyword-spotting, speaker-identification, audio-intent-classification, audio-emotion-recognition, audio-language-identification, multi-label-image-classification, multi-class-image-classification, face-detection, vehicle-detection, instance-segmentation, semantic-segmentation, panoptic-segmentation, image-captioning, grasping, task-planning, tabular-multi-class-classification, tabular-multi-label-classification, tabular-single-column-regression, rdf-to-text, multiple-choice-qa, multiple-choice-coreference-resolution, document-retrieval, utterance-retrieval, entity-linking-retrieval, fact-checking-retrieval, univariate-time-series-forecasting, multivariate-time-series-forecasting, visual-question-answering, document-question-answering
remote: ----------------------------------------------------------
remote: Please find the documentation at:
remote: https://huggingface.co/docs/hub/model-cards#model-card-metadata
```
What should be the plan of action for this?
Cc: @osanseviero
| ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 198 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
@lhoestq need to discuss something while I am adding the dataset card to https://huggingface.co/datasets/sayakpaul/nyu_depth_v2/.
As per [Papers With Code](https://paperswithcode.com/dataset/nyuv2), NYU Depth v2 is used for many different tasks:
* Monocular depth estimation
* Depth estimation
* Semantic segmentation
* Plane instance segmentation
* ...
So, while writing the supported task part of the dataset card, should we focus on all these? IMO, we could focus on just depth estimation and semantic segmentation for now since we have supported models for these two. WDYT?
Also, I am getting:
```
remote: Your push was accepted, but with warnings:
remote: - Warning: The task_ids "depth-estimation" is not in the official list: acceptability-classification, entity-linking-classification, fact-checking, intent-classification, multi-class-classification, multi-label-classification, multi-input-text-classification, natural-language-inference, semantic-similarity-classification, sentiment-classification, topic-classification, semantic-similarity-scoring, sentiment-scoring, sentiment-analysis, hate-speech-detection, text-scoring, named-entity-recognition, part-of-speech, parsing, lemmatization, word-sense-disambiguation, coreference-resolution, extractive-qa, open-domain-qa, closed-domain-qa, news-articles-summarization, news-articles-headline-generation, dialogue-generation, dialogue-modeling, language-modeling, text-simplification, explanation-generation, abstractive-qa, open-domain-abstractive-qa, closed-domain-qa, open-book-qa, closed-book-qa, slot-filling, masked-language-modeling, keyword-spotting, speaker-identification, audio-intent-classification, audio-emotion-recognition, audio-language-identification, multi-label-image-classification, multi-class-image-classification, face-detection, vehicle-detection, instance-segmentation, semantic-segmentation, panoptic-segmentation, image-captioning, grasping, task-planning, tabular-multi-class-classification, tabular-multi-label-classification, tabular-single-column-regression, rdf-to-text, multiple-choice-qa, multiple-choice-coreference-resolution, document-retrieval, utterance-retrieval, entity-linking-retrieval, fact-checking-retrieval, univariate-time-series-forecasting, multivariate-time-series-forecasting, visual-question-answering, document-question-answering
remote: ----------------------------------------------------------
remote: Please find the documentation at:
remote: https://huggingface.co/docs/hub/model-cards#model-card-metadata
```
What should be the plan of action for this?
Cc: @osanseviero
| [
-1.3030295372009277,
-0.9907290935516357,
-0.7297307252883911,
1.4190493822097778,
-0.13512524962425232,
-1.2642143964767456,
0.09120788425207138,
-1.0455584526062012,
1.624922513961792,
-0.6853693723678589,
0.29306429624557495,
-1.6728335618972778,
-0.10674289613962173,
-0.5723856091499329,
-0.6720362305641174,
-0.835822582244873,
-0.4022773504257202,
-0.837126612663269,
1.0192890167236328,
2.569436550140381,
1.225128173828125,
-1.3512378931045532,
2.7612242698669434,
0.7892656922340393,
-0.3399781584739685,
-1.0151724815368652,
0.4878326952457428,
0.03152195364236832,
-1.3840789794921875,
-0.5211430191993713,
-0.9787017107009888,
-0.018538624048233032,
-0.5418624877929688,
-0.4456118643283844,
0.0779866874217987,
0.4461042881011963,
-0.18018436431884766,
-0.34404456615448,
-0.6521047353744507,
-0.7064168453216553,
0.4764021337032318,
-0.3802166283130646,
0.9647725820541382,
-0.29163050651550293,
1.7827544212341309,
-0.6007969379425049,
0.35927796363830566,
0.6903830170631409,
1.3352220058441162,
0.1128479614853859,
0.015209920704364777,
0.27904409170150757,
0.46271654963493347,
-0.034051790833473206,
0.5527812242507935,
1.1682926416397095,
0.6098729968070984,
0.4433369040489197,
0.6381224393844604,
-2.192728042602539,
1.3296492099761963,
-0.9398553371429443,
0.3906649947166443,
1.3970420360565186,
-0.8694551587104797,
0.3725477159023285,
-1.7734930515289307,
-0.02650425210595131,
0.6172319650650024,
-2.2366037368774414,
0.18407875299453735,
-1.3017648458480835,
-0.5564786195755005,
0.9255038499832153,
0.3404635190963745,
-1.2683086395263672,
0.2415837198495865,
-0.5154470801353455,
1.104150652885437,
0.45538201928138733,
1.1147568225860596,
-1.7093201875686646,
-0.04580388963222504,
-0.1893026977777481,
0.12142454087734222,
-1.2477731704711914,
-1.583541989326477,
0.5305008888244629,
0.6704855561256409,
0.679857611656189,
-0.11487357318401337,
0.9162110686302185,
-0.9712478518486023,
0.8729743361473083,
-0.9579551815986633,
-1.6528160572052002,
-1.4406771659851074,
-2.2751049995422363,
-2.276926279067993,
0.8002899885177612,
-0.5304268598556519,
-0.48395535349845886,
2.0053093433380127,
-1.0676316022872925,
-1.8027517795562744,
1.0986957550048828,
0.30908963084220886,
0.08615190535783768,
2.371654748916626,
0.24364958703517914,
-0.6456310749053955,
0.4688836932182312,
-0.7438077926635742,
0.8470360636711121,
-0.3519981801509857,
1.3322429656982422,
0.44544515013694763,
-1.013577938079834,
1.5746653079986572,
-0.4604232609272003,
0.5252400040626526,
-0.7118533253669739,
-0.4446794390678406,
-0.8027967214584351,
0.3376171588897705,
1.878429651260376,
-0.3623204231262207,
1.6141248941421509,
-0.44845879077911377,
-1.5771009922027588,
-1.5987167358398438,
0.7748088836669922,
0.5259074568748474,
-0.8170336484909058,
0.08800631016492844,
-0.5183677673339844,
0.1318640559911728,
-0.0018152585253119469,
1.0326709747314453,
1.2067828178405762,
0.6670979261398315,
-0.4368782639503479,
-0.8113711476325989,
0.20508381724357605,
-0.030044030398130417,
-0.7386183142662048,
-1.7911492586135864,
-0.3437155485153198,
0.24343366920948029,
0.6291008591651917,
-1.2707552909851074,
1.721929669380188,
0.8407637476921082,
2.03670072555542,
0.932742714881897,
-0.3948103189468384,
1.4602731466293335,
0.10854034870862961,
1.7769131660461426,
-0.6098040342330933,
0.6740344166755676,
-0.33459317684173584,
-1.0663208961486816,
0.8018896579742432,
-0.4178277552127838,
-2.048384428024292,
-0.7849553227424622,
-0.7608535289764404,
-0.1876717507839203,
-0.818301796913147,
0.9286758899688721,
-0.2789912521839142,
-1.4216375350952148,
0.18333257734775543,
-0.7242860794067383,
0.1973489224910736,
-1.1989796161651611,
0.21047064661979675,
0.7596079707145691,
-0.6446269750595093,
-0.02715924195945263,
-0.18482093513011932,
-1.315149188041687,
-0.47954025864601135,
0.35009852051734924,
1.9195843935012817,
-0.6501802802085876,
0.8989214897155762,
1.0174400806427002,
-0.6689560413360596,
0.17519208788871765,
0.3398730158805847,
-0.3604530990123749,
0.8258935213088989,
-1.0622175931930542,
-0.35033777356147766,
1.1838734149932861,
-0.14333340525627136,
-0.6362536549568176,
1.4335520267486572,
0.7596016526222229,
-1.0489343404769897,
-0.29787513613700867,
-0.14628036320209503,
-0.8117736577987671,
-0.012564057484269142,
-1.6398450136184692,
-0.19628645479679108,
0.30281758308410645,
-1.4575904607772827,
-0.38375309109687805,
-0.2869400382041931,
1.3017542362213135,
-0.16375647485256195,
1.4102692604064941,
-0.30211445689201355,
-0.1595958024263382,
-0.3423994481563568,
-0.3855864405632019,
0.19736254215240479,
-0.28977170586586,
-0.554588794708252,
0.1926044076681137,
-0.885962963104248,
0.29146257042884827,
1.4991735219955444,
0.38844913244247437,
0.08948362618684769,
0.3877990245819092,
1.0379860401153564,
0.36151254177093506,
-0.1352115422487259,
-0.9518285989761353,
-1.587053656578064,
2.081444025039673,
-1.3802918195724487,
1.907691478729248,
0.9127682447433472,
-0.017327552661299706,
-1.8430817127227783,
-1.8086528778076172,
1.229098916053772,
1.1411405801773071,
2.4257123470306396,
0.5701097249984741,
0.3381260633468628,
-0.7731809020042419,
-0.6480693221092224,
0.27787506580352783,
-1.0464553833007812,
-0.7197982668876648,
0.12367601692676544,
2.4485361576080322,
1.8780031204223633,
-0.4691491425037384,
-0.2597641944885254,
-0.9776999354362488,
1.2623820304870605,
-0.21124695241451263,
0.18102647364139557,
2.093092679977417,
-0.29052212834358215,
-0.9602483510971069,
1.3219784498214722,
-2.3329551219940186,
0.21867266297340393,
1.9539963006973267,
0.24972416460514069,
0.13568468391895294,
-1.4412721395492554,
-0.6956373453140259,
-0.3439803421497345,
-0.43986639380455017,
-1.2693175077438354,
0.6178033351898193,
-0.32176101207733154,
-0.9307898879051208,
-1.4615726470947266,
0.08918053656816483,
-1.1228492259979248,
-1.7095532417297363,
0.3357086777687073,
1.883790135383606,
2.049757957458496,
-0.853541910648346,
1.420607089996338,
-0.2706693410873413,
0.0806361734867096,
1.2647392749786377,
1.3206862211227417,
3.0751094818115234,
1.8852965831756592,
-1.3252804279327393,
0.7006409168243408,
-0.232179194688797,
-0.4357824921607971,
1.148295283317566,
-1.156376600265503,
1.192401647567749,
-0.21979446709156036,
-1.2376259565353394,
-1.215186595916748,
1.0975728034973145,
0.5624390244483948,
0.03295815736055374,
-0.5577327609062195,
1.2524821758270264,
0.04067107290029526,
1.33008873462677,
0.5706166625022888,
-0.44817057251930237,
0.562402606010437,
-0.29264652729034424,
-0.5388754606246948,
1.5091828107833862,
0.14031849801540375,
-1.508789300918579,
-2.3657076358795166,
-0.19183899462223053,
-0.8511283993721008,
-0.057497233152389526,
-0.6490342020988464,
-1.0443633794784546,
1.5939984321594238,
0.4188510477542877,
-1.3591523170471191,
-0.28698912262916565,
-0.3185122013092041,
-0.506198525428772,
2.6233389377593994,
-1.3116785287857056,
-0.17324000597000122,
-1.0611358880996704,
-0.47616931796073914,
1.66929292678833,
-1.1711664199829102,
-0.19527502357959747,
-1.0502296686172485,
-0.7348124980926514,
-1.2607845067977905,
-0.5524164438247681,
-0.03881426155567169,
-0.9361516237258911,
0.7099086046218872,
0.10141486674547195,
-1.0463440418243408,
-0.27891963720321655,
-0.7964240312576294,
0.972470760345459,
-0.049451738595962524,
0.247305765748024,
1.9436010122299194,
0.3762260377407074,
-0.393797367811203,
0.709099531173706,
1.1906795501708984,
0.624976634979248,
-0.746084988117218,
0.047202229499816895,
-0.6912868022918701,
0.3166194558143616,
-1.4191663265228271,
0.24905087053775787,
-2.9319026470184326,
0.7226976752281189,
-0.08217477798461914,
-0.1538620889186859,
0.012000318616628647,
-1.31581711769104,
1.1668860912322998,
2.653003454208374,
-1.1964750289916992,
0.46922987699508667,
0.38752585649490356,
1.1758992671966553,
-1.5261476039886475,
0.2563961148262024,
-0.41235941648483276,
2.07722806930542,
0.213901087641716,
1.2560012340545654,
-0.48857712745666504,
-2.160473346710205,
0.6123293042182922,
-1.252901315689087,
-1.0087178945541382,
0.7350943088531494,
-0.852616012096405,
0.15022322535514832,
-1.55302095413208,
-0.16727611422538757,
-0.850614607334137,
-1.2745909690856934,
0.7327635288238525,
0.15343187749385834,
0.47790107131004333,
-0.602428674697876,
0.3672000467777252,
-2.097529888153076,
-1.3481389284133911,
-0.2051614224910736,
-0.9455238580703735,
0.48881667852401733,
-0.3440782427787781,
0.5888676047325134,
-0.05053471773862839,
0.05132924020290375,
0.3274199664592743,
1.3413190841674805,
3.418851375579834,
0.29977041482925415,
0.22424660623073578,
-0.1387813836336136,
-0.9909788966178894,
1.3733946084976196,
0.9558342099189758,
-0.10876160115003586,
-0.5172052979469299,
-1.0023891925811768,
1.3589808940887451,
2.0387818813323975,
1.0631357431411743,
0.10677336901426315,
-0.9166607856750488,
-0.9177886247634888,
0.08576405048370361,
0.26532384753227234,
0.4110424816608429,
0.8924033641815186,
0.028811665251851082,
0.09422159194946289,
1.4723693132400513,
1.2102144956588745,
-0.4260590374469757,
0.4431707262992859,
-0.9345611333847046,
-0.4864463806152344,
0.3645034432411194,
0.2868931293487549,
0.1503792554140091,
0.4864689111709595,
-1.0067476034164429,
-0.2521904706954956,
-0.36744391918182373,
-0.8942363262176514,
-0.7076289057731628,
-0.4419137239456177,
-0.38813695311546326,
1.4942188262939453,
0.18240825831890106,
-0.44469937682151794,
0.005284355953335762,
-0.7404412627220154,
-0.19060105085372925,
-1.0504658222198486,
0.2555532455444336,
-0.07728864252567291,
-0.021719463169574738,
-0.15343190729618073,
1.7739087343215942,
-0.8973231315612793,
-2.126837730407715,
0.20439882576465607,
0.26880860328674316,
-0.401040256023407,
0.13892465829849243,
1.7223213911056519,
0.5426772832870483,
1.4225653409957886,
1.2227331399917603,
0.9561111330986023,
-0.5269789695739746,
-1.2572356462478638,
0.7360876202583313,
0.9568887948989868,
-1.3258209228515625,
0.9025527834892273,
-0.16570965945720673,
-0.5093143582344055,
0.7512388825416565,
1.257002353668213,
0.3461446166038513,
-1.9870662689208984,
0.8568342924118042,
-0.900769829750061,
0.7998214364051819,
0.6738333702087402,
0.766781747341156,
0.21921342611312866,
0.7456305027008057,
-1.3627190589904785,
-1.1516759395599365,
-0.7643362283706665,
-0.5871678590774536,
1.9567008018493652,
-0.2535334825515747,
0.5700072050094604,
-0.17517748475074768,
-1.262943148612976,
-0.08167193830013275,
0.7526299357414246,
0.3108195662498474,
-0.44682151079177856,
0.8590474128723145,
-0.6326918005943298,
-1.0450966358184814,
-1.2776565551757812,
-0.4033133089542389,
-0.8953304886817932,
-0.9150112867355347,
1.0438785552978516,
0.8889751434326172,
0.42454850673675537,
1.8923026323318481,
0.5536339282989502,
0.35181882977485657,
-2.6408956050872803,
0.9772146344184875,
0.2243761271238327,
0.004370766691863537,
1.001114845275879,
0.24902819097042084,
1.0610029697418213,
0.07055655866861343,
0.48460301756858826,
-2.3899717330932617,
2.2177252769470215,
-0.1261245757341385,
0.6308068633079529,
-0.0665561854839325,
-0.14325636625289917,
1.208501935005188,
0.4653538167476654,
0.6089534759521484,
-1.1269346475601196,
0.7342868447303772,
-0.5196389555931091,
1.106715440750122,
0.8384996056556702,
-0.8698044419288635,
-0.029798611998558044,
1.41130530834198,
0.47719159722328186,
-0.480159729719162,
-0.9173720479011536,
-0.859490692615509,
0.9023310542106628,
1.7226320505142212,
-0.029257778078317642,
-0.11411494761705399,
0.8380776047706604,
0.6571425795555115,
-1.2268776893615723,
0.06084304302930832,
-0.6544352769851685,
-0.649236261844635,
1.6626158952713013,
2.1155028343200684,
-0.0788654014468193,
-0.1647379845380783,
-0.679259181022644,
-1.208878517150879,
0.6806805729866028,
-0.11343823373317719,
0.1695203334093094,
0.6342551112174988,
-0.688098669052124,
1.1654552221298218,
0.7505592703819275,
0.9862191677093506,
0.11789208650588989,
0.3209307789802551,
0.4314734637737274,
-0.3621136248111725,
-1.208238959312439,
-0.4018538296222687,
-1.1650760173797607,
-2.477365493774414,
0.44289863109588623,
-0.19681479036808014,
-1.4635568857192993,
0.05895610153675079,
-1.0791786909103394,
0.8672590851783752,
-0.6328164339065552,
-1.0480509996414185,
-1.4213939905166626,
0.3141779601573944,
-0.1961333453655243,
0.9175081253051758,
-1.6703038215637207,
-0.030169393867254257,
1.16060209274292,
0.8370116353034973,
-0.512058436870575,
0.9713325500488281,
0.26586782932281494,
0.9832330942153931,
0.8466977477073669,
-0.301635205745697,
0.4632663428783417,
0.16809391975402832,
-1.3355293273925781,
0.3952294588088989,
1.1929398775100708,
0.2898707389831543,
1.3905006647109985,
-0.5100948810577393,
0.13292476534843445,
0.4630119502544403,
-0.5891021490097046,
-0.4783676564693451,
-0.37831607460975647,
0.6705732345581055,
0.23254695534706116,
-1.038588523864746,
-0.1010274887084961,
-0.10302824527025223,
-0.29957687854766846,
0.19611962139606476,
-1.4730963706970215,
-0.2583402097225189,
-0.3560127317905426,
-0.5380806922912598,
-1.2378898859024048,
-0.005582058802247047,
1.4330075979232788,
-0.8870657682418823,
-0.23123182356357574,
0.5453878045082092,
0.38409629464149475,
0.5761697292327881,
0.7099695205688477,
-0.6291127800941467,
-0.2638103663921356,
-0.24079832434654236,
-0.304303914308548,
0.3101903200149536,
1.2853000164031982,
-0.11616232991218567,
-0.9424019455909729,
0.6954436898231506,
-0.5267444849014282,
0.14951306581497192,
2.026742696762085,
0.036687470972537994,
-0.7974942922592163,
0.3243676424026489,
-0.7216491103172302,
1.8597545623779297,
1.7481253147125244,
1.2825291156768799,
-0.059688664972782135,
-0.9416521191596985,
0.5555184483528137,
-0.20519357919692993,
-0.37544164061546326,
1.0037461519241333,
0.3862752616405487,
-0.20642970502376556,
-1.4015402793884277,
0.456940233707428,
1.2653025388717651,
-0.9286986589431763,
-0.7494891881942749,
0.17998741567134857,
-0.8908640146255493,
1.131699562072754,
0.65720134973526,
0.2779976725578308,
0.22620967030525208,
1.4575042724609375,
0.7729077935218811,
-0.43167999386787415,
0.4741816818714142,
0.45714041590690613,
-0.1750219166278839,
-2.1714162826538086,
-1.0069981813430786,
0.31098639965057373,
-0.37083327770233154,
-1.5324344635009766,
1.2271580696105957,
-1.216935396194458,
-0.9936928749084473,
0.5510239005088806,
0.0811798945069313,
1.3862028121948242,
0.29576563835144043,
1.5919442176818848,
2.1889467239379883,
0.9171814918518066,
0.29191121459007263,
1.304482102394104,
-0.04095662385225296,
-0.4778854250907898,
1.763106346130371,
-0.4038050174713135,
0.565609335899353,
0.986621618270874,
-0.3891189396381378,
-1.0909425020217896,
-0.7477093935012817,
-1.196365475654602,
-0.6845885515213013,
1.23626708984375,
0.1262674480676651,
-1.0765023231506348,
0.2345101684331894,
1.57696533203125,
0.10215248167514801,
-0.21519282460212708,
0.5869864821434021,
0.545497477054596,
-0.7472032308578491,
-0.09270987659692764,
-0.9077061414718628,
0.4873943626880646,
-0.11260990053415298,
-0.28661012649536133,
0.26245054602622986,
0.4549104869365692,
1.265855073928833,
-0.02338775247335434,
0.12224981188774109,
1.1063445806503296,
-1.4253859519958496,
1.5488063097000122,
-0.5455752611160278,
0.2818397581577301,
-2.559011936187744,
1.419638991355896,
-0.7630893588066101,
1.8969948291778564,
-2.6116135120391846,
0.45734089612960815,
-0.5766252279281616,
-0.5704379081726074,
0.3231929540634155,
-0.38604533672332764,
0.1435544639825821,
-0.1017424687743187,
-1.054485559463501,
-0.06797818839550018,
-0.7454997301101685,
0.5461108684539795,
1.185379147529602,
1.337824821472168,
-1.1659307479858398,
-0.30209532380104065,
-1.7541117668151855,
-0.1635604053735733,
-0.8067106008529663,
0.33384227752685547,
-1.9594433307647705,
-0.022254809737205505,
-1.9170198440551758,
-2.348599433898926,
-1.4353275299072266,
-0.7474274039268494,
0.9930931925773621,
0.1802832931280136,
-0.9408045411109924,
1.1382628679275513,
-0.4211321175098419,
-1.8386584520339966,
1.0120238065719604,
-2.2602458000183105
] |
https://github.com/huggingface/datasets/issues/5255 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI | > What should be the plan of action for this?
When you merged https://github.com/huggingface/hub-docs/pull/488, there is a JS Interfaces GitHub Actions workflow that runs https://github.com/huggingface/hub-docs/actions/workflows/js-interfaces-tests.yml. It has a step called [export-task scripts](https://github.com/huggingface/hub-docs/actions/runs/3622479064/jobs/6107238948) which exports an interface you can use in `dataset`. If you look at the logs, it prints out a map. This map can replace https://github.com/huggingface/datasets/blob/main/src/datasets/utils/resources/tasks.json (tasks.json was generated with this script), which should add depth estimation
| ### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it. | 416 | 68 | Add a Depth Estimation dataset - DIODE / NYUDepth / KITTI
### Name
NYUDepth
### Paper
http://cs.nyu.edu/~silberman/papers/indoor_seg_support.pdf
### Data
https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
### Motivation
Depth estimation is an important problem in computer vision. We have a couple of Depth Estimation models on Hub as well:
* [GLPN](https://huggingface.co/docs/transformers/model_doc/glpn)
* [DPT](https://huggingface.co/docs/transformers/model_doc/dpt)
Would be nice to have a dataset for depth estimation. These datasets usually have three things: input image, depth map image, and depth mask (validity mask to indicate if a reading for a pixel is valid or not). Since we already have [semantic segmentation datasets on the Hub](https://huggingface.co/datasets?task_categories=task_categories:image-segmentation&sort=downloads), I don't think we need any extended utilities to support this addition.
Having this dataset would also allow us to author data preprocessing guides for depth estimation, particularly like the ones we have for other tasks ([example](https://huggingface.co/docs/datasets/image_classification)).
Ccing @osanseviero @nateraw @NielsRogge
Happy to work on adding it.
> What should be the plan of action for this?
When you merged https://github.com/huggingface/hub-docs/pull/488, there is a JS Interfaces GitHub Actions workflow that runs https://github.com/huggingface/hub-docs/actions/workflows/js-interfaces-tests.yml. It has a step called [export-task scripts](https://github.com/huggingface/hub-docs/actions/runs/3622479064/jobs/6107238948) which exports an interface you can use in `dataset`. If you look at the logs, it prints out a map. This map can replace https://github.com/huggingface/datasets/blob/main/src/datasets/utils/resources/tasks.json (tasks.json was generated with this script), which should add depth estimation
| [
-1.2194294929504395,
-0.9812803268432617,
-0.7553231716156006,
1.4698888063430786,
-0.06166920065879822,
-1.2941229343414307,
0.04205953702330589,
-0.9585574269294739,
1.6156861782073975,
-0.6649032235145569,
0.3152393102645874,
-1.7042258977890015,
-0.13913725316524506,
-0.5882378816604614,
-0.7438670992851257,
-0.8232806921005249,
-0.347025603055954,
-0.8121504187583923,
0.9983117580413818,
2.5559847354888916,
1.2524313926696777,
-1.3504977226257324,
2.755520820617676,
0.7599910497665405,
-0.308154433965683,
-1.0092155933380127,
0.49936455488204956,
-0.014329854398965836,
-1.3262542486190796,
-0.5129947066307068,
-0.9680001139640808,
0.0332757793366909,
-0.5249941945075989,
-0.480024129152298,
0.0734836608171463,
0.45410072803497314,
-0.21195824444293976,
-0.32387441396713257,
-0.6791260838508606,
-0.6892157196998596,
0.4535743296146393,
-0.3388887345790863,
0.9593343138694763,
-0.2941558063030243,
1.7593293190002441,
-0.5836984515190125,
0.3149937391281128,
0.6436818838119507,
1.3562816381454468,
0.13379943370819092,
0.06217982992529869,
0.2785409092903137,
0.41653600335121155,
-0.022747058421373367,
0.5842591524124146,
1.258147120475769,
0.6587374210357666,
0.4332261085510254,
0.6469869017601013,
-2.1874077320098877,
1.309361457824707,
-0.8967751264572144,
0.31517210602760315,
1.35078763961792,
-0.891501247882843,
0.3593490719795227,
-1.7877622842788696,
-0.026199333369731903,
0.5976033806800842,
-2.2242329120635986,
0.15897521376609802,
-1.2784233093261719,
-0.505628228187561,
0.9414417743682861,
0.30932849645614624,
-1.2921741008758545,
0.24970334768295288,
-0.5246471762657166,
1.081830382347107,
0.4740971028804779,
1.187597393989563,
-1.6652305126190186,
-0.022205380722880363,
-0.17034435272216797,
0.12180465459823608,
-1.2368073463439941,
-1.5976545810699463,
0.5313321948051453,
0.6635771989822388,
0.7344374656677246,
-0.11543132364749908,
0.9091132879257202,
-0.9932043552398682,
0.8639663457870483,
-0.8884958624839783,
-1.6842243671417236,
-1.4344244003295898,
-2.2969772815704346,
-2.3217203617095947,
0.8296496272087097,
-0.5199958086013794,
-0.440133661031723,
1.9781626462936401,
-1.0435267686843872,
-1.8042254447937012,
1.0190224647521973,
0.3510377109050751,
0.08808082342147827,
2.413008213043213,
0.2622777223587036,
-0.7356246113777161,
0.4649631083011627,
-0.687596321105957,
0.8367959260940552,
-0.3786109983921051,
1.3559553623199463,
0.46551814675331116,
-1.0142593383789062,
1.6124279499053955,
-0.4755535423755646,
0.5139354467391968,
-0.7012119293212891,
-0.4405119717121124,
-0.7538039088249207,
0.3213532567024231,
1.8675808906555176,
-0.4176645278930664,
1.6208655834197998,
-0.3918655216693878,
-1.5782493352890015,
-1.5989385843276978,
0.7388610243797302,
0.5122525095939636,
-0.8485915660858154,
0.08721812069416046,
-0.5440828204154968,
0.0995519757270813,
-0.012973811477422714,
1.0718042850494385,
1.2136447429656982,
0.6204292178153992,
-0.37220296263694763,
-0.8093447089195251,
0.19196176528930664,
-0.03865776211023331,
-0.6514256596565247,
-1.7829277515411377,
-0.3339260518550873,
0.3270440101623535,
0.6173856854438782,
-1.2855230569839478,
1.7588285207748413,
0.858788788318634,
2.051422119140625,
0.9609869122505188,
-0.3815979063510895,
1.4699984788894653,
0.04425106197595596,
1.8402167558670044,
-0.5735293030738831,
0.6098772883415222,
-0.3113086521625519,
-1.1343110799789429,
0.7702028751373291,
-0.4419870376586914,
-2.009690999984741,
-0.7529836297035217,
-0.7795863747596741,
-0.1299806833267212,
-0.8343029022216797,
0.9196329712867737,
-0.28333982825279236,
-1.375840425491333,
0.16680388152599335,
-0.7524636387825012,
0.1824830323457718,
-1.2243551015853882,
0.14291870594024658,
0.7863541841506958,
-0.6655651330947876,
-0.04580439254641533,
-0.1977197825908661,
-1.3131163120269775,
-0.4958890974521637,
0.39437779784202576,
1.9224532842636108,
-0.6233511567115784,
0.9165135025978088,
1.0269502401351929,
-0.6743683815002441,
0.19559529423713684,
0.38217228651046753,
-0.39663898944854736,
0.8395243883132935,
-1.0805609226226807,
-0.35394662618637085,
1.1906685829162598,
-0.1610584408044815,
-0.6512770056724548,
1.4130767583847046,
0.7950511574745178,
-1.0513644218444824,
-0.31958532333374023,
-0.11225797235965729,
-0.7995783686637878,
-0.017986135557293892,
-1.620387315750122,
-0.1809016913175583,
0.293261855840683,
-1.429486632347107,
-0.3758958578109741,
-0.27257561683654785,
1.3268260955810547,
-0.17786051332950592,
1.403422236442566,
-0.2614903450012207,
-0.15062077343463898,
-0.3274463713169098,
-0.4648216664791107,
0.1522529423236847,
-0.2863083481788635,
-0.5844441652297974,
0.2644820511341095,
-0.8619617819786072,
0.29179811477661133,
1.4988006353378296,
0.359573096036911,
0.08764337003231049,
0.42842087149620056,
1.1089372634887695,
0.36265596747398376,
-0.11860498785972595,
-0.9416607022285461,
-1.5927026271820068,
2.055072784423828,
-1.348752737045288,
1.9375718832015991,
0.9096042513847351,
-0.04720800369977951,
-1.8259989023208618,
-1.8600783348083496,
1.2690527439117432,
1.1242974996566772,
2.476612091064453,
0.5654042959213257,
0.36501431465148926,
-0.7561861276626587,
-0.6911361217498779,
0.3425191342830658,
-0.9874950647354126,
-0.7596328854560852,
0.13368938863277435,
2.4248056411743164,
1.90949285030365,
-0.46373942494392395,
-0.27051639556884766,
-0.9659966826438904,
1.259840726852417,
-0.2252749353647232,
0.15726542472839355,
2.0665533542633057,
-0.27663347125053406,
-0.9799279570579529,
1.3055142164230347,
-2.3666961193084717,
0.23792193830013275,
2.0021820068359375,
0.29660218954086304,
0.11141073703765869,
-1.496983528137207,
-0.6772303581237793,
-0.3220635652542114,
-0.4667322039604187,
-1.2313079833984375,
0.5950020551681519,
-0.3042570650577545,
-0.9510797262191772,
-1.4704573154449463,
0.04729204624891281,
-1.131069540977478,
-1.741392731666565,
0.34243282675743103,
1.8572102785110474,
2.054453134536743,
-0.8623241782188416,
1.4296644926071167,
-0.23964549601078033,
0.07485480606555939,
1.2609831094741821,
1.3741209506988525,
3.1135966777801514,
1.8823927640914917,
-1.3057984113693237,
0.7592676281929016,
-0.2435804307460785,
-0.4294717013835907,
1.1514908075332642,
-1.1281622648239136,
1.150001049041748,
-0.2507724165916443,
-1.2827433347702026,
-1.212043285369873,
1.087508201599121,
0.5627931356430054,
-0.04105817899107933,
-0.5824472904205322,
1.2382618188858032,
0.0867229700088501,
1.314189076423645,
0.6246731281280518,
-0.4068315625190735,
0.5322253108024597,
-0.2606576681137085,
-0.5416120290756226,
1.5232752561569214,
0.1184190958738327,
-1.5156610012054443,
-2.3779425621032715,
-0.20080438256263733,
-0.8745326399803162,
-0.11297942698001862,
-0.6754401326179504,
-1.0467406511306763,
1.609636664390564,
0.40673142671585083,
-1.3288365602493286,
-0.2791869342327118,
-0.30846741795539856,
-0.4992154538631439,
2.629115104675293,
-1.3343770503997803,
-0.1741373986005783,
-1.0649218559265137,
-0.45048069953918457,
1.6595168113708496,
-1.0912089347839355,
-0.21950428187847137,
-1.0577704906463623,
-0.7380476593971252,
-1.3038822412490845,
-0.5732190608978271,
-0.014021117240190506,
-0.8482567667961121,
0.6662676334381104,
0.06993146240711212,
-1.0648975372314453,
-0.2869768440723419,
-0.8256233334541321,
1.0113301277160645,
-0.10148318111896515,
0.21486350893974304,
1.9552797079086304,
0.4014173746109009,
-0.4249017536640167,
0.7272257208824158,
1.1817748546600342,
0.6063095331192017,
-0.7055206298828125,
0.08434632420539856,
-0.6871779561042786,
0.34928765892982483,
-1.4516154527664185,
0.2242637574672699,
-2.922689914703369,
0.718565821647644,
-0.0842004120349884,
-0.1376529037952423,
0.00004660431295633316,
-1.2817392349243164,
1.1642370223999023,
2.5928428173065186,
-1.2173618078231812,
0.47769883275032043,
0.386184960603714,
1.1527270078659058,
-1.5563870668411255,
0.21597068011760712,
-0.438870906829834,
2.091153383255005,
0.1429605633020401,
1.236233115196228,
-0.4919413626194,
-2.099470853805542,
0.589161217212677,
-1.2659742832183838,
-0.9202632904052734,
0.800419270992279,
-0.8567631840705872,
0.171880841255188,
-1.509311556816101,
-0.11471323668956757,
-0.8861432671546936,
-1.2775274515151978,
0.740094780921936,
0.0912700891494751,
0.4599863886833191,
-0.5933051705360413,
0.40241286158561707,
-2.102445125579834,
-1.3620251417160034,
-0.19641810655593872,
-0.9948549866676331,
0.5177996158599854,
-0.3428816795349121,
0.6178693175315857,
-0.04968994855880737,
0.030962903052568436,
0.3056735694408417,
1.3167778253555298,
3.3879776000976562,
0.27226337790489197,
0.2480183243751526,
-0.08490267395973206,
-0.9961201548576355,
1.3926790952682495,
0.9311671257019043,
-0.15748658776283264,
-0.5543277263641357,
-0.9649287462234497,
1.3751128911972046,
2.0073893070220947,
1.149075984954834,
0.15464960038661957,
-0.9615135192871094,
-0.9457703828811646,
0.09789718687534332,
0.23035018146038055,
0.442516028881073,
0.8935869336128235,
-0.03083624504506588,
0.11135558784008026,
1.416119933128357,
1.201553225517273,
-0.37895727157592773,
0.49478036165237427,
-0.9618203639984131,
-0.44372957944869995,
0.3208484947681427,
0.24906444549560547,
0.13725437223911285,
0.4978256821632385,
-1.0742815732955933,
-0.2831169366836548,
-0.39017438888549805,
-0.8827704191207886,
-0.7227671146392822,
-0.4342927932739258,
-0.3407422602176666,
1.5197365283966064,
0.12202751636505127,
-0.48955780267715454,
0.05711369588971138,
-0.7579165101051331,
-0.17446519434452057,
-1.0463062524795532,
0.2446519136428833,
-0.07817842066287994,
0.008928351104259491,
-0.14287622272968292,
1.7146440744400024,
-0.9280989170074463,
-2.1595165729522705,
0.21060827374458313,
0.2930324077606201,
-0.4432634115219116,
0.13031190633773804,
1.7539747953414917,
0.5471972823143005,
1.3797653913497925,
1.2908446788787842,
0.9880032539367676,
-0.5729502439498901,
-1.2471635341644287,
0.7360600829124451,
0.9942667484283447,
-1.3368102312088013,
0.9525113701820374,
-0.24093610048294067,
-0.5134775042533875,
0.7179335355758667,
1.3082067966461182,
0.32532021403312683,
-1.9424502849578857,
0.8431203365325928,
-0.8631378412246704,
0.7769106030464172,
0.6271857023239136,
0.8092139363288879,
0.22283455729484558,
0.7470627427101135,
-1.3744722604751587,
-1.1348170042037964,
-0.7593230605125427,
-0.5910367965698242,
1.922224998474121,
-0.18908308446407318,
0.5446917414665222,
-0.15155044198036194,
-1.3032398223876953,
-0.13370798528194427,
0.7802681922912598,
0.29591095447540283,
-0.48303189873695374,
0.9056367874145508,
-0.6319650411605835,
-1.011988878250122,
-1.286269187927246,
-0.41453230381011963,
-0.8776244521141052,
-0.9167281985282898,
1.0251860618591309,
0.8665869832038879,
0.41897696256637573,
1.9300529956817627,
0.5350049138069153,
0.3148854076862335,
-2.6338086128234863,
0.9620075821876526,
0.26869508624076843,
-0.0068395077250897884,
0.991188108921051,
0.2048419564962387,
1.0706396102905273,
0.033302269876003265,
0.5412366390228271,
-2.3434700965881348,
2.1584815979003906,
-0.14615988731384277,
0.6429727673530579,
-0.02014606073498726,
-0.20327362418174744,
1.1451237201690674,
0.44064316153526306,
0.6290320754051208,
-1.1472537517547607,
0.7883555889129639,
-0.518743097782135,
1.0715546607971191,
0.8457102179527283,
-0.9158565402030945,
0.03454434871673584,
1.3680012226104736,
0.466342568397522,
-0.41392022371292114,
-0.943802535533905,
-0.835326611995697,
0.9326499104499817,
1.7108491659164429,
0.04383235424757004,
-0.031081078574061394,
0.8891860842704773,
0.6140359044075012,
-1.2880231142044067,
0.05182383954524994,
-0.6432401537895203,
-0.6089771389961243,
1.693546175956726,
2.0833051204681396,
-0.04861299693584442,
-0.17370617389678955,
-0.6970163583755493,
-1.2352429628372192,
0.6655914783477783,
-0.09061549603939056,
0.14235228300094604,
0.7235142588615417,
-0.735319972038269,
1.169557809829712,
0.6767519116401672,
0.9660573601722717,
0.0290180966258049,
0.28894659876823425,
0.4364270865917206,
-0.3473186492919922,
-1.2190937995910645,
-0.4208759367465973,
-1.1429377794265747,
-2.4686412811279297,
0.43510961532592773,
-0.17490172386169434,
-1.446327805519104,
0.08399640023708344,
-1.079274296760559,
0.8561288714408875,
-0.6249180436134338,
-1.0335198640823364,
-1.3569481372833252,
0.36314934492111206,
-0.21409280598163605,
0.8847948908805847,
-1.674187421798706,
-0.11914455890655518,
1.1757692098617554,
0.893020749092102,
-0.5412288308143616,
0.9481223225593567,
0.2422531545162201,
0.9849533438682556,
0.878914475440979,
-0.30624639987945557,
0.44342607259750366,
0.17934733629226685,
-1.338158369064331,
0.3750821053981781,
1.20376718044281,
0.2599800229072571,
1.3809468746185303,
-0.5003949403762817,
0.13993853330612183,
0.45846349000930786,
-0.5760257244110107,
-0.4896683990955353,
-0.4134807884693146,
0.6738653779029846,
0.1960936188697815,
-1.0514389276504517,
-0.10286583006381989,
-0.11827525496482849,
-0.2507401406764984,
0.17219407856464386,
-1.4967819452285767,
-0.24876905977725983,
-0.3338533341884613,
-0.5279800891876221,
-1.2448066473007202,
0.06432507932186127,
1.3607189655303955,
-0.9072928428649902,
-0.24596619606018066,
0.5477335453033447,
0.3360072076320648,
0.5758274793624878,
0.6931126117706299,
-0.6539137959480286,
-0.2810010313987732,
-0.270959734916687,
-0.3258333206176758,
0.2868667244911194,
1.22551429271698,
-0.09706413745880127,
-0.9399729371070862,
0.6719152927398682,
-0.5454193949699402,
0.12875716388225555,
2.017810821533203,
0.007300116121768951,
-0.7978085279464722,
0.33222144842147827,
-0.6631810069084167,
1.8695042133331299,
1.6777899265289307,
1.3232638835906982,
-0.07199324667453766,
-0.900468111038208,
0.6132069826126099,
-0.18176929652690887,
-0.4021535813808441,
0.9940487146377563,
0.3814789056777954,
-0.22485335171222687,
-1.4469739198684692,
0.44365939497947693,
1.2774131298065186,
-0.9647236466407776,
-0.7036364674568176,
0.13795793056488037,
-0.8978376984596252,
1.1700201034545898,
0.6951452493667603,
0.2857016324996948,
0.253165066242218,
1.4982668161392212,
0.7228524088859558,
-0.4666358530521393,
0.46448561549186707,
0.4741472601890564,
-0.22050881385803223,
-2.1256210803985596,
-0.9438470602035522,
0.27903053164482117,
-0.35751399397850037,
-1.5281670093536377,
1.1876369714736938,
-1.228715181350708,
-0.9739419221878052,
0.5225558280944824,
0.0632544457912445,
1.3481721878051758,
0.30700087547302246,
1.6400957107543945,
2.147108554840088,
0.8637542128562927,
0.2504207193851471,
1.2624655961990356,
-0.02518380805850029,
-0.45398712158203125,
1.7534878253936768,
-0.4217638075351715,
0.61850905418396,
0.945688784122467,
-0.4120948016643524,
-1.122941017150879,
-0.7778835296630859,
-1.2093989849090576,
-0.6502929925918579,
1.247692584991455,
0.15626950562000275,
-1.0745782852172852,
0.26503315567970276,
1.595450758934021,
0.08745633065700531,
-0.22116224467754364,
0.654707133769989,
0.5284912586212158,
-0.7244113087654114,
-0.07252678275108337,
-0.8854588866233826,
0.5177503824234009,
-0.06285928189754486,
-0.2877112627029419,
0.2372003197669983,
0.4636174440383911,
1.2697557210922241,
0.023236684501171112,
0.11464798450469971,
1.1421560049057007,
-1.3937031030654907,
1.562264084815979,
-0.5873991847038269,
0.2955259382724762,
-2.553316593170166,
1.4396672248840332,
-0.8042634725570679,
1.9201278686523438,
-2.5820300579071045,
0.47015348076820374,
-0.5685440897941589,
-0.5743206143379211,
0.2918041944503784,
-0.3619309663772583,
0.1411556899547577,
-0.14178574085235596,
-0.9975342750549316,
-0.10086673498153687,
-0.7620587348937988,
0.5502672791481018,
1.1854660511016846,
1.3557921648025513,
-1.1297754049301147,
-0.2922665476799011,
-1.7772451639175415,
-0.19314418733119965,
-0.80646812915802,
0.32706475257873535,
-1.9287712574005127,
-0.07526212930679321,
-1.9419602155685425,
-2.386305093765259,
-1.434564232826233,
-0.7830630540847778,
0.9945284128189087,
0.2235468477010727,
-1.0017759799957275,
1.1394009590148926,
-0.42738500237464905,
-1.8112183809280396,
0.9654219150543213,
-2.253246307373047
] |
https://github.com/huggingface/datasets/issues/5251 | Docs are not generated after latest release | After a discussion with @mishig25:
- He said that this action should be triggered if we call our release branch according to the regex `v*-release`, as transformers does
- I said that our procedure is different: our release branch is *temporary* and it is deleted just after the release PR is merged to main
- Indeed the release tag is not yet created when we make the release PR (not event when this is merged to main), but when we make the Release itself.
I was thinking that maybe we could change the triggering event: use `release` instead of `push`.
What do you think, @huggingface/datasets? | After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25 | 417 | 105 | Docs are not generated after latest release
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
After a discussion with @mishig25:
- He said that this action should be triggered if we call our release branch according to the regex `v*-release`, as transformers does
- I said that our procedure is different: our release branch is *temporary* and it is deleted just after the release PR is merged to main
- Indeed the release tag is not yet created when we make the release PR (not event when this is merged to main), but when we make the Release itself.
I was thinking that maybe we could change the triggering event: use `release` instead of `push`.
What do you think, @huggingface/datasets? | [
-1.1371618509292603,
-0.8619372844696045,
-0.785383403301239,
1.4082530736923218,
-0.16524270176887512,
-1.1731853485107422,
0.12403181195259094,
-1.1584120988845825,
1.5441968441009521,
-0.7569804191589355,
0.36648139357566833,
-1.719619631767273,
-0.08608347177505493,
-0.5971813797950745,
-0.7885822653770447,
-0.7625241279602051,
-0.45787593722343445,
-0.839674174785614,
0.9682144522666931,
2.5210089683532715,
1.261710286140442,
-1.3770051002502441,
2.6333775520324707,
0.7106873989105225,
-0.14843811094760895,
-1.076537013053894,
0.487792432308197,
-0.02667231485247612,
-1.229776382446289,
-0.559785008430481,
-0.8995616436004639,
-0.0775148794054985,
-0.5454832315444946,
-0.5504829287528992,
-0.03318832442164421,
0.3068065345287323,
-0.34550750255584717,
-0.28547123074531555,
-0.5582352876663208,
-0.7854738831520081,
0.4904962182044983,
-0.3394838869571686,
0.9416367411613464,
-0.42349985241889954,
1.9098557233810425,
-0.5773361921310425,
0.392040491104126,
0.6792871356010437,
1.3808543682098389,
0.21816003322601318,
-0.06080973520874977,
0.297859251499176,
0.3118918538093567,
-0.019577624276280403,
0.46950799226760864,
1.1215810775756836,
0.6935625076293945,
0.47387027740478516,
0.7287738919258118,
-2.1276512145996094,
1.222387671470642,
-1.0316380262374878,
0.19788312911987305,
1.4403948783874512,
-0.8723649382591248,
0.3119279742240906,
-1.7769752740859985,
-0.025053873658180237,
0.5035595297813416,
-2.265066623687744,
0.16685284674167633,
-1.1968424320220947,
-0.4522540271282196,
1.0058231353759766,
0.24067255854606628,
-1.3356947898864746,
0.19643574953079224,
-0.43110015988349915,
1.0950186252593994,
0.5152125358581543,
1.224613904953003,
-1.7781089544296265,
-0.08389382064342499,
-0.3042410910129547,
0.10304336994886398,
-1.286920428276062,
-1.5049002170562744,
0.48412424325942993,
0.5979342460632324,
0.5809276700019836,
-0.12816950678825378,
1.030786395072937,
-0.9671096205711365,
0.8217928409576416,
-1.021533727645874,
-1.624820351600647,
-1.4339994192123413,
-2.2269487380981445,
-2.2801783084869385,
0.7455890774726868,
-0.4637528657913208,
-0.5701262354850769,
2.010042667388916,
-1.0708967447280884,
-1.7179218530654907,
1.1364575624465942,
0.32433849573135376,
0.037839747965335846,
2.4042611122131348,
0.23564669489860535,
-0.6657552123069763,
0.3170924782752991,
-0.7137463688850403,
0.7893002033233643,
-0.4175959825515747,
1.424964427947998,
0.4973638951778412,
-1.0248188972473145,
1.6685137748718262,
-0.5031265616416931,
0.4824103116989136,
-0.6224835515022278,
-0.45548251271247864,
-0.7966440916061401,
0.24083426594734192,
1.9550994634628296,
-0.35252100229263306,
1.6140987873077393,
-0.39357101917266846,
-1.5320932865142822,
-1.6848278045654297,
0.8791795372962952,
0.5021650791168213,
-0.8321908116340637,
0.07192502170801163,
-0.3788554072380066,
0.02060580626130104,
-0.03367513045668602,
1.0407620668411255,
1.1390759944915771,
0.7271513342857361,
-0.1842436045408249,
-0.9481368660926819,
0.24889037013053894,
-0.07738502323627472,
-0.775306761264801,
-1.7551261186599731,
-0.3866848051548004,
0.13870902359485626,
0.6610691547393799,
-1.153529167175293,
1.7321115732192993,
0.9031774997711182,
1.9183213710784912,
0.9401904344558716,
-0.4224800169467926,
1.4857423305511475,
0.035339463502168655,
1.8706333637237549,
-0.5226237773895264,
0.6796976327896118,
-0.32295382022857666,
-1.1959494352340698,
0.8772056102752686,
-0.34711477160453796,
-2.018321990966797,
-0.7132565379142761,
-0.8540335893630981,
-0.20852051675319672,
-0.7839940786361694,
0.9861600399017334,
-0.23081257939338684,
-1.2402480840682983,
0.28871458768844604,
-0.6417511701583862,
0.14925958216190338,
-1.3001264333724976,
0.445100337266922,
0.8237384557723999,
-0.7497150301933289,
-0.06991015374660492,
-0.18960149586200714,
-1.3399111032485962,
-0.5353397130966187,
0.21424682438373566,
1.9169399738311768,
-0.764453649520874,
0.873203694820404,
0.9769466519355774,
-0.664025068283081,
0.0041053928434848785,
0.3700445294380188,
-0.2942669987678528,
0.8286659717559814,
-0.9963162541389465,
-0.3657907247543335,
1.2095110416412354,
-0.17212575674057007,
-0.6222580075263977,
1.376266360282898,
0.7922952771186829,
-1.0178738832473755,
-0.1533401757478714,
-0.19846251606941223,
-0.862697422504425,
0.01538135390728712,
-1.6007015705108643,
-0.07516983151435852,
0.21804183721542358,
-1.4431393146514893,
-0.4726579785346985,
-0.1302475482225418,
1.3724273443222046,
-0.18694519996643066,
1.3711798191070557,
-0.44747793674468994,
-0.12510919570922852,
-0.4884357452392578,
-0.4087238311767578,
0.2074228823184967,
-0.17171429097652435,
-0.6245220899581909,
0.36078283190727234,
-0.7838186025619507,
0.3120843768119812,
1.3306779861450195,
0.4042516052722931,
0.07680163532495499,
0.4180932343006134,
1.0666611194610596,
0.3159971237182617,
-0.049017954617738724,
-0.9178824424743652,
-1.5911674499511719,
2.1564271450042725,
-1.3627686500549316,
1.9379568099975586,
0.8000363707542419,
0.02934439852833748,
-1.7157329320907593,
-1.879508376121521,
1.3624554872512817,
1.2343084812164307,
2.306706666946411,
0.5169955492019653,
0.3253699541091919,
-0.7610035538673401,
-0.6209748983383179,
0.3882884085178375,
-1.039944052696228,
-0.7976250052452087,
0.023315351456403732,
2.4306838512420654,
1.7185381650924683,
-0.5739629864692688,
-0.16396909952163696,
-1.039072036743164,
1.362316370010376,
-0.1850508600473404,
0.22067250311374664,
1.9598442316055298,
-0.19889110326766968,
-1.154284119606018,
1.3526421785354614,
-2.4003634452819824,
0.2191881239414215,
2.0137250423431396,
0.3738378882408142,
0.14619404077529907,
-1.4006835222244263,
-0.6587739586830139,
-0.1943599134683609,
-0.35100242495536804,
-1.1998642683029175,
0.6209283471107483,
-0.31921038031578064,
-0.8353075981140137,
-1.5084214210510254,
0.159227654337883,
-1.16012442111969,
-1.7210521697998047,
0.49851641058921814,
1.7772860527038574,
1.8751822710037231,
-0.8162416219711304,
1.442252516746521,
-0.21636062860488892,
0.21561191976070404,
1.3238375186920166,
1.2668471336364746,
3.186878204345703,
1.9498963356018066,
-1.2763216495513916,
0.6221612691879272,
-0.1605871170759201,
-0.4864669740200043,
1.2065356969833374,
-1.062333106994629,
1.2318508625030518,
-0.21575912833213806,
-1.2127375602722168,
-1.3042274713516235,
0.9715719223022461,
0.5314348936080933,
0.1275932937860489,
-0.49978816509246826,
1.2463053464889526,
0.06661343574523926,
1.2960065603256226,
0.6184414029121399,
-0.3155709505081177,
0.5501554012298584,
-0.3716317117214203,
-0.3994535207748413,
1.6204665899276733,
0.2656381130218506,
-1.5333740711212158,
-2.334967613220215,
-0.23172900080680847,
-0.7642166614532471,
0.042068108916282654,
-0.5879319906234741,
-0.9765947461128235,
1.6443711519241333,
0.4570290446281433,
-1.408726692199707,
-0.29358968138694763,
-0.32356178760528564,
-0.5312675833702087,
2.5858612060546875,
-1.558571219444275,
-0.1849190890789032,
-1.02630615234375,
-0.5224185585975647,
1.5865002870559692,
-1.2680399417877197,
-0.1844111829996109,
-1.0183513164520264,
-0.6252860426902771,
-1.319588541984558,
-0.5439662933349609,
-0.061768703162670135,
-0.8271259665489197,
0.6814371347427368,
0.21859300136566162,
-1.0983145236968994,
-0.3639579713344574,
-0.9471880197525024,
0.7942548394203186,
-0.1675919145345688,
0.32114914059638977,
1.801436185836792,
0.5458062291145325,
-0.2926275432109833,
0.645033597946167,
1.1999707221984863,
0.6742621660232544,
-0.6347638964653015,
0.1977280080318451,
-0.7215645909309387,
0.2680070698261261,
-1.4305024147033691,
0.3172951340675354,
-2.889042615890503,
0.6799976229667664,
-0.06233149394392967,
-0.014056145213544369,
-0.016536641865968704,
-1.3359216451644897,
1.185736894607544,
2.5968101024627686,
-1.1873325109481812,
0.46551841497421265,
0.2618078887462616,
1.1189161539077759,
-1.6757752895355225,
0.3056890070438385,
-0.3158779442310333,
2.1566050052642822,
0.20484483242034912,
1.1821038722991943,
-0.471665620803833,
-2.283857822418213,
0.5702495574951172,
-1.2260276079177856,
-1.1854252815246582,
0.8148276209831238,
-0.7472042441368103,
0.032686516642570496,
-1.381772518157959,
-0.03375687450170517,
-0.9648640155792236,
-1.279312014579773,
0.854948103427887,
0.12209133803844452,
0.4555496573448181,
-0.6604272127151489,
0.3536427915096283,
-2.124948740005493,
-1.31011164188385,
-0.18736594915390015,
-0.9219762086868286,
0.4419417083263397,
-0.33065199851989746,
0.6768177151679993,
-0.13050077855587006,
0.05338582396507263,
0.3706269860267639,
1.4066323041915894,
3.4963974952697754,
0.2533775568008423,
0.45740118622779846,
-0.08763077110052109,
-0.9085783958435059,
1.5022737979888916,
0.8420812487602234,
-0.0812230110168457,
-0.5416553020477295,
-0.9161221981048584,
1.2075010538101196,
1.9479588270187378,
1.0212231874465942,
0.010465133003890514,
-0.8759613633155823,
-0.7376822233200073,
-0.05476871132850647,
0.1977711170911789,
0.5170583128929138,
1.0534279346466064,
-0.028530947864055634,
0.009529811330139637,
1.3188955783843994,
1.2722375392913818,
-0.4339505136013031,
0.3537695109844208,
-0.8087048530578613,
-0.4839833378791809,
0.5223804116249084,
0.3175475597381592,
0.04122137650847435,
0.45457980036735535,
-0.9239592552185059,
-0.21505406498908997,
-0.2758488059043884,
-0.8795819282531738,
-0.796973705291748,
-0.5391170382499695,
-0.3745232820510864,
1.58878493309021,
0.077591173350811,
-0.5222557783126831,
-0.03762207180261612,
-0.8567331433296204,
-0.09277621656656265,
-1.021445393562317,
0.2941977083683014,
-0.11850643157958984,
-0.20413093268871307,
-0.06576728075742722,
1.7019731998443604,
-1.0084197521209717,
-2.0915136337280273,
0.3424586057662964,
0.29660308361053467,
-0.49337658286094666,
0.10554122924804688,
1.639313817024231,
0.4399273693561554,
1.384825587272644,
1.398537039756775,
1.0499985218048096,
-0.6726669073104858,
-1.294628381729126,
0.7655226588249207,
0.9421728849411011,
-1.5036309957504272,
0.7499898672103882,
0.0593266598880291,
-0.48710623383522034,
0.6996283531188965,
1.2638609409332275,
0.45725101232528687,
-1.8605684041976929,
0.8130113482475281,
-0.8025563955307007,
0.7722409963607788,
0.6925884485244751,
0.7387702465057373,
0.2656954228878021,
0.8272466659545898,
-1.2703059911727905,
-1.1323214769363403,
-0.7217898964881897,
-0.5797188878059387,
1.8314926624298096,
-0.2099422812461853,
0.4698444604873657,
-0.11700595915317535,
-1.2660077810287476,
-0.12396513670682907,
0.7036391496658325,
0.24604400992393494,
-0.4841148853302002,
0.8256247639656067,
-0.6891753673553467,
-1.1385154724121094,
-1.3856396675109863,
-0.4398251175880432,
-0.978226363658905,
-0.9970497488975525,
1.069248080253601,
0.8363351225852966,
0.315361887216568,
1.9064055681228638,
0.5866955518722534,
0.19672073423862457,
-2.6296844482421875,
0.850513219833374,
0.27924424409866333,
-0.10038023442029953,
0.9900546073913574,
0.28652769327163696,
1.003314733505249,
-0.08559659868478775,
0.6471743583679199,
-2.394559621810913,
2.3640434741973877,
-0.22723953425884247,
0.5849477052688599,
-0.02456037327647209,
-0.24656198918819427,
1.1114012002944946,
0.5709870457649231,
0.4991471469402313,
-1.2199233770370483,
0.7429378032684326,
-0.6393399834632874,
1.1175000667572021,
0.9289844036102295,
-0.9162492156028748,
-0.011220762506127357,
1.2892217636108398,
0.4900427758693695,
-0.5066314935684204,
-0.8574410080909729,
-0.9302026033401489,
0.8331458568572998,
1.7973318099975586,
-0.005228402093052864,
-0.05153327062726021,
0.8918403387069702,
0.7544732689857483,
-1.3634675741195679,
0.08384034037590027,
-0.6850507259368896,
-0.7972465753555298,
1.6888148784637451,
2.013749599456787,
-0.008695601485669613,
-0.23688089847564697,
-0.702429473400116,
-1.2163106203079224,
0.769805371761322,
0.07942523062229156,
0.1465577632188797,
0.6456483006477356,
-0.7294601798057556,
1.1820799112319946,
0.9155218601226807,
0.9052823781967163,
0.11280203610658646,
0.33136916160583496,
0.37887486815452576,
-0.3352261185646057,
-1.152511477470398,
-0.30052751302719116,
-1.2142893075942993,
-2.535933017730713,
0.5146667957305908,
-0.312910795211792,
-1.4340617656707764,
0.05826316401362419,
-1.044282078742981,
0.8326850533485413,
-0.5232200622558594,
-1.0581846237182617,
-1.5399954319000244,
0.22064904868602753,
-0.06501682102680206,
0.8842486143112183,
-1.5766477584838867,
-0.023554790765047073,
1.3399296998977661,
0.8683556914329529,
-0.5269081592559814,
0.9283196926116943,
0.2707643508911133,
1.1713294982910156,
0.8859260082244873,
-0.412704199552536,
0.39239251613616943,
0.174117311835289,
-1.4011306762695312,
0.3615158796310425,
1.1936827898025513,
0.19902895390987396,
1.5549955368041992,
-0.5315738916397095,
0.17940939962863922,
0.39508768916130066,
-0.5671257376670837,
-0.5365378856658936,
-0.6097064018249512,
0.6795056462287903,
0.18121854960918427,
-0.9123386740684509,
0.041842829436063766,
-0.1696489304304123,
-0.1794261336326599,
0.16721771657466888,
-1.540997862815857,
-0.2288198173046112,
-0.3739476501941681,
-0.46525368094444275,
-1.1976604461669922,
-0.08074700087308884,
1.4765639305114746,
-0.6910319924354553,
-0.07461518794298172,
0.4751632511615753,
0.3543117642402649,
0.5011711716651917,
0.6916428208351135,
-0.6456120014190674,
-0.4797053337097168,
-0.30538851022720337,
-0.29828259348869324,
0.23505640029907227,
1.157785415649414,
-0.15316246449947357,
-1.0529557466506958,
0.687560498714447,
-0.37718287110328674,
0.03277326375246048,
1.929624080657959,
0.02605145424604416,
-0.8720858097076416,
0.3430241048336029,
-0.6477448344230652,
1.9953328371047974,
1.684432029724121,
1.278875470161438,
-0.0688222125172615,
-0.9229198694229126,
0.6940847635269165,
-0.27486297488212585,
-0.2803249955177307,
0.9153710007667542,
0.41631877422332764,
-0.26668909192085266,
-1.3942408561706543,
0.46094390749931335,
1.3632549047470093,
-0.8788065910339355,
-0.7932803630828857,
-0.02284480258822441,
-0.8474923372268677,
1.0635039806365967,
0.6329145431518555,
0.3944840133190155,
0.2747323513031006,
1.573129415512085,
0.7041984796524048,
-0.470467209815979,
0.562821626663208,
0.47939708828926086,
-0.2120547741651535,
-2.057435989379883,
-1.050339698791504,
0.3590432107448578,
-0.4545472264289856,
-1.5572800636291504,
1.4436169862747192,
-1.2450822591781616,
-0.891076385974884,
0.46623295545578003,
0.09666252881288528,
1.4342567920684814,
0.28258174657821655,
1.672431468963623,
2.0042521953582764,
0.9365854859352112,
0.2704090476036072,
1.3635215759277344,
-0.008550046011805534,
-0.4265775680541992,
1.78764009475708,
-0.37776219844818115,
0.48497071862220764,
1.1246222257614136,
-0.3266201317310333,
-1.0880271196365356,
-0.8898705244064331,
-1.1286789178848267,
-0.6875770092010498,
1.17747163772583,
0.0793352872133255,
-1.2335748672485352,
0.23856697976589203,
1.6075776815414429,
0.03075272962450981,
-0.2531006336212158,
0.5119134783744812,
0.4182080030441284,
-0.6606879234313965,
-0.06479386240243912,
-0.9502863883972168,
0.5572705864906311,
-0.15112411975860596,
-0.3793226182460785,
0.3518669903278351,
0.4990641176700592,
1.2121167182922363,
0.04419558122754097,
0.1455506533384323,
1.2481390237808228,
-1.4358175992965698,
1.4734933376312256,
-0.5879207253456116,
0.17221301794052124,
-2.384007453918457,
1.435904860496521,
-0.7254048585891724,
1.9307184219360352,
-2.572446823120117,
0.3872935175895691,
-0.6241031885147095,
-0.44024360179901123,
0.3911900222301483,
-0.44227227568626404,
0.20742632448673248,
-0.19036473333835602,
-1.0140482187271118,
-0.20680750906467438,
-0.8110491037368774,
0.5562572479248047,
1.1700154542922974,
1.3824896812438965,
-1.0166645050048828,
-0.36000025272369385,
-1.7279120683670044,
-0.21221429109573364,
-0.5544744729995728,
0.30539655685424805,
-2.0422072410583496,
-0.24064688384532928,
-2.0552682876586914,
-2.3102493286132812,
-1.4081348180770874,
-0.7970535755157471,
1.1212024688720703,
0.170000821352005,
-0.8245111107826233,
1.1269620656967163,
-0.3848666548728943,
-1.7548248767852783,
0.9728049635887146,
-2.100123405456543
] |
https://github.com/huggingface/datasets/issues/5251 | Docs are not generated after latest release | He says not; but the branch has no tag yet; does the doc building require the tag? Or just the version number in `__init__.py` or setup.py? | After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25 | 417 | 26 | Docs are not generated after latest release
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
He says not; but the branch has no tag yet; does the doc building require the tag? Or just the version number in `__init__.py` or setup.py? | [
-1.1749852895736694,
-0.8802454471588135,
-0.8067964315414429,
1.4890151023864746,
-0.15009035170078278,
-1.2786238193511963,
0.11817339062690735,
-1.1619009971618652,
1.5683194398880005,
-0.7806316614151001,
0.29594579339027405,
-1.6399861574172974,
-0.027237124741077423,
-0.5170646905899048,
-0.689000129699707,
-0.853973388671875,
-0.3998127281665802,
-0.8224858641624451,
1.0026731491088867,
2.499868392944336,
1.2188245058059692,
-1.2622363567352295,
2.7058589458465576,
0.6932415962219238,
-0.24803300201892853,
-1.0310328006744385,
0.5542731881141663,
-0.0039998493157327175,
-1.3052059412002563,
-0.5650553703308105,
-0.9427624940872192,
0.04145015776157379,
-0.47568994760513306,
-0.4826602637767792,
0.043171726167201996,
0.29762694239616394,
-0.3550322949886322,
-0.3128092586994171,
-0.6195255517959595,
-0.7895805239677429,
0.42384979128837585,
-0.3021954894065857,
0.8819671273231506,
-0.40929892659187317,
1.8627320528030396,
-0.4940135180950165,
0.32503023743629456,
0.7065166234970093,
1.3458994626998901,
0.1113584116101265,
-0.07172739505767822,
0.30905231833457947,
0.27546581625938416,
-0.00994148664176464,
0.4483092725276947,
1.1589727401733398,
0.6449339985847473,
0.4630523920059204,
0.6254484057426453,
-2.1258513927459717,
1.2773164510726929,
-0.992388129234314,
0.17706149816513062,
1.440213680267334,
-0.9855068325996399,
0.2673504054546356,
-1.6984374523162842,
-0.02937895432114601,
0.510328471660614,
-2.363994836807251,
0.2552798092365265,
-1.220093011856079,
-0.4796932339668274,
1.0397552251815796,
0.2734857499599457,
-1.2627862691879272,
0.17776042222976685,
-0.5458476543426514,
1.0667645931243896,
0.5432972311973572,
1.1849172115325928,
-1.714786171913147,
-0.003010866232216358,
-0.22656764090061188,
-0.010558724403381348,
-1.3536064624786377,
-1.5057870149612427,
0.5111172199249268,
0.6119840145111084,
0.6719051003456116,
-0.08630523830652237,
1.031701922416687,
-0.8953638672828674,
0.8588628172874451,
-0.895858883857727,
-1.5262354612350464,
-1.3888492584228516,
-2.345674753189087,
-2.2256765365600586,
0.8093204498291016,
-0.47424638271331787,
-0.5468366146087646,
2.075263261795044,
-1.0884977579116821,
-1.7827293872833252,
1.1610119342803955,
0.28225964307785034,
0.047222644090652466,
2.3734405040740967,
0.28407928347587585,
-0.6448556184768677,
0.32304346561431885,
-0.7062389850616455,
0.8131870627403259,
-0.40506935119628906,
1.3941999673843384,
0.5564569234848022,
-1.0418559312820435,
1.6152757406234741,
-0.41533809900283813,
0.5448366403579712,
-0.6092369556427002,
-0.48700353503227234,
-0.888970673084259,
0.2776806056499481,
1.957417607307434,
-0.3714006841182709,
1.6219372749328613,
-0.4001385271549225,
-1.5637400150299072,
-1.6254595518112183,
0.9007242321968079,
0.527370035648346,
-0.8456113338470459,
0.08354902267456055,
-0.3390842080116272,
-0.06237749755382538,
0.004305516369640827,
1.0923961400985718,
1.2649284601211548,
0.6826866865158081,
-0.2965124249458313,
-0.8722779750823975,
0.24322253465652466,
-0.01427166722714901,
-0.7111175656318665,
-1.8512805700302124,
-0.34032657742500305,
0.11737145483493805,
0.6566483378410339,
-1.2009859085083008,
1.7171406745910645,
0.9464341998100281,
1.9158350229263306,
0.9069181680679321,
-0.3812851309776306,
1.5223389863967896,
-0.05976494401693344,
1.8479069471359253,
-0.47933483123779297,
0.6364154815673828,
-0.3223849833011627,
-1.2386391162872314,
0.866973876953125,
-0.30217623710632324,
-1.972092866897583,
-0.8144038915634155,
-0.8503419756889343,
-0.18865057826042175,
-0.7844162583351135,
0.9692209959030151,
-0.4051004946231842,
-1.327149510383606,
0.24463126063346863,
-0.6454357504844666,
0.2019280046224594,
-1.2511392831802368,
0.34003764390945435,
0.8173180818557739,
-0.6927141547203064,
-0.10246176272630692,
-0.14884567260742188,
-1.2987877130508423,
-0.5439407825469971,
0.28663700819015503,
1.9415253400802612,
-0.7189929485321045,
0.9197385907173157,
1.0918219089508057,
-0.7368992567062378,
0.056029967963695526,
0.29623380303382874,
-0.3281855285167694,
0.8372671604156494,
-1.0543538331985474,
-0.37339887022972107,
1.2418357133865356,
-0.22998690605163574,
-0.6545943021774292,
1.4193857908248901,
0.8128370046615601,
-1.0418428182601929,
-0.19604483246803284,
-0.17723216116428375,
-0.8128564953804016,
0.055136874318122864,
-1.571662425994873,
-0.16716429591178894,
0.2435482144355774,
-1.4283802509307861,
-0.4614698588848114,
-0.1620800793170929,
1.4144585132598877,
-0.2364117056131363,
1.4137840270996094,
-0.3961693048477173,
-0.14463067054748535,
-0.42093610763549805,
-0.4494573771953583,
0.2509356439113617,
-0.17435693740844727,
-0.600652277469635,
0.3419700562953949,
-0.7764609456062317,
0.333513081073761,
1.4028527736663818,
0.35410210490226746,
0.14547663927078247,
0.5150195360183716,
1.0035219192504883,
0.35528427362442017,
-0.1261928528547287,
-0.9342113137245178,
-1.6324344873428345,
2.090379476547241,
-1.373576045036316,
1.9262932538986206,
0.8010525703430176,
-0.04274541884660721,
-1.7096552848815918,
-1.9472097158432007,
1.2624127864837646,
1.240102767944336,
2.1842455863952637,
0.510337233543396,
0.37417832016944885,
-0.7759042382240295,
-0.6779451966285706,
0.3159850239753723,
-1.0744032859802246,
-0.7591989636421204,
0.06759697198867798,
2.342987060546875,
1.7597960233688354,
-0.47706231474876404,
-0.22243322432041168,
-1.067175269126892,
1.2316962480545044,
-0.1464151293039322,
0.21151313185691833,
1.9272499084472656,
-0.16181695461273193,
-1.1624752283096313,
1.1991283893585205,
-2.3646037578582764,
0.2515580356121063,
2.0646555423736572,
0.3326205611228943,
0.06071734428405762,
-1.5150121450424194,
-0.6486891508102417,
-0.2369874268770218,
-0.4212035834789276,
-1.2007681131362915,
0.6721224188804626,
-0.3658486008644104,
-0.8396231532096863,
-1.4734374284744263,
0.1669427901506424,
-1.1378867626190186,
-1.7820137739181519,
0.4778205454349518,
1.8566712141036987,
1.965110182762146,
-0.7997339963912964,
1.4632591009140015,
-0.2816024720668793,
0.13689850270748138,
1.2432860136032104,
1.2954083681106567,
3.168609142303467,
1.9154568910598755,
-1.2932437658309937,
0.6624370813369751,
-0.07531403750181198,
-0.4628254175186157,
1.1875556707382202,
-1.0487134456634521,
1.318813681602478,
-0.19561918079853058,
-1.206856369972229,
-1.3427678346633911,
0.9211230278015137,
0.5435784459114075,
0.09927711635828018,
-0.47796890139579773,
1.256083607673645,
0.07483107596635818,
1.2977792024612427,
0.5899335145950317,
-0.35999172925949097,
0.5529299378395081,
-0.32446178793907166,
-0.469909131526947,
1.627375841140747,
0.22058862447738647,
-1.558870792388916,
-2.366472005844116,
-0.31127461791038513,
-0.7548854947090149,
0.023525642231106758,
-0.6044211983680725,
-0.935261607170105,
1.6698766946792603,
0.48710060119628906,
-1.307388424873352,
-0.2913924753665924,
-0.2915986180305481,
-0.5342262983322144,
2.6205503940582275,
-1.4437652826309204,
-0.16551464796066284,
-0.9631767272949219,
-0.46763700246810913,
1.6402949094772339,
-1.2405658960342407,
-0.2734810709953308,
-0.997832715511322,
-0.621631383895874,
-1.2761814594268799,
-0.5700005888938904,
-0.08166947215795517,
-0.9476896524429321,
0.6912756562232971,
0.14660929143428802,
-1.048424482345581,
-0.3512137234210968,
-0.8852194547653198,
0.9249501824378967,
-0.1300489753484726,
0.24640196561813354,
1.8551015853881836,
0.49948135018348694,
-0.37475207448005676,
0.7287262082099915,
1.1680631637573242,
0.6058849096298218,
-0.6455883979797363,
0.15537729859352112,
-0.7543342113494873,
0.24749547243118286,
-1.4138401746749878,
0.2997262477874756,
-2.9948675632476807,
0.6160094738006592,
-0.12643872201442719,
-0.04730305075645447,
-0.07346735894680023,
-1.3727108240127563,
1.1824184656143188,
2.5744056701660156,
-1.2520259618759155,
0.5171061754226685,
0.28483834862709045,
1.0656076669692993,
-1.6249736547470093,
0.26346251368522644,
-0.32992663979530334,
2.103746175765991,
0.16802442073822021,
1.2115522623062134,
-0.44718658924102783,
-2.1599650382995605,
0.6580198407173157,
-1.2012146711349487,
-1.133143663406372,
0.8110882639884949,
-0.800294041633606,
0.11748898029327393,
-1.321433186531067,
-0.0762496218085289,
-0.8035648465156555,
-1.3097200393676758,
0.7364225387573242,
0.1450440138578415,
0.4752848446369171,
-0.6008056998252869,
0.3513367176055908,
-2.1340718269348145,
-1.2950770854949951,
-0.10963144898414612,
-1.041236400604248,
0.4926464855670929,
-0.4055331349372864,
0.5568852424621582,
-0.13629570603370667,
0.14317938685417175,
0.40940290689468384,
1.4233394861221313,
3.5271403789520264,
0.22856010496616364,
0.35173431038856506,
-0.06292839348316193,
-0.8975527882575989,
1.4923182725906372,
0.8979672789573669,
-0.1015821099281311,
-0.5477880239486694,
-0.8944858908653259,
1.2075361013412476,
1.959446668624878,
1.0195659399032593,
0.060386963188648224,
-0.8940512537956238,
-0.7775521874427795,
-0.08132506161928177,
0.17529383301734924,
0.5523329973220825,
0.9795903563499451,
-0.05142475664615631,
-0.018136855214834213,
1.351930022239685,
1.224487543106079,
-0.45581313967704773,
0.4509195387363434,
-0.8626301288604736,
-0.47086086869239807,
0.46319717168807983,
0.33279237151145935,
-0.037345364689826965,
0.4911591410636902,
-0.9157891273498535,
-0.20516808331012726,
-0.31852588057518005,
-0.8659544587135315,
-0.765329122543335,
-0.44973549246788025,
-0.3345543444156647,
1.6104754209518433,
0.09977254271507263,
-0.46257704496383667,
-0.024502120912075043,
-0.8014708161354065,
-0.1304868757724762,
-1.096538782119751,
0.24149781465530396,
-0.13738802075386047,
-0.1016722247004509,
-0.06636262685060501,
1.6900594234466553,
-1.0490070581436157,
-2.13358998298645,
0.28784415125846863,
0.27408695220947266,
-0.4091319441795349,
0.18590624630451202,
1.6544052362442017,
0.40296539664268494,
1.4494080543518066,
1.3456807136535645,
1.0492581129074097,
-0.6887891292572021,
-1.2834018468856812,
0.7868268489837646,
0.914897620677948,
-1.5193874835968018,
0.7596321702003479,
-0.13736747205257416,
-0.5253849625587463,
0.7710592150688171,
1.3366612195968628,
0.5000579953193665,
-1.925660252571106,
0.9189857244491577,
-0.8330085873603821,
0.7783762216567993,
0.7295539975166321,
0.7358120083808899,
0.23513570427894592,
0.8365840911865234,
-1.1945884227752686,
-1.1832647323608398,
-0.7024763822555542,
-0.6665273308753967,
1.84062922000885,
-0.29660555720329285,
0.4811456799507141,
-0.12271005660295486,
-1.2927722930908203,
-0.11510684341192245,
0.6867736577987671,
0.31514936685562134,
-0.3857596218585968,
0.8458263278007507,
-0.7286432981491089,
-1.141297459602356,
-1.402880311012268,
-0.4497951865196228,
-0.9663980007171631,
-0.9701147079467773,
1.0026952028274536,
0.7695504426956177,
0.3092770278453827,
1.914865493774414,
0.5993329882621765,
0.1875944584608078,
-2.5439882278442383,
0.9161226749420166,
0.2708567976951599,
-0.04446486383676529,
0.9702802300453186,
0.2715870141983032,
1.112578272819519,
-0.04295814782381058,
0.5016566514968872,
-2.3277816772460938,
2.347602128982544,
-0.2420046180486679,
0.5833443403244019,
0.043535299599170685,
-0.20348206162452698,
1.124158263206482,
0.49457356333732605,
0.6354700326919556,
-1.281633973121643,
0.7793372273445129,
-0.5969852209091187,
1.1879338026046753,
0.9614760279655457,
-0.9234266877174377,
0.02203294448554516,
1.284683108329773,
0.5251781344413757,
-0.49880149960517883,
-0.8574681282043457,
-1.004606008529663,
0.8640614151954651,
1.7128323316574097,
-0.0313088595867157,
0.009328046813607216,
0.7847738265991211,
0.7299146056175232,
-1.339531660079956,
0.026400083675980568,
-0.734701931476593,
-0.789304256439209,
1.6299546957015991,
2.0110366344451904,
-0.0390918143093586,
-0.2060786783695221,
-0.7469477653503418,
-1.230849027633667,
0.733977735042572,
-0.013694960623979568,
0.09753275662660599,
0.5503963232040405,
-0.6714410185813904,
1.1457496881484985,
0.9072123169898987,
0.9270827770233154,
0.04629053175449371,
0.34577569365501404,
0.4417615532875061,
-0.2699069380760193,
-1.1432572603225708,
-0.35823550820350647,
-1.1276838779449463,
-2.5826990604400635,
0.43484896421432495,
-0.3713203966617584,
-1.397316336631775,
0.02716195024549961,
-1.135119080543518,
0.8717355728149414,
-0.5292783379554749,
-0.9944202303886414,
-1.4980462789535522,
0.2434132993221283,
-0.1776241660118103,
0.8855506181716919,
-1.5341508388519287,
-0.10624749213457108,
1.3622727394104004,
0.9068649411201477,
-0.6398324370384216,
1.055724859237671,
0.2037622481584549,
1.0897035598754883,
0.7598469853401184,
-0.45081835985183716,
0.4509567320346832,
0.15493015944957733,
-1.4171169996261597,
0.4234592020511627,
1.2193166017532349,
0.20378230512142181,
1.4890625476837158,
-0.522307276725769,
0.11757878959178925,
0.4440838098526001,
-0.5974404215812683,
-0.5910708904266357,
-0.5239437222480774,
0.7591654062271118,
0.0602206289768219,
-0.9064214825630188,
0.12086841464042664,
-0.24737925827503204,
-0.2676788866519928,
0.15031492710113525,
-1.5474005937576294,
-0.30578088760375977,
-0.3443169593811035,
-0.40030285716056824,
-1.2852832078933716,
-0.004276033025234938,
1.4152735471725464,
-0.6825317740440369,
-0.13225112855434418,
0.4176064729690552,
0.4778038263320923,
0.5447288155555725,
0.7495697736740112,
-0.7139991521835327,
-0.343752920627594,
-0.38335534930229187,
-0.28778600692749023,
0.4263063669204712,
1.1827000379562378,
-0.12869326770305634,
-0.9786466956138611,
0.6324005722999573,
-0.33430320024490356,
0.048366740345954895,
1.9700459241867065,
-0.0008659614250063896,
-0.8093472719192505,
0.316419392824173,
-0.6855158805847168,
1.9905272722244263,
1.6229828596115112,
1.2731596231460571,
-0.1222141832113266,
-0.9499183893203735,
0.6930959224700928,
-0.19633005559444427,
-0.2420414835214615,
0.9335816502571106,
0.44515761733055115,
-0.20711566507816315,
-1.394260048866272,
0.4909438192844391,
1.3008657693862915,
-0.8462792038917542,
-0.769655704498291,
-0.038629330694675446,
-0.7572595477104187,
1.0526525974273682,
0.6983365416526794,
0.4497184753417969,
0.3284349739551544,
1.6093558073043823,
0.6766300797462463,
-0.5225588083267212,
0.4973432123661041,
0.45557042956352234,
-0.24863244593143463,
-2.0763540267944336,
-1.0139058828353882,
0.39442163705825806,
-0.4318922460079193,
-1.5553187131881714,
1.406812071800232,
-1.1445286273956299,
-0.899344801902771,
0.45825618505477905,
0.07799572497606277,
1.4360787868499756,
0.24882587790489197,
1.6840215921401978,
1.995058298110962,
0.9337880611419678,
0.21919430792331696,
1.3737833499908447,
-0.05677376687526703,
-0.4326359033584595,
1.8124979734420776,
-0.38982120156288147,
0.42309603095054626,
1.0979588031768799,
-0.4507673382759094,
-1.0269222259521484,
-0.8602787256240845,
-1.051533818244934,
-0.6686707139015198,
1.182716965675354,
0.052338168025016785,
-1.2382752895355225,
0.279020220041275,
1.5325157642364502,
0.15386183559894562,
-0.17257843911647797,
0.6703774333000183,
0.443251371383667,
-0.6912485957145691,
-0.08192373067140579,
-0.9096707105636597,
0.5215820074081421,
-0.16144931316375732,
-0.41579851508140564,
0.34048932790756226,
0.4205268621444702,
1.2139872312545776,
-0.02835729345679283,
0.13616859912872314,
1.164675235748291,
-1.452803134918213,
1.4669030904769897,
-0.5600702166557312,
0.23460499942302704,
-2.334937334060669,
1.4569916725158691,
-0.7978577017784119,
1.908463716506958,
-2.5983662605285645,
0.41579848527908325,
-0.592921793460846,
-0.4154931306838989,
0.37298035621643066,
-0.45358607172966003,
0.20177216827869415,
-0.22807911038398743,
-1.0280556678771973,
-0.21074731647968292,
-0.7880194187164307,
0.5975297093391418,
1.241833209991455,
1.3370137214660645,
-1.0057220458984375,
-0.28271129727363586,
-1.7275758981704712,
-0.1981908231973648,
-0.6348021030426025,
0.3334527611732483,
-2.074065923690796,
-0.28097662329673767,
-2.0479109287261963,
-2.356642246246338,
-1.316776156425476,
-0.7292503714561462,
1.149081826210022,
0.22135254740715027,
-0.8314738273620605,
1.1511337757110596,
-0.3202049136161804,
-1.7929126024246216,
0.9970484972000122,
-2.105560302734375
] |
https://github.com/huggingface/datasets/issues/5251 | Docs are not generated after latest release | It uses `module.__version__` (i.e. the one defined in `__init__.py`) - no need to have a tag
https://github.com/huggingface/doc-builder/blob/81575cf081964c30ea5fd39450f4820db963f18e/src/doc_builder/commands/build.py#L69 | After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25 | 417 | 17 | Docs are not generated after latest release
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
It uses `module.__version__` (i.e. the one defined in `__init__.py`) - no need to have a tag
https://github.com/huggingface/doc-builder/blob/81575cf081964c30ea5fd39450f4820db963f18e/src/doc_builder/commands/build.py#L69 | [
-1.188065767288208,
-0.8459247946739197,
-0.7654978036880493,
1.485661268234253,
-0.10303360223770142,
-1.2514065504074097,
0.13461731374263763,
-1.0826553106307983,
1.6010279655456543,
-0.6857141852378845,
0.2985436022281647,
-1.6322746276855469,
-0.016449371352791786,
-0.5406118035316467,
-0.7043341994285583,
-0.8416563868522644,
-0.311964750289917,
-0.8673145771026611,
1.0339936017990112,
2.5355348587036133,
1.2903000116348267,
-1.2884306907653809,
2.6688833236694336,
0.6901025772094727,
-0.30782830715179443,
-1.0347133874893188,
0.505089521408081,
0.006425685249269009,
-1.2276756763458252,
-0.57731693983078,
-0.902406632900238,
0.002665863372385502,
-0.4873577058315277,
-0.5121361017227173,
0.03444864600896835,
0.3822232186794281,
-0.3176366090774536,
-0.23557113111019135,
-0.5493898391723633,
-0.8087652921676636,
0.4910978376865387,
-0.3486296534538269,
0.8936967253684998,
-0.3313468396663666,
1.8119062185287476,
-0.5291085243225098,
0.3902152180671692,
0.6527695059776306,
1.3453000783920288,
0.1075698509812355,
-0.08143902570009232,
0.304470419883728,
0.3095351457595825,
0.010084408335387707,
0.4456467926502228,
1.1963894367218018,
0.673271119594574,
0.4191780686378479,
0.69833904504776,
-2.1552953720092773,
1.2908122539520264,
-0.9468775391578674,
0.09139379858970642,
1.4079333543777466,
-0.9359909892082214,
0.2916651666164398,
-1.7291741371154785,
-0.054833557456731796,
0.5319713950157166,
-2.332022190093994,
0.2536182999610901,
-1.289475917816162,
-0.531040608882904,
1.0218019485473633,
0.27187579870224,
-1.303628921508789,
0.18302102386951447,
-0.52788245677948,
1.092876672744751,
0.5328054428100586,
1.125834584236145,
-1.7457889318466187,
-0.13462862372398376,
-0.2111051380634308,
0.05035826936364174,
-1.3676550388336182,
-1.523738145828247,
0.482575923204422,
0.5704236030578613,
0.6879074573516846,
-0.06383316218852997,
1.0005607604980469,
-0.917194128036499,
0.810371994972229,
-0.9412788152694702,
-1.547184705734253,
-1.3836746215820312,
-2.3565726280212402,
-2.283454656600952,
0.7517067193984985,
-0.46902573108673096,
-0.5287052989006042,
2.044589042663574,
-1.0782651901245117,
-1.7796794176101685,
1.1145223379135132,
0.3185368776321411,
0.08206605911254883,
2.365908622741699,
0.2990554869174957,
-0.7123404145240784,
0.34819331765174866,
-0.7046461701393127,
0.795869767665863,
-0.39882731437683105,
1.370975375175476,
0.5793431401252747,
-1.0273048877716064,
1.5974082946777344,
-0.46435534954071045,
0.5449159145355225,
-0.6580129265785217,
-0.48460161685943604,
-0.8205490708351135,
0.2941884696483612,
1.9364581108093262,
-0.4018310010433197,
1.6129685640335083,
-0.33505627512931824,
-1.5820119380950928,
-1.5536514520645142,
0.8603161573410034,
0.49186816811561584,
-0.8609151840209961,
0.0743020623922348,
-0.3890928626060486,
0.032114848494529724,
-0.018719272688031197,
1.0266039371490479,
1.2516875267028809,
0.6877763867378235,
-0.305265873670578,
-0.8940944075584412,
0.30123618245124817,
-0.04232970252633095,
-0.7072237730026245,
-1.8338065147399902,
-0.32741793990135193,
0.20171813666820526,
0.6955503821372986,
-1.2341413497924805,
1.7270735502243042,
0.8560148477554321,
1.9810377359390259,
0.9107874035835266,
-0.36648035049438477,
1.514466643333435,
-0.026577338576316833,
1.8832483291625977,
-0.5212497711181641,
0.6460750102996826,
-0.34079644083976746,
-1.2112233638763428,
0.8766674399375916,
-0.3354359567165375,
-1.9761921167373657,
-0.7644052505493164,
-0.781473696231842,
-0.14482556283473969,
-0.798278272151947,
0.9046881794929504,
-0.3538002073764801,
-1.3766334056854248,
0.27090322971343994,
-0.6902288794517517,
0.18529270589351654,
-1.2460592985153198,
0.2947949767112732,
0.8036876320838928,
-0.6373175382614136,
-0.10102105885744095,
-0.14135751128196716,
-1.2943707704544067,
-0.5401109457015991,
0.2682351768016815,
1.967402696609497,
-0.646594762802124,
0.9160245656967163,
1.0377388000488281,
-0.7090272903442383,
0.08779756724834442,
0.33708614110946655,
-0.3249184191226959,
0.7796803116798401,
-1.122102975845337,
-0.2923118770122528,
1.243859887123108,
-0.2305249571800232,
-0.6831321120262146,
1.3867437839508057,
0.8891875147819519,
-1.0210142135620117,
-0.14920851588249207,
-0.20108583569526672,
-0.786247968673706,
0.0374579131603241,
-1.5711346864700317,
-0.1754496991634369,
0.32041025161743164,
-1.3904750347137451,
-0.3782263398170471,
-0.12011729180812836,
1.4452437162399292,
-0.22610673308372498,
1.4285736083984375,
-0.35913923382759094,
-0.1298639327287674,
-0.382866770029068,
-0.4726419150829315,
0.2010970115661621,
-0.21014925837516785,
-0.6296578049659729,
0.24452291429042816,
-0.7701859474182129,
0.31439247727394104,
1.4120244979858398,
0.37449708580970764,
0.10339032113552094,
0.4062553346157074,
1.0869812965393066,
0.31664592027664185,
-0.12146622687578201,
-0.9305766820907593,
-1.5921167135238647,
2.1052322387695312,
-1.323541522026062,
1.9692476987838745,
0.8046753406524658,
-0.04586932435631752,
-1.7079933881759644,
-1.9145128726959229,
1.235317587852478,
1.188947081565857,
2.3141660690307617,
0.5236143469810486,
0.39947080612182617,
-0.7433243989944458,
-0.7177305221557617,
0.3362010419368744,
-1.0569730997085571,
-0.7207350730895996,
0.08786173909902573,
2.412059783935547,
1.7426897287368774,
-0.5139432549476624,
-0.23768073320388794,
-1.0209572315216064,
1.266912579536438,
-0.16292507946491241,
0.2016894817352295,
1.9753113985061646,
-0.1914030909538269,
-1.1686370372772217,
1.260352611541748,
-2.355466604232788,
0.26461267471313477,
2.09464430809021,
0.34449997544288635,
0.1056913509964943,
-1.4785946607589722,
-0.6599599719047546,
-0.2362680435180664,
-0.468021422624588,
-1.1479547023773193,
0.6097573637962341,
-0.3982113301753998,
-0.9028197526931763,
-1.4757745265960693,
0.10413170605897903,
-1.1534509658813477,
-1.7699909210205078,
0.4880445599555969,
1.7848563194274902,
1.9612349271774292,
-0.7829596996307373,
1.4638901948928833,
-0.22977116703987122,
0.10873539000749588,
1.3015564680099487,
1.3479472398757935,
3.1370511054992676,
1.9018419981002808,
-1.2774014472961426,
0.7172610759735107,
-0.15053603053092957,
-0.4697495400905609,
1.2402695417404175,
-1.0980769395828247,
1.2095940113067627,
-0.21345600485801697,
-1.2649121284484863,
-1.303978443145752,
0.9580836296081543,
0.5397632718086243,
0.08674368262290955,
-0.5560094118118286,
1.212136149406433,
0.10958897322416306,
1.3333380222320557,
0.6213131546974182,
-0.32323768734931946,
0.5897664427757263,
-0.3717387914657593,
-0.4832654893398285,
1.557788610458374,
0.209962397813797,
-1.5423643589019775,
-2.4052562713623047,
-0.26666709780693054,
-0.7770432829856873,
-0.08365023881196976,
-0.6293149590492249,
-1.0253026485443115,
1.6311590671539307,
0.4561448395252228,
-1.3277695178985596,
-0.2539382874965668,
-0.28746387362480164,
-0.5110423564910889,
2.645803451538086,
-1.4284093379974365,
-0.12840703129768372,
-1.0183136463165283,
-0.5093172192573547,
1.6188215017318726,
-1.221556305885315,
-0.26537951827049255,
-1.0100009441375732,
-0.6251813769340515,
-1.3091659545898438,
-0.5123237371444702,
-0.05834106355905533,
-0.8898265361785889,
0.6336368322372437,
0.16386908292770386,
-1.0650418996810913,
-0.33815667033195496,
-0.867182731628418,
0.9311789870262146,
-0.11157123744487762,
0.2268659621477127,
1.814272403717041,
0.494891494512558,
-0.40441182255744934,
0.6748529076576233,
1.1483256816864014,
0.5725052356719971,
-0.6712591648101807,
0.11923154443502426,
-0.7484671473503113,
0.25130143761634827,
-1.4607601165771484,
0.28035998344421387,
-2.925778388977051,
0.7028516530990601,
-0.1462007313966751,
-0.12296797335147858,
-0.06077098846435547,
-1.3269505500793457,
1.180846095085144,
2.616849660873413,
-1.2358720302581787,
0.4786983132362366,
0.32755228877067566,
1.0906819105148315,
-1.616524338722229,
0.27544111013412476,
-0.38145992159843445,
2.1201863288879395,
0.18365216255187988,
1.2973264455795288,
-0.4792143702507019,
-2.1874635219573975,
0.6743996143341064,
-1.170531988143921,
-1.0928071737289429,
0.7807082533836365,
-0.8249542117118835,
0.11358419060707092,
-1.3489097356796265,
-0.11726617068052292,
-0.9171079397201538,
-1.2926902770996094,
0.7781951427459717,
0.1567745953798294,
0.4902411103248596,
-0.5979906320571899,
0.37829920649528503,
-2.10098934173584,
-1.2683072090148926,
-0.1428697556257248,
-1.0152785778045654,
0.5023568868637085,
-0.37292224168777466,
0.545432448387146,
-0.14378654956817627,
0.11265289038419724,
0.39135074615478516,
1.4599584341049194,
3.4726474285125732,
0.2531287670135498,
0.26949068903923035,
-0.08767908811569214,
-0.933349609375,
1.4162150621414185,
0.8849700093269348,
-0.07653630524873734,
-0.5624164342880249,
-0.9204437732696533,
1.2492858171463013,
2.0138895511627197,
1.064897894859314,
0.08968770503997803,
-0.9270622134208679,
-0.8160039186477661,
0.0011006388813257217,
0.15044145286083221,
0.4948256313800812,
1.0015051364898682,
-0.028770457953214645,
-0.06789545714855194,
1.351831316947937,
1.2351956367492676,
-0.4411424398422241,
0.43770328164100647,
-0.9250807166099548,
-0.38945531845092773,
0.4050135016441345,
0.3121773600578308,
0.027128607034683228,
0.5476267337799072,
-0.9613770246505737,
-0.1948741376399994,
-0.34466227889060974,
-0.8779928088188171,
-0.8187163472175598,
-0.5055691599845886,
-0.35866206884384155,
1.619164228439331,
0.08629217743873596,
-0.427938312292099,
0.027996454387903214,
-0.7999491691589355,
-0.13091683387756348,
-1.1029020547866821,
0.18851684033870697,
-0.16053026914596558,
-0.04287644103169441,
-0.10103056579828262,
1.6529316902160645,
-1.0082217454910278,
-2.1366677284240723,
0.2845909595489502,
0.24902047216892242,
-0.47799989581108093,
0.17359226942062378,
1.7072176933288574,
0.45349472761154175,
1.4379128217697144,
1.3055802583694458,
1.041938304901123,
-0.702383279800415,
-1.228162407875061,
0.8028271198272705,
0.8767694234848022,
-1.4828431606292725,
0.8225517272949219,
-0.09114185720682144,
-0.4889105260372162,
0.7679027915000916,
1.3311915397644043,
0.43862900137901306,
-1.9323354959487915,
0.8272330164909363,
-0.8232017755508423,
0.7570503950119019,
0.6453535556793213,
0.7616245150566101,
0.2558351159095764,
0.8413182497024536,
-1.2413100004196167,
-1.1217197179794312,
-0.6793786287307739,
-0.6388494968414307,
1.8452194929122925,
-0.2487356960773468,
0.5393944382667542,
-0.1315993368625641,
-1.1932239532470703,
-0.09237786382436752,
0.7880544066429138,
0.2780490219593048,
-0.42665645480155945,
0.8772900700569153,
-0.7040647268295288,
-1.0238361358642578,
-1.345019817352295,
-0.5034995079040527,
-0.9262565970420837,
-0.9547708034515381,
0.9809253811836243,
0.7293298244476318,
0.32434171438217163,
1.936058759689331,
0.5832653045654297,
0.243763729929924,
-2.554987907409668,
0.8864173889160156,
0.2608521282672882,
0.012524104677140713,
0.9993253946304321,
0.23350852727890015,
1.1213339567184448,
-0.06260359287261963,
0.5435720682144165,
-2.3149397373199463,
2.272947311401367,
-0.24042050540447235,
0.5601381063461304,
-0.00650404067710042,
-0.21030959486961365,
1.1300207376480103,
0.49603524804115295,
0.5856788754463196,
-1.2693983316421509,
0.8086169362068176,
-0.6300604939460754,
1.1201242208480835,
0.9209775328636169,
-0.9605069160461426,
0.05433892458677292,
1.3207550048828125,
0.42703625559806824,
-0.43761399388313293,
-0.8624764084815979,
-0.9016208052635193,
0.8795164823532104,
1.6955461502075195,
-0.04288337379693985,
-0.008388286456465721,
0.8552398681640625,
0.7272256016731262,
-1.3240724802017212,
0.04106033965945244,
-0.7284207940101624,
-0.7747156620025635,
1.674570083618164,
1.9965484142303467,
-0.05826400965452194,
-0.27486056089401245,
-0.7690399885177612,
-1.221667766571045,
0.7343927621841431,
0.0501323863863945,
0.05750146508216858,
0.5632337927818298,
-0.6998768448829651,
1.172914981842041,
0.8454864025115967,
0.9753149151802063,
0.028291955590248108,
0.3706812858581543,
0.4440382719039917,
-0.3581429123878479,
-1.1836856603622437,
-0.37859439849853516,
-1.1581966876983643,
-2.613384485244751,
0.5118239521980286,
-0.2638820707798004,
-1.4562885761260986,
0.07521774619817734,
-1.1101399660110474,
0.8417009115219116,
-0.5581791996955872,
-1.0184624195098877,
-1.4651323556900024,
0.2823939323425293,
-0.2313223034143448,
0.8768221735954285,
-1.5994048118591309,
-0.0939926952123642,
1.3432495594024658,
0.8840134143829346,
-0.5775019526481628,
0.9987519979476929,
0.16653385758399963,
1.0640592575073242,
0.8523135781288147,
-0.4757458567619324,
0.4648355543613434,
0.14976553618907928,
-1.3717597723007202,
0.4114375412464142,
1.2346736192703247,
0.2553204298019409,
1.4713037014007568,
-0.4517675042152405,
0.1643768846988678,
0.4214511215686798,
-0.6087948083877563,
-0.6230973601341248,
-0.5147189497947693,
0.7587684392929077,
0.14420858025550842,
-0.970093309879303,
0.07255581766366959,
-0.1709020435810089,
-0.28456997871398926,
0.21511110663414001,
-1.549891471862793,
-0.28533312678337097,
-0.33037105202674866,
-0.39821121096611023,
-1.2968707084655762,
-0.00737533625215292,
1.373800277709961,
-0.7205876708030701,
-0.15201540291309357,
0.4599356949329376,
0.44165122509002686,
0.5509516596794128,
0.637428879737854,
-0.7122713327407837,
-0.3719881474971771,
-0.41452866792678833,
-0.30746811628341675,
0.3912617564201355,
1.1432944536209106,
-0.06883084774017334,
-1.0333622694015503,
0.702992856502533,
-0.37645968794822693,
0.11232572048902512,
1.9405057430267334,
-0.012671662494540215,
-0.7472091317176819,
0.3098972737789154,
-0.6728692650794983,
1.9383505582809448,
1.621079921722412,
1.2800633907318115,
-0.12815558910369873,
-0.9433971047401428,
0.6653478145599365,
-0.20869667828083038,
-0.25768738985061646,
0.9762391448020935,
0.40590497851371765,
-0.25209280848503113,
-1.3324071168899536,
0.4846995770931244,
1.3089350461959839,
-0.8651127815246582,
-0.7481396198272705,
-0.04084213823080063,
-0.8305638432502747,
1.152927041053772,
0.6137850880622864,
0.35267820954322815,
0.316396027803421,
1.6103090047836304,
0.64595627784729,
-0.4716477394104004,
0.5164889097213745,
0.44634532928466797,
-0.2534944415092468,
-2.120316743850708,
-0.9714074730873108,
0.39451614022254944,
-0.4466434419155121,
-1.5797953605651855,
1.3683236837387085,
-1.1704353094100952,
-0.9669855833053589,
0.517457902431488,
0.12065287679433823,
1.3981144428253174,
0.2450840324163437,
1.7229547500610352,
2.0677576065063477,
0.8634700775146484,
0.22466591000556946,
1.286917805671692,
-0.03937805816531181,
-0.40474486351013184,
1.793142557144165,
-0.35552364587783813,
0.5111603140830994,
1.0244611501693726,
-0.38817262649536133,
-1.0811114311218262,
-0.8971541523933411,
-1.1103402376174927,
-0.6847566366195679,
1.2012373208999634,
0.10360608994960785,
-1.1763442754745483,
0.23609168827533722,
1.6115784645080566,
0.10252203047275543,
-0.20877227187156677,
0.66766357421875,
0.4148114025592804,
-0.641762912273407,
-0.08750240504741669,
-0.9214596748352051,
0.5268020033836365,
-0.05759673938155174,
-0.336859792470932,
0.2847655415534973,
0.4762799143791199,
1.191423773765564,
-0.04318581148982048,
0.12494822591543198,
1.1895006895065308,
-1.4252296686172485,
1.5549371242523193,
-0.5726292133331299,
0.25093862414360046,
-2.390711545944214,
1.4147484302520752,
-0.8074559569358826,
1.9053109884262085,
-2.566854953765869,
0.43468981981277466,
-0.5605021715164185,
-0.4671286940574646,
0.31821009516716003,
-0.4481571614742279,
0.18768708407878876,
-0.17868071794509888,
-0.950861930847168,
-0.2289717048406601,
-0.781438946723938,
0.582348644733429,
1.2726221084594727,
1.3734524250030518,
-1.0631545782089233,
-0.2633765637874603,
-1.7897588014602661,
-0.17892996966838837,
-0.6804021000862122,
0.3447210490703583,
-2.0447330474853516,
-0.19243255257606506,
-2.087730646133423,
-2.384087324142456,
-1.396009087562561,
-0.7448590993881226,
1.080687165260315,
0.24580608308315277,
-0.8766328692436218,
1.0772322416305542,
-0.3161787688732147,
-1.7760013341903687,
1.0109772682189941,
-2.1797003746032715
] |
https://github.com/huggingface/datasets/issues/5251 | Docs are not generated after latest release | Thanks, @lhoestq.
@mishig25 has manually forced the generation of the docs, that are live for 2.7.0 version: https://huggingface.co/docs/datasets/v2.7.0/en/index | After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25 | 417 | 18 | Docs are not generated after latest release
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
Thanks, @lhoestq.
@mishig25 has manually forced the generation of the docs, that are live for 2.7.0 version: https://huggingface.co/docs/datasets/v2.7.0/en/index | [
-1.1637208461761475,
-0.9101845026016235,
-0.8478149771690369,
1.4459413290023804,
-0.16381917893886566,
-1.2011675834655762,
0.09061798453330994,
-1.1097135543823242,
1.5218642950057983,
-0.6892623901367188,
0.2823529839515686,
-1.6911559104919434,
-0.10031408816576004,
-0.5076168179512024,
-0.6795578598976135,
-0.8622878193855286,
-0.38695716857910156,
-0.8711276650428772,
1.0075435638427734,
2.580645799636841,
1.2457010746002197,
-1.2722935676574707,
2.691894292831421,
0.737221360206604,
-0.2248547524213791,
-1.0432204008102417,
0.5804462432861328,
0.0013987962156534195,
-1.3028552532196045,
-0.5639529228210449,
-0.9197835326194763,
0.01754000037908554,
-0.44000759720802307,
-0.4782395362854004,
0.06737398356199265,
0.3771906793117523,
-0.30348339676856995,
-0.2616020143032074,
-0.6178018450737,
-0.7517770528793335,
0.38916558027267456,
-0.29503321647644043,
0.9215757250785828,
-0.38880687952041626,
1.8187636137008667,
-0.4657377600669861,
0.2925238609313965,
0.633635938167572,
1.3224722146987915,
0.11832162737846375,
0.05936254933476448,
0.24046722054481506,
0.3246940076351166,
0.02830297127366066,
0.44352173805236816,
1.1519975662231445,
0.6167129874229431,
0.4066207706928253,
0.6632758378982544,
-2.153426170349121,
1.2499029636383057,
-0.9623056650161743,
0.17534540593624115,
1.4954354763031006,
-0.9280810952186584,
0.27629926800727844,
-1.7210135459899902,
-0.02346537448465824,
0.5129924416542053,
-2.3269917964935303,
0.17882509529590607,
-1.1723283529281616,
-0.5114301443099976,
1.0089359283447266,
0.30187132954597473,
-1.2609169483184814,
0.2184867560863495,
-0.5305972099304199,
1.0653976202011108,
0.5473019480705261,
1.2079353332519531,
-1.7231881618499756,
-0.029895372688770294,
-0.2720819115638733,
-0.029799655079841614,
-1.382525086402893,
-1.5073916912078857,
0.5196918845176697,
0.6191421747207642,
0.6727795004844666,
-0.11798002570867538,
0.9653730988502502,
-0.8844389915466309,
0.834644615650177,
-0.9557989835739136,
-1.5909874439239502,
-1.4259228706359863,
-2.3926682472229004,
-2.278498411178589,
0.7903181314468384,
-0.458162397146225,
-0.48210248351097107,
2.0274498462677,
-1.0471805334091187,
-1.7755006551742554,
1.095241665840149,
0.35703030228614807,
0.061131443828344345,
2.4332222938537598,
0.3302977681159973,
-0.6635109782218933,
0.3052152991294861,
-0.7644479870796204,
0.8206249475479126,
-0.339429646730423,
1.4295231103897095,
0.5579044222831726,
-1.0131514072418213,
1.6203118562698364,
-0.4838707447052002,
0.4865511953830719,
-0.6055885553359985,
-0.4833333194255829,
-0.8631780743598938,
0.25382059812545776,
1.9272425174713135,
-0.38402387499809265,
1.5957050323486328,
-0.39197325706481934,
-1.5984123945236206,
-1.6206845045089722,
0.8176469206809998,
0.5010424852371216,
-0.8217073678970337,
0.06242096796631813,
-0.402091920375824,
-0.01482204720377922,
0.016676150262355804,
1.1160640716552734,
1.1631896495819092,
0.6840543746948242,
-0.2746550738811493,
-0.939399242401123,
0.3045596778392792,
-0.027805030345916748,
-0.7299705147743225,
-1.8023828268051147,
-0.3655635714530945,
0.1888197362422943,
0.6569243669509888,
-1.1993916034698486,
1.6608407497406006,
0.8753991723060608,
1.940435528755188,
0.8799252510070801,
-0.40596485137939453,
1.5086578130722046,
0.002306276001036167,
1.8697028160095215,
-0.5998643636703491,
0.6392317414283752,
-0.3712586462497711,
-1.1939783096313477,
0.8981208205223083,
-0.35642826557159424,
-1.985456109046936,
-0.7630476355552673,
-0.850868284702301,
-0.2287529557943344,
-0.806671142578125,
1.0152562856674194,
-0.37834814190864563,
-1.3084207773208618,
0.26268336176872253,
-0.677937388420105,
0.09676054120063782,
-1.242582082748413,
0.30648723244667053,
0.9113547801971436,
-0.6712309718132019,
-0.1014302670955658,
-0.10427704453468323,
-1.3249000310897827,
-0.5556696057319641,
0.2421240508556366,
1.9429553747177124,
-0.6159443259239197,
0.9760815501213074,
1.02041494846344,
-0.793445885181427,
0.12398982048034668,
0.32943394780158997,
-0.3403734266757965,
0.8128820657730103,
-1.0418208837509155,
-0.37478625774383545,
1.2163667678833008,
-0.24929280579090118,
-0.665476381778717,
1.3937046527862549,
0.8436999917030334,
-1.0440914630889893,
-0.19643758237361908,
-0.14613154530525208,
-0.7499790191650391,
0.04294464737176895,
-1.5777041912078857,
-0.13602285087108612,
0.2836458384990692,
-1.43684983253479,
-0.48988479375839233,
-0.14133986830711365,
1.4593925476074219,
-0.1801406294107437,
1.370519995689392,
-0.31754690408706665,
-0.128058061003685,
-0.45597705245018005,
-0.43193474411964417,
0.24133159220218658,
-0.2116890698671341,
-0.6411377191543579,
0.40168705582618713,
-0.8393381834030151,
0.3433825969696045,
1.457425594329834,
0.4202779531478882,
0.13687573373317719,
0.4965534210205078,
0.9942984580993652,
0.37800362706184387,
-0.1059388592839241,
-0.9536594152450562,
-1.6261708736419678,
2.134054660797119,
-1.3079888820648193,
1.9180893898010254,
0.7589379549026489,
-0.06655825674533844,
-1.713577389717102,
-1.9824124574661255,
1.325654149055481,
1.2019708156585693,
2.271583080291748,
0.5609350204467773,
0.4208001494407654,
-0.7022377848625183,
-0.7046604752540588,
0.329890638589859,
-1.035268783569336,
-0.7780346870422363,
0.07556156814098358,
2.3836045265197754,
1.794468879699707,
-0.5576868057250977,
-0.21989870071411133,
-1.0718592405319214,
1.2317664623260498,
-0.10259974002838135,
0.15992318093776703,
1.9268231391906738,
-0.2177506387233734,
-1.1229596138000488,
1.2679399251937866,
-2.3597617149353027,
0.23392519354820251,
2.0288994312286377,
0.3552737236022949,
0.09679674357175827,
-1.548786997795105,
-0.6953731775283813,
-0.284690797328949,
-0.4636109173297882,
-1.1546425819396973,
0.7490696310997009,
-0.3454956114292145,
-0.9216835498809814,
-1.5070799589157104,
0.1168651282787323,
-1.1670145988464355,
-1.808212161064148,
0.48801684379577637,
1.7543777227401733,
1.9699844121932983,
-0.7942081093788147,
1.4550763368606567,
-0.18988516926765442,
0.13873526453971863,
1.288796067237854,
1.3384062051773071,
3.150740623474121,
1.9079214334487915,
-1.2588310241699219,
0.7446069121360779,
-0.12020143866539001,
-0.46970298886299133,
1.2098389863967896,
-1.0491282939910889,
1.2620182037353516,
-0.18194139003753662,
-1.243449330329895,
-1.356561303138733,
0.9617874026298523,
0.5722979307174683,
0.051862627267837524,
-0.5296091437339783,
1.2274469137191772,
0.12806420028209686,
1.266103744506836,
0.5966662764549255,
-0.3160892426967621,
0.5215902924537659,
-0.3999851942062378,
-0.43970826268196106,
1.6408730745315552,
0.22092267870903015,
-1.6020697355270386,
-2.3672988414764404,
-0.3194601535797119,
-0.7922302484512329,
-0.05985749140381813,
-0.6274004578590393,
-0.963264524936676,
1.646648645401001,
0.5041396021842957,
-1.3098686933517456,
-0.24284033477306366,
-0.34175756573677063,
-0.5553715229034424,
2.5956673622131348,
-1.4598815441131592,
-0.12819534540176392,
-0.987565815448761,
-0.4803912043571472,
1.5793991088867188,
-1.2203028202056885,
-0.16240280866622925,
-1.0306074619293213,
-0.6997497081756592,
-1.3294577598571777,
-0.5391561985015869,
-0.0029180170968174934,
-0.9164049029350281,
0.624805748462677,
0.14642277359962463,
-1.0242080688476562,
-0.343433141708374,
-0.909295380115509,
0.9723836183547974,
-0.09339331090450287,
0.285090833902359,
1.8618706464767456,
0.5114331841468811,
-0.36973392963409424,
0.6718880534172058,
1.1986770629882812,
0.6443299055099487,
-0.7074378132820129,
0.1470222920179367,
-0.779038667678833,
0.23647505044937134,
-1.4604445695877075,
0.26570776104927063,
-2.9757168292999268,
0.6595183610916138,
-0.1498270481824875,
-0.13855962455272675,
0.0004484187811613083,
-1.240960955619812,
1.2682545185089111,
2.5475211143493652,
-1.25760018825531,
0.4584428668022156,
0.30101075768470764,
1.0083720684051514,
-1.5255696773529053,
0.26042449474334717,
-0.36785975098609924,
2.1299452781677246,
0.1732298582792282,
1.2127125263214111,
-0.46730998158454895,
-2.1010825634002686,
0.6638342142105103,
-1.230433702468872,
-1.027374029159546,
0.7670236229896545,
-0.8081814646720886,
0.13712765276432037,
-1.4069790840148926,
-0.034265343099832535,
-0.8913357853889465,
-1.3468291759490967,
0.8073357939720154,
0.1476447582244873,
0.47370094060897827,
-0.6191478371620178,
0.4457924962043762,
-2.1051700115203857,
-1.3121378421783447,
-0.1648864895105362,
-0.9994509816169739,
0.47813546657562256,
-0.33404240012168884,
0.6352941393852234,
-0.13429374992847443,
0.05623510852456093,
0.4005436301231384,
1.386142611503601,
3.484532594680786,
0.17309527099132538,
0.34430935978889465,
-0.020805098116397858,
-0.9549551010131836,
1.5071760416030884,
0.9686750173568726,
-0.07537435740232468,
-0.5192005038261414,
-0.9283828139305115,
1.2335809469223022,
2.0051159858703613,
1.1371723413467407,
0.07287869602441788,
-0.9218860268592834,
-0.8237435817718506,
0.000430339016020298,
0.2124854177236557,
0.5078230500221252,
0.9324296712875366,
-0.08432891219854355,
-0.035380877554416656,
1.4251172542572021,
1.23493492603302,
-0.4080106317996979,
0.41195914149284363,
-0.9161911606788635,
-0.462866872549057,
0.4811623692512512,
0.2808019816875458,
0.04757000878453255,
0.5709785223007202,
-0.9993807673454285,
-0.23422439396381378,
-0.2946248948574066,
-0.8610691428184509,
-0.7151290774345398,
-0.48747196793556213,
-0.3611772358417511,
1.5552459955215454,
0.06436767429113388,
-0.47067442536354065,
0.002861865796148777,
-0.8688275814056396,
-0.13445168733596802,
-1.1015406847000122,
0.22990410029888153,
-0.16098564863204956,
-0.03913169354200363,
-0.21251361072063446,
1.6931021213531494,
-1.059063196182251,
-2.1606154441833496,
0.29554203152656555,
0.33919987082481384,
-0.5265857577323914,
0.18221202492713928,
1.6540918350219727,
0.4968990683555603,
1.419979214668274,
1.284152865409851,
1.0531017780303955,
-0.6156860589981079,
-1.2873440980911255,
0.7678163647651672,
0.9104422926902771,
-1.4777339696884155,
0.8286489248275757,
-0.15540480613708496,
-0.47920483350753784,
0.779649019241333,
1.2798001766204834,
0.3966289758682251,
-1.8788108825683594,
0.872066080570221,
-0.7603062391281128,
0.7663453221321106,
0.6992059350013733,
0.78944993019104,
0.20145995914936066,
0.8099579811096191,
-1.3115146160125732,
-1.1329108476638794,
-0.6919721364974976,
-0.5451831221580505,
1.8358371257781982,
-0.18360234797000885,
0.5152400732040405,
-0.14939908683300018,
-1.206212043762207,
-0.1273016333580017,
0.6727923154830933,
0.25184503197669983,
-0.4403133988380432,
0.9389496445655823,
-0.6760689616203308,
-1.1305749416351318,
-1.3232483863830566,
-0.4159967303276062,
-0.9538785219192505,
-0.9464962482452393,
1.061253547668457,
0.7085424065589905,
0.4151478707790375,
1.920417308807373,
0.5212812423706055,
0.25477132201194763,
-2.6214332580566406,
0.869472086429596,
0.2137082815170288,
0.0047831302508711815,
1.0250319242477417,
0.20285508036613464,
1.187395691871643,
-0.11473415791988373,
0.5530277490615845,
-2.2512545585632324,
2.2923812866210938,
-0.20218251645565033,
0.5570484399795532,
0.044230759143829346,
-0.16931870579719543,
1.0989993810653687,
0.5647769570350647,
0.6000065207481384,
-1.252166509628296,
0.7945615649223328,
-0.6254770159721375,
1.1102384328842163,
0.9727505445480347,
-0.9440508484840393,
0.01677136868238449,
1.3075873851776123,
0.5336265563964844,
-0.36222824454307556,
-0.8630212545394897,
-0.9103263020515442,
0.8944263458251953,
1.67506742477417,
-0.008089042268693447,
0.020951036363840103,
0.8483536243438721,
0.7149524092674255,
-1.3561433553695679,
0.025947239249944687,
-0.7296872138977051,
-0.663388729095459,
1.655095100402832,
2.0395569801330566,
-0.005410484038293362,
-0.21599270403385162,
-0.7347345352172852,
-1.1510426998138428,
0.6622279286384583,
-0.024556104093790054,
0.162327840924263,
0.6470744609832764,
-0.6760647892951965,
1.1251600980758667,
0.844054102897644,
0.9247403740882874,
0.052416443824768066,
0.3579709529876709,
0.36802494525909424,
-0.2789864242076874,
-1.2011936902999878,
-0.37238383293151855,
-1.1088086366653442,
-2.6144516468048096,
0.5111874341964722,
-0.33941298723220825,
-1.4200650453567505,
0.035686783492565155,
-1.1398714780807495,
0.8964724540710449,
-0.529273509979248,
-0.9791886210441589,
-1.4745516777038574,
0.26701682806015015,
-0.20938828587532043,
0.9345722198486328,
-1.5856900215148926,
-0.07491529732942581,
1.375327706336975,
0.9053187966346741,
-0.5733569264411926,
1.0231181383132935,
0.2101667821407318,
1.1128764152526855,
0.7913162112236023,
-0.38879987597465515,
0.43245553970336914,
0.20936836302280426,
-1.4286741018295288,
0.31964021921157837,
1.1357089281082153,
0.2427578568458557,
1.424174427986145,
-0.5471169352531433,
0.22965167462825775,
0.4826245903968811,
-0.5762894749641418,
-0.5986330509185791,
-0.5211387872695923,
0.7107633352279663,
0.18145190179347992,
-0.9461188316345215,
0.03956056758761406,
-0.19280695915222168,
-0.21116043627262115,
0.1499255746603012,
-1.5615079402923584,
-0.3293282985687256,
-0.37268877029418945,
-0.3882828950881958,
-1.29292893409729,
0.010837535373866558,
1.3954074382781982,
-0.7547951340675354,
-0.10361895710229874,
0.4531080722808838,
0.40985918045043945,
0.5170578360557556,
0.6919523477554321,
-0.6817793250083923,
-0.34353819489479065,
-0.4210371971130371,
-0.2612614631652832,
0.32397663593292236,
1.124483346939087,
-0.1014169380068779,
-1.004371166229248,
0.6575193405151367,
-0.363479882478714,
0.08572814613580704,
1.9718540906906128,
-0.08597841113805771,
-0.868544340133667,
0.3313941955566406,
-0.6036532521247864,
1.9686517715454102,
1.5924464464187622,
1.2969374656677246,
-0.15847016870975494,
-0.9004507660865784,
0.6279504299163818,
-0.17803719639778137,
-0.26053762435913086,
0.954384446144104,
0.3988402485847473,
-0.28232622146606445,
-1.3684475421905518,
0.40601179003715515,
1.4056373834609985,
-0.9269073605537415,
-0.7198082208633423,
0.06553439795970917,
-0.867235004901886,
1.0444326400756836,
0.6889272332191467,
0.39286503195762634,
0.319627970457077,
1.4889627695083618,
0.682257890701294,
-0.4994465112686157,
0.5095334053039551,
0.4130209982395172,
-0.230828195810318,
-2.023049831390381,
-0.9677640795707703,
0.3602781593799591,
-0.44239097833633423,
-1.512615442276001,
1.337156057357788,
-1.2000786066055298,
-0.9154027104377747,
0.4833415746688843,
0.10433488339185715,
1.4099386930465698,
0.2896711826324463,
1.7024667263031006,
2.0511345863342285,
0.8703463077545166,
0.17559300363063812,
1.3657300472259521,
-0.008858485147356987,
-0.41459596157073975,
1.7602670192718506,
-0.37968215346336365,
0.5219194293022156,
1.0899806022644043,
-0.38069862127304077,
-1.030779480934143,
-0.8720446228981018,
-1.0927565097808838,
-0.6461381912231445,
1.21097731590271,
0.12218374013900757,
-1.2684836387634277,
0.22739914059638977,
1.529807448387146,
0.09346387535333633,
-0.17056599259376526,
0.6670294404029846,
0.45164671540260315,
-0.68426913022995,
-0.06204516813158989,
-0.9301674365997314,
0.534654974937439,
-0.11131618171930313,
-0.40326282382011414,
0.2911638021469116,
0.47031959891319275,
1.205549955368042,
-0.045420460402965546,
0.15220586955547333,
1.2040547132492065,
-1.3920222520828247,
1.560834288597107,
-0.556930661201477,
0.1704653799533844,
-2.3821637630462646,
1.4197999238967896,
-0.8264606595039368,
1.9042305946350098,
-2.5979509353637695,
0.4463875889778137,
-0.5577619075775146,
-0.4904452860355377,
0.31472182273864746,
-0.5062928795814514,
0.21853984892368317,
-0.20879676938056946,
-0.9787653088569641,
-0.26094549894332886,
-0.8089008331298828,
0.5316117405891418,
1.2506680488586426,
1.4103580713272095,
-1.013328194618225,
-0.3555571734905243,
-1.748002052307129,
-0.20433691143989563,
-0.6797312498092651,
0.3533417582511902,
-2.031902313232422,
-0.2867811620235443,
-1.968143105506897,
-2.419224739074707,
-1.4217264652252197,
-0.764295220375061,
1.1076985597610474,
0.1778622716665268,
-0.8601821660995483,
1.0782197713851929,
-0.32560715079307556,
-1.7595019340515137,
0.8995188474655151,
-2.182258129119873
] |
https://github.com/huggingface/datasets/issues/5251 | Docs are not generated after latest release | just to confirm, is there anything I need to do from my side ? Or is everything good here ? | After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25 | 417 | 20 | Docs are not generated after latest release
After the latest `datasets` release version 0.7.0, the docs were not generated.
As we have changed the release procedure (so that now we do not push directly to main branch), maybe we should also change the corresponding GitHub action:
https://github.com/huggingface/datasets/blob/edf1902f954c5568daadebcd8754bdad44b02a85/.github/workflows/build_documentation.yml#L3-L8
Related to:
- #5250
CC: @mishig25
just to confirm, is there anything I need to do from my side ? Or is everything good here ? | [
-1.117004632949829,
-0.9083845019340515,
-0.8527427911758423,
1.464102029800415,
-0.169185072183609,
-1.1740684509277344,
0.13352277874946594,
-1.1487958431243896,
1.5185072422027588,
-0.7435150146484375,
0.32101020216941833,
-1.658384084701538,
-0.12433015555143356,
-0.5488058924674988,
-0.7001823782920837,
-0.815963864326477,
-0.43329083919525146,
-0.8437684774398804,
0.9773028492927551,
2.5651326179504395,
1.187562346458435,
-1.3099844455718994,
2.6980960369110107,
0.7080593109130859,
-0.24927209317684174,
-1.0566785335540771,
0.5881884098052979,
0.10078880190849304,
-1.232936143875122,
-0.562061607837677,
-0.9018064737319946,
0.05960378795862198,
-0.4685213267803192,
-0.4775616228580475,
0.022645793855190277,
0.3863580524921417,
-0.28453442454338074,
-0.30611172318458557,
-0.562488853931427,
-0.7232508063316345,
0.4597403109073639,
-0.3667512834072113,
0.9244471192359924,
-0.36885353922843933,
1.8398338556289673,
-0.47924551367759705,
0.3155970871448517,
0.6809859275817871,
1.3366934061050415,
0.1454356461763382,
-0.04029785469174385,
0.2953236699104309,
0.31892815232276917,
-0.030859149992465973,
0.40596839785575867,
1.1460745334625244,
0.6164485216140747,
0.5162830948829651,
0.7097303867340088,
-2.1063146591186523,
1.2385220527648926,
-1.0082755088806152,
0.1988336145877838,
1.4457448720932007,
-0.9495488405227661,
0.35567551851272583,
-1.7173614501953125,
-0.03899708762764931,
0.497403085231781,
-2.3128669261932373,
0.27004674077033997,
-1.1117161512374878,
-0.47605207562446594,
0.9886351227760315,
0.28125306963920593,
-1.3107857704162598,
0.19848321378231049,
-0.5464739203453064,
1.061629056930542,
0.5197832584381104,
1.2150428295135498,
-1.6917539834976196,
0.012813019566237926,
-0.2782660126686096,
-0.05391712114214897,
-1.385223150253296,
-1.480040192604065,
0.5098544359207153,
0.5965520143508911,
0.6985706090927124,
-0.11265061050653458,
0.9785988330841064,
-0.8945606350898743,
0.833120584487915,
-0.9204687476158142,
-1.5436164140701294,
-1.397261142730713,
-2.31011962890625,
-2.27498722076416,
0.7824905514717102,
-0.4505772888660431,
-0.5532727837562561,
2.019763708114624,
-1.0212310552597046,
-1.80269455909729,
1.1537867784500122,
0.3737921714782715,
0.016092374920845032,
2.431692123413086,
0.3189246356487274,
-0.6933763027191162,
0.3445849120616913,
-0.7465437054634094,
0.8357620239257812,
-0.40972113609313965,
1.3971790075302124,
0.5431704521179199,
-1.0091875791549683,
1.7137376070022583,
-0.47489023208618164,
0.5311209559440613,
-0.628594160079956,
-0.4936639964580536,
-0.8752018213272095,
0.26058951020240784,
1.9434340000152588,
-0.3481072187423706,
1.6252694129943848,
-0.4120433032512665,
-1.6119379997253418,
-1.6657977104187012,
0.8612673878669739,
0.5262055993080139,
-0.8758050799369812,
0.09073473513126373,
-0.38138729333877563,
-0.08024464547634125,
0.023007284849882126,
1.0680553913116455,
1.218443512916565,
0.6949537396430969,
-0.2297821342945099,
-0.9392138719558716,
0.27006009221076965,
-0.0009231152944266796,
-0.7463955879211426,
-1.8206863403320312,
-0.38193443417549133,
0.11920604854822159,
0.6430678367614746,
-1.160423994064331,
1.6715455055236816,
0.9510163068771362,
1.9581061601638794,
0.891622006893158,
-0.4083709716796875,
1.4830526113510132,
-0.06401584297418594,
1.8145807981491089,
-0.5371897220611572,
0.6533979177474976,
-0.34181010723114014,
-1.2183752059936523,
0.8808826208114624,
-0.3482862710952759,
-1.9676953554153442,
-0.8287491202354431,
-0.8509301543235779,
-0.19383563101291656,
-0.8091567158699036,
1.0035016536712646,
-0.32638585567474365,
-1.2889355421066284,
0.2602320909500122,
-0.6801968216896057,
0.15568675100803375,
-1.2545900344848633,
0.34743547439575195,
0.8437420129776001,
-0.7005099654197693,
-0.08875400573015213,
-0.09961257129907608,
-1.3383866548538208,
-0.48874786496162415,
0.2516529858112335,
1.9584976434707642,
-0.744227945804596,
0.8975105285644531,
0.9821481108665466,
-0.7224398255348206,
0.04706801846623421,
0.3249698877334595,
-0.33634674549102783,
0.8079226613044739,
-1.0456058979034424,
-0.3606512248516083,
1.2256484031677246,
-0.19490115344524384,
-0.6388207077980042,
1.379642128944397,
0.8335737586021423,
-0.9857947826385498,
-0.21015644073486328,
-0.20949025452136993,
-0.7822776436805725,
-0.04115761071443558,
-1.5757477283477783,
-0.1357167810201645,
0.2427472025156021,
-1.3896138668060303,
-0.49692586064338684,
-0.1912861168384552,
1.4202269315719604,
-0.21125979721546173,
1.3699742555618286,
-0.33799517154693604,
-0.1663140505552292,
-0.44627273082733154,
-0.4731258749961853,
0.2473878413438797,
-0.20947718620300293,
-0.5731462836265564,
0.30908507108688354,
-0.7585625052452087,
0.37881985306739807,
1.4361802339553833,
0.35740113258361816,
0.13235415518283844,
0.5235336422920227,
1.0035761594772339,
0.395535409450531,
-0.1150178611278534,
-0.9058082103729248,
-1.5877686738967896,
2.0857176780700684,
-1.330644130706787,
1.9033759832382202,
0.8076170682907104,
-0.046533405780792236,
-1.7058440446853638,
-1.9514039754867554,
1.3405600786209106,
1.2864996194839478,
2.2595136165618896,
0.5689246654510498,
0.383131742477417,
-0.7563878893852234,
-0.6818939447402954,
0.2775527834892273,
-1.1068031787872314,
-0.7780153751373291,
0.027564629912376404,
2.3778398036956787,
1.746809959411621,
-0.5844516754150391,
-0.21542255580425262,
-1.069797396659851,
1.2160446643829346,
-0.1604793220758438,
0.1774754375219345,
1.9739609956741333,
-0.21103985607624054,
-1.2062679529190063,
1.2550029754638672,
-2.375537395477295,
0.23007337749004364,
2.0295329093933105,
0.32420614361763,
0.12301541119813919,
-1.48896062374115,
-0.6249811053276062,
-0.18621885776519775,
-0.4190851151943207,
-1.1710741519927979,
0.7289727926254272,
-0.2955133616924286,
-0.8598983287811279,
-1.4895853996276855,
0.17374663054943085,
-1.16538667678833,
-1.74373197555542,
0.5376014709472656,
1.817650318145752,
1.9652042388916016,
-0.8779834508895874,
1.4582144021987915,
-0.21264781057834625,
0.11517252773046494,
1.2283560037612915,
1.2825173139572144,
3.1201181411743164,
1.8936671018600464,
-1.2414703369140625,
0.6636021733283997,
-0.12935087084770203,
-0.5361001491546631,
1.1995437145233154,
-1.0404459238052368,
1.2780574560165405,
-0.22373369336128235,
-1.1919023990631104,
-1.3540818691253662,
0.872562825679779,
0.5546673536300659,
0.10255048424005508,
-0.49161720275878906,
1.2378464937210083,
0.0971701517701149,
1.2731220722198486,
0.621077299118042,
-0.30127668380737305,
0.5740475654602051,
-0.3643818795681,
-0.43779295682907104,
1.5934256315231323,
0.25781935453414917,
-1.560246229171753,
-2.418569564819336,
-0.30612966418266296,
-0.7640396952629089,
-0.005065376870334148,
-0.6323181390762329,
-0.9735499620437622,
1.6985626220703125,
0.47532016038894653,
-1.3008733987808228,
-0.32950007915496826,
-0.26948103308677673,
-0.5252041816711426,
2.5939366817474365,
-1.4493582248687744,
-0.15054966509342194,
-0.9497820734977722,
-0.45422306656837463,
1.6516603231430054,
-1.226343035697937,
-0.23322740197181702,
-1.023547887802124,
-0.6502293944358826,
-1.3226945400238037,
-0.5866219401359558,
-0.038188252598047256,
-0.9064080119132996,
0.6592490673065186,
0.18416287004947662,
-1.0469322204589844,
-0.29544803500175476,
-0.8979257345199585,
0.9193297624588013,
-0.16366896033287048,
0.29772454500198364,
1.8310120105743408,
0.5292358994483948,
-0.3037148714065552,
0.7361243367195129,
1.2254964113235474,
0.6277771592140198,
-0.712371289730072,
0.12221672385931015,
-0.7790208458900452,
0.24885113537311554,
-1.4622161388397217,
0.26287761330604553,
-2.9975457191467285,
0.6023275256156921,
-0.10292208939790726,
-0.09728296101093292,
0.0020032310858368874,
-1.3220723867416382,
1.2563896179199219,
2.5785775184631348,
-1.2165100574493408,
0.5152075886726379,
0.2697185277938843,
1.0948768854141235,
-1.5654926300048828,
0.2369346171617508,
-0.3701618015766144,
2.138145923614502,
0.14452826976776123,
1.2232593297958374,
-0.46674370765686035,
-2.13039493560791,
0.6283699870109558,
-1.2368009090423584,
-1.1677347421646118,
0.7383170127868652,
-0.8821138143539429,
0.07900863885879517,
-1.3754606246948242,
-0.025591503828763962,
-0.8859107494354248,
-1.333562970161438,
0.7752577066421509,
0.11342497915029526,
0.46167445182800293,
-0.6134263873100281,
0.4253675937652588,
-2.1289825439453125,
-1.3276944160461426,
-0.1605256050825119,
-1.0440664291381836,
0.45273858308792114,
-0.32919782400131226,
0.6024528741836548,
-0.17763487994670868,
0.095623679459095,
0.369004487991333,
1.4027327299118042,
3.467838764190674,
0.23979373276233673,
0.36510324478149414,
-0.06988997012376785,
-0.9060103297233582,
1.527016520500183,
0.9260374903678894,
-0.050811588764190674,
-0.5824213624000549,
-0.873297393321991,
1.2011218070983887,
2.017652988433838,
1.0813426971435547,
0.018717169761657715,
-0.9574521780014038,
-0.7391383647918701,
-0.06078251451253891,
0.2240007370710373,
0.57080078125,
1.017292857170105,
-0.08299893885850906,
-0.05842405557632446,
1.3155388832092285,
1.2323532104492188,
-0.4606782793998718,
0.45188409090042114,
-0.8995502591133118,
-0.439748078584671,
0.43198466300964355,
0.27451035380363464,
0.027468807995319366,
0.5053287744522095,
-0.9748809933662415,
-0.1948891431093216,
-0.31174057722091675,
-0.8477030992507935,
-0.7796639204025269,
-0.45360976457595825,
-0.33864128589630127,
1.625474214553833,
0.05365482345223427,
-0.4692875146865845,
0.005714464001357555,
-0.8339468240737915,
-0.09978944063186646,
-1.0732775926589966,
0.19665400683879852,
-0.17256902158260345,
-0.1008978858590126,
-0.07560437172651291,
1.732490062713623,
-1.0566364526748657,
-2.110203266143799,
0.317484587430954,
0.3340602219104767,
-0.4833129048347473,
0.1507818102836609,
1.6505393981933594,
0.4653951823711395,
1.4361584186553955,
1.3093950748443604,
1.0652281045913696,
-0.7167545557022095,
-1.2393726110458374,
0.7484089136123657,
0.9342699646949768,
-1.4515489339828491,
0.7748508453369141,
-0.07511692494153976,
-0.5471961498260498,
0.731666088104248,
1.2794266939163208,
0.4962637424468994,
-1.9239543676376343,
0.8902407884597778,
-0.7694787383079529,
0.7771772146224976,
0.7023544907569885,
0.7489967346191406,
0.2723099887371063,
0.763881266117096,
-1.1981279850006104,
-1.1082494258880615,
-0.7529696226119995,
-0.6017442345619202,
1.8521473407745361,
-0.22707493603229523,
0.5322726964950562,
-0.09967067837715149,
-1.2201100587844849,
-0.1401796191930771,
0.6883002519607544,
0.29774564504623413,
-0.4301390051841736,
0.8589666485786438,
-0.6192355155944824,
-1.1463321447372437,
-1.384178876876831,
-0.4370957314968109,
-0.9715042114257812,
-0.9423066973686218,
1.0336942672729492,
0.7064657211303711,
0.3239533603191376,
1.9087674617767334,
0.578654408454895,
0.2326761782169342,
-2.5931196212768555,
0.9093491435050964,
0.29590731859207153,
-0.07144297659397125,
0.9603107571601868,
0.30270910263061523,
1.1492667198181152,
-0.08352366834878922,
0.5550363063812256,
-2.3900842666625977,
2.324946880340576,
-0.17136090993881226,
0.5339780449867249,
0.03935996815562248,
-0.1945272833108902,
1.0930321216583252,
0.5168047547340393,
0.5802790522575378,
-1.2689764499664307,
0.7443317174911499,
-0.6172862648963928,
1.1313921213150024,
0.942671537399292,
-0.8960381746292114,
0.033799268305301666,
1.3051317930221558,
0.5399229526519775,
-0.4196610748767853,
-0.8495054841041565,
-0.9022611975669861,
0.8854449391365051,
1.7070794105529785,
-0.06678988039493561,
-0.009357273578643799,
0.8303816914558411,
0.704523503780365,
-1.3928595781326294,
-0.02361724153161049,
-0.7119892239570618,
-0.745709240436554,
1.662867546081543,
1.9942092895507812,
-0.02377277985215187,
-0.27711740136146545,
-0.7697393298149109,
-1.2440873384475708,
0.7107776403427124,
-0.0008780751377344131,
0.14831292629241943,
0.5984138250350952,
-0.7021616697311401,
1.2304025888442993,
0.8596042394638062,
0.8826304078102112,
0.022874191403388977,
0.35211747884750366,
0.3949277997016907,
-0.2533089518547058,
-1.1660600900650024,
-0.33075442910194397,
-1.1466631889343262,
-2.5809593200683594,
0.4315882921218872,
-0.36971020698547363,
-1.3976200819015503,
0.024003509432077408,
-1.1266289949417114,
0.8705891966819763,
-0.5565595626831055,
-0.9413401484489441,
-1.5579090118408203,
0.27329424023628235,
-0.17409352958202362,
0.9190065264701843,
-1.56410551071167,
-0.0652160719037056,
1.325309157371521,
0.8832997679710388,
-0.6783031225204468,
1.0570909976959229,
0.24296851456165314,
1.1367077827453613,
0.7931050658226013,
-0.44490528106689453,
0.44508659839630127,
0.19364295899868011,
-1.388771414756775,
0.38556969165802,
1.2230218648910522,
0.25949209928512573,
1.4552083015441895,
-0.5157522559165955,
0.09423550218343735,
0.4577229619026184,
-0.5370838642120361,
-0.5811911821365356,
-0.5431147813796997,
0.6991097927093506,
0.14940102398395538,
-0.9723730683326721,
0.05625324696302414,
-0.22391334176063538,
-0.253318727016449,
0.18322943150997162,
-1.5781573057174683,
-0.36597150564193726,
-0.3480628430843353,
-0.40667596459388733,
-1.227828860282898,
0.032772354781627655,
1.395113468170166,
-0.6723594665527344,
-0.1353575587272644,
0.4557051658630371,
0.4127175807952881,
0.531352162361145,
0.7000092267990112,
-0.7282009720802307,
-0.3671436905860901,
-0.3483293950557709,
-0.29217198491096497,
0.3583914637565613,
1.1779770851135254,
-0.1524641215801239,
-0.9886791110038757,
0.6165661811828613,
-0.33310356736183167,
0.024162720888853073,
1.9647454023361206,
-0.04267534986138344,
-0.8909121751785278,
0.324667751789093,
-0.6249905228614807,
2.018397808074951,
1.5662024021148682,
1.2884540557861328,
-0.09502656757831573,
-0.8579457402229309,
0.6879127621650696,
-0.18543237447738647,
-0.19897790253162384,
0.9489854574203491,
0.46938222646713257,
-0.21193230152130127,
-1.4447132349014282,
0.44143253564834595,
1.3915728330612183,
-0.9070157408714294,
-0.808667778968811,
-0.012860747054219246,
-0.8206155300140381,
1.052718162536621,
0.7042598128318787,
0.4127599596977234,
0.3045632839202881,
1.5451600551605225,
0.6859592795372009,
-0.48612791299819946,
0.5273920893669128,
0.43949830532073975,
-0.21748687326908112,
-2.0606696605682373,
-0.9977610111236572,
0.3519936501979828,
-0.43155741691589355,
-1.5384634733200073,
1.391700267791748,
-1.2093217372894287,
-0.917062520980835,
0.45851409435272217,
0.111121267080307,
1.4755520820617676,
0.3063737154006958,
1.7009464502334595,
1.9646236896514893,
0.9714466333389282,
0.18080581724643707,
1.4015583992004395,
-0.0540732741355896,
-0.3648734986782074,
1.807214617729187,
-0.399539053440094,
0.4546188712120056,
1.0995752811431885,
-0.4093047082424164,
-1.0569392442703247,
-0.8441254496574402,
-1.106959581375122,
-0.7379582524299622,
1.160963535308838,
0.11630406230688095,
-1.2451711893081665,
0.26291248202323914,
1.5623633861541748,
0.11997949331998825,
-0.22989866137504578,
0.6326152086257935,
0.4406287372112274,
-0.6909452676773071,
-0.06643926352262497,
-0.9100160002708435,
0.5462413430213928,
-0.1247173547744751,
-0.4059945344924927,
0.30797621607780457,
0.4891524612903595,
1.1696070432662964,
-0.02095726877450943,
0.17187561094760895,
1.134423017501831,
-1.4410816431045532,
1.5211527347564697,
-0.5531377196311951,
0.21214182674884796,
-2.3863468170166016,
1.4498066902160645,
-0.771573007106781,
1.9565430879592896,
-2.6186554431915283,
0.42063596844673157,
-0.5874997973442078,
-0.44998207688331604,
0.36620208621025085,
-0.4213588833808899,
0.22807519137859344,
-0.24666422605514526,
-1.0277405977249146,
-0.22984498739242554,
-0.8098699450492859,
0.5634579062461853,
1.2139489650726318,
1.2856825590133667,
-0.9628859758377075,
-0.3390571177005768,
-1.73261296749115,
-0.2564064860343933,
-0.5758493542671204,
0.30769094824790955,
-2.0910730361938477,
-0.3206743896007538,
-1.986103892326355,
-2.311920166015625,
-1.347531795501709,
-0.758228600025177,
1.1592063903808594,
0.18050265312194824,
-0.8728120923042297,
1.1348674297332764,
-0.3260402977466583,
-1.7666704654693604,
1.008541464805603,
-2.1346352100372314
] |
https://github.com/huggingface/datasets/issues/5245 | Unable to rename columns in streaming dataset | Hi @peregilk this bug is directly related to https://github.com/huggingface/datasets/issues/3888, and still not fixed... But I'll try to have a look! | ### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1 | 419 | 20 | Unable to rename columns in streaming dataset
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
Hi @peregilk this bug is directly related to https://github.com/huggingface/datasets/issues/3888, and still not fixed... But I'll try to have a look! | [
-1.2067766189575195,
-1.122687816619873,
-0.7853014469146729,
1.6071895360946655,
-0.2417975813150406,
-1.1636117696762085,
0.13423371315002441,
-1.034598708152771,
1.6303597688674927,
-0.739064633846283,
0.1959780752658844,
-1.7240009307861328,
-0.08007658272981644,
-0.6318171620368958,
-0.6737075448036194,
-0.9939188361167908,
-0.3808170557022095,
-0.7111693620681763,
1.1107786893844604,
2.5468945503234863,
1.1116198301315308,
-1.3198539018630981,
2.729654550552368,
0.7295385599136353,
-0.09809441864490509,
-1.0902246236801147,
0.5919373035430908,
-0.0012176577001810074,
-1.2197465896606445,
-0.42744365334510803,
-0.9442792534828186,
-0.04954124614596367,
-0.5549372434616089,
-0.5548127293586731,
0.0424204096198082,
0.420296847820282,
-0.34667739272117615,
-0.46071961522102356,
-0.46269261837005615,
-0.7971599698066711,
0.4571085274219513,
-0.44001877307891846,
0.8721188902854919,
-0.3934825658798218,
1.8910900354385376,
-0.45963549613952637,
0.32153651118278503,
0.7116799354553223,
1.3139582872390747,
0.17143286764621735,
0.04324542358517647,
0.38762930035591125,
0.4084068536758423,
-0.008356647565960884,
0.42616841197013855,
1.069700002670288,
0.5804663896560669,
0.41509151458740234,
0.7388652563095093,
-2.2843496799468994,
1.2377492189407349,
-1.0303148031234741,
0.40134096145629883,
1.4548522233963013,
-0.989251434803009,
0.4683251678943634,
-1.7126365900039673,
-0.028982803225517273,
0.6290279030799866,
-2.2033817768096924,
0.35426172614097595,
-1.2406435012817383,
-0.4822652339935303,
0.9711563587188721,
0.42919206619262695,
-1.251466989517212,
0.1071367859840393,
-0.42732006311416626,
1.1173490285873413,
0.495123028755188,
1.087002158164978,
-1.7078354358673096,
0.0034193312749266624,
-0.27616193890571594,
0.04084697738289833,
-1.3772029876708984,
-1.5269376039505005,
0.5027229189872742,
0.5841104388237,
0.6969160437583923,
-0.033872317522764206,
0.9556909203529358,
-0.9976149797439575,
0.6394514441490173,
-0.9739885330200195,
-1.7024019956588745,
-1.395032286643982,
-2.386512517929077,
-2.315704107284546,
0.7176724076271057,
-0.3720761835575104,
-0.5168516635894775,
2.0043766498565674,
-0.9510831832885742,
-1.8703784942626953,
1.3385701179504395,
0.27346158027648926,
-0.04790598899126053,
2.3740434646606445,
0.26180288195610046,
-0.6975550651550293,
0.38964563608169556,
-0.773122251033783,
0.735215961933136,
-0.4502674639225006,
1.4196780920028687,
0.48975902795791626,
-0.9169965386390686,
1.6217329502105713,
-0.4740041494369507,
0.5670534372329712,
-0.6978655457496643,
-0.4347619414329529,
-0.8861591815948486,
0.3649173378944397,
1.9118587970733643,
-0.27865853905677795,
1.5032933950424194,
-0.3814530372619629,
-1.5528565645217896,
-1.6305757761001587,
0.9724542498588562,
0.354246586561203,
-0.8420024514198303,
0.2246578484773636,
-0.2882484793663025,
0.11408919841051102,
-0.08504901081323624,
1.1296628713607788,
1.2191189527511597,
0.6157137155532837,
-0.3278106153011322,
-0.9227701425552368,
0.21944256126880646,
-0.10326836258172989,
-0.6622823476791382,
-1.8247637748718262,
-0.3203328549861908,
0.12476970255374908,
0.7123426198959351,
-1.1770291328430176,
1.5404891967773438,
0.8711321949958801,
1.8208096027374268,
0.9948837161064148,
-0.3529835641384125,
1.4777202606201172,
0.07974041253328323,
1.8816105127334595,
-0.5853928327560425,
0.7409563064575195,
-0.3451411724090576,
-1.1610215902328491,
0.8198366165161133,
-0.30840003490448,
-2.0075461864471436,
-0.8419626355171204,
-0.9684295058250427,
-0.25234875082969666,
-0.7602342367172241,
0.909675121307373,
-0.3856638967990875,
-1.4494924545288086,
0.3360883891582489,
-0.8023822903633118,
0.30402156710624695,
-1.2193827629089355,
0.32195237278938293,
0.7594625949859619,
-0.5730932950973511,
0.05826897919178009,
-0.2872920334339142,
-1.309919834136963,
-0.43085724115371704,
0.373873770236969,
1.9340325593948364,
-0.901689887046814,
0.8447269201278687,
0.9422404766082764,
-0.7321208715438843,
-0.007432416081428528,
0.2785964012145996,
-0.24961699545383453,
0.8571406006813049,
-1.074631929397583,
-0.49152493476867676,
1.2024567127227783,
-0.23664148151874542,
-0.6923210620880127,
1.4826586246490479,
0.8597334623336792,
-1.0002137422561646,
-0.1843489408493042,
-0.211013525724411,
-0.7919190526008606,
-0.011280758306384087,
-1.6466692686080933,
-0.11348318308591843,
0.4386761784553528,
-1.4911696910858154,
-0.545113742351532,
-0.27031296491622925,
1.3256559371948242,
-0.03152165189385414,
1.3957196474075317,
-0.38243168592453003,
-0.24115900695323944,
-0.31826576590538025,
-0.38860800862312317,
0.3018868863582611,
-0.30469006299972534,
-0.6231878995895386,
0.08589746803045273,
-0.7980441451072693,
0.3653813898563385,
1.3983837366104126,
0.37094196677207947,
0.10220818966627121,
0.6682053804397583,
1.0858561992645264,
0.33653485774993896,
-0.00218883715569973,
-0.8581299781799316,
-1.5615434646606445,
1.9938973188400269,
-1.4701980352401733,
1.9665422439575195,
0.590857744216919,
-0.060903094708919525,
-1.802762508392334,
-1.872987985610962,
1.3518452644348145,
1.1842595338821411,
2.2434122562408447,
0.6194958090782166,
0.48204606771469116,
-0.909021258354187,
-0.7189783453941345,
0.07177415490150452,
-0.9775970578193665,
-0.7589749693870544,
0.13768738508224487,
2.410475969314575,
1.8217717409133911,
-0.5178495645523071,
-0.17018865048885345,
-1.04755437374115,
1.4554505348205566,
-0.22092753648757935,
0.17703242599964142,
2.0432653427124023,
-0.20979972183704376,
-1.0427948236465454,
1.2419017553329468,
-2.3665692806243896,
0.11528463661670685,
1.9637184143066406,
0.17995187640190125,
0.1485721915960312,
-1.4166172742843628,
-0.7840178608894348,
-0.2088930308818817,
-0.40786120295524597,
-1.2684508562088013,
0.4449046552181244,
-0.2926204800605774,
-0.6890356540679932,
-1.4888310432434082,
0.1952904611825943,
-1.042838215827942,
-1.616274118423462,
0.1685563176870346,
1.9153364896774292,
2.0522522926330566,
-0.7869305610656738,
1.6149210929870605,
-0.060488857328891754,
0.2686567008495331,
1.3698487281799316,
1.2343977689743042,
3.034113645553589,
1.9735673666000366,
-1.2624919414520264,
0.6729779243469238,
-0.0407133623957634,
-0.4414956867694855,
1.249547004699707,
-1.1498870849609375,
1.249810814857483,
-0.16355378925800323,
-1.1988637447357178,
-1.2436670064926147,
0.9208323359489441,
0.5317928791046143,
0.02150353044271469,
-0.46465787291526794,
1.3626768589019775,
-0.14102263748645782,
1.321821928024292,
0.5775967836380005,
-0.39152792096138,
0.6303609013557434,
-0.4678516685962677,
-0.4935224950313568,
1.511094331741333,
0.22155189514160156,
-1.4306193590164185,
-2.222799062728882,
-0.2383044809103012,
-0.8227069973945618,
-0.11811722815036774,
-0.5347023010253906,
-1.0327597856521606,
1.566361665725708,
0.43116042017936707,
-1.1895666122436523,
-0.2792454659938812,
-0.2698909640312195,
-0.6119967699050903,
2.7154345512390137,
-1.4164289236068726,
-0.34397032856941223,
-1.0031094551086426,
-0.5426942110061646,
1.6795045137405396,
-1.1623413562774658,
-0.21079938113689423,
-1.110067367553711,
-0.6527754068374634,
-1.4104771614074707,
-0.5163944363594055,
-0.08036012947559357,
-0.9565897583961487,
0.9160692095756531,
0.20431384444236755,
-1.18490731716156,
-0.24156931042671204,
-0.931856632232666,
0.9219541549682617,
-0.041112400591373444,
0.2717649042606354,
1.9345028400421143,
0.42591822147369385,
-0.40776050090789795,
0.7301172018051147,
1.1191831827163696,
0.6407651305198669,
-0.7459937334060669,
0.27045145630836487,
-0.6347749829292297,
0.22989387810230255,
-1.396211862564087,
0.2247336059808731,
-2.87296462059021,
0.5790411233901978,
-0.06513255089521408,
-0.1030593290925026,
0.010015440173447132,
-1.2536273002624512,
1.131718397140503,
2.5287694931030273,
-1.2649019956588745,
0.5259135365486145,
0.27513641119003296,
1.3361979722976685,
-1.6565805673599243,
0.3792753517627716,
-0.3454788327217102,
2.0751142501831055,
0.17223389446735382,
1.1985198259353638,
-0.43113046884536743,
-2.271083354949951,
0.5534906387329102,
-1.3741766214370728,
-1.1003526449203491,
0.6803202033042908,
-0.7954373359680176,
0.10267373919487,
-1.5240495204925537,
-0.22013111412525177,
-0.8902155756950378,
-1.3239575624465942,
0.7941576838493347,
0.13377344608306885,
0.3256389796733856,
-0.46540626883506775,
0.43662792444229126,
-2.157374143600464,
-1.4082202911376953,
-0.21112899482250214,
-0.8500706553459167,
0.4512486457824707,
-0.3337979018688202,
0.7743683457374573,
-0.27079206705093384,
0.015598050318658352,
0.36114516854286194,
1.4034279584884644,
3.422142505645752,
0.1979438066482544,
0.37410593032836914,
-0.10470593720674515,
-0.9263338446617126,
1.476879358291626,
0.940775990486145,
-0.20458471775054932,
-0.46844759583473206,
-1.0971871614456177,
1.3411880731582642,
1.886077880859375,
1.0524322986602783,
0.054318659007549286,
-0.7395195960998535,
-0.6065647006034851,
0.0646052211523056,
0.1623883694410324,
0.546299159526825,
0.8235847353935242,
0.019548308104276657,
0.0760592445731163,
1.4381117820739746,
1.1928110122680664,
-0.3834936320781708,
0.34718024730682373,
-0.8101204633712769,
-0.4522923529148102,
0.5928773283958435,
0.2018795907497406,
-0.015335683710873127,
0.300004780292511,
-1.0387080907821655,
-0.21643061935901642,
-0.34131449460983276,
-0.8834591507911682,
-0.7086590528488159,
-0.44236719608306885,
-0.3950599431991577,
1.5459691286087036,
0.2228919267654419,
-0.5421110391616821,
-0.15108251571655273,
-0.7367298007011414,
-0.09683762490749359,
-1.0565859079360962,
0.22452199459075928,
-0.12379105389118195,
-0.21178798377513885,
-0.14088787138462067,
1.7354199886322021,
-0.9857068657875061,
-2.1930160522460938,
0.14993558824062347,
0.3121497333049774,
-0.2556885778903961,
0.1868760883808136,
1.6357173919677734,
0.4859746992588043,
1.4102041721343994,
1.2782840728759766,
0.9444265961647034,
-0.646420955657959,
-1.351043939590454,
0.6338611841201782,
1.019321084022522,
-1.4463446140289307,
0.7887251377105713,
0.013689418323338032,
-0.5340226888656616,
0.6931422352790833,
1.3252531290054321,
0.45836520195007324,
-1.889829158782959,
0.7547652721405029,
-0.9497134685516357,
0.9013382792472839,
0.7216697931289673,
0.7258641123771667,
0.24742832779884338,
0.8118194341659546,
-1.287320852279663,
-1.127363681793213,
-0.79221510887146,
-0.6064024567604065,
1.9967595338821411,
-0.20685094594955444,
0.5456450581550598,
-0.17159655690193176,
-1.282362937927246,
0.017308030277490616,
0.7046431303024292,
0.3091270327568054,
-0.4517953097820282,
0.8259516358375549,
-0.69523024559021,
-1.1692554950714111,
-1.313166856765747,
-0.49928033351898193,
-1.046804666519165,
-0.9408237338066101,
1.0648311376571655,
0.8647280931472778,
0.20371077954769135,
1.8123433589935303,
0.6180235147476196,
0.19119074940681458,
-2.5964064598083496,
0.8465111255645752,
0.2152736783027649,
0.037801481783390045,
0.7580017447471619,
0.2876192033290863,
1.102051019668579,
-0.025028973817825317,
0.5206323266029358,
-2.3792312145233154,
2.2360618114471436,
-0.2306094914674759,
0.6251009702682495,
-0.09704899042844772,
-0.07159124314785004,
1.0283654928207397,
0.5151374936103821,
0.5530681014060974,
-0.9126386046409607,
0.6299061179161072,
-0.5269778966903687,
1.2755210399627686,
0.9808116555213928,
-0.8827927112579346,
-0.03922029212117195,
1.3583959341049194,
0.47095924615859985,
-0.5862175822257996,
-0.9606119394302368,
-0.908379316329956,
0.9746698141098022,
1.6620495319366455,
-0.13939572870731354,
0.012495684437453747,
0.9369998574256897,
0.5132204294204712,
-1.2904130220413208,
0.10339342057704926,
-0.6917382478713989,
-0.5782342553138733,
1.6987874507904053,
2.001081705093384,
-0.20254634320735931,
-0.20388908684253693,
-0.6917803287506104,
-1.2693676948547363,
0.7302491068840027,
-0.03225112333893776,
0.13268491625785828,
0.7720873355865479,
-0.5969765186309814,
0.9384716153144836,
0.785595178604126,
0.9210659861564636,
0.16029004752635956,
0.3100492060184479,
0.40824148058891296,
-0.41936904191970825,
-1.1741689443588257,
-0.22461256384849548,
-1.1232842206954956,
-2.480626106262207,
0.4086725115776062,
-0.24045473337173462,
-1.3730155229568481,
0.11384405940771103,
-1.0431944131851196,
1.1264575719833374,
-0.5500126481056213,
-1.1007453203201294,
-1.4430031776428223,
0.19826680421829224,
-0.07084734737873077,
0.8490873575210571,
-1.6546460390090942,
-0.0032654344104230404,
1.3451898097991943,
0.901635468006134,
-0.6614241003990173,
1.0806846618652344,
0.2732156217098236,
1.150568962097168,
0.7281228303909302,
-0.30986669659614563,
0.5493104457855225,
-0.04212578386068344,
-1.3318955898284912,
0.6030076146125793,
1.113087773323059,
0.22940798103809357,
1.4434754848480225,
-0.5658435225486755,
-0.08255364745855331,
0.400470107793808,
-0.5557604432106018,
-0.42010796070098877,
-0.44198229908943176,
0.6139247417449951,
0.12048260867595673,
-0.800663411617279,
0.07314187288284302,
-0.05311679467558861,
-0.2686883509159088,
0.21474085748195648,
-1.4628442525863647,
-0.22156625986099243,
-0.4154908061027527,
-0.6010701060295105,
-1.1961201429367065,
-0.12522763013839722,
1.3467423915863037,
-0.7153599858283997,
-0.29373881220817566,
0.5511060953140259,
0.32213884592056274,
0.5085164904594421,
0.5873216986656189,
-0.5837566256523132,
-0.28576382994651794,
-0.21310822665691376,
-0.23898984491825104,
0.24266698956489563,
1.361596703529358,
-0.19091157615184784,
-1.0962393283843994,
0.810979962348938,
-0.33156752586364746,
0.08116605877876282,
1.7934627532958984,
-0.0129857761785388,
-0.8458856344223022,
0.209757998585701,
-0.7442131638526917,
2.0483133792877197,
1.6952873468399048,
1.4151601791381836,
-0.2156779021024704,
-0.8517271280288696,
0.6120690703392029,
-0.25197991728782654,
-0.37269163131713867,
0.880618691444397,
0.5642110705375671,
-0.16845060884952545,
-1.3560494184494019,
0.7547965049743652,
1.1631343364715576,
-0.8710784912109375,
-0.8559694886207581,
0.1553725302219391,
-0.7862185835838318,
1.083121657371521,
0.7113932967185974,
0.4076170027256012,
0.16000713407993317,
1.6147288084030151,
0.7782772779464722,
-0.5224114656448364,
0.5520220398902893,
0.51303631067276,
-0.1439560055732727,
-2.077374219894409,
-1.0641697645187378,
0.29461669921875,
-0.5192500948905945,
-1.709273099899292,
1.3169115781784058,
-1.087823510169983,
-0.865111231803894,
0.5477434396743774,
0.2210843861103058,
1.4045270681381226,
0.39638596773147583,
1.4805735349655151,
1.9967135190963745,
0.7615819573402405,
0.3526599109172821,
1.2683513164520264,
-0.08006898313760757,
-0.42566901445388794,
1.7543259859085083,
-0.38946333527565,
0.50522381067276,
1.0740647315979004,
-0.29034823179244995,
-1.090622067451477,
-0.7129884958267212,
-1.2789431810379028,
-0.5718370676040649,
1.0990853309631348,
0.14804455637931824,
-1.1363836526870728,
0.17532876133918762,
1.4694828987121582,
0.0014281850308179855,
-0.4085460603237152,
0.6688162684440613,
0.3943970203399658,
-0.8516395688056946,
0.016392309218645096,
-0.8886704444885254,
0.47375938296318054,
-0.1609867364168167,
-0.2639375925064087,
0.38882213830947876,
0.43721216917037964,
1.3481160402297974,
0.10580285638570786,
0.2682088017463684,
1.2109345197677612,
-1.2984776496887207,
1.5091339349746704,
-0.6872358918190002,
0.24041861295700073,
-2.4012038707733154,
1.353708028793335,
-0.7572577595710754,
1.8815093040466309,
-2.6646463871002197,
0.4784437417984009,
-0.6196227073669434,
-0.40824413299560547,
0.2942373752593994,
-0.39581629633903503,
0.058414556086063385,
-0.13206686079502106,
-1.1535955667495728,
0.03549853712320328,
-0.645226240158081,
0.5172122716903687,
1.2196266651153564,
1.322601556777954,
-1.199265718460083,
-0.21900665760040283,
-1.8041220903396606,
-0.2005668580532074,
-0.8205550312995911,
0.3842124044895172,
-2.0472123622894287,
-0.26337000727653503,
-1.7778689861297607,
-2.369385004043579,
-1.2463146448135376,
-0.8155451416969299,
1.2189527750015259,
0.09622934460639954,
-0.9624286890029907,
1.293479561805725,
-0.2946760952472687,
-1.767651081085205,
1.1025304794311523,
-2.14421010017395
] |
https://github.com/huggingface/datasets/issues/5245 | Unable to rename columns in streaming dataset | Thanks @alvarobartt. It is great if you are able to fix it, but when reading the explanation it seems like it is possible to work around it.
We also tried keeping the 'info.features' and then adding a modified version back after the remove/rename. Unforutunately that leads to a dataset that is not possible to iterate over. | ### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1 | 419 | 56 | Unable to rename columns in streaming dataset
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
Thanks @alvarobartt. It is great if you are able to fix it, but when reading the explanation it seems like it is possible to work around it.
We also tried keeping the 'info.features' and then adding a modified version back after the remove/rename. Unforutunately that leads to a dataset that is not possible to iterate over. | [
-1.2207365036010742,
-1.1043905019760132,
-0.8061280846595764,
1.6232349872589111,
-0.22108525037765503,
-1.1773455142974854,
0.12033320218324661,
-1.0268781185150146,
1.6547600030899048,
-0.765484631061554,
0.22686681151390076,
-1.7161884307861328,
-0.023239262402057648,
-0.5731373429298401,
-0.7221044301986694,
-0.9601343870162964,
-0.4286854863166809,
-0.7636972665786743,
1.1476776599884033,
2.445098400115967,
1.1447532176971436,
-1.397518277168274,
2.685666084289551,
0.7381840944290161,
-0.06535671651363373,
-1.1129300594329834,
0.560736358165741,
-0.03879779204726219,
-1.2512708902359009,
-0.4689432680606842,
-0.8958287835121155,
-0.12544763088226318,
-0.5935037136077881,
-0.5359264612197876,
0.021357810124754906,
0.3756368160247803,
-0.3234933018684387,
-0.45621195435523987,
-0.5003423094749451,
-0.769001841545105,
0.4409930109977722,
-0.46145594120025635,
0.8773200511932373,
-0.3953586220741272,
1.9138388633728027,
-0.45651182532310486,
0.3751355707645416,
0.7057198882102966,
1.3809438943862915,
0.20234337449073792,
0.03636912629008293,
0.3828742802143097,
0.3873458802700043,
-0.001792149618268013,
0.4425603151321411,
1.049586534500122,
0.5903051495552063,
0.4440957009792328,
0.7297685146331787,
-2.292051315307617,
1.2827359437942505,
-1.0786933898925781,
0.3646235466003418,
1.4550247192382812,
-0.9341648817062378,
0.45937249064445496,
-1.7158201932907104,
0.009228091686964035,
0.6373721361160278,
-2.2388758659362793,
0.35705533623695374,
-1.2269052267074585,
-0.4425259530544281,
0.9769504070281982,
0.40670108795166016,
-1.2410045862197876,
0.09139350056648254,
-0.4206208288669586,
1.0575565099716187,
0.4960661232471466,
1.1085681915283203,
-1.6908740997314453,
-0.013076800853013992,
-0.3013190031051636,
0.0689147561788559,
-1.4111825227737427,
-1.5553237199783325,
0.539921760559082,
0.622048556804657,
0.6385419964790344,
-0.0827784612774849,
0.9980574250221252,
-1.037758469581604,
0.6495451331138611,
-0.9748708605766296,
-1.6950498819351196,
-1.4337708950042725,
-2.332261085510254,
-2.2775845527648926,
0.7083303332328796,
-0.39023858308792114,
-0.5130597949028015,
2.027435779571533,
-0.9774399399757385,
-1.813744068145752,
1.3396930694580078,
0.2474340796470642,
-0.02909173257648945,
2.4253604412078857,
0.17454621195793152,
-0.6683763265609741,
0.40216386318206787,
-0.7420172691345215,
0.7640349864959717,
-0.45425495505332947,
1.377303957939148,
0.42067357897758484,
-0.9171345829963684,
1.604670763015747,
-0.45502611994743347,
0.5447470545768738,
-0.6776472330093384,
-0.46563389897346497,
-0.8961225748062134,
0.30413684248924255,
1.9007213115692139,
-0.2706134021282196,
1.5716357231140137,
-0.39556002616882324,
-1.5169823169708252,
-1.664227843284607,
0.9742665886878967,
0.3090875446796417,
-0.837337851524353,
0.19368544220924377,
-0.27649837732315063,
0.14732536673545837,
-0.09439729154109955,
1.1364316940307617,
1.2105207443237305,
0.6003929972648621,
-0.2999397814273834,
-0.9185212254524231,
0.22661715745925903,
-0.14518699049949646,
-0.6725225448608398,
-1.7905181646347046,
-0.3585487902164459,
0.10003181546926498,
0.6845269203186035,
-1.2327450513839722,
1.6001888513565063,
0.9139339923858643,
1.8603312969207764,
1.0180070400238037,
-0.33469757437705994,
1.5280110836029053,
0.09763677418231964,
1.8709250688552856,
-0.5559974908828735,
0.7341511845588684,
-0.39650171995162964,
-1.1769074201583862,
0.8005626201629639,
-0.29181116819381714,
-2.0026252269744873,
-0.8300539255142212,
-0.935274600982666,
-0.2590172290802002,
-0.7284292578697205,
0.9127552509307861,
-0.4090823233127594,
-1.414655089378357,
0.3282555937767029,
-0.7906784415245056,
0.29831165075302124,
-1.2302839756011963,
0.394102543592453,
0.7344639301300049,
-0.5982833504676819,
0.09234341233968735,
-0.2746908962726593,
-1.306189775466919,
-0.40380874276161194,
0.34139493107795715,
1.9045991897583008,
-0.8976082801818848,
0.8374768495559692,
0.9679052829742432,
-0.7067842483520508,
-0.04764457792043686,
0.27907371520996094,
-0.2067824900150299,
0.8540605306625366,
-1.026230812072754,
-0.5590261220932007,
1.2522141933441162,
-0.23894810676574707,
-0.7022836208343506,
1.4808685779571533,
0.7584487199783325,
-0.995393693447113,
-0.1795596182346344,
-0.16905248165130615,
-0.8286482691764832,
-0.01530710980296135,
-1.6343753337860107,
-0.07749234139919281,
0.4534552991390228,
-1.5533778667449951,
-0.49338391423225403,
-0.2307165265083313,
1.254189372062683,
-0.06003831699490547,
1.4137256145477295,
-0.3820091784000397,
-0.22302040457725525,
-0.3162854313850403,
-0.4257197976112366,
0.25783616304397583,
-0.2882920205593109,
-0.6430408358573914,
0.12490729242563248,
-0.8209156394004822,
0.4004349410533905,
1.3722199201583862,
0.37911298871040344,
0.09949485212564468,
0.6440618634223938,
1.1198705434799194,
0.3997591733932495,
-0.020242374390363693,
-0.8087432980537415,
-1.5562998056411743,
2.003695249557495,
-1.459134817123413,
2.0068979263305664,
0.5947942733764648,
-0.09769253432750702,
-1.7644200325012207,
-1.8447320461273193,
1.3370119333267212,
1.1950005292892456,
2.2192585468292236,
0.6603673696517944,
0.4582095742225647,
-0.9431179761886597,
-0.7254637479782104,
0.10339627414941788,
-0.9768700003623962,
-0.772859513759613,
0.10703925788402557,
2.4046103954315186,
1.7677563428878784,
-0.4826565980911255,
-0.13272884488105774,
-1.056378960609436,
1.4595322608947754,
-0.2268083691596985,
0.23958635330200195,
1.9844721555709839,
-0.16510412096977234,
-1.05522882938385,
1.2301557064056396,
-2.4122252464294434,
0.12933462858200073,
1.9637560844421387,
0.23112788796424866,
0.09524621814489365,
-1.3929518461227417,
-0.731577455997467,
-0.22792726755142212,
-0.32964223623275757,
-1.2550584077835083,
0.43233805894851685,
-0.27899134159088135,
-0.7068549394607544,
-1.488581895828247,
0.2137320637702942,
-1.0626124143600464,
-1.5800318717956543,
0.17629194259643555,
1.9350522756576538,
2.0450000762939453,
-0.7206417322158813,
1.549570918083191,
-0.12038075923919678,
0.2416650354862213,
1.3382824659347534,
1.188344955444336,
3.0570521354675293,
1.9780021905899048,
-1.2332916259765625,
0.6048988103866577,
-0.04747893661260605,
-0.45635363459587097,
1.2165318727493286,
-1.1929523944854736,
1.302334189414978,
-0.12241145223379135,
-1.1902872323989868,
-1.2317370176315308,
0.9103014469146729,
0.5080599784851074,
0.008270850405097008,
-0.48085644841194153,
1.3912131786346436,
-0.13806307315826416,
1.3160916566848755,
0.5802851319313049,
-0.3735527992248535,
0.5782821178436279,
-0.4150006175041199,
-0.5593698620796204,
1.5150730609893799,
0.16070428490638733,
-1.4766777753829956,
-2.21696138381958,
-0.23385393619537354,
-0.8075230121612549,
-0.024153918027877808,
-0.5339933037757874,
-0.9933564066886902,
1.597588062286377,
0.39802008867263794,
-1.1890913248062134,
-0.2746634781360626,
-0.31518620252609253,
-0.6318641304969788,
2.7833428382873535,
-1.4333479404449463,
-0.36070746183395386,
-1.0432026386260986,
-0.556168794631958,
1.6970913410186768,
-1.17641282081604,
-0.19825869798660278,
-1.0684508085250854,
-0.6097171902656555,
-1.3749675750732422,
-0.4801400601863861,
-0.06961602717638016,
-0.9278344511985779,
0.9254239797592163,
0.28706255555152893,
-1.1528427600860596,
-0.29853537678718567,
-0.9035632014274597,
0.8605592846870422,
-0.04269292205572128,
0.2919304072856903,
1.9154518842697144,
0.44813719391822815,
-0.37549248337745667,
0.7737236618995667,
1.139906644821167,
0.6597225666046143,
-0.6883352398872375,
0.2678838074207306,
-0.5696728229522705,
0.3038766086101532,
-1.3719353675842285,
0.23542574048042297,
-2.8358113765716553,
0.5630021691322327,
-0.052227411419153214,
-0.09727705270051956,
0.022259142249822617,
-1.2794272899627686,
1.1039685010910034,
2.5038983821868896,
-1.2621145248413086,
0.530364453792572,
0.28093868494033813,
1.3352487087249756,
-1.6796460151672363,
0.39410287141799927,
-0.38330984115600586,
2.0861761569976807,
0.193718820810318,
1.152025580406189,
-0.49244657158851624,
-2.321298599243164,
0.5527456998825073,
-1.3631294965744019,
-1.1128978729248047,
0.7052642107009888,
-0.8752943277359009,
0.0998678207397461,
-1.5187870264053345,
-0.22769001126289368,
-0.8573082089424133,
-1.2839912176132202,
0.7966779470443726,
0.11960073560476303,
0.30617251992225647,
-0.46599310636520386,
0.46859756112098694,
-2.2218616008758545,
-1.423600673675537,
-0.2284596860408783,
-0.894801139831543,
0.48666948080062866,
-0.39378783106803894,
0.781760573387146,
-0.2630701959133148,
0.018433934077620506,
0.35680481791496277,
1.4009872674942017,
3.3845646381378174,
0.26074665784835815,
0.40419575572013855,
-0.1413384974002838,
-0.9536168575286865,
1.4850283861160278,
0.9126989245414734,
-0.1891813576221466,
-0.4526447355747223,
-1.0719120502471924,
1.3952425718307495,
1.876407265663147,
1.0473203659057617,
0.022040724754333496,
-0.7302607297897339,
-0.6124709248542786,
0.03292728587985039,
0.20113766193389893,
0.5093929171562195,
0.845582127571106,
0.017808206379413605,
0.12044460326433182,
1.4598432779312134,
1.2219514846801758,
-0.3836924731731415,
0.3363366723060608,
-0.7820027470588684,
-0.5173929929733276,
0.6002851724624634,
0.22726625204086304,
-0.03021226078271866,
0.33863013982772827,
-0.9955782890319824,
-0.2635187804698944,
-0.37657496333122253,
-0.8574089407920837,
-0.7061153054237366,
-0.4418470859527588,
-0.3866811692714691,
1.5744887590408325,
0.2029401957988739,
-0.5486904382705688,
-0.08322261273860931,
-0.7565959095954895,
-0.0844828262925148,
-1.1117571592330933,
0.247798353433609,
-0.08165239542722702,
-0.2253303825855255,
-0.1005997508764267,
1.7424826622009277,
-0.9849238395690918,
-2.1514534950256348,
0.15149512887001038,
0.2813321352005005,
-0.20820337533950806,
0.18097227811813354,
1.6261380910873413,
0.4211820065975189,
1.404620885848999,
1.3212517499923706,
0.9039123058319092,
-0.676376223564148,
-1.4126838445663452,
0.6423360705375671,
1.0357792377471924,
-1.4511207342147827,
0.7995941638946533,
0.0031910203397274017,
-0.5768582820892334,
0.6328688859939575,
1.2847765684127808,
0.46939006447792053,
-1.9276139736175537,
0.7701048851013184,
-1.0086569786071777,
0.9204416871070862,
0.7463479042053223,
0.7324144244194031,
0.2733651101589203,
0.7967661023139954,
-1.2960209846496582,
-1.1229262351989746,
-0.821867823600769,
-0.6660903096199036,
1.9636435508728027,
-0.21558216214179993,
0.5648661851882935,
-0.1031767874956131,
-1.3302876949310303,
-0.04267507418990135,
0.6768730282783508,
0.3352409303188324,
-0.42259401082992554,
0.80935138463974,
-0.7329686880111694,
-1.1966997385025024,
-1.368628978729248,
-0.5112974643707275,
-1.0640698671340942,
-0.9677673578262329,
1.1227062940597534,
0.882816731929779,
0.15143927931785583,
1.7900333404541016,
0.6313568949699402,
0.1877439022064209,
-2.5974342823028564,
0.8811066150665283,
0.21925786137580872,
-0.044711049646139145,
0.7234245538711548,
0.3539247512817383,
1.027008056640625,
0.008535897359251976,
0.514847993850708,
-2.4105472564697266,
2.2780799865722656,
-0.24416926503181458,
0.6944930553436279,
-0.08968199789524078,
-0.08810769021511078,
1.0425493717193604,
0.5792513489723206,
0.5398693084716797,
-0.9381563663482666,
0.6130456924438477,
-0.5093487501144409,
1.296511173248291,
0.9586226344108582,
-0.8197457194328308,
-0.05479465052485466,
1.3277400732040405,
0.4492993652820587,
-0.6123674511909485,
-0.9865801930427551,
-0.9115989804267883,
0.9511687755584717,
1.675789475440979,
-0.10230568051338196,
0.036487020552158356,
0.9171873927116394,
0.5333594083786011,
-1.262078881263733,
0.1452294886112213,
-0.7447076439857483,
-0.6516173481941223,
1.642869234085083,
2.019404649734497,
-0.20903539657592773,
-0.161146342754364,
-0.6549577713012695,
-1.2928788661956787,
0.7092554569244385,
-0.050291575491428375,
0.146621972322464,
0.7230980396270752,
-0.6192938089370728,
0.884830892086029,
0.8312916159629822,
0.9221869707107544,
0.16492202877998352,
0.25057217478752136,
0.3951135277748108,
-0.3781668245792389,
-1.1634756326675415,
-0.1376802623271942,
-1.093797206878662,
-2.493590831756592,
0.38625726103782654,
-0.2394888997077942,
-1.3868553638458252,
0.12819454073905945,
-1.0123052597045898,
1.0669585466384888,
-0.5470854043960571,
-1.1147730350494385,
-1.4405609369277954,
0.14789116382598877,
-0.04978950694203377,
0.8506865501403809,
-1.677455186843872,
-0.03596891462802887,
1.2841130495071411,
0.9365699887275696,
-0.6628872752189636,
1.0742448568344116,
0.2595304548740387,
1.17095947265625,
0.7421423196792603,
-0.3312721848487854,
0.5297887325286865,
-0.026704328134655952,
-1.3435765504837036,
0.5943121910095215,
1.0654633045196533,
0.21826794743537903,
1.4603503942489624,
-0.5683355331420898,
-0.05899910628795624,
0.4048060476779938,
-0.5659936666488647,
-0.34734421968460083,
-0.48860472440719604,
0.6460224390029907,
0.06736966967582703,
-0.7747648358345032,
0.0817856714129448,
-0.0978953018784523,
-0.23383629322052002,
0.14235317707061768,
-1.4753336906433105,
-0.1815219223499298,
-0.4172799587249756,
-0.6362665891647339,
-1.1788206100463867,
-0.11292289942502975,
1.3907039165496826,
-0.6877003312110901,
-0.2922528386116028,
0.5205616354942322,
0.3948507308959961,
0.5041065812110901,
0.6160705089569092,
-0.5930655598640442,
-0.32512331008911133,
-0.1154894232749939,
-0.22107571363449097,
0.2926653325557709,
1.369944453239441,
-0.20027723908424377,
-1.0652897357940674,
0.7897195816040039,
-0.3331676423549652,
0.07261441648006439,
1.8096096515655518,
0.047553226351737976,
-0.8145081996917725,
0.1824665665626526,
-0.7934125661849976,
2.0258290767669678,
1.719954490661621,
1.3965760469436646,
-0.21559357643127441,
-0.8709051012992859,
0.6785600781440735,
-0.2888054847717285,
-0.3680974841117859,
0.8226328492164612,
0.5279809832572937,
-0.17056092619895935,
-1.3926841020584106,
0.7516379356384277,
1.127559781074524,
-0.8368350863456726,
-0.8360951542854309,
0.11708120256662369,
-0.7598353624343872,
1.0888900756835938,
0.6632272005081177,
0.41570162773132324,
0.1890386939048767,
1.6510266065597534,
0.8503627777099609,
-0.4726419746875763,
0.5857095122337341,
0.5227224230766296,
-0.18734228610992432,
-2.0823140144348145,
-1.0708914995193481,
0.3145262598991394,
-0.5400087237358093,
-1.6790399551391602,
1.3243805170059204,
-1.0961289405822754,
-0.853448748588562,
0.5465887188911438,
0.2053530216217041,
1.4173306226730347,
0.39464738965034485,
1.4644931554794312,
2.011867046356201,
0.7922521233558655,
0.37761759757995605,
1.304273009300232,
-0.07801711559295654,
-0.4384828209877014,
1.7511736154556274,
-0.35562843084335327,
0.4520607888698578,
1.0839630365371704,
-0.31083035469055176,
-1.0781266689300537,
-0.6632177829742432,
-1.3041160106658936,
-0.6109070181846619,
1.0967785120010376,
0.1304062008857727,
-1.0826135873794556,
0.2106863260269165,
1.467997670173645,
0.03059777244925499,
-0.3946325480937958,
0.6295086145401001,
0.38189515471458435,
-0.8380466103553772,
-0.02411043271422386,
-0.8833630084991455,
0.473306804895401,
-0.1769687533378601,
-0.31819963455200195,
0.39715418219566345,
0.4126129448413849,
1.3493919372558594,
0.1173965111374855,
0.23280921578407288,
1.1873042583465576,
-1.3187514543533325,
1.4884718656539917,
-0.6757486462593079,
0.21033498644828796,
-2.3739871978759766,
1.3654582500457764,
-0.7129185795783997,
1.911994457244873,
-2.6403298377990723,
0.48037436604499817,
-0.6968913674354553,
-0.4387659728527069,
0.3450092673301697,
-0.4105806350708008,
0.07245714217424393,
-0.14490750432014465,
-1.1658023595809937,
0.02903115749359131,
-0.6591225266456604,
0.5221190452575684,
1.1536823511123657,
1.3191487789154053,
-1.1269811391830444,
-0.24664631485939026,
-1.789353370666504,
-0.18130415678024292,
-0.7721297740936279,
0.3733668625354767,
-2.0610218048095703,
-0.2766719460487366,
-1.8363639116287231,
-2.320066452026367,
-1.2155306339263916,
-0.732059121131897,
1.2570074796676636,
0.11191317439079285,
-0.8957374095916748,
1.3036936521530151,
-0.28430628776550293,
-1.773128628730774,
1.0457432270050049,
-2.147874593734741
] |
https://github.com/huggingface/datasets/issues/5245 | Unable to rename columns in streaming dataset | So if you iterate over the `IterableDataset` as `next(iter(ds))` and then run `rename_columns` when checking that data it will work, but in the end, it's just renaming the column one example/batch at a time, not renaming the column name for all the entries in the dataset, which is the ideal. | ### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1 | 419 | 50 | Unable to rename columns in streaming dataset
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
So if you iterate over the `IterableDataset` as `next(iter(ds))` and then run `rename_columns` when checking that data it will work, but in the end, it's just renaming the column one example/batch at a time, not renaming the column name for all the entries in the dataset, which is the ideal. | [
-1.229758858680725,
-1.088864803314209,
-0.8103088140487671,
1.5805301666259766,
-0.21852073073387146,
-1.1854366064071655,
0.1960681974887848,
-1.022218942642212,
1.6846985816955566,
-0.8005520105361938,
0.24480992555618286,
-1.7279603481292725,
-0.031878359615802765,
-0.6189318299293518,
-0.7456044554710388,
-0.9539564847946167,
-0.4203733801841736,
-0.7602128386497498,
1.11212956905365,
2.486628293991089,
1.1553688049316406,
-1.3634231090545654,
2.712026357650757,
0.6980012655258179,
-0.06037420779466629,
-1.0763498544692993,
0.5318612456321716,
-0.09795831888914108,
-1.213618516921997,
-0.4966900646686554,
-0.9248523712158203,
-0.10093860328197479,
-0.5863515734672546,
-0.5610668659210205,
0.0519508495926857,
0.4114866554737091,
-0.35413700342178345,
-0.46796125173568726,
-0.4105670750141144,
-0.7988296151161194,
0.4403165876865387,
-0.43003538250923157,
0.9009610414505005,
-0.43633562326431274,
1.8967634439468384,
-0.4554807245731354,
0.35607367753982544,
0.7081038951873779,
1.3504207134246826,
0.1958705633878708,
-0.02530396729707718,
0.41792795062065125,
0.3690052628517151,
0.022064855322241783,
0.4647654891014099,
1.0882818698883057,
0.6130658388137817,
0.47491419315338135,
0.7197455167770386,
-2.2991015911102295,
1.247315764427185,
-1.0969828367233276,
0.38410839438438416,
1.4288991689682007,
-0.9554308652877808,
0.4420604109764099,
-1.7505420446395874,
-0.015633590519428253,
0.596399188041687,
-2.2408459186553955,
0.33746883273124695,
-1.2403626441955566,
-0.38354048132896423,
0.9952259063720703,
0.4009624123573303,
-1.272660255432129,
0.11302384734153748,
-0.3440123498439789,
1.0992660522460938,
0.46021145582199097,
1.095078706741333,
-1.7417548894882202,
0.02821390889585018,
-0.3183763921260834,
0.055520422756671906,
-1.3691426515579224,
-1.5446792840957642,
0.5155364871025085,
0.585476815700531,
0.6481188535690308,
-0.09330630302429199,
1.035766839981079,
-1.0361777544021606,
0.6268504858016968,
-1.0001407861709595,
-1.6933859586715698,
-1.4036234617233276,
-2.297524929046631,
-2.3312740325927734,
0.7315197587013245,
-0.4266243875026703,
-0.5298373699188232,
2.044630765914917,
-0.936881959438324,
-1.8156166076660156,
1.3163849115371704,
0.27786728739738464,
-0.050979435443878174,
2.385279417037964,
0.21661898493766785,
-0.7028786540031433,
0.3998081088066101,
-0.731609046459198,
0.7547422647476196,
-0.46947231888771057,
1.4229483604431152,
0.44026029109954834,
-0.948950469493866,
1.5999021530151367,
-0.5000048279762268,
0.5579602718353271,
-0.6743230223655701,
-0.462225079536438,
-0.891267716884613,
0.35924267768859863,
1.9317169189453125,
-0.2678394019603729,
1.5417861938476562,
-0.4137921631336212,
-1.518153190612793,
-1.6094772815704346,
0.992874264717102,
0.3436896502971649,
-0.843717634677887,
0.20990268886089325,
-0.2700674831867218,
0.14440205693244934,
-0.09247945249080658,
1.1471179723739624,
1.1813615560531616,
0.6084182858467102,
-0.3416688144207001,
-0.8841428756713867,
0.26723262667655945,
-0.12144668400287628,
-0.66822350025177,
-1.7562611103057861,
-0.3376118242740631,
0.110145702958107,
0.6565667390823364,
-1.1902586221694946,
1.6194509267807007,
0.8698575496673584,
1.8548786640167236,
0.9975566864013672,
-0.3159507215023041,
1.5003747940063477,
0.11354614794254303,
1.902380347251892,
-0.5115035176277161,
0.7077972292900085,
-0.38352081179618835,
-1.1840842962265015,
0.8467429280281067,
-0.32312679290771484,
-2.0228941440582275,
-0.8189426064491272,
-0.9605228304862976,
-0.20100285112857819,
-0.7528932690620422,
0.9215195775032043,
-0.3877646327018738,
-1.4278143644332886,
0.3250979781150818,
-0.7878829836845398,
0.2800741195678711,
-1.2668070793151855,
0.37484756112098694,
0.723152220249176,
-0.622628927230835,
0.05782429873943329,
-0.30039283633232117,
-1.2835477590560913,
-0.3986222445964813,
0.32137221097946167,
1.9298031330108643,
-0.8926876187324524,
0.8752822875976562,
0.9744945168495178,
-0.7081639170646667,
-0.08067558705806732,
0.28484126925468445,
-0.24043098092079163,
0.8752621412277222,
-1.0232011079788208,
-0.5516602396965027,
1.2401586771011353,
-0.20836468040943146,
-0.6760035157203674,
1.4144487380981445,
0.7452976107597351,
-1.0339024066925049,
-0.16514387726783752,
-0.18184448778629303,
-0.8584846258163452,
0.039389289915561676,
-1.6201179027557373,
-0.02479407750070095,
0.4576108157634735,
-1.5475835800170898,
-0.5013964176177979,
-0.23220781981945038,
1.2865042686462402,
-0.10267754644155502,
1.4489113092422485,
-0.3966125547885895,
-0.20510153472423553,
-0.33005112409591675,
-0.38606470823287964,
0.23127371072769165,
-0.2537953555583954,
-0.6655784845352173,
0.10093674808740616,
-0.7857330441474915,
0.36527305841445923,
1.381344199180603,
0.39574113488197327,
0.0630946233868599,
0.6769026517868042,
1.118698239326477,
0.36945945024490356,
-0.0007245047017931938,
-0.8413079977035522,
-1.5366445779800415,
2.005551338195801,
-1.4591971635818481,
1.9673773050308228,
0.5820807218551636,
-0.06555560231208801,
-1.7706079483032227,
-1.841807246208191,
1.3807199001312256,
1.2405915260314941,
2.208686351776123,
0.6447880268096924,
0.4830424189567566,
-0.9057469964027405,
-0.7218522429466248,
0.1391790360212326,
-0.9786548614501953,
-0.7707968354225159,
0.14084093272686005,
2.3723199367523193,
1.7862019538879395,
-0.4810618460178375,
-0.1904599517583847,
-1.0434004068374634,
1.4263184070587158,
-0.272647887468338,
0.22755314409732819,
1.9797511100769043,
-0.21994894742965698,
-1.0584155321121216,
1.2480145692825317,
-2.3786818981170654,
0.08571172505617142,
1.9882441759109497,
0.23008424043655396,
0.11390949040651321,
-1.4062137603759766,
-0.7245036959648132,
-0.18332593142986298,
-0.34352803230285645,
-1.3021425008773804,
0.42583346366882324,
-0.29445719718933105,
-0.6460868716239929,
-1.4599583148956299,
0.23405137658119202,
-1.0223060846328735,
-1.5940622091293335,
0.15351025760173798,
1.9193353652954102,
2.02280330657959,
-0.7099545001983643,
1.582251787185669,
-0.1304236650466919,
0.3301294147968292,
1.3506073951721191,
1.1938092708587646,
3.0359692573547363,
1.9664376974105835,
-1.2694134712219238,
0.629196286201477,
-0.052101485431194305,
-0.5091114640235901,
1.2730904817581177,
-1.1774241924285889,
1.2659584283828735,
-0.1275433748960495,
-1.2052431106567383,
-1.2242220640182495,
0.8545562028884888,
0.50820392370224,
0.024771688506007195,
-0.4893968403339386,
1.3698816299438477,
-0.1421297788619995,
1.31318998336792,
0.6141512393951416,
-0.4239351153373718,
0.6113911867141724,
-0.42188915610313416,
-0.5171247720718384,
1.510370135307312,
0.18264441192150116,
-1.390577793121338,
-2.22928524017334,
-0.20129239559173584,
-0.8210811614990234,
-0.03867536038160324,
-0.5702100396156311,
-0.993704617023468,
1.5794919729232788,
0.4052785038948059,
-1.1947942972183228,
-0.28002843260765076,
-0.32353806495666504,
-0.6343802213668823,
2.717710018157959,
-1.4354605674743652,
-0.32999375462532043,
-1.0408697128295898,
-0.5666561722755432,
1.7055606842041016,
-1.1452478170394897,
-0.20847982168197632,
-1.0522631406784058,
-0.6103100776672363,
-1.3745862245559692,
-0.5314468145370483,
-0.0814906507730484,
-0.9129408001899719,
0.936893880367279,
0.2508397102355957,
-1.218640923500061,
-0.2783523499965668,
-0.9077473878860474,
0.8317921757698059,
-0.0660792738199234,
0.2772436738014221,
1.9155596494674683,
0.43600741028785706,
-0.3830481171607971,
0.7841618061065674,
1.099776029586792,
0.6492196321487427,
-0.6224448084831238,
0.2817097008228302,
-0.6100435853004456,
0.27325621247291565,
-1.3706856966018677,
0.21247190237045288,
-2.817841053009033,
0.5660234689712524,
-0.08714927732944489,
-0.05631955713033676,
-0.018006950616836548,
-1.3073384761810303,
1.0493654012680054,
2.4989590644836426,
-1.2630523443222046,
0.5109217166900635,
0.2976797819137573,
1.3316866159439087,
-1.7026588916778564,
0.32591623067855835,
-0.40604478120803833,
2.0897955894470215,
0.15540023148059845,
1.1634234189987183,
-0.45391538739204407,
-2.295156717300415,
0.534183919429779,
-1.3819894790649414,
-1.1304802894592285,
0.7534199357032776,
-0.8253012895584106,
0.09840281307697296,
-1.4987064599990845,
-0.23385368287563324,
-0.8533622622489929,
-1.2848047018051147,
0.8478703498840332,
0.11637306213378906,
0.31648319959640503,
-0.46652692556381226,
0.4408111572265625,
-2.1865196228027344,
-1.3935736417770386,
-0.2451438307762146,
-0.8654894232749939,
0.4450192153453827,
-0.3440830409526825,
0.7697542905807495,
-0.2833079695701599,
-0.005262691527605057,
0.362394779920578,
1.3777215480804443,
3.425523281097412,
0.27009525895118713,
0.3895943760871887,
-0.1319723278284073,
-0.9158937335014343,
1.5286725759506226,
0.93253093957901,
-0.24484916031360626,
-0.4097738564014435,
-1.081174373626709,
1.3844095468521118,
1.8498358726501465,
1.022984504699707,
0.05279277265071869,
-0.7208441495895386,
-0.5981994271278381,
0.005444933660328388,
0.1588299721479416,
0.46470773220062256,
0.8055602312088013,
0.06424269825220108,
0.12075552344322205,
1.4093607664108276,
1.1287224292755127,
-0.3841150104999542,
0.39349186420440674,
-0.7666091322898865,
-0.5165080428123474,
0.6430349349975586,
0.22689077258110046,
-0.04330632835626602,
0.3124828338623047,
-0.9390238523483276,
-0.2973889410495758,
-0.3728911280632019,
-0.8885864615440369,
-0.702366054058075,
-0.43729037046432495,
-0.3807724714279175,
1.57589852809906,
0.1750306636095047,
-0.5635972619056702,
-0.13711698353290558,
-0.7747145891189575,
-0.10711824893951416,
-1.0814805030822754,
0.24494591355323792,
-0.10834705084562302,
-0.23468166589736938,
-0.1180569976568222,
1.6993238925933838,
-0.9606305360794067,
-2.1592209339141846,
0.14657673239707947,
0.3234386146068573,
-0.17755146324634552,
0.1764146089553833,
1.643027901649475,
0.41031527519226074,
1.4394580125808716,
1.3327898979187012,
0.9264131784439087,
-0.6564677953720093,
-1.4020235538482666,
0.6481235027313232,
1.0346229076385498,
-1.4548462629318237,
0.7894982099533081,
0.07139173150062561,
-0.5220409035682678,
0.6306682825088501,
1.2491995096206665,
0.4895501732826233,
-1.9266107082366943,
0.7673729658126831,
-0.9971659779548645,
0.8663392663002014,
0.7413305044174194,
0.7565666437149048,
0.2577930688858032,
0.8134031295776367,
-1.268907070159912,
-1.1717718839645386,
-0.7764863967895508,
-0.6516991853713989,
1.947216510772705,
-0.21028341352939606,
0.5816138386726379,
-0.1420346200466156,
-1.3404111862182617,
-0.057090699672698975,
0.7116940021514893,
0.34802132844924927,
-0.43563100695610046,
0.7796857357025146,
-0.7056310176849365,
-1.126254677772522,
-1.423233985900879,
-0.488067626953125,
-1.0597223043441772,
-0.9522459506988525,
1.1230427026748657,
0.8930043578147888,
0.14184260368347168,
1.7526769638061523,
0.650011420249939,
0.1794593781232834,
-2.5664961338043213,
0.8535338640213013,
0.24991849064826965,
-0.05651794373989105,
0.7334271669387817,
0.3494190573692322,
1.074454665184021,
-0.003576763439923525,
0.5598412156105042,
-2.4090843200683594,
2.269751787185669,
-0.22657649219036102,
0.6770545244216919,
-0.06564917415380478,
-0.14509247243404388,
1.0438252687454224,
0.5137097835540771,
0.502249002456665,
-0.9499065279960632,
0.6133590936660767,
-0.5601575374603271,
1.327003836631775,
1.0067212581634521,
-0.880915105342865,
-0.03496520221233368,
1.3648407459259033,
0.42319488525390625,
-0.6082569360733032,
-0.9931724667549133,
-0.9351330995559692,
0.9998511075973511,
1.6574008464813232,
-0.10287133604288101,
0.00629783608019352,
0.9334116578102112,
0.5519604086875916,
-1.2370550632476807,
0.15620052814483643,
-0.7283955216407776,
-0.6839925050735474,
1.6757155656814575,
1.9860714673995972,
-0.19599157571792603,
-0.1484978049993515,
-0.72166508436203,
-1.2599990367889404,
0.7072078585624695,
-0.005451128352433443,
0.10806768387556076,
0.7648822665214539,
-0.607320249080658,
0.9407841563224792,
0.8754891753196716,
0.9101096391677856,
0.21034500002861023,
0.2548668384552002,
0.39756080508232117,
-0.35661986470222473,
-1.1205742359161377,
-0.12856030464172363,
-1.111088752746582,
-2.543778896331787,
0.4146386384963989,
-0.2635127604007721,
-1.3663222789764404,
0.13837970793247223,
-0.9772692918777466,
1.1001156568527222,
-0.5501867532730103,
-1.2005964517593384,
-1.4810681343078613,
0.15463633835315704,
-0.018382001668214798,
0.8390717506408691,
-1.6512856483459473,
-0.046350665390491486,
1.311019778251648,
0.935556173324585,
-0.7040804624557495,
1.025770664215088,
0.25636789202690125,
1.1605290174484253,
0.7658109068870544,
-0.30782437324523926,
0.5674018859863281,
-0.06518372893333435,
-1.333169937133789,
0.6375645399093628,
1.102952480316162,
0.20637217164039612,
1.4872792959213257,
-0.5612019896507263,
-0.07521578669548035,
0.4145980775356293,
-0.5306521058082581,
-0.42736226320266724,
-0.5328822135925293,
0.630000650882721,
0.10269656032323837,
-0.7446073293685913,
0.09458377957344055,
-0.06484939903020859,
-0.23467962443828583,
0.18743839859962463,
-1.461799144744873,
-0.16321112215518951,
-0.4006553590297699,
-0.6368988156318665,
-1.202901005744934,
-0.16035163402557373,
1.3849908113479614,
-0.7147947549819946,
-0.31143510341644287,
0.5417605042457581,
0.32542848587036133,
0.49892497062683105,
0.6110299825668335,
-0.6339765191078186,
-0.3158571124076843,
-0.17327895760536194,
-0.2592678964138031,
0.24778670072555542,
1.3981751203536987,
-0.16752061247825623,
-1.0894416570663452,
0.7834038734436035,
-0.2928885519504547,
-0.016789093613624573,
1.7577987909317017,
0.06718453764915466,
-0.8277900815010071,
0.20083530247211456,
-0.7333913445472717,
2.0275046825408936,
1.7461143732070923,
1.3950977325439453,
-0.21738702058792114,
-0.8857921957969666,
0.6756032705307007,
-0.33149734139442444,
-0.4211592972278595,
0.8731229901313782,
0.4902784824371338,
-0.159561887383461,
-1.4275310039520264,
0.7826613783836365,
1.1552883386611938,
-0.817377507686615,
-0.8349383473396301,
0.11477382481098175,
-0.7719103693962097,
1.0609170198440552,
0.6785803437232971,
0.42233285307884216,
0.21152378618717194,
1.6637544631958008,
0.8062487840652466,
-0.4711800813674927,
0.5775027871131897,
0.5363342761993408,
-0.16086328029632568,
-2.09222149848938,
-1.1259307861328125,
0.3319401741027832,
-0.5126175284385681,
-1.6240216493606567,
1.3713632822036743,
-1.056260347366333,
-0.8624250888824463,
0.5591902732849121,
0.20854727923870087,
1.42311429977417,
0.3673904240131378,
1.4616191387176514,
1.9999696016311646,
0.7846579551696777,
0.3498269021511078,
1.2687324285507202,
-0.08757475763559341,
-0.38495808839797974,
1.744690179824829,
-0.3424206078052521,
0.45632269978523254,
1.0729107856750488,
-0.3026692867279053,
-1.1028809547424316,
-0.6556231379508972,
-1.3585668802261353,
-0.6087420582771301,
1.0767414569854736,
0.1121269166469574,
-1.0790189504623413,
0.21121461689472198,
1.4684276580810547,
0.012660663574934006,
-0.4032950699329376,
0.6619834899902344,
0.3966659903526306,
-0.8649349808692932,
0.005686558783054352,
-0.8867465853691101,
0.46122539043426514,
-0.15233609080314636,
-0.2596927583217621,
0.40223458409309387,
0.43978777527809143,
1.4062138795852661,
0.10555381327867508,
0.24169018864631653,
1.1679649353027344,
-1.2946571111679077,
1.463331937789917,
-0.7364127039909363,
0.2039492428302765,
-2.4047582149505615,
1.3630638122558594,
-0.7884981036186218,
1.8908412456512451,
-2.654110908508301,
0.4907657504081726,
-0.653394341468811,
-0.3920365869998932,
0.3809005618095398,
-0.43404799699783325,
0.06390845775604248,
-0.14607802033424377,
-1.1772117614746094,
0.04453786462545395,
-0.6360152363777161,
0.5686218738555908,
1.148742437362671,
1.3418245315551758,
-1.1681233644485474,
-0.26293665170669556,
-1.7769839763641357,
-0.1452888548374176,
-0.7629467844963074,
0.3636946678161621,
-2.042168617248535,
-0.25807708501815796,
-1.8779404163360596,
-2.3328936100006104,
-1.2066377401351929,
-0.746618926525116,
1.2543984651565552,
0.10640633851289749,
-0.9016345143318176,
1.3079650402069092,
-0.2860183119773865,
-1.798642873764038,
1.0408622026443481,
-2.1420233249664307
] |
https://github.com/huggingface/datasets/issues/5245 | Unable to rename columns in streaming dataset | @alvarobartt Thanks. My use case was that I wanted to do multiple things, ie removing all unnecessary columns, renaming some valid columns, and then using cast (in my case checking if the audio is not 16K and casting it). It is just convenient to look into the info.features between each of these operations. Alternatively, I will just plan ahead...;) To me it seems like all the operations are working.
Thanks for the advice. It was very useful. | ### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1 | 419 | 77 | Unable to rename columns in streaming dataset
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
@alvarobartt Thanks. My use case was that I wanted to do multiple things, ie removing all unnecessary columns, renaming some valid columns, and then using cast (in my case checking if the audio is not 16K and casting it). It is just convenient to look into the info.features between each of these operations. Alternatively, I will just plan ahead...;) To me it seems like all the operations are working.
Thanks for the advice. It was very useful. | [
-1.2544156312942505,
-1.0748059749603271,
-0.7295616865158081,
1.5554447174072266,
-0.2508206367492676,
-1.1297951936721802,
0.15186083316802979,
-1.0333960056304932,
1.6386032104492188,
-0.8035507202148438,
0.20185598731040955,
-1.6600992679595947,
-0.017093099653720856,
-0.5709668397903442,
-0.7430405020713806,
-0.9245572090148926,
-0.45039796829223633,
-0.7522303462028503,
1.1132287979125977,
2.5470564365386963,
1.161413550376892,
-1.37132728099823,
2.7056353092193604,
0.7164900302886963,
-0.07534296810626984,
-1.1027202606201172,
0.5751335620880127,
-0.0015992624685168266,
-1.2775534391403198,
-0.4417811930179596,
-0.9413996934890747,
-0.11918343603610992,
-0.5431044697761536,
-0.5090716481208801,
0.02774936333298683,
0.3801558017730713,
-0.2816578149795532,
-0.49238577485084534,
-0.5058185458183289,
-0.7810235023498535,
0.4410797953605652,
-0.4416148066520691,
0.901258647441864,
-0.37038707733154297,
1.8994108438491821,
-0.4446682929992676,
0.4352092146873474,
0.6950973272323608,
1.354894995689392,
0.1816330850124359,
-0.03180776536464691,
0.3494974970817566,
0.4741605222225189,
0.00625788327306509,
0.4223674535751343,
1.0553839206695557,
0.6510464549064636,
0.4205571413040161,
0.6861922740936279,
-2.2599005699157715,
1.2765341997146606,
-1.103116750717163,
0.3549410402774811,
1.464895486831665,
-0.9725431203842163,
0.473844438791275,
-1.7414683103561401,
-0.03639834001660347,
0.587566077709198,
-2.2137231826782227,
0.30453094840049744,
-1.2197250127792358,
-0.46327683329582214,
1.0257394313812256,
0.41414397954940796,
-1.286278247833252,
0.047873493283987045,
-0.4460870325565338,
1.0453659296035767,
0.4917123019695282,
1.109642505645752,
-1.722792625427246,
-0.014217272400856018,
-0.3185271620750427,
0.07948378473520279,
-1.3443894386291504,
-1.5382426977157593,
0.5085357427597046,
0.6406587958335876,
0.6188302636146545,
-0.06747980415821075,
0.9842560291290283,
-1.0623599290847778,
0.7086197733879089,
-0.9810693264007568,
-1.6990045309066772,
-1.4174267053604126,
-2.3487908840179443,
-2.3312718868255615,
0.7239711284637451,
-0.39867734909057617,
-0.5149987936019897,
2.037881851196289,
-0.985190749168396,
-1.8029676675796509,
1.3309602737426758,
0.22669729590415955,
-0.04604799300432205,
2.4354588985443115,
0.21591994166374207,
-0.671055793762207,
0.3835243582725525,
-0.7332783341407776,
0.7168838381767273,
-0.5046180486679077,
1.416444182395935,
0.4409693777561188,
-0.99139404296875,
1.6104099750518799,
-0.4406864047050476,
0.5193585157394409,
-0.6486812829971313,
-0.42590951919555664,
-0.8542298674583435,
0.35870465636253357,
1.9095388650894165,
-0.26427987217903137,
1.5425816774368286,
-0.4057658016681671,
-1.5149942636489868,
-1.6629188060760498,
0.9864501357078552,
0.3757053315639496,
-0.8264595866203308,
0.18672692775726318,
-0.30762627720832825,
0.08119980990886688,
-0.062278784811496735,
1.0822213888168335,
1.2475112676620483,
0.6649854183197021,
-0.35679399967193604,
-0.882108211517334,
0.2441207319498062,
-0.1528359204530716,
-0.6397264003753662,
-1.8095989227294922,
-0.3411496877670288,
0.06093010678887367,
0.7347558736801147,
-1.2272571325302124,
1.6099239587783813,
0.9341572523117065,
1.8720059394836426,
1.0230376720428467,
-0.3827688992023468,
1.4715297222137451,
0.12282770127058029,
1.8994858264923096,
-0.5580880641937256,
0.7318381667137146,
-0.38657185435295105,
-1.1560055017471313,
0.8205231428146362,
-0.305854856967926,
-1.9879248142242432,
-0.831305742263794,
-0.9432870149612427,
-0.2405274361371994,
-0.7593055367469788,
0.9128283262252808,
-0.3011091947555542,
-1.4311107397079468,
0.3247471749782562,
-0.8201133608818054,
0.25215721130371094,
-1.2438081502914429,
0.396634578704834,
0.7703607082366943,
-0.6153227090835571,
0.13360266387462616,
-0.2969546914100647,
-1.3206720352172852,
-0.4112991392612457,
0.3498454988002777,
1.8711320161819458,
-0.8736796379089355,
0.8477465510368347,
0.956166684627533,
-0.732248842716217,
-0.05702190101146698,
0.2706143260002136,
-0.2616763412952423,
0.8713560700416565,
-1.0404616594314575,
-0.486878901720047,
1.2290213108062744,
-0.28018319606781006,
-0.6234700679779053,
1.467594027519226,
0.737488329410553,
-0.9780591130256653,
-0.19469963014125824,
-0.18364213407039642,
-0.7991951704025269,
0.033426862210035324,
-1.649793028831482,
-0.07755097001791,
0.4221837818622589,
-1.5471235513687134,
-0.5013736486434937,
-0.24985380470752716,
1.3146027326583862,
-0.06057937815785408,
1.4747071266174316,
-0.35600507259368896,
-0.2243659347295761,
-0.3246966004371643,
-0.35592588782310486,
0.2604830861091614,
-0.2510785460472107,
-0.6029982566833496,
0.15722444653511047,
-0.8207833766937256,
0.408895343542099,
1.39595627784729,
0.404548704624176,
0.07905982434749603,
0.6765415072441101,
1.0280845165252686,
0.3907507359981537,
-0.0456518717110157,
-0.8570253849029541,
-1.5530668497085571,
2.05551815032959,
-1.4942386150360107,
1.968326210975647,
0.6245951056480408,
-0.09934315085411072,
-1.7791423797607422,
-1.8234858512878418,
1.340806007385254,
1.1916221380233765,
2.2271881103515625,
0.6298677325248718,
0.4537196457386017,
-0.8851079344749451,
-0.6961982846260071,
0.143977552652359,
-0.9908928871154785,
-0.7754669785499573,
0.12634682655334473,
2.3850603103637695,
1.7470425367355347,
-0.4877002239227295,
-0.17654332518577576,
-1.032962441444397,
1.4743744134902954,
-0.21062423288822174,
0.19702397286891937,
1.9972312450408936,
-0.20859314501285553,
-1.041585922241211,
1.2139880657196045,
-2.3882298469543457,
0.17288008332252502,
1.9509822130203247,
0.2163781374692917,
0.090402752161026,
-1.4464524984359741,
-0.6833000183105469,
-0.2218853235244751,
-0.3539331257343292,
-1.276006817817688,
0.48949843645095825,
-0.28615474700927734,
-0.6972730755805969,
-1.5161192417144775,
0.23425297439098358,
-1.0638575553894043,
-1.5980366468429565,
0.1698218733072281,
1.8685671091079712,
2.047276020050049,
-0.7205946445465088,
1.5779099464416504,
-0.10274535417556763,
0.24768082797527313,
1.280815601348877,
1.1583865880966187,
3.0198755264282227,
1.9817413091659546,
-1.2394789457321167,
0.6234745979309082,
-0.08301529288291931,
-0.4573771059513092,
1.1850191354751587,
-1.212231993675232,
1.3264355659484863,
-0.11092992126941681,
-1.1983985900878906,
-1.2191435098648071,
0.929612934589386,
0.5011056661605835,
0.011412064544856548,
-0.4711628258228302,
1.3488483428955078,
-0.07771534472703934,
1.343870997428894,
0.571349561214447,
-0.3593690097332001,
0.6389457583427429,
-0.492422878742218,
-0.5091831684112549,
1.5392874479293823,
0.19318662583827972,
-1.428498387336731,
-2.2019715309143066,
-0.2515627145767212,
-0.8378723859786987,
-0.027317821979522705,
-0.5664289593696594,
-0.9476759433746338,
1.614241123199463,
0.41750553250312805,
-1.1788016557693481,
-0.27775582671165466,
-0.3332870900630951,
-0.6191194653511047,
2.728365659713745,
-1.41417396068573,
-0.34549012780189514,
-1.0162724256515503,
-0.6039562821388245,
1.6897164583206177,
-1.1821072101593018,
-0.17249326407909393,
-1.0577332973480225,
-0.6218198537826538,
-1.3783026933670044,
-0.5481573343276978,
-0.050812043249607086,
-0.9384347200393677,
0.9026116132736206,
0.2864914536476135,
-1.1873054504394531,
-0.2974194586277008,
-0.8592053651809692,
0.8326625227928162,
-0.013363629579544067,
0.2734455466270447,
1.911155104637146,
0.4391036033630371,
-0.36951354146003723,
0.7508963942527771,
1.111973524093628,
0.6883726716041565,
-0.659410297870636,
0.27520349621772766,
-0.6206701397895813,
0.27334433794021606,
-1.3119404315948486,
0.2363981306552887,
-2.8383913040161133,
0.5519869923591614,
-0.04291550815105438,
-0.08923133462667465,
-0.01507565937936306,
-1.272926688194275,
1.1229714155197144,
2.533853769302368,
-1.2432678937911987,
0.5300164222717285,
0.2841646075248718,
1.3091328144073486,
-1.6019762754440308,
0.37082988023757935,
-0.3684319257736206,
2.1024088859558105,
0.23125137388706207,
1.185532808303833,
-0.4847975969314575,
-2.31485652923584,
0.5401020646095276,
-1.3536083698272705,
-1.1328237056732178,
0.6823154091835022,
-0.8470604419708252,
0.07499701529741287,
-1.4789657592773438,
-0.2259974479675293,
-0.8419724106788635,
-1.3103291988372803,
0.7622739672660828,
0.1363152414560318,
0.3748769760131836,
-0.47376346588134766,
0.4415130913257599,
-2.1759893894195557,
-1.388105869293213,
-0.27641561627388,
-0.8783918619155884,
0.44289878010749817,
-0.320291131734848,
0.781359851360321,
-0.24157781898975372,
0.0008159773424267769,
0.3732169568538666,
1.3928515911102295,
3.4213695526123047,
0.2270512580871582,
0.43847450613975525,
-0.16649757325649261,
-0.9933462738990784,
1.5088295936584473,
0.9421712160110474,
-0.18489792943000793,
-0.4885293245315552,
-1.0873628854751587,
1.3560206890106201,
1.8968065977096558,
1.0396943092346191,
0.032809361815452576,
-0.7242357134819031,
-0.6176033020019531,
0.0468316376209259,
0.1654527485370636,
0.4710436761379242,
0.8592795133590698,
0.02153647318482399,
0.10903625190258026,
1.4729907512664795,
1.2379900217056274,
-0.4473116397857666,
0.35441848635673523,
-0.7840989828109741,
-0.5075835585594177,
0.5686829090118408,
0.2694702744483948,
-0.03423279523849487,
0.28103071451187134,
-1.0054597854614258,
-0.2378598153591156,
-0.3497801125049591,
-0.9519683122634888,
-0.6762899160385132,
-0.3822855055332184,
-0.4015822112560272,
1.602157473564148,
0.18725425004959106,
-0.5253010988235474,
-0.08340433984994888,
-0.7831974029541016,
-0.09331277757883072,
-1.0639564990997314,
0.2329273670911789,
-0.0801597535610199,
-0.18958285450935364,
-0.10569033771753311,
1.8284865617752075,
-0.968616247177124,
-2.132351875305176,
0.16613084077835083,
0.2485235184431076,
-0.22541435062885284,
0.19920936226844788,
1.5906816720962524,
0.4456145465373993,
1.4382703304290771,
1.3380775451660156,
0.9143702983856201,
-0.6551148295402527,
-1.4223142862319946,
0.6539692878723145,
1.0317394733428955,
-1.4564802646636963,
0.7794946432113647,
0.03901875391602516,
-0.501591682434082,
0.6515141725540161,
1.2848126888275146,
0.48964041471481323,
-1.948976755142212,
0.756533145904541,
-0.9363670349121094,
0.8832888007164001,
0.7134003043174744,
0.6871491074562073,
0.24771447479724884,
0.7546098828315735,
-1.2931451797485352,
-1.0971078872680664,
-0.7882296442985535,
-0.6407449841499329,
2.0197298526763916,
-0.24257436394691467,
0.5545322299003601,
-0.09093636274337769,
-1.3322350978851318,
-0.019193053245544434,
0.6812970638275146,
0.3270062506198883,
-0.4527789354324341,
0.7666215896606445,
-0.6872841715812683,
-1.2133324146270752,
-1.415905475616455,
-0.49297451972961426,
-1.070008635520935,
-0.9445046782493591,
1.1094738245010376,
0.8587780594825745,
0.16155874729156494,
1.8150508403778076,
0.5904512405395508,
0.20535635948181152,
-2.63236665725708,
0.8857228755950928,
0.23800642788410187,
-0.01131596602499485,
0.7661179900169373,
0.3075096309185028,
1.0286520719528198,
-0.004795740824192762,
0.5550481081008911,
-2.4391772747039795,
2.270411252975464,
-0.23431341350078583,
0.7102314233779907,
-0.03565278649330139,
-0.09991509467363358,
1.0467361211776733,
0.5972007513046265,
0.5709295272827148,
-0.9738921523094177,
0.5942670702934265,
-0.536236584186554,
1.3282549381256104,
0.9420453906059265,
-0.8121554851531982,
-0.08434351533651352,
1.3125897645950317,
0.4613790214061737,
-0.5640872120857239,
-1.0038765668869019,
-0.9489154815673828,
0.9503571391105652,
1.6669809818267822,
-0.16333788633346558,
-0.007841411978006363,
0.8872356414794922,
0.5343472957611084,
-1.2569799423217773,
0.1150803416967392,
-0.7505374550819397,
-0.6580054759979248,
1.6516472101211548,
2.060382127761841,
-0.21439778804779053,
-0.1730950027704239,
-0.6644197702407837,
-1.3202842473983765,
0.72426837682724,
-0.061496537178754807,
0.15624676644802094,
0.6856743097305298,
-0.6057409644126892,
0.9372150301933289,
0.8449597358703613,
0.94756019115448,
0.20227591693401337,
0.22616516053676605,
0.3650069236755371,
-0.36292564868927,
-1.1249769926071167,
-0.1534873992204666,
-1.1125011444091797,
-2.558955669403076,
0.3876321017742157,
-0.2568340301513672,
-1.370072841644287,
0.13135164976119995,
-0.9985719919204712,
1.0529088973999023,
-0.5198574662208557,
-1.1407355070114136,
-1.432876467704773,
0.13734948635101318,
-0.09196293354034424,
0.8806599378585815,
-1.6910220384597778,
-0.0513925701379776,
1.2782959938049316,
0.9320881366729736,
-0.6490963697433472,
1.0787829160690308,
0.286883145570755,
1.14824640750885,
0.7309153079986572,
-0.2957589328289032,
0.5204266905784607,
0.004462327808141708,
-1.3063791990280151,
0.6131528615951538,
1.0676906108856201,
0.22054433822631836,
1.4297312498092651,
-0.6025465726852417,
-0.07699066400527954,
0.4155482351779938,
-0.5344230532646179,
-0.392611563205719,
-0.4386165738105774,
0.6085243821144104,
0.050032440572977066,
-0.7995659112930298,
0.0811605155467987,
-0.08666753768920898,
-0.2269628793001175,
0.13745850324630737,
-1.4675453901290894,
-0.16526520252227783,
-0.39331987500190735,
-0.6241510510444641,
-1.2175076007843018,
-0.14393250644207,
1.377691626548767,
-0.7385870218276978,
-0.2996872067451477,
0.5108768343925476,
0.3980996310710907,
0.5058850646018982,
0.607214629650116,
-0.6174121499061584,
-0.34054142236709595,
-0.19095997512340546,
-0.2745376527309418,
0.2999758720397949,
1.3983386754989624,
-0.18903902173042297,
-1.0449851751327515,
0.7775608897209167,
-0.3277459740638733,
0.03290221467614174,
1.8085300922393799,
0.07930546998977661,
-0.8547003269195557,
0.18692660331726074,
-0.7026617527008057,
2.0259499549865723,
1.6805483102798462,
1.3960989713668823,
-0.20695991814136505,
-0.881213903427124,
0.6474434733390808,
-0.3437514007091522,
-0.38906949758529663,
0.8304219841957092,
0.5436251759529114,
-0.15265080332756042,
-1.3606590032577515,
0.7462194561958313,
1.1858458518981934,
-0.8155848979949951,
-0.8113873600959778,
0.10274836421012878,
-0.777888298034668,
1.0447733402252197,
0.7234620451927185,
0.45244577527046204,
0.17830617725849152,
1.6632955074310303,
0.8143368363380432,
-0.49746644496917725,
0.542401909828186,
0.5041577816009521,
-0.18997351825237274,
-2.1325764656066895,
-1.0850412845611572,
0.30810725688934326,
-0.5181683897972107,
-1.6310091018676758,
1.3382093906402588,
-1.0952638387680054,
-0.8636564612388611,
0.5086579322814941,
0.20519791543483734,
1.4172723293304443,
0.39636552333831787,
1.4960969686508179,
1.9788621664047241,
0.8480971455574036,
0.3710803985595703,
1.2858641147613525,
-0.08188802003860474,
-0.43762293457984924,
1.7427442073822021,
-0.38139602541923523,
0.4465896785259247,
1.1663000583648682,
-0.32377511262893677,
-1.045586347579956,
-0.6723549962043762,
-1.2624199390411377,
-0.6125413179397583,
1.1228400468826294,
0.10108476877212524,
-1.0875840187072754,
0.19629929959774017,
1.4844316244125366,
0.07862083613872528,
-0.4288417100906372,
0.5998135209083557,
0.39928072690963745,
-0.8027740716934204,
-0.014628607779741287,
-0.8826890587806702,
0.4874457120895386,
-0.200469508767128,
-0.3237588107585907,
0.38744860887527466,
0.3856906592845917,
1.3271801471710205,
0.05700007453560829,
0.23459942638874054,
1.1822510957717896,
-1.3394032716751099,
1.466176152229309,
-0.6833930015563965,
0.2034740298986435,
-2.3378348350524902,
1.3597694635391235,
-0.7595421075820923,
1.9009109735488892,
-2.6894564628601074,
0.44809049367904663,
-0.6438601016998291,
-0.3989677131175995,
0.3258090019226074,
-0.40414315462112427,
0.06597353518009186,
-0.16567909717559814,
-1.15908944606781,
-0.03355046734213829,
-0.6404275894165039,
0.4941670596599579,
1.1299606561660767,
1.280291199684143,
-1.1362189054489136,
-0.24163761734962463,
-1.7528164386749268,
-0.16524726152420044,
-0.7956072688102722,
0.38149765133857727,
-2.0092453956604004,
-0.23507782816886902,
-1.849565863609314,
-2.3058319091796875,
-1.2365034818649292,
-0.7674190998077393,
1.2374074459075928,
0.07239776849746704,
-0.8855263590812683,
1.2912362813949585,
-0.2775464951992035,
-1.8334767818450928,
1.0529850721359253,
-2.1966500282287598
] |
https://github.com/huggingface/datasets/issues/5245 | Unable to rename columns in streaming dataset | If we know the features before renaming, then we know the features after renaming, so we can pass the new features to the returned dataset in `rename_column` indeed ! If anyone is interested in contributing, feel free to open a PR and I'd be happy to help / give some pointers :) | ### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1 | 419 | 52 | Unable to rename columns in streaming dataset
### Describe the bug
Trying to rename column in a streaming datasets, destroys the features object.
### Steps to reproduce the bug
The following code illustrates the error:
```
from datasets import load_dataset
dataset = load_dataset('mc4', 'en', streaming=True, split='train')
dataset.info.features
# {'text': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'url': Value(dtype='string', id=None)}
dataset = dataset.rename_column("text", "content")
dataset.info.features
# This returned object is now None!
```
### Expected behavior
This should just alter the renamed column.
### Environment info
datasets 2.6.1
If we know the features before renaming, then we know the features after renaming, so we can pass the new features to the returned dataset in `rename_column` indeed ! If anyone is interested in contributing, feel free to open a PR and I'd be happy to help / give some pointers :) | [
-1.2465418577194214,
-1.0815787315368652,
-0.8074398040771484,
1.559889554977417,
-0.22506873309612274,
-1.1754529476165771,
0.14595791697502136,
-1.0566831827163696,
1.6241912841796875,
-0.8131999373435974,
0.23683753609657288,
-1.7209144830703735,
-0.0252069178968668,
-0.643818736076355,
-0.7238437533378601,
-0.9759941101074219,
-0.3935193121433258,
-0.7026204466819763,
1.1002681255340576,
2.487370252609253,
1.1272132396697998,
-1.3330128192901611,
2.7102506160736084,
0.7520768046379089,
-0.10603230446577072,
-1.0965725183486938,
0.5911291241645813,
-0.01968805119395256,
-1.2068336009979248,
-0.4635850191116333,
-0.9724755883216858,
-0.062027111649513245,
-0.5881987810134888,
-0.516503095626831,
0.048188768327236176,
0.4010215997695923,
-0.321231871843338,
-0.44621822237968445,
-0.4515440762042999,
-0.7996395826339722,
0.426382452249527,
-0.4045611619949341,
0.9099327325820923,
-0.4059864580631256,
1.8698010444641113,
-0.4520803391933441,
0.3187507688999176,
0.6924905180931091,
1.310774803161621,
0.16907420754432678,
-0.011635852046310902,
0.3729451298713684,
0.3870449960231781,
-0.005005319137126207,
0.4755076766014099,
1.0708717107772827,
0.5871641039848328,
0.4662586450576782,
0.7398223280906677,
-2.2704918384552,
1.2683231830596924,
-1.092281460762024,
0.4003143906593323,
1.4886051416397095,
-0.9340949654579163,
0.4879772663116455,
-1.707814335823059,
-0.03203694522380829,
0.6007139682769775,
-2.2551357746124268,
0.3823343813419342,
-1.2471156120300293,
-0.4753837585449219,
0.9739667773246765,
0.42285409569740295,
-1.2417925596237183,
0.11965391039848328,
-0.38691115379333496,
1.1427363157272339,
0.4918670058250427,
1.0626256465911865,
-1.672418475151062,
0.015536436811089516,
-0.27979499101638794,
0.03041892684996128,
-1.3805140256881714,
-1.5230034589767456,
0.5127305388450623,
0.6110073924064636,
0.639454185962677,
-0.048466525971889496,
1.0309230089187622,
-1.0376592874526978,
0.6607932448387146,
-0.9472284913063049,
-1.6743024587631226,
-1.4005571603775024,
-2.34727144241333,
-2.243079662322998,
0.7334444522857666,
-0.3997349441051483,
-0.5469012260437012,
2.0660858154296875,
-1.0142626762390137,
-1.8405779600143433,
1.3702352046966553,
0.29158473014831543,
-0.09126553684473038,
2.388552188873291,
0.2479768991470337,
-0.681922435760498,
0.39635583758354187,
-0.7665768265724182,
0.79296875,
-0.47458192706108093,
1.4070202112197876,
0.4495908319950104,
-0.959227979183197,
1.6090648174285889,
-0.5123686194419861,
0.5395431518554688,
-0.6853595972061157,
-0.4647473990917206,
-0.8814609050750732,
0.37799012660980225,
1.8645942211151123,
-0.27379199862480164,
1.50653076171875,
-0.4035488963127136,
-1.4863191843032837,
-1.6084142923355103,
0.9762512445449829,
0.3566197156906128,
-0.8607256412506104,
0.21822838485240936,
-0.2643275558948517,
0.13972200453281403,
-0.09672139585018158,
1.142189383506775,
1.1974337100982666,
0.6183544397354126,
-0.33677494525909424,
-0.8807520270347595,
0.23766615986824036,
-0.11520153284072876,
-0.657971203327179,
-1.8319896459579468,
-0.35252466797828674,
0.08203598856925964,
0.7005414366722107,
-1.177842378616333,
1.5748671293258667,
0.8913730978965759,
1.8478507995605469,
0.9968571066856384,
-0.39988917112350464,
1.5161422491073608,
0.07813974469900131,
1.8598222732543945,
-0.5424289703369141,
0.7470404505729675,
-0.3330223858356476,
-1.1681458950042725,
0.839703381061554,
-0.30104175209999084,
-2.031996250152588,
-0.7949730157852173,
-0.9744642376899719,
-0.26470473408699036,
-0.7584328055381775,
0.9072121381759644,
-0.43003571033477783,
-1.4221233129501343,
0.3227207660675049,
-0.815933108329773,
0.34696048498153687,
-1.2474260330200195,
0.40549227595329285,
0.7410668134689331,
-0.5753162503242493,
0.003885558806359768,
-0.2899411618709564,
-1.2896426916122437,
-0.382781445980072,
0.3741344213485718,
1.8806201219558716,
-0.9274596571922302,
0.81951504945755,
0.9648866057395935,
-0.7121375799179077,
-0.06848234683275223,
0.2866050601005554,
-0.22455237805843353,
0.891505241394043,
-1.0413382053375244,
-0.586001992225647,
1.1887961626052856,
-0.21263593435287476,
-0.7128860950469971,
1.4351439476013184,
0.8063052892684937,
-1.005082607269287,
-0.19414369761943817,
-0.23640266060829163,
-0.8539965152740479,
-0.017901167273521423,
-1.6444108486175537,
-0.14042483270168304,
0.4894566535949707,
-1.5354938507080078,
-0.46144968271255493,
-0.21608711779117584,
1.333126425743103,
-0.10450258105993271,
1.4654253721237183,
-0.418440043926239,
-0.2025792896747589,
-0.3240063488483429,
-0.3863709270954132,
0.3055751919746399,
-0.23654651641845703,
-0.6407736539840698,
0.08899368345737457,
-0.7830018997192383,
0.33306747674942017,
1.394646167755127,
0.38932740688323975,
0.08393669873476028,
0.6603497266769409,
1.0924594402313232,
0.3254967927932739,
0.007617706432938576,
-0.8793430328369141,
-1.5800403356552124,
2.0313186645507812,
-1.485128402709961,
1.9805612564086914,
0.5710020065307617,
-0.02789929509162903,
-1.7852070331573486,
-1.8443604707717896,
1.387636423110962,
1.216394066810608,
2.1764204502105713,
0.6089394688606262,
0.44418689608573914,
-0.8709009289741516,
-0.718863844871521,
0.10640881955623627,
-1.0091850757598877,
-0.7280452251434326,
0.13747000694274902,
2.3602795600891113,
1.800432801246643,
-0.45866259932518005,
-0.1622307151556015,
-1.0242040157318115,
1.439697027206421,
-0.23357723653316498,
0.1937071532011032,
2.0171241760253906,
-0.23590369522571564,
-1.0195544958114624,
1.2311460971832275,
-2.417043924331665,
0.07001850008964539,
1.9634675979614258,
0.18394435942173004,
0.10590852797031403,
-1.4035217761993408,
-0.6881778836250305,
-0.18646547198295593,
-0.36916857957839966,
-1.2891546487808228,
0.4406503140926361,
-0.29773440957069397,
-0.6444063782691956,
-1.4536921977996826,
0.21743912994861603,
-1.0843766927719116,
-1.6027393341064453,
0.20083536207675934,
1.9584064483642578,
2.074650764465332,
-0.7289865612983704,
1.6052420139312744,
-0.09379485249519348,
0.25856491923332214,
1.3466519117355347,
1.2059012651443481,
3.057199001312256,
1.9631401300430298,
-1.2957684993743896,
0.5950784683227539,
-0.041030071675777435,
-0.5168818235397339,
1.2432533502578735,
-1.181219458580017,
1.275113582611084,
-0.09953409433364868,
-1.2070460319519043,
-1.2156198024749756,
0.8824493288993835,
0.5064544081687927,
0.06231605261564255,
-0.5090437531471252,
1.3809518814086914,
-0.15897154808044434,
1.3237961530685425,
0.5965526700019836,
-0.43661603331565857,
0.5634456276893616,
-0.41276976466178894,
-0.5313597321510315,
1.5007550716400146,
0.14505460858345032,
-1.4370373487472534,
-2.235689640045166,
-0.24333834648132324,
-0.7841411828994751,
-0.04558108001947403,
-0.5559920072555542,
-1.0005906820297241,
1.6135598421096802,
0.4092005789279938,
-1.1918994188308716,
-0.30730411410331726,
-0.30413129925727844,
-0.5968547463417053,
2.7441999912261963,
-1.4716060161590576,
-0.3388010859489441,
-1.0392216444015503,
-0.5366754531860352,
1.650229573249817,
-1.1668064594268799,
-0.2048414796590805,
-1.0579084157943726,
-0.6216344833374023,
-1.407293438911438,
-0.4973783493041992,
-0.0758918970823288,
-0.9539723992347717,
0.9361243844032288,
0.2166082113981247,
-1.2044217586517334,
-0.2595546245574951,
-0.9156889319419861,
0.8808475732803345,
-0.08951538056135178,
0.30940765142440796,
1.9227317571640015,
0.4239358603954315,
-0.4070708751678467,
0.7602637410163879,
1.1491495370864868,
0.6787639856338501,
-0.646099865436554,
0.2434457242488861,
-0.6110047101974487,
0.24442005157470703,
-1.386177659034729,
0.25927266478538513,
-2.859334707260132,
0.5606200098991394,
-0.03654103726148605,
-0.09048928320407867,
-0.016375940293073654,
-1.2908536195755005,
1.0776289701461792,
2.4920847415924072,
-1.2626854181289673,
0.5341812968254089,
0.2707938551902771,
1.3352909088134766,
-1.660853624343872,
0.33585667610168457,
-0.35781410336494446,
2.055514097213745,
0.1597321629524231,
1.161321759223938,
-0.4248816967010498,
-2.3267178535461426,
0.5299771428108215,
-1.3819713592529297,
-1.068518877029419,
0.7333402037620544,
-0.7831370234489441,
0.10880766063928604,
-1.5407752990722656,
-0.24729131162166595,
-0.9263836741447449,
-1.2834854125976562,
0.7961409687995911,
0.14777463674545288,
0.3192436397075653,
-0.49874192476272583,
0.4299475848674774,
-2.187509059906006,
-1.3922725915908813,
-0.22045205533504486,
-0.8313800096511841,
0.4903796315193176,
-0.3714199364185333,
0.7282220125198364,
-0.23805388808250427,
0.020951367914676666,
0.3456026315689087,
1.4271048307418823,
3.3866260051727295,
0.2610253393650055,
0.4558206796646118,
-0.11399518698453903,
-0.9242823719978333,
1.4806454181671143,
0.9165937900543213,
-0.15272051095962524,
-0.459875226020813,
-1.0665919780731201,
1.408557415008545,
1.825441598892212,
1.0380711555480957,
0.043077610433101654,
-0.749597430229187,
-0.6423161029815674,
0.010670127347111702,
0.2052823305130005,
0.49911653995513916,
0.8037258386611938,
0.006340008229017258,
0.10527035593986511,
1.3745818138122559,
1.1814106702804565,
-0.41567787528038025,
0.35804322361946106,
-0.8113287091255188,
-0.4849640429019928,
0.576202392578125,
0.23369550704956055,
-0.05143636465072632,
0.33048155903816223,
-0.9391491413116455,
-0.29610058665275574,
-0.37004345655441284,
-0.8947330713272095,
-0.6746175289154053,
-0.394429475069046,
-0.4131626784801483,
1.4964113235473633,
0.23311614990234375,
-0.5350068807601929,
-0.15231260657310486,
-0.7797145247459412,
-0.12398423999547958,
-1.0907793045043945,
0.22836937010288239,
-0.08879929035902023,
-0.2615872621536255,
-0.12212181836366653,
1.7018187046051025,
-0.9250388145446777,
-2.1224398612976074,
0.12369731068611145,
0.2846772074699402,
-0.2228299230337143,
0.15842866897583008,
1.7027949094772339,
0.40724050998687744,
1.4010770320892334,
1.2986739873886108,
0.9110594391822815,
-0.6329300403594971,
-1.3463976383209229,
0.6467249393463135,
1.0575381517410278,
-1.4975663423538208,
0.8264740705490112,
0.008430203422904015,
-0.5742886662483215,
0.7037267088890076,
1.2837045192718506,
0.4895913004875183,
-1.9491970539093018,
0.7818006873130798,
-1.0109432935714722,
0.9076893925666809,
0.7740720510482788,
0.7073454856872559,
0.3149026930332184,
0.8328107595443726,
-1.2926251888275146,
-1.1322507858276367,
-0.8123458623886108,
-0.6191043853759766,
2.0203969478607178,
-0.26469579339027405,
0.5682477951049805,
-0.13798747956752777,
-1.2913497686386108,
-0.05454886704683304,
0.6941944360733032,
0.34975528717041016,
-0.42173847556114197,
0.7872531414031982,
-0.724393367767334,
-1.1538962125778198,
-1.398390769958496,
-0.4701840877532959,
-1.014504075050354,
-0.9270296096801758,
1.0893183946609497,
0.9644578695297241,
0.1269080638885498,
1.7622746229171753,
0.6118901968002319,
0.16455133259296417,
-2.5589094161987305,
0.850540041923523,
0.23500686883926392,
-0.0660671666264534,
0.7192294001579285,
0.3312542736530304,
1.1029915809631348,
0.021738065406680107,
0.4916379451751709,
-2.4058401584625244,
2.2612838745117188,
-0.27380964159965515,
0.6843264102935791,
-0.10968668758869171,
-0.07431856542825699,
1.0809626579284668,
0.49962764978408813,
0.5367216467857361,
-0.9082100987434387,
0.6074251532554626,
-0.5425673723220825,
1.3019109964370728,
1.026932716369629,
-0.8428513407707214,
-0.05121979862451553,
1.3975151777267456,
0.4231937825679779,
-0.6526530981063843,
-0.9573396444320679,
-0.9162369966506958,
0.9504286646842957,
1.6611857414245605,
-0.08746746927499771,
0.003996439278125763,
0.9111474752426147,
0.5809836387634277,
-1.238662600517273,
0.18503595888614655,
-0.6715923547744751,
-0.6502050161361694,
1.6515876054763794,
1.9876233339309692,
-0.20910650491714478,
-0.10418523102998734,
-0.7009118795394897,
-1.285106897354126,
0.7068685293197632,
-0.07364261895418167,
0.147715762257576,
0.7283363342285156,
-0.6035100221633911,
0.9096184372901917,
0.8611741662025452,
0.8800393342971802,
0.20204636454582214,
0.2712685465812683,
0.40956446528434753,
-0.3904106616973877,
-1.1318975687026978,
-0.1706910878419876,
-1.1253927946090698,
-2.5284645557403564,
0.3945114314556122,
-0.27173444628715515,
-1.3527699708938599,
0.11988919973373413,
-1.0247077941894531,
1.0866397619247437,
-0.5772709846496582,
-1.0984317064285278,
-1.4520117044448853,
0.20272256433963776,
-0.00324022164568305,
0.82364821434021,
-1.6622508764266968,
-0.03589358925819397,
1.3015464544296265,
0.9089183807373047,
-0.6309967041015625,
1.031031847000122,
0.2669912874698639,
1.18252432346344,
0.7495936751365662,
-0.33995914459228516,
0.5457508563995361,
-0.05720456689596176,
-1.3450862169265747,
0.6191343069076538,
1.0807814598083496,
0.19409246742725372,
1.4309091567993164,
-0.540071427822113,
-0.08411428332328796,
0.40234044194221497,
-0.5288863778114319,
-0.4209255576133728,
-0.4734239876270294,
0.6212000846862793,
0.10430676490068436,
-0.7296749949455261,
0.09798260778188705,
-0.06134013086557388,
-0.275587797164917,
0.19405432045459747,
-1.4904958009719849,
-0.23604586720466614,
-0.4284667372703552,
-0.6241920590400696,
-1.238527536392212,
-0.150104358792305,
1.3653007745742798,
-0.6737806797027588,
-0.3091323971748352,
0.5530986189842224,
0.3561546802520752,
0.5022051334381104,
0.6185125708580017,
-0.6298701167106628,
-0.29380473494529724,
-0.17025484144687653,
-0.2269454151391983,
0.29038137197494507,
1.354764461517334,
-0.2091273069381714,
-1.0243654251098633,
0.7472255229949951,
-0.30501365661621094,
0.015378382056951523,
1.8020843267440796,
0.061256229877471924,
-0.851282000541687,
0.21487902104854584,
-0.7420774102210999,
2.0164923667907715,
1.710732340812683,
1.43329656124115,
-0.22141015529632568,
-0.8568633198738098,
0.7040143013000488,
-0.3231372535228729,
-0.3753925859928131,
0.8667395710945129,
0.5396215915679932,
-0.1362553983926773,
-1.4087679386138916,
0.7892677187919617,
1.1597412824630737,
-0.8408936858177185,
-0.8637905716896057,
0.1242021769285202,
-0.7762219309806824,
1.0675970315933228,
0.6939257383346558,
0.41011932492256165,
0.20764030516147614,
1.6018948554992676,
0.8240141868591309,
-0.513916015625,
0.5464296340942383,
0.5390301942825317,
-0.14527499675750732,
-2.136693000793457,
-1.0469505786895752,
0.2758077383041382,
-0.46049875020980835,
-1.6956508159637451,
1.3817447423934937,
-1.1008797883987427,
-0.881344735622406,
0.5666355490684509,
0.2116907238960266,
1.4071482419967651,
0.3793611228466034,
1.4667304754257202,
1.983769416809082,
0.7667130827903748,
0.37535619735717773,
1.320539116859436,
-0.10890424251556396,
-0.3726707100868225,
1.7473175525665283,
-0.3937085270881653,
0.4530234634876251,
1.0893720388412476,
-0.3235742747783661,
-1.0896581411361694,
-0.6603575348854065,
-1.3059970140457153,
-0.5655685663223267,
1.1345502138137817,
0.12606537342071533,
-1.0582730770111084,
0.17114512622356415,
1.4672735929489136,
-0.0037153512239456177,
-0.40040087699890137,
0.6331591606140137,
0.45856615900993347,
-0.8439568281173706,
-0.03132561966776848,
-0.9103114604949951,
0.5031006932258606,
-0.1682395339012146,
-0.2707268297672272,
0.429988831281662,
0.42932218313217163,
1.3636990785598755,
0.12885361909866333,
0.2546793520450592,
1.1509324312210083,
-1.3480887413024902,
1.4535967111587524,
-0.683926522731781,
0.22792866826057434,
-2.4311037063598633,
1.3765124082565308,
-0.7342221140861511,
1.946733832359314,
-2.6417577266693115,
0.4988466501235962,
-0.6807706356048584,
-0.4159497320652008,
0.3553232252597809,
-0.43105775117874146,
0.03147400915622711,
-0.1299228072166443,
-1.1695983409881592,
0.05629183351993561,
-0.6470921635627747,
0.5447458028793335,
1.2074520587921143,
1.3501546382904053,
-1.1722809076309204,
-0.22363243997097015,
-1.7491600513458252,
-0.18946132063865662,
-0.7672398090362549,
0.3439196050167084,
-2.069896697998047,
-0.23714956641197205,
-1.8441051244735718,
-2.335167646408081,
-1.2119529247283936,
-0.7915017008781433,
1.2361736297607422,
0.10979844629764557,
-0.9426065683364868,
1.3258230686187744,
-0.2949875295162201,
-1.798918604850769,
1.0861685276031494,
-2.121914863586426
] |
https://github.com/huggingface/datasets/issues/5244 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script | Hi ! What kind of private source ? We're exploring adding support for cloud storage and URIs like s3://, gs:// etc. with authentication in the download manager | ### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration. | 420 | 27 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
Hi ! What kind of private source ? We're exploring adding support for cloud storage and URIs like s3://, gs:// etc. with authentication in the download manager | [
-1.26356041431427,
-1.0044041872024536,
-0.750697672367096,
1.4363653659820557,
-0.15467391908168793,
-1.2600435018539429,
0.09552421420812607,
-1.0600471496582031,
1.693120002746582,
-0.849333643913269,
0.27075624465942383,
-1.6719512939453125,
0.10005473345518112,
-0.5929175615310669,
-0.7199583649635315,
-0.8829247355461121,
-0.4446597993373871,
-0.8462576270103455,
1.0061804056167603,
2.441256523132324,
1.1671158075332642,
-1.460994005203247,
2.6917378902435303,
0.7422487735748291,
-0.18713833391666412,
-1.0287400484085083,
0.48739534616470337,
0.029127608984708786,
-1.2794326543807983,
-0.48685431480407715,
-0.9480670094490051,
-0.10601484030485153,
-0.5511566400527954,
-0.393766850233078,
-0.027510937303304672,
0.4439181089401245,
-0.23123212158679962,
-0.3639461100101471,
-0.619059681892395,
-0.7531582117080688,
0.43406590819358826,
-0.35984236001968384,
0.9864429831504822,
-0.41457298398017883,
1.8957984447479248,
-0.5700245499610901,
0.42531490325927734,
0.6641623377799988,
1.3358222246170044,
0.19533173739910126,
-0.06122623383998871,
0.1870918571949005,
0.3093770742416382,
-0.0653509870171547,
0.5100184679031372,
1.0770502090454102,
0.5295179486274719,
0.5503821969032288,
0.6409863829612732,
-2.196369171142578,
1.3899145126342773,
-0.9586938619613647,
0.3750566840171814,
1.4278960227966309,
-0.8888950943946838,
0.4030701518058777,
-1.7056806087493896,
-0.013779492117464542,
0.6739286780357361,
-2.2909326553344727,
0.30843114852905273,
-1.2664273977279663,
-0.5627999305725098,
0.9081756472587585,
0.2579713761806488,
-1.2391706705093384,
0.18544140458106995,
-0.5434821844100952,
1.1250494718551636,
0.5670474767684937,
0.9535296559333801,
-1.6908648014068604,
0.007310974411666393,
-0.16367299854755402,
0.039751868695020676,
-1.3891773223876953,
-1.5650743246078491,
0.5815322995185852,
0.6948168277740479,
0.6065117716789246,
0.010267536155879498,
0.9599937200546265,
-1.0736864805221558,
0.8704004287719727,
-0.9278743267059326,
-1.5155150890350342,
-1.3860939741134644,
-2.4124057292938232,
-2.364089012145996,
0.7807583808898926,
-0.43206387758255005,
-0.555213451385498,
1.9905956983566284,
-1.0376242399215698,
-1.7248865365982056,
1.2485624551773071,
0.19321168959140778,
0.048297397792339325,
2.4283437728881836,
0.1119113564491272,
-0.6973507404327393,
0.43951746821403503,
-0.7388957142829895,
0.8457310795783997,
-0.47293582558631897,
1.3319196701049805,
0.4989401400089264,
-0.9948616623878479,
1.6200512647628784,
-0.56935054063797,
0.5173035860061646,
-0.6354494094848633,
-0.6381186246871948,
-0.8434492349624634,
0.3411963880062103,
1.872029423713684,
-0.2928280830383301,
1.66506826877594,
-0.395231157541275,
-1.5592730045318604,
-1.6159430742263794,
0.8802543878555298,
0.3908575475215912,
-0.9078716039657593,
0.0913073793053627,
-0.40657612681388855,
0.12236922234296799,
-0.16736657917499542,
1.0867559909820557,
1.2186576128005981,
0.680884838104248,
-0.37341976165771484,
-0.8166682720184326,
0.18448108434677124,
-0.15465667843818665,
-0.710492730140686,
-1.796619176864624,
-0.3088596761226654,
0.10961097478866577,
0.5827286839485168,
-1.2319518327713013,
1.8016059398651123,
0.843198835849762,
1.9963122606277466,
0.9800758361816406,
-0.2760034501552582,
1.4592396020889282,
0.09902440011501312,
1.8300342559814453,
-0.591549813747406,
0.7071090936660767,
-0.24708686769008636,
-1.106677532196045,
0.779096782207489,
-0.4085676074028015,
-1.9470657110214233,
-0.747866153717041,
-0.7789512276649475,
-0.13425828516483307,
-0.7282605171203613,
0.9243959188461304,
-0.3161427974700928,
-1.4387117624282837,
0.26684099435806274,
-0.6701760292053223,
0.3625243306159973,
-1.2106513977050781,
0.32412052154541016,
0.7604236602783203,
-0.5778576135635376,
-0.05300836265087128,
-0.2773835361003876,
-1.3190853595733643,
-0.42607831954956055,
0.4157165288925171,
1.8858872652053833,
-0.6058566570281982,
0.841058075428009,
0.9389134049415588,
-0.6072736382484436,
0.022226478904485703,
0.276152640581131,
-0.23046524822711945,
0.8332386612892151,
-1.0860333442687988,
-0.4230824112892151,
1.2200384140014648,
-0.3610773980617523,
-0.6066617965698242,
1.488513469696045,
0.7409975528717041,
-0.9933778643608093,
-0.16371634602546692,
-0.24507774412631989,
-0.8182603120803833,
-0.09382515400648117,
-1.586954116821289,
-0.08130186051130295,
0.37293195724487305,
-1.51772141456604,
-0.38594964146614075,
-0.16019196808338165,
1.2166680097579956,
-0.1543358862400055,
1.4613384008407593,
-0.4625318944454193,
-0.17355576157569885,
-0.27950385212898254,
-0.3915025293827057,
0.21708224713802338,
-0.25130364298820496,
-0.5133694410324097,
0.07823380827903748,
-0.8171319961547852,
0.3352571725845337,
1.4916565418243408,
0.3977086544036865,
0.14365167915821075,
0.5221318602561951,
1.0883814096450806,
0.3373428285121918,
-0.09557748585939407,
-0.7423326969146729,
-1.530129313468933,
1.9518966674804688,
-1.3994232416152954,
1.957838773727417,
0.8434642553329468,
-0.056557781994342804,
-1.8437659740447998,
-1.8097435235977173,
1.2117916345596313,
1.1364463567733765,
2.1625583171844482,
0.48796042799949646,
0.3576081395149231,
-0.8721306920051575,
-0.7084131836891174,
0.3190120756626129,
-1.036122441291809,
-0.6489065289497375,
0.08543144166469574,
2.2593910694122314,
1.7573760747909546,
-0.47473469376564026,
-0.17609775066375732,
-0.9954515695571899,
1.4111406803131104,
-0.24128834903240204,
0.22445715963840485,
2.0339536666870117,
-0.286838173866272,
-1.0788179636001587,
1.2841659784317017,
-2.4815726280212402,
0.21989287436008453,
2.0291874408721924,
0.2965872287750244,
0.10691975057125092,
-1.3895870447158813,
-0.6551706790924072,
-0.36596325039863586,
-0.27969446778297424,
-1.2171674966812134,
0.5877795815467834,
-0.3585176169872284,
-0.7527658939361572,
-1.4696568250656128,
0.14826375246047974,
-1.0375112295150757,
-1.6744171380996704,
0.31544822454452515,
1.8684643507003784,
2.0162150859832764,
-0.7138085961341858,
1.4809824228286743,
-0.18873128294944763,
0.15444114804267883,
1.3038055896759033,
1.2608988285064697,
3.112546682357788,
1.879508376121521,
-1.2202352285385132,
0.6913618445396423,
-0.09699872136116028,
-0.406559020280838,
1.166745662689209,
-1.152534008026123,
1.3133755922317505,
-0.15413229167461395,
-1.2664287090301514,
-1.291635513305664,
1.0365203619003296,
0.5359240174293518,
0.07788608968257904,
-0.5408864617347717,
1.346014380455017,
0.07132857292890549,
1.3812410831451416,
0.5603293776512146,
-0.5071027874946594,
0.48458006978034973,
-0.3752152919769287,
-0.6854237914085388,
1.6122987270355225,
0.17416150867938995,
-1.514941692352295,
-2.2387962341308594,
-0.30118244886398315,
-0.7341687083244324,
-0.04784321039915085,
-0.6316659450531006,
-1.0619616508483887,
1.6713547706604004,
0.42539182305336,
-1.2754185199737549,
-0.3173002600669861,
-0.2829316556453705,
-0.5285687446594238,
2.6835389137268066,
-1.3275319337844849,
-0.2078000158071518,
-0.9746947884559631,
-0.5601907968521118,
1.634734034538269,
-1.333478331565857,
-0.20144647359848022,
-1.0671048164367676,
-0.6821193695068359,
-1.2911077737808228,
-0.4520293176174164,
-0.1172691285610199,
-0.914707601070404,
0.8074851632118225,
0.25461021065711975,
-1.1015691757202148,
-0.39614400267601013,
-0.8131139278411865,
0.9658560752868652,
-0.05259038880467415,
0.342111736536026,
1.8183568716049194,
0.30685144662857056,
-0.4916905164718628,
0.7474069595336914,
1.1944301128387451,
0.647975742816925,
-0.7182238101959229,
0.06148485839366913,
-0.6084960699081421,
0.443814754486084,
-1.3615660667419434,
0.25380608439445496,
-2.984328031539917,
0.6336581707000732,
-0.1655646562576294,
-0.20152920484542847,
-0.05802449956536293,
-1.3645380735397339,
1.064515471458435,
2.5473790168762207,
-1.1537017822265625,
0.45385611057281494,
0.37445905804634094,
1.2319263219833374,
-1.6557661294937134,
0.4696032404899597,
-0.386594295501709,
2.083892345428467,
0.19991350173950195,
1.1912168264389038,
-0.5693563222885132,
-2.2688636779785156,
0.6590496897697449,
-1.1735237836837769,
-1.1155065298080444,
0.7644457817077637,
-0.9527216553688049,
0.18801099061965942,
-1.4629685878753662,
-0.21605347096920013,
-0.8908648490905762,
-1.282623291015625,
0.6475897431373596,
0.17063432931900024,
0.3679247796535492,
-0.5989215970039368,
0.30596140027046204,
-2.2635700702667236,
-1.3220953941345215,
-0.22536641359329224,
-0.9084717035293579,
0.5268554091453552,
-0.4426860213279724,
0.6275166273117065,
-0.12292254716157913,
0.11829917877912521,
0.26612013578414917,
1.5130869150161743,
3.429182291030884,
0.2461303174495697,
0.33770379424095154,
-0.06756220012903214,
-0.9167673587799072,
1.3278450965881348,
0.865734338760376,
-0.15438830852508545,
-0.5506815314292908,
-1.0148699283599854,
1.4067643880844116,
1.927126169204712,
0.9207196831703186,
0.07557781040668488,
-0.7082916498184204,
-0.685522735118866,
-0.03720477223396301,
0.1969902217388153,
0.43697381019592285,
0.9648140668869019,
0.021440353244543076,
0.1302383542060852,
1.4487872123718262,
1.29197359085083,
-0.38713935017585754,
0.39288222789764404,
-0.8632657527923584,
-0.5175747871398926,
0.4875974953174591,
0.3511931896209717,
-0.06982370465993881,
0.4292736053466797,
-1.003695011138916,
-0.1706184595823288,
-0.41534507274627686,
-0.902493953704834,
-0.6546586155891418,
-0.3949664533138275,
-0.39429059624671936,
1.6441097259521484,
0.19528570771217346,
-0.5756751298904419,
0.050664130598306656,
-0.7030307650566101,
-0.14772747457027435,
-1.1894652843475342,
0.2538820803165436,
-0.033542852848768234,
-0.13429173827171326,
-0.08420921862125397,
1.8041064739227295,
-0.9260861873626709,
-2.0877084732055664,
0.20000866055488586,
0.2130049169063568,
-0.36386415362358093,
0.1432209461927414,
1.6858326196670532,
0.381574809551239,
1.4445644617080688,
1.3509260416030884,
0.8751919865608215,
-0.661826491355896,
-1.326196312904358,
0.7930861711502075,
0.9250152111053467,
-1.463891625404358,
0.8319504261016846,
0.0016362881287932396,
-0.6641689538955688,
0.7658505439758301,
1.2547625303268433,
0.4306141138076782,
-1.9305803775787354,
0.8769277930259705,
-1.0411579608917236,
0.8295779824256897,
0.7535834312438965,
0.7237907648086548,
0.2969284653663635,
0.9383199214935303,
-1.2874833345413208,
-1.215592622756958,
-0.7846837639808655,
-0.6590685248374939,
1.938239574432373,
-0.337056964635849,
0.6372156143188477,
-0.12831200659275055,
-1.2690348625183105,
-0.05525990203022957,
0.7517207860946655,
0.38361477851867676,
-0.3132753074169159,
0.8389827013015747,
-0.728760838508606,
-1.0116466283798218,
-1.306077480316162,
-0.4456298053264618,
-1.0101768970489502,
-0.8798021674156189,
1.0191054344177246,
0.7924526333808899,
0.31131401658058167,
1.8716691732406616,
0.5621432065963745,
0.32403120398521423,
-2.5870285034179688,
0.8533599376678467,
0.2566089630126953,
-0.017287874594330788,
0.8384765982627869,
0.29947629570961,
1.085081696510315,
0.09679603576660156,
0.4451422095298767,
-2.4549343585968018,
2.2293927669525146,
-0.29761043190956116,
0.712355375289917,
-0.1321517676115036,
-0.11137989163398743,
1.2158348560333252,
0.7060250639915466,
0.5295559167861938,
-1.0417050123214722,
0.7178747057914734,
-0.5012825131416321,
1.2199722528457642,
0.9037304520606995,
-0.785038948059082,
-0.09205140918493271,
1.3943018913269043,
0.46079331636428833,
-0.531035304069519,
-0.9388768076896667,
-0.8382387757301331,
0.9053462743759155,
1.6226297616958618,
0.015586418099701405,
0.01652180776000023,
0.8133184909820557,
0.6386609673500061,
-1.1962815523147583,
0.14727208018302917,
-0.7252660393714905,
-0.7854721546173096,
1.6589189767837524,
2.027015209197998,
-0.04612775892019272,
-0.12529423832893372,
-0.6804757714271545,
-1.3573007583618164,
0.7396672964096069,
-0.09788759052753448,
0.06666217744350433,
0.598359227180481,
-0.6773635149002075,
0.9606795310974121,
0.7180899381637573,
0.9517654776573181,
0.07037756592035294,
0.33545973896980286,
0.4492984414100647,
-0.3020346164703369,
-1.254563808441162,
-0.2518750727176666,
-1.233114242553711,
-2.53373646736145,
0.43102556467056274,
-0.28200313448905945,
-1.570191502571106,
0.08520078659057617,
-1.0548596382141113,
0.9900402426719666,
-0.6198049187660217,
-1.1928431987762451,
-1.510429859161377,
0.3021577298641205,
-0.1059405654668808,
0.9519338011741638,
-1.495742678642273,
-0.12916789948940277,
1.144674301147461,
0.8371124267578125,
-0.5936390161514282,
1.0838295221328735,
0.24897009134292603,
1.0575613975524902,
0.7513542175292969,
-0.42024874687194824,
0.5292969346046448,
0.04711247980594635,
-1.3501131534576416,
0.5048051476478577,
1.1538079977035522,
0.17473746836185455,
1.4618264436721802,
-0.4743727743625641,
0.029557857662439346,
0.4349459409713745,
-0.6773609519004822,
-0.3920753300189972,
-0.40101489424705505,
0.7007583975791931,
0.030455276370048523,
-0.8362492918968201,
-0.05704365670681,
-0.1694072186946869,
-0.38635337352752686,
0.18642109632492065,
-1.5644103288650513,
-0.24457120895385742,
-0.48566359281539917,
-0.5770173668861389,
-1.3317158222198486,
0.0738750472664833,
1.4701566696166992,
-0.7313949465751648,
-0.16406525671482086,
0.4850059747695923,
0.5352615118026733,
0.5742163062095642,
0.7310057878494263,
-0.67115718126297,
-0.22496731579303741,
-0.2996506690979004,
-0.23820684850215912,
0.30727699398994446,
1.2198865413665771,
-0.11763107776641846,
-0.9635510444641113,
0.7001053690910339,
-0.4262990653514862,
0.10195869207382202,
1.9493972063064575,
0.15005479753017426,
-0.7822211980819702,
0.32632362842559814,
-0.7672923803329468,
1.9494059085845947,
1.7158281803131104,
1.2932994365692139,
-0.039181485772132874,
-0.8577886819839478,
0.5747679471969604,
-0.2601468861103058,
-0.3227098882198334,
0.8661973476409912,
0.5220879316329956,
-0.16045966744422913,
-1.3645321130752563,
0.7232416272163391,
1.046011209487915,
-0.8928233981132507,
-0.8171437978744507,
0.08941678702831268,
-0.7604109048843384,
1.155276894569397,
0.56208336353302,
0.4836832582950592,
0.33531737327575684,
1.7180752754211426,
0.7168750762939453,
-0.574103832244873,
0.552513837814331,
0.5763799548149109,
-0.21513929963111877,
-2.124098777770996,
-1.0374739170074463,
0.31298840045928955,
-0.5530871748924255,
-1.5619240999221802,
1.355823040008545,
-1.103569746017456,
-0.9026474952697754,
0.45047035813331604,
0.09444469213485718,
1.2849584817886353,
0.30449801683425903,
1.6252859830856323,
2.1116082668304443,
0.8622418642044067,
0.35152652859687805,
1.40114164352417,
-0.08393418043851852,
-0.3976810872554779,
1.8535622358322144,
-0.4166913628578186,
0.52793949842453,
1.099273681640625,
-0.4249238669872284,
-1.0081794261932373,
-0.7437049150466919,
-1.0987800359725952,
-0.6171820759773254,
1.0652354955673218,
0.12321928888559341,
-1.0511105060577393,
0.24545779824256897,
1.5181187391281128,
0.04769868031144142,
-0.25364020466804504,
0.5394688844680786,
0.38548117876052856,
-0.7190688848495483,
-0.12653936445713043,
-0.9476980566978455,
0.5274089574813843,
-0.2165258675813675,
-0.3872348666191101,
0.30900290608406067,
0.5208638906478882,
1.269877552986145,
-0.12092388421297073,
0.13473930954933167,
1.2062082290649414,
-1.4789453744888306,
1.353295087814331,
-0.5931442379951477,
0.23696474730968475,
-2.3672056198120117,
1.3585569858551025,
-0.6314476132392883,
1.977717638015747,
-2.6877710819244385,
0.445961594581604,
-0.6495762467384338,
-0.5206712484359741,
0.3861686885356903,
-0.4012460708618164,
0.1429969072341919,
-0.15322859585285187,
-1.0595669746398926,
-0.018862511962652206,
-0.685915470123291,
0.5805653929710388,
1.1396386623382568,
1.3335245847702026,
-1.1051669120788574,
-0.20685936510562897,
-1.6374084949493408,
-0.17105400562286377,
-0.8227646946907043,
0.34503623843193054,
-2.0638070106506348,
-0.10348282009363174,
-1.9639368057250977,
-2.3504631519317627,
-1.341514229774475,
-0.723507821559906,
1.073158621788025,
0.13535743951797485,
-0.9149187207221985,
1.2038025856018066,
-0.27394169569015503,
-1.7523303031921387,
1.0371453762054443,
-2.2221298217773438
] |
https://github.com/huggingface/datasets/issues/5244 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script | Hello! It's a google cloud storage, so gs://, but I'm using it with https.
Being able to provide a file system like [here](https://huggingface.co/docs/datasets/main/filesystems#load-serialized-datasets) would be even more practical indeed.
I've found a quite complicated workaround which consists of monkey patching all of the functions in streaming_download_manager.py to use my own _get_authentication_headers_for_url_ .
A support for this use case would be greatly appreciated!
For reference my _get_authentication_headers_for_url_ looks like this:
```
import os
from typing import Optional, Union
from datasets import config
from huggingface_hub import HfFolder
from gcsfs.credentials import GoogleCredentials
DEFAULT_PROJECT = os.environ.get("GCSFS_DEFAULT_PROJECT", "")
access = "full_control"
gcs_token = os.environ.get("GCS_TOKEN")
def get_authentication_headers_for_url(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> dict:
"""Handle the HF authentication"""
headers = {}
if url.startswith(config.HF_ENDPOINT):
if use_auth_token is False:
token = None
elif isinstance(use_auth_token, str):
token = use_auth_token
else:
token = HfFolder.get_token()
elif url.startswith("https://storage.googleapis.com"):
credentials = GoogleCredentials(DEFAULT_PROJECT, access, gcs_token)
credentials.maybe_refresh()
token = credentials.credentials.token
else:
token = None
if token:
headers["authorization"] = f"Bearer {token}"
return headers
``` | ### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration. | 420 | 159 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
Hello! It's a google cloud storage, so gs://, but I'm using it with https.
Being able to provide a file system like [here](https://huggingface.co/docs/datasets/main/filesystems#load-serialized-datasets) would be even more practical indeed.
I've found a quite complicated workaround which consists of monkey patching all of the functions in streaming_download_manager.py to use my own _get_authentication_headers_for_url_ .
A support for this use case would be greatly appreciated!
For reference my _get_authentication_headers_for_url_ looks like this:
```
import os
from typing import Optional, Union
from datasets import config
from huggingface_hub import HfFolder
from gcsfs.credentials import GoogleCredentials
DEFAULT_PROJECT = os.environ.get("GCSFS_DEFAULT_PROJECT", "")
access = "full_control"
gcs_token = os.environ.get("GCS_TOKEN")
def get_authentication_headers_for_url(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> dict:
"""Handle the HF authentication"""
headers = {}
if url.startswith(config.HF_ENDPOINT):
if use_auth_token is False:
token = None
elif isinstance(use_auth_token, str):
token = use_auth_token
else:
token = HfFolder.get_token()
elif url.startswith("https://storage.googleapis.com"):
credentials = GoogleCredentials(DEFAULT_PROJECT, access, gcs_token)
credentials.maybe_refresh()
token = credentials.credentials.token
else:
token = None
if token:
headers["authorization"] = f"Bearer {token}"
return headers
``` | [
-1.2548093795776367,
-0.9998300075531006,
-0.7231613993644714,
1.472118854522705,
-0.14172783493995667,
-1.2815823554992676,
0.06866263598203659,
-1.081279993057251,
1.68309485912323,
-0.8492703437805176,
0.2753339111804962,
-1.6418559551239014,
0.07018223404884338,
-0.5823360085487366,
-0.7267031073570251,
-0.8388170003890991,
-0.4190725088119507,
-0.8369054794311523,
1.0715523958206177,
2.465574264526367,
1.196831226348877,
-1.4336005449295044,
2.716843843460083,
0.7158254981040955,
-0.1637575626373291,
-1.0110782384872437,
0.5392515063285828,
-0.026347367092967033,
-1.3167122602462769,
-0.47637882828712463,
-0.9359217882156372,
-0.08823978155851364,
-0.5560469627380371,
-0.4489913582801819,
-0.010477877222001553,
0.45740899443626404,
-0.2620773911476135,
-0.40207749605178833,
-0.7131556272506714,
-0.6953957676887512,
0.4349726140499115,
-0.3513716161251068,
0.9870729446411133,
-0.3572373390197754,
1.8494888544082642,
-0.5918719172477722,
0.46024852991104126,
0.6852244734764099,
1.3374329805374146,
0.20532622933387756,
-0.01297666970640421,
0.20703007280826569,
0.3319798409938812,
-0.05852282792329788,
0.5629070401191711,
1.1264880895614624,
0.5786927342414856,
0.5342361330986023,
0.6492722630500793,
-2.2010903358459473,
1.398291826248169,
-0.9492249488830566,
0.33237704634666443,
1.384150505065918,
-0.8628690838813782,
0.3591071665287018,
-1.7402446269989014,
0.01395956240594387,
0.6642850637435913,
-2.2245254516601562,
0.3003886342048645,
-1.2650851011276245,
-0.548419713973999,
0.9842350482940674,
0.32185855507850647,
-1.206397294998169,
0.16972240805625916,
-0.55556321144104,
1.0793074369430542,
0.5135301947593689,
1.0055639743804932,
-1.6789472103118896,
-0.036758903414011,
-0.1950199007987976,
0.10846402496099472,
-1.3007569313049316,
-1.5903562307357788,
0.5987265706062317,
0.680302083492279,
0.5781707167625427,
-0.08141549676656723,
1.0260735750198364,
-1.0710958242416382,
0.8333509564399719,
-0.9888725876808167,
-1.5981662273406982,
-1.4561593532562256,
-2.399099349975586,
-2.315943479537964,
0.7407082319259644,
-0.46628227829933167,
-0.5370066165924072,
2.0283844470977783,
-1.0420300960540771,
-1.7282356023788452,
1.1448191404342651,
0.17340710759162903,
0.11656926572322845,
2.413803815841675,
0.14912453293800354,
-0.7372375726699829,
0.4406507611274719,
-0.7159257531166077,
0.8059552311897278,
-0.3799295425415039,
1.3382291793823242,
0.4316727817058563,
-1.012222409248352,
1.561540126800537,
-0.4708721935749054,
0.6119483709335327,
-0.6114872694015503,
-0.5490504503250122,
-0.739824116230011,
0.32133230566978455,
1.8680099248886108,
-0.3216742277145386,
1.6259747743606567,
-0.3961297571659088,
-1.572858214378357,
-1.6453428268432617,
0.8604496121406555,
0.4263317286968231,
-0.8577089905738831,
0.07985270768404007,
-0.4703017771244049,
0.08489076793193817,
-0.15210270881652832,
1.1478766202926636,
1.2879557609558105,
0.720096230506897,
-0.38354048132896423,
-0.784187912940979,
0.14330479502677917,
-0.12225593626499176,
-0.7345036268234253,
-1.772304654121399,
-0.293405681848526,
0.14951345324516296,
0.6041293740272522,
-1.1905357837677002,
1.809685468673706,
0.9155063629150391,
1.9902334213256836,
1.0300405025482178,
-0.3063787817955017,
1.4345983266830444,
0.12396501004695892,
1.8205480575561523,
-0.5906564593315125,
0.6090514063835144,
-0.26128119230270386,
-1.1488362550735474,
0.8139035701751709,
-0.38608479499816895,
-1.9807735681533813,
-0.7246233224868774,
-0.7094957232475281,
-0.18481244146823883,
-0.7316433191299438,
0.871120035648346,
-0.3001735210418701,
-1.4348949193954468,
0.21462883055210114,
-0.7376629114151001,
0.2643915116786957,
-1.1518034934997559,
0.2435666173696518,
0.753360390663147,
-0.6285510659217834,
0.0367584228515625,
-0.2668415904045105,
-1.3090497255325317,
-0.4842992126941681,
0.45202744007110596,
1.8401418924331665,
-0.6286025643348694,
0.8313859701156616,
1.0382329225540161,
-0.6096867322921753,
0.050353728234767914,
0.2887522578239441,
-0.25654762983322144,
0.8345188498497009,
-1.080021858215332,
-0.44554340839385986,
1.2008713483810425,
-0.35670676827430725,
-0.6026945114135742,
1.509172797203064,
0.729040801525116,
-1.0423963069915771,
-0.21248376369476318,
-0.16272227466106415,
-0.8701177835464478,
-0.027035199105739594,
-1.5660380125045776,
-0.08789961785078049,
0.42076191306114197,
-1.5719962120056152,
-0.38990461826324463,
-0.1657027304172516,
1.2592298984527588,
-0.11284421384334564,
1.4358283281326294,
-0.39153534173965454,
-0.12039648741483688,
-0.24099141359329224,
-0.38137611746788025,
0.20840348303318024,
-0.2707201838493347,
-0.49460527300834656,
0.1221485435962677,
-0.8240957856178284,
0.3637430667877197,
1.5244489908218384,
0.3421807885169983,
0.07581135630607605,
0.47849804162979126,
1.1161502599716187,
0.40350931882858276,
-0.06921042501926422,
-0.7688124179840088,
-1.5404751300811768,
1.945535659790039,
-1.4057466983795166,
1.9944472312927246,
0.8581396341323853,
-0.04626726359128952,
-1.8572028875350952,
-1.8521091938018799,
1.2275323867797852,
1.1073343753814697,
2.253782033920288,
0.4425617456436157,
0.3129061460494995,
-0.8481713533401489,
-0.7177141904830933,
0.3865076005458832,
-0.9481123685836792,
-0.6363625526428223,
0.09932291507720947,
2.2953970432281494,
1.8208805322647095,
-0.42577308416366577,
-0.19986267387866974,
-0.9410911798477173,
1.4393203258514404,
-0.2132195681333542,
0.23414504528045654,
2.0189950466156006,
-0.2183280885219574,
-1.0239816904067993,
1.361208438873291,
-2.423396110534668,
0.29583248496055603,
2.030254602432251,
0.26330849528312683,
0.12308013439178467,
-1.4044647216796875,
-0.6280978918075562,
-0.381452351808548,
-0.3090859055519104,
-1.2155015468597412,
0.5548317432403564,
-0.3030780851840973,
-0.7598628401756287,
-1.460766077041626,
0.17022109031677246,
-1.102588176727295,
-1.6612472534179688,
0.28541597723960876,
1.8806246519088745,
2.070770502090454,
-0.7405855655670166,
1.4918417930603027,
-0.2656489312648773,
0.07315829396247864,
1.2586309909820557,
1.2757289409637451,
3.113227128982544,
1.8538590669631958,
-1.2368232011795044,
0.6934762001037598,
-0.14744700491428375,
-0.42710238695144653,
1.093681812286377,
-1.1961126327514648,
1.310023546218872,
-0.18724454939365387,
-1.2047816514968872,
-1.2425295114517212,
1.032328486442566,
0.5346917510032654,
0.0678582713007927,
-0.5243606567382812,
1.254189133644104,
0.07463418692350388,
1.3234294652938843,
0.5742445588111877,
-0.4630277156829834,
0.5038841366767883,
-0.36811038851737976,
-0.6965379118919373,
1.5352826118469238,
0.20292946696281433,
-1.490714430809021,
-2.1525063514709473,
-0.2772146165370941,
-0.8037912845611572,
-0.004682078026235104,
-0.6392576098442078,
-1.0216575860977173,
1.6724615097045898,
0.3817206919193268,
-1.2682182788848877,
-0.27905070781707764,
-0.32831352949142456,
-0.5050677061080933,
2.7364020347595215,
-1.2659084796905518,
-0.1653134673833847,
-1.0289318561553955,
-0.5630589723587036,
1.6370422840118408,
-1.2918481826782227,
-0.2708037495613098,
-1.1051156520843506,
-0.6275379657745361,
-1.2234936952590942,
-0.46857234835624695,
-0.026212472468614578,
-0.8851223587989807,
0.811872661113739,
0.21308578550815582,
-1.1504287719726562,
-0.37669825553894043,
-0.8190249800682068,
1.0296789407730103,
-0.11512056738138199,
0.24494515359401703,
1.8511013984680176,
0.2576432526111603,
-0.47418567538261414,
0.7541341781616211,
1.2108283042907715,
0.6381946802139282,
-0.6609222888946533,
0.07466809451580048,
-0.6166877746582031,
0.42364779114723206,
-1.3613358736038208,
0.259748250246048,
-2.9403936862945557,
0.6396524906158447,
-0.09035275131464005,
-0.17210392653942108,
-0.05607586354017258,
-1.369115948677063,
1.0282427072525024,
2.5822014808654785,
-1.209477424621582,
0.4667857587337494,
0.41403132677078247,
1.1293314695358276,
-1.6521090269088745,
0.42258915305137634,
-0.4137973487377167,
2.0482077598571777,
0.18491263687610626,
1.2033122777938843,
-0.550939679145813,
-2.319585084915161,
0.6707466244697571,
-1.2333115339279175,
-1.0729480981826782,
0.758090615272522,
-0.9427533149719238,
0.1605827510356903,
-1.4602124691009521,
-0.24725641310214996,
-0.9090328216552734,
-1.2649931907653809,
0.6227043867111206,
0.1557781994342804,
0.3604450225830078,
-0.5966805815696716,
0.3283922076225281,
-2.234513998031616,
-1.3653364181518555,
-0.2402545064687729,
-0.927878201007843,
0.548516571521759,
-0.4672434628009796,
0.58978670835495,
-0.10371359437704086,
0.06992380321025848,
0.3047669231891632,
1.5113526582717896,
3.4444665908813477,
0.19493693113327026,
0.2953200936317444,
-0.16347980499267578,
-0.936884880065918,
1.350874423980713,
0.8659005165100098,
-0.12248446047306061,
-0.5806823372840881,
-1.0118632316589355,
1.3362735509872437,
1.9743003845214844,
0.9637854695320129,
0.03984598070383072,
-0.8156416416168213,
-0.7833284735679626,
-0.03336430341005325,
0.1736236959695816,
0.4887162148952484,
0.9814999103546143,
0.044252119958400726,
0.11621919274330139,
1.4653135538101196,
1.203615427017212,
-0.36174389719963074,
0.3520951271057129,
-0.8788654208183289,
-0.4730408489704132,
0.41984957456588745,
0.3100492060184479,
-0.07750819623470306,
0.4185717701911926,
-1.0658514499664307,
-0.17833080887794495,
-0.4418153762817383,
-0.8518675565719604,
-0.6840227246284485,
-0.37800461053848267,
-0.35463273525238037,
1.6271131038665771,
0.21945317089557648,
-0.5819634199142456,
0.03043549694120884,
-0.6603296995162964,
-0.17994791269302368,
-1.1225353479385376,
0.23762285709381104,
-0.03516456484794617,
-0.15042255818843842,
-0.13216637074947357,
1.72834050655365,
-0.9335600137710571,
-2.074779748916626,
0.16321775317192078,
0.20810553431510925,
-0.3189783990383148,
0.16461987793445587,
1.7002259492874146,
0.44392281770706177,
1.405375599861145,
1.3543956279754639,
0.8933722376823425,
-0.6516383290290833,
-1.3285610675811768,
0.7293528318405151,
0.963432788848877,
-1.4094005823135376,
0.8888238668441772,
-0.10858451575040817,
-0.6017116904258728,
0.7479231953620911,
1.3293410539627075,
0.5015191435813904,
-1.9729973077774048,
0.8639508485794067,
-1.046876072883606,
0.8066943883895874,
0.7216955423355103,
0.7534648180007935,
0.24749137461185455,
0.8610758185386658,
-1.2493677139282227,
-1.1948562860488892,
-0.7023734450340271,
-0.7412791848182678,
1.9446511268615723,
-0.3756638169288635,
0.6111761331558228,
-0.1722007542848587,
-1.3041479587554932,
-0.12023280560970306,
0.7737225890159607,
0.3782362639904022,
-0.42630478739738464,
0.8385655879974365,
-0.7596672773361206,
-1.013422966003418,
-1.271820068359375,
-0.45441949367523193,
-1.027427315711975,
-0.8971676826477051,
1.0302777290344238,
0.7518962025642395,
0.37453165650367737,
1.911233901977539,
0.6064969897270203,
0.360416442155838,
-2.5875658988952637,
0.8573187589645386,
0.25349026918411255,
0.0017850520089268684,
0.88031405210495,
0.3351094424724579,
1.013362169265747,
0.08038733899593353,
0.48170551657676697,
-2.4376301765441895,
2.2811050415039062,
-0.2758536636829376,
0.750380277633667,
-0.1446508914232254,
-0.16775846481323242,
1.1817750930786133,
0.6899407505989075,
0.5437600016593933,
-1.0464016199111938,
0.7265020608901978,
-0.45878973603248596,
1.1934194564819336,
0.8338658809661865,
-0.7647309303283691,
-0.04833375662565231,
1.3556195497512817,
0.42959359288215637,
-0.5569979548454285,
-0.9905039668083191,
-0.9357882142066956,
0.9210036396980286,
1.6617097854614258,
0.009832771494984627,
-0.0004981383681297302,
0.7997980713844299,
0.6579847931861877,
-1.2018711566925049,
0.1176617443561554,
-0.6931918263435364,
-0.7740111947059631,
1.6427363157272339,
2.057244300842285,
-0.09164329618215561,
-0.12726840376853943,
-0.6695478558540344,
-1.3070094585418701,
0.7277992963790894,
-0.08163747191429138,
0.05332981050014496,
0.5562216639518738,
-0.6194726228713989,
0.9955489635467529,
0.7205898761749268,
0.9740910530090332,
0.04681031405925751,
0.2985070049762726,
0.4486570954322815,
-0.32615771889686584,
-1.2291791439056396,
-0.29878106713294983,
-1.1296507120132446,
-2.5430939197540283,
0.4144507646560669,
-0.18277445435523987,
-1.5958013534545898,
0.07533370703458786,
-1.0211113691329956,
0.9320499897003174,
-0.6025035381317139,
-1.1760035753250122,
-1.4983001947402954,
0.3096970319747925,
-0.10693743079900742,
0.9469923377037048,
-1.564069390296936,
-0.18629106879234314,
1.140332818031311,
0.8487057089805603,
-0.6391581296920776,
1.0294865369796753,
0.1950739175081253,
1.0369997024536133,
0.7672861218452454,
-0.3794098198413849,
0.491865873336792,
0.09553126990795135,
-1.3396711349487305,
0.46818655729293823,
1.1917434930801392,
0.1814822554588318,
1.4271436929702759,
-0.4482775628566742,
0.048485174775123596,
0.425968199968338,
-0.6871094703674316,
-0.3576292395591736,
-0.4045063555240631,
0.7005497813224792,
0.00545284990221262,
-0.8251076936721802,
-0.09247176349163055,
-0.15892843902111053,
-0.3621979057788849,
0.14386941492557526,
-1.5528253316879272,
-0.24126610159873962,
-0.4828464984893799,
-0.5670272707939148,
-1.3185169696807861,
0.03622395545244217,
1.496700644493103,
-0.7337443232536316,
-0.23910628259181976,
0.4793666899204254,
0.4630572497844696,
0.5795369148254395,
0.7089623808860779,
-0.7202645540237427,
-0.19242724776268005,
-0.25065910816192627,
-0.27588897943496704,
0.29769158363342285,
1.303963541984558,
-0.07046199589967728,
-0.9256559014320374,
0.715556800365448,
-0.41642171144485474,
0.10467398166656494,
1.9542019367218018,
0.13130967319011688,
-0.7433947324752808,
0.3360285460948944,
-0.7494069337844849,
1.9367225170135498,
1.7563600540161133,
1.3068369626998901,
-0.09979432821273804,
-0.9209871888160706,
0.671977162361145,
-0.2697557508945465,
-0.35997751355171204,
0.8803810477256775,
0.4299199879169464,
-0.2712794244289398,
-1.3738963603973389,
0.7365728616714478,
1.0784260034561157,
-0.8760946393013,
-0.7767922282218933,
0.10102429240942001,
-0.7738351821899414,
1.179819107055664,
0.5483776926994324,
0.41235798597335815,
0.31265562772750854,
1.6890138387680054,
0.7628453969955444,
-0.5127447247505188,
0.5408228635787964,
0.5918804407119751,
-0.2762977182865143,
-2.097700357437134,
-1.0678837299346924,
0.28587615489959717,
-0.5618847608566284,
-1.588115930557251,
1.3597743511199951,
-1.1358610391616821,
-0.9640777111053467,
0.4681602716445923,
0.0556073859333992,
1.3098827600479126,
0.37208884954452515,
1.6064475774765015,
2.1079070568084717,
0.8352544903755188,
0.41529640555381775,
1.2977845668792725,
-0.10693956911563873,
-0.43060553073883057,
1.854380488395691,
-0.46055012941360474,
0.5449267625808716,
1.1261301040649414,
-0.39232704043388367,
-1.0718042850494385,
-0.7278107404708862,
-1.0982589721679688,
-0.6416958570480347,
1.1288862228393555,
0.079278863966465,
-1.0570790767669678,
0.28658756613731384,
1.519528865814209,
0.12866947054862976,
-0.22428634762763977,
0.5767569541931152,
0.39240822196006775,
-0.7362830638885498,
-0.13311517238616943,
-0.9107968211174011,
0.5332255363464355,
-0.2521783113479614,
-0.41182273626327515,
0.3281826078891754,
0.5191070437431335,
1.2885864973068237,
-0.1373862475156784,
0.11996304988861084,
1.1264735460281372,
-1.4937463998794556,
1.4115911722183228,
-0.6461967825889587,
0.27363550662994385,
-2.372149705886841,
1.3548798561096191,
-0.6063176989555359,
2.0151004791259766,
-2.6567184925079346,
0.43088966608047485,
-0.6419153213500977,
-0.5588278770446777,
0.34621715545654297,
-0.3283556401729584,
0.11830656230449677,
-0.127489373087883,
-1.0813065767288208,
-0.023836638778448105,
-0.6673757433891296,
0.6107436418533325,
1.1158207654953003,
1.3569566011428833,
-1.0950884819030762,
-0.18957599997520447,
-1.6490236520767212,
-0.22875045239925385,
-0.8570737242698669,
0.32017093896865845,
-1.9727818965911865,
-0.1272837072610855,
-1.9496076107025146,
-2.385145425796509,
-1.2846928834915161,
-0.727313220500946,
1.0775407552719116,
0.20066072046756744,
-0.8983225226402283,
1.239743709564209,
-0.3130185306072235,
-1.8153026103973389,
1.0562738180160522,
-2.2023282051086426
] |
https://github.com/huggingface/datasets/issues/5244 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script | I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks! | ### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration. | 420 | 24 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks! | [
-1.2871372699737549,
-1.0295554399490356,
-0.7506784200668335,
1.4099737405776978,
-0.1478637158870697,
-1.2725073099136353,
0.07967992126941681,
-1.041844367980957,
1.7194477319717407,
-0.8595155477523804,
0.2777249217033386,
-1.6549432277679443,
0.10149496793746948,
-0.6099439859390259,
-0.7230603098869324,
-0.892082154750824,
-0.4184354841709137,
-0.853884220123291,
1.0346211194992065,
2.4476938247680664,
1.1217504739761353,
-1.463564157485962,
2.688389539718628,
0.7147979140281677,
-0.15526416897773743,
-0.9896577000617981,
0.4740279018878937,
0.04091568663716316,
-1.2596355676651,
-0.49075838923454285,
-0.9710143208503723,
-0.09437517076730728,
-0.5417301058769226,
-0.38995495438575745,
-0.055304672569036484,
0.451856404542923,
-0.2170986384153366,
-0.3936203122138977,
-0.587410032749176,
-0.7123588919639587,
0.4264114797115326,
-0.33607807755470276,
0.9657280445098877,
-0.405040979385376,
1.913720726966858,
-0.5698539018630981,
0.42386820912361145,
0.6505023241043091,
1.3270797729492188,
0.21822594106197357,
-0.0415138341486454,
0.16884693503379822,
0.3338201642036438,
-0.07636205852031708,
0.5268246531486511,
1.077318787574768,
0.5385042428970337,
0.5772530436515808,
0.634931743144989,
-2.1908297538757324,
1.4195388555526733,
-0.9704695343971252,
0.38502684235572815,
1.4090847969055176,
-0.9074519276618958,
0.4062870740890503,
-1.6922281980514526,
-0.033536557108163834,
0.6867700815200806,
-2.2785425186157227,
0.30064985156059265,
-1.2814054489135742,
-0.5589327812194824,
0.9270444512367249,
0.26725703477859497,
-1.2292890548706055,
0.19430789351463318,
-0.49787241220474243,
1.0984631776809692,
0.5415116548538208,
0.9610755443572998,
-1.6704820394515991,
0.0063879480585455894,
-0.17732489109039307,
0.07348402589559555,
-1.3759127855300903,
-1.578939437866211,
0.5943863987922668,
0.6763690114021301,
0.6223626136779785,
0.009388209320604801,
0.9381851553916931,
-1.0829217433929443,
0.8565564751625061,
-0.937369704246521,
-1.5402752161026,
-1.3741285800933838,
-2.4338390827178955,
-2.4025444984436035,
0.8020238876342773,
-0.43065282702445984,
-0.5670579671859741,
1.9944218397140503,
-1.0738393068313599,
-1.7340439558029175,
1.2486108541488647,
0.18809320032596588,
0.06423687189817429,
2.4491686820983887,
0.13675963878631592,
-0.6968953013420105,
0.45668601989746094,
-0.7605193853378296,
0.8573554754257202,
-0.5029696226119995,
1.350399374961853,
0.49607864022254944,
-0.955467700958252,
1.613187313079834,
-0.5493572354316711,
0.5116140246391296,
-0.6260100603103638,
-0.6366878747940063,
-0.842537522315979,
0.3601326048374176,
1.8754898309707642,
-0.25790533423423767,
1.6611988544464111,
-0.4408392012119293,
-1.6139237880706787,
-1.6601784229278564,
0.8714966177940369,
0.38774573802948,
-0.921830415725708,
0.09441117942333221,
-0.4274977743625641,
0.1305686980485916,
-0.13870351016521454,
1.1220412254333496,
1.254088044166565,
0.6903531551361084,
-0.384748637676239,
-0.8068293333053589,
0.17841069400310516,
-0.12064648419618607,
-0.6950413584709167,
-1.7904016971588135,
-0.27000555396080017,
0.1261667162179947,
0.61211097240448,
-1.1806050539016724,
1.8108494281768799,
0.8755796551704407,
1.977487564086914,
0.9883865118026733,
-0.23940390348434448,
1.4555847644805908,
0.09052348136901855,
1.8133783340454102,
-0.6062240600585938,
0.700592577457428,
-0.2543337643146515,
-1.071256160736084,
0.7505828738212585,
-0.44091352820396423,
-1.9271442890167236,
-0.7212650775909424,
-0.8009005784988403,
-0.15641029179096222,
-0.7340467572212219,
0.936041533946991,
-0.3032499849796295,
-1.4384291172027588,
0.2680172324180603,
-0.6936983466148376,
0.33735141158103943,
-1.2035608291625977,
0.32071614265441895,
0.7690216302871704,
-0.5695485472679138,
-0.009256226941943169,
-0.28916406631469727,
-1.3051466941833496,
-0.40101945400238037,
0.42664635181427,
1.8863167762756348,
-0.6318404674530029,
0.8514724373817444,
0.9382297992706299,
-0.5499438643455505,
-0.005220208782702684,
0.3158615231513977,
-0.21837933361530304,
0.8346301913261414,
-1.0526795387268066,
-0.3485713601112366,
1.2160758972167969,
-0.36562660336494446,
-0.5783114433288574,
1.4808944463729858,
0.730013370513916,
-0.9734854698181152,
-0.1531379222869873,
-0.23277731239795685,
-0.8285318613052368,
-0.10752718895673752,
-1.5922586917877197,
-0.09930134564638138,
0.38676345348358154,
-1.506378173828125,
-0.3981242775917053,
-0.1611863523721695,
1.2040308713912964,
-0.16115687787532806,
1.4214617013931274,
-0.4548640251159668,
-0.1798865795135498,
-0.2787199020385742,
-0.39753592014312744,
0.24045735597610474,
-0.28350088000297546,
-0.5040966272354126,
0.05422704294323921,
-0.8119297027587891,
0.31405705213546753,
1.5026254653930664,
0.37789949774742126,
0.14958439767360687,
0.4826579988002777,
1.0996674299240112,
0.31268444657325745,
-0.061935361474752426,
-0.7554519176483154,
-1.5676771402359009,
1.9451780319213867,
-1.420966625213623,
1.9898253679275513,
0.8287467956542969,
-0.07491681724786758,
-1.8633583784103394,
-1.802876353263855,
1.2463171482086182,
1.1509034633636475,
2.2125184535980225,
0.49288156628608704,
0.30734148621559143,
-0.8594330549240112,
-0.6855115294456482,
0.3511311113834381,
-1.0214576721191406,
-0.6949477791786194,
0.08576163649559021,
2.244086265563965,
1.7696000337600708,
-0.49352312088012695,
-0.18360918760299683,
-0.9933730959892273,
1.4452341794967651,
-0.21711233258247375,
0.23975206911563873,
2.0328760147094727,
-0.3036741614341736,
-1.0476986169815063,
1.250197172164917,
-2.4838311672210693,
0.17953360080718994,
2.024390935897827,
0.3245951533317566,
0.08849918842315674,
-1.411136269569397,
-0.6530811786651611,
-0.3781777620315552,
-0.2846141457557678,
-1.227609395980835,
0.5842422842979431,
-0.3439723253250122,
-0.741766095161438,
-1.4805269241333008,
0.1773674339056015,
-1.0192173719406128,
-1.6694680452346802,
0.31619855761528015,
1.8496347665786743,
2.0498058795928955,
-0.7175228595733643,
1.4683880805969238,
-0.1788139045238495,
0.17027094960212708,
1.2862231731414795,
1.2302111387252808,
3.1275854110717773,
1.8623825311660767,
-1.2005038261413574,
0.6839437484741211,
-0.1108357161283493,
-0.42350277304649353,
1.1784018278121948,
-1.1560181379318237,
1.325293779373169,
-0.13533927500247955,
-1.220270037651062,
-1.2978910207748413,
1.0004279613494873,
0.5154072642326355,
0.0684351921081543,
-0.5362673997879028,
1.3507039546966553,
0.07469846308231354,
1.3518972396850586,
0.5617614388465881,
-0.5086364150047302,
0.5263851881027222,
-0.3842327296733856,
-0.6881850361824036,
1.5892137289047241,
0.17205511033535004,
-1.5347379446029663,
-2.18687105178833,
-0.24879205226898193,
-0.7504366636276245,
-0.04977952688932419,
-0.5847676992416382,
-1.0560643672943115,
1.6569215059280396,
0.42426928877830505,
-1.258905053138733,
-0.26683253049850464,
-0.2933211922645569,
-0.5625796914100647,
2.7111268043518066,
-1.291739821434021,
-0.22861826419830322,
-0.9834648966789246,
-0.5581915974617004,
1.6330469846725464,
-1.3146299123764038,
-0.22131241858005524,
-1.0749669075012207,
-0.6711882948875427,
-1.2878696918487549,
-0.4299517571926117,
-0.11653883755207062,
-0.8904562592506409,
0.8199301958084106,
0.21123318374156952,
-1.1261093616485596,
-0.36857855319976807,
-0.8446559906005859,
0.914017379283905,
-0.07010488957166672,
0.3793039619922638,
1.8358891010284424,
0.2566210925579071,
-0.4912831485271454,
0.7653896808624268,
1.1775895357131958,
0.6178048849105835,
-0.7018439173698425,
0.08340897411108017,
-0.5932631492614746,
0.43177950382232666,
-1.3111766576766968,
0.2744390070438385,
-2.976392984390259,
0.609784722328186,
-0.12678006291389465,
-0.2300727665424347,
-0.04264009743928909,
-1.3960264921188354,
1.0779132843017578,
2.5469634532928467,
-1.1774067878723145,
0.4874252378940582,
0.3492026627063751,
1.242396354675293,
-1.6590003967285156,
0.4925778806209564,
-0.35793012380599976,
2.100858449935913,
0.2449200600385666,
1.1782976388931274,
-0.5764521360397339,
-2.3055262565612793,
0.6515114307403564,
-1.1977931261062622,
-1.1146808862686157,
0.7586402893066406,
-0.9664170145988464,
0.1530570685863495,
-1.4745935201644897,
-0.21568363904953003,
-0.8877449035644531,
-1.2972732782363892,
0.6546934843063354,
0.18568094074726105,
0.38918912410736084,
-0.5795618295669556,
0.28975415229797363,
-2.277881145477295,
-1.310542345046997,
-0.2258204221725464,
-0.9174962043762207,
0.511012077331543,
-0.4422593116760254,
0.6175978183746338,
-0.14762645959854126,
0.11428230255842209,
0.2990381419658661,
1.496256947517395,
3.440217971801758,
0.25285398960113525,
0.39150670170783997,
-0.09220654517412186,
-0.884935200214386,
1.3434154987335205,
0.8440099954605103,
-0.13802383840084076,
-0.5617415904998779,
-1.002512812614441,
1.408325433731079,
1.9089118242263794,
0.9153714776039124,
0.07136788964271545,
-0.7019975781440735,
-0.6856201887130737,
-0.0055931247770786285,
0.18079082667827606,
0.39937692880630493,
0.9805225133895874,
0.008252806030213833,
0.14996711909770966,
1.4442741870880127,
1.243062973022461,
-0.3837903141975403,
0.3953995406627655,
-0.8737728595733643,
-0.47472691535949707,
0.47210752964019775,
0.33225318789482117,
-0.09188365191221237,
0.4040316343307495,
-0.9837803840637207,
-0.1707814633846283,
-0.4008595645427704,
-0.9185072779655457,
-0.6399604082107544,
-0.41474857926368713,
-0.35709407925605774,
1.646148443222046,
0.22235207259655,
-0.5841242074966431,
0.04610637202858925,
-0.7157083749771118,
-0.16936425864696503,
-1.141185998916626,
0.2257169634103775,
-0.005320096388459206,
-0.1565714180469513,
-0.07601536810398102,
1.8506754636764526,
-0.9295575618743896,
-2.0850584506988525,
0.21694713830947876,
0.2210402935743332,
-0.3321060836315155,
0.12906765937805176,
1.6714107990264893,
0.3867809474468231,
1.4456989765167236,
1.3529062271118164,
0.9010796546936035,
-0.6775633692741394,
-1.3372819423675537,
0.8198920488357544,
0.9172531962394714,
-1.438979148864746,
0.8562772274017334,
-0.02918027713894844,
-0.6255608201026917,
0.7391603589057922,
1.2352328300476074,
0.40465742349624634,
-1.8992066383361816,
0.8330916166305542,
-1.0364612340927124,
0.8147493600845337,
0.7324671745300293,
0.7073630690574646,
0.2814987897872925,
0.9367159008979797,
-1.2509651184082031,
-1.2158676385879517,
-0.7794190645217896,
-0.6620638966560364,
1.9583740234375,
-0.29832348227500916,
0.6485438346862793,
-0.13163051009178162,
-1.2657976150512695,
-0.05197152495384216,
0.7501429319381714,
0.3819095492362976,
-0.31185367703437805,
0.830311119556427,
-0.7495168447494507,
-1.0040302276611328,
-1.3210560083389282,
-0.4422034025192261,
-1.0089162588119507,
-0.9030502438545227,
1.0265254974365234,
0.774592936038971,
0.283379465341568,
1.8860427141189575,
0.5767363905906677,
0.34206873178482056,
-2.5967371463775635,
0.8599024415016174,
0.2461216002702713,
-0.02154417708516121,
0.8265312314033508,
0.32213538885116577,
1.069491982460022,
0.1116102859377861,
0.4420420527458191,
-2.4874699115753174,
2.2527012825012207,
-0.3321512043476105,
0.7555715441703796,
-0.15176405012607574,
-0.12635307013988495,
1.2043027877807617,
0.6932420134544373,
0.532662034034729,
-1.0475574731826782,
0.7174711227416992,
-0.4792707860469818,
1.2344609498977661,
0.9376651048660278,
-0.7717366218566895,
-0.06571538746356964,
1.3671571016311646,
0.4047990143299103,
-0.541692316532135,
-0.9659188389778137,
-0.8585922718048096,
0.9000734686851501,
1.615452527999878,
0.03518557921051979,
-0.0143168605864048,
0.7837724089622498,
0.6293135285377502,
-1.1827616691589355,
0.1322105973958969,
-0.7180497646331787,
-0.8301205039024353,
1.642613410949707,
2.0743749141693115,
-0.03605371341109276,
-0.07144001871347427,
-0.6651121973991394,
-1.3333499431610107,
0.7239616513252258,
-0.04898437112569809,
0.05119073763489723,
0.5948920845985413,
-0.6237355470657349,
0.959347665309906,
0.7344419360160828,
0.9345105290412903,
0.09495225548744202,
0.308584600687027,
0.4613713026046753,
-0.2801133394241333,
-1.2528678178787231,
-0.31227368116378784,
-1.232659101486206,
-2.497384548187256,
0.3934977948665619,
-0.30086633563041687,
-1.5887137651443481,
0.1094888225197792,
-1.0425362586975098,
0.960023820400238,
-0.6186664700508118,
-1.1606404781341553,
-1.5317573547363281,
0.2905724048614502,
-0.12099072337150574,
0.9289572238922119,
-1.4992414712905884,
-0.12501543760299683,
1.1231220960617065,
0.8282642960548401,
-0.6123077273368835,
1.0676980018615723,
0.23575159907341003,
1.0498008728027344,
0.7657678723335266,
-0.4391952157020569,
0.5211642980575562,
0.06964342296123505,
-1.3727468252182007,
0.4986829459667206,
1.1696381568908691,
0.15919353067874908,
1.4671471118927002,
-0.448914110660553,
0.030610762536525726,
0.4417944550514221,
-0.6962887644767761,
-0.38446807861328125,
-0.41634050011634827,
0.7251858115196228,
0.05565907433629036,
-0.8129096031188965,
-0.04493444412946701,
-0.16522064805030823,
-0.3693050742149353,
0.17620791494846344,
-1.5960664749145508,
-0.24730107188224792,
-0.49781152606010437,
-0.6083393692970276,
-1.3387945890426636,
0.05292808637022972,
1.5037041902542114,
-0.752703070640564,
-0.18082639575004578,
0.4865039885044098,
0.510638952255249,
0.556347668170929,
0.7173405289649963,
-0.682311475276947,
-0.1922592967748642,
-0.25649136304855347,
-0.22507768869400024,
0.3175714313983917,
1.2347674369812012,
-0.12364982813596725,
-0.9651988744735718,
0.6739220023155212,
-0.4126345217227936,
0.07672583311796188,
1.9248926639556885,
0.14671966433525085,
-0.8084468245506287,
0.33399584889411926,
-0.7509123682975769,
1.963856816291809,
1.7190181016921997,
1.2989351749420166,
-0.04393446445465088,
-0.8988333344459534,
0.5966999530792236,
-0.23946566879749298,
-0.34412989020347595,
0.8756195902824402,
0.5034488439559937,
-0.18415190279483795,
-1.3726977109909058,
0.7289558053016663,
1.0208816528320312,
-0.9060291051864624,
-0.8407071828842163,
0.061766158789396286,
-0.7681713104248047,
1.1466220617294312,
0.5693239569664001,
0.48730289936065674,
0.32240378856658936,
1.760250210762024,
0.7054041028022766,
-0.5736812353134155,
0.5225918292999268,
0.5555815696716309,
-0.20759059488773346,
-2.1459827423095703,
-1.051633358001709,
0.2757856547832489,
-0.5349646806716919,
-1.5379154682159424,
1.3782134056091309,
-1.1073194742202759,
-0.8833301067352295,
0.46268099546432495,
0.0737321749329567,
1.2906653881072998,
0.3182723820209503,
1.6080154180526733,
2.1340911388397217,
0.8639577031135559,
0.3456275761127472,
1.3872509002685547,
-0.1473366916179657,
-0.41706183552742004,
1.859359622001648,
-0.4155711233615875,
0.5446323752403259,
1.0984596014022827,
-0.4564933478832245,
-1.0331084728240967,
-0.7282203435897827,
-1.0901226997375488,
-0.5820266008377075,
1.048028826713562,
0.100359246134758,
-1.048709511756897,
0.27708131074905396,
1.514768362045288,
0.02860380709171295,
-0.26596078276634216,
0.5341899394989014,
0.4007340669631958,
-0.7015162706375122,
-0.10790573060512543,
-0.9810763001441956,
0.5269036889076233,
-0.2699747681617737,
-0.4073256552219391,
0.30498674511909485,
0.5260942578315735,
1.243369698524475,
-0.13141193985939026,
0.13046230375766754,
1.224373698234558,
-1.4831326007843018,
1.3378149271011353,
-0.6127460598945618,
0.22455108165740967,
-2.3275954723358154,
1.3462681770324707,
-0.6316128373146057,
1.9910606145858765,
-2.7133655548095703,
0.4308554530143738,
-0.6546947360038757,
-0.562910258769989,
0.41125670075416565,
-0.35292330384254456,
0.15963920950889587,
-0.15051093697547913,
-1.0616073608398438,
-0.01257718913257122,
-0.7063586711883545,
0.5814868211746216,
1.1156141757965088,
1.302187442779541,
-1.0820428133010864,
-0.19789202511310577,
-1.638466238975525,
-0.18898038566112518,
-0.8678371906280518,
0.3000430464744568,
-2.0670502185821533,
-0.11093353480100632,
-1.963882327079773,
-2.3244423866271973,
-1.3230136632919312,
-0.7275548577308655,
1.0796741247177124,
0.1439979076385498,
-0.909268856048584,
1.227453351020813,
-0.26441100239753723,
-1.7525678873062134,
1.0219552516937256,
-2.187241792678833
] |
https://github.com/huggingface/datasets/issues/5244 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script | > I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks!
I published it here:
https://github.com/Hubert-Bonisseur/private-dataset-hub
I modified the names of a lot of functions for privacy and I don't have time to test it again so you may get import errors, but you have the code. The custom_load_dataset is the function you are interested in I think.
It relies a lot on patching, if you find a better way to do this, I'd be interested. | ### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration. | 420 | 90 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
> I would be a big fan of this feature! @Hubert-Bonisseur if this doesn't become a supported feature, would you mind sharing your code? Thanks!
I published it here:
https://github.com/Hubert-Bonisseur/private-dataset-hub
I modified the names of a lot of functions for privacy and I don't have time to test it again so you may get import errors, but you have the code. The custom_load_dataset is the function you are interested in I think.
It relies a lot on patching, if you find a better way to do this, I'd be interested. | [
-1.2995222806930542,
-1.026015043258667,
-0.75941002368927,
1.4042134284973145,
-0.16119647026062012,
-1.2565137147903442,
0.06948420405387878,
-1.039170503616333,
1.7190839052200317,
-0.8266986608505249,
0.3035118281841278,
-1.6463114023208618,
0.09327726066112518,
-0.5807620286941528,
-0.7253777980804443,
-0.8983027935028076,
-0.41288086771965027,
-0.8684262037277222,
1.0644288063049316,
2.4718921184539795,
1.1013262271881104,
-1.4904803037643433,
2.7382586002349854,
0.651528000831604,
-0.15428902208805084,
-1.0028356313705444,
0.483189195394516,
0.005283276550471783,
-1.2646684646606445,
-0.4850616157054901,
-0.9807453155517578,
-0.06377117335796356,
-0.5601191520690918,
-0.42165103554725647,
-0.08085495233535767,
0.4531901180744171,
-0.20464368164539337,
-0.40010011196136475,
-0.5612887144088745,
-0.726737380027771,
0.4524051249027252,
-0.3316957354545593,
0.947045087814331,
-0.35483407974243164,
1.894659161567688,
-0.488385945558548,
0.4325891435146332,
0.6864330768585205,
1.2944080829620361,
0.20774894952774048,
-0.007908695377409458,
0.19471073150634766,
0.34247326850891113,
-0.0740571990609169,
0.5388882160186768,
1.1271576881408691,
0.568432092666626,
0.5551683902740479,
0.630122184753418,
-2.1964049339294434,
1.4379689693450928,
-0.9791804552078247,
0.42155933380126953,
1.3819206953048706,
-0.9026528596878052,
0.4008498191833496,
-1.7150768041610718,
-0.016452625393867493,
0.6492911577224731,
-2.25826358795166,
0.2576979398727417,
-1.2920325994491577,
-0.5642164945602417,
0.9663587808609009,
0.24824514985084534,
-1.2201550006866455,
0.2129656821489334,
-0.4658915400505066,
1.120496153831482,
0.5326317548751831,
1.0331073999404907,
-1.6727800369262695,
0.016916047781705856,
-0.17597989737987518,
0.08584876358509064,
-1.3260077238082886,
-1.6035569906234741,
0.5349569320678711,
0.6776810884475708,
0.5910046100616455,
-0.03293097764253616,
0.9940524101257324,
-1.0511269569396973,
0.8462154865264893,
-0.9033297300338745,
-1.573921799659729,
-1.3791028261184692,
-2.4079864025115967,
-2.4142088890075684,
0.8154717683792114,
-0.466309517621994,
-0.5242099761962891,
2.0148959159851074,
-1.0818406343460083,
-1.71892249584198,
1.236172080039978,
0.23952868580818176,
0.061671726405620575,
2.4300777912139893,
0.144649475812912,
-0.7337021827697754,
0.48259595036506653,
-0.7913227081298828,
0.8658298254013062,
-0.43351686000823975,
1.3387759923934937,
0.5269477367401123,
-0.9298930168151855,
1.5801589488983154,
-0.49803540110588074,
0.5076491832733154,
-0.6204705238342285,
-0.5927873849868774,
-0.7938470840454102,
0.3474526107311249,
1.8768956661224365,
-0.303008496761322,
1.6694133281707764,
-0.45797497034072876,
-1.6275564432144165,
-1.6496204137802124,
0.8894475698471069,
0.40635254979133606,
-0.9173678159713745,
0.0839729830622673,
-0.4124559760093689,
0.10092900693416595,
-0.09640678763389587,
1.1002415418624878,
1.2717562913894653,
0.7133715152740479,
-0.3601472079753876,
-0.8577139377593994,
0.18405432999134064,
-0.1302991509437561,
-0.6636900901794434,
-1.770914912223816,
-0.2695637345314026,
0.12599493563175201,
0.6042370796203613,
-1.1629385948181152,
1.774596095085144,
0.9028517007827759,
1.970981478691101,
0.9973205327987671,
-0.28612497448921204,
1.4749033451080322,
0.12187555432319641,
1.8162436485290527,
-0.6005465984344482,
0.648040771484375,
-0.272038072347641,
-1.0974100828170776,
0.7715065479278564,
-0.40331384539604187,
-1.9229527711868286,
-0.7125062942504883,
-0.8222793340682983,
-0.1684037744998932,
-0.7474168539047241,
0.8957539796829224,
-0.2882327735424042,
-1.452303409576416,
0.2751638889312744,
-0.6821194887161255,
0.27295857667922974,
-1.1992714405059814,
0.3186526596546173,
0.7623175382614136,
-0.6001943349838257,
0.024393383413553238,
-0.28642216324806213,
-1.2862509489059448,
-0.42387038469314575,
0.4505594074726105,
1.8597222566604614,
-0.6167607307434082,
0.8742289543151855,
0.9802278280258179,
-0.5990761518478394,
-0.020139198750257492,
0.32799744606018066,
-0.23432491719722748,
0.8341079950332642,
-1.06782865524292,
-0.36908045411109924,
1.1522867679595947,
-0.3315274715423584,
-0.5651645660400391,
1.4677081108093262,
0.7214342355728149,
-0.9737929105758667,
-0.18193140625953674,
-0.1920272260904312,
-0.8344839811325073,
-0.08137176185846329,
-1.557611107826233,
-0.13612499833106995,
0.3387265205383301,
-1.5572210550308228,
-0.4539923071861267,
-0.1922644078731537,
1.181428074836731,
-0.14037753641605377,
1.440046787261963,
-0.4267290234565735,
-0.1553758680820465,
-0.3348514437675476,
-0.4252959191799164,
0.22514431178569794,
-0.24522720277309418,
-0.4708786606788635,
0.07588769495487213,
-0.8445929288864136,
0.31299901008605957,
1.50409734249115,
0.35627979040145874,
0.10076351463794708,
0.4394938349723816,
1.1152011156082153,
0.3475901186466217,
-0.04506424814462662,
-0.7686433792114258,
-1.5286450386047363,
1.9598618745803833,
-1.4641848802566528,
1.9686518907546997,
0.8465369939804077,
-0.05045357719063759,
-1.8658806085586548,
-1.8025208711624146,
1.2719277143478394,
1.1460798978805542,
2.276093006134033,
0.4882257282733917,
0.31576892733573914,
-0.8500967025756836,
-0.6710472106933594,
0.3791256844997406,
-1.017743706703186,
-0.7450054883956909,
0.098149374127388,
2.2922425270080566,
1.764504313468933,
-0.48054730892181396,
-0.19905811548233032,
-0.9764069318771362,
1.4574233293533325,
-0.16208423674106598,
0.20461788773536682,
1.9993976354599,
-0.2404005378484726,
-1.0701849460601807,
1.2610830068588257,
-2.448981761932373,
0.16834235191345215,
2.0122873783111572,
0.32304736971855164,
0.08544548600912094,
-1.4187102317810059,
-0.6222991943359375,
-0.29991990327835083,
-0.337788462638855,
-1.2593539953231812,
0.5926059484481812,
-0.3082747757434845,
-0.7979049682617188,
-1.5097160339355469,
0.16370061039924622,
-1.061903953552246,
-1.6718544960021973,
0.30801650881767273,
1.841870665550232,
2.0789787769317627,
-0.7619068622589111,
1.5058610439300537,
-0.18982554972171783,
0.17051909863948822,
1.236294150352478,
1.2075936794281006,
3.1357624530792236,
1.8982385396957397,
-1.2103184461593628,
0.6089082956314087,
-0.14017553627490997,
-0.44151052832603455,
1.173341989517212,
-1.139068841934204,
1.3229109048843384,
-0.15347309410572052,
-1.2072126865386963,
-1.2646578550338745,
1.0493669509887695,
0.5431135892868042,
0.053830355405807495,
-0.4965193569660187,
1.280086636543274,
0.08105649054050446,
1.311806321144104,
0.5383775234222412,
-0.49656006693840027,
0.5456993579864502,
-0.4054712653160095,
-0.6761895418167114,
1.5947260856628418,
0.16764795780181885,
-1.4979439973831177,
-2.1552605628967285,
-0.26650112867355347,
-0.7684991359710693,
0.0026586325839161873,
-0.5933609008789062,
-1.0697736740112305,
1.5580182075500488,
0.43489938974380493,
-1.2872872352600098,
-0.2968917489051819,
-0.3716495633125305,
-0.5982438325881958,
2.6400656700134277,
-1.2810136079788208,
-0.20705431699752808,
-0.9333906173706055,
-0.562505841255188,
1.5831758975982666,
-1.3072041273117065,
-0.21464669704437256,
-1.0637239217758179,
-0.6712360382080078,
-1.2787888050079346,
-0.45845019817352295,
-0.10566207766532898,
-0.8625411987304688,
0.7720204591751099,
0.2016671895980835,
-1.0972557067871094,
-0.3086143732070923,
-0.8343658447265625,
0.887621283531189,
-0.08928711712360382,
0.3222871720790863,
1.8023077249526978,
0.22954604029655457,
-0.4569745361804962,
0.7619028091430664,
1.1712054014205933,
0.609627366065979,
-0.6880452632904053,
0.12080010771751404,
-0.6305782794952393,
0.40524712204933167,
-1.26941978931427,
0.2613602876663208,
-2.9662063121795654,
0.6548939943313599,
-0.08918759971857071,
-0.19407261908054352,
-0.04481111094355583,
-1.3701852560043335,
1.0906939506530762,
2.5471150875091553,
-1.185570478439331,
0.5099632740020752,
0.38180819153785706,
1.2313612699508667,
-1.6553516387939453,
0.44414830207824707,
-0.4018864035606384,
2.111309051513672,
0.19786404073238373,
1.18656325340271,
-0.5695890188217163,
-2.3603107929229736,
0.5995639562606812,
-1.1966310739517212,
-1.1090755462646484,
0.7426475286483765,
-0.9578423500061035,
0.08444754779338837,
-1.4517652988433838,
-0.2448386400938034,
-0.882327675819397,
-1.2615817785263062,
0.6579190492630005,
0.1769455075263977,
0.42457830905914307,
-0.6415718793869019,
0.3083493113517761,
-2.271244525909424,
-1.3351026773452759,
-0.22200694680213928,
-0.90782630443573,
0.5094653367996216,
-0.4421021640300751,
0.6112099885940552,
-0.11646031588315964,
0.09437905997037888,
0.32417580485343933,
1.4480623006820679,
3.4516992568969727,
0.2575843930244446,
0.39508527517318726,
-0.08524979650974274,
-0.9298802614212036,
1.3614531755447388,
0.869051456451416,
-0.15377116203308105,
-0.5649241209030151,
-1.0286978483200073,
1.365767002105713,
1.9470736980438232,
0.9393439292907715,
0.08411452919244766,
-0.7281248569488525,
-0.6969701051712036,
0.014594685286283493,
0.17461323738098145,
0.42891383171081543,
1.0030211210250854,
0.014735201373696327,
0.19089391827583313,
1.4422078132629395,
1.2066824436187744,
-0.3908931314945221,
0.3773019313812256,
-0.8583036661148071,
-0.45376870036125183,
0.45612749457359314,
0.28887879848480225,
-0.09732645750045776,
0.4157729148864746,
-0.9864944219589233,
-0.17809124290943146,
-0.4256768524646759,
-0.9304885864257812,
-0.6388951539993286,
-0.3852028548717499,
-0.29897451400756836,
1.6511883735656738,
0.1865309625864029,
-0.5726512670516968,
0.07740757614374161,
-0.7281981706619263,
-0.18047523498535156,
-1.1551258563995361,
0.2065657377243042,
-0.03914928063750267,
-0.14521297812461853,
-0.06660813838243484,
1.8577852249145508,
-0.9077357053756714,
-2.112060070037842,
0.2111833095550537,
0.23469538986682892,
-0.32715559005737305,
0.14208795130252838,
1.6769580841064453,
0.4062446057796478,
1.4416738748550415,
1.3551896810531616,
0.9701453447341919,
-0.6227878332138062,
-1.3140766620635986,
0.819830060005188,
0.9199832677841187,
-1.3664982318878174,
0.8028026819229126,
-0.0595661886036396,
-0.5939193964004517,
0.7731367349624634,
1.2302309274673462,
0.3977667987346649,
-1.9551417827606201,
0.8565987348556519,
-0.9963324069976807,
0.8549841642379761,
0.6710488796234131,
0.723827600479126,
0.22473986446857452,
0.9285998344421387,
-1.2495124340057373,
-1.191503882408142,
-0.7400349378585815,
-0.7096563577651978,
1.9734644889831543,
-0.2656867802143097,
0.6747400760650635,
-0.17588165402412415,
-1.2846794128417969,
-0.08025158196687698,
0.7508788108825684,
0.3697323799133301,
-0.3859885334968567,
0.8107086420059204,
-0.7519006729125977,
-1.0358803272247314,
-1.3904775381088257,
-0.41523465514183044,
-1.0204921960830688,
-0.9119412899017334,
1.019095540046692,
0.744745135307312,
0.29049861431121826,
1.8813281059265137,
0.6107385158538818,
0.31358298659324646,
-2.628225803375244,
0.8722018003463745,
0.3048171103000641,
-0.03609658032655716,
0.8772650957107544,
0.33226916193962097,
1.0623666048049927,
0.09763472527265549,
0.45718252658843994,
-2.400002956390381,
2.2646307945251465,
-0.2833353579044342,
0.8064935207366943,
-0.12444750964641571,
-0.17510469257831573,
1.1810450553894043,
0.6734429597854614,
0.573101282119751,
-1.1079193353652954,
0.7511132955551147,
-0.4848691523075104,
1.1960901021957397,
0.9315451383590698,
-0.751291036605835,
-0.05525509640574455,
1.3716539144515991,
0.41109344363212585,
-0.5551080703735352,
-0.9580413103103638,
-0.8966064453125,
0.9058046340942383,
1.6904884576797485,
0.018897000700235367,
0.013727409765124321,
0.7870457172393799,
0.623279333114624,
-1.2078194618225098,
0.11454560607671738,
-0.7316820621490479,
-0.8224523067474365,
1.6362652778625488,
2.0825109481811523,
-0.061660297214984894,
-0.11245106905698776,
-0.6721937656402588,
-1.3493622541427612,
0.7000745534896851,
-0.017243530601263046,
0.08577622473239899,
0.6179587841033936,
-0.6231492757797241,
1.0251694917678833,
0.7317138910293579,
0.9094865322113037,
0.08139719814062119,
0.2636038661003113,
0.4365938603878021,
-0.3118036091327667,
-1.211499810218811,
-0.331354558467865,
-1.1814700365066528,
-2.5118215084075928,
0.40776336193084717,
-0.21654260158538818,
-1.5880851745605469,
0.04657408595085144,
-0.9872794151306152,
0.9601540565490723,
-0.5880707502365112,
-1.140475869178772,
-1.515740156173706,
0.27920031547546387,
-0.11862516403198242,
0.9337170124053955,
-1.5297530889511108,
-0.14416737854480743,
1.1460758447647095,
0.8774363994598389,
-0.6393135786056519,
1.0630879402160645,
0.23861002922058105,
1.0083074569702148,
0.7803643941879272,
-0.4804958701133728,
0.5030817985534668,
0.10471349954605103,
-1.3849467039108276,
0.4760389029979706,
1.1790436506271362,
0.15865741670131683,
1.4390400648117065,
-0.47538474202156067,
0.021896271035075188,
0.4491432011127472,
-0.6366071701049805,
-0.42842885851860046,
-0.41336458921432495,
0.6572461128234863,
0.019000936299562454,
-0.8471341133117676,
0.01786256767809391,
-0.14179010689258575,
-0.31601354479789734,
0.17179375886917114,
-1.5667634010314941,
-0.27126631140708923,
-0.4950615167617798,
-0.5969918966293335,
-1.3507435321807861,
0.04637147858738899,
1.5035600662231445,
-0.7674287557601929,
-0.2047089785337448,
0.4736377000808716,
0.5035953521728516,
0.5286350250244141,
0.6731213331222534,
-0.6769124269485474,
-0.23269237577915192,
-0.264532208442688,
-0.2506037950515747,
0.28828585147857666,
1.2272868156433105,
-0.131239116191864,
-0.9497181177139282,
0.6704795360565186,
-0.3946719467639923,
0.10357720404863358,
1.9057016372680664,
0.14640817046165466,
-0.8033051490783691,
0.3711559474468231,
-0.7100635766983032,
1.9542208909988403,
1.7142772674560547,
1.372828483581543,
-0.0773199051618576,
-0.8713138103485107,
0.6061952114105225,
-0.2805701792240143,
-0.38030311465263367,
0.9287776947021484,
0.44272392988204956,
-0.1772805154323578,
-1.4062004089355469,
0.6830630302429199,
1.0869773626327515,
-0.9158968925476074,
-0.8340228796005249,
0.0634150579571724,
-0.7571693658828735,
1.1573145389556885,
0.5451544523239136,
0.48490872979164124,
0.26780572533607483,
1.7429797649383545,
0.7131855487823486,
-0.5481994152069092,
0.6084686517715454,
0.5151528120040894,
-0.19041983783245087,
-2.152848482131958,
-1.0831756591796875,
0.2543489634990692,
-0.537358283996582,
-1.5490748882293701,
1.382784366607666,
-1.1031471490859985,
-0.9738893508911133,
0.49956706166267395,
0.027482930570840836,
1.310797929763794,
0.3105834126472473,
1.604496955871582,
2.144592523574829,
0.8573523759841919,
0.377539724111557,
1.3607969284057617,
-0.15152592957019806,
-0.3994096517562866,
1.8880095481872559,
-0.46070465445518494,
0.5231853723526001,
1.1006419658660889,
-0.4421754777431488,
-1.009745478630066,
-0.7514845132827759,
-1.1012846231460571,
-0.6043893098831177,
1.0559804439544678,
0.07065858691930771,
-1.0369689464569092,
0.321985125541687,
1.570339322090149,
0.061254605650901794,
-0.2892245948314667,
0.5666247606277466,
0.4565187096595764,
-0.7006856203079224,
-0.09115616977214813,
-1.0126789808273315,
0.523449182510376,
-0.25587278604507446,
-0.41200584173202515,
0.34389635920524597,
0.4680691063404083,
1.2400470972061157,
-0.11956584453582764,
0.10838586091995239,
1.2269845008850098,
-1.4577009677886963,
1.3934093713760376,
-0.6054672002792358,
0.25112923979759216,
-2.324230670928955,
1.3502118587493896,
-0.6362380981445312,
1.9764622449874878,
-2.703805685043335,
0.41611677408218384,
-0.659632682800293,
-0.5714490413665771,
0.41951265931129456,
-0.32468360662460327,
0.11690501868724823,
-0.1631718873977661,
-1.0643466711044312,
-0.06358259171247482,
-0.7080912590026855,
0.5834052562713623,
1.1290218830108643,
1.3177499771118164,
-1.060965895652771,
-0.20362186431884766,
-1.6509263515472412,
-0.14173901081085205,
-0.797083854675293,
0.2671993672847748,
-2.079986333847046,
-0.17178194224834442,
-1.9550930261611938,
-2.3317017555236816,
-1.2885873317718506,
-0.7721779346466064,
1.084357500076294,
0.17043258249759674,
-0.909791111946106,
1.211667537689209,
-0.28364014625549316,
-1.7446951866149902,
1.0662933588027954,
-2.148481845855713
] |
https://github.com/huggingface/datasets/issues/5244 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script | Given the amount of patching it does, this is likely to break at one point. I'd encourage you to wait for a proper support in `datasets` directly if you can wait. | ### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration. | 420 | 31 | Allow dataset streaming from private a private source when loading a dataset with a dataset loading script
### Feature request
Add arguments to the function _get_authentication_headers_for_url_ like custom_endpoint and custom_token in order to add flexibility when downloading files from a private source.
It should also be possible to provide these arguments from the dataset loading script, maybe giving them to the dl_manager
### Motivation
It is possible to share a dataset hosted on another platform by writing a dataset loading script. It works perfectly for publicly available resources.
For resources that require authentication, you can provide a [download_custom](https://huggingface.co/docs/datasets/package_reference/builder_classes#datasets.DownloadManager) method to the download_manager.
Unfortunately, this function doesn't work with **dataset streaming**.
A solution so as to allow dataset streaming from private sources would be a more flexible _get_authentication_headers_for_url_ function.
### Your contribution
Would you be interested in this improvement ?
If so I could provide a PR. I've got something working locally, but it's not very clean, I'd need some guidance regarding integration.
Given the amount of patching it does, this is likely to break at one point. I'd encourage you to wait for a proper support in `datasets` directly if you can wait. | [
-1.2507948875427246,
-0.9991331696510315,
-0.7587652802467346,
1.4156063795089722,
-0.15525126457214355,
-1.2716914415359497,
0.08887521922588348,
-1.0608739852905273,
1.7456393241882324,
-0.8709245920181274,
0.271026074886322,
-1.6694207191467285,
0.09654378890991211,
-0.6204883456230164,
-0.755719006061554,
-0.8948315382003784,
-0.4494849443435669,
-0.8606724143028259,
1.00139582157135,
2.4616918563842773,
1.1188042163848877,
-1.452164649963379,
2.6763322353363037,
0.7298603057861328,
-0.14970934391021729,
-1.0084348917007446,
0.4876433312892914,
0.01998824253678322,
-1.237310767173767,
-0.5123555064201355,
-0.9635533094406128,
-0.12149372696876526,
-0.5432731509208679,
-0.44108980894088745,
-0.036322593688964844,
0.44505128264427185,
-0.23897236585617065,
-0.37969672679901123,
-0.5895363688468933,
-0.7386752367019653,
0.4361056983470917,
-0.38605013489723206,
0.9871924519538879,
-0.42458292841911316,
1.921823263168335,
-0.5405986309051514,
0.45752015709877014,
0.6643025875091553,
1.3267582654953003,
0.20271790027618408,
-0.07794058322906494,
0.17835994064807892,
0.30821990966796875,
-0.09119261801242828,
0.5068159699440002,
1.0691680908203125,
0.5628284215927124,
0.5548714399337769,
0.6475930213928223,
-2.196805715560913,
1.4256606101989746,
-0.9624456167221069,
0.3672877550125122,
1.3997550010681152,
-0.915854811668396,
0.3816825747489929,
-1.6918023824691772,
-0.041482217609882355,
0.6757304668426514,
-2.2697103023529053,
0.2810446619987488,
-1.2806962728500366,
-0.5592207312583923,
0.9484291672706604,
0.286698579788208,
-1.2466187477111816,
0.17877280712127686,
-0.5008578300476074,
1.0834122896194458,
0.5583232045173645,
0.9963767528533936,
-1.698332667350769,
0.007753530517220497,
-0.18664193153381348,
0.04799419641494751,
-1.370004653930664,
-1.554124116897583,
0.5811671018600464,
0.6892277598381042,
0.5997823476791382,
-0.01005205325782299,
0.957186222076416,
-1.083210825920105,
0.8387858867645264,
-0.961341917514801,
-1.5553784370422363,
-1.3756003379821777,
-2.4077563285827637,
-2.4209091663360596,
0.7888898253440857,
-0.4072849154472351,
-0.545880138874054,
2.0270910263061523,
-1.0512709617614746,
-1.7085429430007935,
1.236913800239563,
0.1988430768251419,
0.03859828785061836,
2.4446640014648438,
0.12519767880439758,
-0.6762787699699402,
0.4335671365261078,
-0.7207723259925842,
0.8246729373931885,
-0.4772150218486786,
1.3538055419921875,
0.49457675218582153,
-0.9942942261695862,
1.6405432224273682,
-0.5655946731567383,
0.5211650729179382,
-0.6295081377029419,
-0.6356943845748901,
-0.83852219581604,
0.35005128383636475,
1.8591772317886353,
-0.2878461480140686,
1.6801271438598633,
-0.42316481471061707,
-1.5952157974243164,
-1.6493593454360962,
0.866875410079956,
0.39617136120796204,
-0.8944211602210999,
0.09103015065193176,
-0.3983334004878998,
0.09818211197853088,
-0.15593817830085754,
1.1264121532440186,
1.240718126296997,
0.6760783195495605,
-0.3922770321369171,
-0.819694459438324,
0.16401268541812897,
-0.14640288054943085,
-0.724552571773529,
-1.7645313739776611,
-0.30217409133911133,
0.1271970123052597,
0.5746818780899048,
-1.2179462909698486,
1.7955660820007324,
0.8767386674880981,
1.986464500427246,
1.0125826597213745,
-0.2609928548336029,
1.4206156730651855,
0.0948622077703476,
1.8414584398269653,
-0.5975742340087891,
0.6998187899589539,
-0.2245379537343979,
-1.056809663772583,
0.7593059539794922,
-0.43455401062965393,
-1.9504029750823975,
-0.7426942586898804,
-0.7779569029808044,
-0.12056867778301239,
-0.7405964136123657,
0.9240285158157349,
-0.2871992290019989,
-1.4271905422210693,
0.2946534752845764,
-0.6962864995002747,
0.3509264886379242,
-1.194691777229309,
0.32358911633491516,
0.7767214775085449,
-0.5774481892585754,
-0.019252395257353783,
-0.27519285678863525,
-1.3199139833450317,
-0.385463684797287,
0.4286459684371948,
1.8929226398468018,
-0.6533297300338745,
0.8432790040969849,
0.9484187364578247,
-0.5717921853065491,
-0.025568651035428047,
0.3015115559101105,
-0.24385163187980652,
0.8367140293121338,
-1.0975688695907593,
-0.3738548159599304,
1.229681134223938,
-0.3588636815547943,
-0.5687519311904907,
1.4719055891036987,
0.7176240086555481,
-0.9931721091270447,
-0.13968312740325928,
-0.23738795518875122,
-0.8207343816757202,
-0.09689594805240631,
-1.6107900142669678,
-0.09208707511425018,
0.36701565980911255,
-1.5168150663375854,
-0.4208099842071533,
-0.15027828514575958,
1.1989173889160156,
-0.14345908164978027,
1.4244261980056763,
-0.4444335103034973,
-0.17123714089393616,
-0.2916645407676697,
-0.38687366247177124,
0.22981444001197815,
-0.25583428144454956,
-0.5075966119766235,
0.09870681166648865,
-0.8142219185829163,
0.3266473710536957,
1.4843106269836426,
0.38978368043899536,
0.1299045830965042,
0.520936131477356,
1.0726128816604614,
0.32846367359161377,
-0.07622386515140533,
-0.7332932949066162,
-1.56399405002594,
1.963245153427124,
-1.403550624847412,
1.9663136005401611,
0.8114977478981018,
-0.05170068517327309,
-1.8484323024749756,
-1.7934658527374268,
1.2384469509124756,
1.1405839920043945,
2.175468921661377,
0.4924997091293335,
0.3262706995010376,
-0.8740528225898743,
-0.7134609818458557,
0.3375965654850006,
-1.0409806966781616,
-0.663835883140564,
0.07966548204421997,
2.2658774852752686,
1.761807918548584,
-0.4504137933254242,
-0.1663883775472641,
-0.999452531337738,
1.426009178161621,
-0.23333044350147247,
0.22615425288677216,
2.0148541927337646,
-0.28944987058639526,
-1.077178955078125,
1.2730659246444702,
-2.4812753200531006,
0.2003704160451889,
1.9981951713562012,
0.29053622484207153,
0.09520697593688965,
-1.4093608856201172,
-0.6176506876945496,
-0.3721823990345001,
-0.26104840636253357,
-1.2386788129806519,
0.578636884689331,
-0.3219977617263794,
-0.7590980529785156,
-1.4803858995437622,
0.16690286993980408,
-1.039587140083313,
-1.6710593700408936,
0.3071163296699524,
1.852327823638916,
2.0269041061401367,
-0.6973344087600708,
1.493530035018921,
-0.16977159678936005,
0.16895908117294312,
1.2682141065597534,
1.2459059953689575,
3.1267244815826416,
1.8668649196624756,
-1.2265292406082153,
0.6726973056793213,
-0.09837391972541809,
-0.420588880777359,
1.1806440353393555,
-1.1413679122924805,
1.336042046546936,
-0.16940194368362427,
-1.2588801383972168,
-1.29507577419281,
1.037035346031189,
0.5482886433601379,
0.08327364921569824,
-0.5483293533325195,
1.358882188796997,
0.06256042420864105,
1.3784540891647339,
0.5699548721313477,
-0.524054765701294,
0.5374494194984436,
-0.3822738528251648,
-0.6777843832969666,
1.5806236267089844,
0.17739203572273254,
-1.4997717142105103,
-2.198622465133667,
-0.289625346660614,
-0.7588897943496704,
-0.048202674835920334,
-0.6096744537353516,
-1.0434070825576782,
1.6473398208618164,
0.43265798687934875,
-1.2682604789733887,
-0.28867459297180176,
-0.285919725894928,
-0.5613558888435364,
2.720079183578491,
-1.319945216178894,
-0.20749956369400024,
-0.9883160591125488,
-0.5909602046012878,
1.6211804151535034,
-1.3282865285873413,
-0.21274438500404358,
-1.0778528451919556,
-0.6694445013999939,
-1.2819674015045166,
-0.4795684516429901,
-0.12403430044651031,
-0.8882763981819153,
0.841320812702179,
0.25222960114479065,
-1.1346272230148315,
-0.35897505283355713,
-0.8282974362373352,
0.9245063066482544,
-0.0772431343793869,
0.31584423780441284,
1.8123677968978882,
0.2969997823238373,
-0.48907530307769775,
0.7495211362838745,
1.1664326190948486,
0.6432509422302246,
-0.7022690773010254,
0.11132621765136719,
-0.6236478090286255,
0.4283607304096222,
-1.3351566791534424,
0.22780510783195496,
-2.965118169784546,
0.6124458312988281,
-0.15051023662090302,
-0.20302598178386688,
-0.04402592405676842,
-1.3555197715759277,
1.0481351613998413,
2.5560121536254883,
-1.163755178451538,
0.4754408597946167,
0.3417413830757141,
1.2234506607055664,
-1.6506049633026123,
0.47939494252204895,
-0.3953595757484436,
2.095304250717163,
0.22373603284358978,
1.1643023490905762,
-0.5641745924949646,
-2.2675647735595703,
0.6515564918518066,
-1.1968997716903687,
-1.1147522926330566,
0.7402133345603943,
-0.9718804359436035,
0.1456378996372223,
-1.4636967182159424,
-0.22112616896629333,
-0.8565108180046082,
-1.2938933372497559,
0.6424050331115723,
0.1778131127357483,
0.39041459560394287,
-0.5839030146598816,
0.28967559337615967,
-2.243697166442871,
-1.3038220405578613,
-0.22179043292999268,
-0.8971861004829407,
0.5176934003829956,
-0.42026767134666443,
0.6304872035980225,
-0.15206590294837952,
0.10177721083164215,
0.3013913035392761,
1.4861640930175781,
3.4166135787963867,
0.2543230950832367,
0.35955390334129333,
-0.08609326183795929,
-0.9205609560012817,
1.335679531097412,
0.8406556844711304,
-0.1481398493051529,
-0.5642765164375305,
-1.004186749458313,
1.3804945945739746,
1.936418890953064,
0.8998560309410095,
0.07170547544956207,
-0.7047651410102844,
-0.6616216897964478,
-0.014267592690885067,
0.18347133696079254,
0.41089069843292236,
0.9513199329376221,
0.011893583461642265,
0.12907470762729645,
1.4713597297668457,
1.2819234132766724,
-0.37595778703689575,
0.3912593126296997,
-0.8482882976531982,
-0.48192763328552246,
0.49263596534729004,
0.3469747006893158,
-0.08369943499565125,
0.3836692273616791,
-0.9886751770973206,
-0.15561959147453308,
-0.42162081599235535,
-0.8954108953475952,
-0.6562426686286926,
-0.4020538330078125,
-0.35537153482437134,
1.668526530265808,
0.2045733481645584,
-0.5960518717765808,
0.050518326461315155,
-0.7220153212547302,
-0.13500912487506866,
-1.148105263710022,
0.26535460352897644,
-0.009763632901012897,
-0.15357334911823273,
-0.05270342901349068,
1.8257699012756348,
-0.9572023749351501,
-2.067375659942627,
0.2003519982099533,
0.19897104799747467,
-0.37603312730789185,
0.14838668704032898,
1.6829935312271118,
0.40534910559654236,
1.4776268005371094,
1.3717718124389648,
0.8972916603088379,
-0.6898568272590637,
-1.3469771146774292,
0.7832021713256836,
0.9175897836685181,
-1.44225013256073,
0.8481229543685913,
0.009183477610349655,
-0.6317249536514282,
0.7630054950714111,
1.2641150951385498,
0.44813698530197144,
-1.9240506887435913,
0.854121208190918,
-1.010560393333435,
0.8419281840324402,
0.7282177805900574,
0.7216195464134216,
0.2776693105697632,
0.9147388339042664,
-1.3006139993667603,
-1.2172560691833496,
-0.7758649587631226,
-0.660561740398407,
1.9734861850738525,
-0.30189794301986694,
0.6435782313346863,
-0.12106819450855255,
-1.3075379133224487,
-0.05729883536696434,
0.7656678557395935,
0.3892093300819397,
-0.3426479995250702,
0.8140068650245667,
-0.7203205227851868,
-1.0054528713226318,
-1.3384284973144531,
-0.4276595413684845,
-1.0227715969085693,
-0.8776742815971375,
1.038014531135559,
0.7776368260383606,
0.299118310213089,
1.8668768405914307,
0.5587543845176697,
0.3341074287891388,
-2.5589935779571533,
0.8608127236366272,
0.2542855143547058,
-0.0406765341758728,
0.8466024994850159,
0.3297722041606903,
1.0596303939819336,
0.0822916030883789,
0.47667351365089417,
-2.4549646377563477,
2.230293035507202,
-0.31685271859169006,
0.7364551424980164,
-0.12463110685348511,
-0.13643626868724823,
1.1983063220977783,
0.6796649694442749,
0.5310800075531006,
-1.059188723564148,
0.6918111443519592,
-0.518040657043457,
1.2263976335525513,
0.9258027672767639,
-0.7812105417251587,
-0.06907618790864944,
1.3842394351959229,
0.41795265674591064,
-0.5560630559921265,
-0.9577757716178894,
-0.8831471800804138,
0.8941145539283752,
1.624028205871582,
-0.0075835296884179115,
-0.016166746616363525,
0.8270239233970642,
0.6370986700057983,
-1.2168689966201782,
0.16686925292015076,
-0.7494162917137146,
-0.8116605281829834,
1.63385808467865,
2.0489377975463867,
-0.04573529213666916,
-0.09233544766902924,
-0.6810987591743469,
-1.319039225578308,
0.7362680435180664,
-0.04278770461678505,
0.03911127150058746,
0.5961670875549316,
-0.6460822820663452,
0.9858031272888184,
0.7587025165557861,
0.9160755276679993,
0.081298828125,
0.3165043890476227,
0.47024965286254883,
-0.27374467253685,
-1.2048256397247314,
-0.2433738261461258,
-1.2011324167251587,
-2.5210680961608887,
0.4332341253757477,
-0.3025446832180023,
-1.5888561010360718,
0.06137775257229805,
-1.0311253070831299,
0.9833804965019226,
-0.6049604415893555,
-1.1956982612609863,
-1.5384973287582397,
0.27461710572242737,
-0.11105574667453766,
0.9581081867218018,
-1.4710990190505981,
-0.11263814568519592,
1.143927812576294,
0.8401827812194824,
-0.6072418689727783,
1.0709937810897827,
0.24121800065040588,
1.048083782196045,
0.7487357258796692,
-0.42039939761161804,
0.5327950716018677,
0.06581982970237732,
-1.3632868528366089,
0.5077730417251587,
1.1524176597595215,
0.15740300714969635,
1.4359678030014038,
-0.47376206517219543,
0.0280468687415123,
0.4417366683483124,
-0.6749352812767029,
-0.38252902030944824,
-0.4003238379955292,
0.7069646716117859,
0.05005655437707901,
-0.8145169615745544,
-0.034441471099853516,
-0.14630001783370972,
-0.37446117401123047,
0.17960043251514435,
-1.5627676248550415,
-0.2544251084327698,
-0.4817165732383728,
-0.5862916111946106,
-1.3113036155700684,
0.01769438199698925,
1.479992389678955,
-0.7280332446098328,
-0.18938219547271729,
0.4850144386291504,
0.5043477416038513,
0.5729210376739502,
0.7128707766532898,
-0.6606351733207703,
-0.2176702469587326,
-0.2890423834323883,
-0.24582445621490479,
0.2901349365711212,
1.2402633428573608,
-0.1301496922969818,
-0.9827195405960083,
0.7017933130264282,
-0.4277741014957428,
0.09309694170951843,
1.9337424039840698,
0.17262181639671326,
-0.810457706451416,
0.34822747111320496,
-0.7491835355758667,
1.9676631689071655,
1.7083665132522583,
1.33218514919281,
-0.007307444233447313,
-0.8875497579574585,
0.6090344786643982,
-0.2709582448005676,
-0.3479527235031128,
0.8849115371704102,
0.5079693794250488,
-0.17891080677509308,
-1.3582631349563599,
0.721278190612793,
1.0393826961517334,
-0.8936894536018372,
-0.833993136882782,
0.09121224284172058,
-0.7663077116012573,
1.1367053985595703,
0.575689435005188,
0.5076568126678467,
0.31623223423957825,
1.7113209962844849,
0.6974325776100159,
-0.5649125576019287,
0.5592284798622131,
0.5598181486129761,
-0.23359325528144836,
-2.129943370819092,
-1.058882236480713,
0.30703026056289673,
-0.5534675121307373,
-1.5402501821517944,
1.3828294277191162,
-1.1295527219772339,
-0.8762246370315552,
0.4402368664741516,
0.08979842066764832,
1.2942885160446167,
0.3238440752029419,
1.6265305280685425,
2.10801362991333,
0.875754714012146,
0.3497470021247864,
1.4325718879699707,
-0.1132342666387558,
-0.40313422679901123,
1.8444552421569824,
-0.45085397362709045,
0.5204852223396301,
1.0906102657318115,
-0.41542211174964905,
-1.0400675535202026,
-0.7248044610023499,
-1.0856618881225586,
-0.5969724655151367,
1.0681902170181274,
0.10965736210346222,
-1.0562702417373657,
0.256731241941452,
1.5576695203781128,
0.040473926812410355,
-0.2812619209289551,
0.5291654467582703,
0.3975452780723572,
-0.7053432464599609,
-0.13531990349292755,
-0.965471625328064,
0.5233491659164429,
-0.23477083444595337,
-0.3672507405281067,
0.32494011521339417,
0.5090734362602234,
1.262105941772461,
-0.10437463223934174,
0.13461273908615112,
1.2132080793380737,
-1.4737740755081177,
1.3587071895599365,
-0.6181207895278931,
0.23084157705307007,
-2.3595855236053467,
1.3525686264038086,
-0.6171219944953918,
1.9680920839309692,
-2.7201950550079346,
0.4404390752315521,
-0.6485164761543274,
-0.5242739915847778,
0.4156907796859741,
-0.3504117727279663,
0.16395361721515656,
-0.15589381754398346,
-1.1077474355697632,
-0.023234151303768158,
-0.6838904023170471,
0.5875985622406006,
1.12579345703125,
1.3072624206542969,
-1.109136700630188,
-0.20926904678344727,
-1.6422621011734009,
-0.16545403003692627,
-0.8430498242378235,
0.33999136090278625,
-2.0618207454681396,
-0.08735102415084839,
-1.9537553787231445,
-2.363358736038208,
-1.3344091176986694,
-0.6891658902168274,
1.0725678205490112,
0.1192096620798111,
-0.9276377558708191,
1.2155876159667969,
-0.2691168189048767,
-1.7438466548919678,
1.0235226154327393,
-2.219651460647583
] |
https://github.com/huggingface/datasets/issues/5243 | Download only split data | Hi @capsabogdan! Unfortunately, it's hard to implement because quite often datasets data is being hosted in a single archive for all splits :( So we have to download the whole archive to split it into splits. This is the case for CommonVoice too.
However, for cases when data is distributed in separate archives Π°ΡΠΊ different splits I suppose it can (and will) be implemented someday.
Btw for quick check of the dataset you can use [streaming](https://huggingface.co/docs/datasets/stream):
```python
cv = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True)
cv = iter(cv)
print(next(cv))
>> {'client_id': 'a07b17f8234ded5e847443ea6f423cef745cbbc7537fb637d58326000aa751e829a21c4fd0a35fc17fb833aa7e95ebafce5efd19beeb8d843887b85e4eb35f5b',
>> 'path': None,
>> 'audio': {'path': 'cv-corpus-11.0-2022-09-21/en/clips/common_voice_en_100363.mp3',
>> 'array': array([ 0.0000000e+00, 1.1748125e-14, 1.5450088e-14, ...,
>> 1.3011958e-06, -6.3548953e-08, -9.9098514e-08], dtype=float32),
>> ...}
``` | ### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a | 421 | 112 | Download only split data
### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a
Hi @capsabogdan! Unfortunately, it's hard to implement because quite often datasets data is being hosted in a single archive for all splits :( So we have to download the whole archive to split it into splits. This is the case for CommonVoice too.
However, for cases when data is distributed in separate archives Π°ΡΠΊ different splits I suppose it can (and will) be implemented someday.
Btw for quick check of the dataset you can use [streaming](https://huggingface.co/docs/datasets/stream):
```python
cv = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True)
cv = iter(cv)
print(next(cv))
>> {'client_id': 'a07b17f8234ded5e847443ea6f423cef745cbbc7537fb637d58326000aa751e829a21c4fd0a35fc17fb833aa7e95ebafce5efd19beeb8d843887b85e4eb35f5b',
>> 'path': None,
>> 'audio': {'path': 'cv-corpus-11.0-2022-09-21/en/clips/common_voice_en_100363.mp3',
>> 'array': array([ 0.0000000e+00, 1.1748125e-14, 1.5450088e-14, ...,
>> 1.3011958e-06, -6.3548953e-08, -9.9098514e-08], dtype=float32),
>> ...}
``` | [
-1.19563889503479,
-0.9028656482696533,
-0.7341632843017578,
1.5304049253463745,
-0.17539311945438385,
-1.1323604583740234,
0.13661536574363708,
-0.9867618083953857,
1.6200731992721558,
-0.7696985006332397,
0.23584577441215515,
-1.6459256410598755,
-0.02008518949151039,
-0.568605899810791,
-0.7288970947265625,
-0.8691710829734802,
-0.3750438094139099,
-0.8242224454879761,
1.0835870504379272,
2.503361225128174,
1.1855143308639526,
-1.3434489965438843,
2.7016725540161133,
0.6850376129150391,
-0.16014385223388672,
-1.0042651891708374,
0.5262699723243713,
-0.04971940070390701,
-1.2414758205413818,
-0.44033652544021606,
-0.9626464247703552,
-0.07882063090801239,
-0.6039218306541443,
-0.44354933500289917,
-0.01976858079433441,
0.439270555973053,
-0.2711973190307617,
-0.3792690634727478,
-0.5423728227615356,
-0.7961385250091553,
0.46229028701782227,
-0.4313106834888458,
0.9424736499786377,
-0.28989851474761963,
1.7831851243972778,
-0.5486910939216614,
0.46873292326927185,
0.6661925911903381,
1.2506122589111328,
0.25947657227516174,
0.0029363688081502914,
0.3020538091659546,
0.41802674531936646,
-0.042765967547893524,
0.5723856091499329,
1.243317723274231,
0.6636406779289246,
0.5163951516151428,
0.7750483751296997,
-2.240898847579956,
1.265096664428711,
-0.9989249110221863,
0.28244730830192566,
1.3359729051589966,
-0.9060153365135193,
0.44201117753982544,
-1.7902636528015137,
-0.05908772349357605,
0.5829591155052185,
-2.2325949668884277,
0.301212340593338,
-1.3033607006072998,
-0.5554672479629517,
0.9590195417404175,
0.3623445928096771,
-1.2606983184814453,
0.06990253180265427,
-0.47555118799209595,
1.0023797750473022,
0.4372372329235077,
1.0448808670043945,
-1.714874029159546,
-0.05725405365228653,
-0.3240352272987366,
0.18677911162376404,
-1.232056975364685,
-1.588146686553955,
0.557552695274353,
0.6459328532218933,
0.5576515197753906,
-0.11974673718214035,
1.01995050907135,
-1.1370002031326294,
0.7477350234985352,
-1.0177292823791504,
-1.6951831579208374,
-1.4408423900604248,
-2.310547113418579,
-2.2709200382232666,
0.6528222560882568,
-0.4672048091888428,
-0.5154854655265808,
2.0455245971679688,
-0.9761514663696289,
-1.674336314201355,
1.1652079820632935,
0.25784832239151,
0.015487264841794968,
2.4502980709075928,
0.17582163214683533,
-0.7063712477684021,
0.4769146740436554,
-0.8265312314033508,
0.7763139605522156,
-0.3609641194343567,
1.3642398118972778,
0.4462182819843292,
-0.9798862338066101,
1.6689786911010742,
-0.4091567099094391,
0.516255259513855,
-0.6339704394340515,
-0.5188760161399841,
-0.6970703601837158,
0.25283992290496826,
1.8920326232910156,
-0.30142369866371155,
1.5665571689605713,
-0.2899947762489319,
-1.4984102249145508,
-1.5610238313674927,
0.8859422206878662,
0.3763258457183838,
-0.8342424035072327,
0.10227970778942108,
-0.4759441316127777,
0.1254686564207077,
-0.060421742498874664,
1.1533418893814087,
1.310652732849121,
0.7214792966842651,
-0.27671873569488525,
-0.8973607420921326,
0.15351252257823944,
-0.13671807944774628,
-0.6810205578804016,
-1.75214421749115,
-0.30559512972831726,
0.06320329755544662,
0.6874661445617676,
-1.221359372138977,
1.7382014989852905,
0.8928366899490356,
1.94612455368042,
1.0329419374465942,
-0.37919101119041443,
1.4922635555267334,
0.1613827645778656,
1.8010900020599365,
-0.5411887168884277,
0.6222566366195679,
-0.42370712757110596,
-1.1482865810394287,
0.88173508644104,
-0.31704065203666687,
-1.9695210456848145,
-0.6832998394966125,
-0.8141542077064514,
-0.21994711458683014,
-0.8523577451705933,
0.8878211379051208,
-0.2939935028553009,
-1.4019869565963745,
0.28728538751602173,
-0.7671281695365906,
0.15310786664485931,
-1.2409809827804565,
0.34691518545150757,
0.7841789126396179,
-0.6242215037345886,
0.1288832426071167,
-0.23083974421024323,
-1.342998743057251,
-0.46902361512184143,
0.37936362624168396,
1.9102411270141602,
-0.6159418821334839,
0.8150954842567444,
1.0272891521453857,
-0.6884826421737671,
-0.06315416842699051,
0.31257230043411255,
-0.28896743059158325,
0.7742120027542114,
-1.0320032835006714,
-0.5035982131958008,
1.1683001518249512,
-0.28429722785949707,
-0.6002539396286011,
1.3741596937179565,
0.6542176604270935,
-1.0506290197372437,
-0.27718520164489746,
-0.12878017127513885,
-0.8331345319747925,
0.08671314269304276,
-1.595324993133545,
-0.16903027892112732,
0.4465164840221405,
-1.58196222782135,
-0.4676057696342468,
-0.1757507175207138,
1.3431543111801147,
-0.1139417439699173,
1.4143695831298828,
-0.3104200065135956,
-0.09191355854272842,
-0.31635233759880066,
-0.49431538581848145,
0.19063828885555267,
-0.23041386902332306,
-0.5835931301116943,
0.19302327930927277,
-0.8122881650924683,
0.32852184772491455,
1.5137748718261719,
0.295002818107605,
0.01865164376795292,
0.47628188133239746,
1.044283390045166,
0.4445135295391083,
-0.05957856774330139,
-0.8763591051101685,
-1.5214804410934448,
2.005855083465576,
-1.5190891027450562,
2.0064969062805176,
0.758554220199585,
-0.08611214905977249,
-1.7844911813735962,
-1.8655481338500977,
1.2759120464324951,
1.1254756450653076,
2.348625659942627,
0.6056233644485474,
0.38616660237312317,
-0.7969868779182434,
-0.6590598821640015,
0.29417282342910767,
-1.0054872035980225,
-0.7595319151878357,
0.1734229475259781,
2.4129621982574463,
1.7421362400054932,
-0.43051522970199585,
-0.17829521000385284,
-0.9156782627105713,
1.3845146894454956,
-0.18815788626670837,
0.24203531444072723,
1.9925286769866943,
-0.2752991318702698,
-1.0774239301681519,
1.275351881980896,
-2.3908185958862305,
0.22779831290245056,
1.994277000427246,
0.3073190450668335,
0.11623482406139374,
-1.3665425777435303,
-0.6560730934143066,
-0.28845882415771484,
-0.4680745005607605,
-1.2820590734481812,
0.554314136505127,
-0.2533721923828125,
-0.7926092147827148,
-1.4677350521087646,
0.1333714723587036,
-1.1531380414962769,
-1.6323766708374023,
0.21949099004268646,
1.8718087673187256,
2.1342601776123047,
-0.7703472375869751,
1.489381194114685,
-0.2546859383583069,
0.1334453523159027,
1.1902297735214233,
1.2693393230438232,
3.137087821960449,
1.9611647129058838,
-1.2259037494659424,
0.5842421054840088,
-0.2026941478252411,
-0.4729275703430176,
1.161320447921753,
-1.2122302055358887,
1.2509032487869263,
-0.15992921590805054,
-1.2534804344177246,
-1.2209683656692505,
0.9788392186164856,
0.43542686104774475,
-0.020648948848247528,
-0.4865018427371979,
1.175140380859375,
0.12444847822189331,
1.3415865898132324,
0.6059972047805786,
-0.30072295665740967,
0.5878897905349731,
-0.4397486448287964,
-0.5086090564727783,
1.587052345275879,
0.16359709203243256,
-1.4950865507125854,
-2.2893619537353516,
-0.2468305379152298,
-0.942134439945221,
0.03196241706609726,
-0.5997216701507568,
-1.027892827987671,
1.6571887731552124,
0.3423353135585785,
-1.1476017236709595,
-0.2814147174358368,
-0.35414794087409973,
-0.5385138988494873,
2.7448432445526123,
-1.3641325235366821,
-0.26946014165878296,
-0.9895600080490112,
-0.6735236644744873,
1.6566907167434692,
-1.2788387537002563,
-0.22263756394386292,
-0.9922093152999878,
-0.5803274512290955,
-1.2547982931137085,
-0.5136521458625793,
0.007220843806862831,
-0.8852421045303345,
0.7958692312240601,
0.2833912968635559,
-1.202629566192627,
-0.3070489168167114,
-0.9281147122383118,
0.9119448661804199,
-0.1525697559118271,
0.2139555960893631,
1.8592733144760132,
0.26475951075553894,
-0.3985384404659271,
0.7821620106697083,
1.1893484592437744,
0.6633702516555786,
-0.6163631677627563,
0.10870011895895004,
-0.6379300951957703,
0.37408196926116943,
-1.2942150831222534,
0.27643245458602905,
-2.873095750808716,
0.6055598258972168,
-0.05219557136297226,
-0.07842431217432022,
0.02036779373884201,
-1.328932523727417,
1.1460531949996948,
2.519301176071167,
-1.169225811958313,
0.5216436982154846,
0.36329904198646545,
1.2318065166473389,
-1.6488205194473267,
0.2857210636138916,
-0.49869152903556824,
2.1927409172058105,
0.2227543741464615,
1.1813277006149292,
-0.455984503030777,
-2.385651111602783,
0.59930419921875,
-1.2558009624481201,
-1.0864981412887573,
0.6762824058532715,
-0.9030115008354187,
0.1005014181137085,
-1.43903648853302,
-0.26821157336235046,
-0.8882103562355042,
-1.1785087585449219,
0.6763922572135925,
0.1164616197347641,
0.45904892683029175,
-0.5954594612121582,
0.3259376287460327,
-2.1955878734588623,
-1.3932092189788818,
-0.2147972285747528,
-0.9578607678413391,
0.4864066541194916,
-0.39205029606819153,
0.7181263566017151,
-0.19479699432849884,
0.02908220700919628,
0.3045887053012848,
1.4717192649841309,
3.356405735015869,
0.18252579867839813,
0.32205647230148315,
-0.2444520741701126,
-0.9980949759483337,
1.4375015497207642,
0.9099961519241333,
-0.07631839066743851,
-0.5664125084877014,
-1.0542855262756348,
1.3061257600784302,
1.9930875301361084,
0.964860737323761,
0.02723926119506359,
-0.7976990938186646,
-0.6784278154373169,
-0.07105294615030289,
0.25159260630607605,
0.48509836196899414,
0.9212021231651306,
0.01485884003341198,
0.07896925508975983,
1.381453514099121,
1.21616792678833,
-0.3656866252422333,
0.29216137528419495,
-0.8223131895065308,
-0.4047664701938629,
0.4599739611148834,
0.2502211332321167,
0.0010746708139777184,
0.36661815643310547,
-1.035966157913208,
-0.26479315757751465,
-0.34015920758247375,
-0.8733381628990173,
-0.7129091620445251,
-0.33978715538978577,
-0.2607351243495941,
1.6560297012329102,
0.12600842118263245,
-0.5094122886657715,
0.021450946107506752,
-0.7641641497612,
-0.1311134546995163,
-1.121647596359253,
0.1263064593076706,
-0.12875701487064362,
-0.1082792654633522,
-0.09861911833286285,
1.7359592914581299,
-0.8922165036201477,
-2.13899827003479,
0.14504270255565643,
0.3045406639575958,
-0.29079753160476685,
0.19483663141727448,
1.7160725593566895,
0.5080307126045227,
1.4262688159942627,
1.3490819931030273,
1.0106083154678345,
-0.6024686694145203,
-1.3014681339263916,
0.7021837830543518,
0.9856393337249756,
-1.3445501327514648,
0.896996796131134,
-0.09390591084957123,
-0.5281519293785095,
0.6240764856338501,
1.2572306394577026,
0.487682968378067,
-1.957317590713501,
0.8352159261703491,
-1.008324146270752,
0.8283994197845459,
0.7384336590766907,
0.7879725694656372,
0.26447969675064087,
0.8169278502464294,
-1.2319086790084839,
-1.1094728708267212,
-0.7067607641220093,
-0.6489930152893066,
1.9349576234817505,
-0.27409738302230835,
0.5936952233314514,
-0.17574620246887207,
-1.2966480255126953,
-0.005960418842732906,
0.7260808348655701,
0.3489529490470886,
-0.49053868651390076,
0.7806958556175232,
-0.6996257901191711,
-1.144130825996399,
-1.274745225906372,
-0.42186450958251953,
-1.0133384466171265,
-0.9861570596694946,
1.0468825101852417,
0.7414342164993286,
0.3521939516067505,
1.9420394897460938,
0.6543468832969666,
0.311083048582077,
-2.6224772930145264,
0.8930559158325195,
0.30286407470703125,
-0.08104715496301651,
0.871705949306488,
0.3637665808200836,
1.1203911304473877,
-0.0033258991315960884,
0.5744367241859436,
-2.4192144870758057,
2.2786149978637695,
-0.243697851896286,
0.8301169276237488,
0.048194147646427155,
-0.04977861046791077,
1.0225998163223267,
0.6521931886672974,
0.4868721663951874,
-1.0618208646774292,
0.7062647342681885,
-0.5861318111419678,
1.2407819032669067,
0.9425650238990784,
-0.8105571866035461,
0.09865444153547287,
1.325537919998169,
0.43274232745170593,
-0.6117083430290222,
-0.9172753691673279,
-0.8927289843559265,
0.9392635822296143,
1.7305947542190552,
-0.019564129412174225,
0.012132573872804642,
0.842435896396637,
0.631986677646637,
-1.246113657951355,
0.043931327760219574,
-0.6465123295783997,
-0.7041214108467102,
1.664549469947815,
2.0399818420410156,
-0.21325230598449707,
-0.20134128630161285,
-0.7086507081985474,
-1.374392032623291,
0.7497955560684204,
-0.021226108074188232,
0.11747166514396667,
0.655759871006012,
-0.6272373795509338,
1.0028818845748901,
0.7891926169395447,
0.9165090322494507,
0.2483229786157608,
0.3003605604171753,
0.47890520095825195,
-0.351348876953125,
-1.0892637968063354,
-0.28320056200027466,
-1.1307103633880615,
-2.6180152893066406,
0.4329529106616974,
-0.2511191964149475,
-1.3871397972106934,
0.03967135399580002,
-0.9835111498832703,
0.9456706047058105,
-0.5620331764221191,
-1.1152541637420654,
-1.4692257642745972,
0.2215711921453476,
-0.080991730093956,
0.8968380093574524,
-1.6398143768310547,
-0.19546319544315338,
1.168125867843628,
0.9431023001670837,
-0.6934993267059326,
0.9886438250541687,
0.29173773527145386,
1.0758225917816162,
0.7810468673706055,
-0.42620137333869934,
0.5545380711555481,
0.06855864077806473,
-1.3561484813690186,
0.4042052626609802,
1.2712980508804321,
0.16243579983711243,
1.414692997932434,
-0.5080422759056091,
-0.09468302875757217,
0.4171532392501831,
-0.5202412009239197,
-0.5079249739646912,
-0.4518643617630005,
0.6254141330718994,
-0.04359215497970581,
-0.8855255246162415,
-0.07065004110336304,
-0.1031026616692543,
-0.2548723518848419,
0.15972062945365906,
-1.5102607011795044,
-0.13738004863262177,
-0.4872738718986511,
-0.5349473357200623,
-1.3048491477966309,
-0.10068818926811218,
1.4277818202972412,
-0.7984570860862732,
-0.24003446102142334,
0.4669235944747925,
0.372663676738739,
0.5427574515342712,
0.5482203364372253,
-0.6621159911155701,
-0.3364824950695038,
-0.20888394117355347,
-0.34390944242477417,
0.342408150434494,
1.3357254266738892,
-0.1686021089553833,
-0.9931345582008362,
0.648555338382721,
-0.3488888144493103,
0.11098016798496246,
1.8872356414794922,
0.054564379155635834,
-0.7860966920852661,
0.2531759440898895,
-0.6850826144218445,
1.934239387512207,
1.6360622644424438,
1.3438353538513184,
-0.18005239963531494,
-0.8098178505897522,
0.7172399759292603,
-0.3563089668750763,
-0.4337010681629181,
0.7202059626579285,
0.4047674238681793,
-0.23440206050872803,
-1.484485387802124,
0.7269726991653442,
1.2317659854888916,
-0.8885634541511536,
-0.7831223011016846,
0.18093201518058777,
-0.8514202237129211,
1.153578519821167,
0.6157127618789673,
0.424301415681839,
0.24021409451961517,
1.7087987661361694,
0.7873502969741821,
-0.5097678899765015,
0.5969630479812622,
0.5803009271621704,
-0.20149563252925873,
-2.1232235431671143,
-1.1606690883636475,
0.25358009338378906,
-0.4954409599304199,
-1.5179075002670288,
1.3844670057296753,
-1.1955677270889282,
-1.0230175256729126,
0.480306476354599,
0.18003715574741364,
1.3560346364974976,
0.3681958019733429,
1.6344373226165771,
2.0228867530822754,
0.8363405466079712,
0.5116105079650879,
1.2189886569976807,
-0.14396804571151733,
-0.41665005683898926,
1.8069920539855957,
-0.41961222887039185,
0.5988306403160095,
1.1090408563613892,
-0.3104340434074402,
-1.1223297119140625,
-0.7420303821563721,
-1.2667495012283325,
-0.7134155631065369,
1.1916449069976807,
0.0683971419930458,
-1.1061618328094482,
0.3026896119117737,
1.6058545112609863,
0.07471469789743423,
-0.3708484172821045,
0.6040458679199219,
0.3958130478858948,
-0.7383328676223755,
-0.10520584881305695,
-0.9718706607818604,
0.5570437908172607,
-0.2238806039094925,
-0.33558446168899536,
0.2697257697582245,
0.4754798114299774,
1.3470184803009033,
-0.015054920688271523,
0.17928865551948547,
1.1390190124511719,
-1.4239100217819214,
1.487991452217102,
-0.6836711168289185,
0.20502635836601257,
-2.319199323654175,
1.3500864505767822,
-0.7371094822883606,
1.9943935871124268,
-2.654054641723633,
0.4540083706378937,
-0.5663219094276428,
-0.47667890787124634,
0.31667065620422363,
-0.3309789001941681,
0.09005814790725708,
-0.15488912165164948,
-1.0826489925384521,
-0.05674994736909866,
-0.6281202435493469,
0.5556182861328125,
1.1526179313659668,
1.3533304929733276,
-1.1199194192886353,
-0.2630314230918884,
-1.6998270750045776,
-0.12666764855384827,
-0.7074256539344788,
0.18564510345458984,
-2.0060081481933594,
-0.23758691549301147,
-1.930760383605957,
-2.3537161350250244,
-1.2527903318405151,
-0.825400710105896,
1.1706576347351074,
0.11538466811180115,
-0.94688481092453,
1.3471593856811523,
-0.37228262424468994,
-1.7782533168792725,
1.1102837324142456,
-2.109771251678467
] |
https://github.com/huggingface/datasets/issues/5243 | Download only split data | thank you for the answer but am not sure if this will not be helpful, as we
need maybe just 10% of the datasets for some experiment
can we get just a portion of the dataset with stream?
is there really no solution? :(
Am Di., 15. Nov. 2022 um 16:55 Uhr schrieb Polina Kazakova <
***@***.***>:
> Hi @capsabogdan <https://github.com/capsabogdan>! Unfortunately, it's
> hard to implement because quite often datasets data is being hosted in a
> single archive for all splits :( So we have to download the whole archive
> to split it into splits. This is the case for CommonVoice too.
>
> However, for cases when data is distributed in separate archives in
> different splits I suppose it can be implemented someday.
>
> Btw for quick check of the dataset you can use streaming
> <https://huggingface.co/docs/datasets/stream>:
>
> cv = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True)cv = iter(cv)print(next(cv))
> >> {'client_id': 'a07b17f8234ded5e847443ea6f423cef745cbbc7537fb637d58326000aa751e829a21c4fd0a35fc17fb833aa7e95ebafce5efd19beeb8d843887b85e4eb35f5b',>> 'path': None,>> 'audio': {'path': 'cv-corpus-11.0-2022-09-21/en/clips/common_voice_en_100363.mp3',>> 'array': array([ 0.0000000e+00, 1.1748125e-14, 1.5450088e-14, ...,>> 1.3011958e-06, -6.3548953e-08, -9.9098514e-08], dtype=float32),>> ...}
>
> β
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5243#issuecomment-1315512887>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOC3JYRCTH54OBRUJULWIOW6PANCNFSM6AAAAAASAYO2LY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
| ### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a | 421 | 208 | Download only split data
### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a
thank you for the answer but am not sure if this will not be helpful, as we
need maybe just 10% of the datasets for some experiment
can we get just a portion of the dataset with stream?
is there really no solution? :(
Am Di., 15. Nov. 2022 um 16:55 Uhr schrieb Polina Kazakova <
***@***.***>:
> Hi @capsabogdan <https://github.com/capsabogdan>! Unfortunately, it's
> hard to implement because quite often datasets data is being hosted in a
> single archive for all splits :( So we have to download the whole archive
> to split it into splits. This is the case for CommonVoice too.
>
> However, for cases when data is distributed in separate archives in
> different splits I suppose it can be implemented someday.
>
> Btw for quick check of the dataset you can use streaming
> <https://huggingface.co/docs/datasets/stream>:
>
> cv = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True)cv = iter(cv)print(next(cv))
> >> {'client_id': 'a07b17f8234ded5e847443ea6f423cef745cbbc7537fb637d58326000aa751e829a21c4fd0a35fc17fb833aa7e95ebafce5efd19beeb8d843887b85e4eb35f5b',>> 'path': None,>> 'audio': {'path': 'cv-corpus-11.0-2022-09-21/en/clips/common_voice_en_100363.mp3',>> 'array': array([ 0.0000000e+00, 1.1748125e-14, 1.5450088e-14, ...,>> 1.3011958e-06, -6.3548953e-08, -9.9098514e-08], dtype=float32),>> ...}
>
> β
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/5243#issuecomment-1315512887>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALSIFOC3JYRCTH54OBRUJULWIOW6PANCNFSM6AAAAAASAYO2LY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
| [
-1.202170968055725,
-0.9341188669204712,
-0.7028876543045044,
1.4606449604034424,
-0.16615751385688782,
-1.162764072418213,
0.10504326969385147,
-1.043096899986267,
1.601861834526062,
-0.7280812859535217,
0.22207695245742798,
-1.6831430196762085,
-0.06286701560020447,
-0.5465510487556458,
-0.7118850946426392,
-0.8961767554283142,
-0.40009212493896484,
-0.8331580758094788,
1.0595647096633911,
2.5434207916259766,
1.227759838104248,
-1.3656798601150513,
2.7223119735717773,
0.6860879063606262,
-0.19774135947227478,
-0.980512261390686,
0.5361060500144958,
-0.0422007292509079,
-1.2422358989715576,
-0.4805793762207031,
-0.9285918474197388,
-0.08700871467590332,
-0.5801546573638916,
-0.3799171447753906,
-0.008802629075944424,
0.42022547125816345,
-0.23302793502807617,
-0.33717164397239685,
-0.5732431411743164,
-0.7858436703681946,
0.43440690636634827,
-0.4504329562187195,
0.9530176520347595,
-0.30047738552093506,
1.7435908317565918,
-0.550748348236084,
0.4681117832660675,
0.6670746803283691,
1.243207335472107,
0.27412620186805725,
-0.028068549931049347,
0.2521608769893646,
0.4164181351661682,
-0.103519968688488,
0.5487504005432129,
1.1724869012832642,
0.6782216429710388,
0.5102577805519104,
0.7406682968139648,
-2.205165386199951,
1.2651026248931885,
-0.9437523484230042,
0.31187742948532104,
1.3667021989822388,
-0.8387213349342346,
0.46201252937316895,
-1.8344541788101196,
-0.057049091905355453,
0.5968894958496094,
-2.271153211593628,
0.25217217206954956,
-1.3169502019882202,
-0.5910395979881287,
0.912082850933075,
0.2909070551395416,
-1.2363699674606323,
0.061834532767534256,
-0.47475239634513855,
1.0511815547943115,
0.46336495876312256,
1.0737065076828003,
-1.72720468044281,
-0.06056046858429909,
-0.29116106033325195,
0.17466986179351807,
-1.229258418083191,
-1.6252739429473877,
0.6096253991127014,
0.6238132119178772,
0.564883828163147,
-0.1024487316608429,
0.9964930415153503,
-1.0761935710906982,
0.7741555571556091,
-0.9525370597839355,
-1.6502195596694946,
-1.455017328262329,
-2.3410720825195312,
-2.2184908390045166,
0.6780023574829102,
-0.5083639621734619,
-0.5284271240234375,
2.0118253231048584,
-0.9797569513320923,
-1.6845486164093018,
1.148957371711731,
0.2622031569480896,
0.046767182648181915,
2.4577889442443848,
0.20062534511089325,
-0.6777121424674988,
0.4369150400161743,
-0.7819884419441223,
0.7719038724899292,
-0.38041555881500244,
1.4155759811401367,
0.38285356760025024,
-0.9463486075401306,
1.6419402360916138,
-0.5124337077140808,
0.49868690967559814,
-0.6284900903701782,
-0.5524700284004211,
-0.6967449188232422,
0.2576451301574707,
1.899338722229004,
-0.3019935190677643,
1.595652461051941,
-0.30791306495666504,
-1.5185233354568481,
-1.5894865989685059,
0.8593485951423645,
0.4154333472251892,
-0.8876829147338867,
0.11851247400045395,
-0.505058228969574,
0.13926942646503448,
-0.06279489398002625,
1.085267186164856,
1.2858607769012451,
0.723652184009552,
-0.307303786277771,
-0.8963614702224731,
0.20060467720031738,
-0.09595197439193726,
-0.6972851157188416,
-1.7774063348770142,
-0.2587989270687103,
0.11633247882127762,
0.6666366457939148,
-1.1930339336395264,
1.7110742330551147,
0.8899530172348022,
1.9618993997573853,
0.9970226883888245,
-0.4093782901763916,
1.430105447769165,
0.16524028778076172,
1.7137994766235352,
-0.6034368276596069,
0.6299280524253845,
-0.4007498323917389,
-1.0960251092910767,
0.874025285243988,
-0.31763866543769836,
-1.9596484899520874,
-0.6821983456611633,
-0.829060971736908,
-0.21963432431221008,
-0.8656255006790161,
0.8969521522521973,
-0.2734871804714203,
-1.317236065864563,
0.3012162148952484,
-0.784815788269043,
0.16903406381607056,
-1.2565919160842896,
0.3792547583580017,
0.7971624732017517,
-0.6211525797843933,
0.07143734395503998,
-0.23193354904651642,
-1.3102277517318726,
-0.5178936123847961,
0.33825838565826416,
1.9191097021102905,
-0.5999698638916016,
0.79836505651474,
0.990985631942749,
-0.6795123219490051,
0.013130518607795238,
0.2974112927913666,
-0.26001301407814026,
0.7770181894302368,
-1.048373818397522,
-0.48641255497932434,
1.1569901704788208,
-0.28699928522109985,
-0.5759779810905457,
1.4219063520431519,
0.6677045822143555,
-1.0505528450012207,
-0.27615994215011597,
-0.14614666998386383,
-0.833984911441803,
0.021104294806718826,
-1.6214390993118286,
-0.14683040976524353,
0.36938759684562683,
-1.5918116569519043,
-0.5211914777755737,
-0.1958325207233429,
1.3275548219680786,
-0.13987751305103302,
1.4351849555969238,
-0.35164231061935425,
-0.06525193899869919,
-0.346423476934433,
-0.4473302662372589,
0.15722844004631042,
-0.2846200168132782,
-0.578086793422699,
0.1586519479751587,
-0.8504597544670105,
0.2802620530128479,
1.5139896869659424,
0.3281453251838684,
0.002842739224433899,
0.4693365693092346,
1.034324049949646,
0.39269962906837463,
-0.10470982640981674,
-0.8786742687225342,
-1.5104817152023315,
2.0011935234069824,
-1.528002381324768,
1.987587332725525,
0.7930827736854553,
-0.09219186753034592,
-1.7567671537399292,
-1.8756998777389526,
1.2533689737319946,
1.1224186420440674,
2.3355507850646973,
0.6056070327758789,
0.3691559433937073,
-0.7746590375900269,
-0.6252045631408691,
0.25290966033935547,
-1.0213075876235962,
-0.8061908483505249,
0.1677444875240326,
2.3866662979125977,
1.8017593622207642,
-0.5189943313598633,
-0.14864838123321533,
-0.9363552927970886,
1.3717100620269775,
-0.1635943204164505,
0.23190484941005707,
1.9934169054031372,
-0.27999040484428406,
-1.0741552114486694,
1.288716435432434,
-2.353597402572632,
0.19581764936447144,
1.9946166276931763,
0.2928329408168793,
0.15047255158424377,
-1.3209067583084106,
-0.6413043737411499,
-0.3460126519203186,
-0.3934057354927063,
-1.2706654071807861,
0.5667304992675781,
-0.25233304500579834,
-0.7736181616783142,
-1.5076661109924316,
0.17063751816749573,
-1.1298604011535645,
-1.613312840461731,
0.24920250475406647,
1.896321415901184,
2.1437935829162598,
-0.8004696369171143,
1.4733110666275024,
-0.29216527938842773,
0.09084118902683258,
1.1937854290008545,
1.260705590248108,
3.160069227218628,
1.9768930673599243,
-1.239959955215454,
0.6040537357330322,
-0.20713365077972412,
-0.47154679894447327,
1.188424825668335,
-1.2202889919281006,
1.2144341468811035,
-0.19474177062511444,
-1.2347006797790527,
-1.2062158584594727,
0.9695011973381042,
0.4699797034263611,
0.018113844096660614,
-0.5042738318443298,
1.1668977737426758,
0.08676766604185104,
1.4126557111740112,
0.5799643993377686,
-0.3521932065486908,
0.5569019317626953,
-0.4117301404476166,
-0.46560782194137573,
1.6055012941360474,
0.18248094618320465,
-1.506527304649353,
-2.309887647628784,
-0.2460785061120987,
-0.9037625789642334,
0.07878048717975616,
-0.614094614982605,
-1.0851064920425415,
1.675114393234253,
0.38420549035072327,
-1.1593979597091675,
-0.3466370403766632,
-0.3532405495643616,
-0.5289599895477295,
2.676513671875,
-1.4360369443893433,
-0.23736783862113953,
-0.9953576922416687,
-0.6226550936698914,
1.6553641557693481,
-1.2930686473846436,
-0.21333211660385132,
-1.021777868270874,
-0.6155769228935242,
-1.260776400566101,
-0.5035979151725769,
0.028567105531692505,
-0.9113675951957703,
0.8223187923431396,
0.3018338978290558,
-1.1594358682632446,
-0.3130369484424591,
-0.8931114077568054,
0.9289368987083435,
-0.17782093584537506,
0.24558492004871368,
1.881813645362854,
0.3034939169883728,
-0.41535085439682007,
0.7360094785690308,
1.1981574296951294,
0.6181468963623047,
-0.6378953456878662,
0.037474218755960464,
-0.675187885761261,
0.42499014735221863,
-1.3628995418548584,
0.25379684567451477,
-2.8728597164154053,
0.6204381585121155,
-0.05952388420701027,
-0.07367926090955734,
0.021889641880989075,
-1.3408763408660889,
1.1539227962493896,
2.5457608699798584,
-1.2021815776824951,
0.5504665970802307,
0.3794161081314087,
1.1965655088424683,
-1.6825939416885376,
0.32017841935157776,
-0.43035364151000977,
2.1823830604553223,
0.17773032188415527,
1.2219305038452148,
-0.4758470356464386,
-2.4007647037506104,
0.6037557721138,
-1.1724549531936646,
-1.1011009216308594,
0.6894193887710571,
-0.900294303894043,
0.05729943886399269,
-1.4883134365081787,
-0.2428567260503769,
-0.9153722524642944,
-1.2086560726165771,
0.7331054210662842,
0.06044256314635277,
0.391777366399765,
-0.640703022480011,
0.30276980996131897,
-2.217927932739258,
-1.3784650564193726,
-0.2368580400943756,
-0.9556207060813904,
0.46972590684890747,
-0.4221002459526062,
0.7407336831092834,
-0.14506596326828003,
0.015526131726801395,
0.29371413588523865,
1.4425394535064697,
3.383636713027954,
0.2000693678855896,
0.31506848335266113,
-0.20679214596748352,
-0.968129575252533,
1.4239178895950317,
0.8909465074539185,
-0.0590301938354969,
-0.5502533912658691,
-1.0642019510269165,
1.2987985610961914,
1.9783785343170166,
0.9204455018043518,
0.059483256191015244,
-0.795028030872345,
-0.6540985107421875,
-0.0852302685379982,
0.2878081202507019,
0.4844638407230377,
0.9691213369369507,
-0.024370606988668442,
0.10245730727910995,
1.3819169998168945,
1.2506252527236938,
-0.3814936578273773,
0.3490106463432312,
-0.78452467918396,
-0.47121578454971313,
0.4665786921977997,
0.24943701922893524,
-0.033996425569057465,
0.38347381353378296,
-0.988548219203949,
-0.26078903675079346,
-0.345711350440979,
-0.8818187713623047,
-0.6779519319534302,
-0.33919236063957214,
-0.2263297736644745,
1.6041721105575562,
0.11061601340770721,
-0.518059253692627,
0.026791665703058243,
-0.777162492275238,
-0.1836375892162323,
-1.1678670644760132,
0.13488604128360748,
-0.14167839288711548,
-0.07717283815145493,
-0.11139285564422607,
1.690915822982788,
-0.8396256566047668,
-2.1507043838500977,
0.18126969039440155,
0.3759220838546753,
-0.36902517080307007,
0.20402060449123383,
1.7442740201950073,
0.480524480342865,
1.4124870300292969,
1.2965389490127563,
0.9867372512817383,
-0.6013813614845276,
-1.25091552734375,
0.6797505021095276,
0.9723398685455322,
-1.3642370700836182,
0.9242672920227051,
-0.0790310800075531,
-0.5373319983482361,
0.6057078838348389,
1.2880067825317383,
0.5304592251777649,
-1.9193662405014038,
0.8936448693275452,
-0.9986411929130554,
0.8477764129638672,
0.7690284252166748,
0.8187018632888794,
0.25589337944984436,
0.8319137096405029,
-1.2479610443115234,
-1.1065748929977417,
-0.7750743627548218,
-0.6306285858154297,
1.9172314405441284,
-0.25728169083595276,
0.56645667552948,
-0.1618279218673706,
-1.2684574127197266,
-0.047100313007831573,
0.7237445712089539,
0.3473358750343323,
-0.4169006645679474,
0.7995808720588684,
-0.6380664110183716,
-1.112779140472412,
-1.2641500234603882,
-0.3542706370353699,
-0.9451250433921814,
-0.9819750785827637,
1.0759973526000977,
0.8016664981842041,
0.3459461033344269,
1.9725046157836914,
0.6137359142303467,
0.31295934319496155,
-2.603611469268799,
0.9182571768760681,
0.32890042662620544,
-0.07483629882335663,
0.9235373139381409,
0.34400615096092224,
1.1371277570724487,
0.053443316370248795,
0.5382811427116394,
-2.409684896469116,
2.2486517429351807,
-0.23631763458251953,
0.8235771656036377,
0.008378679864108562,
-0.08484134078025818,
1.0625355243682861,
0.625103235244751,
0.440154105424881,
-1.0623825788497925,
0.7471690773963928,
-0.5685174465179443,
1.1804146766662598,
0.9245518445968628,
-0.7975557446479797,
0.08409157395362854,
1.3307515382766724,
0.4573492407798767,
-0.6068801283836365,
-0.9638777375221252,
-0.8141591548919678,
0.9504302740097046,
1.7519409656524658,
-0.012558425776660442,
0.023404359817504883,
0.8210770487785339,
0.6658532023429871,
-1.2416553497314453,
0.06477443128824234,
-0.6492154002189636,
-0.6931189298629761,
1.6874619722366333,
2.0121963024139404,
-0.11800803244113922,
-0.201864093542099,
-0.6880399584770203,
-1.3613450527191162,
0.7713035941123962,
-0.029316429048776627,
0.18068566918373108,
0.694740355014801,
-0.6741076707839966,
1.0273767709732056,
0.7656073570251465,
0.9598451256752014,
0.21384766697883606,
0.3508184850215912,
0.5243099331855774,
-0.3350084722042084,
-1.062048077583313,
-0.27025139331817627,
-1.2571780681610107,
-2.5467381477355957,
0.48501893877983093,
-0.2682958245277405,
-1.3612934350967407,
-0.00343917915597558,
-0.993291974067688,
0.9703677892684937,
-0.6239956021308899,
-1.0692081451416016,
-1.4871952533721924,
0.19643478095531464,
-0.06654207408428192,
0.9442493319511414,
-1.5709437131881714,
-0.2202274203300476,
1.1743319034576416,
0.8907092809677124,
-0.6625012159347534,
0.9819461107254028,
0.28841570019721985,
1.0735222101211548,
0.7945848107337952,
-0.4275810122489929,
0.5338948369026184,
0.023005805909633636,
-1.3232959508895874,
0.42500874400138855,
1.2567092180252075,
0.19599373638629913,
1.397462010383606,
-0.5013096332550049,
-0.07108809798955917,
0.41498613357543945,
-0.5152040123939514,
-0.4825420677661896,
-0.4423710107803345,
0.6201829314231873,
-0.022038253024220467,
-0.9039179682731628,
-0.08440729975700378,
-0.15899701416492462,
-0.25897276401519775,
0.16201244294643402,
-1.522731900215149,
-0.17264965176582336,
-0.4768948554992676,
-0.49495968222618103,
-1.3032479286193848,
-0.11009205132722855,
1.4705466032028198,
-0.7997899055480957,
-0.2344783991575241,
0.4945288896560669,
0.3853994309902191,
0.5310656428337097,
0.5495076775550842,
-0.6835464239120483,
-0.2898533344268799,
-0.2569940388202667,
-0.3366416394710541,
0.31222447752952576,
1.321307897567749,
-0.1506718397140503,
-0.9955899119377136,
0.6154122352600098,
-0.3421725630760193,
0.10476162284612656,
1.9439352750778198,
0.08594731986522675,
-0.7669844627380371,
0.23148563504219055,
-0.6837416291236877,
1.9051176309585571,
1.6806827783584595,
1.3629980087280273,
-0.17818284034729004,
-0.850153386592865,
0.7097485065460205,
-0.34371334314346313,
-0.4174821376800537,
0.7328028678894043,
0.4402114450931549,
-0.2559150159358978,
-1.5045949220657349,
0.6937782764434814,
1.229972004890442,
-0.9332894086837769,
-0.7719274759292603,
0.15311945974826813,
-0.8212116956710815,
1.124245285987854,
0.6282681226730347,
0.40974345803260803,
0.2805017828941345,
1.7292016744613647,
0.7133761644363403,
-0.5159141421318054,
0.5707717537879944,
0.5793136358261108,
-0.20741474628448486,
-2.1007936000823975,
-1.173036813735962,
0.26651743054389954,
-0.47007349133491516,
-1.4777132272720337,
1.400205135345459,
-1.197547435760498,
-1.0153173208236694,
0.48196661472320557,
0.18291234970092773,
1.3881707191467285,
0.3563297688961029,
1.653178095817566,
2.0653491020202637,
0.8623791933059692,
0.4697699546813965,
1.2513806819915771,
-0.13032546639442444,
-0.41785648465156555,
1.8375890254974365,
-0.4194169342517853,
0.5632635951042175,
1.1622838973999023,
-0.3811616003513336,
-1.110487937927246,
-0.7660571336746216,
-1.2525038719177246,
-0.7286842465400696,
1.1932880878448486,
0.03973390534520149,
-1.1044188737869263,
0.29189980030059814,
1.6019591093063354,
0.07252749800682068,
-0.3538722097873688,
0.5711004734039307,
0.4407344460487366,
-0.785029411315918,
-0.11587092280387878,
-0.971828818321228,
0.5910984873771667,
-0.21041525900363922,
-0.34889188408851624,
0.28630495071411133,
0.49225348234176636,
1.346186876296997,
0.02125333994626999,
0.1417675018310547,
1.1636427640914917,
-1.384901762008667,
1.4789783954620361,
-0.6421468257904053,
0.1565445363521576,
-2.3591625690460205,
1.4104664325714111,
-0.7165835499763489,
1.989438533782959,
-2.6648645401000977,
0.48415738344192505,
-0.5984657406806946,
-0.4230596423149109,
0.3303068280220032,
-0.35648301243782043,
0.13516829907894135,
-0.1449078619480133,
-1.094414234161377,
-0.07990540564060211,
-0.6061820983886719,
0.5519514083862305,
1.1469162702560425,
1.3804601430892944,
-1.1439003944396973,
-0.22416889667510986,
-1.700494408607483,
-0.17675305902957916,
-0.7771549820899963,
0.2131248563528061,
-1.988754153251648,
-0.2156224250793457,
-1.90677011013031,
-2.317439556121826,
-1.2916162014007568,
-0.7914924025535583,
1.0552421808242798,
0.10128819197416306,
-0.9443424940109253,
1.318239688873291,
-0.4056355059146881,
-1.7387325763702393,
1.0982567071914673,
-2.1472485065460205
] |
https://github.com/huggingface/datasets/issues/5243 | Download only split data | maybe it would be nice if you guys ould do some sort of shard before
loading the dataset, so users can download just chunks of data :)
I think this would be very helpful
Am Di., 15. Nov. 2022 um 19:24 Uhr schrieb Bogdan Capsa <
***@***.***>:
> thank you for the answer but am not sure if this will not be helpful, as
> we need maybe just 10% of the datasets for some experiment
>
> can we get just a portion of the dataset with stream?
>
>
> is there really no solution? :(
>
> Am Di., 15. Nov. 2022 um 16:55 Uhr schrieb Polina Kazakova <
> ***@***.***>:
>
>> Hi @capsabogdan <https://github.com/capsabogdan>! Unfortunately, it's
>> hard to implement because quite often datasets data is being hosted in a
>> single archive for all splits :( So we have to download the whole archive
>> to split it into splits. This is the case for CommonVoice too.
>>
>> However, for cases when data is distributed in separate archives in
>> different splits I suppose it can be implemented someday.
>>
>> Btw for quick check of the dataset you can use streaming
>> <https://huggingface.co/docs/datasets/stream>:
>>
>> cv = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True)cv = iter(cv)print(next(cv))
>> >> {'client_id': 'a07b17f8234ded5e847443ea6f423cef745cbbc7537fb637d58326000aa751e829a21c4fd0a35fc17fb833aa7e95ebafce5efd19beeb8d843887b85e4eb35f5b',>> 'path': None,>> 'audio': {'path': 'cv-corpus-11.0-2022-09-21/en/clips/common_voice_en_100363.mp3',>> 'array': array([ 0.0000000e+00, 1.1748125e-14, 1.5450088e-14, ...,>> 1.3011958e-06, -6.3548953e-08, -9.9098514e-08], dtype=float32),>> ...}
>>
>> β
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/datasets/issues/5243#issuecomment-1315512887>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ALSIFOC3JYRCTH54OBRUJULWIOW6PANCNFSM6AAAAAASAYO2LY>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***>
>>
>
| ### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a | 421 | 267 | Download only split data
### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a
maybe it would be nice if you guys ould do some sort of shard before
loading the dataset, so users can download just chunks of data :)
I think this would be very helpful
Am Di., 15. Nov. 2022 um 19:24 Uhr schrieb Bogdan Capsa <
***@***.***>:
> thank you for the answer but am not sure if this will not be helpful, as
> we need maybe just 10% of the datasets for some experiment
>
> can we get just a portion of the dataset with stream?
>
>
> is there really no solution? :(
>
> Am Di., 15. Nov. 2022 um 16:55 Uhr schrieb Polina Kazakova <
> ***@***.***>:
>
>> Hi @capsabogdan <https://github.com/capsabogdan>! Unfortunately, it's
>> hard to implement because quite often datasets data is being hosted in a
>> single archive for all splits :( So we have to download the whole archive
>> to split it into splits. This is the case for CommonVoice too.
>>
>> However, for cases when data is distributed in separate archives in
>> different splits I suppose it can be implemented someday.
>>
>> Btw for quick check of the dataset you can use streaming
>> <https://huggingface.co/docs/datasets/stream>:
>>
>> cv = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True)cv = iter(cv)print(next(cv))
>> >> {'client_id': 'a07b17f8234ded5e847443ea6f423cef745cbbc7537fb637d58326000aa751e829a21c4fd0a35fc17fb833aa7e95ebafce5efd19beeb8d843887b85e4eb35f5b',>> 'path': None,>> 'audio': {'path': 'cv-corpus-11.0-2022-09-21/en/clips/common_voice_en_100363.mp3',>> 'array': array([ 0.0000000e+00, 1.1748125e-14, 1.5450088e-14, ...,>> 1.3011958e-06, -6.3548953e-08, -9.9098514e-08], dtype=float32),>> ...}
>>
>> β
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/datasets/issues/5243#issuecomment-1315512887>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ALSIFOC3JYRCTH54OBRUJULWIOW6PANCNFSM6AAAAAASAYO2LY>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***>
>>
>
| [
-1.1948938369750977,
-0.9138790965080261,
-0.6739316582679749,
1.348024845123291,
-0.1888091266155243,
-1.1982195377349854,
0.14460954070091248,
-1.1270990371704102,
1.6381313800811768,
-0.7034646272659302,
0.2245643585920334,
-1.6853052377700806,
-0.0985102728009224,
-0.5439233183860779,
-0.7480006217956543,
-0.9470905065536499,
-0.4390990436077118,
-0.8560563921928406,
1.0036640167236328,
2.5579144954681396,
1.2533409595489502,
-1.3783010244369507,
2.67464017868042,
0.6458721160888672,
-0.2227143943309784,
-0.9937834739685059,
0.5465777516365051,
0.022190356627106667,
-1.2645955085754395,
-0.5336589217185974,
-0.8654096126556396,
-0.11262242496013641,
-0.5975556373596191,
-0.39234763383865356,
-0.010194538161158562,
0.3639383614063263,
-0.1891641467809677,
-0.26480188965797424,
-0.5706547498703003,
-0.7717967629432678,
0.39912673830986023,
-0.4443896412849426,
0.9685385227203369,
-0.31869643926620483,
1.7142953872680664,
-0.6040103435516357,
0.48309946060180664,
0.6936464309692383,
1.238716959953308,
0.30121901631355286,
-0.07933498173952103,
0.2243785858154297,
0.4444861114025116,
-0.08344178646802902,
0.4712023437023163,
1.1237163543701172,
0.6663177609443665,
0.5282849669456482,
0.7305750846862793,
-2.146436929702759,
1.2783082723617554,
-0.8909090757369995,
0.3540416359901428,
1.3329036235809326,
-0.8222314715385437,
0.44595804810523987,
-1.8438640832901,
-0.0624527633190155,
0.6114736795425415,
-2.3623759746551514,
0.19193194806575775,
-1.396709680557251,
-0.6326512098312378,
0.8574346899986267,
0.24607709050178528,
-1.2640100717544556,
0.0712207779288292,
-0.47143304347991943,
1.0367213487625122,
0.46873998641967773,
1.1073263883590698,
-1.7940891981124878,
-0.05833917856216431,
-0.3054949939250946,
0.17355956137180328,
-1.1888459920883179,
-1.6333972215652466,
0.6687185168266296,
0.6540641188621521,
0.5451889038085938,
-0.089926578104496,
0.9297506809234619,
-0.9803456664085388,
0.7802722454071045,
-0.9356712102890015,
-1.6649270057678223,
-1.4479230642318726,
-2.262204647064209,
-2.2530112266540527,
0.6889702081680298,
-0.5823185443878174,
-0.4988657534122467,
2.0202689170837402,
-0.9819470047950745,
-1.6976613998413086,
1.11907160282135,
0.2554005980491638,
0.018485363572835922,
2.454716205596924,
0.19474340975284576,
-0.602997899055481,
0.398639440536499,
-0.7472555041313171,
0.8166422843933105,
-0.3374979496002197,
1.4143624305725098,
0.342838317155838,
-0.921515941619873,
1.6547895669937134,
-0.5408941507339478,
0.48954352736473083,
-0.6205498576164246,
-0.6163522005081177,
-0.7027043700218201,
0.23915112018585205,
1.9063847064971924,
-0.30469444394111633,
1.6802271604537964,
-0.32969170808792114,
-1.580756664276123,
-1.6221901178359985,
0.8611474633216858,
0.45703911781311035,
-0.9011874794960022,
0.11712398380041122,
-0.5172119736671448,
0.10560891777276993,
-0.021175656467676163,
1.0696545839309692,
1.3095154762268066,
0.7473817467689514,
-0.3196108341217041,
-0.8800142407417297,
0.14927858114242554,
-0.04780977964401245,
-0.740391731262207,
-1.8093849420547485,
-0.2616495192050934,
0.07338394224643707,
0.699144721031189,
-1.1716456413269043,
1.6618776321411133,
0.8916768431663513,
1.9876233339309692,
0.9954111576080322,
-0.4209476411342621,
1.4069288969039917,
0.15118816494941711,
1.7126851081848145,
-0.645649790763855,
0.6353296637535095,
-0.3729340136051178,
-1.0040141344070435,
0.8896385431289673,
-0.31829535961151123,
-1.9149037599563599,
-0.6628695130348206,
-0.7956464290618896,
-0.2413254678249359,
-0.8636044859886169,
0.9132635593414307,
-0.20066554844379425,
-1.2624260187149048,
0.3434654176235199,
-0.7962067723274231,
0.12541276216506958,
-1.2795361280441284,
0.3901381194591522,
0.822904646396637,
-0.6032484173774719,
0.05994483828544617,
-0.2751144766807556,
-1.3215820789337158,
-0.5266249775886536,
0.25779372453689575,
1.9100847244262695,
-0.6175510883331299,
0.8348464965820312,
0.9399722814559937,
-0.6871821284294128,
-0.013167286291718483,
0.3237433135509491,
-0.23364463448524475,
0.7788876295089722,
-1.1115307807922363,
-0.3694596588611603,
1.1134260892868042,
-0.25959262251853943,
-0.4824132025241852,
1.4132215976715088,
0.631547749042511,
-1.0415565967559814,
-0.22427694499492645,
-0.16161872446537018,
-0.7945896983146667,
0.03146533668041229,
-1.6857999563217163,
-0.11129004508256912,
0.34926268458366394,
-1.6064871549606323,
-0.5636160969734192,
-0.20261208713054657,
1.3288894891738892,
-0.111236073076725,
1.4000608921051025,
-0.3142816424369812,
-0.06386744976043701,
-0.4205877482891083,
-0.4103822410106659,
0.13880066573619843,
-0.3280476927757263,
-0.5533474683761597,
0.18681760132312775,
-0.8602491617202759,
0.23913294076919556,
1.537773609161377,
0.31045064330101013,
-0.015344258397817612,
0.4380823075771332,
1.0226765871047974,
0.3731546103954315,
-0.16779044270515442,
-0.8818359971046448,
-1.4876885414123535,
2.034543514251709,
-1.5412496328353882,
1.9472869634628296,
0.798282265663147,
-0.08661266416311264,
-1.754517912864685,
-1.9151849746704102,
1.2431389093399048,
1.1444212198257446,
2.3301119804382324,
0.6469014883041382,
0.37197446823120117,
-0.7098751068115234,
-0.5784909129142761,
0.21349270641803741,
-1.0532783269882202,
-0.8489638566970825,
0.1404852271080017,
2.373518943786621,
1.7436959743499756,
-0.6092949509620667,
-0.11984895914793015,
-0.9314220547676086,
1.3741453886032104,
-0.11267314106225967,
0.18907254934310913,
1.9979547262191772,
-0.2700195610523224,
-1.1639915704727173,
1.2684926986694336,
-2.2587759494781494,
0.1462627649307251,
1.9771665334701538,
0.26053524017333984,
0.1962074488401413,
-1.3097305297851562,
-0.6098703145980835,
-0.36664527654647827,
-0.397855669260025,
-1.2680684328079224,
0.5732879042625427,
-0.2571958005428314,
-0.7586139440536499,
-1.5557312965393066,
0.2104785144329071,
-1.0635478496551514,
-1.6386525630950928,
0.2514042854309082,
1.91904878616333,
2.0899338722229004,
-0.7977467775344849,
1.4676592350006104,
-0.3580107092857361,
0.030575426295399666,
1.1588664054870605,
1.1994093656539917,
3.1894819736480713,
2.0025100708007812,
-1.217570424079895,
0.5846953988075256,
-0.20429283380508423,
-0.46318623423576355,
1.195283055305481,
-1.188963532447815,
1.2120622396469116,
-0.24837756156921387,
-1.2311919927597046,
-1.192905306816101,
0.9745640754699707,
0.4477165937423706,
0.028374044224619865,
-0.5432323217391968,
1.21352219581604,
0.02787904627621174,
1.477484107017517,
0.5653881430625916,
-0.3811801075935364,
0.6169039011001587,
-0.4421226978302002,
-0.4433574378490448,
1.6487435102462769,
0.2523660361766815,
-1.5216233730316162,
-2.371192455291748,
-0.23354268074035645,
-0.8756264448165894,
0.1074499636888504,
-0.5996561050415039,
-1.1281284093856812,
1.6770762205123901,
0.44620442390441895,
-1.2004115581512451,
-0.41697317361831665,
-0.37246444821357727,
-0.5767881870269775,
2.62829852104187,
-1.4662206172943115,
-0.18244077265262604,
-0.9635786414146423,
-0.5836979746818542,
1.6660008430480957,
-1.3292067050933838,
-0.21609076857566833,
-1.0201234817504883,
-0.6191046833992004,
-1.2367491722106934,
-0.4934472441673279,
0.010519368574023247,
-0.9234240055084229,
0.8042276501655579,
0.28481265902519226,
-1.1611242294311523,
-0.278194785118103,
-0.8904575109481812,
0.8512787818908691,
-0.16152900457382202,
0.3095570206642151,
1.8820257186889648,
0.3339201807975769,
-0.4201967716217041,
0.6829922199249268,
1.2070928812026978,
0.6022259593009949,
-0.684731662273407,
0.001660102978348732,
-0.715019941329956,
0.4281884729862213,
-1.3579920530319214,
0.24536481499671936,
-2.8609507083892822,
0.6692467927932739,
-0.054642342031002045,
-0.01838984154164791,
0.040972210466861725,
-1.3580268621444702,
1.2051619291305542,
2.605532646179199,
-1.1915106773376465,
0.5332169532775879,
0.3765076696872711,
1.1710748672485352,
-1.6471562385559082,
0.3441627621650696,
-0.3951069414615631,
2.25229811668396,
0.22745861113071442,
1.226793646812439,
-0.4527662694454193,
-2.4013185501098633,
0.6144591569900513,
-1.1214969158172607,
-1.158321499824524,
0.6966947913169861,
-0.8666592240333557,
-0.07406968623399734,
-1.560413122177124,
-0.18127061426639557,
-0.9240602254867554,
-1.1894009113311768,
0.7910178303718567,
0.038984283804893494,
0.4135519862174988,
-0.6715185642242432,
0.2929016649723053,
-2.2205469608306885,
-1.3371094465255737,
-0.26817449927330017,
-0.9551582336425781,
0.45723071694374084,
-0.35720115900039673,
0.7629839777946472,
-0.16615833342075348,
0.024816257879137993,
0.3472594916820526,
1.413053274154663,
3.387965440750122,
0.1582060158252716,
0.2988833785057068,
-0.22316434979438782,
-0.9336474537849426,
1.3840500116348267,
0.8902466893196106,
-0.03757130727171898,
-0.5592407584190369,
-1.058523416519165,
1.2714183330535889,
2.012970447540283,
0.8933269381523132,
0.09613689035177231,
-0.8371523022651672,
-0.5858620405197144,
-0.06575188785791397,
0.37599611282348633,
0.4799337685108185,
0.9918767213821411,
0.010032081976532936,
0.13407985866069794,
1.3593467473983765,
1.275709629058838,
-0.35847026109695435,
0.4553869664669037,
-0.781196117401123,
-0.4697061777114868,
0.4905041754245758,
0.28595954179763794,
0.00458216667175293,
0.38329312205314636,
-0.9301372766494751,
-0.2510271370410919,
-0.31436166167259216,
-0.9053239822387695,
-0.6962513327598572,
-0.32875144481658936,
-0.24688692390918732,
1.6045198440551758,
0.05070609599351883,
-0.4842234253883362,
0.03870778530836105,
-0.7299272418022156,
-0.1799173504114151,
-1.188364028930664,
0.21906235814094543,
-0.14920572936534882,
-0.06490688025951385,
-0.07573916018009186,
1.7039272785186768,
-0.83927321434021,
-2.098483085632324,
0.24765193462371826,
0.3826860189437866,
-0.47781386971473694,
0.21941344439983368,
1.715676188468933,
0.46850621700286865,
1.4620158672332764,
1.2898136377334595,
1.0151677131652832,
-0.6227748394012451,
-1.2162901163101196,
0.671326220035553,
0.9239135384559631,
-1.3668006658554077,
0.8719062209129333,
-0.02869569882750511,
-0.5473078489303589,
0.6046535968780518,
1.2476505041122437,
0.5139250159263611,
-1.937585711479187,
0.9143080711364746,
-0.9283239841461182,
0.8421948552131653,
0.7443966865539551,
0.8705581426620483,
0.2627051770687103,
0.839789628982544,
-1.293161153793335,
-1.0787214040756226,
-0.8095085024833679,
-0.5737051367759705,
1.9179012775421143,
-0.20302864909172058,
0.5234081745147705,
-0.1932397037744522,
-1.262054681777954,
-0.06977668404579163,
0.7169377207756042,
0.37680891156196594,
-0.38370734453201294,
0.7895640134811401,
-0.5920474529266357,
-1.1363400220870972,
-1.2526417970657349,
-0.3222379982471466,
-0.9168307185173035,
-0.9685986042022705,
1.0970135927200317,
0.8365880250930786,
0.3676450550556183,
1.9394917488098145,
0.5136396884918213,
0.30371710658073425,
-2.6530754566192627,
0.9476300477981567,
0.3340696692466736,
-0.12903207540512085,
0.9969685077667236,
0.42612698674201965,
1.1220380067825317,
0.05249074846506119,
0.5280501246452332,
-2.4315381050109863,
2.2774085998535156,
-0.234139546751976,
0.8168939352035522,
0.03980620950460434,
-0.07230471074581146,
1.0493515729904175,
0.6458308100700378,
0.41255369782447815,
-1.031484842300415,
0.7758931517601013,
-0.5603232383728027,
1.166839599609375,
0.9073311686515808,
-0.783389151096344,
0.0830010250210762,
1.3268866539001465,
0.5049934983253479,
-0.578669011592865,
-0.9618774056434631,
-0.783796489238739,
0.9003637433052063,
1.7762700319290161,
-0.053305402398109436,
-0.005708614364266396,
0.7135316133499146,
0.6763612031936646,
-1.2474089860916138,
0.10018185526132584,
-0.6665287613868713,
-0.7531265616416931,
1.6114989519119263,
1.9796581268310547,
-0.04814619570970535,
-0.1972181349992752,
-0.724958062171936,
-1.3330893516540527,
0.8087298274040222,
-0.0038344147615134716,
0.21611128747463226,
0.6738393902778625,
-0.6527164578437805,
1.0727959871292114,
0.7824556231498718,
0.9664515852928162,
0.23196446895599365,
0.4503617584705353,
0.5543633103370667,
-0.28527894616127014,
-1.0376534461975098,
-0.2832949757575989,
-1.2879546880722046,
-2.5199670791625977,
0.551710844039917,
-0.35666462779045105,
-1.3247733116149902,
-0.07828642427921295,
-0.9930403828620911,
0.9365557432174683,
-0.663853108882904,
-1.0062370300292969,
-1.5391019582748413,
0.17550572752952576,
-0.0945974662899971,
1.0127170085906982,
-1.5326882600784302,
-0.17967194318771362,
1.1443214416503906,
0.8723621368408203,
-0.6685519218444824,
0.9985535144805908,
0.320826917886734,
1.0433070659637451,
0.8256436586380005,
-0.427063524723053,
0.4896432161331177,
0.0720096006989479,
-1.3086093664169312,
0.4129307270050049,
1.2325712442398071,
0.2322080433368683,
1.3526579141616821,
-0.5610824823379517,
-0.09828288108110428,
0.4249052107334137,
-0.40255308151245117,
-0.45863568782806396,
-0.4410274624824524,
0.6265523433685303,
0.02705778367817402,
-0.9644613862037659,
-0.056381553411483765,
-0.2538686990737915,
-0.19093094766139984,
0.19612115621566772,
-1.520982265472412,
-0.1908038705587387,
-0.537531852722168,
-0.4303247630596161,
-1.269033670425415,
-0.15952587127685547,
1.4889339208602905,
-0.7888471484184265,
-0.1708626002073288,
0.5222625732421875,
0.4061821699142456,
0.5165053009986877,
0.5626569986343384,
-0.6397448778152466,
-0.34617045521736145,
-0.3316305875778198,
-0.35157468914985657,
0.2586914896965027,
1.2998758554458618,
-0.16215501725673676,
-1.0289007425308228,
0.6158064007759094,
-0.35818931460380554,
0.0676429271697998,
2.005720376968384,
0.1343952715396881,
-0.7846554517745972,
0.23066461086273193,
-0.6030358672142029,
1.888028860092163,
1.6819360256195068,
1.3625004291534424,
-0.13487601280212402,
-0.9075869917869568,
0.632144033908844,
-0.3048064410686493,
-0.4324966371059418,
0.7102454304695129,
0.5142456293106079,
-0.2220679372549057,
-1.54035484790802,
0.6497642397880554,
1.237550973892212,
-0.9650363326072693,
-0.7659927606582642,
0.10831040143966675,
-0.816652238368988,
1.0184820890426636,
0.6695907115936279,
0.46302610635757446,
0.2733711302280426,
1.7111226320266724,
0.6604783535003662,
-0.5199810266494751,
0.5511361360549927,
0.5145398378372192,
-0.20635487139225006,
-2.093815803527832,
-1.2656604051589966,
0.249963641166687,
-0.43006497621536255,
-1.472498893737793,
1.4370173215866089,
-1.2323155403137207,
-0.9984501004219055,
0.45396971702575684,
0.19961819052696228,
1.4071801900863647,
0.3576038181781769,
1.6994383335113525,
2.084876537322998,
0.8849422931671143,
0.41932475566864014,
1.3402191400527954,
-0.11784711480140686,
-0.42322492599487305,
1.8144322633743286,
-0.41542568802833557,
0.5590102076530457,
1.2080446481704712,
-0.38463735580444336,
-1.0451349020004272,
-0.8015543818473816,
-1.2481080293655396,
-0.7544990181922913,
1.17345130443573,
0.014098655432462692,
-1.1320620775222778,
0.30840060114860535,
1.6319659948349,
0.059096261858940125,
-0.3544508218765259,
0.5295158624649048,
0.45512017607688904,
-0.7909495234489441,
-0.1433599889278412,
-1.0446605682373047,
0.589954674243927,
-0.22555933892726898,
-0.3742729723453522,
0.27705588936805725,
0.48776352405548096,
1.3278969526290894,
0.007925719022750854,
0.13118351995944977,
1.1954710483551025,
-1.323402762413025,
1.4251068830490112,
-0.5576287508010864,
0.1076568216085434,
-2.346359968185425,
1.4834418296813965,
-0.6825718879699707,
1.9348046779632568,
-2.6697113513946533,
0.4622586965560913,
-0.5942016243934631,
-0.33756816387176514,
0.3384402394294739,
-0.31567683815956116,
0.2201480120420456,
-0.22584989666938782,
-1.1068100929260254,
-0.1155925989151001,
-0.6132928729057312,
0.5777055025100708,
1.0906956195831299,
1.4106208086013794,
-1.132712483406067,
-0.2212756723165512,
-1.7132126092910767,
-0.17249532043933868,
-0.7562732696533203,
0.19620466232299805,
-1.9800053834915161,
-0.1771988570690155,
-1.882351279258728,
-2.328645706176758,
-1.3146461248397827,
-0.7661234736442566,
0.9680887460708618,
0.07772045582532883,
-0.9084339737892151,
1.2812384366989136,
-0.4030025005340576,
-1.749692440032959,
1.100240707397461,
-2.146311044692993
] |
https://github.com/huggingface/datasets/issues/5243 | Download only split data | +1 on this feature request - I am running into the same problem, where I only need the test set for a dataset that has a huge training set | ### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a | 421 | 29 | Download only split data
### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a
+1 on this feature request - I am running into the same problem, where I only need the test set for a dataset that has a huge training set | [
-1.1919286251068115,
-0.9124391674995422,
-0.8510715961456299,
1.5270196199417114,
-0.17814093828201294,
-1.2241452932357788,
0.1413055956363678,
-1.047463059425354,
1.4969899654388428,
-0.8775826692581177,
0.28730443120002747,
-1.6681512594223022,
0.07874590903520584,
-0.5530648231506348,
-0.5939956903457642,
-0.9930498003959656,
-0.3203551173210144,
-0.7478023171424866,
1.1464396715164185,
2.4499194622039795,
1.1660126447677612,
-1.2208060026168823,
2.6985301971435547,
0.6893160939216614,
-0.21423062682151794,
-0.944031298160553,
0.6031175255775452,
0.13095614314079285,
-1.190366268157959,
-0.4302307963371277,
-0.9810016751289368,
-0.12114384025335312,
-0.5112829804420471,
-0.31740835309028625,
-0.10621722042560577,
0.4655768573284149,
-0.30819985270500183,
-0.3322453200817108,
-0.5624679923057556,
-0.8748685717582703,
0.4877053499221802,
-0.46352672576904297,
0.9785810708999634,
-0.40463411808013916,
1.8951152563095093,
-0.5074859261512756,
0.3784886598587036,
0.6602483987808228,
1.235769510269165,
0.18534201383590698,
0.026364605873823166,
0.21116721630096436,
0.4191950559616089,
-0.10416138917207718,
0.5013236999511719,
1.1888047456741333,
0.5213557481765747,
0.7268708944320679,
0.700950026512146,
-2.1133170127868652,
1.2859524488449097,
-1.0037606954574585,
0.2825012803077698,
1.4095717668533325,
-1.019204020500183,
0.44301316142082214,
-1.6570788621902466,
-0.17512938380241394,
0.5233073234558105,
-2.3450069427490234,
0.3086145520210266,
-1.2758387327194214,
-0.6557891964912415,
0.9054352641105652,
0.34240904450416565,
-1.2247624397277832,
0.05661498010158539,
-0.5241460204124451,
1.070055603981018,
0.4780886769294739,
0.9944538474082947,
-1.5835405588150024,
-0.015930600464344025,
-0.3394896984100342,
0.04400622472167015,
-1.4726136922836304,
-1.5676968097686768,
0.6359338760375977,
0.6623641848564148,
0.5274323225021362,
-0.0614711195230484,
1.0839159488677979,
-1.131231665611267,
0.8466519713401794,
-0.9601413011550903,
-1.6085292100906372,
-1.4871845245361328,
-2.4478518962860107,
-2.2722015380859375,
0.7472718954086304,
-0.45402005314826965,
-0.5888572335243225,
2.0120530128479004,
-0.9592095017433167,
-1.638716697692871,
1.2198872566223145,
0.11253800243139267,
0.0002817874774336815,
2.474210262298584,
0.18997704982757568,
-0.6786954402923584,
0.39264002442359924,
-0.8434985280036926,
0.8923409581184387,
-0.4318053722381592,
1.3650678396224976,
0.49300965666770935,
-1.0072879791259766,
1.6104342937469482,
-0.40244260430336,
0.5278326869010925,
-0.5945960283279419,
-0.5960899591445923,
-0.7931914329528809,
0.2554595470428467,
1.8633357286453247,
-0.32977139949798584,
1.6520651578903198,
-0.229908287525177,
-1.4684138298034668,
-1.609137773513794,
0.8754666447639465,
0.31562483310699463,
-0.8061659336090088,
0.12808406352996826,
-0.44188162684440613,
0.20900699496269226,
-0.00903406459838152,
1.203133225440979,
1.27625572681427,
0.6629076600074768,
-0.30433470010757446,
-0.7680680751800537,
0.2494560182094574,
-0.09625042229890823,
-0.6348148584365845,
-1.7517131567001343,
-0.365837424993515,
0.059683144092559814,
0.6640682816505432,
-1.1159921884536743,
1.7925095558166504,
0.9152082800865173,
1.8989341259002686,
1.0162895917892456,
-0.2649367153644562,
1.4126973152160645,
0.046244993805885315,
1.756267786026001,
-0.5247621536254883,
0.6431517601013184,
-0.3399863541126251,
-1.008244514465332,
0.858164370059967,
-0.3660467863082886,
-1.9357422590255737,
-0.8755211234092712,
-0.8780859708786011,
-0.15608739852905273,
-0.8939672112464905,
0.9394626021385193,
-0.43497776985168457,
-1.340789794921875,
0.21775469183921814,
-0.7311438322067261,
0.12422006577253342,
-1.2051805257797241,
0.36831000447273254,
0.7888659238815308,
-0.6138828992843628,
0.053869426250457764,
-0.17828917503356934,
-1.1980830430984497,
-0.4280741214752197,
0.3843408226966858,
1.9620153903961182,
-0.5727723240852356,
0.8945125937461853,
0.9543206095695496,
-0.7129641771316528,
0.005780410952866077,
0.23813384771347046,
-0.230422705411911,
0.734881579875946,
-0.9718894958496094,
-0.4532908797264099,
1.1534088850021362,
-0.41427454352378845,
-0.6850235462188721,
1.4968295097351074,
0.7156404256820679,
-1.0394192934036255,
-0.18213596940040588,
-0.1805131435394287,
-0.8759641647338867,
0.0332690067589283,
-1.4972386360168457,
-0.16016268730163574,
0.4179433286190033,
-1.5087957382202148,
-0.4173893630504608,
-0.12115678191184998,
1.3579789400100708,
-0.1540887951850891,
1.427260398864746,
-0.39365464448928833,
-0.27623921632766724,
-0.29349422454833984,
-0.5250011682510376,
0.20690855383872986,
-0.25346657633781433,
-0.6256751418113708,
0.16110321879386902,
-0.7608041167259216,
0.31823408603668213,
1.479569911956787,
0.3207440972328186,
0.1457323133945465,
0.5765429139137268,
1.0290617942810059,
0.35442522168159485,
-0.13016945123672485,
-0.8944602012634277,
-1.5027917623519897,
1.922336459159851,
-1.5113484859466553,
2.037316083908081,
0.7807570099830627,
-0.14551007747650146,
-1.8211078643798828,
-1.8510645627975464,
1.2445385456085205,
1.2159922122955322,
2.214064121246338,
0.6080611944198608,
0.2607492506504059,
-0.8342441320419312,
-0.6762217283248901,
0.2536085546016693,
-1.1191625595092773,
-0.6721581816673279,
0.10764605551958084,
2.254189968109131,
1.8527921438217163,
-0.4411242604255676,
-0.17522892355918884,
-1.0302475690841675,
1.3634265661239624,
-0.20131617784500122,
0.2132272720336914,
2.019956111907959,
-0.3956124782562256,
-1.0819435119628906,
1.1452093124389648,
-2.33847975730896,
0.06434743851423264,
2.0149292945861816,
0.3781547546386719,
0.03547809645533562,
-1.380397915840149,
-0.620984673500061,
-0.3782714307308197,
-0.41971829533576965,
-1.3205989599227905,
0.5706125497817993,
-0.30152222514152527,
-0.6750446557998657,
-1.430685043334961,
0.18447035551071167,
-1.1459014415740967,
-1.682349443435669,
0.3250408470630646,
1.8823670148849487,
2.132951259613037,
-0.675126850605011,
1.4857841730117798,
-0.2326054573059082,
0.11533453315496445,
1.2573751211166382,
1.2459641695022583,
3.143470048904419,
1.9897332191467285,
-1.173356294631958,
0.5831265449523926,
-0.15806537866592407,
-0.4269358515739441,
1.1919796466827393,
-1.163629174232483,
1.3747048377990723,
-0.10706987231969833,
-1.1535892486572266,
-1.275683879852295,
0.9218862056732178,
0.38860592246055603,
0.029728278517723083,
-0.4974463880062103,
1.2306954860687256,
0.19456562399864197,
1.3716630935668945,
0.5385458469390869,
-0.3626636862754822,
0.574398398399353,
-0.46791747212409973,
-0.543711245059967,
1.6560338735580444,
0.21108031272888184,
-1.5845292806625366,
-2.2948455810546875,
-0.2970302402973175,
-0.808264434337616,
0.03959638625383377,
-0.572781503200531,
-1.1040488481521606,
1.7577228546142578,
0.4259212911128998,
-1.1308684349060059,
-0.32453733682632446,
-0.43821465969085693,
-0.7168257832527161,
2.8531718254089355,
-1.3276559114456177,
-0.27256518602371216,
-0.9192665219306946,
-0.7022632360458374,
1.6628106832504272,
-1.3537014722824097,
-0.20417940616607666,
-0.9971996545791626,
-0.5847119688987732,
-1.2620562314987183,
-0.46498003602027893,
0.03840815648436546,
-0.9922836422920227,
0.8124476671218872,
0.15733540058135986,
-1.1074531078338623,
-0.2909194827079773,
-0.8361503481864929,
0.9386143088340759,
-0.17500010132789612,
0.3470725417137146,
1.8622468709945679,
0.2582601308822632,
-0.4647349715232849,
0.7578317523002625,
1.186292052268982,
0.6711982488632202,
-0.7022712230682373,
0.10892105102539062,
-0.6244038939476013,
0.4225274324417114,
-1.2010422945022583,
0.30791983008384705,
-2.9049344062805176,
0.5323424339294434,
-0.1839577853679657,
-0.15107083320617676,
0.016037913039326668,
-1.3137133121490479,
1.1285254955291748,
2.468522071838379,
-1.1573301553726196,
0.4810805022716522,
0.2943042814731598,
1.2531023025512695,
-1.6060599088668823,
0.44727176427841187,
-0.4890761971473694,
2.070115566253662,
0.25384455919265747,
1.1878718137741089,
-0.5262788534164429,
-2.257561445236206,
0.7184187769889832,
-1.2236698865890503,
-1.2185455560684204,
0.7868438363075256,
-0.9385157227516174,
0.14747074246406555,
-1.3921912908554077,
-0.3024754822254181,
-0.8401898145675659,
-1.2827092409133911,
0.6413547992706299,
0.1834668517112732,
0.4959160387516022,
-0.6160457134246826,
0.21783176064491272,
-2.2468316555023193,
-1.4411396980285645,
-0.2504964768886566,
-0.9862313270568848,
0.4187297224998474,
-0.5032150745391846,
0.6455660462379456,
-0.253295361995697,
0.1412021517753601,
0.23791015148162842,
1.6100276708602905,
3.385423421859741,
0.1961745023727417,
0.33919239044189453,
-0.1860092282295227,
-0.8917190432548523,
1.5098804235458374,
0.8958702683448792,
0.07182162255048752,
-0.5243650674819946,
-1.0354875326156616,
1.2948086261749268,
1.9125081300735474,
0.9598327279090881,
0.006233885884284973,
-0.7252544164657593,
-0.6237298250198364,
-0.23335325717926025,
0.25464874505996704,
0.49055877327919006,
0.9432846903800964,
-0.044476594775915146,
0.14401966333389282,
1.4395939111709595,
1.2228693962097168,
-0.4878220558166504,
0.30150824785232544,
-0.8137177228927612,
-0.3630712330341339,
0.4191439151763916,
0.2642844617366791,
-0.03175891935825348,
0.40712878108024597,
-0.9745743870735168,
-0.3716770112514496,
-0.3659232556819916,
-0.9411695599555969,
-0.6647526621818542,
-0.34820783138275146,
-0.3191182017326355,
1.6541482210159302,
0.15685135126113892,
-0.4862154722213745,
-0.035760655999183655,
-0.8070693016052246,
-0.26475149393081665,
-1.1659903526306152,
0.04733334854245186,
-0.14319661259651184,
-0.13440340757369995,
-0.005527515895664692,
1.8038661479949951,
-0.9720425605773926,
-2.2324917316436768,
0.2277216613292694,
0.2825399339199066,
-0.18093886971473694,
0.19401738047599792,
1.6459920406341553,
0.49033790826797485,
1.3804758787155151,
1.2756248712539673,
1.004449486732483,
-0.6424397230148315,
-1.344714641571045,
0.776943564414978,
0.9021931290626526,
-1.3519744873046875,
0.9624558687210083,
-0.14085039496421814,
-0.5221409797668457,
0.6479877829551697,
1.1866846084594727,
0.4985060393810272,
-1.8853322267532349,
0.8176615238189697,
-1.0384190082550049,
0.785037100315094,
0.8677648901939392,
0.7014131546020508,
0.28900453448295593,
0.8980714678764343,
-1.1313706636428833,
-1.1542266607284546,
-0.7763633728027344,
-0.6584353446960449,
1.9301362037658691,
-0.2795521318912506,
0.6849983334541321,
-0.15233507752418518,
-1.2209644317626953,
0.011406837031245232,
0.7456650733947754,
0.33459505438804626,
-0.3143908679485321,
0.860858142375946,
-0.7364630103111267,
-1.013582706451416,
-1.3162152767181396,
-0.3407633602619171,
-1.0590819120407104,
-1.0005959272384644,
1.1651618480682373,
0.7010306119918823,
0.2129727005958557,
2.0445191860198975,
0.6674611568450928,
0.42595577239990234,
-2.560612440109253,
0.9263034462928772,
0.2619168162345886,
0.08422160893678665,
0.8270635008811951,
0.3036974370479584,
1.1108629703521729,
0.11561182886362076,
0.4470476806163788,
-2.4349400997161865,
2.3233723640441895,
-0.3254702091217041,
0.7086877226829529,
0.01964518241584301,
-0.06019309163093567,
1.1344469785690308,
0.7244303822517395,
0.42920422554016113,
-1.043932557106018,
0.7320751547813416,
-0.5694975852966309,
1.2157286405563354,
1.0962151288986206,
-0.7882709503173828,
0.09480998665094376,
1.408894419670105,
0.5236257314682007,
-0.5215094685554504,
-0.8997848629951477,
-0.8624407649040222,
0.9097622036933899,
1.6973936557769775,
0.0952722579240799,
0.0014178575947880745,
0.766494631767273,
0.6424228549003601,
-1.152814269065857,
0.1519329845905304,
-0.6538973450660706,
-0.7491945624351501,
1.6745933294296265,
2.020219087600708,
-0.20251822471618652,
-0.21213194727897644,
-0.7695046067237854,
-1.285324215888977,
0.7389810085296631,
-0.1373295783996582,
0.06927413493394852,
0.6686903238296509,
-0.7296896576881409,
0.8788294196128845,
0.872586727142334,
0.8895849585533142,
0.2661294937133789,
0.2729126214981079,
0.5219464898109436,
-0.22367197275161743,
-1.2025827169418335,
-0.2913955748081207,
-1.21360445022583,
-2.6424458026885986,
0.4172368347644806,
-0.42457035183906555,
-1.3756136894226074,
-0.015387462452054024,
-1.1364319324493408,
0.9915040135383606,
-0.5916748046875,
-1.0047221183776855,
-1.6062371730804443,
0.19249653816223145,
-0.09864453971385956,
0.9324238300323486,
-1.5376931428909302,
-0.29194176197052,
1.1200326681137085,
0.8703213334083557,
-0.7888575792312622,
0.9981570839881897,
0.19889694452285767,
1.0634217262268066,
0.672178328037262,
-0.5394513607025146,
0.5495055913925171,
-0.04619847983121872,
-1.4130806922912598,
0.5044419169425964,
1.2274181842803955,
0.06792514026165009,
1.4857267141342163,
-0.43938562273979187,
-0.0510750375688076,
0.4473106563091278,
-0.5644470453262329,
-0.5895510911941528,
-0.454592227935791,
0.6790509819984436,
-0.044578131288290024,
-0.7738090753555298,
-0.08356039226055145,
-0.13067865371704102,
-0.4178411066532135,
0.15675148367881775,
-1.4789632558822632,
-0.22044247388839722,
-0.5484530925750732,
-0.6182435750961304,
-1.424268126487732,
0.022023934870958328,
1.4144703149795532,
-0.711042046546936,
-0.19172003865242004,
0.43906041979789734,
0.42708808183670044,
0.5193331837654114,
0.5181819796562195,
-0.7211511135101318,
-0.16674861311912537,
-0.2641017436981201,
-0.20543670654296875,
0.45163393020629883,
1.2545078992843628,
-0.2579706907272339,
-0.975365400314331,
0.6186580657958984,
-0.23198148608207703,
0.16685879230499268,
2.0752410888671875,
0.11905897408723831,
-0.7423682808876038,
0.24454659223556519,
-0.7511786222457886,
1.87413489818573,
1.609001636505127,
1.3109776973724365,
-0.18216022849082947,
-0.7180425524711609,
0.6483361721038818,
-0.268155962228775,
-0.3713356852531433,
0.7169602513313293,
0.4222990572452545,
-0.2190462350845337,
-1.4620033502578735,
0.7615072131156921,
1.17021644115448,
-0.8722649216651917,
-0.825461745262146,
0.14189663529396057,
-0.8979427218437195,
1.1637970209121704,
0.5833464860916138,
0.47624146938323975,
0.3492804765701294,
1.6709562540054321,
0.7048569917678833,
-0.4765138626098633,
0.46476173400878906,
0.5518642067909241,
-0.1150655448436737,
-2.0965161323547363,
-1.1260077953338623,
0.3461229205131531,
-0.588020920753479,
-1.5049978494644165,
1.3642715215682983,
-1.1848843097686768,
-0.9778425693511963,
0.5939542055130005,
0.16736650466918945,
1.3634917736053467,
0.3024771809577942,
1.5934449434280396,
1.9943898916244507,
0.8602911233901978,
0.5279557108879089,
1.240057349205017,
-0.19608670473098755,
-0.4666658639907837,
1.874478816986084,
-0.34795066714286804,
0.47269710898399353,
1.1132088899612427,
-0.2941574454307556,
-1.0567243099212646,
-0.6625576019287109,
-1.1857413053512573,
-0.6010141372680664,
1.12644362449646,
0.12259633094072342,
-1.1297156810760498,
0.15814661979675293,
1.4175505638122559,
0.13293007016181946,
-0.29325029253959656,
0.4888458251953125,
0.40923604369163513,
-0.7861202955245972,
-0.002955581061542034,
-1.0278353691101074,
0.6079643368721008,
-0.23688042163848877,
-0.40212905406951904,
0.3516232669353485,
0.4835803508758545,
1.3482171297073364,
-0.12494144588708878,
0.22114646434783936,
1.2368921041488647,
-1.3906519412994385,
1.459362506866455,
-0.5322617888450623,
0.10668262839317322,
-2.252288818359375,
1.3800898790359497,
-0.7077357172966003,
2.00868821144104,
-2.6256463527679443,
0.39835354685783386,
-0.6538405418395996,
-0.4684029817581177,
0.4407792091369629,
-0.4236554801464081,
0.10216739028692245,
-0.14284393191337585,
-1.0394912958145142,
0.0194394513964653,
-0.6474046111106873,
0.5566242337226868,
1.1801656484603882,
1.3002821207046509,
-1.120835542678833,
-0.23317453265190125,
-1.6528303623199463,
-0.20020738244056702,
-0.7761465311050415,
0.23959079384803772,
-2.1248574256896973,
-0.2721426784992218,
-1.9147640466690063,
-2.3328769207000732,
-1.2085498571395874,
-0.8162001371383667,
1.1555566787719727,
0.13814929127693176,
-0.9307252168655396,
1.3172314167022705,
-0.3585799038410187,
-1.700949788093567,
1.124125599861145,
-2.1083414554595947
] |
https://github.com/huggingface/datasets/issues/5243 | Download only split data | Hey, I'm also interested in that as a feature. I'm having the same problem with Common Voice 13.0. The dataset is super big but I only want the test data to benchmark multilingual models, but I don't have much Terabytes to store all the dataset... | ### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a | 421 | 45 | Download only split data
### Feature request
Is it possible to download only the data that I am requesting and not the entire dataset? I run out of disk spaceas it seems to download the entire dataset, instead of only the part needed.
common_voice["test"] = load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test",
cache_dir="cache/path...",
use_auth_token=True,
download_config=DownloadConfig(delete_extracted='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')
)
### Motivation
efficiency improvement
### Your contribution
n/a
Hey, I'm also interested in that as a feature. I'm having the same problem with Common Voice 13.0. The dataset is super big but I only want the test data to benchmark multilingual models, but I don't have much Terabytes to store all the dataset... | [
-1.2063790559768677,
-0.9610273838043213,
-0.8256589770317078,
1.4787657260894775,
-0.19089579582214355,
-1.2095589637756348,
0.13000896573066711,
-1.0765149593353271,
1.557247519493103,
-0.9194096922874451,
0.24797934293746948,
-1.665264368057251,
0.0612146332859993,
-0.5363537669181824,
-0.6192432045936584,
-0.9874762892723083,
-0.3577995300292969,
-0.767464280128479,
1.0725892782211304,
2.5092475414276123,
1.114425539970398,
-1.2467405796051025,
2.739546775817871,
0.6930693984031677,
-0.1768711656332016,
-1.0102261304855347,
0.5954785346984863,
0.07423549890518188,
-1.2212122678756714,
-0.4752029478549957,
-1.0327990055084229,
-0.09344278275966644,
-0.5347683429718018,
-0.41101160645484924,
-0.07607325166463852,
0.4056239128112793,
-0.2797093391418457,
-0.339763343334198,
-0.5364754796028137,
-0.843627393245697,
0.49981003999710083,
-0.45363545417785645,
1.0153696537017822,
-0.42560815811157227,
1.8902990818023682,
-0.5121238827705383,
0.40590110421180725,
0.7219674587249756,
1.2522306442260742,
0.2326902449131012,
-0.02568293735384941,
0.2151687741279602,
0.4680737257003784,
-0.07377727329730988,
0.48208171129226685,
1.096462368965149,
0.5038740634918213,
0.6453127264976501,
0.7263535261154175,
-2.1085453033447266,
1.324954867362976,
-1.0236785411834717,
0.28300800919532776,
1.4110827445983887,
-0.9748039841651917,
0.41918617486953735,
-1.6899749040603638,
-0.11903277039527893,
0.5656453967094421,
-2.309424638748169,
0.27896466851234436,
-1.3395637273788452,
-0.6259415149688721,
0.9097110629081726,
0.37087640166282654,
-1.21715247631073,
0.04577508568763733,
-0.4435548484325409,
1.0537272691726685,
0.5222932696342468,
1.0185742378234863,
-1.6396684646606445,
-0.05470415949821472,
-0.34739235043525696,
0.09358159452676773,
-1.4302688837051392,
-1.5717843770980835,
0.5672783255577087,
0.6988999843597412,
0.5097411274909973,
-0.07532886415719986,
1.061663031578064,
-1.0801500082015991,
0.8080533146858215,
-0.9217918515205383,
-1.5949755907058716,
-1.4191097021102905,
-2.3996100425720215,
-2.3275513648986816,
0.74253249168396,
-0.4395895302295685,
-0.5740694999694824,
2.0221707820892334,
-1.0149191617965698,
-1.6613863706588745,
1.2391754388809204,
0.08758383244276047,
0.032395943999290466,
2.4121577739715576,
0.16902558505535126,
-0.6364182829856873,
0.3643185794353485,
-0.8144119381904602,
0.915387749671936,
-0.3731032609939575,
1.3621163368225098,
0.5096674561500549,
-0.9866781234741211,
1.6118453741073608,
-0.39601898193359375,
0.5514492988586426,
-0.5690987706184387,
-0.5628257989883423,
-0.8295301198959351,
0.26582518219947815,
1.9043363332748413,
-0.32335951924324036,
1.6330924034118652,
-0.26968780159950256,
-1.4901516437530518,
-1.6891498565673828,
0.8721114993095398,
0.316572368144989,
-0.8425436615943909,
0.10720080137252808,
-0.39257317781448364,
0.17932091653347015,
-0.00014937296509742737,
1.1363972425460815,
1.3083140850067139,
0.7356038093566895,
-0.3214227557182312,
-0.7899762988090515,
0.19641035795211792,
-0.14851216971874237,
-0.6717178225517273,
-1.7735780477523804,
-0.35641342401504517,
0.054731518030166626,
0.7261637449264526,
-1.132812738418579,
1.7533122301101685,
0.8973889946937561,
1.8853354454040527,
1.0033682584762573,
-0.2957414388656616,
1.4139858484268188,
0.10446283221244812,
1.7352229356765747,
-0.5397603511810303,
0.6796229481697083,
-0.3397778868675232,
-1.0336740016937256,
0.8653599619865417,
-0.341488778591156,
-1.9304938316345215,
-0.8721429109573364,
-0.8272810578346252,
-0.20776255428791046,
-0.8431293964385986,
0.8769611716270447,
-0.4507271349430084,
-1.3966856002807617,
0.3307710886001587,
-0.6946355700492859,
0.15935347974300385,
-1.1859633922576904,
0.3833927810192108,
0.7766774892807007,
-0.6422857046127319,
0.05103032663464546,
-0.16717268526554108,
-1.2617515325546265,
-0.45857879519462585,
0.34568727016448975,
2.005826234817505,
-0.5988373160362244,
0.8865171670913696,
1.0082331895828247,
-0.7028175592422485,
-0.015723980963230133,
0.28451573848724365,
-0.21766397356987,
0.6906945705413818,
-1.0082954168319702,
-0.40695881843566895,
1.1625653505325317,
-0.39260536432266235,
-0.638985812664032,
1.4977319240570068,
0.7654997706413269,
-1.065365195274353,
-0.1444815695285797,
-0.21026775240898132,
-0.8555006384849548,
0.056824296712875366,
-1.5469422340393066,
-0.1687275767326355,
0.37950247526168823,
-1.5149366855621338,
-0.46708714962005615,
-0.1374814808368683,
1.3614304065704346,
-0.12856833636760712,
1.4465625286102295,
-0.4490116834640503,
-0.2928149402141571,
-0.30835169553756714,
-0.4915449321269989,
0.22669368982315063,
-0.2293911874294281,
-0.6052728891372681,
0.1450212150812149,
-0.767301082611084,
0.32198959589004517,
1.4410496950149536,
0.3172205090522766,
0.12796878814697266,
0.5598446130752563,
1.038362979888916,
0.28116604685783386,
-0.10844909399747849,
-0.922858715057373,
-1.5306588411331177,
1.958065390586853,
-1.4375251531600952,
2.0104479789733887,
0.721943736076355,
-0.10378522425889969,
-1.841339111328125,
-1.8064438104629517,
1.2062259912490845,
1.1670918464660645,
2.189666509628296,
0.5943043231964111,
0.28732818365097046,
-0.8217095732688904,
-0.6410410404205322,
0.2609996199607849,
-1.0910042524337769,
-0.6943663954734802,
0.09438275545835495,
2.285022735595703,
1.7920198440551758,
-0.48746559023857117,
-0.12698307633399963,
-1.0152896642684937,
1.3350554704666138,
-0.18710780143737793,
0.23154546320438385,
2.0290656089782715,
-0.33371806144714355,
-1.1348838806152344,
1.1690269708633423,
-2.331331253051758,
0.06730472296476364,
1.9647830724716187,
0.28903305530548096,
0.07704998552799225,
-1.4120041131973267,
-0.6888260841369629,
-0.3828691840171814,
-0.43805065751075745,
-1.302763819694519,
0.5596413016319275,
-0.32697007060050964,
-0.7431365847587585,
-1.4536969661712646,
0.18172422051429749,
-1.1701831817626953,
-1.638164758682251,
0.3259880542755127,
1.8876614570617676,
2.087034225463867,
-0.6944151520729065,
1.5209650993347168,
-0.22273409366607666,
0.13823071122169495,
1.294068455696106,
1.240060806274414,
3.1898388862609863,
1.994161605834961,
-1.1951814889907837,
0.5932770371437073,
-0.16254368424415588,
-0.4103075861930847,
1.240454912185669,
-1.1548084020614624,
1.343442678451538,
-0.1375419646501541,
-1.182018756866455,
-1.2459994554519653,
0.9968079328536987,
0.3720756769180298,
0.01736678183078766,
-0.4220444858074188,
1.2670820951461792,
0.08492209762334824,
1.382530927658081,
0.5136326551437378,
-0.3875060975551605,
0.5772244334220886,
-0.4447565972805023,
-0.5205811262130737,
1.6333249807357788,
0.2027076631784439,
-1.5757869482040405,
-2.266170024871826,
-0.31500470638275146,
-0.8055387735366821,
0.030805114656686783,
-0.5289214849472046,
-1.0480549335479736,
1.7170644998550415,
0.39069312810897827,
-1.1619516611099243,
-0.37208282947540283,
-0.4146716892719269,
-0.6702057719230652,
2.802399158477783,
-1.3706274032592773,
-0.29710620641708374,
-0.9302825927734375,
-0.683647871017456,
1.6156035661697388,
-1.4144220352172852,
-0.2057073414325714,
-1.001331090927124,
-0.5910208821296692,
-1.3035590648651123,
-0.47782203555107117,
-0.02330852672457695,
-1.0151214599609375,
0.7882727980613708,
0.18955278396606445,
-1.0237637758255005,
-0.291080504655838,
-0.8744022250175476,
0.9243792295455933,
-0.1096125915646553,
0.318584680557251,
1.8482567071914673,
0.24845439195632935,
-0.4728391766548157,
0.7168857455253601,
1.1713160276412964,
0.6879394054412842,
-0.6827055811882019,
0.08217694610357285,
-0.6812549829483032,
0.3503654897212982,
-1.2133471965789795,
0.31978583335876465,
-2.8713762760162354,
0.603580892086029,
-0.15537099540233612,
-0.1165165826678276,
-0.004033529199659824,
-1.287246584892273,
1.1369380950927734,
2.523266315460205,
-1.1742558479309082,
0.4329269230365753,
0.25452372431755066,
1.2721428871154785,
-1.581355333328247,
0.5112529397010803,
-0.42705094814300537,
2.0550355911254883,
0.30090734362602234,
1.2054047584533691,
-0.46555033326148987,
-2.3162147998809814,
0.7383967638015747,
-1.178551197052002,
-1.1992502212524414,
0.8075610995292664,
-0.8608527779579163,
0.12350752204656601,
-1.400935411453247,
-0.28851887583732605,
-0.833425760269165,
-1.2621986865997314,
0.6737746000289917,
0.17398399114608765,
0.48938965797424316,
-0.6067941784858704,
0.22064128518104553,
-2.2508111000061035,
-1.3948462009429932,
-0.21585527062416077,
-0.9760687947273254,
0.42324939370155334,
-0.4645087718963623,
0.6119791865348816,
-0.2335851788520813,
0.12637531757354736,
0.2784574627876282,
1.5864677429199219,
3.4245307445526123,
0.2065712958574295,
0.3390570282936096,
-0.1459607630968094,
-0.9513395428657532,
1.4560753107070923,
0.8979701399803162,
0.017354581505060196,
-0.5404137969017029,
-1.0436666011810303,
1.2487226724624634,
1.9598461389541626,
0.9038720726966858,
0.028102513402700424,
-0.711249828338623,
-0.6316713690757751,
-0.16781914234161377,
0.26046499609947205,
0.5060171484947205,
0.941605806350708,
-0.0008897650986909866,
0.08575207740068436,
1.4937998056411743,
1.273138403892517,
-0.45298853516578674,
0.2548363506793976,
-0.795750081539154,
-0.38964080810546875,
0.4802078604698181,
0.2751532196998596,
0.008085285313427448,
0.40471968054771423,
-0.9814813733100891,
-0.28055164217948914,
-0.3734965920448303,
-0.9767686128616333,
-0.6861550807952881,
-0.36713042855262756,
-0.30753016471862793,
1.6093921661376953,
0.20243197679519653,
-0.5046651363372803,
-0.06041736900806427,
-0.8129388689994812,
-0.21556749939918518,
-1.15507972240448,
0.07202538847923279,
-0.13801802694797516,
-0.1847391426563263,
-0.0375070758163929,
1.761082410812378,
-0.9439910054206848,
-2.1624438762664795,
0.23417475819587708,
0.2338179498910904,
-0.22486333549022675,
0.21671511232852936,
1.6267220973968506,
0.46217745542526245,
1.4092165231704712,
1.33005952835083,
0.9533866047859192,
-0.6137261390686035,
-1.3335886001586914,
0.74870365858078,
0.857844889163971,
-1.400427222251892,
0.9189035892486572,
-0.0996466726064682,
-0.5408117175102234,
0.7173229455947876,
1.2062504291534424,
0.4704870581626892,
-1.8457576036453247,
0.8011618852615356,
-0.985587477684021,
0.7785384058952332,
0.8018591403961182,
0.7055948972702026,
0.22407419979572296,
0.8803507685661316,
-1.1619969606399536,
-1.133766531944275,
-0.7448840141296387,
-0.6155857443809509,
1.9475327730178833,
-0.2688618004322052,
0.6372419595718384,
-0.20228829979896545,
-1.225837230682373,
-0.012926677241921425,
0.7588350176811218,
0.3145105838775635,
-0.3654649257659912,
0.817313015460968,
-0.7423081398010254,
-1.1192314624786377,
-1.3212178945541382,
-0.3944673538208008,
-1.00931978225708,
-0.9762815833091736,
1.1666169166564941,
0.7591310739517212,
0.2117696851491928,
2.015185832977295,
0.6621301174163818,
0.43103763461112976,
-2.6054694652557373,
0.9037891626358032,
0.21975409984588623,
0.0658784732222557,
0.9040431380271912,
0.25861456990242004,
1.1119996309280396,
0.05580534785985947,
0.4706250727176666,
-2.3976006507873535,
2.319220542907715,
-0.38096868991851807,
0.7455296516418457,
-0.01561395451426506,
-0.09613245725631714,
1.159254789352417,
0.7181239128112793,
0.505163848400116,
-1.0686527490615845,
0.6673184633255005,
-0.6390300989151001,
1.2107515335083008,
1.0645177364349365,
-0.8002104163169861,
0.07432996481657028,
1.400987982749939,
0.5145382285118103,
-0.5268312692642212,
-0.8815423250198364,
-0.9679628014564514,
0.8831282258033752,
1.7431225776672363,
0.015386824496090412,
-0.008263738825917244,
0.7894757986068726,
0.6408430337905884,
-1.224371314048767,
0.1343151181936264,
-0.682762086391449,
-0.733223021030426,
1.6458895206451416,
2.0373482704162598,
-0.1649620532989502,
-0.23826895654201508,
-0.7365049123764038,
-1.299729585647583,
0.7669234275817871,
-0.07605315744876862,
0.08996434509754181,
0.6611168384552002,
-0.6758736968040466,
0.9210050702095032,
0.8724161386489868,
0.9477007389068604,
0.3103220760822296,
0.3790137469768524,
0.5253663659095764,
-0.29351577162742615,
-1.1658282279968262,
-0.3289158344268799,
-1.1676186323165894,
-2.6191935539245605,
0.4473215639591217,
-0.4343515634536743,
-1.4624079465866089,
0.0038120197132229805,
-1.0828382968902588,
0.9613456726074219,
-0.5798892378807068,
-1.0114262104034424,
-1.6021010875701904,
0.19100706279277802,
-0.11128092557191849,
0.9362469911575317,
-1.5119781494140625,
-0.17305439710617065,
1.2121037244796753,
0.8927925825119019,
-0.6519843935966492,
1.0241308212280273,
0.28157681226730347,
1.085353970527649,
0.6984147429466248,
-0.5110098719596863,
0.5462304949760437,
-0.0451861210167408,
-1.3404405117034912,
0.4970269799232483,
1.2127488851547241,
0.13308708369731903,
1.4326989650726318,
-0.4961865246295929,
-0.010486235842108727,
0.3991831839084625,
-0.6177058815956116,
-0.5879727602005005,
-0.43630507588386536,
0.6955180764198303,
-0.0069311512634158134,
-0.7820404767990112,
0.00868298765271902,
-0.16864652931690216,
-0.36524879932403564,
0.20809045433998108,
-1.4749035835266113,
-0.2611698806285858,
-0.5219548940658569,
-0.5991594791412354,
-1.3609284162521362,
-0.030813701450824738,
1.4295668601989746,
-0.731241762638092,
-0.17772823572158813,
0.426492303609848,
0.43590009212493896,
0.5090866684913635,
0.5421056151390076,
-0.6752781867980957,
-0.21286451816558838,
-0.3258637487888336,
-0.25934937596321106,
0.38242748379707336,
1.2523490190505981,
-0.26628702878952026,
-0.9958585500717163,
0.6581709980964661,
-0.2656134366989136,
0.1641027182340622,
2.045807123184204,
0.12142349034547806,
-0.7621363997459412,
0.2652176022529602,
-0.7581942677497864,
1.9069961309432983,
1.7014902830123901,
1.3172072172164917,
-0.17361043393611908,
-0.7812756299972534,
0.5541365146636963,
-0.30914369225502014,
-0.35104772448539734,
0.7689810395240784,
0.4768417775630951,
-0.21191361546516418,
-1.3775897026062012,
0.7768746614456177,
1.1375393867492676,
-0.8844919800758362,
-0.7847166061401367,
0.1415378898382187,
-0.8407740592956543,
1.1500142812728882,
0.592282772064209,
0.5198521614074707,
0.2625795602798462,
1.6502875089645386,
0.7062832117080688,
-0.5224475860595703,
0.4937817454338074,
0.5375436544418335,
-0.1281447410583496,
-2.0689857006073,
-1.0868910551071167,
0.30232733488082886,
-0.5609110593795776,
-1.579861044883728,
1.427598476409912,
-1.1631691455841064,
-0.950210690498352,
0.5562060475349426,
0.19650329649448395,
1.3572174310684204,
0.31832194328308105,
1.6124457120895386,
2.012000322341919,
0.838860034942627,
0.5108454823493958,
1.2274466753005981,
-0.14444947242736816,
-0.4558892846107483,
1.8682787418365479,
-0.33347591757774353,
0.4921879172325134,
1.1679776906967163,
-0.3211129605770111,
-0.961523175239563,
-0.709680438041687,
-1.1445873975753784,
-0.6094202399253845,
1.1109108924865723,
0.13339604437351227,
-1.1375190019607544,
0.16637124121189117,
1.4702388048171997,
0.10249960422515869,
-0.3328462541103363,
0.49378424882888794,
0.38478800654411316,
-0.7088785171508789,
-0.04072141647338867,
-1.0475534200668335,
0.5897626876831055,
-0.23573222756385803,
-0.40910378098487854,
0.41026562452316284,
0.3952651917934418,
1.3178597688674927,
-0.09153985977172852,
0.2414751648902893,
1.2938833236694336,
-1.4123256206512451,
1.469622015953064,
-0.5217898488044739,
0.1721525937318802,
-2.2703146934509277,
1.3299305438995361,
-0.7446736097335815,
1.9453638792037964,
-2.6257669925689697,
0.3998083770275116,
-0.6553849577903748,
-0.44228750467300415,
0.37250182032585144,
-0.429665744304657,
0.06337161362171173,
-0.15793348848819733,
-1.0351029634475708,
0.019930794835090637,
-0.6553667187690735,
0.5673777461051941,
1.1624962091445923,
1.3669426441192627,
-1.163198471069336,
-0.21034887433052063,
-1.6631020307540894,
-0.15565720200538635,
-0.7954185009002686,
0.2876710593700409,
-2.088794708251953,
-0.23408272862434387,
-1.9046937227249146,
-2.3674354553222656,
-1.2640800476074219,
-0.8232476115226746,
1.1617188453674316,
0.12762732803821564,
-0.8896578550338745,
1.284950852394104,
-0.3682505488395691,
-1.752386212348938,
1.1717664003372192,
-2.094963550567627
] |
https://github.com/huggingface/datasets/issues/5232 | Incompatible dill versions in datasets 2.6.1 | Thanks for reporting, @vinaykakade.
We are discussing about making a release early this week.
Please note that in the meantime, in your specific case (as we also pointed out here: https://github.com/huggingface/datasets/issues/5162#issuecomment-1291720293), you can circumvent the issue by pinning `multiprocess` to 0.70.13 version (instead of using latest 0.70.14).
Duplicate of:
- https://github.com/huggingface/datasets/issues/5162 | ### Describe the bug
datasets version 2.6.1 has a dependency on dill<0.3.6. This causes a conflict with dill>=0.3.6 used by multiprocess dependency in datasets 2.6.1
This issue is already fixed in https://github.com/huggingface/datasets/pull/5166/files, but not yet been released. Please release a new version of the datasets library to fix this.
### Steps to reproduce the bug
1. Create requirements.in with only dependency being datasets (or datasets[s3])
2. Run pip-compile
3. The output is as follows:
```
Could not find a version that matches dill<0.3.6,>=0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
Tried: 0.2, 0.2, 0.2.1, 0.2.1, 0.2.2, 0.2.2, 0.2.3, 0.2.3, 0.2.4, 0.2.4, 0.2.5, 0.2.5, 0.2.6, 0.2.7, 0.2.7.1, 0.2.8, 0.2.8.1, 0.2.8.2, 0.2.9, 0.3.0, 0.3.1, 0.3.1.1, 0.3.2, 0.3.3, 0.3.3, 0.3.4, 0.3.4, 0.3.5, 0.3.5, 0.3.5.1, 0.3.5.1, 0.3.6, 0.3.6
Skipped pre-versions: 0.1a1, 0.2a1, 0.2a1, 0.2b1, 0.2b1
There are incompatible versions in the resolved dependencies:
dill<0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
dill>=0.3.6 (from multiprocess==0.70.14->datasets[s3]==2.6.1->-r requirements.in (line 1))
```
### Expected behavior
pip-compile produces requirements.txt without any conflicts
### Environment info
datasets version 2.6.1 | 423 | 51 | Incompatible dill versions in datasets 2.6.1
### Describe the bug
datasets version 2.6.1 has a dependency on dill<0.3.6. This causes a conflict with dill>=0.3.6 used by multiprocess dependency in datasets 2.6.1
This issue is already fixed in https://github.com/huggingface/datasets/pull/5166/files, but not yet been released. Please release a new version of the datasets library to fix this.
### Steps to reproduce the bug
1. Create requirements.in with only dependency being datasets (or datasets[s3])
2. Run pip-compile
3. The output is as follows:
```
Could not find a version that matches dill<0.3.6,>=0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
Tried: 0.2, 0.2, 0.2.1, 0.2.1, 0.2.2, 0.2.2, 0.2.3, 0.2.3, 0.2.4, 0.2.4, 0.2.5, 0.2.5, 0.2.6, 0.2.7, 0.2.7.1, 0.2.8, 0.2.8.1, 0.2.8.2, 0.2.9, 0.3.0, 0.3.1, 0.3.1.1, 0.3.2, 0.3.3, 0.3.3, 0.3.4, 0.3.4, 0.3.5, 0.3.5, 0.3.5.1, 0.3.5.1, 0.3.6, 0.3.6
Skipped pre-versions: 0.1a1, 0.2a1, 0.2a1, 0.2b1, 0.2b1
There are incompatible versions in the resolved dependencies:
dill<0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
dill>=0.3.6 (from multiprocess==0.70.14->datasets[s3]==2.6.1->-r requirements.in (line 1))
```
### Expected behavior
pip-compile produces requirements.txt without any conflicts
### Environment info
datasets version 2.6.1
Thanks for reporting, @vinaykakade.
We are discussing about making a release early this week.
Please note that in the meantime, in your specific case (as we also pointed out here: https://github.com/huggingface/datasets/issues/5162#issuecomment-1291720293), you can circumvent the issue by pinning `multiprocess` to 0.70.13 version (instead of using latest 0.70.14).
Duplicate of:
- https://github.com/huggingface/datasets/issues/5162 | [
-1.3545044660568237,
-0.9818393588066101,
-0.5637233257293701,
1.3252785205841064,
-0.34149399399757385,
-1.1312859058380127,
0.21839067339897156,
-1.0496901273727417,
1.6901954412460327,
-0.818979799747467,
0.10715164244174957,
-1.6406614780426025,
-0.008317992091178894,
-0.3832423686981201,
-0.7498201131820679,
-0.9188555479049683,
-0.4923003613948822,
-0.7572464942932129,
1.0880143642425537,
2.7482166290283203,
1.1326569318771362,
-1.1820764541625977,
2.6208178997039795,
0.8060697317123413,
-0.15796633064746857,
-1.0100455284118652,
0.7256040573120117,
0.07648050040006638,
-1.602301836013794,
-0.32522889971733093,
-0.9593309760093689,
-0.0068340240977704525,
-0.5616313815116882,
-0.4650404453277588,
0.08376675099134445,
0.12557031214237213,
-0.34289082884788513,
-0.27731195092201233,
-0.3324849009513855,
-0.8488938212394714,
0.30940306186676025,
-0.47655153274536133,
0.9469396471977234,
-0.34633171558380127,
1.6005330085754395,
-0.4976578652858734,
0.664797306060791,
0.759675920009613,
1.1106629371643066,
0.16915753483772278,
0.14759111404418945,
0.24330678582191467,
0.6079668402671814,
0.16963373124599457,
0.36829477548599243,
0.9736637473106384,
0.5995495915412903,
0.31585007905960083,
0.5248719453811646,
-2.3052144050598145,
1.3838356733322144,
-0.8681186437606812,
0.2250146120786667,
1.4419423341751099,
-0.8234503865242004,
0.29476267099380493,
-1.649766445159912,
-0.0811682865023613,
0.6842711567878723,
-2.344709634780884,
0.20027998089790344,
-1.5636123418807983,
-0.5151735544204712,
0.994419276714325,
0.4924320578575134,
-1.1718233823776245,
0.15245652198791504,
-0.418825626373291,
0.8696179986000061,
0.5316430926322937,
1.0933091640472412,
-1.6841566562652588,
-0.24720235168933868,
-0.31762099266052246,
0.11132097244262695,
-1.1437031030654907,
-1.53361976146698,
0.5436873435974121,
0.7021977305412292,
0.5474820733070374,
-0.12077400088310242,
0.9159782528877258,
-1.0873873233795166,
0.7531358003616333,
-1.0030649900436401,
-1.916236400604248,
-1.4443317651748657,
-2.5580313205718994,
-2.3842933177948,
0.6517429947853088,
-0.384604811668396,
-0.39638346433639526,
2.037926197052002,
-1.1426860094070435,
-1.5949856042861938,
1.1249668598175049,
0.2103137969970703,
-0.10577036440372467,
2.3915889263153076,
0.10575950145721436,
-0.5482326745986938,
0.44193366169929504,
-1.039550542831421,
0.602703332901001,
-0.2855938971042633,
1.3178398609161377,
0.46155378222465515,
-1.0369696617126465,
1.410889744758606,
-0.39666470885276794,
0.5716853141784668,
-0.6339089870452881,
-0.3012116253376007,
-0.7875053286552429,
0.13291525840759277,
1.801924705505371,
-0.203836128115654,
1.4303241968154907,
-0.22229036688804626,
-1.5190677642822266,
-1.6450239419937134,
0.791983425617218,
0.6514869928359985,
-0.6275576949119568,
0.010213053785264492,
-0.30089882016181946,
0.10033446550369263,
0.012674611993134022,
1.0516088008880615,
1.3973296880722046,
0.853544294834137,
-0.3849073648452759,
-0.9493362307548523,
0.2885701656341553,
-0.28985100984573364,
-0.8713011741638184,
-1.829193353652954,
-0.3099200427532196,
-0.01963288150727749,
0.8012276887893677,
-1.1821743249893188,
1.6484822034835815,
1.001710295677185,
1.9198192358016968,
1.0103265047073364,
-0.5983231067657471,
1.5346479415893555,
0.2042706459760666,
1.7284988164901733,
-0.529382586479187,
0.8936815857887268,
-0.5200780630111694,
-1.1205674409866333,
0.8928134441375732,
-0.2657506763935089,
-1.9838441610336304,
-0.5795382261276245,
-0.7869480848312378,
-0.27933719754219055,
-0.6978566646575928,
1.066880226135254,
-0.12279834598302841,
-1.445852279663086,
0.29031920433044434,
-0.8186215162277222,
-0.07933980226516724,
-1.2488532066345215,
0.38584622740745544,
0.7873089909553528,
-0.4981575906276703,
0.03376362845301628,
-0.2628498077392578,
-1.2949097156524658,
-0.41610634326934814,
0.28041183948516846,
1.6749736070632935,
-0.6265263557434082,
1.1396697759628296,
0.9872333407402039,
-0.74333655834198,
-0.042769841849803925,
0.49484992027282715,
-0.3211958110332489,
0.8199645280838013,
-0.8566378355026245,
-0.24256786704063416,
1.2501658201217651,
-0.2975853979587555,
-0.5632839798927307,
1.5816863775253296,
0.6836833357810974,
-0.8890475034713745,
-0.1877601444721222,
-0.07261482626199722,
-0.5850836634635925,
0.16257065534591675,
-1.7276705503463745,
-0.16701404750347137,
0.3710174858570099,
-1.7310459613800049,
-0.5743468999862671,
-0.288260281085968,
1.4614112377166748,
0.06406678259372711,
1.4332289695739746,
-0.13054539263248444,
-0.24644221365451813,
-0.6127681136131287,
-0.22239848971366882,
0.2361443191766739,
-0.1381102353334427,
-0.4145858883857727,
0.4955403804779053,
-0.9463719725608826,
0.3810422122478485,
1.5093411207199097,
0.23733817040920258,
0.12682397663593292,
0.4790254831314087,
0.721108615398407,
0.4454277753829956,
-0.2549632489681244,
-0.9248147010803223,
-1.6477155685424805,
2.1539716720581055,
-1.3598344326019287,
1.9753037691116333,
0.7540976405143738,
-0.1065581664443016,
-1.7083477973937988,
-2.0628557205200195,
1.261217474937439,
0.8438798189163208,
2.326502561569214,
0.5317881107330322,
0.43667954206466675,
-0.710225522518158,
-0.6378270387649536,
0.22095118463039398,
-0.9251149296760559,
-0.9379817843437195,
0.10511026531457901,
2.437523603439331,
1.4741653203964233,
-0.5098169445991516,
-0.05513300746679306,
-1.2876381874084473,
1.4353806972503662,
-0.002217785455286503,
0.2112959623336792,
2.008916139602661,
-0.2217686027288437,
-1.037304162979126,
1.2834128141403198,
-2.280019521713257,
0.19808948040008545,
1.9352390766143799,
0.14925998449325562,
0.09088469296693802,
-1.575833797454834,
-0.7502806782722473,
-0.3729528486728668,
-0.6232008337974548,
-1.2043585777282715,
0.7117578387260437,
-0.23157872259616852,
-1.0315953493118286,
-1.6274341344833374,
0.03778202086687088,
-1.1278297901153564,
-1.9365222454071045,
0.15499772131443024,
1.7986699342727661,
1.9748826026916504,
-0.737808883190155,
1.4449838399887085,
-0.13740229606628418,
0.026517443358898163,
1.1215894222259521,
1.1164839267730713,
3.0303943157196045,
2.202120780944824,
-1.1826798915863037,
0.8633664846420288,
-0.18187661468982697,
-0.3160240948200226,
1.0804890394210815,
-1.1954585313796997,
1.4488170146942139,
-0.15844206511974335,
-1.2416620254516602,
-1.2098406553268433,
1.0415356159210205,
0.38686078786849976,
0.07386694848537445,
-0.33645543456077576,
1.2252463102340698,
0.12911498546600342,
1.3256304264068604,
0.45937368273735046,
-0.0661584734916687,
0.8130241632461548,
-0.567658543586731,
-0.39297980070114136,
1.6381299495697021,
0.3052149713039398,
-1.5688482522964478,
-2.4162673950195312,
-0.4393504858016968,
-0.9377260208129883,
-0.09864424169063568,
-0.5217970609664917,
-0.9250235557556152,
1.6698206663131714,
0.5126962065696716,
-1.0285109281539917,
-0.11775427311658859,
-0.36137422919273376,
-0.543976902961731,
2.7070207595825195,
-1.2884013652801514,
-0.15765245258808136,
-0.9567242860794067,
-0.632649838924408,
1.3274108171463013,
-1.340002179145813,
0.10045762360095978,
-0.9619524478912354,
-0.5258164405822754,
-1.2596735954284668,
-0.3898766040802002,
-0.07135213166475296,
-1.0712628364562988,
0.729228138923645,
0.14010940492153168,
-1.176281452178955,
-0.42382606863975525,
-0.9656755328178406,
0.8697044849395752,
0.37264707684516907,
0.21048736572265625,
1.889435887336731,
0.2639774978160858,
-0.264072448015213,
0.6493977904319763,
1.0316344499588013,
0.7194705605506897,
-0.672441303730011,
0.29982608556747437,
-0.7232759594917297,
0.44791465997695923,
-1.0576097965240479,
0.2489992380142212,
-2.664008378982544,
0.6357210278511047,
-0.1287182718515396,
-0.17653419077396393,
-0.13608896732330322,
-1.1278516054153442,
1.3051427602767944,
2.5254900455474854,
-1.1333281993865967,
0.6265355944633484,
0.13455937802791595,
1.1395275592803955,
-1.217344045639038,
0.4324820637702942,
-0.4665113389492035,
2.2480216026306152,
0.3331672251224518,
1.0712746381759644,
-0.3347645401954651,
-2.3224844932556152,
0.7851515412330627,
-1.246065378189087,
-1.0403473377227783,
0.6807923316955566,
-0.8527549505233765,
-0.06027865782380104,
-1.257144808769226,
-0.07589185237884521,
-0.743304431438446,
-1.2144681215286255,
0.5159128904342651,
0.21343430876731873,
0.7032919526100159,
-0.6926828026771545,
0.44997870922088623,
-2.332465171813965,
-1.1959632635116577,
-0.31958338618278503,
-0.914054274559021,
0.48715677857398987,
-0.23693527281284332,
0.7268308997154236,
-0.15644484758377075,
-0.13458949327468872,
0.4531506597995758,
1.279162049293518,
3.3834590911865234,
-0.11300897598266602,
0.29552584886550903,
-0.10922440141439438,
-1.2418254613876343,
1.3898837566375732,
1.0685828924179077,
-0.11241842806339264,
-0.6504364609718323,
-1.138837218284607,
1.1571094989776611,
1.984696626663208,
1.0854800939559937,
0.05292179062962532,
-0.9209514260292053,
-0.8517536520957947,
0.10244210064411163,
0.13811267912387848,
0.4705636203289032,
1.042575478553772,
-0.0064644902013242245,
0.043209612369537354,
1.7535927295684814,
1.2729628086090088,
-0.1467110514640808,
0.3657509684562683,
-0.8491623997688293,
-0.481955349445343,
0.5782188177108765,
0.4354311525821686,
0.07344451546669006,
0.5245014429092407,
-1.2394461631774902,
-0.12052205950021744,
-0.23047824203968048,
-0.926132082939148,
-0.7620999813079834,
-0.39726027846336365,
-0.3797457814216614,
1.6576365232467651,
0.08011947572231293,
-0.3659866154193878,
0.0029171137139201164,
-0.8489484190940857,
0.07029571384191513,
-0.8692250847816467,
0.37871313095092773,
-0.23615524172782898,
0.03883684426546097,
-0.20012247562408447,
1.8480266332626343,
-0.9940172433853149,
-1.980581521987915,
0.2677055895328522,
0.041540663689374924,
-0.39250922203063965,
0.43986111879348755,
1.4557363986968994,
0.8129504919052124,
1.5305818319320679,
1.1431795358657837,
0.9528757333755493,
-0.47489824891090393,
-1.4977848529815674,
0.7364874482154846,
0.8598470091819763,
-1.3923592567443848,
0.7679713368415833,
0.010607887990772724,
-0.5264019966125488,
0.6121381521224976,
1.0981082916259766,
0.2786961495876312,
-2.0837979316711426,
0.7889782190322876,
-0.8604058027267456,
0.8189730048179626,
0.6690173149108887,
0.7752705216407776,
0.01658569648861885,
0.6590287685394287,
-1.4096839427947998,
-0.8948889970779419,
-0.5129884481430054,
-0.6553907990455627,
2.056901216506958,
-0.2012496441602707,
0.7238414287567139,
-0.403836190700531,
-1.27104651927948,
-0.06986815482378006,
0.4486362934112549,
0.32650357484817505,
-0.5197386145591736,
0.876242995262146,
-0.5689378380775452,
-1.355223298072815,
-1.3414877653121948,
-0.5564153790473938,
-1.045663833618164,
-0.7806772589683533,
1.027874231338501,
0.6453203558921814,
0.5561285018920898,
1.8283329010009766,
0.2743198573589325,
0.34268999099731445,
-2.842611789703369,
0.8686773180961609,
0.21463119983673096,
-0.07366390526294708,
0.9111267924308777,
0.13423481583595276,
1.0481520891189575,
-0.26692160964012146,
0.6860641837120056,
-2.290254592895508,
2.4346742630004883,
-0.24200712144374847,
0.7688164710998535,
0.2837126851081848,
0.19489656388759613,
1.000381588935852,
0.7816851139068604,
0.6921637058258057,
-1.0817210674285889,
0.6832200884819031,
-0.7084850072860718,
1.4632258415222168,
0.8928061127662659,
-0.7690671682357788,
-0.2535126507282257,
1.1974414587020874,
0.4836394786834717,
-0.2252155840396881,
-0.8426636457443237,
-1.1657665967941284,
0.7734807133674622,
1.7950125932693481,
-0.31860753893852234,
0.058065157383680344,
0.670689046382904,
0.6359304189682007,
-1.4932482242584229,
-0.10973883420228958,
-0.8433147072792053,
-0.4670902490615845,
1.4708006381988525,
2.253946542739868,
0.01395376306027174,
-0.19821877777576447,
-0.6190893054008484,
-1.2114009857177734,
0.662177324295044,
0.022646654397249222,
0.11108724027872086,
0.6425662636756897,
-0.39177459478378296,
0.9459772706031799,
0.7862659096717834,
1.1025774478912354,
0.34443196654319763,
0.2861023247241974,
0.11052931845188141,
-0.49720704555511475,
-1.1193418502807617,
-0.37429073452949524,
-0.8089256286621094,
-2.6019887924194336,
0.40669551491737366,
-0.26376649737358093,
-1.5428261756896973,
-0.07788646966218948,
-1.0824732780456543,
0.7360547184944153,
-0.47506606578826904,
-1.0064997673034668,
-1.3735219240188599,
0.10154280066490173,
-0.21764764189720154,
1.0491642951965332,
-1.6652699708938599,
0.02786402776837349,
1.378456473350525,
0.9066696166992188,
-0.48807916045188904,
1.2287555932998657,
0.3535098135471344,
1.0713945627212524,
0.8255040049552917,
-0.26160311698913574,
0.5158593654632568,
0.22513717412948608,
-1.2302007675170898,
0.28246650099754333,
1.1367523670196533,
0.36934444308280945,
1.3396196365356445,
-0.9728958010673523,
0.11630663275718689,
0.43660596013069153,
-0.5508820414543152,
-0.49787333607673645,
-0.44676685333251953,
0.7935355305671692,
0.2012377828359604,
-0.968908429145813,
0.01314630825072527,
-0.17989502847194672,
0.09200514107942581,
0.12442648410797119,
-1.3320095539093018,
-0.08564499765634537,
-0.30868038535118103,
-0.5350787043571472,
-1.3054593801498413,
-0.11215534806251526,
1.3400988578796387,
-0.9247197508811951,
-0.0077133988961577415,
0.32623156905174255,
0.26345330476760864,
0.6797436475753784,
0.7670940160751343,
-0.6210460662841797,
-0.6002761721611023,
-0.30182576179504395,
-0.21285800635814667,
0.37485167384147644,
1.372540831565857,
-0.15871469676494598,
-1.0370540618896484,
0.7639376521110535,
-0.4701448380947113,
0.1816452145576477,
1.96535325050354,
-0.09687424451112747,
-0.8253648281097412,
0.33298149704933167,
-0.47952917218208313,
1.807033658027649,
1.517040491104126,
1.252529263496399,
-0.2023870199918747,
-0.934201180934906,
0.3978371024131775,
-0.3774753510951996,
-0.4662269949913025,
0.7954181432723999,
0.46198761463165283,
-0.2803424894809723,
-1.2014832496643066,
0.48253852128982544,
1.2906177043914795,
-1.0427966117858887,
-0.8607757687568665,
0.27994421124458313,
-0.7958027720451355,
1.1628345251083374,
0.8527422547340393,
0.5770387053489685,
0.21617750823497772,
1.543674111366272,
0.8585254549980164,
-0.7166383266448975,
0.5353120565414429,
0.24966031312942505,
-0.24897238612174988,
-1.9809671640396118,
-1.0432014465332031,
0.26067841053009033,
-0.6496913433074951,
-1.5140087604522705,
1.2635657787322998,
-1.2730592489242554,
-0.9145821928977966,
0.5127173662185669,
0.19568365812301636,
1.2933931350708008,
0.3700870871543884,
1.548069953918457,
2.1245291233062744,
1.0803142786026,
0.4895946979522705,
1.4551063776016235,
-0.21920213103294373,
-0.5876716375350952,
1.5961244106292725,
-0.3592287302017212,
0.5481781959533691,
1.1817467212677002,
-0.26183050870895386,
-0.6701240539550781,
-0.905879557132721,
-1.0170090198516846,
-0.5138425827026367,
1.218195915222168,
0.18329422175884247,
-1.0738565921783447,
0.20530907809734344,
1.4242192506790161,
-0.04160519689321518,
-0.15290535986423492,
0.6801834106445312,
0.4247838258743286,
-0.6700683236122131,
-0.1272892951965332,
-0.9103559851646423,
0.46541628241539,
-0.4883861243724823,
-0.4437738060951233,
0.26529794931411743,
0.2993534207344055,
1.2786376476287842,
-0.1464732140302658,
0.18750721216201782,
1.2820192575454712,
-1.173463225364685,
1.6003682613372803,
-0.6305005550384521,
0.1938026398420334,
-2.198683500289917,
1.2042559385299683,
-0.8238510489463806,
1.777354121208191,
-2.7959301471710205,
0.31839701533317566,
-0.3739311397075653,
-0.4934360384941101,
0.1514626294374466,
-0.3240024745464325,
0.14497573673725128,
-0.3926999866962433,
-1.191136121749878,
-0.13758039474487305,
-0.8551021814346313,
0.34044215083122253,
0.9284036159515381,
1.3805217742919922,
-1.1250780820846558,
-0.25614792108535767,
-1.883479118347168,
-0.11439590156078339,
-0.8579137325286865,
0.458632230758667,
-1.8330707550048828,
-0.3415704667568207,
-1.7982462644577026,
-2.47731351852417,
-1.2525973320007324,
-0.9202120900154114,
1.1507258415222168,
-0.14656761288642883,
-0.6259555816650391,
1.053112268447876,
-0.2326066941022873,
-1.9808127880096436,
1.048539638519287,
-2.2391719818115234
] |
https://github.com/huggingface/datasets/issues/5232 | Incompatible dill versions in datasets 2.6.1 | You can also make `pip-compile` work by using the backtracking resolver (instead of the legacy one): https://pip-tools.readthedocs.io/en/latest/#a-note-on-resolvers
```
pip-compile --resolver=backtracking requirements.in
```
This resolver will automatically use `multiprocess` 0.70.13 version.
| ### Describe the bug
datasets version 2.6.1 has a dependency on dill<0.3.6. This causes a conflict with dill>=0.3.6 used by multiprocess dependency in datasets 2.6.1
This issue is already fixed in https://github.com/huggingface/datasets/pull/5166/files, but not yet been released. Please release a new version of the datasets library to fix this.
### Steps to reproduce the bug
1. Create requirements.in with only dependency being datasets (or datasets[s3])
2. Run pip-compile
3. The output is as follows:
```
Could not find a version that matches dill<0.3.6,>=0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
Tried: 0.2, 0.2, 0.2.1, 0.2.1, 0.2.2, 0.2.2, 0.2.3, 0.2.3, 0.2.4, 0.2.4, 0.2.5, 0.2.5, 0.2.6, 0.2.7, 0.2.7.1, 0.2.8, 0.2.8.1, 0.2.8.2, 0.2.9, 0.3.0, 0.3.1, 0.3.1.1, 0.3.2, 0.3.3, 0.3.3, 0.3.4, 0.3.4, 0.3.5, 0.3.5, 0.3.5.1, 0.3.5.1, 0.3.6, 0.3.6
Skipped pre-versions: 0.1a1, 0.2a1, 0.2a1, 0.2b1, 0.2b1
There are incompatible versions in the resolved dependencies:
dill<0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
dill>=0.3.6 (from multiprocess==0.70.14->datasets[s3]==2.6.1->-r requirements.in (line 1))
```
### Expected behavior
pip-compile produces requirements.txt without any conflicts
### Environment info
datasets version 2.6.1 | 423 | 30 | Incompatible dill versions in datasets 2.6.1
### Describe the bug
datasets version 2.6.1 has a dependency on dill<0.3.6. This causes a conflict with dill>=0.3.6 used by multiprocess dependency in datasets 2.6.1
This issue is already fixed in https://github.com/huggingface/datasets/pull/5166/files, but not yet been released. Please release a new version of the datasets library to fix this.
### Steps to reproduce the bug
1. Create requirements.in with only dependency being datasets (or datasets[s3])
2. Run pip-compile
3. The output is as follows:
```
Could not find a version that matches dill<0.3.6,>=0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
Tried: 0.2, 0.2, 0.2.1, 0.2.1, 0.2.2, 0.2.2, 0.2.3, 0.2.3, 0.2.4, 0.2.4, 0.2.5, 0.2.5, 0.2.6, 0.2.7, 0.2.7.1, 0.2.8, 0.2.8.1, 0.2.8.2, 0.2.9, 0.3.0, 0.3.1, 0.3.1.1, 0.3.2, 0.3.3, 0.3.3, 0.3.4, 0.3.4, 0.3.5, 0.3.5, 0.3.5.1, 0.3.5.1, 0.3.6, 0.3.6
Skipped pre-versions: 0.1a1, 0.2a1, 0.2a1, 0.2b1, 0.2b1
There are incompatible versions in the resolved dependencies:
dill<0.3.6 (from datasets[s3]==2.6.1->-r requirements.in (line 1))
dill>=0.3.6 (from multiprocess==0.70.14->datasets[s3]==2.6.1->-r requirements.in (line 1))
```
### Expected behavior
pip-compile produces requirements.txt without any conflicts
### Environment info
datasets version 2.6.1
You can also make `pip-compile` work by using the backtracking resolver (instead of the legacy one): https://pip-tools.readthedocs.io/en/latest/#a-note-on-resolvers
```
pip-compile --resolver=backtracking requirements.in
```
This resolver will automatically use `multiprocess` 0.70.13 version.
| [
-1.3545044660568237,
-0.9818393588066101,
-0.5637233257293701,
1.3252785205841064,
-0.34149399399757385,
-1.1312859058380127,
0.21839067339897156,
-1.0496901273727417,
1.6901954412460327,
-0.818979799747467,
0.10715164244174957,
-1.6406614780426025,
-0.008317992091178894,
-0.3832423686981201,
-0.7498201131820679,
-0.9188555479049683,
-0.4923003613948822,
-0.7572464942932129,
1.0880143642425537,
2.7482166290283203,
1.1326569318771362,
-1.1820764541625977,
2.6208178997039795,
0.8060697317123413,
-0.15796633064746857,
-1.0100455284118652,
0.7256040573120117,
0.07648050040006638,
-1.602301836013794,
-0.32522889971733093,
-0.9593309760093689,
-0.0068340240977704525,
-0.5616313815116882,
-0.4650404453277588,
0.08376675099134445,
0.12557031214237213,
-0.34289082884788513,
-0.27731195092201233,
-0.3324849009513855,
-0.8488938212394714,
0.30940306186676025,
-0.47655153274536133,
0.9469396471977234,
-0.34633171558380127,
1.6005330085754395,
-0.4976578652858734,
0.664797306060791,
0.759675920009613,
1.1106629371643066,
0.16915753483772278,
0.14759111404418945,
0.24330678582191467,
0.6079668402671814,
0.16963373124599457,
0.36829477548599243,
0.9736637473106384,
0.5995495915412903,
0.31585007905960083,
0.5248719453811646,
-2.3052144050598145,
1.3838356733322144,
-0.8681186437606812,
0.2250146120786667,
1.4419423341751099,
-0.8234503865242004,
0.29476267099380493,
-1.649766445159912,
-0.0811682865023613,
0.6842711567878723,
-2.344709634780884,
0.20027998089790344,
-1.5636123418807983,
-0.5151735544204712,
0.994419276714325,
0.4924320578575134,
-1.1718233823776245,
0.15245652198791504,
-0.418825626373291,
0.8696179986000061,
0.5316430926322937,
1.0933091640472412,
-1.6841566562652588,
-0.24720235168933868,
-0.31762099266052246,
0.11132097244262695,
-1.1437031030654907,
-1.53361976146698,
0.5436873435974121,
0.7021977305412292,
0.5474820733070374,
-0.12077400088310242,
0.9159782528877258,
-1.0873873233795166,
0.7531358003616333,
-1.0030649900436401,
-1.916236400604248,
-1.4443317651748657,
-2.5580313205718994,
-2.3842933177948,
0.6517429947853088,
-0.384604811668396,
-0.39638346433639526,
2.037926197052002,
-1.1426860094070435,
-1.5949856042861938,
1.1249668598175049,
0.2103137969970703,
-0.10577036440372467,
2.3915889263153076,
0.10575950145721436,
-0.5482326745986938,
0.44193366169929504,
-1.039550542831421,
0.602703332901001,
-0.2855938971042633,
1.3178398609161377,
0.46155378222465515,
-1.0369696617126465,
1.410889744758606,
-0.39666470885276794,
0.5716853141784668,
-0.6339089870452881,
-0.3012116253376007,
-0.7875053286552429,
0.13291525840759277,
1.801924705505371,
-0.203836128115654,
1.4303241968154907,
-0.22229036688804626,
-1.5190677642822266,
-1.6450239419937134,
0.791983425617218,
0.6514869928359985,
-0.6275576949119568,
0.010213053785264492,
-0.30089882016181946,
0.10033446550369263,
0.012674611993134022,
1.0516088008880615,
1.3973296880722046,
0.853544294834137,
-0.3849073648452759,
-0.9493362307548523,
0.2885701656341553,
-0.28985100984573364,
-0.8713011741638184,
-1.829193353652954,
-0.3099200427532196,
-0.01963288150727749,
0.8012276887893677,
-1.1821743249893188,
1.6484822034835815,
1.001710295677185,
1.9198192358016968,
1.0103265047073364,
-0.5983231067657471,
1.5346479415893555,
0.2042706459760666,
1.7284988164901733,
-0.529382586479187,
0.8936815857887268,
-0.5200780630111694,
-1.1205674409866333,
0.8928134441375732,
-0.2657506763935089,
-1.9838441610336304,
-0.5795382261276245,
-0.7869480848312378,
-0.27933719754219055,
-0.6978566646575928,
1.066880226135254,
-0.12279834598302841,
-1.445852279663086,
0.29031920433044434,
-0.8186215162277222,
-0.07933980226516724,
-1.2488532066345215,
0.38584622740745544,
0.7873089909553528,
-0.4981575906276703,
0.03376362845301628,
-0.2628498077392578,
-1.2949097156524658,
-0.41610634326934814,
0.28041183948516846,
1.6749736070632935,
-0.6265263557434082,
1.1396697759628296,
0.9872333407402039,
-0.74333655834198,
-0.042769841849803925,
0.49484992027282715,
-0.3211958110332489,
0.8199645280838013,
-0.8566378355026245,
-0.24256786704063416,
1.2501658201217651,
-0.2975853979587555,
-0.5632839798927307,
1.5816863775253296,
0.6836833357810974,
-0.8890475034713745,
-0.1877601444721222,
-0.07261482626199722,
-0.5850836634635925,
0.16257065534591675,
-1.7276705503463745,
-0.16701404750347137,
0.3710174858570099,
-1.7310459613800049,
-0.5743468999862671,
-0.288260281085968,
1.4614112377166748,
0.06406678259372711,
1.4332289695739746,
-0.13054539263248444,
-0.24644221365451813,
-0.6127681136131287,
-0.22239848971366882,
0.2361443191766739,
-0.1381102353334427,
-0.4145858883857727,
0.4955403804779053,
-0.9463719725608826,
0.3810422122478485,
1.5093411207199097,
0.23733817040920258,
0.12682397663593292,
0.4790254831314087,
0.721108615398407,
0.4454277753829956,
-0.2549632489681244,
-0.9248147010803223,
-1.6477155685424805,
2.1539716720581055,
-1.3598344326019287,
1.9753037691116333,
0.7540976405143738,
-0.1065581664443016,
-1.7083477973937988,
-2.0628557205200195,
1.261217474937439,
0.8438798189163208,
2.326502561569214,
0.5317881107330322,
0.43667954206466675,
-0.710225522518158,
-0.6378270387649536,
0.22095118463039398,
-0.9251149296760559,
-0.9379817843437195,
0.10511026531457901,
2.437523603439331,
1.4741653203964233,
-0.5098169445991516,
-0.05513300746679306,
-1.2876381874084473,
1.4353806972503662,
-0.002217785455286503,
0.2112959623336792,
2.008916139602661,
-0.2217686027288437,
-1.037304162979126,
1.2834128141403198,
-2.280019521713257,
0.19808948040008545,
1.9352390766143799,
0.14925998449325562,
0.09088469296693802,
-1.575833797454834,
-0.7502806782722473,
-0.3729528486728668,
-0.6232008337974548,
-1.2043585777282715,
0.7117578387260437,
-0.23157872259616852,
-1.0315953493118286,
-1.6274341344833374,
0.03778202086687088,
-1.1278297901153564,
-1.9365222454071045,
0.15499772131443024,
1.7986699342727661,
1.9748826026916504,
-0.737808883190155,
1.4449838399887085,
-0.13740229606628418,
0.026517443358898163,
1.1215894222259521,
1.1164839267730713,
3.0303943157196045,
2.202120780944824,
-1.1826798915863037,
0.8633664846420288,
-0.18187661468982697,
-0.3160240948200226,
1.0804890394210815,
-1.1954585313796997,
1.4488170146942139,
-0.15844206511974335,
-1.2416620254516602,
-1.2098406553268433,
1.0415356159210205,
0.38686078786849976,
0.07386694848537445,
-0.33645543456077576,
1.2252463102340698,
0.12911498546600342,
1.3256304264068604,
0.45937368273735046,
-0.0661584734916687,
0.8130241632461548,
-0.567658543586731,
-0.39297980070114136,
1.6381299495697021,
0.3052149713039398,
-1.5688482522964478,
-2.4162673950195312,
-0.4393504858016968,
-0.9377260208129883,
-0.09864424169063568,
-0.5217970609664917,
-0.9250235557556152,
1.6698206663131714,
0.5126962065696716,
-1.0285109281539917,
-0.11775427311658859,
-0.36137422919273376,
-0.543976902961731,
2.7070207595825195,
-1.2884013652801514,
-0.15765245258808136,
-0.9567242860794067,
-0.632649838924408,
1.3274108171463013,
-1.340002179145813,
0.10045762360095978,
-0.9619524478912354,
-0.5258164405822754,
-1.2596735954284668,
-0.3898766040802002,
-0.07135213166475296,
-1.0712628364562988,
0.729228138923645,
0.14010940492153168,
-1.176281452178955,
-0.42382606863975525,
-0.9656755328178406,
0.8697044849395752,
0.37264707684516907,
0.21048736572265625,
1.889435887336731,
0.2639774978160858,
-0.264072448015213,
0.6493977904319763,
1.0316344499588013,
0.7194705605506897,
-0.672441303730011,
0.29982608556747437,
-0.7232759594917297,
0.44791465997695923,
-1.0576097965240479,
0.2489992380142212,
-2.664008378982544,
0.6357210278511047,
-0.1287182718515396,
-0.17653419077396393,
-0.13608896732330322,
-1.1278516054153442,
1.3051427602767944,
2.5254900455474854,
-1.1333281993865967,
0.6265355944633484,
0.13455937802791595,
1.1395275592803955,
-1.217344045639038,
0.4324820637702942,
-0.4665113389492035,
2.2480216026306152,
0.3331672251224518,
1.0712746381759644,
-0.3347645401954651,
-2.3224844932556152,
0.7851515412330627,
-1.246065378189087,
-1.0403473377227783,
0.6807923316955566,
-0.8527549505233765,
-0.06027865782380104,
-1.257144808769226,
-0.07589185237884521,
-0.743304431438446,
-1.2144681215286255,
0.5159128904342651,
0.21343430876731873,
0.7032919526100159,
-0.6926828026771545,
0.44997870922088623,
-2.332465171813965,
-1.1959632635116577,
-0.31958338618278503,
-0.914054274559021,
0.48715677857398987,
-0.23693527281284332,
0.7268308997154236,
-0.15644484758377075,
-0.13458949327468872,
0.4531506597995758,
1.279162049293518,
3.3834590911865234,
-0.11300897598266602,
0.29552584886550903,
-0.10922440141439438,
-1.2418254613876343,
1.3898837566375732,
1.0685828924179077,
-0.11241842806339264,
-0.6504364609718323,
-1.138837218284607,
1.1571094989776611,
1.984696626663208,
1.0854800939559937,
0.05292179062962532,
-0.9209514260292053,
-0.8517536520957947,
0.10244210064411163,
0.13811267912387848,
0.4705636203289032,
1.042575478553772,
-0.0064644902013242245,
0.043209612369537354,
1.7535927295684814,
1.2729628086090088,
-0.1467110514640808,
0.3657509684562683,
-0.8491623997688293,
-0.481955349445343,
0.5782188177108765,
0.4354311525821686,
0.07344451546669006,
0.5245014429092407,
-1.2394461631774902,
-0.12052205950021744,
-0.23047824203968048,
-0.926132082939148,
-0.7620999813079834,
-0.39726027846336365,
-0.3797457814216614,
1.6576365232467651,
0.08011947572231293,
-0.3659866154193878,
0.0029171137139201164,
-0.8489484190940857,
0.07029571384191513,
-0.8692250847816467,
0.37871313095092773,
-0.23615524172782898,
0.03883684426546097,
-0.20012247562408447,
1.8480266332626343,
-0.9940172433853149,
-1.980581521987915,
0.2677055895328522,
0.041540663689374924,
-0.39250922203063965,
0.43986111879348755,
1.4557363986968994,
0.8129504919052124,
1.5305818319320679,
1.1431795358657837,
0.9528757333755493,
-0.47489824891090393,
-1.4977848529815674,
0.7364874482154846,
0.8598470091819763,
-1.3923592567443848,
0.7679713368415833,
0.010607887990772724,
-0.5264019966125488,
0.6121381521224976,
1.0981082916259766,
0.2786961495876312,
-2.0837979316711426,
0.7889782190322876,
-0.8604058027267456,
0.8189730048179626,
0.6690173149108887,
0.7752705216407776,
0.01658569648861885,
0.6590287685394287,
-1.4096839427947998,
-0.8948889970779419,
-0.5129884481430054,
-0.6553907990455627,
2.056901216506958,
-0.2012496441602707,
0.7238414287567139,
-0.403836190700531,
-1.27104651927948,
-0.06986815482378006,
0.4486362934112549,
0.32650357484817505,
-0.5197386145591736,
0.876242995262146,
-0.5689378380775452,
-1.355223298072815,
-1.3414877653121948,
-0.5564153790473938,
-1.045663833618164,
-0.7806772589683533,
1.027874231338501,
0.6453203558921814,
0.5561285018920898,
1.8283329010009766,
0.2743198573589325,
0.34268999099731445,
-2.842611789703369,
0.8686773180961609,
0.21463119983673096,
-0.07366390526294708,
0.9111267924308777,
0.13423481583595276,
1.0481520891189575,
-0.26692160964012146,
0.6860641837120056,
-2.290254592895508,
2.4346742630004883,
-0.24200712144374847,
0.7688164710998535,
0.2837126851081848,
0.19489656388759613,
1.000381588935852,
0.7816851139068604,
0.6921637058258057,
-1.0817210674285889,
0.6832200884819031,
-0.7084850072860718,
1.4632258415222168,
0.8928061127662659,
-0.7690671682357788,
-0.2535126507282257,
1.1974414587020874,
0.4836394786834717,
-0.2252155840396881,
-0.8426636457443237,
-1.1657665967941284,
0.7734807133674622,
1.7950125932693481,
-0.31860753893852234,
0.058065157383680344,
0.670689046382904,
0.6359304189682007,
-1.4932482242584229,
-0.10973883420228958,
-0.8433147072792053,
-0.4670902490615845,
1.4708006381988525,
2.253946542739868,
0.01395376306027174,
-0.19821877777576447,
-0.6190893054008484,
-1.2114009857177734,
0.662177324295044,
0.022646654397249222,
0.11108724027872086,
0.6425662636756897,
-0.39177459478378296,
0.9459772706031799,
0.7862659096717834,
1.1025774478912354,
0.34443196654319763,
0.2861023247241974,
0.11052931845188141,
-0.49720704555511475,
-1.1193418502807617,
-0.37429073452949524,
-0.8089256286621094,
-2.6019887924194336,
0.40669551491737366,
-0.26376649737358093,
-1.5428261756896973,
-0.07788646966218948,
-1.0824732780456543,
0.7360547184944153,
-0.47506606578826904,
-1.0064997673034668,
-1.3735219240188599,
0.10154280066490173,
-0.21764764189720154,
1.0491642951965332,
-1.6652699708938599,
0.02786402776837349,
1.378456473350525,
0.9066696166992188,
-0.48807916045188904,
1.2287555932998657,
0.3535098135471344,
1.0713945627212524,
0.8255040049552917,
-0.26160311698913574,
0.5158593654632568,
0.22513717412948608,
-1.2302007675170898,
0.28246650099754333,
1.1367523670196533,
0.36934444308280945,
1.3396196365356445,
-0.9728958010673523,
0.11630663275718689,
0.43660596013069153,
-0.5508820414543152,
-0.49787333607673645,
-0.44676685333251953,
0.7935355305671692,
0.2012377828359604,
-0.968908429145813,
0.01314630825072527,
-0.17989502847194672,
0.09200514107942581,
0.12442648410797119,
-1.3320095539093018,
-0.08564499765634537,
-0.30868038535118103,
-0.5350787043571472,
-1.3054593801498413,
-0.11215534806251526,
1.3400988578796387,
-0.9247197508811951,
-0.0077133988961577415,
0.32623156905174255,
0.26345330476760864,
0.6797436475753784,
0.7670940160751343,
-0.6210460662841797,
-0.6002761721611023,
-0.30182576179504395,
-0.21285800635814667,
0.37485167384147644,
1.372540831565857,
-0.15871469676494598,
-1.0370540618896484,
0.7639376521110535,
-0.4701448380947113,
0.1816452145576477,
1.96535325050354,
-0.09687424451112747,
-0.8253648281097412,
0.33298149704933167,
-0.47952917218208313,
1.807033658027649,
1.517040491104126,
1.252529263496399,
-0.2023870199918747,
-0.934201180934906,
0.3978371024131775,
-0.3774753510951996,
-0.4662269949913025,
0.7954181432723999,
0.46198761463165283,
-0.2803424894809723,
-1.2014832496643066,
0.48253852128982544,
1.2906177043914795,
-1.0427966117858887,
-0.8607757687568665,
0.27994421124458313,
-0.7958027720451355,
1.1628345251083374,
0.8527422547340393,
0.5770387053489685,
0.21617750823497772,
1.543674111366272,
0.8585254549980164,
-0.7166383266448975,
0.5353120565414429,
0.24966031312942505,
-0.24897238612174988,
-1.9809671640396118,
-1.0432014465332031,
0.26067841053009033,
-0.6496913433074951,
-1.5140087604522705,
1.2635657787322998,
-1.2730592489242554,
-0.9145821928977966,
0.5127173662185669,
0.19568365812301636,
1.2933931350708008,
0.3700870871543884,
1.548069953918457,
2.1245291233062744,
1.0803142786026,
0.4895946979522705,
1.4551063776016235,
-0.21920213103294373,
-0.5876716375350952,
1.5961244106292725,
-0.3592287302017212,
0.5481781959533691,
1.1817467212677002,
-0.26183050870895386,
-0.6701240539550781,
-0.905879557132721,
-1.0170090198516846,
-0.5138425827026367,
1.218195915222168,
0.18329422175884247,
-1.0738565921783447,
0.20530907809734344,
1.4242192506790161,
-0.04160519689321518,
-0.15290535986423492,
0.6801834106445312,
0.4247838258743286,
-0.6700683236122131,
-0.1272892951965332,
-0.9103559851646423,
0.46541628241539,
-0.4883861243724823,
-0.4437738060951233,
0.26529794931411743,
0.2993534207344055,
1.2786376476287842,
-0.1464732140302658,
0.18750721216201782,
1.2820192575454712,
-1.173463225364685,
1.6003682613372803,
-0.6305005550384521,
0.1938026398420334,
-2.198683500289917,
1.2042559385299683,
-0.8238510489463806,
1.777354121208191,
-2.7959301471710205,
0.31839701533317566,
-0.3739311397075653,
-0.4934360384941101,
0.1514626294374466,
-0.3240024745464325,
0.14497573673725128,
-0.3926999866962433,
-1.191136121749878,
-0.13758039474487305,
-0.8551021814346313,
0.34044215083122253,
0.9284036159515381,
1.3805217742919922,
-1.1250780820846558,
-0.25614792108535767,
-1.883479118347168,
-0.11439590156078339,
-0.8579137325286865,
0.458632230758667,
-1.8330707550048828,
-0.3415704667568207,
-1.7982462644577026,
-2.47731351852417,
-1.2525973320007324,
-0.9202120900154114,
1.1507258415222168,
-0.14656761288642883,
-0.6259555816650391,
1.053112268447876,
-0.2326066941022873,
-1.9808127880096436,
1.048539638519287,
-2.2391719818115234
] |
https://github.com/huggingface/datasets/issues/5231 | Using `set_format(type='torch', columns=columns)` makes Array2D/3D columns stop formatting correctly | In case others find this, the problem was not with set_format, but my usages of `to_pandas()` and `from_pandas()` which I was using during dataset splitting; somewhere in the chain of converting to and from pandas the `Array2D/Array3D` types get converted to series of `Sequence()` types | I have a Dataset with two Features defined as follows:
```
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
```
On said dataset, if I `dataset.set_format(type='torch')` and then use the dataset in a dataloader, these columns are correctly cast to Tensors of (batch_size, 3, 224, 244) for example.
However, if I `dataset.set_format(type='torch', columns=['image', 'bbox'])` these columns are cast to Lists of tensors and miss the batch size completely (the 3 dimension is the list length).
I'm currently digging through datasets formatting code to try and find out why, but was curious if someone knew an immediate solution for this. | 424 | 45 | Using `set_format(type='torch', columns=columns)` makes Array2D/3D columns stop formatting correctly
I have a Dataset with two Features defined as follows:
```
'image': Array3D(dtype="int64", shape=(3, 224, 224)),
'bbox': Array2D(dtype="int64", shape=(512, 4)),
```
On said dataset, if I `dataset.set_format(type='torch')` and then use the dataset in a dataloader, these columns are correctly cast to Tensors of (batch_size, 3, 224, 244) for example.
However, if I `dataset.set_format(type='torch', columns=['image', 'bbox'])` these columns are cast to Lists of tensors and miss the batch size completely (the 3 dimension is the list length).
I'm currently digging through datasets formatting code to try and find out why, but was curious if someone knew an immediate solution for this.
In case others find this, the problem was not with set_format, but my usages of `to_pandas()` and `from_pandas()` which I was using during dataset splitting; somewhere in the chain of converting to and from pandas the `Array2D/Array3D` types get converted to series of `Sequence()` types | [
-1.2792993783950806,
-0.9536268711090088,
-0.7300387620925903,
1.4912302494049072,
-0.19267353415489197,
-1.2374649047851562,
0.16061247885227203,
-1.102920651435852,
1.6979504823684692,
-0.9651730060577393,
0.3350940942764282,
-1.6344648599624634,
0.07090321183204651,
-0.7123173475265503,
-0.735957682132721,
-0.8643070459365845,
-0.38968393206596375,
-0.7504549026489258,
1.055297613143921,
2.4730021953582764,
1.200225591659546,
-1.506640076637268,
2.7292075157165527,
0.7305252552032471,
-0.16852475702762604,
-1.0383572578430176,
0.5179818868637085,
-0.038391534239053726,
-1.1142867803573608,
-0.4755072295665741,
-0.9158844351768494,
-0.11223024874925613,
-0.5898447036743164,
-0.5954480767250061,
-0.11192157864570618,
0.4467316269874573,
-0.29594552516937256,
-0.49833664298057556,
-0.42997339367866516,
-0.7967795133590698,
0.5067504048347473,
-0.3646010756492615,
0.843258798122406,
-0.30012598633766174,
1.8235660791397095,
-0.45490792393684387,
0.3845912218093872,
0.6395546793937683,
1.3880136013031006,
0.17175474762916565,
-0.04530796408653259,
0.36287274956703186,
0.32709649205207825,
-0.011897027492523193,
0.5490266680717468,
1.1902871131896973,
0.7158966660499573,
0.5301273465156555,
0.7684698104858398,
-2.261091470718384,
1.295936942100525,
-1.1869401931762695,
0.35972192883491516,
1.3207361698150635,
-0.9703709483146667,
0.38258692622184753,
-1.7064130306243896,
-0.10238110274076462,
0.5503168702125549,
-2.1718249320983887,
0.34289970993995667,
-1.2831919193267822,
-0.44942718744277954,
0.9714521169662476,
0.3720502555370331,
-1.2346550226211548,
0.1511240452528,
-0.45537298917770386,
0.9894713163375854,
0.42584705352783203,
1.0348559617996216,
-1.7203294038772583,
0.09580717980861664,
-0.3835431635379791,
0.1433836817741394,
-1.2717556953430176,
-1.4768080711364746,
0.5541350245475769,
0.6041447520256042,
0.5602719783782959,
-0.12556160986423492,
1.117874264717102,
-1.0488924980163574,
0.6739526391029358,
-0.9889487028121948,
-1.617357611656189,
-1.3857460021972656,
-2.2351348400115967,
-2.315081834793091,
0.7529803514480591,
-0.4311964809894562,
-0.6195569038391113,
2.0904226303100586,
-1.0058194398880005,
-1.7899703979492188,
1.18971848487854,
0.31577202677726746,
-0.04055427387356758,
2.4287936687469482,
0.13927462697029114,
-0.699160099029541,
0.48184454441070557,
-0.7908172011375427,
0.8187627196311951,
-0.3702240586280823,
1.4122862815856934,
0.5350112318992615,
-1.091435194015503,
1.7457979917526245,
-0.4000939428806305,
0.49887320399284363,
-0.6521908640861511,
-0.5430135130882263,
-0.8271895051002502,
0.44878241419792175,
1.896926999092102,
-0.2612355053424835,
1.4307477474212646,
-0.4570252299308777,
-1.530782699584961,
-1.6388458013534546,
0.9895573258399963,
0.35702651739120483,
-0.793448269367218,
0.1628018468618393,
-0.43320828676223755,
0.10886767506599426,
-0.04409610107541084,
1.164404034614563,
1.2694076299667358,
0.6900659203529358,
-0.2596511244773865,
-0.8527742624282837,
0.14603810012340546,
-0.13645993173122406,
-0.6875030398368835,
-1.8361074924468994,
-0.4457780122756958,
0.0802614614367485,
0.6044650673866272,
-1.1155595779418945,
1.7695882320404053,
0.9241182804107666,
1.832771897315979,
1.030718445777893,
-0.32746386528015137,
1.5736186504364014,
0.06596355885267258,
1.880409598350525,
-0.49884870648384094,
0.6870198845863342,
-0.3332611918449402,
-1.147544026374817,
0.9155555367469788,
-0.32937976717948914,
-2.0684759616851807,
-0.859604001045227,
-0.8245285153388977,
-0.23725534975528717,
-0.8058553338050842,
0.9155671000480652,
-0.37788063287734985,
-1.4401766061782837,
0.21127870678901672,
-0.6924309134483337,
0.23502188920974731,
-1.1800599098205566,
0.41935965418815613,
0.7786363363265991,
-0.6454026699066162,
0.04809245094656944,
-0.28881844878196716,
-1.2380032539367676,
-0.4600852429866791,
0.27252495288848877,
1.9623992443084717,
-0.8186821341514587,
0.8808810710906982,
1.078906774520874,
-0.7655925750732422,
-0.01890503242611885,
0.24970988929271698,
-0.2379743754863739,
0.8936243653297424,
-1.0603467226028442,
-0.4936371445655823,
1.1828930377960205,
-0.16407951712608337,
-0.5950220823287964,
1.4341784715652466,
0.7522735595703125,
-0.9423122406005859,
-0.12651963531970978,
-0.1913972645998001,
-0.8186874985694885,
0.06080664321780205,
-1.4860830307006836,
-0.08806174993515015,
0.45945578813552856,
-1.4797375202178955,
-0.49438953399658203,
-0.18261316418647766,
1.284854769706726,
-0.21262823045253754,
1.425225019454956,
-0.43951722979545593,
-0.22720837593078613,
-0.30889424681663513,
-0.2948106527328491,
0.16824594140052795,
-0.09134327620267868,
-0.6453941464424133,
0.11441299319267273,
-0.7873429656028748,
0.43766406178474426,
1.4036297798156738,
0.38694167137145996,
0.03996061906218529,
0.5345273017883301,
1.1687052249908447,
0.33953264355659485,
0.0695430338382721,
-0.8546590209007263,
-1.5581603050231934,
2.022357225418091,
-1.5098296403884888,
1.9735028743743896,
0.662397027015686,
-0.0013171760365366936,
-1.7325315475463867,
-1.7764142751693726,
1.4603832960128784,
1.247578740119934,
2.254957914352417,
0.552559494972229,
0.2878238260746002,
-0.92960125207901,
-0.673499584197998,
0.3398648202419281,
-1.057782530784607,
-0.7175657749176025,
0.15379153192043304,
2.3155527114868164,
1.8065359592437744,
-0.4364098906517029,
-0.21558281779289246,
-1.0473647117614746,
1.4257655143737793,
-0.266406774520874,
0.24958552420139313,
1.8758012056350708,
-0.3615815043449402,
-1.1394476890563965,
1.2677559852600098,
-2.4358086585998535,
0.07975993305444717,
2.040862798690796,
0.3310634195804596,
0.11976145952939987,
-1.2909941673278809,
-0.6000050902366638,
-0.23743776977062225,
-0.4255644381046295,
-1.339603304862976,
0.4742650091648102,
-0.17424632608890533,
-0.6928715109825134,
-1.3788037300109863,
0.2254340648651123,
-1.1775596141815186,
-1.5481301546096802,
0.26414456963539124,
1.8407069444656372,
2.1154723167419434,
-0.6761025190353394,
1.7148549556732178,
-0.2823883295059204,
0.29441097378730774,
1.222313404083252,
1.2475682497024536,
3.0177459716796875,
1.7726807594299316,
-1.2172884941101074,
0.5451578497886658,
-0.12944024801254272,
-0.6377096176147461,
1.1709303855895996,
-1.178983449935913,
1.3275922536849976,
-0.1184108778834343,
-1.1269584894180298,
-1.2662560939788818,
0.8694518208503723,
0.43419018387794495,
0.11352717876434326,
-0.5181361436843872,
1.2174016237258911,
0.016656167805194855,
1.2634047269821167,
0.5622435212135315,
-0.3405766189098358,
0.5733510255813599,
-0.43934398889541626,
-0.5437026023864746,
1.4762213230133057,
0.23737584054470062,
-1.4154731035232544,
-2.1703124046325684,
-0.08634676039218903,
-0.7692370414733887,
0.04068440571427345,
-0.6540566682815552,
-0.9712650775909424,
1.6625654697418213,
0.2583698332309723,
-1.1506402492523193,
-0.279670774936676,
-0.3076680898666382,
-0.6309215426445007,
2.6764352321624756,
-1.3060928583145142,
-0.31249192357063293,
-0.9159953594207764,
-0.7302465438842773,
1.6348601579666138,
-1.15354585647583,
-0.05586537718772888,
-1.027580976486206,
-0.5883834362030029,
-1.3801602125167847,
-0.6009078621864319,
-0.07272244244813919,
-0.9846276044845581,
0.8961186408996582,
0.2201317399740219,
-1.2218736410140991,
-0.3241007924079895,
-0.8395490050315857,
0.9022977948188782,
-0.2233837991952896,
0.354171484708786,
1.7965428829193115,
0.37710076570510864,
-0.3322606384754181,
0.8492653965950012,
1.1906485557556152,
0.689133882522583,
-0.5240868330001831,
0.29459521174430847,
-0.6575990319252014,
0.3602944612503052,
-1.254604697227478,
0.3919728696346283,
-2.9241092205047607,
0.6251116991043091,
-0.0433720201253891,
0.0035903453826904297,
-0.05313370004296303,
-1.364368200302124,
1.0682837963104248,
2.5566813945770264,
-1.2797698974609375,
0.42517372965812683,
0.2772858440876007,
1.301418662071228,
-1.5841360092163086,
0.2585265636444092,
-0.43360331654548645,
2.14932918548584,
0.20778048038482666,
1.1960484981536865,
-0.4955858290195465,
-2.3482394218444824,
0.5765544772148132,
-1.3899402618408203,
-1.2539077997207642,
0.6701839566230774,
-0.8989099264144897,
0.05280369892716408,
-1.441627860069275,
-0.2365269660949707,
-0.8914107084274292,
-1.1148109436035156,
0.8497193455696106,
0.2105882614850998,
0.3438132107257843,
-0.489219605922699,
0.37131622433662415,
-2.162083625793457,
-1.3964382410049438,
-0.2223658412694931,
-0.8801599740982056,
0.5515414476394653,
-0.3527944087982178,
0.6099691987037659,
-0.1715753823518753,
0.011738172732293606,
0.3356814384460449,
1.483422040939331,
3.3774967193603516,
0.21100649237632751,
0.4617122709751129,
-0.20695655047893524,
-0.9137112498283386,
1.5501306056976318,
0.9324910044670105,
-0.13185738027095795,
-0.49625205993652344,
-1.0347344875335693,
1.361858606338501,
1.860184669494629,
0.9688816070556641,
-0.0453975647687912,
-0.7628031969070435,
-0.6280917525291443,
-0.12559771537780762,
0.13817575573921204,
0.39489084482192993,
0.8648318648338318,
0.12094775587320328,
0.12636491656303406,
1.3833210468292236,
1.1938711404800415,
-0.5388672351837158,
0.35877758264541626,
-0.7966901659965515,
-0.4418874979019165,
0.5577403903007507,
0.16492770612239838,
-0.015251239761710167,
0.35344210267066956,
-0.961845338344574,
-0.3199387490749359,
-0.3299769461154938,
-0.9142009019851685,
-0.7042310237884521,
-0.45617714524269104,
-0.37975895404815674,
1.5689431428909302,
0.21666927635669708,
-0.6081430912017822,
-0.008680764585733414,
-0.8415811657905579,
-0.15332448482513428,
-1.0279676914215088,
0.15596213936805725,
-0.10309867560863495,
-0.24762453138828278,
-0.1898512840270996,
1.7863689661026,
-0.9569646120071411,
-2.0929949283599854,
0.2091694325208664,
0.22167474031448364,
-0.20184002816677094,
0.1992693543434143,
1.5564863681793213,
0.5282087922096252,
1.6244630813598633,
1.2820998430252075,
0.9462766051292419,
-0.5904243588447571,
-1.2540583610534668,
0.7659621238708496,
0.9966244101524353,
-1.367434024810791,
0.7961074709892273,
0.05867980048060417,
-0.541489839553833,
0.6500921845436096,
1.211458683013916,
0.47864845395088196,
-2.0208404064178467,
0.7560669183731079,
-1.0289158821105957,
0.8458448648452759,
0.6428656578063965,
0.7083403468132019,
0.2921248972415924,
0.8874365091323853,
-1.2505425214767456,
-1.2113319635391235,
-0.7678967714309692,
-0.7742533683776855,
2.0110132694244385,
-0.30909156799316406,
0.6584064364433289,
-0.18189965188503265,
-1.3592069149017334,
-0.12377361208200455,
0.6488426923751831,
0.3459763526916504,
-0.5360732674598694,
0.8158054351806641,
-0.7401375770568848,
-1.0806505680084229,
-1.4455407857894897,
-0.4432997405529022,
-1.0764137506484985,
-1.000425934791565,
1.0736020803451538,
0.7747952938079834,
0.11039124429225922,
1.8530449867248535,
0.5555587410926819,
0.14504379034042358,
-2.5442583560943604,
0.9322475790977478,
0.19520637392997742,
-0.08762550354003906,
0.7515262961387634,
0.3759884834289551,
1.053051233291626,
-0.009286177344620228,
0.5652045011520386,
-2.4596779346466064,
2.2941629886627197,
-0.17050424218177795,
0.7004426121711731,
-0.016809886321425438,
-0.1544630378484726,
1.1781805753707886,
0.5026036500930786,
0.536198616027832,
-1.0511125326156616,
0.5717456340789795,
-0.6011843085289001,
1.3427650928497314,
0.9427562355995178,
-0.8070983290672302,
-0.06941945850849152,
1.3935754299163818,
0.4633307158946991,
-0.5281087160110474,
-0.9712294340133667,
-0.983881413936615,
0.9912330508232117,
1.641656756401062,
-0.048576872795820236,
-0.10646483302116394,
0.7574357986450195,
0.6868416666984558,
-1.2201018333435059,
0.04647292196750641,
-0.6558329463005066,
-0.7310267686843872,
1.7240914106369019,
2.07033634185791,
-0.2988145649433136,
-0.182397723197937,
-0.6823273301124573,
-1.2338379621505737,
0.7969728112220764,
-0.03687816113233566,
0.08361731469631195,
0.6249534487724304,
-0.635922908782959,
1.0593092441558838,
1.0080890655517578,
0.8316085934638977,
0.22307993471622467,
0.31483006477355957,
0.40475937724113464,
-0.33101966977119446,
-1.0747880935668945,
-0.15718486905097961,
-1.108284592628479,
-2.7204015254974365,
0.3718055188655853,
-0.2943223714828491,
-1.3311306238174438,
0.012587039731442928,
-0.9741449356079102,
0.967698335647583,
-0.5466442704200745,
-1.128178596496582,
-1.4957667589187622,
0.15536624193191528,
0.05470111593604088,
0.9639259576797485,
-1.6268696784973145,
0.02400919422507286,
1.2962546348571777,
0.8676803112030029,
-0.722449004650116,
1.0062097311019897,
0.3241349160671234,
1.090447187423706,
0.8774721622467041,
-0.37843647599220276,
0.5830097198486328,
-0.08804260939359665,
-1.3303338289260864,
0.46043121814727783,
1.1604000329971313,
0.08391519635915756,
1.4782267808914185,
-0.474081814289093,
-0.09702389687299728,
0.367886483669281,
-0.5786513686180115,
-0.5147168040275574,
-0.4760203957557678,
0.5864658355712891,
0.06073832884430885,
-0.8329442143440247,
0.05680802837014198,
0.07214414328336716,
-0.2823203504085541,
0.16151005029678345,
-1.5363237857818604,
-0.15648296475410461,
-0.4408557415008545,
-0.6307103037834167,
-1.2523260116577148,
-0.06019984930753708,
1.3534440994262695,
-0.6782880425453186,
-0.1695835441350937,
0.4989466965198517,
0.35446885228157043,
0.4876479208469391,
0.6696376800537109,
-0.6419464945793152,
-0.3508721590042114,
-0.25320670008659363,
-0.37113457918167114,
0.29610422253608704,
1.2978423833847046,
-0.1860644668340683,
-0.9733023047447205,
0.7326332926750183,
-0.32193663716316223,
-0.047252532094717026,
1.810844898223877,
0.05051508545875549,
-0.7752113342285156,
0.3057849109172821,
-0.7303279638290405,
1.912420630455017,
1.7504714727401733,
1.2678498029708862,
-0.17455238103866577,
-0.8314573168754578,
0.615827739238739,
-0.36919304728507996,
-0.38465335965156555,
0.8710582256317139,
0.4831720292568207,
-0.1296169012784958,
-1.4334113597869873,
0.7898489832878113,
1.3027163743972778,
-0.8360604643821716,
-0.7843194007873535,
0.07992003858089447,
-0.7653904557228088,
1.0809582471847534,
0.6855974793434143,
0.41016480326652527,
0.2823448181152344,
1.6380970478057861,
0.7410491108894348,
-0.40305542945861816,
0.533315896987915,
0.579031765460968,
-0.19561953842639923,
-2.1313259601593018,
-1.196303129196167,
0.22850513458251953,
-0.5591219663619995,
-1.6133700609207153,
1.3168548345565796,
-1.0816361904144287,
-0.9236233830451965,
0.6325883269309998,
0.09421718120574951,
1.508741021156311,
0.4218745231628418,
1.4463350772857666,
2.0507540702819824,
0.7450762987136841,
0.39489081501960754,
1.20650053024292,
-0.2569562494754791,
-0.44042864441871643,
1.8202077150344849,
-0.3842637538909912,
0.40497517585754395,
1.118337631225586,
-0.26055479049682617,
-1.0591264963150024,
-0.732084333896637,
-1.384857416152954,
-0.6853585243225098,
1.1478774547576904,
0.08173345774412155,
-1.1403661966323853,
0.2041563093662262,
1.5659608840942383,
0.06777217984199524,
-0.3677956461906433,
0.6713088154792786,
0.47823435068130493,
-0.8315953612327576,
-0.0996181070804596,
-0.9484933018684387,
0.6400046944618225,
-0.20808468759059906,
-0.3143822252750397,
0.43171587586402893,
0.4277847409248352,
1.3697247505187988,
-0.08790747821331024,
0.2002115100622177,
1.0503443479537964,
-1.4341179132461548,
1.4437681436538696,
-0.6857584714889526,
0.28399112820625305,
-2.306715726852417,
1.3072386980056763,
-0.7209292650222778,
2.0071094036102295,
-2.693922519683838,
0.5023847222328186,
-0.6174514889717102,
-0.4411725401878357,
0.4028833210468292,
-0.365540087223053,
0.08438754826784134,
-0.16412009298801422,
-1.0943175554275513,
-0.05948973819613457,
-0.5105894804000854,
0.5577702522277832,
1.1723036766052246,
1.2597776651382446,
-1.0542607307434082,
-0.28013715147972107,
-1.7359181642532349,
-0.11519435048103333,
-0.6061619520187378,
0.32615500688552856,
-2.0467898845672607,
-0.18655593693256378,
-1.9501053094863892,
-2.351731538772583,
-1.2213653326034546,
-0.7337911128997803,
1.172914981842041,
0.07989867776632309,
-0.8399437069892883,
1.2922098636627197,
-0.3783641457557678,
-1.8288863897323608,
1.0775437355041504,
-2.073991298675537
] |
https://github.com/huggingface/datasets/issues/5230 | dataclasses error when importing the library in python 3.11 | I opened [this issue](https://github.com/python/cpython/issues/99401).
Python's maintainers say that the issue is caused by [this change](https://docs.python.org/3.11/whatsnew/3.11.html#dataclasses).
I believe adding a `__hash__` method to `datasets.utils.version.Version` should solve (at least partially) this issue. | ### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator. | 425 | 30 | dataclasses error when importing the library in python 3.11
### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator.
I opened [this issue](https://github.com/python/cpython/issues/99401).
Python's maintainers say that the issue is caused by [this change](https://docs.python.org/3.11/whatsnew/3.11.html#dataclasses).
I believe adding a `__hash__` method to `datasets.utils.version.Version` should solve (at least partially) this issue. | [
-1.1701884269714355,
-0.857646644115448,
-0.7524360418319702,
1.4626085758209229,
-0.07128031551837921,
-1.2940629720687866,
0.08254144340753555,
-1.0319280624389648,
1.6331838369369507,
-0.7147952318191528,
0.22182029485702515,
-1.7194939851760864,
-0.07934641093015671,
-0.4828549325466156,
-0.7291038632392883,
-0.8426880240440369,
-0.3119206428527832,
-0.8196244835853577,
1.0481781959533691,
2.523341417312622,
1.2307178974151611,
-1.3208659887313843,
2.7868945598602295,
0.6238085627555847,
-0.24288293719291687,
-0.9574365615844727,
0.6163735389709473,
-0.05346987023949623,
-1.3143390417099,
-0.5225592851638794,
-0.9038322567939758,
0.029743049293756485,
-0.5345715284347534,
-0.45915478467941284,
0.09967566281557083,
0.44403722882270813,
-0.21348297595977783,
-0.4020623564720154,
-0.6060376167297363,
-0.7512153387069702,
0.4753338396549225,
-0.2845843434333801,
0.9585056900978088,
-0.367244690656662,
1.7706482410430908,
-0.6621183156967163,
0.3656383156776428,
0.7638512253761292,
1.2994238138198853,
0.1722572147846222,
0.02095254510641098,
0.34259870648384094,
0.35766172409057617,
0.009242847561836243,
0.6282444596290588,
1.2381178140640259,
0.5810648202896118,
0.5441707372665405,
0.7065668702125549,
-2.1947057247161865,
1.3203845024108887,
-0.9193894267082214,
0.3088982403278351,
1.2708704471588135,
-0.8606657981872559,
0.39440932869911194,
-1.747435212135315,
-0.045327674597501755,
0.5146176218986511,
-2.285576105117798,
0.25488805770874023,
-1.211436152458191,
-0.5706304907798767,
0.9591584801673889,
0.3367992341518402,
-1.2044920921325684,
0.13801446557044983,
-0.4823203384876251,
1.0286855697631836,
0.4536576569080353,
1.2515010833740234,
-1.5734632015228271,
0.004236256703734398,
-0.19020575284957886,
0.0949392169713974,
-1.2910598516464233,
-1.6373621225357056,
0.5569540858268738,
0.6437742114067078,
0.558046281337738,
-0.1589750051498413,
1.003986120223999,
-0.9906564354896545,
0.7769876718521118,
-0.9115499258041382,
-1.7345037460327148,
-1.372178316116333,
-2.3346920013427734,
-2.2935285568237305,
0.8208653330802917,
-0.5060144662857056,
-0.49597832560539246,
2.0765726566314697,
-0.9600955843925476,
-1.8250283002853394,
0.9910135269165039,
0.33587199449539185,
0.04798906296491623,
2.35213565826416,
0.2600000202655792,
-0.7983409762382507,
0.4597427248954773,
-0.6727096438407898,
0.8049765229225159,
-0.4302859902381897,
1.2781583070755005,
0.4206845462322235,
-0.9737750887870789,
1.6004436016082764,
-0.49964597821235657,
0.5683760046958923,
-0.6777744293212891,
-0.3985094428062439,
-0.7449970245361328,
0.2461593747138977,
1.9257930517196655,
-0.36163920164108276,
1.5450047254562378,
-0.2930353283882141,
-1.5863111019134521,
-1.5316872596740723,
0.7643271088600159,
0.4229082465171814,
-0.8310455083847046,
0.16675540804862976,
-0.4683856964111328,
0.17404770851135254,
-0.015338800847530365,
1.1285971403121948,
1.1999168395996094,
0.7833067178726196,
-0.22222739458084106,
-0.8429691791534424,
0.26752951741218567,
-0.10204099863767624,
-0.6111804842948914,
-1.7588648796081543,
-0.28719624876976013,
0.2586326599121094,
0.6386565566062927,
-1.2549197673797607,
1.8517755270004272,
0.9096443057060242,
2.0191140174865723,
0.9656742215156555,
-0.34291088581085205,
1.5004477500915527,
0.03538517281413078,
1.9348112344741821,
-0.3894643783569336,
0.5406873226165771,
-0.4269826412200928,
-1.1680527925491333,
0.8064097762107849,
-0.389248788356781,
-1.992811679840088,
-0.7122559547424316,
-0.890948474407196,
-0.09267935901880264,
-0.7701976299285889,
0.9028159379959106,
-0.30218684673309326,
-1.3578805923461914,
0.089130699634552,
-0.7899913191795349,
0.1850736439228058,
-1.3253240585327148,
0.23782381415367126,
0.7315167784690857,
-0.6403331756591797,
0.01902078464627266,
-0.3802940547466278,
-1.3727328777313232,
-0.5613584518432617,
0.39225438237190247,
1.8920421600341797,
-0.6397652626037598,
0.9858567118644714,
1.006394624710083,
-0.7823207974433899,
0.07219655066728592,
0.3646101951599121,
-0.40618619322776794,
0.8057003617286682,
-1.1044697761535645,
-0.4100518226623535,
1.13982093334198,
-0.23631373047828674,
-0.6545977592468262,
1.4401013851165771,
0.7774152755737305,
-1.1438301801681519,
-0.31971415877342224,
-0.22511392831802368,
-0.8823627233505249,
0.03499901667237282,
-1.5178196430206299,
-0.11277549713850021,
0.3505776822566986,
-1.4828027486801147,
-0.4381312429904938,
-0.15013021230697632,
1.2121604681015015,
-0.16390663385391235,
1.4095816612243652,
-0.2643299400806427,
-0.12155458331108093,
-0.38604018092155457,
-0.5282540321350098,
0.18058887124061584,
-0.23620876669883728,
-0.6955767869949341,
0.3041072189807892,
-0.7727354168891907,
0.24556562304496765,
1.4462039470672607,
0.30185195803642273,
-0.0350845530629158,
0.5125868916511536,
1.1550142765045166,
0.422202467918396,
-0.11599749326705933,
-0.8731476664543152,
-1.5582395792007446,
1.9677318334579468,
-1.4400715827941895,
1.8329410552978516,
0.7438056468963623,
-0.030411699786782265,
-1.8662338256835938,
-1.9234105348587036,
1.4067271947860718,
1.1204893589019775,
2.4652838706970215,
0.5666244626045227,
0.4661458134651184,
-0.7344788312911987,
-0.7417206764221191,
0.2904804050922394,
-0.9690671563148499,
-0.7363008856773376,
0.11737974733114243,
2.385017156600952,
1.813390851020813,
-0.5611301064491272,
-0.21191680431365967,
-0.8906130790710449,
1.2598273754119873,
-0.22515293955802917,
0.23485571146011353,
2.0406486988067627,
-0.23663437366485596,
-0.9779566526412964,
1.214477300643921,
-2.383258104324341,
0.2845708727836609,
2.0692880153656006,
0.24581697583198547,
0.1895228922367096,
-1.4147708415985107,
-0.6176810264587402,
-0.20197731256484985,
-0.4629283547401428,
-1.196202278137207,
0.6249669194221497,
-0.14405351877212524,
-0.7963201403617859,
-1.3722087144851685,
0.07762166112661362,
-1.1652984619140625,
-1.7209560871124268,
0.29794618487358093,
1.9080387353897095,
2.1404473781585693,
-0.8336679339408875,
1.4131968021392822,
-0.3272981345653534,
0.06435411423444748,
1.2840933799743652,
1.2705117464065552,
3.1671037673950195,
1.9323186874389648,
-1.269317865371704,
0.7462249994277954,
-0.14302828907966614,
-0.49558207392692566,
1.2699981927871704,
-1.085856556892395,
1.0752054452896118,
-0.2268715500831604,
-1.2559868097305298,
-1.180102825164795,
0.9609753489494324,
0.4782307744026184,
-0.040411267429590225,
-0.4523415267467499,
1.252478837966919,
0.09144113212823868,
1.3200781345367432,
0.5398257374763489,
-0.37738850712776184,
0.5601041913032532,
-0.29461920261383057,
-0.4305817782878876,
1.5847769975662231,
0.14625823497772217,
-1.4579956531524658,
-2.2790794372558594,
-0.22620490193367004,
-1.0317108631134033,
-0.02759622409939766,
-0.6787508130073547,
-0.978763997554779,
1.5741468667984009,
0.4400583803653717,
-1.1229925155639648,
-0.2381647229194641,
-0.3523182272911072,
-0.6037643551826477,
2.630234479904175,
-1.395087480545044,
-0.2185676395893097,
-0.9758523106575012,
-0.4724501669406891,
1.6250555515289307,
-1.2351731061935425,
-0.30601394176483154,
-1.0242747068405151,
-0.6215884685516357,
-1.351109504699707,
-0.5331515669822693,
0.02250577136874199,
-0.9127440452575684,
0.825898289680481,
0.1441369354724884,
-1.1322391033172607,
-0.2157796025276184,
-0.9628055691719055,
1.0007598400115967,
-0.10716216266155243,
0.16009783744812012,
1.8694278001785278,
0.3671149015426636,
-0.4413924217224121,
0.7331377267837524,
1.2130777835845947,
0.6462655067443848,
-0.6517133712768555,
0.18339982628822327,
-0.777168869972229,
0.33123141527175903,
-1.4593141078948975,
0.15706780552864075,
-2.9009523391723633,
0.6562537550926208,
-0.07321615517139435,
-0.13449712097644806,
-0.13103637099266052,
-1.3359302282333374,
1.0401809215545654,
2.5526657104492188,
-1.1707924604415894,
0.48976847529411316,
0.41363489627838135,
1.2739094495773315,
-1.561598300933838,
0.23925429582595825,
-0.5122942328453064,
2.0368077754974365,
0.12168196588754654,
1.1646976470947266,
-0.4587346911430359,
-2.2207252979278564,
0.593839168548584,
-1.2541608810424805,
-0.9562023878097534,
0.811759352684021,
-0.8513553738594055,
0.2129635214805603,
-1.4502899646759033,
-0.12182146310806274,
-0.8510401248931885,
-1.2205218076705933,
0.736930251121521,
0.13713347911834717,
0.4578077793121338,
-0.5802390575408936,
0.31117722392082214,
-2.157881259918213,
-1.3733487129211426,
-0.273194283246994,
-1.0266932249069214,
0.5710404515266418,
-0.41605040431022644,
0.6573722958564758,
-0.06889551877975464,
0.10316959768533707,
0.3360961377620697,
1.391165852546692,
3.363223075866699,
0.10915572941303253,
0.25204959511756897,
-0.16838663816452026,
-1.0602222681045532,
1.4548062086105347,
0.9379681348800659,
-0.23358756303787231,
-0.53163743019104,
-1.0419138669967651,
1.3522813320159912,
1.997968316078186,
1.1362707614898682,
0.1361185610294342,
-0.9271456599235535,
-0.8543943762779236,
0.041036784648895264,
0.18138939142227173,
0.542504608631134,
0.9386113882064819,
0.02896210551261902,
0.09762095659971237,
1.3650919198989868,
1.116986870765686,
-0.2754334509372711,
0.45227962732315063,
-0.9071117043495178,
-0.38068220019340515,
0.4571145474910736,
0.22153154015541077,
0.057362861931324005,
0.38625362515449524,
-1.0212007761001587,
-0.3144401013851166,
-0.2280602753162384,
-0.8565982580184937,
-0.7608721852302551,
-0.38767606019973755,
-0.36593306064605713,
1.6377967596054077,
0.016578542068600655,
-0.58689284324646,
0.017139125615358353,
-0.6496914029121399,
-0.04950082302093506,
-1.113721251487732,
0.13622280955314636,
-0.15061363577842712,
-0.08330856263637543,
-0.126438707113266,
1.690994143486023,
-0.948968231678009,
-2.0750551223754883,
0.16615501046180725,
0.3333941102027893,
-0.32515978813171387,
0.12270807474851608,
1.7075787782669067,
0.5592221021652222,
1.3662359714508057,
1.4424254894256592,
1.117688536643982,
-0.6536287069320679,
-1.2735739946365356,
0.7022356986999512,
0.9429124593734741,
-1.3056014776229858,
0.8958756327629089,
-0.18578064441680908,
-0.555538535118103,
0.6070219278335571,
1.3359874486923218,
0.4196554720401764,
-2.0262296199798584,
0.8662403225898743,
-0.9561348557472229,
0.7748772501945496,
0.6961740255355835,
0.8695750832557678,
0.17279019951820374,
0.7821564674377441,
-1.2715907096862793,
-1.1080397367477417,
-0.6701533794403076,
-0.6672657132148743,
1.883454442024231,
-0.25485727190971375,
0.468813419342041,
-0.16735166311264038,
-1.325785517692566,
-0.08921275287866592,
0.7793689966201782,
0.3271152377128601,
-0.4563138782978058,
0.8420911431312561,
-0.6822458505630493,
-0.9956583976745605,
-1.2884806394577026,
-0.47365647554397583,
-0.9775388240814209,
-0.8767983913421631,
1.0640672445297241,
0.8490452170372009,
0.4184251129627228,
1.9169678688049316,
0.7119780778884888,
0.30690813064575195,
-2.546095609664917,
0.8529438376426697,
0.30032381415367126,
-0.0020882142707705498,
0.7319018840789795,
0.26144278049468994,
1.152529001235962,
-0.06305196136236191,
0.6297338008880615,
-2.295114040374756,
2.2659811973571777,
-0.22182464599609375,
0.6594589352607727,
0.06523348391056061,
-0.1744052767753601,
1.1036416292190552,
0.5663469433784485,
0.6342859268188477,
-1.1235076189041138,
0.7094599604606628,
-0.676763117313385,
1.093605875968933,
0.8438698649406433,
-0.91524738073349,
0.119378961622715,
1.3225014209747314,
0.46549925208091736,
-0.48374196887016296,
-1.0178039073944092,
-0.9028016924858093,
1.100917935371399,
1.7499032020568848,
-0.016884034499526024,
0.04653988778591156,
0.8683754801750183,
0.6816176772117615,
-1.2444345951080322,
0.13531699776649475,
-0.6732685565948486,
-0.6749725937843323,
1.6811023950576782,
1.9544081687927246,
-0.12058919668197632,
-0.17523160576820374,
-0.7373597621917725,
-1.3015077114105225,
0.7539300322532654,
-0.000016139820218086243,
-0.017468156293034554,
0.7204039096832275,
-0.6844384670257568,
1.1409200429916382,
0.8143148422241211,
0.9819511771202087,
0.07726765424013138,
0.22655773162841797,
0.2739104926586151,
-0.3252713680267334,
-1.1250512599945068,
-0.3316439986228943,
-0.9403190016746521,
-2.623856782913208,
0.40732768177986145,
-0.2060706615447998,
-1.492846131324768,
0.061837337911129,
-1.0561169385910034,
0.9072544574737549,
-0.5690966844558716,
-1.157132863998413,
-1.4695196151733398,
0.31046590209007263,
-0.24917489290237427,
0.8522369861602783,
-1.6379097700119019,
-0.22362574934959412,
1.2414603233337402,
0.9631555080413818,
-0.6706902980804443,
0.8936879634857178,
0.29793182015419006,
0.9702591896057129,
0.8821048140525818,
-0.3281807005405426,
0.514700710773468,
0.08515848219394684,
-1.2626004219055176,
0.3895517885684967,
1.2329795360565186,
0.15167614817619324,
1.2666635513305664,
-0.544513463973999,
0.08602404594421387,
0.397604763507843,
-0.4630654752254486,
-0.5179150700569153,
-0.6052311062812805,
0.670792818069458,
-0.04404633119702339,
-1.0467993021011353,
-0.13765192031860352,
-0.06372302770614624,
-0.22083839774131775,
0.23419180512428284,
-1.5159090757369995,
-0.2836809456348419,
-0.3205432891845703,
-0.5433809161186218,
-1.3166182041168213,
0.04272208362817764,
1.355921745300293,
-0.8486077785491943,
-0.2610515058040619,
0.453416109085083,
0.30861711502075195,
0.5505688786506653,
0.5436965823173523,
-0.7375825047492981,
-0.28039783239364624,
-0.2791912257671356,
-0.34083858132362366,
0.20346954464912415,
1.3061106204986572,
-0.06355386972427368,
-1.013792872428894,
0.6606349349021912,
-0.3177480399608612,
0.17055171728134155,
1.988161563873291,
0.0504382848739624,
-0.8250986933708191,
0.3369692265987396,
-0.7330567240715027,
1.8121039867401123,
1.7639046907424927,
1.3931910991668701,
-0.049368444830179214,
-0.91155606508255,
0.5514288544654846,
-0.27367109060287476,
-0.35597091913223267,
0.937436044216156,
0.44243353605270386,
-0.31385162472724915,
-1.4607253074645996,
0.5875961780548096,
1.3083174228668213,
-0.75824373960495,
-0.8022459745407104,
0.06323466449975967,
-0.8976863026618958,
1.2544264793395996,
0.6553494334220886,
0.284684419631958,
0.2784665822982788,
1.5278775691986084,
0.7613645195960999,
-0.48689818382263184,
0.511895477771759,
0.52558833360672,
-0.14860931038856506,
-2.079535961151123,
-1.0169645547866821,
0.31943848729133606,
-0.2838243842124939,
-1.618711233139038,
1.4291088581085205,
-1.1490705013275146,
-0.868571937084198,
0.5913053154945374,
0.15817579627037048,
1.3412426710128784,
0.3412571847438812,
1.634656548500061,
2.0725324153900146,
0.7945505380630493,
0.32511258125305176,
1.1260671615600586,
-0.18214145302772522,
-0.39947277307510376,
1.7735170125961304,
-0.4587361514568329,
0.529318630695343,
0.9659085869789124,
-0.3947884738445282,
-1.1560440063476562,
-0.785375714302063,
-1.2214783430099487,
-0.7509391903877258,
1.1758484840393066,
0.05051834136247635,
-1.09197998046875,
0.2557215392589569,
1.6097558736801147,
0.12068282812833786,
-0.19619861245155334,
0.7014771699905396,
0.38167324662208557,
-0.7692129611968994,
-0.08038518577814102,
-0.9415122270584106,
0.48908230662345886,
-0.07202717661857605,
-0.30591583251953125,
0.2857496738433838,
0.49866941571235657,
1.2856202125549316,
0.10506661981344223,
0.10654199123382568,
1.2133885622024536,
-1.3978720903396606,
1.5325685739517212,
-0.7469255328178406,
0.3145466148853302,
-2.4420759677886963,
1.459227442741394,
-0.8102325797080994,
1.8903872966766357,
-2.5755369663238525,
0.45672178268432617,
-0.5815508961677551,
-0.46975386142730713,
0.23820090293884277,
-0.3555150330066681,
0.08188959211111069,
-0.14236456155776978,
-1.051374912261963,
-0.05842801183462143,
-0.8033146262168884,
0.6303775906562805,
1.1967147588729858,
1.4178279638290405,
-1.0759228467941284,
-0.27548572421073914,
-1.761448621749878,
-0.1444777548313141,
-0.7728211283683777,
0.3337087035179138,
-1.8626811504364014,
-0.17827486991882324,
-1.9737205505371094,
-2.335049867630005,
-1.3729349374771118,
-0.8857458233833313,
1.152449607849121,
0.21292048692703247,
-0.9856462478637695,
1.1751673221588135,
-0.43805670738220215,
-1.8090767860412598,
1.1594294309616089,
-2.264247417449951
] |
https://github.com/huggingface/datasets/issues/5230 | dataclasses error when importing the library in python 3.11 | Has this been fixed? I am running into this issue now.
If this has been fixed, could have a new release with this?
| ### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator. | 425 | 23 | dataclasses error when importing the library in python 3.11
### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator.
Has this been fixed? I am running into this issue now.
If this has been fixed, could have a new release with this?
| [
-1.1701884269714355,
-0.857646644115448,
-0.7524360418319702,
1.4626085758209229,
-0.07128031551837921,
-1.2940629720687866,
0.08254144340753555,
-1.0319280624389648,
1.6331838369369507,
-0.7147952318191528,
0.22182029485702515,
-1.7194939851760864,
-0.07934641093015671,
-0.4828549325466156,
-0.7291038632392883,
-0.8426880240440369,
-0.3119206428527832,
-0.8196244835853577,
1.0481781959533691,
2.523341417312622,
1.2307178974151611,
-1.3208659887313843,
2.7868945598602295,
0.6238085627555847,
-0.24288293719291687,
-0.9574365615844727,
0.6163735389709473,
-0.05346987023949623,
-1.3143390417099,
-0.5225592851638794,
-0.9038322567939758,
0.029743049293756485,
-0.5345715284347534,
-0.45915478467941284,
0.09967566281557083,
0.44403722882270813,
-0.21348297595977783,
-0.4020623564720154,
-0.6060376167297363,
-0.7512153387069702,
0.4753338396549225,
-0.2845843434333801,
0.9585056900978088,
-0.367244690656662,
1.7706482410430908,
-0.6621183156967163,
0.3656383156776428,
0.7638512253761292,
1.2994238138198853,
0.1722572147846222,
0.02095254510641098,
0.34259870648384094,
0.35766172409057617,
0.009242847561836243,
0.6282444596290588,
1.2381178140640259,
0.5810648202896118,
0.5441707372665405,
0.7065668702125549,
-2.1947057247161865,
1.3203845024108887,
-0.9193894267082214,
0.3088982403278351,
1.2708704471588135,
-0.8606657981872559,
0.39440932869911194,
-1.747435212135315,
-0.045327674597501755,
0.5146176218986511,
-2.285576105117798,
0.25488805770874023,
-1.211436152458191,
-0.5706304907798767,
0.9591584801673889,
0.3367992341518402,
-1.2044920921325684,
0.13801446557044983,
-0.4823203384876251,
1.0286855697631836,
0.4536576569080353,
1.2515010833740234,
-1.5734632015228271,
0.004236256703734398,
-0.19020575284957886,
0.0949392169713974,
-1.2910598516464233,
-1.6373621225357056,
0.5569540858268738,
0.6437742114067078,
0.558046281337738,
-0.1589750051498413,
1.003986120223999,
-0.9906564354896545,
0.7769876718521118,
-0.9115499258041382,
-1.7345037460327148,
-1.372178316116333,
-2.3346920013427734,
-2.2935285568237305,
0.8208653330802917,
-0.5060144662857056,
-0.49597832560539246,
2.0765726566314697,
-0.9600955843925476,
-1.8250283002853394,
0.9910135269165039,
0.33587199449539185,
0.04798906296491623,
2.35213565826416,
0.2600000202655792,
-0.7983409762382507,
0.4597427248954773,
-0.6727096438407898,
0.8049765229225159,
-0.4302859902381897,
1.2781583070755005,
0.4206845462322235,
-0.9737750887870789,
1.6004436016082764,
-0.49964597821235657,
0.5683760046958923,
-0.6777744293212891,
-0.3985094428062439,
-0.7449970245361328,
0.2461593747138977,
1.9257930517196655,
-0.36163920164108276,
1.5450047254562378,
-0.2930353283882141,
-1.5863111019134521,
-1.5316872596740723,
0.7643271088600159,
0.4229082465171814,
-0.8310455083847046,
0.16675540804862976,
-0.4683856964111328,
0.17404770851135254,
-0.015338800847530365,
1.1285971403121948,
1.1999168395996094,
0.7833067178726196,
-0.22222739458084106,
-0.8429691791534424,
0.26752951741218567,
-0.10204099863767624,
-0.6111804842948914,
-1.7588648796081543,
-0.28719624876976013,
0.2586326599121094,
0.6386565566062927,
-1.2549197673797607,
1.8517755270004272,
0.9096443057060242,
2.0191140174865723,
0.9656742215156555,
-0.34291088581085205,
1.5004477500915527,
0.03538517281413078,
1.9348112344741821,
-0.3894643783569336,
0.5406873226165771,
-0.4269826412200928,
-1.1680527925491333,
0.8064097762107849,
-0.389248788356781,
-1.992811679840088,
-0.7122559547424316,
-0.890948474407196,
-0.09267935901880264,
-0.7701976299285889,
0.9028159379959106,
-0.30218684673309326,
-1.3578805923461914,
0.089130699634552,
-0.7899913191795349,
0.1850736439228058,
-1.3253240585327148,
0.23782381415367126,
0.7315167784690857,
-0.6403331756591797,
0.01902078464627266,
-0.3802940547466278,
-1.3727328777313232,
-0.5613584518432617,
0.39225438237190247,
1.8920421600341797,
-0.6397652626037598,
0.9858567118644714,
1.006394624710083,
-0.7823207974433899,
0.07219655066728592,
0.3646101951599121,
-0.40618619322776794,
0.8057003617286682,
-1.1044697761535645,
-0.4100518226623535,
1.13982093334198,
-0.23631373047828674,
-0.6545977592468262,
1.4401013851165771,
0.7774152755737305,
-1.1438301801681519,
-0.31971415877342224,
-0.22511392831802368,
-0.8823627233505249,
0.03499901667237282,
-1.5178196430206299,
-0.11277549713850021,
0.3505776822566986,
-1.4828027486801147,
-0.4381312429904938,
-0.15013021230697632,
1.2121604681015015,
-0.16390663385391235,
1.4095816612243652,
-0.2643299400806427,
-0.12155458331108093,
-0.38604018092155457,
-0.5282540321350098,
0.18058887124061584,
-0.23620876669883728,
-0.6955767869949341,
0.3041072189807892,
-0.7727354168891907,
0.24556562304496765,
1.4462039470672607,
0.30185195803642273,
-0.0350845530629158,
0.5125868916511536,
1.1550142765045166,
0.422202467918396,
-0.11599749326705933,
-0.8731476664543152,
-1.5582395792007446,
1.9677318334579468,
-1.4400715827941895,
1.8329410552978516,
0.7438056468963623,
-0.030411699786782265,
-1.8662338256835938,
-1.9234105348587036,
1.4067271947860718,
1.1204893589019775,
2.4652838706970215,
0.5666244626045227,
0.4661458134651184,
-0.7344788312911987,
-0.7417206764221191,
0.2904804050922394,
-0.9690671563148499,
-0.7363008856773376,
0.11737974733114243,
2.385017156600952,
1.813390851020813,
-0.5611301064491272,
-0.21191680431365967,
-0.8906130790710449,
1.2598273754119873,
-0.22515293955802917,
0.23485571146011353,
2.0406486988067627,
-0.23663437366485596,
-0.9779566526412964,
1.214477300643921,
-2.383258104324341,
0.2845708727836609,
2.0692880153656006,
0.24581697583198547,
0.1895228922367096,
-1.4147708415985107,
-0.6176810264587402,
-0.20197731256484985,
-0.4629283547401428,
-1.196202278137207,
0.6249669194221497,
-0.14405351877212524,
-0.7963201403617859,
-1.3722087144851685,
0.07762166112661362,
-1.1652984619140625,
-1.7209560871124268,
0.29794618487358093,
1.9080387353897095,
2.1404473781585693,
-0.8336679339408875,
1.4131968021392822,
-0.3272981345653534,
0.06435411423444748,
1.2840933799743652,
1.2705117464065552,
3.1671037673950195,
1.9323186874389648,
-1.269317865371704,
0.7462249994277954,
-0.14302828907966614,
-0.49558207392692566,
1.2699981927871704,
-1.085856556892395,
1.0752054452896118,
-0.2268715500831604,
-1.2559868097305298,
-1.180102825164795,
0.9609753489494324,
0.4782307744026184,
-0.040411267429590225,
-0.4523415267467499,
1.252478837966919,
0.09144113212823868,
1.3200781345367432,
0.5398257374763489,
-0.37738850712776184,
0.5601041913032532,
-0.29461920261383057,
-0.4305817782878876,
1.5847769975662231,
0.14625823497772217,
-1.4579956531524658,
-2.2790794372558594,
-0.22620490193367004,
-1.0317108631134033,
-0.02759622409939766,
-0.6787508130073547,
-0.978763997554779,
1.5741468667984009,
0.4400583803653717,
-1.1229925155639648,
-0.2381647229194641,
-0.3523182272911072,
-0.6037643551826477,
2.630234479904175,
-1.395087480545044,
-0.2185676395893097,
-0.9758523106575012,
-0.4724501669406891,
1.6250555515289307,
-1.2351731061935425,
-0.30601394176483154,
-1.0242747068405151,
-0.6215884685516357,
-1.351109504699707,
-0.5331515669822693,
0.02250577136874199,
-0.9127440452575684,
0.825898289680481,
0.1441369354724884,
-1.1322391033172607,
-0.2157796025276184,
-0.9628055691719055,
1.0007598400115967,
-0.10716216266155243,
0.16009783744812012,
1.8694278001785278,
0.3671149015426636,
-0.4413924217224121,
0.7331377267837524,
1.2130777835845947,
0.6462655067443848,
-0.6517133712768555,
0.18339982628822327,
-0.777168869972229,
0.33123141527175903,
-1.4593141078948975,
0.15706780552864075,
-2.9009523391723633,
0.6562537550926208,
-0.07321615517139435,
-0.13449712097644806,
-0.13103637099266052,
-1.3359302282333374,
1.0401809215545654,
2.5526657104492188,
-1.1707924604415894,
0.48976847529411316,
0.41363489627838135,
1.2739094495773315,
-1.561598300933838,
0.23925429582595825,
-0.5122942328453064,
2.0368077754974365,
0.12168196588754654,
1.1646976470947266,
-0.4587346911430359,
-2.2207252979278564,
0.593839168548584,
-1.2541608810424805,
-0.9562023878097534,
0.811759352684021,
-0.8513553738594055,
0.2129635214805603,
-1.4502899646759033,
-0.12182146310806274,
-0.8510401248931885,
-1.2205218076705933,
0.736930251121521,
0.13713347911834717,
0.4578077793121338,
-0.5802390575408936,
0.31117722392082214,
-2.157881259918213,
-1.3733487129211426,
-0.273194283246994,
-1.0266932249069214,
0.5710404515266418,
-0.41605040431022644,
0.6573722958564758,
-0.06889551877975464,
0.10316959768533707,
0.3360961377620697,
1.391165852546692,
3.363223075866699,
0.10915572941303253,
0.25204959511756897,
-0.16838663816452026,
-1.0602222681045532,
1.4548062086105347,
0.9379681348800659,
-0.23358756303787231,
-0.53163743019104,
-1.0419138669967651,
1.3522813320159912,
1.997968316078186,
1.1362707614898682,
0.1361185610294342,
-0.9271456599235535,
-0.8543943762779236,
0.041036784648895264,
0.18138939142227173,
0.542504608631134,
0.9386113882064819,
0.02896210551261902,
0.09762095659971237,
1.3650919198989868,
1.116986870765686,
-0.2754334509372711,
0.45227962732315063,
-0.9071117043495178,
-0.38068220019340515,
0.4571145474910736,
0.22153154015541077,
0.057362861931324005,
0.38625362515449524,
-1.0212007761001587,
-0.3144401013851166,
-0.2280602753162384,
-0.8565982580184937,
-0.7608721852302551,
-0.38767606019973755,
-0.36593306064605713,
1.6377967596054077,
0.016578542068600655,
-0.58689284324646,
0.017139125615358353,
-0.6496914029121399,
-0.04950082302093506,
-1.113721251487732,
0.13622280955314636,
-0.15061363577842712,
-0.08330856263637543,
-0.126438707113266,
1.690994143486023,
-0.948968231678009,
-2.0750551223754883,
0.16615501046180725,
0.3333941102027893,
-0.32515978813171387,
0.12270807474851608,
1.7075787782669067,
0.5592221021652222,
1.3662359714508057,
1.4424254894256592,
1.117688536643982,
-0.6536287069320679,
-1.2735739946365356,
0.7022356986999512,
0.9429124593734741,
-1.3056014776229858,
0.8958756327629089,
-0.18578064441680908,
-0.555538535118103,
0.6070219278335571,
1.3359874486923218,
0.4196554720401764,
-2.0262296199798584,
0.8662403225898743,
-0.9561348557472229,
0.7748772501945496,
0.6961740255355835,
0.8695750832557678,
0.17279019951820374,
0.7821564674377441,
-1.2715907096862793,
-1.1080397367477417,
-0.6701533794403076,
-0.6672657132148743,
1.883454442024231,
-0.25485727190971375,
0.468813419342041,
-0.16735166311264038,
-1.325785517692566,
-0.08921275287866592,
0.7793689966201782,
0.3271152377128601,
-0.4563138782978058,
0.8420911431312561,
-0.6822458505630493,
-0.9956583976745605,
-1.2884806394577026,
-0.47365647554397583,
-0.9775388240814209,
-0.8767983913421631,
1.0640672445297241,
0.8490452170372009,
0.4184251129627228,
1.9169678688049316,
0.7119780778884888,
0.30690813064575195,
-2.546095609664917,
0.8529438376426697,
0.30032381415367126,
-0.0020882142707705498,
0.7319018840789795,
0.26144278049468994,
1.152529001235962,
-0.06305196136236191,
0.6297338008880615,
-2.295114040374756,
2.2659811973571777,
-0.22182464599609375,
0.6594589352607727,
0.06523348391056061,
-0.1744052767753601,
1.1036416292190552,
0.5663469433784485,
0.6342859268188477,
-1.1235076189041138,
0.7094599604606628,
-0.676763117313385,
1.093605875968933,
0.8438698649406433,
-0.91524738073349,
0.119378961622715,
1.3225014209747314,
0.46549925208091736,
-0.48374196887016296,
-1.0178039073944092,
-0.9028016924858093,
1.100917935371399,
1.7499032020568848,
-0.016884034499526024,
0.04653988778591156,
0.8683754801750183,
0.6816176772117615,
-1.2444345951080322,
0.13531699776649475,
-0.6732685565948486,
-0.6749725937843323,
1.6811023950576782,
1.9544081687927246,
-0.12058919668197632,
-0.17523160576820374,
-0.7373597621917725,
-1.3015077114105225,
0.7539300322532654,
-0.000016139820218086243,
-0.017468156293034554,
0.7204039096832275,
-0.6844384670257568,
1.1409200429916382,
0.8143148422241211,
0.9819511771202087,
0.07726765424013138,
0.22655773162841797,
0.2739104926586151,
-0.3252713680267334,
-1.1250512599945068,
-0.3316439986228943,
-0.9403190016746521,
-2.623856782913208,
0.40732768177986145,
-0.2060706615447998,
-1.492846131324768,
0.061837337911129,
-1.0561169385910034,
0.9072544574737549,
-0.5690966844558716,
-1.157132863998413,
-1.4695196151733398,
0.31046590209007263,
-0.24917489290237427,
0.8522369861602783,
-1.6379097700119019,
-0.22362574934959412,
1.2414603233337402,
0.9631555080413818,
-0.6706902980804443,
0.8936879634857178,
0.29793182015419006,
0.9702591896057129,
0.8821048140525818,
-0.3281807005405426,
0.514700710773468,
0.08515848219394684,
-1.2626004219055176,
0.3895517885684967,
1.2329795360565186,
0.15167614817619324,
1.2666635513305664,
-0.544513463973999,
0.08602404594421387,
0.397604763507843,
-0.4630654752254486,
-0.5179150700569153,
-0.6052311062812805,
0.670792818069458,
-0.04404633119702339,
-1.0467993021011353,
-0.13765192031860352,
-0.06372302770614624,
-0.22083839774131775,
0.23419180512428284,
-1.5159090757369995,
-0.2836809456348419,
-0.3205432891845703,
-0.5433809161186218,
-1.3166182041168213,
0.04272208362817764,
1.355921745300293,
-0.8486077785491943,
-0.2610515058040619,
0.453416109085083,
0.30861711502075195,
0.5505688786506653,
0.5436965823173523,
-0.7375825047492981,
-0.28039783239364624,
-0.2791912257671356,
-0.34083858132362366,
0.20346954464912415,
1.3061106204986572,
-0.06355386972427368,
-1.013792872428894,
0.6606349349021912,
-0.3177480399608612,
0.17055171728134155,
1.988161563873291,
0.0504382848739624,
-0.8250986933708191,
0.3369692265987396,
-0.7330567240715027,
1.8121039867401123,
1.7639046907424927,
1.3931910991668701,
-0.049368444830179214,
-0.91155606508255,
0.5514288544654846,
-0.27367109060287476,
-0.35597091913223267,
0.937436044216156,
0.44243353605270386,
-0.31385162472724915,
-1.4607253074645996,
0.5875961780548096,
1.3083174228668213,
-0.75824373960495,
-0.8022459745407104,
0.06323466449975967,
-0.8976863026618958,
1.2544264793395996,
0.6553494334220886,
0.284684419631958,
0.2784665822982788,
1.5278775691986084,
0.7613645195960999,
-0.48689818382263184,
0.511895477771759,
0.52558833360672,
-0.14860931038856506,
-2.079535961151123,
-1.0169645547866821,
0.31943848729133606,
-0.2838243842124939,
-1.618711233139038,
1.4291088581085205,
-1.1490705013275146,
-0.868571937084198,
0.5913053154945374,
0.15817579627037048,
1.3412426710128784,
0.3412571847438812,
1.634656548500061,
2.0725324153900146,
0.7945505380630493,
0.32511258125305176,
1.1260671615600586,
-0.18214145302772522,
-0.39947277307510376,
1.7735170125961304,
-0.4587361514568329,
0.529318630695343,
0.9659085869789124,
-0.3947884738445282,
-1.1560440063476562,
-0.785375714302063,
-1.2214783430099487,
-0.7509391903877258,
1.1758484840393066,
0.05051834136247635,
-1.09197998046875,
0.2557215392589569,
1.6097558736801147,
0.12068282812833786,
-0.19619861245155334,
0.7014771699905396,
0.38167324662208557,
-0.7692129611968994,
-0.08038518577814102,
-0.9415122270584106,
0.48908230662345886,
-0.07202717661857605,
-0.30591583251953125,
0.2857496738433838,
0.49866941571235657,
1.2856202125549316,
0.10506661981344223,
0.10654199123382568,
1.2133885622024536,
-1.3978720903396606,
1.5325685739517212,
-0.7469255328178406,
0.3145466148853302,
-2.4420759677886963,
1.459227442741394,
-0.8102325797080994,
1.8903872966766357,
-2.5755369663238525,
0.45672178268432617,
-0.5815508961677551,
-0.46975386142730713,
0.23820090293884277,
-0.3555150330066681,
0.08188959211111069,
-0.14236456155776978,
-1.051374912261963,
-0.05842801183462143,
-0.8033146262168884,
0.6303775906562805,
1.1967147588729858,
1.4178279638290405,
-1.0759228467941284,
-0.27548572421073914,
-1.761448621749878,
-0.1444777548313141,
-0.7728211283683777,
0.3337087035179138,
-1.8626811504364014,
-0.17827486991882324,
-1.9737205505371094,
-2.335049867630005,
-1.3729349374771118,
-0.8857458233833313,
1.152449607849121,
0.21292048692703247,
-0.9856462478637695,
1.1751673221588135,
-0.43805670738220215,
-1.8090767860412598,
1.1594294309616089,
-2.264247417449951
] |
https://github.com/huggingface/datasets/issues/5230 | dataclasses error when importing the library in python 3.11 | Hi, I am getting error while trainingΒ
(tensorflow) C:\tensorflow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
Traceback (most recent call last):
File "C:\tensorflow\models\research\object_detection\train.py", line 54, in <module>
from object_detection.legacy import trainer
File "C:\tensorflow\models\research\object_detection\legacy\trainer.py", line 27, in <module>
from object_detection.builders import optimizer_builder
File "C:\tensorflow\models\research\object_detection\builders\optimizer_builder.py", line 25, in <module>
from official.modeling.optimization import ema_optimizer
File "C:\tensorflow\models\official\modeling\optimization\__init__.py", line 19, in <module>
from official.modeling.optimization.configs.optimization_config import *
File "C:\tensorflow\models\official\modeling\optimization\configs\optimization_config.py", line 31, in <module>
@dataclasses.dataclass
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 1223, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 1213, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'official.modeling.optimization.configs.optimizer_config.SGDConfig'> for field sgd is not allowed: use default_factory | ### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator. | 425 | 126 | dataclasses error when importing the library in python 3.11
### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator.
Hi, I am getting error while trainingΒ
(tensorflow) C:\tensorflow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
Traceback (most recent call last):
File "C:\tensorflow\models\research\object_detection\train.py", line 54, in <module>
from object_detection.legacy import trainer
File "C:\tensorflow\models\research\object_detection\legacy\trainer.py", line 27, in <module>
from object_detection.builders import optimizer_builder
File "C:\tensorflow\models\research\object_detection\builders\optimizer_builder.py", line 25, in <module>
from official.modeling.optimization import ema_optimizer
File "C:\tensorflow\models\official\modeling\optimization\__init__.py", line 19, in <module>
from official.modeling.optimization.configs.optimization_config import *
File "C:\tensorflow\models\official\modeling\optimization\configs\optimization_config.py", line 31, in <module>
@dataclasses.dataclass
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 1223, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 1213, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'official.modeling.optimization.configs.optimizer_config.SGDConfig'> for field sgd is not allowed: use default_factory | [
-1.1701884269714355,
-0.857646644115448,
-0.7524360418319702,
1.4626085758209229,
-0.07128031551837921,
-1.2940629720687866,
0.08254144340753555,
-1.0319280624389648,
1.6331838369369507,
-0.7147952318191528,
0.22182029485702515,
-1.7194939851760864,
-0.07934641093015671,
-0.4828549325466156,
-0.7291038632392883,
-0.8426880240440369,
-0.3119206428527832,
-0.8196244835853577,
1.0481781959533691,
2.523341417312622,
1.2307178974151611,
-1.3208659887313843,
2.7868945598602295,
0.6238085627555847,
-0.24288293719291687,
-0.9574365615844727,
0.6163735389709473,
-0.05346987023949623,
-1.3143390417099,
-0.5225592851638794,
-0.9038322567939758,
0.029743049293756485,
-0.5345715284347534,
-0.45915478467941284,
0.09967566281557083,
0.44403722882270813,
-0.21348297595977783,
-0.4020623564720154,
-0.6060376167297363,
-0.7512153387069702,
0.4753338396549225,
-0.2845843434333801,
0.9585056900978088,
-0.367244690656662,
1.7706482410430908,
-0.6621183156967163,
0.3656383156776428,
0.7638512253761292,
1.2994238138198853,
0.1722572147846222,
0.02095254510641098,
0.34259870648384094,
0.35766172409057617,
0.009242847561836243,
0.6282444596290588,
1.2381178140640259,
0.5810648202896118,
0.5441707372665405,
0.7065668702125549,
-2.1947057247161865,
1.3203845024108887,
-0.9193894267082214,
0.3088982403278351,
1.2708704471588135,
-0.8606657981872559,
0.39440932869911194,
-1.747435212135315,
-0.045327674597501755,
0.5146176218986511,
-2.285576105117798,
0.25488805770874023,
-1.211436152458191,
-0.5706304907798767,
0.9591584801673889,
0.3367992341518402,
-1.2044920921325684,
0.13801446557044983,
-0.4823203384876251,
1.0286855697631836,
0.4536576569080353,
1.2515010833740234,
-1.5734632015228271,
0.004236256703734398,
-0.19020575284957886,
0.0949392169713974,
-1.2910598516464233,
-1.6373621225357056,
0.5569540858268738,
0.6437742114067078,
0.558046281337738,
-0.1589750051498413,
1.003986120223999,
-0.9906564354896545,
0.7769876718521118,
-0.9115499258041382,
-1.7345037460327148,
-1.372178316116333,
-2.3346920013427734,
-2.2935285568237305,
0.8208653330802917,
-0.5060144662857056,
-0.49597832560539246,
2.0765726566314697,
-0.9600955843925476,
-1.8250283002853394,
0.9910135269165039,
0.33587199449539185,
0.04798906296491623,
2.35213565826416,
0.2600000202655792,
-0.7983409762382507,
0.4597427248954773,
-0.6727096438407898,
0.8049765229225159,
-0.4302859902381897,
1.2781583070755005,
0.4206845462322235,
-0.9737750887870789,
1.6004436016082764,
-0.49964597821235657,
0.5683760046958923,
-0.6777744293212891,
-0.3985094428062439,
-0.7449970245361328,
0.2461593747138977,
1.9257930517196655,
-0.36163920164108276,
1.5450047254562378,
-0.2930353283882141,
-1.5863111019134521,
-1.5316872596740723,
0.7643271088600159,
0.4229082465171814,
-0.8310455083847046,
0.16675540804862976,
-0.4683856964111328,
0.17404770851135254,
-0.015338800847530365,
1.1285971403121948,
1.1999168395996094,
0.7833067178726196,
-0.22222739458084106,
-0.8429691791534424,
0.26752951741218567,
-0.10204099863767624,
-0.6111804842948914,
-1.7588648796081543,
-0.28719624876976013,
0.2586326599121094,
0.6386565566062927,
-1.2549197673797607,
1.8517755270004272,
0.9096443057060242,
2.0191140174865723,
0.9656742215156555,
-0.34291088581085205,
1.5004477500915527,
0.03538517281413078,
1.9348112344741821,
-0.3894643783569336,
0.5406873226165771,
-0.4269826412200928,
-1.1680527925491333,
0.8064097762107849,
-0.389248788356781,
-1.992811679840088,
-0.7122559547424316,
-0.890948474407196,
-0.09267935901880264,
-0.7701976299285889,
0.9028159379959106,
-0.30218684673309326,
-1.3578805923461914,
0.089130699634552,
-0.7899913191795349,
0.1850736439228058,
-1.3253240585327148,
0.23782381415367126,
0.7315167784690857,
-0.6403331756591797,
0.01902078464627266,
-0.3802940547466278,
-1.3727328777313232,
-0.5613584518432617,
0.39225438237190247,
1.8920421600341797,
-0.6397652626037598,
0.9858567118644714,
1.006394624710083,
-0.7823207974433899,
0.07219655066728592,
0.3646101951599121,
-0.40618619322776794,
0.8057003617286682,
-1.1044697761535645,
-0.4100518226623535,
1.13982093334198,
-0.23631373047828674,
-0.6545977592468262,
1.4401013851165771,
0.7774152755737305,
-1.1438301801681519,
-0.31971415877342224,
-0.22511392831802368,
-0.8823627233505249,
0.03499901667237282,
-1.5178196430206299,
-0.11277549713850021,
0.3505776822566986,
-1.4828027486801147,
-0.4381312429904938,
-0.15013021230697632,
1.2121604681015015,
-0.16390663385391235,
1.4095816612243652,
-0.2643299400806427,
-0.12155458331108093,
-0.38604018092155457,
-0.5282540321350098,
0.18058887124061584,
-0.23620876669883728,
-0.6955767869949341,
0.3041072189807892,
-0.7727354168891907,
0.24556562304496765,
1.4462039470672607,
0.30185195803642273,
-0.0350845530629158,
0.5125868916511536,
1.1550142765045166,
0.422202467918396,
-0.11599749326705933,
-0.8731476664543152,
-1.5582395792007446,
1.9677318334579468,
-1.4400715827941895,
1.8329410552978516,
0.7438056468963623,
-0.030411699786782265,
-1.8662338256835938,
-1.9234105348587036,
1.4067271947860718,
1.1204893589019775,
2.4652838706970215,
0.5666244626045227,
0.4661458134651184,
-0.7344788312911987,
-0.7417206764221191,
0.2904804050922394,
-0.9690671563148499,
-0.7363008856773376,
0.11737974733114243,
2.385017156600952,
1.813390851020813,
-0.5611301064491272,
-0.21191680431365967,
-0.8906130790710449,
1.2598273754119873,
-0.22515293955802917,
0.23485571146011353,
2.0406486988067627,
-0.23663437366485596,
-0.9779566526412964,
1.214477300643921,
-2.383258104324341,
0.2845708727836609,
2.0692880153656006,
0.24581697583198547,
0.1895228922367096,
-1.4147708415985107,
-0.6176810264587402,
-0.20197731256484985,
-0.4629283547401428,
-1.196202278137207,
0.6249669194221497,
-0.14405351877212524,
-0.7963201403617859,
-1.3722087144851685,
0.07762166112661362,
-1.1652984619140625,
-1.7209560871124268,
0.29794618487358093,
1.9080387353897095,
2.1404473781585693,
-0.8336679339408875,
1.4131968021392822,
-0.3272981345653534,
0.06435411423444748,
1.2840933799743652,
1.2705117464065552,
3.1671037673950195,
1.9323186874389648,
-1.269317865371704,
0.7462249994277954,
-0.14302828907966614,
-0.49558207392692566,
1.2699981927871704,
-1.085856556892395,
1.0752054452896118,
-0.2268715500831604,
-1.2559868097305298,
-1.180102825164795,
0.9609753489494324,
0.4782307744026184,
-0.040411267429590225,
-0.4523415267467499,
1.252478837966919,
0.09144113212823868,
1.3200781345367432,
0.5398257374763489,
-0.37738850712776184,
0.5601041913032532,
-0.29461920261383057,
-0.4305817782878876,
1.5847769975662231,
0.14625823497772217,
-1.4579956531524658,
-2.2790794372558594,
-0.22620490193367004,
-1.0317108631134033,
-0.02759622409939766,
-0.6787508130073547,
-0.978763997554779,
1.5741468667984009,
0.4400583803653717,
-1.1229925155639648,
-0.2381647229194641,
-0.3523182272911072,
-0.6037643551826477,
2.630234479904175,
-1.395087480545044,
-0.2185676395893097,
-0.9758523106575012,
-0.4724501669406891,
1.6250555515289307,
-1.2351731061935425,
-0.30601394176483154,
-1.0242747068405151,
-0.6215884685516357,
-1.351109504699707,
-0.5331515669822693,
0.02250577136874199,
-0.9127440452575684,
0.825898289680481,
0.1441369354724884,
-1.1322391033172607,
-0.2157796025276184,
-0.9628055691719055,
1.0007598400115967,
-0.10716216266155243,
0.16009783744812012,
1.8694278001785278,
0.3671149015426636,
-0.4413924217224121,
0.7331377267837524,
1.2130777835845947,
0.6462655067443848,
-0.6517133712768555,
0.18339982628822327,
-0.777168869972229,
0.33123141527175903,
-1.4593141078948975,
0.15706780552864075,
-2.9009523391723633,
0.6562537550926208,
-0.07321615517139435,
-0.13449712097644806,
-0.13103637099266052,
-1.3359302282333374,
1.0401809215545654,
2.5526657104492188,
-1.1707924604415894,
0.48976847529411316,
0.41363489627838135,
1.2739094495773315,
-1.561598300933838,
0.23925429582595825,
-0.5122942328453064,
2.0368077754974365,
0.12168196588754654,
1.1646976470947266,
-0.4587346911430359,
-2.2207252979278564,
0.593839168548584,
-1.2541608810424805,
-0.9562023878097534,
0.811759352684021,
-0.8513553738594055,
0.2129635214805603,
-1.4502899646759033,
-0.12182146310806274,
-0.8510401248931885,
-1.2205218076705933,
0.736930251121521,
0.13713347911834717,
0.4578077793121338,
-0.5802390575408936,
0.31117722392082214,
-2.157881259918213,
-1.3733487129211426,
-0.273194283246994,
-1.0266932249069214,
0.5710404515266418,
-0.41605040431022644,
0.6573722958564758,
-0.06889551877975464,
0.10316959768533707,
0.3360961377620697,
1.391165852546692,
3.363223075866699,
0.10915572941303253,
0.25204959511756897,
-0.16838663816452026,
-1.0602222681045532,
1.4548062086105347,
0.9379681348800659,
-0.23358756303787231,
-0.53163743019104,
-1.0419138669967651,
1.3522813320159912,
1.997968316078186,
1.1362707614898682,
0.1361185610294342,
-0.9271456599235535,
-0.8543943762779236,
0.041036784648895264,
0.18138939142227173,
0.542504608631134,
0.9386113882064819,
0.02896210551261902,
0.09762095659971237,
1.3650919198989868,
1.116986870765686,
-0.2754334509372711,
0.45227962732315063,
-0.9071117043495178,
-0.38068220019340515,
0.4571145474910736,
0.22153154015541077,
0.057362861931324005,
0.38625362515449524,
-1.0212007761001587,
-0.3144401013851166,
-0.2280602753162384,
-0.8565982580184937,
-0.7608721852302551,
-0.38767606019973755,
-0.36593306064605713,
1.6377967596054077,
0.016578542068600655,
-0.58689284324646,
0.017139125615358353,
-0.6496914029121399,
-0.04950082302093506,
-1.113721251487732,
0.13622280955314636,
-0.15061363577842712,
-0.08330856263637543,
-0.126438707113266,
1.690994143486023,
-0.948968231678009,
-2.0750551223754883,
0.16615501046180725,
0.3333941102027893,
-0.32515978813171387,
0.12270807474851608,
1.7075787782669067,
0.5592221021652222,
1.3662359714508057,
1.4424254894256592,
1.117688536643982,
-0.6536287069320679,
-1.2735739946365356,
0.7022356986999512,
0.9429124593734741,
-1.3056014776229858,
0.8958756327629089,
-0.18578064441680908,
-0.555538535118103,
0.6070219278335571,
1.3359874486923218,
0.4196554720401764,
-2.0262296199798584,
0.8662403225898743,
-0.9561348557472229,
0.7748772501945496,
0.6961740255355835,
0.8695750832557678,
0.17279019951820374,
0.7821564674377441,
-1.2715907096862793,
-1.1080397367477417,
-0.6701533794403076,
-0.6672657132148743,
1.883454442024231,
-0.25485727190971375,
0.468813419342041,
-0.16735166311264038,
-1.325785517692566,
-0.08921275287866592,
0.7793689966201782,
0.3271152377128601,
-0.4563138782978058,
0.8420911431312561,
-0.6822458505630493,
-0.9956583976745605,
-1.2884806394577026,
-0.47365647554397583,
-0.9775388240814209,
-0.8767983913421631,
1.0640672445297241,
0.8490452170372009,
0.4184251129627228,
1.9169678688049316,
0.7119780778884888,
0.30690813064575195,
-2.546095609664917,
0.8529438376426697,
0.30032381415367126,
-0.0020882142707705498,
0.7319018840789795,
0.26144278049468994,
1.152529001235962,
-0.06305196136236191,
0.6297338008880615,
-2.295114040374756,
2.2659811973571777,
-0.22182464599609375,
0.6594589352607727,
0.06523348391056061,
-0.1744052767753601,
1.1036416292190552,
0.5663469433784485,
0.6342859268188477,
-1.1235076189041138,
0.7094599604606628,
-0.676763117313385,
1.093605875968933,
0.8438698649406433,
-0.91524738073349,
0.119378961622715,
1.3225014209747314,
0.46549925208091736,
-0.48374196887016296,
-1.0178039073944092,
-0.9028016924858093,
1.100917935371399,
1.7499032020568848,
-0.016884034499526024,
0.04653988778591156,
0.8683754801750183,
0.6816176772117615,
-1.2444345951080322,
0.13531699776649475,
-0.6732685565948486,
-0.6749725937843323,
1.6811023950576782,
1.9544081687927246,
-0.12058919668197632,
-0.17523160576820374,
-0.7373597621917725,
-1.3015077114105225,
0.7539300322532654,
-0.000016139820218086243,
-0.017468156293034554,
0.7204039096832275,
-0.6844384670257568,
1.1409200429916382,
0.8143148422241211,
0.9819511771202087,
0.07726765424013138,
0.22655773162841797,
0.2739104926586151,
-0.3252713680267334,
-1.1250512599945068,
-0.3316439986228943,
-0.9403190016746521,
-2.623856782913208,
0.40732768177986145,
-0.2060706615447998,
-1.492846131324768,
0.061837337911129,
-1.0561169385910034,
0.9072544574737549,
-0.5690966844558716,
-1.157132863998413,
-1.4695196151733398,
0.31046590209007263,
-0.24917489290237427,
0.8522369861602783,
-1.6379097700119019,
-0.22362574934959412,
1.2414603233337402,
0.9631555080413818,
-0.6706902980804443,
0.8936879634857178,
0.29793182015419006,
0.9702591896057129,
0.8821048140525818,
-0.3281807005405426,
0.514700710773468,
0.08515848219394684,
-1.2626004219055176,
0.3895517885684967,
1.2329795360565186,
0.15167614817619324,
1.2666635513305664,
-0.544513463973999,
0.08602404594421387,
0.397604763507843,
-0.4630654752254486,
-0.5179150700569153,
-0.6052311062812805,
0.670792818069458,
-0.04404633119702339,
-1.0467993021011353,
-0.13765192031860352,
-0.06372302770614624,
-0.22083839774131775,
0.23419180512428284,
-1.5159090757369995,
-0.2836809456348419,
-0.3205432891845703,
-0.5433809161186218,
-1.3166182041168213,
0.04272208362817764,
1.355921745300293,
-0.8486077785491943,
-0.2610515058040619,
0.453416109085083,
0.30861711502075195,
0.5505688786506653,
0.5436965823173523,
-0.7375825047492981,
-0.28039783239364624,
-0.2791912257671356,
-0.34083858132362366,
0.20346954464912415,
1.3061106204986572,
-0.06355386972427368,
-1.013792872428894,
0.6606349349021912,
-0.3177480399608612,
0.17055171728134155,
1.988161563873291,
0.0504382848739624,
-0.8250986933708191,
0.3369692265987396,
-0.7330567240715027,
1.8121039867401123,
1.7639046907424927,
1.3931910991668701,
-0.049368444830179214,
-0.91155606508255,
0.5514288544654846,
-0.27367109060287476,
-0.35597091913223267,
0.937436044216156,
0.44243353605270386,
-0.31385162472724915,
-1.4607253074645996,
0.5875961780548096,
1.3083174228668213,
-0.75824373960495,
-0.8022459745407104,
0.06323466449975967,
-0.8976863026618958,
1.2544264793395996,
0.6553494334220886,
0.284684419631958,
0.2784665822982788,
1.5278775691986084,
0.7613645195960999,
-0.48689818382263184,
0.511895477771759,
0.52558833360672,
-0.14860931038856506,
-2.079535961151123,
-1.0169645547866821,
0.31943848729133606,
-0.2838243842124939,
-1.618711233139038,
1.4291088581085205,
-1.1490705013275146,
-0.868571937084198,
0.5913053154945374,
0.15817579627037048,
1.3412426710128784,
0.3412571847438812,
1.634656548500061,
2.0725324153900146,
0.7945505380630493,
0.32511258125305176,
1.1260671615600586,
-0.18214145302772522,
-0.39947277307510376,
1.7735170125961304,
-0.4587361514568329,
0.529318630695343,
0.9659085869789124,
-0.3947884738445282,
-1.1560440063476562,
-0.785375714302063,
-1.2214783430099487,
-0.7509391903877258,
1.1758484840393066,
0.05051834136247635,
-1.09197998046875,
0.2557215392589569,
1.6097558736801147,
0.12068282812833786,
-0.19619861245155334,
0.7014771699905396,
0.38167324662208557,
-0.7692129611968994,
-0.08038518577814102,
-0.9415122270584106,
0.48908230662345886,
-0.07202717661857605,
-0.30591583251953125,
0.2857496738433838,
0.49866941571235657,
1.2856202125549316,
0.10506661981344223,
0.10654199123382568,
1.2133885622024536,
-1.3978720903396606,
1.5325685739517212,
-0.7469255328178406,
0.3145466148853302,
-2.4420759677886963,
1.459227442741394,
-0.8102325797080994,
1.8903872966766357,
-2.5755369663238525,
0.45672178268432617,
-0.5815508961677551,
-0.46975386142730713,
0.23820090293884277,
-0.3555150330066681,
0.08188959211111069,
-0.14236456155776978,
-1.051374912261963,
-0.05842801183462143,
-0.8033146262168884,
0.6303775906562805,
1.1967147588729858,
1.4178279638290405,
-1.0759228467941284,
-0.27548572421073914,
-1.761448621749878,
-0.1444777548313141,
-0.7728211283683777,
0.3337087035179138,
-1.8626811504364014,
-0.17827486991882324,
-1.9737205505371094,
-2.335049867630005,
-1.3729349374771118,
-0.8857458233833313,
1.152449607849121,
0.21292048692703247,
-0.9856462478637695,
1.1751673221588135,
-0.43805670738220215,
-1.8090767860412598,
1.1594294309616089,
-2.264247417449951
] |
https://github.com/huggingface/datasets/issues/5230 | dataclasses error when importing the library in python 3.11 | @Jayanth1812 and anyone else receiving a similar issue, it most likely has to do with your Python version. Downgrading to Python 3.9 works for me, but doing a downgrade might impact a lot of things. So to be safe and what worked for me was creating a new conda environment and following the installations here: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html
And for Tensorflow GPU compatibility, after installing TensorFlow follow the instructions in section 4 'GPU Setup' in this document: https://www.tensorflow.org/install/pip | ### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator. | 425 | 76 | dataclasses error when importing the library in python 3.11
### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator.
@Jayanth1812 and anyone else receiving a similar issue, it most likely has to do with your Python version. Downgrading to Python 3.9 works for me, but doing a downgrade might impact a lot of things. So to be safe and what worked for me was creating a new conda environment and following the installations here: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html
And for Tensorflow GPU compatibility, after installing TensorFlow follow the instructions in section 4 'GPU Setup' in this document: https://www.tensorflow.org/install/pip | [
-1.1701884269714355,
-0.857646644115448,
-0.7524360418319702,
1.4626085758209229,
-0.07128031551837921,
-1.2940629720687866,
0.08254144340753555,
-1.0319280624389648,
1.6331838369369507,
-0.7147952318191528,
0.22182029485702515,
-1.7194939851760864,
-0.07934641093015671,
-0.4828549325466156,
-0.7291038632392883,
-0.8426880240440369,
-0.3119206428527832,
-0.8196244835853577,
1.0481781959533691,
2.523341417312622,
1.2307178974151611,
-1.3208659887313843,
2.7868945598602295,
0.6238085627555847,
-0.24288293719291687,
-0.9574365615844727,
0.6163735389709473,
-0.05346987023949623,
-1.3143390417099,
-0.5225592851638794,
-0.9038322567939758,
0.029743049293756485,
-0.5345715284347534,
-0.45915478467941284,
0.09967566281557083,
0.44403722882270813,
-0.21348297595977783,
-0.4020623564720154,
-0.6060376167297363,
-0.7512153387069702,
0.4753338396549225,
-0.2845843434333801,
0.9585056900978088,
-0.367244690656662,
1.7706482410430908,
-0.6621183156967163,
0.3656383156776428,
0.7638512253761292,
1.2994238138198853,
0.1722572147846222,
0.02095254510641098,
0.34259870648384094,
0.35766172409057617,
0.009242847561836243,
0.6282444596290588,
1.2381178140640259,
0.5810648202896118,
0.5441707372665405,
0.7065668702125549,
-2.1947057247161865,
1.3203845024108887,
-0.9193894267082214,
0.3088982403278351,
1.2708704471588135,
-0.8606657981872559,
0.39440932869911194,
-1.747435212135315,
-0.045327674597501755,
0.5146176218986511,
-2.285576105117798,
0.25488805770874023,
-1.211436152458191,
-0.5706304907798767,
0.9591584801673889,
0.3367992341518402,
-1.2044920921325684,
0.13801446557044983,
-0.4823203384876251,
1.0286855697631836,
0.4536576569080353,
1.2515010833740234,
-1.5734632015228271,
0.004236256703734398,
-0.19020575284957886,
0.0949392169713974,
-1.2910598516464233,
-1.6373621225357056,
0.5569540858268738,
0.6437742114067078,
0.558046281337738,
-0.1589750051498413,
1.003986120223999,
-0.9906564354896545,
0.7769876718521118,
-0.9115499258041382,
-1.7345037460327148,
-1.372178316116333,
-2.3346920013427734,
-2.2935285568237305,
0.8208653330802917,
-0.5060144662857056,
-0.49597832560539246,
2.0765726566314697,
-0.9600955843925476,
-1.8250283002853394,
0.9910135269165039,
0.33587199449539185,
0.04798906296491623,
2.35213565826416,
0.2600000202655792,
-0.7983409762382507,
0.4597427248954773,
-0.6727096438407898,
0.8049765229225159,
-0.4302859902381897,
1.2781583070755005,
0.4206845462322235,
-0.9737750887870789,
1.6004436016082764,
-0.49964597821235657,
0.5683760046958923,
-0.6777744293212891,
-0.3985094428062439,
-0.7449970245361328,
0.2461593747138977,
1.9257930517196655,
-0.36163920164108276,
1.5450047254562378,
-0.2930353283882141,
-1.5863111019134521,
-1.5316872596740723,
0.7643271088600159,
0.4229082465171814,
-0.8310455083847046,
0.16675540804862976,
-0.4683856964111328,
0.17404770851135254,
-0.015338800847530365,
1.1285971403121948,
1.1999168395996094,
0.7833067178726196,
-0.22222739458084106,
-0.8429691791534424,
0.26752951741218567,
-0.10204099863767624,
-0.6111804842948914,
-1.7588648796081543,
-0.28719624876976013,
0.2586326599121094,
0.6386565566062927,
-1.2549197673797607,
1.8517755270004272,
0.9096443057060242,
2.0191140174865723,
0.9656742215156555,
-0.34291088581085205,
1.5004477500915527,
0.03538517281413078,
1.9348112344741821,
-0.3894643783569336,
0.5406873226165771,
-0.4269826412200928,
-1.1680527925491333,
0.8064097762107849,
-0.389248788356781,
-1.992811679840088,
-0.7122559547424316,
-0.890948474407196,
-0.09267935901880264,
-0.7701976299285889,
0.9028159379959106,
-0.30218684673309326,
-1.3578805923461914,
0.089130699634552,
-0.7899913191795349,
0.1850736439228058,
-1.3253240585327148,
0.23782381415367126,
0.7315167784690857,
-0.6403331756591797,
0.01902078464627266,
-0.3802940547466278,
-1.3727328777313232,
-0.5613584518432617,
0.39225438237190247,
1.8920421600341797,
-0.6397652626037598,
0.9858567118644714,
1.006394624710083,
-0.7823207974433899,
0.07219655066728592,
0.3646101951599121,
-0.40618619322776794,
0.8057003617286682,
-1.1044697761535645,
-0.4100518226623535,
1.13982093334198,
-0.23631373047828674,
-0.6545977592468262,
1.4401013851165771,
0.7774152755737305,
-1.1438301801681519,
-0.31971415877342224,
-0.22511392831802368,
-0.8823627233505249,
0.03499901667237282,
-1.5178196430206299,
-0.11277549713850021,
0.3505776822566986,
-1.4828027486801147,
-0.4381312429904938,
-0.15013021230697632,
1.2121604681015015,
-0.16390663385391235,
1.4095816612243652,
-0.2643299400806427,
-0.12155458331108093,
-0.38604018092155457,
-0.5282540321350098,
0.18058887124061584,
-0.23620876669883728,
-0.6955767869949341,
0.3041072189807892,
-0.7727354168891907,
0.24556562304496765,
1.4462039470672607,
0.30185195803642273,
-0.0350845530629158,
0.5125868916511536,
1.1550142765045166,
0.422202467918396,
-0.11599749326705933,
-0.8731476664543152,
-1.5582395792007446,
1.9677318334579468,
-1.4400715827941895,
1.8329410552978516,
0.7438056468963623,
-0.030411699786782265,
-1.8662338256835938,
-1.9234105348587036,
1.4067271947860718,
1.1204893589019775,
2.4652838706970215,
0.5666244626045227,
0.4661458134651184,
-0.7344788312911987,
-0.7417206764221191,
0.2904804050922394,
-0.9690671563148499,
-0.7363008856773376,
0.11737974733114243,
2.385017156600952,
1.813390851020813,
-0.5611301064491272,
-0.21191680431365967,
-0.8906130790710449,
1.2598273754119873,
-0.22515293955802917,
0.23485571146011353,
2.0406486988067627,
-0.23663437366485596,
-0.9779566526412964,
1.214477300643921,
-2.383258104324341,
0.2845708727836609,
2.0692880153656006,
0.24581697583198547,
0.1895228922367096,
-1.4147708415985107,
-0.6176810264587402,
-0.20197731256484985,
-0.4629283547401428,
-1.196202278137207,
0.6249669194221497,
-0.14405351877212524,
-0.7963201403617859,
-1.3722087144851685,
0.07762166112661362,
-1.1652984619140625,
-1.7209560871124268,
0.29794618487358093,
1.9080387353897095,
2.1404473781585693,
-0.8336679339408875,
1.4131968021392822,
-0.3272981345653534,
0.06435411423444748,
1.2840933799743652,
1.2705117464065552,
3.1671037673950195,
1.9323186874389648,
-1.269317865371704,
0.7462249994277954,
-0.14302828907966614,
-0.49558207392692566,
1.2699981927871704,
-1.085856556892395,
1.0752054452896118,
-0.2268715500831604,
-1.2559868097305298,
-1.180102825164795,
0.9609753489494324,
0.4782307744026184,
-0.040411267429590225,
-0.4523415267467499,
1.252478837966919,
0.09144113212823868,
1.3200781345367432,
0.5398257374763489,
-0.37738850712776184,
0.5601041913032532,
-0.29461920261383057,
-0.4305817782878876,
1.5847769975662231,
0.14625823497772217,
-1.4579956531524658,
-2.2790794372558594,
-0.22620490193367004,
-1.0317108631134033,
-0.02759622409939766,
-0.6787508130073547,
-0.978763997554779,
1.5741468667984009,
0.4400583803653717,
-1.1229925155639648,
-0.2381647229194641,
-0.3523182272911072,
-0.6037643551826477,
2.630234479904175,
-1.395087480545044,
-0.2185676395893097,
-0.9758523106575012,
-0.4724501669406891,
1.6250555515289307,
-1.2351731061935425,
-0.30601394176483154,
-1.0242747068405151,
-0.6215884685516357,
-1.351109504699707,
-0.5331515669822693,
0.02250577136874199,
-0.9127440452575684,
0.825898289680481,
0.1441369354724884,
-1.1322391033172607,
-0.2157796025276184,
-0.9628055691719055,
1.0007598400115967,
-0.10716216266155243,
0.16009783744812012,
1.8694278001785278,
0.3671149015426636,
-0.4413924217224121,
0.7331377267837524,
1.2130777835845947,
0.6462655067443848,
-0.6517133712768555,
0.18339982628822327,
-0.777168869972229,
0.33123141527175903,
-1.4593141078948975,
0.15706780552864075,
-2.9009523391723633,
0.6562537550926208,
-0.07321615517139435,
-0.13449712097644806,
-0.13103637099266052,
-1.3359302282333374,
1.0401809215545654,
2.5526657104492188,
-1.1707924604415894,
0.48976847529411316,
0.41363489627838135,
1.2739094495773315,
-1.561598300933838,
0.23925429582595825,
-0.5122942328453064,
2.0368077754974365,
0.12168196588754654,
1.1646976470947266,
-0.4587346911430359,
-2.2207252979278564,
0.593839168548584,
-1.2541608810424805,
-0.9562023878097534,
0.811759352684021,
-0.8513553738594055,
0.2129635214805603,
-1.4502899646759033,
-0.12182146310806274,
-0.8510401248931885,
-1.2205218076705933,
0.736930251121521,
0.13713347911834717,
0.4578077793121338,
-0.5802390575408936,
0.31117722392082214,
-2.157881259918213,
-1.3733487129211426,
-0.273194283246994,
-1.0266932249069214,
0.5710404515266418,
-0.41605040431022644,
0.6573722958564758,
-0.06889551877975464,
0.10316959768533707,
0.3360961377620697,
1.391165852546692,
3.363223075866699,
0.10915572941303253,
0.25204959511756897,
-0.16838663816452026,
-1.0602222681045532,
1.4548062086105347,
0.9379681348800659,
-0.23358756303787231,
-0.53163743019104,
-1.0419138669967651,
1.3522813320159912,
1.997968316078186,
1.1362707614898682,
0.1361185610294342,
-0.9271456599235535,
-0.8543943762779236,
0.041036784648895264,
0.18138939142227173,
0.542504608631134,
0.9386113882064819,
0.02896210551261902,
0.09762095659971237,
1.3650919198989868,
1.116986870765686,
-0.2754334509372711,
0.45227962732315063,
-0.9071117043495178,
-0.38068220019340515,
0.4571145474910736,
0.22153154015541077,
0.057362861931324005,
0.38625362515449524,
-1.0212007761001587,
-0.3144401013851166,
-0.2280602753162384,
-0.8565982580184937,
-0.7608721852302551,
-0.38767606019973755,
-0.36593306064605713,
1.6377967596054077,
0.016578542068600655,
-0.58689284324646,
0.017139125615358353,
-0.6496914029121399,
-0.04950082302093506,
-1.113721251487732,
0.13622280955314636,
-0.15061363577842712,
-0.08330856263637543,
-0.126438707113266,
1.690994143486023,
-0.948968231678009,
-2.0750551223754883,
0.16615501046180725,
0.3333941102027893,
-0.32515978813171387,
0.12270807474851608,
1.7075787782669067,
0.5592221021652222,
1.3662359714508057,
1.4424254894256592,
1.117688536643982,
-0.6536287069320679,
-1.2735739946365356,
0.7022356986999512,
0.9429124593734741,
-1.3056014776229858,
0.8958756327629089,
-0.18578064441680908,
-0.555538535118103,
0.6070219278335571,
1.3359874486923218,
0.4196554720401764,
-2.0262296199798584,
0.8662403225898743,
-0.9561348557472229,
0.7748772501945496,
0.6961740255355835,
0.8695750832557678,
0.17279019951820374,
0.7821564674377441,
-1.2715907096862793,
-1.1080397367477417,
-0.6701533794403076,
-0.6672657132148743,
1.883454442024231,
-0.25485727190971375,
0.468813419342041,
-0.16735166311264038,
-1.325785517692566,
-0.08921275287866592,
0.7793689966201782,
0.3271152377128601,
-0.4563138782978058,
0.8420911431312561,
-0.6822458505630493,
-0.9956583976745605,
-1.2884806394577026,
-0.47365647554397583,
-0.9775388240814209,
-0.8767983913421631,
1.0640672445297241,
0.8490452170372009,
0.4184251129627228,
1.9169678688049316,
0.7119780778884888,
0.30690813064575195,
-2.546095609664917,
0.8529438376426697,
0.30032381415367126,
-0.0020882142707705498,
0.7319018840789795,
0.26144278049468994,
1.152529001235962,
-0.06305196136236191,
0.6297338008880615,
-2.295114040374756,
2.2659811973571777,
-0.22182464599609375,
0.6594589352607727,
0.06523348391056061,
-0.1744052767753601,
1.1036416292190552,
0.5663469433784485,
0.6342859268188477,
-1.1235076189041138,
0.7094599604606628,
-0.676763117313385,
1.093605875968933,
0.8438698649406433,
-0.91524738073349,
0.119378961622715,
1.3225014209747314,
0.46549925208091736,
-0.48374196887016296,
-1.0178039073944092,
-0.9028016924858093,
1.100917935371399,
1.7499032020568848,
-0.016884034499526024,
0.04653988778591156,
0.8683754801750183,
0.6816176772117615,
-1.2444345951080322,
0.13531699776649475,
-0.6732685565948486,
-0.6749725937843323,
1.6811023950576782,
1.9544081687927246,
-0.12058919668197632,
-0.17523160576820374,
-0.7373597621917725,
-1.3015077114105225,
0.7539300322532654,
-0.000016139820218086243,
-0.017468156293034554,
0.7204039096832275,
-0.6844384670257568,
1.1409200429916382,
0.8143148422241211,
0.9819511771202087,
0.07726765424013138,
0.22655773162841797,
0.2739104926586151,
-0.3252713680267334,
-1.1250512599945068,
-0.3316439986228943,
-0.9403190016746521,
-2.623856782913208,
0.40732768177986145,
-0.2060706615447998,
-1.492846131324768,
0.061837337911129,
-1.0561169385910034,
0.9072544574737549,
-0.5690966844558716,
-1.157132863998413,
-1.4695196151733398,
0.31046590209007263,
-0.24917489290237427,
0.8522369861602783,
-1.6379097700119019,
-0.22362574934959412,
1.2414603233337402,
0.9631555080413818,
-0.6706902980804443,
0.8936879634857178,
0.29793182015419006,
0.9702591896057129,
0.8821048140525818,
-0.3281807005405426,
0.514700710773468,
0.08515848219394684,
-1.2626004219055176,
0.3895517885684967,
1.2329795360565186,
0.15167614817619324,
1.2666635513305664,
-0.544513463973999,
0.08602404594421387,
0.397604763507843,
-0.4630654752254486,
-0.5179150700569153,
-0.6052311062812805,
0.670792818069458,
-0.04404633119702339,
-1.0467993021011353,
-0.13765192031860352,
-0.06372302770614624,
-0.22083839774131775,
0.23419180512428284,
-1.5159090757369995,
-0.2836809456348419,
-0.3205432891845703,
-0.5433809161186218,
-1.3166182041168213,
0.04272208362817764,
1.355921745300293,
-0.8486077785491943,
-0.2610515058040619,
0.453416109085083,
0.30861711502075195,
0.5505688786506653,
0.5436965823173523,
-0.7375825047492981,
-0.28039783239364624,
-0.2791912257671356,
-0.34083858132362366,
0.20346954464912415,
1.3061106204986572,
-0.06355386972427368,
-1.013792872428894,
0.6606349349021912,
-0.3177480399608612,
0.17055171728134155,
1.988161563873291,
0.0504382848739624,
-0.8250986933708191,
0.3369692265987396,
-0.7330567240715027,
1.8121039867401123,
1.7639046907424927,
1.3931910991668701,
-0.049368444830179214,
-0.91155606508255,
0.5514288544654846,
-0.27367109060287476,
-0.35597091913223267,
0.937436044216156,
0.44243353605270386,
-0.31385162472724915,
-1.4607253074645996,
0.5875961780548096,
1.3083174228668213,
-0.75824373960495,
-0.8022459745407104,
0.06323466449975967,
-0.8976863026618958,
1.2544264793395996,
0.6553494334220886,
0.284684419631958,
0.2784665822982788,
1.5278775691986084,
0.7613645195960999,
-0.48689818382263184,
0.511895477771759,
0.52558833360672,
-0.14860931038856506,
-2.079535961151123,
-1.0169645547866821,
0.31943848729133606,
-0.2838243842124939,
-1.618711233139038,
1.4291088581085205,
-1.1490705013275146,
-0.868571937084198,
0.5913053154945374,
0.15817579627037048,
1.3412426710128784,
0.3412571847438812,
1.634656548500061,
2.0725324153900146,
0.7945505380630493,
0.32511258125305176,
1.1260671615600586,
-0.18214145302772522,
-0.39947277307510376,
1.7735170125961304,
-0.4587361514568329,
0.529318630695343,
0.9659085869789124,
-0.3947884738445282,
-1.1560440063476562,
-0.785375714302063,
-1.2214783430099487,
-0.7509391903877258,
1.1758484840393066,
0.05051834136247635,
-1.09197998046875,
0.2557215392589569,
1.6097558736801147,
0.12068282812833786,
-0.19619861245155334,
0.7014771699905396,
0.38167324662208557,
-0.7692129611968994,
-0.08038518577814102,
-0.9415122270584106,
0.48908230662345886,
-0.07202717661857605,
-0.30591583251953125,
0.2857496738433838,
0.49866941571235657,
1.2856202125549316,
0.10506661981344223,
0.10654199123382568,
1.2133885622024536,
-1.3978720903396606,
1.5325685739517212,
-0.7469255328178406,
0.3145466148853302,
-2.4420759677886963,
1.459227442741394,
-0.8102325797080994,
1.8903872966766357,
-2.5755369663238525,
0.45672178268432617,
-0.5815508961677551,
-0.46975386142730713,
0.23820090293884277,
-0.3555150330066681,
0.08188959211111069,
-0.14236456155776978,
-1.051374912261963,
-0.05842801183462143,
-0.8033146262168884,
0.6303775906562805,
1.1967147588729858,
1.4178279638290405,
-1.0759228467941284,
-0.27548572421073914,
-1.761448621749878,
-0.1444777548313141,
-0.7728211283683777,
0.3337087035179138,
-1.8626811504364014,
-0.17827486991882324,
-1.9737205505371094,
-2.335049867630005,
-1.3729349374771118,
-0.8857458233833313,
1.152449607849121,
0.21292048692703247,
-0.9856462478637695,
1.1751673221588135,
-0.43805670738220215,
-1.8090767860412598,
1.1594294309616089,
-2.264247417449951
] |
https://github.com/huggingface/datasets/issues/5230 | dataclasses error when importing the library in python 3.11 | @Jayanth1812, you can see in your error stack trace, that the error is caused by the `tensorflow` library, not by the `datasets` library. See:
```
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py"
```
You should open an issue in their repository instead: https://github.com/tensorflow/tensorflow | ### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator. | 425 | 38 | dataclasses error when importing the library in python 3.11
### Describe the bug
When I import datasets using python 3.11 the dataclasses standard library raises the following error:
`ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory`
When I tried to import the library using the following jupyter notebook:
```
%%bash
# create python 3.11 conda env
conda create --yes --quiet -n myenv -c conda-forge python=3.11
# activate is
source activate myenv
# install pyarrow
/opt/conda/envs/myenv/bin/python -m pip install --quiet --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
# install datasets
/opt/conda/envs/myenv/bin/python -m pip install --quiet datasets
```
```
# create a python file that only imports datasets
with open("import_datasets.py", 'w') as f:
f.write("import datasets")
# run it with the env
!/opt/conda/envs/myenv/bin/python import_datasets.py
```
I get the following error:
```
Traceback (most recent call last):
File "/kaggle/working/import_datasets.py", line 1, in <module>
import datasets
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/__init__.py", line 45, in <module>
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
File "/opt/conda/envs/myenv/lib/python3.11/site-packages/datasets/builder.py", line 91, in <module>
@dataclass
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1221, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 1211, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 959, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/myenv/lib/python3.11/dataclasses.py", line 816, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'datasets.utils.version.Version'> for field version is not allowed: use default_factory
```
This is probably due to one of the following changes in the [dataclasses standard library](https://docs.python.org/3/library/dataclasses.html) in version 3.11:
1. Changed in version 3.11: Instead of looking for and disallowing objects of type list, dict, or set, unhashable objects are now not allowed as default values. Unhashability is used to approximate mutability.
2. fields may optionally specify a default value, using normal Python syntax:
```
@dataclass
class C:
a: int # 'a' has no default value
b: int = 0 # assign a default value for 'b'
In this example, both a and b will be included in the added __init__() method, which will be defined as:
def __init__(self, a: int, b: int = 0):
```
3. Changed in version 3.11: If a field name is already included in the __slots__ of a base class, it will not be included in the generated __slots__ to prevent [overriding them](https://docs.python.org/3/reference/datamodel.html#datamodel-note-slots). Therefore, do not use __slots__ to retrieve the field names of a dataclass. Use [fields()](https://docs.python.org/3/library/dataclasses.html#dataclasses.fields) instead. To be able to determine inherited slots, base class __slots__ may be any iterable, but not an iterator.
4. weakref_slot: If true (the default is False), add a slot named β__weakref__β, which is required to make an instance weakref-able. It is an error to specify weakref_slot=True without also specifying slots=True.
[TypeError](https://docs.python.org/3/library/exceptions.html#TypeError) will be raised if a field without a default value follows a field with a default value. This is true whether this occurs in a single class, or as a result of class inheritance.
### Steps to reproduce the bug
Steps to reproduce the behavior:
1. go to [the notebook in kaggle](https://www.kaggle.com/yonikremer/repreducing-issue)
2. rub both of the cells
### Expected behavior
I'm expecting no issues.
This error should not occur.
### Environment info
kaggle kernels, with default settings:
pin to original environment, no accelerator.
@Jayanth1812, you can see in your error stack trace, that the error is caused by the `tensorflow` library, not by the `datasets` library. See:
```
File "C:\Users\x0133252\AppData\Local\anaconda3\envs\tensorflow\Lib\dataclasses.py"
```
You should open an issue in their repository instead: https://github.com/tensorflow/tensorflow | [
-1.1701884269714355,
-0.857646644115448,
-0.7524360418319702,
1.4626085758209229,
-0.07128031551837921,
-1.2940629720687866,
0.08254144340753555,
-1.0319280624389648,
1.6331838369369507,
-0.7147952318191528,
0.22182029485702515,
-1.7194939851760864,
-0.07934641093015671,
-0.4828549325466156,
-0.7291038632392883,
-0.8426880240440369,
-0.3119206428527832,
-0.8196244835853577,
1.0481781959533691,
2.523341417312622,
1.2307178974151611,
-1.3208659887313843,
2.7868945598602295,
0.6238085627555847,
-0.24288293719291687,
-0.9574365615844727,
0.6163735389709473,
-0.05346987023949623,
-1.3143390417099,
-0.5225592851638794,
-0.9038322567939758,
0.029743049293756485,
-0.5345715284347534,
-0.45915478467941284,
0.09967566281557083,
0.44403722882270813,
-0.21348297595977783,
-0.4020623564720154,
-0.6060376167297363,
-0.7512153387069702,
0.4753338396549225,
-0.2845843434333801,
0.9585056900978088,
-0.367244690656662,
1.7706482410430908,
-0.6621183156967163,
0.3656383156776428,
0.7638512253761292,
1.2994238138198853,
0.1722572147846222,
0.02095254510641098,
0.34259870648384094,
0.35766172409057617,
0.009242847561836243,
0.6282444596290588,
1.2381178140640259,
0.5810648202896118,
0.5441707372665405,
0.7065668702125549,
-2.1947057247161865,
1.3203845024108887,
-0.9193894267082214,
0.3088982403278351,
1.2708704471588135,
-0.8606657981872559,
0.39440932869911194,
-1.747435212135315,
-0.045327674597501755,
0.5146176218986511,
-2.285576105117798,
0.25488805770874023,
-1.211436152458191,
-0.5706304907798767,
0.9591584801673889,
0.3367992341518402,
-1.2044920921325684,
0.13801446557044983,
-0.4823203384876251,
1.0286855697631836,
0.4536576569080353,
1.2515010833740234,
-1.5734632015228271,
0.004236256703734398,
-0.19020575284957886,
0.0949392169713974,
-1.2910598516464233,
-1.6373621225357056,
0.5569540858268738,
0.6437742114067078,
0.558046281337738,
-0.1589750051498413,
1.003986120223999,
-0.9906564354896545,
0.7769876718521118,
-0.9115499258041382,
-1.7345037460327148,
-1.372178316116333,
-2.3346920013427734,
-2.2935285568237305,
0.8208653330802917,
-0.5060144662857056,
-0.49597832560539246,
2.0765726566314697,
-0.9600955843925476,
-1.8250283002853394,
0.9910135269165039,
0.33587199449539185,
0.04798906296491623,
2.35213565826416,
0.2600000202655792,
-0.7983409762382507,
0.4597427248954773,
-0.6727096438407898,
0.8049765229225159,
-0.4302859902381897,
1.2781583070755005,
0.4206845462322235,
-0.9737750887870789,
1.6004436016082764,
-0.49964597821235657,
0.5683760046958923,
-0.6777744293212891,
-0.3985094428062439,
-0.7449970245361328,
0.2461593747138977,
1.9257930517196655,
-0.36163920164108276,
1.5450047254562378,
-0.2930353283882141,
-1.5863111019134521,
-1.5316872596740723,
0.7643271088600159,
0.4229082465171814,
-0.8310455083847046,
0.16675540804862976,
-0.4683856964111328,
0.17404770851135254,
-0.015338800847530365,
1.1285971403121948,
1.1999168395996094,
0.7833067178726196,
-0.22222739458084106,
-0.8429691791534424,
0.26752951741218567,
-0.10204099863767624,
-0.6111804842948914,
-1.7588648796081543,
-0.28719624876976013,
0.2586326599121094,
0.6386565566062927,
-1.2549197673797607,
1.8517755270004272,
0.9096443057060242,
2.0191140174865723,
0.9656742215156555,
-0.34291088581085205,
1.5004477500915527,
0.03538517281413078,
1.9348112344741821,
-0.3894643783569336,
0.5406873226165771,
-0.4269826412200928,
-1.1680527925491333,
0.8064097762107849,
-0.389248788356781,
-1.992811679840088,
-0.7122559547424316,
-0.890948474407196,
-0.09267935901880264,
-0.7701976299285889,
0.9028159379959106,
-0.30218684673309326,
-1.3578805923461914,
0.089130699634552,
-0.7899913191795349,
0.1850736439228058,
-1.3253240585327148,
0.23782381415367126,
0.7315167784690857,
-0.6403331756591797,
0.01902078464627266,
-0.3802940547466278,
-1.3727328777313232,
-0.5613584518432617,
0.39225438237190247,
1.8920421600341797,
-0.6397652626037598,
0.9858567118644714,
1.006394624710083,
-0.7823207974433899,
0.07219655066728592,
0.3646101951599121,
-0.40618619322776794,
0.8057003617286682,
-1.1044697761535645,
-0.4100518226623535,
1.13982093334198,
-0.23631373047828674,
-0.6545977592468262,
1.4401013851165771,
0.7774152755737305,
-1.1438301801681519,
-0.31971415877342224,
-0.22511392831802368,
-0.8823627233505249,
0.03499901667237282,
-1.5178196430206299,
-0.11277549713850021,
0.3505776822566986,
-1.4828027486801147,
-0.4381312429904938,
-0.15013021230697632,
1.2121604681015015,
-0.16390663385391235,
1.4095816612243652,
-0.2643299400806427,
-0.12155458331108093,
-0.38604018092155457,
-0.5282540321350098,
0.18058887124061584,
-0.23620876669883728,
-0.6955767869949341,
0.3041072189807892,
-0.7727354168891907,
0.24556562304496765,
1.4462039470672607,
0.30185195803642273,
-0.0350845530629158,
0.5125868916511536,
1.1550142765045166,
0.422202467918396,
-0.11599749326705933,
-0.8731476664543152,
-1.5582395792007446,
1.9677318334579468,
-1.4400715827941895,
1.8329410552978516,
0.7438056468963623,
-0.030411699786782265,
-1.8662338256835938,
-1.9234105348587036,
1.4067271947860718,
1.1204893589019775,
2.4652838706970215,
0.5666244626045227,
0.4661458134651184,
-0.7344788312911987,
-0.7417206764221191,
0.2904804050922394,
-0.9690671563148499,
-0.7363008856773376,
0.11737974733114243,
2.385017156600952,
1.813390851020813,
-0.5611301064491272,
-0.21191680431365967,
-0.8906130790710449,
1.2598273754119873,
-0.22515293955802917,
0.23485571146011353,
2.0406486988067627,
-0.23663437366485596,
-0.9779566526412964,
1.214477300643921,
-2.383258104324341,
0.2845708727836609,
2.0692880153656006,
0.24581697583198547,
0.1895228922367096,
-1.4147708415985107,
-0.6176810264587402,
-0.20197731256484985,
-0.4629283547401428,
-1.196202278137207,
0.6249669194221497,
-0.14405351877212524,
-0.7963201403617859,
-1.3722087144851685,
0.07762166112661362,
-1.1652984619140625,
-1.7209560871124268,
0.29794618487358093,
1.9080387353897095,
2.1404473781585693,
-0.8336679339408875,
1.4131968021392822,
-0.3272981345653534,
0.06435411423444748,
1.2840933799743652,
1.2705117464065552,
3.1671037673950195,
1.9323186874389648,
-1.269317865371704,
0.7462249994277954,
-0.14302828907966614,
-0.49558207392692566,
1.2699981927871704,
-1.085856556892395,
1.0752054452896118,
-0.2268715500831604,
-1.2559868097305298,
-1.180102825164795,
0.9609753489494324,
0.4782307744026184,
-0.040411267429590225,
-0.4523415267467499,
1.252478837966919,
0.09144113212823868,
1.3200781345367432,
0.5398257374763489,
-0.37738850712776184,
0.5601041913032532,
-0.29461920261383057,
-0.4305817782878876,
1.5847769975662231,
0.14625823497772217,
-1.4579956531524658,
-2.2790794372558594,
-0.22620490193367004,
-1.0317108631134033,
-0.02759622409939766,
-0.6787508130073547,
-0.978763997554779,
1.5741468667984009,
0.4400583803653717,
-1.1229925155639648,
-0.2381647229194641,
-0.3523182272911072,
-0.6037643551826477,
2.630234479904175,
-1.395087480545044,
-0.2185676395893097,
-0.9758523106575012,
-0.4724501669406891,
1.6250555515289307,
-1.2351731061935425,
-0.30601394176483154,
-1.0242747068405151,
-0.6215884685516357,
-1.351109504699707,
-0.5331515669822693,
0.02250577136874199,
-0.9127440452575684,
0.825898289680481,
0.1441369354724884,
-1.1322391033172607,
-0.2157796025276184,
-0.9628055691719055,
1.0007598400115967,
-0.10716216266155243,
0.16009783744812012,
1.8694278001785278,
0.3671149015426636,
-0.4413924217224121,
0.7331377267837524,
1.2130777835845947,
0.6462655067443848,
-0.6517133712768555,
0.18339982628822327,
-0.777168869972229,
0.33123141527175903,
-1.4593141078948975,
0.15706780552864075,
-2.9009523391723633,
0.6562537550926208,
-0.07321615517139435,
-0.13449712097644806,
-0.13103637099266052,
-1.3359302282333374,
1.0401809215545654,
2.5526657104492188,
-1.1707924604415894,
0.48976847529411316,
0.41363489627838135,
1.2739094495773315,
-1.561598300933838,
0.23925429582595825,
-0.5122942328453064,
2.0368077754974365,
0.12168196588754654,
1.1646976470947266,
-0.4587346911430359,
-2.2207252979278564,
0.593839168548584,
-1.2541608810424805,
-0.9562023878097534,
0.811759352684021,
-0.8513553738594055,
0.2129635214805603,
-1.4502899646759033,
-0.12182146310806274,
-0.8510401248931885,
-1.2205218076705933,
0.736930251121521,
0.13713347911834717,
0.4578077793121338,
-0.5802390575408936,
0.31117722392082214,
-2.157881259918213,
-1.3733487129211426,
-0.273194283246994,
-1.0266932249069214,
0.5710404515266418,
-0.41605040431022644,
0.6573722958564758,
-0.06889551877975464,
0.10316959768533707,
0.3360961377620697,
1.391165852546692,
3.363223075866699,
0.10915572941303253,
0.25204959511756897,
-0.16838663816452026,
-1.0602222681045532,
1.4548062086105347,
0.9379681348800659,
-0.23358756303787231,
-0.53163743019104,
-1.0419138669967651,
1.3522813320159912,
1.997968316078186,
1.1362707614898682,
0.1361185610294342,
-0.9271456599235535,
-0.8543943762779236,
0.041036784648895264,
0.18138939142227173,
0.542504608631134,
0.9386113882064819,
0.02896210551261902,
0.09762095659971237,
1.3650919198989868,
1.116986870765686,
-0.2754334509372711,
0.45227962732315063,
-0.9071117043495178,
-0.38068220019340515,
0.4571145474910736,
0.22153154015541077,
0.057362861931324005,
0.38625362515449524,
-1.0212007761001587,
-0.3144401013851166,
-0.2280602753162384,
-0.8565982580184937,
-0.7608721852302551,
-0.38767606019973755,
-0.36593306064605713,
1.6377967596054077,
0.016578542068600655,
-0.58689284324646,
0.017139125615358353,
-0.6496914029121399,
-0.04950082302093506,
-1.113721251487732,
0.13622280955314636,
-0.15061363577842712,
-0.08330856263637543,
-0.126438707113266,
1.690994143486023,
-0.948968231678009,
-2.0750551223754883,
0.16615501046180725,
0.3333941102027893,
-0.32515978813171387,
0.12270807474851608,
1.7075787782669067,
0.5592221021652222,
1.3662359714508057,
1.4424254894256592,
1.117688536643982,
-0.6536287069320679,
-1.2735739946365356,
0.7022356986999512,
0.9429124593734741,
-1.3056014776229858,
0.8958756327629089,
-0.18578064441680908,
-0.555538535118103,
0.6070219278335571,
1.3359874486923218,
0.4196554720401764,
-2.0262296199798584,
0.8662403225898743,
-0.9561348557472229,
0.7748772501945496,
0.6961740255355835,
0.8695750832557678,
0.17279019951820374,
0.7821564674377441,
-1.2715907096862793,
-1.1080397367477417,
-0.6701533794403076,
-0.6672657132148743,
1.883454442024231,
-0.25485727190971375,
0.468813419342041,
-0.16735166311264038,
-1.325785517692566,
-0.08921275287866592,
0.7793689966201782,
0.3271152377128601,
-0.4563138782978058,
0.8420911431312561,
-0.6822458505630493,
-0.9956583976745605,
-1.2884806394577026,
-0.47365647554397583,
-0.9775388240814209,
-0.8767983913421631,
1.0640672445297241,
0.8490452170372009,
0.4184251129627228,
1.9169678688049316,
0.7119780778884888,
0.30690813064575195,
-2.546095609664917,
0.8529438376426697,
0.30032381415367126,
-0.0020882142707705498,
0.7319018840789795,
0.26144278049468994,
1.152529001235962,
-0.06305196136236191,
0.6297338008880615,
-2.295114040374756,
2.2659811973571777,
-0.22182464599609375,
0.6594589352607727,
0.06523348391056061,
-0.1744052767753601,
1.1036416292190552,
0.5663469433784485,
0.6342859268188477,
-1.1235076189041138,
0.7094599604606628,
-0.676763117313385,
1.093605875968933,
0.8438698649406433,
-0.91524738073349,
0.119378961622715,
1.3225014209747314,
0.46549925208091736,
-0.48374196887016296,
-1.0178039073944092,
-0.9028016924858093,
1.100917935371399,
1.7499032020568848,
-0.016884034499526024,
0.04653988778591156,
0.8683754801750183,
0.6816176772117615,
-1.2444345951080322,
0.13531699776649475,
-0.6732685565948486,
-0.6749725937843323,
1.6811023950576782,
1.9544081687927246,
-0.12058919668197632,
-0.17523160576820374,
-0.7373597621917725,
-1.3015077114105225,
0.7539300322532654,
-0.000016139820218086243,
-0.017468156293034554,
0.7204039096832275,
-0.6844384670257568,
1.1409200429916382,
0.8143148422241211,
0.9819511771202087,
0.07726765424013138,
0.22655773162841797,
0.2739104926586151,
-0.3252713680267334,
-1.1250512599945068,
-0.3316439986228943,
-0.9403190016746521,
-2.623856782913208,
0.40732768177986145,
-0.2060706615447998,
-1.492846131324768,
0.061837337911129,
-1.0561169385910034,
0.9072544574737549,
-0.5690966844558716,
-1.157132863998413,
-1.4695196151733398,
0.31046590209007263,
-0.24917489290237427,
0.8522369861602783,
-1.6379097700119019,
-0.22362574934959412,
1.2414603233337402,
0.9631555080413818,
-0.6706902980804443,
0.8936879634857178,
0.29793182015419006,
0.9702591896057129,
0.8821048140525818,
-0.3281807005405426,
0.514700710773468,
0.08515848219394684,
-1.2626004219055176,
0.3895517885684967,
1.2329795360565186,
0.15167614817619324,
1.2666635513305664,
-0.544513463973999,
0.08602404594421387,
0.397604763507843,
-0.4630654752254486,
-0.5179150700569153,
-0.6052311062812805,
0.670792818069458,
-0.04404633119702339,
-1.0467993021011353,
-0.13765192031860352,
-0.06372302770614624,
-0.22083839774131775,
0.23419180512428284,
-1.5159090757369995,
-0.2836809456348419,
-0.3205432891845703,
-0.5433809161186218,
-1.3166182041168213,
0.04272208362817764,
1.355921745300293,
-0.8486077785491943,
-0.2610515058040619,
0.453416109085083,
0.30861711502075195,
0.5505688786506653,
0.5436965823173523,
-0.7375825047492981,
-0.28039783239364624,
-0.2791912257671356,
-0.34083858132362366,
0.20346954464912415,
1.3061106204986572,
-0.06355386972427368,
-1.013792872428894,
0.6606349349021912,
-0.3177480399608612,
0.17055171728134155,
1.988161563873291,
0.0504382848739624,
-0.8250986933708191,
0.3369692265987396,
-0.7330567240715027,
1.8121039867401123,
1.7639046907424927,
1.3931910991668701,
-0.049368444830179214,
-0.91155606508255,
0.5514288544654846,
-0.27367109060287476,
-0.35597091913223267,
0.937436044216156,
0.44243353605270386,
-0.31385162472724915,
-1.4607253074645996,
0.5875961780548096,
1.3083174228668213,
-0.75824373960495,
-0.8022459745407104,
0.06323466449975967,
-0.8976863026618958,
1.2544264793395996,
0.6553494334220886,
0.284684419631958,
0.2784665822982788,
1.5278775691986084,
0.7613645195960999,
-0.48689818382263184,
0.511895477771759,
0.52558833360672,
-0.14860931038856506,
-2.079535961151123,
-1.0169645547866821,
0.31943848729133606,
-0.2838243842124939,
-1.618711233139038,
1.4291088581085205,
-1.1490705013275146,
-0.868571937084198,
0.5913053154945374,
0.15817579627037048,
1.3412426710128784,
0.3412571847438812,
1.634656548500061,
2.0725324153900146,
0.7945505380630493,
0.32511258125305176,
1.1260671615600586,
-0.18214145302772522,
-0.39947277307510376,
1.7735170125961304,
-0.4587361514568329,
0.529318630695343,
0.9659085869789124,
-0.3947884738445282,
-1.1560440063476562,
-0.785375714302063,
-1.2214783430099487,
-0.7509391903877258,
1.1758484840393066,
0.05051834136247635,
-1.09197998046875,
0.2557215392589569,
1.6097558736801147,
0.12068282812833786,
-0.19619861245155334,
0.7014771699905396,
0.38167324662208557,
-0.7692129611968994,
-0.08038518577814102,
-0.9415122270584106,
0.48908230662345886,
-0.07202717661857605,
-0.30591583251953125,
0.2857496738433838,
0.49866941571235657,
1.2856202125549316,
0.10506661981344223,
0.10654199123382568,
1.2133885622024536,
-1.3978720903396606,
1.5325685739517212,
-0.7469255328178406,
0.3145466148853302,
-2.4420759677886963,
1.459227442741394,
-0.8102325797080994,
1.8903872966766357,
-2.5755369663238525,
0.45672178268432617,
-0.5815508961677551,
-0.46975386142730713,
0.23820090293884277,
-0.3555150330066681,
0.08188959211111069,
-0.14236456155776978,
-1.051374912261963,
-0.05842801183462143,
-0.8033146262168884,
0.6303775906562805,
1.1967147588729858,
1.4178279638290405,
-1.0759228467941284,
-0.27548572421073914,
-1.761448621749878,
-0.1444777548313141,
-0.7728211283683777,
0.3337087035179138,
-1.8626811504364014,
-0.17827486991882324,
-1.9737205505371094,
-2.335049867630005,
-1.3729349374771118,
-0.8857458233833313,
1.152449607849121,
0.21292048692703247,
-0.9856462478637695,
1.1751673221588135,
-0.43805670738220215,
-1.8090767860412598,
1.1594294309616089,
-2.264247417449951
] |
Subsets and Splits