html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2068 | PyTorch not available error on SageMaker GPU docker though it is installed | Hey @sivakhno,
how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0` | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
| 27 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
Hey @sivakhno,
how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0` | [
-0.3578641712665558,
0.062430888414382935,
-0.003559522330760956,
0.09239506721496582,
0.2011188417673111,
0.0346483513712883,
0.5519388318061829,
0.32340723276138306,
0.3856208622455597,
0.0929584801197052,
0.00088288146071136,
0.3965817391872406,
-0.03543074056506157,
0.1952466517686844,
0.07368423044681549,
-0.26419684290885925,
-0.05602952092885971,
0.22846883535385132,
-0.3105960786342621,
0.026708900928497314,
0.17195512354373932,
0.11979084461927414,
-0.2741039991378784,
0.18573158979415894,
-0.35249054431915283,
-0.0930100828409195,
0.2506563663482666,
-0.06403990834951401,
-0.17889627814292908,
-0.4069884419441223,
0.27939730882644653,
-0.06136142089962959,
0.23973143100738525,
0.4969632029533386,
-0.00011404363613110036,
0.30321669578552246,
0.1815662682056427,
-0.05208121985197067,
-0.23396095633506775,
-0.4946048855781555,
0.2693474590778351,
-0.21355000138282776,
0.2534038722515106,
-0.35874509811401367,
-0.2566685676574707,
-0.6176713109016418,
-0.1617838591337204,
-0.10641308128833771,
0.18972785770893097,
0.4830075800418854,
0.1778385490179062,
0.2304900735616684,
0.3704248368740082,
-0.10688413679599762,
-0.021363168954849243,
-0.1286899894475937,
-0.19988463819026947,
0.19338470697402954,
0.06061307713389397,
-0.04771864414215088,
-0.2215195596218109,
0.3306255042552948,
0.05328822135925293,
0.22218911349773407,
0.27468571066856384,
-0.027760017663240433,
0.3027730882167816,
-0.328473836183548,
0.012803763151168823,
0.01863812655210495,
0.37838515639305115,
-0.1673077940940857,
-0.2615453898906708,
-0.1401582956314087,
0.24066591262817383,
-0.1856718212366104,
0.22584888339042664,
0.2011612206697464,
-0.23859921097755432,
-0.23078379034996033,
-0.09248621761798859,
-0.24481768906116486,
-0.4942285120487213,
0.001273907721042633,
-0.14867737889289856,
0.6484235525131226,
-0.009729976765811443,
0.29586389660835266,
-0.10884790122509003,
0.0316300243139267,
0.10879790037870407,
-0.01745394989848137,
0.13678303360939026,
-0.1035541221499443,
-0.4412151575088501,
0.012114323675632477,
-0.1848006248474121,
-0.34751710295677185,
-0.1545310616493225,
0.1763312667608261,
0.02445380575954914,
0.038551896810531616,
0.46138888597488403,
0.23196464776992798,
-0.06487397849559784,
0.21338318288326263,
-0.16768234968185425,
0.26723596453666687,
0.3156033754348755,
0.17838342487812042,
0.05828253552317619,
-0.011022143065929413,
-0.27197885513305664,
-0.2618052065372467,
0.09198053181171417,
-0.04094653204083443,
0.18391357362270355,
-0.2599916160106659,
-0.1896701604127884,
-0.06472580879926682,
-0.2254173755645752,
-0.004806096665561199,
0.3427652418613434,
0.37950050830841064,
-0.36169105768203735,
0.02155435085296631,
0.39052122831344604,
0.09702228009700775,
-0.15715435147285461,
0.10861751437187195,
-0.06891755759716034,
0.3692379593849182,
-0.30539509654045105,
-0.16990378499031067,
0.25709307193756104,
-0.2832776606082916,
0.31903907656669617,
0.05212656408548355,
0.4382140040397644,
0.019435957074165344,
0.16524909436702728,
-0.036283940076828,
-0.03052019327878952,
0.34953394532203674,
0.1684820055961609,
-0.09932221472263336,
0.06731432676315308,
-0.1310511976480484,
0.04356036335229874,
0.1640108972787857,
-0.30271294713020325,
-0.1731041967868805,
-0.2777281105518341,
0.2180582731962204,
0.023980222642421722,
-0.08284751325845718,
-0.09560238569974899,
-0.2363598793745041,
0.13843342661857605,
-0.2462698221206665,
-0.19884151220321655,
-0.5774741768836975,
-0.15188254415988922,
0.10097454488277435,
0.3505586087703705,
-0.10600724816322327,
-0.2552390694618225,
-0.2429281324148178,
0.21696336567401886,
-0.04458281770348549,
0.19211474061012268,
0.16726911067962646,
-0.32135647535324097,
0.36413756012916565,
-0.22417935729026794,
-0.11627431213855743,
0.4368961453437805,
-0.15826332569122314,
-0.4274962842464447,
-0.05265325680375099,
-0.13175642490386963,
-0.18149004876613617,
0.24243459105491638,
-0.021029630675911903,
0.10271966457366943,
0.06948603689670563,
0.1587241142988205,
0.22124052047729492,
0.055063068866729736,
-0.06414701789617538,
0.07116223871707916,
-0.03011493943631649,
0.06930668652057648,
0.34702444076538086,
0.46969249844551086,
0.04051962494850159,
-0.22032809257507324,
0.10528281331062317,
0.0011494234204292297,
-0.3349924683570862,
-0.07290846109390259,
0.19361621141433716,
0.07260329276323318,
0.19731739163398743,
0.23420536518096924,
-0.024150732904672623,
-0.28463611006736755,
0.4372531473636627,
-0.40783873200416565,
0.2201973795890808,
-0.40127354860305786,
0.2799266576766968,
0.07399814575910568,
0.2309342473745346,
-0.4405452311038971,
-0.02904898300766945,
0.07402092963457108,
0.27473241090774536,
0.14336645603179932,
-0.07165142148733139,
-0.04318894445896149,
0.16421569883823395,
-0.20154701173305511,
0.2570539116859436,
-0.029723305255174637,
0.16484442353248596,
-0.35224759578704834,
-0.28461867570877075,
-0.026778187602758408,
0.0832822173833847,
0.08678876608610153,
-0.13383468985557556,
-0.1851901113986969,
-0.022305332124233246,
0.05635068938136101,
-0.1856316477060318,
-0.40773963928222656,
0.010758891701698303,
0.21343396604061127,
-0.02648817002773285,
0.15463754534721375,
0.22619904577732086,
0.05350755527615547,
0.0659499242901802,
-0.05961267650127411,
0.2794190049171448,
0.0768529400229454,
0.3316197097301483,
0.15635868906974792,
0.12432759255170822,
0.35065650939941406,
0.17963187396526337,
-0.03709680959582329,
0.03125108778476715,
0.311685711145401,
-0.1815507709980011,
0.38849371671676636,
-0.28034064173698425,
-0.0670938715338707,
-0.22698691487312317,
0.058220624923706055,
0.09681756794452667,
0.20945128798484802,
-0.05841834843158722,
-0.2641686201095581,
-0.01971578039228916,
0.16551198065280914,
0.020151343196630478,
0.1763111650943756,
0.08555420488119125,
-0.20542818307876587,
-0.07315812259912491,
-0.26303282380104065,
-0.28534579277038574,
0.019948385655879974,
0.20545390248298645,
0.18034900724887848,
0.4772659242153168,
-0.024977313354611397,
-0.1353626847267151,
-0.20539626479148865,
-0.31538569927215576,
0.04423409700393677,
0.24649518728256226,
-0.016701098531484604,
0.19397740066051483,
0.02137959934771061,
-0.2587876319885254,
-0.15713383257389069,
0.06886754184961319,
-0.08306552469730377,
-0.07055920362472534,
-0.056711502373218536,
0.43709778785705566,
0.10463918745517731,
0.30158352851867676,
0.12426096200942993,
0.0017418712377548218,
0.09092932194471359,
-0.09152007102966309,
-0.10100486874580383,
-0.1997736692428589,
-0.10293049365282059,
0.09081511199474335,
0.013918052427470684,
-0.1522049903869629,
0.45308250188827515,
-0.022692430764436722,
0.23972971737384796,
-0.4752226173877716,
-0.45463478565216064,
0.2639153003692627,
0.09467145800590515,
0.07035559415817261,
0.08312807977199554,
-0.10046932101249695,
0.23054276406764984,
-0.11517553776502609,
0.2874085009098053,
-0.36674293875694275,
-0.009985328651964664,
0.17113152146339417,
-0.30403217673301697,
-0.09116096049547195,
-0.04292182996869087,
-0.23733511567115784,
-0.21311718225479126,
-0.24207012355327606,
-0.1625315397977829,
0.19256307184696198,
0.06929566711187363,
0.07107678055763245,
-0.048211608082056046,
0.23994971811771393,
0.06124046817421913,
0.4208260476589203,
-0.05052253603935242,
-0.014202993363142014,
0.3403245508670807,
-0.1449124664068222,
-0.45854103565216064,
0.19907844066619873,
-0.07102537155151367,
0.48737290501594543,
0.18767604231834412,
-0.35726237297058105,
-0.14321352541446686,
-0.08768592774868011,
-0.010406207293272018,
-0.23097285628318787,
-0.31549331545829773,
0.4347073435783386,
0.08586747199296951,
-0.0017585474997758865,
-0.018088094890117645,
-0.20988821983337402,
-0.005836799740791321,
-0.1161850169301033,
0.11075160652399063,
0.018055960536003113,
0.5218026638031006,
0.016134824603796005,
0.5054344534873962,
-0.14929409325122833,
-0.1849232017993927,
0.0787607952952385,
-0.0914802998304367,
0.13068225979804993,
-0.07774218171834946,
-0.3543592691421509,
0.09091954678297043,
-0.07847727835178375,
0.042309217154979706,
-0.11436484754085541,
-0.2375505268573761,
-0.2545681893825531,
-0.22431562840938568,
0.13673235476016998,
0.20567265152931213,
-0.07492239773273468,
0.14705638587474823,
-0.021851904690265656,
0.2347736656665802,
-0.10058274865150452,
0.29117387533187866,
-0.05826987698674202,
-0.020645655691623688,
-0.00688211852684617,
0.40099120140075684,
0.24711287021636963,
0.0405496284365654,
-0.35046952962875366,
-0.4177757799625397,
-0.308973103761673,
0.15352362394332886,
0.11115552484989166,
0.43414193391799927,
-0.25353190302848816,
0.13533928990364075,
0.2518218159675598,
-0.0731293112039566,
0.13054977357387543,
0.20158900320529938,
-0.0769398957490921,
0.13044771552085876,
-0.5629457235336304,
-0.2140490859746933,
-0.40258318185806274,
-0.20411521196365356,
0.3084564507007599,
-0.13783647119998932,
0.25910860300064087,
-0.052187480032444,
-0.2361830174922943,
0.37722522020339966,
-0.0014555633533746004,
-0.35494711995124817,
-0.16548803448677063,
-0.3093602955341339,
-0.007102619856595993,
-0.38914090394973755,
0.14182148873806,
-0.16303561627864838,
0.16481080651283264,
0.10335070639848709,
0.18025292456150055,
-0.0478268563747406,
-0.0673622190952301,
-0.24184755980968475,
0.12517021596431732,
0.15085369348526,
-0.17966626584529877,
0.020630188286304474,
0.2583088278770447,
0.4035356044769287,
0.024662114679813385,
0.12517049908638,
0.16587357223033905,
-0.6877142190933228,
0.22795146703720093,
0.14377695322036743,
0.033753834664821625,
-0.0006103366613388062,
-0.28139743208885193,
-0.015133090317249298,
0.02886442095041275,
0.26160863041877747,
-0.2789119780063629,
0.28492796421051025,
0.43180975317955017,
0.04355477914214134,
-0.3361484706401825,
-0.5102329254150391,
-0.028512880206108093,
0.11905309557914734,
0.1307089477777481,
0.10727378726005554,
-0.3197687864303589,
-0.23879605531692505,
0.10094466805458069,
0.2339780628681183,
0.39980751276016235,
-0.12302687764167786,
0.16318662464618683,
0.3690176010131836,
-0.056277234107255936,
0.6690487861633301,
-0.0701480433344841,
0.5010372400283813,
-0.2964496910572052,
-0.02369535341858864,
-0.02196666970849037,
-0.33303558826446533,
0.12492373585700989,
-0.08943162858486176,
0.019607294350862503,
0.46159663796424866,
0.022742360830307007,
0.1879124790430069,
0.08244346082210541,
0.5432865619659424,
-0.056193239986896515,
-0.31517311930656433,
0.08934266865253448,
0.08243146538734436,
-0.4715273976325989,
0.4554201662540436,
-0.11191891878843307,
0.12960578501224518,
0.26461735367774963,
-0.08539026230573654,
-0.20248693227767944,
0.3169838786125183,
-0.10351885855197906,
0.5135716199874878,
-0.2603093087673187,
-0.7178822159767151,
0.2217285931110382,
0.19350042939186096,
0.0475798100233078,
-0.01639062911272049,
-0.08404402434825897,
0.28695613145828247,
-0.5260499715805054,
-0.26488757133483887,
-0.11868105828762054,
0.14465612173080444,
0.4126049876213074,
-0.17664143443107605,
-0.17508654296398163,
0.04569515958428383,
-0.02070935070514679,
-0.3480335474014282,
-0.1475050449371338,
0.022914979606866837,
0.5239812135696411,
0.050611939281225204,
0.13825945556163788,
-0.2436710000038147,
-0.19852745532989502,
-0.11875958740711212,
0.13928943872451782,
0.18644216656684875,
-0.1920204609632492,
0.009254708886146545,
0.1126701831817627,
-0.23677022755146027,
0.026779403910040855,
0.4035090208053589,
0.2485732138156891,
-0.075485460460186,
0.7604906558990479,
0.27010050415992737,
-0.21533827483654022,
-0.18952465057373047,
-0.5757735371589661,
0.1880675107240677,
-0.4746958613395691,
0.09040844440460205,
0.08837881684303284,
-0.0010318905115127563,
-0.02524656616151333,
0.08325234800577164,
0.24049299955368042,
-0.3185773193836212,
-0.20643913745880127,
-0.4979460537433624,
-0.24460306763648987,
-0.012177638709545135,
-0.09707318246364594,
0.14468976855278015,
0.40609821677207947,
0.021310659125447273,
-0.0374528244137764,
-0.11762332916259766,
-0.24866144359111786,
-0.08124618232250214,
-0.08575143665075302,
-0.017890971153974533,
0.028844105079770088,
-0.24645933508872986,
0.018050774931907654,
0.13395695388317108,
0.11658072471618652,
-0.01618175581097603,
-0.0523236021399498,
-0.13773036003112793,
-0.05938037484884262,
0.06380244344472885,
0.15011125802993774,
-0.1841317117214203,
-0.1567176729440689,
-0.3472021222114563,
-0.16869604587554932,
0.06193762272596359,
0.3511348068714142,
0.07319807261228561,
-0.03360256552696228,
0.10005517303943634,
-0.1815095692873001,
0.0305701345205307,
-0.23939527571201324,
0.19995532929897308,
-0.15811839699745178,
-0.03446012735366821,
0.2619611620903015,
0.2125546932220459,
0.04916253313422203,
0.1751207709312439,
-0.2967492640018463,
0.012222334742546082,
-0.2247534841299057,
0.07957103848457336,
0.38787412643432617,
-0.5469015836715698,
0.3201330304145813,
-0.11404599994421005,
0.3263936936855316,
0.24810314178466797,
-0.11123687773942947,
0.006945660337805748,
0.2077624499797821,
0.19299985468387604,
-0.3124343752861023,
-0.17502786219120026,
-0.20476451516151428,
0.02555340901017189,
0.19517049193382263,
-0.03369057923555374,
0.03352181240916252,
0.2034248411655426,
0.24184367060661316,
0.2176680564880371,
0.3072524964809418,
-0.21943257749080658,
0.16087259352207184,
0.25558754801750183,
-0.03151407465338707,
0.1866932064294815,
0.4408332109451294,
0.2895788550376892,
0.03442980349063873,
0.20874185860157013,
-0.05012350529432297,
0.2683548927307129,
-0.03551995009183884,
0.04930799826979637,
0.2784288823604584,
-0.14063771069049835,
-0.13510040938854218,
0.15987169742584229,
-0.06665356457233429,
-0.09757315367460251,
-0.2356363832950592,
0.13799402117729187,
-0.5082177519798279,
-0.001611561980098486,
-0.32769981026649475,
-0.06167209520936012,
-0.3606291115283966,
0.13358058035373688,
-0.2579289972782135,
-0.023372046649456024,
0.07977592945098877,
0.17723116278648376,
0.11178846657276154,
0.10143405199050903,
-0.4469522535800934,
0.12593749165534973,
-0.4083177447319031,
0.04446155205368996,
-0.23946309089660645,
0.3101462721824646,
-0.12115255743265152,
-0.08415819704532623,
0.18983560800552368,
0.29036200046539307,
-0.12193901836872101,
-0.11502504348754883,
0.17517806589603424,
0.4762858748435974,
0.14574116468429565,
0.043470315635204315,
-0.08061514794826508,
-0.029294930398464203,
-0.03212490677833557,
-0.019082561135292053,
0.2248750627040863,
0.20044001936912537,
-0.03977635130286217,
0.15629160404205322,
0.15418459475040436,
-0.1182025671005249,
0.18917295336723328,
0.12600138783454895,
0.024107500910758972,
0.11597052216529846,
0.26614847779273987,
0.07353857159614563,
-0.15479803085327148,
-0.1336260735988617,
-0.02617456763982773,
-0.31927788257598877,
-0.1522500216960907,
0.3894213140010834,
0.2127334177494049,
-0.23531991243362427,
-0.11317874491214752,
0.0737563893198967,
0.015780093148350716,
0.4464924931526184,
0.12910495698451996,
0.004601560533046722,
-0.12044114619493484,
0.039635419845581055,
-0.2076597958803177,
0.2196233868598938,
-0.023899223655462265,
0.016629235818982124,
0.12267674505710602,
0.09477880597114563,
-0.026472948491573334,
-0.02532828599214554,
0.3033052682876587,
-0.12534093856811523,
0.12073271721601486,
-0.1434570848941803,
-0.27566424012184143,
-0.05758901312947273,
0.308806836605072,
0.0814981758594513,
0.07550527900457382,
-0.2945995330810547,
0.016118459403514862,
0.022224318236112595,
0.11124909669160843,
-0.27230459451675415,
0.058162689208984375,
0.09985174238681793,
-0.3974215090274811,
0.2679629325866699,
-0.08305075764656067,
0.7890286445617676,
0.09276173263788223,
-0.10290859639644623,
-0.00449955090880394,
-0.2056707739830017,
-0.3405402600765228,
0.2708166837692261,
0.0972321480512619,
0.571908712387085,
0.16132403910160065,
-0.12863294780254364,
-0.4244960844516754,
0.36701029539108276,
-0.169755756855011,
-0.6661809086799622,
-0.16411735117435455,
0.19225069880485535,
-0.11734050512313843,
0.2502702474594116,
0.22450251877307892,
0.10295411944389343,
0.3065304160118103,
-0.2895625829696655,
-0.3585677146911621,
-0.12027952820062637,
0.5804314017295837,
-0.26493915915489197,
-0.20652912557125092,
-0.28632262349128723,
0.14597266912460327,
-0.16293922066688538,
0.1301870197057724,
-0.16513238847255707,
0.11296059936285019,
0.026145465672016144,
-0.003977496176958084,
-0.015350528061389923,
0.20361313223838806,
0.24844393134117126,
0.16647231578826904,
-0.14003916084766388,
0.4426271915435791,
-0.14892971515655518,
-0.2323545664548874,
-0.3859888017177582,
-0.24707597494125366
] |
https://github.com/huggingface/datasets/issues/2068 | PyTorch not available error on SageMaker GPU docker though it is installed | Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`.
I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same. | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
| 25 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`.
I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same. | [
-0.3578641712665558,
0.062430888414382935,
-0.003559522330760956,
0.09239506721496582,
0.2011188417673111,
0.0346483513712883,
0.5519388318061829,
0.32340723276138306,
0.3856208622455597,
0.0929584801197052,
0.00088288146071136,
0.3965817391872406,
-0.03543074056506157,
0.1952466517686844,
0.07368423044681549,
-0.26419684290885925,
-0.05602952092885971,
0.22846883535385132,
-0.3105960786342621,
0.026708900928497314,
0.17195512354373932,
0.11979084461927414,
-0.2741039991378784,
0.18573158979415894,
-0.35249054431915283,
-0.0930100828409195,
0.2506563663482666,
-0.06403990834951401,
-0.17889627814292908,
-0.4069884419441223,
0.27939730882644653,
-0.06136142089962959,
0.23973143100738525,
0.4969632029533386,
-0.00011404363613110036,
0.30321669578552246,
0.1815662682056427,
-0.05208121985197067,
-0.23396095633506775,
-0.4946048855781555,
0.2693474590778351,
-0.21355000138282776,
0.2534038722515106,
-0.35874509811401367,
-0.2566685676574707,
-0.6176713109016418,
-0.1617838591337204,
-0.10641308128833771,
0.18972785770893097,
0.4830075800418854,
0.1778385490179062,
0.2304900735616684,
0.3704248368740082,
-0.10688413679599762,
-0.021363168954849243,
-0.1286899894475937,
-0.19988463819026947,
0.19338470697402954,
0.06061307713389397,
-0.04771864414215088,
-0.2215195596218109,
0.3306255042552948,
0.05328822135925293,
0.22218911349773407,
0.27468571066856384,
-0.027760017663240433,
0.3027730882167816,
-0.328473836183548,
0.012803763151168823,
0.01863812655210495,
0.37838515639305115,
-0.1673077940940857,
-0.2615453898906708,
-0.1401582956314087,
0.24066591262817383,
-0.1856718212366104,
0.22584888339042664,
0.2011612206697464,
-0.23859921097755432,
-0.23078379034996033,
-0.09248621761798859,
-0.24481768906116486,
-0.4942285120487213,
0.001273907721042633,
-0.14867737889289856,
0.6484235525131226,
-0.009729976765811443,
0.29586389660835266,
-0.10884790122509003,
0.0316300243139267,
0.10879790037870407,
-0.01745394989848137,
0.13678303360939026,
-0.1035541221499443,
-0.4412151575088501,
0.012114323675632477,
-0.1848006248474121,
-0.34751710295677185,
-0.1545310616493225,
0.1763312667608261,
0.02445380575954914,
0.038551896810531616,
0.46138888597488403,
0.23196464776992798,
-0.06487397849559784,
0.21338318288326263,
-0.16768234968185425,
0.26723596453666687,
0.3156033754348755,
0.17838342487812042,
0.05828253552317619,
-0.011022143065929413,
-0.27197885513305664,
-0.2618052065372467,
0.09198053181171417,
-0.04094653204083443,
0.18391357362270355,
-0.2599916160106659,
-0.1896701604127884,
-0.06472580879926682,
-0.2254173755645752,
-0.004806096665561199,
0.3427652418613434,
0.37950050830841064,
-0.36169105768203735,
0.02155435085296631,
0.39052122831344604,
0.09702228009700775,
-0.15715435147285461,
0.10861751437187195,
-0.06891755759716034,
0.3692379593849182,
-0.30539509654045105,
-0.16990378499031067,
0.25709307193756104,
-0.2832776606082916,
0.31903907656669617,
0.05212656408548355,
0.4382140040397644,
0.019435957074165344,
0.16524909436702728,
-0.036283940076828,
-0.03052019327878952,
0.34953394532203674,
0.1684820055961609,
-0.09932221472263336,
0.06731432676315308,
-0.1310511976480484,
0.04356036335229874,
0.1640108972787857,
-0.30271294713020325,
-0.1731041967868805,
-0.2777281105518341,
0.2180582731962204,
0.023980222642421722,
-0.08284751325845718,
-0.09560238569974899,
-0.2363598793745041,
0.13843342661857605,
-0.2462698221206665,
-0.19884151220321655,
-0.5774741768836975,
-0.15188254415988922,
0.10097454488277435,
0.3505586087703705,
-0.10600724816322327,
-0.2552390694618225,
-0.2429281324148178,
0.21696336567401886,
-0.04458281770348549,
0.19211474061012268,
0.16726911067962646,
-0.32135647535324097,
0.36413756012916565,
-0.22417935729026794,
-0.11627431213855743,
0.4368961453437805,
-0.15826332569122314,
-0.4274962842464447,
-0.05265325680375099,
-0.13175642490386963,
-0.18149004876613617,
0.24243459105491638,
-0.021029630675911903,
0.10271966457366943,
0.06948603689670563,
0.1587241142988205,
0.22124052047729492,
0.055063068866729736,
-0.06414701789617538,
0.07116223871707916,
-0.03011493943631649,
0.06930668652057648,
0.34702444076538086,
0.46969249844551086,
0.04051962494850159,
-0.22032809257507324,
0.10528281331062317,
0.0011494234204292297,
-0.3349924683570862,
-0.07290846109390259,
0.19361621141433716,
0.07260329276323318,
0.19731739163398743,
0.23420536518096924,
-0.024150732904672623,
-0.28463611006736755,
0.4372531473636627,
-0.40783873200416565,
0.2201973795890808,
-0.40127354860305786,
0.2799266576766968,
0.07399814575910568,
0.2309342473745346,
-0.4405452311038971,
-0.02904898300766945,
0.07402092963457108,
0.27473241090774536,
0.14336645603179932,
-0.07165142148733139,
-0.04318894445896149,
0.16421569883823395,
-0.20154701173305511,
0.2570539116859436,
-0.029723305255174637,
0.16484442353248596,
-0.35224759578704834,
-0.28461867570877075,
-0.026778187602758408,
0.0832822173833847,
0.08678876608610153,
-0.13383468985557556,
-0.1851901113986969,
-0.022305332124233246,
0.05635068938136101,
-0.1856316477060318,
-0.40773963928222656,
0.010758891701698303,
0.21343396604061127,
-0.02648817002773285,
0.15463754534721375,
0.22619904577732086,
0.05350755527615547,
0.0659499242901802,
-0.05961267650127411,
0.2794190049171448,
0.0768529400229454,
0.3316197097301483,
0.15635868906974792,
0.12432759255170822,
0.35065650939941406,
0.17963187396526337,
-0.03709680959582329,
0.03125108778476715,
0.311685711145401,
-0.1815507709980011,
0.38849371671676636,
-0.28034064173698425,
-0.0670938715338707,
-0.22698691487312317,
0.058220624923706055,
0.09681756794452667,
0.20945128798484802,
-0.05841834843158722,
-0.2641686201095581,
-0.01971578039228916,
0.16551198065280914,
0.020151343196630478,
0.1763111650943756,
0.08555420488119125,
-0.20542818307876587,
-0.07315812259912491,
-0.26303282380104065,
-0.28534579277038574,
0.019948385655879974,
0.20545390248298645,
0.18034900724887848,
0.4772659242153168,
-0.024977313354611397,
-0.1353626847267151,
-0.20539626479148865,
-0.31538569927215576,
0.04423409700393677,
0.24649518728256226,
-0.016701098531484604,
0.19397740066051483,
0.02137959934771061,
-0.2587876319885254,
-0.15713383257389069,
0.06886754184961319,
-0.08306552469730377,
-0.07055920362472534,
-0.056711502373218536,
0.43709778785705566,
0.10463918745517731,
0.30158352851867676,
0.12426096200942993,
0.0017418712377548218,
0.09092932194471359,
-0.09152007102966309,
-0.10100486874580383,
-0.1997736692428589,
-0.10293049365282059,
0.09081511199474335,
0.013918052427470684,
-0.1522049903869629,
0.45308250188827515,
-0.022692430764436722,
0.23972971737384796,
-0.4752226173877716,
-0.45463478565216064,
0.2639153003692627,
0.09467145800590515,
0.07035559415817261,
0.08312807977199554,
-0.10046932101249695,
0.23054276406764984,
-0.11517553776502609,
0.2874085009098053,
-0.36674293875694275,
-0.009985328651964664,
0.17113152146339417,
-0.30403217673301697,
-0.09116096049547195,
-0.04292182996869087,
-0.23733511567115784,
-0.21311718225479126,
-0.24207012355327606,
-0.1625315397977829,
0.19256307184696198,
0.06929566711187363,
0.07107678055763245,
-0.048211608082056046,
0.23994971811771393,
0.06124046817421913,
0.4208260476589203,
-0.05052253603935242,
-0.014202993363142014,
0.3403245508670807,
-0.1449124664068222,
-0.45854103565216064,
0.19907844066619873,
-0.07102537155151367,
0.48737290501594543,
0.18767604231834412,
-0.35726237297058105,
-0.14321352541446686,
-0.08768592774868011,
-0.010406207293272018,
-0.23097285628318787,
-0.31549331545829773,
0.4347073435783386,
0.08586747199296951,
-0.0017585474997758865,
-0.018088094890117645,
-0.20988821983337402,
-0.005836799740791321,
-0.1161850169301033,
0.11075160652399063,
0.018055960536003113,
0.5218026638031006,
0.016134824603796005,
0.5054344534873962,
-0.14929409325122833,
-0.1849232017993927,
0.0787607952952385,
-0.0914802998304367,
0.13068225979804993,
-0.07774218171834946,
-0.3543592691421509,
0.09091954678297043,
-0.07847727835178375,
0.042309217154979706,
-0.11436484754085541,
-0.2375505268573761,
-0.2545681893825531,
-0.22431562840938568,
0.13673235476016998,
0.20567265152931213,
-0.07492239773273468,
0.14705638587474823,
-0.021851904690265656,
0.2347736656665802,
-0.10058274865150452,
0.29117387533187866,
-0.05826987698674202,
-0.020645655691623688,
-0.00688211852684617,
0.40099120140075684,
0.24711287021636963,
0.0405496284365654,
-0.35046952962875366,
-0.4177757799625397,
-0.308973103761673,
0.15352362394332886,
0.11115552484989166,
0.43414193391799927,
-0.25353190302848816,
0.13533928990364075,
0.2518218159675598,
-0.0731293112039566,
0.13054977357387543,
0.20158900320529938,
-0.0769398957490921,
0.13044771552085876,
-0.5629457235336304,
-0.2140490859746933,
-0.40258318185806274,
-0.20411521196365356,
0.3084564507007599,
-0.13783647119998932,
0.25910860300064087,
-0.052187480032444,
-0.2361830174922943,
0.37722522020339966,
-0.0014555633533746004,
-0.35494711995124817,
-0.16548803448677063,
-0.3093602955341339,
-0.007102619856595993,
-0.38914090394973755,
0.14182148873806,
-0.16303561627864838,
0.16481080651283264,
0.10335070639848709,
0.18025292456150055,
-0.0478268563747406,
-0.0673622190952301,
-0.24184755980968475,
0.12517021596431732,
0.15085369348526,
-0.17966626584529877,
0.020630188286304474,
0.2583088278770447,
0.4035356044769287,
0.024662114679813385,
0.12517049908638,
0.16587357223033905,
-0.6877142190933228,
0.22795146703720093,
0.14377695322036743,
0.033753834664821625,
-0.0006103366613388062,
-0.28139743208885193,
-0.015133090317249298,
0.02886442095041275,
0.26160863041877747,
-0.2789119780063629,
0.28492796421051025,
0.43180975317955017,
0.04355477914214134,
-0.3361484706401825,
-0.5102329254150391,
-0.028512880206108093,
0.11905309557914734,
0.1307089477777481,
0.10727378726005554,
-0.3197687864303589,
-0.23879605531692505,
0.10094466805458069,
0.2339780628681183,
0.39980751276016235,
-0.12302687764167786,
0.16318662464618683,
0.3690176010131836,
-0.056277234107255936,
0.6690487861633301,
-0.0701480433344841,
0.5010372400283813,
-0.2964496910572052,
-0.02369535341858864,
-0.02196666970849037,
-0.33303558826446533,
0.12492373585700989,
-0.08943162858486176,
0.019607294350862503,
0.46159663796424866,
0.022742360830307007,
0.1879124790430069,
0.08244346082210541,
0.5432865619659424,
-0.056193239986896515,
-0.31517311930656433,
0.08934266865253448,
0.08243146538734436,
-0.4715273976325989,
0.4554201662540436,
-0.11191891878843307,
0.12960578501224518,
0.26461735367774963,
-0.08539026230573654,
-0.20248693227767944,
0.3169838786125183,
-0.10351885855197906,
0.5135716199874878,
-0.2603093087673187,
-0.7178822159767151,
0.2217285931110382,
0.19350042939186096,
0.0475798100233078,
-0.01639062911272049,
-0.08404402434825897,
0.28695613145828247,
-0.5260499715805054,
-0.26488757133483887,
-0.11868105828762054,
0.14465612173080444,
0.4126049876213074,
-0.17664143443107605,
-0.17508654296398163,
0.04569515958428383,
-0.02070935070514679,
-0.3480335474014282,
-0.1475050449371338,
0.022914979606866837,
0.5239812135696411,
0.050611939281225204,
0.13825945556163788,
-0.2436710000038147,
-0.19852745532989502,
-0.11875958740711212,
0.13928943872451782,
0.18644216656684875,
-0.1920204609632492,
0.009254708886146545,
0.1126701831817627,
-0.23677022755146027,
0.026779403910040855,
0.4035090208053589,
0.2485732138156891,
-0.075485460460186,
0.7604906558990479,
0.27010050415992737,
-0.21533827483654022,
-0.18952465057373047,
-0.5757735371589661,
0.1880675107240677,
-0.4746958613395691,
0.09040844440460205,
0.08837881684303284,
-0.0010318905115127563,
-0.02524656616151333,
0.08325234800577164,
0.24049299955368042,
-0.3185773193836212,
-0.20643913745880127,
-0.4979460537433624,
-0.24460306763648987,
-0.012177638709545135,
-0.09707318246364594,
0.14468976855278015,
0.40609821677207947,
0.021310659125447273,
-0.0374528244137764,
-0.11762332916259766,
-0.24866144359111786,
-0.08124618232250214,
-0.08575143665075302,
-0.017890971153974533,
0.028844105079770088,
-0.24645933508872986,
0.018050774931907654,
0.13395695388317108,
0.11658072471618652,
-0.01618175581097603,
-0.0523236021399498,
-0.13773036003112793,
-0.05938037484884262,
0.06380244344472885,
0.15011125802993774,
-0.1841317117214203,
-0.1567176729440689,
-0.3472021222114563,
-0.16869604587554932,
0.06193762272596359,
0.3511348068714142,
0.07319807261228561,
-0.03360256552696228,
0.10005517303943634,
-0.1815095692873001,
0.0305701345205307,
-0.23939527571201324,
0.19995532929897308,
-0.15811839699745178,
-0.03446012735366821,
0.2619611620903015,
0.2125546932220459,
0.04916253313422203,
0.1751207709312439,
-0.2967492640018463,
0.012222334742546082,
-0.2247534841299057,
0.07957103848457336,
0.38787412643432617,
-0.5469015836715698,
0.3201330304145813,
-0.11404599994421005,
0.3263936936855316,
0.24810314178466797,
-0.11123687773942947,
0.006945660337805748,
0.2077624499797821,
0.19299985468387604,
-0.3124343752861023,
-0.17502786219120026,
-0.20476451516151428,
0.02555340901017189,
0.19517049193382263,
-0.03369057923555374,
0.03352181240916252,
0.2034248411655426,
0.24184367060661316,
0.2176680564880371,
0.3072524964809418,
-0.21943257749080658,
0.16087259352207184,
0.25558754801750183,
-0.03151407465338707,
0.1866932064294815,
0.4408332109451294,
0.2895788550376892,
0.03442980349063873,
0.20874185860157013,
-0.05012350529432297,
0.2683548927307129,
-0.03551995009183884,
0.04930799826979637,
0.2784288823604584,
-0.14063771069049835,
-0.13510040938854218,
0.15987169742584229,
-0.06665356457233429,
-0.09757315367460251,
-0.2356363832950592,
0.13799402117729187,
-0.5082177519798279,
-0.001611561980098486,
-0.32769981026649475,
-0.06167209520936012,
-0.3606291115283966,
0.13358058035373688,
-0.2579289972782135,
-0.023372046649456024,
0.07977592945098877,
0.17723116278648376,
0.11178846657276154,
0.10143405199050903,
-0.4469522535800934,
0.12593749165534973,
-0.4083177447319031,
0.04446155205368996,
-0.23946309089660645,
0.3101462721824646,
-0.12115255743265152,
-0.08415819704532623,
0.18983560800552368,
0.29036200046539307,
-0.12193901836872101,
-0.11502504348754883,
0.17517806589603424,
0.4762858748435974,
0.14574116468429565,
0.043470315635204315,
-0.08061514794826508,
-0.029294930398464203,
-0.03212490677833557,
-0.019082561135292053,
0.2248750627040863,
0.20044001936912537,
-0.03977635130286217,
0.15629160404205322,
0.15418459475040436,
-0.1182025671005249,
0.18917295336723328,
0.12600138783454895,
0.024107500910758972,
0.11597052216529846,
0.26614847779273987,
0.07353857159614563,
-0.15479803085327148,
-0.1336260735988617,
-0.02617456763982773,
-0.31927788257598877,
-0.1522500216960907,
0.3894213140010834,
0.2127334177494049,
-0.23531991243362427,
-0.11317874491214752,
0.0737563893198967,
0.015780093148350716,
0.4464924931526184,
0.12910495698451996,
0.004601560533046722,
-0.12044114619493484,
0.039635419845581055,
-0.2076597958803177,
0.2196233868598938,
-0.023899223655462265,
0.016629235818982124,
0.12267674505710602,
0.09477880597114563,
-0.026472948491573334,
-0.02532828599214554,
0.3033052682876587,
-0.12534093856811523,
0.12073271721601486,
-0.1434570848941803,
-0.27566424012184143,
-0.05758901312947273,
0.308806836605072,
0.0814981758594513,
0.07550527900457382,
-0.2945995330810547,
0.016118459403514862,
0.022224318236112595,
0.11124909669160843,
-0.27230459451675415,
0.058162689208984375,
0.09985174238681793,
-0.3974215090274811,
0.2679629325866699,
-0.08305075764656067,
0.7890286445617676,
0.09276173263788223,
-0.10290859639644623,
-0.00449955090880394,
-0.2056707739830017,
-0.3405402600765228,
0.2708166837692261,
0.0972321480512619,
0.571908712387085,
0.16132403910160065,
-0.12863294780254364,
-0.4244960844516754,
0.36701029539108276,
-0.169755756855011,
-0.6661809086799622,
-0.16411735117435455,
0.19225069880485535,
-0.11734050512313843,
0.2502702474594116,
0.22450251877307892,
0.10295411944389343,
0.3065304160118103,
-0.2895625829696655,
-0.3585677146911621,
-0.12027952820062637,
0.5804314017295837,
-0.26493915915489197,
-0.20652912557125092,
-0.28632262349128723,
0.14597266912460327,
-0.16293922066688538,
0.1301870197057724,
-0.16513238847255707,
0.11296059936285019,
0.026145465672016144,
-0.003977496176958084,
-0.015350528061389923,
0.20361313223838806,
0.24844393134117126,
0.16647231578826904,
-0.14003916084766388,
0.4426271915435791,
-0.14892971515655518,
-0.2323545664548874,
-0.3859888017177582,
-0.24707597494125366
] |
https://github.com/huggingface/datasets/issues/2068 | PyTorch not available error on SageMaker GPU docker though it is installed | Could paste the code you use the start your training job and the fine-tuning script you run? | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
| 17 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
Could paste the code you use the start your training job and the fine-tuning script you run? | [
-0.3578641712665558,
0.062430888414382935,
-0.003559522330760956,
0.09239506721496582,
0.2011188417673111,
0.0346483513712883,
0.5519388318061829,
0.32340723276138306,
0.3856208622455597,
0.0929584801197052,
0.00088288146071136,
0.3965817391872406,
-0.03543074056506157,
0.1952466517686844,
0.07368423044681549,
-0.26419684290885925,
-0.05602952092885971,
0.22846883535385132,
-0.3105960786342621,
0.026708900928497314,
0.17195512354373932,
0.11979084461927414,
-0.2741039991378784,
0.18573158979415894,
-0.35249054431915283,
-0.0930100828409195,
0.2506563663482666,
-0.06403990834951401,
-0.17889627814292908,
-0.4069884419441223,
0.27939730882644653,
-0.06136142089962959,
0.23973143100738525,
0.4969632029533386,
-0.00011404363613110036,
0.30321669578552246,
0.1815662682056427,
-0.05208121985197067,
-0.23396095633506775,
-0.4946048855781555,
0.2693474590778351,
-0.21355000138282776,
0.2534038722515106,
-0.35874509811401367,
-0.2566685676574707,
-0.6176713109016418,
-0.1617838591337204,
-0.10641308128833771,
0.18972785770893097,
0.4830075800418854,
0.1778385490179062,
0.2304900735616684,
0.3704248368740082,
-0.10688413679599762,
-0.021363168954849243,
-0.1286899894475937,
-0.19988463819026947,
0.19338470697402954,
0.06061307713389397,
-0.04771864414215088,
-0.2215195596218109,
0.3306255042552948,
0.05328822135925293,
0.22218911349773407,
0.27468571066856384,
-0.027760017663240433,
0.3027730882167816,
-0.328473836183548,
0.012803763151168823,
0.01863812655210495,
0.37838515639305115,
-0.1673077940940857,
-0.2615453898906708,
-0.1401582956314087,
0.24066591262817383,
-0.1856718212366104,
0.22584888339042664,
0.2011612206697464,
-0.23859921097755432,
-0.23078379034996033,
-0.09248621761798859,
-0.24481768906116486,
-0.4942285120487213,
0.001273907721042633,
-0.14867737889289856,
0.6484235525131226,
-0.009729976765811443,
0.29586389660835266,
-0.10884790122509003,
0.0316300243139267,
0.10879790037870407,
-0.01745394989848137,
0.13678303360939026,
-0.1035541221499443,
-0.4412151575088501,
0.012114323675632477,
-0.1848006248474121,
-0.34751710295677185,
-0.1545310616493225,
0.1763312667608261,
0.02445380575954914,
0.038551896810531616,
0.46138888597488403,
0.23196464776992798,
-0.06487397849559784,
0.21338318288326263,
-0.16768234968185425,
0.26723596453666687,
0.3156033754348755,
0.17838342487812042,
0.05828253552317619,
-0.011022143065929413,
-0.27197885513305664,
-0.2618052065372467,
0.09198053181171417,
-0.04094653204083443,
0.18391357362270355,
-0.2599916160106659,
-0.1896701604127884,
-0.06472580879926682,
-0.2254173755645752,
-0.004806096665561199,
0.3427652418613434,
0.37950050830841064,
-0.36169105768203735,
0.02155435085296631,
0.39052122831344604,
0.09702228009700775,
-0.15715435147285461,
0.10861751437187195,
-0.06891755759716034,
0.3692379593849182,
-0.30539509654045105,
-0.16990378499031067,
0.25709307193756104,
-0.2832776606082916,
0.31903907656669617,
0.05212656408548355,
0.4382140040397644,
0.019435957074165344,
0.16524909436702728,
-0.036283940076828,
-0.03052019327878952,
0.34953394532203674,
0.1684820055961609,
-0.09932221472263336,
0.06731432676315308,
-0.1310511976480484,
0.04356036335229874,
0.1640108972787857,
-0.30271294713020325,
-0.1731041967868805,
-0.2777281105518341,
0.2180582731962204,
0.023980222642421722,
-0.08284751325845718,
-0.09560238569974899,
-0.2363598793745041,
0.13843342661857605,
-0.2462698221206665,
-0.19884151220321655,
-0.5774741768836975,
-0.15188254415988922,
0.10097454488277435,
0.3505586087703705,
-0.10600724816322327,
-0.2552390694618225,
-0.2429281324148178,
0.21696336567401886,
-0.04458281770348549,
0.19211474061012268,
0.16726911067962646,
-0.32135647535324097,
0.36413756012916565,
-0.22417935729026794,
-0.11627431213855743,
0.4368961453437805,
-0.15826332569122314,
-0.4274962842464447,
-0.05265325680375099,
-0.13175642490386963,
-0.18149004876613617,
0.24243459105491638,
-0.021029630675911903,
0.10271966457366943,
0.06948603689670563,
0.1587241142988205,
0.22124052047729492,
0.055063068866729736,
-0.06414701789617538,
0.07116223871707916,
-0.03011493943631649,
0.06930668652057648,
0.34702444076538086,
0.46969249844551086,
0.04051962494850159,
-0.22032809257507324,
0.10528281331062317,
0.0011494234204292297,
-0.3349924683570862,
-0.07290846109390259,
0.19361621141433716,
0.07260329276323318,
0.19731739163398743,
0.23420536518096924,
-0.024150732904672623,
-0.28463611006736755,
0.4372531473636627,
-0.40783873200416565,
0.2201973795890808,
-0.40127354860305786,
0.2799266576766968,
0.07399814575910568,
0.2309342473745346,
-0.4405452311038971,
-0.02904898300766945,
0.07402092963457108,
0.27473241090774536,
0.14336645603179932,
-0.07165142148733139,
-0.04318894445896149,
0.16421569883823395,
-0.20154701173305511,
0.2570539116859436,
-0.029723305255174637,
0.16484442353248596,
-0.35224759578704834,
-0.28461867570877075,
-0.026778187602758408,
0.0832822173833847,
0.08678876608610153,
-0.13383468985557556,
-0.1851901113986969,
-0.022305332124233246,
0.05635068938136101,
-0.1856316477060318,
-0.40773963928222656,
0.010758891701698303,
0.21343396604061127,
-0.02648817002773285,
0.15463754534721375,
0.22619904577732086,
0.05350755527615547,
0.0659499242901802,
-0.05961267650127411,
0.2794190049171448,
0.0768529400229454,
0.3316197097301483,
0.15635868906974792,
0.12432759255170822,
0.35065650939941406,
0.17963187396526337,
-0.03709680959582329,
0.03125108778476715,
0.311685711145401,
-0.1815507709980011,
0.38849371671676636,
-0.28034064173698425,
-0.0670938715338707,
-0.22698691487312317,
0.058220624923706055,
0.09681756794452667,
0.20945128798484802,
-0.05841834843158722,
-0.2641686201095581,
-0.01971578039228916,
0.16551198065280914,
0.020151343196630478,
0.1763111650943756,
0.08555420488119125,
-0.20542818307876587,
-0.07315812259912491,
-0.26303282380104065,
-0.28534579277038574,
0.019948385655879974,
0.20545390248298645,
0.18034900724887848,
0.4772659242153168,
-0.024977313354611397,
-0.1353626847267151,
-0.20539626479148865,
-0.31538569927215576,
0.04423409700393677,
0.24649518728256226,
-0.016701098531484604,
0.19397740066051483,
0.02137959934771061,
-0.2587876319885254,
-0.15713383257389069,
0.06886754184961319,
-0.08306552469730377,
-0.07055920362472534,
-0.056711502373218536,
0.43709778785705566,
0.10463918745517731,
0.30158352851867676,
0.12426096200942993,
0.0017418712377548218,
0.09092932194471359,
-0.09152007102966309,
-0.10100486874580383,
-0.1997736692428589,
-0.10293049365282059,
0.09081511199474335,
0.013918052427470684,
-0.1522049903869629,
0.45308250188827515,
-0.022692430764436722,
0.23972971737384796,
-0.4752226173877716,
-0.45463478565216064,
0.2639153003692627,
0.09467145800590515,
0.07035559415817261,
0.08312807977199554,
-0.10046932101249695,
0.23054276406764984,
-0.11517553776502609,
0.2874085009098053,
-0.36674293875694275,
-0.009985328651964664,
0.17113152146339417,
-0.30403217673301697,
-0.09116096049547195,
-0.04292182996869087,
-0.23733511567115784,
-0.21311718225479126,
-0.24207012355327606,
-0.1625315397977829,
0.19256307184696198,
0.06929566711187363,
0.07107678055763245,
-0.048211608082056046,
0.23994971811771393,
0.06124046817421913,
0.4208260476589203,
-0.05052253603935242,
-0.014202993363142014,
0.3403245508670807,
-0.1449124664068222,
-0.45854103565216064,
0.19907844066619873,
-0.07102537155151367,
0.48737290501594543,
0.18767604231834412,
-0.35726237297058105,
-0.14321352541446686,
-0.08768592774868011,
-0.010406207293272018,
-0.23097285628318787,
-0.31549331545829773,
0.4347073435783386,
0.08586747199296951,
-0.0017585474997758865,
-0.018088094890117645,
-0.20988821983337402,
-0.005836799740791321,
-0.1161850169301033,
0.11075160652399063,
0.018055960536003113,
0.5218026638031006,
0.016134824603796005,
0.5054344534873962,
-0.14929409325122833,
-0.1849232017993927,
0.0787607952952385,
-0.0914802998304367,
0.13068225979804993,
-0.07774218171834946,
-0.3543592691421509,
0.09091954678297043,
-0.07847727835178375,
0.042309217154979706,
-0.11436484754085541,
-0.2375505268573761,
-0.2545681893825531,
-0.22431562840938568,
0.13673235476016998,
0.20567265152931213,
-0.07492239773273468,
0.14705638587474823,
-0.021851904690265656,
0.2347736656665802,
-0.10058274865150452,
0.29117387533187866,
-0.05826987698674202,
-0.020645655691623688,
-0.00688211852684617,
0.40099120140075684,
0.24711287021636963,
0.0405496284365654,
-0.35046952962875366,
-0.4177757799625397,
-0.308973103761673,
0.15352362394332886,
0.11115552484989166,
0.43414193391799927,
-0.25353190302848816,
0.13533928990364075,
0.2518218159675598,
-0.0731293112039566,
0.13054977357387543,
0.20158900320529938,
-0.0769398957490921,
0.13044771552085876,
-0.5629457235336304,
-0.2140490859746933,
-0.40258318185806274,
-0.20411521196365356,
0.3084564507007599,
-0.13783647119998932,
0.25910860300064087,
-0.052187480032444,
-0.2361830174922943,
0.37722522020339966,
-0.0014555633533746004,
-0.35494711995124817,
-0.16548803448677063,
-0.3093602955341339,
-0.007102619856595993,
-0.38914090394973755,
0.14182148873806,
-0.16303561627864838,
0.16481080651283264,
0.10335070639848709,
0.18025292456150055,
-0.0478268563747406,
-0.0673622190952301,
-0.24184755980968475,
0.12517021596431732,
0.15085369348526,
-0.17966626584529877,
0.020630188286304474,
0.2583088278770447,
0.4035356044769287,
0.024662114679813385,
0.12517049908638,
0.16587357223033905,
-0.6877142190933228,
0.22795146703720093,
0.14377695322036743,
0.033753834664821625,
-0.0006103366613388062,
-0.28139743208885193,
-0.015133090317249298,
0.02886442095041275,
0.26160863041877747,
-0.2789119780063629,
0.28492796421051025,
0.43180975317955017,
0.04355477914214134,
-0.3361484706401825,
-0.5102329254150391,
-0.028512880206108093,
0.11905309557914734,
0.1307089477777481,
0.10727378726005554,
-0.3197687864303589,
-0.23879605531692505,
0.10094466805458069,
0.2339780628681183,
0.39980751276016235,
-0.12302687764167786,
0.16318662464618683,
0.3690176010131836,
-0.056277234107255936,
0.6690487861633301,
-0.0701480433344841,
0.5010372400283813,
-0.2964496910572052,
-0.02369535341858864,
-0.02196666970849037,
-0.33303558826446533,
0.12492373585700989,
-0.08943162858486176,
0.019607294350862503,
0.46159663796424866,
0.022742360830307007,
0.1879124790430069,
0.08244346082210541,
0.5432865619659424,
-0.056193239986896515,
-0.31517311930656433,
0.08934266865253448,
0.08243146538734436,
-0.4715273976325989,
0.4554201662540436,
-0.11191891878843307,
0.12960578501224518,
0.26461735367774963,
-0.08539026230573654,
-0.20248693227767944,
0.3169838786125183,
-0.10351885855197906,
0.5135716199874878,
-0.2603093087673187,
-0.7178822159767151,
0.2217285931110382,
0.19350042939186096,
0.0475798100233078,
-0.01639062911272049,
-0.08404402434825897,
0.28695613145828247,
-0.5260499715805054,
-0.26488757133483887,
-0.11868105828762054,
0.14465612173080444,
0.4126049876213074,
-0.17664143443107605,
-0.17508654296398163,
0.04569515958428383,
-0.02070935070514679,
-0.3480335474014282,
-0.1475050449371338,
0.022914979606866837,
0.5239812135696411,
0.050611939281225204,
0.13825945556163788,
-0.2436710000038147,
-0.19852745532989502,
-0.11875958740711212,
0.13928943872451782,
0.18644216656684875,
-0.1920204609632492,
0.009254708886146545,
0.1126701831817627,
-0.23677022755146027,
0.026779403910040855,
0.4035090208053589,
0.2485732138156891,
-0.075485460460186,
0.7604906558990479,
0.27010050415992737,
-0.21533827483654022,
-0.18952465057373047,
-0.5757735371589661,
0.1880675107240677,
-0.4746958613395691,
0.09040844440460205,
0.08837881684303284,
-0.0010318905115127563,
-0.02524656616151333,
0.08325234800577164,
0.24049299955368042,
-0.3185773193836212,
-0.20643913745880127,
-0.4979460537433624,
-0.24460306763648987,
-0.012177638709545135,
-0.09707318246364594,
0.14468976855278015,
0.40609821677207947,
0.021310659125447273,
-0.0374528244137764,
-0.11762332916259766,
-0.24866144359111786,
-0.08124618232250214,
-0.08575143665075302,
-0.017890971153974533,
0.028844105079770088,
-0.24645933508872986,
0.018050774931907654,
0.13395695388317108,
0.11658072471618652,
-0.01618175581097603,
-0.0523236021399498,
-0.13773036003112793,
-0.05938037484884262,
0.06380244344472885,
0.15011125802993774,
-0.1841317117214203,
-0.1567176729440689,
-0.3472021222114563,
-0.16869604587554932,
0.06193762272596359,
0.3511348068714142,
0.07319807261228561,
-0.03360256552696228,
0.10005517303943634,
-0.1815095692873001,
0.0305701345205307,
-0.23939527571201324,
0.19995532929897308,
-0.15811839699745178,
-0.03446012735366821,
0.2619611620903015,
0.2125546932220459,
0.04916253313422203,
0.1751207709312439,
-0.2967492640018463,
0.012222334742546082,
-0.2247534841299057,
0.07957103848457336,
0.38787412643432617,
-0.5469015836715698,
0.3201330304145813,
-0.11404599994421005,
0.3263936936855316,
0.24810314178466797,
-0.11123687773942947,
0.006945660337805748,
0.2077624499797821,
0.19299985468387604,
-0.3124343752861023,
-0.17502786219120026,
-0.20476451516151428,
0.02555340901017189,
0.19517049193382263,
-0.03369057923555374,
0.03352181240916252,
0.2034248411655426,
0.24184367060661316,
0.2176680564880371,
0.3072524964809418,
-0.21943257749080658,
0.16087259352207184,
0.25558754801750183,
-0.03151407465338707,
0.1866932064294815,
0.4408332109451294,
0.2895788550376892,
0.03442980349063873,
0.20874185860157013,
-0.05012350529432297,
0.2683548927307129,
-0.03551995009183884,
0.04930799826979637,
0.2784288823604584,
-0.14063771069049835,
-0.13510040938854218,
0.15987169742584229,
-0.06665356457233429,
-0.09757315367460251,
-0.2356363832950592,
0.13799402117729187,
-0.5082177519798279,
-0.001611561980098486,
-0.32769981026649475,
-0.06167209520936012,
-0.3606291115283966,
0.13358058035373688,
-0.2579289972782135,
-0.023372046649456024,
0.07977592945098877,
0.17723116278648376,
0.11178846657276154,
0.10143405199050903,
-0.4469522535800934,
0.12593749165534973,
-0.4083177447319031,
0.04446155205368996,
-0.23946309089660645,
0.3101462721824646,
-0.12115255743265152,
-0.08415819704532623,
0.18983560800552368,
0.29036200046539307,
-0.12193901836872101,
-0.11502504348754883,
0.17517806589603424,
0.4762858748435974,
0.14574116468429565,
0.043470315635204315,
-0.08061514794826508,
-0.029294930398464203,
-0.03212490677833557,
-0.019082561135292053,
0.2248750627040863,
0.20044001936912537,
-0.03977635130286217,
0.15629160404205322,
0.15418459475040436,
-0.1182025671005249,
0.18917295336723328,
0.12600138783454895,
0.024107500910758972,
0.11597052216529846,
0.26614847779273987,
0.07353857159614563,
-0.15479803085327148,
-0.1336260735988617,
-0.02617456763982773,
-0.31927788257598877,
-0.1522500216960907,
0.3894213140010834,
0.2127334177494049,
-0.23531991243362427,
-0.11317874491214752,
0.0737563893198967,
0.015780093148350716,
0.4464924931526184,
0.12910495698451996,
0.004601560533046722,
-0.12044114619493484,
0.039635419845581055,
-0.2076597958803177,
0.2196233868598938,
-0.023899223655462265,
0.016629235818982124,
0.12267674505710602,
0.09477880597114563,
-0.026472948491573334,
-0.02532828599214554,
0.3033052682876587,
-0.12534093856811523,
0.12073271721601486,
-0.1434570848941803,
-0.27566424012184143,
-0.05758901312947273,
0.308806836605072,
0.0814981758594513,
0.07550527900457382,
-0.2945995330810547,
0.016118459403514862,
0.022224318236112595,
0.11124909669160843,
-0.27230459451675415,
0.058162689208984375,
0.09985174238681793,
-0.3974215090274811,
0.2679629325866699,
-0.08305075764656067,
0.7890286445617676,
0.09276173263788223,
-0.10290859639644623,
-0.00449955090880394,
-0.2056707739830017,
-0.3405402600765228,
0.2708166837692261,
0.0972321480512619,
0.571908712387085,
0.16132403910160065,
-0.12863294780254364,
-0.4244960844516754,
0.36701029539108276,
-0.169755756855011,
-0.6661809086799622,
-0.16411735117435455,
0.19225069880485535,
-0.11734050512313843,
0.2502702474594116,
0.22450251877307892,
0.10295411944389343,
0.3065304160118103,
-0.2895625829696655,
-0.3585677146911621,
-0.12027952820062637,
0.5804314017295837,
-0.26493915915489197,
-0.20652912557125092,
-0.28632262349128723,
0.14597266912460327,
-0.16293922066688538,
0.1301870197057724,
-0.16513238847255707,
0.11296059936285019,
0.026145465672016144,
-0.003977496176958084,
-0.015350528061389923,
0.20361313223838806,
0.24844393134117126,
0.16647231578826904,
-0.14003916084766388,
0.4426271915435791,
-0.14892971515655518,
-0.2323545664548874,
-0.3859888017177582,
-0.24707597494125366
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | Hi ! Thanks for reporting.
This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful !
Otherwise I can try to run the wav2vec2 code above on my side but probably not this week.. | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 48 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Hi ! Thanks for reporting.
This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful !
Otherwise I can try to run the wav2vec2 code above on my side but probably not this week.. | [
-0.058142807334661484,
-0.4536787271499634,
-0.035562094300985336,
0.2569916844367981,
0.0860949456691742,
-0.0037738606333732605,
0.11553159356117249,
-0.06296053528785706,
0.040803756564855576,
0.3191869556903839,
0.2538127303123474,
0.07012979686260223,
-0.3072565197944641,
-0.042545467615127563,
-0.22199445962905884,
-0.24634680151939392,
0.18920773267745972,
-0.12947465479373932,
0.307539701461792,
0.3353131413459778,
-0.42579716444015503,
0.5416622161865234,
-0.40262138843536377,
0.1973484456539154,
-0.41432657837867737,
0.005931887775659561,
-0.2583841383457184,
0.4944567382335663,
0.3894542455673218,
-0.3567267656326294,
0.07124712318181992,
-0.3931778073310852,
0.1509012132883072,
0.15283849835395813,
-0.00012249735300429165,
-0.12420684099197388,
0.039924927055835724,
-0.04017971456050873,
0.41068536043167114,
0.23250581324100494,
0.23275065422058105,
0.1160326898097992,
-0.08967132866382599,
-0.00013619661331176758,
0.1803092062473297,
0.31769025325775146,
0.02302556298673153,
-0.043664008378982544,
0.3788873553276062,
0.2494238018989563,
0.10863497853279114,
0.2697455585002899,
0.058481719344854355,
-0.0172716211527586,
-0.33739325404167175,
-0.4087226390838623,
-0.03560679405927658,
0.1879889965057373,
0.48002809286117554,
-0.38806992769241333,
0.20810386538505554,
0.22986024618148804,
-0.24762235581874847,
0.022245008498430252,
-0.30439454317092896,
0.004738017451018095,
0.3776167333126068,
-0.5156353712081909,
0.07045726478099823,
-0.0893273577094078,
-0.10664296895265579,
-0.1918102204799652,
0.3175109326839447,
0.0956241711974144,
0.12410400807857513,
-0.8489115834236145,
0.1194223016500473,
0.26492324471473694,
-0.38564786314964294,
0.09654649347066879,
-0.033168770372867584,
0.06999830901622772,
-0.060278113931417465,
-0.1735401451587677,
0.15583153069019318,
-0.050357475876808167,
0.059920039027929306,
0.1652517318725586,
0.12970347702503204,
0.3123299479484558,
-0.2853073477745056,
0.2992669343948364,
-0.0785919576883316,
0.056382372975349426,
-0.45823049545288086,
-0.010789018124341965,
0.024560440331697464,
0.21383407711982727,
-0.315574049949646,
-0.2193688303232193,
-0.07228163629770279,
0.05770950764417648,
0.21032920479774475,
0.18776562809944153,
0.21858341991901398,
-0.18825674057006836,
0.04422978311777115,
-0.5686361193656921,
0.16752246022224426,
-0.5050090551376343,
-0.14249494671821594,
-0.08116868138313293,
-0.008024003356695175,
-0.560730516910553,
0.35734954476356506,
0.3995005190372467,
0.23021574318408966,
-0.1080733984708786,
-0.33860838413238525,
0.21012146770954132,
-0.04086410626769066,
0.29010701179504395,
0.2734650671482086,
0.297185480594635,
0.31468403339385986,
0.7152175307273865,
-0.017782706767320633,
0.2513944208621979,
-0.5292395353317261,
0.06867268681526184,
0.07883482426404953,
0.12384240329265594,
-0.2765551209449768,
0.10745863616466522,
0.2124364823102951,
0.018772568553686142,
0.1902925819158554,
0.13903512060642242,
0.29737550020217896,
-0.368814080953598,
-0.018452774733304977,
-0.20974846184253693,
-0.17067399621009827,
0.21967440843582153,
0.23052316904067993,
0.19683799147605896,
-0.00932566449046135,
0.06100758910179138,
0.02385377138853073,
0.22543403506278992,
-0.3823578655719757,
-0.35442960262298584,
-0.1269887089729309,
0.02528112754225731,
0.3979542851448059,
0.44060981273651123,
0.34505215287208557,
-0.1068727970123291,
0.35257288813591003,
-0.3299075961112976,
-0.12402588874101639,
-0.4204723834991455,
-0.36169862747192383,
-0.34269002079963684,
-0.08012653142213821,
0.29534912109375,
0.030153367668390274,
0.3120932877063751,
0.3005542457103729,
-0.05833376571536064,
0.18983039259910583,
0.3420271575450897,
0.23217599093914032,
-0.15417024493217468,
-0.1427905112504959,
-0.05129759758710861,
-0.20754703879356384,
-0.24476246535778046,
0.028726521879434586,
0.10450910776853561,
-0.08764882385730743,
-0.07704620808362961,
0.24264287948608398,
0.09129330515861511,
-0.1405436396598816,
-0.3693985939025879,
0.45935189723968506,
-0.2429707795381546,
-0.14236800372600555,
0.2521107494831085,
-0.18322168290615082,
0.08267726749181747,
-0.03617899864912033,
0.015551548451185226,
0.05547090619802475,
-0.0393531396985054,
-0.06999749690294266,
-0.07501677423715591,
0.23423779010772705,
0.12123472988605499,
0.007189872674643993,
0.2943185567855835,
0.2643740773200989,
-0.025582969188690186,
0.047279421240091324,
-0.3173382580280304,
0.025002654641866684,
0.09443124383687973,
-0.18373362720012665,
-0.059316836297512054,
0.44184011220932007,
0.14879722893238068,
0.19144907593727112,
0.28506895899772644,
-0.15778999030590057,
-0.2866766154766083,
0.007582809776067734,
-0.08881030976772308,
0.03141472488641739,
-0.20195803046226501,
0.04160207882523537,
0.5415998697280884,
0.09244828671216965,
-0.20502081513404846,
-0.07755526900291443,
-0.043245092034339905,
-0.32791319489479065,
-0.34416308999061584,
-0.09580502659082413,
0.30613526701927185,
0.23242387175559998,
0.2131824940443039,
0.09310904145240784,
0.22492560744285583,
0.178348571062088,
-0.12504340708255768,
-0.17883852124214172,
-0.01898498833179474,
0.16573168337345123,
-0.3093579411506653,
0.09457613527774811,
0.023397384211421013,
0.16863761842250824,
-0.27408453822135925,
0.4795757532119751,
0.11126454174518585,
-0.03925073519349098,
0.24645301699638367,
-0.1647883802652359,
0.1857767403125763,
0.12391449511051178,
0.08680513501167297,
0.25008246302604675,
0.2957983613014221,
0.35409966111183167,
0.07377679646015167,
-0.09430760890245438,
-0.3773716688156128,
-0.32852867245674133,
0.06343565881252289,
0.15194140374660492,
0.2393573522567749,
-0.02599073201417923,
0.05841120332479477,
-0.19903728365898132,
0.20179691910743713,
-0.0167576652020216,
-0.45247259736061096,
0.7369391322135925,
0.07086878269910812,
-0.15863744914531708,
0.30138280987739563,
-0.3818296492099762,
-0.10298296064138412,
0.256470650434494,
0.05587654560804367,
0.014250396750867367,
0.15148746967315674,
-0.07932150363922119,
-0.0701856017112732,
0.015665847808122635,
-0.06301741302013397,
-0.11213872581720352,
0.024523265659809113,
-0.3366858661174774,
0.14371207356452942,
-0.07035286724567413,
0.5119805335998535,
-0.3930770456790924,
-0.41858676075935364,
-0.0158645361661911,
-0.1448655128479004,
0.07371032238006592,
0.4412175714969635,
-0.12729303538799286,
-0.09613382071256638,
0.016548767685890198,
0.004298582673072815,
0.12297429144382477,
0.28591635823249817,
0.3148185908794403,
-0.04218249395489693,
-0.10145636647939682,
-0.09973637759685516,
0.2983367443084717,
-0.16474880278110504,
0.20879894495010376,
0.35323062539100647,
-0.0372241847217083,
0.08494402468204498,
0.16452622413635254,
-0.009508822113275528,
0.0576121062040329,
0.26229870319366455,
0.04403512552380562,
0.03749990835785866,
0.17676714062690735,
-0.4125063121318817,
0.09985986351966858,
-0.318725049495697,
0.19152140617370605,
0.26103201508522034,
0.17134135961532593,
-0.39749687910079956,
-0.27629268169403076,
-0.028308652341365814,
-0.42769062519073486,
-0.181095153093338,
0.05519906058907509,
-0.18468287587165833,
0.2561764121055603,
-0.25474581122398376,
0.09003888070583344,
0.08470576256513596,
0.2642417550086975,
-0.2037706971168518,
-0.14338083565235138,
0.17167972028255463,
-0.08444240689277649,
-0.2580583989620209,
-0.17592370510101318,
0.2507467567920685,
0.1663268357515335,
0.034059762954711914,
-0.23007506132125854,
-0.18440622091293335,
-0.31760022044181824,
0.019609276205301285,
0.032273147255182266,
-0.057280175387859344,
0.2107919603586197,
0.3846409320831299,
0.11097561568021774,
-0.09155146777629852,
0.024196214973926544,
-0.11187030375003815,
0.12265518307685852,
0.02505374513566494,
0.1421000063419342,
0.2201242446899414,
0.07127369195222855,
-0.16959722340106964,
0.5418447256088257,
0.5851690173149109,
0.12319517135620117,
0.3024073541164398,
0.11544612050056458,
0.016769979149103165,
0.03435357287526131,
-0.18132717907428741,
0.043258171528577805,
-0.45382317900657654,
-0.18460601568222046,
0.18527716398239136,
0.13678884506225586,
-0.3691618740558624,
-0.2682438790798187,
0.2060449719429016,
-0.34498342871665955,
-0.11765500903129578,
0.08894570171833038,
0.09459416568279266,
0.21256282925605774,
-0.2040405124425888,
-0.03361087292432785,
0.09818211197853088,
0.06724603474140167,
-0.19226829707622528,
0.164306640625,
-0.18594199419021606,
-0.2114788144826889,
-0.005840487778186798,
-0.5571389198303223,
-0.3848229646682739,
0.3280600309371948,
0.1219235509634018,
0.5821321606636047,
-0.06776505708694458,
-0.17201414704322815,
-0.07614471018314362,
-0.3084474205970764,
0.8612219095230103,
-0.12406561523675919,
-0.17287226021289825,
0.20275183022022247,
0.21316936612129211,
0.04803314805030823,
-0.19543398916721344,
-0.20255887508392334,
0.3766915798187256,
0.05849505960941315,
-0.08273983001708984,
0.33472269773483276,
0.014659406617283821,
0.05775336176156998,
-0.07586436718702316,
-0.15762440860271454,
-0.11390285193920135,
-0.39562711119651794,
-0.26471948623657227,
0.07987047731876373,
0.2954235076904297,
0.06083321571350098,
0.018323328346014023,
-0.48670631647109985,
0.05888736620545387,
0.12653374671936035,
-0.04763319343328476,
0.27992570400238037,
-0.10757386684417725,
0.10518882423639297,
-0.19546642899513245,
0.2081284373998642,
-0.3091815114021301,
0.3162393271923065,
-0.22098113596439362,
-0.0304391011595726,
-0.11674143373966217,
0.2173634022474289,
0.3433986008167267,
-0.11157748848199844,
0.46179622411727905,
0.4835236668586731,
0.1073472648859024,
0.04665685072541237,
-0.3023394048213959,
0.3954613208770752,
-0.29973456263542175,
-0.2929950952529907,
0.30639755725860596,
0.22527307271957397,
0.1064763218164444,
0.36083582043647766,
0.2658946216106415,
0.12518616020679474,
-0.09708235412836075,
0.5405082702636719,
-0.2946854829788208,
-0.06812022626399994,
-0.057852014899253845,
0.0979820266366005,
0.970649778842926,
0.1672174334526062,
0.12791596353054047,
0.06668683886528015,
-0.4959295392036438,
-0.20375601947307587,
-0.12535011768341064,
0.3211532235145569,
-0.25029799342155457,
-0.20166413486003876,
0.048365361988544464,
-0.10472145676612854,
0.1514298915863037,
-0.11486202478408813,
-0.315912663936615,
0.4344836175441742,
0.08562666177749634,
-0.24076810479164124,
-0.10794179886579514,
-0.33933427929878235,
-0.06388385593891144,
-0.16768167912960052,
0.0529182031750679,
0.033336810767650604,
0.1299218386411667,
-0.0785955935716629,
-0.29019269347190857,
0.16032522916793823,
0.43778058886528015,
-0.3864813446998596,
-0.5973952412605286,
0.058525800704956055,
-0.22185534238815308,
0.12962056696414948,
0.024700786918401718,
0.21419478952884674,
0.11333964765071869,
0.34575679898262024,
0.18833091855049133,
-0.06397463381290436,
-0.2510092258453369,
0.037040237337350845,
0.4117546081542969,
-0.02521684765815735,
-0.12669895589351654,
0.018613673746585846,
-0.1215970516204834,
-0.14543402194976807,
-0.26242882013320923,
0.34676018357276917,
-0.1787400096654892,
-0.058128707110881805,
-0.35538607835769653,
0.3969111442565918,
0.06647725403308868,
0.22348164021968842,
-0.1788855642080307,
0.25911593437194824,
-0.09721475839614868,
-0.18638475239276886,
0.07092612981796265,
0.08987616747617722,
-0.5308449864387512,
0.49425965547561646,
-0.5991371870040894,
-0.08748660236597061,
0.04042316973209381,
0.08994729071855545,
-0.004493575543165207,
-0.14277955889701843,
0.14407318830490112,
0.27404481172561646,
-0.0375339649617672,
-0.189378023147583,
-0.08322686702013016,
-0.553809404373169,
-0.06391772627830505,
-0.038102827966213226,
0.38454291224479675,
-0.1365792155265808,
0.19889679551124573,
-0.26312172412872314,
0.03435250744223595,
0.08596672862768173,
0.00007652118802070618,
-0.41663771867752075,
-0.15240606665611267,
-0.08183640241622925,
-0.10891732573509216,
0.07616367936134338,
-0.06807355582714081,
0.049310166388750076,
0.12972648441791534,
0.030704941600561142,
-0.22120432555675507,
0.04963201284408569,
-0.145128533244133,
0.10468791425228119,
0.0524078905582428,
-0.1959427297115326,
-0.11743082851171494,
0.17339074611663818,
-0.013985426165163517,
0.3372424840927124,
-0.27686604857444763,
-0.07661058008670807,
0.031161922961473465,
0.12523609399795532,
-0.10287710279226303,
-0.01209317147731781,
0.14433173835277557,
0.11662104725837708,
0.04616502672433853,
0.0722217932343483,
0.13746075332164764,
0.07058529555797577,
-0.2863955497741699,
0.10496673732995987,
-0.03686113283038139,
0.2669779360294342,
0.14011836051940918,
0.29923897981643677,
-0.119569331407547,
0.4209017753601074,
0.0716729685664177,
0.012192826718091965,
0.10211043059825897,
-0.0031003132462501526,
-0.021077623590826988,
0.007286079227924347,
-0.1587187498807907,
-0.18283692002296448,
-0.17833489179611206,
-0.1451348215341568,
-0.22224263846874237,
-0.16027694940567017,
0.18009233474731445,
0.2320833057165146,
-0.18912559747695923,
0.35960403084754944,
0.3616655170917511,
0.18559305369853973,
-0.17674008011817932,
0.10094883292913437,
-0.08479535579681396,
-0.11321432888507843,
-0.20287956297397614,
0.31185686588287354,
0.19511470198631287,
-0.48283302783966064,
0.3124464750289917,
0.07684589922428131,
0.21621550619602203,
-0.3997155427932739,
-0.327063649892807,
0.09996303170919418,
0.21165190637111664,
0.15684013068675995,
-0.11750621348619461,
-0.1622985601425171,
0.028911098837852478,
0.5074874758720398,
-0.01026267558336258,
0.1445215493440628,
-0.16567280888557434,
0.06035241484642029,
-0.09376867860555649,
-0.2105659693479538,
-0.28168678283691406,
0.11445878446102142,
-0.3063826262950897,
0.4082042872905731,
-0.26976877450942993,
0.4192979335784912,
-0.5900564193725586,
-0.31318268179893494,
-0.34409546852111816,
0.34098002314567566,
-0.2885807752609253,
-0.12610407173633575,
0.1379365175962448,
0.013824574649333954,
0.029238305985927582,
0.1049954742193222,
0.3350334167480469,
0.10359218716621399,
0.5011780858039856,
0.18397869169712067,
-0.12753678858280182,
-0.024708202108740807,
-0.24112752079963684,
0.24837952852249146,
0.014742426574230194,
-0.2052842080593109,
0.19892443716526031,
0.43187278509140015,
-0.07154855132102966,
-0.16164147853851318,
-0.017357924953103065,
0.5543357729911804,
0.37768688797950745,
-0.7202737331390381,
-0.05498085543513298,
0.1337950974702835,
0.1619911938905716,
0.03909595310688019,
0.18314680457115173,
0.18679745495319366,
0.27722737193107605,
-0.03018965758383274,
-0.03592989593744278,
-0.057224515825510025,
0.0335894376039505,
0.3075835406780243,
0.20616048574447632,
-0.021919554099440575,
0.24361896514892578,
-0.179590106010437,
-0.19276010990142822,
0.09783578664064407,
0.14973077178001404,
-0.5974991321563721,
0.03358307108283043,
0.24083559215068817,
-0.34228625893592834,
0.06265994906425476,
0.10909038782119751,
0.023920059204101562,
-0.04537719115614891,
0.3704228699207306,
-0.07111489772796631,
0.3302571773529053,
-0.23252257704734802,
-0.20240142941474915,
-0.35968756675720215,
0.06607378274202347,
0.03062925860285759,
0.08327686786651611,
-0.14726588129997253,
-0.1648821234703064,
-0.0934378132224083,
0.15572133660316467,
0.06484511494636536,
0.14286822080612183,
0.26117798686027527,
0.7247500419616699,
-0.6224197149276733,
0.2886500656604767,
0.39180129766464233,
-0.02962132729589939,
0.24714809656143188,
-0.4001508355140686,
0.16934946179389954,
0.010367236100137234,
0.0022281594574451447,
-0.17733392119407654,
0.1539894938468933,
-0.1694151908159256,
0.4468991160392761,
0.15492786467075348,
0.0643644854426384,
0.26956355571746826,
0.033614806830883026,
-0.11734846234321594,
0.01933954283595085,
0.299787700176239,
0.30062025785446167,
-0.5452706217765808,
0.21351394057273865,
0.0773070678114891,
-0.4484585225582123,
-0.019957032054662704,
0.009789623320102692,
-0.001511389622464776,
0.11823832988739014,
0.13964223861694336,
-0.15437355637550354,
0.019128402695059776,
-0.09322181344032288,
0.1422595977783203,
0.03170665726065636,
0.3753746747970581,
-0.03673195093870163,
0.1789429485797882,
-0.23781809210777283,
0.05141327530145645,
0.08945577591657639,
-0.17669077217578888,
-0.3162962794303894,
-0.3609883785247803,
0.5703045725822449,
-0.48236608505249023,
0.108332060277462,
-0.05670015513896942,
-0.1274673044681549,
-0.052768878638744354,
0.0712156891822815,
-0.6215378046035767,
0.2518406808376312,
-0.3608246445655823,
-0.6841003894805908,
0.18339379131793976,
-0.1227840781211853,
0.11387905478477478,
-0.04787101596593857,
0.2918034791946411,
-0.1887575089931488
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | ```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
``` | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 22 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
``` | [
-0.2164212018251419,
-0.2695315480232239,
-0.030776450410485268,
0.18502259254455566,
0.17840217053890228,
0.13764169812202454,
0.05756878852844238,
-0.002502553164958954,
0.00871758908033371,
0.27664196491241455,
0.14897504448890686,
0.16105976700782776,
-0.2854522466659546,
-0.10231763124465942,
-0.12377528846263885,
-0.18284781277179718,
0.1945973038673401,
-0.16329869627952576,
0.26388782262802124,
0.3403264284133911,
-0.4150702953338623,
0.47927969694137573,
-0.345964252948761,
0.07344931364059448,
-0.5422179102897644,
-0.1041581854224205,
-0.2976149916648865,
0.43964630365371704,
0.19728867709636688,
-0.451799601316452,
-0.013877836987376213,
-0.18383364379405975,
0.2181250900030136,
0.17760275304317474,
-0.00012069215154042467,
-0.1065649539232254,
0.05752430856227875,
-0.021633783355355263,
0.33318623900413513,
0.22948402166366577,
0.09891583770513535,
0.028637422248721123,
-0.0890316367149353,
-0.08559677004814148,
0.1740061342716217,
0.2978890538215637,
0.09632810205221176,
-0.12827342748641968,
0.5274692177772522,
0.38252341747283936,
0.07585737109184265,
0.22729699313640594,
0.08764775097370148,
0.007820230908691883,
-0.18784216046333313,
-0.2888144850730896,
0.02035572938621044,
0.20242679119110107,
0.5406012535095215,
-0.3069022297859192,
0.08761005103588104,
0.2608897089958191,
-0.33697330951690674,
0.005855614319443703,
-0.3788696527481079,
-0.0015097511932253838,
0.340975821018219,
-0.4972144067287445,
0.13559532165527344,
-0.06810244172811508,
-0.013012923300266266,
-0.32198014855384827,
0.15283697843551636,
-0.02167462930083275,
0.18630628287792206,
-0.876705527305603,
-0.011593572795391083,
0.19895799458026886,
-0.31447654962539673,
0.0741172581911087,
-0.1529560089111328,
-0.05945459380745888,
-0.040812090039253235,
-0.11914335191249847,
0.18302500247955322,
0.02304510772228241,
0.042707204818725586,
0.16738419234752655,
0.24123850464820862,
0.2289174199104309,
-0.19544617831707,
0.2736685276031494,
-0.102179154753685,
0.1365429162979126,
-0.5750361680984497,
-0.003418736159801483,
-0.03584243357181549,
0.11982950568199158,
-0.2478044629096985,
-0.36532819271087646,
-0.010133539326488972,
0.06694221496582031,
0.2934776544570923,
0.1694193035364151,
0.26303666830062866,
-0.15417636930942535,
0.0505521185696125,
-0.5396236181259155,
0.23374629020690918,
-0.49707287549972534,
-0.17936119437217712,
-0.039747945964336395,
-0.03935232385993004,
-0.5704110860824585,
0.32871297001838684,
0.4325675964355469,
0.29499679803848267,
-0.07710877805948257,
-0.38089966773986816,
0.19822973012924194,
-0.034311845898628235,
0.15759409964084625,
0.18641503155231476,
0.2853848934173584,
0.30098217725753784,
0.6022775173187256,
-0.10891150683164597,
0.24309730529785156,
-0.5615467429161072,
-0.024919088929891586,
0.00658987695351243,
0.026332424953579903,
-0.36802351474761963,
0.1488281935453415,
0.2685835063457489,
0.05363638326525688,
0.12491873651742935,
0.15042230486869812,
0.13725359737873077,
-0.37017178535461426,
-0.139793261885643,
-0.23612943291664124,
-0.2652800977230072,
0.228474423289299,
0.21428728103637695,
0.2383062094449997,
-0.04746479168534279,
-0.023805756121873856,
0.02629122883081436,
0.30227065086364746,
-0.3516971170902252,
-0.3986413776874542,
-0.12663811445236206,
0.03159547597169876,
0.3112643361091614,
0.2649718225002289,
0.08642108738422394,
0.141197070479393,
0.41623571515083313,
-0.26842746138572693,
-0.15045776963233948,
-0.3968693017959595,
-0.27667778730392456,
-0.30786699056625366,
-0.06563925743103027,
0.41703832149505615,
-0.13652686774730682,
0.2900330424308777,
0.296091228723526,
0.03144356980919838,
0.19459210336208344,
0.3655431270599365,
0.1552811861038208,
-0.08138520270586014,
-0.050569601356983185,
0.08323509991168976,
-0.02056030184030533,
-0.28816673159599304,
-0.19922418892383575,
0.17603793740272522,
-0.07383189350366592,
-0.09783834964036942,
0.31559062004089355,
0.16299137473106384,
0.0818682312965393,
-0.2875578701496124,
0.49074387550354004,
-0.1638595312833786,
-0.11479264497756958,
0.219432532787323,
-0.1701684147119522,
0.11430364847183228,
0.0020507946610450745,
0.05975421145558357,
0.005504671484231949,
-0.10012242943048477,
-0.07470422238111496,
-0.08218605816364288,
0.3725978434085846,
0.049352988600730896,
0.03293197602033615,
0.4288325309753418,
0.12511317431926727,
0.042678847908973694,
-0.03800327703356743,
-0.4412006139755249,
-0.14103937149047852,
0.03642774373292923,
-0.14548274874687195,
0.12022151052951813,
0.21549180150032043,
0.012320172041654587,
0.14365512132644653,
0.27996718883514404,
-0.1707315742969513,
-0.36521297693252563,
0.026243817061185837,
-0.08552777767181396,
0.047041673213243484,
-0.2536360025405884,
-0.07403327524662018,
0.5049325823783875,
-0.04102941229939461,
-0.06585219502449036,
-0.11830668151378632,
-0.035705871880054474,
-0.2768334746360779,
-0.4343213140964508,
-0.03777436167001724,
0.3438778519630432,
0.21605873107910156,
0.14897646009922028,
0.048039522022008896,
0.34265443682670593,
0.18630507588386536,
0.008138708770275116,
-0.1519266664981842,
-0.06055867671966553,
0.21190382540225983,
-0.30943384766578674,
0.0922352597117424,
0.043526142835617065,
0.1680230051279068,
-0.19742467999458313,
0.3308632969856262,
0.05125245451927185,
0.04555775970220566,
0.30312487483024597,
-0.13086432218551636,
0.127456933259964,
0.1350083202123642,
0.121829092502594,
0.15686264634132385,
0.15459869801998138,
0.2793996334075928,
0.07498383522033691,
-0.02717839740216732,
-0.26463058590888977,
-0.3050137162208557,
0.024810969829559326,
0.2788724899291992,
0.15748414397239685,
0.007560309022665024,
0.04767988622188568,
-0.3225962519645691,
0.12227543443441391,
-0.02205396629869938,
-0.32549214363098145,
0.7709754109382629,
0.1396937072277069,
-0.09179237484931946,
0.2921946942806244,
-0.4372154772281647,
-0.10928593575954437,
0.2887381911277771,
0.09581524133682251,
0.01829168014228344,
0.12131556123495102,
-0.07258769124746323,
-0.006696213968098164,
-0.19476285576820374,
-0.08003143966197968,
0.0012709777802228928,
0.16168294847011566,
-0.3943113386631012,
0.05674487352371216,
-0.14572672545909882,
0.3488928973674774,
-0.38662347197532654,
-0.41303500533103943,
-0.043693531304597855,
-0.20898349583148956,
-0.004500012844800949,
0.34860092401504517,
-0.008753474801778793,
0.0981040820479393,
0.05096859857439995,
-0.15003247559070587,
0.14289334416389465,
0.14551979303359985,
0.26624950766563416,
-0.09061896055936813,
-0.12540960311889648,
-0.10486763715744019,
0.3953678011894226,
-0.14870843291282654,
0.22627945244312286,
0.2536703050136566,
0.05338112264871597,
-0.022770525887608528,
0.12295722216367722,
-0.10322140157222748,
0.0013773776590824127,
0.36771294474601746,
0.03448660299181938,
0.07142610847949982,
0.07288859039545059,
-0.3751189410686493,
0.13725557923316956,
-0.3081081509590149,
0.18053855001926422,
0.14202676713466644,
0.17696450650691986,
-0.4281654953956604,
-0.15453560650348663,
-0.2390204668045044,
-0.4491526484489441,
-0.2015044242143631,
0.04727330058813095,
-0.2694442570209503,
0.2583691477775574,
-0.26008421182632446,
0.14037656784057617,
0.12281931936740875,
0.3062797784805298,
-0.10060575604438782,
-0.19496142864227295,
0.2093833088874817,
-0.053371574729681015,
-0.2659556269645691,
-0.21523569524288177,
0.09531885385513306,
0.1492295265197754,
-0.0089389868080616,
-0.07561396062374115,
-0.20120231807231903,
-0.3000933825969696,
-0.13289286196231842,
-0.004120875149965286,
-0.0031257309019565582,
0.33792051672935486,
0.5044852495193481,
0.15376532077789307,
-0.08958641439676285,
0.02805647999048233,
-0.19149421155452728,
0.081686832010746,
0.1449466347694397,
0.14349521696567535,
0.15601810812950134,
0.18274930119514465,
-0.12496475875377655,
0.48655807971954346,
0.6543407440185547,
-0.006631862372159958,
0.36750200390815735,
0.0008981227874755859,
0.019104935228824615,
0.010392643511295319,
-0.25582587718963623,
0.0708780512213707,
-0.4434516727924347,
-0.09433438628911972,
0.1967524290084839,
0.14017432928085327,
-0.39027684926986694,
-0.2533397078514099,
0.19719386100769043,
-0.3684375584125519,
-0.16614840924739838,
0.16767491400241852,
0.028735797852277756,
0.21895277500152588,
-0.09089905023574829,
-0.08637697994709015,
0.01748562604188919,
0.023345082998275757,
-0.14182010293006897,
0.14240548014640808,
-0.19119396805763245,
-0.20005154609680176,
-0.16224603354930878,
-0.4725288450717926,
-0.5464190244674683,
0.44208115339279175,
0.19025060534477234,
0.5572493672370911,
-0.0004185624420642853,
-0.10336318612098694,
-0.007723234593868256,
-0.24831806123256683,
0.9616150259971619,
-0.2557925879955292,
-0.23216377198696136,
0.262356162071228,
0.3185878098011017,
-0.14501060545444489,
-0.0631817877292633,
-0.31865009665489197,
0.33449652791023254,
0.15415778756141663,
0.07220342010259628,
0.24508142471313477,
-0.12325899302959442,
0.11160573363304138,
-0.09644095599651337,
-0.16937801241874695,
-0.12990348041057587,
-0.30902862548828125,
-0.2947704493999481,
-0.10303400456905365,
0.25471001863479614,
0.07254497706890106,
0.06472337990999222,
-0.2876007854938507,
-0.030469974502921104,
0.055719293653964996,
-0.08929739892482758,
0.32426172494888306,
-0.05140496790409088,
0.17787551879882812,
-0.008767710067331791,
0.12907220423221588,
-0.32439881563186646,
0.3358861804008484,
-0.10609367489814758,
0.06696959584951401,
-0.25745293498039246,
0.12268326431512833,
0.2483448088169098,
-0.08436542004346848,
0.5241105556488037,
0.4933411180973053,
0.05577501654624939,
-0.00791972130537033,
-0.316723495721817,
0.43003684282302856,
-0.3185165524482727,
-0.0990874171257019,
0.45876064896583557,
0.41840797662734985,
-0.05521000921726227,
0.09673535078763962,
0.3463327884674072,
0.2058129906654358,
-0.18451854586601257,
0.38745930790901184,
-0.19013281166553497,
-0.18937864899635315,
0.09835585951805115,
0.11404643952846527,
1.0056915283203125,
0.020903941243886948,
0.1967632919549942,
-0.0363474041223526,
-0.41719990968704224,
-0.08780338615179062,
-0.1630505472421646,
0.3706015348434448,
-0.17691469192504883,
-0.19231633841991425,
0.01859181933104992,
-0.06885562092065811,
0.26517513394355774,
0.030269484966993332,
-0.3834734261035919,
0.5674395561218262,
0.1610332727432251,
-0.2266099750995636,
-0.09264079481363297,
-0.15821272134780884,
-0.1406066119670868,
-0.28201746940612793,
-0.09943210333585739,
0.01546499878168106,
0.058110274374485016,
-0.15246489644050598,
-0.24077090620994568,
0.16428731381893158,
0.39620378613471985,
-0.35484760999679565,
-0.5855566263198853,
-0.022485194727778435,
-0.39428138732910156,
0.15943729877471924,
-0.14407165348529816,
0.15302053093910217,
0.07048499584197998,
0.523325502872467,
0.11553610861301422,
-0.02682318165898323,
-0.1901288628578186,
0.028517641127109528,
0.47664952278137207,
-0.043587636202573776,
0.0016900930786505342,
0.036415573209524155,
0.10924001783132553,
-0.1305307149887085,
-0.3378489017486572,
0.29884088039398193,
-0.15085230767726898,
-0.09667851030826569,
-0.29320260882377625,
0.17584331333637238,
0.13696900010108948,
0.05068432167172432,
-0.2225041389465332,
0.2744401693344116,
-0.06368058174848557,
-0.24752898514270782,
0.048639751970767975,
0.036909930408000946,
-0.4689873158931732,
0.6542807221412659,
-0.5486719608306885,
-0.1686795949935913,
0.007155481725931168,
0.1973307579755783,
0.003032449632883072,
-0.14461998641490936,
0.24448272585868835,
0.29996761679649353,
-0.023735463619232178,
-0.19717127084732056,
-0.12121692299842834,
-0.4443235695362091,
-0.08502170443534851,
-0.021260112524032593,
0.33506694436073303,
-0.11419561505317688,
0.20376262068748474,
-0.19730842113494873,
0.12672781944274902,
0.11229236423969269,
0.013611618429422379,
-0.46400144696235657,
-0.3002682626247406,
0.025987625122070312,
0.01940731517970562,
0.14997947216033936,
0.0022459253668785095,
0.13532747328281403,
0.16262789070606232,
0.08263008296489716,
-0.23596395552158356,
0.08792749792337418,
-0.07344195246696472,
0.1371510624885559,
0.23724675178527832,
-0.2229142189025879,
-0.06192692369222641,
0.14099183678627014,
0.01777285896241665,
0.35061120986938477,
-0.3006494343280792,
-0.1103438064455986,
0.044164326041936874,
0.09413918107748032,
-0.16228052973747253,
0.009097027592360973,
0.0983474999666214,
0.05766776204109192,
0.002896741032600403,
-0.005352434702217579,
0.18688763678073883,
0.16726598143577576,
-0.31758975982666016,
0.12896429002285004,
0.033708229660987854,
0.22497859597206116,
0.15657548606395721,
0.24356094002723694,
-0.19329601526260376,
0.28549981117248535,
0.11263831704854965,
0.09228779375553131,
0.11906956881284714,
-0.02502942830324173,
-0.011418997310101986,
-0.0004563555121421814,
0.0224737748503685,
-0.24089276790618896,
-0.12089777737855911,
-0.2099996954202652,
-0.29088976979255676,
-0.09293964505195618,
0.35334184765815735,
0.3665493130683899,
-0.16368818283081055,
0.2602790892124176,
0.3331294357776642,
0.16327455639839172,
-0.2968604862689972,
0.08949761837720871,
0.08522811532020569,
-0.1177002564072609,
-0.11734004318714142,
0.30398038029670715,
0.2468135952949524,
-0.3369479477405548,
0.12802226841449738,
0.06805330514907837,
0.2644030749797821,
-0.320400595664978,
-0.300334632396698,
0.21818982064723969,
0.23228539526462555,
0.1148710623383522,
-0.05666232854127884,
0.01668771542608738,
0.1003808081150055,
0.5405616760253906,
-0.1263543963432312,
0.22187116742134094,
-0.14423441886901855,
0.1424398273229599,
-0.10318691283464432,
-0.1945936679840088,
-0.1662876009941101,
0.15636993944644928,
-0.27562227845191956,
0.45194417238235474,
-0.23142847418785095,
0.6587273478507996,
-0.3951897919178009,
-0.40380701422691345,
-0.27091920375823975,
0.46136587858200073,
-0.28932592272758484,
-0.3082680404186249,
0.08060114830732346,
0.03376083821058273,
0.005071334540843964,
0.06756165623664856,
0.14983469247817993,
0.015893898904323578,
0.5080649256706238,
0.10550001263618469,
-0.04460501670837402,
-0.17129988968372345,
-0.24807798862457275,
0.14823652803897858,
0.03292732685804367,
-0.20410996675491333,
0.34030434489250183,
0.3946771025657654,
-0.035088129341602325,
-0.112664595246315,
0.030420800670981407,
0.6076419949531555,
0.3532494902610779,
-0.6928082704544067,
0.07804170995950699,
0.12278187274932861,
0.14453811943531036,
0.04422402381896973,
0.14379611611366272,
0.20571821928024292,
0.32899656891822815,
0.09885147213935852,
-0.021801404654979706,
-0.06857790052890778,
0.041415952146053314,
0.19230182468891144,
0.2604731321334839,
0.03789359703660011,
0.18811237812042236,
-0.03409349173307419,
-0.23307588696479797,
0.06357883661985397,
0.04360930249094963,
-0.6348349452018738,
-0.02928991988301277,
0.4114500880241394,
-0.49036043882369995,
0.08885280042886734,
0.08270139247179031,
0.042008962482213974,
-0.06045601889491081,
0.3990844786167145,
0.011533718556165695,
0.3016096353530884,
-0.2673695981502533,
-0.16884368658065796,
-0.5573810338973999,
0.012977443635463715,
0.10036683082580566,
-0.020199626684188843,
-0.18293574452400208,
-0.17103096842765808,
-0.04339352995157242,
0.2719523310661316,
0.17122547328472137,
0.0828574001789093,
0.17844896018505096,
0.7048640251159668,
-0.6334086656570435,
0.3171173632144928,
0.2510334253311157,
0.10438045114278793,
0.29635363817214966,
-0.37998345494270325,
0.17815740406513214,
0.0762074813246727,
-0.027744514867663383,
-0.28035950660705566,
0.19653955101966858,
-0.11784160137176514,
0.3687137961387634,
0.27998262643814087,
0.06566911935806274,
0.3750947117805481,
-0.0018228664994239807,
-0.007642462849617004,
-0.09024116396903992,
0.3053017854690552,
0.19002249836921692,
-0.4532952606678009,
0.29294997453689575,
0.17084453999996185,
-0.5065390467643738,
0.07062636315822601,
0.04877452552318573,
-0.05072183907032013,
0.1662176251411438,
-0.0040193586610257626,
-0.25340110063552856,
0.0329207107424736,
0.008796870708465576,
0.07153511792421341,
0.07296675443649292,
0.48780015110969543,
-0.05636279284954071,
0.28838199377059937,
-0.20618750154972076,
-0.1364273577928543,
0.15666449069976807,
-0.24870306253433228,
-0.30224791169166565,
-0.351283997297287,
0.42954227328300476,
-0.3348473012447357,
0.11135242134332657,
-0.2448459267616272,
-0.08163682371377945,
0.023803304880857468,
0.057096369564533234,
-0.6880540251731873,
0.37993544340133667,
-0.30705612897872925,
-0.6153408288955688,
0.10814371705055237,
-0.04094213247299194,
0.0843588188290596,
-0.1582704782485962,
0.10822698473930359,
-0.3347597122192383
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error |
I was able to copy some of the shell
This is repeating every half second
Win 10, Anaconda with python 3.8, datasets installed from main branche
```
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
exitcode = _main(fd, parent_sentinel)
raise RuntimeError('''
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable. return _run_module_code(code, init_globals, run_name,
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
return self._repopulate_pool_static(self._ctx, self.Process,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
self._popen = self._Popen(self)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 327, in _Popen
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
return Popen(process_obj)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\popen_spawn_win32.py", line 45, in __init__
return self._repopulate_pool_static(self._ctx, self.Process,
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
``` | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 433 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
I was able to copy some of the shell
This is repeating every half second
Win 10, Anaconda with python 3.8, datasets installed from main branche
```
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
exitcode = _main(fd, parent_sentinel)
raise RuntimeError('''
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable. return _run_module_code(code, init_globals, run_name,
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
return self._repopulate_pool_static(self._ctx, self.Process,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
self._popen = self._Popen(self)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 327, in _Popen
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
return Popen(process_obj)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\popen_spawn_win32.py", line 45, in __init__
return self._repopulate_pool_static(self._ctx, self.Process,
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
``` | [
-0.18814654648303986,
-0.3144049346446991,
-0.03913500905036926,
0.19852465391159058,
0.11120013147592545,
0.004422590136528015,
0.14738023281097412,
0.05224267393350601,
0.007205933332443237,
0.15420649945735931,
0.03806184232234955,
-0.03699839487671852,
-0.23013339936733246,
0.004948345944285393,
-0.16412577033042908,
-0.2017737329006195,
0.12297147512435913,
-0.14779701828956604,
0.10827046632766724,
0.3176007866859436,
-0.4681923985481262,
0.4709625244140625,
-0.2818862199783325,
0.1857171207666397,
-0.1982046663761139,
-0.05356644093990326,
-0.28123775124549866,
0.5518503189086914,
0.22895188629627228,
-0.5014718770980835,
0.1033397912979126,
-0.36959728598594666,
0.20536653697490692,
0.192868173122406,
-0.00011916283256141469,
-0.09571589529514313,
0.12400954216718674,
0.017228668555617332,
0.2794226109981537,
0.22583088278770447,
0.2599863111972809,
0.043402791023254395,
0.009117952547967434,
-0.022887669503688812,
0.21117597818374634,
0.23331134021282196,
0.028852595016360283,
-0.14627651870250702,
0.47571229934692383,
0.19967229664325714,
0.06838007271289825,
0.15873593091964722,
0.12234769761562347,
-0.01792016066610813,
-0.34473952651023865,
-0.2424107939004898,
-0.007486937567591667,
0.255112886428833,
0.48743876814842224,
-0.3183259069919586,
0.22098669409751892,
0.14779937267303467,
-0.2789091467857361,
0.08369578421115875,
-0.49959149956703186,
0.03853948786854744,
0.6404621601104736,
-0.557327151298523,
0.012313621118664742,
0.003934122622013092,
-0.13714104890823364,
-0.1722596287727356,
0.14125105738639832,
-0.07143907248973846,
0.20486952364444733,
-0.8496662974357605,
-0.05665803700685501,
0.22381001710891724,
-0.4533595144748688,
0.07005728781223297,
0.037613436579704285,
0.13825196027755737,
0.02112264186143875,
-0.12296998500823975,
0.17871282994747162,
0.04805678874254227,
0.024106699973344803,
0.2137419879436493,
0.2611120641231537,
0.2568987011909485,
-0.2901441156864166,
0.3060052990913391,
-0.16565664112567902,
0.11107654124498367,
-0.5593207478523254,
0.0435667559504509,
-0.08759089559316635,
0.13957571983337402,
-0.26038917899131775,
-0.09112690389156342,
-0.14506657421588898,
-0.001092866063117981,
0.24373745918273926,
0.12246184796094894,
0.16438038647174835,
-0.22492538392543793,
0.016275111585855484,
-0.575462281703949,
0.07629957795143127,
-0.3193163573741913,
-0.019271012395620346,
-0.06312664598226547,
-0.039631251245737076,
-0.5433812737464905,
0.16386909782886505,
0.4754505157470703,
0.3127381205558777,
-0.09082935750484467,
-0.40876513719558716,
0.004649978596717119,
0.054897136986255646,
0.15910682082176208,
0.32630279660224915,
0.3785492479801178,
0.23752616345882416,
0.6493280529975891,
0.11646632850170135,
0.30086803436279297,
-0.49835655093193054,
0.24988725781440735,
0.10552611947059631,
-0.00991460308432579,
-0.26468217372894287,
0.2840287983417511,
0.201582670211792,
-0.10501737892627716,
0.19191262125968933,
0.091367706656456,
0.2648679316043854,
-0.19339177012443542,
-0.05482377111911774,
-0.17752382159233093,
-0.1875755488872528,
0.24834750592708588,
0.1039772629737854,
0.2727550268173218,
0.07822314649820328,
0.06140079349279404,
-0.0588398277759552,
0.12170463800430298,
-0.2332019805908203,
-0.33230239152908325,
-0.290873646736145,
0.04879509657621384,
0.34559816122055054,
0.41071444749832153,
0.3590715229511261,
-0.1826985776424408,
0.36978858709335327,
-0.11411096155643463,
-0.1149108037352562,
-0.33697932958602905,
-0.36059319972991943,
-0.25368988513946533,
0.0559888556599617,
0.357757031917572,
-0.011712290346622467,
0.2625144124031067,
0.13361765444278717,
-0.02340112254023552,
0.1730087548494339,
0.2555248439311981,
0.15292830765247345,
-0.044138938188552856,
-0.15998481214046478,
-0.184540256857872,
-0.2531806528568268,
-0.46924346685409546,
0.2813512086868286,
-0.05319947749376297,
-0.09472432732582092,
0.014414755627512932,
0.2635258436203003,
-0.09240557998418808,
0.08414170891046524,
-0.3598732650279999,
0.41037628054618835,
-0.1397634893655777,
-0.000029511749744415283,
0.15640047192573547,
-0.2134261131286621,
-0.018938470631837845,
-0.2104981541633606,
0.15808026492595673,
-0.14157874882221222,
-0.17171496152877808,
-0.1469043791294098,
-0.08877239376306534,
0.2672271430492401,
0.13230456411838531,
0.0029333929996937513,
0.2626311480998993,
0.3290075957775116,
-0.050472959876060486,
0.07051161676645279,
-0.23542499542236328,
-0.14109697937965393,
0.1449601948261261,
-0.09269139170646667,
0.061488885432481766,
0.3000001013278961,
0.2150600701570511,
0.1844712793827057,
0.288470983505249,
-0.2682783305644989,
-0.3507547378540039,
0.053834155201911926,
-0.010150521993637085,
0.1759852021932602,
-0.17734509706497192,
0.013145346194505692,
0.598676323890686,
-0.12336266040802002,
0.013616560027003288,
-0.2358868569135666,
-0.11504430323839188,
-0.36198845505714417,
-0.27897515892982483,
-0.010339673608541489,
0.3257576823234558,
0.17609448730945587,
0.054438669234514236,
0.136550635099411,
0.24620717763900757,
0.1490510106086731,
-0.15969811379909515,
-0.15653792023658752,
-0.16658072173595428,
0.16942648589611053,
-0.2053367644548416,
0.1545625925064087,
0.06258222460746765,
0.09267958998680115,
-0.2570309042930603,
0.4300040602684021,
0.0516267865896225,
-0.033903200179338455,
0.375666081905365,
-0.08909544348716736,
0.18732453882694244,
0.15252959728240967,
-0.012663275003433228,
0.2188521921634674,
0.1479421854019165,
0.34595268964767456,
0.16920146346092224,
0.14378945529460907,
-0.4511527717113495,
-0.1519181728363037,
0.19614265859127045,
0.21035291254520416,
0.0790235847234726,
-0.12226652354001999,
0.11418862640857697,
-0.18150600790977478,
0.18329870700836182,
-0.015374930575489998,
-0.18706168234348297,
0.7362311482429504,
0.047428302466869354,
-0.11041653156280518,
0.28050851821899414,
-0.42849409580230713,
-0.09395476430654526,
0.3900577127933502,
0.06129320710897446,
0.2331191599369049,
0.16932925581932068,
-0.12495740503072739,
-0.04593454301357269,
-0.029166869819164276,
-0.23925556242465973,
-0.036274224519729614,
0.08005783706903458,
-0.3402802348136902,
0.06126309186220169,
-0.09240836650133133,
0.4969222843647003,
-0.4114157557487488,
-0.40178245306015015,
0.022753575816750526,
-0.13638721406459808,
-0.05357344448566437,
0.46729493141174316,
-0.13144053518772125,
0.023618288338184357,
-0.036269672214984894,
-0.011386364698410034,
0.038844041526317596,
0.33477315306663513,
0.15677957236766815,
-0.021787114441394806,
-0.08814745396375656,
-0.07520707696676254,
0.39876845479011536,
-0.062161996960639954,
0.20753508806228638,
0.2854374647140503,
-0.05746756121516228,
0.2356501817703247,
0.04212528467178345,
-0.03568161278963089,
0.026266425848007202,
0.38052690029144287,
0.030133642256259918,
0.17326337099075317,
0.1848594844341278,
-0.5782217979431152,
0.16267481446266174,
-0.16355204582214355,
0.11817362904548645,
0.11898812651634216,
0.02758122980594635,
-0.4057869613170624,
-0.19389064610004425,
-0.039747513830661774,
-0.4883071780204773,
-0.2965639531612396,
0.03225458785891533,
-0.032580792903900146,
0.19348537921905518,
-0.006460725329816341,
0.10031185299158096,
0.14952734112739563,
0.07365749776363373,
-0.1381523162126541,
-0.12205744534730911,
0.07685263454914093,
-0.061477284878492355,
-0.2239357978105545,
-0.04872623458504677,
0.03444890305399895,
0.09979606419801712,
0.05381055176258087,
-0.24581648409366608,
-0.10847369581460953,
-0.2988753318786621,
-0.11471253633499146,
0.04348263517022133,
0.04231880232691765,
0.21405918896198273,
0.4646483361721039,
0.24511601030826569,
-0.16033712029457092,
0.11727070063352585,
0.03543100878596306,
0.11385028064250946,
0.014147447422146797,
0.15711864829063416,
0.1290082037448883,
0.03884056583046913,
-0.2746426463127136,
0.556070864200592,
0.7195614576339722,
0.00797295942902565,
0.211762934923172,
0.1725877970457077,
0.12813329696655273,
-0.0888722762465477,
-0.28369277715682983,
0.01899959146976471,
-0.33203625679016113,
-0.04751880466938019,
0.11526302993297577,
0.11908585578203201,
-0.19437292218208313,
-0.22585703432559967,
0.2984502911567688,
-0.3609922528266907,
-0.21443268656730652,
0.09131243824958801,
-0.0031266063451766968,
0.1068490743637085,
-0.2871644198894501,
-0.0014670565724372864,
0.08855858445167542,
0.09020601958036423,
-0.16380222141742706,
0.23482102155685425,
-0.25316524505615234,
-0.3102204203605652,
-0.28064316511154175,
-0.49744126200675964,
-0.4011012017726898,
0.32559314370155334,
0.11216920614242554,
0.5273079872131348,
0.038440439850091934,
-0.18095284700393677,
-0.08018483221530914,
-0.25460657477378845,
0.9073622226715088,
-0.228579580783844,
-0.2365727573633194,
0.25897639989852905,
0.32403895258903503,
-0.08398275822401047,
-0.15961314737796783,
-0.18575146794319153,
0.2760503590106964,
0.17242442071437836,
0.0037936419248580933,
0.11942551285028458,
-0.18723203241825104,
0.12223935127258301,
0.023930981755256653,
-0.13239111006259918,
-0.05034126341342926,
-0.35349443554878235,
-0.35377830266952515,
-0.1054329052567482,
0.19528914988040924,
-0.03938230127096176,
0.08093772828578949,
-0.5451443791389465,
-0.0410296656191349,
0.10715892165899277,
-0.06516408920288086,
0.10586155951023102,
0.04253022000193596,
0.09357067942619324,
-0.03670147806406021,
0.418415904045105,
-0.27051228284835815,
0.226954385638237,
-0.13253886997699738,
0.10206402838230133,
-0.23105254769325256,
-0.011166796088218689,
0.17635378241539001,
-0.059363238513469696,
0.362484872341156,
0.4911215305328369,
0.11737273633480072,
-0.03810390084981918,
-0.3317423462867737,
0.46320027112960815,
-0.24249467253684998,
-0.23250778019428253,
0.3120748698711395,
0.25265443325042725,
0.0963161289691925,
0.3037538528442383,
0.26207268238067627,
0.012033022940158844,
-0.13212206959724426,
0.6690811514854431,
-0.286562442779541,
-0.13096880912780762,
0.09156262874603271,
0.26700323820114136,
0.9803849458694458,
0.00027993693947792053,
0.10366581380367279,
0.13536477088928223,
-0.3450931906700134,
0.016871068626642227,
0.14852911233901978,
0.22750991582870483,
-0.2147378921508789,
-0.09211800247430801,
0.15341979265213013,
-0.06922424584627151,
0.2798224687576294,
-0.14866219460964203,
-0.33063459396362305,
0.2778283655643463,
0.19790957868099213,
-0.2983659505844116,
-0.10884588211774826,
-0.15597891807556152,
-0.030513973906636238,
-0.3870215117931366,
0.11181342601776123,
0.005012396723031998,
0.08030548691749573,
-0.022695273160934448,
-0.241822749376297,
0.14739297330379486,
0.41677606105804443,
-0.32222282886505127,
-0.5853488445281982,
0.0799790546298027,
-0.25005680322647095,
0.09879840910434723,
-0.10646341741085052,
0.07899945974349976,
-0.020688816905021667,
0.2738596498966217,
0.29242733120918274,
-0.1586727797985077,
-0.13832566142082214,
0.05969172716140747,
0.3177007734775543,
-0.1067115068435669,
-0.028784705325961113,
-0.18386109173297882,
-0.07802213728427887,
-0.045229002833366394,
-0.3501313030719757,
0.21716395020484924,
-0.1274764984846115,
0.04023896902799606,
-0.236064150929451,
0.3128052353858948,
-0.006031133234500885,
0.2374042570590973,
-0.1692705899477005,
0.39721858501434326,
-0.1280943602323532,
-0.16259156167507172,
0.07923832535743713,
-0.03923746943473816,
-0.46987849473953247,
0.5655823349952698,
-0.6352729797363281,
-0.12463405728340149,
0.06849932670593262,
0.04319261014461517,
0.051215991377830505,
0.09850230813026428,
0.32212334871292114,
0.2966788709163666,
-0.012474915012717247,
-0.21096166968345642,
-0.11226235330104828,
-0.5198846459388733,
-0.12864893674850464,
-0.12323413044214249,
0.41794252395629883,
-0.11531054228544235,
0.2454814314842224,
-0.3513732850551605,
-0.05507359653711319,
-0.07554212957620621,
-0.06762893497943878,
-0.4756987392902374,
-0.08656401187181473,
0.044637735933065414,
-0.2182355672121048,
0.07464675605297089,
-0.14402931928634644,
0.2000202238559723,
0.078833669424057,
0.11628509312868118,
-0.24530231952667236,
-0.019225049763917923,
-0.10593751072883606,
0.12911757826805115,
0.06576064229011536,
-0.2747895121574402,
0.05254263058304787,
0.14848993718624115,
0.011602723971009254,
0.2926313877105713,
-0.2524474561214447,
-0.13388919830322266,
0.06126140430569649,
0.09830603748559952,
-0.1529420018196106,
-0.13970141112804413,
0.20244376361370087,
0.03764277696609497,
0.032035939395427704,
-0.003529791720211506,
0.038498446345329285,
-0.02822480909526348,
-0.1952829211950302,
0.02851172536611557,
-0.04439472779631615,
0.32654282450675964,
0.15904386341571808,
0.26065129041671753,
-0.15105199813842773,
0.373674213886261,
0.13645531237125397,
0.0730978399515152,
0.013140298426151276,
-0.04617167264223099,
-0.11992546916007996,
-0.05685999244451523,
-0.10784170031547546,
-0.04809390753507614,
-0.09491173177957535,
0.045889418572187424,
-0.39314302802085876,
-0.31504127383232117,
0.13229025900363922,
0.5207763910293579,
-0.0906364917755127,
0.2684805393218994,
0.38605812191963196,
0.15171198546886444,
-0.1998000591993332,
0.10718678683042526,
-0.09235914051532745,
-0.23282913863658905,
-0.13682560622692108,
0.3245009481906891,
0.06443984806537628,
-0.5508663654327393,
0.4770568013191223,
0.06959591060876846,
0.38343772292137146,
-0.3326544761657715,
-0.15849633514881134,
0.319878488779068,
0.3208470344543457,
0.03784910589456558,
-0.015057237818837166,
-0.0915638655424118,
0.20715849101543427,
0.45932483673095703,
-0.13113290071487427,
0.2014138549566269,
-0.32387763261795044,
0.15788571536540985,
-0.08962098509073257,
-0.23982931673526764,
-0.11022895574569702,
0.16570627689361572,
-0.19131597876548767,
0.2936514914035797,
-0.18995651602745056,
0.46891623735427856,
-0.5960268378257751,
-0.3746599853038788,
-0.35921168327331543,
0.39308950304985046,
-0.13363760709762573,
-0.18629339337348938,
-0.10753650218248367,
0.08869455009698868,
0.12827111780643463,
0.08796864748001099,
0.30193379521369934,
-0.10858133435249329,
0.6149501800537109,
0.1113222986459732,
-0.21908597648143768,
-0.17365403473377228,
-0.38517242670059204,
0.22450241446495056,
-0.00937768816947937,
-0.13110141456127167,
0.3541276454925537,
0.6124846935272217,
-0.06549330055713654,
-0.2977396249771118,
0.19731426239013672,
0.5848493576049805,
0.4469042718410492,
-0.6962717175483704,
0.14492182433605194,
0.12279930710792542,
0.11265765130519867,
-0.013166610151529312,
0.1467435359954834,
0.10204099118709564,
0.19147980213165283,
0.040567655116319656,
0.025395112112164497,
-0.07160527259111404,
-0.10150806605815887,
0.35187777876853943,
-0.02696266397833824,
0.1627117395401001,
0.1804659366607666,
-0.10238546133041382,
-0.1577703356742859,
0.11368265002965927,
0.10082460939884186,
-0.648960530757904,
0.19411633908748627,
0.23407569527626038,
-0.5234283208847046,
0.01358044520020485,
0.12754255533218384,
0.04889339208602905,
-0.10518357157707214,
0.44099247455596924,
-0.03856230154633522,
0.27655214071273804,
-0.20485973358154297,
-0.2142631709575653,
-0.3133776783943176,
-0.10799915343523026,
-0.12541425228118896,
-0.05371059104800224,
-0.1895318329334259,
-0.062159501016139984,
0.038630060851573944,
0.2744993269443512,
0.027352280914783478,
0.1042199358344078,
0.22542551159858704,
0.699590802192688,
-0.6562339663505554,
0.18320000171661377,
0.3876357078552246,
0.0067529818043112755,
0.21496258676052094,
-0.4983593821525574,
0.16738110780715942,
0.11966288089752197,
-0.0029624663293361664,
-0.018107153475284576,
0.2306743562221527,
-0.156834676861763,
0.11183895915746689,
0.20749476552009583,
0.1057579293847084,
0.08677245676517487,
0.014085650444030762,
-0.2020224630832672,
-0.11717113852500916,
0.2525692582130432,
0.2592410743236542,
-0.3225482106208801,
0.34697145223617554,
0.09998302906751633,
-0.42859670519828796,
-0.18273627758026123,
-0.037777774035930634,
-0.08706776052713394,
0.18137194216251373,
0.16606424748897552,
-0.13059139251708984,
0.03302759677171707,
0.060788460075855255,
0.1322127729654312,
0.04925307631492615,
0.39778631925582886,
-0.03490689396858215,
0.21510164439678192,
-0.2833607792854309,
-0.045622989535331726,
0.16445477306842804,
-0.14221464097499847,
-0.21719300746917725,
-0.2530258893966675,
0.37971270084381104,
-0.49967169761657715,
0.20783190429210663,
-0.21363893151283264,
0.004005797207355499,
-0.016012810170650482,
-0.0012642499059438705,
-0.5598613023757935,
0.3290332555770874,
-0.15347115695476532,
-0.7110199928283691,
0.0667741447687149,
-0.09960593283176422,
0.11392565816640854,
-0.10345134139060974,
0.2528046667575836,
-0.049463629722595215
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | Thanks this is really helpful !
I'll try to reproduce on my side and come back to you | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 18 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Thanks this is really helpful !
I'll try to reproduce on my side and come back to you | [
-0.15062791109085083,
-0.4665440320968628,
-0.08509225398302078,
0.2313074916601181,
0.08652752637863159,
0.010160163044929504,
0.03361387550830841,
-0.03073246404528618,
0.02308814227581024,
0.28429001569747925,
0.12158572673797607,
0.0667378157377243,
-0.3062894940376282,
0.016049424186348915,
-0.1941298246383667,
-0.17272190749645233,
0.09843432158231735,
-0.1465357542037964,
0.25174546241760254,
0.32427340745925903,
-0.46028438210487366,
0.48658454418182373,
-0.31012898683547974,
0.17242677509784698,
-0.41062894463539124,
-0.04608091711997986,
-0.20039361715316772,
0.48422855138778687,
0.2549555003643036,
-0.3877052366733551,
-0.00008048303425312042,
-0.31135788559913635,
0.15096673369407654,
0.14044220745563507,
-0.00011554679076652974,
-0.1447124183177948,
0.01405695453286171,
-0.01559471059590578,
0.39141610264778137,
0.23568156361579895,
0.17477086186408997,
0.01541108638048172,
-0.09307225793600082,
-0.02786262333393097,
0.13276275992393494,
0.2751014530658722,
0.04753395915031433,
0.0036515071988105774,
0.4036989212036133,
0.30191922187805176,
0.15907405316829681,
0.25883355736732483,
0.10206848382949829,
0.043588787317276,
-0.3204173743724823,
-0.38962167501449585,
-0.050901882350444794,
0.25639188289642334,
0.5162354111671448,
-0.28667208552360535,
0.1748637557029724,
0.2624705135822296,
-0.24079570174217224,
0.03738899156451225,
-0.31694191694259644,
-0.009436485357582569,
0.43163320422172546,
-0.5044822692871094,
0.05305008217692375,
-0.08573097735643387,
-0.08600146323442459,
-0.17231926321983337,
0.3172110915184021,
0.14988714456558228,
0.10572192072868347,
-0.8734216690063477,
0.03737238794565201,
0.22369542717933655,
-0.3608477711677551,
0.06360828876495361,
-0.07681717723608017,
0.0004865475930273533,
-0.07338438183069229,
-0.2057020515203476,
0.10647530853748322,
-0.04202453792095184,
0.05887604132294655,
0.16216649115085602,
0.1567879170179367,
0.2581148147583008,
-0.2660806179046631,
0.3123064339160919,
-0.08954602479934692,
0.08247194439172745,
-0.5067329406738281,
-0.013057049363851547,
0.02448786050081253,
0.21075180172920227,
-0.2819764316082001,
-0.22385121881961823,
-0.039880067110061646,
0.16080555319786072,
0.2515881359577179,
0.18123847246170044,
0.2087535262107849,
-0.16379621624946594,
0.05779547616839409,
-0.5973337888717651,
0.22775490581989288,
-0.4697572588920593,
-0.1418818235397339,
-0.09084928780794144,
0.059057652950286865,
-0.5761106610298157,
0.3017514944076538,
0.4158449172973633,
0.18786537647247314,
-0.10296705365180969,
-0.3051144778728485,
0.22791732847690582,
0.03879212588071823,
0.244417205452919,
0.2676873803138733,
0.30374160408973694,
0.3295401930809021,
0.6703656315803528,
0.004698704928159714,
0.13553586602210999,
-0.5587130784988403,
0.13538508117198944,
0.05355963110923767,
0.09622229635715485,
-0.3082458972930908,
0.12394191324710846,
0.2694670259952545,
0.007762538269162178,
0.16414742171764374,
0.142398864030838,
0.27459508180618286,
-0.31729742884635925,
-0.04318976402282715,
-0.22459879517555237,
-0.170503169298172,
0.24020476639270782,
0.21703022718429565,
0.19543898105621338,
-0.04914669319987297,
0.07716874778270721,
0.0033321231603622437,
0.21770095825195312,
-0.37143832445144653,
-0.3710877299308777,
-0.078006811439991,
0.09104036539793015,
0.4564347267150879,
0.41241541504859924,
0.2775190770626068,
-0.04148407652974129,
0.29973384737968445,
-0.28989505767822266,
-0.13954442739486694,
-0.44177913665771484,
-0.27530163526535034,
-0.3028675317764282,
-0.07706397026777267,
0.25495585799217224,
-0.013891603797674179,
0.3129969537258148,
0.327553391456604,
-0.053920846432447433,
0.19669221341609955,
0.3646470308303833,
0.23579779267311096,
-0.22957852482795715,
-0.07652847468852997,
-0.015418589115142822,
-0.16920563578605652,
-0.21643425524234772,
-0.02564658410847187,
0.124880850315094,
-0.05024934560060501,
-0.15820230543613434,
0.236934632062912,
0.1396850049495697,
-0.04210514947772026,
-0.3254145085811615,
0.47339367866516113,
-0.1873987466096878,
-0.13803894817829132,
0.24175310134887695,
-0.25083237886428833,
0.13798578083515167,
-0.0901915580034256,
0.07464088499546051,
0.07859672605991364,
-0.13082149624824524,
-0.07585955411195755,
-0.09138237684965134,
0.2532753348350525,
0.12118226289749146,
-0.028855079784989357,
0.337283194065094,
0.169822096824646,
-0.018871180713176727,
0.04521593451499939,
-0.3747880458831787,
0.0022794753313064575,
0.026934057474136353,
-0.2805188000202179,
0.03848811611533165,
0.360487699508667,
0.1296921968460083,
0.13331785798072815,
0.2604677975177765,
-0.19306419789791107,
-0.2732437551021576,
0.07167941331863403,
-0.09738098084926605,
0.0637124627828598,
-0.2018381953239441,
-0.011838007718324661,
0.49875161051750183,
0.04214445501565933,
-0.15411870181560516,
-0.14277707040309906,
-0.07498188316822052,
-0.39869484305381775,
-0.32538077235221863,
-0.021555915474891663,
0.3518841862678528,
0.20702382922172546,
0.148741215467453,
0.12298234552145004,
0.2170088291168213,
0.09771636873483658,
-0.14472700655460358,
-0.14345398545265198,
-0.02672220766544342,
0.22109153866767883,
-0.25650936365127563,
0.09199287742376328,
0.01546831801533699,
0.15548554062843323,
-0.2237294614315033,
0.4834907650947571,
0.07802621275186539,
-0.05178612098097801,
0.21525464951992035,
-0.13560836017131805,
0.17570284008979797,
0.16611109673976898,
0.026872191578149796,
0.28289756178855896,
0.2699865698814392,
0.3601730167865753,
0.12102799117565155,
-0.09841868281364441,
-0.33581459522247314,
-0.341146320104599,
0.07872068881988525,
0.20476305484771729,
0.18563085794448853,
-0.04943418502807617,
0.03445172682404518,
-0.19755986332893372,
0.14808779954910278,
-0.02966553531587124,
-0.4081710875034332,
0.6608489155769348,
0.12903520464897156,
-0.1238795816898346,
0.28970086574554443,
-0.4168239235877991,
-0.1286764144897461,
0.2691912055015564,
0.018980294466018677,
-0.04852376505732536,
0.18378227949142456,
-0.1021912693977356,
-0.13058724999427795,
-0.06270761787891388,
-0.09599421173334122,
-0.08359215408563614,
0.09055013209581375,
-0.3112034797668457,
0.07541405409574509,
-0.06831306964159012,
0.48188337683677673,
-0.3881743848323822,
-0.48494553565979004,
-0.03638536110520363,
-0.20109474658966064,
0.09337203949689865,
0.3769925534725189,
-0.06603996455669403,
-0.036954715847969055,
0.06397870182991028,
-0.0753772109746933,
0.13539370894432068,
0.34126266837120056,
0.22414422035217285,
-0.08249589055776596,
-0.07570081949234009,
-0.042712174355983734,
0.3543696105480194,
-0.10736450552940369,
0.24517767131328583,
0.3000582158565521,
-0.008039310574531555,
0.12378638982772827,
0.1547088921070099,
-0.0708741620182991,
0.049736957997083664,
0.2546122968196869,
-0.0004118606448173523,
0.10001794248819351,
0.18989364802837372,
-0.40145111083984375,
0.09812013804912567,
-0.32712221145629883,
0.21639418601989746,
0.2593769133090973,
0.13897109031677246,
-0.38944533467292786,
-0.2654178738594055,
-0.1531650722026825,
-0.46505919098854065,
-0.1933443248271942,
0.015845295041799545,
-0.16555853188037872,
0.28330573439598083,
-0.25240573287010193,
0.06245208904147148,
0.10903275012969971,
0.33570465445518494,
-0.1297426074743271,
-0.16851791739463806,
0.22009003162384033,
-0.03231039270758629,
-0.307131290435791,
-0.2082281857728958,
0.2030315101146698,
0.22799088060855865,
0.0628894492983818,
-0.2470681220293045,
-0.15624982118606567,
-0.3293308615684509,
-0.015441535040736198,
-0.018792282789945602,
-0.03828383982181549,
0.24966756999492645,
0.3877025246620178,
0.17064782977104187,
-0.16931496560573578,
0.13691946864128113,
-0.08770783990621567,
0.034370306879282,
0.03547653928399086,
0.1656465083360672,
0.22348898649215698,
0.09420047700405121,
-0.17432574927806854,
0.4798262119293213,
0.5712584257125854,
0.06822130084037781,
0.28401392698287964,
0.11666307598352432,
-0.02797536924481392,
0.019736632704734802,
-0.19869233667850494,
0.1041678711771965,
-0.40295353531837463,
-0.1182701364159584,
0.1622435450553894,
0.12217577546834946,
-0.3131994605064392,
-0.26024800539016724,
0.23124471306800842,
-0.2988218069076538,
-0.1110459417104721,
0.08930482715368271,
0.07151515781879425,
0.16652750968933105,
-0.19120004773139954,
-0.10864309221506119,
0.07486696541309357,
0.07243647426366806,
-0.1262529045343399,
0.18318068981170654,
-0.2587580978870392,
-0.23379069566726685,
-0.04944993928074837,
-0.594167172908783,
-0.47664541006088257,
0.41011977195739746,
0.10825018584728241,
0.5226662755012512,
-0.008231677114963531,
-0.11495263874530792,
-0.01762957125902176,
-0.2964184284210205,
0.807099461555481,
-0.14313539862632751,
-0.1830289661884308,
0.2115635722875595,
0.20903390645980835,
-0.009849682450294495,
-0.1221252977848053,
-0.22694532573223114,
0.2996342182159424,
0.11281551420688629,
-0.060176536440849304,
0.25137096643447876,
-0.06675895303487778,
0.06760439276695251,
-0.10732151567935944,
-0.16887180507183075,
-0.11656229197978973,
-0.33116161823272705,
-0.2884022891521454,
0.048568904399871826,
0.26259785890579224,
-0.012628281489014626,
0.03324855864048004,
-0.4210148751735687,
-0.019149456173181534,
0.13515786826610565,
-0.0685683861374855,
0.2947753071784973,
-0.07266268879175186,
0.11756959557533264,
-0.14219771325588226,
0.1428373008966446,
-0.27324527502059937,
0.36754339933395386,
-0.13512670993804932,
-0.014485560357570648,
-0.18907736241817474,
0.19652780890464783,
0.2784040570259094,
-0.1102423369884491,
0.3729199469089508,
0.3814234733581543,
0.13603575527668,
0.013593800365924835,
-0.37040069699287415,
0.49397963285446167,
-0.24521902203559875,
-0.20914113521575928,
0.3325044810771942,
0.26646631956100464,
0.08148036897182465,
0.264981746673584,
0.3170453608036041,
0.12603673338890076,
-0.0922471284866333,
0.47757411003112793,
-0.3215055465698242,
-0.0968964472413063,
-0.028977228328585625,
0.14342106878757477,
0.9238155484199524,
0.08468981087207794,
0.10809411853551865,
0.012065555900335312,
-0.4905239939689636,
-0.23254819214344025,
-0.1703152358531952,
0.3275732398033142,
-0.26938241720199585,
-0.14813260734081268,
0.030451564118266106,
-0.03826583921909332,
0.1322239488363266,
-0.10534721612930298,
-0.3409644663333893,
0.472942978143692,
0.09779821336269379,
-0.29133376479148865,
-0.17942412197589874,
-0.2355450689792633,
-0.07401787489652634,
-0.18059824407100677,
0.0021826960146427155,
0.0786173865199089,
0.07835593074560165,
-0.14484669268131256,
-0.26793453097343445,
0.13463440537452698,
0.4491715729236603,
-0.3302660584449768,
-0.48555904626846313,
-0.017163943499326706,
-0.19900991022586823,
0.15510176122188568,
-0.05521463230252266,
0.1623101532459259,
0.0668269693851471,
0.3810664415359497,
0.15391582250595093,
-0.08298246562480927,
-0.2485065758228302,
0.019129252061247826,
0.3927861750125885,
-0.04786085709929466,
-0.11059507727622986,
0.04631945863366127,
-0.018898697569966316,
-0.15032026171684265,
-0.28966084122657776,
0.3926055431365967,
-0.12284964323043823,
-0.014036338776350021,
-0.32583221793174744,
0.3156883716583252,
0.09106029570102692,
0.1713142693042755,
-0.12782664597034454,
0.24406684935092926,
-0.12442998588085175,
-0.16772669553756714,
0.12214203178882599,
0.049855269491672516,
-0.5294661521911621,
0.6521230936050415,
-0.5616598725318909,
-0.09329547733068466,
0.005515793338418007,
0.06846452504396439,
0.014698619022965431,
-0.05575985461473465,
0.159324511885643,
0.27149754762649536,
-0.10283450782299042,
-0.23033487796783447,
-0.10576370358467102,
-0.46701401472091675,
-0.055130667984485626,
-0.03599199280142784,
0.45476359128952026,
-0.14249728620052338,
0.2489057183265686,
-0.2128923535346985,
0.05839509889483452,
0.0445282869040966,
-0.024720394983887672,
-0.33331286907196045,
-0.2252674251794815,
-0.07533888518810272,
-0.08256587386131287,
0.15319445729255676,
-0.05692571401596069,
0.09209169447422028,
0.10993756353855133,
0.0790000632405281,
-0.2915714383125305,
0.04738815128803253,
-0.22778190672397614,
0.10021335631608963,
0.07932008802890778,
-0.2663446366786957,
-0.0975295752286911,
0.21097271144390106,
0.06406081467866898,
0.34590649604797363,
-0.3506193459033966,
-0.14852815866470337,
0.07907108962535858,
0.07172536849975586,
-0.09642068296670914,
-0.04376821964979172,
0.07988902181386948,
0.08568961918354034,
0.02901550754904747,
0.0750725194811821,
0.14411455392837524,
0.09008920937776566,
-0.2854030132293701,
0.11945362389087677,
-0.05024482682347298,
0.2043406069278717,
0.18996895849704742,
0.28469884395599365,
-0.16668541729450226,
0.39328598976135254,
0.10646950453519821,
0.006347674876451492,
0.052351683378219604,
-0.032125186175107956,
-0.06871741265058517,
0.05616413429379463,
-0.08454382419586182,
-0.23933306336402893,
-0.10153526812791824,
-0.11302505433559418,
-0.2827158272266388,
-0.10894030332565308,
0.28269901871681213,
0.2960799038410187,
-0.1647990345954895,
0.2869277596473694,
0.29953232407569885,
0.22782284021377563,
-0.21487455070018768,
0.04805280268192291,
-0.14786021411418915,
-0.12486294656991959,
-0.13604331016540527,
0.26848405599594116,
0.1823747456073761,
-0.46649008989334106,
0.3124746084213257,
0.07060956209897995,
0.18491709232330322,
-0.4060259461402893,
-0.36748698353767395,
0.07825589179992676,
0.22648657858371735,
0.10417579114437103,
0.028775624930858612,
-0.08638200163841248,
0.056787312030792236,
0.4952465295791626,
-0.05111425369977951,
0.18857252597808838,
-0.22598344087600708,
0.07755480706691742,
-0.11702825874090195,
-0.170932799577713,
-0.25316622853279114,
0.09213700890541077,
-0.36942318081855774,
0.4250568449497223,
-0.23247528076171875,
0.446148544549942,
-0.5816576480865479,
-0.31293007731437683,
-0.3135754466056824,
0.4110397398471832,
-0.2617022693157196,
-0.12495626509189606,
0.10125601291656494,
0.011575020849704742,
0.10345897078514099,
0.08493438363075256,
0.3099183440208435,
0.08892020583152771,
0.5263203382492065,
0.2262047380208969,
-0.0824887603521347,
-0.03404261916875839,
-0.26840442419052124,
0.22713252902030945,
-0.019556924700737,
-0.19740335643291473,
0.18820005655288696,
0.4959086775779724,
-0.047026097774505615,
-0.17214447259902954,
-0.0020355675369501114,
0.5398029685020447,
0.37725773453712463,
-0.7378939986228943,
0.008080863393843174,
0.16012229025363922,
0.14591678977012634,
0.04354822635650635,
0.15616640448570251,
0.19982770085334778,
0.25543081760406494,
0.04833892360329628,
0.020367981866002083,
-0.12424829602241516,
-0.004572935402393341,
0.2641787827014923,
0.22413316369056702,
0.11288334429264069,
0.24460050463676453,
-0.05082666873931885,
-0.23040315508842468,
0.04607969895005226,
0.07317548245191574,
-0.6401625275611877,
-0.024129007011651993,
0.2348128855228424,
-0.3941692113876343,
0.050793781876564026,
0.03993186727166176,
0.0669417530298233,
-0.07539546489715576,
0.4105224609375,
-0.05494610592722893,
0.2512814402580261,
-0.2637574076652527,
-0.15871569514274597,
-0.3679075241088867,
0.0130186527967453,
0.15247970819473267,
-0.0102242361754179,
-0.19380271434783936,
-0.16690869629383087,
-0.06896016746759415,
0.11177518218755722,
0.0863855630159378,
0.09763874113559723,
0.31911101937294006,
0.6845179796218872,
-0.6055826544761658,
0.3746795952320099,
0.3027551770210266,
-0.025377551093697548,
0.2710234820842743,
-0.35834386944770813,
0.21160364151000977,
0.02120031788945198,
0.0636301040649414,
-0.2255442887544632,
0.21016520261764526,
-0.10306665301322937,
0.4734422564506531,
0.18190601468086243,
0.04852905496954918,
0.25633102655410767,
0.0007864758372306824,
-0.06254719197750092,
0.12063537538051605,
0.3517192006111145,
0.2666042447090149,
-0.5822998285293579,
0.27648964524269104,
0.08330608904361725,
-0.3627561926841736,
-0.06199367716908455,
-0.026734668761491776,
-0.016133718192577362,
0.06672205775976181,
0.10257231444120407,
-0.10872535407543182,
0.0047642868012189865,
-0.005073964595794678,
0.04120327904820442,
0.04134668782353401,
0.45951440930366516,
0.012710761278867722,
0.20372292399406433,
-0.2745133936405182,
-0.016232328489422798,
0.09233266860246658,
-0.06165643781423569,
-0.3161555528640747,
-0.31002113223075867,
0.5059922337532043,
-0.5154700875282288,
0.13328078389167786,
-0.08988313376903534,
-0.07879766076803207,
-0.08065249025821686,
0.016878880560398102,
-0.6610682606697083,
0.2708571255207062,
-0.3067221939563751,
-0.6747817993164062,
0.1371154487133026,
-0.1630324274301529,
0.18355455994606018,
-0.019997520372271538,
0.20530328154563904,
-0.1706853210926056
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | if __name__ == '__main__':
This line before calling the map function stops the error but the script still repeats endless | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 20 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
if __name__ == '__main__':
This line before calling the map function stops the error but the script still repeats endless | [
-0.11089097708463669,
-0.43928658962249756,
-0.08853824436664581,
0.2090211659669876,
0.06226353347301483,
0.03885583579540253,
0.005570154637098312,
0.03431205824017525,
0.1305549144744873,
0.3507119119167328,
0.1845920979976654,
0.11303374171257019,
-0.2703498899936676,
-0.06255953013896942,
-0.16307027637958527,
-0.0991828590631485,
0.09583436697721481,
-0.05586262047290802,
0.28451967239379883,
0.3060234785079956,
-0.5200812220573425,
0.4720447063446045,
-0.32901936769485474,
0.1505487859249115,
-0.3321792483329773,
-0.02686922810971737,
-0.12737183272838593,
0.4326402246952057,
0.27772560715675354,
-0.4478858411312103,
-0.03303663432598114,
-0.3090704083442688,
0.11824043095111847,
0.1131972223520279,
-0.00011938093666685745,
-0.15792016685009003,
-0.01420070230960846,
-0.06127016246318817,
0.45521149039268494,
0.162301704287529,
0.17969825863838196,
0.0962323546409607,
-0.14072835445404053,
-0.13648337125778198,
0.21329247951507568,
0.3244248330593109,
0.11804185062646866,
-0.0536649189889431,
0.4028435945510864,
0.2655663788318634,
0.11187511682510376,
0.20554912090301514,
0.09391911327838898,
0.07542365044355392,
-0.2695276737213135,
-0.3726021647453308,
-0.056422263383865356,
0.2890223562717438,
0.5033330321311951,
-0.3820008337497711,
0.1414162963628769,
0.3143696188926697,
-0.30303701758384705,
0.03751317411661148,
-0.2931312322616577,
-0.06406626105308533,
0.530541181564331,
-0.5780690908432007,
0.09767317771911621,
-0.1105157807469368,
-0.17095062136650085,
-0.22018283605575562,
0.37713924050331116,
0.16103899478912354,
0.05074148252606392,
-0.8099096417427063,
0.027596112340688705,
0.13647079467773438,
-0.41562366485595703,
0.030588407069444656,
-0.14913272857666016,
0.013582654297351837,
-0.02683839574456215,
-0.14678382873535156,
0.09750862419605255,
0.001812078058719635,
0.06741105020046234,
0.2221699357032776,
0.25119996070861816,
0.26765772700309753,
-0.31723907589912415,
0.30021998286247253,
-0.06850269436836243,
0.11611615121364594,
-0.4423094391822815,
-0.03575177118182182,
0.0773455947637558,
0.1887766271829605,
-0.2333678901195526,
-0.2691729664802551,
0.010995188727974892,
0.13863787055015564,
0.24985137581825256,
0.21389728784561157,
0.2139115035533905,
-0.1912621408700943,
0.12676256895065308,
-0.6191259026527405,
0.2186712771654129,
-0.4347940683364868,
-0.10451452434062958,
-0.04800797253847122,
0.06859854608774185,
-0.5401846766471863,
0.346386194229126,
0.457322895526886,
0.27972567081451416,
-0.10791467875242233,
-0.2896053194999695,
0.2956332862377167,
0.011903267353773117,
0.20198294520378113,
0.257234662771225,
0.3027791678905487,
0.3510764539241791,
0.6872230768203735,
-0.030258681625127792,
0.07495183497667313,
-0.5382586717605591,
0.17090123891830444,
0.1013110876083374,
0.14047865569591522,
-0.32609331607818604,
0.15111078321933746,
0.2556614577770233,
0.06633299589157104,
0.1399947553873062,
0.07152795791625977,
0.2646605372428894,
-0.3194342851638794,
-0.10164692252874374,
-0.218552365899086,
-0.02392873913049698,
0.2193688452243805,
0.15595032274723053,
0.22795380651950836,
-0.05148330703377724,
0.07511532306671143,
-0.02800171822309494,
0.2288476526737213,
-0.3791949450969696,
-0.31464239954948425,
0.005625179037451744,
0.060884952545166016,
0.47427093982696533,
0.480014830827713,
0.3062346875667572,
-0.09772257506847382,
0.2995283305644989,
-0.3837090730667114,
-0.06158868223428726,
-0.44071316719055176,
-0.3253917992115021,
-0.33491024374961853,
-0.10956204682588577,
0.3342874050140381,
0.01657676324248314,
0.3336035907268524,
0.35005074739456177,
-0.005990121513605118,
0.1059105396270752,
0.25976628065109253,
0.2196129709482193,
-0.2469080686569214,
-0.139085590839386,
-0.007935687899589539,
-0.1682930886745453,
-0.19904093444347382,
-0.02746744267642498,
0.15580712258815765,
-0.08952536433935165,
-0.1395348608493805,
0.2032584697008133,
0.08983681350946426,
0.009012192487716675,
-0.3770287036895752,
0.47430187463760376,
-0.26103389263153076,
-0.16012832522392273,
0.22331103682518005,
-0.1887081265449524,
0.1628858596086502,
-0.09736499190330505,
-0.0018646735697984695,
0.04768027365207672,
-0.07393714040517807,
-0.04609919339418411,
-0.09430777281522751,
0.2538553774356842,
0.14620822668075562,
-0.03734923154115677,
0.2930856943130493,
0.14268232882022858,
-0.044097937643527985,
0.04125363007187843,
-0.38036471605300903,
-0.03695842623710632,
0.04195284843444824,
-0.25869178771972656,
-0.031813472509384155,
0.2738765478134155,
0.1100660115480423,
0.15338435769081116,
0.28231534361839294,
-0.1785801351070404,
-0.1833350509405136,
0.03990442305803299,
-0.08018507063388824,
0.05702996626496315,
-0.2264944612979889,
-0.04175086319446564,
0.3700164258480072,
0.01364399679005146,
-0.18330518901348114,
-0.16898880898952484,
-0.11473067849874496,
-0.3820262551307678,
-0.3083173632621765,
-0.06276538223028183,
0.35027772188186646,
0.23178637027740479,
0.09700294584035873,
0.08906806260347366,
0.23483064770698547,
0.11957848817110062,
-0.14746807515621185,
-0.1531670093536377,
0.027424827218055725,
0.19046176970005035,
-0.2588333189487457,
0.05809776112437248,
0.07131226360797882,
0.1849038153886795,
-0.24339643120765686,
0.4806244969367981,
0.06383048743009567,
-0.03179308399558067,
0.29435017704963684,
-0.14053303003311157,
0.16324152052402496,
0.11012130975723267,
-0.006384778767824173,
0.21786312758922577,
0.14911629259586334,
0.32504555583000183,
0.15160636603832245,
-0.06329929083585739,
-0.31502196192741394,
-0.28454533219337463,
0.05274992808699608,
0.2794167697429657,
0.12303763628005981,
-0.0862114354968071,
-0.011348631232976913,
-0.1456184983253479,
0.19358891248703003,
-0.03295201063156128,
-0.4224085211753845,
0.639315128326416,
0.09582696855068207,
-0.1360434740781784,
0.2696199417114258,
-0.4196722209453583,
-0.11508748680353165,
0.24199995398521423,
0.0387355275452137,
0.016445109620690346,
0.1887710690498352,
-0.18156936764717102,
-0.13241297006607056,
-0.08717697858810425,
-0.1970660537481308,
-0.08164282143115997,
0.034639567136764526,
-0.2595420479774475,
0.0612710565328598,
-0.04897907376289368,
0.49681976437568665,
-0.36010515689849854,
-0.4657553732395172,
-0.04275798425078392,
-0.19183984398841858,
0.04476066306233406,
0.4225371778011322,
-0.09103655815124512,
0.0003685029223561287,
0.048364561051130295,
-0.07523109018802643,
0.1253618597984314,
0.20830996334552765,
0.18872173130512238,
-0.1300220638513565,
-0.01766345649957657,
-0.09031226485967636,
0.42380332946777344,
-0.21497109532356262,
0.23657123744487762,
0.2388015240430832,
-0.036035582423210144,
0.09883859753608704,
0.16305524110794067,
-0.013103179633617401,
0.024331454187631607,
0.1573210507631302,
0.05408884212374687,
0.17232666909694672,
0.16418732702732086,
-0.3335537910461426,
0.09462841600179672,
-0.4251774549484253,
0.20395195484161377,
0.24986562132835388,
0.1348351091146469,
-0.47967568039894104,
-0.3031042516231537,
-0.15875044465065002,
-0.34296730160713196,
-0.2128157913684845,
0.0812862440943718,
-0.1794174760580063,
0.30700773000717163,
-0.3042919337749481,
0.12313546240329742,
0.08398794382810593,
0.26122942566871643,
-0.16303296387195587,
-0.21925421059131622,
0.24093127250671387,
0.0028171055018901825,
-0.24715882539749146,
-0.1566563993692398,
0.2460525929927826,
0.19747672975063324,
0.03510498255491257,
-0.1808270364999771,
-0.15189146995544434,
-0.3317199647426605,
0.006832035258412361,
0.011425409466028214,
-0.008176378905773163,
0.259669691324234,
0.43913155794143677,
0.19965730607509613,
-0.12854672968387604,
0.11514873057603836,
-0.10724593698978424,
0.03880241885781288,
0.09459609538316727,
0.12175302952528,
0.3355993330478668,
0.12429610639810562,
-0.1919822245836258,
0.3964083194732666,
0.5850522518157959,
0.0669831931591034,
0.29814812541007996,
0.071278415620327,
0.072301484644413,
-0.008435465395450592,
-0.16406914591789246,
0.07009156793355942,
-0.3994195759296417,
-0.15461787581443787,
0.15362723171710968,
0.03610626980662346,
-0.3688913583755493,
-0.2827150821685791,
0.27067479491233826,
-0.3177088797092438,
-0.16785678267478943,
0.12709909677505493,
0.06909386068582535,
0.13070262968540192,
-0.17401419579982758,
-0.034913867712020874,
0.05919763073325157,
0.10014014691114426,
-0.11127428710460663,
0.1810828447341919,
-0.16932862997055054,
-0.24026094377040863,
-0.0678071528673172,
-0.5501939654350281,
-0.46817952394485474,
0.4201437830924988,
0.1505705863237381,
0.5695856809616089,
-0.002304207533597946,
-0.15352031588554382,
-0.05975843966007233,
-0.2935431897640228,
0.8496721386909485,
-0.19817613065242767,
-0.19344481825828552,
0.21818362176418304,
0.26585713028907776,
-0.002650901675224304,
-0.07989256829023361,
-0.1824525147676468,
0.32235580682754517,
0.10830920934677124,
-0.0536809116601944,
0.2510610520839691,
-0.07569439709186554,
0.11799273639917374,
-0.09274844825267792,
-0.17282603681087494,
-0.09142458438873291,
-0.33677762746810913,
-0.29600802063941956,
-0.054570503532886505,
0.271888792514801,
0.02578326128423214,
-0.06298155337572098,
-0.32839080691337585,
0.009556595236063004,
0.20257727801799774,
-0.101072296500206,
0.30305564403533936,
-0.010993598029017448,
0.1442425549030304,
-0.10021553933620453,
0.06002529338002205,
-0.26076996326446533,
0.2963287830352783,
-0.1633315533399582,
-0.0030007660388946533,
-0.19227837026119232,
0.24048569798469543,
0.3096619248390198,
-0.09188279509544373,
0.3929233253002167,
0.4457351863384247,
0.14240765571594238,
-0.12339457124471664,
-0.3963150680065155,
0.4940875172615051,
-0.2796328067779541,
-0.219122514128685,
0.2729913592338562,
0.27184954285621643,
0.047651082277297974,
0.2530599534511566,
0.24642479419708252,
0.10823741555213928,
-0.10779538750648499,
0.4929206371307373,
-0.3655335307121277,
-0.07493029534816742,
0.035627663135528564,
0.1304311901330948,
0.9967204928398132,
0.043319642543792725,
0.11891184747219086,
-0.059444524347782135,
-0.43307429552078247,
-0.2991347908973694,
-0.1547602415084839,
0.33761274814605713,
-0.2475491762161255,
-0.14417274296283722,
-0.01078050397336483,
-0.03274622559547424,
0.13657082617282867,
-0.048197537660598755,
-0.3108738958835602,
0.5423756837844849,
0.21919621527194977,
-0.15520741045475006,
-0.15972179174423218,
-0.24490651488304138,
-0.04476240277290344,
-0.2088465541601181,
0.12534771859645844,
0.026019487529993057,
0.08246883004903793,
-0.10332873463630676,
-0.27087995409965515,
0.16086062788963318,
0.4782738983631134,
-0.4204176664352417,
-0.4470707178115845,
0.02222035825252533,
-0.29245421290397644,
0.15170074999332428,
-0.15103377401828766,
0.2836560010910034,
0.0082217026501894,
0.3933491110801697,
0.08621331304311752,
-0.03390737995505333,
-0.20031002163887024,
-0.05124930664896965,
0.5149098038673401,
-0.07340332120656967,
-0.15489496290683746,
0.046951260417699814,
-0.0645001158118248,
-0.08827976882457733,
-0.22455710172653198,
0.32784318923950195,
-0.14643362164497375,
-0.016720015555620193,
-0.46023377776145935,
0.35106003284454346,
0.1427760124206543,
0.21579326689243317,
-0.1538730263710022,
0.23852403461933136,
-0.20421676337718964,
-0.13417020440101624,
0.08761097490787506,
-0.052002616226673126,
-0.4558407962322235,
0.6648207902908325,
-0.5725060701370239,
-0.16524438560009003,
0.015714962035417557,
0.03855622187256813,
0.025659356266260147,
-0.08238473534584045,
0.09131206572055817,
0.1807393878698349,
-0.07983280718326569,
-0.24971535801887512,
-0.10019231587648392,
-0.447629451751709,
-0.05906068533658981,
-0.014096650294959545,
0.4131954610347748,
-0.15561233460903168,
0.19120535254478455,
-0.22206375002861023,
0.02932134084403515,
0.1280595064163208,
-0.00344056636095047,
-0.3608269989490509,
-0.20596596598625183,
0.0041355714201927185,
-0.038443367928266525,
0.18407389521598816,
0.0003695562481880188,
0.09033943712711334,
0.11456821858882904,
0.043379269540309906,
-0.26995131373405457,
0.023775765672326088,
-0.2048456072807312,
0.15200603008270264,
0.08224286139011383,
-0.23548930883407593,
-0.10316642373800278,
0.1423005610704422,
0.038523249328136444,
0.40693461894989014,
-0.4111887216567993,
-0.10574290156364441,
0.11333727836608887,
0.09243285655975342,
-0.08201200515031815,
0.019855927675962448,
0.07017403841018677,
0.03868196904659271,
0.09402714669704437,
-0.030610553920269012,
0.11766013503074646,
0.08484368771314621,
-0.2991260290145874,
0.07463368028402328,
-0.028801117092370987,
0.20660006999969482,
0.16399432718753815,
0.26596522331237793,
-0.1864544153213501,
0.4394562244415283,
0.09814891964197159,
0.02351338230073452,
0.004468291066586971,
-0.01009630411863327,
-0.05544169619679451,
0.07107182592153549,
-0.09209276735782623,
-0.24259081482887268,
-0.1049906387925148,
-0.07736742496490479,
-0.3147377371788025,
-0.12281517684459686,
0.2354397475719452,
0.3333852291107178,
-0.21715062856674194,
0.27462244033813477,
0.3043157458305359,
0.17820118367671967,
-0.21593350172042847,
0.061320751905441284,
-0.02428048476576805,
-0.11040724068880081,
-0.07028680294752121,
0.33602842688560486,
0.21716788411140442,
-0.5155629515647888,
0.3308370113372803,
0.05071157217025757,
0.1811349242925644,
-0.41088902950286865,
-0.3599182069301605,
0.15165074169635773,
0.26694369316101074,
0.12570726871490479,
0.04989698529243469,
-0.03196726366877556,
0.09228187799453735,
0.4622262120246887,
-0.07374880462884903,
0.2301369160413742,
-0.24038085341453552,
0.14718303084373474,
-0.09885729104280472,
-0.1708924025297165,
-0.1792936474084854,
0.12338376045227051,
-0.32529884576797485,
0.4941768944263458,
-0.1151764988899231,
0.355194628238678,
-0.5752065181732178,
-0.31939029693603516,
-0.30001500248908997,
0.3833557963371277,
-0.27610495686531067,
-0.09426110982894897,
0.07312091439962387,
-0.00462881475687027,
0.0848834216594696,
0.1095992773771286,
0.3375644087791443,
0.07305775582790375,
0.6472622156143188,
0.22194088995456696,
-0.09655609726905823,
0.061637796461582184,
-0.3227698504924774,
0.13968224823474884,
0.04834654927253723,
-0.24886178970336914,
0.22720924019813538,
0.44134557247161865,
-0.015042856335639954,
-0.2559153139591217,
-0.07868978381156921,
0.5184316039085388,
0.39736536145210266,
-0.7148275971412659,
0.007322870194911957,
0.1765233874320984,
0.13485492765903473,
0.024688899517059326,
0.11713368445634842,
0.1264953464269638,
0.2712629437446594,
0.03230394050478935,
0.008261548355221748,
-0.09023772925138474,
-0.017629746347665787,
0.3147463798522949,
0.21560320258140564,
0.23376283049583435,
0.1607876569032669,
-0.0054432712495327,
-0.2068796157836914,
0.03493862599134445,
0.10918540507555008,
-0.6795329451560974,
-0.03062322363257408,
0.16345533728599548,
-0.43587735295295715,
0.08230011910200119,
0.034673143178224564,
0.056447066366672516,
-0.03175744041800499,
0.32027769088745117,
-0.06082318350672722,
0.2135935127735138,
-0.2925097346305847,
-0.18115757405757904,
-0.3769402801990509,
0.013009913265705109,
0.10314414650201797,
0.01375146396458149,
-0.11987566947937012,
-0.15812468528747559,
-0.03815188258886337,
0.16780348122119904,
0.10597024857997894,
0.09036707878112793,
0.2510840594768524,
0.717979907989502,
-0.5408720374107361,
0.39112401008605957,
0.38142669200897217,
0.0051039960235357285,
0.2969391942024231,
-0.4028024673461914,
0.2393360137939453,
-0.032980650663375854,
0.049169450998306274,
-0.25405293703079224,
0.27569010853767395,
-0.15997274219989777,
0.43748345971107483,
0.2795374393463135,
0.027304813265800476,
0.19663748145103455,
-0.09661588072776794,
-0.09495973587036133,
0.1099543571472168,
0.4139927923679352,
0.30055534839630127,
-0.5189866423606873,
0.30970299243927,
0.01986844092607498,
-0.40538275241851807,
-0.09641614556312561,
-0.051048923283815384,
-0.06677660346031189,
0.060623712837696075,
0.17480283975601196,
-0.09610383212566376,
0.03917863965034485,
-0.00590037927031517,
0.11203973740339279,
-0.03579341247677803,
0.452181875705719,
0.0073083750903606415,
0.20617824792861938,
-0.2073805034160614,
-0.0599181205034256,
0.1864170879125595,
-0.030625034123659134,
-0.3157811462879181,
-0.23768366873264313,
0.476411372423172,
-0.5554818511009216,
0.09870598465204239,
-0.128159299492836,
-0.06185206398367882,
-0.10755177587270737,
0.03035707026720047,
-0.7285950183868408,
0.26026231050491333,
-0.4314204752445221,
-0.6321415305137634,
0.10898460447788239,
-0.0953821986913681,
0.19439756870269775,
-0.09242235124111176,
0.2282528281211853,
-0.19621539115905762
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006):
> On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses recursively.
Regarding the hanging issue, can you try to update `dill` and `multiprocess` ? | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 59 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006):
> On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses recursively.
Regarding the hanging issue, can you try to update `dill` and `multiprocess` ? | [
-0.13518135249614716,
-0.42261332273483276,
-0.11948500573635101,
-0.01761438697576523,
0.10806309431791306,
-0.09601298719644547,
0.13206404447555542,
0.030847370624542236,
-0.10139231383800507,
0.3602203130722046,
-0.0551886260509491,
0.09468989074230194,
-0.3736596405506134,
-0.14211755990982056,
-0.15793810784816742,
-0.01964455097913742,
0.03298250585794449,
-0.11282771825790405,
0.0478782057762146,
0.0904553234577179,
-0.33944427967071533,
0.402418315410614,
-0.27139320969581604,
0.026803918182849884,
-0.40196654200553894,
0.07968903332948685,
-0.061742234975099564,
0.509302020072937,
0.01913263089954853,
-0.36392343044281006,
-0.10211735218763351,
-0.21955552697181702,
0.23863965272903442,
0.13217300176620483,
-0.00010341058077756315,
-0.18186776340007782,
0.02058851718902588,
0.00469057634472847,
0.18553678691387177,
0.07881514728069305,
0.36214715242385864,
-0.2269083857536316,
0.0714554414153099,
-0.0414678230881691,
0.044521063566207886,
0.21842212975025177,
0.00552840530872345,
0.07621867954730988,
0.47998785972595215,
0.22934377193450928,
0.2636738419532776,
0.08951948583126068,
0.18868830800056458,
0.1408018320798874,
-0.15244194865226746,
-0.2853361964225769,
-0.11970716714859009,
0.41747158765792847,
0.39942753314971924,
-0.1610613465309143,
0.07929414510726929,
0.23220954835414886,
-0.1770656257867813,
0.08595417439937592,
-0.23217147588729858,
-0.0009667994454503059,
0.40425440669059753,
-0.40599656105041504,
0.015640245750546455,
0.0012498162686824799,
-0.09211579710245132,
-0.10740437358617783,
0.227750763297081,
0.10527942329645157,
0.22892561554908752,
-0.8124303221702576,
0.01668049395084381,
0.047257550060749054,
-0.3250293731689453,
0.08084893226623535,
0.1410832554101944,
-0.12429646402597427,
-0.02202470228075981,
-0.214582160115242,
-0.04282741621136665,
0.10053802281618118,
0.138236403465271,
0.05714857205748558,
0.14644740521907806,
0.007800210267305374,
-0.2372012734413147,
0.3869689106941223,
-0.011506054550409317,
0.08500853180885315,
-0.4147736430168152,
0.07705739140510559,
0.15524323284626007,
0.005167178809642792,
-0.23439770936965942,
-0.24771936237812042,
-0.026692043989896774,
0.13809150457382202,
0.29674234986305237,
0.19356194138526917,
0.13101208209991455,
-0.09735026955604553,
0.1096474826335907,
-0.558724582195282,
0.35675978660583496,
-0.40955406427383423,
-0.06583864986896515,
0.11630193144083023,
-0.06646735221147537,
-0.4812481999397278,
0.2111387848854065,
0.36409541964530945,
0.1387636810541153,
-0.1785726398229599,
-0.24128864705562592,
0.2611697316169739,
0.076105035841465,
0.16199693083763123,
0.17483562231063843,
0.37315550446510315,
0.2703036367893219,
0.6323958039283752,
0.12113378942012787,
0.03956884890794754,
-0.5594886541366577,
0.3015013039112091,
0.05858035758137703,
0.07654042541980743,
-0.19993995130062103,
-0.03670898824930191,
0.2190440148115158,
0.0480017364025116,
0.10932726413011551,
0.0806698352098465,
0.19757014513015747,
-0.12940868735313416,
-0.02991914004087448,
-0.11909069120883942,
-0.019334077835083008,
0.1967860460281372,
0.12089824676513672,
0.22379791736602783,
-0.04205286130309105,
0.0469093844294548,
-0.12702254951000214,
0.28165656328201294,
-0.17049232125282288,
-0.2169584482908249,
-0.09667098522186279,
0.20641854405403137,
0.31832951307296753,
0.33028092980384827,
0.4069043695926666,
0.02022119052708149,
0.07875692844390869,
-0.3521758019924164,
-0.21296623349189758,
-0.42627787590026855,
-0.15322133898735046,
-0.22043871879577637,
0.19797943532466888,
0.20152467489242554,
-0.22524628043174744,
0.23771259188652039,
0.12155769020318985,
-0.10782910883426666,
0.20431536436080933,
0.2541857659816742,
0.29083481431007385,
-0.27987751364707947,
0.006535481661558151,
-0.029730338603258133,
-0.09138096123933792,
-0.2077920287847519,
-0.03437843918800354,
0.08676822483539581,
-0.09551996737718582,
-0.12936189770698547,
0.06542985141277313,
0.10552673041820526,
0.15566687285900116,
-0.1546860784292221,
0.38358452916145325,
0.02522903122007847,
0.06254758685827255,
0.16705884039402008,
-0.3813205063343048,
0.15408679842948914,
-0.10821166634559631,
0.13254864513874054,
-0.015302333980798721,
-0.30981993675231934,
-0.18585172295570374,
-0.044018663465976715,
0.3126033544540405,
0.11230269819498062,
-0.05831906944513321,
0.31770867109298706,
0.2139797806739807,
-0.04294821619987488,
0.03301806002855301,
-0.2787869870662689,
-0.047394104301929474,
-0.032625917345285416,
-0.28363037109375,
0.11097978800535202,
0.2854701280593872,
0.12765847146511078,
0.0835920050740242,
0.2665580213069916,
-0.15758958458900452,
-0.2924700677394867,
0.2016204595565796,
0.061782851815223694,
0.058475274592638016,
-0.09083814173936844,
-0.11905226111412048,
0.2270745486021042,
0.10035556554794312,
-0.19432154297828674,
-0.12135113775730133,
-0.11392044275999069,
-0.48692524433135986,
-0.28643912076950073,
0.061692073941230774,
0.404366135597229,
0.08701242506504059,
0.07157831639051437,
0.01197943463921547,
0.28059399127960205,
0.12024533748626709,
-0.15036149322986603,
-0.05623380094766617,
-0.11173225939273834,
0.16334690153598785,
-0.16659864783287048,
0.08657357841730118,
0.19662725925445557,
0.10605216026306152,
-0.19405129551887512,
0.3674074113368988,
0.09487618505954742,
0.11143359541893005,
0.2885197401046753,
-0.011570338159799576,
0.1656479686498642,
0.15551838278770447,
0.09891298413276672,
0.12689416110515594,
0.09782207012176514,
0.40085160732269287,
0.11412902176380157,
0.102106973528862,
-0.23335202038288116,
-0.2867884635925293,
0.10279453545808792,
0.2684310972690582,
0.09921102225780487,
-0.0008463636040687561,
0.1202719509601593,
-0.13316267728805542,
0.09464376419782639,
-0.044156014919281006,
-0.40500912070274353,
0.33011704683303833,
0.17663969099521637,
0.08090214431285858,
0.2493041306734085,
-0.4532829225063324,
-0.11890947073698044,
0.20479440689086914,
-0.10696995258331299,
-0.14982274174690247,
0.25401628017425537,
-0.11364616453647614,
-0.17808397114276886,
-0.10862298309803009,
-0.19084244966506958,
-0.14637789130210876,
0.10596815496683121,
-0.12255258858203888,
-0.11240305006504059,
-0.20606163144111633,
0.5869616270065308,
-0.33795228600502014,
-0.5343268513679504,
-0.2172742635011673,
-0.2400301843881607,
0.2002081722021103,
0.295699805021286,
-0.15511967241764069,
0.17678554356098175,
0.17039909958839417,
-0.14770661294460297,
0.15397405624389648,
0.24463030695915222,
0.1054777055978775,
-0.19661900401115417,
-0.09115781635046005,
0.06456069648265839,
0.3895748257637024,
0.05363509804010391,
0.27198830246925354,
0.21856540441513062,
-0.08399972319602966,
0.1159343495965004,
0.017936155200004578,
-0.11763884127140045,
0.00658775120973587,
0.2527395486831665,
0.052397437393665314,
0.08706041425466537,
0.23333223164081573,
-0.4007568061351776,
0.16903632879257202,
-0.4145244061946869,
0.19899262487888336,
0.21554061770439148,
0.15969425439834595,
-0.2973792850971222,
-0.3184918165206909,
-0.34178733825683594,
-0.4226311147212982,
-0.42379266023635864,
-0.004604466259479523,
-0.10884220898151398,
0.1892409771680832,
-0.3053783178329468,
0.09388230741024017,
0.1626909077167511,
0.47640854120254517,
0.10991840809583664,
-0.10979132354259491,
0.3985270857810974,
0.11492123454809189,
-0.4232841432094574,
-0.3036080598831177,
0.07397390902042389,
0.08624767512083054,
0.0005405768752098083,
-0.3487336039543152,
-0.09381084144115448,
-0.26053935289382935,
-0.04027023911476135,
-0.04119448363780975,
0.01683810167014599,
0.1922745704650879,
0.32051801681518555,
0.21998178958892822,
-0.19749082624912262,
0.12539821863174438,
-0.10872185230255127,
0.010256513953208923,
0.021746592596173286,
0.0642499029636383,
0.1324169784784317,
-0.008241795003414154,
-0.3252885341644287,
0.5187214016914368,
0.29881155490875244,
0.04302648454904556,
0.24150195717811584,
0.1495646983385086,
0.07384933531284332,
-0.11256483942270279,
-0.11497795581817627,
0.21598486602306366,
-0.18123748898506165,
-0.12338230013847351,
0.3385457396507263,
0.06372982263565063,
-0.3440636396408081,
-0.3852456212043762,
0.33344900608062744,
-0.22410598397254944,
-0.21686412394046783,
0.10376659035682678,
-0.01253453642129898,
-0.005407489836215973,
-0.06726954132318497,
-0.005300115793943405,
0.059248123317956924,
0.15132910013198853,
-0.01571737602353096,
0.1620752364397049,
-0.19818228483200073,
-0.226151242852211,
-0.08535045385360718,
-0.5560264587402344,
-0.5261833071708679,
0.36015328764915466,
0.1612604558467865,
0.40453973412513733,
-0.027956955134868622,
-0.3122997581958771,
0.11046693474054337,
-0.31534746289253235,
0.6050424575805664,
-0.10408156365156174,
-0.23101677000522614,
0.2957620620727539,
0.19776585698127747,
-0.12131839990615845,
-0.12236402928829193,
-0.2776659429073334,
0.016612717881798744,
0.2755776643753052,
-0.23397433757781982,
-0.01877586543560028,
-0.07732689380645752,
0.04086073115468025,
-0.09627353399991989,
-0.1876426339149475,
-0.12303507328033447,
-0.31883004307746887,
-0.28523167967796326,
-0.12988533079624176,
0.1400088369846344,
-0.08760777860879898,
0.11716753244400024,
-0.45471620559692383,
0.009069010615348816,
0.08787287026643753,
-0.08146992325782776,
0.15769264101982117,
0.11931686103343964,
0.1675170660018921,
-0.1490398794412613,
0.22978386282920837,
-0.15331046283245087,
0.511594295501709,
-0.042526088654994965,
-0.009961150586605072,
-0.2837655544281006,
0.1625424027442932,
0.4291086196899414,
-0.17897316813468933,
0.20914483070373535,
0.33569079637527466,
0.16791988909244537,
0.0008673593401908875,
-0.41479912400245667,
0.49189406633377075,
-0.2210249900817871,
-0.03654741868376732,
0.37379586696624756,
0.31646838784217834,
0.13062763214111328,
0.07211749255657196,
0.2689925730228424,
0.0503377802670002,
-0.11903570592403412,
0.2975538969039917,
-0.34392601251602173,
0.0228019617497921,
0.09795205295085907,
0.11228245496749878,
0.9095653295516968,
0.12733183801174164,
0.0503467358648777,
0.17708754539489746,
-0.4576578140258789,
-0.24649183452129364,
-0.24523118138313293,
0.21504148840904236,
-0.34524908661842346,
-0.007694500498473644,
0.12789982557296753,
-0.016124706715345383,
-0.03641679883003235,
-0.13833554089069366,
-0.3275015652179718,
0.33171576261520386,
0.014461271464824677,
-0.21456143260002136,
-0.2669146656990051,
-0.023346232250332832,
-0.06674209982156754,
-0.15582314133644104,
-0.00467117503285408,
0.19189448654651642,
0.2317623347043991,
-0.09813176095485687,
-0.2949548661708832,
0.08838687092065811,
0.3090931475162506,
-0.3657175898551941,
-0.2679743766784668,
-0.004425909370183945,
-0.04953039065003395,
0.13752016425132751,
-0.1322585642337799,
-0.126316636800766,
-0.1111648827791214,
0.4085240960121155,
0.06417270004749298,
0.035263750702142715,
-0.21227525174617767,
0.07628138363361359,
0.22853326797485352,
0.02597113698720932,
-0.08887423574924469,
0.10099010169506073,
0.006216747686266899,
-0.19283995032310486,
-0.2835329473018646,
0.27469566464424133,
-0.09334708750247955,
0.05282026529312134,
-0.1957862228155136,
0.33174991607666016,
0.11355894804000854,
0.18402494490146637,
-0.08954581618309021,
0.3004463016986847,
-0.23431070148944855,
-0.1687006801366806,
0.22054480016231537,
-0.0026309415698051453,
-0.5343683362007141,
0.6597440838813782,
-0.3583517074584961,
-0.04280128702521324,
-0.03230792656540871,
0.04888303205370903,
0.020763566717505455,
0.15058182179927826,
0.17781415581703186,
0.25994873046875,
-0.23133909702301025,
-0.2610788643360138,
-0.13002288341522217,
-0.38293012976646423,
0.022849835455417633,
-0.03134003281593323,
0.5056539177894592,
-0.26532286405563354,
0.174901083111763,
-0.2343428134918213,
-0.026295162737369537,
-0.005346231162548065,
-0.1759108155965805,
-0.1204577311873436,
-0.1555923968553543,
0.021311618387699127,
-0.05038471892476082,
0.23290148377418518,
-0.11262746155261993,
0.16652268171310425,
0.007085898891091347,
0.10559225082397461,
-0.410017192363739,
0.012273192405700684,
-0.29440778493881226,
0.08156938850879669,
-0.03981979936361313,
-0.4213511049747467,
0.04316325485706329,
0.25666236877441406,
0.2082248032093048,
0.36612391471862793,
-0.30609142780303955,
-0.27216818928718567,
-0.006681134924292564,
0.031100407242774963,
-0.16692513227462769,
0.02603178285062313,
0.08757641911506653,
0.05002167075872421,
-0.04315311089158058,
-0.03946773335337639,
0.07173407077789307,
-0.02959241345524788,
-0.196006640791893,
0.13999246060848236,
-0.07123224437236786,
0.26360437273979187,
0.3090507388114929,
0.40095511078834534,
-0.12668262422084808,
0.4257569909095764,
-0.022360384464263916,
0.012097340077161789,
0.014172944240272045,
-0.08428719639778137,
-0.042848486453294754,
0.046158090233802795,
-0.06829605996608734,
-0.19552931189537048,
0.014597132802009583,
0.18753178417682648,
-0.2391769140958786,
-0.14565706253051758,
0.5542579889297485,
0.4825502336025238,
-0.04868068918585777,
0.13916051387786865,
0.4199676215648651,
0.3092741072177887,
-0.23189225792884827,
0.08464337885379791,
-0.18092726171016693,
-0.1913691908121109,
0.09318622946739197,
0.15904228389263153,
0.06162988021969795,
-0.3784908652305603,
0.20297345519065857,
0.14721104502677917,
-0.0433647558093071,
-0.2426796704530716,
-0.5065716505050659,
0.18881256878376007,
0.1677512228488922,
0.05704277753829956,
0.052379585802555084,
-0.10789059102535248,
0.1624527871608734,
0.4125840663909912,
-0.17726898193359375,
0.2198754847049713,
-0.3080131411552429,
0.11130329966545105,
-0.06152983754873276,
-0.23009291291236877,
-0.10264340043067932,
0.10077208280563354,
-0.2014254927635193,
0.27180397510528564,
-0.16079264879226685,
0.45022299885749817,
-0.5096834301948547,
-0.3224596679210663,
-0.24384525418281555,
0.41453075408935547,
-0.20010194182395935,
-0.09695693850517273,
0.08955584466457367,
0.02708180993795395,
0.07426515221595764,
0.06356143951416016,
0.2658011317253113,
0.15403106808662415,
0.41278842091560364,
0.30116403102874756,
0.0663847029209137,
-0.18359339237213135,
-0.26125970482826233,
-0.012426406145095825,
0.04518783837556839,
-0.1576484590768814,
0.19586320221424103,
0.5646461248397827,
0.06718108803033829,
-0.19348950684070587,
0.02779480628669262,
0.4950585663318634,
0.45220494270324707,
-0.7212635278701782,
0.055606719106435776,
0.07716332376003265,
0.08330763876438141,
-0.18172936141490936,
0.1873531937599182,
0.0858505368232727,
0.18518048524856567,
0.20491193234920502,
0.1445726603269577,
-0.24544379115104675,
-0.060523975640535355,
0.19238300621509552,
0.1505841165781021,
0.24614623188972473,
0.14846713840961456,
0.024957310408353806,
-0.10381468385457993,
-0.13544830679893494,
-0.0955178365111351,
-0.6611915230751038,
-0.049390826374292374,
0.058203697204589844,
-0.2890039086341858,
0.08858736604452133,
-0.15878677368164062,
0.1201857477426529,
-0.1778048574924469,
0.403087854385376,
0.08895806968212128,
0.4124266505241394,
-0.11652214080095291,
-0.1426830291748047,
-0.5166682004928589,
0.09031438082456589,
0.08724776655435562,
-0.12556889653205872,
-0.31899529695510864,
-0.10613127052783966,
0.04900094494223595,
0.11520889401435852,
0.057925768196582794,
0.043091781437397,
0.22172261774539948,
0.6491611003875732,
-0.6396932005882263,
0.3707626163959503,
0.12191882729530334,
-0.10667775571346283,
0.23207983374595642,
-0.37244912981987,
0.1926010698080063,
-0.01878344640135765,
0.14915362000465393,
-0.11501170694828033,
0.18880856037139893,
-0.1274184286594391,
0.5095853209495544,
0.23106035590171814,
0.14374516904354095,
0.2511381208896637,
-0.15071651339530945,
-0.13586342334747314,
0.1007358506321907,
0.30313655734062195,
0.16308149695396423,
-0.5176218152046204,
0.2995135188102722,
0.08904433250427246,
-0.2253541499376297,
-0.2122374027967453,
-0.07191526889801025,
0.269527405500412,
0.028627246618270874,
0.17644037306308746,
-0.1058526560664177,
-0.024252597242593765,
0.10536272078752518,
0.022192977368831635,
-0.026565810665488243,
0.46887925267219543,
0.010847199708223343,
0.21764002740383148,
-0.3726309537887573,
-0.10973291099071503,
0.2490939199924469,
0.14289917051792145,
-0.1955765038728714,
-0.34366104006767273,
0.3892371952533722,
-0.38142338395118713,
0.0986456573009491,
-0.19773951172828674,
-0.027597062289714813,
-0.15115207433700562,
0.007696988061070442,
-0.5447805523872375,
0.2385076880455017,
-0.2283877581357956,
-0.5854176878929138,
-0.014367600902915001,
-0.14195303618907928,
0.2517260015010834,
0.03795880079269409,
0.1321123242378235,
-0.25878971815109253
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | ```
Traceback (most recent call last):
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\tmpx9fl_jg8' -> 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\cvtrain.py", line 243, in <module>
common_voice_train = common_voice_train.map(remove_special_characters, remove_columns=["sentence"])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1339, in map
return self._map_single(
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 203, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1646, in _map_single
shutil.move(tmp_file.name, cache_file_name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 805, in move
copy_function(src, real_dst)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
0%| | 0/27771 [00:00<?, ?ex/s]
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
```
I was adding freeze support before calling the mapping function like this
if __name__ == '__main__':
freeze_support()
dataset.map(....) | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 224 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
```
Traceback (most recent call last):
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\tmpx9fl_jg8' -> 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\cvtrain.py", line 243, in <module>
common_voice_train = common_voice_train.map(remove_special_characters, remove_columns=["sentence"])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1339, in map
return self._map_single(
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 203, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1646, in _map_single
shutil.move(tmp_file.name, cache_file_name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 805, in move
copy_function(src, real_dst)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
0%| | 0/27771 [00:00<?, ?ex/s]
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
```
I was adding freeze support before calling the mapping function like this
if __name__ == '__main__':
freeze_support()
dataset.map(....) | [
-0.01263648271560669,
-0.3874336779117584,
-0.05402325093746185,
0.20228023827075958,
0.1353476345539093,
0.018755629658699036,
0.09084773808717728,
0.07784959673881531,
0.03930288925766945,
0.26125723123550415,
0.011653867550194263,
-0.07170078158378601,
-0.30014780163764954,
-0.07750154286623001,
-0.12497974932193756,
-0.2181280255317688,
0.19933679699897766,
-0.12250007688999176,
0.26984769105911255,
0.35690879821777344,
-0.45309674739837646,
0.5776934027671814,
-0.33696234226226807,
0.21702204644680023,
-0.373882532119751,
-0.017700960859656334,
-0.25014999508857727,
0.6321834921836853,
0.30169495940208435,
-0.37666308879852295,
-0.04099276661872864,
-0.3141252398490906,
0.11254701018333435,
0.11296840757131577,
-0.00011927907326025888,
-0.08996846526861191,
-0.052546627819538116,
-0.06090536713600159,
0.36525896191596985,
0.29030686616897583,
0.2686348557472229,
0.0707850232720375,
-0.14726842939853668,
0.01548389345407486,
0.2896392345428467,
0.28881266713142395,
-0.006915433332324028,
-0.11513565480709076,
0.5103611350059509,
0.3108977973461151,
0.09642797708511353,
0.23058395087718964,
0.21015752851963043,
0.005320864729583263,
-0.2566917836666107,
-0.3280828595161438,
-0.04261627048254013,
0.3265691101551056,
0.42580896615982056,
-0.32970502972602844,
0.12852931022644043,
0.20436976850032806,
-0.2732003927230835,
-0.03468606248497963,
-0.4689786732196808,
0.06657134741544724,
0.4387376010417938,
-0.5151549577713013,
0.11645745486021042,
-0.035132043063640594,
-0.2860221266746521,
-0.12608850002288818,
0.1404024362564087,
-0.02986856922507286,
0.16665180027484894,
-0.768685519695282,
0.05509971082210541,
0.1580188274383545,
-0.36070510745048523,
0.09105146676301956,
-0.10800281167030334,
0.07679525762796402,
-0.010495167225599289,
-0.1862133890390396,
0.21114471554756165,
-0.0008123293519020081,
-0.019245419651269913,
0.15762153267860413,
0.25526201725006104,
0.20312994718551636,
-0.39227503538131714,
0.3448495864868164,
-0.0837165117263794,
0.08033553510904312,
-0.5561100244522095,
0.07550697028636932,
0.003969557583332062,
0.31539082527160645,
-0.2706432044506073,
-0.2075473517179489,
-0.07142733782529831,
0.03568223863840103,
0.23246169090270996,
0.12227507680654526,
0.023068251088261604,
-0.004826257936656475,
0.05171116068959236,
-0.6401048302650452,
0.18031488358974457,
-0.23319514095783234,
-0.026500210165977478,
-0.014605909585952759,
-0.07061302661895752,
-0.6683464646339417,
0.1515745371580124,
0.4515000879764557,
0.2356957644224167,
-0.11434121429920197,
-0.385273814201355,
0.0835886001586914,
-0.03057629056274891,
0.22308285534381866,
0.35938119888305664,
0.35459765791893005,
0.30320605635643005,
0.7514010667800903,
0.004298664629459381,
0.20045039057731628,
-0.48999372124671936,
0.11667066067457199,
0.07200653105974197,
0.13231682777404785,
-0.2918378412723541,
0.33493560552597046,
0.21567665040493011,
-0.023937754333019257,
0.1369723081588745,
0.16431115567684174,
0.36012423038482666,
-0.3316313326358795,
-0.1411791294813156,
-0.1307915300130844,
-0.16646260023117065,
0.20332682132720947,
0.07661248743534088,
0.18893104791641235,
0.037898946553468704,
0.05539308488368988,
0.021619275212287903,
0.008960578590631485,
-0.2776419520378113,
-0.4142327308654785,
-0.15737196803092957,
0.054751116782426834,
0.3095563054084778,
0.4490511417388916,
0.33619242906570435,
-0.04047946259379387,
0.3349383771419525,
-0.24009904265403748,
-0.08122953027486801,
-0.327994167804718,
-0.3805380165576935,
-0.3011351227760315,
0.09364601969718933,
0.3241681456565857,
-0.006686031818389893,
0.22896206378936768,
0.3274359107017517,
-0.0684342086315155,
0.10324332863092422,
0.29708385467529297,
0.24956129491329193,
-0.17600473761558533,
-0.19116482138633728,
-0.036476459354162216,
-0.24467995762825012,
-0.36508309841156006,
0.10489176213741302,
0.04675879329442978,
-0.08037300407886505,
0.06395823508501053,
0.33711400628089905,
-0.10187885910272598,
-0.05242619663476944,
-0.3592819273471832,
0.41409724950790405,
-0.2576805353164673,
-0.09189696609973907,
0.17716965079307556,
-0.2155272364616394,
0.060121335089206696,
-0.203685462474823,
0.021024812012910843,
-0.1643567979335785,
-0.09897606819868088,
-0.09986398369073868,
-0.007844958454370499,
0.22196197509765625,
0.09708137810230255,
0.076943539083004,
0.28898197412490845,
0.14347480237483978,
0.025914516299962997,
0.08733198791742325,
-0.23889952898025513,
-0.22752919793128967,
0.19199150800704956,
-0.19814011454582214,
0.06894994527101517,
0.2805074453353882,
0.13109154999256134,
0.12735655903816223,
0.22483620047569275,
-0.24678997695446014,
-0.396825909614563,
0.047763653099536896,
-0.014368250966072083,
0.1868637651205063,
-0.1970890313386917,
0.008471641689538956,
0.5062977075576782,
0.01651694066822529,
-0.09495756775140762,
-0.2039608508348465,
-0.16960427165031433,
-0.36016717553138733,
-0.3072247803211212,
-0.15498119592666626,
0.3238281011581421,
0.18394553661346436,
0.06574936956167221,
0.1309625804424286,
0.3159967064857483,
0.07974590361118317,
-0.04097150266170502,
-0.14927369356155396,
0.00901515781879425,
0.0980658307671547,
-0.15741316974163055,
0.10815022885799408,
-0.03865373879671097,
0.13153192400932312,
-0.2199794054031372,
0.48346033692359924,
0.1523744761943817,
-0.09314723312854767,
0.4009239375591278,
-0.18080240488052368,
0.12606951594352722,
0.12157702445983887,
0.10767273604869843,
0.2794559597969055,
0.14026868343353271,
0.41863808035850525,
0.07216671109199524,
0.07829965651035309,
-0.41594237089157104,
-0.22578580677509308,
0.09540756046772003,
0.11772425472736359,
0.09038740396499634,
-0.07448404282331467,
0.04602615162730217,
-0.10725899785757065,
0.1049705371260643,
-0.09480220079421997,
-0.35879260301589966,
0.7520033121109009,
0.02789819985628128,
-0.04596015438437462,
0.3025047183036804,
-0.33547472953796387,
-0.13554924726486206,
0.2962964177131653,
0.02797744795680046,
0.12415454536676407,
0.21673792600631714,
-0.13887959718704224,
-0.00013467762619256973,
-0.0964125469326973,
-0.16872180998325348,
-0.044995345175266266,
-0.007134715095162392,
-0.4066477417945862,
-0.02432224154472351,
-0.024864230304956436,
0.5111106038093567,
-0.3909209370613098,
-0.41352882981300354,
-0.13593368232250214,
-0.20262520015239716,
-0.008605632930994034,
0.4150250554084778,
-0.0883474051952362,
0.02529023215174675,
0.0009804721921682358,
-0.0015360265970230103,
0.02864130400121212,
0.31899651885032654,
0.06606977432966232,
0.024310026317834854,
-0.10141266137361526,
-0.0852874368429184,
0.30367663502693176,
-0.16883601248264313,
0.11682257801294327,
0.2283477932214737,
0.0036372635513544083,
0.09864269942045212,
0.02106703817844391,
0.030096223577857018,
-0.04242391139268875,
0.3005993068218231,
0.1182660385966301,
0.1036486029624939,
0.1613985002040863,
-0.486873060464859,
0.22387656569480896,
-0.32424265146255493,
0.11138181388378143,
0.1531892567873001,
0.09359372407197952,
-0.31518715620040894,
-0.2749287784099579,
-0.020556196570396423,
-0.4393351674079895,
-0.2900480628013611,
0.1368468701839447,
-0.202308788895607,
0.16439884901046753,
-0.16015583276748657,
-0.06264247745275497,
0.18905968964099884,
0.14491023123264313,
0.005138687789440155,
-0.13388757407665253,
0.13562260568141937,
-0.09229119122028351,
-0.2108958661556244,
-0.040602076798677444,
0.07500913739204407,
0.1215817928314209,
0.05314426124095917,
-0.2295716553926468,
-0.09803268313407898,
-0.43996915221214294,
-0.035190097987651825,
-0.02508963830769062,
-0.018610358238220215,
0.1120939552783966,
0.43570080399513245,
0.2380364090204239,
-0.14818841218948364,
0.07480335235595703,
-0.1058744490146637,
0.16337770223617554,
0.03964979574084282,
0.11932656168937683,
0.14622855186462402,
0.07308976352214813,
-0.14291556179523468,
0.4496081471443176,
0.6301862001419067,
0.15405993163585663,
0.3096241354942322,
0.06989480555057526,
0.0727035254240036,
0.002680480480194092,
-0.21790899336338043,
0.14456674456596375,
-0.37797310948371887,
-0.0718572586774826,
0.18210512399673462,
0.15124064683914185,
-0.09807758033275604,
-0.3083447813987732,
0.26429522037506104,
-0.3675011396408081,
-0.21951724588871002,
0.15370887517929077,
0.10103434324264526,
0.2180578112602234,
-0.3457666039466858,
-0.03790847957134247,
0.20319293439388275,
0.05309365689754486,
-0.07012065500020981,
0.2888408899307251,
-0.24505501985549927,
-0.2483467310667038,
-0.1441531926393509,
-0.41032305359840393,
-0.48016488552093506,
0.5223152041435242,
0.1933969259262085,
0.5758060216903687,
-0.030214577913284302,
-0.21908500790596008,
-0.1033487319946289,
-0.2501758635044098,
0.9639766812324524,
-0.09104862809181213,
-0.26139557361602783,
0.18803928792476654,
0.2521205544471741,
0.06966262310743332,
-0.14966243505477905,
-0.21069297194480896,
0.2268153727054596,
0.1498953402042389,
-0.012071467936038971,
0.18206578493118286,
-0.10185103118419647,
0.0908237174153328,
-0.006484337616711855,
-0.16290640830993652,
-0.06515448540449142,
-0.36942732334136963,
-0.23092275857925415,
-0.06250841170549393,
0.18146175146102905,
-0.022650931030511856,
0.0920240730047226,
-0.4059782028198242,
0.10616835951805115,
0.233981654047966,
-0.17395004630088806,
0.20424622297286987,
-0.011073087342083454,
0.10493969917297363,
0.019306056201457977,
0.1522301286458969,
-0.17002828419208527,
0.30723047256469727,
-0.30976346135139465,
0.04766486957669258,
-0.27910351753234863,
-0.013029307126998901,
0.20116117596626282,
0.013235296122729778,
0.34364256262779236,
0.5690305233001709,
0.09851374477148056,
-0.04794042557477951,
-0.2560604214668274,
0.4918908476829529,
-0.29009005427360535,
-0.1155468225479126,
0.378641813993454,
0.16696283221244812,
0.12300173938274384,
0.3054516911506653,
0.2370191216468811,
0.0681946873664856,
-0.18518079817295074,
0.40379512310028076,
-0.07326990365982056,
-0.17303097248077393,
-0.0346207469701767,
0.1439497470855713,
1.008262276649475,
0.06596647948026657,
0.1427403837442398,
0.08594930171966553,
-0.36622387170791626,
-0.012762795202434063,
0.09895436465740204,
0.29667991399765015,
-0.18210482597351074,
-0.150710791349411,
0.07726701349020004,
-0.01641329750418663,
0.15283754467964172,
-0.08372662961483002,
-0.3051028549671173,
0.5029758810997009,
0.23730866611003876,
-0.24550867080688477,
-0.18257565796375275,
-0.28114038705825806,
-0.10204518586397171,
-0.3525357246398926,
-0.015313684940338135,
0.014994122087955475,
0.01674763113260269,
-0.049151528626680374,
-0.2428886592388153,
0.21792733669281006,
0.4579988420009613,
-0.3275728225708008,
-0.5520533323287964,
0.09704310446977615,
-0.3538520038127899,
0.1254422962665558,
-0.10177095234394073,
0.15601621568202972,
-0.01457265205681324,
0.32091817259788513,
0.26058846712112427,
-0.2092822939157486,
-0.1403914988040924,
0.06808073818683624,
0.42104873061180115,
-0.027565499767661095,
-0.05252280831336975,
-0.018616430461406708,
-0.04601114243268967,
-0.0714709460735321,
-0.2083965241909027,
0.23694604635238647,
-0.23611383140087128,
0.05671302229166031,
-0.4017176032066345,
0.2921653389930725,
0.18183350563049316,
0.19818368554115295,
-0.13079911470413208,
0.23023048043251038,
-0.0991462767124176,
-0.15831100940704346,
0.06418377161026001,
0.017110779881477356,
-0.43643295764923096,
0.38845765590667725,
-0.6675551533699036,
-0.17212331295013428,
0.02297898754477501,
0.09336192905902863,
-0.15144488215446472,
-0.21838873624801636,
0.25545263290405273,
0.2942562401294708,
-0.04138113185763359,
-0.16204631328582764,
-0.06785968691110611,
-0.5027353763580322,
-0.2437485158443451,
-0.023828431963920593,
0.4996989965438843,
-0.1813756674528122,
0.26607146859169006,
-0.18200577795505524,
0.15364806354045868,
0.0684589147567749,
0.048291537910699844,
-0.4530952572822571,
-0.16922786831855774,
0.041359931230545044,
-0.10644234716892242,
0.12756967544555664,
-0.11533359438180923,
0.013379817828536034,
0.09076843410730362,
0.029496140778064728,
-0.23644621670246124,
-0.050363004207611084,
-0.1819702833890915,
0.06837551295757294,
0.1364401876926422,
-0.2566859722137451,
0.06240101531147957,
0.22162410616874695,
0.05301704257726669,
0.35496532917022705,
-0.3132784962654114,
-0.09963800013065338,
0.04404618963599205,
0.09952177107334137,
-0.154227614402771,
-0.060491643846035004,
0.13130778074264526,
0.1940503716468811,
0.06775987148284912,
-0.03679142892360687,
0.12096640467643738,
0.0861433818936348,
-0.20975328981876373,
0.0010942239314317703,
-0.15691658854484558,
0.3232281804084778,
0.19265906512737274,
0.2262539267539978,
-0.15206579864025116,
0.4106266498565674,
0.18054543435573578,
0.002690225839614868,
-0.0224741380661726,
-0.058979228138923645,
0.030235644429922104,
0.02380458638072014,
-0.07920438051223755,
-0.20040112733840942,
-0.17166075110435486,
-0.04449012130498886,
-0.41749104857444763,
-0.2303558886051178,
0.2337726652622223,
0.4121546149253845,
-0.11317216604948044,
0.2689479887485504,
0.358997106552124,
0.14175966382026672,
-0.1508747935295105,
0.13509336113929749,
-0.10227169096469879,
-0.22683575749397278,
-0.15456423163414001,
0.3098675310611725,
0.08775210380554199,
-0.4268258810043335,
0.40175122022628784,
0.10556939989328384,
0.20371496677398682,
-0.3465667963027954,
-0.3353354036808014,
0.12483088672161102,
0.2816453278064728,
0.143578439950943,
0.020687930285930634,
-0.09542325139045715,
0.13402822613716125,
0.42477911710739136,
-0.22974854707717896,
0.19625607132911682,
-0.42189285159111023,
0.24813604354858398,
0.06723040342330933,
-0.22359943389892578,
-0.270695298910141,
0.18429149687290192,
-0.3110419511795044,
0.4455825090408325,
-0.2803731858730316,
0.5137363076210022,
-0.7224975824356079,
-0.37786969542503357,
-0.29431629180908203,
0.3682081997394562,
-0.1851390302181244,
-0.1865605264902115,
0.17712634801864624,
0.059812553226947784,
-0.03879452869296074,
0.10013014078140259,
0.28237152099609375,
-0.0009699016809463501,
0.5339978933334351,
0.1389382779598236,
-0.11509793996810913,
-0.12583626806735992,
-0.5283536314964294,
0.21127161383628845,
0.06187601760029793,
-0.18728235363960266,
0.32852113246917725,
0.6931873559951782,
-0.07393629848957062,
-0.15328098833560944,
0.07625735551118851,
0.5918373465538025,
0.35020938515663147,
-0.6384216547012329,
0.08129115402698517,
0.14673244953155518,
0.19461828470230103,
0.02682260423898697,
0.1508607119321823,
0.19525322318077087,
0.26288050413131714,
-0.008512030355632305,
-0.001749265007674694,
-0.08430717885494232,
-0.1517459750175476,
0.2341470867395401,
0.21143944561481476,
0.21196982264518738,
0.3036632239818573,
-0.1803746521472931,
-0.10488398373126984,
0.007673049345612526,
0.17847901582717896,
-0.6597294211387634,
0.09432940185070038,
0.04670591652393341,
-0.41224074363708496,
0.02291177585721016,
0.1529778391122818,
0.05030746012926102,
0.04590311646461487,
0.4579344093799591,
-0.037326280027627945,
0.2521840035915375,
-0.22651271522045135,
-0.24710607528686523,
-0.34947076439857483,
0.00128241628408432,
0.23407116532325745,
0.03216840326786041,
-0.2694215476512909,
-0.13983884453773499,
0.006718002259731293,
0.17224808037281036,
-0.009176060557365417,
0.002984043210744858,
0.33016088604927063,
0.5812101364135742,
-0.568664014339447,
0.3625001907348633,
0.4213241934776306,
-0.023312168195843697,
0.3072620630264282,
-0.40777021646499634,
0.21793390810489655,
0.06598173081874847,
-0.01849416270852089,
-0.11867968738079071,
0.2612795829772949,
-0.21286121010780334,
0.30406007170677185,
0.144891619682312,
0.11290489882230759,
0.15317542850971222,
-0.040270622819662094,
-0.15078072249889374,
-0.06879086792469025,
0.2566033601760864,
0.2663227617740631,
-0.36583760380744934,
0.18593889474868774,
0.10334737598896027,
-0.3721545934677124,
-0.06252771615982056,
-0.06904502958059311,
0.02885317988693714,
0.15285491943359375,
0.1354585736989975,
-0.2201825976371765,
0.10538965463638306,
0.07798676937818527,
0.11020796000957489,
0.10673343390226364,
0.46930938959121704,
0.03133852779865265,
0.17244885861873627,
-0.2965083718299866,
-0.101352259516716,
0.22141875326633453,
-0.2022680789232254,
-0.2384626418352127,
-0.18935386836528778,
0.5010423064231873,
-0.45496249198913574,
0.04831203073263168,
-0.24511519074440002,
0.006587214767932892,
-0.048356324434280396,
0.12495331466197968,
-0.6412274241447449,
0.24507074058055878,
-0.3631630539894104,
-0.7568086385726929,
0.11770704388618469,
-0.1873660385608673,
0.17633503675460815,
-0.12206503748893738,
0.35756635665893555,
-0.12687525153160095
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope.
Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ? | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 47 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope.
Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ? | [
-0.30129939317703247,
-0.288867712020874,
-0.08387664705514908,
0.19855494797229767,
0.02432667836546898,
-0.052532754838466644,
0.06525399535894394,
-0.014697451144456863,
0.08489973843097687,
0.28298088908195496,
0.17037829756736755,
0.26384207606315613,
-0.3119598627090454,
-0.10786475241184235,
-0.3288584053516388,
-0.15838104486465454,
0.0069890692830085754,
-0.002036668360233307,
0.13822858035564423,
0.263518750667572,
-0.45213592052459717,
0.4412013292312622,
-0.2616138458251953,
0.29266202449798584,
-0.39326608180999756,
-0.2115524411201477,
-0.13868053257465363,
0.443815678358078,
0.06617644429206848,
-0.4786924719810486,
0.0005651172250509262,
-0.41433826088905334,
0.17441749572753906,
0.1870654821395874,
-0.00011593148519750684,
-0.06843320280313492,
0.04262937605381012,
0.04080908000469208,
0.2628769278526306,
0.20875288546085358,
0.22274544835090637,
-0.043450094759464264,
0.08066356927156448,
-0.06293724477291107,
0.36006930470466614,
0.12845125794410706,
-0.020727613940835,
-0.12253990769386292,
0.45982158184051514,
0.4392021596431732,
0.16873489320278168,
0.290182888507843,
0.17811360955238342,
0.09790626913309097,
-0.15735593438148499,
-0.3354213237762451,
-0.10237174481153488,
0.24539075791835785,
0.3822478950023651,
-0.22057600319385529,
0.024190880358219147,
0.23575682938098907,
-0.19614091515541077,
0.14148004353046417,
-0.3374691307544708,
-0.07671298086643219,
0.4196670651435852,
-0.45340898633003235,
0.10919982194900513,
-0.03032241016626358,
0.08269152790307999,
-0.14161977171897888,
0.20353510975837708,
0.07132446020841599,
0.0753624215722084,
-0.8428002595901489,
0.07274412363767624,
0.2241641879081726,
-0.35165026783943176,
0.02347477152943611,
0.09541942924261093,
-0.07229544967412949,
-0.1213667094707489,
-0.08558952808380127,
0.07451820373535156,
0.007409058511257172,
0.02263922616839409,
0.2146468460559845,
0.24427220225334167,
0.2144123762845993,
-0.09972207993268967,
0.36881887912750244,
-0.16943010687828064,
0.07757683098316193,
-0.4725194573402405,
0.1255841851234436,
-0.11036606878042221,
0.10668632388114929,
-0.2916959226131439,
-0.03522495925426483,
0.1370096504688263,
0.16704508662223816,
0.1998492330312729,
0.20739245414733887,
0.2034580409526825,
-0.0674649029970169,
0.09277300536632538,
-0.5522858500480652,
0.1139967292547226,
-0.4261641502380371,
-0.1662347912788391,
-0.07750473916530609,
-0.05830724164843559,
-0.6734816431999207,
0.3865688145160675,
0.3823785185813904,
0.2839410901069641,
-0.1032036542892456,
-0.3083169162273407,
0.19888164103031158,
-0.012897945940494537,
0.14736509323120117,
0.22528159618377686,
0.22565719485282898,
0.32581382989883423,
0.7511099576950073,
0.017836637794971466,
0.19315218925476074,
-0.5615139007568359,
0.10340677946805954,
0.12310319393873215,
0.07905439287424088,
-0.3985133171081543,
0.14476120471954346,
0.18248899281024933,
0.006603654474020004,
0.1923016905784607,
-0.013763613998889923,
0.23525972664356232,
-0.27884772419929504,
0.00694253109395504,
-0.22928518056869507,
-0.05831461399793625,
0.23405812680721283,
0.12576495110988617,
0.24750961363315582,
0.04950285702943802,
0.09672936797142029,
0.047914184629917145,
0.32630249857902527,
-0.4066793620586395,
-0.4346698820590973,
-0.2120714634656906,
0.08558389544487,
0.33187538385391235,
0.3249845802783966,
0.19219699501991272,
-0.12621557712554932,
0.2943268418312073,
-0.23135383427143097,
0.0385071337223053,
-0.4561123251914978,
-0.20425240695476532,
-0.36382296681404114,
-0.09649121761322021,
0.20224829018115997,
-0.1977699249982834,
0.27080950140953064,
0.18462608754634857,
-0.06089275702834129,
0.15179294347763062,
0.4130898118019104,
0.10462071746587753,
-0.22594821453094482,
-0.17287328839302063,
0.07342392206192017,
0.02104891836643219,
-0.11634373664855957,
-0.18031002581119537,
0.05924847722053528,
-0.13591426610946655,
-0.12486303597688675,
0.18887647986412048,
0.08124259859323502,
-0.032982684671878815,
-0.1442909687757492,
0.25047242641448975,
-0.17934046685695648,
-0.04921315610408783,
0.13649272918701172,
-0.26023295521736145,
0.1588730365037918,
-0.26080119609832764,
0.08281038701534271,
0.01531188189983368,
-0.2696188688278198,
0.0008563846349716187,
-0.3050094246864319,
0.3133666515350342,
0.09782564640045166,
-0.019853679463267326,
0.3342060446739197,
0.21499693393707275,
-0.04928535968065262,
0.1161433607339859,
-0.28542983531951904,
-0.05914808064699173,
0.0361088290810585,
-0.1702709048986435,
-0.009401179850101471,
0.14694462716579437,
0.15020066499710083,
0.1828625500202179,
0.3816409409046173,
-0.2632249593734741,
-0.2783357501029968,
0.06171809881925583,
-0.08594904839992523,
0.08824925124645233,
-0.22278650104999542,
-0.0987013727426529,
0.4120560586452484,
0.01454511471092701,
-0.09103517979383469,
-0.09435030817985535,
-0.0471293181180954,
-0.36847347021102905,
-0.3964335322380066,
-0.16426217555999756,
0.22398093342781067,
0.08592468500137329,
0.18449683487415314,
-0.025565367192029953,
0.2649834454059601,
0.07452911138534546,
-0.1738913208246231,
-0.12687107920646667,
0.003835022449493408,
0.12433765083551407,
-0.4475928544998169,
0.14770177006721497,
0.12275858223438263,
0.07949605584144592,
-0.14095538854599,
0.4905478060245514,
0.17057080566883087,
-0.0011532790958881378,
0.2986791431903839,
-0.12566423416137695,
0.2619837522506714,
0.12337598204612732,
0.15302351117134094,
0.10671205073595047,
0.1765255331993103,
0.5011747479438782,
-0.011043261736631393,
0.01721462607383728,
-0.3096618354320526,
-0.2230345606803894,
0.06121005862951279,
0.30333787202835083,
0.17092575132846832,
0.08340920507907867,
0.047092270106077194,
-0.30435800552368164,
0.21679124236106873,
-0.024833517149090767,
-0.28645750880241394,
0.6092156767845154,
0.09398169815540314,
-0.048089783638715744,
0.23173044621944427,
-0.373401015996933,
-0.10235230624675751,
0.26433297991752625,
0.09586673974990845,
0.22973401844501495,
0.1650208979845047,
-0.140470951795578,
-0.06399024277925491,
-0.1730162501335144,
-0.2523159980773926,
-0.17248199880123138,
0.09481538087129593,
-0.3047885596752167,
0.11456138640642166,
-0.10763077437877655,
0.4711627662181854,
-0.4364016354084015,
-0.5715087056159973,
-0.021258365362882614,
-0.2287168949842453,
0.09436528384685516,
0.30823585391044617,
-0.06785993278026581,
0.008179565891623497,
-0.1076449602842331,
-0.04292319715023041,
0.19493769109249115,
0.20072133839130402,
0.20717957615852356,
-0.14502370357513428,
-0.15353769063949585,
-0.05266869068145752,
0.34196072816848755,
-0.15405233204364777,
0.2248845100402832,
0.27569377422332764,
0.1928742527961731,
-0.025049714371562004,
0.18333545327186584,
-0.08843183517456055,
0.1462685912847519,
0.08712208271026611,
0.002280890941619873,
0.14897195994853973,
0.024492882192134857,
-0.4572964012622833,
0.17402784526348114,
-0.4738207459449768,
0.09655313193798065,
0.18646325170993805,
0.127326101064682,
-0.27302470803260803,
-0.15489411354064941,
-0.1657606065273285,
-0.45915815234184265,
-0.3735136091709137,
0.11616948246955872,
-0.13510103523731232,
0.32599133253097534,
-0.17248904705047607,
0.1658080518245697,
0.1888149380683899,
0.28408217430114746,
-0.11599737405776978,
-0.04642856493592262,
0.2811427712440491,
0.027479059994220734,
-0.27554798126220703,
-0.20810014009475708,
0.18010710179805756,
0.12718504667282104,
0.07160182297229767,
-0.06430412828922272,
-0.2595277428627014,
-0.284612238407135,
-0.0832405835390091,
0.10085958242416382,
-0.13801926374435425,
0.23870135843753815,
0.47708120942115784,
0.2313631772994995,
-0.19336993992328644,
0.11741798371076584,
-0.09190411865711212,
0.04584573954343796,
-0.07040222734212875,
0.12000253051519394,
0.2052811086177826,
0.2294619381427765,
-0.21555809676647186,
0.6325454711914062,
0.45821449160575867,
0.030792605131864548,
0.36804255843162537,
0.12409808486700058,
0.06560249626636505,
0.002461552619934082,
-0.16062423586845398,
0.09120119363069534,
-0.4899168908596039,
-0.061286862939596176,
0.15343499183654785,
0.12727060914039612,
-0.32576873898506165,
-0.19799895584583282,
0.3006589114665985,
-0.36996814608573914,
-0.17699286341667175,
0.24304121732711792,
-0.15699049830436707,
0.04421933740377426,
-0.25517797470092773,
-0.028715461492538452,
0.0024010855704545975,
0.1384352743625641,
0.02759503573179245,
0.13333910703659058,
-0.23778653144836426,
-0.21518997848033905,
-0.09155221283435822,
-0.4752030372619629,
-0.46214133501052856,
0.42458492517471313,
0.059567999094724655,
0.5636219382286072,
0.12640829384326935,
-0.2305757999420166,
-0.05311967432498932,
-0.37051722407341003,
0.699120283126831,
-0.03580363839864731,
-0.2761756181716919,
0.21324998140335083,
0.24028921127319336,
-0.24655310809612274,
-0.1589059978723526,
-0.2612961530685425,
0.4468991160392761,
0.020823460072278976,
-0.06128410995006561,
0.28322455286979675,
-0.051398880779743195,
-0.03357866033911705,
-0.04753338173031807,
-0.2228846400976181,
-0.04920071363449097,
-0.34127265214920044,
-0.3061122000217438,
-0.08095208555459976,
0.2572225332260132,
0.012558715417981148,
0.03787168860435486,
-0.34426140785217285,
0.09753520786762238,
-0.06850577145814896,
-0.143998920917511,
0.05118611827492714,
-0.14449848234653473,
0.2184315025806427,
-0.24858863651752472,
0.06269466876983643,
-0.214158833026886,
0.5296189785003662,
0.09320787340402603,
0.244840607047081,
-0.1684693545103073,
0.017169199883937836,
0.3049788475036621,
-0.1624382734298706,
0.3107878863811493,
0.3642139434814453,
0.15948618948459625,
0.034233458340168,
-0.3147220015525818,
0.4139235019683838,
-0.07657429575920105,
-0.19695161283016205,
0.2822987139225006,
0.2887894809246063,
0.09021521359682083,
0.3220939040184021,
0.4193083643913269,
0.16124218702316284,
-0.09387272596359253,
0.632638692855835,
-0.14045211672782898,
-0.015639444813132286,
0.1491318941116333,
0.1572805792093277,
0.9113283753395081,
0.042600713670253754,
0.15453900396823883,
0.05791569873690605,
-0.5945178270339966,
-0.0950985997915268,
-0.03423936665058136,
0.26792478561401367,
-0.2766171097755432,
-0.12284459173679352,
0.06868359446525574,
-0.12800081074237823,
0.10484936833381653,
0.011140599846839905,
-0.2543604075908661,
0.33146363496780396,
0.12192080914974213,
-0.386918842792511,
-0.09594201296567917,
-0.20514154434204102,
-0.06873970478773117,
-0.2071734070777893,
0.045601360499858856,
0.05802866816520691,
0.07268363237380981,
-0.08642463386058807,
-0.22334527969360352,
0.13298043608665466,
0.32508838176727295,
-0.3729434609413147,
-0.4827303886413574,
0.02322760969400406,
-0.4337726831436157,
0.17459234595298767,
0.02256687358021736,
-0.0860007107257843,
0.06891512870788574,
0.3463524281978607,
0.09829090535640717,
-0.24056176841259003,
-0.17299234867095947,
0.009951474145054817,
0.6274533271789551,
-0.18285098671913147,
-0.05422685667872429,
-0.04066077619791031,
0.07883789390325546,
-0.13679879903793335,
-0.2635415494441986,
0.4335005581378937,
-0.18024422228336334,
-0.21502113342285156,
-0.09455400705337524,
0.34973931312561035,
0.12785524129867554,
0.2987190783023834,
-0.1252497136592865,
0.1256759911775589,
-0.15283751487731934,
-0.19789274036884308,
0.10090850293636322,
0.11823616176843643,
-0.42160922288894653,
0.5439652800559998,
-0.35333481431007385,
-0.2044127732515335,
0.05905120074748993,
0.000225946307182312,
-0.059479787945747375,
-0.03573897108435631,
0.3162463307380676,
0.26560452580451965,
-0.15355569124221802,
-0.25512054562568665,
-0.07012776285409927,
-0.19492094218730927,
-0.296614408493042,
-0.07747253030538559,
0.33234280347824097,
-0.1465400904417038,
0.32337796688079834,
-0.2738437056541443,
0.19832122325897217,
0.18776747584342957,
-0.14367231726646423,
-0.3700404763221741,
-0.2890418767929077,
0.024123750627040863,
-0.14047230780124664,
0.12582188844680786,
-0.12966902554035187,
-0.20566827058792114,
0.132404625415802,
0.12876711785793304,
-0.28371623158454895,
0.10014704614877701,
-0.14400731027126312,
0.05192941427230835,
0.02020895667374134,
-0.24936658143997192,
-0.032635290175676346,
0.28725525736808777,
0.03530354052782059,
0.2821321487426758,
-0.31002455949783325,
-0.16930818557739258,
0.1292809695005417,
0.06830260902643204,
-0.10674863308668137,
-0.11516519635915756,
0.10554678738117218,
0.04321891814470291,
0.06281675398349762,
0.04557618871331215,
0.0033490359783172607,
0.01375504583120346,
-0.36492323875427246,
0.04643326625227928,
0.05917565897107124,
0.16977936029434204,
0.04442870616912842,
0.34812137484550476,
-0.20076119899749756,
0.5282025933265686,
0.07793091982603073,
0.09939105808734894,
0.09371020644903183,
-0.02859807014465332,
0.06635579466819763,
-0.016921140253543854,
-0.10503765940666199,
-0.2167125940322876,
-0.23096439242362976,
-0.25782865285873413,
-0.34219712018966675,
-0.24380552768707275,
0.3617071509361267,
0.39173179864883423,
-0.14032965898513794,
0.22375550866127014,
0.34428536891937256,
0.19312915205955505,
-0.1998019516468048,
0.03414728492498398,
-0.035793375223875046,
-0.15095536410808563,
-0.05945288762450218,
0.30080926418304443,
0.19468221068382263,
-0.4732251465320587,
0.31335166096687317,
0.0727045089006424,
-0.009987757541239262,
-0.3309752345085144,
-0.36650457978248596,
0.14886881411075592,
0.17790532112121582,
0.03204669803380966,
0.09838776290416718,
-0.05027441307902336,
0.16279010474681854,
0.4160146117210388,
-0.13464543223381042,
0.2728455364704132,
0.022547297179698944,
0.05025256425142288,
-0.18949300050735474,
-0.22025476396083832,
-0.3502291738986969,
-0.010718166828155518,
-0.2131238579750061,
0.31823641061782837,
-0.09381312131881714,
0.5318557024002075,
-0.47476494312286377,
-0.3978484869003296,
-0.1704750508069992,
0.22448770701885223,
-0.23336917161941528,
-0.12339535355567932,
-0.09333684295415878,
0.016053825616836548,
0.04455383121967316,
0.06838871538639069,
0.2233017534017563,
0.12027393281459808,
0.5587499141693115,
0.20864693820476532,
-0.07056732475757599,
-0.1067139208316803,
-0.2640000283718109,
0.2165122926235199,
-0.03733634203672409,
-0.14359532296657562,
0.2602059841156006,
0.4493555426597595,
-0.026981480419635773,
-0.20663656294345856,
0.09954269230365753,
0.5852428078651428,
0.3542620539665222,
-0.7494063973426819,
0.03258812054991722,
0.16793222725391388,
0.12839657068252563,
-0.009752701967954636,
0.06105963885784149,
0.20161280035972595,
0.02646251581609249,
0.13230091333389282,
0.044409967958927155,
-0.13274846971035004,
0.1357136219739914,
0.1348724365234375,
0.2581343650817871,
0.23414212465286255,
-0.01965523511171341,
-0.06106620281934738,
-0.24029293656349182,
0.05297465994954109,
-0.05173327773809433,
-0.5167415738105774,
-0.07342063635587692,
0.31252795457839966,
-0.44964414834976196,
0.007222089916467667,
0.07332565635442734,
0.07023449242115021,
-0.12850774824619293,
0.41875341534614563,
0.23823389410972595,
0.5921290516853333,
-0.18909889459609985,
-0.1917974054813385,
-0.39011329412460327,
0.16200387477874756,
-0.024251367896795273,
-0.08068180829286575,
-0.13420988619327545,
-0.1172405555844307,
0.02871568873524666,
0.18571792542934418,
0.30217790603637695,
0.22622150182724,
0.40930190682411194,
0.7774026393890381,
-0.7687123417854309,
0.3445771038532257,
0.5484129190444946,
0.01661018095910549,
0.28839653730392456,
-0.457682728767395,
0.10552938282489777,
0.0982181504368782,
0.070104219019413,
-0.1629558503627777,
0.13609223067760468,
-0.11129625141620636,
0.4854993224143982,
0.4085155427455902,
0.009462633170187473,
0.2190796434879303,
0.04522904008626938,
-0.0994839146733284,
-0.006926331669092178,
0.28824931383132935,
0.15700209140777588,
-0.3998827338218689,
0.38992342352867126,
0.1509765386581421,
-0.353022962808609,
-0.013396177440881729,
-0.038118619471788406,
-0.06989243626594543,
0.028415203094482422,
0.16960211098194122,
-0.06961189210414886,
0.1263611614704132,
0.02309121936559677,
-0.05038778483867645,
0.039021119475364685,
0.3577452003955841,
0.0982687696814537,
0.17866919934749603,
-0.26702937483787537,
0.002181796357035637,
0.18038155138492584,
-0.08682554215192795,
-0.21477051079273224,
-0.21072612702846527,
0.44495153427124023,
-0.291439950466156,
0.16016678512096405,
-0.18850265443325043,
-0.10797455906867981,
-0.08246409893035889,
-0.03700106590986252,
-0.7148544192314148,
0.004622952081263065,
-0.3284476697444916,
-0.5302842855453491,
0.09871768951416016,
0.21862417459487915,
0.0992482379078865,
-0.017171073704957962,
0.054874587804079056,
-0.23082825541496277
] |
https://github.com/huggingface/datasets/issues/2067 | Multiprocessing windows error | Now I understand
The error occures because the script got restarted in another thread, so the object is already loaded.
Still don't have an idea why a new thread starts the whole script again | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 34 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Now I understand
The error occures because the script got restarted in another thread, so the object is already loaded.
Still don't have an idea why a new thread starts the whole script again | [
-0.17128029465675354,
-0.6625722050666809,
-0.015667442232370377,
0.3150131106376648,
-0.010367467999458313,
-0.02589397132396698,
0.13373951613903046,
-0.13210564851760864,
0.08812682330608368,
0.2671474814414978,
0.2327953428030014,
0.0681706890463829,
-0.1253816783428192,
-0.06737557798624039,
-0.14131887257099152,
-0.09390468895435333,
0.09127555787563324,
-0.017267152667045593,
0.21231743693351746,
0.29248738288879395,
-0.4489220678806305,
0.43195679783821106,
-0.2962605953216553,
0.16190986335277557,
-0.4213716983795166,
-0.03085109032690525,
-0.24378395080566406,
0.5600070953369141,
0.3595539629459381,
-0.4632328748703003,
-0.030816100537776947,
-0.3616607189178467,
0.24211367964744568,
0.13949160277843475,
-0.00012223650992382318,
-0.12079907953739166,
0.004493642598390579,
0.03348216414451599,
0.42926502227783203,
0.2617110013961792,
0.2565520405769348,
0.12223978340625763,
0.04992865025997162,
-0.08626323938369751,
0.23295554518699646,
0.3592977225780487,
0.12694890797138214,
-0.014465272426605225,
0.4354665279388428,
0.20341289043426514,
0.08139003068208694,
0.35552823543548584,
-0.0857628658413887,
0.005675020627677441,
-0.39699819684028625,
-0.5251869559288025,
0.004693685099482536,
0.2967619299888611,
0.527470588684082,
-0.3028686046600342,
0.04612705856561661,
0.1945866197347641,
-0.27245092391967773,
0.14175236225128174,
-0.29011070728302,
-0.05031934380531311,
0.4512546956539154,
-0.474888414144516,
0.10354054719209671,
-0.04334321618080139,
-0.053687117993831635,
-0.1352441906929016,
0.3585697412490845,
0.08346333354711533,
0.07281668484210968,
-0.7990478277206421,
0.01039932668209076,
0.19021646678447723,
-0.25534334778785706,
0.09689970314502716,
0.028348615393042564,
0.01781594753265381,
0.018059968948364258,
-0.20192895829677582,
0.2141687273979187,
-0.0824943333864212,
0.061911147087812424,
0.2800357937812805,
0.14667141437530518,
0.5134991407394409,
-0.1706375628709793,
0.2777177393436432,
-0.08766813576221466,
0.0011057108640670776,
-0.39322715997695923,
0.03701784461736679,
0.17745846509933472,
0.277544230222702,
-0.2528107762336731,
-0.09795303642749786,
-0.017656780779361725,
0.12527932226657867,
0.1939220428466797,
0.11671599745750427,
0.2955617308616638,
-0.2059352993965149,
0.0939260944724083,
-0.7193543910980225,
0.23746411502361298,
-0.38866400718688965,
-0.3085562288761139,
-0.12623590230941772,
0.012017504312098026,
-0.4726976752281189,
0.554179847240448,
0.43475818634033203,
0.3090134263038635,
0.027783889323472977,
-0.328140527009964,
0.20836909115314484,
-0.034787219017744064,
0.07830039411783218,
0.1989099383354187,
0.23923322558403015,
0.27338963747024536,
0.7265444993972778,
-0.00374501571059227,
0.08543812483549118,
-0.6531362533569336,
0.12511153519153595,
0.012078819796442986,
0.07539220154285431,
-0.2927781939506531,
0.21104994416236877,
0.18642738461494446,
-0.08958576619625092,
0.2464871108531952,
0.24711407721042633,
0.20024754106998444,
-0.48917415738105774,
-0.040861260145902634,
-0.1518590748310089,
-0.17923346161842346,
0.21119701862335205,
0.3016979992389679,
0.18575745820999146,
0.029187336564064026,
0.1140998899936676,
-0.016072973608970642,
0.28113698959350586,
-0.4462313652038574,
-0.41165563464164734,
-0.10339236259460449,
0.019580364227294922,
0.4211145043373108,
0.4560444951057434,
0.25462761521339417,
-0.18947435915470123,
0.2538907825946808,
-0.28140050172805786,
-0.05441056936979294,
-0.46155816316604614,
-0.3425109088420868,
-0.3588588833808899,
-0.21772663295269012,
0.38950115442276,
0.04938260093331337,
0.25226029753685,
0.3038570284843445,
-0.12818272411823273,
0.03149745613336563,
0.2952193021774292,
0.11017528176307678,
-0.057213105261325836,
-0.26175037026405334,
-0.03749950975179672,
-0.3009837567806244,
-0.25485700368881226,
-0.025291336700320244,
0.1373518854379654,
-0.17252013087272644,
0.051620930433273315,
0.2739419639110565,
0.19592313468456268,
-0.0675700381398201,
-0.28929364681243896,
0.4228897988796234,
-0.3635503649711609,
-0.19169233739376068,
0.19802002608776093,
-0.128165602684021,
0.22241559624671936,
-0.14051571488380432,
-0.07045945525169373,
0.02859160490334034,
-0.014097578823566437,
0.06005807965993881,
-0.07477881014347076,
0.3166644871234894,
0.06928874552249908,
-0.15563316643238068,
0.22024378180503845,
0.1203228235244751,
0.07674659788608551,
0.1401016265153885,
-0.28235796093940735,
-0.15259483456611633,
0.08151804655790329,
-0.14640450477600098,
-0.06481225788593292,
0.40110546350479126,
0.07771134376525879,
0.14141911268234253,
0.2770756185054779,
-0.16337750852108002,
-0.21560543775558472,
-0.024055879563093185,
0.06271374970674515,
-0.11233623325824738,
-0.286849707365036,
-0.06498374044895172,
0.5646061897277832,
-0.09672513604164124,
-0.15015281736850739,
-0.17920945584774017,
-0.08418452739715576,
-0.35066142678260803,
-0.22866670787334442,
-0.09002631157636642,
0.3097999393939972,
0.30736374855041504,
0.05686645209789276,
0.13225480914115906,
0.2861677408218384,
0.16924162209033966,
-0.1924745887517929,
-0.19994774460792542,
-0.00428435206413269,
0.11246125400066376,
-0.22499224543571472,
0.14712969958782196,
-0.09611448645591736,
0.18650701642036438,
-0.3468339443206787,
0.5800673365592957,
0.06727592647075653,
0.013213057070970535,
0.17503622174263,
-0.09669143706560135,
0.05443866550922394,
0.09182234108448029,
-0.0746489018201828,
0.180729478597641,
0.1711859405040741,
0.38685330748558044,
0.2444775104522705,
-0.09281469136476517,
-0.25726574659347534,
-0.41583454608917236,
0.03375338017940521,
0.21617533266544342,
0.1949463188648224,
0.015319503843784332,
-0.02029147744178772,
-0.15017616748809814,
0.1898733675479889,
-0.18341460824012756,
-0.4330267012119293,
0.7109694480895996,
0.05003952607512474,
-0.22007635235786438,
0.31948959827423096,
-0.39098086953163147,
-0.15995049476623535,
0.14583681523799896,
0.07038459181785583,
0.2738219201564789,
0.18106986582279205,
-0.13378646969795227,
-0.07073470950126648,
-0.16081112623214722,
-0.14083921909332275,
-0.1102713793516159,
0.03100239858031273,
-0.315879762172699,
0.15465736389160156,
-0.05567114055156708,
0.5288806557655334,
-0.5717414617538452,
-0.29650989174842834,
0.1039450615644455,
-0.14314916729927063,
-0.02625317871570587,
0.4722509980201721,
0.04340929910540581,
-0.16026470065116882,
0.10587906837463379,
-0.008489370346069336,
0.0533190593123436,
0.46782973408699036,
0.23510250449180603,
-0.10785827040672302,
-0.08093687891960144,
-0.14812657237052917,
0.2720526158809662,
-0.2653985321521759,
0.265696257352829,
0.27646103501319885,
0.021756626665592194,
0.08742063492536545,
0.11472254246473312,
-0.07549206912517548,
0.07892332971096039,
0.2230226695537567,
0.0363001674413681,
0.13915495574474335,
0.24826164543628693,
-0.3195885717868805,
0.07396107912063599,
-0.3315236270427704,
0.1612982302904129,
0.18166238069534302,
0.040537796914577484,
-0.4710937440395355,
-0.19506612420082092,
-0.19011589884757996,
-0.296661913394928,
-0.04531744122505188,
0.032439809292554855,
-0.16223670542240143,
0.24621625244617462,
-0.294074684381485,
0.04607989639043808,
0.05802791193127632,
0.30046218633651733,
-0.1297501027584076,
-0.17751021683216095,
0.15522050857543945,
-0.22798635065555573,
-0.1865617036819458,
-0.17709039151668549,
0.2402939796447754,
0.09299441426992416,
0.05296214669942856,
-0.24804337322711945,
-0.35085123777389526,
-0.43915146589279175,
-0.03107939101755619,
0.016328830271959305,
-0.09752613306045532,
0.2750750184059143,
0.3872763216495514,
0.17050662636756897,
-0.10096713900566101,
0.055506542325019836,
-0.20206710696220398,
-0.04022849351167679,
-0.023450210690498352,
0.04237448424100876,
0.2111394703388214,
0.2805841863155365,
-0.10635298490524292,
0.3829607367515564,
0.47703370451927185,
0.04140458628535271,
0.2799213230609894,
0.01251305639743805,
0.07769543677568436,
-0.047738783061504364,
-0.21130672097206116,
0.003753661410883069,
-0.47063151001930237,
-0.2145146280527115,
0.14373694360256195,
0.08389530330896378,
-0.2886599004268646,
-0.22166837751865387,
0.14426137506961823,
-0.350061297416687,
-0.07935863733291626,
0.05413547158241272,
0.03398055583238602,
0.09217318147420883,
-0.10497544705867767,
-0.05969412252306938,
0.11241550743579865,
0.18113785982131958,
-0.1717081218957901,
0.22319918870925903,
-0.09511543065309525,
-0.27065011858940125,
-0.14064037799835205,
-0.5947097539901733,
-0.34995338320732117,
0.3417300581932068,
0.12604960799217224,
0.589011013507843,
0.08959046006202698,
-0.06416860967874527,
0.08162076026201248,
-0.3378751873970032,
0.8207423686981201,
-0.06554104387760162,
-0.1296050101518631,
0.17443077266216278,
0.11247876286506653,
-0.031246494501829147,
-0.09491360187530518,
-0.13499589264392853,
0.38415655493736267,
0.1649092435836792,
-0.05572277307510376,
0.3446401357650757,
-0.002125544473528862,
0.17973679304122925,
-0.03457242250442505,
-0.290997177362442,
-0.17934109270572662,
-0.37076443433761597,
-0.36368003487586975,
-0.10765445977449417,
0.2095053791999817,
-0.12748530507087708,
-0.023697691038250923,
-0.4341152310371399,
0.041897255927324295,
0.17327342927455902,
-0.07983031868934631,
0.14047163724899292,
-0.08377642929553986,
0.014860020019114017,
-0.10358864068984985,
0.11901600658893585,
-0.3424038589000702,
0.340380996465683,
-0.1229400485754013,
0.05511432886123657,
-0.12247894704341888,
0.25700634717941284,
0.26433560252189636,
-0.04484475776553154,
0.3813430964946747,
0.3954428732395172,
0.14931075274944305,
-0.01619178056716919,
-0.2516634464263916,
0.41584718227386475,
-0.2576262652873993,
-0.29469621181488037,
0.3450617790222168,
0.2340323030948639,
0.021378086879849434,
0.21163982152938843,
0.29325228929519653,
0.12559163570404053,
-0.08133478462696075,
0.5608872175216675,
-0.4173088073730469,
0.04707452654838562,
-0.05993548780679703,
0.03355547413229942,
0.9265294671058655,
0.035853687673807144,
0.08676843345165253,
0.008220771327614784,
-0.5504254698753357,
-0.28224897384643555,
-0.04516478627920151,
0.32867830991744995,
-0.35029762983322144,
-0.1361202746629715,
0.008969677612185478,
-0.12741616368293762,
0.15315106511116028,
-0.10189895331859589,
-0.19593408703804016,
0.4001797139644623,
0.14832690358161926,
-0.30792251229286194,
-0.148642435669899,
-0.09666036069393158,
-0.16463863849639893,
-0.07118789851665497,
0.2568962574005127,
-0.02416560798883438,
0.08934152126312256,
0.028375964611768723,
-0.32982954382896423,
0.26164019107818604,
0.528631865978241,
-0.43120020627975464,
-0.563927412033081,
-0.00045756250619888306,
-0.20299085974693298,
0.15603727102279663,
-0.08686444163322449,
0.19479568302631378,
-0.026231415569782257,
0.26577889919281006,
0.14196842908859253,
-0.12945842742919922,
-0.05892081558704376,
0.07339496165513992,
0.4570510983467102,
-0.11654828488826752,
-0.09106574207544327,
-0.06545959413051605,
0.09788589924573898,
-0.07435941696166992,
-0.3104972839355469,
0.29912954568862915,
-0.0740031898021698,
-0.1595831960439682,
-0.37903106212615967,
0.5051350593566895,
0.15668073296546936,
0.13285039365291595,
-0.20496243238449097,
0.3506373465061188,
-0.13902917504310608,
-0.20634150505065918,
0.04445908963680267,
0.09483495354652405,
-0.3500111997127533,
0.5624645352363586,
-0.6116796135902405,
-0.23838013410568237,
0.006032897159457207,
0.032115064561367035,
0.16798579692840576,
-0.11394552886486053,
0.1524098962545395,
0.3349124789237976,
-0.07597284018993378,
-0.19078776240348816,
-0.10886110365390778,
-0.39421069622039795,
-0.12000761926174164,
0.03893670067191124,
0.43790045380592346,
0.00027117133140563965,
0.2621946632862091,
-0.2192179560661316,
-0.07778772711753845,
0.17110654711723328,
-0.014927636831998825,
-0.4175887703895569,
-0.11797231435775757,
-0.11425235867500305,
-0.07142657041549683,
0.1889413446187973,
0.1612706482410431,
0.20096980035305023,
0.11117613315582275,
0.16407960653305054,
-0.2195379137992859,
0.08231627941131592,
-0.04740828275680542,
0.14645308256149292,
0.16211377084255219,
-0.1990698277950287,
-0.14656074345111847,
0.2585705816745758,
0.024545224383473396,
0.431408166885376,
-0.2868155539035797,
-0.07698698341846466,
0.0570710115134716,
0.13203375041484833,
-0.06447365134954453,
-0.036576658487319946,
-0.03539184480905533,
0.009598728269338608,
0.20402854681015015,
0.05827569216489792,
0.21162226796150208,
0.14426329731941223,
-0.26770544052124023,
0.16817191243171692,
0.15613266825675964,
0.24947002530097961,
0.16216158866882324,
0.24577583372592926,
-0.31815090775489807,
0.513438880443573,
0.11246757209300995,
-0.02782229334115982,
-0.0005712334532290697,
0.040009550750255585,
-0.1952536255121231,
-0.05106682330369949,
0.0564311146736145,
-0.0984671488404274,
-0.14987310767173767,
-0.08407960832118988,
-0.26779234409332275,
-0.22555558383464813,
0.20832909643650055,
0.23342695832252502,
-0.20011867582798004,
0.24247576296329498,
0.18907344341278076,
0.13920599222183228,
-0.19340646266937256,
0.052516207098960876,
-0.04523731395602226,
-0.14183256030082703,
-0.17843186855316162,
0.32796716690063477,
0.1838318407535553,
-0.4275372326374054,
0.26509159803390503,
0.014986269176006317,
0.2709152400493622,
-0.4879368543624878,
-0.3058973550796509,
-0.0797518640756607,
0.24950595200061798,
0.009533662348985672,
0.07675012201070786,
-0.036494430154561996,
0.10260604321956635,
0.4438357353210449,
0.054363176226615906,
0.09175288677215576,
-0.15110862255096436,
0.08789707720279694,
-0.08651114255189896,
-0.24482771754264832,
-0.22107331454753876,
0.1313733160495758,
-0.3052619397640228,
0.326286643743515,
-0.15483802556991577,
0.23474490642547607,
-0.46401673555374146,
-0.13890397548675537,
-0.32603365182876587,
0.3793182969093323,
-0.3193279206752777,
-0.14428044855594635,
0.08013040572404861,
0.05333258956670761,
0.25404396653175354,
0.19097591936588287,
0.32025444507598877,
0.09937399625778198,
0.4818068742752075,
0.19111016392707825,
-0.2494708150625229,
-0.0012374036014080048,
-0.2800084352493286,
0.14488045871257782,
-0.057253189384937286,
-0.20167966187000275,
0.17517338693141937,
0.4624043107032776,
0.09028253704309464,
-0.21439579129219055,
0.028950314968824387,
0.5371639728546143,
0.3760206699371338,
-0.602648913860321,
0.025400973856449127,
0.15686506032943726,
0.1501508206129074,
0.011498438194394112,
0.08235637098550797,
0.11651130765676498,
0.4138917922973633,
-0.07263597846031189,
-0.010402949526906013,
-0.08066796511411667,
0.07769420742988586,
0.3648618459701538,
0.09871034324169159,
0.07979640364646912,
0.21442410349845886,
-0.04904133081436157,
-0.2185257375240326,
0.00993805006146431,
0.3268944025039673,
-0.5410404801368713,
-0.07425025850534439,
0.2720130383968353,
-0.4377066493034363,
-0.015520536340773106,
-0.0675475224852562,
0.0392594151198864,
-0.10365511476993561,
0.22380587458610535,
0.12284006178379059,
0.24155691266059875,
-0.31142473220825195,
-0.1531735509634018,
-0.3678252696990967,
0.11484258621931076,
0.04064232110977173,
0.010596657171845436,
-0.10386800020933151,
0.01808253489434719,
-0.20687970519065857,
0.01615154556930065,
0.14468872547149658,
0.07866300642490387,
0.36089810729026794,
0.6846511363983154,
-0.47152841091156006,
0.2879043519496918,
0.2935221195220947,
-0.0875193402171135,
0.17422904074192047,
-0.2717556953430176,
0.21508124470710754,
-0.12408314645290375,
0.035904183983802795,
-0.25071364641189575,
0.16394618153572083,
-0.02069077640771866,
0.4521368443965912,
0.33757099509239197,
0.00820461381226778,
0.22944888472557068,
-0.07574058324098587,
-0.014095230028033257,
0.0696137398481369,
0.2363661676645279,
0.24771729111671448,
-0.4594484865665436,
0.27273234724998474,
-0.001665215939283371,
-0.36053264141082764,
0.04710497707128525,
-0.020983772352337837,
-0.05973271653056145,
0.010536443442106247,
0.09093527495861053,
-0.018147852271795273,
0.07596097886562347,
-0.09917224943637848,
0.09925352782011032,
0.029601193964481354,
0.5115151405334473,
0.10610035061836243,
0.20293259620666504,
-0.15986457467079163,
-0.026217008009552956,
0.10001688450574875,
-0.000649881549179554,
-0.2621959447860718,
-0.32641735672950745,
0.5467151403427124,
-0.6228099465370178,
0.1241489052772522,
-0.052309729158878326,
-0.07802732288837433,
0.030311260372400284,
0.053356535732746124,
-0.7121003270149231,
0.29885390400886536,
-0.30980485677719116,
-0.5994611382484436,
0.2013067603111267,
-0.10339736938476562,
0.16415813565254211,
-0.11843670159578323,
0.2232937216758728,
-0.1611691117286682
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Hi ! Thanks for reporting.
Currently there's no way to specify this.
When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646))
That means it keeps the permissions specified by the `tempfile.NamedTemporaryFile` object, i.e. `-rw-------` instead of `-rw-r--r--`. Improving this could be a nice first contribution to the library :) | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 67 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hi ! Thanks for reporting.
Currently there's no way to specify this.
When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646))
That means it keeps the permissions specified by the `tempfile.NamedTemporaryFile` object, i.e. `-rw-------` instead of `-rw-r--r--`. Improving this could be a nice first contribution to the library :) | [
-0.1139017641544342,
0.2815674841403961,
-0.0789346992969513,
0.1177361011505127,
-0.025967638939619064,
0.09056609123945236,
0.40601423382759094,
0.11466355621814728,
-0.09347927570343018,
-0.0789991170167923,
-0.17398087680339813,
0.12208805233240128,
-0.059026747941970825,
-0.2090667486190796,
-0.021160416305065155,
0.06701585650444031,
0.1375492960214615,
0.11998027563095093,
-0.02091781049966812,
-0.07752209901809692,
-0.08099526166915894,
-0.06338854879140854,
-0.07038185000419617,
-0.02246609330177307,
-0.1490497589111328,
-0.22742348909378052,
0.2636190950870514,
0.21657899022102356,
0.0505266934633255,
-0.24894727766513824,
0.3933259844779968,
0.560393214225769,
0.07887212187051773,
0.03681103140115738,
-0.00011671097308862954,
-0.12581491470336914,
0.0032830163836479187,
-0.10008123517036438,
0.010359099134802818,
0.1562264859676361,
0.0038825348019599915,
-0.19658000767230988,
0.05589690059423447,
-0.10560881346464157,
-0.07175692915916443,
-0.009751682169735432,
0.07052158564329147,
-0.6625339984893799,
0.5320058465003967,
0.09112244099378586,
0.16123420000076294,
-0.0026608482003211975,
-0.19055433571338654,
0.23747265338897705,
0.33617204427719116,
0.0495373010635376,
-0.2999816834926605,
0.12372133135795593,
0.25328314304351807,
-0.15942898392677307,
-0.09955281764268875,
0.14856725931167603,
-0.2521521747112274,
0.14002487063407898,
0.27181297540664673,
-0.09976217150688171,
-0.4176005423069,
-0.47728559374809265,
0.0809202566742897,
0.2960631251335144,
0.7476208209991455,
-0.23502832651138306,
-0.602838397026062,
-0.30800285935401917,
0.05442385748028755,
0.04134249687194824,
0.4234344959259033,
0.3541354835033417,
0.08775682747364044,
0.26511824131011963,
-0.2606978714466095,
-0.04380463808774948,
-0.2725633978843689,
0.07077622413635254,
0.3593448996543884,
-0.06164082884788513,
-0.08565119653940201,
0.14998996257781982,
0.10020153224468231,
-0.11125388741493225,
0.12715831398963928,
0.15061748027801514,
-0.3372897505760193,
0.47440409660339355,
-0.31533366441726685,
0.1050155758857727,
-0.2302902638912201,
0.2877425253391266,
0.19541704654693604,
0.4209033250808716,
0.23299090564250946,
0.20707860589027405,
-0.0053033712320029736,
0.17053872346878052,
0.11389638483524323,
0.2038518488407135,
0.336015522480011,
0.35912051796913147,
0.5324928164482117,
-0.2701570987701416,
-0.024704618379473686,
-0.042758509516716,
0.031254999339580536,
-0.36726489663124084,
0.10352130234241486,
0.19411376118659973,
0.030170895159244537,
-0.22662869095802307,
0.20464672148227692,
0.0779339149594307,
-0.10022614896297455,
-0.1675160527229309,
0.08205945044755936,
0.2720397114753723,
0.07984659820795059,
0.012808937579393387,
0.0658995658159256,
0.17474476993083954,
0.009433504194021225,
-0.21593867242336273,
0.013143785297870636,
-0.3183414041996002,
-0.3558567762374878,
0.42907822132110596,
0.40105459094047546,
-0.2912054657936096,
0.0979926735162735,
0.18066412210464478,
0.117693692445755,
-0.18557700514793396,
0.4365370571613312,
-0.12717804312705994,
0.46565771102905273,
0.41694560647010803,
0.12080328166484833,
0.33177271485328674,
0.026574116200208664,
0.09284155070781708,
-0.1925935447216034,
0.28295430541038513,
-0.2726331651210785,
-0.2166965901851654,
0.17521792650222778,
-0.026947200298309326,
-0.12245170772075653,
0.29854288697242737,
-0.41544923186302185,
0.03843001648783684,
0.502469539642334,
-0.13701505959033966,
0.5040850043296814,
0.23932364583015442,
-0.08703707158565521,
-0.4691596031188965,
-0.11998820304870605,
0.3807286024093628,
-0.21054796874523163,
-0.04021412879228592,
-0.13333003222942352,
-0.05463207885622978,
-0.08191753178834915,
0.423509806394577,
-0.10997214168310165,
0.04557109251618385,
-0.10043671727180481,
0.26157963275909424,
0.5675192475318909,
-0.17852814495563507,
-0.5578046441078186,
0.024296164512634277,
0.21726711094379425,
-0.13523103296756744,
0.11793360859155655,
0.08603961765766144,
0.12297507375478745,
-0.12732653319835663,
-0.2840527296066284,
0.3851826786994934,
0.2767721712589264,
0.23493692278862,
0.13426458835601807,
-0.0928194522857666,
0.007756708189845085,
-0.0463656410574913,
-0.0722496509552002,
0.08978933095932007,
0.37588751316070557,
-0.356342077255249,
0.2464522123336792,
-0.22437575459480286,
0.2806272804737091,
0.4626380205154419,
0.1498909890651703,
-0.012264668941497803,
-0.004741242621093988,
-0.06460345536470413,
-0.5048750042915344,
0.28477564454078674,
-0.10485804826021194,
-0.38971444964408875,
-0.06088836491107941,
-0.45286935567855835,
0.10289973020553589,
-0.18952210247516632,
-0.2636236846446991,
-0.10187685489654541,
0.01718730852007866,
-0.15850317478179932,
0.05393967404961586,
-0.34113189578056335,
0.07772955298423767,
0.372866153717041,
0.12564697861671448,
0.09265037626028061,
-0.31702080368995667,
0.11527535319328308,
0.047662608325481415,
-0.1084340363740921,
-0.20969104766845703,
0.06054431572556496,
0.17266114056110382,
-0.0020271476823836565,
-0.28621208667755127,
0.3028354346752167,
0.1127103865146637,
0.11897092312574387,
-0.07513248175382614,
0.3147706687450409,
-0.005038397386670113,
-0.047680485993623734,
0.13103793561458588,
-0.2222432941198349,
-0.0586358942091465,
-0.07012246549129486,
-0.24423792958259583,
0.4377451539039612,
-0.1195913553237915,
0.030349336564540863,
-0.22492744028568268,
0.18315011262893677,
0.13236241042613983,
0.04657137021422386,
-0.21255932748317719,
-0.1815369427204132,
-0.03459436818957329,
0.19693802297115326,
0.3852103054523468,
0.13864672183990479,
0.01394461840391159,
0.029781021177768707,
0.40344566106796265,
0.22284021973609924,
0.14700135588645935,
-0.02029138058423996,
-0.2516341507434845,
0.03678780794143677,
0.3316294252872467,
0.34468981623649597,
0.23738735914230347,
0.02398109808564186,
0.290221631526947,
-0.24866032600402832,
0.3055890202522278,
-0.11376074701547623,
0.020351365208625793,
-0.09098361432552338,
0.14598442614078522,
-0.17945542931556702,
-0.10968401283025742,
-0.033092204481363297,
-0.13410773873329163,
0.23393937945365906,
0.01532590202987194,
0.08919160068035126,
-0.3397916257381439,
-0.10280578583478928,
-0.23078420758247375,
-0.1499902307987213,
0.22172312438488007,
-0.13832952082157135,
-0.5088285207748413,
-0.028106337413191795,
-0.21925459802150726,
0.2135237604379654,
-0.07016512751579285,
0.1367035210132599,
-0.35606905817985535,
0.09111428260803223,
-0.050691455602645874,
-0.286406010389328,
-0.27283748984336853,
0.11885567009449005,
0.08051437139511108,
-0.02115807496011257,
0.2400403469800949,
-0.5178111791610718,
0.2112215757369995,
0.11596649140119553,
0.2316274344921112,
-0.32987749576568604,
0.004156455397605896,
-0.16368509829044342,
0.008272325620055199,
0.08843991160392761,
-0.27888450026512146,
0.14764219522476196,
-0.1584482192993164,
-0.03145783394575119,
-0.10589230805635452,
-0.31525638699531555,
-0.21384909749031067,
0.003410542383790016,
-0.037889014929533005,
0.11635378003120422,
-0.25802209973335266,
-0.19514036178588867,
-0.18018777668476105,
-0.18530036509037018,
0.6918122172355652,
0.12873975932598114,
0.22761951386928558,
0.16147027909755707,
-0.18223203718662262,
-0.2958165109157562,
-0.2885788679122925,
0.1839357614517212,
-0.35510915517807007,
-0.461579293012619,
0.3765578269958496,
-0.4756706655025482,
-0.3748241364955902,
0.15811751782894135,
0.0823027640581131,
0.14959779381752014,
0.42214155197143555,
-0.020189844071865082,
-0.06831350922584534,
-0.2880266308784485,
0.252021461725235,
-0.2304072082042694,
0.19999398291110992,
0.07817971706390381,
0.09895618259906769,
0.16333109140396118,
-0.0432465597987175,
-0.18222112953662872,
0.15200898051261902,
-0.029681354761123657,
-0.22164711356163025,
0.1875087320804596,
0.0989706739783287,
0.08296655118465424,
0.8199108242988586,
0.40766602754592896,
0.2582356929779053,
0.30228137969970703,
0.3216729462146759,
0.6892606616020203,
0.017400965094566345,
-0.07833787053823471,
0.1767946481704712,
-0.04833710193634033,
0.02421744167804718,
0.07917904108762741,
0.132107675075531,
-0.13525310158729553,
0.0937081128358841,
0.05077752843499184,
-0.2705007791519165,
-0.47049999237060547,
-0.15254604816436768,
-0.23571351170539856,
0.11073863506317139,
0.03676285967230797,
0.0643666610121727,
-0.23486346006393433,
-0.2928418219089508,
0.02682267501950264,
0.3534122705459595,
0.1891915500164032,
0.28687965869903564,
-0.25679880380630493,
0.048253383487463,
-0.29223549365997314,
0.3158988952636719,
-0.06029415503144264,
0.48207080364227295,
-0.08320929855108261,
0.15534859895706177,
0.22872565686702728,
0.3111587464809418,
0.3185238838195801,
-0.34724363684654236,
0.16434669494628906,
-0.1408587545156479,
0.2853541374206543,
0.10828424245119095,
-0.20878851413726807,
0.4010734260082245,
0.34123435616493225,
-0.03381110355257988,
0.06381535530090332,
0.011095695197582245,
-0.28347480297088623,
-0.4190142750740051,
-0.10381540656089783,
-0.05510100722312927,
-0.10895203053951263,
0.0691470205783844,
0.14114367961883545,
-0.2338649183511734,
-0.07339183241128922,
0.2750278413295746,
-0.38931024074554443,
-0.07735224068164825,
-0.10780800879001617,
-0.15990963578224182,
0.08545416593551636,
-0.00139569491147995,
0.007604362443089485,
0.47253233194351196,
-0.04214605689048767,
0.03401273116469383,
0.4962300658226013,
-0.019878864288330078,
0.12192252278327942,
0.4359246790409088,
-0.24144196510314941,
0.2070126235485077,
-0.2778048515319824,
-0.1987351030111313,
0.33107152581214905,
0.06025921553373337,
-0.429129958152771,
0.1276291012763977,
0.02011147513985634,
-0.20264573395252228,
-0.1888418346643448,
-0.02835012972354889,
-0.07126956433057785,
0.05433552712202072,
-0.12405544519424438,
-0.6317949891090393,
0.3504827916622162,
0.5621964335441589,
-0.3145396113395691,
0.46333664655685425,
-0.07606656849384308,
-0.33739224076271057,
0.1291896402835846,
0.19390499591827393,
0.7914400100708008,
-0.24127309024333954,
0.3664590120315552,
-0.341094970703125,
-0.17551305890083313,
0.21100164949893951,
-0.2823663651943207,
0.05960748717188835,
-0.5691586136817932,
-0.1315513551235199,
-0.10902682691812515,
-0.12614129483699799,
0.04644128307700157,
0.3606370687484741,
0.12352190911769867,
0.15014173090457916,
-0.09420531988143921,
-0.1214989423751831,
-0.25784873962402344,
-0.1336308866739273,
-0.19908756017684937,
-0.44165509939193726,
0.10405544191598892,
0.08687545359134674,
-0.2521268129348755,
0.03337659314274788,
0.0072981324046850204,
-0.07975480705499649,
-0.17536143958568573,
0.1946573406457901,
-0.3510727286338806,
0.009486362338066101,
-0.7321094274520874,
0.055546194314956665,
-0.08023299276828766,
-0.0746990367770195,
0.2835651934146881,
0.24199126660823822,
0.2655457854270935,
0.28179076313972473,
-0.06898453086614609,
-0.030594725161790848,
0.30155518651008606,
0.0778154507279396,
-0.24952441453933716,
0.09094234555959702,
0.3329409956932068,
0.15678954124450684,
0.14417144656181335,
-0.24410492181777954,
-0.23369161784648895,
-0.309715211391449,
-0.13368551433086395,
0.1679021418094635,
0.06779616326093674,
-0.21807289123535156,
0.07140116393566132,
-0.12524688243865967,
-0.02805180847644806,
0.05175682529807091,
0.03432238847017288,
0.5124655365943909,
-0.01321818120777607,
0.465654194355011,
-0.2672816812992096,
-0.26421090960502625,
0.08396824449300766,
0.43224215507507324,
-0.04695049673318863,
-0.14427399635314941,
0.3026231825351715,
-0.16809199750423431,
-0.2374901920557022,
-0.13432466983795166,
0.18463927507400513,
0.21246375143527985,
-0.40133729577064514,
0.014873994514346123,
0.1795187145471573,
-0.12597210705280304,
0.1792059689760208,
-0.3275534212589264,
0.02131161466240883,
0.15815681219100952,
0.04977799579501152,
-0.3807331323623657,
-0.5134581327438354,
-0.19813303649425507,
-0.4549816846847534,
0.3089855909347534,
0.145405113697052,
-0.5356980562210083,
0.11617028713226318,
0.03305615484714508,
-0.18897852301597595,
-0.18972042202949524,
0.0723731592297554,
0.07741871476173401,
0.296460896730423,
0.09872730076313019,
0.0496409572660923,
-0.18795523047447205,
-0.14916932582855225,
0.000780472531914711,
-0.19110970199108124,
-0.11849112808704376,
-0.15992610156536102,
0.17779633402824402,
0.14365893602371216,
-0.4071890711784363,
0.06357686966657639,
-0.48779845237731934,
-0.07300081849098206,
-0.4753142297267914,
0.07467587292194366,
0.25863268971443176,
0.20494376122951508,
0.29999756813049316,
0.15832743048667908,
0.014529615640640259,
-0.22637560963630676,
0.17821460962295532,
-0.14829331636428833,
-0.2318180352449417,
-0.20764902234077454,
0.23734013736248016,
-0.30533814430236816,
-0.07932892441749573,
0.1403387486934662,
-0.08588036149740219,
0.1546078622341156,
0.02719419077038765,
0.07240352034568787,
-0.013103477656841278,
-0.1753615438938141,
0.08595988899469376,
0.34373554587364197,
0.142719566822052,
-0.007609490305185318,
0.006148580461740494,
0.2816978394985199,
0.039188776165246964,
0.03775031119585037,
-0.16422374546527863,
0.1490291953086853,
-0.15912804007530212,
0.06123946234583855,
0.35407504439353943,
0.2451784312725067,
-0.20894791185855865,
0.0863945335149765,
-0.09960543364286423,
-0.0632215216755867,
-0.3870139718055725,
0.3799755871295929,
0.05624969303607941,
0.0336996428668499,
0.032803021371364594,
0.45858100056648254,
0.2209557145833969,
0.16946342587471008,
0.3566690683364868,
0.10391398519277573,
0.20195019245147705,
0.37039509415626526,
-0.3335016965866089,
0.12434011697769165,
-0.6093453764915466,
-0.028099995106458664,
0.004825860261917114,
0.14108671247959137,
0.33325648307800293,
0.15623238682746887,
0.36206111311912537,
0.060690026730298996,
-0.33115720748901367,
0.09098327159881592,
-0.06582780182361603,
-0.08247999846935272,
-0.19363848865032196,
0.07948362082242966,
0.13199517130851746,
0.014935001730918884,
-0.28875571489334106,
-0.21051886677742004,
-0.2986370921134949,
0.2438526302576065,
0.2141701579093933,
0.1617504358291626,
0.03011566400527954,
0.04339795932173729,
0.24816539883613586,
0.11134906858205795,
-0.14658205211162567,
-0.09888652712106705,
-0.40355753898620605,
-0.13354498147964478,
0.0792054533958435,
0.059820063412189484,
0.08887992799282074,
-0.02125321701169014,
0.1280929297208786,
0.23678474128246307,
0.3385290801525116,
0.052407145500183105,
-0.175622820854187,
0.3021793067455292,
-0.08642932772636414,
-0.34947651624679565,
0.08305633068084717,
-0.05351363867521286,
-0.03627306967973709,
-0.05120648071169853,
-0.23408164083957672,
0.04991455376148224,
0.08195358514785767,
0.08205045014619827,
-0.16320224106311798,
-0.5107892751693726,
0.03522682189941406,
-0.025690041482448578,
0.2329099476337433,
0.02534547820687294,
0.6404663324356079,
0.013388518244028091,
0.10713257640600204,
-0.566756546497345,
0.004858711734414101,
0.403106153011322,
0.3281864821910858,
0.409724622964859,
-0.01841423660516739,
-0.043703243136405945,
0.10094203054904938,
-0.47953447699546814,
0.05234755948185921,
0.20270226895809174,
0.3064166307449341,
-0.044740576297044754,
-0.15516069531440735,
0.15622609853744507,
-0.061479322612285614,
0.5907255411148071,
-0.15865549445152283,
0.545505940914154,
0.33263978362083435,
-0.18617857992649078,
-0.22070850431919098,
0.14997568726539612,
-0.029015323147177696,
0.14110516011714935,
-0.42604050040245056,
0.10802537947893143,
0.14583615958690643,
-0.034325823187828064,
-0.2017914205789566,
-0.139267235994339,
0.17582379281520844,
0.40926527976989746,
0.5364009141921997,
0.25656870007514954,
-0.07387399673461914,
0.06878124922513962,
0.28279170393943787,
-0.455879807472229,
0.09724075347185135,
-0.22182287275791168,
-0.10097981244325638,
-0.21700260043144226,
0.14114262163639069,
-0.4870670437812805,
-0.07994501292705536,
-0.42249593138694763,
-0.04249315708875656,
-0.1411927491426468,
0.2920139729976654,
0.0026115793734788895,
0.19955044984817505,
-0.10776352882385254,
0.07741297036409378,
0.2919272780418396,
0.2175249457359314,
-0.12326626479625702,
0.27093440294265747,
-0.5050195455551147,
-0.2647045850753784,
0.37975889444351196,
-0.3792262673377991,
-0.13790909945964813,
0.1169537752866745,
0.4003452658653259,
0.28825661540031433,
-0.19263292849063873,
-0.2629813551902771,
0.2095755934715271,
0.2626619040966034,
-0.34461477398872375,
-0.14465542137622833,
-0.09224431216716766,
-0.3116265535354614,
0.14022012054920197,
-0.1682659089565277,
0.5989023447036743,
0.09177771210670471,
-0.17893217504024506,
0.06500104069709778,
-0.26153749227523804
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Hi @lhoestq,
I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1871) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1590), post creation to 0644 inorder for group and others to read it? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 47 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hi @lhoestq,
I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1871) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1590), post creation to 0644 inorder for group and others to read it? | [
0.06293822824954987,
0.03598104417324066,
-0.11017090082168579,
0.25814199447631836,
0.060199618339538574,
0.13293126225471497,
0.3463630974292755,
0.09343522787094116,
-0.29626691341400146,
-0.030303120613098145,
-0.2803182005882263,
-0.05260375142097473,
0.08457176387310028,
-0.31343546509742737,
-0.02088329941034317,
0.07891322672367096,
0.09932540357112885,
0.0465858057141304,
0.09405254572629929,
-0.02479851245880127,
-0.11668533831834793,
-0.0544997900724411,
-0.045004673302173615,
0.022196073085069656,
-0.31777364015579224,
-0.10338137298822403,
0.19088402390480042,
0.2698517441749573,
0.15086911618709564,
-0.20025813579559326,
0.2497224062681198,
0.46947985887527466,
0.059872083365917206,
0.349414199590683,
-0.00011459898814791813,
-0.11247088760137558,
0.011985249817371368,
-0.1353015899658203,
0.11816178262233734,
0.1928916871547699,
-0.018246283754706383,
-0.22133423388004303,
-0.11130283027887344,
-0.1529671996831894,
-0.16108489036560059,
0.08375421911478043,
0.1846528798341751,
-0.5527174472808838,
0.5385573506355286,
0.1245616152882576,
0.1720823496580124,
0.005743160843849182,
-0.19515001773834229,
0.2009531855583191,
0.24075502157211304,
0.003683336079120636,
-0.326252818107605,
0.030217181891202927,
0.2792118191719055,
-0.045449718832969666,
0.002083227038383484,
0.11008654534816742,
-0.3180334270000458,
0.05319613218307495,
0.21499931812286377,
-0.056622326374053955,
-0.3709010183811188,
-0.5180932283401489,
0.09479250013828278,
0.1781885027885437,
0.6756845712661743,
-0.11138560622930527,
-0.5353288054466248,
-0.28122368454933167,
-0.08956185728311539,
0.09039884060621262,
0.4896015226840973,
0.31815555691719055,
0.023046206682920456,
0.3016813099384308,
-0.3137831687927246,
0.06712008267641068,
-0.32293763756752014,
-0.04458022862672806,
0.28220441937446594,
-0.08712927997112274,
-0.1731177568435669,
0.08098380267620087,
-0.06322889029979706,
-0.10685557126998901,
0.04290895536541939,
0.046272069215774536,
-0.21842384338378906,
0.3654843866825104,
-0.19814132153987885,
0.15554887056350708,
-0.1800215244293213,
0.2678588628768921,
0.11119911819696426,
0.1944088637828827,
0.2835124433040619,
0.19637978076934814,
0.030971165746450424,
0.1938636600971222,
0.024697445333003998,
0.14630895853042603,
0.2879430055618286,
0.35495421290397644,
0.5183432102203369,
-0.349618524312973,
-0.19950339198112488,
-0.06101968139410019,
-0.028425011783838272,
-0.3210819959640503,
0.04149867221713066,
0.15820211172103882,
-0.035494521260261536,
-0.2328120619058609,
0.2620950937271118,
0.03512564301490784,
-0.07126156240701675,
-0.16066204011440277,
0.04065948724746704,
0.19719888269901276,
0.04806213453412056,
-0.08666682988405228,
0.04071991145610809,
0.12884321808815002,
-0.026940468698740005,
-0.2982856035232544,
-0.02837287075817585,
-0.4603438377380371,
-0.3541783094406128,
0.47440633177757263,
0.36910077929496765,
-0.2717587649822235,
0.09368077665567398,
0.08429298549890518,
0.17079153656959534,
-0.23673245310783386,
0.3412818908691406,
-0.13339973986148834,
0.5103936791419983,
0.40801873803138733,
0.22218793630599976,
0.35227519273757935,
0.06695935130119324,
0.04418112337589264,
-0.11798758804798126,
0.29868245124816895,
-0.3013741970062256,
-0.2637013792991638,
0.3343164622783661,
0.014955775812268257,
-0.0801658034324646,
0.379568487405777,
-0.2512299716472626,
0.018580259755253792,
0.6816844940185547,
-0.1709812581539154,
0.3515644371509552,
0.2320220172405243,
-0.23747454583644867,
-0.5314833521842957,
-0.1516960859298706,
0.3780291974544525,
-0.16938821971416473,
0.07424373924732208,
0.03579045832157135,
-0.0674910843372345,
-0.10188741236925125,
0.42175111174583435,
0.008362025022506714,
0.058215536177158356,
-0.11985868215560913,
0.28989583253860474,
0.4725683927536011,
-0.193991020321846,
-0.5428635478019714,
0.12677818536758423,
0.1299709975719452,
-0.06647253781557083,
0.3089481592178345,
0.04647780582308769,
-0.042741164565086365,
-0.2918027639389038,
-0.18042194843292236,
0.1915934532880783,
0.21203240752220154,
0.1901736557483673,
-0.024766555055975914,
0.04321212321519852,
-0.048228904604911804,
-0.06223500892519951,
-0.13002586364746094,
0.19859427213668823,
0.32959872484207153,
-0.3414553105831146,
0.21429666876792908,
-0.17138203978538513,
0.2108125388622284,
0.41860294342041016,
0.07362953573465347,
0.06690425425767899,
0.02912222221493721,
-0.016331080347299576,
-0.4610424041748047,
0.2555754780769348,
-0.021851101890206337,
-0.4010992646217346,
0.0054410845041275024,
-0.4914398789405823,
0.1290144920349121,
-0.3363109827041626,
-0.34060850739479065,
-0.06479786336421967,
0.06326743960380554,
0.01835918053984642,
0.07618676126003265,
-0.3664519190788269,
0.2044518142938614,
0.5146682262420654,
0.13388074934482574,
0.028247226029634476,
-0.2692754566669464,
0.039406731724739075,
-0.1339566707611084,
-0.08652719110250473,
-0.25057709217071533,
0.04640645533800125,
0.27394068241119385,
-0.04653386399149895,
-0.2661619782447815,
0.2970260977745056,
0.0823475793004036,
0.16736125946044922,
-0.11723608523607254,
0.39387163519859314,
-0.07880860567092896,
0.07129324972629547,
0.0673544704914093,
-0.23244164884090424,
-0.018589802086353302,
-0.1873425543308258,
-0.20112040638923645,
0.39713066816329956,
-0.07319934666156769,
-0.02776098996400833,
-0.22256985306739807,
0.019858190789818764,
0.11116911470890045,
0.03759605810046196,
-0.2298995405435562,
-0.1336538940668106,
0.0004849173128604889,
0.261147677898407,
0.3052655756473541,
0.14624038338661194,
0.019276738166809082,
0.058171987533569336,
0.39568892121315,
0.1736741065979004,
0.010814644396305084,
-0.1291411817073822,
-0.14726731181144714,
0.006796393543481827,
0.20614966750144958,
0.1864342838525772,
0.2714273929595947,
0.07164321094751358,
0.32545384764671326,
-0.15342284739017487,
0.30505192279815674,
-0.20417539775371552,
0.030148349702358246,
0.04346201568841934,
0.08676215261220932,
-0.12322699278593063,
-0.11945401877164841,
-0.01135252695530653,
0.0347762256860733,
0.3009333312511444,
0.113438181579113,
0.046524930745363235,
-0.46102166175842285,
-0.08700648695230484,
-0.07429065555334091,
-0.24540382623672485,
0.19027918577194214,
0.03198697790503502,
-0.5370312929153442,
-0.06656060367822647,
-0.26758700609207153,
0.27924561500549316,
-0.03336897864937782,
0.07613997161388397,
-0.29466015100479126,
0.12340328842401505,
-0.01750606670975685,
-0.1909065544605255,
-0.3536761999130249,
0.12227104604244232,
0.00234188511967659,
0.0004377644509077072,
0.2619785666465759,
-0.625410258769989,
0.24114593863487244,
-0.08823338896036148,
0.2667480707168579,
-0.09684807062149048,
0.0500752329826355,
-0.11856770515441895,
-0.10746003687381744,
0.14768975973129272,
-0.48176315426826477,
0.11097346246242523,
-0.18082895874977112,
0.09870889782905579,
0.02893187291920185,
-0.23330990970134735,
-0.25782009959220886,
-0.016946909949183464,
0.05931193381547928,
-0.0710199624300003,
-0.23321399092674255,
-0.2273847758769989,
-0.18991035223007202,
-0.15115943551063538,
0.5195326805114746,
0.10571533441543579,
0.2691640257835388,
0.22448313236236572,
-0.34144866466522217,
-0.25076571106910706,
-0.296997606754303,
0.2749943137168884,
-0.4282776415348053,
-0.5996938347816467,
0.3007458746433258,
-0.5475543141365051,
-0.44641080498695374,
0.10922028124332428,
0.25047749280929565,
0.13467468321323395,
0.38458073139190674,
-0.040742143988609314,
-0.12197353690862656,
-0.19172459840774536,
0.3223769962787628,
-0.20720890164375305,
0.17615093290805817,
0.06593962758779526,
0.08321543782949448,
0.17084641754627228,
-0.09174855053424835,
-0.12169690430164337,
0.06546782702207565,
-0.05776455998420715,
-0.19072380661964417,
0.21624496579170227,
0.1568777859210968,
0.19970132410526276,
0.7097818851470947,
0.5631090998649597,
0.32395005226135254,
0.252713143825531,
0.2194504588842392,
0.6763732433319092,
0.03184780851006508,
-0.17410342395305634,
0.20448221266269684,
-0.04733556509017944,
-0.09003794193267822,
0.2030479609966278,
0.1669004261493683,
-0.040180690586566925,
-0.03745926544070244,
0.07815398275852203,
-0.40975627303123474,
-0.42545047402381897,
-0.24075989425182343,
-0.03597838431596756,
0.22231492400169373,
0.1499996781349182,
0.04314602166414261,
-0.3063414990901947,
-0.33339938521385193,
-0.04458887130022049,
0.48862791061401367,
0.15173640847206116,
0.2371123731136322,
-0.33979395031929016,
0.034618981182575226,
-0.24036777019500732,
0.33054518699645996,
0.066702701151371,
0.4926595091819763,
-0.14938294887542725,
0.15003564953804016,
0.2766020596027374,
0.30186727643013,
0.4911457300186157,
-0.39160066843032837,
0.24844510853290558,
-0.03509528934955597,
0.26652488112449646,
0.28472888469696045,
-0.11261260509490967,
0.292728990316391,
0.4071049392223358,
0.18647488951683044,
0.21050503849983215,
0.09347999840974808,
-0.2875422537326813,
-0.48429062962532043,
-0.09761021286249161,
-0.09730116277933121,
-0.1868254691362381,
0.0223422609269619,
0.15136948227882385,
-0.024543792009353638,
-0.12555882334709167,
0.2902858257293701,
-0.3091268241405487,
-0.12327811121940613,
0.023030411452054977,
-0.04871455579996109,
0.16580256819725037,
0.012725397944450378,
0.05917586758732796,
0.3365139067173004,
0.02490905486047268,
0.08567649126052856,
0.4946666359901428,
0.09832938760519028,
0.07670782506465912,
0.4088822603225708,
-0.28431421518325806,
0.2972419559955597,
-0.21154487133026123,
-0.3195391893386841,
0.34782931208610535,
0.15008489787578583,
-0.34698036313056946,
-0.11149904876947403,
-0.030395761132240295,
-0.19061534106731415,
-0.23682337999343872,
-0.08686231076717377,
0.024000555276870728,
0.011148751713335514,
-0.29025980830192566,
-0.6117978692054749,
0.3529455363750458,
0.5719922184944153,
-0.3593299984931946,
0.20938600599765778,
-0.2003004401922226,
-0.32641738653182983,
0.08290449529886246,
0.007739610970020294,
0.9369333982467651,
-0.22578389942646027,
0.4095994234085083,
-0.2878212034702301,
-0.05821947753429413,
0.11933819204568863,
-0.3725889325141907,
0.12212952226400375,
-0.4467969238758087,
-0.27390918135643005,
-0.07542102783918381,
-0.07833416759967804,
0.07348566502332687,
0.43239790201187134,
0.1231994777917862,
0.11684339493513107,
0.04312203824520111,
0.005522936582565308,
-0.20577110350131989,
-0.16884905099868774,
-0.06320350617170334,
-0.271817684173584,
0.09073736518621445,
0.09236619621515274,
-0.14872778952121735,
0.12555710971355438,
0.0606459304690361,
-0.043181415647268295,
-0.2532048225402832,
0.273029088973999,
-0.21867196261882782,
-0.00006172806024551392,
-0.6532604694366455,
0.0261091198772192,
-0.18720842897891998,
-0.11619088798761368,
0.17836758494377136,
0.25107482075691223,
0.361055850982666,
0.3228231370449066,
-0.08591610193252563,
-0.0651189535856247,
0.37879547476768494,
0.14975546300411224,
-0.25263065099716187,
0.08368800580501556,
0.35466378927230835,
0.12616407871246338,
0.13579463958740234,
-0.2878214716911316,
-0.20107533037662506,
-0.21888267993927002,
-0.376090943813324,
0.06573662161827087,
0.12402092665433884,
-0.37650084495544434,
0.03645964711904526,
-0.13044385612010956,
0.007648702710866928,
0.0330536924302578,
0.06856318563222885,
0.39425671100616455,
-0.07367797940969467,
0.5132027864456177,
-0.32886388897895813,
-0.33342841267585754,
0.10960526764392853,
0.561951220035553,
0.045189663767814636,
-0.17901413142681122,
0.22133886814117432,
-0.12820272147655487,
-0.3107995390892029,
-0.12084181606769562,
0.29190322756767273,
0.03425445035099983,
-0.23281091451644897,
-0.08312288671731949,
0.2627866566181183,
-0.07399554550647736,
0.198759987950325,
-0.3054351210594177,
0.11786261945962906,
0.048275820910930634,
0.14809246361255646,
-0.34662681818008423,
-0.4610135555267334,
-0.3081023097038269,
-0.2817836105823517,
0.19721801578998566,
0.25034260749816895,
-0.34228765964508057,
0.07724198698997498,
0.03995993733406067,
-0.22492295503616333,
-0.16540151834487915,
0.07964738458395004,
0.12473013252019882,
0.32864636182785034,
0.061068952083587646,
0.0714307501912117,
-0.18531493842601776,
-0.10631334036588669,
0.06446696072816849,
-0.1622418761253357,
-0.15813186764717102,
-0.05069301649928093,
0.15579675137996674,
0.26418283581733704,
-0.4123848080635071,
-0.03291748836636543,
-0.5092148780822754,
-0.1598363071680069,
-0.42609497904777527,
0.0991472601890564,
0.32997408509254456,
0.28347742557525635,
0.33468183875083923,
0.12554481625556946,
0.09007047116756439,
-0.10735256224870682,
0.30298882722854614,
-0.27267134189605713,
-0.12949396669864655,
-0.22070148587226868,
0.19965973496437073,
-0.3490002155303955,
-0.024183079600334167,
0.04743136838078499,
-0.11728861182928085,
0.14305958151817322,
0.039633553475141525,
0.13787367939949036,
-0.14587949216365814,
-0.01793881133198738,
0.11825895309448242,
0.2574124038219452,
0.09928794950246811,
-0.045639004558324814,
0.007557159289717674,
0.30282485485076904,
0.05584120750427246,
0.11224839091300964,
-0.1060924232006073,
0.21483217179775238,
-0.2088996171951294,
0.059026915580034256,
0.42157745361328125,
0.21099641919136047,
-0.07082559913396835,
0.13393662869930267,
-0.10053302347660065,
0.18097615242004395,
-0.33314788341522217,
0.3611842691898346,
0.02043529599905014,
0.156751349568367,
0.10773071646690369,
0.3992624282836914,
0.2707897126674652,
-0.038683049380779266,
0.39473551511764526,
0.23521354794502258,
0.1676780879497528,
0.2850368618965149,
-0.24649015069007874,
0.12940138578414917,
-0.625769853591919,
0.021626528352499008,
0.09707385301589966,
-0.05348360538482666,
0.3845939338207245,
0.042987145483493805,
0.20830288529396057,
-0.13421016931533813,
-0.23444266617298126,
0.08055689930915833,
-0.09503912925720215,
-0.16137191653251648,
-0.20042204856872559,
0.0921141505241394,
0.04543343931436539,
0.05616283416748047,
-0.32394394278526306,
-0.20235414803028107,
-0.18294666707515717,
0.130094975233078,
0.26803749799728394,
0.10000976175069809,
0.18395306169986725,
-0.08263044059276581,
0.2100667953491211,
0.14511384069919586,
-0.1546541303396225,
0.03012026473879814,
-0.49890774488449097,
-0.07506349682807922,
0.1768115609884262,
0.03508896753191948,
0.12879382073879242,
-0.03807006776332855,
0.10888843238353729,
0.1409476101398468,
0.26283329725265503,
-0.003315875306725502,
-0.2178947925567627,
0.38135555386543274,
-0.17831125855445862,
-0.40854769945144653,
0.1022910326719284,
-0.026367463171482086,
-0.020762313157320023,
-0.1616538166999817,
-0.14248771965503693,
-0.06847944855690002,
0.019869746640324593,
0.07455213367938995,
-0.3266836404800415,
-0.5774405598640442,
0.10149053484201431,
-0.11915535479784012,
0.06921377032995224,
0.06743518263101578,
0.5840871930122375,
-0.010356488637626171,
0.20939978957176208,
-0.518376886844635,
0.03700292482972145,
0.3841402530670166,
0.29939478635787964,
0.4569984972476959,
-0.2200733721256256,
0.01791234314441681,
0.05339355766773224,
-0.44610849022865295,
0.23656302690505981,
0.21841022372245789,
0.24414917826652527,
-0.11446645855903625,
-0.1923268437385559,
0.09105630964040756,
-0.07613971084356308,
0.4096999168395996,
-0.2829532027244568,
0.4167267978191376,
0.3628412187099457,
-0.17390625178813934,
-0.29694709181785583,
0.12107955664396286,
-0.002083027735352516,
0.10126456618309021,
-0.3733638823032379,
0.1825968623161316,
0.23044165968894958,
0.02422468364238739,
-0.25815826654434204,
0.01502297818660736,
0.1672135889530182,
0.45102301239967346,
0.4619303345680237,
0.2830507457256317,
0.008550211787223816,
0.0807434469461441,
0.19793206453323364,
-0.37079373002052307,
0.15165084600448608,
-0.1683865636587143,
-0.019381262362003326,
-0.1912817656993866,
0.040816448628902435,
-0.529850423336029,
-0.17727303504943848,
-0.38725894689559937,
-0.08815926313400269,
-0.19004590809345245,
0.3071480095386505,
0.1042417362332344,
0.07736124843358994,
-0.09271273761987686,
0.04763563349843025,
0.38534098863601685,
0.28077301383018494,
-0.15783345699310303,
0.35761725902557373,
-0.5059360861778259,
-0.293394535779953,
0.39692601561546326,
-0.3856610655784607,
-0.17345008254051208,
0.09973327070474625,
0.4679119884967804,
0.10503308475017548,
-0.16987550258636475,
-0.13751068711280823,
0.11445219069719315,
0.3514278531074524,
-0.3437355160713196,
-0.10909098386764526,
-0.0052556321024894714,
-0.33750826120376587,
0.03781794384121895,
-0.1925392895936966,
0.5049099922180176,
0.038017407059669495,
-0.19609972834587097,
0.13039125502109528,
-0.12354961037635803
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646) actually.
Apparently they set the default 0600 for temporary files for security reasons, so let's update the umask only after the file has been moved | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 45 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646) actually.
Apparently they set the default 0600 for temporary files for security reasons, so let's update the umask only after the file has been moved | [
-0.1486675888299942,
0.1404385268688202,
-0.07720546424388885,
0.029415808618068695,
0.12957990169525146,
0.04635791480541229,
0.3478870987892151,
0.03462396189570427,
-0.12994468212127686,
0.02007611095905304,
-0.13891653716564178,
-0.06765928119421005,
0.01857829838991165,
-0.27129241824150085,
-0.03812113776803017,
0.18400709331035614,
0.18726716935634613,
-0.05057249963283539,
0.02600220963358879,
-0.15043717622756958,
-0.17447501420974731,
-0.20320209860801697,
-0.12159402668476105,
-0.0883418470621109,
-0.2847401797771454,
-0.1473371684551239,
0.142110213637352,
0.29071271419525146,
-0.026803569868206978,
-0.20534393191337585,
0.38062307238578796,
0.6655229330062866,
0.12900592386722565,
0.14114388823509216,
-0.0001143173867603764,
-0.16952621936798096,
0.014489732682704926,
-0.09893067926168442,
-0.048088908195495605,
0.16560761630535126,
0.005617648363113403,
-0.1768369823694229,
-0.16704052686691284,
-0.12490887194871902,
-0.11642850935459137,
0.06794421374797821,
0.15166082978248596,
-0.6368480920791626,
0.4671247601509094,
0.23607803881168365,
0.1751861572265625,
-0.08754643052816391,
-0.190007746219635,
0.09389354288578033,
0.29602551460266113,
0.034090518951416016,
-0.15580213069915771,
0.1395668387413025,
0.3170788288116455,
-0.24802754819393158,
-0.07458307594060898,
0.05213480070233345,
-0.2701605260372162,
0.0413467213511467,
0.16905486583709717,
-0.12238482385873795,
-0.42460009455680847,
-0.5232905149459839,
0.14002709090709686,
0.14017648994922638,
0.5876787900924683,
-0.13202521204948425,
-0.6810226440429688,
-0.1792595237493515,
0.09880878776311874,
0.15776018798351288,
0.3485296964645386,
0.37100696563720703,
0.15107335150241852,
0.31285300850868225,
-0.47452032566070557,
0.02690117433667183,
-0.17940643429756165,
0.06495620310306549,
0.25949060916900635,
0.02272879332304001,
-0.056128524243831635,
0.12273341417312622,
0.0393802747130394,
-0.1470491737127304,
0.22663021087646484,
0.13502582907676697,
-0.29912078380584717,
0.4194129407405853,
-0.24551703035831451,
0.17749273777008057,
-0.22311097383499146,
0.43769365549087524,
0.1799854338169098,
0.41819190979003906,
0.08723895996809006,
0.20305466651916504,
0.07782658189535141,
0.16257834434509277,
-0.0534401573240757,
0.2625303268432617,
0.37959131598472595,
0.43616601824760437,
0.5410404205322266,
-0.17192290723323822,
-0.1775009036064148,
-0.031909339129924774,
0.039319656789302826,
-0.3863137364387512,
0.021678093820810318,
0.30150458216667175,
0.04886946827173233,
-0.14325940608978271,
0.10215998440980911,
0.053475938737392426,
-0.1453022062778473,
-0.14893759787082672,
0.025071240961551666,
0.3009733259677887,
0.04306592047214508,
-0.07395493984222412,
0.13843925297260284,
0.2581043839454651,
-0.0287792831659317,
-0.22749878466129303,
-0.041153326630592346,
-0.3239303529262543,
-0.2817671597003937,
0.4088192284107208,
0.36779341101646423,
-0.1878887563943863,
0.10118730366230011,
0.22757866978645325,
0.1257276087999344,
-0.19510303437709808,
0.4349658489227295,
-0.06727419793605804,
0.4382699131965637,
0.40450021624565125,
0.16627445816993713,
0.28710898756980896,
0.11790432035923004,
-0.003036726266145706,
-0.07218216359615326,
0.23935768008232117,
-0.24091565608978271,
-0.21447688341140747,
0.3211546540260315,
0.022324908524751663,
-0.11687684059143066,
0.2934512495994568,
-0.22961142659187317,
-0.0007309727370738983,
0.4634189307689667,
-0.03612464666366577,
0.45912492275238037,
0.20700664818286896,
-0.23148700594902039,
-0.38735735416412354,
-0.040234219282865524,
0.43321794271469116,
0.029905933886766434,
-0.08639081567525864,
-0.12368110567331314,
0.01839427649974823,
-0.04818882793188095,
0.39934805035591125,
-0.04717516899108887,
0.05483091622591019,
-0.15305574238300323,
0.18716256320476532,
0.46138104796409607,
-0.25873467326164246,
-0.6373531818389893,
0.07264822721481323,
0.14655323326587677,
-0.07867982238531113,
0.2618924379348755,
0.08661679178476334,
0.03771403431892395,
-0.19498850405216217,
0.004364676773548126,
0.34235846996307373,
0.24051910638809204,
0.25372081995010376,
0.06634965538978577,
-0.007734445855021477,
-0.06023500859737396,
0.020008180290460587,
0.0013895370066165924,
0.29039305448532104,
0.3742433786392212,
-0.3105027377605438,
0.2526361346244812,
-0.18244539201259613,
0.24964085221290588,
0.5188252925872803,
0.16984312236309052,
-0.0004984885454177856,
-0.023163283243775368,
0.006813276559114456,
-0.5052884221076965,
0.2801293134689331,
-0.0990811437368393,
-0.34322842955589294,
-0.017061442136764526,
-0.5464774370193481,
0.03393653780221939,
-0.295126736164093,
-0.29678624868392944,
-0.1955869495868683,
0.05668438971042633,
-0.07011432945728302,
0.06905132532119751,
-0.2528032958507538,
0.1593252420425415,
0.38450658321380615,
0.1605416238307953,
0.05664188787341118,
-0.14579211175441742,
0.1346706748008728,
-0.08164948970079422,
-0.12074907124042511,
-0.18074460327625275,
-0.04922031611204147,
0.30018484592437744,
-0.057060565799474716,
-0.277506560087204,
0.3385223150253296,
0.179116889834404,
0.07632389664649963,
0.004069209098815918,
0.2548028230667114,
0.023037781938910484,
0.2091919183731079,
0.08595404028892517,
-0.2223040908575058,
-0.10745835304260254,
-0.0814243033528328,
-0.2597411870956421,
0.45295077562332153,
-0.09959670901298523,
-0.06421252340078354,
-0.18379274010658264,
0.2674838602542877,
0.17736764252185822,
-0.00966593623161316,
-0.16972963511943817,
-0.16190266609191895,
0.05024251341819763,
0.2686879634857178,
0.38280391693115234,
0.1910719871520996,
0.05640305578708649,
0.028908945620059967,
0.44215506315231323,
0.22898784279823303,
0.14016073942184448,
-0.051192931830883026,
-0.13171643018722534,
0.08945344388484955,
0.22564946115016937,
0.3671810030937195,
0.29419249296188354,
0.05113622918725014,
0.2727998197078705,
-0.12565451860427856,
0.39815035462379456,
-0.1889786571264267,
-0.023252494633197784,
-0.058945029973983765,
0.03031180240213871,
-0.13923943042755127,
-0.10111380368471146,
-0.01798292249441147,
-0.13651925325393677,
0.3469207286834717,
0.05435354262590408,
0.1654340773820877,
-0.3396594524383545,
-0.12098273634910583,
-0.19774237275123596,
-0.13412217795848846,
0.23950816690921783,
-0.02437712624669075,
-0.5376530289649963,
-0.07394670695066452,
-0.18177497386932373,
0.20304688811302185,
-0.08115166425704956,
0.20604322850704193,
-0.19020777940750122,
0.03855670988559723,
-0.014493577182292938,
-0.07309988886117935,
-0.2904834747314453,
0.09845442324876785,
0.10592294484376907,
-0.00696420855820179,
0.23050373792648315,
-0.627955436706543,
0.1780645102262497,
0.00203617662191391,
0.25537604093551636,
-0.400101900100708,
-0.034234240651130676,
-0.2547355890274048,
-0.008199043571949005,
0.08703611046075821,
-0.32971498370170593,
0.08619131147861481,
-0.1502712368965149,
0.058318763971328735,
0.008336400613188744,
-0.2916868031024933,
-0.20983827114105225,
0.031151100993156433,
0.0012754315976053476,
0.013298132456839085,
-0.28698769211769104,
-0.13879898190498352,
-0.19226284325122833,
-0.23665253818035126,
0.6767052412033081,
0.17320756614208221,
0.12165483087301254,
-0.047320615500211716,
-0.17078332602977753,
-0.4097970724105835,
-0.22928403317928314,
0.17037451267242432,
-0.33442533016204834,
-0.5908135771751404,
0.3133067786693573,
-0.450307160615921,
-0.4157238006591797,
0.0390000082552433,
0.15101565420627594,
0.05546598881483078,
0.46625715494155884,
-0.020336423069238663,
-0.23315496742725372,
-0.3058472275733948,
0.22120097279548645,
-0.2192823886871338,
0.18224817514419556,
0.014101013541221619,
0.04141133278608322,
0.1408323049545288,
0.02442494034767151,
-0.13050590455532074,
0.1217961385846138,
-0.018033385276794434,
-0.3016531467437744,
0.08221013844013214,
0.20108750462532043,
0.20492449402809143,
0.580342173576355,
0.4103991985321045,
0.2980841100215912,
0.22168217599391937,
0.18894588947296143,
0.655134379863739,
0.02101944386959076,
-0.22114618122577667,
0.24251917004585266,
-0.039667293429374695,
-0.04716424643993378,
0.053985271602869034,
0.04498766362667084,
0.04203017055988312,
0.037869639694690704,
0.013038981705904007,
-0.2398955523967743,
-0.5029903054237366,
-0.21200309693813324,
-0.19949425756931305,
0.09045012295246124,
0.09919080138206482,
0.1203199103474617,
-0.22870531678199768,
-0.22254934906959534,
0.035074129700660706,
0.29910966753959656,
0.17769083380699158,
0.31965842843055725,
-0.36087000370025635,
0.1082683578133583,
-0.19857361912727356,
0.48023635149002075,
-0.012386845424771309,
0.5126094222068787,
-0.15565067529678345,
0.18745705485343933,
0.21411752700805664,
0.36220401525497437,
0.430904746055603,
-0.4064326882362366,
0.1957465410232544,
-0.11442720890045166,
0.1360839158296585,
0.1278698891401291,
-0.2462315857410431,
0.33912983536720276,
0.41845452785491943,
0.19343267381191254,
0.21804849803447723,
0.12385842949151993,
-0.18207816779613495,
-0.38306188583374023,
-0.19496294856071472,
-0.08456358313560486,
-0.12239818274974823,
0.019402336329221725,
0.09197857230901718,
-0.26391899585723877,
-0.038447923958301544,
0.2674630880355835,
-0.4127901494503021,
-0.24457746744155884,
0.003987692296504974,
-0.19754409790039062,
0.1205320730805397,
-0.07658717036247253,
-0.17166534066200256,
0.3838122487068176,
-0.019014641642570496,
0.000758633017539978,
0.4223491847515106,
-0.11193625628948212,
0.18203303217887878,
0.44540995359420776,
-0.28941667079925537,
0.15306437015533447,
-0.29049989581108093,
-0.25870078802108765,
0.3308100402355194,
0.09025941789150238,
-0.34665447473526,
0.01193508505821228,
0.20443637669086456,
-0.06436268985271454,
-0.28625956177711487,
-0.08649660646915436,
0.04355272650718689,
0.04995264485478401,
-0.1365184783935547,
-0.6606184840202332,
0.258904367685318,
0.5378464460372925,
-0.28049781918525696,
0.235446035861969,
-0.1215873658657074,
-0.3739423155784607,
0.08993618935346603,
0.12441135942935944,
0.790881335735321,
-0.1947769671678543,
0.38480791449546814,
-0.4029826819896698,
-0.008861970156431198,
0.12853790819644928,
-0.4445785880088806,
0.08155214041471481,
-0.5112549066543579,
-0.3367191553115845,
-0.06414274126291275,
-0.13370922207832336,
0.033064499497413635,
0.3707945942878723,
-0.049705620855093,
0.15437234938144684,
-0.1544705331325531,
-0.05728921666741371,
-0.16368815302848816,
-0.15316522121429443,
-0.3730810880661011,
-0.23707839846611023,
0.1458011269569397,
0.093757264316082,
-0.14706116914749146,
0.16710668802261353,
0.05070233345031738,
-0.004626121371984482,
-0.20594501495361328,
0.2701799273490906,
-0.3042631149291992,
0.020091097801923752,
-0.7715393304824829,
0.22406701743602753,
-0.17639905214309692,
0.04454204440116882,
0.0803733617067337,
0.3250466287136078,
0.4931787848472595,
0.35522201657295227,
-0.03897690773010254,
0.08926312625408173,
0.3555329144001007,
0.11776800453662872,
-0.16836927831172943,
0.07760842144489288,
0.31835314631462097,
0.17128920555114746,
0.10535535961389542,
-0.31856095790863037,
-0.16088156402111053,
-0.2662642002105713,
-0.3522588908672333,
0.17898434400558472,
-0.05705113708972931,
-0.256406307220459,
0.04953524470329285,
-0.15366564691066742,
-0.048109494149684906,
0.0013128817081451416,
0.0505596287548542,
0.43362921476364136,
0.006098727695643902,
0.5138245820999146,
-0.38613077998161316,
-0.32192903757095337,
0.04635438695549965,
0.6867845058441162,
-0.12127067893743515,
-0.17530065774917603,
0.2578023672103882,
-0.2270268201828003,
-0.22555626928806305,
-0.15342772006988525,
0.12180253118276596,
0.10556475818157196,
-0.2715555727481842,
0.08940667659044266,
0.1167701929807663,
-0.08391204476356506,
0.20190493762493134,
-0.46856579184532166,
0.05259896069765091,
0.04471256583929062,
0.08013343811035156,
-0.36716926097869873,
-0.4777841567993164,
-0.24790729582309723,
-0.22566591203212738,
0.2167545109987259,
0.21463090181350708,
-0.48041266202926636,
0.15370230376720428,
-0.017410287633538246,
-0.21900074183940887,
-0.11487257480621338,
-0.06034228205680847,
0.1070169061422348,
0.28442656993865967,
0.011100608855485916,
0.008009156212210655,
-0.19909526407718658,
-0.11154100298881531,
-0.0861448273062706,
-0.13667026162147522,
-0.15925332903862,
-0.10844774544239044,
0.15009689331054688,
0.1591564118862152,
-0.33094096183776855,
0.059867482632398605,
-0.49550002813339233,
-0.0886533111333847,
-0.4539220929145813,
0.02922409400343895,
0.41491928696632385,
0.18819662928581238,
0.3245113790035248,
0.09235583245754242,
0.05605188012123108,
-0.07511670887470245,
0.15026584267616272,
-0.25063377618789673,
-0.30604588985443115,
-0.20193584263324738,
0.22434991598129272,
-0.2615666389465332,
-0.012210510671138763,
0.2307130992412567,
-0.14341095089912415,
0.08363877236843109,
0.07022120803594589,
0.13976705074310303,
-0.06603831052780151,
-0.03642861545085907,
0.012190409004688263,
0.32265955209732056,
0.13969364762306213,
-0.06910964101552963,
-0.010676647536456585,
0.2828230857849121,
0.0745939388871193,
0.033400967717170715,
-0.2358485907316208,
0.2527938187122345,
-0.17172585427761078,
0.07322308421134949,
0.2959074079990387,
0.1993531584739685,
-0.25499457120895386,
0.08986207842826843,
-0.04004959017038345,
0.0541519820690155,
-0.42458730936050415,
0.3397022485733032,
-0.09816773235797882,
0.11988131701946259,
0.09367141127586365,
0.2689906358718872,
0.19475629925727844,
0.10341290384531021,
0.3501399755477905,
0.16343867778778076,
0.23263432085514069,
0.21079814434051514,
-0.3692200183868408,
0.19714170694351196,
-0.6348794102668762,
0.09334155917167664,
0.05628661811351776,
-0.086597740650177,
0.30663439631462097,
0.1521218717098236,
0.3038795590400696,
0.004368008114397526,
-0.25963908433914185,
0.05651162564754486,
-0.07708261907100677,
-0.10694151371717453,
-0.1304055154323578,
0.06529098749160767,
0.11955558508634567,
-0.016908563673496246,
-0.2276173233985901,
-0.1421547681093216,
-0.15242807567119598,
0.12549594044685364,
0.2167186439037323,
0.14074884355068207,
0.17793385684490204,
-0.08393491804599762,
0.16795623302459717,
0.11249670386314392,
-0.20654605329036713,
-0.12422927469015121,
-0.23509518802165985,
-0.15807755291461945,
0.24271896481513977,
0.08407799154520035,
0.20053322613239288,
0.013467885553836823,
0.11361904442310333,
0.2942560017108917,
0.3542517125606537,
0.029783068224787712,
-0.3016223907470703,
0.3524744212627411,
-0.11501757800579071,
-0.3615785241127014,
0.07311148941516876,
0.012349691241979599,
-0.07623570412397385,
-0.10622817277908325,
-0.22836492955684662,
-0.017844155430793762,
0.1196865439414978,
0.03880671411752701,
-0.13913312554359436,
-0.5474358201026917,
0.0329924002289772,
0.01305052638053894,
0.16632109880447388,
0.07378432899713516,
0.49634259939193726,
0.027947206050157547,
0.2006756067276001,
-0.5633285641670227,
0.03455616161227226,
0.48462095856666565,
0.2992676794528961,
0.4735637903213501,
-0.1852978765964508,
-0.019009247422218323,
-0.009206481277942657,
-0.48124775290489197,
0.07532231509685516,
0.23967845737934113,
0.3669993281364441,
-0.03173075616359711,
-0.21184714138507843,
0.0898565873503685,
-0.17153309285640717,
0.4435792565345764,
-0.30601200461387634,
0.4268416166305542,
0.31700554490089417,
-0.23414452373981476,
-0.2756786644458771,
0.17601177096366882,
-0.014743773266673088,
0.1640823930501938,
-0.4100312292575836,
0.23711103200912476,
0.00337256770581007,
0.040764592587947845,
-0.19057363271713257,
-0.019830405712127686,
0.16663981974124908,
0.41833072900772095,
0.41708844900131226,
0.24839934706687927,
-0.04172678291797638,
0.06295077502727509,
0.29192477464675903,
-0.43171218037605286,
0.1377897709608078,
-0.23352450132369995,
-0.10244477540254593,
-0.204925999045372,
0.09117212891578674,
-0.5365707874298096,
-0.2565542459487915,
-0.40641283988952637,
0.08363988995552063,
-0.12799528241157532,
0.2629208266735077,
0.052981823682785034,
0.1703789234161377,
-0.05999760702252388,
0.09543944150209427,
0.30645108222961426,
0.24371609091758728,
-0.11010439693927765,
0.33917057514190674,
-0.497008740901947,
-0.2819460332393646,
0.40789008140563965,
-0.3286447525024414,
-0.1821717768907547,
-0.005822984967380762,
0.39234432578086853,
0.15608817338943481,
-0.2363848090171814,
-0.04348141700029373,
0.16047200560569763,
0.3031430244445801,
-0.31538668274879456,
-0.13804824650287628,
0.05526694655418396,
-0.29858940839767456,
0.08156363666057587,
-0.15724661946296692,
0.4083768129348755,
0.08653025329113007,
-0.22822630405426025,
0.10883358120918274,
-0.1353074312210083
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix. | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 45 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix. | [
-0.14714983105659485,
0.09206627309322357,
-0.05052269250154495,
-0.0505758598446846,
-0.1024407148361206,
0.06507476419210434,
0.27706220746040344,
0.033313021063804626,
-0.1205730140209198,
0.07548250257968903,
-0.08884119242429733,
-0.12017910182476044,
0.09109822660684586,
-0.42197006940841675,
-0.19256609678268433,
0.2325334995985031,
0.13335758447647095,
-0.0176631361246109,
0.15074816346168518,
-0.15463018417358398,
-0.21149733662605286,
-0.013695904985070229,
-0.08542538434267044,
-0.07912477850914001,
-0.3535502254962921,
-0.17215436697006226,
0.16812720894813538,
0.2706647217273712,
-0.05658399313688278,
-0.07852333039045334,
0.22508223354816437,
0.6471480131149292,
0.14977148175239563,
0.05381019413471222,
-0.00011989402264589444,
-0.28704220056533813,
0.006174132227897644,
-0.15166731178760529,
-0.06340435147285461,
0.18705764412879944,
0.08874683827161789,
0.06735068559646606,
-0.10307849943637848,
-0.12478891015052795,
-0.09440894424915314,
0.2261204868555069,
0.1814224272966385,
-0.746789813041687,
0.3664296865463257,
0.17482104897499084,
0.10952533781528473,
-0.19688847661018372,
-0.386359304189682,
0.02779226563870907,
0.17780673503875732,
0.12260966002941132,
-0.1285097748041153,
0.04909943789243698,
0.4465579688549042,
-0.27614980936050415,
-0.0958167091012001,
-0.06984095275402069,
-0.2673170864582062,
0.0956597626209259,
0.1645166575908661,
-0.130335733294487,
-0.24298259615898132,
-0.39944303035736084,
0.1450900435447693,
0.11066743731498718,
0.6790688633918762,
-0.11666112393140793,
-0.5629663467407227,
-0.11351513117551804,
0.1143152266740799,
0.38432425260543823,
0.3292587995529175,
0.2766018211841583,
-0.16324195265769958,
0.34129878878593445,
-0.4492841958999634,
0.18957683444023132,
-0.15688322484493256,
0.10351240634918213,
0.19702285528182983,
0.10236749798059464,
0.0025069094263017178,
0.06778696924448013,
0.011501509696245193,
-0.0288243368268013,
0.2265234887599945,
0.05814199522137642,
-0.291564017534256,
0.4532562494277954,
-0.16344012320041656,
0.04481559246778488,
-0.20364242792129517,
0.4242899417877197,
0.2230391502380371,
0.3683885335922241,
0.27768847346305847,
0.24173352122306824,
-0.04898050054907799,
0.32502591609954834,
0.0026225093752145767,
0.22215095162391663,
0.43809157609939575,
0.30346208810806274,
0.5250226855278015,
-0.31991732120513916,
-0.11069779098033905,
0.05349157750606537,
0.02815626934170723,
-0.31997376680374146,
0.00044880062341690063,
0.27183204889297485,
-0.025619100779294968,
-0.2300991714000702,
0.15154655277729034,
0.007419292349368334,
-0.25161638855934143,
-0.22014547884464264,
-0.0146007826551795,
0.3301811218261719,
0.11046504974365234,
0.021261941641569138,
0.17417660355567932,
0.25906306505203247,
-0.04705367982387543,
-0.23974891006946564,
0.06585531681776047,
-0.3669911324977875,
-0.300458699464798,
0.44151240587234497,
0.42177635431289673,
0.09304127097129822,
0.05566094070672989,
0.19593356549739838,
0.17995521426200867,
-0.20455507934093475,
0.4045279622077942,
-0.010559272021055222,
0.47550490498542786,
0.2911122143268585,
0.41278475522994995,
0.3071920573711395,
0.1526108682155609,
-0.15125852823257446,
-0.17155615985393524,
0.3212668001651764,
-0.23732653260231018,
-0.1387581080198288,
0.3256174325942993,
-0.00957909319549799,
-0.06720443069934845,
0.2984529137611389,
-0.29006779193878174,
0.040705788880586624,
0.4671233892440796,
-0.03430427238345146,
0.4679359793663025,
0.2395269274711609,
-0.10938810557126999,
-0.37183669209480286,
-0.15334738790988922,
0.25111886858940125,
0.012815270572900772,
-0.1537054181098938,
-0.14967034757137299,
0.02747909165918827,
-0.11709653586149216,
0.500441312789917,
-0.010764945298433304,
0.06908158957958221,
-0.17807336151599884,
0.2032708078622818,
0.46452590823173523,
-0.05213809758424759,
-0.5090229511260986,
0.06843546777963638,
0.24206866323947906,
-0.004206350073218346,
0.30276405811309814,
0.154033824801445,
-0.1393565833568573,
-0.15941019356250763,
0.1348704844713211,
0.34900087118148804,
0.14409182965755463,
0.1884935349225998,
0.06461244821548462,
0.0059746745973825455,
-0.16990573704242706,
-0.02775328792631626,
0.037337493151426315,
0.25574949383735657,
0.3359963595867157,
-0.3438193202018738,
0.3285371959209442,
-0.29109546542167664,
0.20323717594146729,
0.3947824239730835,
0.19779834151268005,
-0.0213811993598938,
-0.03698084503412247,
0.07348848879337311,
-0.30184391140937805,
0.24685326218605042,
-0.11586263030767441,
-0.23524260520935059,
0.16871890425682068,
-0.5432315468788147,
0.18679466843605042,
-0.2626992166042328,
-0.05731372907757759,
-0.13966649770736694,
-0.021017447113990784,
0.15439331531524658,
-0.04252633452415466,
-0.30756860971450806,
0.08693443238735199,
0.32201433181762695,
0.1850208044052124,
-0.007995168678462505,
-0.13419318199157715,
0.025866148993372917,
-0.076084665954113,
-0.0981871634721756,
-0.1763196885585785,
-0.09620007127523422,
0.23546436429023743,
0.1245037093758583,
-0.26547741889953613,
0.3121876120567322,
0.19754056632518768,
-0.050685182213783264,
-0.19365820288658142,
0.2976667582988739,
-0.06724295020103455,
0.18819653987884521,
0.09365636110305786,
-0.14303067326545715,
-0.12927693128585815,
-0.140500009059906,
-0.347504585981369,
0.5174841284751892,
-0.0801336020231247,
-0.12006183713674545,
-0.14880044758319855,
0.2907128930091858,
0.18238820135593414,
-0.035216767340898514,
-0.11652699112892151,
-0.10509379953145981,
0.13710573315620422,
0.18944717943668365,
0.41158822178840637,
0.1300981193780899,
0.13904158771038055,
-0.019921891391277313,
0.3039122521877289,
0.15208525955677032,
0.15590038895606995,
0.06406809389591217,
-0.05928463488817215,
0.1174715980887413,
0.25742554664611816,
0.307129442691803,
0.31687653064727783,
0.07713773101568222,
0.24865014851093292,
-0.18618564307689667,
0.29943713545799255,
-0.17617760598659515,
-0.014917410910129547,
-0.07440705597400665,
-0.19402822852134705,
-0.17326155304908752,
-0.2122287154197693,
-0.07874678075313568,
-0.03657887876033783,
0.19738100469112396,
-0.1033044084906578,
0.05943029373884201,
-0.3922620415687561,
-0.12745603919029236,
-0.10771914571523666,
-0.18077173829078674,
0.25953370332717896,
0.003694799728691578,
-0.5104748010635376,
-0.12437646090984344,
-0.05584729462862015,
0.26982352137565613,
-0.046906180679798126,
0.27977246046066284,
-0.2046482414007187,
0.2511661648750305,
-0.14711570739746094,
-0.021751834079623222,
-0.13548974692821503,
0.16270259022712708,
0.13629895448684692,
-0.011604433879256248,
0.22514957189559937,
-0.5673709511756897,
0.11501185595989227,
0.009725093841552734,
0.1968260109424591,
-0.2695702016353607,
0.018732264637947083,
-0.1757621169090271,
0.08691132068634033,
0.07481153309345245,
-0.3606029748916626,
-0.04618406295776367,
-0.22654040157794952,
-0.09107600152492523,
-0.08368797600269318,
-0.33457469940185547,
-0.11628865450620651,
-0.023426266387104988,
0.16397571563720703,
-0.13111379742622375,
-0.2262914478778839,
0.020183101296424866,
-0.1411016881465912,
-0.12894734740257263,
0.5307947993278503,
0.13322699069976807,
0.2247098982334137,
-0.17567233741283417,
-0.17226184904575348,
-0.4226774573326111,
-0.12573528289794922,
0.14539887011051178,
-0.324545681476593,
-0.6174482703208923,
0.3266463875770569,
-0.4711756110191345,
-0.3162113130092621,
-0.007634636014699936,
0.15871156752109528,
0.07544364035129547,
0.5489597320556641,
0.0661250650882721,
-0.18262428045272827,
-0.2251124531030655,
0.11580109596252441,
-0.1905195415019989,
0.10722257941961288,
-0.005488626658916473,
0.0346582755446434,
0.14487460255622864,
-0.010273624211549759,
-0.14964599907398224,
0.1010855883359909,
-0.10544436424970627,
-0.2845734655857086,
0.1795324981212616,
0.1075248047709465,
0.19620172679424286,
0.5320222973823547,
0.4016357660293579,
0.4496501684188843,
0.23469871282577515,
0.32246845960617065,
0.6212496757507324,
0.10914744436740875,
0.00707063265144825,
0.1099848747253418,
0.05644480884075165,
-0.1976521760225296,
0.19281014800071716,
0.13784125447273254,
-0.14251849055290222,
0.02506154030561447,
-0.07511980831623077,
-0.16838988661766052,
-0.5382798314094543,
-0.02260666899383068,
-0.3873751759529114,
0.08684907853603363,
-0.026056556031107903,
0.19592922925949097,
-0.26851165294647217,
-0.18003162741661072,
0.03077562153339386,
0.3571224808692932,
0.15172629058361053,
0.35055723786354065,
-0.6412395238876343,
0.09082366526126862,
-0.31678175926208496,
0.4719902276992798,
-0.04250361770391464,
0.4521332383155823,
-0.24611514806747437,
0.2270340919494629,
0.1641177237033844,
0.3275584578514099,
0.32710057497024536,
-0.4988216161727905,
0.32677966356277466,
0.009353676810860634,
0.008739437907934189,
0.19135701656341553,
-0.11924973130226135,
0.33214932680130005,
0.36682993173599243,
0.09374168515205383,
0.15429642796516418,
0.16097524762153625,
-0.09152410179376602,
-0.537030816078186,
-0.3308069407939911,
-0.11164344102144241,
-0.23676979541778564,
0.21700964868068695,
0.10543938726186752,
-0.18626120686531067,
-0.016410179436206818,
0.36719194054603577,
-0.47056904435157776,
-0.09947613626718521,
0.02742452546954155,
-0.3810955286026001,
0.20719903707504272,
0.1539333015680313,
-0.10855717957019806,
0.23312392830848694,
-0.04775785282254219,
-0.1471511870622635,
0.3043542206287384,
-0.028975211083889008,
0.3442007303237915,
0.31823432445526123,
-0.26730453968048096,
0.29289665818214417,
-0.218866229057312,
-0.3312990069389343,
0.43888601660728455,
0.0841943547129631,
-0.2857547104358673,
-0.09085642546415329,
0.24059291183948517,
-0.08958543837070465,
-0.22429728507995605,
-0.14346498250961304,
-0.13658016920089722,
0.06769893318414688,
-0.17062373459339142,
-0.6507310271263123,
0.2193378508090973,
0.620601236820221,
-0.35468971729278564,
0.27531370520591736,
-0.06872059404850006,
-0.4185907244682312,
0.36972129344940186,
0.1752433478832245,
0.8520859479904175,
-0.19543106853961945,
0.4317818582057953,
-0.5393030047416687,
0.05618087947368622,
-0.00932686310261488,
-0.5421415567398071,
0.09541815519332886,
-0.4827093183994293,
-0.3196137547492981,
-0.15986591577529907,
-0.11526945233345032,
0.09652724862098694,
0.5368818640708923,
-0.0007454864680767059,
0.08837864547967911,
-0.05654014274477959,
-0.18949569761753082,
-0.04728370159864426,
-0.17385700345039368,
-0.44327765703201294,
-0.20745405554771423,
0.25500643253326416,
0.04838959872722626,
-0.08105285465717316,
0.018403310328722,
0.07283812761306763,
0.08736469596624374,
-0.26215049624443054,
0.17075610160827637,
-0.3432579040527344,
-0.034622952342033386,
-0.7361096143722534,
0.059739433228969574,
-0.14826901257038116,
0.041416361927986145,
0.19489221274852753,
0.43655574321746826,
0.4190998077392578,
0.36781543493270874,
0.0034498516470193863,
0.12866438925266266,
0.2911272346973419,
0.19329911470413208,
-0.11876743286848068,
0.005705294199287891,
0.26792171597480774,
0.19809377193450928,
0.08602026849985123,
-0.2034708857536316,
-0.12119579315185547,
-0.3485179543495178,
-0.39338892698287964,
0.05394333228468895,
0.10855016112327576,
-0.2680012881755829,
-0.09995530545711517,
-0.3109744191169739,
-0.05552275478839874,
0.09468255937099457,
0.020819712430238724,
0.433721125125885,
-0.011768830008804798,
0.550676167011261,
-0.3282586634159088,
-0.29341819882392883,
0.06344760954380035,
0.6677955389022827,
-0.19444888830184937,
-0.24920737743377686,
0.1311027705669403,
-0.2961776554584503,
-0.21818524599075317,
-0.12239035964012146,
0.08970942348241806,
0.28303948044776917,
-0.22775769233703613,
-0.06522899866104126,
-0.00782041810452938,
-0.1830449402332306,
0.24903905391693115,
-0.4417337477207184,
0.12384016066789627,
0.21655160188674927,
0.08228807151317596,
-0.33324429392814636,
-0.30159685015678406,
-0.27592968940734863,
-0.18185077607631683,
0.2280922830104828,
0.2955179810523987,
-0.6359665989875793,
0.13830287754535675,
0.17535120248794556,
-0.16398929059505463,
-0.23781172931194305,
0.010699300095438957,
0.10829298198223114,
0.05291909724473953,
0.14607614278793335,
-0.13914035260677338,
-0.1709163784980774,
-0.14047226309776306,
-0.05739612877368927,
0.04525890573859215,
-0.09434198588132858,
-0.07158199697732925,
0.18963328003883362,
0.16896691918373108,
-0.42973655462265015,
0.24337466061115265,
-0.46588438749313354,
-0.07275491952896118,
-0.5211845636367798,
0.03723306581377983,
0.44001200795173645,
0.09621763229370117,
0.32772311568260193,
0.17764341831207275,
-0.016768351197242737,
-0.3144005537033081,
0.14125682413578033,
-0.17704114317893982,
-0.25716346502304077,
-0.21366550028324127,
0.1840847283601761,
-0.313449889421463,
-0.08584288507699966,
0.3430911898612976,
-0.022757016122341156,
0.16735734045505524,
0.12697893381118774,
0.035783033818006516,
0.06504090875387192,
-0.04157860204577446,
0.011366497725248337,
0.2966192066669464,
-0.1352154016494751,
-0.055558785796165466,
0.02075476385653019,
0.3500748574733734,
0.026413364335894585,
0.13894270360469818,
-0.24979397654533386,
0.21742214262485504,
-0.12841039896011353,
0.0236477293074131,
0.46562957763671875,
0.1540795862674713,
-0.41797876358032227,
0.18083393573760986,
-0.19816109538078308,
0.14398770034313202,
-0.3473328948020935,
0.2857910692691803,
0.003999050706624985,
0.04702606424689293,
0.1241554319858551,
0.14425227046012878,
0.07800278812646866,
0.24470660090446472,
0.24671892821788788,
0.2031865268945694,
0.21009771525859833,
0.29255712032318115,
-0.37409543991088867,
0.15250730514526367,
-0.6392154693603516,
0.09233157336711884,
0.05736974626779556,
0.038630157709121704,
0.30661290884017944,
0.12077698111534119,
0.04551518335938454,
0.14421890676021576,
-0.17202235758304596,
0.0889912024140358,
-0.17066730558872223,
-0.0845196396112442,
-0.16405870020389557,
-0.022717727348208427,
0.07303830236196518,
-0.1671445369720459,
-0.2294374257326126,
-0.30763983726501465,
-0.16272971034049988,
0.13992293179035187,
0.2915472388267517,
0.18346351385116577,
0.21290580928325653,
-0.012916039675474167,
0.07763948291540146,
0.049240902066230774,
-0.29989802837371826,
-0.20141884684562683,
-0.328965961933136,
-0.0747557133436203,
0.36223751306533813,
0.04532821476459503,
0.14281198382377625,
0.09104529023170471,
0.14894764125347137,
0.2524827718734741,
0.21231944859027863,
0.08967531472444534,
-0.3044790029525757,
0.16894736886024475,
-0.019455239176750183,
-0.3877960741519928,
0.032374899834394455,
-0.011439836584031582,
-0.03277977183461189,
-0.07193133234977722,
-0.185344398021698,
-0.11226828396320343,
0.02087966911494732,
0.037501972168684006,
-0.10523760318756104,
-0.4290218949317932,
0.15870565176010132,
-0.03382913023233414,
0.19280433654785156,
0.04214032366871834,
0.36707544326782227,
0.026293238624930382,
0.21010446548461914,
-0.39655324816703796,
-0.005846749991178513,
0.42311742901802063,
0.18669891357421875,
0.46272024512290955,
-0.18756568431854248,
0.03949041664600372,
-0.1463005393743515,
-0.3878420889377594,
0.1253432184457779,
0.24416182935237885,
0.31610390543937683,
-0.028806548565626144,
-0.35110312700271606,
0.1966865062713623,
-0.07667429000139236,
0.5007017850875854,
-0.1172139123082161,
0.22036540508270264,
0.4526958465576172,
-0.2806837260723114,
-0.2936931252479553,
0.25752824544906616,
-0.01142403855919838,
0.13738605380058289,
-0.4255506098270416,
0.15056395530700684,
0.06130673363804817,
0.01768999546766281,
-0.1303202509880066,
-0.15691357851028442,
0.16898714005947113,
0.5910172462463379,
0.3161930441856384,
0.29639557003974915,
-0.055101051926612854,
-0.029119107872247696,
0.4183223247528076,
-0.2877555191516876,
0.24198906123638153,
-0.24078133702278137,
-0.13497105240821838,
-0.16515995562076569,
0.16663451492786407,
-0.6858271360397339,
-0.2540332078933716,
-0.34173494577407837,
0.029731443151831627,
-0.16837088763713837,
0.21993719041347504,
0.04623311758041382,
0.2281656265258789,
-0.1728629171848297,
0.13773353397846222,
0.3757638931274414,
0.3808789551258087,
-0.14946262538433075,
0.4492861032485962,
-0.48673397302627563,
-0.00734031293541193,
0.25010743737220764,
-0.2229318618774414,
-0.17093080282211304,
-0.08036539703607559,
0.3517572283744812,
0.1270887553691864,
-0.26989269256591797,
0.12201134115457535,
0.027054503560066223,
0.3331510126590729,
-0.2721730172634125,
-0.10104365646839142,
0.006985367741435766,
-0.24729570746421814,
-0.048985470086336136,
-0.15640240907669067,
0.33850017189979553,
0.157071053981781,
-0.21794827282428741,
0.03384999558329582,
-0.30734384059906006
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Note that you can get the cache files of a dataset with the `cache_files` attributes.
Then you can `chmod` those files and all the other cache files in the same directory.
Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_dataset` for example, and then all the new transformed cached files will have the same permissions.
What do you think ? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 75 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Note that you can get the cache files of a dataset with the `cache_files` attributes.
Then you can `chmod` those files and all the other cache files in the same directory.
Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_dataset` for example, and then all the new transformed cached files will have the same permissions.
What do you think ? | [
-0.11946804821491241,
0.25942355394363403,
-0.09670396149158478,
0.030385177582502365,
0.023178966715931892,
0.10834973305463791,
0.3391306698322296,
0.21172519028186798,
-0.3362346589565277,
-0.03682394325733185,
-0.14438703656196594,
0.022060660645365715,
0.010938712395727634,
-0.2525077760219574,
-0.03013269230723381,
0.07438831776380539,
0.22781029343605042,
0.12081350386142731,
-0.11842888593673706,
-0.07780861109495163,
-0.07537379115819931,
-0.1556302309036255,
-0.06453432142734528,
-0.068815678358078,
-0.22142527997493744,
-0.15285542607307434,
0.23447388410568237,
0.14636848866939545,
0.06782685965299606,
-0.04603464528918266,
0.2212153971195221,
0.5300707817077637,
0.13943639397621155,
0.12973184883594513,
-0.00011139972048113123,
-0.15181300044059753,
-0.018423639237880707,
-0.08940339833498001,
0.05359014496207237,
0.19441036880016327,
-0.13250501453876495,
-0.209367573261261,
-0.27640679478645325,
-0.15940988063812256,
-0.11222444474697113,
0.11670497804880142,
0.16420945525169373,
-0.6036275625228882,
0.5433730483055115,
0.1404610425233841,
0.19184929132461548,
-0.1789262443780899,
-0.41048118472099304,
0.08267620205879211,
0.2436181902885437,
0.07859361916780472,
-0.1785176545381546,
0.04801501706242561,
0.2731810212135315,
-0.07998166233301163,
-0.04989565163850784,
0.14044594764709473,
-0.2539239227771759,
0.023676112294197083,
0.23574426770210266,
-0.14084993302822113,
-0.27387043833732605,
-0.552237868309021,
0.1436687409877777,
0.08342646062374115,
0.6017305850982666,
-0.12325998395681381,
-0.5118139386177063,
-0.20266661047935486,
0.10506749898195267,
0.2066524475812912,
0.27122512459754944,
0.36916062235832214,
0.0936826765537262,
0.2965434193611145,
-0.5677487254142761,
-0.049612756818532944,
-0.17337194085121155,
-0.04453422874212265,
0.20272740721702576,
-0.11691978573799133,
-0.03591231629252434,
0.05785433202981949,
-0.02208615466952324,
-0.0612773522734642,
0.2435193508863449,
0.1687999963760376,
-0.3648126423358917,
0.3007417321205139,
-0.18602439761161804,
0.08122998476028442,
-0.2588998079299927,
0.44884103536605835,
0.16287770867347717,
0.3240205645561218,
0.09203103184700012,
0.1952226161956787,
0.07095789164304733,
0.1408429592847824,
-0.06136665120720863,
0.29602980613708496,
0.24897629022598267,
0.43937572836875916,
0.49831467866897583,
-0.3928612172603607,
-0.23317545652389526,
0.025957606732845306,
-0.003200177103281021,
-0.38852545619010925,
0.042303960770368576,
0.30141550302505493,
0.0058667100965976715,
-0.19410580396652222,
0.23180913925170898,
0.023073088377714157,
0.02777550369501114,
-0.20674775540828705,
0.03482995182275772,
0.291471004486084,
0.13738271594047546,
-0.048593051731586456,
0.03129737079143524,
0.1531580090522766,
0.08779077976942062,
-0.4073992967605591,
-0.014228714630007744,
-0.31886863708496094,
-0.4200422167778015,
0.42487049102783203,
0.4544428288936615,
-0.1531490683555603,
-0.05728059262037277,
0.2649715840816498,
0.26611608266830444,
-0.19074295461177826,
0.2379840910434723,
-0.021670397371053696,
0.45783731341362,
0.3296433985233307,
0.19381874799728394,
0.3119948208332062,
0.07201159000396729,
0.060761645436286926,
-0.1467859148979187,
0.29237866401672363,
-0.29846423864364624,
-0.10558273643255234,
0.3784655034542084,
0.0557938814163208,
-0.013302594423294067,
0.3157936930656433,
-0.397742360830307,
0.05883924290537834,
0.5510916709899902,
-0.17793786525726318,
0.37047675251960754,
0.20523349940776825,
-0.02737598493695259,
-0.36652201414108276,
-0.1580839902162552,
0.32506218552589417,
0.008226662874221802,
-0.033244725316762924,
0.017075980082154274,
0.029468975961208344,
-0.07307646423578262,
0.27708303928375244,
-0.0774063691496849,
0.0894971415400505,
-0.13274003565311432,
0.10823389887809753,
0.5130733847618103,
0.0005701445043087006,
-0.5620501637458801,
0.13424848020076752,
0.1925627738237381,
-0.1734321564435959,
0.24549022316932678,
0.009696485474705696,
0.11853383481502533,
-0.2128259837627411,
-0.25831833481788635,
0.3564733862876892,
0.17735736072063446,
0.25360774993896484,
0.11098013818264008,
0.07335853576660156,
0.04106903448700905,
-0.13297393918037415,
0.11544106900691986,
0.43330350518226624,
0.29926130175590515,
-0.18246331810951233,
0.16170978546142578,
-0.37664249539375305,
0.2751656174659729,
0.4555327296257019,
-0.036531899124383926,
-0.10155130922794342,
-0.017663076519966125,
-0.007352452725172043,
-0.39465805888175964,
0.2472987174987793,
-0.3183891475200653,
-0.3896822929382324,
0.07556511461734772,
-0.41269904375076294,
0.04926525801420212,
-0.39189592003822327,
-0.16421282291412354,
-0.09876510500907898,
0.1022050678730011,
0.028506722301244736,
0.012479804456233978,
-0.3670444190502167,
0.13142716884613037,
0.46215978264808655,
0.2361072152853012,
-0.011070853099226952,
-0.16298869252204895,
0.1359282284975052,
-0.09196273982524872,
-0.03928324207663536,
-0.23354177176952362,
-0.022504709661006927,
0.30919450521469116,
-0.07419838011264801,
-0.2938145697116852,
0.2166341245174408,
0.018628617748618126,
0.17117974162101746,
-0.10681857913732529,
0.3129372000694275,
0.03826438635587692,
0.025569144636392593,
0.13222117722034454,
-0.2872105836868286,
-0.13486385345458984,
-0.11010903120040894,
-0.1841525137424469,
0.3122927248477936,
-0.15726932883262634,
-0.003058888018131256,
-0.17040368914604187,
0.22141033411026,
0.17165684700012207,
-0.07357048988342285,
-0.19878186285495758,
-0.16610686480998993,
-0.08806002140045166,
0.15407022833824158,
0.40023595094680786,
0.1994902789592743,
0.15894177556037903,
0.0683571994304657,
0.3487061560153961,
0.15812160074710846,
0.07298486679792404,
-0.039859235286712646,
-0.1238127276301384,
0.11629576236009598,
0.11393089592456818,
0.42159023880958557,
0.249637633562088,
0.06240963190793991,
0.3382247984409332,
-0.12998329102993011,
0.32259052991867065,
-0.1342460811138153,
-0.011377386748790741,
-0.15507785975933075,
0.07260303199291229,
-0.12519624829292297,
-0.19601616263389587,
0.0252936240285635,
0.013151399791240692,
0.2432510256767273,
0.15219451487064362,
0.07365444302558899,
-0.32087549567222595,
-0.05310473218560219,
-0.2478598952293396,
-0.1940210461616516,
0.21869313716888428,
-0.05318927392363548,
-0.4666421711444855,
0.03510165959596634,
-0.21372632682323456,
0.12077592313289642,
-0.04208948090672493,
0.26204875111579895,
-0.21790894865989685,
0.1883024424314499,
-0.0940762311220169,
-0.0955023244023323,
-0.2950896620750427,
0.27400338649749756,
-0.01624443754553795,
0.014099273830652237,
0.26927193999290466,
-0.7202329039573669,
0.08227641135454178,
-0.10379114747047424,
0.33514320850372314,
-0.3325994908809662,
-0.0013955309987068176,
-0.16773611307144165,
-0.05839681625366211,
0.04000011458992958,
-0.5119993686676025,
0.07907271385192871,
-0.1321319341659546,
0.00557317491620779,
-0.15033560991287231,
-0.23887889087200165,
-0.17516297101974487,
0.06383290141820908,
-0.008443906903266907,
-0.06307505071163177,
-0.26914337277412415,
-0.1105903759598732,
-0.07486414164304733,
-0.15295445919036865,
0.4172171950340271,
0.024253062903881073,
0.22104476392269135,
0.07125480473041534,
-0.29615136981010437,
-0.45922401547431946,
-0.17086583375930786,
0.32248055934906006,
-0.35070204734802246,
-0.4663725197315216,
0.3746472895145416,
-0.4652487337589264,
-0.3919491469860077,
0.00897618755698204,
0.15250608325004578,
0.09564751386642456,
0.5313208699226379,
0.008107654750347137,
0.006564087234437466,
-0.21562208235263824,
0.16428537666797638,
-0.2448118031024933,
0.142725870013237,
0.06333979964256287,
0.12030057609081268,
0.12329302728176117,
-0.026269322261214256,
-0.14194191992282867,
0.0039662644267082214,
0.00273275189101696,
-0.19794660806655884,
0.05590004473924637,
-0.023403629660606384,
0.24712452292442322,
0.6841854453086853,
0.4743024706840515,
0.24001412093639374,
0.20362643897533417,
0.33891695737838745,
0.6224416494369507,
0.12087729573249817,
-0.19565291702747345,
0.1466684341430664,
-0.03950108587741852,
-0.14634039998054504,
0.07162883877754211,
0.024373922497034073,
-0.25798600912094116,
-0.004329845309257507,
0.01135946437716484,
-0.30836841464042664,
-0.42030012607574463,
-0.14789055287837982,
-0.3541899025440216,
0.22554859519004822,
0.14202998578548431,
0.07216208428144455,
-0.20011258125305176,
-0.17612695693969727,
0.0670638382434845,
0.3497656583786011,
0.21497681736946106,
0.2623521685600281,
-0.3020288646221161,
-0.09926091879606247,
-0.21138349175453186,
0.36526578664779663,
-0.06169098988175392,
0.42556440830230713,
-0.17671805620193481,
0.11119278520345688,
0.15212087333202362,
0.3573991060256958,
0.391828715801239,
-0.3412030339241028,
0.2567474842071533,
-0.018718216568231583,
0.1470623016357422,
0.34583210945129395,
-0.2633594870567322,
0.4020390808582306,
0.33507293462753296,
0.02789456769824028,
0.1637224555015564,
0.10022959858179092,
-0.11537555605173111,
-0.42893847823143005,
-0.12455152720212936,
-0.15589316189289093,
-0.13361969590187073,
0.15551045536994934,
0.20040374994277954,
-0.12734916806221008,
-0.08463884145021439,
0.24003352224826813,
-0.3544846177101135,
-0.24178718030452728,
0.02081330493092537,
-0.21397832036018372,
0.08738008886575699,
0.07659266889095306,
0.0004741968587040901,
0.3266933262348175,
0.11235763877630234,
-0.009302094578742981,
0.37241455912590027,
0.0692509114742279,
0.08343224227428436,
0.29792726039886475,
-0.1996043175458908,
0.29971617460250854,
-0.24800211191177368,
-0.18839441239833832,
0.29069647192955017,
0.01108001172542572,
-0.4031558632850647,
-0.24411645531654358,
0.11843395233154297,
-0.17410250008106232,
-0.27032312750816345,
-0.054563164710998535,
-0.14825581014156342,
-0.007920823059976101,
-0.23356734216213226,
-0.6500521898269653,
0.2410213053226471,
0.5714660286903381,
-0.3636012077331543,
0.21106182038784027,
-0.29898929595947266,
-0.39207231998443604,
0.09976030141115189,
0.12467999011278152,
0.8228699564933777,
-0.20013917982578278,
0.3372621536254883,
-0.436077356338501,
0.09147068858146667,
0.03386234864592552,
-0.5424808859825134,
0.13351047039031982,
-0.3649226129055023,
-0.4845432639122009,
-0.13968725502490997,
-0.17535188794136047,
0.03290512412786484,
0.42689961194992065,
-0.05034029856324196,
0.13176162540912628,
-0.11103446036577225,
-0.1178772896528244,
-0.15766896307468414,
-0.244833841919899,
-0.1609954833984375,
-0.3166030943393707,
0.2871122360229492,
0.12592925131320953,
-0.3188803791999817,
0.08415953069925308,
-0.037275493144989014,
-0.04422445222735405,
-0.20891888439655304,
0.32659661769866943,
-0.25530391931533813,
0.10092244297266006,
-0.5163577198982239,
0.10253292322158813,
-0.27376753091812134,
-0.04475843533873558,
0.172359436750412,
0.34484073519706726,
0.3541644215583801,
0.3286731541156769,
0.01281349640339613,
0.04266000911593437,
0.29861241579055786,
0.20196151733398438,
-0.24757343530654907,
0.038196057081222534,
0.3198319673538208,
0.16093719005584717,
0.13653826713562012,
-0.273745596408844,
-0.13164769113063812,
-0.21735599637031555,
-0.35807594656944275,
0.19739162921905518,
0.014259111136198044,
-0.23012401163578033,
0.06756992638111115,
0.10135392844676971,
0.028969477862119675,
0.08282175660133362,
0.09048767387866974,
0.43653130531311035,
-0.07310096174478531,
0.6100824475288391,
-0.3113514482975006,
-0.3697409927845001,
0.07226648926734924,
0.46483057737350464,
-0.0051395483314991,
-0.27982109785079956,
0.16849364340305328,
-0.3599308729171753,
-0.23812150955200195,
-0.15420138835906982,
0.20330044627189636,
0.0547812283039093,
-0.21829476952552795,
-0.03165661171078682,
0.017932960763573647,
-0.04947585612535477,
0.19124385714530945,
-0.4619826376438141,
0.11503832787275314,
0.10760563611984253,
0.12729865312576294,
-0.3227131962776184,
-0.41833293437957764,
-0.22698654234409332,
-0.33664417266845703,
0.201048344373703,
0.19143253564834595,
-0.4584572911262512,
0.133877232670784,
0.14644461870193481,
-0.2239753007888794,
-0.2006186693906784,
0.07434536516666412,
0.14637789130210876,
0.2006075382232666,
-0.002839908003807068,
-0.21178631484508514,
-0.19916044175624847,
-0.09704677015542984,
-0.030966080725193024,
-0.06590064615011215,
-0.17207393050193787,
-0.09704622626304626,
0.1412351429462433,
0.23235049843788147,
-0.25121334195137024,
0.00012682564556598663,
-0.41728317737579346,
-0.10244444012641907,
-0.4633617401123047,
-0.00010112114250659943,
0.2615755796432495,
0.22683918476104736,
0.43618279695510864,
0.12855522334575653,
0.01020718365907669,
-0.19425417482852936,
0.1410360038280487,
-0.13068357110023499,
-0.21083460748195648,
-0.17807641625404358,
0.2598571181297302,
-0.19986756145954132,
-0.08927755057811737,
-0.11356709152460098,
-0.10939901322126389,
0.19181877374649048,
0.14791156351566315,
0.15830229222774506,
0.02865450270473957,
0.058872099965810776,
0.1932990998029709,
0.22126756608486176,
0.04259573668241501,
-0.10432875156402588,
0.04193150997161865,
0.35571393370628357,
0.125034898519516,
0.07768791913986206,
-0.228634774684906,
0.26444143056869507,
-0.09766867756843567,
-0.00767270103096962,
0.35149168968200684,
0.2559175193309784,
-0.28059929609298706,
0.15996995568275452,
-0.1296696811914444,
0.1093098521232605,
-0.3585636019706726,
0.4870342016220093,
0.05164516717195511,
0.14297673106193542,
0.0976535975933075,
0.40606772899627686,
0.28158003091812134,
0.018712222576141357,
0.37930697202682495,
0.1909651756286621,
0.25330230593681335,
0.31729522347450256,
-0.2873905897140503,
0.19725856184959412,
-0.5817482471466064,
0.08462256193161011,
-0.010846883058547974,
0.09096832573413849,
0.33153682947158813,
0.014952652156352997,
0.008035831153392792,
0.021772362291812897,
-0.33734458684921265,
-0.004947979003190994,
-0.024765338748693466,
-0.10730180889368057,
-0.11211185157299042,
0.1384294480085373,
0.1098618283867836,
0.06098330020904541,
-0.2639664113521576,
-0.11712498962879181,
-0.20149685442447662,
0.2264416664838791,
0.3205130100250244,
0.0693642720580101,
0.3160949945449829,
0.09332160651683807,
0.19555360078811646,
0.02990489825606346,
-0.18293939530849457,
-0.04712734371423721,
-0.437475323677063,
-0.12146006524562836,
0.24904200434684753,
0.05560988187789917,
0.04745825007557869,
0.15167027711868286,
0.12876996397972107,
0.22495047748088837,
0.263633131980896,
0.09833045303821564,
-0.2886026203632355,
0.38324281573295593,
-0.10387676954269409,
-0.305361807346344,
-0.013280324637889862,
0.014080652967095375,
-0.07107044011354446,
-0.04404735937714577,
-0.2996082901954651,
0.05610279366374016,
0.0851868987083435,
0.0760861188173294,
-0.06158434599637985,
-0.46788856387138367,
0.11242547631263733,
-0.046720243990421295,
0.12676775455474854,
0.14598725736141205,
0.6005496382713318,
-0.015753231942653656,
0.18274590373039246,
-0.4610280692577362,
0.058045752346515656,
0.5085269212722778,
0.2666838765144348,
0.37154892086982727,
-0.14362019300460815,
-0.04093347117304802,
0.022576987743377686,
-0.33515283465385437,
0.12018005549907684,
0.31902214884757996,
0.45095136761665344,
-0.06665752083063126,
-0.17844519019126892,
0.08208011835813522,
-0.15176689624786377,
0.6258018016815186,
-0.33845195174217224,
0.3094959855079651,
0.375759094953537,
-0.17072218656539917,
-0.2227340191602707,
0.16444456577301025,
0.057920441031455994,
0.11502406001091003,
-0.2996995747089386,
0.2737308144569397,
0.25599104166030884,
0.06746327877044678,
-0.1231965720653534,
-0.16300678253173828,
0.2323896884918213,
0.47929346561431885,
0.49963465332984924,
0.2923944294452667,
-0.09206506609916687,
0.01705298200249672,
0.372415691614151,
-0.4259391725063324,
0.11669548600912094,
-0.16584108769893646,
-0.09416944533586502,
-0.17014716565608978,
-0.07975967228412628,
-0.6363072395324707,
-0.20014479756355286,
-0.4148024022579193,
-0.09239097684621811,
-0.07236295193433762,
0.25211265683174133,
-0.0389404222369194,
0.035096004605293274,
-0.15928170084953308,
0.0370236299932003,
0.29983261227607727,
0.317062646150589,
-0.1319773644208908,
0.34999310970306396,
-0.4378005266189575,
-0.2004668265581131,
0.2926461398601532,
-0.30812257528305054,
-0.3108549416065216,
0.042786870151758194,
0.35672569274902344,
0.08081786334514618,
-0.17759819328784943,
0.059610627591609955,
0.12862053513526917,
0.33348727226257324,
-0.3825700283050537,
-0.04940783604979515,
0.046244554221630096,
-0.39224952459335327,
0.0021779388189315796,
-0.14486175775527954,
0.5197305083274841,
0.02820562571287155,
-0.24265551567077637,
0.009650316089391708,
-0.2224130779504776
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 20 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`? | [
-0.14285732805728912,
0.2471919059753418,
-0.13657614588737488,
0.021837390959262848,
-0.061133041977882385,
0.15197932720184326,
0.29721835255622864,
0.17494052648544312,
-0.21720324456691742,
-0.021546155214309692,
-0.08393682539463043,
-0.0586811825633049,
0.031783636659383774,
-0.28569257259368896,
-0.031977199018001556,
0.13325978815555573,
0.18218779563903809,
0.04435380920767784,
0.09654878079891205,
-0.06093107536435127,
-0.10181331634521484,
-0.11741359531879425,
-0.027271512895822525,
-0.09650805592536926,
-0.2872995436191559,
-0.17004971206188202,
0.2464342713356018,
0.13951078057289124,
-0.0033844970166683197,
-0.16781532764434814,
0.32201385498046875,
0.5283104777336121,
0.10398876667022705,
0.1232835128903389,
-0.00011132272629765794,
-0.17444267868995667,
0.03319210559129715,
-0.09607379883527756,
0.07746848464012146,
0.1945367455482483,
-0.17945259809494019,
-0.17812760174274445,
-0.15436245501041412,
-0.14460843801498413,
-0.09529025107622147,
0.16484858095645905,
0.16694247722625732,
-0.6869983673095703,
0.44153809547424316,
0.1891675442457199,
0.20912590622901917,
-0.2013518512248993,
-0.3777408003807068,
0.049541130661964417,
0.2510102689266205,
0.025730274617671967,
-0.15162208676338196,
0.12944597005844116,
0.21568414568901062,
-0.1824467033147812,
-0.03241018205881119,
0.040449358522892,
-0.30173203349113464,
0.14215604960918427,
0.15948303043842316,
-0.1164248064160347,
-0.30293038487434387,
-0.5466196537017822,
0.11511994153261185,
0.10166890919208527,
0.7427783608436584,
-0.1304638683795929,
-0.5221775770187378,
-0.22474920749664307,
0.026039928197860718,
0.14676325023174286,
0.33953753113746643,
0.30943694710731506,
0.03205658495426178,
0.2644796371459961,
-0.48224902153015137,
-0.06032741069793701,
-0.12340076267719269,
-0.01490522176027298,
0.21070972084999084,
-0.057812899351119995,
-0.054318398237228394,
0.051101744174957275,
0.008981581777334213,
-0.03147534281015396,
0.16985483467578888,
0.1223381906747818,
-0.3839338421821594,
0.3322782516479492,
-0.21739505231380463,
0.0476984828710556,
-0.2045629322528839,
0.4771675765514374,
0.24695032835006714,
0.3256934881210327,
0.18476223945617676,
0.18957683444023132,
0.04835264012217522,
0.21009868383407593,
-0.013756003230810165,
0.20427031815052032,
0.366455614566803,
0.3078049421310425,
0.5489122271537781,
-0.3686137795448303,
-0.15094895660877228,
-0.008852411061525345,
0.08776456862688065,
-0.39147037267684937,
0.1254260092973709,
0.29928669333457947,
0.014449018985033035,
-0.17913752794265747,
0.1573958545923233,
0.10272439569234848,
-0.07055271416902542,
-0.29978665709495544,
0.04228449612855911,
0.2541508972644806,
0.08511583507061005,
-0.07631683349609375,
-0.07229362428188324,
0.14653421938419342,
0.032465919852256775,
-0.3402571678161621,
-0.024212926626205444,
-0.29637524485588074,
-0.3305019438266754,
0.4524025022983551,
0.47468075156211853,
-0.21685487031936646,
0.049203433096408844,
0.24845968186855316,
0.16453461349010468,
-0.19606903195381165,
0.3496297001838684,
-0.09178565442562103,
0.3922552764415741,
0.3255966007709503,
0.23617494106292725,
0.3156212568283081,
0.02676788717508316,
0.027248017489910126,
-0.13476036489009857,
0.26778101921081543,
-0.3485304117202759,
-0.13942092657089233,
0.27243533730506897,
0.06985172629356384,
-0.04144752025604248,
0.2683040499687195,
-0.4000047743320465,
0.09639045596122742,
0.5820568203926086,
-0.18216730654239655,
0.3664320409297943,
0.311320424079895,
-0.1842416226863861,
-0.3967324495315552,
-0.13906051218509674,
0.34553611278533936,
-0.08557546138763428,
-0.02081356570124626,
-0.03436980023980141,
0.024370085448026657,
-0.05822243541479111,
0.285880446434021,
-0.03354373201727867,
0.2149335741996765,
-0.15700434148311615,
0.19005931913852692,
0.4625093936920166,
-0.03948699310421944,
-0.5458707213401794,
0.10020699352025986,
0.2019239217042923,
-0.17775848507881165,
0.17420724034309387,
0.008129038847982883,
0.09090270102024078,
-0.12675777077674866,
-0.11230532824993134,
0.3109282851219177,
0.1437157541513443,
0.22104179859161377,
0.12055833637714386,
0.08345795422792435,
0.02095636911690235,
-0.10795620083808899,
0.07762202620506287,
0.3490343391895294,
0.34114396572113037,
-0.27672991156578064,
0.13310369849205017,
-0.2544741928577423,
0.21850597858428955,
0.4260053038597107,
0.07472540438175201,
-0.14569388329982758,
-0.026890572160482407,
-0.07905219495296478,
-0.4902157187461853,
0.2971678078174591,
-0.16276848316192627,
-0.4536576271057129,
0.10622671991586685,
-0.43734484910964966,
0.037618979811668396,
-0.3469263017177582,
-0.19416408240795135,
-0.022836528718471527,
0.10047078132629395,
0.024615008383989334,
0.037079859524965286,
-0.3169475793838501,
0.1327246129512787,
0.47637999057769775,
0.2424371987581253,
-0.009325283579528332,
-0.07069821655750275,
0.1099776178598404,
-0.08905140310525894,
-0.06834676861763,
-0.2553047239780426,
-0.08746122568845749,
0.25828105211257935,
-0.012772751040756702,
-0.25271573662757874,
0.25830110907554626,
0.12204421311616898,
0.043248340487480164,
-0.038616158068180084,
0.28506264090538025,
0.026318594813346863,
0.10677610337734222,
0.03340214118361473,
-0.2647300958633423,
-0.08487394452095032,
-0.1350853443145752,
-0.25902870297431946,
0.33485791087150574,
-0.056104522198438644,
-0.09973939508199692,
-0.19693410396575928,
0.15802089869976044,
0.17150577902793884,
-0.028748732060194016,
-0.08909497410058975,
-0.18044887483119965,
-0.01969463750720024,
0.1461564153432846,
0.41134676337242126,
0.15973682701587677,
0.07700318098068237,
-0.006257660686969757,
0.33783280849456787,
0.1522028148174286,
0.1228647381067276,
-0.05160311609506607,
-0.0356423556804657,
0.09733337163925171,
0.18139341473579407,
0.40606337785720825,
0.23975974321365356,
0.039044152945280075,
0.3714919090270996,
-0.21523942053318024,
0.28868961334228516,
-0.1711805909872055,
-0.0337359681725502,
-0.11910881102085114,
-0.027964306995272636,
-0.09001197665929794,
-0.1263740062713623,
-0.03206019103527069,
-0.05657798796892166,
0.29186639189720154,
0.12021108716726303,
0.09077910333871841,
-0.31210798025131226,
-0.10801228135824203,
-0.21185287833213806,
-0.21459469199180603,
0.26022908091545105,
-0.025187093764543533,
-0.5517681837081909,
-0.047547437250614166,
-0.1702069789171219,
0.15399527549743652,
0.01213715597987175,
0.1869329810142517,
-0.3203658163547516,
0.19473771750926971,
-0.07455575466156006,
-0.1296604424715042,
-0.2249746024608612,
0.23782286047935486,
0.08942815661430359,
0.046100299805402756,
0.30924180150032043,
-0.635392427444458,
0.1701677441596985,
-0.019093193113803864,
0.295718252658844,
-0.3063867688179016,
0.05945543199777603,
-0.14946021139621735,
0.005105551332235336,
0.10520067065954208,
-0.50797438621521,
0.08962608873844147,
-0.16390714049339294,
0.0149552496150136,
-0.17651309072971344,
-0.18535663187503815,
-0.21128833293914795,
-0.04080482944846153,
-0.013154360465705395,
-0.005392002873122692,
-0.27532249689102173,
-0.07769215852022171,
-0.09433863312005997,
-0.11514656245708466,
0.40517324209213257,
0.11053316295146942,
0.22176150977611542,
0.012043788097798824,
-0.30308327078819275,
-0.3747802674770355,
-0.24461543560028076,
0.26335275173187256,
-0.3676403760910034,
-0.6070089936256409,
0.3593265116214752,
-0.476705938577652,
-0.34569239616394043,
0.04336665943264961,
0.13311946392059326,
0.09917193651199341,
0.4297138452529907,
-0.004109982401132584,
-0.021154772490262985,
-0.22804950177669525,
0.22101619839668274,
-0.19640354812145233,
0.11389998346567154,
0.031886473298072815,
0.001794708427041769,
0.13761499524116516,
-0.034489184617996216,
-0.1062229573726654,
0.04729996249079704,
0.006585143506526947,
-0.25721901655197144,
0.11314891278743744,
0.036050185561180115,
0.16075767576694489,
0.7411163449287415,
0.4388713240623474,
0.3008575439453125,
0.3324706256389618,
0.31142622232437134,
0.6650043725967407,
0.09719452261924744,
-0.113444484770298,
0.13567137718200684,
-0.03173096477985382,
-0.10317802429199219,
0.062498848885297775,
0.02724224328994751,
-0.22289295494556427,
-0.0018456019461154938,
0.06449903547763824,
-0.28018996119499207,
-0.38812968134880066,
-0.27470627427101135,
-0.3506069481372833,
0.1838005781173706,
0.11023126542568207,
0.08564334362745285,
-0.2223825752735138,
-0.21600085496902466,
0.010568276047706604,
0.34640079736709595,
0.24701666831970215,
0.22854863107204437,
-0.36712953448295593,
-0.019349200651049614,
-0.29435786604881287,
0.3742135167121887,
0.02274469844996929,
0.47503557801246643,
-0.22462408244609833,
0.21389251947402954,
0.12893417477607727,
0.33772701025009155,
0.3386283814907074,
-0.43783172965049744,
0.2274724543094635,
-0.05677543580532074,
0.23456180095672607,
0.4198524057865143,
-0.23324207961559296,
0.43523654341697693,
0.47182726860046387,
0.00204264372587204,
0.1408073604106903,
0.15493729710578918,
-0.14561226963996887,
-0.45882806181907654,
-0.19672569632530212,
-0.10025239735841751,
-0.1599142700433731,
0.14191704988479614,
0.21065926551818848,
-0.039617881178855896,
-0.022919565439224243,
0.29281899333000183,
-0.32811251282691956,
-0.11986905336380005,
-0.030273232609033585,
-0.18947455286979675,
0.18527644872665405,
0.1096680536866188,
-0.030437899753451347,
0.30705174803733826,
0.08747169375419617,
0.03221462294459343,
0.3932322561740875,
0.023763030767440796,
0.10954945534467697,
0.35670650005340576,
-0.225663423538208,
0.31067371368408203,
-0.164149671792984,
-0.21359066665172577,
0.33647504448890686,
-0.042443037033081055,
-0.380638986825943,
-0.11524610966444016,
0.10904666781425476,
-0.1874639242887497,
-0.2366187572479248,
-0.0766056478023529,
-0.12061221897602081,
0.028880871832370758,
-0.27136436104774475,
-0.6071845293045044,
0.24860629439353943,
0.6297311186790466,
-0.32287025451660156,
0.2944401502609253,
-0.3077930808067322,
-0.34628114104270935,
0.047327715903520584,
0.09541148692369461,
0.6720286011695862,
-0.20862455666065216,
0.3101058602333069,
-0.4427041709423065,
0.08982443809509277,
0.030825721099972725,
-0.4978625774383545,
0.11848349869251251,
-0.40835967659950256,
-0.4058099389076233,
-0.1548294872045517,
-0.1048942506313324,
0.09940674155950546,
0.439502477645874,
0.0288240946829319,
0.15832939743995667,
-0.09289352595806122,
-0.02731206640601158,
-0.17797894775867462,
-0.16550488770008087,
-0.18108521401882172,
-0.304315447807312,
0.3318406939506531,
0.135680690407753,
-0.29328829050064087,
0.06253860890865326,
-0.03697885572910309,
0.024046825245022774,
-0.16085763275623322,
0.2299262136220932,
-0.29784202575683594,
0.026766140013933182,
-0.5783846974372864,
0.08103027939796448,
-0.20238123834133148,
-0.037169311195611954,
0.1441650390625,
0.3316223919391632,
0.34999024868011475,
0.31777673959732056,
-0.006427360698580742,
0.027927611023187637,
0.32962027192115784,
0.15193039178848267,
-0.27062806487083435,
0.049439508467912674,
0.23874124884605408,
0.17179200053215027,
0.09231095761060715,
-0.2741941213607788,
-0.1687273234128952,
-0.2862182557582855,
-0.34047213196754456,
0.24411608278751373,
-0.015216931700706482,
-0.1859956681728363,
-0.002658284269273281,
-0.055278897285461426,
0.09385223686695099,
0.03968660905957222,
0.09528684616088867,
0.4472772479057312,
-0.01914764940738678,
0.5354306697845459,
-0.3422574996948242,
-0.2824053168296814,
0.04968687891960144,
0.5333956480026245,
-0.010320130735635757,
-0.23136869072914124,
0.12325938791036606,
-0.3668879568576813,
-0.2851038873195648,
-0.16423599421977997,
0.2133500576019287,
0.07579884678125381,
-0.08060702681541443,
-0.07032787054777145,
-0.0012589569669216871,
-0.031781114637851715,
0.22647760808467865,
-0.486390620470047,
0.06760752201080322,
0.15585818886756897,
0.17845602333545685,
-0.3788420259952545,
-0.4165932238101959,
-0.26632970571517944,
-0.40019693970680237,
0.2526356875896454,
0.22417333722114563,
-0.5527951121330261,
0.1362060308456421,
0.10731586068868637,
-0.21616241335868835,
-0.21276715397834778,
0.04592962563037872,
0.10709282010793686,
0.21278810501098633,
0.05317201465368271,
-0.13369113206863403,
-0.20462332665920258,
-0.07298800349235535,
-0.014484919607639313,
-0.07330530881881714,
-0.20269769430160522,
-0.024058526381850243,
0.13688835501670837,
0.2004258930683136,
-0.2765812277793884,
0.09283746778964996,
-0.4106261134147644,
-0.12571924924850464,
-0.44054052233695984,
0.015069577842950821,
0.2330184280872345,
0.22877825796604156,
0.3906266689300537,
0.17725498974323273,
-0.0344204306602478,
-0.1514303982257843,
0.15404286980628967,
-0.10499007999897003,
-0.22961951792240143,
-0.2043357938528061,
0.24281463027000427,
-0.24282421171665192,
-0.04971465840935707,
0.0680815801024437,
-0.07699888199567795,
0.10460284352302551,
0.0788835734128952,
0.03050297684967518,
-0.045355141162872314,
0.019006412476301193,
0.2534480094909668,
0.2714625298976898,
-0.005942404270172119,
-0.09741127490997314,
0.07275199890136719,
0.36550605297088623,
0.10998628288507462,
0.07624145597219467,
-0.2845463156700134,
0.41509950160980225,
-0.08765117824077606,
0.09153512120246887,
0.3425660729408264,
0.2678275406360626,
-0.23539592325687408,
0.14936938881874084,
-0.09801879525184631,
0.06926115602254868,
-0.3902864456176758,
0.4481528401374817,
-0.024027924984693527,
0.14722861349582672,
0.057454075664281845,
0.4231712818145752,
0.22907544672489166,
0.04661234840750694,
0.40670454502105713,
0.24815621972084045,
0.26051682233810425,
0.3397054374217987,
-0.3458591401576996,
0.1276785135269165,
-0.7042189836502075,
0.12755955755710602,
-0.019752174615859985,
0.05612945929169655,
0.2758682072162628,
0.07587312161922455,
0.04238241910934448,
-0.014359221793711185,
-0.31971946358680725,
-0.01801220513880253,
-0.12879620492458344,
-0.14074349403381348,
-0.11641556024551392,
0.11532832682132721,
0.11066120117902756,
0.1054370105266571,
-0.2872696816921234,
-0.13925322890281677,
-0.213351771235466,
0.18351617455482483,
0.19806309044361115,
0.044896289706230164,
0.309052050113678,
0.070203498005867,
0.153621107339859,
0.010563291609287262,
-0.1587676703929901,
-0.05056092143058777,
-0.49937689304351807,
-0.15934792160987854,
0.14925192296504974,
0.08371581137180328,
0.024594228714704514,
0.10813581198453903,
0.14143188297748566,
0.1591997891664505,
0.279460608959198,
0.06849213689565659,
-0.2762519121170044,
0.335064560174942,
-0.10864569246768951,
-0.3857877850532532,
0.07748265564441681,
0.0289661455899477,
-0.053108830004930496,
0.00607684999704361,
-0.18144989013671875,
0.0473565012216568,
0.04595685005187988,
-0.08644597977399826,
-0.1857285350561142,
-0.4063049852848053,
0.12038037180900574,
0.02077469974756241,
0.1491137146949768,
0.0456712432205677,
0.5845217704772949,
0.03634675219655037,
0.18517136573791504,
-0.489361435174942,
0.04143749549984932,
0.3916395902633667,
0.25771671533584595,
0.3724982738494873,
-0.045926496386528015,
-0.04854629933834076,
0.030619420111179352,
-0.4142846167087555,
0.10012192279100418,
0.16233444213867188,
0.4591631293296814,
-0.05316489562392235,
-0.17159907519817352,
0.0971519947052002,
-0.09358817338943481,
0.6016910672187805,
-0.24670101702213287,
0.3261900246143341,
0.3333633840084076,
-0.21556423604488373,
-0.3029915392398834,
0.13789178431034088,
-0.06599979102611542,
0.08547970652580261,
-0.3516234755516052,
0.2646261751651764,
0.14755208790302277,
0.06463216990232468,
-0.11059926450252533,
-0.20442190766334534,
0.22349295020103455,
0.4779505729675293,
0.4655921757221222,
0.2324145883321762,
-0.007799722254276276,
-0.0009458363056182861,
0.43179261684417725,
-0.3745252192020416,
0.1243576630949974,
-0.16574302315711975,
-0.09362945705652237,
-0.20614869892597198,
0.056370168924331665,
-0.633499801158905,
-0.1452101171016693,
-0.3863382339477539,
0.01962197758257389,
-0.11994868516921997,
0.24215087294578552,
0.06491293013095856,
0.020603926852345467,
-0.14336639642715454,
0.03325856849551201,
0.2996152639389038,
0.2285999357700348,
-0.14489315450191498,
0.3779789209365845,
-0.4137222170829773,
-0.10177521407604218,
0.28888556361198425,
-0.2719569504261017,
-0.20223797857761383,
-0.06339412182569504,
0.3643738031387329,
0.18076804280281067,
-0.2005174607038498,
0.06393932551145554,
0.08666559308767319,
0.37632817029953003,
-0.38345658779144287,
-0.08459322154521942,
0.034333378076553345,
-0.3514173924922943,
0.06721359491348267,
-0.13584424555301666,
0.5006895065307617,
0.029812224209308624,
-0.2390042394399643,
0.04794757440686226,
-0.22294779121875763
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | > This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions.
I was referring to this. Ensuring that newly generated `cache_files` have the same permissions | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 43 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
> This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions.
I was referring to this. Ensuring that newly generated `cache_files` have the same permissions | [
-0.1649942398071289,
0.25044775009155273,
-0.13118036091327667,
0.0018532834947109222,
0.016403190791606903,
0.06968594342470169,
0.38593578338623047,
0.20129217207431793,
-0.24317604303359985,
-0.026852399110794067,
-0.08324309438467026,
0.03175580874085426,
0.008832098916172981,
-0.20328432321548462,
-0.056622348725795746,
0.12449270486831665,
0.22513818740844727,
0.10585683584213257,
-0.04691259562969208,
-0.07590369880199432,
-0.10049763321876526,
-0.15619905292987823,
0.0020295530557632446,
-0.13827483355998993,
-0.280306875705719,
-0.13936661183834076,
0.2509010136127472,
0.18544860184192657,
0.02434379607439041,
-0.1551295965909958,
0.24018563330173492,
0.5586883425712585,
0.11958904564380646,
0.12781274318695068,
-0.00010850898252101615,
-0.15338850021362305,
-0.05511857569217682,
-0.08041145652532578,
0.027139779180288315,
0.19290733337402344,
-0.07473485171794891,
-0.19690850377082825,
-0.1917303502559662,
-0.15302519500255585,
-0.13575822114944458,
0.1554868072271347,
0.10049732774496078,
-0.6505795121192932,
0.5274173617362976,
0.11681640893220901,
0.21939754486083984,
-0.20994728803634644,
-0.384420245885849,
0.0381094366312027,
0.22510257363319397,
0.04798509553074837,
-0.16841156780719757,
0.12000112235546112,
0.22474661469459534,
-0.11875918507575989,
-0.04395570605993271,
0.13324086368083954,
-0.30487141013145447,
0.10426659882068634,
0.20586103200912476,
-0.13825535774230957,
-0.24433398246765137,
-0.5563913583755493,
0.046993181109428406,
0.08757811784744263,
0.6264381408691406,
-0.0997859463095665,
-0.5162678360939026,
-0.245674729347229,
0.10344859957695007,
0.14922907948493958,
0.2983025312423706,
0.3047206699848175,
0.05446990951895714,
0.23999522626399994,
-0.5317013263702393,
-0.06254441291093826,
-0.15934056043624878,
-0.05855782330036163,
0.23578208684921265,
-0.10489597916603088,
0.008251579478383064,
0.023669682443141937,
0.02071157470345497,
-0.07963105291128159,
0.1798667162656784,
0.189584881067276,
-0.40093299746513367,
0.32938170433044434,
-0.20592878758907318,
0.058328717947006226,
-0.22781381011009216,
0.44059205055236816,
0.2491430640220642,
0.31865394115448,
0.15853556990623474,
0.2033313512802124,
0.078240305185318,
0.13837620615959167,
-0.10317283868789673,
0.256759911775589,
0.3083615303039551,
0.3042280673980713,
0.5483264923095703,
-0.3730138838291168,
-0.2216494083404541,
0.032632749527692795,
0.03258310258388519,
-0.36786389350891113,
0.09040044248104095,
0.30389338731765747,
0.0947403833270073,
-0.176172137260437,
0.21369844675064087,
0.10219889879226685,
-0.004824411123991013,
-0.2351536899805069,
-0.042186956852674484,
0.23202833533287048,
0.1545981466770172,
-0.053975582122802734,
0.045296140015125275,
0.1512020081281662,
-0.04800552874803543,
-0.3640180826187134,
-0.01020241528749466,
-0.36593347787857056,
-0.39534634351730347,
0.4914131164550781,
0.49197664856910706,
-0.15804313123226166,
-0.03121596947312355,
0.28635966777801514,
0.18924784660339355,
-0.1733047366142273,
0.29453718662261963,
0.009413156658411026,
0.42023220658302307,
0.26062077283859253,
0.19658568501472473,
0.2976064682006836,
0.05164390802383423,
0.026749148964881897,
-0.07834360003471375,
0.32221707701683044,
-0.3108765780925751,
-0.10915575921535492,
0.2779991626739502,
0.09381438791751862,
-0.04762059077620506,
0.29097887873649597,
-0.3671768605709076,
0.07755401730537415,
0.5478349924087524,
-0.16281241178512573,
0.3683687746524811,
0.25728583335876465,
-0.09550125896930695,
-0.3553992509841919,
-0.18840882182121277,
0.39075523614883423,
-0.02818889543414116,
-0.02318037673830986,
0.006880022119730711,
-0.0012336764484643936,
-0.10358486324548721,
0.2831072211265564,
-0.06478151679039001,
0.12355940043926239,
-0.13713684678077698,
0.16073545813560486,
0.41297802329063416,
0.01671844720840454,
-0.48963555693626404,
0.11584015935659409,
0.15469320118427277,
-0.11525250971317291,
0.22078615427017212,
0.009419240057468414,
0.10010047256946564,
-0.1719111055135727,
-0.16121071577072144,
0.32146501541137695,
0.2198985517024994,
0.2970985174179077,
0.07045142352581024,
0.07795050740242004,
0.06670191138982773,
-0.18115566670894623,
0.09246125817298889,
0.41824692487716675,
0.29406115412712097,
-0.22950737178325653,
0.13120122253894806,
-0.3995589315891266,
0.2576645314693451,
0.35492271184921265,
0.05610375106334686,
-0.13883700966835022,
-0.02278776653110981,
0.015193533152341843,
-0.46531563997268677,
0.27691587805747986,
-0.22630146145820618,
-0.384669691324234,
0.10977165400981903,
-0.46397894620895386,
0.05450665205717087,
-0.35795602202415466,
-0.18131566047668457,
-0.07143257558345795,
0.1170307844877243,
-0.0007738620042800903,
0.008554238826036453,
-0.33084636926651,
0.14233127236366272,
0.47583580017089844,
0.21525631844997406,
0.010602911002933979,
-0.1697898954153061,
0.0889066681265831,
-0.08400940895080566,
-0.055113792419433594,
-0.23125579953193665,
-0.03182954341173172,
0.341377854347229,
-0.036316610872745514,
-0.2875850796699524,
0.24205094575881958,
0.0710616335272789,
0.10216347128152847,
-0.08458789438009262,
0.26789215207099915,
0.036349184811115265,
0.1262853592634201,
0.11690729856491089,
-0.32772666215896606,
-0.10602620244026184,
-0.10146273672580719,
-0.17382779717445374,
0.37571072578430176,
-0.09455500543117523,
-0.055638574063777924,
-0.22356544435024261,
0.15332193672657013,
0.14442716538906097,
-0.0640033558011055,
-0.12712012231349945,
-0.16572269797325134,
-0.018902387470006943,
0.16578993201255798,
0.3277019262313843,
0.21675170958042145,
0.11227644979953766,
0.12250778079032898,
0.2859785854816437,
0.17968308925628662,
0.032764777541160583,
-0.01685085892677307,
-0.024493776261806488,
0.10011156648397446,
0.14474758505821228,
0.43725287914276123,
0.2620210349559784,
0.05756889656186104,
0.2727525234222412,
-0.13112391531467438,
0.3154355585575104,
-0.18056121468544006,
-0.008116647601127625,
-0.1601167917251587,
0.05200551077723503,
-0.06723514199256897,
-0.17808836698532104,
-0.012712878175079823,
-0.046687208116054535,
0.2545967400074005,
0.16357320547103882,
0.06347518414258957,
-0.3407384753227234,
-0.08512403815984726,
-0.2208598256111145,
-0.1682959794998169,
0.22486062347888947,
-0.06772898882627487,
-0.5411046147346497,
-0.00046133343130350113,
-0.16864238679409027,
0.15752476453781128,
-0.01670021377503872,
0.2290780395269394,
-0.2502935826778412,
0.23094302415847778,
-0.05176796764135361,
-0.10686393827199936,
-0.28523918986320496,
0.1904081404209137,
0.031878381967544556,
0.039156410843133926,
0.2648197114467621,
-0.6819693446159363,
0.10821674764156342,
-0.04981864243745804,
0.32140177488327026,
-0.3362495005130768,
-0.00658513605594635,
-0.19647957384586334,
-0.03120582550764084,
0.09320999681949615,
-0.5233699083328247,
0.11066798865795135,
-0.09998898953199387,
-0.0006879335269331932,
-0.19436617195606232,
-0.2517959475517273,
-0.2066124528646469,
-0.0055070677772164345,
-0.034969262778759,
-0.05342075601220131,
-0.2905822694301605,
-0.15118521451950073,
-0.06140696257352829,
-0.14313049614429474,
0.4335411787033081,
0.08511146903038025,
0.22980502247810364,
0.08961611241102219,
-0.2578107416629791,
-0.48100247979164124,
-0.1615278124809265,
0.3298187851905823,
-0.4195413589477539,
-0.5174463987350464,
0.3248215615749359,
-0.528296709060669,
-0.35277673602104187,
0.02358565852046013,
0.10813522338867188,
0.09741409122943878,
0.5158917903900146,
0.011687502264976501,
-0.04205739498138428,
-0.17285090684890747,
0.21454975008964539,
-0.2988649308681488,
0.09960328787565231,
0.026134535670280457,
0.060690123587846756,
0.0976807028055191,
-0.04869886860251427,
-0.12227079272270203,
0.04620816558599472,
-0.035747259855270386,
-0.2109108567237854,
0.07056811451911926,
0.015197176486253738,
0.1574348360300064,
0.6721853613853455,
0.39583998918533325,
0.27181488275527954,
0.281913161277771,
0.25980761647224426,
0.6446481347084045,
0.09285823255777359,
-0.11205114424228668,
0.09377625584602356,
-0.04349067807197571,
-0.11485094577074051,
-0.007651045918464661,
-0.013474168255925179,
-0.2159670740365982,
0.01485304906964302,
0.061510246247053146,
-0.2859518527984619,
-0.41339489817619324,
-0.18908348679542542,
-0.39305779337882996,
0.20430728793144226,
0.14775097370147705,
0.11174327880144119,
-0.20246732234954834,
-0.1891777217388153,
0.017769748345017433,
0.3212448060512543,
0.25250017642974854,
0.20857903361320496,
-0.3571208715438843,
-0.03252871334552765,
-0.25359290838241577,
0.38595902919769287,
-0.04132729023694992,
0.4713115990161896,
-0.19285517930984497,
0.06167103350162506,
0.13504061102867126,
0.3420904278755188,
0.433167040348053,
-0.37255480885505676,
0.1792226880788803,
-0.056719664484262466,
0.22478413581848145,
0.3942977488040924,
-0.31135186553001404,
0.4675220847129822,
0.388084352016449,
-0.0016573555767536163,
0.17092224955558777,
0.10481380671262741,
-0.13306662440299988,
-0.41717854142189026,
-0.20210684835910797,
-0.12940901517868042,
-0.1466636210680008,
0.10253192484378815,
0.23653152585029602,
-0.1127217561006546,
-0.04776734858751297,
0.20651750266551971,
-0.33653005957603455,
-0.2709624469280243,
0.005045775324106216,
-0.22085455060005188,
0.16279026865959167,
0.10110016912221909,
0.017234567552804947,
0.33427694439888,
0.11632201075553894,
0.039571549743413925,
0.3923642039299011,
0.02802477404475212,
0.04752200096845627,
0.34743407368659973,
-0.2491830587387085,
0.3688552975654602,
-0.22018644213676453,
-0.20185592770576477,
0.27427247166633606,
0.041949234902858734,
-0.38010987639427185,
-0.13464263081550598,
0.09521463513374329,
-0.14628462493419647,
-0.3152121603488922,
-0.09260162711143494,
-0.14121614396572113,
-0.050810184329748154,
-0.24012890458106995,
-0.6445425152778625,
0.21525707840919495,
0.5688732266426086,
-0.34299492835998535,
0.22127489745616913,
-0.3352547883987427,
-0.359467089176178,
0.11606749147176743,
0.12925344705581665,
0.7586533427238464,
-0.17006243765354156,
0.33388155698776245,
-0.3670004606246948,
0.12707975506782532,
0.023538002744317055,
-0.4897478222846985,
0.09701815992593765,
-0.428050696849823,
-0.3520039916038513,
-0.1349552720785141,
-0.14236481487751007,
0.03065698966383934,
0.4354766011238098,
-0.012135632336139679,
0.10666307061910629,
-0.10661634057760239,
-0.09492731094360352,
-0.2107929289340973,
-0.16999435424804688,
-0.2021680474281311,
-0.3152827322483063,
0.2859908938407898,
0.15210016071796417,
-0.31861168146133423,
0.07003294676542282,
-0.06123311445116997,
-0.031659699976444244,
-0.1353672295808792,
0.22441045939922333,
-0.21813806891441345,
0.07599858194589615,
-0.5058147311210632,
0.09524080157279968,
-0.18062357604503632,
-0.06956517696380615,
0.11364404857158661,
0.2644091248512268,
0.29614511132240295,
0.28167861700057983,
0.019024355337023735,
0.0406758189201355,
0.3031320869922638,
0.22017361223697662,
-0.250316858291626,
-0.025692380964756012,
0.34893694519996643,
0.1968003809452057,
0.09932481497526169,
-0.3126577138900757,
-0.1262638121843338,
-0.21249522268772125,
-0.3996906280517578,
0.18700873851776123,
0.0007016845047473907,
-0.2862561047077179,
0.09420089423656464,
0.05129086226224899,
0.06472788751125336,
0.07653650641441345,
0.10846054553985596,
0.39290499687194824,
-0.08629599958658218,
0.5915558338165283,
-0.2861959636211395,
-0.33669790625572205,
0.0760435163974762,
0.5156168937683105,
-0.001592155545949936,
-0.2648317217826843,
0.14391472935676575,
-0.37566232681274414,
-0.2430400401353836,
-0.16842132806777954,
0.18517744541168213,
0.08967799693346024,
-0.19361691176891327,
-0.005899298004806042,
0.0644206553697586,
-0.027755804359912872,
0.2419086992740631,
-0.4868359863758087,
0.0766688734292984,
0.18608689308166504,
0.20712529122829437,
-0.32045605778694153,
-0.35785403847694397,
-0.29235315322875977,
-0.38404354453086853,
0.2802538275718689,
0.2492891550064087,
-0.4645663797855377,
0.10486729443073273,
0.13954342901706696,
-0.24410702288150787,
-0.1916092187166214,
0.12409364432096481,
0.1581026315689087,
0.1949627846479416,
-0.0215587317943573,
-0.1759292036294937,
-0.20685486495494843,
-0.06861617416143417,
0.028729820623993874,
-0.06469614803791046,
-0.19900116324424744,
-0.10469408333301544,
0.1134180873632431,
0.1913428008556366,
-0.24480436742305756,
0.03402415290474892,
-0.37470465898513794,
-0.09023667871952057,
-0.41593316197395325,
0.048830289393663406,
0.24459737539291382,
0.1655193269252777,
0.37176045775413513,
0.16951146721839905,
0.004059001803398132,
-0.1480574607849121,
0.12896975874900818,
-0.13618187606334686,
-0.17486990988254547,
-0.16195900738239288,
0.24600434303283691,
-0.30916187167167664,
-0.0388602577149868,
-0.03129486367106438,
-0.08945449441671371,
0.16389791667461395,
0.11824067682027817,
0.08391813933849335,
0.006505373865365982,
-0.009380482137203217,
0.16490192711353302,
0.2747560441493988,
0.09075206518173218,
-0.1394856721162796,
0.01619158871471882,
0.37323760986328125,
0.13462215662002563,
0.0957646444439888,
-0.2577315866947174,
0.3211348354816437,
-0.1577557474374771,
0.009505916386842728,
0.36660030484199524,
0.3107985556125641,
-0.2781638205051422,
0.12290104478597641,
-0.0818171352148056,
0.07879975438117981,
-0.3840862512588501,
0.4889892339706421,
-0.06067616119980812,
0.09781910479068756,
0.02883617766201496,
0.4561583697795868,
0.23425620794296265,
0.012877248227596283,
0.3948359489440918,
0.19139215350151062,
0.2803451120853424,
0.3155326843261719,
-0.295694500207901,
0.09327053278684616,
-0.6603912115097046,
0.12708143889904022,
-0.013349801301956177,
0.035136736929416656,
0.31754469871520996,
0.04707642272114754,
0.030849695205688477,
0.0010082637891173363,
-0.372147798538208,
-0.03578746318817139,
-0.02881687507033348,
-0.12937825918197632,
-0.1112949550151825,
0.11160171031951904,
0.09496860951185226,
0.06348319351673126,
-0.2576337456703186,
-0.11629332602024078,
-0.17332743108272552,
0.209568053483963,
0.3084503412246704,
0.060620442032814026,
0.24291878938674927,
0.034362442791461945,
0.16613730788230896,
0.06296411156654358,
-0.198405459523201,
-0.05869586020708084,
-0.42291951179504395,
-0.1399533748626709,
0.21670576930046082,
0.06524915248155594,
0.07712361216545105,
0.17806631326675415,
0.15263548493385315,
0.20932364463806152,
0.29923149943351746,
0.10385666787624359,
-0.2305787354707718,
0.38609325885772705,
-0.06367011368274689,
-0.29876509308815,
-0.009126339107751846,
0.04105428606271744,
-0.06762213259935379,
-0.013878080993890762,
-0.2073087841272354,
0.024931032210588455,
0.09936772286891937,
0.0009107664227485657,
-0.004614990204572678,
-0.3906277120113373,
0.027903378009796143,
-0.02591438591480255,
0.12537115812301636,
0.0821533277630806,
0.6104060411453247,
0.030668780207633972,
0.18541723489761353,
-0.528882622718811,
0.06893424689769745,
0.5035285949707031,
0.31435641646385193,
0.32922178506851196,
-0.13998368382453918,
-0.07386057078838348,
0.057714030146598816,
-0.3813983201980591,
0.10410387814044952,
0.24452298879623413,
0.4890330135822296,
-0.07097911089658737,
-0.11973419785499573,
0.03860851749777794,
-0.13649515807628632,
0.5329028964042664,
-0.3225667178630829,
0.2944777011871338,
0.3345535397529602,
-0.23734313249588013,
-0.2263547033071518,
0.1648189127445221,
-0.0411134734749794,
0.10476499795913696,
-0.29335924983024597,
0.27889886498451233,
0.2183084338903427,
0.0790698453783989,
-0.10363513231277466,
-0.17699988186359406,
0.23642253875732422,
0.491558700799942,
0.5217713117599487,
0.2991138994693756,
-0.06436415016651154,
0.02741730585694313,
0.4217230975627899,
-0.474216103553772,
0.059478070586919785,
-0.19547370076179504,
-0.10818543285131454,
-0.12176071107387543,
-0.05821848288178444,
-0.5593055486679077,
-0.14126017689704895,
-0.4380929172039032,
0.009638828225433826,
-0.08177010715007782,
0.25507089495658875,
-0.011718295514583588,
0.023389818146824837,
-0.09026854485273361,
0.03345385938882828,
0.2685428857803345,
0.33784228563308716,
-0.11839181184768677,
0.43491557240486145,
-0.4485853314399719,
-0.1820119321346283,
0.32861030101776123,
-0.2922590374946594,
-0.2384980171918869,
-0.006625652313232422,
0.4036857783794403,
0.11225419491529465,
-0.21815800666809082,
0.014423735439777374,
0.12851989269256592,
0.3536309003829956,
-0.38262733817100525,
-0.020264485850930214,
0.1170404851436615,
-0.3663055896759033,
0.030218686908483505,
-0.13885799050331116,
0.4482254683971405,
0.006810346618294716,
-0.2219233214855194,
0.049189675599336624,
-0.23702731728553772
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Yes exactly
I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 36 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Yes exactly
I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ? | [
-0.09823161363601685,
0.2663794159889221,
-0.1286434382200241,
0.08532846719026566,
-0.13202010095119476,
0.04467376321554184,
0.33241763710975647,
0.11853072047233582,
-0.23568880558013916,
-0.062147945165634155,
-0.09892136603593826,
0.03703135624527931,
0.01958252675831318,
-0.24613919854164124,
-0.08055853098630905,
0.08728256821632385,
0.12276165932416916,
0.10728414356708527,
-0.0332508385181427,
-0.09529832005500793,
-0.0240278709679842,
-0.17155767977237701,
-0.035181958228349686,
-0.033267728984355927,
-0.1896342635154724,
-0.2290267050266266,
0.27390971779823303,
0.21339201927185059,
0.03091566637158394,
-0.20104707777500153,
0.23493309319019318,
0.5016703009605408,
0.10135525465011597,
0.20108282566070557,
-0.0001147356815636158,
-0.26589080691337585,
0.03387370705604553,
-0.057564057409763336,
0.007843976840376854,
0.2669464349746704,
-0.11617343127727509,
-0.2100125104188919,
-0.07042799890041351,
-0.13357152044773102,
0.0365237295627594,
0.05457226186990738,
0.09103559702634811,
-0.7105927467346191,
0.5204787254333496,
0.012276344932615757,
0.179172545671463,
-0.1938917636871338,
-0.40238627791404724,
0.08328650146722794,
0.2860991656780243,
0.04306570440530777,
-0.1606019139289856,
0.17302799224853516,
0.3103097975254059,
-0.1361086368560791,
-0.052435196936130524,
0.10569500923156738,
-0.22002731263637543,
0.09869468212127686,
0.2257886528968811,
-0.1704336255788803,
-0.2636164724826813,
-0.4594811201095581,
0.07593795657157898,
0.1365865170955658,
0.8266541361808777,
-0.11984028667211533,
-0.48207327723503113,
-0.26380956172943115,
0.07331382483243942,
0.1983567327260971,
0.2936440110206604,
0.3246239721775055,
0.0016635525971651077,
0.20019106566905975,
-0.3582295775413513,
-0.1222776547074318,
-0.19945013523101807,
-0.02338116616010666,
0.24687102437019348,
-0.1406528204679489,
-0.05007738620042801,
0.05355256050825119,
0.024977311491966248,
-0.08493586629629135,
0.2674470841884613,
0.09495420753955841,
-0.3414616584777832,
0.3800835609436035,
-0.18539932370185852,
0.09960773587226868,
-0.2771451771259308,
0.4416385293006897,
0.18489894270896912,
0.36709994077682495,
0.3062283396720886,
0.2615469992160797,
0.020835716277360916,
0.1910761594772339,
0.01408771425485611,
0.23006024956703186,
0.323211133480072,
0.33523744344711304,
0.4978231191635132,
-0.4137333631515503,
-0.1270277351140976,
0.06572620570659637,
-0.06331136077642441,
-0.41951632499694824,
0.04750664159655571,
0.2454412579536438,
-0.027808766812086105,
-0.20976154506206512,
0.22296661138534546,
0.13239292800426483,
-0.06059787794947624,
-0.27627748250961304,
0.02713686227798462,
0.3039216697216034,
0.09225525707006454,
0.012480752542614937,
-0.026843346655368805,
0.15328896045684814,
0.03319394588470459,
-0.3798218369483948,
0.033765532076358795,
-0.3871082365512848,
-0.42007169127464294,
0.49298709630966187,
0.40442731976509094,
-0.1765279918909073,
-0.03310522437095642,
0.2085525542497635,
0.24250459671020508,
-0.16365689039230347,
0.33663538098335266,
-0.042591605335474014,
0.37922990322113037,
0.28638535737991333,
0.1798950582742691,
0.3634328544139862,
0.019832326099276543,
0.07667848467826843,
-0.10699008405208588,
0.35860511660575867,
-0.3342374265193939,
-0.14673800766468048,
0.280613511800766,
0.03042960911989212,
-0.04770880937576294,
0.2889643907546997,
-0.4568909704685211,
0.06355971097946167,
0.4904051125049591,
-0.1834811568260193,
0.4105268716812134,
0.25865238904953003,
-0.06671162694692612,
-0.4665747284889221,
-0.2035536766052246,
0.4040682911872864,
-0.15680092573165894,
-0.04365641623735428,
-0.051137350499629974,
0.062105949968099594,
-0.128089040517807,
0.30886077880859375,
-0.12447924166917801,
0.11409711092710495,
-0.1328297108411789,
0.16971264779567719,
0.6214051842689514,
-0.055419906973838806,
-0.5478653311729431,
0.1586867868900299,
0.18929718434810638,
-0.10273480415344238,
0.217423677444458,
-0.02423067018389702,
0.025966783985495567,
-0.1259123533964157,
-0.21561461687088013,
0.2760072946548462,
0.24079972505569458,
0.1559186577796936,
0.10188639163970947,
0.027028372511267662,
-0.03006337583065033,
-0.08314910531044006,
0.022522732615470886,
0.27148357033729553,
0.4265301525592804,
-0.4358934760093689,
0.25476977229118347,
-0.29616445302963257,
0.24311040341854095,
0.4442703127861023,
0.08521579951047897,
-0.07153153419494629,
-0.0012006841134279966,
-0.020265763625502586,
-0.5487951040267944,
0.28938955068588257,
-0.1768636703491211,
-0.5273401737213135,
0.0809144377708435,
-0.407439649105072,
0.03927375748753548,
-0.2897554636001587,
-0.18100716173648834,
0.04668688774108887,
0.04112626612186432,
0.03388349711894989,
-0.08872561156749725,
-0.4143952429294586,
0.1162465512752533,
0.38773560523986816,
0.23590345680713654,
0.03151576593518257,
-0.06985557079315186,
0.0841895267367363,
-0.07125547528266907,
-0.037409357726573944,
-0.2687804102897644,
-0.049305446445941925,
0.17686088383197784,
0.03499918803572655,
-0.25300928950309753,
0.2679134011268616,
0.06014711782336235,
0.14415737986564636,
-0.08025025576353073,
0.24440817534923553,
0.030431708320975304,
-0.014118637889623642,
0.16848565638065338,
-0.2584221661090851,
-0.08733751624822617,
-0.13047997653484344,
-0.25036633014678955,
0.36099889874458313,
-0.17857173085212708,
-0.03346206992864609,
-0.11107425391674042,
0.13987255096435547,
0.08430871367454529,
0.01622401550412178,
-0.14756673574447632,
-0.1299830675125122,
0.052760135382413864,
0.2098967581987381,
0.4378208816051483,
0.2361803501844406,
0.07894690334796906,
0.11878594011068344,
0.2683715224266052,
0.13183030486106873,
0.11817218363285065,
-0.07360895723104477,
-0.137704998254776,
0.1421777904033661,
0.2471882402896881,
0.36562690138816833,
0.2177819311618805,
0.03979912027716637,
0.36721375584602356,
-0.2019691914319992,
0.3553773760795593,
-0.16107000410556793,
-0.04602891951799393,
-0.14808055758476257,
0.13553914427757263,
-0.06480906158685684,
-0.15608514845371246,
-0.059693265706300735,
0.018103033304214478,
0.23832708597183228,
0.1332811564207077,
0.008143157698214054,
-0.3435696065425873,
-0.1004173532128334,
-0.1508622169494629,
-0.15115326642990112,
0.17552722990512848,
-0.12994663417339325,
-0.47230052947998047,
0.05837784707546234,
-0.22198103368282318,
0.11329630017280579,
-0.023351404815912247,
0.19733715057373047,
-0.39707931876182556,
0.2917782664299011,
-0.1287025660276413,
-0.12234979122877121,
-0.24814769625663757,
0.2301952987909317,
0.08504614233970642,
-0.0017606914043426514,
0.31331658363342285,
-0.6097187399864197,
0.08887558430433273,
0.08850555121898651,
0.378898561000824,
-0.26765674352645874,
0.04291835427284241,
-0.1726454794406891,
0.08731392025947571,
-0.026572955772280693,
-0.5216033458709717,
0.037570830434560776,
-0.2170250564813614,
-0.05585591495037079,
-0.18701428174972534,
-0.2340088188648224,
-0.22171594202518463,
-0.07729373127222061,
-0.02865085005760193,
-0.011365319602191448,
-0.21435916423797607,
-0.0855836495757103,
-0.13663914799690247,
-0.18322321772575378,
0.5226252675056458,
0.1414612978696823,
0.25604933500289917,
-0.0023058680817484856,
-0.22593605518341064,
-0.40022528171539307,
-0.22433724999427795,
0.32155776023864746,
-0.35465526580810547,
-0.4346240162849426,
0.3281574547290802,
-0.513024628162384,
-0.34168103337287903,
0.030076835304498672,
0.1240740567445755,
0.10587005317211151,
0.5141778588294983,
-0.02607141062617302,
0.08564107120037079,
-0.21866963803768158,
0.2014666497707367,
-0.30879661440849304,
0.15353098511695862,
-0.003091156482696533,
0.11963710188865662,
0.14666840434074402,
-0.05331864580512047,
-0.04713233560323715,
0.0780133306980133,
-0.08128276467323303,
-0.2787155210971832,
0.11234398186206818,
-0.018968578428030014,
0.15442153811454773,
0.8165989518165588,
0.41802963614463806,
0.3073641061782837,
0.2578542232513428,
0.35547444224357605,
0.6551370024681091,
0.14289484918117523,
-0.04724741727113724,
0.11539489775896072,
-0.061089709401130676,
-0.0731162428855896,
0.058462511748075485,
0.0761318951845169,
-0.23187240958213806,
0.019900210201740265,
0.1093602329492569,
-0.24037376046180725,
-0.35661232471466064,
-0.14287903904914856,
-0.45253732800483704,
0.14258891344070435,
0.10790909826755524,
0.04641719162464142,
-0.2667256295681,
-0.20124268531799316,
0.036888767033815384,
0.28550225496292114,
0.21451251208782196,
0.2000100016593933,
-0.43934330344200134,
0.02321964129805565,
-0.2913898229598999,
0.38255059719085693,
0.024037834256887436,
0.37679317593574524,
-0.15953119099140167,
0.08786644786596298,
0.14221768081188202,
0.30853956937789917,
0.19916148483753204,
-0.3688869774341583,
0.2175956815481186,
-0.0722920149564743,
0.31339046359062195,
0.19357937574386597,
-0.23004142940044403,
0.42392656207084656,
0.41673561930656433,
-0.06499972939491272,
0.08801045268774033,
0.10432317107915878,
-0.16244888305664062,
-0.4611425995826721,
-0.16291965544223785,
-0.14005114138126373,
-0.14903010427951813,
0.12778501212596893,
0.30097195506095886,
-0.05918991565704346,
-0.05070669203996658,
0.2749481499195099,
-0.3887253701686859,
-0.19669516384601593,
-0.05698847398161888,
-0.21753567457199097,
0.18359023332595825,
0.058552518486976624,
0.0031903162598609924,
0.3556634783744812,
0.06189051270484924,
-0.024189602583646774,
0.4219604730606079,
0.10546579957008362,
0.19056172668933868,
0.45011043548583984,
-0.2394205629825592,
0.2526357173919678,
-0.19633767008781433,
-0.2536069452762604,
0.3440069556236267,
0.12801070511341095,
-0.3881402015686035,
-0.09134157747030258,
0.09488355368375778,
-0.2409776896238327,
-0.17852728068828583,
-0.14679285883903503,
-0.13932159543037415,
-0.00035108532756567,
-0.1793939620256424,
-0.5722704529762268,
0.2993486225605011,
0.5455888509750366,
-0.38739609718322754,
0.40948668122291565,
-0.18224282562732697,
-0.29151928424835205,
0.12440317869186401,
0.08555326610803604,
0.8844560384750366,
-0.1866299957036972,
0.3774629533290863,
-0.3722922205924988,
-0.007860492914915085,
0.034317612648010254,
-0.35737234354019165,
0.04801168292760849,
-0.48150524497032166,
-0.3130873739719391,
-0.1221839115023613,
-0.18200735747814178,
-0.0026543214917182922,
0.4709058403968811,
0.09557561576366425,
0.08884578198194504,
-0.16639041900634766,
-0.09674379229545593,
-0.12405666708946228,
-0.1856991946697235,
-0.17455480992794037,
-0.25469842553138733,
0.31720656156539917,
0.09955497086048126,
-0.2195299118757248,
0.038107309490442276,
-0.10165605694055557,
-0.00481121800839901,
-0.29588621854782104,
0.22374476492404938,
-0.26380014419555664,
0.06633473932743073,
-0.6536071300506592,
0.08839958906173706,
-0.1841793805360794,
-0.1916700303554535,
0.19247350096702576,
0.32334813475608826,
0.2500438094139099,
0.19081543385982513,
0.010780553333461285,
0.08489803969860077,
0.34551259875297546,
0.1513487994670868,
-0.2724231779575348,
0.04242589324712753,
0.25807127356529236,
0.15149036049842834,
0.10236970335245132,
-0.1992270052433014,
-0.19654375314712524,
-0.36928969621658325,
-0.3049931824207306,
0.26065611839294434,
0.020378373563289642,
-0.19662350416183472,
0.016766028478741646,
0.00965593010187149,
0.019398581236600876,
0.13386376202106476,
0.06413812935352325,
0.4409196376800537,
0.011420167051255703,
0.5084741711616516,
-0.187029168009758,
-0.2663937211036682,
0.12125468254089355,
0.4861820340156555,
-0.051714591681957245,
-0.22465179860591888,
0.20013749599456787,
-0.356620192527771,
-0.28401583433151245,
-0.1574018895626068,
0.20584002137184143,
0.22877353429794312,
-0.27392616868019104,
-0.09786048531532288,
-0.0500146746635437,
-0.12075696140527725,
0.2087792605161667,
-0.4400067627429962,
0.1652747541666031,
0.2225193977355957,
0.14455555379390717,
-0.32596355676651,
-0.37025490403175354,
-0.1557091772556305,
-0.38027283549308777,
0.16940170526504517,
0.09819402545690536,
-0.6323502063751221,
0.08480586856603622,
0.1589214950799942,
-0.19273142516613007,
-0.08594601601362228,
0.18249940872192383,
0.05552724003791809,
0.19178108870983124,
0.018381940200924873,
-0.12139365822076797,
-0.14987443387508392,
-0.11522306501865387,
-0.02714802697300911,
-0.056779637932777405,
-0.16411557793617249,
-0.039801787585020065,
0.16794858872890472,
0.18209657073020935,
-0.3579389154911041,
0.03408103436231613,
-0.4784615635871887,
-0.09294520318508148,
-0.3725864589214325,
-0.006915745325386524,
0.1440313756465912,
0.19840700924396515,
0.2655469477176666,
0.1583366096019745,
0.026544518768787384,
-0.250802218914032,
0.2939377427101135,
-0.08326390385627747,
-0.14578568935394287,
-0.17856064438819885,
0.24872799217700958,
-0.25603029131889343,
-0.06890885531902313,
0.12114912271499634,
-0.05345252901315689,
0.15995395183563232,
0.08766026049852371,
0.03294975310564041,
-0.03971904516220093,
0.013643994927406311,
0.09037626534700394,
0.3623434603214264,
0.14798498153686523,
-0.07483147084712982,
0.038425035774707794,
0.33301761746406555,
0.0894019678235054,
0.09641410410404205,
-0.2548564374446869,
0.2557435631752014,
-0.12112528830766678,
-0.013889007270336151,
0.35890835523605347,
0.24857613444328308,
-0.2838558554649353,
0.10822134464979172,
-0.11171460151672363,
-0.024605676531791687,
-0.34298861026763916,
0.41847503185272217,
0.005170535296201706,
0.0947764664888382,
0.031619053333997726,
0.4915170669555664,
0.2797822952270508,
0.13363005220890045,
0.3028978705406189,
0.1247791051864624,
0.15891633927822113,
0.484820693731308,
-0.3369288146495819,
0.13640867173671722,
-0.7019546627998352,
0.04022996500134468,
0.06432116776704788,
0.15008366107940674,
0.23707669973373413,
0.09208168089389801,
0.17444247007369995,
0.07026190310716629,
-0.3857192099094391,
0.05375460535287857,
-0.2150055319070816,
-0.10690218955278397,
-0.17355002462863922,
0.05256923288106918,
0.010166555643081665,
0.023592859506607056,
-0.25750845670700073,
-0.23583996295928955,
-0.25236421823501587,
0.23807817697525024,
0.28000009059906006,
0.12528374791145325,
0.14734432101249695,
0.14350488781929016,
0.2382258176803589,
0.051871418952941895,
-0.13955460488796234,
-0.049184978008270264,
-0.4437829852104187,
-0.12354619801044464,
0.22236044704914093,
0.07071609795093536,
0.008213888853788376,
0.1415565013885498,
0.08432263135910034,
0.19174782931804657,
0.3114381730556488,
0.103147491812706,
-0.2605122923851013,
0.2802603840827942,
0.03138852119445801,
-0.4263983964920044,
0.049566302448511124,
-0.011882890947163105,
-0.06616417318582535,
0.039599452167749405,
-0.16536907851696014,
-0.014356555417180061,
0.025708239525556564,
-0.09648662060499191,
-0.23720160126686096,
-0.48594310879707336,
0.12182747572660446,
-0.028764307498931885,
0.17254725098609924,
0.09981289505958557,
0.6371159553527832,
-0.035028114914894104,
0.13578376173973083,
-0.5039879679679871,
0.023602329194545746,
0.42247825860977173,
0.30497193336486816,
0.4329596757888794,
0.0861298069357872,
0.04179638624191284,
-0.004053093492984772,
-0.42798569798469543,
0.17832410335540771,
0.19301737844944,
0.44800809025764465,
-0.04991203173995018,
-0.07186871767044067,
0.09799158573150635,
-0.09945835173130035,
0.6948086619377136,
-0.17923282086849213,
0.4205053448677063,
0.375042200088501,
-0.29031214118003845,
-0.1950788050889969,
0.34420210123062134,
-0.0036929678171873093,
0.07947450131177902,
-0.3978532552719116,
0.25911444425582886,
0.20873264968395233,
0.013708516955375671,
-0.06161179393529892,
-0.25497037172317505,
0.1834772378206253,
0.5491987466812134,
0.5960670709609985,
0.13804201781749725,
-0.03731973469257355,
0.07789499312639236,
0.29394301772117615,
-0.42722949385643005,
0.004646592307835817,
-0.13356351852416992,
-0.011071979999542236,
-0.12245164811611176,
-0.08022312074899673,
-0.5871812105178833,
-0.08369308710098267,
-0.34477531909942627,
-0.07141376286745071,
-0.08326444774866104,
0.2952829897403717,
0.0031478852033615112,
0.012489812448620796,
-0.12588950991630554,
0.04842038452625275,
0.23229214549064636,
0.2587403953075409,
-0.17763592302799225,
0.35602638125419617,
-0.4420718550682068,
-0.04285574331879616,
0.3386686444282532,
-0.2681606113910675,
-0.13259322941303253,
0.04721247777342796,
0.37212127447128296,
0.33016377687454224,
-0.18087495863437653,
0.016727857291698456,
0.0868159756064415,
0.3808145821094513,
-0.3920345902442932,
-0.09910726547241211,
-0.017148545011878014,
-0.4355274438858032,
-0.008212823420763016,
-0.13836269080638885,
0.6257169246673584,
-0.012278176844120026,
-0.1993691772222519,
-0.036148689687252045,
-0.2800706624984741
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 51 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts? | [
-0.021506967023015022,
0.3034674823284149,
-0.16133172810077667,
-0.061449989676475525,
-0.09429989755153656,
0.011614784598350525,
0.3593592941761017,
0.21026624739170074,
-0.28817448019981384,
0.06739799678325653,
0.02182983234524727,
-0.1237793043255806,
0.010428212583065033,
-0.22285722196102142,
-0.14883527159690857,
0.1429992914199829,
0.12253952026367188,
0.17538467049598694,
0.06430024653673172,
-0.08523337543010712,
-0.09200531244277954,
-0.2570914924144745,
0.0005781054496765137,
-0.08612678945064545,
-0.3042490482330322,
-0.1460856944322586,
0.13763639330863953,
0.1973126232624054,
-0.03698033094406128,
-0.1767527312040329,
0.1454707533121109,
0.5835264921188354,
0.06044728308916092,
0.17002353072166443,
-0.00011381303193047643,
-0.22992007434368134,
0.033086735755205154,
-0.04366460070014,
0.01651243306696415,
0.21223589777946472,
-0.07354874908924103,
-0.16447514295578003,
-0.19431620836257935,
-0.24330070614814758,
-0.046204883605241776,
0.19971202313899994,
0.1979091316461563,
-0.6541272401809692,
0.5026411414146423,
-0.03636607155203819,
0.16959132254123688,
-0.26031965017318726,
-0.4581022262573242,
0.11497857421636581,
0.2927052974700928,
0.155413419008255,
-0.1459864377975464,
0.10887366533279419,
0.427871435880661,
-0.2223561406135559,
-0.04904607683420181,
0.10521455109119415,
-0.30663299560546875,
0.10899379849433899,
0.1439865529537201,
-0.11898981779813766,
-0.23431748151779175,
-0.5785056352615356,
0.006019957363605499,
0.11863777041435242,
0.7419643402099609,
-0.041438959538936615,
-0.5000026822090149,
-0.3280441462993622,
0.11570658534765244,
0.2075071930885315,
0.22223925590515137,
0.3163417875766754,
-0.1446903496980667,
0.26397430896759033,
-0.4496850371360779,
-0.09392955154180527,
-0.13930818438529968,
-0.049711719155311584,
0.219232439994812,
-0.11797668039798737,
-0.03718125820159912,
0.0456821545958519,
-0.035000357776880264,
0.01765691488981247,
0.22726236283779144,
0.11444254219532013,
-0.3335205316543579,
0.32993975281715393,
-0.11125384271144867,
-0.03609229624271393,
-0.21023300290107727,
0.47186705470085144,
0.24617120623588562,
0.35575610399246216,
0.2872907519340515,
0.2251414954662323,
0.045736148953437805,
0.1456662118434906,
0.07923348248004913,
0.1384638547897339,
0.34339025616645813,
0.1938125491142273,
0.5769107937812805,
-0.3486528694629669,
-0.0621916837990284,
0.09783726930618286,
0.0803733617067337,
-0.3098672032356262,
0.10347318649291992,
0.38156065344810486,
-0.020868338644504547,
-0.11773227155208588,
0.16763804852962494,
0.13820773363113403,
-0.14002496004104614,
-0.4070582985877991,
-0.038647376000881195,
0.20555150508880615,
0.045872945338487625,
-0.07817209511995316,
-0.005033411085605621,
0.15225645899772644,
0.03638596087694168,
-0.3549085259437561,
0.039927512407302856,
-0.3292352259159088,
-0.3953121602535248,
0.481821745634079,
0.5079625248908997,
-0.21053878962993622,
-0.018609728664159775,
0.27448132634162903,
0.15050533413887024,
-0.10569566488265991,
0.3306501805782318,
-0.06058225780725479,
0.3992087244987488,
0.23702207207679749,
0.16559554636478424,
0.37063083052635193,
-0.023712310940027237,
-0.011130321770906448,
-0.12172870337963104,
0.36967864632606506,
-0.3321184813976288,
-0.13728386163711548,
0.3728598654270172,
0.05405594781041145,
-0.003428462892770767,
0.30530697107315063,
-0.30552244186401367,
0.0975193977355957,
0.47499075531959534,
-0.18785041570663452,
0.26452329754829407,
0.32645702362060547,
-0.1508258730173111,
-0.4486917555332184,
-0.13006755709648132,
0.427867591381073,
-0.05205419287085533,
0.036522746086120605,
-0.019655823707580566,
0.056593865156173706,
-0.12230340391397476,
0.26815155148506165,
-0.09357093274593353,
0.3671365976333618,
-0.16499237716197968,
0.19476251304149628,
0.4293018579483032,
-0.010686293244361877,
-0.4389023780822754,
0.19467948377132416,
0.16961552202701569,
-0.03502921760082245,
0.2052501142024994,
0.026507316157221794,
0.056823987513780594,
-0.21158795058727264,
-0.14297837018966675,
0.24177241325378418,
0.006836697459220886,
0.2508006989955902,
0.0217118002474308,
-0.01391275692731142,
0.0808931440114975,
-0.12157073616981506,
0.05804034322500229,
0.3386096954345703,
0.41516903042793274,
-0.3177107274532318,
0.20925968885421753,
-0.37180423736572266,
0.21216289699077606,
0.2398817390203476,
0.12879623472690582,
-0.13514424860477448,
-0.14058105647563934,
0.009482450783252716,
-0.4876559376716614,
0.32151517271995544,
-0.15778422355651855,
-0.3858749568462372,
0.1458154320716858,
-0.38155651092529297,
0.11969485133886337,
-0.35533422231674194,
-0.03481445088982582,
-0.01074269413948059,
0.06416714191436768,
0.011809170246124268,
-0.12380751967430115,
-0.3839870095252991,
0.06631404161453247,
0.4213298261165619,
0.18840356171131134,
0.010892708785831928,
-0.032609231770038605,
0.07937240600585938,
-0.16226309537887573,
0.03665446862578392,
-0.3233985900878906,
-0.10279590636491776,
0.18932977318763733,
-0.028943298384547234,
-0.15412592887878418,
0.2733410894870758,
0.08489381521940231,
0.05984361469745636,
-0.07643809169530869,
0.2839997410774231,
0.07125453650951385,
0.18368978798389435,
0.05055498704314232,
-0.22414489090442657,
-0.05895594134926796,
-0.24230432510375977,
-0.3031653165817261,
0.3828921318054199,
-0.07498201727867126,
-0.09968321770429611,
-0.19925794005393982,
0.09801821410655975,
-0.009870996698737144,
-0.12722349166870117,
-0.13046225905418396,
-0.09987320750951767,
-0.06741258502006531,
0.26010456681251526,
0.27914682030677795,
0.28103315830230713,
0.07919318974018097,
0.059967633336782455,
0.31852927803993225,
0.129610076546669,
0.079105444252491,
-0.06052698940038681,
0.05661177635192871,
0.09245903789997101,
0.19749556481838226,
0.36897268891334534,
0.2394682765007019,
0.05540532246232033,
0.2686426043510437,
-0.18336570262908936,
0.37213295698165894,
-0.1642821729183197,
-0.05011580139398575,
-0.06097246706485748,
0.027086986228823662,
-0.060779817402362823,
-0.16565777361392975,
0.04880882054567337,
0.06025564670562744,
0.22639673948287964,
0.04124434292316437,
-0.045598119497299194,
-0.2876107096672058,
-0.16770292818546295,
-0.11976926028728485,
-0.2105100452899933,
0.28824976086616516,
-0.03896334767341614,
-0.4841929078102112,
0.028695376589894295,
-0.11276823282241821,
0.1295776218175888,
-0.07897179573774338,
0.12439540028572083,
-0.290703147649765,
0.3436165153980255,
-0.1635695844888687,
-0.06601130962371826,
-0.165072962641716,
0.26535165309906006,
0.09964026510715485,
0.0267297625541687,
0.3398624062538147,
-0.6474871635437012,
0.23540163040161133,
0.02416796050965786,
0.3293393850326538,
-0.289665162563324,
-0.08471459150314331,
-0.12014898657798767,
-0.06197699159383774,
0.10821191966533661,
-0.4897519648075104,
0.00020071864128112793,
-0.15992972254753113,
-0.02409471943974495,
-0.27292579412460327,
-0.18905358016490936,
-0.16934214532375336,
-0.15472370386123657,
0.07602449506521225,
0.020945224910974503,
-0.31502220034599304,
-0.11580990999937057,
-0.0677885189652443,
-0.13333359360694885,
0.4151947498321533,
0.12574484944343567,
0.28715014457702637,
0.04310735687613487,
-0.2571898400783539,
-0.46778905391693115,
-0.25489333271980286,
0.43329524993896484,
-0.29786205291748047,
-0.5735899806022644,
0.2667670249938965,
-0.36672815680503845,
-0.2950361967086792,
-0.05476972833275795,
0.053423188626766205,
0.049660272896289825,
0.5260623693466187,
-0.02804243564605713,
-0.07100622355937958,
-0.17278143763542175,
0.23782223463058472,
-0.32019394636154175,
0.1760137528181076,
0.050770536065101624,
0.04431212320923805,
0.10439921915531158,
-0.005994416773319244,
-0.06301850080490112,
0.09955421835184097,
-0.07241124659776688,
-0.3326375484466553,
0.2105693817138672,
0.05440576374530792,
0.2172204852104187,
0.8299294114112854,
0.3929794728755951,
0.3720262944698334,
0.267179012298584,
0.35648423433303833,
0.6644089818000793,
0.10482224822044373,
-0.07250259816646576,
0.14253200590610504,
-0.0364806205034256,
-0.07174468040466309,
0.0694953128695488,
0.08119766414165497,
-0.2659108340740204,
-0.02078857459127903,
0.11085088551044464,
-0.3122134506702423,
-0.43893229961395264,
-0.10266221314668655,
-0.37607622146606445,
0.17619700729846954,
0.11929856240749359,
0.10657303780317307,
-0.1995282620191574,
-0.1544143259525299,
-0.02106645703315735,
0.26321548223495483,
0.3557819724082947,
0.17476758360862732,
-0.4637182056903839,
0.03693019598722458,
-0.3498634397983551,
0.26904982328414917,
0.08917544037103653,
0.4185876250267029,
-0.14887595176696777,
0.05816090106964111,
0.17525756359100342,
0.2864210605621338,
0.31352055072784424,
-0.37020835280418396,
0.08215594291687012,
-0.12423902750015259,
0.17687244713306427,
0.3828261196613312,
-0.19495974481105804,
0.4328997731208801,
0.4933440685272217,
0.0772915929555893,
0.14912766218185425,
0.029571279883384705,
-0.14380080997943878,
-0.4299340844154358,
-0.15536810457706451,
-0.03878897801041603,
-0.17530173063278198,
0.2569086253643036,
0.2764846384525299,
-0.07020583003759384,
-0.054804764688014984,
0.31861063838005066,
-0.42682063579559326,
-0.1772148758172989,
0.012555155903100967,
-0.14447157084941864,
0.3334314227104187,
0.10702504217624664,
-0.09562526643276215,
0.18864789605140686,
0.08685529977083206,
0.040133025497198105,
0.33179548382759094,
0.08293771743774414,
0.010430247522890568,
0.4379091262817383,
-0.2634051442146301,
0.4645085632801056,
-0.12028392404317856,
-0.3070550262928009,
0.3799801170825958,
0.20018693804740906,
-0.28212833404541016,
-0.14608222246170044,
0.10023672878742218,
-0.14741089940071106,
-0.3917490839958191,
-0.16838498413562775,
-0.08401215076446533,
-0.11728914827108383,
-0.2973453998565674,
-0.6107850670814514,
0.2031310796737671,
0.5352294445037842,
-0.3493174910545349,
0.2802354097366333,
-0.19767321646213531,
-0.31997495889663696,
0.1157679483294487,
0.08997029066085815,
0.8514479398727417,
-0.11892040073871613,
0.4581424593925476,
-0.3852834105491638,
0.09061919152736664,
0.030064521357417107,
-0.4793524742126465,
0.018478503450751305,
-0.4417710304260254,
-0.3964935839176178,
-0.15739242732524872,
-0.1264578253030777,
0.06115512549877167,
0.5075007677078247,
0.06994903087615967,
0.1319335252046585,
-0.0312286838889122,
-0.015700310468673706,
-0.08057659864425659,
-0.0955839604139328,
-0.243427574634552,
-0.25305429100990295,
0.4673323631286621,
0.10352234542369843,
-0.2109702080488205,
0.04167390614748001,
-0.10588712990283966,
-0.019194750115275383,
-0.23024527728557587,
0.11745753884315491,
-0.1970205008983612,
-0.01470334455370903,
-0.5546612739562988,
0.014659576117992401,
-0.15090464055538177,
-0.05323178321123123,
0.19789694249629974,
0.2467457503080368,
0.2595118582248688,
0.3690890371799469,
0.019892528653144836,
-0.0037852711975574493,
0.37596213817596436,
0.28652143478393555,
-0.1338464319705963,
0.03504598140716553,
0.29505351185798645,
0.1952955424785614,
0.14185169339179993,
-0.2592484652996063,
-0.1916338950395584,
-0.3534184694290161,
-0.5514917373657227,
0.29239752888679504,
0.036289870738983154,
-0.21550653874874115,
-0.029629195109009743,
0.07614432275295258,
0.07581807672977448,
0.09350807964801788,
0.07118484377861023,
0.44653189182281494,
0.03254075348377228,
0.5419019460678101,
-0.34804877638816833,
-0.27298128604888916,
0.0171712264418602,
0.4562426507472992,
-0.008791785687208176,
-0.2799372673034668,
0.12193512916564941,
-0.42470023036003113,
-0.2871575355529785,
-0.18389886617660522,
0.2165851891040802,
0.09926474839448929,
-0.19424068927764893,
-0.1453794538974762,
0.0039369030855596066,
-0.05367084592580795,
0.22821182012557983,
-0.5018802285194397,
0.13641250133514404,
0.06311320513486862,
0.24044384062290192,
-0.22328679263591766,
-0.336698055267334,
-0.22224842011928558,
-0.2816532850265503,
0.28781431913375854,
0.17481586337089539,
-0.5316992402076721,
0.03425224870443344,
0.11167779564857483,
-0.22042883932590485,
-0.1617448329925537,
0.2376939058303833,
0.17678287625312805,
0.23742371797561646,
0.06450307369232178,
-0.21175283193588257,
-0.19753096997737885,
-0.08688335865736008,
-0.09584133327007294,
-0.07334451377391815,
-0.18399709463119507,
-0.022043367847800255,
0.16307726502418518,
0.19259291887283325,
-0.30572694540023804,
0.11555930227041245,
-0.40968918800354004,
-0.12166611850261688,
-0.41835737228393555,
0.06019841507077217,
0.25593841075897217,
0.20846793055534363,
0.28056877851486206,
0.2027067244052887,
-0.034054361283779144,
-0.13114610314369202,
0.2717735767364502,
-0.14904099702835083,
-0.16151003539562225,
-0.24046750366687775,
0.25738954544067383,
-0.2780955135822296,
-0.02717997506260872,
0.08812031894922256,
-0.022539526224136353,
0.08418282866477966,
0.14878876507282257,
0.06394140422344208,
0.02386712282896042,
0.07194523513317108,
0.1772974133491516,
0.3038203716278076,
-0.03957509249448776,
-0.129469096660614,
0.059762269258499146,
0.47336605191230774,
0.1325889229774475,
0.16427288949489594,
-0.22115251421928406,
0.29639557003974915,
-0.19676919281482697,
0.039714667946100235,
0.4383154511451721,
0.2616908848285675,
-0.18761307001113892,
0.19473744928836823,
-0.143187016248703,
0.02860167995095253,
-0.42177796363830566,
0.4083348214626312,
-0.02606191113591194,
0.08359001576900482,
-0.009268645197153091,
0.45398566126823425,
0.12057347595691681,
0.005917951464653015,
0.27593642473220825,
0.23596978187561035,
0.22517964243888855,
0.39802417159080505,
-0.3255467414855957,
0.037167828530073166,
-0.6843452453613281,
0.1587275266647339,
0.06637410074472427,
0.13992711901664734,
0.2649139165878296,
0.06534447520971298,
0.09818948060274124,
-0.008855429477989674,
-0.3272550106048584,
0.07793769240379333,
-0.22235022485256195,
-0.10730738192796707,
-0.09256358444690704,
0.09254889190196991,
-0.006445407867431641,
0.04140324890613556,
-0.2435082346200943,
-0.23931780457496643,
-0.20391134917736053,
0.17222365736961365,
0.29948264360427856,
0.026801317930221558,
0.239052414894104,
-0.005767665803432465,
0.02274492010474205,
0.10521816462278366,
-0.23051796853542328,
-0.08860039710998535,
-0.5490134954452515,
-0.15878050029277802,
0.19638025760650635,
0.15768925845623016,
-0.002471648156642914,
0.2507818639278412,
0.11550675332546234,
0.11430428922176361,
0.2105146199464798,
0.14106743037700653,
-0.3057365417480469,
0.31607863306999207,
-0.0784321129322052,
-0.3726973235607147,
0.020580172538757324,
0.013396510854363441,
-0.0556955561041832,
0.021304015070199966,
-0.1417466253042221,
-0.06973952054977417,
-0.10422736406326294,
-0.05915897339582443,
-0.0012655220925807953,
-0.3647175431251526,
0.1928967386484146,
-0.0246816948056221,
0.09962876886129379,
0.092988021671772,
0.5304293632507324,
-0.08010327070951462,
0.21319013833999634,
-0.5350329875946045,
0.04062250629067421,
0.4460453689098358,
0.09690328687429428,
0.4369756579399109,
-0.06026943027973175,
-0.15798933804035187,
0.08234855532646179,
-0.3973449468612671,
0.06723066419363022,
0.20588518679141998,
0.481069415807724,
-0.047396328300237656,
-0.16478464007377625,
0.16033393144607544,
-0.020102523267269135,
0.5293858647346497,
-0.3117315471172333,
0.23099827766418457,
0.30420705676078796,
-0.26688918471336365,
-0.1646343171596527,
0.20025373995304108,
-0.05599641054868698,
0.02557036280632019,
-0.3361579477787018,
0.28761395812034607,
0.2087494134902954,
0.05664185434579849,
-0.11867579817771912,
-0.20095431804656982,
0.1894124448299408,
0.5180323123931885,
0.4471515417098999,
0.2234647423028946,
-0.12816737592220306,
-0.014497397467494011,
0.3214606046676636,
-0.45251184701919556,
0.12045588344335556,
-0.18588171899318695,
-0.1433233916759491,
-0.1372978240251541,
0.023262493312358856,
-0.5915027260780334,
-0.14097915589809418,
-0.3900010287761688,
-0.05416330695152283,
-0.09597454965114594,
0.3669761121273041,
0.05747540295124054,
-0.00477246567606926,
-0.09926722198724747,
0.034965913742780685,
0.2579491436481476,
0.3559638261795044,
-0.13734844326972961,
0.4368419945240021,
-0.42648226022720337,
-0.007699940353631973,
0.2884617745876312,
-0.2015531063079834,
-0.1466740220785141,
-0.01740163564682007,
0.34916967153549194,
0.16213209927082062,
-0.10716596990823746,
0.058428190648555756,
-0.06407614052295685,
0.3837520182132721,
-0.40469542145729065,
-0.06000819057226181,
0.1296226680278778,
-0.40571796894073486,
-0.16226688027381897,
-0.05850721150636673,
0.5083824396133423,
-0.04596669226884842,
-0.25837358832359314,
0.013549871742725372,
-0.23338830471038818
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 23 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ? | [
-0.11572416126728058,
0.1915665566921234,
-0.1204444020986557,
0.010218668729066849,
-0.004656534641981125,
0.07383771985769272,
0.3548937737941742,
0.08304733783006668,
-0.09774129092693329,
0.023423612117767334,
-0.10515759885311127,
0.11370620876550674,
0.07436925172805786,
-0.2714214026927948,
-0.060725435614585876,
0.15252067148685455,
0.21365602314472198,
0.024268120527267456,
0.031401969492435455,
-0.1150253489613533,
-0.16827547550201416,
-0.05777671933174133,
-0.10900582373142242,
-0.09702266752719879,
-0.23154404759407043,
-0.12353042513132095,
0.2449163794517517,
0.2954758107662201,
-0.012377411127090454,
-0.15839165449142456,
0.23437310755252838,
0.5587266683578491,
0.18393990397453308,
0.0664563924074173,
-0.00011460713722044602,
-0.13733306527137756,
0.024599120020866394,
-0.1300727277994156,
0.03299197554588318,
0.2129814326763153,
-0.019833939149975777,
-0.13540051877498627,
-0.10632770508527756,
-0.21078334748744965,
-0.14558203518390656,
0.18454846739768982,
0.08641055226325989,
-0.6697395443916321,
0.4485442638397217,
0.249893456697464,
0.18491187691688538,
-0.1789579540491104,
-0.3419661223888397,
0.132778599858284,
0.2498420774936676,
0.10166370123624802,
-0.12130957096815109,
0.06444622576236725,
0.29060691595077515,
-0.16770119965076447,
-0.03341733664274216,
-0.006596568506211042,
-0.29961609840393066,
0.06730584055185318,
0.20020753145217896,
-0.056000642478466034,
-0.26221755146980286,
-0.5426020622253418,
0.07750007510185242,
0.06789978593587875,
0.7661521434783936,
-0.08331242948770523,
-0.5185666680335999,
-0.1043563187122345,
0.09090163558721542,
0.22546081244945526,
0.3825608491897583,
0.34550365805625916,
-0.021785443648695946,
0.3150947093963623,
-0.5068023204803467,
0.010549874976277351,
-0.2292097806930542,
0.04996924847364426,
0.1538020372390747,
0.014185704290866852,
-0.0012822756543755531,
0.11215388774871826,
0.0697183758020401,
-0.08665948361158371,
0.19569545984268188,
0.11379435658454895,
-0.32449832558631897,
0.3942147493362427,
-0.22114218771457672,
0.03704799711704254,
-0.21995636820793152,
0.46403074264526367,
0.23840442299842834,
0.2879543900489807,
0.21114423871040344,
0.18489930033683777,
0.007535078562796116,
0.22915992140769958,
-0.03341071307659149,
0.14296743273735046,
0.39445406198501587,
0.2765602171421051,
0.5267391800880432,
-0.3781733512878418,
-0.1103840172290802,
0.031558651477098465,
-0.05168762058019638,
-0.3931071162223816,
0.07375067472457886,
0.2395583987236023,
0.040358349680900574,
-0.20363204181194305,
0.12828329205513,
0.08213525265455246,
-0.11160880327224731,
-0.2773323059082031,
0.03132624551653862,
0.3696844279766083,
0.11353446543216705,
-0.11508185416460037,
0.03989090770483017,
0.2530938386917114,
-0.04551757872104645,
-0.3753749430179596,
0.011407684534788132,
-0.3871253430843353,
-0.2792086601257324,
0.40332552790641785,
0.47523263096809387,
-0.12668092548847198,
0.037481240928173065,
0.25778496265411377,
0.12955476343631744,
-0.2477272003889084,
0.3621706962585449,
-0.04419787600636482,
0.3986057937145233,
0.3669501543045044,
0.263575941324234,
0.2514342963695526,
0.09833932667970657,
0.028325490653514862,
-0.10791469365358353,
0.4005102515220642,
-0.3557938039302826,
-0.15484154224395752,
0.2978985607624054,
0.05624128878116608,
-0.07005725055932999,
0.22292932868003845,
-0.37715333700180054,
0.1008090078830719,
0.520830512046814,
-0.04007262736558914,
0.36023688316345215,
0.24578334391117096,
-0.20405815541744232,
-0.4434046447277069,
-0.07133261114358902,
0.27099061012268066,
-0.13439525663852692,
-0.05851729214191437,
-0.08772366493940353,
-0.06524695456027985,
0.026163168251514435,
0.35079795122146606,
-0.027254773303866386,
0.22788411378860474,
-0.09130090475082397,
0.1632230132818222,
0.49358052015304565,
-0.02708141691982746,
-0.5619916915893555,
0.12315727770328522,
0.22417525947093964,
-0.14953330159187317,
0.19179628789424896,
0.025274453684687614,
0.03262845054268837,
-0.05484633147716522,
-0.08132240176200867,
0.3807576298713684,
0.25872018933296204,
0.27046728134155273,
0.13849034905433655,
0.11018902063369751,
0.05164502561092377,
-0.018708547577261925,
0.040956899523735046,
0.349568635225296,
0.3849892020225525,
-0.3570520877838135,
0.2508896291255951,
-0.28883838653564453,
0.23769059777259827,
0.45592713356018066,
0.09419728815555573,
-0.12704961001873016,
0.024128595367074013,
0.04417817294597626,
-0.3931058645248413,
0.25041770935058594,
-0.09992928802967072,
-0.4025929570198059,
0.09857255220413208,
-0.4768044352531433,
0.05070535093545914,
-0.2261071354150772,
-0.15048277378082275,
-0.08767299354076385,
0.04987913370132446,
0.006995111703872681,
-0.05511480197310448,
-0.32266610860824585,
0.13724291324615479,
0.3789219558238983,
0.20706652104854584,
-0.007192275952547789,
-0.12559832632541656,
0.13696172833442688,
-0.07973716408014297,
-0.0754804015159607,
-0.2361455112695694,
-0.09979800134897232,
0.24949941039085388,
0.014925120398402214,
-0.29193568229675293,
0.30109021067619324,
0.20392215251922607,
0.0037093758583068848,
-0.17931011319160461,
0.15792378783226013,
-0.031622983515262604,
0.07925160229206085,
0.09224782884120941,
-0.18836653232574463,
-0.07806809991598129,
-0.17187577486038208,
-0.29973116517066956,
0.3796449303627014,
-0.10709825158119202,
-0.0961289033293724,
-0.27058401703834534,
0.18759793043136597,
0.12346602976322174,
0.0009859278798103333,
-0.13685908913612366,
-0.10228568315505981,
0.03755267709493637,
0.16700267791748047,
0.38140982389450073,
0.2300318479537964,
0.0853392630815506,
-0.020878762006759644,
0.344831645488739,
0.16703902184963226,
0.06479673832654953,
0.014318179339170456,
-0.06580648571252823,
0.07113013416528702,
0.24881978332996368,
0.25836801528930664,
0.3715965747833252,
0.047927629202604294,
0.2792147397994995,
-0.16851083934307098,
0.3713315427303314,
-0.13287881016731262,
0.02692543715238571,
-0.09192447364330292,
-0.05796090513467789,
-0.20321744680404663,
-0.2128094881772995,
-0.06406549364328384,
-0.001840595155954361,
0.2651607096195221,
0.10124973952770233,
0.08388963341712952,
-0.4108767509460449,
-0.11331119388341904,
-0.19674082100391388,
-0.13376396894454956,
0.3249428868293762,
0.004600627813488245,
-0.5532539486885071,
-0.05593538284301758,
-0.1994498372077942,
0.2022298276424408,
-0.03307748958468437,
0.20917437970638275,
-0.2046145498752594,
0.2034398317337036,
-0.031008025631308556,
-0.15471072494983673,
-0.19210533797740936,
0.2037316858768463,
0.09176267683506012,
0.01213018223643303,
0.17262756824493408,
-0.5726969242095947,
0.11631845682859421,
-0.05812472105026245,
0.28658437728881836,
-0.28652462363243103,
0.03540907800197601,
-0.17413190007209778,
-0.0007086507976055145,
0.12356574833393097,
-0.4385623633861542,
0.051809459924697876,
-0.23574300110340118,
0.007002691738307476,
-0.1307343989610672,
-0.26104941964149475,
-0.23071378469467163,
-0.032414957880973816,
0.12106654793024063,
-0.023593781515955925,
-0.26379144191741943,
-0.0945185050368309,
-0.196184441447258,
-0.15844511985778809,
0.4723941683769226,
0.15273749828338623,
0.252152681350708,
-0.01471025962382555,
-0.2428220957517624,
-0.4192582964897156,
-0.14235445857048035,
0.2821732759475708,
-0.3960946202278137,
-0.597846269607544,
0.3621942400932312,
-0.4948404133319855,
-0.4088156223297119,
0.06481938064098358,
0.19022522866725922,
0.08736827969551086,
0.4965353012084961,
-0.02066785842180252,
-0.0327208936214447,
-0.13035844266414642,
0.21105873584747314,
-0.3021681606769562,
0.14907079935073853,
-0.018322981894016266,
-0.003331321757286787,
0.19871731102466583,
-0.06161327287554741,
-0.20492705702781677,
0.015769869089126587,
-0.0018587224185466766,
-0.24356719851493835,
0.17338314652442932,
0.18040144443511963,
0.036857929080724716,
0.6638671159744263,
0.4006107449531555,
0.3711780309677124,
0.344734251499176,
0.24606505036354065,
0.6566489934921265,
0.12778672575950623,
-0.09835442900657654,
0.13287977874279022,
0.030742540955543518,
-0.13441991806030273,
0.1476203054189682,
0.050736382603645325,
-0.22453714907169342,
0.008626993745565414,
-0.03051462024450302,
-0.25279033184051514,
-0.4145505130290985,
-0.13567158579826355,
-0.2857639193534851,
0.09068089723587036,
0.012084271758794785,
0.22756138443946838,
-0.25447553396224976,
-0.19963005185127258,
0.01572432741522789,
0.3498133420944214,
0.19017645716667175,
0.28884780406951904,
-0.5011582374572754,
0.03220678120851517,
-0.33754825592041016,
0.4071540832519531,
-0.112884022295475,
0.45793986320495605,
-0.2347189486026764,
0.12266341596841812,
0.21931904554367065,
0.3533579707145691,
0.42068231105804443,
-0.4260234832763672,
0.21917544305324554,
0.024685345590114594,
0.15916666388511658,
0.24355696141719818,
-0.1874755322933197,
0.40243473649024963,
0.4582359790802002,
0.03869958966970444,
0.10106134414672852,
0.13917449116706848,
-0.12691468000411987,
-0.4196949899196625,
-0.21219338476657867,
-0.08873645961284637,
-0.3115249574184418,
0.08655354380607605,
0.19467008113861084,
-0.11844407767057419,
-0.08385177701711655,
0.2580323815345764,
-0.3196932375431061,
-0.19280029833316803,
0.013564761728048325,
-0.2359621375799179,
0.2144572138786316,
0.08824038505554199,
-0.02335994876921177,
0.3749973177909851,
0.029078040271997452,
-0.013873342424631119,
0.38189977407455444,
0.0074326395988464355,
0.18246707320213318,
0.4704229533672333,
-0.2757960855960846,
0.2875598669052124,
-0.1840999722480774,
-0.2768237590789795,
0.4023551344871521,
-0.02077297866344452,
-0.3571339547634125,
-0.15686973929405212,
0.1743983030319214,
-0.19305534660816193,
-0.2674134373664856,
-0.01114380732178688,
-0.10284456610679626,
0.07495440542697906,
-0.2801114618778229,
-0.6301469206809998,
0.20233756303787231,
0.5458946228027344,
-0.36912989616394043,
0.27002885937690735,
-0.30613404512405396,
-0.35801127552986145,
0.21224626898765564,
0.10059936344623566,
0.7887317538261414,
-0.24648679792881012,
0.3536962568759918,
-0.4175287187099457,
0.1269741654396057,
0.021605713292956352,
-0.43904411792755127,
0.07169944792985916,
-0.47348594665527344,
-0.36812177300453186,
-0.11364586651325226,
-0.11035504937171936,
0.06010783836245537,
0.5340064764022827,
-0.044944316148757935,
0.09782879799604416,
-0.07068087160587311,
-0.10433804988861084,
-0.17646944522857666,
-0.18742510676383972,
-0.16082879900932312,
-0.327098548412323,
0.23921284079551697,
0.11409904062747955,
-0.23129643499851227,
0.05583532899618149,
-0.03652586787939072,
0.012198766693472862,
-0.18671871721744537,
0.19567398726940155,
-0.19770652055740356,
0.06846364587545395,
-0.6160358786582947,
0.06822285056114197,
-0.1547410488128662,
-0.08785704523324966,
0.13093693554401398,
0.41587674617767334,
0.2986323833465576,
0.348361074924469,
-0.013635234907269478,
0.02926933579146862,
0.3476782739162445,
0.20694339275360107,
-0.20356619358062744,
0.03422747179865837,
0.2627514600753784,
0.17587393522262573,
0.021459974348545074,
-0.250577449798584,
-0.17453505098819733,
-0.36913132667541504,
-0.26917219161987305,
0.23845532536506653,
0.054087474942207336,
-0.2971133291721344,
-0.054592836648225784,
-0.19234678149223328,
0.09659402072429657,
0.10192438960075378,
0.06625603139400482,
0.5287198424339294,
-0.033031661063432693,
0.5756490230560303,
-0.34440210461616516,
-0.39049169421195984,
0.03175162523984909,
0.5647522211074829,
-0.06698023527860641,
-0.23681695759296417,
0.1545800268650055,
-0.3134379982948303,
-0.24850080907344818,
-0.15708905458450317,
0.25009143352508545,
0.19428569078445435,
-0.12300603091716766,
-0.08774358034133911,
0.06847375631332397,
-0.06959918141365051,
0.19410082697868347,
-0.4771362245082855,
0.04617837443947792,
0.176419198513031,
0.1300097554922104,
-0.378031462430954,
-0.4907991290092468,
-0.306132972240448,
-0.306303471326828,
0.22666271030902863,
0.3198886215686798,
-0.6408581733703613,
0.10105328261852264,
-0.016024405136704445,
-0.19973790645599365,
-0.23471401631832123,
0.07675515115261078,
0.09674818813800812,
0.1776961088180542,
0.046780169010162354,
-0.09194935113191605,
-0.20288635790348053,
-0.07036064565181732,
-0.11170683801174164,
-0.05338627099990845,
-0.16224363446235657,
-0.04699108004570007,
0.15024453401565552,
0.17538949847221375,
-0.3635748624801636,
0.13258972764015198,
-0.4973800778388977,
-0.12542983889579773,
-0.4760821461677551,
0.06025077775120735,
0.3147105872631073,
0.19373813271522522,
0.31904137134552,
0.1800258457660675,
0.0004235878586769104,
-0.21742460131645203,
0.17613431811332703,
-0.18475577235221863,
-0.13351963460445404,
-0.25667068362236023,
0.2496269941329956,
-0.29182732105255127,
-0.044220056384801865,
0.09593436121940613,
-0.05256613343954086,
0.16841548681259155,
0.09684695303440094,
0.10871431231498718,
0.007795568555593491,
0.021009203046560287,
0.08257249742746353,
0.29725807905197144,
0.06366470456123352,
-0.18530091643333435,
0.06969784200191498,
0.38390758633613586,
0.09717712551355362,
0.13140609860420227,
-0.25719568133354187,
0.3448217213153839,
-0.1068820208311081,
0.00003169849514961243,
0.3978753089904785,
0.16171813011169434,
-0.2893999218940735,
0.1561603546142578,
-0.10308797657489777,
0.15655745565891266,
-0.2774782180786133,
0.32438552379608154,
-0.04051320627331734,
0.04158579930663109,
0.10162308812141418,
0.3367096483707428,
0.2523678243160248,
0.058452505618333817,
0.33398354053497314,
0.1865362823009491,
0.19963940978050232,
0.3867456018924713,
-0.32364726066589355,
0.10586903244256973,
-0.7008693814277649,
0.07364191859960556,
-0.00007024407386779785,
-0.06611260771751404,
0.30085647106170654,
0.10887770354747772,
0.025684118270874023,
0.003340034745633602,
-0.28859850764274597,
-0.008892761543393135,
-0.12784774601459503,
-0.15574347972869873,
-0.15204209089279175,
0.048808857798576355,
0.1350802481174469,
0.03524753451347351,
-0.234405517578125,
-0.19908171892166138,
-0.2742220163345337,
0.16085803508758545,
0.25855231285095215,
0.09712617844343185,
0.17734237015247345,
0.02286309003829956,
0.11487622559070587,
-0.026497505605220795,
-0.2395641803741455,
-0.05774494260549545,
-0.5136411786079407,
-0.09907643496990204,
0.345736563205719,
-0.02010439522564411,
0.08735067397356033,
0.15115487575531006,
0.18201734125614166,
0.1513984650373459,
0.305273175239563,
0.10705418884754181,
-0.2939302921295166,
0.2839925289154053,
-0.08076503872871399,
-0.23189114034175873,
0.10092905163764954,
-0.0029199859127402306,
-0.015388946048915386,
-0.12727892398834229,
-0.14178434014320374,
-0.010508077219128609,
0.055301371961832047,
-0.0667925700545311,
-0.1364724487066269,
-0.4391780197620392,
0.1145026758313179,
-0.04234132915735245,
0.1652352511882782,
0.042308248579502106,
0.49039435386657715,
0.09768657386302948,
0.23875463008880615,
-0.43169161677360535,
0.020140577107667923,
0.34641897678375244,
0.2648150622844696,
0.3824138939380646,
-0.008525252342224121,
-0.024271752685308456,
0.056400954723358154,
-0.4088503420352936,
0.13770267367362976,
0.20878534018993378,
0.31149211525917053,
0.01994485594332218,
-0.23325270414352417,
0.12491708248853683,
-0.06819809228181839,
0.5730350017547607,
-0.2475411742925644,
0.25766345858573914,
0.3815857470035553,
-0.2472929060459137,
-0.31336668133735657,
0.20093925297260284,
-0.02123742364346981,
0.07515121251344681,
-0.3698138892650604,
0.30972498655319214,
0.061447519809007645,
0.027292117476463318,
-0.16798317432403564,
-0.19557397067546844,
0.1988152712583542,
0.5369480848312378,
0.4967285692691803,
0.19375741481781006,
-0.0033436641097068787,
0.028840787708759308,
0.47341296076774597,
-0.37627410888671875,
0.11907563358545303,
-0.20652484893798828,
-0.030942171812057495,
-0.18037846684455872,
0.024702638387680054,
-0.5975056886672974,
-0.20224201679229736,
-0.3634681701660156,
0.046754978597164154,
-0.1567850559949875,
0.1914338916540146,
0.08119775354862213,
0.10098229348659515,
-0.10090984404087067,
0.02740258350968361,
0.3133315443992615,
0.25611183047294617,
-0.1445179432630539,
0.37934058904647827,
-0.3996710777282715,
-0.12392750382423401,
0.26557737588882446,
-0.2716206908226013,
-0.17954973876476288,
-0.08241929858922958,
0.35755836963653564,
0.1435212343931198,
-0.17715711891651154,
-0.021658875048160553,
0.09055382758378983,
0.36999332904815674,
-0.4360892176628113,
-0.13805145025253296,
0.04608842357993126,
-0.35148173570632935,
0.07301142811775208,
-0.14634282886981964,
0.4525747001171112,
-0.005271013826131821,
-0.23065558075904846,
0.06801669299602509,
-0.2877994179725647
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters) | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 28 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters) | [
-0.13602757453918457,
0.23576828837394714,
-0.13112691044807434,
0.06138205528259277,
-0.055365465581417084,
0.09406515210866928,
0.3185197710990906,
0.1379300057888031,
-0.17317382991313934,
0.02125982940196991,
-0.02615661546587944,
0.026861092075705528,
0.06032520905137062,
-0.25843164324760437,
-0.04040379077196121,
0.08521924912929535,
0.14060258865356445,
0.046947937458753586,
0.04175744205713272,
-0.06367607414722443,
-0.12455479800701141,
-0.12614738941192627,
-0.04929234832525253,
-0.09561896324157715,
-0.20342370867729187,
-0.13657525181770325,
0.32214540243148804,
0.25067195296287537,
0.03736104071140289,
-0.11351346969604492,
0.27644968032836914,
0.5581905841827393,
0.12196323275566101,
0.08786730468273163,
-0.00011505591828608885,
-0.18164515495300293,
0.03819126635789871,
-0.13210110366344452,
0.032518792897462845,
0.19419367611408234,
-0.12037885934114456,
-0.13452871143817902,
-0.12162666767835617,
-0.15873876214027405,
-0.10578525811433792,
0.16504840552806854,
0.10448944568634033,
-0.6469734311103821,
0.446066677570343,
0.1828894317150116,
0.18591849505901337,
-0.22565576434135437,
-0.3946877419948578,
0.08166347444057465,
0.24886423349380493,
0.10169859230518341,
-0.14621007442474365,
0.11210812628269196,
0.2739824652671814,
-0.15141206979751587,
-0.004422537982463837,
0.0000061015598475933075,
-0.3130863904953003,
0.05122603848576546,
0.18301573395729065,
-0.15878048539161682,
-0.271664023399353,
-0.5145751237869263,
0.14291247725486755,
0.07301259785890579,
0.7643355131149292,
-0.10474520176649094,
-0.48191338777542114,
-0.18477042019367218,
0.022309955209493637,
0.21338503062725067,
0.34787923097610474,
0.2973594665527344,
0.013678368180990219,
0.3095960021018982,
-0.4908583164215088,
-0.0657002255320549,
-0.1992790400981903,
-0.002775140106678009,
0.1880512833595276,
-0.05139993131160736,
-0.03816420957446098,
0.11537536978721619,
-0.005299903452396393,
-0.053131021559238434,
0.14054961502552032,
0.11952101439237595,
-0.3659527003765106,
0.3780122399330139,
-0.1778177171945572,
0.0718211755156517,
-0.19305068254470825,
0.42935997247695923,
0.23331838846206665,
0.32623541355133057,
0.26674526929855347,
0.20923453569412231,
0.08265417069196701,
0.224835604429245,
0.009438369423151016,
0.15193046629428864,
0.40545833110809326,
0.27429378032684326,
0.5419009923934937,
-0.38829705119132996,
-0.06627216935157776,
0.02908714860677719,
-0.028464514762163162,
-0.3923727571964264,
0.12600047886371613,
0.24526885151863098,
0.01282527670264244,
-0.2103174775838852,
0.1821024864912033,
0.09224361926317215,
-0.04931516572833061,
-0.2737070918083191,
0.03068433701992035,
0.3166084885597229,
0.05915750190615654,
-0.08724704384803772,
0.007686059921979904,
0.11340350657701492,
0.024647733196616173,
-0.40424346923828125,
-0.003462855238467455,
-0.3750956654548645,
-0.3589882254600525,
0.46414050459861755,
0.4577977955341339,
-0.24482646584510803,
0.07822605967521667,
0.219075545668602,
0.1637284755706787,
-0.2404775619506836,
0.33770468831062317,
-0.04998235031962395,
0.35772478580474854,
0.4029443562030792,
0.28281691670417786,
0.31075841188430786,
0.038994137197732925,
0.03981230407953262,
-0.0994032472372055,
0.331243634223938,
-0.3699701130390167,
-0.15438058972358704,
0.28548336029052734,
0.042013369500637054,
-0.03528366982936859,
0.2946741580963135,
-0.4751751720905304,
0.10141810774803162,
0.5583776235580444,
-0.15067782998085022,
0.3145253658294678,
0.2650931775569916,
-0.22191156446933746,
-0.4502766728401184,
-0.07729870826005936,
0.30103152990341187,
-0.12036551535129547,
-0.04772471636533737,
-0.03489557281136513,
-0.014998212456703186,
-0.00783827155828476,
0.280057430267334,
-0.07757675647735596,
0.24296051263809204,
-0.07062079012393951,
0.18844486773014069,
0.5337374210357666,
-0.04774894192814827,
-0.5750143527984619,
0.18836458027362823,
0.18891490995883942,
-0.17983122169971466,
0.18912577629089355,
-0.015232061967253685,
0.11238917708396912,
-0.07762259989976883,
-0.06679168343544006,
0.35436415672302246,
0.22729620337486267,
0.26021838188171387,
0.178248330950737,
0.11460193991661072,
0.045651987195014954,
-0.05400216579437256,
0.03777319937944412,
0.39338794350624084,
0.3831636905670166,
-0.3089505136013031,
0.17881473898887634,
-0.2511120140552521,
0.2620522081851959,
0.4649665355682373,
0.03070116974413395,
-0.13288554549217224,
-0.0077298833057284355,
-0.04659914970397949,
-0.4959964156150818,
0.27308717370033264,
-0.11014702916145325,
-0.4933677911758423,
0.09161287546157837,
-0.4283301830291748,
-0.01831972412765026,
-0.27269628643989563,
-0.14480307698249817,
0.006464073434472084,
0.0430833175778389,
-0.009461633861064911,
-0.07963304221630096,
-0.3605632185935974,
0.17586584389209747,
0.4297902584075928,
0.20504680275917053,
-0.037698566913604736,
-0.12881198525428772,
0.08651425689458847,
-0.04654935002326965,
-0.10049594193696976,
-0.2174244523048401,
-0.12288890033960342,
0.2693600356578827,
0.030232563614845276,
-0.2796184718608856,
0.28729337453842163,
0.16085027158260345,
0.07640092819929123,
-0.10817467421293259,
0.22955195605754852,
-0.025998422876000404,
0.09413346648216248,
0.03479631245136261,
-0.2608458399772644,
-0.08013791590929031,
-0.1637900471687317,
-0.24255385994911194,
0.36754119396209717,
-0.11977101862430573,
-0.08492270857095718,
-0.22203026711940765,
0.18642452359199524,
0.16167543828487396,
0.008741918951272964,
-0.16251565515995026,
-0.08696455508470535,
-0.01259530708193779,
0.19249457120895386,
0.40178894996643066,
0.24354103207588196,
0.010120108723640442,
-0.024199828505516052,
0.3577239215373993,
0.15390688180923462,
0.08204786479473114,
-0.02834641933441162,
-0.08045943826436996,
0.05781645327806473,
0.24341516196727753,
0.2833220362663269,
0.3093886375427246,
0.04716022312641144,
0.29912933707237244,
-0.24227824807167053,
0.3165648281574249,
-0.1635979264974594,
-0.010538816452026367,
-0.10634855926036835,
0.0025093797594308853,
-0.11187700182199478,
-0.19961927831172943,
-0.05050789192318916,
-0.012642187997698784,
0.289501816034317,
0.10809510201215744,
0.056498341262340546,
-0.389931321144104,
-0.07095292210578918,
-0.20651699602603912,
-0.11479473114013672,
0.2945742905139923,
-0.09223338216543198,
-0.5483307838439941,
-0.053642868995666504,
-0.23545394837856293,
0.2290983498096466,
-0.011039866134524345,
0.16331692039966583,
-0.25836238265037537,
0.2286839336156845,
-0.0755811259150505,
-0.16485893726348877,
-0.25068074464797974,
0.24843494594097137,
0.04606645181775093,
-0.002424485981464386,
0.18467390537261963,
-0.5759434103965759,
0.16441227495670319,
-0.02960251271724701,
0.3323054313659668,
-0.2513526380062103,
0.09493818134069443,
-0.15344920754432678,
0.021090341731905937,
0.150896355509758,
-0.4861033260822296,
0.1240452453494072,
-0.15866690874099731,
0.02183780074119568,
-0.17342792451381683,
-0.18745383620262146,
-0.173172727227211,
-0.02139931544661522,
0.027845799922943115,
-0.031098827719688416,
-0.3103388845920563,
-0.1054450199007988,
-0.13274787366390228,
-0.14335235953330994,
0.3912356495857239,
0.11559930443763733,
0.23248673975467682,
0.007975189946591854,
-0.21877853572368622,
-0.41173115372657776,
-0.2179623544216156,
0.30847567319869995,
-0.3918890357017517,
-0.6182740330696106,
0.35137972235679626,
-0.5044494271278381,
-0.40094876289367676,
0.047519851475954056,
0.21513935923576355,
0.1240803599357605,
0.5143629908561707,
0.023878663778305054,
0.033652134239673615,
-0.14287534356117249,
0.18070214986801147,
-0.3144259452819824,
0.09165964275598526,
0.01567620038986206,
0.049006860703229904,
0.1960962861776352,
-0.06676037609577179,
-0.16998274624347687,
0.05472424998879433,
-0.0005292035639286041,
-0.2220744490623474,
0.17491218447685242,
0.13274091482162476,
0.06348168849945068,
0.7849997282028198,
0.38831430673599243,
0.31060075759887695,
0.31299257278442383,
0.2840481996536255,
0.6152819395065308,
0.13492123782634735,
-0.09277282655239105,
0.1380269080400467,
0.019420772790908813,
-0.09256424754858017,
0.13469207286834717,
0.023240048438310623,
-0.22102579474449158,
-0.01662142388522625,
-0.03666289150714874,
-0.3092915117740631,
-0.37173137068748474,
-0.20269350707530975,
-0.31591761112213135,
0.1572173833847046,
0.06422583758831024,
0.12353362888097763,
-0.2987574636936188,
-0.19087865948677063,
-0.016998950392007828,
0.35146981477737427,
0.23010653257369995,
0.2705017924308777,
-0.33799782395362854,
-0.02957581728696823,
-0.30262312293052673,
0.35957133769989014,
-0.035289447754621506,
0.46599164605140686,
-0.26626551151275635,
0.21068158745765686,
0.16733242571353912,
0.37459078431129456,
0.4072619676589966,
-0.4263465106487274,
0.24267475306987762,
-0.054112743586301804,
0.20291684567928314,
0.29372280836105347,
-0.21152062714099884,
0.4624209403991699,
0.47302788496017456,
-0.03995116427540779,
0.08544040471315384,
0.1279444396495819,
-0.17486779391765594,
-0.4338356554508209,
-0.22166438400745392,
-0.14412027597427368,
-0.2356080859899521,
0.0851392149925232,
0.184687077999115,
-0.05174273997545242,
-0.10393000394105911,
0.32523754239082336,
-0.31535038352012634,
-0.17910882830619812,
-0.0511319600045681,
-0.18276584148406982,
0.18007305264472961,
0.09176483750343323,
0.0356343537569046,
0.33790749311447144,
0.09019403159618378,
-0.047793976962566376,
0.4214048981666565,
0.04119878262281418,
0.12376139312982559,
0.35189399123191833,
-0.1940188854932785,
0.332169771194458,
-0.16830450296401978,
-0.2559117376804352,
0.46732470393180847,
-0.03537037968635559,
-0.4321642816066742,
-0.12901490926742554,
0.12494654953479767,
-0.23340944945812225,
-0.2891233265399933,
-0.021046988666057587,
-0.06850478798151016,
0.005854831077158451,
-0.2907114624977112,
-0.6374562382698059,
0.2226540744304657,
0.5671569108963013,
-0.3972545266151428,
0.3289409577846527,
-0.3693501949310303,
-0.3797779083251953,
0.10752588510513306,
0.10928690433502197,
0.7499828338623047,
-0.20781077444553375,
0.313044935464859,
-0.45768293738365173,
0.14952991902828217,
-0.014685860835015774,
-0.39890486001968384,
0.041978269815444946,
-0.41422367095947266,
-0.3809761703014374,
-0.14496012032032013,
-0.1103522777557373,
0.04861651360988617,
0.4917731285095215,
0.031869951635599136,
0.14249219000339508,
-0.1179928407073021,
-0.09488219022750854,
-0.14610104262828827,
-0.15707413852214813,
-0.07805068790912628,
-0.33699852228164673,
0.26864519715309143,
0.10369308292865753,
-0.29246586561203003,
0.038319181650877,
-0.02584271878004074,
0.0023591569624841213,
-0.1695408970117569,
0.23919348418712616,
-0.2151150405406952,
0.04280105233192444,
-0.5830398797988892,
0.027674976736307144,
-0.17925098538398743,
0.0034087970852851868,
0.1712264120578766,
0.3849395513534546,
0.2264014631509781,
0.33922529220581055,
-0.013463055714964867,
0.02576371096074581,
0.2369791865348816,
0.1699475198984146,
-0.2879481315612793,
0.13460469245910645,
0.28973889350891113,
0.17683860659599304,
0.03756452351808548,
-0.19058290123939514,
-0.17056934535503387,
-0.2960844039916992,
-0.30600258708000183,
0.2048550695180893,
0.020405486226081848,
-0.22921057045459747,
-0.041102759540081024,
-0.14474986493587494,
0.1306893229484558,
0.08932763338088989,
0.06525222957134247,
0.5086289048194885,
0.008481907658278942,
0.5539219379425049,
-0.2621823847293854,
-0.3646310865879059,
0.050300173461437225,
0.552264928817749,
-0.04778211563825607,
-0.22104299068450928,
0.1484202742576599,
-0.38084614276885986,
-0.216665118932724,
-0.14911134541034698,
0.2213984727859497,
0.10412218421697617,
-0.11338771879673004,
-0.0702696442604065,
0.05289161577820778,
-0.06423545628786087,
0.17087779939174652,
-0.44947549700737,
0.04657027870416641,
0.108382947742939,
0.13822515308856964,
-0.39071881771087646,
-0.42874231934547424,
-0.28642743825912476,
-0.3578282296657562,
0.20639334619045258,
0.3053346574306488,
-0.5955712795257568,
0.1072508692741394,
0.041354477405548096,
-0.19101788103580475,
-0.24284106492996216,
0.06657997518777847,
0.09134183824062347,
0.24664314091205597,
0.10412662476301193,
-0.11786773055791855,
-0.16241540014743805,
-0.10323461145162582,
-0.08166477829217911,
-0.02873474359512329,
-0.15986406803131104,
-0.09342917799949646,
0.15712113678455353,
0.18777117133140564,
-0.24601255357265472,
0.08207176625728607,
-0.48387932777404785,
-0.12698951363563538,
-0.44437068700790405,
0.05976084992289543,
0.24012205004692078,
0.2697979211807251,
0.3521517217159271,
0.20597994327545166,
0.027986783534288406,
-0.1935165822505951,
0.2300647646188736,
-0.1304267793893814,
-0.16756059229373932,
-0.25440365076065063,
0.25287336111068726,
-0.2788148522377014,
-0.10303686559200287,
0.013166802935302258,
-0.08073025196790695,
0.17690567672252655,
0.03763885423541069,
0.08238400518894196,
0.0170305073261261,
0.07687307894229889,
0.14473576843738556,
0.24026188254356384,
0.027330465614795685,
-0.13486681878566742,
0.06755317747592926,
0.3256237208843231,
0.08256908506155014,
0.16619305312633514,
-0.23734425008296967,
0.3468437194824219,
-0.13270233571529388,
0.017685990780591965,
0.35700562596321106,
0.21006685495376587,
-0.21025913953781128,
0.13175469636917114,
-0.1489017903804779,
0.09543412923812866,
-0.3153628706932068,
0.34320172667503357,
-0.04719546064734459,
0.1139841228723526,
0.11444191634654999,
0.4226003587245941,
0.2717164158821106,
0.06564758718013763,
0.3585309386253357,
0.21712183952331543,
0.22837717831134796,
0.3618629276752472,
-0.3181793689727783,
0.08361702412366867,
-0.6983568072319031,
0.11383481323719025,
0.026525571942329407,
-0.040522947907447815,
0.30497774481773376,
0.08281383663415909,
0.07336699217557907,
-0.001171935349702835,
-0.24862612783908844,
-0.03297070786356926,
-0.12350614368915558,
-0.13068383932113647,
-0.20327326655387878,
0.01062067598104477,
0.08069203048944473,
0.0313844308257103,
-0.27322980761528015,
-0.15743298828601837,
-0.24298273026943207,
0.21377134323120117,
0.21328847110271454,
0.04282340779900551,
0.25038182735443115,
0.025199800729751587,
0.15015578269958496,
-0.031145215034484863,
-0.17002981901168823,
-0.04181981831789017,
-0.5771830081939697,
-0.11352218687534332,
0.2809131145477295,
-0.02524593658745289,
0.018653221428394318,
0.1169375479221344,
0.17245249450206757,
0.11156406253576279,
0.3579917252063751,
0.07174891233444214,
-0.2909564971923828,
0.34104883670806885,
-0.06309382617473602,
-0.26220181584358215,
0.0715564489364624,
0.011964872479438782,
-0.03192075714468956,
-0.10767187178134918,
-0.12333902716636658,
0.05852923169732094,
0.07323940098285675,
-0.033273227512836456,
-0.1695600301027298,
-0.4606759548187256,
0.08838559687137604,
-0.023055195808410645,
0.15167349576950073,
0.05338650196790695,
0.5730985999107361,
0.07576775550842285,
0.20852503180503845,
-0.4813010096549988,
0.024260371923446655,
0.3927841782569885,
0.3333713710308075,
0.3398486077785492,
-0.034554772078990936,
0.02037949115037918,
0.04888215661048889,
-0.41888970136642456,
0.1595374047756195,
0.25773245096206665,
0.44445866346359253,
0.04898685961961746,
-0.18772763013839722,
0.07865259796380997,
-0.08044476062059402,
0.5692912936210632,
-0.25449270009994507,
0.31341418623924255,
0.3377062678337097,
-0.19953374564647675,
-0.3216018080711365,
0.11964970827102661,
0.0005232244729995728,
0.07971148937940598,
-0.3342706859111786,
0.2815948724746704,
0.11482430249452591,
0.03739587217569351,
-0.23286177217960358,
-0.23094625771045685,
0.20432808995246887,
0.5594165325164795,
0.47421151399612427,
0.17282554507255554,
-0.018481895327568054,
0.004315320402383804,
0.44836997985839844,
-0.3441612720489502,
0.13362497091293335,
-0.14622949063777924,
-0.10852474719285965,
-0.21921619772911072,
-0.01586739346385002,
-0.5714678168296814,
-0.129058837890625,
-0.382948637008667,
0.006542555056512356,
-0.1274743676185608,
0.23693552613258362,
0.02313031442463398,
0.00516357459127903,
-0.10581474006175995,
-0.003986717201769352,
0.2990204691886902,
0.23565194010734558,
-0.17780223488807678,
0.35019221901893616,
-0.3655163049697876,
-0.07331275939941406,
0.2907484769821167,
-0.2873270809650421,
-0.20612214505672455,
-0.021318234503269196,
0.35308098793029785,
0.10355505347251892,
-0.16244876384735107,
0.0034141317009925842,
0.1304531693458557,
0.3935116231441498,
-0.4170916974544525,
-0.06326232850551605,
0.07567441463470459,
-0.4133789539337158,
0.10534459352493286,
-0.1192174106836319,
0.48560088872909546,
-0.0002685859799385071,
-0.18204353749752045,
0.055093567818403244,
-0.2337193340063095
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users.
For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use the same dataset on the same shared filesystem, but won't be able to under the default permissions.
Being able to specify directly in the top-level `load_dataset()` call seems important, but an equally valid option would be to just inherit from the running user's `umask` (this should probably be the default anyway).
So basically, argument that takes a custom set of permissions, and by default, use the running user's umask! | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 123 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users.
For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use the same dataset on the same shared filesystem, but won't be able to under the default permissions.
Being able to specify directly in the top-level `load_dataset()` call seems important, but an equally valid option would be to just inherit from the running user's `umask` (this should probably be the default anyway).
So basically, argument that takes a custom set of permissions, and by default, use the running user's umask! | [
-0.13351905345916748,
0.2638697624206543,
-0.08877960592508316,
-0.013651050627231598,
-0.04831966757774353,
0.10477686673402786,
0.3552218973636627,
0.1191612035036087,
-0.1658601313829422,
0.03788489103317261,
-0.10652393847703934,
-0.024867435917258263,
-0.019192427396774292,
-0.31371355056762695,
-0.1179800033569336,
0.17781464755535126,
0.12633273005485535,
0.08586322516202927,
0.060251303017139435,
-0.10857078433036804,
-0.10097785294055939,
-0.138910710811615,
0.005433849990367889,
-0.12483052909374237,
-0.21588236093521118,
-0.19468821585178375,
0.2352730631828308,
0.28539910912513733,
0.020385008305311203,
-0.09336316585540771,
0.32889270782470703,
0.593588650226593,
0.10813982784748077,
0.12022322416305542,
-0.00011267022637184709,
-0.17279043793678284,
-0.01960364729166031,
-0.13695579767227173,
-0.0687137097120285,
0.12229477614164352,
-0.005035653710365295,
-0.10523218661546707,
-0.08020633459091187,
-0.18733654916286469,
-0.08841578662395477,
0.18419358134269714,
0.14396516978740692,
-0.7255418300628662,
0.4894113540649414,
0.09566283226013184,
0.17346973717212677,
-0.1860502064228058,
-0.3902600407600403,
0.05281559005379677,
0.19768692553043365,
0.02507328987121582,
-0.11620982736349106,
0.16605466604232788,
0.3335855007171631,
-0.17338313162326813,
-0.07963752001523972,
-0.004757030867040157,
-0.39493268728256226,
0.09349603950977325,
0.17915412783622742,
-0.1684729903936386,
-0.2764597535133362,
-0.4620154798030853,
0.09160823374986649,
0.15910865366458893,
0.6701869368553162,
-0.1889316737651825,
-0.4884358048439026,
-0.2769804894924164,
0.094589002430439,
0.26307737827301025,
0.3322436809539795,
0.2956201136112213,
-0.07024678587913513,
0.2943013310432434,
-0.4962935149669647,
0.024976074695587158,
-0.11430701613426208,
0.07115886360406876,
0.24404335021972656,
-0.07765129208564758,
-0.022133443504571915,
0.06353238224983215,
0.05890964716672897,
-0.07429838180541992,
0.1298758089542389,
0.05135180801153183,
-0.2814571261405945,
0.33800363540649414,
-0.14418798685073853,
0.06838596612215042,
-0.15463101863861084,
0.32039520144462585,
0.25610265135765076,
0.3386803865432739,
0.2594958245754242,
0.20574405789375305,
0.026084303855895996,
0.27329739928245544,
0.036470040678977966,
0.14713890850543976,
0.33546993136405945,
0.29815128445625305,
0.5131573677062988,
-0.3563103973865509,
-0.07895991206169128,
0.08036499470472336,
0.0015171929262578487,
-0.32969602942466736,
0.05325174704194069,
0.2754201889038086,
-0.034821026027202606,
-0.1684570014476776,
0.19729629158973694,
0.04338779300451279,
-0.13758519291877747,
-0.21750038862228394,
0.0006880080327391624,
0.2218637466430664,
0.1435806304216385,
-0.04193484038114548,
0.050697363913059235,
0.1568998098373413,
-0.02983827143907547,
-0.34748387336730957,
-0.0023436835035681725,
-0.3836154043674469,
-0.3437676727771759,
0.45384281873703003,
0.5025849342346191,
-0.15039366483688354,
0.02598205767571926,
0.22861920297145844,
0.1914963573217392,
-0.17621465027332306,
0.35552120208740234,
-0.070304274559021,
0.3695276975631714,
0.29530295729637146,
0.3104313611984253,
0.3790475130081177,
0.13479968905448914,
-0.03847908973693848,
-0.18579566478729248,
0.2925342917442322,
-0.31896159052848816,
-0.19882650673389435,
0.33061566948890686,
0.025236541405320168,
-0.12940555810928345,
0.3491232693195343,
-0.435301274061203,
0.0539281852543354,
0.4892044961452484,
-0.13390669226646423,
0.394900381565094,
0.22849951684474945,
-0.16042546927928925,
-0.4301351010799408,
-0.09706215560436249,
0.3187618851661682,
-0.00682474672794342,
-0.0861125960946083,
-0.09709175676107407,
-0.0044259969145059586,
-0.10462457686662674,
0.334502249956131,
-0.08757781982421875,
0.18198826909065247,
-0.07394608855247498,
0.196285679936409,
0.4308476746082306,
-0.11925573647022247,
-0.5625239610671997,
0.08564667403697968,
0.20815370976924896,
0.02002008445560932,
0.17982614040374756,
0.03328966349363327,
0.0928124338388443,
-0.17953629791736603,
-0.013073593378067017,
0.3748732805252075,
0.1747639775276184,
0.2336510717868805,
0.13467863202095032,
-0.021119000390172005,
-0.010762222111225128,
-0.0737501010298729,
0.01622394099831581,
0.29220566153526306,
0.389953076839447,
-0.2811442017555237,
0.23321941494941711,
-0.34695184230804443,
0.22649961709976196,
0.38750404119491577,
0.08866852521896362,
-0.03212711215019226,
-0.07759202271699905,
-0.012540580704808235,
-0.4649497866630554,
0.3139139711856842,
-0.019517768174409866,
-0.3743111789226532,
0.07815243303775787,
-0.442752480506897,
0.1527732014656067,
-0.30589559674263,
-0.07854141294956207,
-0.05900963023304939,
0.06844034790992737,
-0.016934677958488464,
-0.06267260015010834,
-0.2871273458003998,
0.1386519819498062,
0.39767754077911377,
0.1569046825170517,
-0.0005137866828590631,
-0.1833367794752121,
0.11588798463344574,
-0.02073650248348713,
-0.09010937064886093,
-0.2096593976020813,
-0.004983372986316681,
0.21074464917182922,
0.05387506261467934,
-0.24752646684646606,
0.3181374669075012,
0.13600191473960876,
0.08789408206939697,
-0.20362290740013123,
0.31332099437713623,
-0.059591419994831085,
0.143978551030159,
0.08008981496095657,
-0.2660570442676544,
-0.08184652030467987,
-0.13202707469463348,
-0.28210705518722534,
0.4214652180671692,
-0.198238343000412,
-0.0984291210770607,
-0.22741231322288513,
0.19852043688297272,
0.13586272299289703,
-0.053110431879758835,
-0.16890999674797058,
-0.1018533781170845,
0.059244729578495026,
0.23334172368049622,
0.4352436661720276,
0.2416633814573288,
0.08636605739593506,
-0.07348259538412094,
0.29693853855133057,
0.16679158806800842,
0.1391647756099701,
-0.024861469864845276,
-0.11738676577806473,
0.07132461667060852,
0.26807570457458496,
0.3193114399909973,
0.26272231340408325,
0.08150744438171387,
0.30298614501953125,
-0.17940407991409302,
0.3617698848247528,
-0.12802734971046448,
-0.0533134862780571,
-0.06382879614830017,
-0.009619231335818768,
-0.1516234278678894,
-0.2004457712173462,
0.038313914090394974,
-0.010299824178218842,
0.28322434425354004,
0.0139391478151083,
0.031058689579367638,
-0.35337212681770325,
-0.08511138707399368,
-0.1569662094116211,
-0.14395681023597717,
0.3133108913898468,
-0.040969118475914,
-0.5186011791229248,
-0.033725280314683914,
-0.21191978454589844,
0.29017940163612366,
-0.06791796535253525,
0.2043985277414322,
-0.2976178228855133,
0.272285521030426,
-0.14647160470485687,
-0.21009331941604614,
-0.18332119286060333,
0.15806856751441956,
0.04977915436029434,
0.01904619112610817,
0.31562986969947815,
-0.5992067456245422,
0.14617927372455597,
-0.001480264589190483,
0.2587292790412903,
-0.17788656055927277,
0.07171488553285599,
-0.18567854166030884,
0.0394684299826622,
0.08482299745082855,
-0.4404531419277191,
0.08270572125911713,
-0.16660447418689728,
-0.0552184134721756,
-0.14951828122138977,
-0.25872987508773804,
-0.1490296572446823,
0.016552310436964035,
0.049150679260492325,
0.012648907490074635,
-0.2662484645843506,
-0.07434458285570145,
-0.16460387408733368,
-0.16094256937503815,
0.5063879489898682,
0.12581372261047363,
0.21807551383972168,
0.017770159989595413,
-0.20475773513317108,
-0.44335320591926575,
-0.20768897235393524,
0.30967846512794495,
-0.3285374641418457,
-0.5994927287101746,
0.31292277574539185,
-0.4392915666103363,
-0.29628443717956543,
-0.0024909749627113342,
0.11771775782108307,
0.07716561108827591,
0.5081127285957336,
0.014136694371700287,
-0.09991332143545151,
-0.14937150478363037,
0.22394025325775146,
-0.22639712691307068,
0.1315016895532608,
0.009231649339199066,
0.08067750930786133,
0.1833285242319107,
-0.021676616743206978,
-0.10745564103126526,
0.05994346737861633,
-0.0806833952665329,
-0.35608047246932983,
0.18495681881904602,
0.04483961686491966,
0.2210555076599121,
0.6883469223976135,
0.4353191554546356,
0.3087537884712219,
0.1947026401758194,
0.33110544085502625,
0.6988668441772461,
0.07147041708230972,
-0.0967981144785881,
0.16014009714126587,
-0.05993644893169403,
-0.1391473114490509,
0.1530289649963379,
0.026865636929869652,
-0.1599031388759613,
0.03622832149267197,
0.02092606946825981,
-0.2974902093410492,
-0.5224308371543884,
-0.11706697940826416,
-0.3631197214126587,
0.0746196061372757,
0.08410926163196564,
0.09509613364934921,
-0.3080650568008423,
-0.22947734594345093,
0.02150624990463257,
0.35995960235595703,
0.14095982909202576,
0.35384929180145264,
-0.4579852521419525,
0.09316800534725189,
-0.2501488924026489,
0.3669548034667969,
-0.0359293669462204,
0.4248608648777008,
-0.16445685923099518,
0.17303591966629028,
0.12089109420776367,
0.3693690299987793,
0.28320735692977905,
-0.36640748381614685,
0.24122925102710724,
-0.06564705073833466,
0.13117776811122894,
0.30794385075569153,
-0.2037861943244934,
0.4263637363910675,
0.36839741468429565,
0.0024620629847049713,
0.09108223021030426,
0.0815366879105568,
-0.129903644323349,
-0.4899196922779083,
-0.19612754881381989,
-0.09341796487569809,
-0.18368026614189148,
0.17939423024654388,
0.1602243185043335,
-0.14381743967533112,
-0.10863948613405228,
0.2946445345878601,
-0.3695818781852722,
-0.20430125296115875,
0.06765773892402649,
-0.23850448429584503,
0.2018127739429474,
0.15791884064674377,
-0.0005508093163371086,
0.2536372244358063,
0.00717885559424758,
-0.04590180516242981,
0.5038198232650757,
-0.032504163682460785,
0.2236604541540146,
0.39211785793304443,
-0.3262416422367096,
0.30091986060142517,
-0.2534967362880707,
-0.23266784846782684,
0.34819188714027405,
0.010960236191749573,
-0.3378419876098633,
-0.16362839937210083,
0.1595124751329422,
-0.21597419679164886,
-0.358773797750473,
-0.06276000291109085,
-0.13377715647220612,
0.024638034403324127,
-0.22042900323867798,
-0.7126750946044922,
0.1924000382423401,
0.605790376663208,
-0.3955475687980652,
0.280661940574646,
-0.2725961208343506,
-0.377338707447052,
0.16799433529376984,
0.11623053252696991,
0.7774206399917603,
-0.2349478155374527,
0.438498854637146,
-0.4347284734249115,
0.12212595343589783,
0.06753262132406235,
-0.5041332840919495,
0.0852130576968193,
-0.40164199471473694,
-0.3306935727596283,
-0.12110352516174316,
-0.11567845940589905,
0.06000781059265137,
0.49199509620666504,
0.09544335305690765,
0.1253557652235031,
-0.026380110532045364,
-0.08192183077335358,
-0.11302132904529572,
-0.20941758155822754,
-0.1573784202337265,
-0.3598349094390869,
0.24072521924972534,
0.11782294511795044,
-0.2239522784948349,
0.0005096606910228729,
0.017883772030472755,
0.025251466780900955,
-0.19550736248493195,
0.18524760007858276,
-0.24853985011577606,
0.023055274039506912,
-0.6235013604164124,
0.05641212314367294,
-0.14691931009292603,
0.011174485087394714,
0.14157700538635254,
0.3558236360549927,
0.27997052669525146,
0.3346353769302368,
0.007862666621804237,
0.0068322233855724335,
0.2641919255256653,
0.2242460399866104,
-0.2496601641178131,
0.04370013624429703,
0.3597232401371002,
0.22903284430503845,
0.13695138692855835,
-0.18502548336982727,
-0.14168496429920197,
-0.3284042477607727,
-0.3017082214355469,
0.18121209740638733,
0.08326989412307739,
-0.2500024735927582,
-0.03949573636054993,
-0.10445387661457062,
0.10080882906913757,
0.10584673285484314,
0.0466521754860878,
0.4602096676826477,
0.022213904187083244,
0.5224805474281311,
-0.3837366998195648,
-0.32559508085250854,
0.05446060746908188,
0.5755965113639832,
-0.01245936006307602,
-0.2675657570362091,
0.13890627026557922,
-0.35798168182373047,
-0.2112160474061966,
-0.1237873062491417,
0.20738735795021057,
0.1584109663963318,
-0.13320082426071167,
-0.10825751721858978,
0.00720260851085186,
-0.10467547923326492,
0.2162420004606247,
-0.4664978086948395,
0.10118982195854187,
0.1262035369873047,
0.22424499690532684,
-0.29777276515960693,
-0.3513052761554718,
-0.2399715632200241,
-0.2813030183315277,
0.275471031665802,
0.3540191352367401,
-0.5409371256828308,
0.03508133441209793,
0.051145706325769424,
-0.20954933762550354,
-0.16608835756778717,
0.09070160984992981,
0.10388993471860886,
0.27784186601638794,
0.10223306715488434,
-0.08266014605760574,
-0.22002148628234863,
-0.10283669829368591,
-0.06922857463359833,
-0.06799795478582382,
-0.15639856457710266,
-0.10394161939620972,
0.13904353976249695,
0.19004666805267334,
-0.3333749771118164,
0.1476513296365738,
-0.44028550386428833,
-0.09770853817462921,
-0.524946928024292,
0.07263115048408508,
0.36007803678512573,
0.2148396372795105,
0.3033677041530609,
0.14838294684886932,
0.10281907767057419,
-0.2563401758670807,
0.20475894212722778,
-0.19271892309188843,
-0.15735597908496857,
-0.22317034006118774,
0.25883179903030396,
-0.29054149985313416,
-0.034423790872097015,
0.08842476457357407,
-0.03164762258529663,
0.24694015085697174,
0.07837603986263275,
0.12196099758148193,
0.03826472908258438,
0.032822754234075546,
0.11217163503170013,
0.26357725262641907,
-0.03737190365791321,
-0.17414358258247375,
0.02909216471016407,
0.3594098389148712,
0.08633590489625931,
0.16639363765716553,
-0.2212916612625122,
0.3022616505622864,
-0.1214044913649559,
0.04446859285235405,
0.42414575815200806,
0.2005651891231537,
-0.2796059846878052,
0.04106656834483147,
-0.18484491109848022,
0.13998033106327057,
-0.29307079315185547,
0.4141860902309418,
-0.044920872896909714,
0.1124623715877533,
0.02600112557411194,
0.2568047046661377,
0.2728780210018158,
0.18062067031860352,
0.39871132373809814,
0.16788798570632935,
0.22691477835178375,
0.32465049624443054,
-0.3882226347923279,
0.10904348641633987,
-0.7499381899833679,
0.11600086092948914,
0.0643172562122345,
0.055267319083213806,
0.292470782995224,
0.00479193776845932,
0.032417938113212585,
0.03395120054483414,
-0.24219565093517303,
0.07316937297582626,
-0.19516503810882568,
-0.10713065415620804,
-0.12312807142734528,
0.09842556715011597,
0.061745621263980865,
-0.0580444410443306,
-0.27583083510398865,
-0.2101801037788391,
-0.2737855911254883,
0.22289632260799408,
0.25438880920410156,
0.10763129591941833,
0.17955148220062256,
-0.03541087359189987,
0.16808193922042847,
-0.030582867562770844,
-0.2526370882987976,
-0.1355956494808197,
-0.44398409128189087,
-0.17976942658424377,
0.240236297249794,
0.042873553931713104,
0.10802048444747925,
0.06999053806066513,
0.20030143857002258,
0.14652052521705627,
0.3104403614997864,
0.14608897268772125,
-0.3191908299922943,
0.2480010837316513,
-0.06395289301872253,
-0.2943785488605499,
0.031707990914583206,
0.03256642073392868,
-0.03881191089749336,
-0.06344471871852875,
-0.17981670796871185,
-0.06884956359863281,
-0.021503400057554245,
-0.055379100143909454,
-0.08784785866737366,
-0.39176273345947266,
0.14574000239372253,
0.0017106160521507263,
0.2160772979259491,
0.07254975289106369,
0.5099496841430664,
0.11272776871919632,
0.20343321561813354,
-0.45160651206970215,
0.039308466017246246,
0.4775199592113495,
0.22241021692752838,
0.39283156394958496,
-0.17547902464866638,
0.019479725509881973,
0.048133596777915955,
-0.4098708927631378,
0.1693507879972458,
0.1614997386932373,
0.36723387241363525,
-0.050283655524253845,
-0.24096287786960602,
0.21379756927490234,
-0.034204281866550446,
0.4339050054550171,
-0.2005828320980072,
0.26351475715637207,
0.3118847608566284,
-0.18935959041118622,
-0.3202568590641022,
0.15473240613937378,
-0.1253810077905655,
0.1053418517112732,
-0.3782762885093689,
0.1674530953168869,
0.07023020088672638,
0.06249995529651642,
-0.14002525806427002,
-0.20132170617580414,
0.24470379948616028,
0.5015898942947388,
0.4458538591861725,
0.2797785699367523,
-0.05133199691772461,
0.04556471109390259,
0.33949601650238037,
-0.33622440695762634,
0.17568688094615936,
-0.19201335310935974,
-0.08336164802312851,
-0.2430044412612915,
0.009313348680734634,
-0.6937605142593384,
-0.12205716967582703,
-0.3894573450088501,
-0.02466140128672123,
-0.1187724694609642,
0.1842210590839386,
-0.018033375963568687,
0.07513111084699631,
-0.14447924494743347,
0.07824943214654922,
0.33163461089134216,
0.3493751585483551,
-0.15861806273460388,
0.451439768075943,
-0.441189169883728,
-0.01885564997792244,
0.25542792677879333,
-0.3255096971988678,
-0.149967759847641,
-0.09593410044908524,
0.36417436599731445,
0.11326225101947784,
-0.13134171068668365,
0.027132391929626465,
0.13046595454216003,
0.36076176166534424,
-0.3851846754550934,
-0.10990296304225922,
-0.011672049760818481,
-0.36297354102134705,
-0.024913784116506577,
-0.11872635781764984,
0.39345812797546387,
0.018643192946910858,
-0.24286241829395294,
0.13579711318016052,
-0.2689589262008667
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Maybe let's start by defaulting to the user's umask !
Do you want to give it a try @bhavitvyamalik ? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 20 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Maybe let's start by defaulting to the user's umask !
Do you want to give it a try @bhavitvyamalik ? | [
-0.18029458820819855,
0.19892802834510803,
-0.10556542873382568,
-0.08582432568073273,
0.010979603976011276,
0.09721370786428452,
0.3096798062324524,
0.07195906341075897,
-0.16494128108024597,
0.08733565360307693,
-0.08067438751459122,
0.0011491647455841303,
0.06524579226970673,
-0.26501893997192383,
-0.05875349044799805,
0.13907930254936218,
0.15448817610740662,
-0.008077822625637054,
-0.010348685085773468,
-0.05308461934328079,
-0.12471121549606323,
-0.08110965043306351,
-0.09391080588102341,
-0.024481773376464844,
-0.3202100992202759,
-0.21046170592308044,
0.2709255814552307,
0.24566012620925903,
-0.10974345356225967,
-0.17014656960964203,
0.2531244456768036,
0.5244041085243225,
0.09507973492145538,
0.1362229287624359,
-0.00011029205052182078,
-0.22031792998313904,
0.057210251688957214,
-0.098393514752388,
0.07178428769111633,
0.1836274266242981,
-0.008160348981618881,
-0.057865530252456665,
-0.15265008807182312,
-0.13338561356067657,
-0.1902172565460205,
0.2176799178123474,
0.1347745954990387,
-0.6735303997993469,
0.3757871389389038,
0.18010631203651428,
0.22847646474838257,
-0.16688905656337738,
-0.2878264784812927,
0.041243694722652435,
0.24508488178253174,
0.05361466109752655,
-0.16401554644107819,
0.012387096881866455,
0.3500930964946747,
-0.21604439616203308,
-0.03958382457494736,
0.03380913287401199,
-0.27679798007011414,
0.09187190234661102,
0.11124130338430405,
-0.09001509845256805,
-0.2701270282268524,
-0.5084248781204224,
0.16643723845481873,
0.09999874234199524,
0.754416823387146,
-0.12956273555755615,
-0.4987753927707672,
-0.04658354073762894,
0.10720589011907578,
0.329632967710495,
0.3315171003341675,
0.33677369356155396,
-0.037741512060165405,
0.30570346117019653,
-0.5110291838645935,
0.07167395204305649,
-0.15498080849647522,
0.05145672708749771,
0.21040955185890198,
0.010815262794494629,
-0.03958975523710251,
0.06902424991130829,
0.006347276270389557,
-0.1661577820777893,
0.17081183195114136,
0.10887417942285538,
-0.3357987701892853,
0.3499302268028259,
-0.1366456300020218,
0.023439571261405945,
-0.16858932375907898,
0.39939966797828674,
0.20737415552139282,
0.3033179044723511,
0.25167757272720337,
0.24963954091072083,
0.1149907261133194,
0.22818127274513245,
-0.046848710626363754,
0.1980661153793335,
0.4191329777240753,
0.2782430648803711,
0.6045435667037964,
-0.2715250849723816,
-0.10656142234802246,
0.01411646232008934,
0.09088998287916183,
-0.3845105767250061,
0.04309583827853203,
0.31557416915893555,
0.03475559502840042,
-0.23127974569797516,
0.20053347945213318,
0.07536907494068146,
-0.10988236218690872,
-0.1989782303571701,
0.017188383266329765,
0.3396969139575958,
0.11323630809783936,
-0.09138857573270798,
0.09451937675476074,
0.18758536875247955,
-0.025398241356015205,
-0.3473283350467682,
-0.028196772560477257,
-0.31118178367614746,
-0.33067500591278076,
0.4159274995326996,
0.47432759404182434,
-0.10798607766628265,
0.015020420774817467,
0.249067023396492,
0.12994515895843506,
-0.1909891813993454,
0.3414689004421234,
-0.015948595479130745,
0.4194326102733612,
0.30740320682525635,
0.2932572364807129,
0.2807783782482147,
0.08494742214679718,
-0.025000516325235367,
-0.10676635801792145,
0.3163595199584961,
-0.2679617702960968,
-0.18258263170719147,
0.3279305398464203,
0.09496542811393738,
0.014849048107862473,
0.2611827850341797,
-0.317710280418396,
0.057797499001026154,
0.4880385100841522,
-0.0669541284441948,
0.4080173969268799,
0.31073814630508423,
-0.13418622314929962,
-0.40940794348716736,
-0.06297092139720917,
0.27177655696868896,
-0.08655843138694763,
-0.008627641946077347,
-0.10934443771839142,
-0.03929591551423073,
-0.051142968237400055,
0.3505493998527527,
-0.0363038070499897,
0.1679963618516922,
-0.13791191577911377,
0.21797285974025726,
0.43488824367523193,
-0.07851879298686981,
-0.5814687609672546,
0.08013216406106949,
0.19611407816410065,
-0.12391679733991623,
0.15254507958889008,
0.01806914433836937,
-0.04934803768992424,
-0.12705107033252716,
-0.011266104876995087,
0.38440293073654175,
0.2174694687128067,
0.24806290864944458,
0.05296505615115166,
0.020045241340994835,
-0.06103171408176422,
-0.005723379552364349,
0.0757828876376152,
0.33188357949256897,
0.3329179883003235,
-0.3726901113986969,
0.18833878636360168,
-0.30011704564094543,
0.26192185282707214,
0.456667423248291,
0.16206228733062744,
-0.09560222923755646,
-0.04182229936122894,
-0.04472001641988754,
-0.374174028635025,
0.2506234347820282,
-0.15007352828979492,
-0.33519813418388367,
0.02830646187067032,
-0.5107871294021606,
0.06384497135877609,
-0.2787099778652191,
-0.1423332691192627,
-0.09060367941856384,
0.11436612904071808,
-0.01311318576335907,
-0.01668224297463894,
-0.27777203917503357,
0.21080096065998077,
0.3133115768432617,
0.26741963624954224,
-0.019690802320837975,
-0.10412345826625824,
0.11479656398296356,
-0.14560221135616302,
-0.10466168820858002,
-0.18806403875350952,
-0.05705726891756058,
0.26821041107177734,
0.0339888334274292,
-0.30654996633529663,
0.3243802487850189,
0.14562217891216278,
0.026442542672157288,
-0.17774614691734314,
0.16638725996017456,
-0.06539204716682434,
0.10112640261650085,
0.038500651717185974,
-0.1685677468776703,
-0.08430055528879166,
-0.1399025171995163,
-0.29333579540252686,
0.4097220301628113,
-0.07113440334796906,
-0.14763259887695312,
-0.23064833879470825,
0.23773780465126038,
0.15639843046665192,
-0.0517023503780365,
-0.07974094897508621,
-0.18492820858955383,
0.0297499168664217,
0.15520967543125153,
0.35908985137939453,
0.15209420025348663,
0.09443919360637665,
0.03552291542291641,
0.3280799984931946,
0.198367640376091,
0.14460816979408264,
-0.033847928047180176,
-0.07876864820718765,
0.1132236197590828,
0.22177645564079285,
0.3202687203884125,
0.2825591564178467,
0.06879900395870209,
0.2878521978855133,
-0.17685629427433014,
0.34737375378608704,
-0.1926756650209427,
-0.0030031949281692505,
-0.0718388706445694,
-0.06444993615150452,
-0.15405628085136414,
-0.1414106786251068,
-0.058420825749635696,
-0.08712645620107651,
0.3273700177669525,
0.03993842005729675,
0.11473425477743149,
-0.3470167815685272,
-0.15865379571914673,
-0.1861211061477661,
-0.23966574668884277,
0.36502689123153687,
-0.005738862790167332,
-0.4932679533958435,
-0.08676982671022415,
-0.09443068504333496,
0.16543088853359222,
-0.11291147768497467,
0.2546654939651489,
-0.1431790590286255,
0.19120284914970398,
-0.08932235836982727,
-0.0425659716129303,
-0.2824663519859314,
0.1512669175863266,
0.09664958715438843,
0.07328033447265625,
0.2500420808792114,
-0.5685625076293945,
0.16639870405197144,
0.008767789229750633,
0.31426167488098145,
-0.33419835567474365,
-0.015175431966781616,
-0.19845861196517944,
0.07176169008016586,
0.07946973294019699,
-0.40894946455955505,
0.043694160878658295,
-0.16865338385105133,
-0.07089649885892868,
-0.05949736014008522,
-0.304806113243103,
-0.2399097979068756,
0.03282974660396576,
0.048014916479587555,
-0.11452928930521011,
-0.2582409679889679,
-0.0789976492524147,
-0.13546262681484222,
-0.19966278970241547,
0.4575275182723999,
0.12658675014972687,
0.17982062697410583,
-0.12310650199651718,
-0.20273135602474213,
-0.416748970746994,
-0.14437872171401978,
0.24375568330287933,
-0.35758891701698303,
-0.6189982891082764,
0.38606613874435425,
-0.5305786728858948,
-0.42610403895378113,
0.061199624091386795,
0.20090651512145996,
0.1119745522737503,
0.4502747058868408,
0.02729334682226181,
-0.071933314204216,
-0.2201867550611496,
0.16993512213230133,
-0.1490107625722885,
0.10468561202287674,
0.021952293813228607,
0.057429149746894836,
0.09260910004377365,
0.020703770220279694,
-0.18796347081661224,
0.04266924783587456,
-0.06830819696187973,
-0.2640703618526459,
0.10493428260087967,
0.12356980890035629,
0.2320936918258667,
0.6044677495956421,
0.4137210249900818,
0.35127243399620056,
0.26187989115715027,
0.32317236065864563,
0.5492528676986694,
-0.0017730072140693665,
-0.11612734943628311,
0.12863853573799133,
-0.030105173587799072,
-0.06338351964950562,
0.1106947585940361,
0.07157143950462341,
-0.21636609733104706,
0.026006028056144714,
-0.03340999037027359,
-0.21929031610488892,
-0.5093732476234436,
-0.18879300355911255,
-0.3285446763038635,
0.07891128957271576,
0.07447978854179382,
0.12746724486351013,
-0.23767304420471191,
-0.19325298070907593,
0.0826272964477539,
0.31764620542526245,
0.13467161357402802,
0.3178747594356537,
-0.5666813850402832,
0.12742693722248077,
-0.33562952280044556,
0.4427451491355896,
-0.04635196924209595,
0.4909636676311493,
-0.2584385275840759,
0.15719842910766602,
0.20637543499469757,
0.33307763934135437,
0.35660091042518616,
-0.5286800861358643,
0.27245643734931946,
-0.05111360922455788,
0.11264565587043762,
0.2861066460609436,
-0.20463827252388,
0.40982291102409363,
0.46415525674819946,
0.15297824144363403,
0.15258154273033142,
0.12735122442245483,
-0.12621435523033142,
-0.4393819570541382,
-0.33904409408569336,
-0.07512905448675156,
-0.23911026120185852,
0.1486617475748062,
0.18585792183876038,
-0.1596781611442566,
-0.0376075878739357,
0.31535592675209045,
-0.36115479469299316,
-0.12337183952331543,
-0.025022471323609352,
-0.28186535835266113,
0.2162923514842987,
0.06395699083805084,
-0.09318521618843079,
0.2871546149253845,
-0.040185485035181046,
-0.009804099798202515,
0.3608037531375885,
0.02141527831554413,
0.22468097507953644,
0.38864704966545105,
-0.23253118991851807,
0.30594301223754883,
-0.17446070909500122,
-0.31090861558914185,
0.3567635715007782,
0.0151987224817276,
-0.34052538871765137,
-0.15273502469062805,
0.19994530081748962,
-0.11154055595397949,
-0.23772919178009033,
-0.1410805732011795,
-0.11331667006015778,
0.05598617345094681,
-0.2763214707374573,
-0.570508599281311,
0.19064119458198547,
0.5891579985618591,
-0.3231378197669983,
0.2600392699241638,
-0.23346854746341705,
-0.35311776399612427,
0.20260721445083618,
0.10341056436300278,
0.8043725490570068,
-0.19969280064105988,
0.36964520812034607,
-0.42107799649238586,
0.029993325471878052,
0.03294064477086067,
-0.4663679599761963,
0.07393842935562134,
-0.4748345613479614,
-0.3609422445297241,
-0.11394701898097992,
-0.13616682589054108,
0.07482165843248367,
0.5008007884025574,
-0.050908807665109634,
0.07050223648548126,
-0.044663187116384506,
-0.11759349703788757,
-0.12405699491500854,
-0.14333689212799072,
-0.24367409944534302,
-0.28048083186149597,
0.2834150493144989,
0.15468628704547882,
-0.2207595556974411,
0.0418037511408329,
-0.010515369474887848,
-0.00827084667980671,
-0.19304636120796204,
0.22633202373981476,
-0.25367921590805054,
0.09765415638685226,
-0.6266335248947144,
0.15447299182415009,
-0.17002248764038086,
-0.04800870269536972,
0.15894047915935516,
0.36371850967407227,
0.3779083490371704,
0.38054874539375305,
-0.0493059977889061,
0.10272745788097382,
0.386198490858078,
0.19457149505615234,
-0.21208016574382782,
0.01807210221886635,
0.28001919388771057,
0.11794235557317734,
0.05949342995882034,
-0.29317399859428406,
-0.13589249551296234,
-0.3070361018180847,
-0.33864814043045044,
0.15630608797073364,
0.07403162121772766,
-0.2711719870567322,
-0.06311953812837601,
-0.18315395712852478,
0.05663812533020973,
0.029595304280519485,
0.12105259299278259,
0.4231935739517212,
0.00023159943521022797,
0.5362319946289062,
-0.3272693455219269,
-0.30258607864379883,
0.0578077994287014,
0.689318835735321,
-0.08276192843914032,
-0.1979091763496399,
0.1402793973684311,
-0.23005574941635132,
-0.32007986307144165,
-0.20837190747261047,
0.14285796880722046,
0.17299911379814148,
-0.14170274138450623,
-0.042753614485263824,
0.028619395568966866,
-0.12751811742782593,
0.29970064759254456,
-0.4429408609867096,
0.08043628185987473,
0.10465588420629501,
0.17337171733379364,
-0.3032197952270508,
-0.413551926612854,
-0.2953558564186096,
-0.2933430075645447,
0.22460699081420898,
0.2591465711593628,
-0.5468915700912476,
0.15599936246871948,
0.11689034104347229,
-0.25342607498168945,
-0.1681210994720459,
-0.005044335499405861,
0.1027848869562149,
0.14808914065361023,
0.0008402951061725616,
-0.12425006181001663,
-0.1824798732995987,
-0.06376604735851288,
-0.03129307180643082,
-0.08484821766614914,
-0.22074833512306213,
-0.002149844542145729,
0.10942317545413971,
0.2109244167804718,
-0.4119981527328491,
0.15228255093097687,
-0.38532310724258423,
-0.13259859383106232,
-0.42850983142852783,
0.047591324895620346,
0.35907772183418274,
0.15282058715820312,
0.3160887658596039,
0.19288021326065063,
-0.07757999747991562,
-0.20471583306789398,
0.15889936685562134,
-0.1796804666519165,
-0.23390798270702362,
-0.2131628692150116,
0.16661220788955688,
-0.32213249802589417,
-0.07823672890663147,
0.1922111213207245,
-0.062401823699474335,
0.12686705589294434,
0.10941419750452042,
0.1152409017086029,
-0.06628220528364182,
-0.03425232321023941,
0.06756684184074402,
0.256653755903244,
-0.07713556289672852,
-0.1399177461862564,
0.004963863641023636,
0.3268658220767975,
0.1283867210149765,
0.10420048236846924,
-0.3107631206512451,
0.33651024103164673,
-0.1364428848028183,
0.06468203663825989,
0.2991355359554291,
0.1867586225271225,
-0.3084298372268677,
0.13264332711696625,
-0.08440748602151871,
0.11735996603965759,
-0.35799384117126465,
0.41311612725257874,
-0.13507138192653656,
0.04317402467131615,
0.05436858907341957,
0.30326616764068604,
0.23240195214748383,
0.028903454542160034,
0.30378809571266174,
0.2282189428806305,
0.1596156805753708,
0.3071668744087219,
-0.32689160108566284,
0.1433590203523636,
-0.6421841382980347,
0.14181353151798248,
0.048869095742702484,
-0.01950220763683319,
0.22972354292869568,
0.1978282779455185,
0.050034549087285995,
0.05297686904668808,
-0.30777761340141296,
0.002078743651509285,
-0.15141229331493378,
-0.14492148160934448,
-0.085648313164711,
0.04824129492044449,
0.11917243152856827,
0.038653336465358734,
-0.23376701772212982,
-0.23033753037452698,
-0.1831657737493515,
0.15437078475952148,
0.24878406524658203,
0.11427570134401321,
0.18978913128376007,
0.05087748169898987,
0.07367037236690521,
0.03931937739253044,
-0.2107703536748886,
-0.07654933631420135,
-0.4362024664878845,
-0.16385418176651,
0.2595522999763489,
0.07628824561834335,
0.0896848514676094,
0.1124025210738182,
0.1307533085346222,
0.20923955738544464,
0.28673017024993896,
0.027161261066794395,
-0.31191501021385193,
0.3066922724246979,
-0.013536721467971802,
-0.3385617733001709,
0.10685886442661285,
0.0755263939499855,
-0.0768263190984726,
-0.09265868365764618,
-0.1684388369321823,
0.028938718140125275,
0.12102189660072327,
-0.06403716653585434,
-0.17382699251174927,
-0.47424283623695374,
0.16101756691932678,
-0.07207926362752914,
0.11718054860830307,
0.02343665063381195,
0.45429912209510803,
0.007974842563271523,
0.2162085771560669,
-0.541337788105011,
0.05013182759284973,
0.4407142102718353,
0.26096081733703613,
0.40434250235557556,
-0.1206955835223198,
-0.01953285187482834,
-0.07042713463306427,
-0.3925541937351227,
0.10421007126569748,
0.21705061197280884,
0.4251810610294342,
-0.004634290002286434,
-0.22882845997810364,
0.11266906559467316,
-0.08040942996740341,
0.5458394885063171,
-0.19884757697582245,
0.20657594501972198,
0.4043275713920593,
-0.27934783697128296,
-0.20902729034423828,
0.2195938676595688,
-0.0404682382941246,
0.1201096922159195,
-0.35929998755455017,
0.275661826133728,
0.11339425295591354,
0.12771949172019958,
-0.15609730780124664,
-0.13143545389175415,
0.16533325612545013,
0.5161160230636597,
0.42360222339630127,
0.23579536378383636,
-0.04782877862453461,
-0.032117512077093124,
0.42664870619773865,
-0.3159962594509125,
0.13276727497577667,
-0.17340928316116333,
-0.05895029753446579,
-0.1084841936826706,
0.09718794375658035,
-0.5752666592597961,
-0.2216765433549881,
-0.33959922194480896,
0.039689790457487106,
-0.18518339097499847,
0.26449093222618103,
0.04611340910196304,
0.11068671941757202,
-0.12167886644601822,
0.08933475613594055,
0.27386319637298584,
0.2784031331539154,
-0.1784673035144806,
0.36648139357566833,
-0.4719301462173462,
-0.13271810114383698,
0.2813083529472351,
-0.1820605993270874,
-0.18826045095920563,
-0.05038212612271309,
0.3723696172237396,
0.19195705652236938,
-0.1998264044523239,
0.10451369732618332,
0.08149483054876328,
0.29741838574409485,
-0.37834835052490234,
-0.09641396999359131,
0.11384667456150055,
-0.37511223554611206,
0.04358077421784401,
-0.21079762279987335,
0.4439973831176758,
0.06982468068599701,
-0.22439777851104736,
0.016383327543735504,
-0.26192545890808105
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
| Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 40 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
| [
-0.2242726981639862,
0.22611305117607117,
-0.08175250887870789,
0.009475596249103546,
0.04713600501418114,
0.014975793659687042,
0.2634156048297882,
0.07192402333021164,
-0.19149598479270935,
0.040730275213718414,
-0.13415281474590302,
0.08633597195148468,
0.04939325526356697,
-0.31421875953674316,
-0.11674575507640839,
0.13589803874492645,
0.1529259979724884,
-0.0015892982482910156,
-0.0006150007247924805,
-0.09638606756925583,
-0.22393503785133362,
-0.08623991906642914,
-0.10348717868328094,
-0.03367778658866882,
-0.345371812582016,
-0.21795588731765747,
0.2119511067867279,
0.23149341344833374,
-0.088236503303051,
-0.19050128757953644,
0.24261482059955597,
0.6062232255935669,
0.18005309998989105,
0.19833894073963165,
-0.00011554134107427672,
-0.21691955626010895,
0.08840572088956833,
-0.09585817903280258,
0.0502287931740284,
0.225265234708786,
0.013323765248060226,
-0.06527692824602127,
-0.19007983803749084,
-0.18337282538414001,
-0.2362518310546875,
0.15678003430366516,
0.10035745799541473,
-0.7182679772377014,
0.36112916469573975,
0.20026324689388275,
0.17233335971832275,
-0.22327284514904022,
-0.2373962700366974,
0.0888238251209259,
0.24096861481666565,
0.1156109869480133,
-0.09895429760217667,
0.012622866779565811,
0.33203989267349243,
-0.16687236726284027,
-0.0690128281712532,
0.03431722894310951,
-0.2808454632759094,
0.003179367631673813,
0.15464293956756592,
-0.07794612646102905,
-0.29836735129356384,
-0.5014810562133789,
0.12386567145586014,
0.11868758499622345,
0.7641477584838867,
-0.11712906509637833,
-0.5640266537666321,
-0.04962317645549774,
0.1295875459909439,
0.29015880823135376,
0.32583069801330566,
0.30544209480285645,
-0.0033056410029530525,
0.33878812193870544,
-0.5569102764129639,
0.09167895466089249,
-0.22945943474769592,
0.10124409198760986,
0.1967003047466278,
0.03669845312833786,
-0.06704098731279373,
0.12757323682308197,
0.00622909888625145,
-0.18614976108074188,
0.23208612203598022,
0.024200439453125,
-0.3480372726917267,
0.379195898771286,
-0.09579427540302277,
-0.012521650642156601,
-0.1537097990512848,
0.5009946823120117,
0.23905634880065918,
0.291329026222229,
0.17131838202476501,
0.27433064579963684,
0.05061336234211922,
0.17303326725959778,
-0.03169466555118561,
0.18152189254760742,
0.4626689553260803,
0.27953454852104187,
0.5615983009338379,
-0.289800763130188,
-0.12747985124588013,
0.020110594108700752,
0.046115826815366745,
-0.3072870075702667,
0.05473160371184349,
0.2786276638507843,
0.039836786687374115,
-0.17401091754436493,
0.23153868317604065,
0.06332114338874817,
-0.19455444812774658,
-0.1972171664237976,
0.09983573853969574,
0.34421294927597046,
0.0919310450553894,
-0.07219148427248001,
0.05625244230031967,
0.1736779361963272,
-0.09466741234064102,
-0.356892853975296,
-0.009011857211589813,
-0.32806262373924255,
-0.27868539094924927,
0.39776933193206787,
0.42687371373176575,
-0.05903983488678932,
0.04829102009534836,
0.22286175191402435,
0.13982275128364563,
-0.16151709854602814,
0.44516482949256897,
-0.10490812361240387,
0.4017583727836609,
0.31263044476509094,
0.27255740761756897,
0.24428217113018036,
0.061979733407497406,
0.039346545934677124,
-0.11383948475122452,
0.3360447883605957,
-0.3299659490585327,
-0.198357492685318,
0.34929338097572327,
0.06044731289148331,
-0.042180173099040985,
0.27828675508499146,
-0.28587862849235535,
0.06827929615974426,
0.4992925524711609,
-0.07010611891746521,
0.39845898747444153,
0.1958019733428955,
-0.21895566582679749,
-0.4167915880680084,
-0.07103834301233292,
0.27807754278182983,
-0.048038650304079056,
-0.0400206632912159,
-0.1446884721517563,
-0.005447003990411758,
0.012144550681114197,
0.3304818868637085,
-0.030633125454187393,
0.2323584258556366,
-0.16232866048812866,
0.19568075239658356,
0.47861453890800476,
-0.14941036701202393,
-0.6601572632789612,
0.09333392232656479,
0.1913597732782364,
-0.11073409020900726,
0.18149906396865845,
0.08801118284463882,
-0.05119698494672775,
-0.10903903841972351,
0.01703193038702011,
0.2962636947631836,
0.17348936200141907,
0.26796239614486694,
0.07821349799633026,
0.014511549845337868,
-0.10270652174949646,
0.011118803173303604,
0.0351286381483078,
0.26383519172668457,
0.33050912618637085,
-0.37147748470306396,
0.24938511848449707,
-0.32689112424850464,
0.2354726940393448,
0.45267945528030396,
0.23691034317016602,
-0.12377028167247772,
0.00888022594153881,
0.007716398686170578,
-0.33047792315483093,
0.2219383716583252,
-0.11207719892263412,
-0.33663228154182434,
0.035385698080062866,
-0.5332363247871399,
0.11614539474248886,
-0.25860679149627686,
-0.183500736951828,
-0.10280059278011322,
0.05897369235754013,
-0.013190649449825287,
0.043149154633283615,
-0.2665456533432007,
0.19841031730175018,
0.2996811270713806,
0.22091053426265717,
0.04676974564790726,
-0.11864782869815826,
0.08673268556594849,
-0.09542077779769897,
-0.13099108636379242,
-0.24010030925273895,
-0.03713312745094299,
0.27250897884368896,
-0.03682110458612442,
-0.24580934643745422,
0.3138570189476013,
0.24805516004562378,
-0.0437140017747879,
-0.22443103790283203,
0.22499977052211761,
-0.002051549032330513,
0.0791354775428772,
0.09314842522144318,
-0.1511034071445465,
-0.08382721245288849,
-0.11979949474334717,
-0.2827211320400238,
0.5314027070999146,
-0.0913299024105072,
-0.19639131426811218,
-0.2848782539367676,
0.21990887820720673,
0.17361462116241455,
-0.03928150609135628,
-0.13756710290908813,
-0.12513256072998047,
0.025919852778315544,
0.23248445987701416,
0.387634813785553,
0.19383040070533752,
0.13233259320259094,
0.05045212432742119,
0.3756454885005951,
0.14947067201137543,
0.13090524077415466,
-0.03740198165178299,
-0.04677939414978027,
0.04877983033657074,
0.25715693831443787,
0.27764108777046204,
0.37995678186416626,
0.07391806691884995,
0.27699464559555054,
-0.13876672089099884,
0.3776808977127075,
-0.10414397716522217,
-0.010229066014289856,
-0.015165023505687714,
-0.08966983109712601,
-0.16363683342933655,
-0.21924598515033722,
-0.07278203964233398,
-0.022522887215018272,
0.2986067235469818,
0.06836070120334625,
0.14790041744709015,
-0.35897591710090637,
-0.15647171437740326,
-0.12776421010494232,
-0.26560258865356445,
0.332251638174057,
0.004739433526992798,
-0.4301035702228546,
-0.04678565263748169,
-0.1731003224849701,
0.2626760005950928,
-0.05561380460858345,
0.2959812879562378,
-0.15583452582359314,
0.215839222073555,
-0.015728870406746864,
-0.03030710481107235,
-0.18985478579998016,
0.18922176957130432,
0.0821966826915741,
0.023258894681930542,
0.23475076258182526,
-0.6215872764587402,
0.1095523089170456,
-0.05365703999996185,
0.2752889394760132,
-0.3888057470321655,
-0.054200269281864166,
-0.16355152428150177,
0.09656761586666107,
0.08274611830711365,
-0.33418920636177063,
-0.07476706802845001,
-0.22519543766975403,
-0.004624357912689447,
-0.09555120021104813,
-0.3325319290161133,
-0.2238924205303192,
0.008983245119452477,
0.011030681431293488,
-0.03325774893164635,
-0.20299504697322845,
-0.06104203313589096,
-0.1555439978837967,
-0.12675350904464722,
0.4859422445297241,
0.15491241216659546,
0.23119394481182098,
-0.20376937091350555,
-0.221267431974411,
-0.32932063937187195,
-0.1553499698638916,
0.19970917701721191,
-0.3468115031719208,
-0.6803946495056152,
0.30595406889915466,
-0.5067749619483948,
-0.3965725302696228,
0.011728528887033463,
0.10945229232311249,
0.11936080455780029,
0.5079334378242493,
0.06978382170200348,
-0.21127410233020782,
-0.18970134854316711,
0.28614652156829834,
-0.21723970770835876,
0.14887414872646332,
-0.010219603776931763,
0.018429605290293694,
0.16938549280166626,
-0.01389218494296074,
-0.1542496532201767,
0.04585738852620125,
-0.0391504243016243,
-0.2779387831687927,
0.18556395173072815,
0.18912971019744873,
0.14232689142227173,
0.5497565865516663,
0.4713597893714905,
0.3665599226951599,
0.269602507352829,
0.2861097753047943,
0.6051009297370911,
0.07836420089006424,
-0.10193938761949539,
0.16413608193397522,
0.07850640267133713,
-0.09389062970876694,
0.15884634852409363,
0.09094178676605225,
-0.1556556075811386,
0.058583296835422516,
-0.1055937260389328,
-0.25638332962989807,
-0.4986240267753601,
-0.1460411250591278,
-0.28952881693840027,
0.04659157991409302,
0.006776899099349976,
0.21247217059135437,
-0.2476472407579422,
-0.20216181874275208,
0.06070782616734505,
0.29616686701774597,
0.13248178362846375,
0.28581535816192627,
-0.6697197556495667,
0.11266811192035675,
-0.34763455390930176,
0.4643508195877075,
-0.02506880834698677,
0.4630533456802368,
-0.18300428986549377,
0.19254443049430847,
0.20004278421401978,
0.3045370578765869,
0.41237491369247437,
-0.5408960580825806,
0.3032761216163635,
-0.03484981134533882,
0.04470645636320114,
0.24858756363391876,
-0.1507057398557663,
0.34410032629966736,
0.5285436511039734,
0.11639967560768127,
0.1270209103822708,
0.1303960084915161,
-0.12364635616540909,
-0.42735642194747925,
-0.2987101078033447,
-0.08370227366685867,
-0.267133504152298,
0.1920257955789566,
0.1025148555636406,
-0.057916998863220215,
-0.04498273879289627,
0.28004714846611023,
-0.3102293610572815,
-0.1342487335205078,
-0.006063010543584824,
-0.3104099631309509,
0.16516423225402832,
0.08257877826690674,
-0.14981260895729065,
0.35258981585502625,
-0.04457532614469528,
-0.05295177549123764,
0.3878895044326782,
-0.009542189538478851,
0.36309704184532166,
0.41984930634498596,
-0.28885623812675476,
0.22729913890361786,
-0.15549907088279724,
-0.344656378030777,
0.36856183409690857,
0.00352613627910614,
-0.2869545519351959,
-0.1578529179096222,
0.18331030011177063,
-0.08635343611240387,
-0.25822916626930237,
-0.10712789744138718,
-0.10990648716688156,
0.1533142328262329,
-0.28692224621772766,
-0.6173257231712341,
0.14577466249465942,
0.6142498850822449,
-0.34090307354927063,
0.25152117013931274,
-0.14575505256652832,
-0.40505483746528625,
0.2226865291595459,
0.14972391724586487,
0.8280983567237854,
-0.12416303157806396,
0.41325142979621887,
-0.3965636193752289,
0.05327247083187103,
0.16006354987621307,
-0.47668731212615967,
0.09043727815151215,
-0.5270590782165527,
-0.3178490698337555,
-0.10731770098209381,
-0.13086017966270447,
0.10582160204648972,
0.4674869775772095,
-0.0953696221113205,
0.10564030706882477,
-0.0690561980009079,
-0.19045577943325043,
-0.13848571479320526,
-0.13928286731243134,
-0.27351775765419006,
-0.26764151453971863,
0.2913936972618103,
0.11411924660205841,
-0.17767491936683655,
0.06267901510000229,
-0.004009945318102837,
0.06088940426707268,
-0.21836166083812714,
0.20517611503601074,
-0.2044144719839096,
0.027717899531126022,
-0.6304149627685547,
0.13335058093070984,
-0.14402371644973755,
-0.03878858685493469,
0.1345832496881485,
0.41619881987571716,
0.3846625089645386,
0.33607596158981323,
-0.04933585971593857,
0.06204696744680405,
0.3749549090862274,
0.2493368238210678,
-0.13668224215507507,
-0.06681074947118759,
0.3273586332798004,
0.1755494773387909,
0.08586680144071579,
-0.24303120374679565,
-0.1404038369655609,
-0.27529776096343994,
-0.2996566891670227,
0.052852507680654526,
0.09273570775985718,
-0.36210018396377563,
-0.06945393979549408,
-0.2669883966445923,
0.035592157393693924,
0.08178077638149261,
0.05848206579685211,
0.4753651022911072,
-0.061573781073093414,
0.5999322533607483,
-0.3380894958972931,
-0.3707464039325714,
0.02325454354286194,
0.6508809924125671,
-0.07489775866270065,
-0.19198854267597198,
0.16107778251171112,
-0.2853007912635803,
-0.25632673501968384,
-0.16115924715995789,
0.2667999863624573,
0.30671796202659607,
-0.10843217372894287,
-0.10939423739910126,
0.062191251665353775,
-0.09284959733486176,
0.26042330265045166,
-0.5158432722091675,
0.07800732553005219,
0.19464178383350372,
0.09907017648220062,
-0.278462290763855,
-0.47669991850852966,
-0.2796080708503723,
-0.17932088673114777,
0.17434073984622955,
0.2712530195713043,
-0.594187319278717,
0.13451510667800903,
0.02289610356092453,
-0.20462101697921753,
-0.1761205941438675,
0.03751860558986664,
0.07089845836162567,
0.14855805039405823,
0.02473054639995098,
-0.11508309841156006,
-0.18911577761173248,
-0.08162566274404526,
-0.10842414200305939,
-0.10958587378263474,
-0.15185970067977905,
-0.07168000936508179,
0.1274792104959488,
0.19319763779640198,
-0.4675964117050171,
0.17740102112293243,
-0.41394543647766113,
-0.1233779639005661,
-0.42544370889663696,
0.05730931833386421,
0.390903502702713,
0.17317599058151245,
0.310824990272522,
0.24255436658859253,
-0.06213133782148361,
-0.2998078465461731,
0.19314135611057281,
-0.2430417835712433,
-0.2243487685918808,
-0.2455170750617981,
0.262612521648407,
-0.30394455790519714,
-0.08838890492916107,
0.2513176500797272,
-0.0878845825791359,
0.13204419612884521,
0.07705281674861908,
0.09453979134559631,
-0.026254624128341675,
0.02286199852824211,
0.11023274809122086,
0.29238438606262207,
-0.055226586759090424,
-0.16602100431919098,
-0.03230229392647743,
0.30398237705230713,
0.09585029631853104,
0.11968250572681427,
-0.3297829031944275,
0.27826961874961853,
-0.16583307087421417,
0.02629861608147621,
0.3702869415283203,
0.08672243356704712,
-0.24812673032283783,
0.08566078543663025,
-0.15531647205352783,
0.1704511195421219,
-0.27832841873168945,
0.3902421295642853,
-0.10391426086425781,
0.028176773339509964,
0.07272181659936905,
0.33546948432922363,
0.20105472207069397,
0.027896270155906677,
0.2980985641479492,
0.15194766223430634,
0.20824897289276123,
0.312447190284729,
-0.27578791975975037,
0.16940659284591675,
-0.6644005179405212,
0.09758393466472626,
0.09667648375034332,
-0.03469012677669525,
0.22680902481079102,
0.16621027886867523,
0.06404069066047668,
-0.03679678589105606,
-0.2975321412086487,
0.05960213392972946,
-0.16105544567108154,
-0.19091838598251343,
-0.11529365181922913,
0.0046007707715034485,
0.08133251219987869,
0.04552312195301056,
-0.20061548054218292,
-0.2622353136539459,
-0.17468225955963135,
0.09283195436000824,
0.2766193151473999,
0.07422623038291931,
0.16581620275974274,
-0.008980367332696915,
0.07607873529195786,
0.0218043252825737,
-0.25044408440589905,
-0.04108921438455582,
-0.44453877210617065,
-0.11190520226955414,
0.26937994360923767,
0.08465120196342468,
0.11982755362987518,
0.12646710872650146,
0.18062260746955872,
0.17191675305366516,
0.3239748775959015,
0.08220939338207245,
-0.29455411434173584,
0.23478113114833832,
0.012773983180522919,
-0.35224393010139465,
0.05308453366160393,
0.033212997019290924,
-0.0139333326369524,
-0.10169163346290588,
-0.1442117542028427,
-0.04616759344935417,
0.09762488305568695,
-0.014744661748409271,
-0.13178905844688416,
-0.49606963992118835,
0.16504985094070435,
-0.009007230401039124,
0.1675390899181366,
0.031125329434871674,
0.44473525881767273,
0.01602800190448761,
0.21735668182373047,
-0.4712943732738495,
0.024617686867713928,
0.3944926857948303,
0.2075604796409607,
0.37149491906166077,
-0.1532774269580841,
-0.05140947550535202,
-0.05017779767513275,
-0.3450661897659302,
0.1659594625234604,
0.22714166343212128,
0.2972988188266754,
-0.011022020131349564,
-0.2264150232076645,
0.051658567041158676,
-0.1125049889087677,
0.4493538737297058,
-0.17990677058696747,
0.26194730401039124,
0.3611069321632385,
-0.32416224479675293,
-0.21587388217449188,
0.21939614415168762,
-0.009048596024513245,
0.10063745081424713,
-0.4241231679916382,
0.3100614547729492,
0.06446781754493713,
0.06311197578907013,
-0.12998679280281067,
-0.10612718760967255,
0.1513739675283432,
0.5122235417366028,
0.38709932565689087,
0.26220521330833435,
-0.005773492157459259,
0.01566549390554428,
0.46086812019348145,
-0.24252989888191223,
0.19813542068004608,
-0.2715999186038971,
-0.008166484534740448,
-0.11495064198970795,
0.12258674204349518,
-0.5734187960624695,
-0.21235044300556183,
-0.3278989791870117,
0.024996034801006317,
-0.18147552013397217,
0.23282316327095032,
0.03091767616569996,
0.18971145153045654,
-0.1288592666387558,
0.023226311430335045,
0.29419195652008057,
0.30199798941612244,
-0.12385877966880798,
0.38623663783073425,
-0.46853554248809814,
-0.07660724222660065,
0.31012439727783203,
-0.2580966055393219,
-0.11882293224334717,
-0.13129258155822754,
0.35411375761032104,
0.18922218680381775,
-0.2718223035335541,
0.13668611645698547,
0.07334407418966293,
0.3832207918167114,
-0.3898980915546417,
-0.1043069064617157,
0.05370628833770752,
-0.314777135848999,
0.05022506043314934,
-0.19292981922626495,
0.45303818583488464,
0.04675246775150299,
-0.2346210926771164,
0.08102573454380035,
-0.23312701284885406
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask. | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 30 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask. | [
-0.18572665750980377,
0.17379257082939148,
-0.10752768814563751,
-0.1851046085357666,
-0.008170321583747864,
0.0839046761393547,
0.3565378487110138,
0.07572740316390991,
-0.11083199083805084,
0.10525500774383545,
-0.22693902254104614,
0.15432412922382355,
0.10393061488866806,
-0.2934489846229553,
-0.06498085707426071,
0.21793566644191742,
0.0900316908955574,
-0.03514814376831055,
-0.051952362060546875,
-0.008974339812994003,
-0.13901552557945251,
-0.10628964006900787,
-0.09730714559555054,
-0.022076942026615143,
-0.21672163903713226,
-0.19771668314933777,
0.1695958375930786,
0.33889636397361755,
-0.05083746463060379,
-0.2708570659160614,
0.19472302496433258,
0.5540149807929993,
0.024419475346803665,
0.10413220524787903,
-0.00010545818076934665,
-0.11829638481140137,
0.02594444900751114,
-0.07668080180883408,
0.08370265364646912,
0.25447791814804077,
0.061656467616558075,
-0.059953875839710236,
-0.24193553626537323,
-0.1721668839454651,
-0.24745768308639526,
0.19508451223373413,
0.12710213661193848,
-0.5841303467750549,
0.3706356883049011,
0.26190879940986633,
0.2632211148738861,
0.004186538979411125,
-0.21592320501804352,
0.08270727097988129,
0.23220503330230713,
0.03945773467421532,
-0.1844675987958908,
0.004054611548781395,
0.37055930495262146,
-0.08177346736192703,
-0.02946055680513382,
0.0447109118103981,
-0.19668258726596832,
0.07993809878826141,
0.14100652933120728,
-0.04928586259484291,
-0.22016417980194092,
-0.4966880977153778,
0.17104753851890564,
0.06864090263843536,
0.7374112606048584,
-0.05055748671293259,
-0.5258098840713501,
0.051530636847019196,
0.16334864497184753,
0.2687799334526062,
0.3548976480960846,
0.310195654630661,
-0.0543668232858181,
0.3213353157043457,
-0.44021958112716675,
0.14287352561950684,
-0.21385815739631653,
0.023155637085437775,
0.21602031588554382,
0.10436704754829407,
-0.013858630321919918,
0.11856047809123993,
0.1312626451253891,
-0.17238213121891022,
0.12738820910453796,
0.22209855914115906,
-0.28417325019836426,
0.4184722304344177,
-0.08035440742969513,
0.021350324153900146,
-0.17957696318626404,
0.4277118742465973,
0.1930829882621765,
0.18298201262950897,
0.2210574448108673,
0.26310476660728455,
0.03993546962738037,
0.24810078740119934,
-0.11073291301727295,
0.0876152515411377,
0.3066401481628418,
0.33093932271003723,
0.600415050983429,
-0.27535152435302734,
-0.1773977428674698,
0.03613967448472977,
-0.004082914907485247,
-0.4007749855518341,
-0.007575606927275658,
0.2617323398590088,
0.1033150851726532,
-0.24115346372127533,
0.21971964836120605,
-0.014374245889484882,
-0.050394490361213684,
-0.1352396160364151,
0.05547741800546646,
0.41304826736450195,
0.2159237116575241,
-0.20108884572982788,
0.1329975724220276,
0.16104070842266083,
0.0002657230943441391,
-0.23621198534965515,
-0.009621680714190006,
-0.2826399803161621,
-0.3536852300167084,
0.3084277808666229,
0.42392200231552124,
0.02819335274398327,
-0.005930822808295488,
0.21353960037231445,
0.16407287120819092,
-0.21624748408794403,
0.35586583614349365,
0.001364133320748806,
0.4887397587299347,
0.37805646657943726,
0.22980448603630066,
0.12427952140569687,
0.07132785022258759,
0.0070001110434532166,
-0.13565465807914734,
0.37542545795440674,
-0.16858455538749695,
-0.15591922402381897,
0.2985613942146301,
0.14401808381080627,
0.051764585077762604,
0.2353738248348236,
-0.1760038137435913,
0.0034037381410598755,
0.42222750186920166,
0.01927926018834114,
0.4730711877346039,
0.26343846321105957,
-0.18115508556365967,
-0.3831002414226532,
-0.06625886261463165,
0.16072595119476318,
-0.12459543347358704,
-0.003176610916852951,
-0.20331265032291412,
-0.12253375351428986,
-0.06388366967439651,
0.322544127702713,
-0.034948982298374176,
0.1460776925086975,
-0.1530027836561203,
0.17999784648418427,
0.4943962097167969,
-0.10541987419128418,
-0.5366945266723633,
0.01792224496603012,
0.14209440350532532,
-0.15751007199287415,
0.25536149740219116,
0.06994076073169708,
-0.08621710538864136,
-0.12054922431707382,
-0.08402226865291595,
0.33864378929138184,
0.24014058709144592,
0.19527828693389893,
0.07592199742794037,
0.06185229867696762,
-0.11563315987586975,
0.07490786910057068,
0.0716746374964714,
0.36320194602012634,
0.3213570713996887,
-0.3289198875427246,
0.2820543944835663,
-0.304974228143692,
0.23714548349380493,
0.43269938230514526,
0.22957898676395416,
-0.04572256654500961,
0.03914893418550491,
-0.0006199777126312256,
-0.28058311343193054,
0.29856231808662415,
-0.20283997058868408,
-0.2408684492111206,
0.056275393813848495,
-0.5901846289634705,
0.0555277094244957,
-0.21220898628234863,
-0.1397847682237625,
-0.16166706383228302,
0.15870054066181183,
0.0242922343313694,
0.10341660678386688,
-0.3360016942024231,
0.22343911230564117,
0.2746567130088806,
0.26831570267677307,
-0.012135444208979607,
-0.03983418643474579,
0.026717418804764748,
-0.2164895087480545,
-0.12059111893177032,
-0.1934049427509308,
0.014575827866792679,
0.18436534702777863,
-0.017895380035042763,
-0.2853233516216278,
0.35351061820983887,
0.18522945046424866,
0.02036314457654953,
-0.2001335620880127,
0.10850457102060318,
-0.10562022775411606,
0.1050097644329071,
0.03597358986735344,
-0.18668560683727264,
-0.10000371932983398,
-0.0848841592669487,
-0.27447375655174255,
0.38474786281585693,
-0.0844670981168747,
-0.18054112792015076,
-0.23376360535621643,
0.20747166872024536,
0.17458099126815796,
-0.06095828860998154,
-0.08518504351377487,
-0.1573994755744934,
-0.02657625451683998,
0.17657187581062317,
0.31829825043678284,
0.14467327296733856,
0.1370997279882431,
0.05762732774019241,
0.29812201857566833,
0.1863224357366562,
0.06545247882604599,
-0.03009987622499466,
-0.013127133250236511,
0.13751688599586487,
0.20893113315105438,
0.26191994547843933,
0.3403193950653076,
0.12406168133020401,
0.34430649876594543,
-0.07577166706323624,
0.3184886872768402,
-0.07390955090522766,
0.03387496620416641,
-0.11102122068405151,
-0.1256037801504135,
-0.19510650634765625,
-0.1830321103334427,
-0.09045258909463882,
-0.13623812794685364,
0.2723574936389923,
0.0790061205625534,
0.1283605694770813,
-0.30071544647216797,
-0.1703161895275116,
-0.13531149923801422,
-0.20514044165611267,
0.35139286518096924,
0.06783938407897949,
-0.5054531693458557,
-0.08965810388326645,
-0.051605433225631714,
0.20657214522361755,
-0.19157876074314117,
0.3344321846961975,
-0.1828153282403946,
0.12996181845664978,
0.026354068890213966,
-0.03701318800449371,
-0.25180551409721375,
0.12041620910167694,
0.1502988189458847,
0.11035165190696716,
0.19370092451572418,
-0.5752276182174683,
0.15697376430034637,
-0.044852301478385925,
0.22562739253044128,
-0.3547331988811493,
0.0017738044261932373,
-0.13116098940372467,
-0.07155660539865494,
-0.043017126619815826,
-0.3177591562271118,
-0.039947882294654846,
-0.19784346222877502,
-0.09189082682132721,
-0.009718256071209908,
-0.38439270853996277,
-0.3132212162017822,
-0.030798733234405518,
0.14639493823051453,
-0.06771840155124664,
-0.34141862392425537,
-0.05935140699148178,
-0.13897189497947693,
-0.2776058614253998,
0.48893189430236816,
0.11934167146682739,
0.23467405140399933,
-0.07312281429767609,
-0.33029070496559143,
-0.2986047863960266,
-0.037500593811273575,
0.16940094530582428,
-0.42593464255332947,
-0.5024001598358154,
0.3395013213157654,
-0.5373855829238892,
-0.42634204030036926,
0.1487537920475006,
0.2579754590988159,
0.11098110675811768,
0.45551633834838867,
0.05725676566362381,
-0.1329277902841568,
-0.15703558921813965,
0.2110276222229004,
-0.23340067267417908,
0.11519768834114075,
0.04402252659201622,
0.03998409956693649,
0.033016420900821686,
-0.02857966162264347,
-0.16773302853107452,
0.043417058885097504,
-0.044092245399951935,
-0.2562851905822754,
0.029993535950779915,
0.11308855563402176,
0.1858668327331543,
0.5306416153907776,
0.2862319052219391,
0.36381667852401733,
0.26221004128456116,
0.21711349487304688,
0.6401689648628235,
0.0089028999209404,
-0.07042596489191055,
0.16201584041118622,
0.04736805707216263,
-0.07264649122953415,
0.20920193195343018,
0.05824479088187218,
-0.2456904798746109,
0.0900999903678894,
-0.009649302810430527,
-0.1603546440601349,
-0.5348591208457947,
-0.13640986382961273,
-0.2738775908946991,
0.0883176177740097,
-0.014095882885158062,
0.14472028613090515,
-0.22620119154453278,
-0.10985074937343597,
0.12528866529464722,
0.2826581597328186,
0.09381072223186493,
0.2822672426700592,
-0.5877385139465332,
0.14005184173583984,
-0.40019044280052185,
0.45874422788619995,
-0.10892427712678909,
0.41674527525901794,
-0.23806236684322357,
0.05568160116672516,
0.22818490862846375,
0.26929113268852234,
0.3717995285987854,
-0.5058966875076294,
0.3724427819252014,
0.05637321248650551,
0.10238666832447052,
0.25381797552108765,
-0.18486197292804718,
0.33778563141822815,
0.47536271810531616,
0.17431403696537018,
0.20081108808517456,
0.12678858637809753,
-0.07152261584997177,
-0.37757471203804016,
-0.3198559284210205,
-0.03799797594547272,
-0.2707749605178833,
0.08474834263324738,
0.12335456162691116,
-0.22598914802074432,
0.0749153420329094,
0.26530691981315613,
-0.3210916817188263,
-0.128665030002594,
0.03733968362212181,
-0.2165568768978119,
0.21114665269851685,
-0.03133970499038696,
-0.0530683696269989,
0.266318678855896,
0.037025339901447296,
-0.022936034947633743,
0.2862892150878906,
0.027783066034317017,
0.22207856178283691,
0.4201599955558777,
-0.23694723844528198,
0.3318755030632019,
-0.1702907383441925,
-0.3368827998638153,
0.29438862204551697,
0.024181470274925232,
-0.275651216506958,
-0.21433025598526,
0.21075740456581116,
-0.111005038022995,
-0.19105638563632965,
-0.030451087281107903,
-0.11828269064426422,
0.08060140162706375,
-0.288373738527298,
-0.4726787805557251,
0.09791971743106842,
0.5448191165924072,
-0.33146798610687256,
0.27286213636398315,
-0.14083613455295563,
-0.3869788944721222,
0.2660951018333435,
0.109438955783844,
0.727016270160675,
-0.27497148513793945,
0.3488997220993042,
-0.4370080828666687,
0.04076358675956726,
0.032310619950294495,
-0.4445149302482605,
0.08480074256658554,
-0.40149232745170593,
-0.4133335053920746,
-0.05954490602016449,
-0.18931341171264648,
0.040219493210315704,
0.49903982877731323,
-0.14653031527996063,
-0.02227150648832321,
-0.01784893125295639,
-0.0763649046421051,
-0.1630127727985382,
-0.1716434806585312,
-0.3598257303237915,
-0.2808668315410614,
0.22873267531394958,
0.21740271151065826,
-0.1889200657606125,
0.09513676166534424,
-0.030471421778202057,
0.0031738593243062496,
-0.1627362072467804,
0.2038646936416626,
-0.21756529808044434,
0.08925554901361465,
-0.5943809747695923,
0.1376364678144455,
-0.21811610460281372,
0.02480776607990265,
0.08807098865509033,
0.3157130479812622,
0.45173001289367676,
0.436755895614624,
0.002665763720870018,
0.11915896832942963,
0.44173115491867065,
0.19773997366428375,
-0.19067120552062988,
-0.07739432156085968,
0.2027616798877716,
0.12212815135717392,
0.07919736951589584,
-0.2834092676639557,
-0.12047062069177628,
-0.4084978699684143,
-0.20665030181407928,
0.1360187530517578,
0.042676206678152084,
-0.2759873569011688,
-0.006843377836048603,
-0.16435937583446503,
0.004658062011003494,
0.021864604204893112,
0.1564434915781021,
0.39873313903808594,
-0.20996037125587463,
0.4780232012271881,
-0.4339785873889923,
-0.33443450927734375,
0.08629388362169266,
0.6166933178901672,
-0.08992992341518402,
-0.17606109380722046,
0.12322656065225601,
-0.20642690360546112,
-0.20423947274684906,
-0.23768818378448486,
0.13174813985824585,
0.2023618072271347,
-0.11868717521429062,
-0.00291516724973917,
0.12985090911388397,
-0.20156751573085785,
0.25262337923049927,
-0.40550416707992554,
0.051546260714530945,
0.2109726071357727,
0.03567098453640938,
-0.2672998905181885,
-0.5579947233200073,
-0.2802608013153076,
-0.266966313123703,
0.21887148916721344,
0.23629409074783325,
-0.4425869584083557,
0.12865714728832245,
0.0033916644752025604,
-0.3072439432144165,
-0.1627132147550583,
-0.03624555096030235,
0.12240856140851974,
0.183794304728508,
-0.07669667154550552,
-0.032523248344659805,
-0.18415071070194244,
-0.00034206174314022064,
-0.018425125628709793,
-0.09415258467197418,
-0.2566417455673218,
-0.007246075198054314,
0.08279583603143692,
0.19266605377197266,
-0.4056090712547302,
0.18345385789871216,
-0.40277647972106934,
-0.1051965206861496,
-0.3707085847854614,
0.11699728667736053,
0.3733256161212921,
0.1056438758969307,
0.22041405737400055,
0.14637218415737152,
-0.06429199129343033,
-0.08913391828536987,
0.13610543310642242,
-0.22072800993919373,
-0.25195181369781494,
-0.26021161675453186,
0.2186690717935562,
-0.3524957597255707,
-0.08475333452224731,
0.2697778344154358,
-0.08074285835027695,
0.11063670367002487,
0.10640382021665573,
0.13498039543628693,
0.06929422169923782,
-0.08487780392169952,
-0.0026870127767324448,
0.3689289391040802,
-0.07101713120937347,
-0.035571735352277756,
-0.014939994551241398,
0.30702313780784607,
0.16887246072292328,
0.0794648751616478,
-0.3034922778606415,
0.2815037667751312,
-0.26085802912712097,
0.11384229362010956,
0.32062581181526184,
0.15164023637771606,
-0.31002455949783325,
0.167888343334198,
-0.05533212795853615,
0.14276030659675598,
-0.28542977571487427,
0.37259799242019653,
-0.037052493542432785,
-0.024244483560323715,
0.10646653175354004,
0.3017580509185791,
0.24555714428424835,
0.006735406816005707,
0.17861604690551758,
0.13921883702278137,
0.2059951275587082,
0.3161493241786957,
-0.37792056798934937,
0.24912256002426147,
-0.5594151616096497,
0.04847895726561546,
0.00823211669921875,
0.03254621475934982,
0.31141969561576843,
0.1086302250623703,
-0.014919891953468323,
-0.06773804873228073,
-0.37525853514671326,
-0.024697255343198776,
-0.06113198772072792,
-0.2230539619922638,
-0.09553077816963196,
0.04468563199043274,
0.17920002341270447,
-0.007664017379283905,
-0.16676639020442963,
-0.15415970981121063,
-0.18143494427204132,
0.07941050827503204,
0.1991390585899353,
0.16236728429794312,
0.2552837133407593,
0.03908345475792885,
0.03437130153179169,
-0.021818585693836212,
-0.25305038690567017,
-0.07371342927217484,
-0.46609586477279663,
-0.11477899551391602,
0.37904128432273865,
0.0014306064695119858,
0.13229045271873474,
0.0263401847332716,
0.0815608948469162,
0.2408289611339569,
0.22200123965740204,
0.07824574410915375,
-0.4063871502876282,
0.3051208257675171,
-0.07245127856731415,
-0.3299730718135834,
0.1291554570198059,
0.08069631457328796,
-0.129510298371315,
-0.18495166301727295,
-0.29258647561073303,
-0.07619385421276093,
0.1665283441543579,
-0.07964891940355301,
-0.17667487263679504,
-0.5326672792434692,
0.1927378624677658,
-0.03642558306455612,
0.1345301866531372,
0.05835799127817154,
0.33349764347076416,
0.014784302562475204,
0.18523669242858887,
-0.49018746614456177,
0.07737822830677032,
0.3475423753261566,
0.2903095483779907,
0.4328683018684387,
-0.17943403124809265,
0.0067897457629442215,
-0.05881667509675026,
-0.37550583481788635,
0.07901691645383835,
0.24033692479133606,
0.2012198567390442,
-0.04350518807768822,
-0.23689459264278412,
0.11399190872907639,
-0.1731884479522705,
0.6218096613883972,
-0.2811031639575958,
0.15270042419433594,
0.36376553773880005,
-0.21879734098911285,
-0.16947782039642334,
0.2325693964958191,
-0.01281709037721157,
0.10897889733314514,
-0.4467692971229553,
0.23510673642158508,
0.10902222990989685,
0.1445736587047577,
-0.07534188777208328,
-0.14494499564170837,
0.17994336783885956,
0.47122922539711,
0.46165144443511963,
0.22167690098285675,
-0.05271846055984497,
0.008671756833791733,
0.38595616817474365,
-0.39134541153907776,
0.0796375572681427,
-0.22224240005016327,
-0.07899755984544754,
-0.09578268229961395,
0.0782986730337143,
-0.5545234680175781,
-0.23053239285945892,
-0.2888008654117584,
0.0386645644903183,
-0.16136905550956726,
0.2081177532672882,
0.13038001954555511,
0.15682874619960785,
-0.18736112117767334,
0.12221033126115799,
0.3609287738800049,
0.27846115827560425,
-0.08927047252655029,
0.28292322158813477,
-0.4997113347053528,
-0.21789883077144623,
0.24888485670089722,
-0.1825588345527649,
-0.23234744369983673,
-0.0642230287194252,
0.3706892728805542,
0.18942539393901825,
-0.23456746339797974,
0.1013493612408638,
0.12627455592155457,
0.25087571144104004,
-0.3542097210884094,
-0.1510213017463684,
0.04086264967918396,
-0.30039918422698975,
0.006254743784666061,
-0.25020354986190796,
0.39766430854797363,
0.03913338482379913,
-0.23910920321941376,
-0.03542254865169525,
-0.29173189401626587
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well.
thanks @thomwolf for the pointer. | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 29 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well.
thanks @thomwolf for the pointer. | [
-0.12074384093284607,
0.21106138825416565,
-0.08410510420799255,
0.04681798070669174,
-0.0028636008501052856,
0.1459372341632843,
0.38540464639663696,
0.13916020095348358,
-0.20116809010505676,
-0.058567240834236145,
-0.13547787070274353,
-0.017623160034418106,
0.11561977118253708,
-0.29052260518074036,
-0.03995051980018616,
0.11758825927972794,
0.13374300301074982,
0.0035104528069496155,
-0.036686964333057404,
-0.08392412960529327,
-0.09984152019023895,
-0.07524996250867844,
-0.08505190908908844,
-0.07264105975627899,
-0.36150282621383667,
-0.13297632336616516,
0.2650977373123169,
0.22551456093788147,
0.009046451188623905,
-0.12460509687662125,
0.304742693901062,
0.43336251378059387,
0.07846880704164505,
0.12999776005744934,
-0.00011065087164752185,
-0.13994576036930084,
0.04879393428564072,
-0.06425341218709946,
0.0905667096376419,
0.2714787423610687,
-0.13215945661067963,
-0.07617538422346115,
-0.16861742734909058,
-0.10695885866880417,
-0.11066890507936478,
0.29722684621810913,
0.12265678495168686,
-0.5791897177696228,
0.4974910616874695,
0.19748397171497345,
0.2274942398071289,
-0.05385176092386246,
-0.3413305878639221,
0.05404376611113548,
0.29268309473991394,
0.08097538352012634,
-0.22436393797397614,
0.05525236949324608,
0.26924777030944824,
-0.19586117565631866,
-0.018321432173252106,
0.05518583208322525,
-0.29503750801086426,
0.11538276076316833,
0.15488770604133606,
-0.12191305309534073,
-0.23909372091293335,
-0.5055354833602905,
0.1950540840625763,
0.062000822275877,
0.7401840090751648,
-0.05043788254261017,
-0.49785682559013367,
-0.13246235251426697,
0.018821336328983307,
0.2531053125858307,
0.4132605195045471,
0.3396546542644501,
-0.0014016907662153244,
0.27197888493537903,
-0.5397581458091736,
0.007285786792635918,
-0.1382889598608017,
-0.04479154199361801,
0.1522362232208252,
-0.0007982701063156128,
-0.013266936875879765,
0.08481550961732864,
-0.020191136747598648,
-0.0922667384147644,
0.09072648733854294,
0.08481936156749725,
-0.37720987200737,
0.3344874083995819,
-0.17496174573898315,
0.08187095820903778,
-0.17746174335479736,
0.41313305497169495,
0.14112138748168945,
0.24015702307224274,
0.21636821329593658,
0.20278865098953247,
0.09417696297168732,
0.20047184824943542,
-0.0032466035336256027,
0.17157292366027832,
0.3708488643169403,
0.36960190534591675,
0.574459433555603,
-0.3903857171535492,
-0.17836712300777435,
0.007954567670822144,
0.04430670663714409,
-0.3267359435558319,
0.10369251668453217,
0.25648197531700134,
0.01881331205368042,
-0.22691217064857483,
0.15176287293434143,
0.11653783172369003,
-0.050861965864896774,
-0.21000346541404724,
0.04284459352493286,
0.2555076479911804,
0.1683596968650818,
-0.14306610822677612,
0.03028937429189682,
0.14450089633464813,
0.033597543835639954,
-0.4030354619026184,
-0.02979925461113453,
-0.34231457114219666,
-0.41164907813072205,
0.3594993054866791,
0.47795769572257996,
-0.16394279897212982,
-0.04077768325805664,
0.2220550775527954,
0.10618247091770172,
-0.2478540688753128,
0.26982828974723816,
-0.038396820425987244,
0.47718143463134766,
0.35604265332221985,
0.14116522669792175,
0.3438856899738312,
0.07714048773050308,
-0.002754341810941696,
-0.06629445403814316,
0.3606114089488983,
-0.27895286679267883,
-0.06231260672211647,
0.30917710065841675,
0.06000359356403351,
-0.025973109528422356,
0.23416022956371307,
-0.3002978265285492,
0.06536898016929626,
0.6256065964698792,
-0.12017402052879333,
0.41500982642173767,
0.3077591061592102,
-0.19595925509929657,
-0.38340261578559875,
-0.1492619812488556,
0.31606197357177734,
-0.11996430158615112,
-0.030518196523189545,
-0.060519181191921234,
-0.03976711258292198,
-0.04604344815015793,
0.2801165282726288,
-0.03839484229683876,
0.1791476309299469,
-0.09199090301990509,
0.18464936316013336,
0.41499611735343933,
-0.026283996179699898,
-0.582000195980072,
0.10691860318183899,
0.15091675519943237,
-0.1628604382276535,
0.13184168934822083,
-0.017296569421887398,
0.01634315401315689,
-0.07305215299129486,
-0.10576419532299042,
0.33871346712112427,
0.19759948551654816,
0.2817469537258148,
0.09357093274593353,
0.11249394714832306,
0.04624730348587036,
-0.08973844349384308,
0.13491927087306976,
0.40272316336631775,
0.27957335114479065,
-0.23796428740024567,
0.1736055314540863,
-0.22973129153251648,
0.3001244068145752,
0.4829811453819275,
0.0882578045129776,
-0.15607616305351257,
0.00941941887140274,
-0.08818615227937698,
-0.4463416337966919,
0.30595672130584717,
-0.17696475982666016,
-0.3649232089519501,
0.09362215548753738,
-0.38643574714660645,
0.023463279008865356,
-0.2765289843082428,
-0.21045897901058197,
-0.08247007429599762,
0.09919227659702301,
0.0023034289479255676,
-0.016040915623307228,
-0.3887530565261841,
0.22744248807430267,
0.3831130862236023,
0.3045080602169037,
-0.030099304392933846,
-0.09522107243537903,
0.12346675992012024,
-0.12746809422969818,
-0.07492662221193314,
-0.2616177499294281,
-0.040663592517375946,
0.29223424196243286,
0.008163695223629475,
-0.3218150734901428,
0.23080715537071228,
0.11621621996164322,
0.05671338737010956,
-0.08736654371023178,
0.2493588924407959,
-0.03523220121860504,
0.08070270717144012,
0.04281940683722496,
-0.1840929090976715,
-0.053949326276779175,
-0.13258396089076996,
-0.28538110852241516,
0.27402642369270325,
-0.037052858620882034,
-0.06514740735292435,
-0.23755066096782684,
0.21298588812351227,
0.14217500388622284,
-0.017199121415615082,
-0.07112447172403336,
-0.1782415360212326,
-0.06359562277793884,
0.1644786149263382,
0.31539931893348694,
0.22288979589939117,
0.1195317804813385,
0.045776739716529846,
0.40264344215393066,
0.22611597180366516,
0.11566077917814255,
-0.022561058402061462,
-0.15934330224990845,
0.06627453863620758,
0.17170362174510956,
0.3607620596885681,
0.22269323468208313,
0.014555317349731922,
0.3567925989627838,
-0.2121686041355133,
0.2847144901752472,
-0.18050476908683777,
0.02120322734117508,
-0.032997168600559235,
-0.02820458821952343,
-0.1503203809261322,
-0.09305927902460098,
0.009761758148670197,
-0.10507528483867645,
0.3722705841064453,
0.16793790459632874,
0.0914391279220581,
-0.34065401554107666,
-0.1041131392121315,
-0.2076181024312973,
-0.16165103018283844,
0.26953333616256714,
-0.01920158416032791,
-0.6123397946357727,
-0.08510176092386246,
-0.15969474613666534,
0.16299767792224884,
-0.04658305272459984,
0.15715859830379486,
-0.2691050171852112,
0.20402728021144867,
-0.023453783243894577,
-0.11805558949708939,
-0.3213478624820709,
0.16138075292110443,
0.03320661187171936,
0.0537654347717762,
0.25607359409332275,
-0.6495659351348877,
0.09172982722520828,
0.02699139155447483,
0.3185983896255493,
-0.23262473940849304,
0.05958453565835953,
-0.1462283581495285,
-0.07154864072799683,
0.039309896528720856,
-0.5172538757324219,
0.11414730548858643,
-0.14510786533355713,
0.0379495695233345,
-0.09774788469076157,
-0.24739429354667664,
-0.22246137261390686,
0.03857569396495819,
0.05515553802251816,
-0.10709518939256668,
-0.3245083689689636,
-0.04226884990930557,
-0.026289338245987892,
-0.15691596269607544,
0.43479275703430176,
0.05267057940363884,
0.17347294092178345,
0.11916676163673401,
-0.3077767789363861,
-0.3521292805671692,
-0.22859619557857513,
0.24584771692752838,
-0.4041649103164673,
-0.5424073934555054,
0.36127251386642456,
-0.48191988468170166,
-0.43196138739585876,
0.07868760824203491,
0.21857799589633942,
0.07978807389736176,
0.41522037982940674,
0.04379978030920029,
0.08299534022808075,
-0.2696126103401184,
0.16147157549858093,
-0.19297559559345245,
0.07663867622613907,
0.05157659947872162,
0.04904985800385475,
0.11126410961151123,
-0.08585803955793381,
-0.19441676139831543,
0.10116187483072281,
0.020005468279123306,
-0.22413209080696106,
0.03237289562821388,
-0.004168055951595306,
0.17052343487739563,
0.6693533658981323,
0.39006078243255615,
0.2593126595020294,
0.2666666507720947,
0.3642522990703583,
0.5709927082061768,
0.04902529716491699,
-0.13288699090480804,
0.11909524351358414,
-0.04693968594074249,
-0.0885547623038292,
0.09056707471609116,
0.04636134207248688,
-0.2562755346298218,
0.030277349054813385,
0.06508795917034149,
-0.2295381724834442,
-0.4630313813686371,
-0.2507558763027191,
-0.3004632592201233,
0.14451828598976135,
0.15810319781303406,
0.12501481175422668,
-0.2361825555562973,
-0.16316935420036316,
0.05864814296364784,
0.2605683207511902,
0.20150303840637207,
0.2332783043384552,
-0.38421231508255005,
-0.01040568295866251,
-0.2581269145011902,
0.3752669095993042,
-0.02343999780714512,
0.526519775390625,
-0.23639990389347076,
0.11084834486246109,
0.19920450448989868,
0.37974920868873596,
0.4119971990585327,
-0.43674135208129883,
0.3121190071105957,
-0.02903684973716736,
0.1729656606912613,
0.34948721528053284,
-0.2548169493675232,
0.4342042803764343,
0.44518205523490906,
0.09644241631031036,
0.1208939403295517,
0.15034142136573792,
-0.1660156399011612,
-0.40233296155929565,
-0.2793961763381958,
-0.09916454553604126,
-0.19781401753425598,
0.10596193373203278,
0.31938788294792175,
-0.046838074922561646,
-0.03315330296754837,
0.3301815390586853,
-0.34474965929985046,
-0.19546924531459808,
-0.010511845350265503,
-0.11847636103630066,
0.1609708070755005,
0.05160683020949364,
-0.05858996883034706,
0.29947349429130554,
0.060055218636989594,
0.05660734698176384,
0.48066163063049316,
0.039446692913770676,
0.025030851364135742,
0.3715116083621979,
-0.18798738718032837,
0.32470959424972534,
-0.13711902499198914,
-0.297052800655365,
0.33791282773017883,
0.04075407236814499,
-0.3488021492958069,
-0.15309032797813416,
0.10462572425603867,
-0.2581827640533447,
-0.2618080675601959,
-0.15632325410842896,
-0.10677894204854965,
0.04925280809402466,
-0.20825988054275513,
-0.4934581518173218,
0.2734438478946686,
0.4977818727493286,
-0.3501681089401245,
0.25358521938323975,
-0.31351643800735474,
-0.32733264565467834,
0.14990700781345367,
0.03243190050125122,
0.7552207112312317,
-0.24709664285182953,
0.3169734477996826,
-0.4600428640842438,
0.06716777384281158,
0.008200119249522686,
-0.3994584083557129,
0.12340675294399261,
-0.4250822961330414,
-0.3580508828163147,
-0.14491760730743408,
-0.14111265540122986,
0.01885233446955681,
0.469640851020813,
0.040821757167577744,
0.03989452123641968,
-0.15101078152656555,
0.021585458889603615,
-0.09142792969942093,
-0.2567695379257202,
-0.09558786451816559,
-0.30434074997901917,
0.3124513626098633,
0.15150387585163116,
-0.2343558818101883,
0.09908510744571686,
-0.02983376383781433,
-0.053601108491420746,
-0.22792178392410278,
0.22256849706172943,
-0.33973097801208496,
0.12918508052825928,
-0.5191614031791687,
0.13014885783195496,
-0.1092742532491684,
0.013814739882946014,
0.2091047763824463,
0.2999209463596344,
0.3164101541042328,
0.36177846789360046,
-0.06359805911779404,
0.13563142716884613,
0.34360459446907043,
0.21801330149173737,
-0.2584344744682312,
0.10389577597379684,
0.2954520881175995,
0.1615246832370758,
0.03941661864519119,
-0.28529947996139526,
-0.1933390200138092,
-0.27382659912109375,
-0.32357916235923767,
0.2683522701263428,
0.0029194653034210205,
-0.19891859591007233,
0.02427830919623375,
-0.1108788400888443,
0.06100248917937279,
0.015559911727905273,
0.11573433876037598,
0.423866868019104,
-0.020925337448716164,
0.5243258476257324,
-0.3454042971134186,
-0.3492104113101959,
0.06384281069040298,
0.63767009973526,
-0.07075278460979462,
-0.17711089551448822,
0.19358262419700623,
-0.25590622425079346,
-0.29884427785873413,
-0.19648241996765137,
0.1373322606086731,
0.06160351634025574,
-0.18593619763851166,
-0.04016968980431557,
0.033733535557985306,
-0.10015228390693665,
0.2225743681192398,
-0.41493573784828186,
0.001822642982006073,
0.08366590738296509,
0.09382106363773346,
-0.3515959680080414,
-0.42222508788108826,
-0.33980172872543335,
-0.43312838673591614,
0.14470838010311127,
0.2051095962524414,
-0.47372403740882874,
0.2301025688648224,
0.09232696890830994,
-0.2330983579158783,
-0.23269574344158173,
0.0179572943598032,
0.13070407509803772,
0.2646750807762146,
-0.038800179958343506,
-0.09755364805459976,
-0.2362687587738037,
-0.08609241992235184,
0.0690356194972992,
-0.04647257551550865,
-0.21748968958854675,
-0.02038615196943283,
0.13343825936317444,
0.25569087266921997,
-0.3523864448070526,
0.09479819238185883,
-0.36805081367492676,
-0.13117147982120514,
-0.42311015725135803,
0.04217825457453728,
0.3070082664489746,
0.14832432568073273,
0.3742547333240509,
0.18870912492275238,
-0.008383162319660187,
-0.12447422742843628,
0.14814291894435883,
-0.16771522164344788,
-0.20918036997318268,
-0.2064441591501236,
0.19404393434524536,
-0.2729392647743225,
-0.05008210614323616,
-0.0063157351687550545,
-0.06161849945783615,
0.06531866639852524,
0.05509226769208908,
0.14596880972385406,
-0.07096467912197113,
-0.006732869893312454,
0.13860417902469635,
0.23728302121162415,
-0.0020309612154960632,
-0.05026983097195625,
-0.010389734990894794,
0.23755872249603271,
0.12212790548801422,
0.12178570032119751,
-0.26903244853019714,
0.3627373278141022,
-0.13496430218219757,
0.057602521032094955,
0.28760477900505066,
0.23206296563148499,
-0.27944621443748474,
0.18337026238441467,
-0.03900987654924393,
0.10569731891155243,
-0.36096882820129395,
0.47300517559051514,
-0.059437718242406845,
0.12132170796394348,
0.10098811984062195,
0.4183329939842224,
0.21286962926387787,
-0.019624806940555573,
0.36564916372299194,
0.32692548632621765,
0.1012691929936409,
0.2761338949203491,
-0.3488721251487732,
0.14090608060359955,
-0.6575964689254761,
0.09694299101829529,
-0.03861415386199951,
0.016813866794109344,
0.32657888531684875,
0.07763738930225372,
0.009059019386768341,
-0.0321245901286602,
-0.2968241274356842,
-0.11237968504428864,
-0.08420287072658539,
-0.12608081102371216,
-0.114132359623909,
0.11896766722202301,
0.10171438008546829,
0.04813205450773239,
-0.25133660435676575,
-0.1284191757440567,
-0.1908629685640335,
0.23669596016407013,
0.18947124481201172,
0.022543661296367645,
0.23108446598052979,
0.027326814830303192,
0.07066802680492401,
-0.019134223461151123,
-0.22098109126091003,
-0.05422668159008026,
-0.5139697194099426,
-0.11813294887542725,
0.26715561747550964,
0.02191498503088951,
0.0516737625002861,
0.11157403141260147,
0.09486265480518341,
0.1615169793367386,
0.2507718503475189,
0.010994227603077888,
-0.3054790794849396,
0.4592885673046112,
-0.11786843836307526,
-0.35373201966285706,
0.09376592934131622,
0.021020641550421715,
-0.07841086387634277,
-0.10898132622241974,
-0.21710558235645294,
0.14532186090946198,
0.13752906024456024,
-0.004011325538158417,
-0.2561233341693878,
-0.5012040734291077,
0.07708434760570526,
-0.08053069561719894,
0.18891644477844238,
0.07087409496307373,
0.5467098355293274,
0.033171363174915314,
0.2029748558998108,
-0.5516823530197144,
0.05141820013523102,
0.4038566052913666,
0.32212257385253906,
0.42214852571487427,
-0.11191875487565994,
-0.037520550191402435,
0.0698341429233551,
-0.3635548949241638,
0.1241145133972168,
0.24848656356334686,
0.5065733194351196,
0.0020054448395967484,
-0.1873558759689331,
0.11791294068098068,
-0.21557481586933136,
0.6327934265136719,
-0.2546357810497284,
0.2672388553619385,
0.3509070575237274,
-0.22996751964092255,
-0.2000051736831665,
0.11872126907110214,
-0.07960763573646545,
0.10355274379253387,
-0.3836967349052429,
0.32404768466949463,
0.21627305448055267,
0.09568849951028824,
-0.2002369463443756,
-0.22552315890789032,
0.1838061809539795,
0.47271332144737244,
0.4594871401786804,
0.22867172956466675,
0.03395133465528488,
0.035121262073516846,
0.3650698661804199,
-0.4535732865333557,
0.05475836992263794,
-0.14160393178462982,
-0.09210079163312912,
-0.20047786831855774,
0.08679128438234329,
-0.5620112419128418,
-0.12653136253356934,
-0.37229764461517334,
0.017425432801246643,
-0.19917909801006317,
0.26977819204330444,
0.017330041155219078,
0.022968808189034462,
-0.2298794984817505,
0.09924241155385971,
0.30505043268203735,
0.20276951789855957,
-0.11153018474578857,
0.3502516448497772,
-0.48403215408325195,
-0.15117278695106506,
0.3006497621536255,
-0.26004770398139954,
-0.3285691738128662,
-0.013343637809157372,
0.3732890188694,
0.14726221561431885,
-0.21728424727916718,
0.010693222284317017,
0.06261896342039108,
0.3245002031326294,
-0.37473055720329285,
-0.08604402840137482,
-0.022511210292577744,
-0.364633709192276,
0.09160265326499939,
-0.17821305990219116,
0.5489762425422668,
-0.009466037154197693,
-0.20975886285305023,
0.07207997143268585,
-0.21575871109962463
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Hi @stas00,
For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 18 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hi @stas00,
For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`? | [
-0.2081565409898758,
0.11179526150226593,
-0.0612359344959259,
0.040736280381679535,
-0.006120026111602783,
0.12794175744056702,
0.38944271206855774,
0.0571596622467041,
-0.21278110146522522,
-0.04198826849460602,
-0.19218583405017853,
-0.12315954267978668,
0.10957248508930206,
-0.33432188630104065,
-0.06807123869657516,
0.14723460376262665,
0.18238894641399384,
-0.0031144171953201294,
-0.03652238845825195,
-0.1263747215270996,
-0.128444105386734,
-0.08202183991670609,
-0.03726071119308472,
-0.09275732934474945,
-0.44900819659233093,
-0.13689543306827545,
0.24837353825569153,
0.1558472216129303,
-0.007318120449781418,
-0.06543370336294174,
0.2889891564846039,
0.5932970643043518,
0.23361468315124512,
0.14486555755138397,
-0.0001169936076621525,
-0.11807921528816223,
0.03912721574306488,
-0.1211669072508812,
0.04570876806974411,
0.25009486079216003,
0.025078415870666504,
0.09063650667667389,
-0.13915547728538513,
-0.09568287432193756,
-0.19041484594345093,
0.3318997621536255,
0.11942508071660995,
-0.5785183906555176,
0.53229159116745,
0.1401568204164505,
0.1309339553117752,
-0.014124328270554543,
-0.3408103585243225,
0.10062654316425323,
0.2094193398952484,
0.17732864618301392,
-0.14003561437129974,
0.01863013580441475,
0.3194200098514557,
-0.21089789271354675,
-0.07113451510667801,
0.09768317639827728,
-0.21373078227043152,
0.08673468232154846,
0.1340913474559784,
-0.07249697297811508,
-0.13304775953292847,
-0.5008394718170166,
0.10768701881170273,
0.005132753401994705,
0.7109177708625793,
-0.14236614108085632,
-0.612354576587677,
-0.056064821779727936,
-0.033714018762111664,
0.38462206721305847,
0.33832743763923645,
0.28566935658454895,
-0.04502864181995392,
0.37556561827659607,
-0.536785364151001,
0.0684916153550148,
-0.22871284186840057,
-0.04216064512729645,
0.13869793713092804,
0.20501205325126648,
-0.009667939506471157,
0.08899622410535812,
-0.08278504014015198,
-0.09615953266620636,
0.24550163745880127,
-0.005351852625608444,
-0.3007267415523529,
0.34853509068489075,
-0.182078018784523,
-0.04263027757406235,
-0.2202080488204956,
0.3356885313987732,
0.16676610708236694,
0.34362417459487915,
0.18892721831798553,
0.17372068762779236,
0.1336088627576828,
0.22004196047782898,
0.007802562788128853,
0.23463058471679688,
0.3791346848011017,
0.5106112957000732,
0.5242034196853638,
-0.30716416239738464,
-0.20087622106075287,
-0.03526635468006134,
0.05759185180068016,
-0.2570675313472748,
0.030737977474927902,
0.3571113646030426,
-0.015262839384377003,
-0.18888793885707855,
0.2196754664182663,
-0.03493204712867737,
-0.06664013862609863,
-0.2599712312221527,
0.07115716487169266,
0.3590390086174011,
0.1452924609184265,
-0.039097897708415985,
0.01239093393087387,
0.14154185354709625,
-0.0037328097969293594,
-0.3380567133426666,
-0.013078449293971062,
-0.36805471777915955,
-0.3254837691783905,
0.46488556265830994,
0.4442015588283539,
0.08915279805660248,
0.039674870669841766,
0.1346457451581955,
0.20656929910182953,
-0.20643863081932068,
0.3750048875808716,
0.0013635559007525444,
0.40037399530410767,
0.4353659152984619,
0.24599510431289673,
0.33638128638267517,
0.01512821577489376,
-0.08096292614936829,
-0.14400723576545715,
0.31348180770874023,
-0.24287670850753784,
-0.19312523305416107,
0.47193580865859985,
0.036061350256204605,
-0.04369137063622475,
0.2789407968521118,
-0.266882985830307,
0.026330403983592987,
0.665493905544281,
-0.09026837348937988,
0.40759485960006714,
0.37252503633499146,
-0.11058647930622101,
-0.4050098657608032,
-0.06724592298269272,
0.34890836477279663,
-0.010278791189193726,
-0.12888027727603912,
-0.014126984402537346,
-0.006050650030374527,
-0.09852396696805954,
0.46306174993515015,
-0.09636383503675461,
0.1696590930223465,
-0.09435100108385086,
0.09779556095600128,
0.5256634950637817,
-0.17327409982681274,
-0.6490620374679565,
0.1500493586063385,
0.20325107872486115,
-0.10298148542642593,
0.2669629156589508,
0.013992301188409328,
-0.06500385701656342,
-0.1346268504858017,
-0.07697460055351257,
0.37909406423568726,
0.13223834335803986,
0.2626497447490692,
0.034448567777872086,
0.024826614186167717,
0.016653792932629585,
-0.030000805854797363,
0.12668204307556152,
0.36901044845581055,
0.24322551488876343,
-0.1930963099002838,
0.30394577980041504,
-0.22943240404129028,
0.2638656795024872,
0.48406076431274414,
0.17771956324577332,
-0.1601688414812088,
0.0862395316362381,
-0.018962591886520386,
-0.4171622097492218,
0.25498858094215393,
-0.3125733733177185,
-0.3193020224571228,
-0.007653482258319855,
-0.5207286477088928,
0.07624570280313492,
-0.2444818913936615,
-0.2063014656305313,
-0.21497701108455658,
0.022807493805885315,
-0.04470337927341461,
0.10496903955936432,
-0.4111615717411041,
0.11102831363677979,
0.34646469354629517,
0.3115406036376953,
0.04951789975166321,
-0.19319942593574524,
0.18174053728580475,
-0.18960514664649963,
-0.06894367188215256,
-0.33766964077949524,
-0.11105901747941971,
0.20502597093582153,
-0.01927383989095688,
-0.2887727916240692,
0.29576000571250916,
0.14303667843341827,
0.007831647992134094,
-0.14203807711601257,
0.32612383365631104,
0.07837319374084473,
0.04708229377865791,
0.05941028147935867,
-0.1094660758972168,
-0.12912879884243011,
-0.1017899215221405,
-0.3648788630962372,
0.37840741872787476,
-0.08484432101249695,
-0.077021025121212,
-0.1734047532081604,
0.2051728069782257,
0.15647614002227783,
0.0075011663138866425,
-0.13633181154727936,
-0.16565825045108795,
-0.06126060709357262,
0.16250014305114746,
0.40348124504089355,
0.21031959354877472,
0.24710696935653687,
-0.025975652039051056,
0.3793477416038513,
0.1497148871421814,
0.06588128954172134,
-0.06585083156824112,
-0.1965872049331665,
0.07033046334981918,
0.1888890266418457,
0.32149970531463623,
0.27103710174560547,
0.013843764550983906,
0.2941037714481354,
-0.21107618510723114,
0.41431233286857605,
-0.15996421873569489,
0.01002839207649231,
0.043276265263557434,
-0.08962742239236832,
-0.13113853335380554,
-0.170337975025177,
-0.03574499860405922,
-0.011599242687225342,
0.2849646508693695,
0.09546131640672684,
0.0764545276761055,
-0.30828914046287537,
-0.0691174790263176,
-0.006001967936754227,
-0.12060707062482834,
0.21134743094444275,
0.008836813271045685,
-0.5343108177185059,
0.013431848958134651,
-0.15192221105098724,
0.1806574910879135,
-0.045663826167583466,
0.2692696750164032,
-0.06770656257867813,
0.17025919258594513,
-0.01670876145362854,
0.0004535205662250519,
-0.32005852460861206,
0.1385492980480194,
0.11853408068418503,
0.003967072814702988,
0.2043604999780655,
-0.6563037633895874,
-0.027507727965712547,
0.04605095088481903,
0.3301205039024353,
-0.21555733680725098,
-0.05562204867601395,
-0.16080637276172638,
0.09058097004890442,
0.0782434418797493,
-0.49640360474586487,
0.00020668655633926392,
-0.10861633718013763,
-0.06543540209531784,
-0.07265453040599823,
-0.2998087406158447,
-0.15918302536010742,
0.02957381308078766,
-0.022270917892456055,
-0.09887156635522842,
-0.22201865911483765,
-0.04800792783498764,
-0.19374050199985504,
-0.12970943748950958,
0.4764779210090637,
0.11653415858745575,
0.1581726372241974,
-0.00767726544290781,
-0.24292846024036407,
-0.4943925440311432,
-0.19731251895427704,
0.21325194835662842,
-0.24778442084789276,
-0.5221062898635864,
0.4046732783317566,
-0.5165215134620667,
-0.40420204401016235,
-0.03789142519235611,
0.12063632905483246,
0.10276323556900024,
0.42092007398605347,
0.12237019836902618,
0.010921518318355083,
-0.25800707936286926,
0.0667787492275238,
-0.14466117322444916,
0.07875913381576538,
-0.030086971819400787,
0.019384481012821198,
0.19900597631931305,
0.028443820774555206,
-0.09901486337184906,
0.0424446240067482,
-0.018903091549873352,
-0.16155001521110535,
-0.0023801028728485107,
0.11946683377027512,
0.1578579843044281,
0.5748950839042664,
0.5152832269668579,
0.335496187210083,
0.16768953204154968,
0.4023926854133606,
0.4540114998817444,
0.1008543074131012,
-0.05855543911457062,
0.040979884564876556,
0.020249515771865845,
-0.2165100872516632,
0.12308371067047119,
0.09020702540874481,
-0.16556882858276367,
0.015207692980766296,
-0.06411713361740112,
-0.18576931953430176,
-0.5319418907165527,
-0.14086884260177612,
-0.27218136191368103,
0.16162651777267456,
0.15762417018413544,
0.12660545110702515,
-0.2879583239555359,
-0.10875048488378525,
0.11601594090461731,
0.35818248987197876,
0.10022531449794769,
0.3036808371543884,
-0.5236626863479614,
-0.011665635742247105,
-0.29404178261756897,
0.3712223768234253,
-0.05267474055290222,
0.47818320989608765,
-0.1404581516981125,
0.13592755794525146,
0.175801083445549,
0.29802411794662476,
0.4374082684516907,
-0.5280739068984985,
0.23661771416664124,
-0.08742028474807739,
0.017615851014852524,
0.2904187738895416,
-0.2159898579120636,
0.33458730578422546,
0.3485827147960663,
0.15344439446926117,
0.23273199796676636,
0.118423230946064,
-0.19433075189590454,
-0.4178479015827179,
-0.3418980836868286,
-0.19988541305065155,
-0.2810039222240448,
0.08846043050289154,
0.26753076910972595,
-0.15634511411190033,
-0.12384543567895889,
0.33864468336105347,
-0.42431971430778503,
-0.16917817294597626,
-0.030950471758842468,
-0.25322645902633667,
0.151633620262146,
0.12433889508247375,
0.03802476078271866,
0.3162672519683838,
-0.08698459714651108,
-0.04933372884988785,
0.4028516411781311,
-0.06701995432376862,
0.19036640226840973,
0.3316863775253296,
-0.2163175642490387,
0.2620123028755188,
-0.1415676474571228,
-0.3252260088920593,
0.3678043782711029,
-0.013758361339569092,
-0.2971777319908142,
-0.12931686639785767,
0.24090002477169037,
-0.1591082066297531,
-0.2108200043439865,
-0.1638900190591812,
-0.19809690117835999,
0.11509678512811661,
-0.2445400357246399,
-0.6280335187911987,
0.20983237028121948,
0.5318977236747742,
-0.30561646819114685,
0.09316159784793854,
-0.31352245807647705,
-0.3025103509426117,
0.44241172075271606,
0.06268932670354843,
0.8635255694389343,
-0.22366996109485626,
0.3869578242301941,
-0.540822446346283,
0.07003611326217651,
0.09280001372098923,
-0.6927379965782166,
0.16626518964767456,
-0.4834658205509186,
-0.3403412699699402,
-0.1500466912984848,
-0.12808826565742493,
0.05170827358961105,
0.5709952116012573,
-0.022259769961237907,
0.11497711390256882,
-0.03657488152384758,
-0.027195032685995102,
-0.10760608315467834,
-0.19043338298797607,
-0.1143004521727562,
-0.2419591248035431,
0.35029393434524536,
0.06272590905427933,
-0.12591543793678284,
0.15669472515583038,
-0.043890245258808136,
-0.0800255835056305,
-0.25016117095947266,
0.1729680299758911,
-0.2542053461074829,
0.06477242708206177,
-0.6468902230262756,
0.2180822193622589,
-0.08377185463905334,
-0.02506718784570694,
0.1623345911502838,
0.4216921031475067,
0.4039410948753357,
0.3650009334087372,
-0.03147067874670029,
0.10828633606433868,
0.3321976661682129,
0.14467337727546692,
-0.32376089692115784,
0.07231757789850235,
0.2941043972969055,
0.15437906980514526,
0.01521078497171402,
-0.2700217068195343,
-0.158487007021904,
-0.3013116121292114,
-0.3081584572792053,
0.08675131946802139,
0.10680477321147919,
-0.3021422028541565,
0.07851614058017731,
-0.14903531968593597,
-0.08905087411403656,
0.058759626001119614,
0.05041094496846199,
0.39105480909347534,
-0.09510990977287292,
0.5340352654457092,
-0.30918776988983154,
-0.3310892581939697,
0.03592469543218613,
0.6514391899108887,
-0.04537036269903183,
-0.19395942986011505,
0.1575787365436554,
-0.29661330580711365,
-0.2724003493785858,
-0.16780659556388855,
0.06826872378587723,
0.24388258159160614,
-0.39637044072151184,
-0.06856847554445267,
-0.00295361434109509,
-0.23362316191196442,
0.24513450264930725,
-0.3847486972808838,
0.1689642071723938,
0.1639362871646881,
0.024643901735544205,
-0.26542842388153076,
-0.5594637989997864,
-0.28349828720092773,
-0.21646259725093842,
0.2027435004711151,
0.2369091510772705,
-0.48877549171447754,
0.1068660318851471,
0.18870708346366882,
-0.18415400385856628,
-0.3159104287624359,
-0.06301569938659668,
0.10146196186542511,
0.0915856659412384,
-0.08826125413179398,
-0.08400864154100418,
-0.13789820671081543,
-0.11527581512928009,
0.049151331186294556,
-0.0711611658334732,
-0.14313459396362305,
-0.02302994579076767,
0.1677423119544983,
0.21873432397842407,
-0.35382741689682007,
0.03717247396707535,
-0.25982755422592163,
-0.08852732181549072,
-0.4373985230922699,
0.10551553964614868,
0.2622199058532715,
0.2569027543067932,
0.3842913508415222,
0.26791176199913025,
-0.06951019912958145,
-0.39644747972488403,
0.16652490198612213,
-0.12369881570339203,
-0.2651291489601135,
-0.12650786340236664,
0.22971051931381226,
-0.3186567425727844,
-0.06101861968636513,
0.07647368311882019,
-0.1375398337841034,
0.21350128948688507,
0.09467318654060364,
0.14673078060150146,
-0.05786927044391632,
-0.03367307782173157,
0.06513902544975281,
0.19825968146324158,
-0.025997810065746307,
-0.04494679346680641,
0.013299742713570595,
0.1737017035484314,
0.08412843942642212,
0.12912634015083313,
-0.25643977522850037,
0.25240597128868103,
-0.15157321095466614,
0.04281998798251152,
0.4236341714859009,
0.2772773504257202,
-0.20707622170448303,
0.3170793652534485,
-0.03814978152513504,
0.1826370507478714,
-0.2552197575569153,
0.3662479817867279,
-0.006494197994470596,
0.14934983849525452,
0.1899188905954361,
0.3061319589614868,
0.2371291220188141,
0.07023271918296814,
0.2771943211555481,
0.21583771705627441,
0.1419624537229538,
0.17075872421264648,
-0.33480125665664673,
0.17456451058387756,
-0.6335682272911072,
0.06741787493228912,
-0.07875627279281616,
0.045823074877262115,
0.28075551986694336,
0.17738886177539825,
-0.11003691703081131,
0.11525245755910873,
-0.1991172581911087,
-0.011748877353966236,
-0.195780947804451,
-0.09850888699293137,
-0.20100915431976318,
0.168010413646698,
0.12251945585012436,
-0.030128594487905502,
-0.2715129256248474,
-0.17863889038562775,
-0.12180562317371368,
0.15853667259216309,
0.26409369707107544,
0.14307145774364471,
0.3340463936328888,
0.05513346195220947,
0.1570991575717926,
-0.017793558537960052,
-0.24397888779640198,
-0.07396753877401352,
-0.32067763805389404,
-0.13432985544204712,
0.2049996256828308,
0.0000667572021484375,
0.0579923652112484,
0.05112142488360405,
0.11866828799247742,
0.3105686604976654,
0.34024935960769653,
0.017891140654683113,
-0.2919163107872009,
0.2963431477546692,
-0.08277915418148041,
-0.30416709184646606,
-0.018429916352033615,
0.0021150056272745132,
-0.05448589101433754,
-0.18349377810955048,
-0.24120508134365082,
0.042990587651729584,
0.09394869208335876,
0.09257786720991135,
-0.1781882494688034,
-0.5503018498420715,
0.09452836215496063,
-0.06584509462118149,
0.07024892419576645,
0.09409857541322708,
0.4745095372200012,
-0.05911126360297203,
0.18573489785194397,
-0.48498600721359253,
0.006069103255867958,
0.4230894148349762,
0.3215768337249756,
0.41205883026123047,
-0.09900277107954025,
-0.04431205987930298,
-0.029115021228790283,
-0.30547624826431274,
0.1631392538547516,
0.28378885984420776,
0.5087828040122986,
-0.02389064058661461,
-0.18261754512786865,
0.06060783937573433,
-0.16701442003250122,
0.5149814486503601,
-0.20890872180461884,
0.13681694865226746,
0.4491737484931946,
-0.21774254739284515,
-0.21925388276576996,
0.10720297694206238,
0.040697984397411346,
0.18624453246593475,
-0.39077216386795044,
0.2738783657550812,
0.2794937491416931,
0.045857302844524384,
-0.22873170673847198,
-0.1771533191204071,
0.2512519359588623,
0.5285199880599976,
0.40625059604644775,
0.24997441470623016,
0.007982037961483002,
-0.05233131721615791,
0.3134746253490448,
-0.3260476887226105,
0.13643869757652283,
-0.16926255822181702,
-0.13737639784812927,
-0.1882677674293518,
0.13720443844795227,
-0.5929563641548157,
-0.262482225894928,
-0.3854256272315979,
-0.09654402732849121,
-0.1314247101545334,
0.04822531342506409,
0.04453692585229874,
0.07566887140274048,
-0.20004799962043762,
0.11093468964099884,
0.4055040180683136,
0.31002935767173767,
-0.11487242579460144,
0.34894320368766785,
-0.404548704624176,
-0.06102655082941055,
0.32571661472320557,
-0.23062139749526978,
-0.21781308948993683,
-0.07273069024085999,
0.33829396963119507,
0.13069894909858704,
-0.21674638986587524,
-0.09889249503612518,
0.10647618025541306,
0.30803999304771423,
-0.36443084478378296,
-0.12644840776920319,
0.04999551922082901,
-0.14133308827877045,
0.023439038544893265,
-0.21859541535377502,
0.5168435573577881,
0.025842327624559402,
-0.2161870002746582,
0.012243829667568207,
-0.2569965720176697
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | The cluster I am working on does not allow me to change the permission of the files with os.chmod. I was wondering if there is any workaround for this? My cache is in a GCP bucket and I can't change file permissions once I mount it. | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 46 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
The cluster I am working on does not allow me to change the permission of the files with os.chmod. I was wondering if there is any workaround for this? My cache is in a GCP bucket and I can't change file permissions once I mount it. | [
-0.08494833111763,
0.20536449551582336,
-0.13074563443660736,
-0.029306724667549133,
-0.06477987766265869,
0.07882272452116013,
0.3084191679954529,
0.013334071263670921,
-0.2113335132598877,
0.035933345556259155,
-0.1470053493976593,
0.022648954764008522,
0.017908692359924316,
-0.2435590624809265,
-0.130732923746109,
0.17412696778774261,
0.19587653875350952,
0.0434357114136219,
0.08693324029445648,
-0.08854696899652481,
-0.0033115893602371216,
-0.05754401534795761,
-0.05967622250318527,
-0.14140136539936066,
-0.27945220470428467,
-0.2382325530052185,
0.14776454865932465,
0.2552277147769928,
0.08635200560092926,
-0.12785352766513824,
0.2213890552520752,
0.4804270267486572,
0.0282004214823246,
0.20321723818778992,
-0.0001145219212048687,
-0.16824069619178772,
0.07915119081735611,
-0.11518433690071106,
0.0431189201772213,
0.3081018328666687,
0.061414219439029694,
-0.1325816810131073,
-0.12885349988937378,
-0.16641303896903992,
-0.0837649554014206,
0.20614825189113617,
0.19853593409061432,
-0.4843408465385437,
0.4135216474533081,
0.12881463766098022,
0.16431362926959991,
-0.15957722067832947,
-0.3996416926383972,
0.10880961269140244,
0.19511577486991882,
0.15916550159454346,
-0.0706477090716362,
0.21368573606014252,
0.44614553451538086,
-0.16791173815727234,
-0.07262123376131058,
-0.03930545970797539,
-0.32938235998153687,
0.07360603660345078,
0.15943653881549835,
-0.11656800657510757,
-0.3304653465747833,
-0.4966385066509247,
0.2152077853679657,
0.10619624704122543,
0.6874062418937683,
-0.13818687200546265,
-0.5027029514312744,
-0.1393325924873352,
0.03832373768091202,
0.2530830204486847,
0.42849966883659363,
0.419205904006958,
0.0018131379038095474,
0.2965020537376404,
-0.4723241329193115,
-0.07866577804088593,
-0.1340342015028,
-0.05243215709924698,
0.1767384260892868,
-0.06322550773620605,
-0.0048643676564097404,
0.03393977880477905,
-0.026395950466394424,
-0.028079573065042496,
0.12405913323163986,
0.030149567872285843,
-0.362955778837204,
0.3153321146965027,
-0.14027801156044006,
0.0994451642036438,
-0.265121191740036,
0.5284824967384338,
0.00627705454826355,
0.2918153405189514,
0.20822349190711975,
0.2371039092540741,
-0.0388360470533371,
0.29029712080955505,
-0.10670416057109833,
0.1228843480348587,
0.3259413242340088,
0.4087182581424713,
0.5137349367141724,
-0.36399561166763306,
-0.08751469850540161,
0.03783467411994934,
0.023600537329912186,
-0.31952401995658875,
-0.013885200023651123,
0.2421584129333496,
-0.08583374321460724,
-0.16394084692001343,
0.22578898072242737,
0.07599208503961563,
-0.00840495154261589,
-0.1867063045501709,
0.03926607221364975,
0.28870174288749695,
0.12234179675579071,
-0.17363020777702332,
-0.010698599740862846,
0.17976969480514526,
0.04345198720693588,
-0.32401609420776367,
0.013587472960352898,
-0.3113565444946289,
-0.26569074392318726,
0.46015432476997375,
0.4172031581401825,
-0.1050729751586914,
-0.06764392554759979,
0.29121914505958557,
0.1947983056306839,
-0.23531484603881836,
0.3091268539428711,
-0.06070921942591667,
0.2920544147491455,
0.3253477215766907,
0.18684573471546173,
0.33097755908966064,
0.10179781913757324,
-0.02440403401851654,
-0.0934457927942276,
0.357842355966568,
-0.3977195918560028,
-0.04974750429391861,
0.32606828212738037,
-0.0008944850414991379,
-0.034490082412958145,
0.25616735219955444,
-0.42837533354759216,
0.06286102533340454,
0.4540441036224365,
-0.13375382125377655,
0.4283294379711151,
0.26108118891716003,
-0.07185095548629761,
-0.4513627290725708,
-0.20045146346092224,
0.2634899318218231,
-0.11972697079181671,
-0.016507036983966827,
0.03796254098415375,
0.0017699133604764938,
-0.021823473274707794,
0.32093459367752075,
0.1078176274895668,
0.1252811998128891,
-0.0713312104344368,
0.2309577614068985,
0.4722541272640228,
-0.1774267554283142,
-0.5909863114356995,
0.09908516705036163,
0.21150033175945282,
-0.19238007068634033,
0.22525018453598022,
-0.016922950744628906,
0.08434828370809555,
-0.0893651619553566,
-0.210585355758667,
0.25161653757095337,
0.25123652815818787,
0.2143014520406723,
0.1165902316570282,
0.037450484931468964,
-0.09595625102519989,
-0.08587808907032013,
0.08102725446224213,
0.3644484579563141,
0.4893118143081665,
-0.34906962513923645,
0.2804003357887268,
-0.32526645064353943,
0.3204006254673004,
0.5727000832557678,
0.13561682403087616,
-0.16823242604732513,
0.025491971522569656,
0.022094707936048508,
-0.3795967996120453,
0.2916465699672699,
-0.26322993636131287,
-0.3660082221031189,
0.07750271260738373,
-0.41622376441955566,
0.07734763622283936,
-0.3541443943977356,
-0.0566316656768322,
-0.034141357988119125,
0.04700687527656555,
-0.022220246493816376,
-0.03544782102108002,
-0.28453007340431213,
0.23687978088855743,
0.35754477977752686,
0.22148360311985016,
-0.03632634878158569,
0.024388637393712997,
0.17289294302463531,
-0.11158513277769089,
-0.18667012453079224,
-0.18272604048252106,
-0.1352429986000061,
0.21117573976516724,
-0.019475329667329788,
-0.2864002585411072,
0.32037481665611267,
0.06271394342184067,
0.2342614233493805,
-0.10768448561429977,
0.27044540643692017,
0.024405211210250854,
0.07021787762641907,
0.0878099724650383,
-0.24187012016773224,
-0.08751025050878525,
-0.16951146721839905,
-0.35844042897224426,
0.2034456878900528,
-0.08765168488025665,
-0.09714827686548233,
-0.1946050226688385,
0.2243724763393402,
0.08001714199781418,
-0.011497754603624344,
-0.07614222168922424,
-0.06735678762197495,
-0.013589542359113693,
0.08663621544837952,
0.3978503346443176,
0.19056940078735352,
0.14881645143032074,
0.0512467660009861,
0.2860334515571594,
0.12440033257007599,
0.147574782371521,
-0.07548604905605316,
-0.0903928205370903,
0.10547851771116257,
0.2795410454273224,
0.21873243153095245,
0.14710524678230286,
0.004030581563711166,
0.33859676122665405,
-0.14754649996757507,
0.37528401613235474,
-0.1268407702445984,
-0.0771183893084526,
-0.1540554016828537,
-0.08835694938898087,
-0.13599836826324463,
-0.11077157407999039,
-0.043459534645080566,
0.024265922605991364,
0.28276851773262024,
0.14557494223117828,
0.12045356631278992,
-0.26328080892562866,
-0.11415225267410278,
-0.2557099461555481,
-0.051582928746938705,
0.3661302626132965,
0.0868644192814827,
-0.5661829710006714,
0.043333448469638824,
-0.21039265394210815,
0.2691396474838257,
-0.013519387692213058,
0.19118237495422363,
-0.25234878063201904,
0.22882848978042603,
-0.03227308765053749,
-0.14806298911571503,
-0.29525065422058105,
0.21416346728801727,
0.015819890424609184,
0.01069483533501625,
0.30287447571754456,
-0.6045719385147095,
0.09099788963794708,
0.0019459109753370285,
0.28315603733062744,
-0.29221996665000916,
0.10519302636384964,
-0.17409618198871613,
0.022633101791143417,
-0.003048662096261978,
-0.5540348291397095,
0.02730131894350052,
-0.33416128158569336,
0.030437972396612167,
-0.12407971918582916,
-0.2947715222835541,
-0.25392335653305054,
-0.02370876632630825,
0.05425576493144035,
-0.06347007304430008,
-0.2648514211177826,
0.06433384120464325,
-0.21015028655529022,
-0.15142546594142914,
0.4689422845840454,
0.15424057841300964,
0.25469112396240234,
-0.004291637800633907,
-0.2813171446323395,
-0.4449976980686188,
-0.1670227199792862,
0.16571025550365448,
-0.31983980536460876,
-0.5663504004478455,
0.3057975172996521,
-0.4732353985309601,
-0.40301379561424255,
-0.023372627794742584,
0.15243025124073029,
0.12729011476039886,
0.46783941984176636,
-0.02695324644446373,
0.005148257128894329,
-0.25002968311309814,
0.12239696085453033,
-0.2467857003211975,
0.1384647637605667,
0.021827489137649536,
0.03030465915799141,
0.19625872373580933,
-0.05296895653009415,
-0.1252892166376114,
0.055458780378103256,
0.12448707222938538,
-0.2791917026042938,
0.16640573740005493,
-0.08478444814682007,
0.1404995620250702,
0.6709723472595215,
0.37737488746643066,
0.42443475127220154,
0.2722654938697815,
0.32472747564315796,
0.730204164981842,
0.12461782991886139,
-0.0628167912364006,
0.28898972272872925,
-0.01338978111743927,
-0.17574770748615265,
0.1596146821975708,
0.020347360521554947,
-0.2312098741531372,
0.09570705890655518,
-0.0037278104573488235,
-0.27713829278945923,
-0.3858826756477356,
-0.20186467468738556,
-0.3079366683959961,
0.1487351357936859,
0.07286664843559265,
0.054576702415943146,
-0.31428587436676025,
-0.24703902006149292,
0.10747793316841125,
0.38310861587524414,
0.2030700147151947,
0.3425332009792328,
-0.40701425075531006,
-0.03474153205752373,
-0.30119702219963074,
0.3176653981208801,
0.01179056242108345,
0.37075740098953247,
-0.2678489685058594,
0.21570518612861633,
0.1715250015258789,
0.339567631483078,
0.25644350051879883,
-0.38288968801498413,
0.26995009183883667,
0.008518518880009651,
0.20800849795341492,
0.29462194442749023,
-0.25724369287490845,
0.3124816417694092,
0.4222458004951477,
0.024908162653446198,
0.21697813272476196,
0.19609418511390686,
-0.10287538915872574,
-0.6051281690597534,
-0.2239549607038498,
-0.11190186440944672,
-0.20340482890605927,
0.17194318771362305,
0.17996996641159058,
-0.09229954332113266,
-0.05624435096979141,
0.319885790348053,
-0.307446151971817,
-0.22491000592708588,
0.045440737158060074,
-0.1287527084350586,
0.18121355772018433,
0.0938853770494461,
-0.10900075733661652,
0.337238609790802,
0.06749869883060455,
-0.1226554661989212,
0.2483617067337036,
0.08353716135025024,
0.09303437918424606,
0.3497704565525055,
-0.1497790664434433,
0.4233647286891937,
-0.11376259475946426,
-0.2979110777378082,
0.2981263995170593,
0.0161086767911911,
-0.2917386293411255,
-0.13824012875556946,
0.20754969120025635,
-0.21607814729213715,
-0.2680323123931885,
-0.04933543503284454,
-0.22400455176830292,
0.08202224224805832,
-0.3122125267982483,
-0.38802972435951233,
0.2686708867549896,
0.5534670352935791,
-0.39655524492263794,
0.261638879776001,
-0.1680886298418045,
-0.30082860589027405,
0.17901895940303802,
0.12040441483259201,
0.719036877155304,
-0.2961288094520569,
0.3211010694503784,
-0.4618520736694336,
0.11205253005027771,
0.039608340710401535,
-0.5703052878379822,
0.19952669739723206,
-0.44552910327911377,
-0.4774869382381439,
-0.11337988078594208,
-0.10657399892807007,
0.06555107235908508,
0.5330030918121338,
0.003750685602426529,
0.10778592526912689,
-0.05511119216680527,
0.038836777210235596,
-0.12134520709514618,
-0.32295894622802734,
-0.23504778742790222,
-0.2260265350341797,
0.41359442472457886,
0.11986468732357025,
-0.17444616556167603,
0.07465137541294098,
-0.014179814606904984,
0.04652947932481766,
-0.3617391288280487,
0.329903244972229,
-0.2357504516839981,
0.04018690437078476,
-0.575116753578186,
0.09912209957838058,
-0.07372792065143585,
-0.07401607930660248,
0.10481111705303192,
0.3392605185508728,
0.3460373878479004,
0.330697625875473,
0.007202913984656334,
0.0639575719833374,
0.3123321235179901,
0.14176703989505768,
-0.21107061207294464,
0.0975189283490181,
0.24758340418338776,
0.17636996507644653,
0.09839100390672684,
-0.231527179479599,
-0.22240187227725983,
-0.3736347556114197,
-0.301314115524292,
0.20090244710445404,
-0.14795194566249847,
-0.10785498470067978,
-0.042460519820451736,
-0.2042553722858429,
0.033441897481679916,
0.09047682583332062,
0.0495830699801445,
0.4010518789291382,
0.03011549636721611,
0.6422494649887085,
-0.36857151985168457,
-0.28548166155815125,
0.04085635021328926,
0.5404447913169861,
-0.05431029200553894,
-0.2956673204898834,
0.1550898551940918,
-0.35400649905204773,
-0.228694885969162,
-0.14137431979179382,
0.1486046016216278,
0.07930892705917358,
0.010700605809688568,
-0.0630771666765213,
-0.04326172545552254,
-0.056876301765441895,
0.2138553261756897,
-0.5345434546470642,
0.07983650267124176,
0.22657549381256104,
0.0433540977537632,
-0.34210121631622314,
-0.46491625905036926,
-0.24014471471309662,
-0.3481585383415222,
0.15573059022426605,
0.15119203925132751,
-0.5087836384773254,
0.09513705968856812,
0.041568655520677567,
-0.16420716047286987,
-0.1286141723394394,
0.05160108953714371,
0.07311064004898071,
0.3385055661201477,
0.01899857260286808,
-0.15886002779006958,
-0.16263213753700256,
-0.12074385583400726,
-0.08929875493049622,
0.05335143208503723,
-0.15408407151699066,
0.005077803507447243,
0.14947724342346191,
0.26049333810806274,
-0.25310298800468445,
0.08123576641082764,
-0.43584883213043213,
-0.10039864480495453,
-0.4506261944770813,
0.04164532199501991,
0.2845415771007538,
0.20207682251930237,
0.251110702753067,
0.06998376548290253,
0.06260918825864792,
-0.152830109000206,
0.23919260501861572,
-0.1487448513507843,
-0.25322556495666504,
-0.28897690773010254,
0.174971342086792,
-0.14203721284866333,
-0.0077817365527153015,
0.173960879445076,
-0.017034225165843964,
0.12529751658439636,
0.04234323278069496,
0.11931125819683075,
-0.03594893217086792,
0.054320018738508224,
0.14750154316425323,
0.27508100867271423,
-0.10931499302387238,
-0.08950445055961609,
0.043859973549842834,
0.39703917503356934,
0.07238677889108658,
0.17857445776462555,
-0.25594714283943176,
0.4171183407306671,
-0.06286405771970749,
0.038613032549619675,
0.3696221113204956,
0.2388712465763092,
-0.37358707189559937,
0.06705345213413239,
-0.04540069401264191,
0.1062406599521637,
-0.31699442863464355,
0.34141603112220764,
-0.013356465846300125,
0.16526728868484497,
0.13082198798656464,
0.3860754668712616,
0.2238767147064209,
0.004744045436382294,
0.3109886646270752,
0.21202167868614197,
0.12346863001585007,
0.3433331251144409,
-0.30536386370658875,
0.2351011335849762,
-0.751009464263916,
-0.0310385562479496,
-0.14302685856819153,
0.049611471593379974,
0.3254123330116272,
-0.019784532487392426,
-0.007883481681346893,
-0.08980917930603027,
-0.3517855405807495,
0.018792973831295967,
-0.12844423949718475,
-0.19198980927467346,
-0.12209168076515198,
0.1341879814863205,
0.10362101346254349,
0.10803931951522827,
-0.2749180197715759,
-0.07915781438350677,
-0.17825861275196075,
0.13640305399894714,
0.2280004918575287,
0.07636302709579468,
0.36424657702445984,
-0.06538566201925278,
0.1643000692129135,
0.07337521761655807,
-0.16496823728084564,
-0.1041378453373909,
-0.5728364586830139,
-0.10511612892150879,
0.2707063853740692,
-0.01918202079832554,
0.06618927419185638,
0.11516983807086945,
0.10685776174068451,
0.13422854244709015,
0.21902452409267426,
0.07347994297742844,
-0.2523520588874817,
0.2707422971725464,
-0.040926799178123474,
-0.40993645787239075,
-0.026487309485673904,
-0.014120347797870636,
-0.03404226526618004,
-0.05292340740561485,
-0.3012423515319824,
0.008419614285230637,
0.10287709534168243,
-0.10731429606676102,
-0.21305538713932037,
-0.49821826815605164,
0.061798181384801865,
-0.039029546082019806,
0.16347289085388184,
0.06297744065523148,
0.5249412655830383,
0.03628803789615631,
0.23795151710510254,
-0.3896828889846802,
0.02373776212334633,
0.39457499980926514,
0.19544608891010284,
0.4536014795303345,
-0.10138130933046341,
0.1233740746974945,
0.06125183403491974,
-0.28135013580322266,
0.1264113336801529,
0.2335793823003769,
0.39021939039230347,
-0.11251844465732574,
-0.20663084089756012,
0.1293860375881195,
-0.19493618607521057,
0.6329858899116516,
-0.1832146793603897,
0.2880234122276306,
0.34149205684661865,
-0.2375229150056839,
-0.22520755231380463,
0.1061292439699173,
-0.08448483794927597,
0.07515130937099457,
-0.34001508355140686,
0.3688051998615265,
0.2271721512079239,
0.022872276604175568,
-0.08294957876205444,
-0.2226986587047577,
0.15575551986694336,
0.4266740679740906,
0.480477899312973,
0.2540108859539032,
-0.05453367531299591,
0.044173285365104675,
0.3467962443828583,
-0.4091738164424896,
0.12431388348340988,
-0.1660011112689972,
-0.10264565795660019,
-0.2254980504512787,
0.07024771720170975,
-0.6522083878517151,
-0.17672847211360931,
-0.3317257761955261,
0.05853268504142761,
-0.12384907156229019,
0.3116302192211151,
0.08826202899217606,
-0.021553387865424156,
-0.20396828651428223,
0.09235478192567825,
0.40776199102401733,
0.21351605653762817,
-0.028388552367687225,
0.3990771770477295,
-0.4507501721382141,
-0.15134502947330475,
0.25947219133377075,
-0.3168371021747589,
-0.2091643512248993,
-0.017281007021665573,
0.3075478971004486,
0.15459905564785004,
-0.1715819239616394,
0.19395336508750916,
0.050282977521419525,
0.3308027386665344,
-0.375110924243927,
-0.03945930674672127,
-0.08833928406238556,
-0.4700396656990051,
0.06762738525867462,
-0.09564416855573654,
0.4193248748779297,
-0.014669559895992279,
-0.1957797408103943,
0.0007105879485607147,
-0.17390146851539612
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | I get a permission denied error on https://github.com/huggingface/datasets/blob/b8363e0539c6f0cb5de49af32962cf2eb4c47395/src/datasets/arrow_dataset.py#L2799. I suspect I don't have permissions to change group permissions. I am mounting a GCP bucket through [gcsfuse](https://github.com/GoogleCloudPlatform/gcsfuse). | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 26 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
I get a permission denied error on https://github.com/huggingface/datasets/blob/b8363e0539c6f0cb5de49af32962cf2eb4c47395/src/datasets/arrow_dataset.py#L2799. I suspect I don't have permissions to change group permissions. I am mounting a GCP bucket through [gcsfuse](https://github.com/GoogleCloudPlatform/gcsfuse). | [
-0.14622218906879425,
0.20528113842010498,
-0.09300395846366882,
0.05999787151813507,
-0.02632250264286995,
0.10093089193105698,
0.45357009768486023,
-0.12602421641349792,
-0.21142630279064178,
0.08157127350568771,
-0.008134271949529648,
-0.0675312802195549,
-0.07078714668750763,
-0.20634248852729797,
-0.05742126703262329,
0.12718088924884796,
0.09140978008508682,
-0.019009456038475037,
-0.004425257444381714,
-0.056395985186100006,
-0.040465570986270905,
0.053910642862319946,
-0.16670876741409302,
-0.05565154552459717,
-0.25247982144355774,
-0.25777187943458557,
0.22564807534217834,
0.25184276700019836,
0.02069837599992752,
-0.09904108196496964,
0.2656814157962799,
0.4967421591281891,
-0.036711785942316055,
0.24163931608200073,
-0.00011821523366961628,
-0.12411941587924957,
0.0028075315058231354,
-0.08642313629388809,
0.06669726967811584,
0.1822787970304489,
-0.11178447306156158,
-0.1355493664741516,
-0.05635445564985275,
-0.060102418065071106,
-0.17630654573440552,
0.12779060006141663,
0.13306643068790436,
-0.4537244737148285,
0.45955872535705566,
0.232148215174675,
0.1481187343597412,
-0.04501994699239731,
-0.33175066113471985,
0.12976735830307007,
0.18195894360542297,
-0.08833549916744232,
-0.1667512208223343,
0.3286619782447815,
0.36138415336608887,
-0.07786182314157486,
0.028729543089866638,
0.07541453838348389,
-0.29974591732025146,
0.03353886306285858,
0.1609269380569458,
-0.1677928864955902,
-0.3641585409641266,
-0.5191015005111694,
0.2189905047416687,
0.015591807663440704,
0.7891672253608704,
-0.20153582096099854,
-0.545204222202301,
-0.2036980390548706,
0.05469410866498947,
0.27066683769226074,
0.32502809166908264,
0.39190319180488586,
0.15744172036647797,
0.3586493730545044,
-0.5040283203125,
-0.1271674484014511,
-0.24930529296398163,
-0.03184638172388077,
0.20449650287628174,
-0.09083101153373718,
-0.0683220699429512,
0.16742835938930511,
-0.06817619502544403,
-0.012406401336193085,
0.12386523932218552,
0.05782277509570122,
-0.5043489933013916,
0.30446764826774597,
-0.20671559870243073,
0.05893370509147644,
-0.1589561402797699,
0.5276317000389099,
-0.0014170818030834198,
0.5432049632072449,
0.3175591230392456,
0.1741587221622467,
0.038804784417152405,
0.300728440284729,
-0.10166361927986145,
0.20212265849113464,
0.27482911944389343,
0.40973129868507385,
0.5158767104148865,
-0.32065868377685547,
-0.02228819765150547,
-0.06284497678279877,
0.09477082639932632,
-0.415411114692688,
-0.0850168913602829,
0.2862858772277832,
0.013437550514936447,
-0.12946006655693054,
0.06272131204605103,
0.11480394005775452,
-0.014851663261651993,
-0.0998183861374855,
0.18576084077358246,
0.28094175457954407,
0.12824887037277222,
-0.23999124765396118,
0.010036483407020569,
0.24757814407348633,
0.05386454612016678,
-0.2511397898197174,
-0.07074650377035141,
-0.20507864654064178,
-0.26993170380592346,
0.4460502564907074,
0.33939170837402344,
-0.20773203670978546,
0.055924296379089355,
0.2194540798664093,
0.11604653298854828,
-0.25253039598464966,
0.37452974915504456,
-0.030672112479805946,
0.3355918824672699,
0.39788147807121277,
0.19743697345256805,
0.28558385372161865,
0.17139147222042084,
0.016661159694194794,
-0.13120920956134796,
0.19180279970169067,
-0.4076480567455292,
-0.18641091883182526,
0.2823646664619446,
-0.023041412234306335,
0.08416831493377686,
0.3139299154281616,
-0.5275536179542542,
0.12176403403282166,
0.44615796208381653,
-0.23019976913928986,
0.46766820549964905,
0.17578232288360596,
-0.0248122476041317,
-0.45656147599220276,
-0.16297253966331482,
0.3034370541572571,
-0.2106921672821045,
-0.02545744925737381,
-0.0023383749648928642,
0.01787249743938446,
0.044404007494449615,
0.38849812746047974,
-0.01804298721253872,
0.09510940313339233,
-0.0906028002500534,
0.22178895771503448,
0.3109283149242401,
-0.16349203884601593,
-0.7365759611129761,
0.07135681062936783,
0.17237646877765656,
-0.22534441947937012,
0.1462753713130951,
-0.03174305334687233,
0.20185154676437378,
-0.17674575746059418,
-0.12932105362415314,
0.21721599996089935,
0.2534050941467285,
0.2035703957080841,
0.1374971568584442,
0.02105487696826458,
-0.06791892647743225,
-0.16258612275123596,
0.031070983037352562,
0.3264912962913513,
0.48057031631469727,
-0.5150451064109802,
0.1540764719247818,
-0.3151673972606659,
0.22701530158519745,
0.6452767848968506,
0.2015911489725113,
-0.3259018063545227,
-0.0714704841375351,
0.012154728174209595,
-0.5454557538032532,
0.3191504180431366,
-0.24799562990665436,
-0.33684757351875305,
-0.03371194005012512,
-0.3884524703025818,
0.04770496487617493,
-0.24793604016304016,
-0.18222488462924957,
-0.06930045783519745,
-0.012365629896521568,
-0.05394984781742096,
0.08955097198486328,
-0.2735849618911743,
0.2182045429944992,
0.418745756149292,
0.23238526284694672,
-0.011372633278369904,
-0.12335777282714844,
0.2011582851409912,
-0.08601685613393784,
-0.2079324722290039,
0.0005655325949192047,
-0.1075417771935463,
0.32552239298820496,
0.013547131791710854,
-0.20655527710914612,
0.2878842055797577,
-0.06370317935943604,
0.2437320351600647,
0.012271810322999954,
0.2889847159385681,
-0.016164341941475868,
0.0050315819680690765,
0.09006772190332413,
-0.29511839151382446,
-0.0826692134141922,
-0.13372161984443665,
-0.20289763808250427,
0.34274375438690186,
0.035548195242881775,
-0.10224048048257828,
-0.21722808480262756,
0.19996753334999084,
0.02360665239393711,
0.08436810970306396,
-0.2178308367729187,
-0.06917704641819,
-0.0462515614926815,
0.2680177390575409,
0.5171463489532471,
0.131755530834198,
0.034156136214733124,
0.03507807105779648,
0.41680052876472473,
0.17029888927936554,
0.06573231518268585,
-0.1093110516667366,
-0.1525880992412567,
0.021123308688402176,
0.3862594962120056,
0.19610802829265594,
0.17560262978076935,
0.01018499955534935,
0.26838797330856323,
-0.20796272158622742,
0.262723833322525,
-0.14657741785049438,
-0.017532803118228912,
-0.13104580342769623,
0.007562004029750824,
-0.16188925504684448,
-0.026638535782694817,
-0.07356546074151993,
-0.0686502754688263,
0.18822836875915527,
0.19591842591762543,
0.21225960552692413,
-0.34668102860450745,
0.00223567895591259,
-0.2462824285030365,
-0.01740788295865059,
0.42506784200668335,
-0.06864042580127716,
-0.5931146144866943,
-0.07851331681013107,
-0.20853650569915771,
0.3236025869846344,
0.009245842695236206,
0.15211249887943268,
-0.19721393287181854,
0.22678302228450775,
-0.021193422377109528,
-0.1856018751859665,
-0.42374396324157715,
0.19696937501430511,
-0.051369696855545044,
-0.04054340720176697,
0.22763162851333618,
-0.5680305361747742,
0.1801339089870453,
0.11127191036939621,
0.1595134735107422,
-0.36771124601364136,
0.0537344291806221,
-0.11607508361339569,
-0.1111331433057785,
0.1893431842327118,
-0.503321647644043,
0.18091405928134918,
-0.318229615688324,
0.041701361536979675,
-0.11851897835731506,
-0.17921407520771027,
-0.16295820474624634,
0.015284456312656403,
-0.055322516709566116,
-0.05277795344591141,
-0.2016456127166748,
-0.06521230190992355,
-0.22908350825309753,
-0.0881555825471878,
0.44142431020736694,
0.08607016503810883,
0.17297148704528809,
0.050574131309986115,
-0.1830347627401352,
-0.38447368144989014,
-0.14749544858932495,
0.028728147968649864,
-0.35307344794273376,
-0.628027081489563,
0.30239129066467285,
-0.45631036162376404,
-0.46084994077682495,
0.03582887724041939,
0.14676566421985626,
0.07373524457216263,
0.3983808755874634,
0.015284091234207153,
-0.09248042851686478,
-0.3043840825557709,
0.10209013521671295,
-0.13457904756069183,
0.11336225271224976,
0.17174974083900452,
0.05687929689884186,
0.20349358022212982,
-0.04861659184098244,
-0.23720966279506683,
0.07155664265155792,
0.24947574734687805,
-0.2456825077533722,
0.1635989248752594,
0.08042824268341064,
0.05791403725743294,
0.7602651715278625,
0.3812803626060486,
0.32981935143470764,
0.2455516904592514,
0.20638522505760193,
0.6550762057304382,
0.038253411650657654,
-0.05730035901069641,
0.29560041427612305,
0.017447829246520996,
-0.23523791134357452,
0.15770986676216125,
0.07444888353347778,
-0.11875372380018234,
0.09818394482135773,
0.08111779391765594,
-0.40366244316101074,
-0.37802451848983765,
-0.28607526421546936,
-0.2566424310207367,
0.1160302609205246,
0.1434442698955536,
0.10278516262769699,
-0.32102692127227783,
-0.20719793438911438,
-0.015006852336227894,
0.3339463472366333,
0.3047538995742798,
0.35893839597702026,
-0.2096068114042282,
-0.012417735531926155,
-0.501447856426239,
0.4241005778312683,
-0.014899196103215218,
0.43121349811553955,
-0.3226010501384735,
0.3723112642765045,
0.1662764549255371,
0.3245966136455536,
0.2176463007926941,
-0.5667888522148132,
0.18014341592788696,
-0.059984996914863586,
0.27313974499702454,
0.33535414934158325,
-0.28147271275520325,
0.25373604893684387,
0.4123600721359253,
0.08377464860677719,
0.1727784276008606,
0.08169040828943253,
-0.12241312116384506,
-0.4605843126773834,
-0.27056944370269775,
-0.04153333976864815,
0.010248233564198017,
-0.008392192423343658,
-0.0609855018556118,
-0.1860281527042389,
-0.028717823326587677,
0.3173021972179413,
-0.32412949204444885,
-0.18444395065307617,
-0.043460238724946976,
-0.0613243505358696,
0.09514619410037994,
0.10180800408124924,
-0.0680374950170517,
0.4095603823661804,
0.039529841393232346,
-0.07238952070474625,
0.3250836730003357,
-0.014000996947288513,
0.23771685361862183,
0.5308033227920532,
0.0718018114566803,
0.35520073771476746,
0.01101328618824482,
-0.17373427748680115,
0.3784109055995941,
0.11627069115638733,
-0.36007535457611084,
-0.00865224003791809,
0.12385905534029007,
-0.10729607939720154,
-0.19322992861270905,
-0.03956074267625809,
-0.12343920767307281,
0.16038280725479126,
-0.4345729947090149,
-0.4477881193161011,
0.3544227182865143,
0.5006799697875977,
-0.37588876485824585,
0.34263795614242554,
-0.0621657520532608,
-0.32518914341926575,
0.17069078981876373,
0.03883637487888336,
0.8416375517845154,
-0.3064223527908325,
0.2750939130783081,
-0.2877952754497528,
0.10588178038597107,
0.10607384145259857,
-0.37785106897354126,
0.2322222888469696,
-0.5369052290916443,
-0.39012059569358826,
-0.17200806736946106,
-0.17152124643325806,
0.21820706129074097,
0.5262715220451355,
0.020593848079442978,
0.26569437980651855,
-0.05817133188247681,
0.03361991047859192,
-0.14009195566177368,
-0.2847076952457428,
-0.2530808746814728,
-0.24689960479736328,
0.29115134477615356,
0.08536575734615326,
-0.1940091997385025,
0.1476658284664154,
-0.09130124002695084,
-0.0127183236181736,
-0.33033570647239685,
0.15194034576416016,
-0.36439311504364014,
0.04328612983226776,
-0.6460053324699402,
0.031911127269268036,
-0.05806313827633858,
-0.2705724239349365,
0.2132568359375,
0.19164057075977325,
0.20136728882789612,
0.3548300564289093,
-0.09976837038993835,
0.1405455470085144,
0.15133294463157654,
0.10135909169912338,
-0.2524779140949249,
0.11423895508050919,
0.2848294973373413,
0.22187912464141846,
0.10026786476373672,
-0.2387855052947998,
-0.22698886692523956,
-0.42266327142715454,
-0.28777754306793213,
0.20365126430988312,
-0.19705654680728912,
-0.10570304095745087,
-0.15353184938430786,
-0.15139974653720856,
-0.03341950848698616,
-0.000027511268854141235,
0.0013614669442176819,
0.34900766611099243,
0.0787554383277893,
0.5791301727294922,
-0.2944123148918152,
-0.2525789737701416,
-0.023055043071508408,
0.445992112159729,
-0.08248786628246307,
-0.23384253680706024,
0.35541245341300964,
-0.22349874675273895,
-0.19883428514003754,
-0.13613763451576233,
0.0007721707224845886,
0.2166210412979126,
-0.053466133773326874,
-0.002575267106294632,
-0.003792342497035861,
0.005751103162765503,
0.22784468531608582,
-0.40480470657348633,
0.03264359012246132,
0.1944812834262848,
0.06770506501197815,
-0.4338958263397217,
-0.3883760869503021,
-0.2812466025352478,
-0.3301275074481964,
0.24953019618988037,
0.26986822485923767,
-0.3766699433326721,
0.0594664067029953,
0.01725870743393898,
-0.1628265231847763,
-0.18256206810474396,
-0.0695892795920372,
0.0012530609965324402,
0.3067161440849304,
0.04514014348387718,
0.04386278986930847,
-0.15361297130584717,
-0.0943245142698288,
0.014508182182908058,
0.008237487636506557,
-0.11145900189876556,
0.039814483374357224,
0.1508268117904663,
0.27945375442504883,
-0.21119795739650726,
0.021483294665813446,
-0.4457157850265503,
-0.12895174324512482,
-0.3774110674858093,
0.21032287180423737,
0.3721933662891388,
0.1909380853176117,
0.18664750456809998,
0.02037036046385765,
0.1027725338935852,
-0.1588260978460312,
0.12388969957828522,
-0.2074512243270874,
-0.1791316717863083,
-0.17057481408119202,
0.2729160189628601,
-0.16123288869857788,
-0.0019474625587463379,
-0.014886378310620785,
0.03879827260971069,
0.25517046451568604,
0.07297874242067337,
0.14442074298858643,
-0.1498912125825882,
0.021760929375886917,
-0.07435964047908783,
0.3338131904602051,
-0.13637012243270874,
-0.05770115554332733,
-0.0631035789847374,
0.29414352774620056,
0.01982647366821766,
0.11033499240875244,
-0.15353797376155853,
0.22445306181907654,
-0.08575507998466492,
0.05608595535159111,
0.3354789912700653,
0.2702920138835907,
-0.21476241946220398,
-0.07556717097759247,
-0.06951957195997238,
0.20381005108356476,
-0.22514523565769196,
0.3113594949245453,
-0.2189250886440277,
0.09633439779281616,
0.07929732650518417,
0.5346599817276001,
0.19001640379428864,
0.056860391050577164,
0.25481513142585754,
0.08772309869527817,
0.04548631235957146,
0.3208569288253784,
-0.2513997554779053,
0.0742587298154831,
-0.8142784237861633,
-0.011158421635627747,
-0.09220553934574127,
0.1174883097410202,
0.39895856380462646,
0.11225912719964981,
-0.014644913375377655,
-0.10661879926919937,
-0.25768139958381653,
-0.0381820909678936,
0.03306087851524353,
-0.15221509337425232,
-0.13337421417236328,
0.09906275570392609,
0.06739630550146103,
0.22491207718849182,
-0.20417514443397522,
-0.11911627650260925,
-0.2705118656158447,
0.19909122586250305,
0.15125320851802826,
0.03961043059825897,
0.24804146587848663,
-0.016067638993263245,
0.21123546361923218,
0.0038827359676361084,
-0.13188882172107697,
0.07852545380592346,
-0.5811499953269958,
-0.09030638635158539,
0.2247437983751297,
-0.020381761714816093,
0.18653155863285065,
-0.05022016912698746,
0.1699930727481842,
0.21603675186634064,
0.1750466525554657,
0.006847349926829338,
-0.15222610533237457,
0.2385951727628708,
-0.11504609882831573,
-0.2627532482147217,
0.056703854352235794,
-0.004200110211968422,
0.0007615908980369568,
-0.10172951221466064,
-0.21330957114696503,
0.102371945977211,
0.06323404610157013,
-0.04461149126291275,
-0.3354347050189972,
-0.5002899765968323,
0.047919727861881256,
-0.025399252772331238,
0.12340251356363297,
0.002506091259419918,
0.5675205588340759,
0.07383421063423157,
0.22785168886184692,
-0.3660045266151428,
0.0046847667545080185,
0.3291783630847931,
0.293756365776062,
0.5415589213371277,
-0.053755708038806915,
0.0017740214243531227,
0.04617258906364441,
-0.3750979006290436,
0.07645946741104126,
0.19974175095558167,
0.3240852355957031,
-0.04592202976346016,
-0.15097515285015106,
0.1572188138961792,
-0.2010682076215744,
0.5930631756782532,
-0.05838356167078018,
0.28964924812316895,
0.3260424733161926,
-0.18043610453605652,
-0.21902982890605927,
-0.020055629312992096,
-0.049107737839221954,
0.06992112100124359,
-0.3299018144607544,
0.20764435827732086,
0.20795807242393494,
-0.008869361132383347,
-0.2100115269422531,
-0.027976464480161667,
0.10722319781780243,
0.24680884182453156,
0.5499601364135742,
0.3812519311904907,
0.16474290192127228,
0.03759068250656128,
0.3780443072319031,
-0.38002991676330566,
0.06836286187171936,
-0.184000164270401,
-0.09129715710878372,
-0.2553681433200836,
0.22242459654808044,
-0.4048895537853241,
-0.17103277146816254,
-0.37027114629745483,
0.0978073701262474,
-0.07014518976211548,
0.3758658170700073,
0.0555337518453598,
0.07132967561483383,
-0.16346216201782227,
0.0781693235039711,
0.2621563971042633,
0.13090261816978455,
0.03588379919528961,
0.4020345211029053,
-0.4230639338493347,
-0.2439863681793213,
0.3644752502441406,
-0.40976613759994507,
-0.25492003560066223,
0.10151570290327072,
0.45485299825668335,
0.13351693749427795,
-0.2589382827281952,
0.018904685974121094,
0.14671573042869568,
0.26635265350341797,
-0.37819743156433105,
-0.080631785094738,
-0.05977560952305794,
-0.3534527122974396,
0.1016494631767273,
-0.13265961408615112,
0.4930981397628784,
-0.00875987857580185,
-0.21188876032829285,
0.044787418097257614,
-0.1036016047000885
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | What @lhoestq is asking for is the full multi-line traceback - it's almost never enough to show the last line - a full stack is needed to get the context. Thank you!
I wonder if a workaround is to try/except and then issue a warning if this fails? | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 48 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
What @lhoestq is asking for is the full multi-line traceback - it's almost never enough to show the last line - a full stack is needed to get the context. Thank you!
I wonder if a workaround is to try/except and then issue a warning if this fails? | [
-0.16483736038208008,
0.21514609456062317,
-0.05785181745886803,
0.07299792021512985,
-0.0806531235575676,
0.06957370787858963,
0.4272485673427582,
0.16266964375972748,
-0.27879881858825684,
0.027456119656562805,
0.023191852495074272,
-0.12523700296878815,
-0.01072449330240488,
-0.24131019413471222,
-0.05926127731800079,
0.18689677119255066,
0.07374133169651031,
0.14246436953544617,
0.04096832498908043,
-0.10892708599567413,
-0.04036414623260498,
0.013514472171664238,
-0.11067113280296326,
-0.09588837623596191,
-0.32978305220603943,
-0.17553451657295227,
0.17061389982700348,
0.2918410301208496,
0.08661290258169174,
-0.2100822478532791,
0.24032200872898102,
0.3294510841369629,
-0.09155995398759842,
0.15365669131278992,
-0.00011932825873373076,
-0.17404399812221527,
0.0069555602967739105,
-0.15693898499011993,
0.026564713567495346,
0.21829432249069214,
-0.19533473253250122,
-0.045892514288425446,
-0.1359371691942215,
-0.23018038272857666,
-0.0021225064992904663,
0.4982074499130249,
0.14017422497272491,
-0.6290701031684875,
0.5692052245140076,
0.12068731337785721,
0.14441490173339844,
-0.19955921173095703,
-0.3145500421524048,
0.009289531968533993,
0.3068609833717346,
0.12506788969039917,
-0.09880097210407257,
0.005674630403518677,
0.2288423627614975,
-0.16811737418174744,
-0.06200177222490311,
0.17162001132965088,
-0.3814871907234192,
0.0355696938931942,
-0.018410801887512207,
-0.24579475820064545,
-0.04311510920524597,
-0.4023400545120239,
0.21157151460647583,
0.2622798979282379,
0.7422043681144714,
-0.00708475336432457,
-0.40132996439933777,
-0.27259698510169983,
-0.07724124938249588,
0.10662086308002472,
0.29344213008880615,
0.23929163813591003,
-0.24843478202819824,
0.30389514565467834,
-0.5228919982910156,
-0.005451874807476997,
-0.15815025568008423,
-0.06843714416027069,
-0.02955242618918419,
-0.08024159073829651,
-0.043545886874198914,
0.052988532930612564,
-0.06940710544586182,
0.08087576180696487,
0.15490227937698364,
0.1401025503873825,
-0.3042285740375519,
0.27002963423728943,
-0.17296622693538666,
0.08029650151729584,
0.03393711894750595,
0.40205100178718567,
0.31670334935188293,
0.27878671884536743,
0.3866807818412781,
0.3630222976207733,
0.0010503027588129044,
0.22725245356559753,
-0.01200542226433754,
0.15907031297683716,
0.4219043254852295,
0.1840502768754959,
0.6002586483955383,
-0.4585273861885071,
0.045806411653757095,
0.10043416172266006,
0.015232966281473637,
-0.3474997580051422,
-0.028531838208436966,
0.44607651233673096,
-0.0045070890337228775,
-0.26217809319496155,
0.002450728788971901,
0.07256442308425903,
-0.3355506956577301,
-0.32709407806396484,
0.0284354817122221,
0.31437838077545166,
0.16395610570907593,
-0.10316059738397598,
-0.05083724111318588,
0.070424884557724,
0.06338106095790863,
-0.4500916600227356,
0.011595651507377625,
-0.3925762176513672,
-0.48652148246765137,
0.3129815459251404,
0.5075700879096985,
-0.1509178876876831,
0.08582655340433121,
0.15951986610889435,
0.034536249935626984,
-0.19148977100849152,
0.22214215993881226,
-0.11495934426784515,
0.5741727948188782,
0.28855425119400024,
0.25839152932167053,
0.2975652515888214,
0.18207642436027527,
0.013618357479572296,
-0.126459002494812,
0.3268735408782959,
-0.30449193716049194,
-0.18298430740833282,
0.2831626832485199,
-0.03694139048457146,
-0.14498727023601532,
0.3711947798728943,
-0.36982861161231995,
0.16207191348075867,
0.4885113835334778,
-0.1432896852493286,
0.3870792090892792,
0.2873486280441284,
-0.27237096428871155,
-0.4135209321975708,
0.024690741673111916,
0.38457944989204407,
-0.27458319067955017,
-0.03889527916908264,
0.012972110882401466,
0.0034001190215349197,
-0.006006844341754913,
0.26182061433792114,
-0.030669517815113068,
0.33093956112861633,
-0.2557671368122101,
0.24277321994304657,
0.5609253644943237,
-0.02529296837747097,
-0.32960933446884155,
0.08639995753765106,
0.0865795761346817,
-0.030756648629903793,
0.16538988053798676,
-0.16627678275108337,
0.0004537031054496765,
-0.06795678287744522,
0.03260680288076401,
0.2912854552268982,
0.13271021842956543,
0.3174304664134979,
0.07301898300647736,
0.11002892255783081,
0.03709762915968895,
-0.20983006060123444,
0.06148302182555199,
0.2197115123271942,
0.3759407699108124,
-0.349570095539093,
0.34983840584754944,
-0.3504454493522644,
0.29505500197410583,
0.4836575984954834,
0.06536712497472763,
-0.13765694200992584,
-0.05131266266107559,
-0.10930227488279343,
-0.3874346911907196,
0.255812406539917,
0.007396731525659561,
-0.4679027795791626,
0.07732019573450089,
-0.40966010093688965,
0.08456942439079285,
-0.2939499020576477,
-0.14676021039485931,
-0.030149448662996292,
0.04611491411924362,
0.037958286702632904,
-0.08850151300430298,
-0.32256773114204407,
0.17387168109416962,
0.43369588255882263,
0.34701913595199585,
0.013371692970395088,
-0.06158600375056267,
0.06940099596977234,
-0.06850090622901917,
-0.05969810485839844,
-0.2197554111480713,
0.0012521743774414062,
0.3693956136703491,
0.035895511507987976,
-0.1310919225215912,
0.26314181089401245,
0.06431445479393005,
0.0031675398349761963,
-0.2209477424621582,
0.23573003709316254,
-0.18752409517765045,
0.13940028846263885,
0.038161687552928925,
-0.18895003199577332,
-0.1665138304233551,
-0.24360445141792297,
-0.4538175165653229,
0.38130927085876465,
0.049659762531518936,
0.013873964548110962,
-0.18051081895828247,
0.18436484038829803,
0.12059812247753143,
-0.09329257905483246,
-0.16395393013954163,
-0.16075624525547028,
0.1371365338563919,
0.2693333625793457,
0.2803005874156952,
0.14223715662956238,
-0.04724431037902832,
0.18992862105369568,
0.40343981981277466,
0.10605166852474213,
0.22591400146484375,
-0.002666078507900238,
-0.1419181525707245,
-0.03465140610933304,
0.3750046491622925,
0.36467745900154114,
0.10220357030630112,
0.12126980721950531,
0.48350030183792114,
-0.1567882001399994,
0.2085580676794052,
-0.09334486722946167,
0.031182199716567993,
-0.07120205461978912,
0.05391284450888634,
-0.09870364516973495,
-0.07399166375398636,
0.012127128429710865,
-0.08379606902599335,
0.17071852087974548,
0.0318903774023056,
-0.01654522307217121,
-0.521645724773407,
-0.16271673142910004,
-0.3064511716365814,
-0.3100147247314453,
0.27441829442977905,
-0.05905908718705177,
-0.41621771454811096,
-0.11525831371545792,
-0.17698290944099426,
0.19023023545742035,
0.006040733307600021,
0.12721674144268036,
-0.3159584403038025,
0.36734217405319214,
-0.045684635639190674,
-0.10108264535665512,
-0.18155723810195923,
0.1825329065322876,
0.07429036498069763,
0.011923063546419144,
0.18001310527324677,
-0.5510984659194946,
0.18630637228488922,
0.004660379141569138,
0.19740134477615356,
-0.18692830204963684,
-0.01080162450671196,
-0.050541914999485016,
0.0033806487917900085,
-0.1340177059173584,
-0.3068770468235016,
0.1230640709400177,
-0.15708646178245544,
0.0006654988974332809,
-0.2503371238708496,
-0.09562372416257858,
-0.276576966047287,
-0.08269692212343216,
0.18066434562206268,
0.01749984174966812,
-0.32646694779396057,
0.056391045451164246,
0.022868622094392776,
-0.15316632390022278,
0.5256491899490356,
-0.0237642303109169,
0.24674557149410248,
0.020279988646507263,
-0.3220205307006836,
-0.27157947421073914,
-0.31983110308647156,
0.31012997031211853,
-0.36622580885887146,
-0.47940343618392944,
0.2618296444416046,
-0.44149425625801086,
-0.24547643959522247,
0.10525359213352203,
0.11574529111385345,
0.12001049518585205,
0.4949474334716797,
-0.035423893481492996,
0.09523312747478485,
-0.2162313163280487,
0.18794390559196472,
-0.2632403075695038,
0.1382749229669571,
0.20341263711452484,
0.1566593199968338,
0.11672429740428925,
-0.0038349777460098267,
-0.24092037975788116,
-0.03888341039419174,
-0.25634804368019104,
-0.1279890239238739,
0.07116344571113586,
0.17911750078201294,
0.3157840967178345,
0.7414659857749939,
0.3853093981742859,
0.43906158208847046,
0.18112553656101227,
0.27464085817337036,
0.6530054211616516,
0.0197591632604599,
-0.047838710248470306,
0.15928992629051208,
-0.06546168029308319,
-0.17308594286441803,
-0.020709902048110962,
0.07919514924287796,
-0.31332316994667053,
0.02422938495874405,
0.16092956066131592,
-0.30064281821250916,
-0.5101049542427063,
-0.1927441954612732,
-0.34268420934677124,
0.07197548449039459,
0.05992009863257408,
0.17556816339492798,
-0.24442127346992493,
-0.15858176350593567,
-0.04173564538359642,
0.25705811381340027,
0.21332523226737976,
0.1964539736509323,
-0.5431163907051086,
0.0789509192109108,
-0.43494081497192383,
0.38304072618484497,
-0.041141316294670105,
0.3090975284576416,
-0.302337110042572,
0.10945498198270798,
0.07725830376148224,
0.2362733632326126,
0.4740408658981323,
-0.35042640566825867,
0.3543066382408142,
0.012360651046037674,
0.2112765908241272,
0.1829245537519455,
-0.2527288496494293,
0.3960697054862976,
0.6069955229759216,
0.23139405250549316,
0.009226895868778229,
0.09916882961988449,
-0.10649388283491135,
-0.3376558721065521,
-0.21023231744766235,
0.008159376680850983,
-0.13426321744918823,
0.2548917233943939,
0.2926775813102722,
-0.050498321652412415,
-0.027958199381828308,
0.5053700804710388,
-0.38533082604408264,
-0.10308436304330826,
-0.11538766324520111,
0.01005156897008419,
0.18419483304023743,
0.09770559519529343,
-0.1436745971441269,
0.2714313268661499,
0.07705225050449371,
-0.07931236922740936,
0.3051684498786926,
0.11844237148761749,
0.1519562304019928,
0.41303539276123047,
-0.22215840220451355,
0.43546897172927856,
-0.06080411374568939,
-0.3254508376121521,
0.5182763934135437,
0.25132089853286743,
-0.375263512134552,
-0.10899116843938828,
-0.09622359275817871,
-0.16912834346294403,
-0.24477308988571167,
-0.09777460992336273,
-0.14982970058918,
0.08642520755529404,
-0.2659361958503723,
-0.3756541907787323,
0.2693895101547241,
0.5046080946922302,
-0.33097195625305176,
0.34369218349456787,
-0.3217255473136902,
-0.40277665853500366,
0.13885432481765747,
-0.03629399091005325,
0.8668196797370911,
-0.044916294515132904,
0.39520499110221863,
-0.4278417229652405,
-0.0029707103967666626,
0.06328972429037094,
-0.3808850646018982,
0.06041526794433594,
-0.3578503727912903,
-0.18582755327224731,
-0.1811475157737732,
-0.13421760499477386,
-0.029823236167430878,
0.5065850615501404,
0.05467120185494423,
0.14824113249778748,
-0.09070783853530884,
-0.15089356899261475,
-0.054630450904369354,
-0.3397294580936432,
-0.025481412187218666,
-0.29188233613967896,
0.27529701590538025,
0.04638298600912094,
-0.06549236178398132,
-0.00838509202003479,
-0.0445084273815155,
0.08879699558019638,
-0.17703866958618164,
0.13669152557849884,
-0.6068373322486877,
0.027989361435174942,
-0.7120097279548645,
-0.05572988837957382,
-0.14536063373088837,
-0.17729860544204712,
0.2703586220741272,
0.30531394481658936,
0.2966190576553345,
0.327140212059021,
-0.051920048892498016,
0.03441893309354782,
0.2883855700492859,
0.19644905626773834,
-0.1686490774154663,
0.0110825439915061,
0.21753986179828644,
0.05485493689775467,
0.12811291217803955,
-0.1473366618156433,
-0.3155573308467865,
-0.3258046507835388,
-0.2921370267868042,
0.24662667512893677,
-0.06904417276382446,
-0.1801212877035141,
0.00473901629447937,
-0.03728119283914566,
0.22855526208877563,
0.04479191079735756,
0.02244667336344719,
0.47179704904556274,
0.03214658424258232,
0.5016630291938782,
-0.3596802055835724,
-0.2329445779323578,
0.18276938796043396,
0.6427825689315796,
-0.15790247917175293,
-0.273065447807312,
0.19917023181915283,
-0.20825472474098206,
-0.2465304285287857,
-0.1431509554386139,
0.2083636224269867,
0.2207769751548767,
-0.05994698777794838,
-0.08972819894552231,
-0.040311213582754135,
-0.12274705618619919,
0.23158760368824005,
-0.3402940630912781,
0.09127452224493027,
0.23280540108680725,
0.11176978051662445,
-0.38928255438804626,
-0.3037358224391937,
-0.26449936628341675,
-0.3797585964202881,
0.25632789731025696,
0.2031267285346985,
-0.496598482131958,
0.2073437124490738,
0.07053159177303314,
-0.17323347926139832,
-0.1618218719959259,
-0.0013028401881456375,
0.17638830840587616,
0.14493557810783386,
0.06811681389808655,
-0.07632452994585037,
-0.24757178127765656,
-0.1710689514875412,
-0.01740991696715355,
-0.013988928869366646,
-0.11703601479530334,
0.04795962944626808,
0.20768314599990845,
0.16347277164459229,
-0.2726319432258606,
0.2940608859062195,
-0.32295799255371094,
-0.03235206380486488,
-0.31297042965888977,
0.0757225900888443,
0.40442386269569397,
0.22435076534748077,
0.3156236708164215,
0.11857428401708603,
0.07399517297744751,
-0.2670421600341797,
0.04401650279760361,
-0.11503252387046814,
-0.22051440179347992,
-0.2823210656642914,
0.3673962354660034,
-0.485192209482193,
-0.05481858551502228,
0.13830873370170593,
0.022276483476161957,
0.06355144828557968,
0.06168586015701294,
0.06104985997080803,
-0.021273531019687653,
-0.19703130424022675,
0.029690155759453773,
0.2735407054424286,
-0.13252229988574982,
-0.22481116652488708,
0.04867561161518097,
0.32498544454574585,
0.06077081710100174,
0.0408344492316246,
-0.2184995710849762,
0.3111581802368164,
-0.12756699323654175,
0.1059609055519104,
0.34114548563957214,
0.14663642644882202,
-0.37776297330856323,
0.33229976892471313,
-0.08843696117401123,
0.12357189506292343,
-0.38834768533706665,
0.3493552803993225,
-0.1719193011522293,
-0.10751321911811829,
0.06945103406906128,
0.4218011498451233,
0.2268989533185959,
0.18005995452404022,
0.3489355444908142,
0.35213303565979004,
0.05972500145435333,
0.40661245584487915,
-0.3283953368663788,
0.08707158267498016,
-0.7488121390342712,
0.14877662062644958,
0.03816831111907959,
0.06484656035900116,
0.32184579968452454,
0.06620793044567108,
0.08812686055898666,
0.014281176030635834,
-0.19784678518772125,
0.010325262323021889,
-0.1748753935098648,
-0.1675407588481903,
-0.10817539691925049,
-0.09869012236595154,
0.08597774058580399,
0.026817813515663147,
-0.2663651704788208,
-0.28233107924461365,
-0.21194957196712494,
0.1969102919101715,
0.13218438625335693,
0.04759027808904648,
0.2752213776111603,
0.032916996628046036,
-0.0709829106926918,
0.07554282248020172,
-0.22846530377864838,
-0.015293283388018608,
-0.4428580403327942,
-0.1389779895544052,
0.22340445220470428,
0.09450575709342957,
0.20059619843959808,
0.010345961898565292,
0.32227823138237,
0.056711673736572266,
0.18312156200408936,
0.03965426981449127,
-0.31732377409935,
0.24010714888572693,
-0.008811935782432556,
-0.469881534576416,
0.16358651220798492,
-0.043133847415447235,
-0.02143144980072975,
0.21837526559829712,
-0.12957130372524261,
0.05863623321056366,
0.053387511521577835,
-0.14077496528625488,
-0.14081984758377075,
-0.49134930968284607,
0.1291368305683136,
-0.11259957402944565,
0.19798710942268372,
-0.004124816507101059,
0.6003201603889465,
0.009793531149625778,
0.1895822286605835,
-0.3961738348007202,
0.03247684985399246,
0.5129693150520325,
0.0832834541797638,
0.5720720291137695,
-0.04389721155166626,
-0.06268816441297531,
0.008638419210910797,
-0.32253575325012207,
0.03087201714515686,
0.04427948221564293,
0.45487552881240845,
0.08253592997789383,
-0.10015001893043518,
0.22129297256469727,
0.00618496909737587,
0.7104747891426086,
-0.19156457483768463,
0.28635886311531067,
0.2979260981082916,
-0.2976847290992737,
-0.19196392595767975,
0.2998511791229248,
-0.09979214519262314,
0.14805781841278076,
-0.37187460064888,
0.393706351518631,
0.16212411224842072,
0.024553216993808746,
-0.11916384100914001,
-0.20473939180374146,
0.10709108412265778,
0.49619415402412415,
0.2914561629295349,
0.20809921622276306,
-0.035867542028427124,
0.01595442369580269,
0.30885156989097595,
-0.34109067916870117,
0.19158446788787842,
-0.1853780746459961,
-0.11024973541498184,
-0.12459558248519897,
0.013594817370176315,
-0.6094386577606201,
-0.1992797553539276,
-0.27135124802589417,
0.10884115844964981,
-0.13472314178943634,
0.3061477839946747,
0.053214140236377716,
0.10527686029672623,
-0.1706807017326355,
0.122161366045475,
0.28299590945243835,
0.15989777445793152,
-0.22717007994651794,
0.407053679227829,
-0.49476540088653564,
-0.19810310006141663,
0.297203004360199,
-0.2227628529071808,
-0.1752869337797165,
-0.09273873269557953,
0.44695723056793213,
0.12548494338989258,
-0.05054470896720886,
-0.08752406388521194,
-0.03260459005832672,
0.3876759707927704,
-0.27019163966178894,
-0.25984132289886475,
0.04250698536634445,
-0.4702822268009186,
0.05539005622267723,
-0.10269524902105331,
0.44376644492149353,
0.14874030649662018,
-0.30175575613975525,
-0.07757902145385742,
-0.3191155195236206
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Hello, I'm working on a project with a very similar setup to the one mentioned by @siddk, namely we have a shared cache directory in the team that we wish to use to avoid redundant dataset downloads. However, we're hitting `PermissionError` when one member of the team tries to reload a dataset that was downloaded by another team member (stack trace below).
Concretely, we first create a shared directory and give everyone read, write, execute permissions as follows (I know this isn't best practice 🤫):
```shell
mkdir shared-folder
chmod -R 777 shared-folder
```
We then set the following in our `.bashrc` profiles:
```
# Hugging Face caches
export HUGGINGFACE_HUB_CACHE=/path/to/shared-folder
export HF_DATASETS_CACHE=/path/to/shared-folder
# For shared access to the shared-folder directory
umask 000
```
Now, running e.g. `load_dataset("emotion")` the first time works (as expected), but when another team member tries to load from cache we get something like:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1759, in load_dataset
builder_instance = load_dataset_builder(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1496, in load_dataset_builder
dataset_module = dataset_module_factory(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1218, in dataset_module_factory
raise e1 from None
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1193, in dataset_module_factory
).get_module()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 903, in get_module
local_path = self.download_loading_script()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 871, in download_loading_script
return cached_path(file_path, download_config=download_config)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 210, in cached_path
output_path = ExtractManager(cache_dir=download_config.cache_dir).extract(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 42, in extract
extractor_format = self.extractor.infer_extractor_format(input_path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 287, in infer_extractor_format
if extractor.is_extractable(path, magic_number=magic_number):
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 84, in is_extractable
return tarfile.is_tarfile(path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 2517, in is_tarfile
t = open(name)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1632, in open
return func(name, "r", fileobj, **kwargs)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1698, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "~/miniconda3/envs/llama-nol/lib/python3.10/gzip.py", line 174, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
PermissionError: [Errno 13] Permission denied: '/path/to/shared-folder/downloads/4e7db366b1ea045d0faa083a2e47ac87326ad8e653f894763b0982c2a1e94078.cc96367835404d4195bf75b2602e6dbbfd2da9288170fc0b2298fc0e376ff52a.py'
```
If I understand this comment from @bhavitvyamalik:
> Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
the goal was to infer the `umask` of the user profile, but perhaps I misunderstood and the true solution is to chmod the `cache_files` as @lhoestq suggests above - is that correct?
cc @natolambert @nazneenrajani @edbeeching | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 385 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hello, I'm working on a project with a very similar setup to the one mentioned by @siddk, namely we have a shared cache directory in the team that we wish to use to avoid redundant dataset downloads. However, we're hitting `PermissionError` when one member of the team tries to reload a dataset that was downloaded by another team member (stack trace below).
Concretely, we first create a shared directory and give everyone read, write, execute permissions as follows (I know this isn't best practice 🤫):
```shell
mkdir shared-folder
chmod -R 777 shared-folder
```
We then set the following in our `.bashrc` profiles:
```
# Hugging Face caches
export HUGGINGFACE_HUB_CACHE=/path/to/shared-folder
export HF_DATASETS_CACHE=/path/to/shared-folder
# For shared access to the shared-folder directory
umask 000
```
Now, running e.g. `load_dataset("emotion")` the first time works (as expected), but when another team member tries to load from cache we get something like:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1759, in load_dataset
builder_instance = load_dataset_builder(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1496, in load_dataset_builder
dataset_module = dataset_module_factory(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1218, in dataset_module_factory
raise e1 from None
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1193, in dataset_module_factory
).get_module()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 903, in get_module
local_path = self.download_loading_script()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 871, in download_loading_script
return cached_path(file_path, download_config=download_config)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 210, in cached_path
output_path = ExtractManager(cache_dir=download_config.cache_dir).extract(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 42, in extract
extractor_format = self.extractor.infer_extractor_format(input_path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 287, in infer_extractor_format
if extractor.is_extractable(path, magic_number=magic_number):
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 84, in is_extractable
return tarfile.is_tarfile(path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 2517, in is_tarfile
t = open(name)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1632, in open
return func(name, "r", fileobj, **kwargs)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1698, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "~/miniconda3/envs/llama-nol/lib/python3.10/gzip.py", line 174, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
PermissionError: [Errno 13] Permission denied: '/path/to/shared-folder/downloads/4e7db366b1ea045d0faa083a2e47ac87326ad8e653f894763b0982c2a1e94078.cc96367835404d4195bf75b2602e6dbbfd2da9288170fc0b2298fc0e376ff52a.py'
```
If I understand this comment from @bhavitvyamalik:
> Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
the goal was to infer the `umask` of the user profile, but perhaps I misunderstood and the true solution is to chmod the `cache_files` as @lhoestq suggests above - is that correct?
cc @natolambert @nazneenrajani @edbeeching | [
-0.1243554949760437,
0.2709953784942627,
-0.07661028206348419,
0.1836886703968048,
-0.03524111211299896,
0.06472944468259811,
0.42424431443214417,
0.06204181909561157,
-0.1808689534664154,
0.04566588252782822,
-0.10419813543558121,
-0.0966409221291542,
-0.09747690707445145,
-0.3446648120880127,
-0.2048204392194748,
0.21186037361621857,
0.033999003469944,
0.06887099146842957,
0.011385113000869751,
-0.07697712630033493,
-0.013826677575707436,
-0.024168575182557106,
0.0013118311762809753,
-0.03798394650220871,
-0.1867016851902008,
-0.1496208757162094,
0.2477632761001587,
0.36376163363456726,
0.07789517194032669,
-0.2211102545261383,
0.4441687762737274,
0.4923802316188812,
0.12302762269973755,
0.3485478162765503,
-0.00011424154217820615,
-0.13967782258987427,
0.043478500097990036,
-0.11840324103832245,
-0.13985005021095276,
-0.03161582350730896,
-0.03902482986450195,
-0.16343657672405243,
0.022573594003915787,
-0.09038309752941132,
0.05957599729299545,
0.23051349818706512,
0.006595764309167862,
-0.674280047416687,
0.44385749101638794,
0.0715394914150238,
0.16613058745861053,
-0.11817904561758041,
-0.3892139792442322,
0.05558443441987038,
0.22737616300582886,
0.029527217149734497,
-0.160409614443779,
0.1862923800945282,
0.2601473331451416,
-0.12010081112384796,
-0.029990240931510925,
0.10033164918422699,
-0.34139713644981384,
0.18070203065872192,
0.16163811087608337,
-0.24878160655498505,
-0.28493618965148926,
-0.41025111079216003,
0.06936924159526825,
0.03621137887239456,
0.6649311184883118,
-0.1836804747581482,
-0.5616418719291687,
-0.3914382755756378,
0.04311047121882439,
0.15031029284000397,
0.3664645552635193,
0.2456616461277008,
-0.1648106426000595,
0.22399017214775085,
-0.5291077494621277,
0.02094297483563423,
-0.16047623753547668,
0.010046780109405518,
0.20987284183502197,
-0.0800180584192276,
-0.08855529129505157,
0.13345248997211456,
-0.04822379723191261,
-0.10126718878746033,
0.12195777893066406,
0.05894654616713524,
-0.20621919631958008,
0.27873125672340393,
-0.24108989536762238,
0.1535426825284958,
-0.09107974916696548,
0.25391554832458496,
0.14912649989128113,
0.3725099563598633,
0.2250632494688034,
0.1694910228252411,
0.005163985304534435,
0.2725193500518799,
0.10346578061580658,
0.2374286651611328,
0.30091747641563416,
0.36005088686943054,
0.5715786218643188,
-0.18820589780807495,
-0.21322503685951233,
0.07673203945159912,
-0.023037265986204147,
-0.21336159110069275,
0.11966148018836975,
0.310189813375473,
0.01920727640390396,
-0.07902110368013382,
0.038404472172260284,
0.18352249264717102,
-0.11897832155227661,
-0.1674904227256775,
0.058721091598272324,
0.3366289734840393,
0.04857140779495239,
0.003406340256333351,
0.13009288907051086,
0.08479776978492737,
-0.007716907188296318,
-0.23946842551231384,
0.0017400062642991543,
-0.3864386975765228,
-0.3724623918533325,
0.4284755289554596,
0.4587953984737396,
-0.23772138357162476,
0.057929180562496185,
0.17849159240722656,
0.2588852643966675,
-0.22193637490272522,
0.2393728792667389,
-0.0424787737429142,
0.22465315461158752,
0.2964537739753723,
0.29802319407463074,
0.41925665736198425,
0.2740298807621002,
-0.12427380681037903,
-0.10986172407865524,
0.20786604285240173,
-0.26538991928100586,
-0.13050587475299835,
0.32984498143196106,
0.020138556137681007,
-0.16068445146083832,
0.3640117347240448,
-0.3909315764904022,
-0.04843525215983391,
0.5374516248703003,
-0.15990044176578522,
0.28027641773223877,
0.16440682113170624,
-0.16227008402347565,
-0.47718194127082825,
-0.11470798403024673,
0.5115107297897339,
-0.13876986503601074,
-0.10189655423164368,
-0.12199489027261734,
0.04430340230464935,
-0.08691488951444626,
0.44707632064819336,
-0.11015861481428146,
0.2321489155292511,
-0.1866147369146347,
0.09088768064975739,
0.45062947273254395,
-0.24704912304878235,
-0.6586796045303345,
0.1600884050130844,
0.12170960009098053,
0.1052517518401146,
0.273440957069397,
0.07344319671392441,
0.06925399601459503,
-0.16945458948612213,
-0.11849910020828247,
0.3657402992248535,
0.09094119817018509,
0.22629567980766296,
0.11670927703380585,
-0.015221239998936653,
0.10646268725395203,
-0.09325456619262695,
0.029142947867512703,
0.2463940978050232,
0.42756110429763794,
-0.18096037209033966,
0.24457985162734985,
-0.32022151350975037,
0.1921442300081253,
0.4389125108718872,
0.13476993143558502,
0.04437727481126785,
0.0006385473534464836,
-0.05600652098655701,
-0.5909548401832581,
0.3500699996948242,
-0.07689035683870316,
-0.31129181385040283,
-0.05433201789855957,
-0.3555312752723694,
0.019152451306581497,
-0.28635069727897644,
-0.36314499378204346,
-0.15521293878555298,
0.07467008382081985,
0.1602165848016739,
-0.011362496763467789,
-0.3156130611896515,
0.17224805057048798,
0.5898884534835815,
0.22458650171756744,
0.01862027309834957,
-0.15329550206661224,
0.16989418864250183,
-0.1757129430770874,
-0.11758869886398315,
-0.22703635692596436,
0.05749997869133949,
0.27817317843437195,
-0.0023176816757768393,
-0.20917025208473206,
0.3209059238433838,
0.0805707797408104,
0.1768283247947693,
-0.1771593987941742,
0.06992282718420029,
-0.02958316169679165,
0.25010383129119873,
0.1109069213271141,
-0.20445799827575684,
-0.027260523289442062,
-0.14552173018455505,
-0.2821681499481201,
0.27688390016555786,
-0.14508500695228577,
-0.04017827659845352,
-0.09790515899658203,
0.10499966889619827,
0.14923056960105896,
0.021234508603811264,
-0.06805042922496796,
-0.041446223855018616,
0.12374283373355865,
0.1764174848794937,
0.33898529410362244,
0.18410265445709229,
0.05610005557537079,
-0.026333965361118317,
0.2187703400850296,
0.2338377833366394,
0.19287174940109253,
-0.1184564009308815,
-0.039972610771656036,
0.11120934039354324,
0.15736299753189087,
0.5357818603515625,
0.3191886246204376,
0.0314529724419117,
0.23094116151332855,
-0.1538514345884323,
0.40914419293403625,
-0.12129338830709457,
-0.10215616971254349,
-0.13565753400325775,
0.07105297595262527,
0.033112913370132446,
-0.08728886395692825,
0.007129275240004063,
-0.033993400633335114,
0.11135153472423553,
0.10371638834476471,
0.15322910249233246,
-0.3502567708492279,
-0.022412147372961044,
-0.17544662952423096,
-0.03737201169133186,
0.21458593010902405,
-0.15599781274795532,
-0.5184921026229858,
-0.20868492126464844,
-0.27447640895843506,
0.3610341250896454,
0.060043815523386,
0.17759224772453308,
-0.2599911093711853,
0.026512235403060913,
-0.049814388155937195,
-0.22238127887248993,
-0.21824871003627777,
0.1315494030714035,
-0.007138941437005997,
-0.02411363273859024,
0.3109923005104065,
-0.6572149991989136,
0.14663393795490265,
-0.06989574432373047,
0.2783834934234619,
-0.33739832043647766,
0.04311355948448181,
-0.15813502669334412,
-0.13939668238162994,
0.09210649877786636,
-0.34794971346855164,
0.11544458568096161,
-0.14229387044906616,
-0.17256644368171692,
0.034876927733421326,
-0.24764084815979004,
-0.1972612887620926,
0.10850133001804352,
0.10803558677434921,
-0.03334750607609749,
-0.14682632684707642,
-0.21070855855941772,
-0.19497019052505493,
-0.18366460502147675,
0.4834277629852295,
0.16722415387630463,
0.18445700407028198,
0.21879088878631592,
-0.18958933651447296,
-0.31398820877075195,
-0.15976323187351227,
0.28834080696105957,
-0.324320524930954,
-0.5170649886131287,
0.19769716262817383,
-0.42379534244537354,
-0.340988427400589,
0.006377708166837692,
0.21475011110305786,
0.14789655804634094,
0.41095679998397827,
-0.12636098265647888,
0.025489773601293564,
-0.18728333711624146,
0.25712713599205017,
-0.17027707397937775,
0.1922815889120102,
-0.029657676815986633,
0.15207284688949585,
0.1805688738822937,
-0.04518967866897583,
-0.12073053419589996,
-0.00937577337026596,
-0.1159958466887474,
-0.2203950583934784,
0.10451411455869675,
0.0729508176445961,
0.24371051788330078,
0.7599015235900879,
0.47793981432914734,
0.31621262431144714,
0.25096234679222107,
0.32029321789741516,
0.7149078249931335,
0.15461677312850952,
-0.290713906288147,
0.133357435464859,
-0.1304512917995453,
-0.22376739978790283,
0.08561684191226959,
0.0007751286029815674,
-0.11519654840230942,
0.00037061795592308044,
-0.0142174381762743,
-0.33660581707954407,
-0.5045107007026672,
-0.271737664937973,
-0.3198186457157135,
0.0873447135090828,
0.051227156072854996,
-0.02820192649960518,
-0.2948961853981018,
-0.14909705519676208,
-0.07206235826015472,
0.4238814115524292,
0.14106804132461548,
0.2406097650527954,
-0.36198896169662476,
-0.08552867919206619,
-0.19804123044013977,
0.3424634039402008,
0.14074115455150604,
0.5759422183036804,
-0.1813463717699051,
0.22999891638755798,
0.038636256009340286,
0.34022244811058044,
0.31980466842651367,
-0.4117116630077362,
0.27053773403167725,
-0.06841593235731125,
0.1360662877559662,
0.17471159994602203,
-0.17375902831554413,
0.41770312190055847,
0.3549800217151642,
0.03131668269634247,
0.06179821491241455,
0.13553056120872498,
-0.0716809555888176,
-0.45453327894210815,
-0.09270264208316803,
-0.1266981065273285,
-0.16625471413135529,
0.06482091546058655,
0.027656130492687225,
-0.25628408789634705,
-0.18480315804481506,
0.13024471700191498,
-0.404493123292923,
-0.050503529608249664,
0.09157916903495789,
-0.11884935200214386,
0.12926268577575684,
0.13527601957321167,
-0.011713365092873573,
0.2383042275905609,
-0.016995340585708618,
0.012957483530044556,
0.44711199402809143,
-0.11903910338878632,
0.3030546009540558,
0.5151854753494263,
-0.2983311116695404,
0.31082746386528015,
-0.18503782153129578,
-0.13625384867191315,
0.2175203561782837,
0.07944124937057495,
-0.334911048412323,
-0.12063788622617722,
0.0446646548807621,
-0.16934077441692352,
-0.20178458094596863,
-0.21070343255996704,
-0.028706757351756096,
0.07235317677259445,
-0.15201498568058014,
-0.6603525876998901,
0.1355593353509903,
0.4691135883331299,
-0.26833394169807434,
0.19630897045135498,
-0.295748233795166,
-0.29302582144737244,
0.10578957200050354,
-0.06690960377454758,
0.7096006870269775,
-0.20583508908748627,
0.4117785692214966,
-0.3039639890193939,
0.11158281564712524,
0.16743789613246918,
-0.42976343631744385,
0.10308345407247543,
-0.4717434048652649,
-0.22730623185634613,
-0.10718309134244919,
-0.1695723682641983,
0.0903635323047638,
0.22421781718730927,
-0.002127092331647873,
0.25386545062065125,
-0.15846550464630127,
-0.12476080656051636,
-0.1271795928478241,
-0.11992549151182175,
-0.3147348463535309,
-0.30143505334854126,
0.1753840446472168,
0.11715766787528992,
-0.20416133105754852,
0.10109207034111023,
0.02260814979672432,
0.03801434487104416,
-0.31032276153564453,
0.1331356018781662,
-0.4155014753341675,
0.09807094186544418,
-0.6063598394393921,
0.06816814839839935,
-0.1321280598640442,
-0.04356882721185684,
0.23657673597335815,
0.40187448263168335,
0.2542279064655304,
0.24019330739974976,
-0.036808669567108154,
-0.03943507745862007,
0.13486140966415405,
0.20251737534999847,
-0.242027148604393,
0.030865143984556198,
0.43001696467399597,
0.23215806484222412,
0.05410560220479965,
-0.14390408992767334,
-0.1713472306728363,
-0.26368945837020874,
-0.28032606840133667,
0.3118003010749817,
0.07909279316663742,
-0.3237467408180237,
0.05157725512981415,
-0.13198897242546082,
-0.04600930213928223,
-0.0007108524441719055,
0.026239678263664246,
0.3781365156173706,
-0.05693664029240608,
0.4875619113445282,
-0.2924746870994568,
-0.3433622717857361,
0.09762030839920044,
0.5430062413215637,
0.0924387201666832,
-0.2549673318862915,
0.31803151965141296,
-0.21448469161987305,
-0.2484574317932129,
-0.1114855408668518,
0.24095356464385986,
0.10705303400754929,
-0.18655192852020264,
-0.08200766891241074,
-0.06030459329485893,
-0.0462946891784668,
0.26608002185821533,
-0.42579662799835205,
0.17859116196632385,
0.13308939337730408,
0.07778072357177734,
-0.41630250215530396,
-0.3470028042793274,
-0.27648574113845825,
-0.3854650557041168,
0.17131276428699493,
0.27675920724868774,
-0.47844210267066956,
0.08792784065008163,
0.04438021034002304,
-0.19565501809120178,
-0.08175397664308548,
-0.13907061517238617,
0.0712195485830307,
0.32890063524246216,
-0.007787339389324188,
0.030851716175675392,
-0.2595660388469696,
-0.06922120600938797,
-0.00038572028279304504,
-0.10537164658308029,
-0.12619850039482117,
-0.006791587918996811,
0.14726153016090393,
0.2706930935382843,
-0.26890456676483154,
0.0386805534362793,
-0.4772239327430725,
-0.01825316622853279,
-0.4027114808559418,
0.11886900663375854,
0.3718876540660858,
0.1589203178882599,
0.27355626225471497,
0.11392589658498764,
0.09620968252420425,
-0.20240838825702667,
0.20236974954605103,
-0.2595335841178894,
-0.1368837207555771,
-0.20375360548496246,
0.2494632452726364,
-0.26888343691825867,
-0.037167180329561234,
-0.037732549011707306,
-0.013116873800754547,
0.188738614320755,
0.10845944285392761,
0.1946449875831604,
-0.25504612922668457,
0.06642772257328033,
0.014588076621294022,
0.44736745953559875,
-0.02075003832578659,
-0.10262449085712433,
-0.02159976027905941,
0.2704971730709076,
0.0396663174033165,
0.12392611801624298,
-0.2334962785243988,
0.2600383162498474,
-0.135954350233078,
0.09773588180541992,
0.5454851388931274,
0.1705794334411621,
-0.3814014196395874,
0.12857630848884583,
-0.14512872695922852,
0.32437053322792053,
-0.20792755484580994,
0.36608195304870605,
-0.04582890495657921,
0.04585656896233559,
0.00484713539481163,
0.3022591769695282,
0.293021559715271,
0.008213520050048828,
0.4414604902267456,
0.10677757859230042,
0.09492788463830948,
0.2869482636451721,
-0.422134667634964,
0.1200474351644516,
-0.7122417688369751,
0.2450832724571228,
0.016977578401565552,
0.09511671960353851,
0.15645834803581238,
-0.032959796488285065,
0.16085579991340637,
-0.05823725089430809,
-0.13718962669372559,
0.20305952429771423,
-0.09505712985992432,
-0.06618177145719528,
-0.06786602735519409,
0.18675749003887177,
-0.0250832661986351,
-0.15221720933914185,
-0.36024442315101624,
-0.16070318222045898,
-0.30566340684890747,
0.17926079034805298,
0.28639426827430725,
0.0047572702169418335,
-0.003142228350043297,
-0.0574079230427742,
0.2420904040336609,
-0.08059561997652054,
-0.3099941313266754,
0.008462298661470413,
-0.26863276958465576,
-0.05017777532339096,
0.17677094042301178,
0.07993699610233307,
0.32242581248283386,
0.21755585074424744,
0.09659501910209656,
0.29795658588409424,
0.27909475564956665,
0.0751069188117981,
-0.2707594633102417,
0.254915714263916,
-0.23461014032363892,
-0.22682704031467438,
0.03333543613553047,
0.02082042582333088,
-0.020547673106193542,
-0.10985864698886871,
-0.018469657748937607,
-0.09413978457450867,
-0.03362249583005905,
-0.01944679766893387,
-0.29509463906288147,
-0.2574271261692047,
0.0817682221531868,
0.06896801292896271,
-0.012912165373563766,
0.0951743945479393,
0.6506277322769165,
0.029491055756807327,
0.3320581614971161,
-0.41531819105148315,
0.0355152003467083,
0.3832957446575165,
0.2289428561925888,
0.5252741575241089,
-0.1277930736541748,
0.0017417678609490395,
0.16079260408878326,
-0.4916899800300598,
0.22635789215564728,
0.009247060865163803,
0.27473902702331543,
-0.0154674481600523,
-0.14673519134521484,
0.12785987555980682,
-0.03248576819896698,
0.6264382004737854,
-0.010808423161506653,
0.2289414405822754,
0.30753880739212036,
-0.14962810277938843,
-0.4271562099456787,
0.18727725744247437,
-0.1648302972316742,
0.059799835085868835,
-0.4520975947380066,
0.21170175075531006,
0.05447729304432869,
0.08442830294370651,
-0.08923297375440598,
-0.2803601920604706,
0.2371443808078766,
0.48615172505378723,
0.4048148989677429,
0.31363242864608765,
0.17105165123939514,
0.14670652151107788,
0.11345090717077255,
-0.39921799302101135,
0.05290592834353447,
-0.1332635134458542,
-0.1021687462925911,
-0.1748885065317154,
0.1471472680568695,
-0.6555600762367249,
-0.21403633058071136,
-0.5553218722343445,
0.1168697401881218,
-0.019279496744275093,
0.2830520272254944,
0.03336420655250549,
0.09796086698770523,
-0.11190944164991379,
0.17097997665405273,
0.23996491730213165,
0.2587839961051941,
-0.2257818877696991,
0.5824902057647705,
-0.5557249784469604,
-0.1297145038843155,
0.3199279308319092,
-0.30302032828330994,
-0.29678085446357727,
0.031623873859643936,
0.3451513648033142,
0.1168406531214714,
-0.16404974460601807,
-0.13549712300300598,
0.20168587565422058,
0.3598889410495758,
-0.2825852334499359,
-0.1681741625070572,
-0.19304883480072021,
-0.37619245052337646,
-0.018261399120092392,
-0.07380709052085876,
0.3473334014415741,
-0.0011126957833766937,
-0.25093573331832886,
0.2778637409210205,
-0.12772755324840546
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Python files are stored in the modules caches, that you can modify by setting `HF_MODULES_CACHE` as well and set appropriate permissions
They are in different locations because the `HF_MODULES_CACHE` is added to the python path to be able to import the dataset scripts :) | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 44 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Python files are stored in the modules caches, that you can modify by setting `HF_MODULES_CACHE` as well and set appropriate permissions
They are in different locations because the `HF_MODULES_CACHE` is added to the python path to be able to import the dataset scripts :) | [
-0.07112548500299454,
0.19862589240074158,
-0.11484886705875397,
0.05539676174521446,
-0.043479159474372864,
0.17060145735740662,
0.39452970027923584,
0.15830335021018982,
-0.05045400932431221,
0.0130104199051857,
-0.17951717972755432,
-0.03075450100004673,
0.025229699909687042,
-0.20556078851222992,
0.0755864605307579,
0.1095253974199295,
0.16539523005485535,
-0.01907666027545929,
-0.002248115837574005,
-0.13414731621742249,
-0.1040312871336937,
-0.12435245513916016,
-0.12622219324111938,
-0.05748674273490906,
-0.2699202597141266,
-0.12302980571985245,
0.22472712397575378,
0.30172860622406006,
0.021706435829401016,
-0.29076123237609863,
0.29491281509399414,
0.5521219968795776,
0.09046926349401474,
0.25813043117523193,
-0.00011057511437684298,
-0.08747147023677826,
-0.0018198639154434204,
-0.08780021965503693,
0.03634539991617203,
0.16034448146820068,
-0.08377264440059662,
-0.15047907829284668,
-0.04859059303998947,
-0.1487908959388733,
-0.15169325470924377,
0.07510917633771896,
0.07309658080339432,
-0.5998990535736084,
0.4124051332473755,
0.31485626101493835,
0.224692702293396,
0.04755032807588577,
-0.23401875793933868,
0.13178010284900665,
0.2531023323535919,
-0.04245565086603165,
-0.17342831194400787,
0.0918293297290802,
0.2744000554084778,
-0.20156581699848175,
0.05508173629641533,
0.004601188004016876,
-0.26081332564353943,
0.0769742950797081,
0.23511141538619995,
-0.10094764828681946,
-0.2804279327392578,
-0.645065188407898,
0.12432865053415298,
0.06843321770429611,
0.6779876351356506,
-0.1796630620956421,
-0.5759931206703186,
-0.17628514766693115,
0.02824697643518448,
0.1837732046842575,
0.3288762867450714,
0.44787609577178955,
0.052392829209566116,
0.2957124412059784,
-0.37439045310020447,
-0.07838498800992966,
-0.20609499514102936,
-0.006349503993988037,
0.18411074578762054,
0.1216626986861229,
0.037869762629270554,
0.07466854155063629,
-0.09538008272647858,
-0.08063960075378418,
0.13852417469024658,
0.15239794552326202,
-0.21175822615623474,
0.3994468152523041,
-0.2095363587141037,
0.0771716982126236,
-0.12553542852401733,
0.4140176475048065,
0.1307501196861267,
0.22777613997459412,
0.07078412920236588,
0.13595306873321533,
0.03541385382413864,
0.2343035638332367,
0.010881512425839901,
0.1417296677827835,
0.2477937638759613,
0.39133220911026,
0.6380584836006165,
-0.3282330334186554,
-0.24193158745765686,
0.007025549188256264,
0.0658484473824501,
-0.35278820991516113,
0.14391031861305237,
0.18421682715415955,
0.09375530481338501,
-0.17595158517360687,
0.14573828876018524,
0.12331552058458328,
-0.06099526956677437,
-0.13502508401870728,
0.06680063903331757,
0.3881250023841858,
0.01194833219051361,
-0.06363438069820404,
0.03648100793361664,
0.13511817157268524,
-0.054703809320926666,
-0.16784334182739258,
-0.046855997294187546,
-0.23762358725070953,
-0.29138073325157166,
0.3004029393196106,
0.4341385066509247,
-0.22445884346961975,
0.0666232705116272,
0.2674313187599182,
0.2014945149421692,
-0.17951999604701996,
0.4227934777736664,
-0.10741139948368073,
0.4777836799621582,
0.49787119030952454,
0.2996859550476074,
0.26286083459854126,
0.04368548095226288,
0.000053513795137405396,
-0.13159766793251038,
0.26376873254776,
-0.303270161151886,
-0.09869328141212463,
0.2806573510169983,
0.08867885917425156,
-0.008012830279767513,
0.20237676799297333,
-0.2862544357776642,
-0.08162344992160797,
0.5120166540145874,
-0.08145784586668015,
0.40028977394104004,
0.15456020832061768,
-0.2154940366744995,
-0.4295497238636017,
-0.14987871050834656,
0.34908807277679443,
-0.08805359154939651,
0.02949998527765274,
0.06849506497383118,
-0.02644803375005722,
-0.11330928653478622,
0.3437564969062805,
-0.08613034337759018,
0.19854329526424408,
-0.1393042951822281,
0.13604074716567993,
0.5056203603744507,
-0.3151085078716278,
-0.6019191145896912,
0.0680859237909317,
0.2210070937871933,
-0.13760994374752045,
0.19685526192188263,
0.029075466096401215,
0.07520537823438644,
-0.16876447200775146,
-0.09773103892803192,
0.39729952812194824,
0.26392269134521484,
0.317233145236969,
0.11976286768913269,
0.11692817509174347,
0.1083684116601944,
-0.052206918597221375,
0.1615094542503357,
0.3317579925060272,
0.3035493791103363,
-0.3312929570674896,
0.2924821972846985,
-0.223160058259964,
0.1741611659526825,
0.5437780022621155,
0.10809676349163055,
0.03283894062042236,
0.0059823342598974705,
-0.179458349943161,
-0.363644540309906,
0.2911800444126129,
-0.17395569384098053,
-0.30728811025619507,
-0.04328976571559906,
-0.47094589471817017,
-0.025549450889229774,
-0.21480119228363037,
-0.35097435116767883,
-0.09744320809841156,
0.11904466152191162,
-0.06468024849891663,
0.09891456365585327,
-0.2676987648010254,
0.11896602809429169,
0.5880300998687744,
0.27459123730659485,
0.02369758114218712,
-0.1771751493215561,
0.1437130719423294,
-0.12301125377416611,
-0.09788259118795395,
-0.13938495516777039,
0.017330512404441833,
0.30568960309028625,
0.006755015812814236,
-0.2790576219558716,
0.23170611262321472,
0.18886424601078033,
-0.02068665623664856,
-0.11353332549333572,
0.19675347208976746,
-0.014361588284373283,
0.11905135214328766,
0.19913451373577118,
-0.13114899396896362,
-0.05031973868608475,
-0.03382251411676407,
-0.19568470120429993,
0.3568633794784546,
-0.11216962337493896,
-0.1396452784538269,
-0.07499594241380692,
0.10831715911626816,
0.14216382801532745,
0.01020105555653572,
-0.13660447299480438,
-0.16714924573898315,
-0.050778087228536606,
0.182968407869339,
0.4076884388923645,
0.23047088086605072,
-0.018591061234474182,
0.03869209811091423,
0.5186436772346497,
0.17688873410224915,
0.09509468078613281,
-0.10307013243436813,
-0.17442357540130615,
0.04339374601840973,
0.2066526710987091,
0.34277790784835815,
0.30688774585723877,
0.07456055283546448,
0.284857839345932,
-0.09522225707769394,
0.20392222702503204,
-0.11234806478023529,
0.0012848451733589172,
-0.050320759415626526,
-0.08296798914670944,
-0.10492847114801407,
-0.043223340064287186,
-0.006251293234527111,
-0.13901861011981964,
0.26446542143821716,
-0.01890437677502632,
0.10205162316560745,
-0.3702934980392456,
-0.006029101088643074,
-0.2605339586734772,
-0.17543372511863708,
0.22565005719661713,
-0.11087124049663544,
-0.5705710053443909,
-0.18340981006622314,
-0.15537980198860168,
0.17452961206436157,
0.02039739117026329,
0.10008791834115982,
-0.32198554277420044,
-0.008589789271354675,
-0.0568435899913311,
-0.1650848239660263,
-0.24589507281780243,
0.16316935420036316,
0.1091318354010582,
0.030607420951128006,
0.22979125380516052,
-0.46976184844970703,
0.23927192389965057,
-0.05070149898529053,
0.16517303884029388,
-0.2503354251384735,
0.07268545776605606,
-0.18503136932849884,
-0.06198211759328842,
0.09729106724262238,
-0.41400346159935,
0.09177672863006592,
-0.08305831253528595,
0.03896873816847801,
-0.04593715816736221,
-0.2416285276412964,
-0.22712616622447968,
-0.0010179933160543442,
0.06936998665332794,
-0.033775556832551956,
-0.2628604769706726,
-0.16655278205871582,
-0.27797767519950867,
-0.1994754821062088,
0.39318692684173584,
0.2574480175971985,
0.23691344261169434,
0.09302692115306854,
-0.29379740357398987,
-0.36478495597839355,
-0.12273500859737396,
0.31726405024528503,
-0.3982391953468323,
-0.6051719188690186,
0.4023295044898987,
-0.6219409108161926,
-0.45909321308135986,
0.23157769441604614,
0.2013726681470871,
0.1301623433828354,
0.3465557098388672,
0.04071584343910217,
-0.18673573434352875,
-0.2796528935432434,
0.20645637810230255,
-0.21087360382080078,
0.2814794182777405,
-0.029935993254184723,
0.0773748829960823,
0.13505993783473969,
-0.03181704506278038,
-0.10761944949626923,
-0.039246656000614166,
0.025378689169883728,
-0.34725841879844666,
0.07771711051464081,
0.09997923672199249,
0.07481841742992401,
0.6144015789031982,
0.44681423902511597,
0.3323841989040375,
0.3170762360095978,
0.21564003825187683,
0.6482455730438232,
-0.004631258547306061,
-0.187753364443779,
0.01932108774781227,
0.02915739268064499,
-0.01873801462352276,
0.06896166503429413,
0.07673226296901703,
-0.09612999111413956,
0.028400063514709473,
-0.03286030516028404,
-0.32106560468673706,
-0.43220219016075134,
-0.23424132168293,
-0.2620278596878052,
0.2056063413619995,
0.10205599665641785,
0.12256557494401932,
-0.3078932464122772,
-0.1614580750465393,
0.011943725869059563,
0.38668179512023926,
0.14090469479560852,
0.2817075848579407,
-0.26910027861595154,
-0.04693681374192238,
-0.3118237555027008,
0.328205943107605,
-0.024291114881634712,
0.5517894625663757,
-0.1500326246023178,
0.17620480060577393,
0.23829668760299683,
0.28649550676345825,
0.3547736406326294,
-0.44402527809143066,
0.22789162397384644,
0.03371246159076691,
0.0879870057106018,
0.21979893743991852,
-0.22717300057411194,
0.3864724338054657,
0.4856249690055847,
-0.050568293780088425,
-0.0058697983622550964,
0.15853428840637207,
-0.27782920002937317,
-0.2988145053386688,
-0.16479134559631348,
-0.14271454513072968,
-0.16315864026546478,
-0.001346498727798462,
0.09173769503831863,
-0.20440830290317535,
-0.15151870250701904,
0.2864140272140503,
-0.39238154888153076,
-0.17228534817695618,
-0.037755466997623444,
-0.16305498778820038,
0.11780867725610733,
0.10897957533597946,
0.04741205275058746,
0.35475867986679077,
-0.015121547505259514,
0.006224982440471649,
0.4237988293170929,
0.008337415754795074,
0.10831525176763535,
0.40600961446762085,
-0.24797096848487854,
0.22844387590885162,
-0.2681941092014313,
-0.20995451509952545,
0.37116843461990356,
0.01571159064769745,
-0.3950766324996948,
-0.05638117343187332,
-0.01637621968984604,
-0.1716654896736145,
-0.24865546822547913,
-0.12185239046812057,
0.0031066657975316048,
0.07422827184200287,
-0.2566525638103485,
-0.7040784955024719,
0.20360353589057922,
0.5451356768608093,
-0.325112521648407,
0.1667739301919937,
-0.24864919483661652,
-0.33603188395500183,
0.17988058924674988,
-0.03655467927455902,
0.6836583018302917,
-0.22377775609493256,
0.45508429408073425,
-0.34836262464523315,
0.037168100476264954,
0.05312100425362587,
-0.46870583295822144,
0.08383501321077347,
-0.43485912680625916,
-0.3096214532852173,
-0.15724778175354004,
-0.1628049910068512,
0.04992378503084183,
0.28015685081481934,
0.013644780963659286,
0.23120538890361786,
-0.2135520726442337,
-0.16672420501708984,
-0.22011950612068176,
-0.0675155371427536,
-0.20394402742385864,
-0.2713046669960022,
0.030422210693359375,
0.1770525425672531,
-0.18023672699928284,
0.09662260115146637,
-0.06617923080921173,
-0.028719186782836914,
-0.24900959432125092,
0.24657468497753143,
-0.28154703974723816,
0.04154099524021149,
-0.5490879416465759,
0.1978006213903427,
-0.1451646089553833,
-0.047533903270959854,
0.18618610501289368,
0.31539860367774963,
0.3440714478492737,
0.43052056431770325,
0.013665853068232536,
0.022495824843645096,
0.23266208171844482,
0.13412883877754211,
-0.2198064774274826,
0.15353046357631683,
0.4004875123500824,
0.11040552705526352,
0.0006040781736373901,
-0.22159281373023987,
-0.16467031836509705,
-0.3210334777832031,
-0.30665674805641174,
0.3289486765861511,
-0.006810478866100311,
-0.23868434131145477,
-0.004113323520869017,
-0.10880468785762787,
0.029780182987451553,
0.03042084351181984,
0.11281436681747437,
0.4672662615776062,
-0.08721642941236496,
0.6280364990234375,
-0.3446451723575592,
-0.36206725239753723,
0.04313647001981735,
0.5669904947280884,
0.015279095619916916,
-0.16585810482501984,
0.21513043344020844,
-0.20896390080451965,
-0.31851011514663696,
-0.17017817497253418,
0.1383345127105713,
-0.0217373538762331,
-0.008482974022626877,
0.0320110023021698,
0.17663033306598663,
-0.02658962458372116,
0.1574157476425171,
-0.3784165382385254,
-0.04474625736474991,
0.021092858165502548,
0.007719162851572037,
-0.40725964307785034,
-0.46671977639198303,
-0.2801177501678467,
-0.24608881771564484,
0.19909633696079254,
0.25640633702278137,
-0.41461870074272156,
0.16098660230636597,
-0.040345072746276855,
-0.2567954659461975,
-0.20944756269454956,
-0.04189743101596832,
0.07666761428117752,
0.32062870264053345,
-0.04797365516424179,
-0.11768768727779388,
-0.20461291074752808,
-0.028507163748145103,
-0.009681537747383118,
-0.11225556582212448,
-0.21966218948364258,
-0.10788507759571075,
0.1303924322128296,
0.20568743348121643,
-0.3368847072124481,
0.10039030015468597,
-0.4761210083961487,
-0.07626250386238098,
-0.37368279695510864,
0.1504245400428772,
0.39484715461730957,
0.2227209508419037,
0.3620982766151428,
0.16539791226387024,
-0.0921483263373375,
-0.08065824210643768,
0.21140873432159424,
-0.11304624378681183,
-0.2150556594133377,
-0.1423865705728531,
0.19855156540870667,
-0.2949601709842682,
0.00009945034980773926,
0.07566459476947784,
-0.022005558013916016,
0.08320742845535278,
0.0450233593583107,
0.17491689324378967,
-0.10189296305179596,
0.05252176150679588,
0.11910934746265411,
0.27319931983947754,
0.10163172334432602,
-0.09011640399694443,
0.07892446219921112,
0.3177696466445923,
0.09842708706855774,
0.031347062438726425,
-0.3164448142051697,
0.41684791445732117,
-0.19711671769618988,
0.12375400960445404,
0.35446715354919434,
0.2651703655719757,
-0.20429295301437378,
0.11084584891796112,
-0.055655065923929214,
0.1155703067779541,
-0.2537091374397278,
0.3794843256473541,
-0.07333862781524658,
0.10726158320903778,
0.07721146196126938,
0.3670889437198639,
0.28966718912124634,
-0.011862702667713165,
0.5240708589553833,
0.2872024476528168,
0.2122552990913391,
0.25918278098106384,
-0.4382050633430481,
0.15981385111808777,
-0.5626022219657898,
0.10063804686069489,
-0.06242448091506958,
0.022084638476371765,
0.3251497745513916,
0.11567997932434082,
0.055950433015823364,
-0.03475901857018471,
-0.2897113561630249,
-0.027102304622530937,
-0.00025277212262153625,
-0.13392013311386108,
-0.13265641033649445,
0.23073115944862366,
0.18683156371116638,
0.042546145617961884,
-0.25194594264030457,
-0.12473542988300323,
-0.34129470586776733,
0.11692234873771667,
0.23284266889095306,
0.07111512869596481,
0.22485551238059998,
0.18741855025291443,
0.04994222894310951,
0.024411626160144806,
-0.12580299377441406,
-0.0799645259976387,
-0.5003087520599365,
-0.019613251090049744,
0.06366932392120361,
-0.08830251544713974,
0.12784388661384583,
0.062103092670440674,
0.026954185217618942,
0.21255157887935638,
0.2733307480812073,
0.010529087856411934,
-0.28604617714881897,
0.3114449381828308,
-0.21065497398376465,
-0.1936759650707245,
0.08266119658946991,
0.05104757845401764,
-0.09519049525260925,
-0.2073645144701004,
-0.19986234605312347,
-0.0021439604461193085,
0.034969888627529144,
0.08853504806756973,
-0.2248603105545044,
-0.5489954948425293,
0.06560885906219482,
-0.029309995472431183,
0.004278354346752167,
0.03681585565209389,
0.5910901427268982,
0.10537154972553253,
0.19603845477104187,
-0.6190001964569092,
0.049350522458553314,
0.3466392457485199,
0.3439370393753052,
0.3838915526866913,
0.05463990196585655,
0.005678395740687847,
0.06850002706050873,
-0.47377780079841614,
0.08492554724216461,
0.1278713494539261,
0.29839733242988586,
-0.03793274611234665,
-0.18366439640522003,
0.034039370715618134,
-0.11767245829105377,
0.6823740601539612,
-0.153158500790596,
0.29278886318206787,
0.31984788179397583,
-0.1709299236536026,
-0.2350664883852005,
0.048700883984565735,
-0.042487986385822296,
0.10175980627536774,
-0.4239197373390198,
0.15162906050682068,
-0.034586355090141296,
0.0950520858168602,
-0.24619139730930328,
-0.11307014524936676,
0.23451769351959229,
0.43294355273246765,
0.5166053771972656,
0.2194109708070755,
0.10071518272161484,
0.04107432812452316,
0.2859897315502167,
-0.37164223194122314,
0.09759361296892166,
-0.19171154499053955,
-0.05968504399061203,
-0.2950817048549652,
0.11142946779727936,
-0.5112541317939758,
-0.21877942979335785,
-0.32918649911880493,
0.11033639311790466,
-0.14159658551216125,
0.16258560121059418,
0.12198422104120255,
0.11861061304807663,
-0.15356427431106567,
0.08637762814760208,
0.32072627544403076,
0.18347010016441345,
-0.17822696268558502,
0.3008369207382202,
-0.4282839894294739,
-0.18958553671836853,
0.291948527097702,
-0.2624671161174774,
-0.34460192918777466,
-0.1099649965763092,
0.3860330283641815,
0.019311413168907166,
-0.23485547304153442,
-0.0323520191013813,
0.2178247570991516,
0.27360936999320984,
-0.3429642617702484,
-0.13503429293632507,
0.09211176633834839,
-0.3157939016819,
0.10812455415725708,
-0.16674737632274628,
0.4470409154891968,
-0.03483465313911438,
-0.15782585740089417,
0.05318828299641609,
-0.1717572957277298
] |
https://github.com/huggingface/datasets/issues/2065 | Only user permission of saved cache files, not group | Thanks a lot for the tip @lhoestq ! I didn't know about this extra cache - thanks :) | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 18 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Thanks a lot for the tip @lhoestq ! I didn't know about this extra cache - thanks :) | [
-0.06479176133871078,
0.2044765055179596,
-0.10630655288696289,
0.0670943409204483,
-0.031620368361473083,
0.157430499792099,
0.3139326274394989,
0.12262381613254547,
-0.21438564360141754,
-0.008581981062889099,
-0.11468879133462906,
0.0036732263397425413,
0.0850948840379715,
-0.2610040009021759,
0.0017886189743876457,
0.12432323396205902,
0.18572351336479187,
0.039196379482746124,
0.021340157836675644,
-0.08097364753484726,
-0.10897022485733032,
-0.08399301022291183,
-0.08275197446346283,
-0.10739970207214355,
-0.3118855953216553,
-0.08455853909254074,
0.20202448964118958,
0.19781997799873352,
0.013630734756588936,
-0.11904275417327881,
0.2580711841583252,
0.45981544256210327,
0.036487411707639694,
0.11602303385734558,
-0.00011541865387698635,
-0.16934987902641296,
0.022782176733016968,
-0.0995456725358963,
0.10346227884292603,
0.25838905572891235,
-0.16515910625457764,
-0.14162233471870422,
-0.14334172010421753,
-0.15706342458724976,
-0.09124622493982315,
0.22953376173973083,
0.1624041199684143,
-0.6613761782646179,
0.4002384543418884,
0.17083954811096191,
0.20035305619239807,
-0.18468615412712097,
-0.3947664797306061,
0.0472150593996048,
0.31192079186439514,
0.06139830872416496,
-0.19190765917301178,
0.041409969329833984,
0.2918265461921692,
-0.1710606962442398,
0.024314627051353455,
0.09188205003738403,
-0.2886330485343933,
0.13353247940540314,
0.13083600997924805,
-0.08958298712968826,
-0.25810861587524414,
-0.5235277414321899,
0.2286175787448883,
0.09142225980758667,
0.7918447852134705,
-0.020058482885360718,
-0.4291454255580902,
-0.16312700510025024,
-0.00744937639683485,
0.2499222606420517,
0.3861362338066101,
0.35254186391830444,
0.053986806422472,
0.2923506796360016,
-0.5572310090065002,
-0.0011492946650832891,
-0.14834097027778625,
-0.01807066798210144,
0.15155749022960663,
-0.0346510112285614,
-0.042643267661333084,
0.08068613708019257,
-0.003106236457824707,
-0.02626929059624672,
0.11613132059574127,
0.08848109841346741,
-0.39691582322120667,
0.34075257182121277,
-0.11836418509483337,
0.05776704102754593,
-0.19123417139053345,
0.4684678316116333,
0.16086208820343018,
0.2758365273475647,
0.24790310859680176,
0.17744919657707214,
0.07230227440595627,
0.15714672207832336,
0.015194057486951351,
0.15508131682872772,
0.3627000153064728,
0.3168478310108185,
0.5303482413291931,
-0.4244902431964874,
-0.10350330173969269,
-0.011333715170621872,
0.10778564214706421,
-0.32642558217048645,
0.10363681614398956,
0.22449752688407898,
0.027375824749469757,
-0.2654412090778351,
0.18678422272205353,
0.12630599737167358,
-0.09396468102931976,
-0.2660667300224304,
0.0063515156507492065,
0.2627648413181305,
0.10503529757261276,
-0.156530499458313,
-0.05318297818303108,
0.1492689847946167,
0.019991809502243996,
-0.39193153381347656,
-0.010884836316108704,
-0.3274892270565033,
-0.3161981701850891,
0.41274580359458923,
0.49804916977882385,
-0.2044149488210678,
0.052745699882507324,
0.27097728848457336,
0.12202787399291992,
-0.2156246304512024,
0.3525763750076294,
-0.04706912860274315,
0.4471729099750519,
0.36464348435401917,
0.21705663204193115,
0.3409970998764038,
0.053715214133262634,
0.03668377548456192,
-0.09282887727022171,
0.35043537616729736,
-0.3328181207180023,
-0.16258443892002106,
0.26985254883766174,
0.042131878435611725,
-0.03133958578109741,
0.19482292234897614,
-0.3664890229701996,
0.08997179567813873,
0.5494838953018188,
-0.1855926662683487,
0.4085767865180969,
0.3236309289932251,
-0.20991282165050507,
-0.40095648169517517,
-0.13654744625091553,
0.29227715730667114,
-0.14695818722248077,
-0.013778205960988998,
-0.02768222987651825,
-0.023028861731290817,
-0.02781984955072403,
0.23810268938541412,
-0.024495627731084824,
0.22137132287025452,
-0.16465866565704346,
0.21526433527469635,
0.45103952288627625,
-0.052565839141607285,
-0.5900935530662537,
0.09679393470287323,
0.22186125814914703,
-0.09554696083068848,
0.15305739641189575,
0.02209160476922989,
0.03385598957538605,
-0.07488781213760376,
-0.14127172529697418,
0.3345082998275757,
0.17475855350494385,
0.2456585168838501,
0.11055225133895874,
0.1368074119091034,
0.08515386283397675,
-0.09633125364780426,
0.09352338314056396,
0.34407711029052734,
0.3680426776409149,
-0.33183085918426514,
0.19110293686389923,
-0.2875932455062866,
0.2736724615097046,
0.43309301137924194,
-0.005175478756427765,
-0.10103204846382141,
-0.00872199609875679,
-0.08627712726593018,
-0.46504974365234375,
0.3111625909805298,
-0.1957118809223175,
-0.41440561413764954,
0.08823158591985703,
-0.39240318536758423,
0.020931556820869446,
-0.33673417568206787,
-0.22865305840969086,
-0.10594670474529266,
0.06463630497455597,
0.03437080979347229,
0.004494775086641312,
-0.3734634518623352,
0.22308973968029022,
0.42535173892974854,
0.27648741006851196,
-0.03136225417256355,
-0.09666977822780609,
0.08368734270334244,
-0.09375841170549393,
-0.045926354825496674,
-0.30695655941963196,
-0.06977800279855728,
0.2804638743400574,
-0.028433391824364662,
-0.31146228313446045,
0.2703361511230469,
0.1396617889404297,
0.05618179962038994,
-0.04016231745481491,
0.22016850113868713,
-0.014741746708750725,
0.09933745861053467,
0.06958537548780441,
-0.21541400253772736,
-0.0877128317952156,
-0.1919049620628357,
-0.2697196900844574,
0.3005306124687195,
-0.011014159768819809,
-0.05505228787660599,
-0.2966371476650238,
0.20621047914028168,
0.1292119026184082,
-0.019090328365564346,
-0.06877636909484863,
-0.16945114731788635,
0.0028383098542690277,
0.19957800209522247,
0.3201846778392792,
0.208412766456604,
0.11314421892166138,
0.08312579989433289,
0.3830944001674652,
0.17376863956451416,
0.10007855296134949,
-0.0485384464263916,
-0.11286366730928421,
0.05134463310241699,
0.1926615685224533,
0.3119651973247528,
0.30480778217315674,
0.034713901579380035,
0.34260687232017517,
-0.18705664575099945,
0.33161234855651855,
-0.1734253466129303,
0.027922876179218292,
-0.09486217796802521,
-0.03270922973752022,
-0.16650894284248352,
-0.10223695635795593,
-0.04382814094424248,
-0.08789390325546265,
0.37735456228256226,
0.13069361448287964,
0.066006138920784,
-0.30292534828186035,
-0.0951106995344162,
-0.2684299647808075,
-0.20949876308441162,
0.35916319489479065,
-0.07177745550870895,
-0.5595083236694336,
-0.07721554487943649,
-0.15929728746414185,
0.1691131442785263,
-0.015492472797632217,
0.15338237583637238,
-0.2617209255695343,
0.248578742146492,
-0.10031025856733322,
-0.10703397542238235,
-0.24200402200222015,
0.2110457569360733,
0.049837835133075714,
0.030290942639112473,
0.24578846991062164,
-0.6253209710121155,
0.170555979013443,
-0.02772536873817444,
0.3058011531829834,
-0.3092174828052521,
0.022504106163978577,
-0.1575411707162857,
-0.03666982054710388,
0.07301062345504761,
-0.5056209564208984,
0.019365280866622925,
-0.15618163347244263,
0.0950729250907898,
-0.13807056844234467,
-0.22371838986873627,
-0.2506905794143677,
-0.01800418458878994,
0.0541452057659626,
-0.03427392989397049,
-0.3012102544307709,
-0.05701243132352829,
-0.10786814242601395,
-0.08929713070392609,
0.443695604801178,
0.12404099106788635,
0.2185661345720291,
-0.021152708679437637,
-0.3268640339374542,
-0.3635719120502472,
-0.23304349184036255,
0.24087581038475037,
-0.46964335441589355,
-0.6174901127815247,
0.33923283219337463,
-0.5146859288215637,
-0.4035540819168091,
0.0932929515838623,
0.2137393206357956,
0.10881064832210541,
0.39910805225372314,
-0.05257203057408333,
0.025051437318325043,
-0.2156006544828415,
0.19943684339523315,
-0.2544974386692047,
0.09227008372545242,
0.124306820333004,
0.033896930515766144,
0.1464540809392929,
-0.08981329202651978,
-0.1906839907169342,
0.04696992039680481,
-0.0027323290705680847,
-0.24208879470825195,
0.08874990046024323,
0.050231099128723145,
0.13112595677375793,
0.7595248818397522,
0.3844928443431854,
0.3842293620109558,
0.31316086649894714,
0.2991841733455658,
0.6219873428344727,
0.04582751914858818,
-0.13078896701335907,
0.12939795851707458,
-0.049620434641838074,
-0.04003239795565605,
0.1448165327310562,
0.03148452937602997,
-0.2743570804595947,
-0.023370763286948204,
0.04829047992825508,
-0.23027756810188293,
-0.3815443813800812,
-0.23326240479946136,
-0.3370617628097534,
0.1077907383441925,
0.14212703704833984,
0.09000930935144424,
-0.27790015935897827,
-0.24043384194374084,
0.0005117692053318024,
0.25557684898376465,
0.21674349904060364,
0.24599310755729675,
-0.3941875696182251,
-0.005587459541857243,
-0.2925550639629364,
0.40814751386642456,
0.0030055257957428694,
0.38297733664512634,
-0.23105162382125854,
0.17265942692756653,
0.22087916731834412,
0.39827001094818115,
0.389751136302948,
-0.4740384519100189,
0.2268432229757309,
-0.059805188328027725,
0.16559700667858124,
0.3515668213367462,
-0.25725510716438293,
0.42965808510780334,
0.5278568863868713,
0.09323480725288391,
0.13583172857761383,
0.22773852944374084,
-0.14867837727069855,
-0.3595302700996399,
-0.2508954107761383,
-0.09859290719032288,
-0.24344630539417267,
0.09652841091156006,
0.2675788402557373,
-0.049206577241420746,
-0.05733790248632431,
0.31765395402908325,
-0.33295050263404846,
-0.14336630702018738,
-0.014815695583820343,
-0.13035884499549866,
0.21831601858139038,
0.06471394002437592,
-0.07108409702777863,
0.2721514105796814,
0.13644805550575256,
0.001088906079530716,
0.43689340353012085,
0.07507071644067764,
0.04392640292644501,
0.4136190116405487,
-0.18670396506786346,
0.3706473708152771,
-0.124152772128582,
-0.3485896587371826,
0.4045315086841583,
0.04121273010969162,
-0.33418038487434387,
-0.13246434926986694,
0.08300791680812836,
-0.22771067917346954,
-0.2858734726905823,
-0.11126960068941116,
-0.07928119599819183,
0.05634458363056183,
-0.2084624320268631,
-0.5229083299636841,
0.24367913603782654,
0.5799188017845154,
-0.3349063992500305,
0.32538020610809326,
-0.302642285823822,
-0.3356252610683441,
0.04936804622411728,
0.016316108405590057,
0.7756336331367493,
-0.15923619270324707,
0.36224547028541565,
-0.4615950584411621,
0.04596582055091858,
0.0480768121778965,
-0.44247376918792725,
0.13374096155166626,
-0.39466047286987305,
-0.4047672748565674,
-0.15236762166023254,
-0.12385009229183197,
0.04315488785505295,
0.4162483811378479,
0.022338200360536575,
0.1118788942694664,
-0.11720173060894012,
-0.005686793476343155,
-0.11455638706684113,
-0.24795310199260712,
-0.0809612050652504,
-0.28988146781921387,
0.3775225579738617,
0.12729574739933014,
-0.2359531968832016,
0.08280574530363083,
-0.07634856551885605,
0.007331321015954018,
-0.22028735280036926,
0.22045199573040009,
-0.2990439534187317,
0.07010575383901596,
-0.5314213037490845,
0.10795246809720993,
-0.1986023336648941,
0.014558650553226471,
0.14025293290615082,
0.32101812958717346,
0.3332709074020386,
0.32322537899017334,
-0.05825413763523102,
0.06404145061969757,
0.3861735761165619,
0.1935548633337021,
-0.2532939910888672,
0.06482654064893723,
0.24441097676753998,
0.11263484507799149,
0.05686452239751816,
-0.25482091307640076,
-0.22392940521240234,
-0.3552873134613037,
-0.3316343426704407,
0.2792854905128479,
-0.0006440654397010803,
-0.1933022290468216,
0.005991906858980656,
-0.05926474928855896,
0.12139897048473358,
0.05446556583046913,
0.07763902842998505,
0.43486279249191284,
-0.020496875047683716,
0.5828227996826172,
-0.35670170187950134,
-0.36648398637771606,
0.029783204197883606,
0.5728052258491516,
-0.014972042292356491,
-0.23648054897785187,
0.18548224866390228,
-0.3434723913669586,
-0.27729111909866333,
-0.15173085033893585,
0.21436473727226257,
0.04427667334675789,
-0.11679781973361969,
-0.049755752086639404,
0.04758448898792267,
-0.04206722229719162,
0.16982905566692352,
-0.4634356200695038,
0.03005596436560154,
0.12198730558156967,
0.14018292725086212,
-0.3815542459487915,
-0.42912259697914124,
-0.35516732931137085,
-0.40208911895751953,
0.2227514088153839,
0.2295733392238617,
-0.5291104316711426,
0.2018590122461319,
0.1359892636537552,
-0.197781503200531,
-0.14492593705654144,
0.074289470911026,
0.16210946440696716,
0.22604689002037048,
0.017497386783361435,
-0.11132799834012985,
-0.2199644148349762,
-0.1258976310491562,
-0.012845039367675781,
-0.05265665799379349,
-0.17281398177146912,
-0.021208923310041428,
0.1649082601070404,
0.21781733632087708,
-0.37076687812805176,
0.10217960178852081,
-0.4015163779258728,
-0.09238600730895996,
-0.3750629723072052,
0.034731168299913406,
0.2853893041610718,
0.19934143126010895,
0.3048304319381714,
0.20491085946559906,
-0.06528181582689285,
-0.14855049550533295,
0.18980811536312103,
-0.1612757444381714,
-0.1635715216398239,
-0.25820016860961914,
0.21229004859924316,
-0.2857261300086975,
-0.07437258213758469,
0.10710164904594421,
-0.07122228294610977,
0.1061864048242569,
0.05506809800863266,
0.10853490233421326,
-0.06252964586019516,
0.02209489420056343,
0.18368293344974518,
0.21650400757789612,
-0.02167554944753647,
-0.11164988577365875,
0.013260899111628532,
0.254938006401062,
0.09041643887758255,
0.10025414824485779,
-0.2615315318107605,
0.4186056852340698,
-0.0758671760559082,
0.020715225487947464,
0.31370067596435547,
0.27996116876602173,
-0.267416775226593,
0.20036287605762482,
-0.0669805258512497,
0.049921922385692596,
-0.36354774236679077,
0.4368884265422821,
-0.12358292937278748,
0.04711451008915901,
0.0721203088760376,
0.45837390422821045,
0.2049822360277176,
-0.02108917385339737,
0.35733354091644287,
0.2675381302833557,
0.12163526564836502,
0.36877816915512085,
-0.3743837773799896,
0.11756216734647751,
-0.6657562255859375,
0.13072358071804047,
0.0346105620265007,
-0.017813213169574738,
0.3528142273426056,
0.10450126975774765,
0.052578918635845184,
-0.04750576242804527,
-0.3064749538898468,
-0.07882286608219147,
-0.08572344481945038,
-0.16718226671218872,
-0.11515738070011139,
0.08536457270383835,
0.06773877888917923,
0.04360467940568924,
-0.20343081653118134,
-0.1310872584581375,
-0.1799122393131256,
0.28824764490127563,
0.17083248496055603,
-0.009955830872058868,
0.2480749934911728,
0.04464511573314667,
0.05919003486633301,
0.024838000535964966,
-0.20521487295627594,
-0.05121985822916031,
-0.5117070078849792,
-0.16278637945652008,
0.2754265069961548,
0.09179657697677612,
0.02183998003602028,
0.09891187399625778,
0.12493643164634705,
0.16014835238456726,
0.2920747995376587,
0.04514482617378235,
-0.2735292315483093,
0.4018329381942749,
-0.08514221012592316,
-0.43260711431503296,
0.08314500749111176,
-0.002840564586222172,
-0.03223073109984398,
-0.01666020229458809,
-0.15527498722076416,
0.1339859515428543,
0.06460237503051758,
-0.10305201262235641,
-0.2067793309688568,
-0.43557700514793396,
0.10046950727701187,
-0.004167921841144562,
0.17432540655136108,
0.03791503608226776,
0.537135660648346,
0.010732111521065235,
0.20455512404441833,
-0.527499794960022,
0.024006400257349014,
0.401778906583786,
0.31498244404792786,
0.44307270646095276,
-0.07567230612039566,
-0.09076395630836487,
0.0026820972561836243,
-0.3664841055870056,
0.12266205251216888,
0.16352635622024536,
0.5250734090805054,
-0.004074019379913807,
-0.15735980868339539,
0.12131720036268234,
-0.12876614928245544,
0.6615426540374756,
-0.27465182542800903,
0.26365816593170166,
0.32205313444137573,
-0.2628834843635559,
-0.23318301141262054,
0.17894843220710754,
-0.04038122296333313,
0.10154929757118225,
-0.3510165810585022,
0.33202508091926575,
0.146910160779953,
0.0450751855969429,
-0.15305106341838837,
-0.2159600853919983,
0.13816654682159424,
0.513370156288147,
0.45214688777923584,
0.23486311733722687,
-0.020985998213291168,
0.04278974235057831,
0.36801162362098694,
-0.3549981415271759,
0.08729115128517151,
-0.14479444921016693,
-0.04748270660638809,
-0.1418207287788391,
-0.006667466834187508,
-0.6139494776725769,
-0.12349463999271393,
-0.32402876019477844,
0.0352095365524292,
-0.1420578807592392,
0.35428252816200256,
0.0411192923784256,
0.004269691184163094,
-0.19613498449325562,
0.08455313742160797,
0.2608846127986908,
0.205098956823349,
-0.1260753870010376,
0.364603191614151,
-0.4710824489593506,
-0.11002269387245178,
0.28056052327156067,
-0.21718239784240723,
-0.24972642958164215,
-0.05510689690709114,
0.3602759838104248,
0.1630687415599823,
-0.18774712085723877,
0.007063925266265869,
0.053298838436603546,
0.4116160571575165,
-0.3754148781299591,
-0.05540624260902405,
0.08535569906234741,
-0.431379497051239,
0.06285829842090607,
-0.12217232584953308,
0.561852753162384,
0.036117203533649445,
-0.18273890018463135,
0.07820701599121094,
-0.24395810067653656
] |
https://github.com/huggingface/datasets/issues/2061 | Cannot load udpos subsets from xtreme dataset using load_dataset() | @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 35 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
@lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. | [
-0.3464028239250183,
-0.07528606057167053,
0.0026139914989471436,
0.44439059495925903,
0.3713299632072449,
0.06911926716566086,
0.24056847393512726,
0.039474863559007645,
0.5101776123046875,
0.2061244547367096,
-0.3589053750038147,
0.0527050755918026,
0.08609610050916672,
0.08086623251438141,
0.11441273242235184,
-0.315104216337204,
-0.060249365866184235,
0.01735594868659973,
-0.2503676116466522,
-0.06550413370132446,
-0.4105169475078583,
-0.062326230108737946,
-0.3046581745147705,
0.10954275727272034,
-0.17110338807106018,
0.2064579427242279,
0.014145230874419212,
0.16473406553268433,
-0.3150220811367035,
-0.4950214922428131,
0.5633593797683716,
0.018032986670732498,
0.580074667930603,
0.22132200002670288,
-0.00012534325651358813,
0.10603812336921692,
0.48617953062057495,
-0.06130558252334595,
-0.3452346622943878,
-0.4049581289291382,
-0.4189884662628174,
-0.13159717619419098,
-0.06906154751777649,
-0.09646499156951904,
0.10452776402235031,
-0.004398699849843979,
-0.08233404159545898,
-0.25856220722198486,
0.3321027159690857,
0.3678755760192871,
0.09417024254798889,
0.3720284104347229,
0.06185785308480263,
-0.22116561233997345,
0.4757198095321655,
-0.04227049648761749,
-0.14890815317630768,
0.15637384355068207,
0.4271000921726227,
-0.3246816396713257,
0.18014493584632874,
0.12462508678436279,
-0.2091396450996399,
0.2249169945716858,
-0.16371798515319824,
0.05600592494010925,
0.1821347177028656,
-0.25835084915161133,
0.23912492394447327,
0.13496527075767517,
0.8412338495254517,
-0.15123888850212097,
-0.4147815406322479,
0.018238812685012817,
-0.10140588134527206,
-0.3554820120334625,
0.1830143928527832,
0.0008577331900596619,
-0.05788682773709297,
0.07884141802787781,
-0.07679980248212814,
-0.06024165078997612,
0.05037610977888107,
0.2890728712081909,
-0.1434582769870758,
0.29103606939315796,
0.05412067472934723,
0.13386094570159912,
0.32395151257514954,
-0.10892046988010406,
0.4901406168937683,
0.09794213622808456,
-0.07307194173336029,
0.2410603016614914,
-0.3231162130832672,
0.28653162717819214,
-0.07560459524393082,
-0.3037877380847931,
0.23896461725234985,
-0.10459820926189423,
-0.1012071892619133,
0.003955399617552757,
-0.1443653106689453,
0.3295554518699646,
0.4467029273509979,
0.2585928738117218,
0.3614311218261719,
0.2899972200393677,
0.10725359618663788,
0.15876832604408264,
-0.05657333508133888,
-0.06338665634393692,
-0.4474612772464752,
-0.21606256067752838,
0.08579239249229431,
-0.027129679918289185,
0.1571706384420395,
-0.4506188929080963,
-0.5827978849411011,
0.0448346771299839,
-0.16290169954299927,
-0.2178834229707718,
0.05834992974996567,
0.268889844417572,
0.1545642614364624,
0.4297794699668884,
0.04586201161146164,
0.4458411931991577,
-0.4962792694568634,
-0.2659803330898285,
-0.054423872381448746,
0.16876274347305298,
-0.418963760137558,
0.05851322412490845,
0.1439429223537445,
0.005287432111799717,
0.21485772728919983,
0.016775663942098618,
0.26567405462265015,
-0.2452537715435028,
0.12882864475250244,
-0.23588599264621735,
-0.24442091584205627,
0.3540518879890442,
0.31052419543266296,
0.12189800292253494,
0.2711304724216461,
-0.3746756911277771,
-0.07859884947538376,
0.28915587067604065,
-0.2225111722946167,
-0.23501180112361908,
0.09094390273094177,
0.03285486251115799,
-0.17969144880771637,
0.05502007156610489,
-1.0357831716537476,
-0.07645747065544128,
0.08510333299636841,
0.10693272948265076,
-0.01550871878862381,
-0.27552980184555054,
-0.17121097445487976,
0.0025960211642086506,
0.2848057448863983,
0.5355798602104187,
-0.2868717312812805,
-0.04640630632638931,
-0.14083968102931976,
-0.040089841932058334,
0.3355933129787445,
0.36130860447883606,
-0.3357945680618286,
0.07375471293926239,
-0.12798485159873962,
0.10571162402629852,
0.1982138305902481,
-0.5150753855705261,
-0.48036548495292664,
0.16409717500209808,
0.05092816799879074,
-0.016187921166419983,
-0.08576121181249619,
-0.3274516761302948,
0.23931744694709778,
0.035720884799957275,
0.19531255960464478,
0.25892454385757446,
0.05809744447469711,
-0.09088724851608276,
-0.17510159313678741,
-0.09859490394592285,
0.13611334562301636,
0.42719152569770813,
0.2911245822906494,
0.14539946615695953,
0.261487752199173,
0.43923667073249817,
0.04362144321203232,
0.01657552644610405,
0.013182567432522774,
0.3216630816459656,
0.033360160887241364,
0.09020183235406876,
0.0362410694360733,
-0.059344224631786346,
-0.4222901463508606,
0.20219746232032776,
-0.09309966117143631,
-0.04537065327167511,
0.09755406528711319,
0.18124040961265564,
-0.38971132040023804,
0.12302250415086746,
-0.32474470138549805,
-0.3197048604488373,
-0.09428943693637848,
0.08660367131233215,
-0.09641386568546295,
-0.08180838823318481,
-0.16980037093162537,
0.0806679055094719,
-0.07154867053031921,
0.11032024770975113,
-0.3754516541957855,
0.41911986470222473,
0.04957811161875725,
-0.06489023566246033,
0.08072341233491898,
0.2063005268573761,
0.22998031973838806,
-0.12607955932617188,
-0.17538145184516907,
0.18774259090423584,
0.6032570004463196,
-0.17918293178081512,
0.13573673367500305,
-0.04410405457019806,
0.30425789952278137,
-0.38856959342956543,
0.19620245695114136,
-0.02738191932439804,
0.11872155964374542,
0.11306465417146683,
0.05982999503612518,
0.25418931245803833,
-0.03597499802708626,
0.18406414985656738,
-0.1281910240650177,
0.12247242778539658,
0.38742682337760925,
0.0022268146276474,
0.06135951727628708,
-0.2924950122833252,
0.5102492570877075,
0.3250284492969513,
0.31844180822372437,
0.05247960984706879,
-0.14598581194877625,
-0.22427299618721008,
-0.11093059182167053,
-0.15163011848926544,
0.0816720649600029,
0.15156984329223633,
-0.22369930148124695,
0.04447571933269501,
0.20372247695922852,
0.23733557760715485,
0.3294333219528198,
0.021466899663209915,
0.07584664970636368,
-0.046803779900074005,
0.023762982338666916,
0.07017713785171509,
-0.009797409176826477,
-0.07181696593761444,
-0.10157620906829834,
0.06444094330072403,
0.0008366899564862251,
-0.20575790107250214,
-0.22481146454811096,
0.07293929159641266,
0.23779690265655518,
0.42306941747665405,
-0.30031612515449524,
0.04732169210910797,
-0.4231780171394348,
-0.15952914953231812,
0.138996884226799,
-0.08027908951044083,
-0.03873128816485405,
-0.14833737909793854,
-0.3189132809638977,
0.277815043926239,
0.3382664620876312,
0.128822460770607,
0.10790929198265076,
-0.23986206948757172,
-0.024733057245612144,
-0.20222771167755127,
0.16747762262821198,
-0.19168327748775482,
-0.13632401823997498,
-0.11427716910839081,
0.23435357213020325,
0.17310655117034912,
0.09740985929965973,
-0.3408336639404297,
-0.04541358724236488,
-0.23199748992919922,
-0.055594682693481445,
0.23203113675117493,
-0.0026652254164218903,
0.30958691239356995,
-0.07700002193450928,
0.14246349036693573,
-0.3586759567260742,
0.03647242859005928,
0.36613908410072327,
0.021217385306954384,
-0.16787949204444885,
0.2677282691001892,
-0.012351643294095993,
-0.125104621052742,
0.023681312799453735,
-0.147312194108963,
-0.2998107969760895,
-0.20938506722450256,
0.01712195575237274,
0.04826558008790016,
0.023905020207166672,
-0.0471152625977993,
0.039598893374204636,
0.03805019333958626,
0.1774880737066269,
-0.17492930591106415,
-0.34034401178359985,
-0.43195754289627075,
0.4691961109638214,
-0.2710251808166504,
-0.24750037491321564,
0.08169719576835632,
0.04735609143972397,
0.2014109045267105,
0.3418823480606079,
-0.4603409767150879,
-0.07378599792718887,
-0.11739248037338257,
0.1646256446838379,
0.07586102187633514,
0.18649393320083618,
0.04696757718920708,
-0.1311488151550293,
0.15852028131484985,
-0.07704127579927444,
-0.3395666480064392,
-0.10581129044294357,
0.24256372451782227,
0.257839173078537,
-0.10521651059389114,
0.448356956243515,
-0.25083813071250916,
0.2393931746482849,
-0.012946171686053276,
0.2891105115413666,
0.5426398515701294,
-0.08933348953723907,
0.15291233360767365,
-0.3217941224575043,
-0.3143521249294281,
-0.09971156716346741,
-0.19487524032592773,
-0.1389908790588379,
0.04835686460137367,
0.026965871453285217,
-0.14914584159851074,
-0.27067461609840393,
-0.05290781706571579,
-0.08796091377735138,
-0.17469948530197144,
-0.055343374609947205,
-0.0693778246641159,
0.32938510179519653,
-0.05049314722418785,
0.27914959192276,
0.013617167249321938,
-0.040418773889541626,
-0.15393957495689392,
0.22464236617088318,
0.12359979748725891,
0.22255197167396545,
-0.3244822025299072,
0.10718445479869843,
-0.27057674527168274,
0.3529711961746216,
-0.040787916630506516,
0.7153810262680054,
-0.14472714066505432,
0.32613223791122437,
0.1128171905875206,
0.03812679648399353,
0.10555648058652878,
-0.29159682989120483,
0.11078022420406342,
0.0259101502597332,
-0.4394381642341614,
-0.057181619107723236,
-0.03271950036287308,
-0.04879242554306984,
-0.06406994163990021,
-0.029191527515649796,
0.26154035329818726,
-0.2473839819431305,
-0.10460547357797623,
-0.021286532282829285,
0.3048669695854187,
-0.04211368039250374,
-0.24261850118637085,
-0.3949684500694275,
-0.5412185788154602,
-0.43925049901008606,
-0.18904918432235718,
0.14653024077415466,
0.15771298110485077,
-0.0798717811703682,
0.20453967154026031,
-0.15882903337478638,
0.10533053427934647,
0.22422954440116882,
0.08409182727336884,
0.27255916595458984,
-0.033014483749866486,
0.15348711609840393,
0.26823359727859497,
-0.16656094789505005,
0.7140192985534668,
0.779288113117218,
-0.16547273099422455,
-0.35192230343818665,
0.25312379002571106,
-0.07656987756490707,
0.021768897771835327,
-0.05635666847229004,
-0.026279307901859283,
0.04735944792628288,
-0.19933469593524933,
-0.17018285393714905,
-0.04642147570848465,
0.1983218789100647,
0.19671933352947235,
0.15442349016666412,
-0.2928839921951294,
-0.753265917301178,
0.523123025894165,
0.07335086166858673,
0.11949123442173004,
0.2948044538497925,
-0.09946593642234802,
-0.18771134316921234,
0.26917725801467896,
0.10974039137363434,
0.7309184670448303,
-0.4024430513381958,
0.06639973819255829,
0.12552528083324432,
0.039054207503795624,
0.09694725275039673,
-0.0389399491250515,
-0.25493794679641724,
-0.18996380269527435,
-0.21341681480407715,
-0.1464371681213379,
-0.1630650907754898,
0.2815142869949341,
0.15234126150608063,
-0.07434465736150742,
0.2819465100765228,
-0.1734500378370285,
-0.028556454926729202,
0.23774771392345428,
0.11795353889465332,
-0.0852738544344902,
-0.3346666097640991,
-0.5701631903648376,
0.0695265382528305,
-0.17449241876602173,
0.21966426074504852,
-0.022928394377231598,
0.044626183807849884,
-0.077088862657547,
-0.05582097917795181,
-0.39172977209091187,
0.3648407459259033,
-0.27481821179389954,
0.3384893536567688,
-0.13014841079711914,
-0.3494688868522644,
0.18923400342464447,
0.4507750868797302,
0.22845673561096191,
0.14010925590991974,
-0.15276694297790527,
0.07425986230373383,
0.2642703056335449,
-0.25238338112831116,
-0.03045213781297207,
-0.10021749883890152,
-0.06935576349496841,
-0.02304328791797161,
-0.2731991410255432,
0.1419648379087448,
-0.0702483206987381,
-0.2247539460659027,
-0.07429366558790207,
0.13919124007225037,
0.02874213084578514,
-0.09943048655986786,
-0.3413548767566681,
-0.07189036905765533,
0.03511865809559822,
-0.16433051228523254,
-0.006722437217831612,
0.20912578701972961,
-0.09398028254508972,
0.011095643043518066,
0.057148635387420654,
-0.33624082803726196,
0.020826473832130432,
0.4598698616027832,
-0.06713658571243286,
-0.10354234278202057,
0.5126204490661621,
0.22076405584812164,
-0.205333411693573,
-0.1291891634464264,
0.2668747007846832,
0.3432776629924774,
-0.24352452158927917,
0.024793973192572594,
-0.10152847319841385,
0.12263812124729156,
0.01696511171758175,
0.019083619117736816,
0.23217599093914032,
-0.3506092131137848,
0.35660767555236816,
-0.5912503004074097,
-0.37390556931495667,
0.1904154121875763,
-0.18425250053405762,
0.02091055177152157,
-0.023007726296782494,
0.011408803053200245,
-0.15387099981307983,
-0.08554095774888992,
-0.11315371096134186,
0.11046434938907623,
-0.35552889108657837,
0.05317562073469162,
0.23331134021282196,
-0.0038373135030269623,
0.026617681607604027,
-0.17022112011909485,
0.008407408371567726,
0.13824684917926788,
0.03584548830986023,
-0.03853178769350052,
-0.1823159009218216,
0.21420980989933014,
0.1291014701128006,
-0.3466271162033081,
0.009542069397866726,
-0.2173154503107071,
-0.04067813977599144,
-0.14563490450382233,
0.17523425817489624,
0.4642309546470642,
-0.05088555067777634,
0.11629156768321991,
0.20204491913318634,
0.11926467716693878,
-0.3610048294067383,
0.3773384392261505,
-0.05974675714969635,
0.2192406952381134,
0.10528101027011871,
0.19968557357788086,
0.2261877954006195,
0.12845376133918762,
-0.2986389994621277,
-0.09186027199029922,
0.2543622553348541,
-0.020749665796756744,
0.27848759293556213,
-0.4246545433998108,
0.3846977949142456,
0.09340260922908783,
0.13926929235458374,
0.442362904548645,
-0.27087053656578064,
0.06683043390512466,
0.322624146938324,
0.027771804481744766,
-0.23967833817005157,
-0.10680226236581802,
0.1143147349357605,
0.05672340840101242,
-0.13262510299682617,
0.3174366354942322,
0.3981635868549347,
0.06588330864906311,
-0.14058342576026917,
0.03662309795618057,
0.06292088329792023,
-0.14363792538642883,
0.0519925057888031,
0.6180887818336487,
0.018257740885019302,
0.21215331554412842,
0.06275132298469543,
0.22510550916194916,
-0.026153139770030975,
0.33312469720840454,
-0.15771716833114624,
0.4461427628993988,
0.21345624327659607,
0.19085948169231415,
-0.32778093218803406,
-0.5346594452857971,
-0.16996917128562927,
0.3204801678657532,
0.09440187364816666,
-0.025712601840496063,
-0.20863986015319824,
0.2422645092010498,
-0.1822718381881714,
0.15879718959331512,
-0.06975626945495605,
0.13053736090660095,
-0.03403589874505997,
-0.18388520181179047,
-0.13292241096496582,
-0.1520826816558838,
-0.5502746105194092,
0.1870923489332199,
-0.2470209300518036,
-0.12653879821300507,
0.19390413165092468,
0.15689663589000702,
-0.1329805701971054,
-0.3558679521083832,
-0.0509607270359993,
0.37732478976249695,
-0.3437860310077667,
-0.34007203578948975,
0.3964485824108124,
0.01772678643465042,
0.017270401120185852,
0.24953226745128632,
0.1393803060054779,
0.33069872856140137,
0.42049992084503174,
-0.36088794469833374,
-0.11548610776662827,
0.06133898347616196,
0.07740134000778198,
0.07656560093164444,
0.19793154299259186,
0.01955258846282959,
0.20653848350048065,
0.3709862232208252,
-0.01140954066067934,
-0.013940691947937012,
-0.03165790066123009,
0.15727050602436066,
-0.2297258824110031,
-0.08797694742679596,
0.22997435927391052,
-0.048160746693611145,
0.19987672567367554,
-0.11763764917850494,
0.024509981274604797,
-0.24237403273582458,
0.021785765886306763,
0.5751784443855286,
0.010339571163058281,
0.10682898759841919,
0.05929211527109146,
-0.05274620279669762,
-0.18448825180530548,
0.395736962556839,
0.6384895443916321,
0.3486223518848419,
-0.4021952450275421,
-0.19086380302906036,
-0.7238463163375854,
0.05981091782450676,
-0.4783253073692322,
-0.2568788528442383,
0.5058494806289673,
-0.07415714114904404,
0.10183113813400269,
0.3912001848220825,
-0.09394150972366333,
0.25254711508750916,
0.18576467037200928,
0.2951027452945709,
-0.26200026273727417,
-0.25890934467315674,
0.41634541749954224,
0.20900419354438782,
-0.17860165238380432,
-0.49365872144699097,
-0.010534394532442093,
0.04262373596429825,
-0.09226173162460327,
-0.1824914813041687,
0.04175552725791931,
0.14125730097293854,
0.37909236550331116,
0.19336551427841187,
0.058411628007888794,
0.7760933637619019,
-0.025724146515130997,
-0.06480145454406738,
-0.0789833664894104,
-0.6323986053466797,
-0.05423622950911522,
0.06052057072520256,
0.0649561658501625,
0.12961967289447784,
-0.1022133082151413,
-0.11268502473831177,
-0.3824729323387146,
0.30613991618156433,
-0.1255754828453064,
-0.14835204184055328,
-0.2318842113018036,
-0.004363980144262314,
-0.05085030198097229,
-0.06284922361373901,
-0.028133386746048927,
0.06108856201171875,
0.12244828045368195,
0.3552178144454956,
-0.1259649693965912,
-0.22627849876880646,
0.39892512559890747,
-0.05346272140741348,
-0.4505837559700012,
0.07258260250091553,
-0.11923085153102875,
0.33506593108177185,
-0.21185745298862457,
-0.46142464876174927,
0.1921405792236328,
0.2282823771238327,
-0.14500659704208374,
-0.3645921051502228,
0.03540423512458801,
0.1440645009279251,
0.10550932586193085,
-0.11913533508777618,
0.6080465316772461,
0.006814347580075264,
-0.1588616967201233,
0.1072712242603302,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hi ! Thanks for reporting @adzcodez
> @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
>
> The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
You're right: "_" should be added to the list of labels, and the examples must be sequences of tokens, not singles tokens.
| Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 66 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
Hi ! Thanks for reporting @adzcodez
> @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
>
> The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
You're right: "_" should be added to the list of labels, and the examples must be sequences of tokens, not singles tokens.
| [
-0.3464028239250183,
-0.07528606057167053,
0.0026139914989471436,
0.44439059495925903,
0.3713299632072449,
0.06911926716566086,
0.24056847393512726,
0.039474863559007645,
0.5101776123046875,
0.2061244547367096,
-0.3589053750038147,
0.0527050755918026,
0.08609610050916672,
0.08086623251438141,
0.11441273242235184,
-0.315104216337204,
-0.060249365866184235,
0.01735594868659973,
-0.2503676116466522,
-0.06550413370132446,
-0.4105169475078583,
-0.062326230108737946,
-0.3046581745147705,
0.10954275727272034,
-0.17110338807106018,
0.2064579427242279,
0.014145230874419212,
0.16473406553268433,
-0.3150220811367035,
-0.4950214922428131,
0.5633593797683716,
0.018032986670732498,
0.580074667930603,
0.22132200002670288,
-0.00012534325651358813,
0.10603812336921692,
0.48617953062057495,
-0.06130558252334595,
-0.3452346622943878,
-0.4049581289291382,
-0.4189884662628174,
-0.13159717619419098,
-0.06906154751777649,
-0.09646499156951904,
0.10452776402235031,
-0.004398699849843979,
-0.08233404159545898,
-0.25856220722198486,
0.3321027159690857,
0.3678755760192871,
0.09417024254798889,
0.3720284104347229,
0.06185785308480263,
-0.22116561233997345,
0.4757198095321655,
-0.04227049648761749,
-0.14890815317630768,
0.15637384355068207,
0.4271000921726227,
-0.3246816396713257,
0.18014493584632874,
0.12462508678436279,
-0.2091396450996399,
0.2249169945716858,
-0.16371798515319824,
0.05600592494010925,
0.1821347177028656,
-0.25835084915161133,
0.23912492394447327,
0.13496527075767517,
0.8412338495254517,
-0.15123888850212097,
-0.4147815406322479,
0.018238812685012817,
-0.10140588134527206,
-0.3554820120334625,
0.1830143928527832,
0.0008577331900596619,
-0.05788682773709297,
0.07884141802787781,
-0.07679980248212814,
-0.06024165078997612,
0.05037610977888107,
0.2890728712081909,
-0.1434582769870758,
0.29103606939315796,
0.05412067472934723,
0.13386094570159912,
0.32395151257514954,
-0.10892046988010406,
0.4901406168937683,
0.09794213622808456,
-0.07307194173336029,
0.2410603016614914,
-0.3231162130832672,
0.28653162717819214,
-0.07560459524393082,
-0.3037877380847931,
0.23896461725234985,
-0.10459820926189423,
-0.1012071892619133,
0.003955399617552757,
-0.1443653106689453,
0.3295554518699646,
0.4467029273509979,
0.2585928738117218,
0.3614311218261719,
0.2899972200393677,
0.10725359618663788,
0.15876832604408264,
-0.05657333508133888,
-0.06338665634393692,
-0.4474612772464752,
-0.21606256067752838,
0.08579239249229431,
-0.027129679918289185,
0.1571706384420395,
-0.4506188929080963,
-0.5827978849411011,
0.0448346771299839,
-0.16290169954299927,
-0.2178834229707718,
0.05834992974996567,
0.268889844417572,
0.1545642614364624,
0.4297794699668884,
0.04586201161146164,
0.4458411931991577,
-0.4962792694568634,
-0.2659803330898285,
-0.054423872381448746,
0.16876274347305298,
-0.418963760137558,
0.05851322412490845,
0.1439429223537445,
0.005287432111799717,
0.21485772728919983,
0.016775663942098618,
0.26567405462265015,
-0.2452537715435028,
0.12882864475250244,
-0.23588599264621735,
-0.24442091584205627,
0.3540518879890442,
0.31052419543266296,
0.12189800292253494,
0.2711304724216461,
-0.3746756911277771,
-0.07859884947538376,
0.28915587067604065,
-0.2225111722946167,
-0.23501180112361908,
0.09094390273094177,
0.03285486251115799,
-0.17969144880771637,
0.05502007156610489,
-1.0357831716537476,
-0.07645747065544128,
0.08510333299636841,
0.10693272948265076,
-0.01550871878862381,
-0.27552980184555054,
-0.17121097445487976,
0.0025960211642086506,
0.2848057448863983,
0.5355798602104187,
-0.2868717312812805,
-0.04640630632638931,
-0.14083968102931976,
-0.040089841932058334,
0.3355933129787445,
0.36130860447883606,
-0.3357945680618286,
0.07375471293926239,
-0.12798485159873962,
0.10571162402629852,
0.1982138305902481,
-0.5150753855705261,
-0.48036548495292664,
0.16409717500209808,
0.05092816799879074,
-0.016187921166419983,
-0.08576121181249619,
-0.3274516761302948,
0.23931744694709778,
0.035720884799957275,
0.19531255960464478,
0.25892454385757446,
0.05809744447469711,
-0.09088724851608276,
-0.17510159313678741,
-0.09859490394592285,
0.13611334562301636,
0.42719152569770813,
0.2911245822906494,
0.14539946615695953,
0.261487752199173,
0.43923667073249817,
0.04362144321203232,
0.01657552644610405,
0.013182567432522774,
0.3216630816459656,
0.033360160887241364,
0.09020183235406876,
0.0362410694360733,
-0.059344224631786346,
-0.4222901463508606,
0.20219746232032776,
-0.09309966117143631,
-0.04537065327167511,
0.09755406528711319,
0.18124040961265564,
-0.38971132040023804,
0.12302250415086746,
-0.32474470138549805,
-0.3197048604488373,
-0.09428943693637848,
0.08660367131233215,
-0.09641386568546295,
-0.08180838823318481,
-0.16980037093162537,
0.0806679055094719,
-0.07154867053031921,
0.11032024770975113,
-0.3754516541957855,
0.41911986470222473,
0.04957811161875725,
-0.06489023566246033,
0.08072341233491898,
0.2063005268573761,
0.22998031973838806,
-0.12607955932617188,
-0.17538145184516907,
0.18774259090423584,
0.6032570004463196,
-0.17918293178081512,
0.13573673367500305,
-0.04410405457019806,
0.30425789952278137,
-0.38856959342956543,
0.19620245695114136,
-0.02738191932439804,
0.11872155964374542,
0.11306465417146683,
0.05982999503612518,
0.25418931245803833,
-0.03597499802708626,
0.18406414985656738,
-0.1281910240650177,
0.12247242778539658,
0.38742682337760925,
0.0022268146276474,
0.06135951727628708,
-0.2924950122833252,
0.5102492570877075,
0.3250284492969513,
0.31844180822372437,
0.05247960984706879,
-0.14598581194877625,
-0.22427299618721008,
-0.11093059182167053,
-0.15163011848926544,
0.0816720649600029,
0.15156984329223633,
-0.22369930148124695,
0.04447571933269501,
0.20372247695922852,
0.23733557760715485,
0.3294333219528198,
0.021466899663209915,
0.07584664970636368,
-0.046803779900074005,
0.023762982338666916,
0.07017713785171509,
-0.009797409176826477,
-0.07181696593761444,
-0.10157620906829834,
0.06444094330072403,
0.0008366899564862251,
-0.20575790107250214,
-0.22481146454811096,
0.07293929159641266,
0.23779690265655518,
0.42306941747665405,
-0.30031612515449524,
0.04732169210910797,
-0.4231780171394348,
-0.15952914953231812,
0.138996884226799,
-0.08027908951044083,
-0.03873128816485405,
-0.14833737909793854,
-0.3189132809638977,
0.277815043926239,
0.3382664620876312,
0.128822460770607,
0.10790929198265076,
-0.23986206948757172,
-0.024733057245612144,
-0.20222771167755127,
0.16747762262821198,
-0.19168327748775482,
-0.13632401823997498,
-0.11427716910839081,
0.23435357213020325,
0.17310655117034912,
0.09740985929965973,
-0.3408336639404297,
-0.04541358724236488,
-0.23199748992919922,
-0.055594682693481445,
0.23203113675117493,
-0.0026652254164218903,
0.30958691239356995,
-0.07700002193450928,
0.14246349036693573,
-0.3586759567260742,
0.03647242859005928,
0.36613908410072327,
0.021217385306954384,
-0.16787949204444885,
0.2677282691001892,
-0.012351643294095993,
-0.125104621052742,
0.023681312799453735,
-0.147312194108963,
-0.2998107969760895,
-0.20938506722450256,
0.01712195575237274,
0.04826558008790016,
0.023905020207166672,
-0.0471152625977993,
0.039598893374204636,
0.03805019333958626,
0.1774880737066269,
-0.17492930591106415,
-0.34034401178359985,
-0.43195754289627075,
0.4691961109638214,
-0.2710251808166504,
-0.24750037491321564,
0.08169719576835632,
0.04735609143972397,
0.2014109045267105,
0.3418823480606079,
-0.4603409767150879,
-0.07378599792718887,
-0.11739248037338257,
0.1646256446838379,
0.07586102187633514,
0.18649393320083618,
0.04696757718920708,
-0.1311488151550293,
0.15852028131484985,
-0.07704127579927444,
-0.3395666480064392,
-0.10581129044294357,
0.24256372451782227,
0.257839173078537,
-0.10521651059389114,
0.448356956243515,
-0.25083813071250916,
0.2393931746482849,
-0.012946171686053276,
0.2891105115413666,
0.5426398515701294,
-0.08933348953723907,
0.15291233360767365,
-0.3217941224575043,
-0.3143521249294281,
-0.09971156716346741,
-0.19487524032592773,
-0.1389908790588379,
0.04835686460137367,
0.026965871453285217,
-0.14914584159851074,
-0.27067461609840393,
-0.05290781706571579,
-0.08796091377735138,
-0.17469948530197144,
-0.055343374609947205,
-0.0693778246641159,
0.32938510179519653,
-0.05049314722418785,
0.27914959192276,
0.013617167249321938,
-0.040418773889541626,
-0.15393957495689392,
0.22464236617088318,
0.12359979748725891,
0.22255197167396545,
-0.3244822025299072,
0.10718445479869843,
-0.27057674527168274,
0.3529711961746216,
-0.040787916630506516,
0.7153810262680054,
-0.14472714066505432,
0.32613223791122437,
0.1128171905875206,
0.03812679648399353,
0.10555648058652878,
-0.29159682989120483,
0.11078022420406342,
0.0259101502597332,
-0.4394381642341614,
-0.057181619107723236,
-0.03271950036287308,
-0.04879242554306984,
-0.06406994163990021,
-0.029191527515649796,
0.26154035329818726,
-0.2473839819431305,
-0.10460547357797623,
-0.021286532282829285,
0.3048669695854187,
-0.04211368039250374,
-0.24261850118637085,
-0.3949684500694275,
-0.5412185788154602,
-0.43925049901008606,
-0.18904918432235718,
0.14653024077415466,
0.15771298110485077,
-0.0798717811703682,
0.20453967154026031,
-0.15882903337478638,
0.10533053427934647,
0.22422954440116882,
0.08409182727336884,
0.27255916595458984,
-0.033014483749866486,
0.15348711609840393,
0.26823359727859497,
-0.16656094789505005,
0.7140192985534668,
0.779288113117218,
-0.16547273099422455,
-0.35192230343818665,
0.25312379002571106,
-0.07656987756490707,
0.021768897771835327,
-0.05635666847229004,
-0.026279307901859283,
0.04735944792628288,
-0.19933469593524933,
-0.17018285393714905,
-0.04642147570848465,
0.1983218789100647,
0.19671933352947235,
0.15442349016666412,
-0.2928839921951294,
-0.753265917301178,
0.523123025894165,
0.07335086166858673,
0.11949123442173004,
0.2948044538497925,
-0.09946593642234802,
-0.18771134316921234,
0.26917725801467896,
0.10974039137363434,
0.7309184670448303,
-0.4024430513381958,
0.06639973819255829,
0.12552528083324432,
0.039054207503795624,
0.09694725275039673,
-0.0389399491250515,
-0.25493794679641724,
-0.18996380269527435,
-0.21341681480407715,
-0.1464371681213379,
-0.1630650907754898,
0.2815142869949341,
0.15234126150608063,
-0.07434465736150742,
0.2819465100765228,
-0.1734500378370285,
-0.028556454926729202,
0.23774771392345428,
0.11795353889465332,
-0.0852738544344902,
-0.3346666097640991,
-0.5701631903648376,
0.0695265382528305,
-0.17449241876602173,
0.21966426074504852,
-0.022928394377231598,
0.044626183807849884,
-0.077088862657547,
-0.05582097917795181,
-0.39172977209091187,
0.3648407459259033,
-0.27481821179389954,
0.3384893536567688,
-0.13014841079711914,
-0.3494688868522644,
0.18923400342464447,
0.4507750868797302,
0.22845673561096191,
0.14010925590991974,
-0.15276694297790527,
0.07425986230373383,
0.2642703056335449,
-0.25238338112831116,
-0.03045213781297207,
-0.10021749883890152,
-0.06935576349496841,
-0.02304328791797161,
-0.2731991410255432,
0.1419648379087448,
-0.0702483206987381,
-0.2247539460659027,
-0.07429366558790207,
0.13919124007225037,
0.02874213084578514,
-0.09943048655986786,
-0.3413548767566681,
-0.07189036905765533,
0.03511865809559822,
-0.16433051228523254,
-0.006722437217831612,
0.20912578701972961,
-0.09398028254508972,
0.011095643043518066,
0.057148635387420654,
-0.33624082803726196,
0.020826473832130432,
0.4598698616027832,
-0.06713658571243286,
-0.10354234278202057,
0.5126204490661621,
0.22076405584812164,
-0.205333411693573,
-0.1291891634464264,
0.2668747007846832,
0.3432776629924774,
-0.24352452158927917,
0.024793973192572594,
-0.10152847319841385,
0.12263812124729156,
0.01696511171758175,
0.019083619117736816,
0.23217599093914032,
-0.3506092131137848,
0.35660767555236816,
-0.5912503004074097,
-0.37390556931495667,
0.1904154121875763,
-0.18425250053405762,
0.02091055177152157,
-0.023007726296782494,
0.011408803053200245,
-0.15387099981307983,
-0.08554095774888992,
-0.11315371096134186,
0.11046434938907623,
-0.35552889108657837,
0.05317562073469162,
0.23331134021282196,
-0.0038373135030269623,
0.026617681607604027,
-0.17022112011909485,
0.008407408371567726,
0.13824684917926788,
0.03584548830986023,
-0.03853178769350052,
-0.1823159009218216,
0.21420980989933014,
0.1291014701128006,
-0.3466271162033081,
0.009542069397866726,
-0.2173154503107071,
-0.04067813977599144,
-0.14563490450382233,
0.17523425817489624,
0.4642309546470642,
-0.05088555067777634,
0.11629156768321991,
0.20204491913318634,
0.11926467716693878,
-0.3610048294067383,
0.3773384392261505,
-0.05974675714969635,
0.2192406952381134,
0.10528101027011871,
0.19968557357788086,
0.2261877954006195,
0.12845376133918762,
-0.2986389994621277,
-0.09186027199029922,
0.2543622553348541,
-0.020749665796756744,
0.27848759293556213,
-0.4246545433998108,
0.3846977949142456,
0.09340260922908783,
0.13926929235458374,
0.442362904548645,
-0.27087053656578064,
0.06683043390512466,
0.322624146938324,
0.027771804481744766,
-0.23967833817005157,
-0.10680226236581802,
0.1143147349357605,
0.05672340840101242,
-0.13262510299682617,
0.3174366354942322,
0.3981635868549347,
0.06588330864906311,
-0.14058342576026917,
0.03662309795618057,
0.06292088329792023,
-0.14363792538642883,
0.0519925057888031,
0.6180887818336487,
0.018257740885019302,
0.21215331554412842,
0.06275132298469543,
0.22510550916194916,
-0.026153139770030975,
0.33312469720840454,
-0.15771716833114624,
0.4461427628993988,
0.21345624327659607,
0.19085948169231415,
-0.32778093218803406,
-0.5346594452857971,
-0.16996917128562927,
0.3204801678657532,
0.09440187364816666,
-0.025712601840496063,
-0.20863986015319824,
0.2422645092010498,
-0.1822718381881714,
0.15879718959331512,
-0.06975626945495605,
0.13053736090660095,
-0.03403589874505997,
-0.18388520181179047,
-0.13292241096496582,
-0.1520826816558838,
-0.5502746105194092,
0.1870923489332199,
-0.2470209300518036,
-0.12653879821300507,
0.19390413165092468,
0.15689663589000702,
-0.1329805701971054,
-0.3558679521083832,
-0.0509607270359993,
0.37732478976249695,
-0.3437860310077667,
-0.34007203578948975,
0.3964485824108124,
0.01772678643465042,
0.017270401120185852,
0.24953226745128632,
0.1393803060054779,
0.33069872856140137,
0.42049992084503174,
-0.36088794469833374,
-0.11548610776662827,
0.06133898347616196,
0.07740134000778198,
0.07656560093164444,
0.19793154299259186,
0.01955258846282959,
0.20653848350048065,
0.3709862232208252,
-0.01140954066067934,
-0.013940691947937012,
-0.03165790066123009,
0.15727050602436066,
-0.2297258824110031,
-0.08797694742679596,
0.22997435927391052,
-0.048160746693611145,
0.19987672567367554,
-0.11763764917850494,
0.024509981274604797,
-0.24237403273582458,
0.021785765886306763,
0.5751784443855286,
0.010339571163058281,
0.10682898759841919,
0.05929211527109146,
-0.05274620279669762,
-0.18448825180530548,
0.395736962556839,
0.6384895443916321,
0.3486223518848419,
-0.4021952450275421,
-0.19086380302906036,
-0.7238463163375854,
0.05981091782450676,
-0.4783253073692322,
-0.2568788528442383,
0.5058494806289673,
-0.07415714114904404,
0.10183113813400269,
0.3912001848220825,
-0.09394150972366333,
0.25254711508750916,
0.18576467037200928,
0.2951027452945709,
-0.26200026273727417,
-0.25890934467315674,
0.41634541749954224,
0.20900419354438782,
-0.17860165238380432,
-0.49365872144699097,
-0.010534394532442093,
0.04262373596429825,
-0.09226173162460327,
-0.1824914813041687,
0.04175552725791931,
0.14125730097293854,
0.37909236550331116,
0.19336551427841187,
0.058411628007888794,
0.7760933637619019,
-0.025724146515130997,
-0.06480145454406738,
-0.0789833664894104,
-0.6323986053466797,
-0.05423622950911522,
0.06052057072520256,
0.0649561658501625,
0.12961967289447784,
-0.1022133082151413,
-0.11268502473831177,
-0.3824729323387146,
0.30613991618156433,
-0.1255754828453064,
-0.14835204184055328,
-0.2318842113018036,
-0.004363980144262314,
-0.05085030198097229,
-0.06284922361373901,
-0.028133386746048927,
0.06108856201171875,
0.12244828045368195,
0.3552178144454956,
-0.1259649693965912,
-0.22627849876880646,
0.39892512559890747,
-0.05346272140741348,
-0.4505837559700012,
0.07258260250091553,
-0.11923085153102875,
0.33506593108177185,
-0.21185745298862457,
-0.46142464876174927,
0.1921405792236328,
0.2282823771238327,
-0.14500659704208374,
-0.3645921051502228,
0.03540423512458801,
0.1440645009279251,
0.10550932586193085,
-0.11913533508777618,
0.6080465316772461,
0.006814347580075264,
-0.1588616967201233,
0.1072712242603302,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | Cannot load udpos subsets from xtreme dataset using load_dataset() | @lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this.
To resolve it, the user should:
1. add `"_"` to the list of labels
2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204))
3. update the dummy data
4. update the dataset info
5. [optional] add info about the data fields structure of the udpos subset to the dataset readme | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 84 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
@lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this.
To resolve it, the user should:
1. add `"_"` to the list of labels
2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204))
3. update the dummy data
4. update the dataset info
5. [optional] add info about the data fields structure of the udpos subset to the dataset readme | [
-0.3464028239250183,
-0.07528606057167053,
0.0026139914989471436,
0.44439059495925903,
0.3713299632072449,
0.06911926716566086,
0.24056847393512726,
0.039474863559007645,
0.5101776123046875,
0.2061244547367096,
-0.3589053750038147,
0.0527050755918026,
0.08609610050916672,
0.08086623251438141,
0.11441273242235184,
-0.315104216337204,
-0.060249365866184235,
0.01735594868659973,
-0.2503676116466522,
-0.06550413370132446,
-0.4105169475078583,
-0.062326230108737946,
-0.3046581745147705,
0.10954275727272034,
-0.17110338807106018,
0.2064579427242279,
0.014145230874419212,
0.16473406553268433,
-0.3150220811367035,
-0.4950214922428131,
0.5633593797683716,
0.018032986670732498,
0.580074667930603,
0.22132200002670288,
-0.00012534325651358813,
0.10603812336921692,
0.48617953062057495,
-0.06130558252334595,
-0.3452346622943878,
-0.4049581289291382,
-0.4189884662628174,
-0.13159717619419098,
-0.06906154751777649,
-0.09646499156951904,
0.10452776402235031,
-0.004398699849843979,
-0.08233404159545898,
-0.25856220722198486,
0.3321027159690857,
0.3678755760192871,
0.09417024254798889,
0.3720284104347229,
0.06185785308480263,
-0.22116561233997345,
0.4757198095321655,
-0.04227049648761749,
-0.14890815317630768,
0.15637384355068207,
0.4271000921726227,
-0.3246816396713257,
0.18014493584632874,
0.12462508678436279,
-0.2091396450996399,
0.2249169945716858,
-0.16371798515319824,
0.05600592494010925,
0.1821347177028656,
-0.25835084915161133,
0.23912492394447327,
0.13496527075767517,
0.8412338495254517,
-0.15123888850212097,
-0.4147815406322479,
0.018238812685012817,
-0.10140588134527206,
-0.3554820120334625,
0.1830143928527832,
0.0008577331900596619,
-0.05788682773709297,
0.07884141802787781,
-0.07679980248212814,
-0.06024165078997612,
0.05037610977888107,
0.2890728712081909,
-0.1434582769870758,
0.29103606939315796,
0.05412067472934723,
0.13386094570159912,
0.32395151257514954,
-0.10892046988010406,
0.4901406168937683,
0.09794213622808456,
-0.07307194173336029,
0.2410603016614914,
-0.3231162130832672,
0.28653162717819214,
-0.07560459524393082,
-0.3037877380847931,
0.23896461725234985,
-0.10459820926189423,
-0.1012071892619133,
0.003955399617552757,
-0.1443653106689453,
0.3295554518699646,
0.4467029273509979,
0.2585928738117218,
0.3614311218261719,
0.2899972200393677,
0.10725359618663788,
0.15876832604408264,
-0.05657333508133888,
-0.06338665634393692,
-0.4474612772464752,
-0.21606256067752838,
0.08579239249229431,
-0.027129679918289185,
0.1571706384420395,
-0.4506188929080963,
-0.5827978849411011,
0.0448346771299839,
-0.16290169954299927,
-0.2178834229707718,
0.05834992974996567,
0.268889844417572,
0.1545642614364624,
0.4297794699668884,
0.04586201161146164,
0.4458411931991577,
-0.4962792694568634,
-0.2659803330898285,
-0.054423872381448746,
0.16876274347305298,
-0.418963760137558,
0.05851322412490845,
0.1439429223537445,
0.005287432111799717,
0.21485772728919983,
0.016775663942098618,
0.26567405462265015,
-0.2452537715435028,
0.12882864475250244,
-0.23588599264621735,
-0.24442091584205627,
0.3540518879890442,
0.31052419543266296,
0.12189800292253494,
0.2711304724216461,
-0.3746756911277771,
-0.07859884947538376,
0.28915587067604065,
-0.2225111722946167,
-0.23501180112361908,
0.09094390273094177,
0.03285486251115799,
-0.17969144880771637,
0.05502007156610489,
-1.0357831716537476,
-0.07645747065544128,
0.08510333299636841,
0.10693272948265076,
-0.01550871878862381,
-0.27552980184555054,
-0.17121097445487976,
0.0025960211642086506,
0.2848057448863983,
0.5355798602104187,
-0.2868717312812805,
-0.04640630632638931,
-0.14083968102931976,
-0.040089841932058334,
0.3355933129787445,
0.36130860447883606,
-0.3357945680618286,
0.07375471293926239,
-0.12798485159873962,
0.10571162402629852,
0.1982138305902481,
-0.5150753855705261,
-0.48036548495292664,
0.16409717500209808,
0.05092816799879074,
-0.016187921166419983,
-0.08576121181249619,
-0.3274516761302948,
0.23931744694709778,
0.035720884799957275,
0.19531255960464478,
0.25892454385757446,
0.05809744447469711,
-0.09088724851608276,
-0.17510159313678741,
-0.09859490394592285,
0.13611334562301636,
0.42719152569770813,
0.2911245822906494,
0.14539946615695953,
0.261487752199173,
0.43923667073249817,
0.04362144321203232,
0.01657552644610405,
0.013182567432522774,
0.3216630816459656,
0.033360160887241364,
0.09020183235406876,
0.0362410694360733,
-0.059344224631786346,
-0.4222901463508606,
0.20219746232032776,
-0.09309966117143631,
-0.04537065327167511,
0.09755406528711319,
0.18124040961265564,
-0.38971132040023804,
0.12302250415086746,
-0.32474470138549805,
-0.3197048604488373,
-0.09428943693637848,
0.08660367131233215,
-0.09641386568546295,
-0.08180838823318481,
-0.16980037093162537,
0.0806679055094719,
-0.07154867053031921,
0.11032024770975113,
-0.3754516541957855,
0.41911986470222473,
0.04957811161875725,
-0.06489023566246033,
0.08072341233491898,
0.2063005268573761,
0.22998031973838806,
-0.12607955932617188,
-0.17538145184516907,
0.18774259090423584,
0.6032570004463196,
-0.17918293178081512,
0.13573673367500305,
-0.04410405457019806,
0.30425789952278137,
-0.38856959342956543,
0.19620245695114136,
-0.02738191932439804,
0.11872155964374542,
0.11306465417146683,
0.05982999503612518,
0.25418931245803833,
-0.03597499802708626,
0.18406414985656738,
-0.1281910240650177,
0.12247242778539658,
0.38742682337760925,
0.0022268146276474,
0.06135951727628708,
-0.2924950122833252,
0.5102492570877075,
0.3250284492969513,
0.31844180822372437,
0.05247960984706879,
-0.14598581194877625,
-0.22427299618721008,
-0.11093059182167053,
-0.15163011848926544,
0.0816720649600029,
0.15156984329223633,
-0.22369930148124695,
0.04447571933269501,
0.20372247695922852,
0.23733557760715485,
0.3294333219528198,
0.021466899663209915,
0.07584664970636368,
-0.046803779900074005,
0.023762982338666916,
0.07017713785171509,
-0.009797409176826477,
-0.07181696593761444,
-0.10157620906829834,
0.06444094330072403,
0.0008366899564862251,
-0.20575790107250214,
-0.22481146454811096,
0.07293929159641266,
0.23779690265655518,
0.42306941747665405,
-0.30031612515449524,
0.04732169210910797,
-0.4231780171394348,
-0.15952914953231812,
0.138996884226799,
-0.08027908951044083,
-0.03873128816485405,
-0.14833737909793854,
-0.3189132809638977,
0.277815043926239,
0.3382664620876312,
0.128822460770607,
0.10790929198265076,
-0.23986206948757172,
-0.024733057245612144,
-0.20222771167755127,
0.16747762262821198,
-0.19168327748775482,
-0.13632401823997498,
-0.11427716910839081,
0.23435357213020325,
0.17310655117034912,
0.09740985929965973,
-0.3408336639404297,
-0.04541358724236488,
-0.23199748992919922,
-0.055594682693481445,
0.23203113675117493,
-0.0026652254164218903,
0.30958691239356995,
-0.07700002193450928,
0.14246349036693573,
-0.3586759567260742,
0.03647242859005928,
0.36613908410072327,
0.021217385306954384,
-0.16787949204444885,
0.2677282691001892,
-0.012351643294095993,
-0.125104621052742,
0.023681312799453735,
-0.147312194108963,
-0.2998107969760895,
-0.20938506722450256,
0.01712195575237274,
0.04826558008790016,
0.023905020207166672,
-0.0471152625977993,
0.039598893374204636,
0.03805019333958626,
0.1774880737066269,
-0.17492930591106415,
-0.34034401178359985,
-0.43195754289627075,
0.4691961109638214,
-0.2710251808166504,
-0.24750037491321564,
0.08169719576835632,
0.04735609143972397,
0.2014109045267105,
0.3418823480606079,
-0.4603409767150879,
-0.07378599792718887,
-0.11739248037338257,
0.1646256446838379,
0.07586102187633514,
0.18649393320083618,
0.04696757718920708,
-0.1311488151550293,
0.15852028131484985,
-0.07704127579927444,
-0.3395666480064392,
-0.10581129044294357,
0.24256372451782227,
0.257839173078537,
-0.10521651059389114,
0.448356956243515,
-0.25083813071250916,
0.2393931746482849,
-0.012946171686053276,
0.2891105115413666,
0.5426398515701294,
-0.08933348953723907,
0.15291233360767365,
-0.3217941224575043,
-0.3143521249294281,
-0.09971156716346741,
-0.19487524032592773,
-0.1389908790588379,
0.04835686460137367,
0.026965871453285217,
-0.14914584159851074,
-0.27067461609840393,
-0.05290781706571579,
-0.08796091377735138,
-0.17469948530197144,
-0.055343374609947205,
-0.0693778246641159,
0.32938510179519653,
-0.05049314722418785,
0.27914959192276,
0.013617167249321938,
-0.040418773889541626,
-0.15393957495689392,
0.22464236617088318,
0.12359979748725891,
0.22255197167396545,
-0.3244822025299072,
0.10718445479869843,
-0.27057674527168274,
0.3529711961746216,
-0.040787916630506516,
0.7153810262680054,
-0.14472714066505432,
0.32613223791122437,
0.1128171905875206,
0.03812679648399353,
0.10555648058652878,
-0.29159682989120483,
0.11078022420406342,
0.0259101502597332,
-0.4394381642341614,
-0.057181619107723236,
-0.03271950036287308,
-0.04879242554306984,
-0.06406994163990021,
-0.029191527515649796,
0.26154035329818726,
-0.2473839819431305,
-0.10460547357797623,
-0.021286532282829285,
0.3048669695854187,
-0.04211368039250374,
-0.24261850118637085,
-0.3949684500694275,
-0.5412185788154602,
-0.43925049901008606,
-0.18904918432235718,
0.14653024077415466,
0.15771298110485077,
-0.0798717811703682,
0.20453967154026031,
-0.15882903337478638,
0.10533053427934647,
0.22422954440116882,
0.08409182727336884,
0.27255916595458984,
-0.033014483749866486,
0.15348711609840393,
0.26823359727859497,
-0.16656094789505005,
0.7140192985534668,
0.779288113117218,
-0.16547273099422455,
-0.35192230343818665,
0.25312379002571106,
-0.07656987756490707,
0.021768897771835327,
-0.05635666847229004,
-0.026279307901859283,
0.04735944792628288,
-0.19933469593524933,
-0.17018285393714905,
-0.04642147570848465,
0.1983218789100647,
0.19671933352947235,
0.15442349016666412,
-0.2928839921951294,
-0.753265917301178,
0.523123025894165,
0.07335086166858673,
0.11949123442173004,
0.2948044538497925,
-0.09946593642234802,
-0.18771134316921234,
0.26917725801467896,
0.10974039137363434,
0.7309184670448303,
-0.4024430513381958,
0.06639973819255829,
0.12552528083324432,
0.039054207503795624,
0.09694725275039673,
-0.0389399491250515,
-0.25493794679641724,
-0.18996380269527435,
-0.21341681480407715,
-0.1464371681213379,
-0.1630650907754898,
0.2815142869949341,
0.15234126150608063,
-0.07434465736150742,
0.2819465100765228,
-0.1734500378370285,
-0.028556454926729202,
0.23774771392345428,
0.11795353889465332,
-0.0852738544344902,
-0.3346666097640991,
-0.5701631903648376,
0.0695265382528305,
-0.17449241876602173,
0.21966426074504852,
-0.022928394377231598,
0.044626183807849884,
-0.077088862657547,
-0.05582097917795181,
-0.39172977209091187,
0.3648407459259033,
-0.27481821179389954,
0.3384893536567688,
-0.13014841079711914,
-0.3494688868522644,
0.18923400342464447,
0.4507750868797302,
0.22845673561096191,
0.14010925590991974,
-0.15276694297790527,
0.07425986230373383,
0.2642703056335449,
-0.25238338112831116,
-0.03045213781297207,
-0.10021749883890152,
-0.06935576349496841,
-0.02304328791797161,
-0.2731991410255432,
0.1419648379087448,
-0.0702483206987381,
-0.2247539460659027,
-0.07429366558790207,
0.13919124007225037,
0.02874213084578514,
-0.09943048655986786,
-0.3413548767566681,
-0.07189036905765533,
0.03511865809559822,
-0.16433051228523254,
-0.006722437217831612,
0.20912578701972961,
-0.09398028254508972,
0.011095643043518066,
0.057148635387420654,
-0.33624082803726196,
0.020826473832130432,
0.4598698616027832,
-0.06713658571243286,
-0.10354234278202057,
0.5126204490661621,
0.22076405584812164,
-0.205333411693573,
-0.1291891634464264,
0.2668747007846832,
0.3432776629924774,
-0.24352452158927917,
0.024793973192572594,
-0.10152847319841385,
0.12263812124729156,
0.01696511171758175,
0.019083619117736816,
0.23217599093914032,
-0.3506092131137848,
0.35660767555236816,
-0.5912503004074097,
-0.37390556931495667,
0.1904154121875763,
-0.18425250053405762,
0.02091055177152157,
-0.023007726296782494,
0.011408803053200245,
-0.15387099981307983,
-0.08554095774888992,
-0.11315371096134186,
0.11046434938907623,
-0.35552889108657837,
0.05317562073469162,
0.23331134021282196,
-0.0038373135030269623,
0.026617681607604027,
-0.17022112011909485,
0.008407408371567726,
0.13824684917926788,
0.03584548830986023,
-0.03853178769350052,
-0.1823159009218216,
0.21420980989933014,
0.1291014701128006,
-0.3466271162033081,
0.009542069397866726,
-0.2173154503107071,
-0.04067813977599144,
-0.14563490450382233,
0.17523425817489624,
0.4642309546470642,
-0.05088555067777634,
0.11629156768321991,
0.20204491913318634,
0.11926467716693878,
-0.3610048294067383,
0.3773384392261505,
-0.05974675714969635,
0.2192406952381134,
0.10528101027011871,
0.19968557357788086,
0.2261877954006195,
0.12845376133918762,
-0.2986389994621277,
-0.09186027199029922,
0.2543622553348541,
-0.020749665796756744,
0.27848759293556213,
-0.4246545433998108,
0.3846977949142456,
0.09340260922908783,
0.13926929235458374,
0.442362904548645,
-0.27087053656578064,
0.06683043390512466,
0.322624146938324,
0.027771804481744766,
-0.23967833817005157,
-0.10680226236581802,
0.1143147349357605,
0.05672340840101242,
-0.13262510299682617,
0.3174366354942322,
0.3981635868549347,
0.06588330864906311,
-0.14058342576026917,
0.03662309795618057,
0.06292088329792023,
-0.14363792538642883,
0.0519925057888031,
0.6180887818336487,
0.018257740885019302,
0.21215331554412842,
0.06275132298469543,
0.22510550916194916,
-0.026153139770030975,
0.33312469720840454,
-0.15771716833114624,
0.4461427628993988,
0.21345624327659607,
0.19085948169231415,
-0.32778093218803406,
-0.5346594452857971,
-0.16996917128562927,
0.3204801678657532,
0.09440187364816666,
-0.025712601840496063,
-0.20863986015319824,
0.2422645092010498,
-0.1822718381881714,
0.15879718959331512,
-0.06975626945495605,
0.13053736090660095,
-0.03403589874505997,
-0.18388520181179047,
-0.13292241096496582,
-0.1520826816558838,
-0.5502746105194092,
0.1870923489332199,
-0.2470209300518036,
-0.12653879821300507,
0.19390413165092468,
0.15689663589000702,
-0.1329805701971054,
-0.3558679521083832,
-0.0509607270359993,
0.37732478976249695,
-0.3437860310077667,
-0.34007203578948975,
0.3964485824108124,
0.01772678643465042,
0.017270401120185852,
0.24953226745128632,
0.1393803060054779,
0.33069872856140137,
0.42049992084503174,
-0.36088794469833374,
-0.11548610776662827,
0.06133898347616196,
0.07740134000778198,
0.07656560093164444,
0.19793154299259186,
0.01955258846282959,
0.20653848350048065,
0.3709862232208252,
-0.01140954066067934,
-0.013940691947937012,
-0.03165790066123009,
0.15727050602436066,
-0.2297258824110031,
-0.08797694742679596,
0.22997435927391052,
-0.048160746693611145,
0.19987672567367554,
-0.11763764917850494,
0.024509981274604797,
-0.24237403273582458,
0.021785765886306763,
0.5751784443855286,
0.010339571163058281,
0.10682898759841919,
0.05929211527109146,
-0.05274620279669762,
-0.18448825180530548,
0.395736962556839,
0.6384895443916321,
0.3486223518848419,
-0.4021952450275421,
-0.19086380302906036,
-0.7238463163375854,
0.05981091782450676,
-0.4783253073692322,
-0.2568788528442383,
0.5058494806289673,
-0.07415714114904404,
0.10183113813400269,
0.3912001848220825,
-0.09394150972366333,
0.25254711508750916,
0.18576467037200928,
0.2951027452945709,
-0.26200026273727417,
-0.25890934467315674,
0.41634541749954224,
0.20900419354438782,
-0.17860165238380432,
-0.49365872144699097,
-0.010534394532442093,
0.04262373596429825,
-0.09226173162460327,
-0.1824914813041687,
0.04175552725791931,
0.14125730097293854,
0.37909236550331116,
0.19336551427841187,
0.058411628007888794,
0.7760933637619019,
-0.025724146515130997,
-0.06480145454406738,
-0.0789833664894104,
-0.6323986053466797,
-0.05423622950911522,
0.06052057072520256,
0.0649561658501625,
0.12961967289447784,
-0.1022133082151413,
-0.11268502473831177,
-0.3824729323387146,
0.30613991618156433,
-0.1255754828453064,
-0.14835204184055328,
-0.2318842113018036,
-0.004363980144262314,
-0.05085030198097229,
-0.06284922361373901,
-0.028133386746048927,
0.06108856201171875,
0.12244828045368195,
0.3552178144454956,
-0.1259649693965912,
-0.22627849876880646,
0.39892512559890747,
-0.05346272140741348,
-0.4505837559700012,
0.07258260250091553,
-0.11923085153102875,
0.33506593108177185,
-0.21185745298862457,
-0.46142464876174927,
0.1921405792236328,
0.2282823771238327,
-0.14500659704208374,
-0.3645921051502228,
0.03540423512458801,
0.1440645009279251,
0.10550932586193085,
-0.11913533508777618,
0.6080465316772461,
0.006814347580075264,
-0.1588616967201233,
0.1072712242603302,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | Cannot load udpos subsets from xtreme dataset using load_dataset() | I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0"
I think somebody already fixed it. | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 21 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0"
I think somebody already fixed it. | [
-0.3464028239250183,
-0.07528606057167053,
0.0026139914989471436,
0.44439059495925903,
0.3713299632072449,
0.06911926716566086,
0.24056847393512726,
0.039474863559007645,
0.5101776123046875,
0.2061244547367096,
-0.3589053750038147,
0.0527050755918026,
0.08609610050916672,
0.08086623251438141,
0.11441273242235184,
-0.315104216337204,
-0.060249365866184235,
0.01735594868659973,
-0.2503676116466522,
-0.06550413370132446,
-0.4105169475078583,
-0.062326230108737946,
-0.3046581745147705,
0.10954275727272034,
-0.17110338807106018,
0.2064579427242279,
0.014145230874419212,
0.16473406553268433,
-0.3150220811367035,
-0.4950214922428131,
0.5633593797683716,
0.018032986670732498,
0.580074667930603,
0.22132200002670288,
-0.00012534325651358813,
0.10603812336921692,
0.48617953062057495,
-0.06130558252334595,
-0.3452346622943878,
-0.4049581289291382,
-0.4189884662628174,
-0.13159717619419098,
-0.06906154751777649,
-0.09646499156951904,
0.10452776402235031,
-0.004398699849843979,
-0.08233404159545898,
-0.25856220722198486,
0.3321027159690857,
0.3678755760192871,
0.09417024254798889,
0.3720284104347229,
0.06185785308480263,
-0.22116561233997345,
0.4757198095321655,
-0.04227049648761749,
-0.14890815317630768,
0.15637384355068207,
0.4271000921726227,
-0.3246816396713257,
0.18014493584632874,
0.12462508678436279,
-0.2091396450996399,
0.2249169945716858,
-0.16371798515319824,
0.05600592494010925,
0.1821347177028656,
-0.25835084915161133,
0.23912492394447327,
0.13496527075767517,
0.8412338495254517,
-0.15123888850212097,
-0.4147815406322479,
0.018238812685012817,
-0.10140588134527206,
-0.3554820120334625,
0.1830143928527832,
0.0008577331900596619,
-0.05788682773709297,
0.07884141802787781,
-0.07679980248212814,
-0.06024165078997612,
0.05037610977888107,
0.2890728712081909,
-0.1434582769870758,
0.29103606939315796,
0.05412067472934723,
0.13386094570159912,
0.32395151257514954,
-0.10892046988010406,
0.4901406168937683,
0.09794213622808456,
-0.07307194173336029,
0.2410603016614914,
-0.3231162130832672,
0.28653162717819214,
-0.07560459524393082,
-0.3037877380847931,
0.23896461725234985,
-0.10459820926189423,
-0.1012071892619133,
0.003955399617552757,
-0.1443653106689453,
0.3295554518699646,
0.4467029273509979,
0.2585928738117218,
0.3614311218261719,
0.2899972200393677,
0.10725359618663788,
0.15876832604408264,
-0.05657333508133888,
-0.06338665634393692,
-0.4474612772464752,
-0.21606256067752838,
0.08579239249229431,
-0.027129679918289185,
0.1571706384420395,
-0.4506188929080963,
-0.5827978849411011,
0.0448346771299839,
-0.16290169954299927,
-0.2178834229707718,
0.05834992974996567,
0.268889844417572,
0.1545642614364624,
0.4297794699668884,
0.04586201161146164,
0.4458411931991577,
-0.4962792694568634,
-0.2659803330898285,
-0.054423872381448746,
0.16876274347305298,
-0.418963760137558,
0.05851322412490845,
0.1439429223537445,
0.005287432111799717,
0.21485772728919983,
0.016775663942098618,
0.26567405462265015,
-0.2452537715435028,
0.12882864475250244,
-0.23588599264621735,
-0.24442091584205627,
0.3540518879890442,
0.31052419543266296,
0.12189800292253494,
0.2711304724216461,
-0.3746756911277771,
-0.07859884947538376,
0.28915587067604065,
-0.2225111722946167,
-0.23501180112361908,
0.09094390273094177,
0.03285486251115799,
-0.17969144880771637,
0.05502007156610489,
-1.0357831716537476,
-0.07645747065544128,
0.08510333299636841,
0.10693272948265076,
-0.01550871878862381,
-0.27552980184555054,
-0.17121097445487976,
0.0025960211642086506,
0.2848057448863983,
0.5355798602104187,
-0.2868717312812805,
-0.04640630632638931,
-0.14083968102931976,
-0.040089841932058334,
0.3355933129787445,
0.36130860447883606,
-0.3357945680618286,
0.07375471293926239,
-0.12798485159873962,
0.10571162402629852,
0.1982138305902481,
-0.5150753855705261,
-0.48036548495292664,
0.16409717500209808,
0.05092816799879074,
-0.016187921166419983,
-0.08576121181249619,
-0.3274516761302948,
0.23931744694709778,
0.035720884799957275,
0.19531255960464478,
0.25892454385757446,
0.05809744447469711,
-0.09088724851608276,
-0.17510159313678741,
-0.09859490394592285,
0.13611334562301636,
0.42719152569770813,
0.2911245822906494,
0.14539946615695953,
0.261487752199173,
0.43923667073249817,
0.04362144321203232,
0.01657552644610405,
0.013182567432522774,
0.3216630816459656,
0.033360160887241364,
0.09020183235406876,
0.0362410694360733,
-0.059344224631786346,
-0.4222901463508606,
0.20219746232032776,
-0.09309966117143631,
-0.04537065327167511,
0.09755406528711319,
0.18124040961265564,
-0.38971132040023804,
0.12302250415086746,
-0.32474470138549805,
-0.3197048604488373,
-0.09428943693637848,
0.08660367131233215,
-0.09641386568546295,
-0.08180838823318481,
-0.16980037093162537,
0.0806679055094719,
-0.07154867053031921,
0.11032024770975113,
-0.3754516541957855,
0.41911986470222473,
0.04957811161875725,
-0.06489023566246033,
0.08072341233491898,
0.2063005268573761,
0.22998031973838806,
-0.12607955932617188,
-0.17538145184516907,
0.18774259090423584,
0.6032570004463196,
-0.17918293178081512,
0.13573673367500305,
-0.04410405457019806,
0.30425789952278137,
-0.38856959342956543,
0.19620245695114136,
-0.02738191932439804,
0.11872155964374542,
0.11306465417146683,
0.05982999503612518,
0.25418931245803833,
-0.03597499802708626,
0.18406414985656738,
-0.1281910240650177,
0.12247242778539658,
0.38742682337760925,
0.0022268146276474,
0.06135951727628708,
-0.2924950122833252,
0.5102492570877075,
0.3250284492969513,
0.31844180822372437,
0.05247960984706879,
-0.14598581194877625,
-0.22427299618721008,
-0.11093059182167053,
-0.15163011848926544,
0.0816720649600029,
0.15156984329223633,
-0.22369930148124695,
0.04447571933269501,
0.20372247695922852,
0.23733557760715485,
0.3294333219528198,
0.021466899663209915,
0.07584664970636368,
-0.046803779900074005,
0.023762982338666916,
0.07017713785171509,
-0.009797409176826477,
-0.07181696593761444,
-0.10157620906829834,
0.06444094330072403,
0.0008366899564862251,
-0.20575790107250214,
-0.22481146454811096,
0.07293929159641266,
0.23779690265655518,
0.42306941747665405,
-0.30031612515449524,
0.04732169210910797,
-0.4231780171394348,
-0.15952914953231812,
0.138996884226799,
-0.08027908951044083,
-0.03873128816485405,
-0.14833737909793854,
-0.3189132809638977,
0.277815043926239,
0.3382664620876312,
0.128822460770607,
0.10790929198265076,
-0.23986206948757172,
-0.024733057245612144,
-0.20222771167755127,
0.16747762262821198,
-0.19168327748775482,
-0.13632401823997498,
-0.11427716910839081,
0.23435357213020325,
0.17310655117034912,
0.09740985929965973,
-0.3408336639404297,
-0.04541358724236488,
-0.23199748992919922,
-0.055594682693481445,
0.23203113675117493,
-0.0026652254164218903,
0.30958691239356995,
-0.07700002193450928,
0.14246349036693573,
-0.3586759567260742,
0.03647242859005928,
0.36613908410072327,
0.021217385306954384,
-0.16787949204444885,
0.2677282691001892,
-0.012351643294095993,
-0.125104621052742,
0.023681312799453735,
-0.147312194108963,
-0.2998107969760895,
-0.20938506722450256,
0.01712195575237274,
0.04826558008790016,
0.023905020207166672,
-0.0471152625977993,
0.039598893374204636,
0.03805019333958626,
0.1774880737066269,
-0.17492930591106415,
-0.34034401178359985,
-0.43195754289627075,
0.4691961109638214,
-0.2710251808166504,
-0.24750037491321564,
0.08169719576835632,
0.04735609143972397,
0.2014109045267105,
0.3418823480606079,
-0.4603409767150879,
-0.07378599792718887,
-0.11739248037338257,
0.1646256446838379,
0.07586102187633514,
0.18649393320083618,
0.04696757718920708,
-0.1311488151550293,
0.15852028131484985,
-0.07704127579927444,
-0.3395666480064392,
-0.10581129044294357,
0.24256372451782227,
0.257839173078537,
-0.10521651059389114,
0.448356956243515,
-0.25083813071250916,
0.2393931746482849,
-0.012946171686053276,
0.2891105115413666,
0.5426398515701294,
-0.08933348953723907,
0.15291233360767365,
-0.3217941224575043,
-0.3143521249294281,
-0.09971156716346741,
-0.19487524032592773,
-0.1389908790588379,
0.04835686460137367,
0.026965871453285217,
-0.14914584159851074,
-0.27067461609840393,
-0.05290781706571579,
-0.08796091377735138,
-0.17469948530197144,
-0.055343374609947205,
-0.0693778246641159,
0.32938510179519653,
-0.05049314722418785,
0.27914959192276,
0.013617167249321938,
-0.040418773889541626,
-0.15393957495689392,
0.22464236617088318,
0.12359979748725891,
0.22255197167396545,
-0.3244822025299072,
0.10718445479869843,
-0.27057674527168274,
0.3529711961746216,
-0.040787916630506516,
0.7153810262680054,
-0.14472714066505432,
0.32613223791122437,
0.1128171905875206,
0.03812679648399353,
0.10555648058652878,
-0.29159682989120483,
0.11078022420406342,
0.0259101502597332,
-0.4394381642341614,
-0.057181619107723236,
-0.03271950036287308,
-0.04879242554306984,
-0.06406994163990021,
-0.029191527515649796,
0.26154035329818726,
-0.2473839819431305,
-0.10460547357797623,
-0.021286532282829285,
0.3048669695854187,
-0.04211368039250374,
-0.24261850118637085,
-0.3949684500694275,
-0.5412185788154602,
-0.43925049901008606,
-0.18904918432235718,
0.14653024077415466,
0.15771298110485077,
-0.0798717811703682,
0.20453967154026031,
-0.15882903337478638,
0.10533053427934647,
0.22422954440116882,
0.08409182727336884,
0.27255916595458984,
-0.033014483749866486,
0.15348711609840393,
0.26823359727859497,
-0.16656094789505005,
0.7140192985534668,
0.779288113117218,
-0.16547273099422455,
-0.35192230343818665,
0.25312379002571106,
-0.07656987756490707,
0.021768897771835327,
-0.05635666847229004,
-0.026279307901859283,
0.04735944792628288,
-0.19933469593524933,
-0.17018285393714905,
-0.04642147570848465,
0.1983218789100647,
0.19671933352947235,
0.15442349016666412,
-0.2928839921951294,
-0.753265917301178,
0.523123025894165,
0.07335086166858673,
0.11949123442173004,
0.2948044538497925,
-0.09946593642234802,
-0.18771134316921234,
0.26917725801467896,
0.10974039137363434,
0.7309184670448303,
-0.4024430513381958,
0.06639973819255829,
0.12552528083324432,
0.039054207503795624,
0.09694725275039673,
-0.0389399491250515,
-0.25493794679641724,
-0.18996380269527435,
-0.21341681480407715,
-0.1464371681213379,
-0.1630650907754898,
0.2815142869949341,
0.15234126150608063,
-0.07434465736150742,
0.2819465100765228,
-0.1734500378370285,
-0.028556454926729202,
0.23774771392345428,
0.11795353889465332,
-0.0852738544344902,
-0.3346666097640991,
-0.5701631903648376,
0.0695265382528305,
-0.17449241876602173,
0.21966426074504852,
-0.022928394377231598,
0.044626183807849884,
-0.077088862657547,
-0.05582097917795181,
-0.39172977209091187,
0.3648407459259033,
-0.27481821179389954,
0.3384893536567688,
-0.13014841079711914,
-0.3494688868522644,
0.18923400342464447,
0.4507750868797302,
0.22845673561096191,
0.14010925590991974,
-0.15276694297790527,
0.07425986230373383,
0.2642703056335449,
-0.25238338112831116,
-0.03045213781297207,
-0.10021749883890152,
-0.06935576349496841,
-0.02304328791797161,
-0.2731991410255432,
0.1419648379087448,
-0.0702483206987381,
-0.2247539460659027,
-0.07429366558790207,
0.13919124007225037,
0.02874213084578514,
-0.09943048655986786,
-0.3413548767566681,
-0.07189036905765533,
0.03511865809559822,
-0.16433051228523254,
-0.006722437217831612,
0.20912578701972961,
-0.09398028254508972,
0.011095643043518066,
0.057148635387420654,
-0.33624082803726196,
0.020826473832130432,
0.4598698616027832,
-0.06713658571243286,
-0.10354234278202057,
0.5126204490661621,
0.22076405584812164,
-0.205333411693573,
-0.1291891634464264,
0.2668747007846832,
0.3432776629924774,
-0.24352452158927917,
0.024793973192572594,
-0.10152847319841385,
0.12263812124729156,
0.01696511171758175,
0.019083619117736816,
0.23217599093914032,
-0.3506092131137848,
0.35660767555236816,
-0.5912503004074097,
-0.37390556931495667,
0.1904154121875763,
-0.18425250053405762,
0.02091055177152157,
-0.023007726296782494,
0.011408803053200245,
-0.15387099981307983,
-0.08554095774888992,
-0.11315371096134186,
0.11046434938907623,
-0.35552889108657837,
0.05317562073469162,
0.23331134021282196,
-0.0038373135030269623,
0.026617681607604027,
-0.17022112011909485,
0.008407408371567726,
0.13824684917926788,
0.03584548830986023,
-0.03853178769350052,
-0.1823159009218216,
0.21420980989933014,
0.1291014701128006,
-0.3466271162033081,
0.009542069397866726,
-0.2173154503107071,
-0.04067813977599144,
-0.14563490450382233,
0.17523425817489624,
0.4642309546470642,
-0.05088555067777634,
0.11629156768321991,
0.20204491913318634,
0.11926467716693878,
-0.3610048294067383,
0.3773384392261505,
-0.05974675714969635,
0.2192406952381134,
0.10528101027011871,
0.19968557357788086,
0.2261877954006195,
0.12845376133918762,
-0.2986389994621277,
-0.09186027199029922,
0.2543622553348541,
-0.020749665796756744,
0.27848759293556213,
-0.4246545433998108,
0.3846977949142456,
0.09340260922908783,
0.13926929235458374,
0.442362904548645,
-0.27087053656578064,
0.06683043390512466,
0.322624146938324,
0.027771804481744766,
-0.23967833817005157,
-0.10680226236581802,
0.1143147349357605,
0.05672340840101242,
-0.13262510299682617,
0.3174366354942322,
0.3981635868549347,
0.06588330864906311,
-0.14058342576026917,
0.03662309795618057,
0.06292088329792023,
-0.14363792538642883,
0.0519925057888031,
0.6180887818336487,
0.018257740885019302,
0.21215331554412842,
0.06275132298469543,
0.22510550916194916,
-0.026153139770030975,
0.33312469720840454,
-0.15771716833114624,
0.4461427628993988,
0.21345624327659607,
0.19085948169231415,
-0.32778093218803406,
-0.5346594452857971,
-0.16996917128562927,
0.3204801678657532,
0.09440187364816666,
-0.025712601840496063,
-0.20863986015319824,
0.2422645092010498,
-0.1822718381881714,
0.15879718959331512,
-0.06975626945495605,
0.13053736090660095,
-0.03403589874505997,
-0.18388520181179047,
-0.13292241096496582,
-0.1520826816558838,
-0.5502746105194092,
0.1870923489332199,
-0.2470209300518036,
-0.12653879821300507,
0.19390413165092468,
0.15689663589000702,
-0.1329805701971054,
-0.3558679521083832,
-0.0509607270359993,
0.37732478976249695,
-0.3437860310077667,
-0.34007203578948975,
0.3964485824108124,
0.01772678643465042,
0.017270401120185852,
0.24953226745128632,
0.1393803060054779,
0.33069872856140137,
0.42049992084503174,
-0.36088794469833374,
-0.11548610776662827,
0.06133898347616196,
0.07740134000778198,
0.07656560093164444,
0.19793154299259186,
0.01955258846282959,
0.20653848350048065,
0.3709862232208252,
-0.01140954066067934,
-0.013940691947937012,
-0.03165790066123009,
0.15727050602436066,
-0.2297258824110031,
-0.08797694742679596,
0.22997435927391052,
-0.048160746693611145,
0.19987672567367554,
-0.11763764917850494,
0.024509981274604797,
-0.24237403273582458,
0.021785765886306763,
0.5751784443855286,
0.010339571163058281,
0.10682898759841919,
0.05929211527109146,
-0.05274620279669762,
-0.18448825180530548,
0.395736962556839,
0.6384895443916321,
0.3486223518848419,
-0.4021952450275421,
-0.19086380302906036,
-0.7238463163375854,
0.05981091782450676,
-0.4783253073692322,
-0.2568788528442383,
0.5058494806289673,
-0.07415714114904404,
0.10183113813400269,
0.3912001848220825,
-0.09394150972366333,
0.25254711508750916,
0.18576467037200928,
0.2951027452945709,
-0.26200026273727417,
-0.25890934467315674,
0.41634541749954224,
0.20900419354438782,
-0.17860165238380432,
-0.49365872144699097,
-0.010534394532442093,
0.04262373596429825,
-0.09226173162460327,
-0.1824914813041687,
0.04175552725791931,
0.14125730097293854,
0.37909236550331116,
0.19336551427841187,
0.058411628007888794,
0.7760933637619019,
-0.025724146515130997,
-0.06480145454406738,
-0.0789833664894104,
-0.6323986053466797,
-0.05423622950911522,
0.06052057072520256,
0.0649561658501625,
0.12961967289447784,
-0.1022133082151413,
-0.11268502473831177,
-0.3824729323387146,
0.30613991618156433,
-0.1255754828453064,
-0.14835204184055328,
-0.2318842113018036,
-0.004363980144262314,
-0.05085030198097229,
-0.06284922361373901,
-0.028133386746048927,
0.06108856201171875,
0.12244828045368195,
0.3552178144454956,
-0.1259649693965912,
-0.22627849876880646,
0.39892512559890747,
-0.05346272140741348,
-0.4505837559700012,
0.07258260250091553,
-0.11923085153102875,
0.33506593108177185,
-0.21185745298862457,
-0.46142464876174927,
0.1921405792236328,
0.2282823771238327,
-0.14500659704208374,
-0.3645921051502228,
0.03540423512458801,
0.1440645009279251,
0.10550932586193085,
-0.11913533508777618,
0.6080465316772461,
0.006814347580075264,
-0.1588616967201233,
0.1072712242603302,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hi,
after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free to borrow the logic from [here](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204) if you decide to work on this). | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 70 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
Hi,
after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free to borrow the logic from [here](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204) if you decide to work on this). | [
-0.3464028239250183,
-0.07528606057167053,
0.0026139914989471436,
0.44439059495925903,
0.3713299632072449,
0.06911926716566086,
0.24056847393512726,
0.039474863559007645,
0.5101776123046875,
0.2061244547367096,
-0.3589053750038147,
0.0527050755918026,
0.08609610050916672,
0.08086623251438141,
0.11441273242235184,
-0.315104216337204,
-0.060249365866184235,
0.01735594868659973,
-0.2503676116466522,
-0.06550413370132446,
-0.4105169475078583,
-0.062326230108737946,
-0.3046581745147705,
0.10954275727272034,
-0.17110338807106018,
0.2064579427242279,
0.014145230874419212,
0.16473406553268433,
-0.3150220811367035,
-0.4950214922428131,
0.5633593797683716,
0.018032986670732498,
0.580074667930603,
0.22132200002670288,
-0.00012534325651358813,
0.10603812336921692,
0.48617953062057495,
-0.06130558252334595,
-0.3452346622943878,
-0.4049581289291382,
-0.4189884662628174,
-0.13159717619419098,
-0.06906154751777649,
-0.09646499156951904,
0.10452776402235031,
-0.004398699849843979,
-0.08233404159545898,
-0.25856220722198486,
0.3321027159690857,
0.3678755760192871,
0.09417024254798889,
0.3720284104347229,
0.06185785308480263,
-0.22116561233997345,
0.4757198095321655,
-0.04227049648761749,
-0.14890815317630768,
0.15637384355068207,
0.4271000921726227,
-0.3246816396713257,
0.18014493584632874,
0.12462508678436279,
-0.2091396450996399,
0.2249169945716858,
-0.16371798515319824,
0.05600592494010925,
0.1821347177028656,
-0.25835084915161133,
0.23912492394447327,
0.13496527075767517,
0.8412338495254517,
-0.15123888850212097,
-0.4147815406322479,
0.018238812685012817,
-0.10140588134527206,
-0.3554820120334625,
0.1830143928527832,
0.0008577331900596619,
-0.05788682773709297,
0.07884141802787781,
-0.07679980248212814,
-0.06024165078997612,
0.05037610977888107,
0.2890728712081909,
-0.1434582769870758,
0.29103606939315796,
0.05412067472934723,
0.13386094570159912,
0.32395151257514954,
-0.10892046988010406,
0.4901406168937683,
0.09794213622808456,
-0.07307194173336029,
0.2410603016614914,
-0.3231162130832672,
0.28653162717819214,
-0.07560459524393082,
-0.3037877380847931,
0.23896461725234985,
-0.10459820926189423,
-0.1012071892619133,
0.003955399617552757,
-0.1443653106689453,
0.3295554518699646,
0.4467029273509979,
0.2585928738117218,
0.3614311218261719,
0.2899972200393677,
0.10725359618663788,
0.15876832604408264,
-0.05657333508133888,
-0.06338665634393692,
-0.4474612772464752,
-0.21606256067752838,
0.08579239249229431,
-0.027129679918289185,
0.1571706384420395,
-0.4506188929080963,
-0.5827978849411011,
0.0448346771299839,
-0.16290169954299927,
-0.2178834229707718,
0.05834992974996567,
0.268889844417572,
0.1545642614364624,
0.4297794699668884,
0.04586201161146164,
0.4458411931991577,
-0.4962792694568634,
-0.2659803330898285,
-0.054423872381448746,
0.16876274347305298,
-0.418963760137558,
0.05851322412490845,
0.1439429223537445,
0.005287432111799717,
0.21485772728919983,
0.016775663942098618,
0.26567405462265015,
-0.2452537715435028,
0.12882864475250244,
-0.23588599264621735,
-0.24442091584205627,
0.3540518879890442,
0.31052419543266296,
0.12189800292253494,
0.2711304724216461,
-0.3746756911277771,
-0.07859884947538376,
0.28915587067604065,
-0.2225111722946167,
-0.23501180112361908,
0.09094390273094177,
0.03285486251115799,
-0.17969144880771637,
0.05502007156610489,
-1.0357831716537476,
-0.07645747065544128,
0.08510333299636841,
0.10693272948265076,
-0.01550871878862381,
-0.27552980184555054,
-0.17121097445487976,
0.0025960211642086506,
0.2848057448863983,
0.5355798602104187,
-0.2868717312812805,
-0.04640630632638931,
-0.14083968102931976,
-0.040089841932058334,
0.3355933129787445,
0.36130860447883606,
-0.3357945680618286,
0.07375471293926239,
-0.12798485159873962,
0.10571162402629852,
0.1982138305902481,
-0.5150753855705261,
-0.48036548495292664,
0.16409717500209808,
0.05092816799879074,
-0.016187921166419983,
-0.08576121181249619,
-0.3274516761302948,
0.23931744694709778,
0.035720884799957275,
0.19531255960464478,
0.25892454385757446,
0.05809744447469711,
-0.09088724851608276,
-0.17510159313678741,
-0.09859490394592285,
0.13611334562301636,
0.42719152569770813,
0.2911245822906494,
0.14539946615695953,
0.261487752199173,
0.43923667073249817,
0.04362144321203232,
0.01657552644610405,
0.013182567432522774,
0.3216630816459656,
0.033360160887241364,
0.09020183235406876,
0.0362410694360733,
-0.059344224631786346,
-0.4222901463508606,
0.20219746232032776,
-0.09309966117143631,
-0.04537065327167511,
0.09755406528711319,
0.18124040961265564,
-0.38971132040023804,
0.12302250415086746,
-0.32474470138549805,
-0.3197048604488373,
-0.09428943693637848,
0.08660367131233215,
-0.09641386568546295,
-0.08180838823318481,
-0.16980037093162537,
0.0806679055094719,
-0.07154867053031921,
0.11032024770975113,
-0.3754516541957855,
0.41911986470222473,
0.04957811161875725,
-0.06489023566246033,
0.08072341233491898,
0.2063005268573761,
0.22998031973838806,
-0.12607955932617188,
-0.17538145184516907,
0.18774259090423584,
0.6032570004463196,
-0.17918293178081512,
0.13573673367500305,
-0.04410405457019806,
0.30425789952278137,
-0.38856959342956543,
0.19620245695114136,
-0.02738191932439804,
0.11872155964374542,
0.11306465417146683,
0.05982999503612518,
0.25418931245803833,
-0.03597499802708626,
0.18406414985656738,
-0.1281910240650177,
0.12247242778539658,
0.38742682337760925,
0.0022268146276474,
0.06135951727628708,
-0.2924950122833252,
0.5102492570877075,
0.3250284492969513,
0.31844180822372437,
0.05247960984706879,
-0.14598581194877625,
-0.22427299618721008,
-0.11093059182167053,
-0.15163011848926544,
0.0816720649600029,
0.15156984329223633,
-0.22369930148124695,
0.04447571933269501,
0.20372247695922852,
0.23733557760715485,
0.3294333219528198,
0.021466899663209915,
0.07584664970636368,
-0.046803779900074005,
0.023762982338666916,
0.07017713785171509,
-0.009797409176826477,
-0.07181696593761444,
-0.10157620906829834,
0.06444094330072403,
0.0008366899564862251,
-0.20575790107250214,
-0.22481146454811096,
0.07293929159641266,
0.23779690265655518,
0.42306941747665405,
-0.30031612515449524,
0.04732169210910797,
-0.4231780171394348,
-0.15952914953231812,
0.138996884226799,
-0.08027908951044083,
-0.03873128816485405,
-0.14833737909793854,
-0.3189132809638977,
0.277815043926239,
0.3382664620876312,
0.128822460770607,
0.10790929198265076,
-0.23986206948757172,
-0.024733057245612144,
-0.20222771167755127,
0.16747762262821198,
-0.19168327748775482,
-0.13632401823997498,
-0.11427716910839081,
0.23435357213020325,
0.17310655117034912,
0.09740985929965973,
-0.3408336639404297,
-0.04541358724236488,
-0.23199748992919922,
-0.055594682693481445,
0.23203113675117493,
-0.0026652254164218903,
0.30958691239356995,
-0.07700002193450928,
0.14246349036693573,
-0.3586759567260742,
0.03647242859005928,
0.36613908410072327,
0.021217385306954384,
-0.16787949204444885,
0.2677282691001892,
-0.012351643294095993,
-0.125104621052742,
0.023681312799453735,
-0.147312194108963,
-0.2998107969760895,
-0.20938506722450256,
0.01712195575237274,
0.04826558008790016,
0.023905020207166672,
-0.0471152625977993,
0.039598893374204636,
0.03805019333958626,
0.1774880737066269,
-0.17492930591106415,
-0.34034401178359985,
-0.43195754289627075,
0.4691961109638214,
-0.2710251808166504,
-0.24750037491321564,
0.08169719576835632,
0.04735609143972397,
0.2014109045267105,
0.3418823480606079,
-0.4603409767150879,
-0.07378599792718887,
-0.11739248037338257,
0.1646256446838379,
0.07586102187633514,
0.18649393320083618,
0.04696757718920708,
-0.1311488151550293,
0.15852028131484985,
-0.07704127579927444,
-0.3395666480064392,
-0.10581129044294357,
0.24256372451782227,
0.257839173078537,
-0.10521651059389114,
0.448356956243515,
-0.25083813071250916,
0.2393931746482849,
-0.012946171686053276,
0.2891105115413666,
0.5426398515701294,
-0.08933348953723907,
0.15291233360767365,
-0.3217941224575043,
-0.3143521249294281,
-0.09971156716346741,
-0.19487524032592773,
-0.1389908790588379,
0.04835686460137367,
0.026965871453285217,
-0.14914584159851074,
-0.27067461609840393,
-0.05290781706571579,
-0.08796091377735138,
-0.17469948530197144,
-0.055343374609947205,
-0.0693778246641159,
0.32938510179519653,
-0.05049314722418785,
0.27914959192276,
0.013617167249321938,
-0.040418773889541626,
-0.15393957495689392,
0.22464236617088318,
0.12359979748725891,
0.22255197167396545,
-0.3244822025299072,
0.10718445479869843,
-0.27057674527168274,
0.3529711961746216,
-0.040787916630506516,
0.7153810262680054,
-0.14472714066505432,
0.32613223791122437,
0.1128171905875206,
0.03812679648399353,
0.10555648058652878,
-0.29159682989120483,
0.11078022420406342,
0.0259101502597332,
-0.4394381642341614,
-0.057181619107723236,
-0.03271950036287308,
-0.04879242554306984,
-0.06406994163990021,
-0.029191527515649796,
0.26154035329818726,
-0.2473839819431305,
-0.10460547357797623,
-0.021286532282829285,
0.3048669695854187,
-0.04211368039250374,
-0.24261850118637085,
-0.3949684500694275,
-0.5412185788154602,
-0.43925049901008606,
-0.18904918432235718,
0.14653024077415466,
0.15771298110485077,
-0.0798717811703682,
0.20453967154026031,
-0.15882903337478638,
0.10533053427934647,
0.22422954440116882,
0.08409182727336884,
0.27255916595458984,
-0.033014483749866486,
0.15348711609840393,
0.26823359727859497,
-0.16656094789505005,
0.7140192985534668,
0.779288113117218,
-0.16547273099422455,
-0.35192230343818665,
0.25312379002571106,
-0.07656987756490707,
0.021768897771835327,
-0.05635666847229004,
-0.026279307901859283,
0.04735944792628288,
-0.19933469593524933,
-0.17018285393714905,
-0.04642147570848465,
0.1983218789100647,
0.19671933352947235,
0.15442349016666412,
-0.2928839921951294,
-0.753265917301178,
0.523123025894165,
0.07335086166858673,
0.11949123442173004,
0.2948044538497925,
-0.09946593642234802,
-0.18771134316921234,
0.26917725801467896,
0.10974039137363434,
0.7309184670448303,
-0.4024430513381958,
0.06639973819255829,
0.12552528083324432,
0.039054207503795624,
0.09694725275039673,
-0.0389399491250515,
-0.25493794679641724,
-0.18996380269527435,
-0.21341681480407715,
-0.1464371681213379,
-0.1630650907754898,
0.2815142869949341,
0.15234126150608063,
-0.07434465736150742,
0.2819465100765228,
-0.1734500378370285,
-0.028556454926729202,
0.23774771392345428,
0.11795353889465332,
-0.0852738544344902,
-0.3346666097640991,
-0.5701631903648376,
0.0695265382528305,
-0.17449241876602173,
0.21966426074504852,
-0.022928394377231598,
0.044626183807849884,
-0.077088862657547,
-0.05582097917795181,
-0.39172977209091187,
0.3648407459259033,
-0.27481821179389954,
0.3384893536567688,
-0.13014841079711914,
-0.3494688868522644,
0.18923400342464447,
0.4507750868797302,
0.22845673561096191,
0.14010925590991974,
-0.15276694297790527,
0.07425986230373383,
0.2642703056335449,
-0.25238338112831116,
-0.03045213781297207,
-0.10021749883890152,
-0.06935576349496841,
-0.02304328791797161,
-0.2731991410255432,
0.1419648379087448,
-0.0702483206987381,
-0.2247539460659027,
-0.07429366558790207,
0.13919124007225037,
0.02874213084578514,
-0.09943048655986786,
-0.3413548767566681,
-0.07189036905765533,
0.03511865809559822,
-0.16433051228523254,
-0.006722437217831612,
0.20912578701972961,
-0.09398028254508972,
0.011095643043518066,
0.057148635387420654,
-0.33624082803726196,
0.020826473832130432,
0.4598698616027832,
-0.06713658571243286,
-0.10354234278202057,
0.5126204490661621,
0.22076405584812164,
-0.205333411693573,
-0.1291891634464264,
0.2668747007846832,
0.3432776629924774,
-0.24352452158927917,
0.024793973192572594,
-0.10152847319841385,
0.12263812124729156,
0.01696511171758175,
0.019083619117736816,
0.23217599093914032,
-0.3506092131137848,
0.35660767555236816,
-0.5912503004074097,
-0.37390556931495667,
0.1904154121875763,
-0.18425250053405762,
0.02091055177152157,
-0.023007726296782494,
0.011408803053200245,
-0.15387099981307983,
-0.08554095774888992,
-0.11315371096134186,
0.11046434938907623,
-0.35552889108657837,
0.05317562073469162,
0.23331134021282196,
-0.0038373135030269623,
0.026617681607604027,
-0.17022112011909485,
0.008407408371567726,
0.13824684917926788,
0.03584548830986023,
-0.03853178769350052,
-0.1823159009218216,
0.21420980989933014,
0.1291014701128006,
-0.3466271162033081,
0.009542069397866726,
-0.2173154503107071,
-0.04067813977599144,
-0.14563490450382233,
0.17523425817489624,
0.4642309546470642,
-0.05088555067777634,
0.11629156768321991,
0.20204491913318634,
0.11926467716693878,
-0.3610048294067383,
0.3773384392261505,
-0.05974675714969635,
0.2192406952381134,
0.10528101027011871,
0.19968557357788086,
0.2261877954006195,
0.12845376133918762,
-0.2986389994621277,
-0.09186027199029922,
0.2543622553348541,
-0.020749665796756744,
0.27848759293556213,
-0.4246545433998108,
0.3846977949142456,
0.09340260922908783,
0.13926929235458374,
0.442362904548645,
-0.27087053656578064,
0.06683043390512466,
0.322624146938324,
0.027771804481744766,
-0.23967833817005157,
-0.10680226236581802,
0.1143147349357605,
0.05672340840101242,
-0.13262510299682617,
0.3174366354942322,
0.3981635868549347,
0.06588330864906311,
-0.14058342576026917,
0.03662309795618057,
0.06292088329792023,
-0.14363792538642883,
0.0519925057888031,
0.6180887818336487,
0.018257740885019302,
0.21215331554412842,
0.06275132298469543,
0.22510550916194916,
-0.026153139770030975,
0.33312469720840454,
-0.15771716833114624,
0.4461427628993988,
0.21345624327659607,
0.19085948169231415,
-0.32778093218803406,
-0.5346594452857971,
-0.16996917128562927,
0.3204801678657532,
0.09440187364816666,
-0.025712601840496063,
-0.20863986015319824,
0.2422645092010498,
-0.1822718381881714,
0.15879718959331512,
-0.06975626945495605,
0.13053736090660095,
-0.03403589874505997,
-0.18388520181179047,
-0.13292241096496582,
-0.1520826816558838,
-0.5502746105194092,
0.1870923489332199,
-0.2470209300518036,
-0.12653879821300507,
0.19390413165092468,
0.15689663589000702,
-0.1329805701971054,
-0.3558679521083832,
-0.0509607270359993,
0.37732478976249695,
-0.3437860310077667,
-0.34007203578948975,
0.3964485824108124,
0.01772678643465042,
0.017270401120185852,
0.24953226745128632,
0.1393803060054779,
0.33069872856140137,
0.42049992084503174,
-0.36088794469833374,
-0.11548610776662827,
0.06133898347616196,
0.07740134000778198,
0.07656560093164444,
0.19793154299259186,
0.01955258846282959,
0.20653848350048065,
0.3709862232208252,
-0.01140954066067934,
-0.013940691947937012,
-0.03165790066123009,
0.15727050602436066,
-0.2297258824110031,
-0.08797694742679596,
0.22997435927391052,
-0.048160746693611145,
0.19987672567367554,
-0.11763764917850494,
0.024509981274604797,
-0.24237403273582458,
0.021785765886306763,
0.5751784443855286,
0.010339571163058281,
0.10682898759841919,
0.05929211527109146,
-0.05274620279669762,
-0.18448825180530548,
0.395736962556839,
0.6384895443916321,
0.3486223518848419,
-0.4021952450275421,
-0.19086380302906036,
-0.7238463163375854,
0.05981091782450676,
-0.4783253073692322,
-0.2568788528442383,
0.5058494806289673,
-0.07415714114904404,
0.10183113813400269,
0.3912001848220825,
-0.09394150972366333,
0.25254711508750916,
0.18576467037200928,
0.2951027452945709,
-0.26200026273727417,
-0.25890934467315674,
0.41634541749954224,
0.20900419354438782,
-0.17860165238380432,
-0.49365872144699097,
-0.010534394532442093,
0.04262373596429825,
-0.09226173162460327,
-0.1824914813041687,
0.04175552725791931,
0.14125730097293854,
0.37909236550331116,
0.19336551427841187,
0.058411628007888794,
0.7760933637619019,
-0.025724146515130997,
-0.06480145454406738,
-0.0789833664894104,
-0.6323986053466797,
-0.05423622950911522,
0.06052057072520256,
0.0649561658501625,
0.12961967289447784,
-0.1022133082151413,
-0.11268502473831177,
-0.3824729323387146,
0.30613991618156433,
-0.1255754828453064,
-0.14835204184055328,
-0.2318842113018036,
-0.004363980144262314,
-0.05085030198097229,
-0.06284922361373901,
-0.028133386746048927,
0.06108856201171875,
0.12244828045368195,
0.3552178144454956,
-0.1259649693965912,
-0.22627849876880646,
0.39892512559890747,
-0.05346272140741348,
-0.4505837559700012,
0.07258260250091553,
-0.11923085153102875,
0.33506593108177185,
-0.21185745298862457,
-0.46142464876174927,
0.1921405792236328,
0.2282823771238327,
-0.14500659704208374,
-0.3645921051502228,
0.03540423512458801,
0.1440645009279251,
0.10550932586193085,
-0.11913533508777618,
0.6080465316772461,
0.006814347580075264,
-0.1588616967201233,
0.1072712242603302,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2059 | Error while following docs to load the `ted_talks_iwslt` dataset | This has been fixed in #2064 by @mariosasko (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | I am currently trying to load the `ted_talks_iwslt` dataset into google colab.
The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so.
```python
dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
```
Executing it results in the error attached below.
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-7dcc67154ef9> in <module>()
----> 1 dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
4 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
730 hash=hash,
731 features=features,
--> 732 **config_kwargs,
733 )
734
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, writer_batch_size, *args, **kwargs)
927
928 def __init__(self, *args, writer_batch_size=None, **kwargs):
--> 929 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
930 # Batch size used by the ArrowWriter
931 # It defines the number of samples that are kept in memory before writing them
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs)
241 name,
242 custom_features=features,
--> 243 **config_kwargs,
244 )
245
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
337 if "version" not in config_kwargs and hasattr(self, "VERSION") and self.VERSION:
338 config_kwargs["version"] = self.VERSION
--> 339 builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs)
340
341 # otherwise use the config_kwargs to overwrite the attributes
/root/.cache/huggingface/modules/datasets_modules/datasets/ted_talks_iwslt/024d06b1376b361e59245c5878ab8acf9a7576d765f2d0077f61751158e60914/ted_talks_iwslt.py in __init__(self, language_pair, year, **kwargs)
219 description=description,
220 version=datasets.Version("1.1.0", ""),
--> 221 **kwargs,
222 )
223
TypeError: __init__() got multiple values for keyword argument 'version'
```
How to resolve this?
PS: Thanks a lot @huggingface team for creating this great library! | 28 | Error while following docs to load the `ted_talks_iwslt` dataset
I am currently trying to load the `ted_talks_iwslt` dataset into google colab.
The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so.
```python
dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
```
Executing it results in the error attached below.
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-7dcc67154ef9> in <module>()
----> 1 dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
4 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
730 hash=hash,
731 features=features,
--> 732 **config_kwargs,
733 )
734
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, writer_batch_size, *args, **kwargs)
927
928 def __init__(self, *args, writer_batch_size=None, **kwargs):
--> 929 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
930 # Batch size used by the ArrowWriter
931 # It defines the number of samples that are kept in memory before writing them
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs)
241 name,
242 custom_features=features,
--> 243 **config_kwargs,
244 )
245
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
337 if "version" not in config_kwargs and hasattr(self, "VERSION") and self.VERSION:
338 config_kwargs["version"] = self.VERSION
--> 339 builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs)
340
341 # otherwise use the config_kwargs to overwrite the attributes
/root/.cache/huggingface/modules/datasets_modules/datasets/ted_talks_iwslt/024d06b1376b361e59245c5878ab8acf9a7576d765f2d0077f61751158e60914/ted_talks_iwslt.py in __init__(self, language_pair, year, **kwargs)
219 description=description,
220 version=datasets.Version("1.1.0", ""),
--> 221 **kwargs,
222 )
223
TypeError: __init__() got multiple values for keyword argument 'version'
```
How to resolve this?
PS: Thanks a lot @huggingface team for creating this great library!
This has been fixed in #2064 by @mariosasko (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | [
-0.21400965750217438,
0.1284438669681549,
0.04851141944527626,
0.20013120770454407,
0.031291425228118896,
0.09337251633405685,
0.671215832233429,
0.19440831243991852,
0.1241026371717453,
-0.06191827356815338,
-0.0495757982134819,
0.33810511231422424,
-0.29105475544929504,
0.41904115676879883,
0.07738836854696274,
-0.28908777236938477,
0.09974641352891922,
0.07318229973316193,
-0.05595816671848297,
0.20605061948299408,
-0.3254210650920868,
0.21240481734275818,
-0.4152063727378845,
0.012749932706356049,
-0.25466102361679077,
-0.2034209817647934,
0.046813927590847015,
0.2763831913471222,
-0.2661168873310089,
-0.3130562901496887,
0.38868775963783264,
-0.01943383738398552,
0.42278799414634705,
0.46559104323387146,
-0.00011431108578108251,
0.10717140138149261,
0.5188992619514465,
-0.13663922250270844,
-0.5111315250396729,
-0.3482480049133301,
-0.42827776074409485,
0.05643578618764877,
0.1920466125011444,
-0.14138486981391907,
0.040611207485198975,
0.1922590583562851,
0.15502426028251648,
0.07070453464984894,
0.24104492366313934,
0.40136614441871643,
0.18140213191509247,
0.38041213154792786,
0.2313803881406784,
-0.2351675033569336,
0.15459497272968292,
0.024850089102983475,
-0.09788873046636581,
0.5647635459899902,
-0.04707542061805725,
-0.11410263925790787,
0.12869645655155182,
0.34895026683807373,
-0.15315906703472137,
0.14830058813095093,
0.2271820306777954,
0.03715364262461662,
-0.20694634318351746,
-0.253387987613678,
0.16995364427566528,
0.14380043745040894,
0.655597984790802,
-0.24688658118247986,
-0.2574804127216339,
-0.03358987718820572,
0.009955156594514847,
-0.257073312997818,
0.20090174674987793,
0.1602667272090912,
-0.08147549629211426,
0.044007208198308945,
-0.08265538513660431,
-0.020636027678847313,
-0.23171474039554596,
0.24862900376319885,
-0.11926938593387604,
0.37885868549346924,
-0.12965109944343567,
0.2292337417602539,
0.19096454977989197,
-0.16130630671977997,
0.41986721754074097,
0.06734640896320343,
-0.00037394091486930847,
0.12366441637277603,
-0.17200613021850586,
0.09205861389636993,
0.07430665194988251,
0.2679721713066101,
0.005041830241680145,
-0.18031178414821625,
-0.04619099944829941,
-0.17313483357429504,
0.07009458541870117,
0.36504966020584106,
0.4140590727329254,
0.17184217274188995,
0.03645510599017143,
0.29236212372779846,
0.2413601130247116,
0.3500966727733612,
-0.018687596544623375,
0.005767069756984711,
-0.26726678013801575,
-0.1643572896718979,
0.1300109475851059,
0.004981258884072304,
0.45909684896469116,
-0.042384665459394455,
-0.40384820103645325,
-0.0003769258037209511,
-0.3010185956954956,
0.08247185498476028,
0.08906303346157074,
0.3704460859298706,
0.027856536209583282,
-0.0001117996871471405,
0.20959535241127014,
0.18170100450515747,
-0.12938298285007477,
-0.043166633695364,
-0.14256691932678223,
0.4191191792488098,
-0.1319148689508438,
0.14973720908164978,
0.2187039703130722,
0.07675968110561371,
0.14100812375545502,
-0.13793979585170746,
0.22207000851631165,
0.04464532434940338,
-0.026825720444321632,
-0.10824427008628845,
-0.17722740769386292,
0.28559789061546326,
0.19867902994155884,
0.11575759202241898,
0.2717030942440033,
-0.4462217688560486,
-0.20216810703277588,
0.19388052821159363,
-0.3336770832538605,
-0.4380975067615509,
-0.2477479726076126,
0.1399911493062973,
-0.14223551750183105,
-0.08078184723854065,
-0.6888025999069214,
0.09705367684364319,
0.3203808069229126,
-0.23664917051792145,
-0.11768200248479843,
-0.3462980389595032,
-0.4640256464481354,
-0.17704272270202637,
0.103889100253582,
0.6105262637138367,
-0.4028030335903168,
-0.10324506461620331,
-0.2107318490743637,
0.13067536056041718,
0.17037993669509888,
0.25428012013435364,
-0.3040798008441925,
0.4380044937133789,
-0.12646204233169556,
0.1686674952507019,
0.02721279114484787,
-0.2167748063802719,
-0.2442437708377838,
0.06886786222457886,
0.1441134214401245,
0.1390663981437683,
-0.10066335648298264,
-0.11116178333759308,
0.19637715816497803,
-0.11561725288629532,
0.48708415031433105,
0.28355467319488525,
-0.15320515632629395,
0.04930374026298523,
-0.17282287776470184,
-0.1591174155473709,
0.26521769165992737,
0.22183580696582794,
0.16024525463581085,
0.10630336403846741,
0.020408794283866882,
0.16329804062843323,
-0.07608713954687119,
-0.16157345473766327,
-0.10272035002708435,
0.10231547057628632,
0.33723142743110657,
0.04572022706270218,
-0.057675715535879135,
0.07024287432432175,
-0.6290018558502197,
0.11771485954523087,
-0.08998625725507736,
0.4876352846622467,
-0.237815722823143,
-0.07815022766590118,
-0.37595388293266296,
0.23151691257953644,
-0.25866231322288513,
0.021197035908699036,
0.1027923971414566,
0.13754554092884064,
-0.3405933976173401,
0.10958553850650787,
0.0024861209094524384,
0.39377307891845703,
-0.18009813129901886,
-0.05020618811249733,
-0.554648756980896,
0.3506634533405304,
-0.24768559634685516,
-0.2609459161758423,
0.23602017760276794,
0.012841913849115372,
0.151227667927742,
-0.08523715287446976,
-0.10424264520406723,
0.2208428680896759,
0.08386264741420746,
0.1782544106245041,
-0.041542649269104004,
0.04982888698577881,
0.08662286400794983,
-0.24700301885604858,
-0.05025365948677063,
0.28001415729522705,
0.3062436282634735,
-0.022260256111621857,
0.007283173501491547,
0.33882394433021545,
0.21452856063842773,
0.061796560883522034,
-0.10642849653959274,
0.08690650016069412,
0.15293115377426147,
-0.032194577157497406,
-0.015446358360350132,
-0.10980212688446045,
0.09408237785100937,
0.30776312947273254,
-0.21735022962093353,
-0.006536839529871941,
-0.36730706691741943,
0.10656946152448654,
0.34728607535362244,
-0.04067623242735863,
0.10630717873573303,
0.2004859447479248,
-0.04580710083246231,
-0.25899460911750793,
0.15289458632469177,
-0.09880828857421875,
0.34165433049201965,
-0.06521537154912949,
-0.19084468483924866,
-0.020092519000172615,
0.09835422784090042,
0.00004160776734352112,
0.11114451289176941,
0.13056112825870514,
0.20453542470932007,
-0.021802648901939392,
0.13383795320987701,
0.0469108484685421,
-0.16360509395599365,
-0.1726352572441101,
0.0007487013936042786,
0.4891517460346222,
-0.4590350091457367,
0.3445875942707062,
-0.08381468057632446,
-0.39805707335472107,
-0.11777879297733307,
-0.021256398409605026,
-0.09371024370193481,
-0.37588590383529663,
-0.14979898929595947,
0.4769548773765564,
-0.01633012853562832,
0.06470514833927155,
0.33187034726142883,
0.3093937039375305,
0.34348705410957336,
-0.18017838895320892,
-0.09137029945850372,
-0.3669159710407257,
-0.29368528723716736,
0.032230064272880554,
0.466571569442749,
0.11508428305387497,
0.2103036791086197,
-0.2565607726573944,
-0.07440377026796341,
-0.15552771091461182,
-0.37674349546432495,
0.19776742160320282,
-0.2820950150489807,
0.5574055910110474,
0.19279342889785767,
0.40363645553588867,
-0.40214961767196655,
-0.4170803427696228,
0.21654266119003296,
-0.21592748165130615,
0.022855302318930626,
0.06007012724876404,
-0.2575753629207611,
-0.16954541206359863,
-0.0780540481209755,
-0.21543574333190918,
-0.388065367937088,
-0.3334846794605255,
0.04117944836616516,
0.023491445928812027,
0.10877790302038193,
0.4082964062690735,
0.10399554669857025,
0.08261484652757645,
0.500186562538147,
-0.12017928063869476,
-0.22048185765743256,
-0.18961168825626373,
0.3713560104370117,
-0.26797327399253845,
-0.2996506989002228,
0.057434406131505966,
-0.11184563487768173,
-0.034539077430963516,
-0.12769974768161774,
-0.3979894518852234,
-0.1679546982049942,
-0.07959996908903122,
0.034347835928201675,
0.08701037615537643,
0.004682909697294235,
0.0903063714504242,
0.040992092341184616,
0.01650911010801792,
-0.14446070790290833,
-0.3971966505050659,
-0.04470675438642502,
0.2862807512283325,
0.1896524727344513,
0.3199490010738373,
0.15278023481369019,
-0.2465846687555313,
0.49332016706466675,
0.1270395815372467,
-0.18350659310817719,
0.34924063086509705,
0.025062013417482376,
0.1754010021686554,
-0.3715403974056244,
-0.43684542179107666,
0.23761729896068573,
-0.18792271614074707,
-0.22807998955249786,
0.2979317307472229,
-0.20454490184783936,
-0.34740617871284485,
-0.2248648852109909,
0.04381623491644859,
-0.1779918372631073,
-0.43774673342704773,
0.25837987661361694,
0.33082082867622375,
0.1570836305618286,
0.07716622948646545,
-0.22236117720603943,
-0.23641039431095123,
-0.14512476325035095,
-0.009316600859165192,
0.4067426323890686,
0.03520830348134041,
0.0237533338367939,
0.26851707696914673,
-0.019639786332845688,
-0.613185703754425,
0.2619730830192566,
0.359889417886734,
0.2567746937274933,
-0.1841004192829132,
-0.006345562636852264,
0.00396343320608139,
0.08356913179159164,
0.1082003116607666,
-0.10933854430913925,
-0.010838255286216736,
0.1519351452589035,
0.039183661341667175,
-0.026342416182160378,
-0.07902678847312927,
-0.34495240449905396,
0.3172371983528137,
0.1861916482448578,
0.2938254773616791,
-0.3232550323009491,
0.10216526687145233,
0.2999715209007263,
0.1534431427717209,
-0.1450287103652954,
-0.14219368994235992,
-0.30567270517349243,
-0.5755372047424316,
-0.43695762753486633,
-0.1568489372730255,
0.22918586432933807,
0.30465778708457947,
-0.044502951204776764,
0.2770196795463562,
0.11607059836387634,
-0.02497429959475994,
0.24979136884212494,
0.19063152372837067,
0.26428183913230896,
0.279349684715271,
-0.003047225996851921,
-0.10238876938819885,
-0.08830524981021881,
0.3251292407512665,
0.5740015506744385,
0.0765841156244278,
-0.30278781056404114,
0.15344443917274475,
-0.0007593762129545212,
-0.03513195365667343,
0.14200317859649658,
-0.22359637916088104,
-0.11904158443212509,
-0.0791737288236618,
0.11919134110212326,
0.09210781753063202,
0.341206431388855,
0.11211005598306656,
0.004006433300673962,
-0.6925358772277832,
-0.49811795353889465,
0.40909698605537415,
-0.0072396909818053246,
0.01927991211414337,
0.49756017327308655,
0.18674176931381226,
-0.2983267605304718,
0.3348348140716553,
0.12213721126317978,
0.877152681350708,
-0.11099536716938019,
0.17018383741378784,
0.704840898513794,
0.30510997772216797,
0.3482864201068878,
0.12937234342098236,
0.19868120551109314,
-0.24397535622119904,
-0.010168799199163914,
-0.17797714471817017,
-0.0347319021821022,
-0.10598649829626083,
-0.17897988855838776,
-0.513309895992279,
0.16311204433441162,
-0.13955965638160706,
0.15329819917678833,
0.19626426696777344,
0.20550867915153503,
-0.08526454865932465,
-0.22225339710712433,
-0.44702214002609253,
0.1357431709766388,
-0.18915049731731415,
0.15252868831157684,
-0.16985070705413818,
-0.19998745620250702,
-0.04225233569741249,
-0.22372967004776,
-0.4431300759315491,
-0.010140718892216682,
-0.30179473757743835,
0.2878568172454834,
0.12850594520568848,
-0.3540194630622864,
0.3821355402469635,
0.08731327950954437,
0.20936858654022217,
-0.08612559735774994,
-0.263037770986557,
0.07961467653512955,
-0.04228775203227997,
-0.18228624761104584,
-0.2927989661693573,
-0.08394907414913177,
0.3890060782432556,
0.010422557592391968,
-0.055533088743686676,
-0.10493657737970352,
-0.021770469844341278,
-0.32255232334136963,
-0.021043628454208374,
0.106968954205513,
-0.11464208364486694,
-0.3590724766254425,
-0.1863963007926941,
-0.05656436085700989,
-0.08024459332227707,
-0.14241555333137512,
0.10516458749771118,
-0.02302919328212738,
-0.04526934400200844,
-0.05827686935663223,
0.09065896272659302,
-0.2889913320541382,
-0.013359881937503815,
0.21082259714603424,
-0.016984358429908752,
0.20195356011390686,
0.5059748888015747,
0.3231053054332733,
-0.14874516427516937,
-0.1556156575679779,
0.09032077342271805,
0.03709239140152931,
-0.17664405703544617,
0.36801671981811523,
0.07644762843847275,
0.17774121463298798,
-0.11764182150363922,
0.7146790027618408,
0.0049759261310100555,
0.11667383462190628,
0.20426197350025177,
-0.6232947111129761,
-0.15411080420017242,
0.27463656663894653,
-0.2994157075881958,
0.12327229976654053,
0.10352770239114761,
0.1669117510318756,
0.029756693169474602,
-0.2967013120651245,
-0.2817041277885437,
0.029734497889876366,
-0.34226396679878235,
0.1165575385093689,
0.515373706817627,
-0.14487245678901672,
0.26892951130867004,
0.05185692384839058,
0.10478980839252472,
0.010633468627929688,
0.013003316707909107,
-0.21687164902687073,
-0.15621206164360046,
0.1366969794034958,
-0.0015314072370529175,
-0.27761155366897583,
-0.10310471802949905,
-0.023294905200600624,
-0.2041478157043457,
-0.12578992545604706,
0.23979979753494263,
0.26752716302871704,
-0.2015845626592636,
0.08861824870109558,
-0.05847427621483803,
0.09013044089078903,
0.028979182243347168,
0.269126832485199,
0.0576191246509552,
0.36246782541275024,
0.07588659226894379,
0.2564903199672699,
0.12191355228424072,
0.06191478669643402,
0.1604728102684021,
0.3062051236629486,
0.17935138940811157,
0.08066798746585846,
0.19381529092788696,
-0.4666215181350708,
0.08489687740802765,
-0.3038908541202545,
0.14714017510414124,
0.3480238914489746,
-0.34217995405197144,
0.02925054170191288,
0.15270113945007324,
0.07472904026508331,
-0.1406993567943573,
0.08473235368728638,
0.20975109934806824,
-0.1218281015753746,
-0.03639202192425728,
0.3370082676410675,
0.09527029097080231,
0.16075220704078674,
-0.13024118542671204,
-0.009169400669634342,
0.286071240901947,
0.2742423117160797,
0.11559580266475677,
-0.03151189163327217,
-0.16545866429805756,
0.11398418247699738,
0.017961587756872177,
0.18741749227046967,
0.18310409784317017,
0.06149715557694435,
-0.12294267863035202,
0.19942885637283325,
-0.22325462102890015,
0.001412171870470047,
0.28006666898727417,
-0.5291491746902466,
0.041885897517204285,
0.08801531791687012,
0.10263460129499435,
0.07133807986974716,
0.0034233778715133667,
0.40991559624671936,
-0.2465045303106308,
-0.08768769353628159,
-0.20129138231277466,
0.12133444845676422,
-0.17159971594810486,
-0.022015241906046867,
-0.10884668678045273,
-0.08512996882200241,
-0.31598687171936035,
0.13819971680641174,
-0.04268373176455498,
-0.09509097039699554,
0.20096172392368317,
0.3130761682987213,
-0.07814660668373108,
-0.2880213260650635,
0.0612916424870491,
0.2677072286605835,
-0.12422794848680496,
-0.1469755321741104,
0.23574857413768768,
0.010840058326721191,
-0.10583941638469696,
-0.05096781626343727,
0.2660689353942871,
0.7285704612731934,
0.3192521631717682,
-0.25510692596435547,
0.07731262594461441,
-0.06903740763664246,
-0.14059199392795563,
0.027850352227687836,
0.003203112632036209,
0.1834234595298767,
0.18441441655158997,
0.3254414498806,
0.16188369691371918,
-0.0949522852897644,
0.15286001563072205,
0.08831743150949478,
-0.07674805819988251,
-0.044845931231975555,
-0.06969069689512253,
-0.3189103305339813,
0.11084254831075668,
-0.2443200945854187,
0.05556768551468849,
-0.36042502522468567,
0.04885639622807503,
0.38981229066848755,
0.06134578958153725,
0.1407896876335144,
0.09845561534166336,
0.04323258996009827,
-0.08916148543357849,
0.7480604648590088,
0.4245295524597168,
0.5701189041137695,
-0.4606827199459076,
-0.20809587836265564,
-0.4583551287651062,
0.14592084288597107,
-0.06892317533493042,
-0.04683873802423477,
-0.03262188658118248,
0.010775083675980568,
0.07430604845285416,
0.21332116425037384,
-0.19009853899478912,
-0.15466436743736267,
-0.10807033628225327,
-0.04890109598636627,
-0.12394124269485474,
-0.3723292052745819,
0.055576346814632416,
-0.16658207774162292,
-0.09454969316720963,
-0.3566226363182068,
-0.00133553147315979,
-0.3693264424800873,
0.03915448486804962,
-0.3989429473876953,
-0.272885262966156,
-0.011552030220627785,
-0.04818245768547058,
0.16782337427139282,
0.1803111881017685,
0.6532686948776245,
-0.1587124615907669,
-0.1381351202726364,
-0.06256753206253052,
-0.36947867274284363,
-0.12168877571821213,
0.17177170515060425,
0.026565082371234894,
0.42723578214645386,
-0.004724786151200533,
0.2010180801153183,
-0.43441200256347656,
0.3339698016643524,
0.01414480060338974,
-0.11431054770946503,
-0.406148761510849,
0.03754473477602005,
-0.28081125020980835,
0.05915716663002968,
-0.005676351021975279,
0.09538718312978745,
-0.10217507183551788,
0.14464956521987915,
-0.17786185443401337,
-0.3812475800514221,
0.7138030529022217,
-0.6547108292579651,
-0.5138834714889526,
-0.01732255145907402,
-0.19665130972862244,
-0.13080590963363647,
0.03360878676176071,
-0.7398448586463928,
0.18493413925170898,
0.04919447749853134,
-0.02367953583598137,
-0.36724868416786194,
0.17213301360607147,
0.10165813565254211,
0.09487994015216827,
-0.1482054442167282,
0.27442318201065063,
0.038956351578235626,
-0.1822541356086731,
-0.12327958643436432,
-0.2610340416431427
] |
https://github.com/huggingface/datasets/issues/2058 | Is it possible to convert a `tfds` to HuggingFace `dataset`? | Hi! You can either save the TF dataset to one of the formats supported by datasets (`parquet`, `csv`, `json`, ...) or pass a generator function to `Dataset.from_generator` that yields its examples. | I was having some weird bugs with `C4`dataset version of HuggingFace, so I decided to try to download `C4`from `tfds`. I would like to know if it is possible to convert a tfds dataset to HuggingFace dataset format :)
I can also open a new issue reporting the bug I'm receiving with `datasets.load_dataset('c4','en')` in the future if you think that it would be useful.
Thanks!
| 31 | Is it possible to convert a `tfds` to HuggingFace `dataset`?
I was having some weird bugs with `C4`dataset version of HuggingFace, so I decided to try to download `C4`from `tfds`. I would like to know if it is possible to convert a tfds dataset to HuggingFace dataset format :)
I can also open a new issue reporting the bug I'm receiving with `datasets.load_dataset('c4','en')` in the future if you think that it would be useful.
Thanks!
Hi! You can either save the TF dataset to one of the formats supported by datasets (`parquet`, `csv`, `json`, ...) or pass a generator function to `Dataset.from_generator` that yields its examples. | [
-0.10825765132904053,
-0.48558521270751953,
0.011034876108169556,
0.5216740965843201,
0.3058992028236389,
0.2818618714809418,
-0.1611333191394806,
0.21135106682777405,
-0.17778116464614868,
-0.03816603124141693,
-0.5086012482643127,
-0.10756826400756836,
-0.35055726766586304,
0.5548807978630066,
0.256074458360672,
-0.2710779309272766,
0.16277959942817688,
-0.0037659481167793274,
-0.42443832755088806,
0.09976887702941895,
0.08129434287548065,
0.4191957116127014,
0.19333617389202118,
0.08123273402452469,
-0.0386476069688797,
0.05916754901409149,
-0.07089630514383316,
0.15165847539901733,
-0.07892755419015884,
-0.01841459795832634,
0.32105791568756104,
0.04437511786818504,
0.18569549918174744,
0.6315205693244934,
-0.00012116192374378443,
-0.012935210019350052,
-0.25251638889312744,
-0.06243535131216049,
0.11387781798839569,
-0.041625380516052246,
0.026207610964775085,
0.11503000557422638,
0.08572521060705185,
0.011889614164829254,
-0.20924848318099976,
-0.3447903096675873,
-0.17580096423625946,
-0.29331105947494507,
0.43080639839172363,
0.31093358993530273,
0.1687270700931549,
0.3945934474468231,
0.2699311375617981,
0.1763937622308731,
-0.14179033041000366,
0.28996047377586365,
-0.17361904680728912,
0.19109401106834412,
-0.04373171925544739,
0.2742737829685211,
0.3943991959095001,
-0.029528409242630005,
-0.04910760372877121,
-0.1592724770307541,
0.6587474942207336,
0.10162156820297241,
-0.18079999089241028,
-0.24087294936180115,
0.22215723991394043,
0.5640734434127808,
0.5609467029571533,
-0.2762657403945923,
-0.3356531262397766,
-0.09695880115032196,
-0.018355242908000946,
0.029693039134144783,
-0.1425727903842926,
0.08338025212287903,
-0.17740903794765472,
0.3237457871437073,
-0.43108874559402466,
-0.45069119334220886,
-0.20932303369045258,
-0.07838249206542969,
-0.29108473658561707,
-0.30690160393714905,
-0.299026757478714,
-0.17480534315109253,
0.2309117615222931,
-0.33042997121810913,
-0.12691178917884827,
-0.00044057518243789673,
0.07588984817266464,
0.2089918702840805,
-0.16992925107479095,
-0.34355953335762024,
-0.20646870136260986,
0.4611177444458008,
0.37188175320625305,
-0.06592743843793869,
-0.323239803314209,
-0.18884503841400146,
-0.38473355770111084,
-0.23963704705238342,
0.18455660343170166,
-0.11924876272678375,
-0.11810619384050369,
-0.02103647217154503,
0.008724715560674667,
-0.17001667618751526,
0.012027010321617126,
0.13474653661251068,
-0.15069527924060822,
0.017759904265403748,
-0.173228457570076,
-0.3958457410335541,
0.13450995087623596,
-0.27531301975250244,
0.0743451714515686,
-0.14340007305145264,
0.02695019543170929,
0.22862231731414795,
-0.16081000864505768,
0.15464282035827637,
-0.018793798983097076,
0.06735674291849136,
0.26965659856796265,
0.04219653829932213,
-0.006985954940319061,
-0.24658097326755524,
-0.09259260445833206,
-0.25057312846183777,
0.1273975521326065,
0.04565144330263138,
-0.2535843849182129,
-0.6053482890129089,
-0.039936184883117676,
-0.014788538217544556,
0.17593717575073242,
0.28116098046302795,
-0.3351195752620697,
0.30385953187942505,
0.16498127579689026,
0.06606850028038025,
-0.0331474170088768,
0.11785302311182022,
0.2766421437263489,
0.0022170469164848328,
-0.18939420580863953,
0.02257091924548149,
-0.08868002146482468,
0.1689239889383316,
-0.44729673862457275,
0.022406568750739098,
-0.12656426429748535,
-0.27126026153564453,
-0.5323460698127747,
0.2862047851085663,
-0.07062006741762161,
-0.04953239858150482,
0.0480460450053215,
-0.1609221249818802,
-0.1822052001953125,
-0.12827889621257782,
0.23462536931037903,
0.5185163021087646,
-0.27752864360809326,
-0.1990043967962265,
0.31327152252197266,
-0.4707898795604706,
-0.17317000031471252,
0.38650038838386536,
0.16634748876094818,
-0.15403145551681519,
-0.33597496151924133,
0.0006503313779830933,
-0.09598765522241592,
-0.2513938248157501,
0.05609901249408722,
0.4809773862361908,
0.014347158372402191,
0.2287147492170334,
-0.21415555477142334,
-0.009703896008431911,
0.08822965621948242,
0.038892678916454315,
-0.0004440620541572571,
-0.007097799330949783,
-0.23018166422843933,
0.05752565711736679,
-0.030344726517796516,
-0.2371203899383545,
0.4552844166755676,
-0.20300164818763733,
0.0162610225379467,
0.353701651096344,
-0.133386492729187,
0.0033466340973973274,
0.2635968029499054,
-0.21327701210975647,
0.05837666988372803,
0.11223747581243515,
-0.0037208087742328644,
0.28874826431274414,
0.03264879435300827,
-0.2646242082118988,
-0.6827172636985779,
0.027693845331668854,
0.2220517098903656,
-0.04128642380237579,
0.2279243916273117,
-0.2062079757452011,
-0.10560252517461777,
-0.06614968180656433,
0.17244639992713928,
0.21272580325603485,
0.033590883016586304,
-0.1292039006948471,
0.14774362742900848,
-0.027194339781999588,
-0.376908540725708,
0.41544780135154724,
-0.01814914494752884,
0.14828994870185852,
-0.2187158614397049,
0.25917962193489075,
0.333213746547699,
0.09894034266471863,
0.04341278225183487,
0.0901099443435669,
-0.034283436834812164,
-0.2980099022388458,
0.016857219859957695,
0.24660629034042358,
-0.04153835400938988,
0.3408232033252716,
-0.09053920954465866,
0.44182008504867554,
0.14858295023441315,
-0.19389471411705017,
-0.3708656430244446,
0.17390938103199005,
-0.04128176346421242,
0.020324483513832092,
-0.12506800889968872,
0.16725954413414001,
-0.07589602470397949,
0.22709503769874573,
0.17009034752845764,
0.2602986693382263,
0.02512356825172901,
0.14489026367664337,
-0.07081540673971176,
-0.0002072155475616455,
0.002948034554719925,
-0.3227822184562683,
0.25374799966812134,
0.15848174691200256,
-0.5944376587867737,
0.28867149353027344,
0.07491756230592728,
-0.21450906991958618,
-0.21739733219146729,
0.32418930530548096,
-0.15422379970550537,
0.02024797350168228,
0.15005798637866974,
0.09053198993206024,
0.2454645335674286,
0.12691296637058258,
0.1848459541797638,
0.2019234597682953,
0.20071089267730713,
0.11041954159736633,
0.2537739872932434,
-0.13891008496284485,
0.04527505114674568,
-0.10712601989507675,
-0.09620828926563263,
0.17959541082382202,
-0.1486770361661911,
0.29912492632865906,
-0.20556651055812836,
0.08589408546686172,
-0.5473350286483765,
0.05345740169286728,
-0.5500631332397461,
-0.36774662137031555,
-0.18814261257648468,
0.1692694127559662,
-0.3600313067436218,
-0.05323588848114014,
-0.2454960197210312,
0.03873247280716896,
0.17190274596214294,
-0.25218552350997925,
-0.22740741074085236,
0.1090392991900444,
-0.16024799644947052,
0.06017857789993286,
-0.332296758890152,
-0.08040834963321686,
-0.22190383076667786,
0.06539134681224823,
0.4738273620605469,
-0.04366400092840195,
0.3276018500328064,
-0.4740210473537445,
0.037443920969963074,
-0.5424826741218567,
-0.16006475687026978,
0.20908638834953308,
-0.21449629962444305,
0.12873467803001404,
0.1576632708311081,
0.44993650913238525,
-0.3034593462944031,
0.09776059538125992,
-0.14340153336524963,
-0.21693117916584015,
-0.27513477206230164,
-0.08657845109701157,
-0.1994568556547165,
-0.013081640936434269,
-0.10837629437446594,
0.17394626140594482,
-0.29110944271087646,
0.06323923170566559,
0.43371278047561646,
-0.11498354375362396,
-0.12374050915241241,
0.3455301523208618,
-0.1459391862154007,
0.25006845593452454,
-0.14754711091518402,
-0.17660284042358398,
-0.10704055428504944,
-0.3991281986236572,
0.2461007833480835,
-0.23486274480819702,
-0.3973758816719055,
0.050492238253355026,
0.2657766342163086,
0.09503984451293945,
0.013998361304402351,
-0.2833746075630188,
0.15290263295173645,
-0.23191331326961517,
0.06615172326564789,
-0.2250853180885315,
-0.07350515574216843,
0.15644899010658264,
-0.17631115019321442,
0.07271983474493027,
-0.01364779844880104,
0.14400716125965118,
0.03407897427678108,
-0.11987083405256271,
0.1252926141023636,
0.10071300715208054,
0.017777297645807266,
-0.061294905841350555,
0.3221673369407654,
0.29579323530197144,
-0.24221090972423553,
0.10983750969171524,
-0.4528510868549347,
0.46295398473739624,
-0.0227094367146492,
-0.3216935098171234,
0.26732707023620605,
-0.03613060712814331,
0.07834876328706741,
0.4042128920555115,
0.16778025031089783,
0.376492977142334,
-0.06595446169376373,
0.14019547402858734,
-0.18537017703056335,
-0.11346952617168427,
-0.3335179388523102,
-0.03006436675786972,
0.1981492042541504,
-0.0019377786666154861,
-0.11582714319229126,
0.07859812676906586,
-0.33001020550727844,
0.21354801952838898,
0.5318691730499268,
0.6180370450019836,
0.2952607274055481,
-0.2787536084651947,
-0.014341898262500763,
-0.46713173389434814,
0.13987740874290466,
0.12152264267206192,
-0.16861967742443085,
-0.21972128748893738,
0.2575460970401764,
0.03581175580620766,
0.09280361980199814,
0.8121091723442078,
0.2824491858482361,
-0.11059223115444183,
0.06260965764522552,
-0.1430918574333191,
-0.39970773458480835,
0.14072349667549133,
0.042295683175325394,
-0.04230457544326782,
0.09094159305095673,
0.508324921131134,
-0.29785242676734924,
-0.2954479157924652,
-0.015929944813251495,
0.34258848428726196,
-0.21953116357326508,
-0.02661259099841118,
-0.0010128989815711975,
-0.20148906111717224,
0.17182135581970215,
-0.22029179334640503,
0.2704426348209381,
0.19960634410381317,
0.0886465460062027,
-0.03180178999900818,
-0.026457419618964195,
-0.11995553970336914,
0.23352307081222534,
-0.017807675525546074,
0.31554868817329407,
0.34714654088020325,
0.01343788206577301,
0.25354623794555664,
-0.09016777575016022,
0.14041975140571594,
0.17707383632659912,
-0.1144896000623703,
-0.2961033284664154,
-0.03229331597685814,
0.27103063464164734,
0.21350882947444916,
0.06430257111787796,
-0.21767666935920715,
0.029969144612550735,
0.05038923770189285,
0.21882764995098114,
-0.21956665813922882,
0.07821039110422134,
0.29575222730636597,
-0.0117953484877944,
-0.33635422587394714,
-0.2322540134191513,
0.4455832540988922,
0.013174045830965042,
0.29072701930999756,
0.06777817755937576,
1.0066262483596802,
-0.14849400520324707,
-0.2190231829881668,
0.1587972491979599,
0.7926889657974243,
-0.3115732669830322,
0.24843142926692963,
0.48308202624320984,
-0.2986965775489807,
0.8211820721626282,
-0.01661340519785881,
-0.36453497409820557,
-0.1641456037759781,
-0.13667064905166626,
-0.1700034737586975,
0.0876544862985611,
-0.002649538218975067,
0.2004672735929489,
-0.05107789486646652,
0.18422746658325195,
-0.10137313604354858,
0.217167928814888,
0.23808971047401428,
0.10054941475391388,
0.2311488389968872,
-0.07480822503566742,
-0.3827166259288788,
0.131162628531456,
-0.13494035601615906,
0.11471423506736755,
-0.02372952736914158,
-0.2013201117515564,
0.037426676601171494,
0.2488783448934555,
-0.3608264923095703,
-0.1343485414981842,
-0.226042702794075,
-0.3305653929710388,
0.32664790749549866,
-0.1139795333147049,
0.337353378534317,
0.3970014452934265,
0.4707857370376587,
0.07949715852737427,
-0.50946444272995,
-0.194909006357193,
-0.21591779589653015,
0.0558151938021183,
-0.18003806471824646,
0.01610613614320755,
0.10209536552429199,
0.0004818327724933624,
0.22105678915977478,
-0.02057134360074997,
0.18072538077831268,
-0.11201683431863785,
-0.12432407587766647,
-0.39299333095550537,
-0.4089445471763611,
-0.26691123843193054,
-0.17050176858901978,
-0.027946949005126953,
0.33065229654312134,
0.14677651226520538,
0.0032769478857517242,
0.032831788063049316,
0.013869449496269226,
-0.07261953502893448,
0.2106686681509018,
-0.09779033064842224,
0.05862110108137131,
0.3131096363067627,
-0.14999103546142578,
-0.3463740944862366,
0.16979853808879852,
0.38044074177742004,
-0.1371835321187973,
-0.025315918028354645,
0.23780754208564758,
0.1447298675775528,
-0.2337084412574768,
0.23624064028263092,
-0.0030241196509450674,
0.42220795154571533,
-0.24062620103359222,
0.22145025432109833,
0.11457562446594238,
-0.15042734146118164,
0.11208078265190125,
-0.029795005917549133,
-0.3483724296092987,
0.07112573832273483,
-0.09258918464183807,
0.10996299237012863,
0.26070189476013184,
0.3176027834415436,
-0.22442203760147095,
-0.14430978894233704,
-0.1806943416595459,
0.2057085484266281,
0.10341041535139084,
-0.24690428376197815,
0.5127019882202148,
0.038572244346141815,
-0.0325387567281723,
-0.2550118863582611,
-0.011799081228673458,
0.2553299367427826,
0.08145128190517426,
-0.12122854590415955,
-0.32037460803985596,
0.1789441853761673,
0.09333235770463943,
-0.24383126199245453,
0.3913862109184265,
0.05852968990802765,
-0.2808082401752472,
-0.11187537759542465,
0.2979219853878021,
0.33647963404655457,
0.06945639848709106,
0.09151260554790497,
0.2759011685848236,
0.023911558091640472,
-0.3470996022224426,
0.13201215863227844,
0.5605685710906982,
0.3578399419784546,
-0.11693365126848221,
0.1951976865530014,
-0.0951971784234047,
-0.1021147221326828,
-0.10127367824316025,
0.3330879807472229,
0.24879337847232819,
-0.28437894582748413,
0.3082823157310486,
-0.06773501634597778,
0.050200607627630234,
0.1177944466471672,
0.42975860834121704,
0.16522054374217987,
-0.027010060846805573,
0.25686055421829224,
0.24780887365341187,
-0.040336333215236664,
-0.0959719717502594,
0.0003726964059751481,
0.25556448101997375,
-0.05533934384584427,
-0.22610792517662048,
0.10611430555582047,
-0.22237367928028107,
0.1963721215724945,
0.2536015510559082,
-0.2184390127658844,
0.20038771629333496,
0.14007553458213806,
0.07792045176029205,
0.3293050527572632,
-0.005993243306875229,
0.07382331788539886,
0.03626545891165733,
0.17671231925487518,
0.01779814064502716,
-0.012359045445919037,
-0.08905670791864395,
-0.08593322336673737,
-0.3857779800891876,
0.21154366433620453,
0.5588369965553284,
-0.33933305740356445,
-0.16736479103565216,
0.03372839093208313,
0.09889311343431473,
0.3249579668045044,
0.06303500384092331,
0.38440895080566406,
-0.1210230365395546,
-0.5020899772644043,
-0.06805141270160675,
0.4779585599899292,
-0.12924441695213318,
-0.17285288870334625,
0.3824363946914673,
-0.23420614004135132,
-0.0782661885023117,
0.16055305302143097,
-0.41839608550071716,
-0.5010727643966675,
-0.10461694002151489,
0.11261354386806488,
0.14221441745758057,
-0.12554867565631866,
-0.2746416926383972,
0.061931051313877106,
0.04135658219456673,
0.032065365463495255,
0.0033369995653629303,
0.05156466364860535,
-0.19555968046188354,
0.033437032252550125,
0.39122384786605835,
0.10736086219549179,
0.007543651387095451,
0.21854418516159058,
0.21950872242450714,
-0.06519965827465057,
0.068072609603405,
0.3431728184223175,
0.10027271509170532,
-0.014509700238704681,
0.014264550060033798,
0.26511886715888977,
-0.021012717857956886,
0.09179701656103134,
-0.11690285801887512,
-0.13407328724861145,
0.3576865494251251,
-0.5578401684761047,
0.15544919669628143,
-0.3189813196659088,
0.085604228079319,
-0.293896347284317,
-0.026929445564746857,
-0.22643253207206726,
0.07869613915681839,
0.06836630403995514,
0.004373387433588505,
-0.03745926916599274,
0.02514517679810524,
0.0162542462348938,
0.1741611212491989,
0.5598730444908142,
0.2509247362613678,
0.36089712381362915,
-0.04692244902253151,
-0.18862605094909668,
-0.5740363597869873,
0.09190879762172699,
0.2876105010509491,
0.3142900764942169,
0.07910273969173431,
-0.1955462098121643,
0.1509922444820404,
0.16252334415912628,
0.03167048096656799,
0.10306794941425323,
0.013413001783192158,
0.21382229030132294,
0.19609329104423523,
-0.22645916044712067,
-0.2570655345916748,
0.09935645014047623,
-0.05716807022690773,
0.006985567510128021,
0.3534691631793976,
0.049158476293087006,
-0.16788965463638306,
-0.09993164241313934,
0.24522680044174194,
-0.16795721650123596,
-0.35933658480644226,
-0.09293818473815918,
0.19029974937438965,
0.3553282618522644,
-0.09494456648826599,
-0.13503530621528625,
0.0818086639046669,
-0.05977318063378334,
-0.35209551453590393,
0.28123044967651367,
-0.26889169216156006,
0.04599881172180176,
-0.15881648659706116,
-0.41640228033065796,
-0.27092525362968445,
0.08342588692903519,
0.14769452810287476,
0.12692618370056152,
-0.3275967538356781,
0.12716872990131378,
-0.274700403213501,
-0.2707834541797638,
0.3994167745113373,
0.39692023396492004,
-0.29432162642478943,
0.13459539413452148,
-0.1502515822649002,
0.08885559439659119,
0.5246822834014893,
-0.421852707862854,
0.06907784938812256,
0.18022283911705017,
-0.1340324729681015,
0.33214834332466125,
-0.5923343896865845,
-0.4125971794128418,
0.04038449376821518,
0.3092038333415985,
-0.053629614412784576,
0.22501185536384583,
0.20508573949337006,
-0.08220350742340088,
-0.06775609403848648,
-0.16261927783489227,
0.5423564314842224,
0.32972851395606995,
-0.05195567011833191,
0.26742789149284363,
-0.25180333852767944
] |
https://github.com/huggingface/datasets/issues/2056 | issue with opus100/en-fr dataset | @lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
` | 22 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
`
@lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks | [
-0.4117359519004822,
-0.16735093295574188,
-0.015644947066903114,
0.39724838733673096,
0.11825764179229736,
0.08237684518098831,
0.19225192070007324,
0.28199803829193115,
-0.14314943552017212,
0.2579928934574127,
-0.24243535101413727,
-0.024896010756492615,
0.13222330808639526,
0.38342130184173584,
-0.239913672208786,
-0.17258577048778534,
-0.07827239483594894,
0.12080913782119751,
-0.41650712490081787,
-0.12028931081295013,
-0.4559481739997864,
0.22388340532779694,
-0.15639306604862213,
0.22976700961589813,
0.3186609148979187,
-0.07025540620088577,
0.15184472501277924,
0.057933758944272995,
-0.29058337211608887,
-0.39386749267578125,
-0.15120187401771545,
-0.29925286769866943,
0.39835622906684875,
0.24865970015525818,
-0.0001240567653439939,
0.013962268829345703,
0.15798717737197876,
-0.038462135940790176,
0.08095929026603699,
-0.059217289090156555,
0.10003792494535446,
0.14733217656612396,
-0.028712429106235504,
-0.30514055490493774,
0.037182025611400604,
-0.22510197758674622,
-0.37088748812675476,
-0.2680356502532959,
0.2880217134952545,
0.3753129839897156,
0.08677598834037781,
0.5228815078735352,
0.33736103773117065,
-0.14620810747146606,
0.1830139458179474,
-0.042298346757888794,
0.05866193026304245,
-0.069361612200737,
0.32347965240478516,
-0.22807873785495758,
0.3684237599372864,
0.29935047030448914,
-0.110204316675663,
-0.1365143060684204,
0.22037652134895325,
-0.2563658654689789,
0.6804662942886353,
-0.5535478591918945,
0.01111593097448349,
0.34403377771377563,
0.07399068772792816,
0.023066628724336624,
-0.07224768400192261,
0.028432585299015045,
-0.014741565100848675,
-0.8122329711914062,
-0.09168203920125961,
0.11364978551864624,
-0.04266340285539627,
0.1667119264602661,
-0.3281252682209015,
0.05663559213280678,
0.08465166389942169,
0.18013498187065125,
0.03430216759443283,
0.33272063732147217,
0.006103668361902237,
0.29885509610176086,
0.25027257204055786,
-0.22951968014240265,
-0.4094233810901642,
0.2705802917480469,
-0.10853207111358643,
0.28716519474983215,
-0.4670941233634949,
-0.043988827615976334,
0.07007420808076859,
-0.13623714447021484,
0.49467140436172485,
0.2132566273212433,
-0.5131160020828247,
-0.16267997026443481,
0.41003870964050293,
-0.006746716797351837,
0.28499266505241394,
0.2695949673652649,
-0.011115014553070068,
0.023032184690237045,
0.20296575129032135,
0.021527236327528954,
0.12237831950187683,
-0.05726524442434311,
-0.04050060734152794,
-0.2940116226673126,
-0.25618618726730347,
-0.07253265380859375,
0.13846416771411896,
-0.48927944898605347,
-0.24090228974819183,
0.38810041546821594,
-0.31466948986053467,
-0.05952927842736244,
0.5197181701660156,
0.33393028378486633,
0.19663006067276,
-0.11512874811887741,
-0.09283524751663208,
0.2790851891040802,
-0.3406353294849396,
0.002182549796998501,
-0.018069809302687645,
-0.03179854154586792,
-0.036643363535404205,
0.01599033921957016,
-0.033779434859752655,
-0.6434459090232849,
0.2684478163719177,
0.16194163262844086,
0.5190978646278381,
-0.42694565653800964,
0.11982330679893494,
-0.21992430090904236,
-0.016850709915161133,
0.2775985598564148,
-0.05719537287950516,
0.1540132611989975,
0.3632330596446991,
0.0032507888972759247,
-0.059038691222667694,
0.05319247022271156,
-0.46135371923446655,
-0.4059748649597168,
-0.34449031949043274,
0.04951022192835808,
-0.1387341320514679,
0.44779959321022034,
0.1756896674633026,
-0.01665022224187851,
0.44234442710876465,
-0.18726970255374908,
0.2043519914150238,
-0.18262872099876404,
-0.3020607531070709,
0.051862962543964386,
0.3899743854999542,
0.1399204581975937,
0.026558171957731247,
0.14844200015068054,
0.21942409873008728,
0.2127540111541748,
0.3668288290500641,
0.518698513507843,
-0.27270305156707764,
-0.0015193670988082886,
-0.4783478379249573,
0.2312486320734024,
0.0005186349153518677,
-0.4624033570289612,
-0.24266821146011353,
-0.12475135922431946,
-0.2872539460659027,
-0.2944653034210205,
0.05536563694477081,
-0.17813894152641296,
0.67589271068573,
-0.04526734724640846,
0.21899117529392242,
0.07321709394454956,
0.04595299810171127,
-0.186319500207901,
-0.2554851472377777,
0.007722040638327599,
0.35137856006622314,
-0.19881309568881989,
0.008261334151029587,
-0.0232907235622406,
-0.04938187450170517,
-0.14823372662067413,
0.1101338118314743,
-0.060543742030858994,
0.1323254108428955,
0.2601276636123657,
0.21079400181770325,
0.0742596834897995,
0.24878787994384766,
-0.061124157160520554,
0.15357796847820282,
-0.05081374943256378,
-0.4693954586982727,
0.2518245577812195,
-0.07835997641086578,
0.007922947406768799,
-0.3655865788459778,
0.09754876792430878,
-0.10309715569019318,
-0.2655675709247589,
-0.0031701456755399704,
-0.21165505051612854,
0.11130906641483307,
0.10974946618080139,
0.16441787779331207,
-0.19833187758922577,
-0.001917848363518715,
0.22059985995292664,
-0.3111979365348816,
0.39915868639945984,
-0.24424229562282562,
-0.018490560352802277,
0.029029011726379395,
0.35713186860084534,
0.3908420205116272,
-0.2759009897708893,
-0.1644444763660431,
0.23479512333869934,
0.0223705992102623,
-0.290648877620697,
-0.28947529196739197,
0.3155040740966797,
0.16784511506557465,
-0.38677188754081726,
0.0024175047874450684,
-0.28256916999816895,
0.0304204523563385,
-0.0328214094042778,
0.19351845979690552,
0.5273355841636658,
-0.17043191194534302,
0.3984830975532532,
-0.2610982656478882,
0.11004117876291275,
0.025460468605160713,
0.1451859474182129,
0.0004749950021505356,
-0.17782117426395416,
0.3125908672809601,
0.31074288487434387,
0.11199989914894104,
0.06752736866474152,
-0.1241333931684494,
-0.05015525966882706,
0.29827681183815,
0.011672195047140121,
0.10620532929897308,
0.04986729100346565,
-0.08235009759664536,
-0.018344499170780182,
0.1508108675479889,
-0.299858421087265,
0.17139728367328644,
0.13587680459022522,
-0.05479667708277702,
0.012238341383635998,
-0.004968952387571335,
-0.012108112685382366,
0.25571784377098083,
0.02125312015414238,
0.38405555486679077,
0.19203177094459534,
0.001348643098026514,
-0.08902919292449951,
-0.15624794363975525,
-0.10548834502696991,
0.12330662459135056,
0.44786641001701355,
-0.2748398780822754,
0.0627046525478363,
-0.08543279021978378,
0.01974170282483101,
-0.12271302938461304,
-0.3330761790275574,
-0.6193657517433167,
-0.188841313123703,
0.11142940074205399,
0.03654005005955696,
0.030959855765104294,
0.05615575611591339,
0.14872688055038452,
-0.07035525143146515,
0.22868694365024567,
0.14578090608119965,
0.16936150193214417,
-0.06298209726810455,
-0.1823607087135315,
-0.1482490450143814,
0.195394366979599,
-0.016338225454092026,
0.04710900038480759,
0.13650083541870117,
-0.09677136689424515,
-0.032595857977867126,
-0.5894054770469666,
0.3106527030467987,
-0.05681363493204117,
0.3301670253276825,
0.04912334680557251,
0.11473517119884491,
-0.06338635087013245,
-0.13623012602329254,
0.19130054116249084,
0.09951267391443253,
-0.2120433896780014,
0.08224800229072571,
-0.08355893194675446,
0.23795533180236816,
-0.13266758620738983,
-0.09505308419466019,
-0.23275364935398102,
-0.4111007750034332,
0.2914523482322693,
-0.1913597285747528,
0.058713607490062714,
0.27945178747177124,
-0.15641501545906067,
-0.02058972790837288,
0.07979739457368851,
-0.13913127779960632,
-0.3224680423736572,
0.10247312486171722,
0.3471243381500244,
-0.28418830037117004,
-0.26155781745910645,
-0.2328040450811386,
0.1744873970746994,
0.2109631597995758,
-0.10368356108665466,
-0.41394591331481934,
-0.02161024697124958,
-0.12470507621765137,
0.07976128160953522,
-0.23714426159858704,
0.1470896154642105,
0.3746412694454193,
-0.1469145119190216,
-0.0013902746140956879,
-0.10652339458465576,
-0.12483279407024384,
0.18233740329742432,
-0.090052530169487,
0.0056257545948028564,
-0.040817245841026306,
0.7449667453765869,
-0.1414623111486435,
0.5462419390678406,
0.11663801968097687,
0.04635190963745117,
0.3334828317165375,
-0.185360386967659,
0.36385154724121094,
-0.09257916361093521,
-0.30354973673820496,
0.2539817988872528,
0.25159698724746704,
-0.2397889345884323,
0.16352586448192596,
-0.1627693772315979,
0.09148010611534119,
-0.06578799337148666,
-0.10140524804592133,
0.054939739406108856,
-0.2810802757740021,
-0.1190142035484314,
0.4435952603816986,
0.3401423394680023,
0.07350580394268036,
0.4127734303474426,
-0.08512897789478302,
-0.1578100323677063,
0.10607758164405823,
-0.03022843599319458,
-0.038312144577503204,
0.1415875256061554,
-0.6263697743415833,
-0.4313111901283264,
-0.5289615392684937,
0.41552120447158813,
0.07415813952684402,
0.7487244009971619,
-0.18716731667518616,
0.10062365978956223,
0.07125139981508255,
0.06396297365427017,
0.7198225855827332,
0.20710796117782593,
-0.02130035310983658,
-0.03991657495498657,
-0.14771687984466553,
-0.2423105239868164,
-0.1408003270626068,
-0.027839303016662598,
0.5661064982414246,
0.02406873181462288,
0.6595686078071594,
-0.25673237442970276,
-0.29794371128082275,
0.3916320204734802,
0.13204942643642426,
-0.16797566413879395,
-0.06061311066150665,
-0.19553567469120026,
-0.3098433017730713,
-0.26393693685531616,
0.3379344940185547,
0.19405508041381836,
0.5438349843025208,
-0.12344850599765778,
-0.015889503061771393,
0.16314373910427094,
-0.19433528184890747,
0.10991482436656952,
0.16430051624774933,
0.4007408022880554,
0.07970530539751053,
0.08985699713230133,
0.21128268539905548,
-0.055895477533340454,
0.595017671585083,
0.10406894981861115,
-0.06041942909359932,
-0.09154045581817627,
0.19391393661499023,
0.013167989440262318,
0.3254159986972809,
0.13910262286663055,
0.09675730019807816,
0.10802008211612701,
0.14630717039108276,
0.38304632902145386,
-0.25499847531318665,
-0.027254311367869377,
0.21922247111797333,
0.25641387701034546,
-0.37608805298805237,
0.04466022551059723,
0.05866888165473938,
0.05657993629574776,
-0.01721063256263733,
0.26154202222824097,
0.32562825083732605,
-0.16925475001335144,
0.19657425582408905,
0.4372459352016449,
1.125349521636963,
-0.2956354022026062,
-0.0780399739742279,
-0.127017080783844,
-0.3361191749572754,
0.6042554974555969,
-0.26303184032440186,
-0.04624944180250168,
-0.34730055928230286,
-0.12855994701385498,
0.029081175103783607,
-0.1867009550333023,
-0.009772151708602905,
-0.2190948873758316,
-0.0997648686170578,
0.1527131199836731,
-0.22510357201099396,
-0.15809519588947296,
-0.2182849943637848,
0.22694572806358337,
0.32245737314224243,
-0.23322097957134247,
-0.15305373072624207,
-0.03276824206113815,
-0.06460600346326828,
0.1714261770248413,
-0.21025341749191284,
-0.17223159968852997,
0.1970990002155304,
-0.23681889474391937,
-0.22999465465545654,
-0.14150819182395935,
-0.4525681734085083,
0.2946382761001587,
0.020807085558772087,
-0.3227228820323944,
0.33003222942352295,
0.13362014293670654,
0.12281470000743866,
0.4325302541255951,
-0.22025829553604126,
-0.02687693014740944,
-0.006368987262248993,
-0.1093926951289177,
-0.08678920567035675,
0.0674537941813469,
0.044667214155197144,
-0.11347518861293793,
-0.41933467984199524,
0.10085627436637878,
-0.04158621281385422,
-0.037232354283332825,
-0.118216872215271,
0.15145373344421387,
0.15903203189373016,
-0.23313677310943604,
0.31063389778137207,
0.02927670255303383,
-0.10713842511177063,
-0.23913027346134186,
-0.06054944917559624,
0.11021155118942261,
-0.43077874183654785,
0.019544847309589386,
0.09354851394891739,
-0.4853810966014862,
0.008995389565825462,
0.44142624735832214,
-0.021724391728639603,
-0.12563323974609375,
0.5604749917984009,
0.38702553510665894,
-0.08330101519823074,
-0.08913102746009827,
0.06656009703874588,
0.3794838786125183,
-0.3428516685962677,
-0.020678501576185226,
-0.026881804689764977,
0.03663851320743561,
-0.03188544511795044,
0.0771934986114502,
0.14659106731414795,
-0.005567580461502075,
-0.10012535750865936,
-0.49277448654174805,
-0.4502185583114624,
0.1050359457731247,
-0.14111942052841187,
0.09197615087032318,
0.17323026061058044,
0.05336886644363403,
-0.21244336664676666,
-0.061938099563121796,
-0.15852200984954834,
-0.06348510086536407,
-0.42073267698287964,
0.23240840435028076,
0.10087311267852783,
-0.431216835975647,
0.03964456543326378,
-0.023310940712690353,
-0.0935196503996849,
0.1902826726436615,
-0.3172386586666107,
-0.0028024446219205856,
-0.15535444021224976,
0.239362433552742,
-0.09554986655712128,
-0.5256471037864685,
0.002838119864463806,
-0.14026275277137756,
-0.12862515449523926,
-0.14502498507499695,
-0.06846480071544647,
0.17215928435325623,
0.06603216379880905,
-0.2844122052192688,
0.27853065729141235,
-0.2525465488433838,
-0.1802472472190857,
0.0735497921705246,
0.2667732238769531,
0.18055182695388794,
-0.031223712489008904,
0.4272298812866211,
0.04696960747241974,
-0.17941613495349884,
-0.4443587064743042,
0.08446528762578964,
0.24035900831222534,
-0.30848583579063416,
0.0818072184920311,
-0.2272556573152542,
-0.10024037957191467,
0.4624747931957245,
0.4395345449447632,
0.39526233077049255,
0.005478380247950554,
-0.06401028484106064,
0.2593298554420471,
0.06969135999679565,
-0.16714586317539215,
-0.13681162893772125,
0.2515742778778076,
-0.004936038516461849,
-0.06902915239334106,
0.42978793382644653,
0.2808302342891693,
0.0913783460855484,
0.06304394453763962,
0.04230690002441406,
0.26335951685905457,
0.14250928163528442,
0.08284634351730347,
0.12847256660461426,
-0.09135507047176361,
-0.03809020295739174,
0.275004118680954,
-0.06232095882296562,
0.4039423167705536,
0.3254384398460388,
-0.19078299403190613,
0.1284181922674179,
0.4210963547229767,
0.1274307370185852,
0.1366225630044937,
-0.26246336102485657,
-0.11232379078865051,
0.22445330023765564,
0.23466967046260834,
0.11280637979507446,
-0.11134469509124756,
0.7335342168807983,
-0.08745155483484268,
-0.33454224467277527,
-0.02573811449110508,
0.45917201042175293,
-0.274783730506897,
-0.08902129530906677,
-0.15613381564617157,
-0.13246819376945496,
-0.03224743902683258,
-0.0687892884016037,
0.1778806447982788,
0.05892498791217804,
-0.022229596972465515,
0.023392576724290848,
-0.2222559005022049,
-0.3103198707103729,
-0.5450295209884644,
0.5357755422592163,
-0.029343299567699432,
-0.32211950421333313,
0.3328132927417755,
0.38622885942459106,
-0.10732781887054443,
0.16935496032238007,
0.33210280537605286,
0.5232437252998352,
0.23269975185394287,
-0.1036636084318161,
-0.07962439954280853,
0.06393587589263916,
0.1587669998407364,
-0.03278471902012825,
-0.08394791185855865,
0.08795473724603653,
0.13561281561851501,
0.08774563670158386,
-0.06674550473690033,
-0.052109494805336,
-0.044939074665308,
0.2036181539297104,
0.05954211577773094,
0.0997648537158966,
-0.5444073677062988,
-0.1548728048801422,
-0.13108783960342407,
-0.32982346415519714,
0.028837695717811584,
-0.145481139421463,
0.284245103597641,
0.30095502734184265,
-0.04385273903608322,
0.033954210579395294,
0.036765456199645996,
0.002388298511505127,
-0.18562322854995728,
0.40920060873031616,
0.4066261649131775,
0.011280324310064316,
-0.2685200273990631,
-0.13448920845985413,
-0.40660014748573303,
0.24261444807052612,
-0.31824979186058044,
-0.10873023420572281,
0.416859894990921,
0.15101630985736847,
0.03825509175658226,
0.04518986493349075,
0.4998103380203247,
-0.24656973779201508,
-0.13619372248649597,
0.2110142707824707,
-0.32377973198890686,
-0.03807732090353966,
-0.21836785972118378,
-0.05809430032968521,
0.1589760184288025,
0.013718128204345703,
0.327230840921402,
-0.05709940940141678,
-0.07973606884479523,
-0.30923330783843994,
0.22657522559165955,
-0.3428744971752167,
-0.09711344540119171,
0.18312379717826843,
0.40925970673561096,
0.260373055934906,
0.1465848684310913,
0.08634620904922485,
0.17153391242027283,
-0.2983762323856354,
-0.05593758448958397,
0.26142534613609314,
0.025977229699492455,
0.018819496035575867,
-0.1280236691236496,
-0.7292585372924805,
-0.48944738507270813,
0.1618310958147049,
0.018607012927532196,
-0.21612048149108887,
-0.2587127983570099,
0.32207775115966797,
-0.08697734028100967,
0.018175359815359116,
0.14647655189037323,
0.31365156173706055,
0.39151230454444885,
0.24258463084697723,
-0.26417040824890137,
-0.4147348701953888,
0.6981277465820312,
-0.5851551294326782,
-0.20280387997627258,
-0.20273901522159576,
0.22334083914756775,
0.5235949754714966,
-0.3709132969379425,
-0.3115881681442261,
-0.05131862312555313,
0.21268042922019958,
0.2346116602420807,
-0.4300559461116791,
-0.047907572239637375,
-0.2759917080402374,
-0.08745525777339935,
0.026260148733854294,
-0.025526531040668488,
0.16173622012138367,
-0.26018914580345154,
0.26983416080474854,
-0.04767807945609093
] |
https://github.com/huggingface/datasets/issues/2056 | issue with opus100/en-fr dataset | Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast
```
from datasets import load_dataset
from transformers import MT5TokenizerFast
def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer):
datasets = load_dataset(dataset_name, dataset_config_name, script_version="master")
column_names = datasets["train"].column_names
text_column_name = "translation"
def process_dataset(datasets):
def process_function(examples):
lang = "fr"
return {"src_texts": [example[lang] for example in examples[text_column_name]]}
datasets = datasets.map(
process_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True,
)
return datasets
datasets = process_dataset(datasets)
text_column_name = "src_texts"
column_names = ["src_texts"]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True
)
if __name__ == "__main__":
tokenizer_kwargs = {
"cache_dir": None,
"use_fast": True,
"revision": "main",
"use_auth_token": None
}
tokenizer = MT5TokenizerFast.from_pretrained("google/mt5-small", **tokenizer_kwargs)
get_tokenized_dataset(dataset_name="opus100", dataset_config_name="en-fr", tokenizer=tokenizer)
~
``` | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
` | 114 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
`
Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast
```
from datasets import load_dataset
from transformers import MT5TokenizerFast
def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer):
datasets = load_dataset(dataset_name, dataset_config_name, script_version="master")
column_names = datasets["train"].column_names
text_column_name = "translation"
def process_dataset(datasets):
def process_function(examples):
lang = "fr"
return {"src_texts": [example[lang] for example in examples[text_column_name]]}
datasets = datasets.map(
process_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True,
)
return datasets
datasets = process_dataset(datasets)
text_column_name = "src_texts"
column_names = ["src_texts"]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True
)
if __name__ == "__main__":
tokenizer_kwargs = {
"cache_dir": None,
"use_fast": True,
"revision": "main",
"use_auth_token": None
}
tokenizer = MT5TokenizerFast.from_pretrained("google/mt5-small", **tokenizer_kwargs)
get_tokenized_dataset(dataset_name="opus100", dataset_config_name="en-fr", tokenizer=tokenizer)
~
``` | [
-0.4117359519004822,
-0.16735093295574188,
-0.015644947066903114,
0.39724838733673096,
0.11825764179229736,
0.08237684518098831,
0.19225192070007324,
0.28199803829193115,
-0.14314943552017212,
0.2579928934574127,
-0.24243535101413727,
-0.024896010756492615,
0.13222330808639526,
0.38342130184173584,
-0.239913672208786,
-0.17258577048778534,
-0.07827239483594894,
0.12080913782119751,
-0.41650712490081787,
-0.12028931081295013,
-0.4559481739997864,
0.22388340532779694,
-0.15639306604862213,
0.22976700961589813,
0.3186609148979187,
-0.07025540620088577,
0.15184472501277924,
0.057933758944272995,
-0.29058337211608887,
-0.39386749267578125,
-0.15120187401771545,
-0.29925286769866943,
0.39835622906684875,
0.24865970015525818,
-0.0001240567653439939,
0.013962268829345703,
0.15798717737197876,
-0.038462135940790176,
0.08095929026603699,
-0.059217289090156555,
0.10003792494535446,
0.14733217656612396,
-0.028712429106235504,
-0.30514055490493774,
0.037182025611400604,
-0.22510197758674622,
-0.37088748812675476,
-0.2680356502532959,
0.2880217134952545,
0.3753129839897156,
0.08677598834037781,
0.5228815078735352,
0.33736103773117065,
-0.14620810747146606,
0.1830139458179474,
-0.042298346757888794,
0.05866193026304245,
-0.069361612200737,
0.32347965240478516,
-0.22807873785495758,
0.3684237599372864,
0.29935047030448914,
-0.110204316675663,
-0.1365143060684204,
0.22037652134895325,
-0.2563658654689789,
0.6804662942886353,
-0.5535478591918945,
0.01111593097448349,
0.34403377771377563,
0.07399068772792816,
0.023066628724336624,
-0.07224768400192261,
0.028432585299015045,
-0.014741565100848675,
-0.8122329711914062,
-0.09168203920125961,
0.11364978551864624,
-0.04266340285539627,
0.1667119264602661,
-0.3281252682209015,
0.05663559213280678,
0.08465166389942169,
0.18013498187065125,
0.03430216759443283,
0.33272063732147217,
0.006103668361902237,
0.29885509610176086,
0.25027257204055786,
-0.22951968014240265,
-0.4094233810901642,
0.2705802917480469,
-0.10853207111358643,
0.28716519474983215,
-0.4670941233634949,
-0.043988827615976334,
0.07007420808076859,
-0.13623714447021484,
0.49467140436172485,
0.2132566273212433,
-0.5131160020828247,
-0.16267997026443481,
0.41003870964050293,
-0.006746716797351837,
0.28499266505241394,
0.2695949673652649,
-0.011115014553070068,
0.023032184690237045,
0.20296575129032135,
0.021527236327528954,
0.12237831950187683,
-0.05726524442434311,
-0.04050060734152794,
-0.2940116226673126,
-0.25618618726730347,
-0.07253265380859375,
0.13846416771411896,
-0.48927944898605347,
-0.24090228974819183,
0.38810041546821594,
-0.31466948986053467,
-0.05952927842736244,
0.5197181701660156,
0.33393028378486633,
0.19663006067276,
-0.11512874811887741,
-0.09283524751663208,
0.2790851891040802,
-0.3406353294849396,
0.002182549796998501,
-0.018069809302687645,
-0.03179854154586792,
-0.036643363535404205,
0.01599033921957016,
-0.033779434859752655,
-0.6434459090232849,
0.2684478163719177,
0.16194163262844086,
0.5190978646278381,
-0.42694565653800964,
0.11982330679893494,
-0.21992430090904236,
-0.016850709915161133,
0.2775985598564148,
-0.05719537287950516,
0.1540132611989975,
0.3632330596446991,
0.0032507888972759247,
-0.059038691222667694,
0.05319247022271156,
-0.46135371923446655,
-0.4059748649597168,
-0.34449031949043274,
0.04951022192835808,
-0.1387341320514679,
0.44779959321022034,
0.1756896674633026,
-0.01665022224187851,
0.44234442710876465,
-0.18726970255374908,
0.2043519914150238,
-0.18262872099876404,
-0.3020607531070709,
0.051862962543964386,
0.3899743854999542,
0.1399204581975937,
0.026558171957731247,
0.14844200015068054,
0.21942409873008728,
0.2127540111541748,
0.3668288290500641,
0.518698513507843,
-0.27270305156707764,
-0.0015193670988082886,
-0.4783478379249573,
0.2312486320734024,
0.0005186349153518677,
-0.4624033570289612,
-0.24266821146011353,
-0.12475135922431946,
-0.2872539460659027,
-0.2944653034210205,
0.05536563694477081,
-0.17813894152641296,
0.67589271068573,
-0.04526734724640846,
0.21899117529392242,
0.07321709394454956,
0.04595299810171127,
-0.186319500207901,
-0.2554851472377777,
0.007722040638327599,
0.35137856006622314,
-0.19881309568881989,
0.008261334151029587,
-0.0232907235622406,
-0.04938187450170517,
-0.14823372662067413,
0.1101338118314743,
-0.060543742030858994,
0.1323254108428955,
0.2601276636123657,
0.21079400181770325,
0.0742596834897995,
0.24878787994384766,
-0.061124157160520554,
0.15357796847820282,
-0.05081374943256378,
-0.4693954586982727,
0.2518245577812195,
-0.07835997641086578,
0.007922947406768799,
-0.3655865788459778,
0.09754876792430878,
-0.10309715569019318,
-0.2655675709247589,
-0.0031701456755399704,
-0.21165505051612854,
0.11130906641483307,
0.10974946618080139,
0.16441787779331207,
-0.19833187758922577,
-0.001917848363518715,
0.22059985995292664,
-0.3111979365348816,
0.39915868639945984,
-0.24424229562282562,
-0.018490560352802277,
0.029029011726379395,
0.35713186860084534,
0.3908420205116272,
-0.2759009897708893,
-0.1644444763660431,
0.23479512333869934,
0.0223705992102623,
-0.290648877620697,
-0.28947529196739197,
0.3155040740966797,
0.16784511506557465,
-0.38677188754081726,
0.0024175047874450684,
-0.28256916999816895,
0.0304204523563385,
-0.0328214094042778,
0.19351845979690552,
0.5273355841636658,
-0.17043191194534302,
0.3984830975532532,
-0.2610982656478882,
0.11004117876291275,
0.025460468605160713,
0.1451859474182129,
0.0004749950021505356,
-0.17782117426395416,
0.3125908672809601,
0.31074288487434387,
0.11199989914894104,
0.06752736866474152,
-0.1241333931684494,
-0.05015525966882706,
0.29827681183815,
0.011672195047140121,
0.10620532929897308,
0.04986729100346565,
-0.08235009759664536,
-0.018344499170780182,
0.1508108675479889,
-0.299858421087265,
0.17139728367328644,
0.13587680459022522,
-0.05479667708277702,
0.012238341383635998,
-0.004968952387571335,
-0.012108112685382366,
0.25571784377098083,
0.02125312015414238,
0.38405555486679077,
0.19203177094459534,
0.001348643098026514,
-0.08902919292449951,
-0.15624794363975525,
-0.10548834502696991,
0.12330662459135056,
0.44786641001701355,
-0.2748398780822754,
0.0627046525478363,
-0.08543279021978378,
0.01974170282483101,
-0.12271302938461304,
-0.3330761790275574,
-0.6193657517433167,
-0.188841313123703,
0.11142940074205399,
0.03654005005955696,
0.030959855765104294,
0.05615575611591339,
0.14872688055038452,
-0.07035525143146515,
0.22868694365024567,
0.14578090608119965,
0.16936150193214417,
-0.06298209726810455,
-0.1823607087135315,
-0.1482490450143814,
0.195394366979599,
-0.016338225454092026,
0.04710900038480759,
0.13650083541870117,
-0.09677136689424515,
-0.032595857977867126,
-0.5894054770469666,
0.3106527030467987,
-0.05681363493204117,
0.3301670253276825,
0.04912334680557251,
0.11473517119884491,
-0.06338635087013245,
-0.13623012602329254,
0.19130054116249084,
0.09951267391443253,
-0.2120433896780014,
0.08224800229072571,
-0.08355893194675446,
0.23795533180236816,
-0.13266758620738983,
-0.09505308419466019,
-0.23275364935398102,
-0.4111007750034332,
0.2914523482322693,
-0.1913597285747528,
0.058713607490062714,
0.27945178747177124,
-0.15641501545906067,
-0.02058972790837288,
0.07979739457368851,
-0.13913127779960632,
-0.3224680423736572,
0.10247312486171722,
0.3471243381500244,
-0.28418830037117004,
-0.26155781745910645,
-0.2328040450811386,
0.1744873970746994,
0.2109631597995758,
-0.10368356108665466,
-0.41394591331481934,
-0.02161024697124958,
-0.12470507621765137,
0.07976128160953522,
-0.23714426159858704,
0.1470896154642105,
0.3746412694454193,
-0.1469145119190216,
-0.0013902746140956879,
-0.10652339458465576,
-0.12483279407024384,
0.18233740329742432,
-0.090052530169487,
0.0056257545948028564,
-0.040817245841026306,
0.7449667453765869,
-0.1414623111486435,
0.5462419390678406,
0.11663801968097687,
0.04635190963745117,
0.3334828317165375,
-0.185360386967659,
0.36385154724121094,
-0.09257916361093521,
-0.30354973673820496,
0.2539817988872528,
0.25159698724746704,
-0.2397889345884323,
0.16352586448192596,
-0.1627693772315979,
0.09148010611534119,
-0.06578799337148666,
-0.10140524804592133,
0.054939739406108856,
-0.2810802757740021,
-0.1190142035484314,
0.4435952603816986,
0.3401423394680023,
0.07350580394268036,
0.4127734303474426,
-0.08512897789478302,
-0.1578100323677063,
0.10607758164405823,
-0.03022843599319458,
-0.038312144577503204,
0.1415875256061554,
-0.6263697743415833,
-0.4313111901283264,
-0.5289615392684937,
0.41552120447158813,
0.07415813952684402,
0.7487244009971619,
-0.18716731667518616,
0.10062365978956223,
0.07125139981508255,
0.06396297365427017,
0.7198225855827332,
0.20710796117782593,
-0.02130035310983658,
-0.03991657495498657,
-0.14771687984466553,
-0.2423105239868164,
-0.1408003270626068,
-0.027839303016662598,
0.5661064982414246,
0.02406873181462288,
0.6595686078071594,
-0.25673237442970276,
-0.29794371128082275,
0.3916320204734802,
0.13204942643642426,
-0.16797566413879395,
-0.06061311066150665,
-0.19553567469120026,
-0.3098433017730713,
-0.26393693685531616,
0.3379344940185547,
0.19405508041381836,
0.5438349843025208,
-0.12344850599765778,
-0.015889503061771393,
0.16314373910427094,
-0.19433528184890747,
0.10991482436656952,
0.16430051624774933,
0.4007408022880554,
0.07970530539751053,
0.08985699713230133,
0.21128268539905548,
-0.055895477533340454,
0.595017671585083,
0.10406894981861115,
-0.06041942909359932,
-0.09154045581817627,
0.19391393661499023,
0.013167989440262318,
0.3254159986972809,
0.13910262286663055,
0.09675730019807816,
0.10802008211612701,
0.14630717039108276,
0.38304632902145386,
-0.25499847531318665,
-0.027254311367869377,
0.21922247111797333,
0.25641387701034546,
-0.37608805298805237,
0.04466022551059723,
0.05866888165473938,
0.05657993629574776,
-0.01721063256263733,
0.26154202222824097,
0.32562825083732605,
-0.16925475001335144,
0.19657425582408905,
0.4372459352016449,
1.125349521636963,
-0.2956354022026062,
-0.0780399739742279,
-0.127017080783844,
-0.3361191749572754,
0.6042554974555969,
-0.26303184032440186,
-0.04624944180250168,
-0.34730055928230286,
-0.12855994701385498,
0.029081175103783607,
-0.1867009550333023,
-0.009772151708602905,
-0.2190948873758316,
-0.0997648686170578,
0.1527131199836731,
-0.22510357201099396,
-0.15809519588947296,
-0.2182849943637848,
0.22694572806358337,
0.32245737314224243,
-0.23322097957134247,
-0.15305373072624207,
-0.03276824206113815,
-0.06460600346326828,
0.1714261770248413,
-0.21025341749191284,
-0.17223159968852997,
0.1970990002155304,
-0.23681889474391937,
-0.22999465465545654,
-0.14150819182395935,
-0.4525681734085083,
0.2946382761001587,
0.020807085558772087,
-0.3227228820323944,
0.33003222942352295,
0.13362014293670654,
0.12281470000743866,
0.4325302541255951,
-0.22025829553604126,
-0.02687693014740944,
-0.006368987262248993,
-0.1093926951289177,
-0.08678920567035675,
0.0674537941813469,
0.044667214155197144,
-0.11347518861293793,
-0.41933467984199524,
0.10085627436637878,
-0.04158621281385422,
-0.037232354283332825,
-0.118216872215271,
0.15145373344421387,
0.15903203189373016,
-0.23313677310943604,
0.31063389778137207,
0.02927670255303383,
-0.10713842511177063,
-0.23913027346134186,
-0.06054944917559624,
0.11021155118942261,
-0.43077874183654785,
0.019544847309589386,
0.09354851394891739,
-0.4853810966014862,
0.008995389565825462,
0.44142624735832214,
-0.021724391728639603,
-0.12563323974609375,
0.5604749917984009,
0.38702553510665894,
-0.08330101519823074,
-0.08913102746009827,
0.06656009703874588,
0.3794838786125183,
-0.3428516685962677,
-0.020678501576185226,
-0.026881804689764977,
0.03663851320743561,
-0.03188544511795044,
0.0771934986114502,
0.14659106731414795,
-0.005567580461502075,
-0.10012535750865936,
-0.49277448654174805,
-0.4502185583114624,
0.1050359457731247,
-0.14111942052841187,
0.09197615087032318,
0.17323026061058044,
0.05336886644363403,
-0.21244336664676666,
-0.061938099563121796,
-0.15852200984954834,
-0.06348510086536407,
-0.42073267698287964,
0.23240840435028076,
0.10087311267852783,
-0.431216835975647,
0.03964456543326378,
-0.023310940712690353,
-0.0935196503996849,
0.1902826726436615,
-0.3172386586666107,
-0.0028024446219205856,
-0.15535444021224976,
0.239362433552742,
-0.09554986655712128,
-0.5256471037864685,
0.002838119864463806,
-0.14026275277137756,
-0.12862515449523926,
-0.14502498507499695,
-0.06846480071544647,
0.17215928435325623,
0.06603216379880905,
-0.2844122052192688,
0.27853065729141235,
-0.2525465488433838,
-0.1802472472190857,
0.0735497921705246,
0.2667732238769531,
0.18055182695388794,
-0.031223712489008904,
0.4272298812866211,
0.04696960747241974,
-0.17941613495349884,
-0.4443587064743042,
0.08446528762578964,
0.24035900831222534,
-0.30848583579063416,
0.0818072184920311,
-0.2272556573152542,
-0.10024037957191467,
0.4624747931957245,
0.4395345449447632,
0.39526233077049255,
0.005478380247950554,
-0.06401028484106064,
0.2593298554420471,
0.06969135999679565,
-0.16714586317539215,
-0.13681162893772125,
0.2515742778778076,
-0.004936038516461849,
-0.06902915239334106,
0.42978793382644653,
0.2808302342891693,
0.0913783460855484,
0.06304394453763962,
0.04230690002441406,
0.26335951685905457,
0.14250928163528442,
0.08284634351730347,
0.12847256660461426,
-0.09135507047176361,
-0.03809020295739174,
0.275004118680954,
-0.06232095882296562,
0.4039423167705536,
0.3254384398460388,
-0.19078299403190613,
0.1284181922674179,
0.4210963547229767,
0.1274307370185852,
0.1366225630044937,
-0.26246336102485657,
-0.11232379078865051,
0.22445330023765564,
0.23466967046260834,
0.11280637979507446,
-0.11134469509124756,
0.7335342168807983,
-0.08745155483484268,
-0.33454224467277527,
-0.02573811449110508,
0.45917201042175293,
-0.274783730506897,
-0.08902129530906677,
-0.15613381564617157,
-0.13246819376945496,
-0.03224743902683258,
-0.0687892884016037,
0.1778806447982788,
0.05892498791217804,
-0.022229596972465515,
0.023392576724290848,
-0.2222559005022049,
-0.3103198707103729,
-0.5450295209884644,
0.5357755422592163,
-0.029343299567699432,
-0.32211950421333313,
0.3328132927417755,
0.38622885942459106,
-0.10732781887054443,
0.16935496032238007,
0.33210280537605286,
0.5232437252998352,
0.23269975185394287,
-0.1036636084318161,
-0.07962439954280853,
0.06393587589263916,
0.1587669998407364,
-0.03278471902012825,
-0.08394791185855865,
0.08795473724603653,
0.13561281561851501,
0.08774563670158386,
-0.06674550473690033,
-0.052109494805336,
-0.044939074665308,
0.2036181539297104,
0.05954211577773094,
0.0997648537158966,
-0.5444073677062988,
-0.1548728048801422,
-0.13108783960342407,
-0.32982346415519714,
0.028837695717811584,
-0.145481139421463,
0.284245103597641,
0.30095502734184265,
-0.04385273903608322,
0.033954210579395294,
0.036765456199645996,
0.002388298511505127,
-0.18562322854995728,
0.40920060873031616,
0.4066261649131775,
0.011280324310064316,
-0.2685200273990631,
-0.13448920845985413,
-0.40660014748573303,
0.24261444807052612,
-0.31824979186058044,
-0.10873023420572281,
0.416859894990921,
0.15101630985736847,
0.03825509175658226,
0.04518986493349075,
0.4998103380203247,
-0.24656973779201508,
-0.13619372248649597,
0.2110142707824707,
-0.32377973198890686,
-0.03807732090353966,
-0.21836785972118378,
-0.05809430032968521,
0.1589760184288025,
0.013718128204345703,
0.327230840921402,
-0.05709940940141678,
-0.07973606884479523,
-0.30923330783843994,
0.22657522559165955,
-0.3428744971752167,
-0.09711344540119171,
0.18312379717826843,
0.40925970673561096,
0.260373055934906,
0.1465848684310913,
0.08634620904922485,
0.17153391242027283,
-0.2983762323856354,
-0.05593758448958397,
0.26142534613609314,
0.025977229699492455,
0.018819496035575867,
-0.1280236691236496,
-0.7292585372924805,
-0.48944738507270813,
0.1618310958147049,
0.018607012927532196,
-0.21612048149108887,
-0.2587127983570099,
0.32207775115966797,
-0.08697734028100967,
0.018175359815359116,
0.14647655189037323,
0.31365156173706055,
0.39151230454444885,
0.24258463084697723,
-0.26417040824890137,
-0.4147348701953888,
0.6981277465820312,
-0.5851551294326782,
-0.20280387997627258,
-0.20273901522159576,
0.22334083914756775,
0.5235949754714966,
-0.3709132969379425,
-0.3115881681442261,
-0.05131862312555313,
0.21268042922019958,
0.2346116602420807,
-0.4300559461116791,
-0.047907572239637375,
-0.2759917080402374,
-0.08745525777339935,
0.026260148733854294,
-0.025526531040668488,
0.16173622012138367,
-0.26018914580345154,
0.26983416080474854,
-0.04767807945609093
] |
https://github.com/huggingface/datasets/issues/2056 | issue with opus100/en-fr dataset | as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one. | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
` | 23 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
`
as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one. | [
-0.4117359519004822,
-0.16735093295574188,
-0.015644947066903114,
0.39724838733673096,
0.11825764179229736,
0.08237684518098831,
0.19225192070007324,
0.28199803829193115,
-0.14314943552017212,
0.2579928934574127,
-0.24243535101413727,
-0.024896010756492615,
0.13222330808639526,
0.38342130184173584,
-0.239913672208786,
-0.17258577048778534,
-0.07827239483594894,
0.12080913782119751,
-0.41650712490081787,
-0.12028931081295013,
-0.4559481739997864,
0.22388340532779694,
-0.15639306604862213,
0.22976700961589813,
0.3186609148979187,
-0.07025540620088577,
0.15184472501277924,
0.057933758944272995,
-0.29058337211608887,
-0.39386749267578125,
-0.15120187401771545,
-0.29925286769866943,
0.39835622906684875,
0.24865970015525818,
-0.0001240567653439939,
0.013962268829345703,
0.15798717737197876,
-0.038462135940790176,
0.08095929026603699,
-0.059217289090156555,
0.10003792494535446,
0.14733217656612396,
-0.028712429106235504,
-0.30514055490493774,
0.037182025611400604,
-0.22510197758674622,
-0.37088748812675476,
-0.2680356502532959,
0.2880217134952545,
0.3753129839897156,
0.08677598834037781,
0.5228815078735352,
0.33736103773117065,
-0.14620810747146606,
0.1830139458179474,
-0.042298346757888794,
0.05866193026304245,
-0.069361612200737,
0.32347965240478516,
-0.22807873785495758,
0.3684237599372864,
0.29935047030448914,
-0.110204316675663,
-0.1365143060684204,
0.22037652134895325,
-0.2563658654689789,
0.6804662942886353,
-0.5535478591918945,
0.01111593097448349,
0.34403377771377563,
0.07399068772792816,
0.023066628724336624,
-0.07224768400192261,
0.028432585299015045,
-0.014741565100848675,
-0.8122329711914062,
-0.09168203920125961,
0.11364978551864624,
-0.04266340285539627,
0.1667119264602661,
-0.3281252682209015,
0.05663559213280678,
0.08465166389942169,
0.18013498187065125,
0.03430216759443283,
0.33272063732147217,
0.006103668361902237,
0.29885509610176086,
0.25027257204055786,
-0.22951968014240265,
-0.4094233810901642,
0.2705802917480469,
-0.10853207111358643,
0.28716519474983215,
-0.4670941233634949,
-0.043988827615976334,
0.07007420808076859,
-0.13623714447021484,
0.49467140436172485,
0.2132566273212433,
-0.5131160020828247,
-0.16267997026443481,
0.41003870964050293,
-0.006746716797351837,
0.28499266505241394,
0.2695949673652649,
-0.011115014553070068,
0.023032184690237045,
0.20296575129032135,
0.021527236327528954,
0.12237831950187683,
-0.05726524442434311,
-0.04050060734152794,
-0.2940116226673126,
-0.25618618726730347,
-0.07253265380859375,
0.13846416771411896,
-0.48927944898605347,
-0.24090228974819183,
0.38810041546821594,
-0.31466948986053467,
-0.05952927842736244,
0.5197181701660156,
0.33393028378486633,
0.19663006067276,
-0.11512874811887741,
-0.09283524751663208,
0.2790851891040802,
-0.3406353294849396,
0.002182549796998501,
-0.018069809302687645,
-0.03179854154586792,
-0.036643363535404205,
0.01599033921957016,
-0.033779434859752655,
-0.6434459090232849,
0.2684478163719177,
0.16194163262844086,
0.5190978646278381,
-0.42694565653800964,
0.11982330679893494,
-0.21992430090904236,
-0.016850709915161133,
0.2775985598564148,
-0.05719537287950516,
0.1540132611989975,
0.3632330596446991,
0.0032507888972759247,
-0.059038691222667694,
0.05319247022271156,
-0.46135371923446655,
-0.4059748649597168,
-0.34449031949043274,
0.04951022192835808,
-0.1387341320514679,
0.44779959321022034,
0.1756896674633026,
-0.01665022224187851,
0.44234442710876465,
-0.18726970255374908,
0.2043519914150238,
-0.18262872099876404,
-0.3020607531070709,
0.051862962543964386,
0.3899743854999542,
0.1399204581975937,
0.026558171957731247,
0.14844200015068054,
0.21942409873008728,
0.2127540111541748,
0.3668288290500641,
0.518698513507843,
-0.27270305156707764,
-0.0015193670988082886,
-0.4783478379249573,
0.2312486320734024,
0.0005186349153518677,
-0.4624033570289612,
-0.24266821146011353,
-0.12475135922431946,
-0.2872539460659027,
-0.2944653034210205,
0.05536563694477081,
-0.17813894152641296,
0.67589271068573,
-0.04526734724640846,
0.21899117529392242,
0.07321709394454956,
0.04595299810171127,
-0.186319500207901,
-0.2554851472377777,
0.007722040638327599,
0.35137856006622314,
-0.19881309568881989,
0.008261334151029587,
-0.0232907235622406,
-0.04938187450170517,
-0.14823372662067413,
0.1101338118314743,
-0.060543742030858994,
0.1323254108428955,
0.2601276636123657,
0.21079400181770325,
0.0742596834897995,
0.24878787994384766,
-0.061124157160520554,
0.15357796847820282,
-0.05081374943256378,
-0.4693954586982727,
0.2518245577812195,
-0.07835997641086578,
0.007922947406768799,
-0.3655865788459778,
0.09754876792430878,
-0.10309715569019318,
-0.2655675709247589,
-0.0031701456755399704,
-0.21165505051612854,
0.11130906641483307,
0.10974946618080139,
0.16441787779331207,
-0.19833187758922577,
-0.001917848363518715,
0.22059985995292664,
-0.3111979365348816,
0.39915868639945984,
-0.24424229562282562,
-0.018490560352802277,
0.029029011726379395,
0.35713186860084534,
0.3908420205116272,
-0.2759009897708893,
-0.1644444763660431,
0.23479512333869934,
0.0223705992102623,
-0.290648877620697,
-0.28947529196739197,
0.3155040740966797,
0.16784511506557465,
-0.38677188754081726,
0.0024175047874450684,
-0.28256916999816895,
0.0304204523563385,
-0.0328214094042778,
0.19351845979690552,
0.5273355841636658,
-0.17043191194534302,
0.3984830975532532,
-0.2610982656478882,
0.11004117876291275,
0.025460468605160713,
0.1451859474182129,
0.0004749950021505356,
-0.17782117426395416,
0.3125908672809601,
0.31074288487434387,
0.11199989914894104,
0.06752736866474152,
-0.1241333931684494,
-0.05015525966882706,
0.29827681183815,
0.011672195047140121,
0.10620532929897308,
0.04986729100346565,
-0.08235009759664536,
-0.018344499170780182,
0.1508108675479889,
-0.299858421087265,
0.17139728367328644,
0.13587680459022522,
-0.05479667708277702,
0.012238341383635998,
-0.004968952387571335,
-0.012108112685382366,
0.25571784377098083,
0.02125312015414238,
0.38405555486679077,
0.19203177094459534,
0.001348643098026514,
-0.08902919292449951,
-0.15624794363975525,
-0.10548834502696991,
0.12330662459135056,
0.44786641001701355,
-0.2748398780822754,
0.0627046525478363,
-0.08543279021978378,
0.01974170282483101,
-0.12271302938461304,
-0.3330761790275574,
-0.6193657517433167,
-0.188841313123703,
0.11142940074205399,
0.03654005005955696,
0.030959855765104294,
0.05615575611591339,
0.14872688055038452,
-0.07035525143146515,
0.22868694365024567,
0.14578090608119965,
0.16936150193214417,
-0.06298209726810455,
-0.1823607087135315,
-0.1482490450143814,
0.195394366979599,
-0.016338225454092026,
0.04710900038480759,
0.13650083541870117,
-0.09677136689424515,
-0.032595857977867126,
-0.5894054770469666,
0.3106527030467987,
-0.05681363493204117,
0.3301670253276825,
0.04912334680557251,
0.11473517119884491,
-0.06338635087013245,
-0.13623012602329254,
0.19130054116249084,
0.09951267391443253,
-0.2120433896780014,
0.08224800229072571,
-0.08355893194675446,
0.23795533180236816,
-0.13266758620738983,
-0.09505308419466019,
-0.23275364935398102,
-0.4111007750034332,
0.2914523482322693,
-0.1913597285747528,
0.058713607490062714,
0.27945178747177124,
-0.15641501545906067,
-0.02058972790837288,
0.07979739457368851,
-0.13913127779960632,
-0.3224680423736572,
0.10247312486171722,
0.3471243381500244,
-0.28418830037117004,
-0.26155781745910645,
-0.2328040450811386,
0.1744873970746994,
0.2109631597995758,
-0.10368356108665466,
-0.41394591331481934,
-0.02161024697124958,
-0.12470507621765137,
0.07976128160953522,
-0.23714426159858704,
0.1470896154642105,
0.3746412694454193,
-0.1469145119190216,
-0.0013902746140956879,
-0.10652339458465576,
-0.12483279407024384,
0.18233740329742432,
-0.090052530169487,
0.0056257545948028564,
-0.040817245841026306,
0.7449667453765869,
-0.1414623111486435,
0.5462419390678406,
0.11663801968097687,
0.04635190963745117,
0.3334828317165375,
-0.185360386967659,
0.36385154724121094,
-0.09257916361093521,
-0.30354973673820496,
0.2539817988872528,
0.25159698724746704,
-0.2397889345884323,
0.16352586448192596,
-0.1627693772315979,
0.09148010611534119,
-0.06578799337148666,
-0.10140524804592133,
0.054939739406108856,
-0.2810802757740021,
-0.1190142035484314,
0.4435952603816986,
0.3401423394680023,
0.07350580394268036,
0.4127734303474426,
-0.08512897789478302,
-0.1578100323677063,
0.10607758164405823,
-0.03022843599319458,
-0.038312144577503204,
0.1415875256061554,
-0.6263697743415833,
-0.4313111901283264,
-0.5289615392684937,
0.41552120447158813,
0.07415813952684402,
0.7487244009971619,
-0.18716731667518616,
0.10062365978956223,
0.07125139981508255,
0.06396297365427017,
0.7198225855827332,
0.20710796117782593,
-0.02130035310983658,
-0.03991657495498657,
-0.14771687984466553,
-0.2423105239868164,
-0.1408003270626068,
-0.027839303016662598,
0.5661064982414246,
0.02406873181462288,
0.6595686078071594,
-0.25673237442970276,
-0.29794371128082275,
0.3916320204734802,
0.13204942643642426,
-0.16797566413879395,
-0.06061311066150665,
-0.19553567469120026,
-0.3098433017730713,
-0.26393693685531616,
0.3379344940185547,
0.19405508041381836,
0.5438349843025208,
-0.12344850599765778,
-0.015889503061771393,
0.16314373910427094,
-0.19433528184890747,
0.10991482436656952,
0.16430051624774933,
0.4007408022880554,
0.07970530539751053,
0.08985699713230133,
0.21128268539905548,
-0.055895477533340454,
0.595017671585083,
0.10406894981861115,
-0.06041942909359932,
-0.09154045581817627,
0.19391393661499023,
0.013167989440262318,
0.3254159986972809,
0.13910262286663055,
0.09675730019807816,
0.10802008211612701,
0.14630717039108276,
0.38304632902145386,
-0.25499847531318665,
-0.027254311367869377,
0.21922247111797333,
0.25641387701034546,
-0.37608805298805237,
0.04466022551059723,
0.05866888165473938,
0.05657993629574776,
-0.01721063256263733,
0.26154202222824097,
0.32562825083732605,
-0.16925475001335144,
0.19657425582408905,
0.4372459352016449,
1.125349521636963,
-0.2956354022026062,
-0.0780399739742279,
-0.127017080783844,
-0.3361191749572754,
0.6042554974555969,
-0.26303184032440186,
-0.04624944180250168,
-0.34730055928230286,
-0.12855994701385498,
0.029081175103783607,
-0.1867009550333023,
-0.009772151708602905,
-0.2190948873758316,
-0.0997648686170578,
0.1527131199836731,
-0.22510357201099396,
-0.15809519588947296,
-0.2182849943637848,
0.22694572806358337,
0.32245737314224243,
-0.23322097957134247,
-0.15305373072624207,
-0.03276824206113815,
-0.06460600346326828,
0.1714261770248413,
-0.21025341749191284,
-0.17223159968852997,
0.1970990002155304,
-0.23681889474391937,
-0.22999465465545654,
-0.14150819182395935,
-0.4525681734085083,
0.2946382761001587,
0.020807085558772087,
-0.3227228820323944,
0.33003222942352295,
0.13362014293670654,
0.12281470000743866,
0.4325302541255951,
-0.22025829553604126,
-0.02687693014740944,
-0.006368987262248993,
-0.1093926951289177,
-0.08678920567035675,
0.0674537941813469,
0.044667214155197144,
-0.11347518861293793,
-0.41933467984199524,
0.10085627436637878,
-0.04158621281385422,
-0.037232354283332825,
-0.118216872215271,
0.15145373344421387,
0.15903203189373016,
-0.23313677310943604,
0.31063389778137207,
0.02927670255303383,
-0.10713842511177063,
-0.23913027346134186,
-0.06054944917559624,
0.11021155118942261,
-0.43077874183654785,
0.019544847309589386,
0.09354851394891739,
-0.4853810966014862,
0.008995389565825462,
0.44142624735832214,
-0.021724391728639603,
-0.12563323974609375,
0.5604749917984009,
0.38702553510665894,
-0.08330101519823074,
-0.08913102746009827,
0.06656009703874588,
0.3794838786125183,
-0.3428516685962677,
-0.020678501576185226,
-0.026881804689764977,
0.03663851320743561,
-0.03188544511795044,
0.0771934986114502,
0.14659106731414795,
-0.005567580461502075,
-0.10012535750865936,
-0.49277448654174805,
-0.4502185583114624,
0.1050359457731247,
-0.14111942052841187,
0.09197615087032318,
0.17323026061058044,
0.05336886644363403,
-0.21244336664676666,
-0.061938099563121796,
-0.15852200984954834,
-0.06348510086536407,
-0.42073267698287964,
0.23240840435028076,
0.10087311267852783,
-0.431216835975647,
0.03964456543326378,
-0.023310940712690353,
-0.0935196503996849,
0.1902826726436615,
-0.3172386586666107,
-0.0028024446219205856,
-0.15535444021224976,
0.239362433552742,
-0.09554986655712128,
-0.5256471037864685,
0.002838119864463806,
-0.14026275277137756,
-0.12862515449523926,
-0.14502498507499695,
-0.06846480071544647,
0.17215928435325623,
0.06603216379880905,
-0.2844122052192688,
0.27853065729141235,
-0.2525465488433838,
-0.1802472472190857,
0.0735497921705246,
0.2667732238769531,
0.18055182695388794,
-0.031223712489008904,
0.4272298812866211,
0.04696960747241974,
-0.17941613495349884,
-0.4443587064743042,
0.08446528762578964,
0.24035900831222534,
-0.30848583579063416,
0.0818072184920311,
-0.2272556573152542,
-0.10024037957191467,
0.4624747931957245,
0.4395345449447632,
0.39526233077049255,
0.005478380247950554,
-0.06401028484106064,
0.2593298554420471,
0.06969135999679565,
-0.16714586317539215,
-0.13681162893772125,
0.2515742778778076,
-0.004936038516461849,
-0.06902915239334106,
0.42978793382644653,
0.2808302342891693,
0.0913783460855484,
0.06304394453763962,
0.04230690002441406,
0.26335951685905457,
0.14250928163528442,
0.08284634351730347,
0.12847256660461426,
-0.09135507047176361,
-0.03809020295739174,
0.275004118680954,
-0.06232095882296562,
0.4039423167705536,
0.3254384398460388,
-0.19078299403190613,
0.1284181922674179,
0.4210963547229767,
0.1274307370185852,
0.1366225630044937,
-0.26246336102485657,
-0.11232379078865051,
0.22445330023765564,
0.23466967046260834,
0.11280637979507446,
-0.11134469509124756,
0.7335342168807983,
-0.08745155483484268,
-0.33454224467277527,
-0.02573811449110508,
0.45917201042175293,
-0.274783730506897,
-0.08902129530906677,
-0.15613381564617157,
-0.13246819376945496,
-0.03224743902683258,
-0.0687892884016037,
0.1778806447982788,
0.05892498791217804,
-0.022229596972465515,
0.023392576724290848,
-0.2222559005022049,
-0.3103198707103729,
-0.5450295209884644,
0.5357755422592163,
-0.029343299567699432,
-0.32211950421333313,
0.3328132927417755,
0.38622885942459106,
-0.10732781887054443,
0.16935496032238007,
0.33210280537605286,
0.5232437252998352,
0.23269975185394287,
-0.1036636084318161,
-0.07962439954280853,
0.06393587589263916,
0.1587669998407364,
-0.03278471902012825,
-0.08394791185855865,
0.08795473724603653,
0.13561281561851501,
0.08774563670158386,
-0.06674550473690033,
-0.052109494805336,
-0.044939074665308,
0.2036181539297104,
0.05954211577773094,
0.0997648537158966,
-0.5444073677062988,
-0.1548728048801422,
-0.13108783960342407,
-0.32982346415519714,
0.028837695717811584,
-0.145481139421463,
0.284245103597641,
0.30095502734184265,
-0.04385273903608322,
0.033954210579395294,
0.036765456199645996,
0.002388298511505127,
-0.18562322854995728,
0.40920060873031616,
0.4066261649131775,
0.011280324310064316,
-0.2685200273990631,
-0.13448920845985413,
-0.40660014748573303,
0.24261444807052612,
-0.31824979186058044,
-0.10873023420572281,
0.416859894990921,
0.15101630985736847,
0.03825509175658226,
0.04518986493349075,
0.4998103380203247,
-0.24656973779201508,
-0.13619372248649597,
0.2110142707824707,
-0.32377973198890686,
-0.03807732090353966,
-0.21836785972118378,
-0.05809430032968521,
0.1589760184288025,
0.013718128204345703,
0.327230840921402,
-0.05709940940141678,
-0.07973606884479523,
-0.30923330783843994,
0.22657522559165955,
-0.3428744971752167,
-0.09711344540119171,
0.18312379717826843,
0.40925970673561096,
0.260373055934906,
0.1465848684310913,
0.08634620904922485,
0.17153391242027283,
-0.2983762323856354,
-0.05593758448958397,
0.26142534613609314,
0.025977229699492455,
0.018819496035575867,
-0.1280236691236496,
-0.7292585372924805,
-0.48944738507270813,
0.1618310958147049,
0.018607012927532196,
-0.21612048149108887,
-0.2587127983570099,
0.32207775115966797,
-0.08697734028100967,
0.018175359815359116,
0.14647655189037323,
0.31365156173706055,
0.39151230454444885,
0.24258463084697723,
-0.26417040824890137,
-0.4147348701953888,
0.6981277465820312,
-0.5851551294326782,
-0.20280387997627258,
-0.20273901522159576,
0.22334083914756775,
0.5235949754714966,
-0.3709132969379425,
-0.3115881681442261,
-0.05131862312555313,
0.21268042922019958,
0.2346116602420807,
-0.4300559461116791,
-0.047907572239637375,
-0.2759917080402374,
-0.08745525777339935,
0.026260148733854294,
-0.025526531040668488,
0.16173622012138367,
-0.26018914580345154,
0.26983416080474854,
-0.04767807945609093
] |
https://github.com/huggingface/datasets/issues/2055 | is there a way to override a dataset object saved with save_to_disk? | I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file,
```
dataset_with_embedding =csv_dataset.map(
partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=self.context_tokenizer),
batched=True,
batch_size=1,
features=new_features,
cache_file_name=cache_arrow_path,
load_from_cache_file=False
)
```
So here we set a cache_file_name , after this it uses the same file name when saving again and again. | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 69 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file,
```
dataset_with_embedding =csv_dataset.map(
partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=self.context_tokenizer),
batched=True,
batch_size=1,
features=new_features,
cache_file_name=cache_arrow_path,
load_from_cache_file=False
)
```
So here we set a cache_file_name , after this it uses the same file name when saving again and again. | [
0.018776755779981613,
-0.15488940477371216,
-0.014641838148236275,
-0.03985344618558884,
0.24491778016090393,
0.27030330896377563,
0.14376619458198547,
0.1278604120016098,
0.11003550887107849,
0.1771553009748459,
0.35045140981674194,
0.4532107412815094,
-0.2038121521472931,
-0.036236703395843506,
0.24566736817359924,
0.152811661362648,
0.4748806953430176,
-0.02025410532951355,
-0.025606811046600342,
0.27139347791671753,
-0.4494590163230896,
0.2261943519115448,
0.2889966368675232,
-0.042448148131370544,
-0.15775123238563538,
-0.1020556166768074,
0.05107218027114868,
-0.19240152835845947,
0.17306751012802124,
-0.400998592376709,
0.28723299503326416,
0.17241594195365906,
0.00013255327939987183,
0.14868870377540588,
-0.00012018567940685898,
-0.17888356745243073,
-0.030084028840065002,
-0.11758063733577728,
-0.24674689769744873,
0.19991759955883026,
-0.20805862545967102,
-0.30767494440078735,
0.05577816814184189,
-0.526828944683075,
0.23349028825759888,
0.06895186752080917,
0.23015737533569336,
-0.3817868232727051,
0.19154848158359528,
-0.14450454711914062,
0.10072968900203705,
-0.13988959789276123,
0.017927546054124832,
0.2429853230714798,
0.06843303143978119,
-0.025823183357715607,
-0.2400592565536499,
0.29392674565315247,
0.025716304779052734,
0.302886962890625,
0.10996145755052567,
0.05428679287433624,
-0.16942115128040314,
0.04805143550038338,
0.6855140924453735,
-0.025839705020189285,
-0.22123947739601135,
-0.04906746745109558,
0.21122518181800842,
0.030193040147423744,
0.6607091426849365,
-0.4477232098579407,
-0.14428800344467163,
-0.06010318547487259,
-0.0591600239276886,
-0.476039856672287,
0.234495609998703,
-0.25218549370765686,
0.09125900268554688,
0.12441708147525787,
-0.14751683175563812,
-0.567284107208252,
-0.13889890909194946,
0.04130738973617554,
0.2410663366317749,
-0.43220219016075134,
-0.14716388285160065,
0.22764334082603455,
0.20357941091060638,
-0.004079904407262802,
0.4306221008300781,
-0.39345523715019226,
-0.38423290848731995,
-0.20308294892311096,
-0.20610280334949493,
-0.1462680548429489,
-0.3850916624069214,
0.2905322313308716,
0.025623925030231476,
0.1989113986492157,
0.4617832899093628,
0.22646397352218628,
-0.00004204642027616501,
0.24839970469474792,
0.042742788791656494,
0.28690189123153687,
0.050778381526470184,
0.014792718924582005,
0.09575533121824265,
-0.22342029213905334,
-0.2146572768688202,
-0.14359194040298462,
0.2676706314086914,
-0.3017745912075043,
0.6434218883514404,
-0.12056899815797806,
0.09178028255701065,
-0.1733265370130539,
0.18079562485218048,
-0.0465303435921669,
0.22989007830619812,
0.21853861212730408,
-0.11403780430555344,
-0.01729419082403183,
0.016586806625127792,
-0.028529629111289978,
-0.11959780752658844,
0.009990578517317772,
0.1471547931432724,
0.1509026437997818,
0.022468697279691696,
-0.19857409596443176,
0.18764637410640717,
0.42620202898979187,
0.11722870171070099,
0.06192177161574364,
0.08144640922546387,
-0.1745312660932541,
0.07543817162513733,
-0.15346065163612366,
0.2329118549823761,
0.041962623596191406,
0.4006003141403198,
-0.11498752236366272,
-0.13123710453510284,
0.2729935348033905,
0.02395806834101677,
-0.22957561910152435,
-0.1466405987739563,
0.22716152667999268,
-0.36770886182785034,
-0.3400833308696747,
0.10101111978292465,
0.02359813079237938,
-0.3579708933830261,
-0.07785055786371231,
-0.5644940733909607,
0.05334797129034996,
0.06241640821099281,
-0.22273023426532745,
0.24587565660476685,
0.2875831127166748,
-0.18625043332576752,
-0.31759873032569885,
-0.08985522389411926,
0.26367318630218506,
-0.38610216975212097,
-0.002346605062484741,
-0.09457895159721375,
0.06422184407711029,
-0.3352032005786896,
-0.0623733289539814,
-0.13913758099079132,
-0.23023715615272522,
-0.30094191431999207,
-0.06634323298931122,
0.31271541118621826,
-0.2570265829563141,
-0.6499446034431458,
-0.041911788284778595,
-0.045766979455947876,
-0.03692430630326271,
0.13324031233787537,
0.3977471590042114,
0.20849719643592834,
-0.017515111714601517,
-0.30629509687423706,
0.06421960890293121,
0.03592440485954285,
-0.24911020696163177,
-0.15345384180545807,
-0.15861350297927856,
-0.11604921519756317,
-0.2702696919441223,
-0.25790905952453613,
0.3812932074069977,
-0.04600601643323898,
-0.18067805469036102,
0.05448454990983009,
0.07456915080547333,
0.2152923345565796,
0.45881468057632446,
0.3959978222846985,
-0.17526307702064514,
-0.05871983990073204,
-0.10273241251707077,
-0.452517569065094,
0.059537373483181,
0.43587130308151245,
-0.4237765371799469,
0.10292008519172668,
-0.2893725037574768,
0.030379407107830048,
0.05880472809076309,
-0.18575842678546906,
0.09301027655601501,
-0.049470454454422,
0.3206634521484375,
0.06824292242527008,
-0.18171371519565582,
-0.2254602313041687,
0.30567213892936707,
0.0819488987326622,
0.08078737556934357,
-0.19695895910263062,
-0.08394559472799301,
0.04762039706110954,
-0.09040875732898712,
-0.46442413330078125,
-0.20129242539405823,
0.1987287998199463,
-0.18827621638774872,
-0.1613457202911377,
0.491029292345047,
-0.19107672572135925,
0.20470982789993286,
0.1569015085697174,
0.4119260907173157,
-0.041173286736011505,
-0.32912278175354004,
0.20224006474018097,
0.09879632294178009,
0.0716334730386734,
0.06592812389135361,
-0.1734011471271515,
0.2870250940322876,
0.04870375990867615,
0.07851678133010864,
-0.05998396873474121,
0.13260532915592194,
0.22570976614952087,
-0.03736448287963867,
-0.19950978457927704,
-0.23793715238571167,
-0.34044572710990906,
0.1995519995689392,
0.39605000615119934,
-0.10044260323047638,
-0.1189197525382042,
0.17764008045196533,
0.5097329616546631,
0.03745551034808159,
0.11998255550861359,
-0.038211971521377563,
-0.3550250828266144,
-0.1304754614830017,
-0.09800444543361664,
0.6063190698623657,
0.35699641704559326,
0.1172185093164444,
0.057832419872283936,
-0.2137327939271927,
0.11268166452646255,
0.0051052141934633255,
0.2453826367855072,
0.10024300217628479,
0.20059695839881897,
-0.021801330149173737,
0.22792217135429382,
-0.17441187798976898,
-0.21179670095443726,
0.1703074723482132,
0.08767119795084,
-0.03935616463422775,
0.05725349113345146,
0.17788539826869965,
-0.1406293660402298,
-0.002529311925172806,
-0.3594074845314026,
0.14179974794387817,
-0.3370629847049713,
-0.27885162830352783,
-0.07003892958164215,
0.5343754887580872,
0.0857299417257309,
0.1341640055179596,
-0.08170673996210098,
0.4854329824447632,
-0.18191537261009216,
-0.48021113872528076,
-0.06354605406522751,
0.07656516134738922,
-0.12301888316869736,
-0.09750416874885559,
0.01903926208615303,
-0.4540124833583832,
0.2778123617172241,
0.11079631000757217,
0.21130883693695068,
-0.6378809213638306,
0.10112354904413223,
-0.10673487186431885,
0.3585079312324524,
0.24715732038021088,
-0.14796295762062073,
0.11345928907394409,
-0.22188568115234375,
-0.017292026430368423,
-0.0711410641670227,
-0.022931044921278954,
0.07921943813562393,
-0.020404493436217308,
0.03526878356933594,
0.17450371384620667,
0.05406496301293373,
0.12567496299743652,
-0.23164002597332,
-0.1592324674129486,
0.15516391396522522,
-0.11619634926319122,
-0.005929574370384216,
-0.12075992673635483,
0.0031599681824445724,
-0.05896972864866257,
0.10948847979307175,
-0.45395731925964355,
-0.23082192242145538,
-0.6659762859344482,
0.5767188668251038,
-0.254672646522522,
-0.03100666031241417,
0.10166622698307037,
-0.09430544823408127,
-0.010053236037492752,
0.2011735737323761,
-0.33979904651641846,
-0.10341808944940567,
-0.10087625682353973,
0.22342842817306519,
0.09485077857971191,
-0.34115201234817505,
0.24154707789421082,
0.5115861296653748,
-0.0540488138794899,
-0.09834259748458862,
-0.5508171319961548,
0.2543379068374634,
0.24408861994743347,
0.4389617443084717,
0.35652992129325867,
0.1832323968410492,
0.04261736199259758,
0.46084290742874146,
-0.2074301540851593,
0.025448665022850037,
0.4877781569957733,
0.10067965090274811,
0.39071062207221985,
0.051401156932115555,
-0.05895732343196869,
-0.2013407200574875,
-0.312338262796402,
-0.1426023244857788,
-0.026809677481651306,
-0.011530399322509766,
-0.015669332817196846,
0.23340874910354614,
0.05042768642306328,
-0.029805436730384827,
-0.33466970920562744,
0.007738953456282616,
-0.2926950752735138,
0.12006759643554688,
0.04336705431342125,
-0.1981489062309265,
-0.4714188873767853,
-0.2149314284324646,
0.087235227227211,
0.3912336230278015,
0.12727291882038116,
-0.08267511427402496,
-0.5049142241477966,
-0.011739143170416355,
-0.48056215047836304,
0.4296472668647766,
-0.2495909482240677,
0.11662159115076065,
0.04421323165297508,
0.05845422297716141,
-0.10808049142360687,
-0.08460314571857452,
0.8759830594062805,
-0.13533881306648254,
0.1624021828174591,
-0.08969034254550934,
0.19077254831790924,
-0.08411497622728348,
0.08783382177352905,
0.42052099108695984,
0.4367333650588989,
-0.2517590820789337,
0.2692507803440094,
0.2571456730365753,
-0.08063779771327972,
-0.11693644523620605,
0.35351482033729553,
-0.5934958457946777,
-0.12064056843519211,
0.2151971012353897,
-0.08269250392913818,
-0.05795460194349289,
-0.35400882363319397,
0.18011626601219177,
0.023067496716976166,
0.10586533695459366,
-0.08195628225803375,
-0.4227648079395294,
-0.03434346243739128,
0.04526468738913536,
-0.28901970386505127,
0.4680202603340149,
-0.15452741086483002,
0.006953146308660507,
-0.08506104350090027,
0.2909587323665619,
0.3853335976600647,
0.28279536962509155,
-0.33843955397605896,
-0.34476056694984436,
-0.06374859809875488,
-0.14119787514209747,
0.1837269365787506,
0.11235465109348297,
-0.06052348390221596,
0.24211329221725464,
0.1979687213897705,
-0.18805168569087982,
-0.005777816288173199,
0.10275492817163467,
-0.0924401730298996,
0.3334358334541321,
-0.1502130925655365,
-0.40147149562835693,
0.37417072057724,
0.2887125015258789,
-0.006609722971916199,
0.24340911209583282,
0.11077213287353516,
-0.4094184339046478,
0.4683390259742737,
0.023810945451259613,
0.6857128739356995,
0.03289513289928436,
0.3769577443599701,
-0.23155897855758667,
-0.31670641899108887,
0.15255646407604218,
-0.089174285531044,
0.09092839807271957,
-0.12173843383789062,
-0.2212100625038147,
-0.02912275493144989,
0.09530656039714813,
0.3272644877433777,
0.4822121858596802,
-0.05027313530445099,
0.3661997616291046,
-0.1519140899181366,
0.09645100682973862,
-0.25948408246040344,
0.07716301083564758,
-0.1766589879989624,
-0.1769033521413803,
0.14726270735263824,
0.05715259164571762,
0.011742163449525833,
-0.1370297223329544,
0.10000786185264587,
-0.07602772116661072,
0.07868383824825287,
-0.00020414963364601135,
-0.19844821095466614,
-0.2250744104385376,
-0.17405958473682404,
-0.21318404376506805,
-0.24699637293815613,
-0.46276915073394775,
0.012172035872936249,
0.27712613344192505,
0.32720863819122314,
0.07560548186302185,
-0.013924481347203255,
0.18026669323444366,
0.22201699018478394,
0.05467653647065163,
-0.24646469950675964,
-0.0767870843410492,
0.16959454119205475,
0.04482965171337128,
0.04364583641290665,
0.035059768706560135,
0.07267262041568756,
-0.46163588762283325,
0.3340905010700226,
-0.14733335375785828,
0.16426809132099152,
-0.047640495002269745,
-0.5405939221382141,
-0.16174928843975067,
-0.23076747357845306,
-0.32116833329200745,
0.05243580788373947,
-0.10108517110347748,
-0.054255902767181396,
0.3596062660217285,
-0.23788835108280182,
-0.08767833560705185,
0.1408545970916748,
0.31421640515327454,
-0.11578578501939774,
-0.19486533105373383,
0.6367977857589722,
-0.4938899874687195,
0.04823707044124603,
-0.1050162985920906,
0.24236956238746643,
0.10088995099067688,
-0.07805965095758438,
0.17577403783798218,
-0.1397126466035843,
0.11407758295536041,
-0.06659779697656631,
-0.13688629865646362,
0.11697015166282654,
0.32026544213294983,
-0.26146507263183594,
-0.1922057569026947,
-0.47880902886390686,
-0.10562571883201599,
0.22392220795154572,
0.3366803526878357,
-0.07045724242925644,
-0.42453834414482117,
-0.14245760440826416,
-0.04767397791147232,
-0.14465907216072083,
0.03850731998682022,
0.019961489364504814,
-0.03279336541891098,
0.21659472584724426,
0.4628361165523529,
0.05852964147925377,
-0.09027677774429321,
-0.07175402343273163,
-0.02286623790860176,
-0.06309062242507935,
-0.13425128161907196,
-0.22629503905773163,
0.18885894119739532,
-0.12669286131858826,
-0.23237387835979462,
-0.17361000180244446,
-0.3062693476676941,
0.23623216152191162,
-0.07037671655416489,
-0.2308468371629715,
0.18916529417037964,
0.10714749246835709,
0.2860008180141449,
-0.03353578969836235,
0.11149992793798447,
0.014768663793802261,
-0.16621126234531403,
0.21845410764217377,
0.38393187522888184,
0.17907795310020447,
0.21594800055027008,
-0.0518779419362545,
-0.06886109709739685,
-0.14276348054409027,
-0.11996931582689285,
-0.05187442898750305,
-0.018767770379781723,
-0.19140443205833435,
-0.10523045063018799,
-0.07207397371530533,
0.46259889006614685,
0.10934245586395264,
0.010647464543581009,
-0.22171030938625336,
-0.14830316603183746,
0.3819299042224884,
0.055683284997940063,
0.062201276421546936,
-0.35569483041763306,
0.48379871249198914,
-0.33914822340011597,
0.026101473718881607,
0.1197480782866478,
0.1509523242712021,
0.09486398100852966,
-0.2867462635040283,
-0.10768216848373413,
0.3201240599155426,
-0.41626137495040894,
0.2764836847782135,
0.11645013093948364,
0.1428452730178833,
0.12206311523914337,
0.46233245730400085,
0.3871823847293854,
0.38414889574050903,
0.7751976251602173,
-0.011257268488407135,
0.006685264408588409,
0.45954546332359314,
-0.08496282994747162,
-0.010280407965183258,
-0.1649312824010849,
0.14950112998485565,
-0.10435563325881958,
-0.06561556458473206,
0.5459071397781372,
0.4420742094516754,
0.007658444344997406,
0.009714771062135696,
-0.3250494599342346,
0.09481441974639893,
-0.009108569473028183,
0.06004060059785843,
-0.3881412446498871,
0.20453758537769318,
0.020789042115211487,
0.17572075128555298,
0.23215508460998535,
-0.20622941851615906,
-0.31995689868927,
0.3652498722076416,
-0.14820440113544464,
0.049794893711805344,
0.23166388273239136,
0.2691745162010193,
-0.1120104268193245,
0.18320733308792114,
-0.03725562244653702,
-0.1261146366596222,
-0.30103373527526855,
-0.07761012017726898,
0.09200673550367355,
-0.026149535551667213,
-0.1929471343755722,
-0.10823771357536316,
0.03872498869895935,
0.168185755610466,
-0.03581590577960014,
-0.02563595585525036,
-0.11809331923723221,
-0.31947314739227295,
0.010824933648109436,
-0.3204702138900757,
0.14948053658008575,
0.055962756276130676,
0.05986229330301285,
0.19303199648857117,
0.21737276017665863,
0.4506445825099945,
-0.2284136563539505,
-0.13949552178382874,
0.2904869616031647,
-0.4147694408893585,
-0.010719694197177887,
0.11113383620977402,
-0.07370271533727646,
-0.3833250403404236,
0.7265052795410156,
0.00430666096508503,
0.0901438370347023,
0.08397088199853897,
0.04552258551120758,
-0.13259559869766235,
0.3578697443008423,
-0.17253795266151428,
-0.04253619909286499,
-0.2654023766517639,
-0.030787654221057892,
-0.38123664259910583,
0.13566705584526062,
0.3085464537143707,
0.08378084748983383,
-0.1038389727473259,
-0.07070732861757278,
-0.01794503629207611,
-0.03957641124725342,
0.16237615048885345,
-0.0570535771548748,
0.18178746104240417,
0.5798846483230591,
-0.2913214862346649,
-0.28437134623527527,
0.20689989626407623,
0.3773009181022644,
0.26174113154411316,
-0.40934282541275024,
-0.10808281600475311,
0.34449779987335205,
-0.08644982427358627,
0.04784642904996872,
-0.044109880924224854,
-0.026531586423516273,
0.051597002893686295,
0.546836256980896,
0.0009368974715471268,
0.024111635982990265,
-0.130437970161438,
0.03296780586242676,
0.2813875675201416,
0.1347508430480957,
-0.3842400014400482,
0.007321171462535858,
0.09670498222112656,
0.1371987909078598,
-0.40029916167259216,
0.3226000666618347,
-0.13269224762916565,
-0.09202704578638077,
-0.012856222689151764,
-0.19714345037937164,
-0.18307672441005707,
0.2361609935760498,
0.21111685037612915,
-0.11219698935747147,
0.3844276964664459,
0.40358874201774597,
-0.00708741694688797,
0.48632675409317017,
-0.3266408443450928,
0.41294822096824646,
0.4259539246559143,
-0.06598155200481415,
-0.08501840382814407,
0.2840055227279663,
0.11947499960660934,
0.2796076238155365,
-0.20274077355861664,
-0.24166283011436462,
-0.16219863295555115,
0.306648850440979,
-0.22257304191589355,
-0.12363344430923462,
0.29727643728256226,
-0.4394378364086151,
0.21389968693256378,
0.08304259181022644,
0.9734272956848145,
0.23760521411895752,
0.004844630137085915,
-0.26133978366851807,
-0.1835116147994995
] |
https://github.com/huggingface/datasets/issues/2055 | is there a way to override a dataset object saved with save_to_disk? | I'm not sure I understand your issue, can you elaborate ?
`cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash. | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 48 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
I'm not sure I understand your issue, can you elaborate ?
`cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash. | [
0.005880624055862427,
-0.07092973589897156,
-0.045395396649837494,
0.009185653179883957,
0.27734994888305664,
0.2527240216732025,
0.2612765431404114,
0.2426060140132904,
-0.053569547832012177,
0.10696281492710114,
0.3020361065864563,
0.4447040557861328,
-0.16169285774230957,
-0.12795740365982056,
0.2059168666601181,
0.00632038339972496,
0.31469589471817017,
-0.11881355941295624,
-0.0984402745962143,
0.17643174529075623,
-0.3626474440097809,
0.27781835198402405,
0.21464289724826813,
0.06288851797580719,
-0.35781431198120117,
-0.10515085607767105,
0.15915383398532867,
0.023573197424411774,
0.07123395055532455,
-0.49810051918029785,
0.24882428348064423,
0.24388375878334045,
0.0018548276275396347,
0.04460892826318741,
-0.00011317696771584451,
-0.19219407439231873,
0.17597728967666626,
-0.10215592384338379,
-0.31822577118873596,
0.19891446828842163,
-0.29044583439826965,
-0.20708082616329193,
-0.015776239335536957,
-0.5379846096038818,
0.30221426486968994,
0.04794144257903099,
0.13909702003002167,
-0.305804967880249,
0.1568407118320465,
-0.08517463505268097,
0.18830695748329163,
-0.19131982326507568,
0.09578055143356323,
0.18047665059566498,
0.0681004449725151,
0.08023142069578171,
-0.2438444048166275,
0.25128984451293945,
0.02161494642496109,
0.2512296438217163,
0.048866476863622665,
0.13685482740402222,
-0.09259329736232758,
-0.0484561063349247,
0.581706702709198,
-0.05710963159799576,
-0.11386383324861526,
0.03800591081380844,
0.31238672137260437,
0.15230324864387512,
0.7274112105369568,
-0.40699827671051025,
-0.08807296305894852,
-0.093511663377285,
-0.10649076104164124,
-0.2785572111606598,
0.2970901131629944,
-0.2870467007160187,
0.03141143545508385,
0.15819118916988373,
-0.14430704712867737,
-0.5655369758605957,
-0.15787753462791443,
0.04541095346212387,
0.2925548255443573,
-0.3315800726413727,
-0.1847197562456131,
0.2547595202922821,
0.22459056973457336,
0.006203925237059593,
0.45882198214530945,
-0.27878889441490173,
-0.40558481216430664,
-0.20954269170761108,
-0.22318686544895172,
-0.09952563047409058,
-0.33497944474220276,
0.4045698046684265,
0.06756952404975891,
0.22593313455581665,
0.4345139265060425,
0.30985021591186523,
0.0374985933303833,
0.19407176971435547,
0.1098940521478653,
0.25583285093307495,
0.0914490669965744,
-0.014535751193761826,
0.0753442719578743,
-0.2580299377441406,
-0.3399425745010376,
-0.19699114561080933,
0.21016643941402435,
-0.3805343806743622,
0.7020929455757141,
-0.1838434636592865,
0.19405151903629303,
-0.30504733324050903,
0.19084559381008148,
-0.08428783714771271,
0.21905478835105896,
0.06759366393089294,
0.07819336652755737,
0.01282009482383728,
0.0667797178030014,
0.06489118933677673,
-0.08880239725112915,
0.05613349378108978,
0.06152409315109253,
0.09737816452980042,
-0.06420335173606873,
-0.258512407541275,
0.10586398839950562,
0.3715210556983948,
0.07006189227104187,
0.11341696977615356,
0.045730434358119965,
-0.14827653765678406,
0.13644321262836456,
-0.0534760020673275,
0.38807573914527893,
-0.05207148939371109,
0.4737306535243988,
-0.06155512109398842,
-0.16869911551475525,
0.2550695538520813,
0.008135370910167694,
-0.15644192695617676,
-0.13753801584243774,
0.3093261122703552,
-0.3865031898021698,
-0.4239959120750427,
0.09990270435810089,
0.07816778123378754,
-0.39993131160736084,
-0.062071070075035095,
-0.5250163674354553,
-0.038404788821935654,
0.11651510745286942,
-0.14374956488609314,
0.23817333579063416,
0.20408207178115845,
-0.15256251394748688,
-0.3873443305492401,
-0.05266999453306198,
0.22917503118515015,
-0.4178435206413269,
0.05112440139055252,
-0.24416027963161469,
-0.021136127412319183,
-0.2414740025997162,
-0.16096338629722595,
-0.26307567954063416,
-0.10548079758882523,
-0.3466656506061554,
0.06447272002696991,
0.3076818287372589,
-0.34735360741615295,
-0.6475952863693237,
-0.05933697149157524,
-0.06429724395275116,
0.028301982209086418,
0.04752515256404877,
0.33078351616859436,
0.05665133520960808,
-0.10223595052957535,
-0.40126726031303406,
0.10129650682210922,
-0.020025024190545082,
-0.30654555559158325,
-0.27808499336242676,
-0.008047422394156456,
-0.10573984682559967,
-0.14617502689361572,
-0.22025145590305328,
0.3657621443271637,
-0.03802631050348282,
-0.028425365686416626,
0.07239018380641937,
0.20119348168373108,
0.20468437671661377,
0.47139161825180054,
0.484554648399353,
-0.16239869594573975,
0.028085682541131973,
-0.05227897688746452,
-0.332133948802948,
0.1471668779850006,
0.3700074553489685,
-0.3939209580421448,
0.0009515807032585144,
-0.24996469914913177,
0.016344010829925537,
0.07342232018709183,
-0.1349816620349884,
0.1541038155555725,
0.02803785353899002,
0.3183523118495941,
0.07306185364723206,
-0.2711365222930908,
-0.139984592795372,
0.4156739115715027,
-0.035384196788072586,
-0.03525339066982269,
-0.10526689887046814,
-0.045928969979286194,
0.003634123131632805,
-0.05812227725982666,
-0.47521963715553284,
-0.2656539976596832,
0.18388670682907104,
-0.12955446541309357,
-0.2298533320426941,
0.5186126828193665,
-0.09122047573328018,
0.053474124521017075,
0.2685377895832062,
0.4209369122982025,
-0.15085163712501526,
-0.4421937167644501,
0.2504713535308838,
-0.0025524869561195374,
0.027370724827051163,
-0.005545973777770996,
-0.12525337934494019,
0.17774876952171326,
-0.07860210537910461,
0.058030903339385986,
-0.19634683430194855,
0.1380007565021515,
0.28741490840911865,
-0.07805632799863815,
-0.17351789772510529,
-0.23932692408561707,
-0.31351524591445923,
0.07501347362995148,
0.46131306886672974,
-0.08207614719867706,
-0.21109366416931152,
0.30251023173332214,
0.5622274875640869,
0.05887293443083763,
0.10138698667287827,
0.03640105947852135,
-0.2644154131412506,
-0.12854105234146118,
-0.10247283428907394,
0.6723666191101074,
0.5421387553215027,
0.19201259315013885,
0.14051906764507294,
-0.21334993839263916,
0.09585433453321457,
-0.03835342824459076,
0.13248953223228455,
0.1543862372636795,
0.21471814811229706,
-0.10201293975114822,
0.14431853592395782,
-0.18217800557613373,
-0.13386954367160797,
0.15965425968170166,
0.11188558489084244,
0.011033890768885612,
-0.006397083401679993,
0.18882475793361664,
-0.1927698254585266,
-0.02781330794095993,
-0.2950429320335388,
-0.03193553909659386,
-0.4077278971672058,
-0.36301058530807495,
0.06693397462368011,
0.32692641019821167,
0.08980852365493774,
0.14906109869480133,
-0.1156609058380127,
0.5042239427566528,
-0.17349475622177124,
-0.42046451568603516,
-0.1750682294368744,
-0.031109970062971115,
-0.23258286714553833,
-0.022364813834428787,
0.0742441788315773,
-0.27299803495407104,
0.22917619347572327,
-0.01663290709257126,
0.2555161714553833,
-0.5720787048339844,
0.029358305037021637,
-0.0567883625626564,
0.2725667655467987,
0.33263060450553894,
-0.06666509807109833,
0.18522250652313232,
-0.22872288525104523,
0.06709466874599457,
-0.01578746736049652,
-0.0791907012462616,
0.015842976048588753,
-0.016248295083642006,
0.11656106263399124,
0.08001334220170975,
0.03783858194947243,
0.20916259288787842,
-0.15199720859527588,
-0.2444862276315689,
0.15200801193714142,
-0.1092129647731781,
0.06126383692026138,
-0.051266707479953766,
0.01588238775730133,
-0.01174488291144371,
0.04593568667769432,
-0.36172568798065186,
-0.37313663959503174,
-0.8067583441734314,
0.5466668605804443,
-0.3449459671974182,
-0.09707124531269073,
0.1465289145708084,
0.05424796789884567,
0.14215335249900818,
0.2120146006345749,
-0.33426833152770996,
-0.2800636291503906,
-0.05283811688423157,
0.21753692626953125,
-0.019075706601142883,
-0.28133007884025574,
0.22583329677581787,
0.4095548689365387,
-0.09718386828899384,
-0.2483859360218048,
-0.5289545655250549,
0.3987853527069092,
0.17175287008285522,
0.5748044848442078,
0.26108962297439575,
0.09203914552927017,
0.05475183203816414,
0.5059796571731567,
-0.28286507725715637,
0.01139877736568451,
0.40439242124557495,
0.19014878571033478,
0.37825489044189453,
0.01622692495584488,
-0.13098101317882538,
-0.14135007560253143,
-0.21674704551696777,
-0.07607689499855042,
-0.04978287220001221,
0.08787240833044052,
0.01903456449508667,
0.2673099637031555,
0.05653751268982887,
-0.1562475860118866,
-0.3716948628425598,
0.0874495878815651,
-0.25969934463500977,
0.11596344411373138,
0.04225316271185875,
-0.14290204644203186,
-0.5049210786819458,
-0.14481371641159058,
0.1870448887348175,
0.3815186023712158,
0.11402974277734756,
-0.08515428006649017,
-0.5466575622558594,
0.15672074258327484,
-0.3572344481945038,
0.43694281578063965,
-0.20017921924591064,
0.11978663504123688,
-0.10392007231712341,
-0.04980923607945442,
-0.02122732251882553,
-0.05035589635372162,
0.8804522752761841,
-0.17385563254356384,
0.15857000648975372,
0.06297621130943298,
0.11062994599342346,
-0.13148021697998047,
0.09822256863117218,
0.45069852471351624,
0.4493231773376465,
-0.14583002030849457,
0.10646095871925354,
0.09412763267755508,
-0.22352328896522522,
-0.1733310967683792,
0.3369663953781128,
-0.5265504717826843,
-0.2175539880990982,
0.152284175157547,
-0.14505058526992798,
-0.007651176303625107,
-0.2675732672214508,
0.20549263060092926,
0.01317451149225235,
0.08131818473339081,
0.020821180194616318,
-0.43818122148513794,
-0.13319498300552368,
-0.0034731999039649963,
-0.19506913423538208,
0.5359505414962769,
-0.22869765758514404,
0.03768092766404152,
-0.022511720657348633,
0.25286322832107544,
0.3890484571456909,
0.2947443723678589,
-0.356509268283844,
-0.2021232545375824,
-0.03545023500919342,
-0.24817325174808502,
0.017841443419456482,
0.2599080502986908,
-0.07626555860042572,
0.16641104221343994,
0.20399145781993866,
-0.17035891115665436,
-0.014015433378517628,
0.14869745075702667,
-0.14412307739257812,
0.2527443766593933,
-0.1916004866361618,
-0.3499118387699127,
0.37594854831695557,
0.26006457209587097,
-0.06482214480638504,
0.3666515350341797,
0.17466787993907928,
-0.3780324161052704,
0.4197975993156433,
0.09013427048921585,
0.9501264691352844,
-0.03703656047582626,
0.2972923815250397,
-0.30370309948921204,
-0.3726538419723511,
0.029851185157895088,
-0.07033944875001907,
-0.02712288498878479,
-0.13109689950942993,
-0.2019096314907074,
0.009243698790669441,
0.06998200714588165,
0.23412281274795532,
0.5468813180923462,
-0.039957985281944275,
0.09492939710617065,
-0.2273947149515152,
-0.18618421256542206,
-0.257406622171402,
0.23814457654953003,
-0.13970643281936646,
-0.1130986362695694,
0.08044504374265671,
0.16513921320438385,
-0.06124814599752426,
-0.1538342386484146,
0.06080109626054764,
-0.21775048971176147,
0.02142394706606865,
-0.030250929296016693,
-0.1726946234703064,
-0.1897624433040619,
-0.16834905743598938,
-0.204689159989357,
-0.07041297852993011,
-0.4095529317855835,
0.01854003593325615,
0.2018805742263794,
0.44215816259384155,
-0.027356985956430435,
-0.05650690197944641,
0.30418747663497925,
0.17455454170703888,
0.07351920753717422,
-0.22492006421089172,
-0.14952561259269714,
0.25833407044410706,
-0.04373900592327118,
-0.019285887479782104,
0.0022185519337654114,
0.07708382606506348,
-0.6202126741409302,
0.20670807361602783,
-0.09972497820854187,
0.13004130125045776,
-0.09175055474042892,
-0.4944220781326294,
-0.1646653413772583,
-0.24611783027648926,
-0.30053406953811646,
0.14192241430282593,
0.2287474423646927,
-0.1075783371925354,
0.41414135694503784,
-0.17702488601207733,
-0.045160092413425446,
0.15547455847263336,
0.2797190248966217,
-0.21761852502822876,
-0.13779571652412415,
0.5094897747039795,
-0.3504291772842407,
0.014818482100963593,
-0.1385892629623413,
0.06893394142389297,
0.04871692880988121,
-0.14854241907596588,
0.14948010444641113,
-0.17866522073745728,
0.13882975280284882,
-0.03225388750433922,
-0.2361467182636261,
0.15131697058677673,
0.31057724356651306,
-0.25917431712150574,
-0.17481791973114014,
-0.5221585035324097,
-0.08173868060112,
0.06593933701515198,
0.30631333589553833,
-0.07622809708118439,
-0.4527081251144409,
-0.06304121762514114,
0.08879943192005157,
-0.2530585527420044,
0.012161687016487122,
-0.04532504826784134,
0.027160830795764923,
0.18926890194416046,
0.24537944793701172,
0.15558277070522308,
-0.18648064136505127,
-0.018708568066358566,
0.00174013152718544,
-0.17256417870521545,
-0.19922959804534912,
-0.2664842903614044,
0.1718347668647766,
-0.09362593293190002,
-0.2779678702354431,
-0.13104763627052307,
-0.31012481451034546,
0.21159207820892334,
-0.0475880429148674,
-0.1959191858768463,
0.17813396453857422,
0.0373372845351696,
0.22857524454593658,
0.07218706607818604,
0.0019592493772506714,
0.04860250651836395,
-0.17980752885341644,
0.19921979308128357,
0.3495190739631653,
0.16640688478946686,
0.12581518292427063,
-0.014022181741893291,
-0.0662030577659607,
-0.0015539014711976051,
-0.10242108255624771,
-0.10554108023643494,
-0.030420221388339996,
-0.1901531219482422,
-0.06388875842094421,
-0.03787737712264061,
0.4332277178764343,
0.16732996702194214,
0.040572330355644226,
-0.21002116799354553,
-0.17137432098388672,
0.36834850907325745,
0.13414785265922546,
0.10618859529495239,
-0.4036816954612732,
0.42701858282089233,
-0.2677616775035858,
-0.038147784769535065,
0.08706832677125931,
0.1465194821357727,
0.1951237916946411,
-0.16844485700130463,
-0.005548614077270031,
0.25671419501304626,
-0.4714045524597168,
0.1689607948064804,
0.05270968750119209,
-0.013302784413099289,
0.08110874891281128,
0.5374558568000793,
0.38648611307144165,
0.3091655671596527,
0.7966073751449585,
0.014929734170436859,
0.15868987143039703,
0.4057987928390503,
-0.03340684995055199,
-0.012747958302497864,
-0.15422992408275604,
0.029058201238512993,
-0.04648846387863159,
-0.04318182170391083,
0.4586322009563446,
0.286324679851532,
0.1327943503856659,
0.12383347004652023,
-0.35542356967926025,
0.1732827126979828,
-0.028988372534513474,
0.02085172012448311,
-0.3102225363254547,
0.07974734902381897,
0.020531117916107178,
0.12603718042373657,
0.10968099534511566,
-0.19416232407093048,
-0.2527126669883728,
0.46347394585609436,
-0.13702207803726196,
0.043145544826984406,
0.1683923900127411,
0.1710464060306549,
-0.06856934726238251,
0.1286367028951645,
-0.039517227560281754,
-0.09981430321931839,
-0.2691251039505005,
-0.13453277945518494,
0.2595928907394409,
0.0021045878529548645,
-0.16875743865966797,
-0.054204292595386505,
0.04296194389462471,
0.0815420001745224,
-0.04110243543982506,
-0.07923991233110428,
-0.2262188047170639,
-0.20229467749595642,
0.06824552267789841,
-0.3262186050415039,
0.20055486261844635,
0.13870234787464142,
0.012176449410617352,
0.13348965346813202,
0.14365176856517792,
0.37905243039131165,
-0.14722207188606262,
-0.12710297107696533,
0.3025745451450348,
-0.3633195757865906,
-0.12168902158737183,
0.11717952787876129,
-0.07057714462280273,
-0.3746972978115082,
0.75227952003479,
0.042584892362356186,
0.049175649881362915,
-0.05408791825175285,
0.0675966665148735,
-0.17592081427574158,
0.44890037178993225,
-0.018777508288621902,
-0.013620592653751373,
-0.29236841201782227,
-0.11836694180965424,
-0.3946760594844818,
0.13727912306785583,
0.10895505547523499,
0.08539117127656937,
0.06721050292253494,
-0.05313096195459366,
0.031803566962480545,
0.013865675777196884,
0.2937546372413635,
0.08105935901403427,
0.15609651803970337,
0.561034083366394,
-0.3906918466091156,
-0.1711735874414444,
0.32703763246536255,
0.29722175002098083,
0.2671147584915161,
-0.31062352657318115,
-0.11763232946395874,
0.46500909328460693,
0.021207332611083984,
0.003784453496336937,
-0.09938916563987732,
0.006793394684791565,
0.23261097073554993,
0.5678702592849731,
-0.01873117871582508,
0.06856358051300049,
-0.06760098040103912,
0.015209777280688286,
0.12501032650470734,
0.10045713186264038,
-0.3279697597026825,
-0.06483320146799088,
0.07880883663892746,
0.1504218578338623,
-0.36911413073539734,
0.3105677664279938,
-0.21345679461956024,
0.0019578179344534874,
-0.12338528782129288,
-0.07383647561073303,
-0.20916219055652618,
0.2177233099937439,
0.1516338586807251,
-0.02706574834883213,
0.42729178071022034,
0.4429098963737488,
0.04621940106153488,
0.4174530804157257,
-0.44531166553497314,
0.3533112704753876,
0.5391592979431152,
-0.007887011393904686,
-0.1656593382358551,
0.2888105809688568,
0.15099889039993286,
0.27138373255729675,
-0.26321300864219666,
-0.3472707271575928,
-0.21030303835868835,
0.2743266820907593,
-0.171219140291214,
-0.07675912231206894,
0.2778629660606384,
-0.333367258310318,
0.3009941279888153,
0.10581851005554199,
0.8167828321456909,
0.1716212034225464,
0.08846335858106613,
-0.3020499050617218,
-0.09666513651609421
] |
https://github.com/huggingface/datasets/issues/2055 | is there a way to override a dataset object saved with save_to_disk? | Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset object every time with a random file name, especially when we do some transformations to dataset objects such as map or shards. This way, we keep collecting unwanted files that will eventually eat up all the disk space.
But if we can save the dataset object every time by a single name like **data_shard_1.arrow**, it will automatically remove the previous file and save the new one in the same directory. I found the above-mentioned code snippet useful to complete this task.
Is this clear? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 134 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset object every time with a random file name, especially when we do some transformations to dataset objects such as map or shards. This way, we keep collecting unwanted files that will eventually eat up all the disk space.
But if we can save the dataset object every time by a single name like **data_shard_1.arrow**, it will automatically remove the previous file and save the new one in the same directory. I found the above-mentioned code snippet useful to complete this task.
Is this clear? | [
0.04573448374867439,
-0.03652071952819824,
-0.006560148671269417,
-0.06631429493427277,
0.2652111053466797,
0.14675527811050415,
0.053422145545482635,
0.13368801772594452,
-0.13232596218585968,
0.333044171333313,
0.3283967077732086,
0.4801914691925049,
-0.38887014985084534,
0.0933786928653717,
0.23198406398296356,
0.0744830071926117,
0.3734702169895172,
-0.06701812148094177,
-0.12541911005973816,
0.18103082478046417,
-0.4179130494594574,
0.044150903820991516,
0.21091578900814056,
0.015983261168003082,
-0.08205009251832962,
-0.026436736807227135,
0.00046925246715545654,
-0.25080910325050354,
0.05765588581562042,
-0.43080827593803406,
0.22839947044849396,
0.2565985918045044,
0.11991330981254578,
0.1386193037033081,
-0.0001212557835970074,
-0.06955846399068832,
0.009533766657114029,
-0.06924369186162949,
-0.4169017970561981,
0.0994594544172287,
-0.06093625724315643,
-0.4046188294887543,
-0.04314560443162918,
-0.43214765191078186,
0.3878166377544403,
-0.24965207278728485,
0.27784842252731323,
-0.1676831841468811,
0.10130991041660309,
-0.13044984638690948,
0.07575686275959015,
-0.07309512794017792,
0.1910558044910431,
0.2092888057231903,
0.13046741485595703,
0.28379905223846436,
-0.10730358958244324,
0.2409990131855011,
0.05361715704202652,
0.2485465407371521,
0.00445227324962616,
0.10470128059387207,
-0.03989817947149277,
-0.09036457538604736,
0.7107020616531372,
0.03975389152765274,
-0.08300168067216873,
-0.0689408928155899,
0.06325526535511017,
0.12326998263597488,
0.5087644457817078,
-0.5339450240135193,
-0.13153515756130219,
-0.1749764382839203,
0.12658683955669403,
-0.3090943396091461,
0.2692343592643738,
-0.2114604413509369,
-0.0695020854473114,
0.02090698480606079,
-0.08521702885627747,
-0.6508269309997559,
-0.19854387640953064,
0.2556486427783966,
0.25915977358818054,
-0.5391649007797241,
-0.06641225516796112,
0.22882166504859924,
0.3162316083908081,
0.007681727409362793,
0.31619560718536377,
-0.3927267789840698,
-0.22382688522338867,
-0.338426411151886,
-0.12807196378707886,
-0.1810760796070099,
-0.3935977816581726,
0.22917595505714417,
0.055453695356845856,
0.3497771620750427,
0.4361369013786316,
0.13568079471588135,
-0.06774430721998215,
0.22032833099365234,
0.1018313318490982,
0.023384422063827515,
-0.0405253991484642,
0.1268223524093628,
0.07799172401428223,
-0.019570162519812584,
-0.16979189217090607,
-0.030151791870594025,
0.2458382099866867,
-0.31121543049812317,
0.3921230733394623,
-0.2665877044200897,
0.25726866722106934,
0.0581265427172184,
0.00738261453807354,
-0.07744145393371582,
-0.041978172957897186,
0.1095786839723587,
-0.005677002482116222,
-0.13096091151237488,
0.2353041023015976,
-0.12214917689561844,
-0.10053981840610504,
0.1382054090499878,
0.17756737768650055,
0.14519770443439484,
0.08032873272895813,
-0.17611724138259888,
0.10483264923095703,
0.4112699031829834,
0.03898894414305687,
0.17242999374866486,
-0.0452263206243515,
-0.2201777696609497,
0.0412367507815361,
-0.07174915075302124,
0.1835627555847168,
0.002543891780078411,
0.40372341871261597,
-0.09839950501918793,
-0.19462519884109497,
0.1945430338382721,
-0.16546064615249634,
-0.1861855685710907,
-0.22887855768203735,
0.24918651580810547,
-0.2398013472557068,
-0.27971744537353516,
-0.02157808654010296,
0.026274990290403366,
-0.2249813824892044,
-0.10489210486412048,
-0.51771080493927,
0.16233263909816742,
-0.13106811046600342,
-0.2600252628326416,
0.21265803277492523,
0.2772539556026459,
-0.2532300353050232,
-0.2626476585865021,
-0.00017240829765796661,
0.11682271957397461,
-0.33830106258392334,
-0.04738485813140869,
-0.1328245848417282,
-0.026852257549762726,
-0.3620641231536865,
-0.13258527219295502,
-0.26091551780700684,
-0.010620422661304474,
-0.2951558232307434,
-0.021145958453416824,
0.3409298360347748,
-0.13204646110534668,
-0.5908215045928955,
-0.22782810032367706,
-0.15082158148288727,
-0.005291430279612541,
-0.006743192672729492,
0.5044073462486267,
0.14414237439632416,
-0.05760384723544121,
-0.5045729875564575,
0.05343842878937721,
0.061973921954631805,
-0.35005056858062744,
-0.06069211661815643,
-0.1441929042339325,
-0.1976328343153,
-0.17175228893756866,
-0.298170268535614,
0.21977654099464417,
-0.055604271590709686,
0.02511073648929596,
0.21679770946502686,
0.07321207970380783,
0.2401827722787857,
0.4485558271408081,
0.4341866374015808,
-0.11549556255340576,
-0.16888709366321564,
-0.1425727903842926,
-0.3905544579029083,
-0.03195502609014511,
0.5924943685531616,
-0.45889562368392944,
0.1132575199007988,
-0.20739367604255676,
0.17470470070838928,
0.12304661422967911,
-0.19683776795864105,
0.23522330820560455,
-0.054822809994220734,
0.3122779130935669,
-0.0037067700177431107,
-0.15668518841266632,
-0.3619380593299866,
0.06743930280208588,
-0.1729988157749176,
0.1804402470588684,
-0.13488227128982544,
0.14646363258361816,
0.10231856256723404,
-0.04585223272442818,
-0.36339184641838074,
-0.15338733792304993,
-0.10640478879213333,
-0.09650899469852448,
-0.07514797896146774,
0.40444186329841614,
-0.24641503393650055,
0.11919303238391876,
0.17265775799751282,
0.431465744972229,
-0.06194079667329788,
-0.36767578125,
0.2172434777021408,
0.23570677638053894,
0.08937166631221771,
0.12281040102243423,
-0.3586915135383606,
0.12104470282793045,
-0.027018163353204727,
0.17449593544006348,
-0.061239879578351974,
0.1384723037481308,
0.05136074870824814,
-0.05097092315554619,
-0.3274538815021515,
-0.2260817587375641,
-0.3494551181793213,
0.1841983050107956,
0.4219745099544525,
-0.06836358457803726,
-0.1296263337135315,
0.1065363734960556,
0.6030349135398865,
-0.10114862024784088,
0.0626433938741684,
0.19211673736572266,
-0.29575806856155396,
-0.08019232749938965,
-0.2568454444408417,
0.8007149696350098,
0.3792867064476013,
0.07458515465259552,
0.17229464650154114,
-0.2163553535938263,
0.07660771906375885,
-0.062070611864328384,
0.1834324151277542,
0.35282766819000244,
0.2313380241394043,
0.06898272782564163,
0.2171488106250763,
-0.0842013880610466,
-0.2327294647693634,
0.022915884852409363,
0.03101799450814724,
-0.004507461562752724,
-0.031125836074352264,
0.0636652410030365,
-0.0542583130300045,
0.06262655556201935,
-0.4437844753265381,
0.09744225442409515,
-0.25830957293510437,
-0.19728772342205048,
0.023963812738656998,
0.3298318088054657,
-0.06332091987133026,
0.18094366788864136,
0.2926631569862366,
0.41979336738586426,
-0.2644105851650238,
-0.32939594984054565,
0.02350550889968872,
0.20389921963214874,
-0.15381842851638794,
-0.12723131477832794,
0.17784163355827332,
-0.331511914730072,
0.3227909207344055,
0.13448750972747803,
0.16412611305713654,
-0.7020511031150818,
0.07245107740163803,
-0.15117678046226501,
0.23630160093307495,
0.1226452887058258,
-0.011348515748977661,
0.06700854748487473,
-0.22855496406555176,
0.06878120452165604,
-0.021282359957695007,
0.02075345627963543,
0.03845438361167908,
-0.036336787045001984,
0.05666174739599228,
0.2914115786552429,
0.12042354047298431,
0.21167638897895813,
-0.16903193295001984,
-0.12929855287075043,
0.1894247829914093,
-0.09246890246868134,
-0.012782961130142212,
-0.15233638882637024,
0.25093725323677063,
0.07163262367248535,
-0.02051484026014805,
-0.39271631836891174,
0.009466060437262058,
-0.6643108129501343,
0.3599241077899933,
-0.06304173916578293,
0.003783576190471649,
-0.024487312883138657,
-0.03777945041656494,
-0.04360010102391243,
0.27273422479629517,
-0.39894574880599976,
-0.24523895978927612,
-0.039836183190345764,
0.14064612984657288,
-0.07629907131195068,
-0.18810832500457764,
0.1733018159866333,
0.48874932527542114,
-0.02068878524005413,
0.027585439383983612,
-0.4749937355518341,
0.2654614746570587,
0.1800306737422943,
0.34966158866882324,
0.20719245076179504,
0.17199331521987915,
0.11533550918102264,
0.32712215185165405,
-0.06718671321868896,
-0.1364268660545349,
0.403129518032074,
0.1584937423467636,
0.36158487200737,
0.06978008151054382,
-0.05791062116622925,
-0.16819989681243896,
-0.21034270524978638,
-0.10223231464624405,
-0.008656062185764313,
-0.0691741406917572,
0.23026074469089508,
0.3729233741760254,
-0.03157497197389603,
0.07506828755140305,
-0.3564731180667877,
0.13017018139362335,
-0.19902680814266205,
0.08180531114339828,
-0.024535849690437317,
-0.13954104483127594,
-0.22110818326473236,
-0.1581023633480072,
0.09656652808189392,
0.3935677409172058,
0.2068522572517395,
-0.060420308262109756,
-0.6695662140846252,
-0.15482960641384125,
-0.35040444135665894,
0.24570506811141968,
-0.31128251552581787,
-0.05304563045501709,
0.14817216992378235,
0.031963884830474854,
0.01376476138830185,
-0.0669059082865715,
0.6469926834106445,
0.000005433335900306702,
0.08350761234760284,
-0.19046448171138763,
0.18431079387664795,
-0.18998432159423828,
0.09440812468528748,
0.31971675157546997,
0.32673379778862,
-0.34340500831604004,
0.41333162784576416,
0.10806047171354294,
-0.2338375300168991,
0.0909724310040474,
0.45993340015411377,
-0.5098069906234741,
-0.05794481560587883,
0.22145764529705048,
-0.29966026544570923,
-0.14803630113601685,
-0.3749026358127594,
0.09971226006746292,
0.0366373211145401,
0.20425981283187866,
-0.21328039467334747,
-0.36606377363204956,
-0.12378641217947006,
0.1425292044878006,
-0.3959294259548187,
0.4069080948829651,
-0.0654294565320015,
-0.0009561926126480103,
-0.06640516221523285,
0.3982369601726532,
0.6073401570320129,
0.2417915016412735,
-0.4718921482563019,
-0.3955797255039215,
-0.11286552995443344,
-0.1703764647245407,
0.23260439932346344,
0.23936951160430908,
0.01222194079309702,
0.19662576913833618,
0.12386000901460648,
-0.13398510217666626,
-0.2612437307834625,
0.1820872277021408,
0.1194564551115036,
0.3022391200065613,
-0.17342129349708557,
-0.31737399101257324,
0.45097997784614563,
0.2749406397342682,
0.04777128994464874,
0.19783666729927063,
0.35384953022003174,
-0.37766754627227783,
0.36736005544662476,
0.1181270182132721,
0.6669078469276428,
-0.01820656657218933,
0.49685391783714294,
-0.09859176725149155,
-0.36633384227752686,
-0.035010430961847305,
0.018320269882678986,
0.0802294984459877,
-0.07115813344717026,
-0.10287321358919144,
-0.016790073364973068,
0.08193923532962799,
0.23236802220344543,
0.5184153318405151,
-0.04798418655991554,
0.2158789038658142,
-0.14983689785003662,
0.08524465560913086,
-0.3729451596736908,
0.2046392858028412,
-0.19102203845977783,
-0.15943816304206848,
0.041062768548727036,
0.023762203752994537,
0.08883371949195862,
-0.13318036496639252,
0.14963430166244507,
-0.08568383753299713,
0.09177646040916443,
-0.059695445001125336,
-0.1656380593776703,
-0.4072687029838562,
-0.14811275899410248,
-0.20734484493732452,
-0.19550542533397675,
-0.5290107727050781,
0.03859585151076317,
0.42848819494247437,
0.19724363088607788,
0.060671523213386536,
0.08352609723806381,
0.22082513570785522,
0.048420630395412445,
0.1239437535405159,
-0.1668682098388672,
-0.1823071837425232,
0.1879822164773941,
0.0752459466457367,
0.027372591197490692,
0.025048822164535522,
0.1128556877374649,
-0.42122137546539307,
0.06758306920528412,
-0.11932630836963654,
0.26329314708709717,
-0.030707763507962227,
-0.33659666776657104,
-0.166662335395813,
-0.31787797808647156,
-0.4264824092388153,
0.037002161145210266,
-0.06813521683216095,
-0.009188590571284294,
0.4155023694038391,
-0.19749997556209564,
-0.12379010766744614,
0.1959584504365921,
0.17169147729873657,
-0.14904862642288208,
0.04873393476009369,
0.7534675598144531,
-0.44080615043640137,
0.11566013097763062,
-0.14747759699821472,
0.46321332454681396,
0.2551528513431549,
-0.15433388948440552,
0.31378501653671265,
-0.15445099771022797,
0.2359161525964737,
-0.055539876222610474,
-0.12518402934074402,
0.05003049597144127,
0.1026499792933464,
-0.3332235813140869,
-0.09578364342451096,
-0.37271609902381897,
0.045963872224092484,
0.3631148040294647,
0.4548831880092621,
-0.15443602204322815,
-0.3133370578289032,
-0.17454993724822998,
-0.0623910054564476,
-0.12903615832328796,
0.1928519308567047,
0.11156522482633591,
-0.033786773681640625,
0.08926856517791748,
0.5190905332565308,
0.09274977445602417,
-0.04397718235850334,
-0.08749673515558243,
-0.08117788285017014,
0.04906858503818512,
-0.06777004152536392,
-0.24291129410266876,
0.21717986464500427,
-0.16237828135490417,
-0.09614665061235428,
-0.12649531662464142,
-0.25790536403656006,
0.1673528552055359,
-0.10996200889348984,
-0.32375097274780273,
0.14333200454711914,
0.15163031220436096,
0.19258788228034973,
0.03932519257068634,
0.1373102068901062,
0.2304428070783615,
-0.12711089849472046,
0.26483964920043945,
0.34154605865478516,
0.1894310563802719,
0.2597721815109253,
0.11799642443656921,
-0.16691473126411438,
-0.27264541387557983,
0.030675113201141357,
0.1163635179400444,
-0.12077847868204117,
-0.2451498806476593,
0.0025416500866413116,
-0.11878766119480133,
0.3289446532726288,
0.18721696734428406,
0.28149348497390747,
-0.2939673960208893,
-0.2809574604034424,
0.3967546224594116,
0.032784391194581985,
0.06946169584989548,
-0.3122705817222595,
0.4320261776447296,
-0.288640558719635,
-0.0244981050491333,
0.06490679830312729,
-0.11048087477684021,
0.16356152296066284,
-0.6306899785995483,
-0.13157010078430176,
-0.005037992261350155,
-0.1757173091173172,
0.18364126980304718,
0.36215758323669434,
0.03519551828503609,
-0.011381033807992935,
0.29982078075408936,
0.33263206481933594,
0.47695472836494446,
0.75690096616745,
-0.19465622305870056,
0.3213789761066437,
0.358415424823761,
-0.11210457980632782,
0.16655781865119934,
-0.13363415002822876,
0.006258070468902588,
0.01907925307750702,
0.08390465378761292,
0.32809945940971375,
0.4132532775402069,
0.07035783678293228,
0.16777537763118744,
-0.3083189129829407,
0.07716510444879532,
-0.021055255085229874,
0.11728907376527786,
-0.40653935074806213,
0.05210810899734497,
-0.03156023845076561,
0.1487143486738205,
0.2962121367454529,
-0.18620021641254425,
-0.4566996097564697,
0.3414573073387146,
-0.17093630135059357,
0.0925915390253067,
0.2572568953037262,
0.2887910306453705,
-0.12810835242271423,
-0.010503880679607391,
-0.05942806601524353,
-0.2913372218608856,
-0.19452981650829315,
0.04013267531991005,
0.15205590426921844,
-0.06601253896951675,
-0.24034270644187927,
-0.15928207337856293,
0.011473529040813446,
0.14670178294181824,
-0.1973903924226761,
0.043332718312740326,
-0.1993124634027481,
-0.3347669541835785,
0.007289797067642212,
-0.1861633062362671,
0.35767683386802673,
0.006786338984966278,
0.10362225025892258,
0.04002665355801582,
0.2810913622379303,
0.42036736011505127,
-0.44442662596702576,
0.05765225365757942,
0.15058903396129608,
-0.32446423172950745,
-0.022769257426261902,
0.023982860147953033,
-0.02297995612025261,
-0.4238349497318268,
0.73931884765625,
0.04737049713730812,
0.009485043585300446,
0.12373412400484085,
0.031419865787029266,
-0.267282098531723,
0.3729068636894226,
-0.09125454723834991,
-0.24424290657043457,
-0.20169249176979065,
-0.1476556658744812,
-0.4075845181941986,
0.08890339732170105,
0.12139414250850677,
-0.0014499425888061523,
-0.08974307775497437,
-0.08085140585899353,
0.07443933188915253,
-0.1016433984041214,
0.22575171291828156,
-0.14257071912288666,
0.03134248033165932,
0.5929242372512817,
-0.26936855912208557,
-0.23293237388134003,
0.10447527468204498,
0.42496463656425476,
0.2707129716873169,
-0.3766431510448456,
-0.058771517127752304,
0.29834651947021484,
-0.09468737244606018,
0.05556398257613182,
0.14001372456550598,
-0.11160093545913696,
0.09867498278617859,
0.6502909660339355,
-0.14440515637397766,
-0.12456806004047394,
-0.16748404502868652,
-0.14602728188037872,
0.18600359559059143,
0.25739941000938416,
-0.47189024090766907,
0.2457924485206604,
-0.045047495514154434,
0.28271424770355225,
-0.4167076647281647,
0.5806429982185364,
-0.07726743072271347,
-0.34628012776374817,
-0.11110634356737137,
-0.15648570656776428,
-0.17295381426811218,
0.21776752173900604,
0.30410391092300415,
-0.009966688230633736,
0.37121593952178955,
0.36150187253952026,
0.05173327028751373,
0.39543724060058594,
-0.4144778251647949,
0.3705529272556305,
0.5090780258178711,
0.09489747881889343,
-0.053297556936740875,
0.2723088264465332,
-0.0018010884523391724,
0.26998984813690186,
-0.124106265604496,
-0.489657461643219,
-0.21826621890068054,
0.34798160195350647,
-0.1333284080028534,
-0.13732212781906128,
0.28246086835861206,
-0.2615501582622528,
0.12498493492603302,
0.07145603001117706,
0.842063307762146,
0.18220791220664978,
-0.118594691157341,
-0.16203457117080688,
-0.20015378296375275
] |
https://github.com/huggingface/datasets/issues/2054 | Could not find file for ZEST dataset | This has been fixed in #2057 by @matt-peters (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | I am trying to use zest dataset from Allen AI using below code in colab,
```
!pip install -q datasets
from datasets import load_dataset
dataset = load_dataset("zest")
```
I am getting the following error,
```
Using custom data configuration default
Downloading and preparing dataset zest/default (download: 5.53 MiB, generated: 19.96 MiB, post-processed: Unknown size, total: 25.48 MiB) to /root/.cache/huggingface/datasets/zest/default/0.0.0/1f7a230fbfc964d979bbca0f0130fbab3259fce547ee758ad8aa4f9c9bec6cca...
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-18dbbc1a4b8a> in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("zest")
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
612 )
613 elif response is not None and response.status_code == 404:
--> 614 raise FileNotFoundError("Couldn't find file at {}".format(url))
615 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
616 raise ConnectionError("Couldn't reach {}".format(url))
FileNotFoundError: Couldn't find file at https://ai2-datasets.s3-us-west-2.amazonaws.com/zest/zest.zip
``` | 28 | Could not find file for ZEST dataset
I am trying to use zest dataset from Allen AI using below code in colab,
```
!pip install -q datasets
from datasets import load_dataset
dataset = load_dataset("zest")
```
I am getting the following error,
```
Using custom data configuration default
Downloading and preparing dataset zest/default (download: 5.53 MiB, generated: 19.96 MiB, post-processed: Unknown size, total: 25.48 MiB) to /root/.cache/huggingface/datasets/zest/default/0.0.0/1f7a230fbfc964d979bbca0f0130fbab3259fce547ee758ad8aa4f9c9bec6cca...
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-18dbbc1a4b8a> in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("zest")
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
612 )
613 elif response is not None and response.status_code == 404:
--> 614 raise FileNotFoundError("Couldn't find file at {}".format(url))
615 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
616 raise ConnectionError("Couldn't reach {}".format(url))
FileNotFoundError: Couldn't find file at https://ai2-datasets.s3-us-west-2.amazonaws.com/zest/zest.zip
```
This has been fixed in #2057 by @matt-peters (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | [
-0.5492250323295593,
-0.15621674060821533,
-0.09730497002601624,
0.3641071915626526,
0.3012053966522217,
0.09310799092054367,
0.03187209367752075,
0.22301308810710907,
0.23836371302604675,
0.43103545904159546,
-0.20342141389846802,
-0.009750496596097946,
-0.1162821426987648,
0.12189828604459763,
-0.08435023576021194,
0.2447764128446579,
-0.23085439205169678,
0.4342667758464813,
0.435430109500885,
0.08094696700572968,
-0.14630722999572754,
0.3227609694004059,
-0.03295769914984703,
0.013456664979457855,
-0.22968678176403046,
-0.02667100541293621,
0.06496962904930115,
0.22699034214019775,
-0.2469373494386673,
-0.4500761032104492,
0.531831681728363,
-0.2040964812040329,
0.3821459412574768,
0.4862639904022217,
-0.00011926761362701654,
0.07678280770778656,
0.29230761528015137,
-0.17239677906036377,
-0.277204304933548,
-0.6352198719978333,
-0.5189526081085205,
-0.1069159284234047,
0.022783812135457993,
-0.17459899187088013,
-0.4987587034702301,
0.14196377992630005,
0.09058026969432831,
0.08449037373065948,
0.13186129927635193,
0.4710634648799896,
0.13234734535217285,
-0.025553086772561073,
0.4266810119152069,
-0.2614116370677948,
0.6230574250221252,
0.06759826093912125,
-0.13573302328586578,
0.09859804809093475,
0.28857094049453735,
0.270097941160202,
0.40610307455062866,
0.13121847808361053,
-0.020903604105114937,
0.16053952276706696,
0.12593626976013184,
0.005101613234728575,
0.2155122458934784,
-0.3926919102668762,
0.2901310920715332,
0.20277824997901917,
0.7724491357803345,
-0.2937852442264557,
-0.3040546774864197,
0.1115153506398201,
0.08118230104446411,
-0.46641746163368225,
0.21704939007759094,
0.15076224505901337,
-0.280261754989624,
0.20951227843761444,
0.19018283486366272,
-0.05832628905773163,
-0.1123306006193161,
0.34512782096862793,
0.08798208832740784,
0.12697066366672516,
-0.15047447383403778,
0.005552761256694794,
-0.023778948932886124,
-0.15012690424919128,
0.27117374539375305,
-0.03890146315097809,
-0.0841393917798996,
0.11225130409002304,
-0.2754397988319397,
-0.16042646765708923,
0.016654688864946365,
0.24369841814041138,
-0.02237190306186676,
0.13066430389881134,
0.05929131433367729,
-0.2001151442527771,
0.10216354578733444,
0.19040891528129578,
0.062277574092149734,
0.15417005121707916,
-0.07592248171567917,
-0.3409620523452759,
0.22468693554401398,
0.16614659130573273,
-0.2793195843696594,
-0.2687015235424042,
-0.166717529296875,
-0.24948987364768982,
-0.1447490155696869,
-0.09267013520002365,
0.19134767353534698,
-0.3504558503627777,
-0.47221916913986206,
-0.2292269915342331,
-0.5416944622993469,
0.08712033182382584,
0.192186176776886,
0.3942379057407379,
0.08774323761463165,
-0.25090256333351135,
-0.09934186935424805,
-0.040672145783901215,
-0.287230908870697,
-0.03263553977012634,
-0.1425807923078537,
0.2985754609107971,
-0.10216867923736572,
0.0024056145921349525,
0.2607381343841553,
0.08077065646648407,
0.5792786478996277,
-0.284333199262619,
0.008404981344938278,
-0.02332589216530323,
0.29759907722473145,
-0.20748743414878845,
0.05213794857263565,
0.4288753271102905,
0.38086265325546265,
0.01616414450109005,
-0.09825307130813599,
-0.44453972578048706,
-0.305635929107666,
0.3296525776386261,
-0.43945908546447754,
-0.4657529592514038,
-0.135496586561203,
0.07438941299915314,
-0.43524473905563354,
0.0035240501165390015,
0.0006511881947517395,
-0.23478062450885773,
0.16041764616966248,
-0.3929885923862457,
-0.02172369509935379,
-0.35154980421066284,
-0.043433092534542084,
-0.21128873527050018,
0.25022703409194946,
0.37781694531440735,
-0.6014806032180786,
0.012842640280723572,
-0.3805823028087616,
0.15508274734020233,
0.11992977559566498,
0.1989077478647232,
-0.1685972809791565,
0.5266979336738586,
-0.2713928520679474,
-0.09150191396474838,
0.6319548487663269,
-0.6368860006332397,
-0.8415303230285645,
-0.16621547937393188,
-0.0623471736907959,
-0.04912981390953064,
0.2330864667892456,
0.2953893840312958,
0.1769869476556778,
-0.20696760714054108,
0.005366414785385132,
0.028005197644233704,
-0.1691211462020874,
-0.11352027952671051,
-0.1612262725830078,
-0.18575161695480347,
-0.33770865201950073,
0.14517463743686676,
-0.04247495159506798,
-0.19019129872322083,
0.3948429226875305,
-0.029916316270828247,
-0.028317555785179138,
0.035707201808691025,
0.004188714548945427,
0.13330718874931335,
0.5193721652030945,
0.1891496330499649,
-0.004239782225340605,
0.023118726909160614,
-0.3082272708415985,
0.0448475182056427,
-0.10940732806921005,
0.0647507756948471,
-0.308549165725708,
-0.04041026160120964,
-0.271591454744339,
-0.30366191267967224,
-0.4424653947353363,
-0.2636525332927704,
0.021143916994333267,
-0.03418104350566864,
0.3390514552593231,
0.08272135257720947,
-0.040954042226076126,
0.046374060213565826,
-0.039162375032901764,
0.03713465481996536,
-0.1816708743572235,
0.13812373578548431,
-0.15153630077838898,
-0.30195358395576477,
-0.052706122398376465,
0.26551541686058044,
-0.07926403731107712,
0.005150665529072285,
-0.1573839783668518,
0.11585155129432678,
0.1705412119626999,
-0.18269766867160797,
0.20291084051132202,
0.24538366496562958,
0.21086598932743073,
-0.27085205912590027,
0.18898676335811615,
-0.008235858753323555,
0.14061889052391052,
0.022456370294094086,
-0.02651388943195343,
0.18148446083068848,
0.06429918110370636,
-0.09261729568243027,
0.014203384518623352,
-0.15763594210147858,
0.3949761688709259,
-0.041395168751478195,
0.007103554904460907,
-0.06916472315788269,
0.1023707389831543,
0.26018446683883667,
0.2686910033226013,
0.0029977764934301376,
-0.15575820207595825,
0.018282853066921234,
0.5315009951591492,
0.11428262293338776,
0.006991025060415268,
0.0530426949262619,
-0.1327369213104248,
0.0963902473449707,
0.29032936692237854,
0.472929984331131,
0.6047756671905518,
0.3320864140987396,
-0.20148804783821106,
-0.15123698115348816,
0.09975430369377136,
-0.13108322024345398,
0.0955176129937172,
0.10108823329210281,
0.21358594298362732,
0.24875277280807495,
0.09122777730226517,
0.08356763422489166,
-0.05029572546482086,
-0.5824820399284363,
-0.05930788815021515,
0.35023054480552673,
-0.15611368417739868,
-0.12992537021636963,
-0.16298504173755646,
-0.42313826084136963,
0.012132618576288223,
-0.2939903438091278,
0.15316125750541687,
-0.04118014872074127,
-0.012483522295951843,
0.2793303430080414,
0.31219959259033203,
0.15062257647514343,
-0.12417721748352051,
0.10465750843286514,
0.03331189602613449,
-0.5073772072792053,
-0.10873544216156006,
-0.08982501178979874,
-0.11686431616544724,
0.026092074811458588,
0.4296649098396301,
0.09903092682361603,
0.2851289212703705,
-0.4056553542613983,
0.1447039544582367,
-0.27275800704956055,
-0.14654293656349182,
0.20223499834537506,
0.04958181455731392,
0.3368254005908966,
0.18841373920440674,
0.12529686093330383,
-0.2552148103713989,
-0.027409248054027557,
0.26410892605781555,
-0.06123018264770508,
-0.14085519313812256,
-0.0980738177895546,
-0.268977552652359,
-0.05545595660805702,
0.05292707309126854,
-0.34383624792099,
-0.5639115571975708,
-0.2585718035697937,
-0.1811031699180603,
0.18918800354003906,
0.1829727292060852,
0.09828060865402222,
0.16704705357551575,
0.1794397234916687,
0.034123677760362625,
-0.06522610038518906,
0.07894844561815262,
-0.565524697303772,
0.41930288076400757,
-0.5766728520393372,
-0.12473133206367493,
0.470535546541214,
-0.1488475799560547,
0.5684309005737305,
0.020599128678441048,
-0.2560323476791382,
-0.08911445736885071,
-0.15989497303962708,
0.4458848536014557,
-0.18850332498550415,
0.03967691957950592,
0.33153000473976135,
-0.01474900171160698,
0.043048128485679626,
0.0007884390652179718,
-0.002412978559732437,
-0.06214938312768936,
0.040708061307668686,
0.6619499325752258,
0.19210046529769897,
0.49106884002685547,
-0.23922666907310486,
0.567638635635376,
0.07564088702201843,
-0.04420861229300499,
0.42629846930503845,
-0.17832274734973907,
0.22196170687675476,
-0.5061759352684021,
-0.14532996714115143,
0.16482774913311005,
0.18551214039325714,
-0.1260242462158203,
0.12721680104732513,
0.2610475420951843,
-0.04936802387237549,
-0.2332867980003357,
0.09220226109027863,
-0.3493935465812683,
-0.04005882143974304,
0.015093134716153145,
0.2960342764854431,
0.16702383756637573,
0.003479365259408951,
0.004650205373764038,
-0.11226408183574677,
-0.4151191711425781,
0.01359209232032299,
0.4828692674636841,
-0.07880077511072159,
0.27388760447502136,
0.2162007838487625,
-0.43098706007003784,
-0.3567703068256378,
0.20085301995277405,
0.26480722427368164,
-0.18657507002353668,
-0.1755000501871109,
0.1863672435283661,
0.16184020042419434,
0.1547297239303589,
0.44477319717407227,
-0.03233588486909866,
0.07827816903591156,
0.18021562695503235,
-0.024722393602132797,
-0.0252111554145813,
-0.029944192618131638,
-0.14433324337005615,
0.299774706363678,
0.25181514024734497,
0.14301249384880066,
-0.08639194816350937,
-0.17898643016815186,
0.1666562855243683,
0.1022854670882225,
-0.1228085607290268,
0.025753282010555267,
-0.10046736896038055,
-0.5379291772842407,
-0.37526121735572815,
-0.15745705366134644,
0.04065267741680145,
0.24525336921215057,
0.15218885242938995,
-0.0870189219713211,
0.056966111063957214,
0.09639252722263336,
0.07277466356754303,
0.23352114856243134,
0.5060459971427917,
-0.03604733943939209,
0.025024060159921646,
-0.0150616355240345,
-0.3126763105392456,
0.6949636936187744,
0.4729439914226532,
0.05678950250148773,
-0.28658005595207214,
0.03406063839793205,
-0.14374195039272308,
0.14735282957553864,
-0.01024945080280304,
-0.09630127251148224,
-0.24351903796195984,
-0.4935559928417206,
0.0672563835978508,
0.255626916885376,
0.1614801436662674,
0.17357785999774933,
0.02134239673614502,
-0.31309568881988525,
-0.27292314171791077,
0.1826113760471344,
0.03270735219120979,
0.21563507616519928,
0.39479953050613403,
0.2493324875831604,
-0.1905592679977417,
0.45910292863845825,
-0.035818055272102356,
0.8300571441650391,
0.03587076812982559,
0.11063943803310394,
0.17122286558151245,
0.11616602540016174,
0.42429330945014954,
-0.15242823958396912,
0.35457974672317505,
-0.17720089852809906,
-0.06231343746185303,
-0.15703868865966797,
-0.16647446155548096,
0.08439533412456512,
0.2573537230491638,
-0.228719100356102,
0.35694482922554016,
0.33315902948379517,
0.10487280786037445,
-0.032395683228969574,
0.1906481385231018,
-0.24529066681861877,
0.0818854570388794,
-0.1570233702659607,
0.0791836753487587,
-0.15490956604480743,
0.662093997001648,
-0.0841335579752922,
-0.16756023466587067,
-0.5331512689590454,
-0.06499362736940384,
-0.16655734181404114,
-0.14219540357589722,
-0.5519369840621948,
0.27445924282073975,
-0.18330667912960052,
-0.8469383120536804,
0.0923222005367279,
0.2916698157787323,
-0.112948477268219,
0.10487250983715057,
-0.3378618359565735,
0.22168606519699097,
0.3370814919471741,
-0.2387387603521347,
0.18347135186195374,
0.15307950973510742,
0.10346700996160507,
-0.25921890139579773,
-0.22604875266551971,
0.041401952505111694,
0.12492255866527557,
-0.3734334707260132,
0.11934652924537659,
-0.1821625977754593,
0.07808282971382141,
-0.12100635468959808,
-0.40893346071243286,
-0.16842827200889587,
-0.1427188515663147,
-0.05412563681602478,
0.08819593489170074,
0.06457895040512085,
0.062432195991277695,
0.23282182216644287,
-0.20191040635108948,
-0.26595914363861084,
-0.18750740587711334,
0.09928109496831894,
-0.2765616476535797,
0.41140690445899963,
0.5215319395065308,
0.02247566357254982,
-0.16648156940937042,
-0.110508494079113,
0.21718522906303406,
-0.16085518896579742,
-0.31354472041130066,
0.025799669325351715,
0.1030326634645462,
0.26823562383651733,
0.002201865427196026,
0.35962581634521484,
0.33833056688308716,
-0.19767549633979797,
-0.06653544306755066,
-0.5111645460128784,
-0.17946486175060272,
0.22166845202445984,
0.20260609686374664,
0.3132026195526123,
-0.1802573800086975,
0.2094547301530838,
0.17142218351364136,
-0.4007721543312073,
-0.22141385078430176,
0.17996639013290405,
-0.08622818440198898,
0.05073017254471779,
-0.03413558006286621,
0.14435726404190063,
0.3577929735183716,
0.09807087481021881,
-0.0068743545562028885,
-0.13185790181159973,
-0.16162347793579102,
-0.21573561429977417,
0.14197024703025818,
0.14294938743114471,
-0.01853654906153679,
0.010515986010432243,
-0.06889551132917404,
-0.0605122372508049,
-0.08238726854324341,
-0.030012957751750946,
0.15197168290615082,
0.229061096906662,
-0.009497597813606262,
0.19909779727458954,
0.06018636375665665,
-0.07607484608888626,
-0.11694134771823883,
0.38155871629714966,
0.13565093278884888,
0.1704595386981964,
0.1690395176410675,
0.2944318652153015,
0.0512569285929203,
-0.03116745874285698,
-0.00932048074901104,
-0.1481216549873352,
-0.3203994035720825,
0.021011916920542717,
0.1947280466556549,
-0.18557772040367126,
0.016272246837615967,
0.28524839878082275,
0.07029809802770615,
0.058395422995090485,
-0.0802149847149849,
0.1453118473291397,
0.2804785966873169,
0.06195656210184097,
-0.2122628092765808,
0.10615213215351105,
0.32973548769950867,
0.21417365968227386,
0.05806273594498634,
0.24907788634300232,
-0.02424851432442665,
0.056959569454193115,
0.03402860090136528,
0.19547152519226074,
0.7585305571556091,
-0.20845215022563934,
-0.09514380991458893,
0.29746896028518677,
-0.048633985221385956,
0.2966541051864624,
0.015199162997305393,
0.03201274201273918,
0.0889323428273201,
0.4520909786224365,
-0.13120827078819275,
0.3690885901451111,
-0.18164005875587463,
0.10361871123313904,
-0.016869857907295227,
-0.4776882827281952,
-0.3266054093837738,
-0.23459351062774658,
-0.1599961221218109,
-0.1680212914943695,
-0.0013954490423202515,
0.5693010091781616,
0.02061132714152336,
0.12685911357402802,
-0.27679330110549927,
0.03554587811231613,
-0.3136081397533417,
0.2228032797574997,
-0.275328665971756,
-0.21705672144889832,
0.24898263812065125,
0.04732714220881462,
0.028721172362565994,
0.08381172269582748,
-0.12339498102664948,
0.21483378112316132,
-0.2976418733596802,
0.1965077966451645,
0.05697505176067352,
0.07582923769950867,
-0.050015054643154144,
-0.0799545869231224,
0.3521748185157776,
0.054895639419555664,
-0.09956373274326324,
-0.14382770657539368,
0.28923842310905457,
0.47523748874664307,
0.30812644958496094,
-0.005724351853132248,
-0.10636257380247116,
-0.019874360412359238,
-0.2170746773481369,
-0.11123621463775635,
0.02355765551328659,
0.10226687043905258,
-0.020562879741191864,
-0.01172812283039093,
0.14690029621124268,
-0.06780266016721725,
0.04238845035433769,
0.0682884156703949,
-0.09842078387737274,
-0.059191104024648666,
0.001383751630783081,
-0.08751071989536285,
-0.22621583938598633,
-0.14558957517147064,
0.06451413780450821,
-0.3305794894695282,
0.07007493078708649,
-0.035104479640722275,
0.026612980291247368,
-0.009222862310707569,
-0.05505083128809929,
0.02077578380703926,
-0.23827165365219116,
0.09306615591049194,
0.2795318365097046,
0.35450515151023865,
-0.4359831213951111,
-0.1675845831632614,
-0.5266867280006409,
0.0868716835975647,
-0.11022156476974487,
-0.16367274522781372,
-0.1949089914560318,
0.15381012856960297,
-0.4237271249294281,
0.08209846913814545,
0.3141462504863739,
0.002732931636273861,
0.27366265654563904,
0.31615567207336426,
-0.16671043634414673,
-0.2694206237792969,
-0.09418687224388123,
-0.07495307177305222,
-0.004555443301796913,
-0.25860708951950073,
0.031824711710214615,
-0.14932893216609955,
-0.0617901086807251,
-0.18872031569480896,
-0.2497365027666092,
0.15259981155395508,
-0.025648176670074463,
0.49469026923179626,
-0.17386861145496368,
0.5443025827407837,
-0.1426640748977661,
0.1813519448041916,
0.0970858782529831,
-0.013570578768849373,
-0.08429539948701859,
0.08932731300592422,
0.14161136746406555,
0.3505218029022217,
-0.2550514042377472,
-0.015750005841255188,
-0.299586683511734,
0.1975639909505844,
-0.05927494168281555,
-0.03411714732646942,
-0.04282818362116814,
-0.11274947226047516,
-0.28469768166542053,
0.25591132044792175,
0.16056378185749054,
0.023069145157933235,
-0.16983479261398315,
0.12079642713069916,
-0.31960517168045044,
-0.11808726191520691,
0.539507269859314,
-0.18129664659500122,
0.14852885901927948,
-0.16438594460487366,
0.028693363070487976,
-0.07907318323850632,
-0.26236292719841003,
0.05923383682966232,
0.08532985299825668,
0.2187625616788864,
0.1401185393333435,
-0.1786879152059555,
0.29414835572242737,
0.11966270208358765,
0.03512078896164894,
0.15723323822021484,
0.568550705909729,
0.043379295617341995,
-0.023019490763545036,
-0.2887488901615143,
-0.18519417941570282
] |
https://github.com/huggingface/datasets/issues/2052 | Timit_asr dataset repeats examples | Hi,
this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command:
```bash
pip install git+https://github.com/huggingface/datasets
``` | Summary
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same
Steps to reproduce
As an example, on this code there is the text from the training part:
Code snippet:
```
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
timit['train']['text']
#['Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
```
The same behavior happens for other columns
Expected behavior:
Different info on the actual timit_asr dataset
Actual behavior:
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same. I've checked datasets 1.3 and the rows are different
Debug info
Streamlit version: (get it with $ streamlit version)
Python version: Python 3.6.12
Using Conda? PipEnv? PyEnv? Pex? Using pip
OS version: Centos-release-7-9.2009.1.el7.centos.x86_64
Additional information
You can check the same behavior on https://huggingface.co/datasets/viewer/?dataset=timit_asr | 32 | Timit_asr dataset repeats examples
Summary
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same
Steps to reproduce
As an example, on this code there is the text from the training part:
Code snippet:
```
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
timit['train']['text']
#['Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
```
The same behavior happens for other columns
Expected behavior:
Different info on the actual timit_asr dataset
Actual behavior:
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same. I've checked datasets 1.3 and the rows are different
Debug info
Streamlit version: (get it with $ streamlit version)
Python version: Python 3.6.12
Using Conda? PipEnv? PyEnv? Pex? Using pip
OS version: Centos-release-7-9.2009.1.el7.centos.x86_64
Additional information
You can check the same behavior on https://huggingface.co/datasets/viewer/?dataset=timit_asr
Hi,
this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command:
```bash
pip install git+https://github.com/huggingface/datasets
``` | [
0.06932380795478821,
-0.2360808551311493,
0.014321338385343552,
0.3875415325164795,
0.25648751854896545,
-0.05277535319328308,
0.3894459903240204,
0.15092355012893677,
-0.35309407114982605,
0.2145138680934906,
0.03625649958848953,
0.3838866949081421,
-0.1914113312959671,
0.3149203360080719,
0.1428198218345642,
0.08972452580928802,
-0.06450826674699783,
0.17462977766990662,
-0.5109456777572632,
-0.20785410702228546,
0.15595929324626923,
0.10734977573156357,
-0.04420017823576927,
-0.02194102853536606,
-0.1925642192363739,
0.2516242563724518,
0.03453347831964493,
-0.27534040808677673,
0.028873953968286514,
-0.6021386384963989,
0.21523547172546387,
0.08594046533107758,
0.16023562848567963,
0.5223376750946045,
-0.00012033859093207866,
0.08506251871585846,
-0.10062585771083832,
-0.058589376509189606,
-0.4437144100666046,
-0.33151304721832275,
-0.12937337160110474,
-0.009858569130301476,
0.4994361102581024,
-0.12943066656589508,
-0.3538799583911896,
-0.2658418118953705,
0.02285967767238617,
0.16789890825748444,
0.13871309161186218,
0.19774889945983887,
0.14430004358291626,
0.2076292335987091,
-0.4852282404899597,
-0.059883832931518555,
0.17897537350654602,
0.09279705584049225,
-0.08979763090610504,
0.18346039950847626,
-0.11458969116210938,
0.34347978234291077,
-0.08619297295808792,
0.29698747396469116,
0.04721522331237793,
0.3001303970813751,
-0.032589130103588104,
0.03432932496070862,
0.08034267276525497,
-0.13857930898666382,
0.05308697745203972,
0.30745211243629456,
0.6112802028656006,
-0.19117316603660583,
-0.006164222955703735,
-0.23796850442886353,
0.2809108793735504,
-0.008916916325688362,
0.1315227895975113,
0.22823698818683624,
-0.15788960456848145,
0.17160455882549286,
-0.4439934492111206,
0.16408200562000275,
-0.22206097841262817,
0.10229083895683289,
-0.07236526906490326,
-0.48051926493644714,
-0.24315181374549866,
0.08900634199380875,
-0.19932441413402557,
-0.19239310920238495,
0.20144887268543243,
-0.21418726444244385,
0.15944409370422363,
0.03455938398838043,
-0.26224085688591003,
0.10921657085418701,
-0.03982184827327728,
0.2607020139694214,
0.043721601366996765,
0.2176586538553238,
0.7037342190742493,
0.19501930475234985,
-0.16518902778625488,
-0.12095219641923904,
0.11112664639949799,
0.2142631858587265,
0.14031395316123962,
-0.10361167043447495,
0.0006804130971431732,
0.14066167175769806,
-0.3247896134853363,
0.016144804656505585,
-0.09482058882713318,
0.35068127512931824,
0.29835429787635803,
-0.4594764709472656,
0.24851290881633759,
-0.24131622910499573,
-0.4751441776752472,
0.17532747983932495,
-0.43297573924064636,
-0.18621985614299774,
-0.030171923339366913,
0.12821277976036072,
-0.03281749412417412,
0.288788765668869,
-0.06715229898691177,
-0.14361955225467682,
0.03312680125236511,
-0.1429731249809265,
-0.17336991429328918,
-0.24472282826900482,
-0.29972052574157715,
0.31735971570014954,
0.18309342861175537,
-0.5795406103134155,
0.17554277181625366,
0.5316572785377502,
-0.09798608720302582,
-0.059952154755592346,
0.14990448951721191,
0.048433855175971985,
0.060539610683918,
0.05278779938817024,
-0.09169155359268188,
0.21545448899269104,
0.04532404616475105,
0.19597072899341583,
-0.00455128401517868,
0.09920632839202881,
0.006008751690387726,
0.08487266302108765,
0.5086862444877625,
0.19522596895694733,
-0.32546359300613403,
-0.14162983000278473,
-0.13613057136535645,
0.15038874745368958,
-0.13097012042999268,
-0.10115410387516022,
0.0790349543094635,
-0.2211146205663681,
-0.17905576527118683,
-0.1774934083223343,
0.06750574707984924,
0.3432033658027649,
-0.3481626808643341,
-0.1797853708267212,
0.3411162197589874,
0.06732289493083954,
0.12095992267131805,
0.017069414258003235,
-0.03977084532380104,
0.254791259765625,
-0.1584244668483734,
-0.0625496357679367,
0.019832037389278412,
-0.18381384015083313,
-0.2675594985485077,
0.13680849969387054,
-0.03174968063831329,
0.467716783285141,
0.018071211874485016,
-0.045796722173690796,
0.3251831829547882,
0.3720589578151703,
0.08713719993829727,
-0.04690732806921005,
0.4046117067337036,
-0.037094198167324066,
-0.4191308617591858,
-0.06839147210121155,
0.1653861254453659,
0.1985434889793396,
-0.1735898107290268,
0.2753489911556244,
0.1103101596236229,
-0.06502246856689453,
0.34849196672439575,
-0.11650228500366211,
-0.1479746550321579,
-0.13332700729370117,
0.09105421602725983,
0.15530958771705627,
0.16576246917247772,
-0.37851250171661377,
-0.13619929552078247,
-0.01314237155020237,
0.25515732169151306,
0.19182680547237396,
0.3550344705581665,
-0.03331829234957695,
-0.3664957284927368,
-0.2809583842754364,
-0.39504966139793396,
-0.03785543516278267,
0.10212509334087372,
0.5243574976921082,
-0.02065260149538517,
0.24048499763011932,
0.025402847677469254,
0.65451979637146,
-0.4834013879299164,
0.15544787049293518,
-0.11687284708023071,
0.18298208713531494,
0.07460819184780121,
-0.008381708525121212,
0.023886069655418396,
0.08530519902706146,
0.18199163675308228,
-0.14323373138904572,
0.11976844817399979,
0.32225391268730164,
0.0608438178896904,
-0.02293972671031952,
-0.22276827692985535,
-0.193232461810112,
0.25956401228904724,
-0.19837592542171478,
-0.15344099700450897,
0.18771889805793762,
0.1179833859205246,
0.035742975771427155,
-0.09552181512117386,
0.3096633553504944,
0.01037774607539177,
0.14830666780471802,
0.2213655263185501,
0.07385168224573135,
0.021175457164645195,
-0.08089983463287354,
-0.36857280135154724,
-0.41528812050819397,
0.411594420671463,
-0.04455876722931862,
0.06609618663787842,
0.17359857261180878,
-0.4137447774410248,
0.17978768050670624,
0.09577208757400513,
-0.12905733287334442,
-0.13192731142044067,
0.1978548765182495,
-0.15852221846580505,
0.24808770418167114,
0.0489419624209404,
0.3009960949420929,
0.22301572561264038,
0.19539053738117218,
-0.0019309930503368378,
0.07476690411567688,
-0.2692965567111969,
-0.19357386231422424,
0.1433219313621521,
0.019344951957464218,
-0.2603229284286499,
0.4037388563156128,
0.21911539137363434,
-0.017681151628494263,
-0.6143210530281067,
-0.08849094808101654,
0.2171190083026886,
0.2974386513233185,
-0.266132116317749,
0.08534964919090271,
-0.4890751838684082,
-0.04500672593712807,
-0.3011746406555176,
-0.16063658893108368,
0.10408666729927063,
0.08125735074281693,
0.039383936673402786,
0.20805765688419342,
0.19908086955547333,
0.20264537632465363,
-0.3972114324569702,
0.2981903553009033,
-0.06823423504829407,
0.43915799260139465,
-0.0972708910703659,
0.24798111617565155,
-0.3348938524723053,
0.042461689561605453,
-0.08527257293462753,
0.12156599760055542,
0.2688838243484497,
-0.4862581193447113,
0.09935437887907028,
-0.3178021311759949,
-0.32995182275772095,
0.391877681016922,
-0.148919939994812,
0.47573819756507874,
0.22168676555156708,
0.07834691554307938,
-0.19708579778671265,
-0.25063157081604004,
0.010231820866465569,
-0.14003002643585205,
-0.2091224491596222,
0.12644179165363312,
-0.05641966685652733,
0.07044666260480881,
-0.17075547575950623,
-0.5320757031440735,
0.13261982798576355,
-0.17592480778694153,
0.42669785022735596,
0.1929590255022049,
0.1590532660484314,
0.5182475447654724,
0.02761479839682579,
0.33342084288597107,
0.1154281422495842,
0.25479012727737427,
-0.4598691165447235,
-0.2551381587982178,
0.22258968651294708,
-0.05883553624153137,
-0.13104264438152313,
-0.15293017029762268,
0.02045745775103569,
0.0693659633398056,
0.2738564610481262,
-0.6682429313659668,
-0.059467606246471405,
-0.23476050794124603,
0.06697385013103485,
0.009898759424686432,
0.065785251557827,
0.1793261468410492,
-0.08590260148048401,
-0.03529756888747215,
-0.13921135663986206,
-0.01373470202088356,
0.20269963145256042,
-0.08505256474018097,
-0.05056668072938919,
0.052400968968868256,
0.1572900116443634,
0.09333157539367676,
0.19903242588043213,
0.46098655462265015,
-0.109171062707901,
0.2948639392852783,
-0.09480183571577072,
0.5107049942016602,
-0.0797247365117073,
-0.1776980757713318,
-0.21116532385349274,
-0.11231058835983276,
0.01251167431473732,
0.26503437757492065,
-0.14423298835754395,
0.18554314970970154,
-0.05280166119337082,
-0.007715167477726936,
0.055677175521850586,
-0.2703039050102234,
-0.22839273512363434,
-0.40314003825187683,
0.33692535758018494,
0.19738169014453888,
0.14733672142028809,
0.023982767015695572,
-0.15989169478416443,
-0.23915033042430878,
0.275193989276886,
0.10585498064756393,
-0.054676204919815063,
-0.7649230360984802,
-0.2049747258424759,
-0.4185813069343567,
0.24637387692928314,
0.3461543619632721,
0.3524983525276184,
0.0982508510351181,
-0.28501930832862854,
0.4231260418891907,
0.08939729630947113,
0.5272781848907471,
-0.42617344856262207,
-0.12258303165435791,
0.07816092669963837,
0.07081141322851181,
-0.5122361183166504,
-0.18217267096042633,
-0.3769615888595581,
-0.1074797585606575,
0.10667510330677032,
0.33236467838287354,
-0.14470015466213226,
-0.25692424178123474,
0.2897033989429474,
0.2483837753534317,
-0.1374628245830536,
-0.21363618969917297,
-0.07764752209186554,
-0.07472126185894012,
0.06465276330709457,
-0.001866258680820465,
-0.24642348289489746,
-0.12127687782049179,
-0.3947780430316925,
0.012344799935817719,
-0.29855626821517944,
0.1659848690032959,
0.5115218758583069,
0.2698184549808502,
0.4900929927825928,
0.009170771576464176,
0.30909818410873413,
0.3732330799102783,
-0.05116081237792969,
0.18707501888275146,
0.5713598728179932,
-0.3596923053264618,
-0.004707559943199158,
0.192405104637146,
-0.2698390483856201,
0.10468524694442749,
0.48730939626693726,
-0.06086453050374985,
0.21080456674098969,
-0.21177645027637482,
-0.018489837646484375,
-0.13532599806785583,
0.23548434674739838,
0.2572866976261139,
0.008317637257277966,
0.08976537734270096,
-0.6204379200935364,
0.26613888144493103,
0.008617948740720749,
-0.24674420058727264,
0.27055954933166504,
0.07447125762701035,
-0.09553158283233643,
0.1597132831811905,
-0.2795659601688385,
0.8087241053581238,
0.1241445541381836,
0.5083411335945129,
0.3728879392147064,
0.027653157711029053,
0.05371696129441261,
-0.12369255721569061,
0.07817919552326202,
-0.20461638271808624,
-0.20072299242019653,
-0.12225154042243958,
-0.1652892380952835,
-0.042690642178058624,
0.11962085217237473,
-0.37272220849990845,
0.05507936701178551,
-0.04008864238858223,
0.21999399363994598,
0.11894811689853668,
0.03092912584543228,
-0.24421828985214233,
0.09775844216346741,
-0.044365935027599335,
0.05916991084814072,
0.06498826295137405,
0.11208058893680573,
0.10477636009454727,
0.15554963052272797,
0.33245518803596497,
-0.2676260471343994,
-0.28835105895996094,
0.02515275403857231,
-0.11853007227182388,
-0.12339413166046143,
0.015088511630892754,
-0.5537111163139343,
-0.05436382442712784,
0.022716697305440903,
0.03766411170363426,
0.08256293833255768,
0.019677281379699707,
-0.1897842139005661,
0.1444820761680603,
0.28915831446647644,
-0.2672910988330841,
-0.040219686925411224,
0.5374186635017395,
0.2313796877861023,
-0.3256860375404358,
0.14734917879104614,
0.27184435725212097,
-0.0018392577767372131,
-0.37634697556495667,
0.13288253545761108,
-0.27280211448669434,
-0.6834985613822937,
0.09932628273963928,
0.01881203055381775,
-0.05487789958715439,
-0.22638528048992157,
0.07696639001369476,
-0.31523793935775757,
-0.1691731959581375,
0.24659526348114014,
0.3125595152378082,
-0.43118253350257874,
-0.15187928080558777,
0.40578722953796387,
0.3899216949939728,
-0.03222724422812462,
0.4833841323852539,
-0.055357180535793304,
-0.0931493490934372,
-0.24477195739746094,
0.08967720717191696,
0.19400647282600403,
-0.26712146401405334,
0.08319047093391418,
-0.21828630566596985,
0.23541919887065887,
0.21104776859283447,
0.24754926562309265,
0.05821431428194046,
-0.03755548596382141,
-0.31823980808258057,
-0.2167704552412033,
0.05500952899456024,
0.1399969756603241,
0.23366588354110718,
0.37469783425331116,
-0.049317896366119385,
0.288608193397522,
-0.01280179712921381,
-0.12172825634479523,
-0.22595086693763733,
0.3694862127304077,
0.0717831701040268,
0.23209302127361298,
0.04767290875315666,
-0.2835390865802765,
0.27778783440589905,
-0.00374697707593441,
0.08948727697134018,
0.2811298668384552,
-0.1567186862230301,
-0.1079946979880333,
-0.3754071295261383,
0.1233825832605362,
0.03196734935045242,
0.06226454675197601,
-0.21430425345897675,
0.04906858503818512,
0.14484767615795135,
-0.008012073114514351,
0.20081956684589386,
0.216795414686203,
0.034492090344429016,
0.1800309121608734,
-0.06338292360305786,
0.16113847494125366,
0.07557704299688339,
-0.19406047463417053,
-0.0879659652709961,
0.026581548154354095,
0.33565226197242737,
-0.11456988751888275,
-0.36869144439697266,
0.12558631598949432,
-0.2908988296985626,
0.1372588574886322,
0.22784844040870667,
-0.06070389598608017,
0.006029099225997925,
-0.22502218186855316,
-0.005734078586101532,
0.09072761982679367,
0.25559890270233154,
0.5138314962387085,
-0.20997050404548645,
-0.33901163935661316,
0.057703353464603424,
0.11519408971071243,
-0.10630133002996445,
-0.11410851776599884,
-0.1480736881494522,
0.12495207786560059,
0.16584333777427673,
0.30901896953582764,
0.05145450308918953,
-0.42457517981529236,
0.43151360750198364,
-0.12580999732017517,
0.24995195865631104,
-0.23171935975551605,
0.24400830268859863,
0.41433045268058777,
-0.06032796576619148,
-0.1476065218448639,
0.26019087433815,
0.12352921068668365,
-0.21308696269989014,
0.5466447472572327,
-0.06037253886461258,
0.029023436829447746,
-0.35412532091140747,
-0.024837080389261246,
0.08989351987838745,
-0.10185840725898743,
-0.08028101921081543,
0.23035013675689697,
-0.21280795335769653,
0.3305298388004303,
0.11463232338428497,
0.40664929151535034,
-0.04084555059671402,
-0.08105618506669998,
-0.33414602279663086,
-0.27296218276023865,
-0.2580868601799011,
-0.13054414093494415,
-0.3098895847797394,
-0.40515127778053284,
-0.06257583200931549,
0.05754328891634941,
-0.1961643099784851,
0.054460253566503525,
0.49979111552238464,
0.14600449800491333,
-0.008260034024715424,
-0.714217483997345,
-0.2702353000640869,
0.11079055815935135,
0.29334020614624023,
0.049191463738679886,
0.47030970454216003,
0.13401508331298828,
0.017815589904785156,
0.08531197905540466,
0.19572997093200684,
0.23974360525608063,
0.18891800940036774,
0.1225128024816513,
0.1102057695388794,
-0.3764493465423584,
0.07457499951124191,
0.06370364129543304,
0.30705946683883667,
0.07657831907272339,
-0.2732904553413391,
0.10728724300861359,
0.033398017287254333,
-0.07894276082515717,
0.27808883786201477,
0.06806986033916473,
-0.026470042765140533,
-0.8032152652740479,
0.3519617021083832,
0.019274495542049408,
0.24204117059707642,
0.05272740125656128,
-0.03528774529695511,
-0.4574164152145386,
0.4931128919124603,
0.3092862069606781,
0.03210630267858505,
0.05305325239896774,
-0.25453802943229675,
0.0737999826669693,
-0.24975720047950745,
0.25422143936157227,
0.13473248481750488,
-0.01908661425113678,
-0.12400364130735397,
-0.16254274547100067,
-0.6735637784004211,
0.07172216475009918,
-0.223077654838562,
-0.012496454641222954,
0.1540585309267044,
0.06003997474908829,
-0.051855482161045074,
0.08834357559680939,
0.17885419726371765,
0.08643896132707596,
-0.43281054496765137,
0.047537658363580704,
-0.4010680317878723,
-0.1323050856590271,
0.12054964900016785,
0.06344141811132431,
-0.07101980596780777,
-0.11094753444194794,
0.047049593180418015,
-0.10677178204059601,
-0.039010386914014816,
-0.045840755105018616,
0.0019417107105255127,
-0.08507974445819855,
0.1856609731912613,
-0.01132752001285553,
-0.04581534117460251,
0.3190461993217468,
0.1376361846923828,
-0.13626961410045624,
-0.3025197684764862,
-0.39429566264152527,
-0.13271071016788483,
0.4103938639163971,
0.16523277759552002,
0.13514526188373566,
-0.10270371288061142,
-0.5430186986923218,
0.02905375510454178,
0.05960949882864952,
0.31606143712997437,
0.10683052241802216,
0.03542108088731766,
0.0028794463723897934,
-0.2154763638973236,
0.16014355421066284,
0.027387265115976334,
0.6485616564750671,
0.10671920329332352,
0.1607166975736618,
-0.19408062100410461,
-0.6553241014480591,
0.4583481550216675,
-0.6851571202278137,
-0.3094448745250702,
-0.12231588363647461,
0.17611244320869446,
0.13547064363956451,
-0.20740507543087006,
-0.7160698771476746,
-0.010619550943374634,
0.5319483280181885,
-0.17390301823616028,
-0.07667408138513565,
0.3915344774723053,
-0.04291059449315071,
0.01927443966269493,
-0.26808682084083557,
0.622516393661499,
0.44846442341804504,
-0.3485526144504547,
0.10752478241920471,
-0.3683794140815735
] |
https://github.com/huggingface/datasets/issues/2050 | Build custom dataset to fine-tune Wav2Vec2 | Sure you can use the json loader
```python
data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"}
train_dataset = load_dataset("json", data_files=data_files, split="train")
test_dataset = load_dataset("json", data_files=data_files, split="test")
```
You just need to make sure that the data contain the paths to the audio files.
If not, feel free to use `.map()` to add them. | Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file.
| 51 | Build custom dataset to fine-tune Wav2Vec2
Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file.
Sure you can use the json loader
```python
data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"}
train_dataset = load_dataset("json", data_files=data_files, split="train")
test_dataset = load_dataset("json", data_files=data_files, split="test")
```
You just need to make sure that the data contain the paths to the audio files.
If not, feel free to use `.map()` to add them. | [
-0.08610299974679947,
0.02527308464050293,
0.013138208538293839,
0.056595418602228165,
-0.01541585847735405,
-0.001697741448879242,
0.040185969322919846,
0.16728049516677856,
0.11139675974845886,
-0.032392919063568115,
-0.21395520865917206,
0.4168868064880371,
-0.2158392369747162,
0.11425591260194778,
-0.02662474289536476,
0.02597196213901043,
-0.18562421202659607,
0.22579389810562134,
0.1270139515399933,
-0.029793083667755127,
-0.2303093671798706,
0.15053953230381012,
-0.08918694406747818,
-0.07079216837882996,
-0.1212102398276329,
0.11652002483606339,
0.17767803370952606,
0.40993449091911316,
-0.13589546084403992,
-0.3398261070251465,
0.40746641159057617,
0.32653385400772095,
0.16456161439418793,
0.33290261030197144,
-0.00009885540930554271,
-0.1569032073020935,
-0.014650151133537292,
-0.2888990342617035,
0.06872373819351196,
0.129269078373909,
-0.49520567059516907,
-0.15905871987342834,
-0.10314226150512695,
-0.05984867736697197,
-0.29747474193573,
-0.18606211245059967,
-0.2987944781780243,
-0.26631855964660645,
0.7216203808784485,
0.31418395042419434,
0.21684937179088593,
-0.31200656294822693,
0.028777848929166794,
-0.016266630962491035,
0.07489707320928574,
0.04785358905792236,
0.06622154265642166,
0.4144841730594635,
0.2814679741859436,
0.06522685289382935,
0.25806567072868347,
0.043904729187488556,
-0.30998557806015015,
0.11274537444114685,
0.2655511796474457,
-0.0027989502996206284,
-0.4111699163913727,
-0.21625924110412598,
-0.09577476233243942,
0.5772784352302551,
0.4842575490474701,
-0.5012130737304688,
-0.1985924243927002,
-0.1890510618686676,
0.19998572766780853,
-0.4806705415248871,
-0.041456080973148346,
0.04582443833351135,
-0.17021432518959045,
0.3052022159099579,
-0.025695692747831345,
-0.36197900772094727,
-0.2076646387577057,
-0.09060640633106232,
0.04543490707874298,
0.05279664695262909,
-0.16647860407829285,
-0.05893253535032272,
0.04236080124974251,
-0.05130791664123535,
-0.19570685923099518,
0.039317160844802856,
-0.21923542022705078,
0.3246358335018158,
-0.42656415700912476,
-0.39581865072250366,
-0.0953574851155281,
-0.44234350323677063,
0.05045870691537857,
0.033886171877384186,
0.36948078870773315,
0.14315137267112732,
-0.11746232211589813,
0.15120092034339905,
0.021868377923965454,
0.010641699656844139,
0.003232695162296295,
-0.1732015162706375,
0.09869608283042908,
-0.4326671063899994,
-0.03505406156182289,
0.026426205411553383,
-0.21804334223270416,
-0.04325738921761513,
-0.3427791893482208,
0.056650739163160324,
0.14854253828525543,
-0.3140285015106201,
-0.30480051040649414,
-0.08908577263355255,
-0.13655129075050354,
0.011078666895627975,
0.06657523661851883,
0.40890341997146606,
0.10105641186237335,
0.054114408791065216,
-0.056966833770275116,
0.3980821371078491,
0.16121262311935425,
0.01882603019475937,
0.043964073061943054,
0.2589755654335022,
0.3334706425666809,
0.1825694888830185,
0.37484389543533325,
0.00008632242679595947,
0.40367716550827026,
-0.19825948774814606,
0.20774485170841217,
-0.13878658413887024,
-0.032732024788856506,
0.1331547349691391,
-0.2826274335384369,
-0.05619213357567787,
-0.004810497164726257,
0.18394987285137177,
-0.10191167891025543,
0.03159856051206589,
-0.33354851603507996,
-0.09363342076539993,
-0.36948859691619873,
-0.3046222925186157,
0.11106391996145248,
0.2222229242324829,
-0.22404861450195312,
-0.15878623723983765,
-0.1389618217945099,
0.06356123089790344,
-0.105222187936306,
-0.289274662733078,
-0.2854250371456146,
-0.03361906856298447,
-0.265504390001297,
-0.1619250327348709,
0.1819530725479126,
-0.09873491525650024,
-0.6757569909095764,
0.0897570550441742,
-0.12162020057439804,
0.1931486874818802,
0.00010672956705093384,
0.2764824628829956,
-0.047363899648189545,
0.5055429339408875,
-0.09600161015987396,
0.35634326934814453,
0.2618568241596222,
-0.4331689476966858,
-0.2342766970396042,
0.3278566300868988,
-0.19370058178901672,
0.1395902931690216,
0.1119501143693924,
-0.05385079234838486,
0.4180213212966919,
-0.3144519031047821,
0.21697820723056793,
0.4147838354110718,
0.18699996173381805,
0.010118646547198296,
0.14761129021644592,
-0.04951832816004753,
0.18541046977043152,
0.049596820026636124,
-0.37010934948921204,
-0.06952022761106491,
-0.11357782036066055,
-0.03352753818035126,
0.26872518658638,
-0.15524284541606903,
0.06290953606367111,
0.1805388629436493,
0.24526986479759216,
-0.21021504700183868,
0.013358434662222862,
0.10913925617933273,
0.04477294906973839,
0.10262367874383926,
-0.11043243855237961,
0.005972877144813538,
0.3424820303916931,
0.07177532464265823,
-0.27542680501937866,
-0.20761723816394806,
-0.34488704800605774,
-0.36086830496788025,
0.18591104447841644,
0.14741654694080353,
0.22125688195228577,
-0.475292444229126,
-0.4122074246406555,
0.080768883228302,
-0.09431110322475433,
-0.14273078739643097,
-0.24583368003368378,
-0.03676892817020416,
0.35013827681541443,
0.007016520947217941,
0.39414095878601074,
0.3947729170322418,
0.13259157538414001,
0.14081066846847534,
-0.03190360218286514,
0.46428433060646057,
0.20633144676685333,
0.3702320456504822,
0.14350268244743347,
0.23806092143058777,
-0.124907948076725,
-0.4643806219100952,
0.36575016379356384,
0.3537258505821228,
0.25121527910232544,
-0.07665100693702698,
-0.3008255362510681,
0.37310129404067993,
0.2522554099559784,
0.3634333908557892,
-0.04814131557941437,
-0.11686990410089493,
0.3635111451148987,
0.1261613368988037,
-0.26280486583709717,
0.10926717519760132,
-0.09144668281078339,
-0.08087265491485596,
0.40645402669906616,
-0.20657828450202942,
-0.06838629394769669,
0.08453784137964249,
0.2053622454404831,
-0.07506610453128815,
0.08099648356437683,
0.15361237525939941,
-0.4257681965827942,
-0.11885753273963928,
-0.1134338229894638,
0.17895638942718506,
0.42030519247055054,
0.3598633110523224,
-0.07085654139518738,
-0.06625553965568542,
-0.05268741026520729,
-0.12654221057891846,
0.10803297907114029,
-0.11571267247200012,
-0.0939975306391716,
0.3089730441570282,
0.10585223883390427,
-0.18341343104839325,
-0.15013229846954346,
-0.060477253049612045,
-0.31328269839286804,
0.07474184036254883,
-0.39486992359161377,
-0.40678223967552185,
-0.1029474288225174,
0.3815218508243561,
-0.18755683302879333,
-0.35452350974082947,
0.05327950417995453,
0.18062543869018555,
0.24974912405014038,
0.08368103206157684,
-0.07800699770450592,
0.08767371624708176,
0.04974881932139397,
0.41428297758102417,
0.03944074362516403,
-0.3689310848712921,
0.2387043535709381,
-0.05071229487657547,
0.07880178093910217,
0.25756746530532837,
0.12068584561347961,
0.2905209958553314,
0.11380870640277863,
0.22413481771945953,
0.09197822958230972,
0.04078026860952377,
0.19824948906898499,
0.04747239500284195,
-0.12987211346626282,
0.15060412883758545,
0.020097196102142334,
0.2760101556777954,
0.36977988481521606,
-0.1345028579235077,
-0.17770080268383026,
0.15849198400974274,
-0.007083747535943985,
-0.0365133062005043,
0.032760486006736755,
0.09718862920999527,
0.13467782735824585,
-0.5730344653129578,
-0.22289010882377625,
-0.4019254744052887,
0.3425264358520508,
0.14321720600128174,
0.08253811299800873,
-0.2697078585624695,
0.06700600683689117,
0.05959945544600487,
0.09279631823301315,
0.31656330823898315,
-0.2320636808872223,
-0.2677368223667145,
0.47754809260368347,
-0.2591697573661804,
-0.034586649388074875,
0.13618184626102448,
-0.10529353469610214,
0.36926135420799255,
-0.15067291259765625,
-0.047735974192619324,
0.2083643525838852,
0.09224055707454681,
-0.15930666029453278,
0.1981942057609558,
0.0033948272466659546,
0.299621045589447,
0.020197348669171333,
-0.03168319910764694,
-0.21387192606925964,
-0.18478846549987793,
0.13998357951641083,
0.348714143037796,
0.09344735741615295,
0.23761418461799622,
0.011363053694367409,
-0.6527876257896423,
0.545133650302887,
0.20036789774894714,
0.10474298894405365,
0.025590412318706512,
-0.10376895219087601,
0.06882663816213608,
-0.1141260489821434,
0.059831403195858,
0.11200293153524399,
0.06393635272979736,
-0.15246401727199554,
0.41340863704681396,
0.3461430072784424,
-0.051676034927368164,
-0.16526426374912262,
0.14130212366580963,
-0.4106564521789551,
-0.03050188347697258,
0.15082046389579773,
0.060862503945827484,
0.04844100400805473,
-0.020279547199606895,
0.35358256101608276,
0.12425343692302704,
-0.13633793592453003,
0.12396800518035889,
-0.07205197215080261,
0.3260037899017334,
-0.2398376613855362,
-0.23587213456630707,
-0.19871610403060913,
-0.3337763845920563,
0.1443869024515152,
-0.17390847206115723,
0.28544172644615173,
0.07270613312721252,
-0.10582058131694794,
-0.18047137558460236,
-0.14427104592323303,
0.2879539728164673,
-0.31750354170799255,
-0.04728420823812485,
0.02810993418097496,
0.19462892413139343,
-0.048672549426555634,
0.18913860619068146,
-0.22580905258655548,
-0.16269533336162567,
-0.3231976330280304,
-0.008601188659667969,
-0.14874078333377838,
-0.040388721972703934,
-0.03593664616346359,
0.3147677779197693,
-0.1958138346672058,
-0.27175581455230713,
0.1249789148569107,
-0.015452833846211433,
-0.29087695479393005,
-0.2386450469493866,
-0.27089717984199524,
0.06675606220960617,
-0.35134661197662354,
0.007051914930343628,
-0.0032189227640628815,
-0.04083110764622688,
0.4304593801498413,
0.14674000442028046,
0.4306105375289917,
0.16215500235557556,
0.2497422695159912,
0.14205491542816162,
-0.13930463790893555,
0.0920063853263855,
0.41965070366859436,
0.13453719019889832,
-0.22706326842308044,
0.03262785077095032,
-0.050733618438243866,
0.2912418842315674,
0.06416282802820206,
-0.09210004657506943,
0.11546969413757324,
-0.19161845743656158,
-0.10437512397766113,
-0.436969518661499,
0.18507026135921478,
0.29092004895210266,
-0.13907238841056824,
-0.09829245507717133,
-0.5546114444732666,
0.5026652812957764,
-0.05736571177840233,
-0.1340867429971695,
-0.10586102306842804,
-0.16971822082996368,
-0.3697127401828766,
0.34072691202163696,
0.03015216812491417,
0.611598789691925,
0.18311145901679993,
0.07653772085905075,
0.44700175523757935,
-0.2707521319389343,
0.1296689659357071,
-0.7494617700576782,
-0.060162246227264404,
-0.25707146525382996,
0.21567471325397491,
-0.1564161777496338,
0.08757667243480682,
-0.11791548877954483,
0.3387051820755005,
-0.16104844212532043,
0.2530444860458374,
0.23001383244991302,
-0.23071947693824768,
-0.01645585149526596,
0.125882089138031,
0.14632870256900787,
-0.4770153760910034,
-0.33299121260643005,
0.20376402139663696,
-0.02812473475933075,
-0.051774296909570694,
0.12806999683380127,
-0.060156650841236115,
-0.11790451407432556,
-0.31576764583587646,
-0.24662160873413086,
0.02197480946779251,
-0.018083764240145683,
-0.2330808788537979,
0.0067216455936431885,
-0.2160557359457016,
0.12981924414634705,
0.15258409082889557,
-0.2598618268966675,
0.34112176299095154,
-0.48057782649993896,
0.15432141721248627,
0.08768055588006973,
0.126407653093338,
-0.09375967085361481,
0.011987331323325634,
-0.09263543784618378,
0.03098493069410324,
-0.010269388556480408,
0.3972671329975128,
-0.05597969889640808,
-0.22092579305171967,
0.10964110493659973,
-0.10847635567188263,
0.08884752541780472,
-0.11131120473146439,
-0.451716810464859,
0.2794416546821594,
0.08208349347114563,
-0.1447938084602356,
0.17897266149520874,
0.39351242780685425,
-0.4975091218948364,
0.2964438498020172,
-0.06631401181221008,
-0.21118995547294617,
-0.022386010736227036,
0.03835609555244446,
0.11710503697395325,
-0.1720433384180069,
0.4663712978363037,
-0.012349829077720642,
0.11186890304088593,
-0.40945276618003845,
0.2964840829372406,
0.25642478466033936,
-0.031209412962198257,
-0.11142090708017349,
0.429688960313797,
-0.1672208458185196,
-0.09860362857580185,
0.0839875265955925,
0.043967291712760925,
-0.057122014462947845,
-0.09338647872209549,
-0.5307201147079468,
-0.4021133780479431,
0.09154585748910904,
0.22936047613620758,
0.3262864649295807,
-0.2629687786102295,
-0.02439982444047928,
-0.27128034830093384,
0.07423534989356995,
-0.4020580053329468,
-0.02534276247024536,
0.18347127735614777,
-0.1052996963262558,
0.20613771677017212,
0.502234935760498,
0.058814357966184616,
0.11267504096031189,
0.2139059603214264,
-0.05933329463005066,
-0.32351967692375183,
-0.23816001415252686,
-0.12083536386489868,
0.13649196922779083,
0.05211103335022926,
0.07500748336315155,
0.03217194229364395,
0.06139732897281647,
-0.2957633435726166,
-0.25289469957351685,
0.002181394025683403,
-0.118412546813488,
0.02802317589521408,
0.1504422128200531,
-0.07981288433074951,
-0.14581310749053955,
-0.17369164526462555,
0.0743580311536789,
0.0843823105096817,
0.07484665513038635,
0.27037495374679565,
0.13072994351387024,
-0.14918950200080872,
-0.11018728464841843,
0.3103754222393036,
0.35007575154304504,
0.16009825468063354,
-0.08669573813676834,
0.22119098901748657,
-0.0560307577252388,
0.1250949501991272,
0.1910203993320465,
0.3222619891166687,
0.4756336212158203,
-0.25230661034584045,
0.09990646690130234,
0.3864906132221222,
0.311690092086792,
-0.14334163069725037,
0.1414840966463089,
0.06062117591500282,
-0.17224076390266418,
0.18187899887561798,
0.1739681512117386,
-0.12425947189331055,
-0.10343004763126373,
-0.36249840259552,
-0.03802994638681412,
0.14870651066303253,
-0.18539616465568542,
-0.1252017319202423,
0.24221128225326538,
-0.1227988749742508,
-0.16726180911064148,
-0.21446417272090912,
0.021160025149583817,
0.21130219101905823,
0.27086305618286133,
-0.29790303111076355,
0.1575954705476761,
0.06375752389431,
-0.050971340388059616,
0.01092672348022461,
-0.4018690586090088,
-0.009968187659978867,
0.2817004323005676,
-0.0491192489862442,
0.1850631833076477,
0.15288735926151276,
0.26747024059295654,
-0.09955572336912155,
-0.08078743517398834,
-0.1803281456232071,
0.08661167323589325,
0.20350459218025208,
-0.3923352062702179,
-0.11499831080436707,
-0.22279593348503113,
-0.054710954427719116,
-0.028710421174764633,
-0.0006921589374542236,
-0.1335812360048294,
-0.21467676758766174,
-0.26210641860961914,
0.11035210639238358,
-0.11228431761264801,
0.20665132999420166,
-0.02897556871175766,
-0.22058424353599548,
-0.18239033222198486,
0.24383674561977386,
0.05327174440026283,
0.03311729431152344,
0.4368039071559906,
0.11476418375968933,
0.26172560453414917,
0.1566610187292099,
-0.3266107141971588,
0.14192666113376617,
-0.07258427143096924,
-0.05909246206283569,
0.0747029110789299,
0.2985957860946655,
-0.14157451689243317,
0.1084066778421402,
0.28941071033477783,
0.2608926594257355,
-0.1358896642923355,
0.08382382988929749,
0.17167498171329498,
-0.030938096344470978,
-0.17295126616954803,
0.09442485868930817,
0.18964996933937073,
-0.051036205142736435,
0.0038928817957639694,
-0.06377770751714706,
-0.3798278868198395,
-0.22906816005706787,
0.21554537117481232,
0.26138052344322205,
0.140304833650589,
0.222584068775177,
0.163360595703125,
-0.2535490393638611,
0.40662771463394165,
0.0116543248295784,
0.22192654013633728,
-0.13080407679080963,
-0.052389368414878845,
-0.4105675518512726,
-0.023827947676181793,
-0.0015749596059322357,
-0.20075643062591553,
-0.3632600009441376,
0.03392339497804642,
0.5755020976066589,
0.43401414155960083,
-0.15190719068050385,
-0.01747581735253334,
-0.030791345983743668,
0.2664519250392914,
-0.14703059196472168,
-0.03221389278769493,
0.20227175951004028,
0.5466466546058655,
0.11089587211608887,
-0.36828017234802246,
-0.33971020579338074,
0.16163085401058197,
0.06108768284320831,
0.18651698529720306,
0.17794907093048096,
-0.10607072710990906,
-0.3083716034889221,
0.34972313046455383,
-0.14797894656658173,
0.4285055100917816,
-0.34512847661972046,
0.05633065849542618,
-0.15844663977622986,
0.11953604966402054,
-0.16927221417427063,
-0.15639173984527588,
0.02755018323659897,
0.5028760433197021,
-0.11127159744501114,
0.10651154816150665,
-0.1819574534893036,
-0.18964968621730804,
0.08312125504016876,
-0.216519296169281,
-0.4016496241092682,
0.20576994121074677,
-0.29837167263031006,
0.051888223737478256,
-0.08007095754146576,
-0.10550392419099808,
-0.08492149412631989,
0.12458175420761108,
0.05093026161193848,
0.06496933102607727,
0.6319301128387451,
0.00926962774246931,
-0.046135127544403076,
0.15776857733726501,
0.4638568162918091,
-0.17955952882766724,
0.14043915271759033,
-0.39251625537872314,
0.3227733075618744,
0.2682933211326599,
0.04474646598100662,
0.019824031740427017,
0.07085922360420227,
-0.1254265308380127,
-0.15513668954372406,
-0.028950542211532593,
0.20285797119140625,
0.08566420525312424,
-0.041791971772909164,
-0.2312367707490921,
-0.44469255208969116
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | I think faiss automatically sets the number of threads to use to build the index.
Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ? | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 47 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
I think faiss automatically sets the number of threads to use to build the index.
Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ? | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | Hi,
I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps.
I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare the time taken to finish the add_faiss_index process on use_own_knowleldge_dataset.py vs the training loop thing. The training loop thing takes 40 mins more. It might be natural right?
at the moment it uses around 40 cores of a 96 core machine (I am fine-tuning the entire process). | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 108 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
Hi,
I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps.
I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare the time taken to finish the add_faiss_index process on use_own_knowleldge_dataset.py vs the training loop thing. The training loop thing takes 40 mins more. It might be natural right?
at the moment it uses around 40 cores of a 96 core machine (I am fine-tuning the entire process). | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | Can you try to set the number of threads manually ?
If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time.
You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 49 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
Can you try to set the number of threads manually ?
If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time.
You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hrs and 30 mins. If there is any way to faster the process, an end-to-end rag will be perfect. So I will also try out with different thread numbers too.

| As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 91 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hrs and 30 mins. If there is any way to faster the process, an end-to-end rag will be perfect. So I will also try out with different thread numbers too.

| [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | @lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me.
https://github.com/matsui528/faiss_tips | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 45 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me.
https://github.com/matsui528/faiss_tips | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | @lhoestq
Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time.
Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends entirely on the number of CPU processes. Then I set the number of threads as you have mentioned and got actually the same time for RAG training and independat running. So you are correct! :)
Then I added this [issue in Faiss repostiary](https://github.com/facebookresearch/faiss/issues/1767). I got an answer saying our current **IndexHNSWFlat** can get slow for 30 million vectors and it would be better to use alternatives. What do you think? | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 121 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq
Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time.
Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends entirely on the number of CPU processes. Then I set the number of threads as you have mentioned and got actually the same time for RAG training and independat running. So you are correct! :)
Then I added this [issue in Faiss repostiary](https://github.com/facebookresearch/faiss/issues/1767). I got an answer saying our current **IndexHNSWFlat** can get slow for 30 million vectors and it would be better to use alternatives. What do you think? | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | It's a matter of tradeoffs.
HSNW is fast at query time but takes some time to build.
A flat index is flat to build but is "slow" at query time.
An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW).
Note that for an IVF index you would need to have an `nprobe` parameter (number of cells to visit for one query, there are `nlist` in total) that is not too small in order to have good retrieval accuracy, but not too big otherwise the queries will take too much time. From the faiss documentation:
> The nprobe parameter is always a way of adjusting the tradeoff between speed and accuracy of the result. Setting nprobe = nlist gives the same result as the brute-force search (but slower).
From my experience with indexes on DPR embeddings, setting nprobe around 1/4 of nlist gives really good retrieval accuracy and there's no need to have a value higher than that (or you would need to brute-force in order to see a difference). | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 181 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
It's a matter of tradeoffs.
HSNW is fast at query time but takes some time to build.
A flat index is flat to build but is "slow" at query time.
An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW).
Note that for an IVF index you would need to have an `nprobe` parameter (number of cells to visit for one query, there are `nlist` in total) that is not too small in order to have good retrieval accuracy, but not too big otherwise the queries will take too much time. From the faiss documentation:
> The nprobe parameter is always a way of adjusting the tradeoff between speed and accuracy of the result. Setting nprobe = nlist gives the same result as the brute-force search (but slower).
From my experience with indexes on DPR embeddings, setting nprobe around 1/4 of nlist gives really good retrieval accuracy and there's no need to have a value higher than that (or you would need to brute-force in order to see a difference). | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | @lhoestq
Thanks a lot for sharing all this prior knowledge.
Just asking what would be a good nlist of parameters for 30 million embeddings? | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 24 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq
Thanks a lot for sharing all this prior knowledge.
Just asking what would be a good nlist of parameters for 30 million embeddings? | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`.
For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset) | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 25 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`.
For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset) | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2046 | add_faisis_index gets very slow when doing it interatively | @lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon. | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 56 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon. | [
-0.49882417917251587,
-0.2682778835296631,
-0.02450060285627842,
0.12822844088077545,
0.05943957716226578,
0.20778414607048035,
0.12146314978599548,
0.4241296947002411,
0.29174211621284485,
0.2924969792366028,
-0.11882481724023819,
0.18831512331962585,
0.13721276819705963,
0.08582145720720291,
-0.13625630736351013,
0.175042524933815,
0.23703277111053467,
0.08533459156751633,
0.26079797744750977,
-0.13441427052021027,
-0.3274795114994049,
-0.30906471610069275,
-0.15891191363334656,
-0.2578624486923218,
-0.40069183707237244,
-0.09581897407770157,
-0.24362191557884216,
-0.08205077797174454,
0.19824719429016113,
-0.4729168117046356,
-0.1375325322151184,
0.13984279334545135,
0.34025874733924866,
0.258292555809021,
-0.00012204969971207902,
0.05567646026611328,
0.22800768911838531,
0.06546282768249512,
-0.22299794852733612,
0.6411958336830139,
0.3400726020336151,
-0.06948830187320709,
-0.17511050403118134,
-0.31077098846435547,
-0.14555540680885315,
-0.11104172468185425,
0.08107934147119522,
-0.046929579228162766,
-0.16636501252651215,
0.19430118799209595,
0.026623807847499847,
-0.05828700214624405,
0.05225517973303795,
-0.015400344505906105,
0.40251103043556213,
-0.07559135556221008,
-0.06917732208967209,
0.31747177243232727,
0.1635126769542694,
-0.07223788648843765,
0.09974300861358643,
0.44810786843299866,
0.12064127624034882,
-0.22677718102931976,
0.108904168009758,
0.20516154170036316,
0.7838165760040283,
0.022439735010266304,
0.06526822596788406,
0.15266969799995422,
0.015340276062488556,
-0.09055326133966446,
-0.4430082440376282,
-0.10290367901325226,
0.42571404576301575,
-0.6180598139762878,
-0.06740113347768784,
-0.08374226838350296,
-0.10147486627101898,
0.05386006087064743,
0.17458538711071014,
-0.030229896306991577,
0.036317966878414154,
0.04745102673768997,
0.17489905655384064,
0.16535714268684387,
0.38747134804725647,
-0.059902697801589966,
0.5584337115287781,
0.04244709759950638,
-0.11685418337583542,
0.044882748275995255,
-0.09207688271999359,
0.01219649612903595,
-0.6050301194190979,
0.08808474242687225,
-0.030915655195713043,
-0.09933147579431534,
-0.09268665313720703,
0.017801854759454727,
-0.3694862723350525,
0.006165595725178719,
0.23656046390533447,
0.0033363141119480133,
-0.18306490778923035,
-0.09025827050209045,
-0.5061042904853821,
0.055881403386592865,
0.08390162140130997,
0.10628699511289597,
-0.37808728218078613,
0.09923437237739563,
-0.0033380179665982723,
-0.004310376942157745,
-0.32598063349723816,
-0.298135370016098,
-0.22889025509357452,
0.22280728816986084,
-0.1811423897743225,
0.07718819379806519,
-0.40396860241889954,
-0.2522762417793274,
0.20507220923900604,
0.41622108221054077,
-0.11774376779794693,
-0.07613696157932281,
0.010839708149433136,
-0.03461507707834244,
-0.23442769050598145,
0.17616881430149078,
-0.22201693058013916,
0.23066014051437378,
-0.03196394443511963,
0.5045984387397766,
-0.02910601906478405,
-0.22139397263526917,
-0.08906983584165573,
-0.021730979904532433,
0.08396343141794205,
-0.007842078804969788,
-0.04416368529200554,
-0.2998933792114258,
0.24666786193847656,
0.07492335140705109,
-0.2632145583629608,
-0.06768494099378586,
-0.09395220875740051,
0.12111061811447144,
-0.2278234362602234,
0.2215082347393036,
-0.21739476919174194,
-0.3651025891304016,
0.027157947421073914,
0.019331134855747223,
0.30867719650268555,
-0.063092440366745,
0.4208223819732666,
0.11439698934555054,
0.17301851511001587,
0.16133537888526917,
0.15917640924453735,
-0.13144353032112122,
-0.2680215835571289,
0.08318684995174408,
0.22678381204605103,
0.36273878812789917,
0.09372137486934662,
0.03477165102958679,
0.29801249504089355,
0.3901304304599762,
0.21240532398223877,
0.3999931514263153,
-0.11594879627227783,
0.6762598156929016,
-0.32000407576560974,
0.08429192006587982,
0.24512025713920593,
-0.2553783655166626,
-0.29242652654647827,
0.18690499663352966,
-0.16636435687541962,
-0.07732637971639633,
0.32966315746307373,
0.5182704925537109,
0.31202948093414307,
0.08701563626527786,
0.34109264612197876,
0.3062555193901062,
0.009026948362588882,
-0.031247306615114212,
-0.4050684869289398,
-0.0582716166973114,
0.26392048597335815,
0.3804081380367279,
-0.33545225858688354,
0.10174055397510529,
-0.04018155485391617,
-0.3298804461956024,
0.6009737849235535,
-0.4761058986186981,
-0.12176197022199631,
0.06805859506130219,
0.36157360672950745,
0.33938658237457275,
0.232869952917099,
0.27611029148101807,
0.14954154193401337,
0.16262584924697876,
0.09601449966430664,
0.09878898411989212,
0.17015475034713745,
-0.4183502197265625,
0.21562981605529785,
-0.025749972090125084,
-0.21819238364696503,
0.1078815758228302,
-0.06097795069217682,
0.15002483129501343,
-0.04567676782608032,
-0.1998734325170517,
-0.1568869799375534,
0.5427840948104858,
-0.6157974004745483,
0.027946151793003082,
-0.24889634549617767,
-0.1560828536748886,
0.00701521523296833,
-0.21342547237873077,
-0.03424359858036041,
0.14295843243598938,
0.05249659717082977,
-0.38686662912368774,
-0.05383339524269104,
0.10286134481430054,
0.1266251504421234,
-0.18767671287059784,
0.5111077427864075,
-0.11369599401950836,
-0.03703666478395462,
0.29622215032577515,
0.04495302960276604,
-0.15126465260982513,
0.10901612788438797,
-0.19376137852668762,
-0.0018788203597068787,
0.48520416021347046,
0.34878432750701904,
0.2458343207836151,
-0.021493885666131973,
-0.23320817947387695,
0.047029152512550354,
-0.040650274604558945,
-0.0793868899345398,
0.2275257706642151,
0.07994364202022552,
0.13025341928005219,
0.4091724753379822,
-0.03333491086959839,
-0.33324411511421204,
0.23246371746063232,
0.18577702343463898,
-0.20313017070293427,
-0.4314086139202118,
0.2710421681404114,
0.3516996502876282,
-0.03689766302704811,
-0.34970828890800476,
-0.5220084190368652,
0.23602651059627533,
0.31859883666038513,
0.18839304149150848,
-0.07165408879518509,
-0.027650825679302216,
-0.2472812384366989,
0.16910922527313232,
0.05655305087566376,
-0.04837220162153244,
0.10004803538322449,
0.17664211988449097,
-0.21454468369483948,
-0.20678946375846863,
-0.25529617071151733,
-0.1363966166973114,
0.4286459982395172,
-0.04433871805667877,
0.3094407021999359,
0.1777624487876892,
0.2771868109703064,
-0.12472422420978546,
-0.1249765083193779,
0.288752019405365,
0.00884053111076355,
0.04161093756556511,
-0.10893577337265015,
-0.03623882681131363,
0.19310936331748962,
-0.04694976657629013,
0.3649193048477173,
0.19579455256462097,
-0.3250909447669983,
0.0198441743850708,
-0.09847083687782288,
-0.12149489670991898,
-0.0789787769317627,
0.12100555002689362,
-0.15055012702941895,
0.1173999235033989,
0.04394695162773132,
-0.05258043482899666,
-0.18513664603233337,
-0.08627159893512726,
-0.15758801996707916,
-0.07947710901498795,
-0.2974517345428467,
-0.16623476147651672,
-0.24606861174106598,
-0.1250378042459488,
-0.11964437365531921,
0.004329914692789316,
0.0005501192063093185,
-0.010687030851840973,
-0.040487147867679596,
-0.28267398476600647,
-0.1588365137577057,
0.06079450622200966,
-0.29363346099853516,
-0.21670201420783997,
-0.1739189177751541,
0.22814132273197174,
-0.024399589747190475,
0.09305925667285919,
-0.11566907912492752,
0.06675171852111816,
0.12224090099334717,
-0.0957006961107254,
-0.15433019399642944,
-0.05346143990755081,
-0.23314301669597626,
0.29170987010002136,
0.1491726040840149,
0.04683160036802292,
-0.07943713665008545,
-0.41229623556137085,
-0.014397256076335907,
0.49690359830856323,
-0.5218715667724609,
-0.040799178183078766,
-0.3583906888961792,
0.28595972061157227,
-0.3150937557220459,
0.4582992494106293,
0.05670671910047531,
-0.24624872207641602,
-0.13801386952400208,
0.3644825518131256,
0.1745104342699051,
0.38752999901771545,
-0.06171322613954544,
0.05497770011425018,
-0.08791753649711609,
0.2675449252128601,
-0.11497530341148376,
0.5162414312362671,
0.32723137736320496,
-0.21369843184947968,
-0.04781939834356308,
-0.26239630579948425,
0.11595185101032257,
0.052769970148801804,
-0.13988171517848969,
0.2965245246887207,
0.08347787708044052,
-0.31499505043029785,
0.16652731597423553,
-0.2887445092201233,
-0.41179436445236206,
0.03204268962144852,
-0.052759554237127304,
0.1982458233833313,
-0.24431075155735016,
0.3169924318790436,
0.048950713127851486,
0.49109965562820435,
-0.1780502051115036,
0.29109716415405273,
-0.23836030066013336,
-0.17670413851737976,
0.19751492142677307,
0.27275288105010986,
0.24490106105804443,
-0.16755734384059906,
0.026496876031160355,
-0.5409094095230103,
-0.42167797684669495,
0.2834407091140747,
0.16747944056987762,
0.2352835237979889,
0.2791198492050171,
-0.10083473473787308,
0.5258053541183472,
-0.15621154010295868,
0.7999860048294067,
0.020683733746409416,
-0.33633774518966675,
0.3844909965991974,
-0.1618196815252304,
0.05287642031908035,
-0.21779291331768036,
-0.18270893394947052,
-0.06598921865224838,
0.23377306759357452,
0.44074681401252747,
-0.09317776560783386,
-0.24796484410762787,
0.6446050405502319,
0.06708803027868271,
-0.14724810421466827,
-0.34415191411972046,
-0.18618158996105194,
-0.3543055057525635,
-0.04121890664100647,
0.767855167388916,
-0.12169070541858673,
0.15569017827510834,
0.1822194755077362,
-0.05123481526970863,
-0.3818882703781128,
0.1598658263683319,
0.23867502808570862,
-0.005120176821947098,
0.05058322474360466,
0.45578455924987793,
0.4348105788230896,
0.07141755521297455,
0.0007312186062335968,
0.11927462369203568,
-0.03691142797470093,
-0.30439698696136475,
0.07315215468406677,
-0.18884581327438354,
-0.2556854784488678,
0.37994199991226196,
0.70067298412323,
0.18687689304351807,
0.2484075129032135,
-0.21023130416870117,
0.3775888681411743,
-0.19144567847251892,
0.024531418457627296,
0.4383130669593811,
-0.002062248531728983,
-0.17877258360385895,
-0.5383259654045105,
0.31127870082855225,
0.2034228891134262,
0.07330270111560822,
0.06086083874106407,
-0.07573041319847107,
-0.01638033613562584,
0.3021705746650696,
0.12499970197677612,
0.9838231801986694,
-0.026919357478618622,
0.19298337399959564,
0.5063080787658691,
0.004840511828660965,
-0.24390465021133423,
-0.648734450340271,
0.36927706003189087,
-0.3329208493232727,
-0.22415274381637573,
0.1931164264678955,
-0.1011415347456932,
-0.08476876467466354,
0.07353448867797852,
-0.03934265673160553,
0.09914513677358627,
-0.04727583006024361,
-0.0862560123205185,
-0.2586013972759247,
0.38955381512641907,
0.3151940703392029,
-0.4278401732444763,
0.024883149191737175,
0.0013510901480913162,
0.27145668864250183,
-0.09871602058410645,
0.12781599164009094,
-0.16340039670467377,
-0.11088623106479645,
0.018441203981637955,
0.12517410516738892,
-0.07911361753940582,
-0.12837828695774078,
0.013058590702712536,
-0.048772867769002914,
-0.08731188625097275,
-0.2329258918762207,
-0.32441791892051697,
0.4604188799858093,
-0.029946219176054,
0.0995340570807457,
0.08158362656831741,
-0.09911049157381058,
0.07216358184814453,
-0.08676909655332565,
-0.49708321690559387,
0.22654129564762115,
0.08081263303756714,
-0.1736772358417511,
0.1493709534406662,
0.07872665673494339,
-0.3227711319923401,
-0.1460990458726883,
0.17443008720874786,
0.020576592534780502,
0.007548197638243437,
-0.03673727810382843,
0.31799885630607605,
-0.2626372277736664,
-0.23356543481349945,
0.02005968987941742,
0.09207752346992493,
-0.43175235390663147,
0.5605167746543884,
-0.30238211154937744,
-0.38006916642189026,
-0.054655689746141434,
0.016695402562618256,
0.30580762028694153,
0.05603797733783722,
0.2623711824417114,
-0.08911943435668945,
-0.30488163232803345,
-0.15467697381973267,
-0.3024287223815918,
0.061283595860004425,
0.038625359535217285,
0.09388811141252518,
0.3024209141731262,
-0.006131336092948914,
0.02539944089949131,
-0.23266437649726868,
-0.3227176070213318,
-0.14177024364471436,
-0.3823907971382141,
0.11459966003894806,
-0.3576403856277466,
-0.18506793677806854,
0.25722819566726685,
0.383684366941452,
0.03601768612861633,
0.23422394692897797,
-0.4448956549167633,
0.2590470612049103,
-0.2176697850227356,
-0.06533903628587723,
-0.031239163130521774,
0.26001960039138794,
-0.03270917385816574,
-0.257427453994751,
0.1754397451877594,
0.21626988053321838,
0.11998911201953888,
0.14120368659496307,
0.037365734577178955,
-0.11179868876934052,
0.10294874012470245,
0.18342500925064087,
-0.11074695736169815,
0.16845065355300903,
0.08115573972463608,
-0.14830633997917175,
-0.3009883165359497,
-0.2652982175350189,
0.13436618447303772,
-0.11070321500301361,
-0.0258549302816391,
-0.13035963475704193,
-0.12170927226543427,
-0.11248786002397537,
0.3323770761489868,
0.27382493019104004,
0.20400525629520416,
0.28330910205841064,
-0.07349954545497894,
0.07670170068740845,
-0.242833212018013,
-0.2653924226760864,
-0.051037438213825226,
0.19032461941242218,
0.06164368614554405,
0.08636747300624847,
-0.09186526387929916,
-0.17318788170814514,
-0.3799477517604828,
-0.03811796009540558,
0.031769346445798874,
0.44989386200904846,
0.042493559420108795,
-0.2883666753768921,
0.18529662489891052,
0.037937015295028687,
-0.27972033619880676,
-0.19527645409107208,
0.3624267578125,
-0.4507015347480774,
0.20022854208946228,
0.40171748399734497,
0.26457521319389343,
0.16572360694408417,
-0.48327451944351196,
0.09376370906829834,
-0.23451726138591766,
0.0963054895401001,
-0.4337072968482971,
-0.09045088291168213,
0.35147425532341003,
-0.19489948451519012,
0.20412565767765045,
0.3052142858505249,
0.23112016916275024,
0.6089172959327698,
0.031423721462488174,
0.2752896845340729,
0.18787723779678345,
0.21332669258117676,
-0.3217031955718994,
-0.17983606457710266,
0.29066890478134155,
0.23226884007453918,
-0.031772926449775696,
-0.2078448235988617,
0.009095005691051483,
0.23473423719406128,
0.2440357208251953,
-0.5169652700424194,
-0.26112794876098633,
0.163021057844162,
-0.12201973050832748,
-0.12818093597888947,
0.41174960136413574,
0.05677104741334915,
-0.278082013130188,
0.22702699899673462,
0.07766402512788773,
0.19237302243709564,
-0.12724758684635162,
0.20087407529354095,
0.293453574180603,
0.2212008535861969,
-0.02311374619603157,
0.09102429449558258,
0.4337707459926605,
-0.33673983812332153,
-0.20791493356227875,
-0.011150993406772614,
-0.0027164816856384277,
0.023589255288243294,
-0.15122336149215698,
0.2809455096721649,
0.24482502043247223,
-0.05550314113497734,
0.26872125267982483,
-0.050441350787878036,
-0.00887102261185646,
0.04380481690168381,
-0.03440093249082565,
-0.10841330885887146,
-0.10039345920085907,
0.10061754286289215,
-0.09087648242712021,
-0.12853381037712097,
-0.12072347104549408,
-0.2426328808069229,
0.2026134431362152,
-0.1804247349500656,
0.023068375885486603,
0.3459431827068329,
-0.09753970801830292,
-0.3948056399822235,
0.0952415019273758,
-0.2833033800125122,
0.06918014585971832,
0.10627029836177826,
-0.35660120844841003,
-0.08913610130548477,
0.2603070139884949,
-0.001634102314710617,
-0.42574870586395264,
0.5468899607658386,
0.17240482568740845,
0.12868225574493408,
-0.32994094491004944,
-0.0014339908957481384,
-0.32078754901885986,
-0.03450969606637955,
-0.5890918374061584,
0.11263526976108551,
0.11768381297588348,
0.44035401940345764,
0.07392634451389313,
-0.07035457342863083,
0.4031084179878235,
-0.40797117352485657,
0.099239282310009,
0.37354886531829834,
-0.17344170808792114,
-0.030622441321611404,
-0.43978530168533325,
-0.07384742796421051,
0.04228360950946808,
-0.3743225336074829,
0.2847957909107208,
-0.12820714712142944,
-0.014769669622182846,
0.19237181544303894,
-0.02026936411857605,
0.1226511001586914,
0.06268224865198135,
0.5298787355422974,
-0.0979444831609726,
0.00005424022674560547,
-0.09645380824804306,
0.008634855970740318,
-0.23219034075737,
0.1219591423869133,
-0.20707841217517853,
0.00857594981789589,
-0.021888304501771927,
0.1733749657869339,
-0.20737400650978088,
-0.3919603228569031,
-0.18153424561023712,
0.4176569879055023,
0.3126296401023865,
-0.41869622468948364,
0.198027104139328,
0.1526593267917633,
-0.15582868456840515,
0.47959384322166443,
0.15036283433437347,
0.22828403115272522,
0.14673295617103577,
-0.034050945192575455,
-0.3561270236968994,
-0.10541994124650955,
0.6236693859100342,
-0.18829479813575745,
-0.029361959546804428,
-0.34943869709968567,
0.2549009919166565,
0.44379252195358276,
0.5510433912277222,
-0.26457679271698,
0.08623812347650528,
0.12194321304559708,
0.053573936223983765,
-0.21039418876171112,
0.5777598023414612,
0.18686184287071228,
0.014770660549402237,
-0.07378426939249039,
-0.2648075819015503,
-0.06308896839618683,
-0.0029667168855667114,
-0.3532102108001709,
-0.2814309298992157
] |
https://github.com/huggingface/datasets/issues/2040 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ?
They should both have a path to an arrow file
Also note that from #2025 concatenating datasets will no longer have such restrictions. | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 41 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ?
They should both have a path to an arrow file
Also note that from #2025 concatenating datasets will no longer have such restrictions. | [
-0.011298112571239471,
-0.02589789777994156,
-0.044959474354982376,
0.5074425935745239,
0.17150339484214783,
0.182716965675354,
0.05795539170503616,
0.12864771485328674,
-0.06289103627204895,
0.13362272083759308,
0.07037357985973358,
0.2955007255077362,
-0.08438076823949814,
-0.10250089317560196,
-0.32575660943984985,
-0.12389950454235077,
0.21246829628944397,
-0.0417841374874115,
-0.18741679191589355,
-0.11637762188911438,
-0.4338987469673157,
0.30359286069869995,
-0.09412882477045059,
0.04413211718201637,
-0.3788498640060425,
-0.12164866179227829,
-0.31391409039497375,
0.3639658987522125,
-0.13143843412399292,
-0.14006343483924866,
0.38407546281814575,
-0.04349370673298836,
0.14314326643943787,
0.49933165311813354,
-0.0001239130215253681,
-0.051849473267793655,
-0.025515861809253693,
-0.12648966908454895,
-0.33739015460014343,
-0.3795108199119568,
-0.2954404354095459,
-0.24935400485992432,
0.11748236417770386,
-0.3515409231185913,
0.3774073123931885,
-0.19620196521282196,
-0.10297401249408722,
-0.7265008687973022,
0.28095677495002747,
0.22954998910427094,
0.07619766891002655,
0.1972941756248474,
0.13170665502548218,
-0.04789432883262634,
0.03191040828824043,
0.07358208298683167,
0.15371641516685486,
0.20296110212802887,
-0.0550398975610733,
0.023869873955845833,
0.1942697912454605,
-0.0005483785644173622,
-0.2328488975763321,
-0.11859464645385742,
0.1362634003162384,
0.49793073534965515,
0.055418889969587326,
-0.5291482210159302,
-0.06905660033226013,
0.08632130175828934,
0.480234295129776,
-0.3763856887817383,
-0.37810125946998596,
-0.17594540119171143,
0.007004431448876858,
-0.326871395111084,
0.10102976858615875,
0.3545842170715332,
0.00019470509141683578,
0.11180873215198517,
-0.06174970045685768,
-0.03423760086297989,
-0.29419010877609253,
0.07259482890367508,
-0.08510187268257141,
0.035860273987054825,
-0.0858847126364708,
0.17814019322395325,
0.4493534564971924,
0.04795100912451744,
0.32163938879966736,
-0.4869162440299988,
0.06369620561599731,
0.19227157533168793,
-0.10969546437263489,
0.1452181190252304,
-0.16400238871574402,
-0.5908133387565613,
0.006675060838460922,
-0.010949395596981049,
0.18363924324512482,
-0.13482671976089478,
-0.17584194242954254,
0.30220097303390503,
0.25346919894218445,
0.3053896129131317,
-0.014132097363471985,
0.42883044481277466,
-0.010318085551261902,
-0.13304553925991058,
0.05013759061694145,
-0.025854691863059998,
-0.02935604751110077,
-0.42265835404396057,
0.07968994975090027,
-0.0718146488070488,
0.1062270998954773,
0.01295168325304985,
-0.38771840929985046,
0.18035568296909332,
-0.2840080261230469,
-0.15731172263622284,
0.09716266393661499,
-0.017804443836212158,
0.07770683616399765,
0.35300910472869873,
0.3876342177391052,
0.3053709864616394,
0.08206703513860703,
0.2978779673576355,
-0.14463597536087036,
0.19673191010951996,
0.0749061107635498,
0.08389797061681747,
0.10684527456760406,
0.0016406476497650146,
0.011990368366241455,
0.10677307099103928,
0.07972922921180725,
-0.12206868827342987,
0.027195243164896965,
-0.3416931629180908,
0.2821957767009735,
0.15663687884807587,
0.09816329181194305,
0.3480810225009918,
0.25924375653266907,
-0.274863064289093,
-0.1870557963848114,
0.3995107412338257,
-0.3576478064060211,
-0.18696889281272888,
-0.1376321017742157,
0.049473609775304794,
-0.10457144677639008,
0.14100554585456848,
-0.4229937493801117,
-0.0059976726770401,
0.3018890917301178,
0.3051955997943878,
-0.1290159523487091,
-0.056831225752830505,
-0.129613995552063,
-0.45912957191467285,
0.3412271738052368,
0.0073850154876708984,
-0.45810216665267944,
0.009723655879497528,
0.29037967324256897,
0.10489003360271454,
0.1965613067150116,
0.43085047602653503,
-0.14415882527828217,
0.3636823296546936,
-0.3045048415660858,
0.010236434638500214,
0.40045595169067383,
-0.40942156314849854,
-0.10385686904191971,
0.17169718444347382,
-0.17961272597312927,
-0.04109169542789459,
0.36450809240341187,
0.027034657076001167,
0.006306129042059183,
0.20940600335597992,
0.7220624685287476,
0.24255912005901337,
0.07466568797826767,
-0.16574086248874664,
-0.09523778408765793,
-0.23260244727134705,
0.3555585741996765,
-0.20869438350200653,
-0.13397932052612305,
-0.025947391986846924,
-0.25881674885749817,
-0.5167699456214905,
0.42400792241096497,
-0.20520713925361633,
0.06406591832637787,
0.43642115592956543,
0.35688066482543945,
-0.12336663901805878,
-0.10384923219680786,
0.15376871824264526,
-0.19341766834259033,
0.16865959763526917,
-0.01483096368610859,
-0.22270894050598145,
-0.26475852727890015,
-0.022049296647310257,
-0.2106943130493164,
0.1269540637731552,
-0.07098016142845154,
0.08144515752792358,
-0.01537378877401352,
0.03250904381275177,
0.005666542798280716,
-0.10544763505458832,
-0.34818577766418457,
0.5563704967498779,
-0.16314572095870972,
0.02190171182155609,
-0.25417572259902954,
0.4569392502307892,
-0.15780514478683472,
-0.02639070153236389,
-0.045371152460575104,
0.03693366423249245,
0.2729870080947876,
0.16777929663658142,
0.02278130315244198,
0.4717346727848053,
-0.043007783591747284,
0.09504637122154236,
0.08933839201927185,
0.080844946205616,
0.17162804305553436,
0.005739826709032059,
0.16276146471500397,
-0.05793631449341774,
0.15583442151546478,
-0.17280364036560059,
-0.09091825038194656,
0.48709237575531006,
-0.3344886302947998,
0.4485850930213928,
0.11464960873126984,
0.05127539485692978,
0.1062387228012085,
0.04397088661789894,
-0.07847505807876587,
-0.236931711435318,
0.01692236214876175,
0.08496621251106262,
0.21922437846660614,
0.21704213321208954,
-0.35255226492881775,
0.07008399814367294,
0.1829122006893158,
0.07549872994422913,
-0.05896711349487305,
-0.010834090411663055,
-0.10806120187044144,
-0.015997277572751045,
-0.10950210690498352,
0.3902997672557831,
0.5840011835098267,
0.1719544678926468,
0.1649901419878006,
-0.1167302206158638,
-0.13713136315345764,
-0.17060509324073792,
0.34178340435028076,
0.13983680307865143,
0.2364145964384079,
0.17288169264793396,
-0.08572535961866379,
-0.07562033832073212,
-0.07172991335391998,
-0.017531689256429672,
-0.191895991563797,
0.03288520127534866,
-0.5536921620368958,
-0.0458906926214695,
-0.21764889359474182,
-0.10989890992641449,
-0.4481915831565857,
-0.34603822231292725,
-0.09749335050582886,
-0.5419760346412659,
-0.25921666622161865,
0.4547417163848877,
-0.11694590747356415,
-0.05278383195400238,
-0.2844996452331543,
0.14566227793693542,
0.005228059366345406,
0.0678621456027031,
0.12347382307052612,
0.010436895303428173,
-0.07831676304340363,
-0.03185229003429413,
-0.1368812769651413,
0.01800229400396347,
-0.013650605455040932,
-0.07263283431529999,
0.25631362199783325,
-0.25956112146377563,
0.0669645443558693,
-0.1467585265636444,
-0.15336143970489502,
0.08496000617742538,
0.032246652990579605,
0.315906822681427,
-0.22814242541790009,
-0.6266652345657349,
0.058036692440509796,
0.5674744248390198,
-0.13896049559116364,
0.0900544747710228,
0.2620220184326172,
-0.18418563902378082,
0.0017388798296451569,
-0.25068414211273193,
-0.4523787200450897,
-0.2502115070819855,
0.02986341342329979,
-0.17470479011535645,
0.24913226068019867,
0.17127574980258942,
0.26967087388038635,
0.10908128321170807,
0.3577370345592499,
0.19410066306591034,
-0.11353831738233566,
-0.2557303309440613,
0.44227296113967896,
-0.05362951010465622,
-0.1642777919769287,
0.0017757974565029144,
0.008876074105501175,
0.07541067898273468,
0.15045927464962006,
-0.36619138717651367,
0.018026191741228104,
-0.2361496239900589,
0.1363365799188614,
-0.11474841833114624,
0.3011994957923889,
0.13400205969810486,
0.45958390831947327,
-0.04627865180373192,
-0.2586546540260315,
-0.27372241020202637,
0.26837843656539917,
0.1589275598526001,
0.304402619600296,
-0.01230122521519661,
0.20902258157730103,
0.07317034900188446,
0.34391576051712036,
0.3640872836112976,
0.12173797190189362,
0.25498276948928833,
0.183644101023674,
0.5346708297729492,
0.014440968632698059,
-0.4406896233558655,
-0.40770280361175537,
-0.0011523962020874023,
-0.20658709108829498,
-0.1394888311624527,
0.04839363694190979,
0.08723922818899155,
-0.09358677268028259,
0.21181181073188782,
-0.2357507348060608,
-0.30367740988731384,
0.09380277991294861,
-0.3211864233016968,
0.1249999850988388,
-0.21632526814937592,
-0.06795071065425873,
-0.2828488349914551,
0.3194233775138855,
-0.12861189246177673,
0.06002403423190117,
0.21889308094978333,
-0.13556800782680511,
-0.35723355412483215,
-0.33900538086891174,
-0.3777068853378296,
0.30494439601898193,
0.0543898269534111,
0.3831126391887665,
0.0539904423058033,
-0.29078221321105957,
-0.20166917145252228,
0.044948920607566833,
0.7679042220115662,
0.2945117652416229,
-0.37832480669021606,
0.4131021797657013,
0.0676538348197937,
-0.5299773812294006,
-0.03808099403977394,
0.08377531170845032,
0.24248258769512177,
-0.2675107717514038,
0.4022996127605438,
-0.24028810858726501,
-0.12553928792476654,
-0.11067961156368256,
0.4439462125301361,
-0.14297933876514435,
0.08497589081525803,
-0.031319402158260345,
-0.13031154870986938,
-0.15268456935882568,
-0.32081612944602966,
0.05422140657901764,
0.38233518600463867,
-0.3698830306529999,
-0.06262598931789398,
-0.000834345817565918,
-0.29157984256744385,
0.32425326108932495,
-0.3542224168777466,
0.6015850305557251,
-0.070303775370121,
0.10906605422496796,
0.2168455272912979,
0.17306020855903625,
0.4914811849594116,
0.4670770764350891,
-0.24435240030288696,
-0.11752864718437195,
0.012657353654503822,
0.09110909700393677,
0.5109778046607971,
0.3323251008987427,
-0.22255997359752655,
-0.030195094645023346,
0.019420869648456573,
-0.09913288056850433,
-0.27408868074417114,
-0.11630500108003616,
0.29551127552986145,
-0.010529127903282642,
-0.4240540862083435,
-0.39912188053131104,
0.2900101840496063,
0.35836610198020935,
-0.1670621633529663,
0.44182002544403076,
0.008378103375434875,
-0.47298330068588257,
0.3470168709754944,
-0.12129951268434525,
1.0756566524505615,
0.040434829890728,
0.2828828990459442,
0.16257095336914062,
-0.29429471492767334,
0.09040138870477676,
0.2924502491950989,
-0.03187424689531326,
-0.19881029427051544,
-0.12528835237026215,
-0.12034013122320175,
-0.34403693675994873,
0.001459602266550064,
0.23216316103935242,
-0.33871927857398987,
0.1795613318681717,
-0.5210159420967102,
-0.11619162559509277,
-0.20297124981880188,
0.04733525216579437,
-0.12718228995800018,
-0.2273617833852768,
-0.3534166216850281,
-0.020986437797546387,
0.21435222029685974,
-0.1160489171743393,
-0.018417097628116608,
-0.1729264110326767,
-0.5257242918014526,
-0.19647085666656494,
-0.1285269409418106,
0.040109097957611084,
-0.3198244273662567,
0.6732953786849976,
-0.2941887080669403,
-0.4334102272987366,
-0.43294304609298706,
0.39812806248664856,
0.40856289863586426,
-0.0319073311984539,
0.026282407343387604,
-0.12878869473934174,
0.04758090153336525,
0.008444934152066708,
-0.07515626400709152,
-0.25836774706840515,
0.19397780299186707,
0.14767467975616455,
-0.07459120452404022,
0.11354964226484299,
-0.0817413404583931,
-0.3694067597389221,
-0.08468010276556015,
0.10089991241693497,
0.03394841402769089,
-0.2673569917678833,
-0.34134534001350403,
0.17357708513736725,
-0.064606674015522,
-0.0645265132188797,
0.023926621302962303,
0.36777275800704956,
-0.0626552402973175,
0.2074284851551056,
-0.21265937387943268,
-0.33768409490585327,
-0.05606895312666893,
0.4843716025352478,
0.3131258189678192,
-0.017801249399781227,
0.504768967628479,
-0.03613342344760895,
-0.1005941703915596,
-0.02980300597846508,
0.36863836646080017,
0.24183060228824615,
0.10308844596147537,
0.34313321113586426,
0.08011794090270996,
0.0010801851749420166,
-0.18080994486808777,
0.3765239715576172,
0.3969094753265381,
0.23149359226226807,
-0.09989815950393677,
-0.2665146589279175,
-0.5434691905975342,
0.40343713760375977,
0.03675535321235657,
0.4078211188316345,
-0.028472989797592163,
-0.4364432990550995,
-0.09233956038951874,
-0.09556406736373901,
-0.19851407408714294,
0.05727826803922653,
-0.10688695311546326,
0.02028515562415123,
0.20471346378326416,
0.019869761541485786,
0.17789898812770844,
-0.013563092797994614,
0.058011509478092194,
-0.19841936230659485,
-0.06346303969621658,
-0.07825139164924622,
0.04765145108103752,
0.18544964492321014,
0.1121998131275177,
-0.07733193039894104,
-0.11239483207464218,
-0.44409042596817017,
0.028665835037827492,
-0.20247113704681396,
-0.17070803046226501,
0.5613840818405151,
0.061937540769577026,
0.116167351603508,
0.00004984438419342041,
0.2100532054901123,
0.016176708042621613,
0.1269424855709076,
0.08198068290948868,
0.22381889820098877,
0.04587775468826294,
0.24382194876670837,
-0.3202718496322632,
-0.2187681943178177,
-0.3172680139541626,
0.05083620548248291,
-0.1387193650007248,
-0.03353850543498993,
0.12695422768592834,
-0.14742116630077362,
-0.22267316281795502,
0.03409578278660774,
0.3946398198604584,
0.42783522605895996,
-0.11750691384077072,
0.15835753083229065,
-0.028310634195804596,
0.08342550694942474,
0.12162797152996063,
-0.21428737044334412,
-0.13801021873950958,
-0.19680719077587128,
-0.20940172672271729,
0.14979787170886993,
0.06268145143985748,
-0.08211785554885864,
-0.33961427211761475,
0.025671064853668213,
0.5485681295394897,
-0.160615935921669,
0.4001901149749756,
0.09323003888130188,
0.15086254477500916,
0.007785499095916748,
-0.008949009701609612,
0.24211519956588745,
0.4247484803199768,
-0.05856535583734512,
-0.21446546912193298,
0.09036582708358765,
0.4816085994243622,
-0.1609705686569214,
0.21622821688652039,
-0.2308550626039505,
-0.054620783776044846,
0.14991986751556396,
-0.1688842475414276,
-0.0110078826546669,
0.06248033046722412,
0.36205944418907166,
-0.3919825553894043,
-0.2237452119588852,
0.0981597751379013,
0.3435713052749634,
-0.12425727397203445,
-0.17062067985534668,
0.00881156325340271,
-0.2805444896221161,
0.03625102341175079,
-0.18015749752521515,
0.134727343916893,
-0.3597922921180725,
0.1951780617237091,
-0.02740900218486786,
0.02882172167301178,
-0.1145172119140625,
0.3473954200744629,
0.4074494540691376,
0.10724395513534546,
-0.2372734248638153,
-0.010777881368994713,
0.19622278213500977,
-0.04700674116611481,
0.14926043152809143,
0.18950210511684418,
0.5935686230659485,
0.5518578886985779,
-0.03853541612625122,
0.12282828986644745,
0.08626462519168854,
-0.2647486925125122,
0.0007325261831283569,
-0.026916898787021637,
-0.20133760571479797,
-0.38948795199394226,
0.4084112048149109,
0.1807921975851059,
0.00934706348925829,
0.06485648453235626,
0.24609772861003876,
0.5886135101318359,
-0.12202182412147522,
0.10538129508495331,
-0.16130568087100983,
-0.23825398087501526,
0.15257960557937622,
-0.08516224473714828,
-0.39698392152786255,
-0.2639620304107666,
0.44104692339897156,
-0.07169995456933975,
0.12762081623077393,
0.2629282772541046,
0.03819742798805237,
0.046206600964069366,
0.2446826845407486,
0.2988675832748413,
0.12900203466415405,
-0.46796438097953796,
-0.010986238718032837,
-0.32177498936653137,
-0.21288737654685974,
0.3092115521430969,
0.17481747269630432,
-0.19013124704360962,
0.36679717898368835,
0.16394534707069397,
-0.015823397785425186,
0.24887949228286743,
0.08145254850387573,
-0.16058936715126038,
0.10021534562110901,
-0.41522571444511414,
-0.13939420878887177,
0.36659079790115356,
0.039643459022045135,
-0.058328911662101746,
-0.20681068301200867,
0.19096747040748596,
0.12402375042438507,
0.012798506766557693,
0.029186246916651726,
0.08276119828224182,
0.12023739516735077,
0.43338415026664734,
0.2898521423339844,
0.17493939399719238,
0.2608095407485962,
-0.12206435203552246,
0.022821838036179543,
0.018227551132440567,
-0.3067568838596344,
-0.0446162074804306,
0.18265080451965332,
-0.08782912790775299,
0.4609198272228241,
-0.5516213774681091,
0.04279112070798874,
-0.11697185039520264,
0.029259689152240753,
-0.0026024989783763885,
-0.46894171833992004,
-0.06160251051187515,
0.06648896634578705,
-0.007573474198579788,
-0.025279561057686806,
0.14318007230758667,
0.2222636342048645,
0.01591603085398674,
0.5831586122512817,
0.07047383487224579,
-0.44613876938819885,
0.40710586309432983,
0.020862393081188202,
-0.11254574358463287,
0.18593227863311768,
-0.008548274636268616,
0.30545973777770996,
0.42517557740211487,
-0.6048347353935242,
-0.1813082993030548,
0.4282558858394623,
-0.2483881115913391,
-0.26721081137657166,
0.009246488101780415,
-0.07833501696586609,
-0.02994166687130928,
0.01538250595331192,
0.49391046166419983,
-0.10249409824609756,
-0.3544383943080902,
-0.03021680936217308,
-0.2761019468307495
] |
https://github.com/huggingface/datasets/issues/2040 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Sure, thanks for the fast reply!
For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]`
For dataset B: `[]`
No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the folder physically exists under 'drive/MyDrive/data_target_task/dataset_b/' | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 43 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
Sure, thanks for the fast reply!
For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]`
For dataset B: `[]`
No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the folder physically exists under 'drive/MyDrive/data_target_task/dataset_b/' | [
-0.007757153362035751,
-0.007315643131732941,
-0.018826786428689957,
0.539048433303833,
0.22807557880878448,
0.18429234623908997,
0.05310792848467827,
0.1309666931629181,
-0.05644068866968155,
0.14849825203418732,
0.06288622319698334,
0.23425506055355072,
-0.032504595816135406,
-0.16660559177398682,
-0.32681187987327576,
-0.05976682901382446,
0.23270884156227112,
0.0071997568011283875,
-0.07890769839286804,
-0.11945849657058716,
-0.4220418632030487,
0.29719653725624084,
-0.13872885704040527,
-0.05857929587364197,
-0.39545029401779175,
-0.0667552798986435,
-0.4116060435771942,
0.4386829733848572,
-0.15776896476745605,
-0.1015266701579094,
0.5081789493560791,
-0.08628389239311218,
0.12243679165840149,
0.6370723247528076,
-0.00012261152733117342,
-0.030820291489362717,
-0.03247958421707153,
-0.20201626420021057,
-0.27021655440330505,
-0.45320022106170654,
-0.21123313903808594,
-0.2356751710176468,
-0.044795066118240356,
-0.3365783095359802,
0.2640659809112549,
-0.07353074848651886,
-0.11247383058071136,
-0.7267849445343018,
0.14958347380161285,
0.2615768313407898,
0.07585413008928299,
0.20239387452602386,
0.04125499352812767,
-0.011546099558472633,
-0.0034605488181114197,
0.14291724562644958,
0.14699812233448029,
0.16674193739891052,
-0.09447675943374634,
-0.06066564470529556,
0.20734667778015137,
-0.07519882917404175,
-0.30425432324409485,
0.013135209679603577,
0.1142958477139473,
0.4793722927570343,
-0.05994173139333725,
-0.4340185821056366,
-0.07815966010093689,
-0.022861294448375702,
0.46043282747268677,
-0.3695726692676544,
-0.37135371565818787,
-0.1061629205942154,
0.04839136824011803,
-0.28981608152389526,
0.13515204191207886,
0.3806922137737274,
-0.026637520641088486,
0.10822305083274841,
-0.2135586440563202,
0.009028961881995201,
-0.25283366441726685,
-0.04397384822368622,
-0.1308443248271942,
-0.051733583211898804,
-0.06891025602817535,
0.1527518630027771,
0.4263556897640228,
0.12468306720256805,
0.3369888365268707,
-0.5939993858337402,
0.024772219359874725,
0.21366699039936066,
-0.20357929170131683,
0.07589574158191681,
-0.023192815482616425,
-0.42144227027893066,
0.01785469427704811,
-0.049541816115379333,
0.21948346495628357,
-0.1294460892677307,
-0.15920910239219666,
0.26479247212409973,
0.1793380081653595,
0.47059959173202515,
-0.030680246651172638,
0.4814176559448242,
0.05611672252416611,
-0.12487151473760605,
-0.01648535579442978,
0.02204238995909691,
-0.010733859613537788,
-0.2809273898601532,
0.172506183385849,
-0.03763512521982193,
0.05129332095384598,
0.01724572852253914,
-0.49026256799697876,
0.17227445542812347,
-0.26277923583984375,
-0.1579493135213852,
0.13755223155021667,
-0.03582187741994858,
0.024751242250204086,
0.3958361744880676,
0.3578866720199585,
0.3385946750640869,
0.07730752229690552,
0.3362586200237274,
-0.1757470816373825,
0.23792071640491486,
0.06145424768328667,
0.11290033906698227,
0.2048766314983368,
-0.02681732177734375,
-0.03242941573262215,
0.0669085904955864,
0.01968647539615631,
-0.06309296935796738,
0.007189836353063583,
-0.40556666254997253,
0.21164435148239136,
0.14684084057807922,
0.16558632254600525,
0.33858978748321533,
0.31349802017211914,
-0.3476322889328003,
-0.13638553023338318,
0.37201929092407227,
-0.39016830921173096,
-0.16249781847000122,
-0.06086556613445282,
0.06833679229021072,
-0.1990801841020584,
0.08224162459373474,
-0.4669089615345001,
0.005926094949245453,
0.28047335147857666,
0.3146545886993408,
-0.2105136513710022,
-0.03115023672580719,
-0.22716525197029114,
-0.4472229778766632,
0.3580998480319977,
0.041095808148384094,
-0.43936687707901,
0.031809598207473755,
0.265956312417984,
0.1168273389339447,
0.21341843903064728,
0.46578487753868103,
-0.018320707604289055,
0.4720544219017029,
-0.33763566613197327,
-0.012589506804943085,
0.3418797254562378,
-0.4551287293434143,
-0.17263686656951904,
0.20685195922851562,
-0.17117583751678467,
-0.010898495092988014,
0.31009501218795776,
0.04501825198531151,
-0.01244889385998249,
0.2387019544839859,
0.710506796836853,
0.31068676710128784,
-0.03681033104658127,
-0.059120386838912964,
-0.1282617300748825,
-0.1791670024394989,
0.3601858615875244,
-0.13051347434520721,
-0.07173918187618256,
0.1258464753627777,
-0.24187052249908447,
-0.43169695138931274,
0.3587990999221802,
-0.25253990292549133,
0.056376583874225616,
0.4634281396865845,
0.3992078900337219,
-0.15215227007865906,
-0.10933669656515121,
0.07024727761745453,
-0.1755601465702057,
0.2409665286540985,
0.03808116912841797,
-0.1411440223455429,
-0.28924375772476196,
0.04923561215400696,
-0.19953519105911255,
0.07208366692066193,
-0.10834208130836487,
0.030918879434466362,
0.01105533167719841,
0.1900496780872345,
0.020237542688846588,
-0.12869326770305634,
-0.24561409652233124,
0.6411566734313965,
-0.08214364945888519,
-0.012617353349924088,
-0.17107276618480682,
0.5629542469978333,
-0.2242327779531479,
-0.09496788680553436,
-0.07745252549648285,
-0.0047568827867507935,
0.25222742557525635,
0.11733663082122803,
0.01923822984099388,
0.45813027024269104,
-0.02935287170112133,
0.06521045416593552,
0.16460083425045013,
-0.0015374422073364258,
0.15870243310928345,
0.09264092147350311,
0.16910786926746368,
-0.032237112522125244,
0.25783318281173706,
-0.2327929437160492,
-0.11629276722669601,
0.37022918462753296,
-0.323327898979187,
0.40825212001800537,
0.12171939015388489,
-0.05177195742726326,
0.13635216653347015,
0.05886217579245567,
0.0029762275516986847,
-0.15291130542755127,
0.09956205636262894,
0.15318484604358673,
0.22259889543056488,
0.21187274158000946,
-0.3046702444553375,
-0.012798510491847992,
0.2571277320384979,
0.0371878482401371,
0.0053215958178043365,
0.01515122875571251,
-0.052729181945323944,
-0.1384248584508896,
-0.20079563558101654,
0.3541591167449951,
0.7381996512413025,
0.11672037839889526,
0.1836727410554886,
-0.06159040331840515,
-0.15659503638744354,
-0.11441388726234436,
0.29586905241012573,
0.13836611807346344,
0.1884901225566864,
0.2836691439151764,
0.005192972254008055,
-0.026855122298002243,
-0.13139089941978455,
0.005278777331113815,
-0.14500866830348969,
0.05497916787862778,
-0.5187076926231384,
-0.0354226790368557,
-0.19692251086235046,
-0.06886423379182816,
-0.3841019570827484,
-0.30002617835998535,
-0.09576593339443207,
-0.515574038028717,
-0.2982621192932129,
0.4832042157649994,
0.03406982496380806,
-0.10171864926815033,
-0.21684148907661438,
0.18968074023723602,
0.0425129309296608,
-0.06580307334661484,
0.09002469480037689,
-0.002024849411100149,
-0.11744589358568192,
-0.01932331919670105,
-0.18491214513778687,
-0.06448016315698624,
0.027212869375944138,
-0.17597953975200653,
0.27592891454696655,
-0.324673593044281,
0.07261509448289871,
-0.1426636427640915,
-0.2029590755701065,
0.17345501482486725,
0.07797778397798538,
0.28038647770881653,
-0.20353206992149353,
-0.5924375653266907,
0.14572367072105408,
0.5013506412506104,
-0.186918243765831,
0.16580624878406525,
0.29461076855659485,
-0.21109749376773834,
-0.0700029581785202,
-0.21698877215385437,
-0.3874443769454956,
-0.26157718896865845,
-0.07837492227554321,
-0.19658109545707703,
0.17516480386257172,
0.09260743856430054,
0.19319206476211548,
0.1270976960659027,
0.3630619943141937,
0.1643959879875183,
-0.15373769402503967,
-0.3676384389400482,
0.4445559084415436,
0.005461078602820635,
-0.18836916983127594,
-0.02984943427145481,
0.0075801461935043335,
0.11898112297058105,
0.17033672332763672,
-0.3710670471191406,
-0.020949438214302063,
-0.26600101590156555,
0.13245746493339539,
-0.09867510199546814,
0.32050156593322754,
0.1483413428068161,
0.37022432684898376,
-0.02790093794465065,
-0.2777632176876068,
-0.3389345407485962,
0.1872110813856125,
0.24472978711128235,
0.3925764858722687,
-0.0807119831442833,
0.27425992488861084,
0.14448431134223938,
0.3211857080459595,
0.3186562955379486,
0.07069839537143707,
0.3618190288543701,
0.20494215190410614,
0.5604657530784607,
-0.04103369265794754,
-0.5407704710960388,
-0.30213025212287903,
-0.05445075035095215,
-0.2745862603187561,
-0.04566358029842377,
0.039517201483249664,
0.02548588253557682,
-0.1716778427362442,
0.13947932422161102,
-0.207646906375885,
-0.2167317122220993,
0.04676178842782974,
-0.26574456691741943,
0.1350403130054474,
-0.1639406383037567,
-0.0409940704703331,
-0.2967514097690582,
0.29640400409698486,
-0.16156460344791412,
0.12787489593029022,
0.21454966068267822,
-0.07782693207263947,
-0.3957499563694,
-0.34474045038223267,
-0.4116417467594147,
0.3273963928222656,
0.11218122392892838,
0.3608625531196594,
0.05352679267525673,
-0.24764057993888855,
-0.26726675033569336,
0.00018967129290103912,
0.8296090960502625,
0.28596532344818115,
-0.3504906892776489,
0.4240785837173462,
-0.005201477557420731,
-0.4869096875190735,
-0.06993172317743301,
0.06519007682800293,
0.19532747566699982,
-0.31188589334487915,
0.43599793314933777,
-0.22135460376739502,
-0.02148338034749031,
-0.12375453114509583,
0.5002308487892151,
-0.1325320154428482,
0.029593247920274734,
-0.1533932089805603,
-0.21133384108543396,
-0.10274132341146469,
-0.2540704309940338,
-0.013713039457798004,
0.4512709975242615,
-0.32783037424087524,
-0.014841331169009209,
0.014013994485139847,
-0.28254395723342896,
0.3552677631378174,
-0.37860167026519775,
0.5898546576499939,
-0.08378344029188156,
0.14618521928787231,
0.08389052748680115,
0.1358463019132614,
0.3902835249900818,
0.49803781509399414,
-0.267896443605423,
-0.08986334502696991,
0.05806747078895569,
0.045243263244628906,
0.46926891803741455,
0.23178449273109436,
-0.20595534145832062,
-0.13645848631858826,
-0.09805288165807724,
-0.08072955906391144,
-0.34476304054260254,
-0.048269305378198624,
0.34551191329956055,
0.046645957976579666,
-0.38985052704811096,
-0.3483807444572449,
0.23343920707702637,
0.3130781352519989,
-0.10071954876184464,
0.33568111062049866,
0.0064238980412483215,
-0.4863875210285187,
0.3060377836227417,
-0.16928285360336304,
0.9695231914520264,
0.06907054036855698,
0.2858237028121948,
0.2072305977344513,
-0.21423135697841644,
0.0614582821726799,
0.25369930267333984,
0.08112750202417374,
-0.15403905510902405,
-0.2758866250514984,
-0.12875404953956604,
-0.3111580014228821,
0.03978733718395233,
0.2840384244918823,
-0.3629775643348694,
0.3248741328716278,
-0.4089418649673462,
-0.12133669853210449,
-0.11997880041599274,
0.05675332993268967,
-0.11757323890924454,
-0.1675238162279129,
-0.3534541130065918,
0.019321881234645844,
0.17323735356330872,
0.011388584971427917,
-0.009167404845356941,
-0.04199887067079544,
-0.4983080327510834,
-0.2119642198085785,
-0.1296633780002594,
0.12950482964515686,
-0.2722187936306,
0.6612725853919983,
-0.3607723116874695,
-0.40872126817703247,
-0.4596439599990845,
0.3534536361694336,
0.44689732789993286,
-0.0406762920320034,
0.02037971280515194,
-0.09411852061748505,
-0.0040104687213897705,
0.13472478091716766,
0.014860891737043858,
-0.29535138607025146,
0.19343926012516022,
0.16358652710914612,
-0.05870445817708969,
-0.0635414645075798,
-0.07265717536211014,
-0.3442115783691406,
-0.09352794289588928,
0.05916229262948036,
-0.0022300370037555695,
-0.20736919343471527,
-0.36238205432891846,
0.1780845820903778,
0.029074590653181076,
-0.06666140258312225,
0.025702036917209625,
0.33935093879699707,
-0.050744641572237015,
0.31585201621055603,
-0.3541826009750366,
-0.37738075852394104,
-0.07397110760211945,
0.5312647223472595,
0.2242583930492401,
-0.05627466365695,
0.4126945734024048,
-0.07747480273246765,
-0.12033364176750183,
-0.002246040850877762,
0.3146802484989166,
0.15221604704856873,
0.21072834730148315,
0.3843655586242676,
-0.018638044595718384,
-0.0036377161741256714,
-0.09690675139427185,
0.36002102494239807,
0.35482871532440186,
0.18591582775115967,
-0.084213986992836,
-0.27101409435272217,
-0.49225345253944397,
0.3682183623313904,
0.10366228222846985,
0.3379032611846924,
0.04384373873472214,
-0.35223811864852905,
0.05082308501005173,
-0.1391114443540573,
-0.19266772270202637,
0.012873360887169838,
-0.20974893867969513,
0.04218112304806709,
0.22381024062633514,
-0.016576826572418213,
0.18556930124759674,
0.04482067748904228,
0.07286601513624191,
-0.18601925671100616,
-0.005239592865109444,
-0.0883277952671051,
0.09312553703784943,
0.1873926818370819,
0.1110863983631134,
0.011904227547347546,
-0.00574620021507144,
-0.46616870164871216,
0.025892606005072594,
-0.24653172492980957,
-0.09445266425609589,
0.5793570280075073,
0.017572104930877686,
0.16908763349056244,
-0.019627314060926437,
0.21369612216949463,
0.061699263751506805,
0.07638900727033615,
-0.0025380849838256836,
0.12159115821123123,
0.0036702477373182774,
0.23053902387619019,
-0.23932217061519623,
-0.15879285335540771,
-0.3834436237812042,
-0.023367442190647125,
-0.11168257892131805,
0.009816769510507584,
0.22927331924438477,
-0.15041407942771912,
-0.14842526614665985,
-0.012473909184336662,
0.3728412389755249,
0.35383886098861694,
-0.15880565345287323,
0.13642391562461853,
-0.07169197499752045,
0.08650890737771988,
0.049260884523391724,
-0.2904602885246277,
-0.19478003680706024,
-0.22926005721092224,
-0.2107807695865631,
0.1381397396326065,
-0.008870493620634079,
-0.014932379126548767,
-0.40178871154785156,
-0.010098740458488464,
0.7563081979751587,
-0.14199312031269073,
0.27956366539001465,
0.04618143290281296,
0.09027791023254395,
0.050569694489240646,
0.032693758606910706,
0.14083518087863922,
0.3030175566673279,
0.06406229734420776,
-0.1083739623427391,
0.16765494644641876,
0.38233068585395813,
-0.12803006172180176,
0.26090532541275024,
-0.17992618680000305,
-0.008866030722856522,
0.112049400806427,
-0.13184607028961182,
-0.027540914714336395,
0.05118948593735695,
0.1771024763584137,
-0.5174022912979126,
-0.14643418788909912,
0.0079957265406847,
0.30081284046173096,
-0.1359507441520691,
-0.13517974317073822,
0.07498650997877121,
-0.273296982049942,
0.048955678939819336,
-0.14381825923919678,
0.11961986124515533,
-0.2969893217086792,
0.15138784050941467,
-0.054495617747306824,
-0.04239171743392944,
-0.047148123383522034,
0.2694116532802582,
0.3872375786304474,
0.059957049787044525,
-0.25425973534584045,
0.009973151609301567,
0.21140804886817932,
-0.05446770787239075,
0.13912421464920044,
0.2713523507118225,
0.5723228454589844,
0.5754203796386719,
0.022432632744312286,
0.08439729362726212,
0.04272241145372391,
-0.28399625420570374,
-0.04375816881656647,
0.06508652120828629,
-0.3334128260612488,
-0.3743063509464264,
0.3329988718032837,
0.19228889048099518,
0.014276918955147266,
0.06683532893657684,
0.216083824634552,
0.5071804523468018,
-0.22291548550128937,
0.23553547263145447,
-0.1977868229150772,
-0.2077813446521759,
0.10370652377605438,
0.013859376311302185,
-0.38239404559135437,
-0.2068973034620285,
0.3432183563709259,
-0.01004782970994711,
0.16536542773246765,
0.19606913626194,
0.045161180198192596,
0.061803482472896576,
0.19468934834003448,
0.2713279724121094,
0.008570816367864609,
-0.48857003450393677,
-0.014842897653579712,
-0.41344425082206726,
-0.17253226041793823,
0.37903156876564026,
0.19482091069221497,
-0.2688859701156616,
0.4094080626964569,
0.1388225555419922,
-0.06945843994617462,
0.16298702359199524,
0.16212069988250732,
-0.16252350807189941,
0.05186653882265091,
-0.436381071805954,
-0.1906348317861557,
0.2093261480331421,
-0.03319798409938812,
-0.06536191701889038,
-0.31892645359039307,
0.18697170913219452,
0.16553696990013123,
0.04067842662334442,
-0.00856596976518631,
0.08489896357059479,
0.1778649389743805,
0.4394782781600952,
0.22910156846046448,
0.19874940812587738,
0.3351500928401947,
-0.12797993421554565,
-0.007993282750248909,
-0.01806211844086647,
-0.27850547432899475,
-0.09732326865196228,
0.0944775938987732,
-0.1241476982831955,
0.44469085335731506,
-0.5122808814048767,
0.09188933670520782,
-0.15928125381469727,
0.01548820175230503,
0.07139815390110016,
-0.370389461517334,
-0.1453997641801834,
0.03969487547874451,
-0.0367695651948452,
0.012752118520438671,
0.15862450003623962,
0.2262330949306488,
0.04521755501627922,
0.5562226176261902,
0.017278939485549927,
-0.4441854655742645,
0.36792632937431335,
0.11316177994012833,
-0.163241907954216,
0.09266623109579086,
-0.05418314039707184,
0.17214840650558472,
0.38244569301605225,
-0.5713042616844177,
-0.18409837782382965,
0.44924256205558777,
-0.2179425060749054,
-0.3280406892299652,
0.07558521628379822,
-0.1019623875617981,
0.04619939997792244,
-0.00796797126531601,
0.3582439720630646,
-0.13225042819976807,
-0.32583922147750854,
0.05536634847521782,
-0.1872071474790573
] |
https://github.com/huggingface/datasets/issues/2040 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk).
For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with
```python
dataset = dataset.flatten_indices()
``` | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 59 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk).
For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with
```python
dataset = dataset.flatten_indices()
``` | [
-0.09038525819778442,
-0.08030980080366135,
-0.021714922040700912,
0.4296607971191406,
0.21229058504104614,
0.26673203706741333,
0.04071621969342232,
0.1795162707567215,
-0.07189370691776276,
0.1746957004070282,
-0.000991249457001686,
0.19955821335315704,
-0.08817735314369202,
-0.03269233554601669,
-0.34390565752983093,
-0.0558382049202919,
0.1930515468120575,
0.01871078461408615,
-0.10415798425674438,
0.009861722588539124,
-0.444235235452652,
0.24365206062793732,
-0.15522032976150513,
-0.03592971712350845,
-0.31147289276123047,
-0.06474237143993378,
-0.3580109179019928,
0.3418426513671875,
-0.11531128734350204,
-0.12061212211847305,
0.55083829164505,
-0.047753993421792984,
0.08698597550392151,
0.556516706943512,
-0.00011674216511892155,
-0.005871348083019257,
-0.039811618626117706,
-0.15968382358551025,
-0.2412981390953064,
-0.4698678255081177,
-0.2993328273296356,
-0.2401561439037323,
-0.021356042474508286,
-0.29686883091926575,
0.20866155624389648,
-0.18600812554359436,
-0.10971829295158386,
-0.7185214757919312,
0.23581546545028687,
0.219424307346344,
0.13161621987819672,
0.1606053113937378,
0.1590321809053421,
-0.053723014891147614,
0.006094306707382202,
0.06041417270898819,
0.17726090550422668,
0.17952010035514832,
-0.12992776930332184,
-0.03586369380354881,
0.2642759084701538,
-0.006864035967737436,
-0.38686275482177734,
-0.05422068014740944,
0.1337350308895111,
0.4457705020904541,
0.09421060979366302,
-0.45611515641212463,
-0.14772528409957886,
0.075230672955513,
0.42001572251319885,
-0.32629603147506714,
-0.3272224962711334,
-0.09136629849672318,
0.09714218974113464,
-0.385856956243515,
0.11834482848644257,
0.36938032507896423,
0.0639820396900177,
0.12742313742637634,
-0.2128300964832306,
-0.08891366422176361,
-0.18957851827144623,
0.006588347256183624,
-0.11501149088144302,
0.021889537572860718,
-0.021095138043165207,
0.16465675830841064,
0.5099679231643677,
-0.03251291811466217,
0.41557076573371887,
-0.5363279581069946,
0.047602806240320206,
0.18976731598377228,
-0.19912086427211761,
0.03599022328853607,
-0.08571193367242813,
-0.5460633039474487,
0.07068674266338348,
-0.18107402324676514,
0.11627522855997086,
-0.11603843420743942,
-0.16028574109077454,
0.3259333670139313,
0.18679894506931305,
0.4233536124229431,
0.045959219336509705,
0.5026448369026184,
0.03429466113448143,
-0.08021695911884308,
0.06442803144454956,
0.05240628123283386,
0.07192784547805786,
-0.36686283349990845,
0.09573528170585632,
0.015341571532189846,
0.11431588232517242,
0.00081600621342659,
-0.424521803855896,
0.12773539125919342,
-0.28553250432014465,
-0.08480771631002426,
0.05695970728993416,
-0.07957419008016586,
0.04663646221160889,
0.3995073735713959,
0.38964253664016724,
0.3132678270339966,
0.07838330417871475,
0.2504090368747711,
-0.17763853073120117,
0.17671817541122437,
0.1420002579689026,
0.12403160333633423,
0.1526343822479248,
-0.06398813426494598,
-0.08171737194061279,
0.19196757674217224,
-0.003785155713558197,
0.014208018779754639,
0.022685160860419273,
-0.3594810664653778,
0.1906326711177826,
0.16511285305023193,
0.10700373351573944,
0.2670375406742096,
0.3068104684352875,
-0.35123705863952637,
-0.18481598794460297,
0.39935678243637085,
-0.4019356966018677,
-0.16006819903850555,
-0.14834173023700714,
0.11776898056268692,
-0.11065341532230377,
0.09295201301574707,
-0.43059298396110535,
0.10366488993167877,
0.28925085067749023,
0.2214403748512268,
-0.25503307580947876,
-0.1051570326089859,
-0.2563723921775818,
-0.3879455029964447,
0.30739477276802063,
-0.05010850727558136,
-0.43175941705703735,
-0.008513547480106354,
0.26731589436531067,
0.10990448296070099,
0.23513111472129822,
0.4662024676799774,
-0.07820984721183777,
0.33403414487838745,
-0.2627854645252228,
-0.0979301780462265,
0.16989772021770477,
-0.33203086256980896,
-0.19882173836231232,
0.13421940803527832,
-0.15351402759552002,
0.035031914710998535,
0.19879406690597534,
0.043576113879680634,
0.028520042076706886,
0.24981573224067688,
0.7739907503128052,
0.31666111946105957,
-0.03809705376625061,
-0.11918721348047256,
-0.15316171944141388,
-0.26662197709083557,
0.4661264419555664,
-0.13150106370449066,
-0.14166457951068878,
0.09884963929653168,
-0.37251582741737366,
-0.397573858499527,
0.34727510809898376,
-0.2832825183868408,
0.06362973153591156,
0.4213294982910156,
0.32636892795562744,
-0.18171648681163788,
-0.10189057141542435,
0.02462334930896759,
-0.20542868971824646,
0.18950369954109192,
-0.033566735684871674,
-0.10182042419910431,
-0.2266627699136734,
-0.058700382709503174,
-0.16730192303657532,
0.018740052357316017,
-0.05389770492911339,
0.14129899442195892,
0.039203062653541565,
0.01416759192943573,
-0.0718829482793808,
-0.10226061940193176,
-0.2673947513103485,
0.5654741525650024,
-0.09033271670341492,
0.038302600383758545,
-0.2548471987247467,
0.4797312021255493,
-0.16872377693653107,
-0.04234592989087105,
-0.02578894980251789,
-0.007184840738773346,
0.24996671080589294,
0.0986100286245346,
-0.006040925160050392,
0.4919341206550598,
-0.09367334097623825,
0.01191999763250351,
0.07791684567928314,
0.015920564532279968,
0.2271929532289505,
0.017849620431661606,
0.0769847109913826,
0.005622078664600849,
0.12916551530361176,
-0.18703413009643555,
-0.07958074659109116,
0.42451220750808716,
-0.36679795384407043,
0.33691999316215515,
0.03146351873874664,
0.0869893804192543,
0.21492215991020203,
-0.020044557750225067,
-0.03275224566459656,
-0.23530055582523346,
0.018012963235378265,
0.007793567143380642,
0.05984726920723915,
0.15973877906799316,
-0.32710501551628113,
-0.05025479942560196,
0.13700656592845917,
0.043591778725385666,
-0.008158989250659943,
0.04763471335172653,
-0.07929868251085281,
-0.07755906879901886,
-0.1422453373670578,
0.26266181468963623,
0.5957337617874146,
0.20514126121997833,
0.09334105253219604,
0.03013239987194538,
-0.15620477497577667,
-0.046284858137369156,
0.3124065697193146,
0.1212165504693985,
0.19402733445167542,
0.21944203972816467,
-0.013892089948058128,
-0.022664912045001984,
-0.07246413081884384,
0.057523008435964584,
-0.11339645087718964,
0.11805311590433121,
-0.5014935731887817,
-0.09627252072095871,
-0.3015749752521515,
-0.10217370837926865,
-0.3828295171260834,
-0.3004682958126068,
-0.19739709794521332,
-0.48387590050697327,
-0.26154160499572754,
0.4586673676967621,
-0.0590241476893425,
0.038206666707992554,
-0.1270177662372589,
0.16831354796886444,
0.07200488448143005,
0.026538563892245293,
0.15589052438735962,
-0.02167326584458351,
-0.05831889808177948,
0.044499803334474564,
-0.07785757631063461,
-0.06224647909402847,
0.05911120027303696,
-0.1217501163482666,
0.21774449944496155,
-0.2410200834274292,
0.03858651965856552,
-0.15009529888629913,
-0.18275752663612366,
0.09934284538030624,
0.0969480350613594,
0.29070132970809937,
-0.26632484793663025,
-0.5855751633644104,
0.12328460812568665,
0.5215250849723816,
-0.12665730714797974,
0.17300505936145782,
0.2626033127307892,
-0.18298038840293884,
-0.07983237504959106,
-0.22379472851753235,
-0.3680773675441742,
-0.23714423179626465,
-0.07980817556381226,
-0.2592635452747345,
0.24727247655391693,
0.09903186559677124,
0.26494982838630676,
0.08202391117811203,
0.36541125178337097,
0.1007734164595604,
-0.14460483193397522,
-0.2878360450267792,
0.3886057734489441,
-0.008441501297056675,
-0.17906051874160767,
0.006530988961458206,
-0.005005436018109322,
0.08627501130104065,
0.1664551943540573,
-0.3701837658882141,
-0.009542681276798248,
-0.18042807281017303,
0.09635347127914429,
-0.13262253999710083,
0.2878192663192749,
0.11168011277914047,
0.4846867620944977,
-0.0532262921333313,
-0.13801425695419312,
-0.31442156434059143,
0.15589632093906403,
0.19220560789108276,
0.3816482126712799,
-0.043014124035835266,
0.272298127412796,
0.06883209943771362,
0.2513546347618103,
0.34749066829681396,
0.10603189468383789,
0.22027041018009186,
0.26804789900779724,
0.46714434027671814,
-0.06796842068433762,
-0.5600991249084473,
-0.3960493505001068,
-0.02078545093536377,
-0.20792683959007263,
-0.09208020567893982,
-0.030298616737127304,
0.004605600610375404,
-0.14374703168869019,
0.15224960446357727,
-0.10510404407978058,
-0.23451310396194458,
0.08896108716726303,
-0.29795315861701965,
0.17423969507217407,
-0.14621137082576752,
-0.11231354624032974,
-0.317249059677124,
0.2338031828403473,
-0.16210775077342987,
0.007230252027511597,
0.18262562155723572,
-0.14775359630584717,
-0.39485540986061096,
-0.30195552110671997,
-0.42318734526634216,
0.4284072518348694,
0.09401195496320724,
0.36003774404525757,
0.10299050807952881,
-0.21160274744033813,
-0.31401437520980835,
0.06446235626935959,
0.779323160648346,
0.24288418889045715,
-0.47935646772384644,
0.47621214389801025,
0.04866115003824234,
-0.5282108187675476,
-0.08921048790216446,
0.07767443358898163,
0.1703045517206192,
-0.2709624469280243,
0.517633318901062,
-0.23959830403327942,
0.007816941477358341,
-0.05451389402151108,
0.5147520303726196,
-0.17008337378501892,
0.06288798153400421,
-0.08555963635444641,
-0.23723936080932617,
-0.1355615258216858,
-0.24215686321258545,
-0.007106561213731766,
0.5239636898040771,
-0.2932552397251129,
-0.0072207823395729065,
-0.04059971868991852,
-0.2700951397418976,
0.4007337689399719,
-0.3850298523902893,
0.5835525393486023,
-0.007173328660428524,
0.1568865329027176,
0.17162011563777924,
0.15051673352718353,
0.34743326902389526,
0.4852842092514038,
-0.23800647258758545,
-0.1381063312292099,
-0.01853419467806816,
0.12233814597129822,
0.47625449299812317,
0.23246729373931885,
-0.12017547339200974,
-0.004802152514457703,
-0.034245893359184265,
0.01781795173883438,
-0.3697011172771454,
-0.06575950235128403,
0.25075358152389526,
0.02801629528403282,
-0.4654100835323334,
-0.4313584268093109,
0.20426291227340698,
0.31026971340179443,
-0.12458252906799316,
0.35935676097869873,
-0.032342396676540375,
-0.4702593684196472,
0.39829736948013306,
-0.11627189069986343,
0.9791224002838135,
-0.06791599094867706,
0.19780947268009186,
0.1263822466135025,
-0.18898512423038483,
0.16857756674289703,
0.28588974475860596,
0.11369480937719345,
-0.20190799236297607,
-0.2907349765300751,
-0.12553541362285614,
-0.2693725526332855,
0.04917564615607262,
0.23886631429195404,
-0.44256702065467834,
0.26696011424064636,
-0.4332691431045532,
-0.09902803599834442,
-0.17758727073669434,
0.06578822433948517,
-0.03416714817285538,
-0.21733340620994568,
-0.3752559423446655,
0.06146473437547684,
0.08799034357070923,
-0.11095863580703735,
0.008018089458346367,
-0.06335432082414627,
-0.38580772280693054,
-0.13351675868034363,
-0.11016938090324402,
0.09765855967998505,
-0.19913123548030853,
0.7657148241996765,
-0.38438287377357483,
-0.31012606620788574,
-0.3907930850982666,
0.2589002847671509,
0.4397602081298828,
0.002420380711555481,
0.05088489502668381,
-0.13276135921478271,
0.01654057949781418,
0.04228419065475464,
-0.012544558383524418,
-0.2453635036945343,
0.18643306195735931,
0.18573147058486938,
-0.12046509236097336,
0.07219479978084564,
0.024609193205833435,
-0.34901756048202515,
-0.11420503258705139,
0.00291481614112854,
-0.009468607604503632,
-0.2997998893260956,
-0.36404988169670105,
0.1790682077407837,
0.14275063574314117,
-0.06081949174404144,
0.06683480739593506,
0.32940810918807983,
-0.053891900926828384,
0.2757905423641205,
-0.3172311782836914,
-0.3427127003669739,
-0.09654848277568817,
0.5646890997886658,
0.3627413213253021,
-0.02367110550403595,
0.4135937988758087,
-0.03953326493501663,
-0.07016782462596893,
-0.016143301501870155,
0.3499985933303833,
0.15116554498672485,
0.2037111222743988,
0.44305184483528137,
0.010172434151172638,
-0.010912016034126282,
-0.18156807124614716,
0.3628652095794678,
0.37142908573150635,
0.22770315408706665,
-0.04208916425704956,
-0.16466397047042847,
-0.5605288147926331,
0.3672236204147339,
0.15998682379722595,
0.3651222884654999,
0.08181832730770111,
-0.31257715821266174,
-0.1021244078874588,
-0.08958617597818375,
-0.25438612699508667,
0.028869546949863434,
-0.17905041575431824,
0.038192957639694214,
0.19825637340545654,
-0.040777772665023804,
0.13134683668613434,
-0.05272732302546501,
0.13777616620063782,
-0.2134716957807541,
0.012442072853446007,
-0.15494313836097717,
0.06207726523280144,
0.13880737125873566,
0.08655284345149994,
-0.12007929384708405,
-0.021039161831140518,
-0.45468080043792725,
-0.023988351225852966,
-0.20921345055103302,
-0.09408427774906158,
0.6052919030189514,
0.03619891032576561,
0.14055085182189941,
-0.0611775778234005,
0.13955911993980408,
0.08123305439949036,
0.05955031141638756,
0.05765742063522339,
0.05658044293522835,
-0.06296627223491669,
0.22054347395896912,
-0.2835116982460022,
-0.18962790071964264,
-0.3457255959510803,
0.010538622736930847,
-0.17994631826877594,
-0.05842306464910507,
0.23938223719596863,
-0.1386641263961792,
-0.2037062793970108,
0.16895368695259094,
0.3811870515346527,
0.3318370282649994,
-0.19809862971305847,
0.1788565069437027,
-0.007973609492182732,
0.1412329524755478,
-0.003708586096763611,
-0.2662277817726135,
-0.09024736285209656,
-0.1298978179693222,
-0.2266336977481842,
0.06935326755046844,
-0.02308540605008602,
0.024143382906913757,
-0.3969614505767822,
0.042518459260463715,
0.6044137477874756,
-0.17291909456253052,
0.37874284386634827,
0.09490783512592316,
0.1064310222864151,
-0.056394290179014206,
0.03308096528053284,
0.11875550448894501,
0.4463944733142853,
-0.04736222326755524,
-0.11965008825063705,
0.09885060787200928,
0.3390350639820099,
-0.11449404060840607,
0.2200871706008911,
-0.23099784553050995,
0.021580874919891357,
0.20778578519821167,
-0.18555352091789246,
0.014039885252714157,
0.1407553255558014,
0.23516571521759033,
-0.5215617418289185,
-0.28589603304862976,
0.05069918930530548,
0.4173049032688141,
-0.17601278424263,
-0.12801669538021088,
0.12239915132522583,
-0.17785203456878662,
0.04803525656461716,
-0.14718486368656158,
0.12405823171138763,
-0.32196956872940063,
0.19120573997497559,
-0.0857972502708435,
-0.028237618505954742,
-0.03446029871702194,
0.24461150169372559,
0.41525161266326904,
0.10872374475002289,
-0.2196064442396164,
-0.11939112097024918,
0.2977907657623291,
-0.07352505624294281,
0.10690116882324219,
0.31581825017929077,
0.5540581345558167,
0.5522788763046265,
-0.031205665320158005,
0.1308664083480835,
0.06895752251148224,
-0.20486238598823547,
0.04297575354576111,
0.013464839197695255,
-0.21742311120033264,
-0.2798502743244171,
0.4076698124408722,
0.19716370105743408,
-0.030816178768873215,
0.053090937435626984,
0.17693407833576202,
0.5629740357398987,
-0.1761532872915268,
0.14202120900154114,
-0.09437273442745209,
-0.18395274877548218,
0.11420726031064987,
0.03495016694068909,
-0.3102143704891205,
-0.25429508090019226,
0.36670851707458496,
-0.011050345376133919,
0.1435461938381195,
0.24487395584583282,
0.08542340993881226,
0.06317846477031708,
0.19992557168006897,
0.33370617032051086,
-0.04188203066587448,
-0.509641706943512,
-0.005424804985523224,
-0.4245632290840149,
-0.181415855884552,
0.28510570526123047,
0.2403237223625183,
-0.1437007188796997,
0.3626503646373749,
0.16792702674865723,
-0.0371575802564621,
0.06596288830041885,
0.0472932793200016,
-0.19093814492225647,
-0.05249849706888199,
-0.370511531829834,
-0.14873036742210388,
0.21063409745693207,
-0.06044711172580719,
-0.05874454230070114,
-0.2856876254081726,
0.27194586396217346,
0.15230692923069,
0.05359261482954025,
0.009166457690298557,
0.16405291855335236,
0.1470792293548584,
0.38544270396232605,
0.1948203295469284,
0.20950134098529816,
0.30704277753829956,
-0.11525081098079681,
0.03164561092853546,
0.019572202116250992,
-0.3304350674152374,
-0.1423637717962265,
0.13321460783481598,
-0.08601430058479309,
0.5072716474533081,
-0.5292457342147827,
0.035310037434101105,
-0.12137257307767868,
0.11962427943944931,
0.015920281410217285,
-0.41453802585601807,
-0.2292204052209854,
0.10314644128084183,
-0.011365614831447601,
-0.049156323075294495,
0.07738666236400604,
0.299897164106369,
0.015460103750228882,
0.5862025618553162,
0.09814676642417908,
-0.42281123995780945,
0.4048633575439453,
0.11326471716165543,
-0.14947891235351562,
0.08225460350513458,
-0.08725142478942871,
0.20431849360466003,
0.3383572995662689,
-0.5801483988761902,
-0.2121744453907013,
0.42333486676216125,
-0.26025763154029846,
-0.31117409467697144,
0.10982424020767212,
-0.10285840928554535,
0.0029291771352291107,
0.01213199645280838,
0.40395957231521606,
-0.0641847476363182,
-0.40160128474235535,
0.02375279739499092,
-0.22129108011722565
] |
https://github.com/huggingface/datasets/issues/2040 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot! | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 16 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot! | [
-0.048382170498371124,
-0.07965634763240814,
-0.021617360413074493,
0.4603257179260254,
0.18724140524864197,
0.26541784405708313,
0.040708839893341064,
0.11934332549571991,
-0.04796820878982544,
0.14856716990470886,
0.05258777737617493,
0.17895977199077606,
-0.06306694447994232,
-0.07126622647047043,
-0.29877138137817383,
-0.06330102682113647,
0.25596824288368225,
-0.014330945909023285,
-0.1243884265422821,
-0.03350220248103142,
-0.43655622005462646,
0.2530575394630432,
-0.12421230226755142,
-0.04466457664966583,
-0.3036779463291168,
-0.06688442826271057,
-0.4069909453392029,
0.3554331064224243,
-0.07525461912155151,
-0.12310098111629486,
0.5189285278320312,
-0.02012656256556511,
0.0941629633307457,
0.5816609859466553,
-0.00012137417797930539,
-0.004353955388069153,
-0.10395026206970215,
-0.17597821354866028,
-0.24222268164157867,
-0.4407142996788025,
-0.23660612106323242,
-0.25088244676589966,
-0.036447301506996155,
-0.29318496584892273,
0.25390613079071045,
-0.13413739204406738,
-0.11759595572948456,
-0.723146378993988,
0.24578815698623657,
0.198613703250885,
0.09222464263439178,
0.19442005455493927,
0.06564874947071075,
-0.04094111919403076,
-0.04092983901500702,
0.13047894835472107,
0.19957958161830902,
0.19535647332668304,
-0.10210250318050385,
-0.02773888036608696,
0.2431667149066925,
-0.01925467699766159,
-0.3580239713191986,
-0.04786517098546028,
0.1482315957546234,
0.45316895842552185,
-0.005329161882400513,
-0.4363863170146942,
-0.1360749900341034,
0.007988270372152328,
0.4547099471092224,
-0.39509543776512146,
-0.34893086552619934,
-0.11716856062412262,
0.08377530425786972,
-0.36391863226890564,
0.11459659039974213,
0.3478941023349762,
0.007878664880990982,
0.12554234266281128,
-0.23527684807777405,
-0.10323061794042587,
-0.21609099209308624,
-0.033608801662921906,
-0.13038158416748047,
-0.023333579301834106,
-0.010051335208117962,
0.19401898980140686,
0.4782029092311859,
0.03103633224964142,
0.33253273367881775,
-0.5216776728630066,
0.05650036409497261,
0.20905348658561707,
-0.18527120351791382,
0.03929263353347778,
-0.09247436374425888,
-0.5081061124801636,
0.03482287377119064,
-0.11930996179580688,
0.12423249334096909,
-0.14693087339401245,
-0.16552388668060303,
0.33564096689224243,
0.2434248924255371,
0.3892984688282013,
0.010719038546085358,
0.46725958585739136,
0.05210274085402489,
-0.1690678894519806,
0.019589480012655258,
0.028832614421844482,
0.0493384450674057,
-0.31856539845466614,
0.1396729201078415,
-0.06427189707756042,
0.03947881609201431,
0.0019535981118679047,
-0.4597358703613281,
0.2338104099035263,
-0.27469494938850403,
-0.1261482834815979,
0.11219382286071777,
-0.02762731909751892,
0.05811656266450882,
0.3988300859928131,
0.40305256843566895,
0.3217601180076599,
0.06582020968198776,
0.20856095850467682,
-0.16501042246818542,
0.2475845068693161,
0.1256018429994583,
0.14027990400791168,
0.15362145006656647,
-0.02888137474656105,
-0.063567616045475,
0.12186310440301895,
0.005378790199756622,
-0.07643455266952515,
-0.009222547523677349,
-0.36307090520858765,
0.13620398938655853,
0.14139868319034576,
0.16191168129444122,
0.32769471406936646,
0.29810041189193726,
-0.34943193197250366,
-0.17385613918304443,
0.4263889789581299,
-0.3527102470397949,
-0.15705563127994537,
-0.10833832621574402,
0.07666157931089401,
-0.16360513865947723,
0.08016262948513031,
-0.42626532912254333,
0.094442218542099,
0.3520643711090088,
0.2512078583240509,
-0.25726744532585144,
-0.05486634373664856,
-0.27763479948043823,
-0.4151386320590973,
0.31199103593826294,
0.0014742016792297363,
-0.4745100736618042,
-0.03212374076247215,
0.2938988506793976,
0.09893371164798737,
0.172995924949646,
0.4579012095928192,
-0.04734594374895096,
0.43478333950042725,
-0.27841299772262573,
-0.07601641863584518,
0.2648217976093292,
-0.3892305791378021,
-0.15946030616760254,
0.1499800980091095,
-0.16600820422172546,
0.008146336302161217,
0.25452473759651184,
0.06669612973928452,
-0.003189495764672756,
0.22726385295391083,
0.7549238204956055,
0.35037535429000854,
-0.04658276587724686,
-0.08909794688224792,
-0.10839779675006866,
-0.20297826826572418,
0.4351122975349426,
-0.11516772210597992,
-0.07409217953681946,
0.07582180947065353,
-0.3071584105491638,
-0.40769606828689575,
0.35971519351005554,
-0.23308593034744263,
0.05111824721097946,
0.4509952664375305,
0.33429503440856934,
-0.14031772315502167,
-0.122275210916996,
0.05583187937736511,
-0.16549468040466309,
0.1752091944217682,
0.04250641167163849,
-0.16813451051712036,
-0.21358735859394073,
-0.023175176233053207,
-0.234022319316864,
0.09141416847705841,
-0.04040280357003212,
0.12610135972499847,
-0.006041785702109337,
0.0984407514333725,
-0.06758085638284683,
-0.09241973608732224,
-0.24835127592086792,
0.6367931365966797,
-0.11561284959316254,
0.05061826854944229,
-0.2480134218931198,
0.5165684223175049,
-0.18676204979419708,
-0.07498473674058914,
-0.07163047045469284,
-0.003488883376121521,
0.26986566185951233,
0.14319221675395966,
0.02327698841691017,
0.501124382019043,
-0.08642610162496567,
0.04653911665081978,
0.10625886917114258,
-0.028329700231552124,
0.20866650342941284,
0.06415140628814697,
0.10966779291629791,
-0.04499932751059532,
0.1842883974313736,
-0.22204962372779846,
-0.12960490584373474,
0.4378693103790283,
-0.33334657549858093,
0.3640974164009094,
0.07910673320293427,
0.05754292011260986,
0.16317275166511536,
0.044712912291288376,
0.0018770229071378708,
-0.20208556950092316,
0.07373128831386566,
0.10140275955200195,
0.1597452163696289,
0.1903139352798462,
-0.3452681303024292,
-0.04056210070848465,
0.12536312639713287,
0.05273435637354851,
0.013651736080646515,
0.014211703091859818,
-0.0673973485827446,
-0.08986206352710724,
-0.1306389570236206,
0.32000088691711426,
0.6371321082115173,
0.13296568393707275,
0.09114944934844971,
-0.035395607352256775,
-0.20032742619514465,
-0.05301012098789215,
0.285723477602005,
0.11538738012313843,
0.16989032924175262,
0.18357452750205994,
-0.0004646233282983303,
-0.055311787873506546,
-0.06529361009597778,
0.029304537922143936,
-0.12158530950546265,
0.08842677623033524,
-0.5587565302848816,
-0.04088451713323593,
-0.25920194387435913,
-0.08919563889503479,
-0.43265607953071594,
-0.3007503151893616,
-0.17858269810676575,
-0.5216221809387207,
-0.2752329111099243,
0.5282116532325745,
-0.044464386999607086,
-0.03420070558786392,
-0.17160022258758545,
0.19943010807037354,
0.016032909974455833,
0.015832796692848206,
0.22337433695793152,
-0.01645340770483017,
-0.06836098432540894,
-0.002143343910574913,
-0.1374313235282898,
-0.07098952680826187,
0.08676812797784805,
-0.14769761264324188,
0.21063774824142456,
-0.23775264620780945,
0.06442081183195114,
-0.1513041853904724,
-0.18046998977661133,
0.12542863190174103,
0.06077504903078079,
0.281502366065979,
-0.2824743092060089,
-0.6274940967559814,
0.12696591019630432,
0.5603988170623779,
-0.12143450975418091,
0.15522001683712006,
0.26528099179267883,
-0.20350244641304016,
-0.03975744917988777,
-0.18040627241134644,
-0.38379839062690735,
-0.21792244911193848,
-0.057930149137973785,
-0.23517604172229767,
0.22476552426815033,
0.11027170717716217,
0.2297353297472,
0.07258506864309311,
0.3910374939441681,
0.1411733478307724,
-0.15055689215660095,
-0.31732177734375,
0.4028310775756836,
-0.010666358284652233,
-0.13934747874736786,
0.011573884636163712,
0.024893462657928467,
0.07917039096355438,
0.16794537007808685,
-0.37149107456207275,
-0.0036194175481796265,
-0.19243477284908295,
0.12601923942565918,
-0.12661337852478027,
0.29279839992523193,
0.0760922059416771,
0.4290398955345154,
-0.007263587787747383,
-0.21534192562103271,
-0.3689444959163666,
0.1965475082397461,
0.18686148524284363,
0.39830347895622253,
-0.07782775163650513,
0.2956411838531494,
0.11763758957386017,
0.26978224515914917,
0.3012259304523468,
0.09387490153312683,
0.2848663330078125,
0.2522512674331665,
0.507684588432312,
-0.0031349435448646545,
-0.5560572743415833,
-0.3561556339263916,
-0.045551225543022156,
-0.2627851366996765,
-0.10991480946540833,
-0.003571314737200737,
0.028240323066711426,
-0.16965530812740326,
0.1573154181241989,
-0.1575002670288086,
-0.21933479607105255,
0.012328154407441616,
-0.23994845151901245,
0.14582280814647675,
-0.1426558643579483,
-0.06760047376155853,
-0.3264603316783905,
0.27064135670661926,
-0.17859216034412384,
0.04453492909669876,
0.20918679237365723,
-0.11651168763637543,
-0.4453100562095642,
-0.3459739685058594,
-0.4078502357006073,
0.38218826055526733,
0.08032230287790298,
0.3729104697704315,
0.07602784037590027,
-0.2197805643081665,
-0.2744779586791992,
0.03573744371533394,
0.8388233780860901,
0.2913857698440552,
-0.4263606667518616,
0.3884180188179016,
0.026392698287963867,
-0.5281164646148682,
-0.08506131172180176,
0.11995755136013031,
0.19184130430221558,
-0.2607582211494446,
0.39662179350852966,
-0.23300108313560486,
0.021718185395002365,
-0.049145735800266266,
0.50230872631073,
-0.19876909255981445,
0.01022238191217184,
-0.08150357007980347,
-0.2123834788799286,
-0.13267166912555695,
-0.21986517310142517,
0.0007043611258268356,
0.4571668207645416,
-0.3032931983470917,
0.031369660049676895,
0.026457451283931732,
-0.25838223099708557,
0.4094303846359253,
-0.3536216616630554,
0.6024320721626282,
-0.038514431565999985,
0.18866856396198273,
0.12868732213974,
0.13003352284431458,
0.383622407913208,
0.5007214546203613,
-0.23031553626060486,
-0.18330705165863037,
0.007826202549040318,
0.10632205009460449,
0.48727864027023315,
0.24226254224777222,
-0.15224282443523407,
-0.038313619792461395,
-0.05203218758106232,
-0.06738124787807465,
-0.34850192070007324,
-0.06870590895414352,
0.27658891677856445,
0.011287487111985683,
-0.45711085200309753,
-0.4127928614616394,
0.22284218668937683,
0.3240775763988495,
-0.11805376410484314,
0.3458714485168457,
-0.03905440866947174,
-0.4746811091899872,
0.3770338296890259,
-0.149074524641037,
1.0115314722061157,
-0.03027953952550888,
0.22358883917331696,
0.1392250657081604,
-0.22247081995010376,
0.16094735264778137,
0.28183674812316895,
0.058656834065914154,
-0.18981020152568817,
-0.25580543279647827,
-0.11556608229875565,
-0.27958670258522034,
0.04436285048723221,
0.25882166624069214,
-0.39289671182632446,
0.30990901589393616,
-0.44551998376846313,
-0.1018279641866684,
-0.1641743928194046,
0.04846122860908508,
-0.04640844464302063,
-0.22206741571426392,
-0.3521375060081482,
0.018546320497989655,
0.1050291657447815,
-0.06094479188323021,
-0.037462711334228516,
-0.02095823734998703,
-0.43718746304512024,
-0.15831878781318665,
-0.17351916432380676,
0.09850030392408371,
-0.1609056293964386,
0.7278355956077576,
-0.34503069519996643,
-0.36616480350494385,
-0.44559288024902344,
0.33167192339897156,
0.4819720387458801,
0.027244599536061287,
0.039824001491069794,
-0.10743997991085052,
-0.0060059428215026855,
0.08639993518590927,
-0.028122523799538612,
-0.23768839240074158,
0.19291919469833374,
0.17848974466323853,
-0.09193794429302216,
0.01548779010772705,
0.006707211025059223,
-0.331925630569458,
-0.13303688168525696,
0.04517051577568054,
0.00002872571349143982,
-0.27351805567741394,
-0.35780856013298035,
0.18851634860038757,
0.10143250226974487,
-0.11840461194515228,
0.026528125628829002,
0.35722649097442627,
-0.06514807045459747,
0.28231555223464966,
-0.36813199520111084,
-0.3245558738708496,
-0.09244251251220703,
0.5428093075752258,
0.3373906910419464,
-0.07092379778623581,
0.3994651436805725,
-0.006943978369235992,
-0.11548876762390137,
0.011119630187749863,
0.333204448223114,
0.1729925274848938,
0.18512797355651855,
0.42676860094070435,
0.006929628551006317,
-0.007010981440544128,
-0.19567307829856873,
0.354021281003952,
0.35039448738098145,
0.19561944901943207,
0.03137950971722603,
-0.21862579882144928,
-0.5530774593353271,
0.3396943211555481,
0.17062968015670776,
0.32767510414123535,
0.10496469587087631,
-0.3088969588279724,
-0.06846833229064941,
-0.02346080355346203,
-0.20582492649555206,
0.000021971063688397408,
-0.18705816566944122,
0.04345276206731796,
0.21844415366649628,
0.02877671830356121,
0.08326388150453568,
-0.010146010667085648,
0.09877485036849976,
-0.16898909211158752,
0.02335733361542225,
-0.09752053022384644,
0.06285442411899567,
0.17825143039226532,
0.07380121201276779,
-0.09040704369544983,
0.005143412388861179,
-0.4593445658683777,
0.014007797464728355,
-0.2294314205646515,
-0.1217433363199234,
0.67151939868927,
0.0510697141289711,
0.12149597704410553,
0.01588606834411621,
0.22858279943466187,
0.06803908944129944,
0.08780036121606827,
0.048475008457899094,
0.09635154902935028,
0.01001649722456932,
0.22225238382816315,
-0.27360326051712036,
-0.1764546036720276,
-0.3879477381706238,
-0.008969739079475403,
-0.12004256248474121,
-0.04709994047880173,
0.20318055152893066,
-0.16018682718276978,
-0.20051921904087067,
0.1108042448759079,
0.41104280948638916,
0.3873535692691803,
-0.1979261040687561,
0.19008317589759827,
-0.030457649379968643,
0.08743452280759811,
0.016890883445739746,
-0.2827233374118805,
-0.09832045435905457,
-0.18492566049098969,
-0.27577799558639526,
0.12547793984413147,
0.007580626755952835,
0.03577607870101929,
-0.39072954654693604,
0.01276126503944397,
0.6847847104072571,
-0.13351713120937347,
0.3405170440673828,
0.0607745461165905,
0.11563742160797119,
-0.010597284883260727,
-0.025071697309613228,
0.16195078194141388,
0.42233118414878845,
-0.009183712303638458,
-0.142073392868042,
0.09739301353693008,
0.37989386916160583,
-0.1379365175962448,
0.22997424006462097,
-0.2404862642288208,
0.04088228940963745,
0.1885400265455246,
-0.16508102416992188,
-0.024194128811359406,
0.07714681327342987,
0.1839597523212433,
-0.5160553455352783,
-0.24802984297275543,
0.002099616453051567,
0.4248029887676239,
-0.13857799768447876,
-0.1343551129102707,
0.09076423943042755,
-0.22465407848358154,
0.0027835965156555176,
-0.11045484244823456,
0.1289767026901245,
-0.39965349435806274,
0.17211127281188965,
-0.08197234570980072,
-0.009601570665836334,
-0.0884573757648468,
0.23555812239646912,
0.3815261423587799,
0.07217352837324142,
-0.2652967572212219,
-0.05073872208595276,
0.25516200065612793,
-0.06945306062698364,
0.191628560423851,
0.22599510848522186,
0.5554205179214478,
0.5561280250549316,
0.02555028721690178,
0.14063885807991028,
0.003201971761882305,
-0.21222634613513947,
-0.00535239651799202,
-0.002525458112359047,
-0.2935777008533478,
-0.3012850880622864,
0.4094851613044739,
0.1750783771276474,
0.0024358611553907394,
0.06747637689113617,
0.2661319375038147,
0.547737181186676,
-0.22978737950325012,
0.15645864605903625,
-0.159624844789505,
-0.20058193802833557,
0.0917251706123352,
0.002465978264808655,
-0.3389193117618561,
-0.2537001073360443,
0.3616604506969452,
-0.01870236173272133,
0.1398170292377472,
0.256612628698349,
0.05288752168416977,
0.05473412573337555,
0.18915203213691711,
0.28712454438209534,
-0.013072580099105835,
-0.5009987354278564,
-0.03567089885473251,
-0.41851529479026794,
-0.14725139737129211,
0.31429722905158997,
0.19106386601924896,
-0.18958714604377747,
0.3773263692855835,
0.14168515801429749,
-0.04108639806509018,
0.11771753430366516,
0.12736046314239502,
-0.17534667253494263,
0.02344794198870659,
-0.3930681347846985,
-0.18639177083969116,
0.21769560873508453,
-0.0762481838464737,
-0.060863494873046875,
-0.23663443326950073,
0.22871695458889008,
0.17134690284729004,
0.0196564719080925,
0.011934620328247547,
0.08364507555961609,
0.15882842242717743,
0.4142061769962311,
0.2572520077228546,
0.1691022664308548,
0.3638533651828766,
-0.10031706094741821,
0.004795802757143974,
0.0438842847943306,
-0.3505229651927948,
-0.15830457210540771,
0.1300312876701355,
-0.1268361359834671,
0.5008471012115479,
-0.5447794795036316,
0.08132697641849518,
-0.12667550146579742,
0.0849694162607193,
0.03440823405981064,
-0.40374991297721863,
-0.17586547136306763,
0.055066414177417755,
-0.013366956263780594,
0.018315667286515236,
0.13821282982826233,
0.23367947340011597,
0.0256984643638134,
0.6657628417015076,
0.060854896903038025,
-0.4091663062572479,
0.4009992480278015,
0.1377357393503189,
-0.1514991819858551,
0.049245815724134445,
-0.07796600461006165,
0.1827002465724945,
0.351688951253891,
-0.60990971326828,
-0.21573325991630554,
0.43582573533058167,
-0.2188643515110016,
-0.2990224063396454,
0.09337374567985535,
-0.09478078782558441,
-0.010687220841646194,
0.005379669368267059,
0.41361337900161743,
-0.12912452220916748,
-0.39088761806488037,
0.06671205163002014,
-0.20827803015708923
] |
https://github.com/huggingface/datasets/issues/2038 | outdated dataset_infos.json might fail verifications | Hi ! Thanks for reporting.
To update the dataset_infos.json you can run:
```
datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications
``` | The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc..
Could you please update this file or point me how to update this file?
Thank you. | 20 | outdated dataset_infos.json might fail verifications
The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc..
Could you please update this file or point me how to update this file?
Thank you.
Hi ! Thanks for reporting.
To update the dataset_infos.json you can run:
```
datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications
``` | [
-0.12009263038635254,
0.1984139084815979,
-0.1118750125169754,
0.1850016564130783,
0.11309711635112762,
0.21630367636680603,
0.1035633534193039,
0.49468377232551575,
0.20697224140167236,
-0.0703192800283432,
0.07293249666690826,
0.04722028225660324,
0.1981547325849533,
0.24174334108829498,
-0.06892558187246323,
-0.09112405776977539,
-0.02677098661661148,
0.26640743017196655,
0.0681157037615776,
0.08858619630336761,
-0.026623081415891647,
0.14072808623313904,
-0.19235765933990479,
-0.12822850048542023,
-0.21905967593193054,
-0.04065807908773422,
0.038716018199920654,
0.16559290885925293,
-0.5414215922355652,
-0.499253511428833,
0.43046271800994873,
0.47939035296440125,
0.08197126537561417,
0.3855617344379425,
-0.00010813284461619332,
-0.03767714649438858,
0.5466260313987732,
-0.02905876934528351,
-0.4618396461009979,
-0.05195452272891998,
-0.33420851826667786,
-0.18551401793956757,
-0.1411469280719757,
-0.08354399353265762,
-0.015258511528372765,
-0.3255067765712738,
-0.12399934232234955,
0.07895877957344055,
0.21358059346675873,
0.17263035476207733,
0.24692124128341675,
0.421130895614624,
0.5330945253372192,
-0.18487177789211273,
0.10944333672523499,
-0.04246192425489426,
0.18554231524467468,
0.44351810216903687,
0.32520759105682373,
0.031663261353969574,
0.292780339717865,
0.34820669889450073,
-0.06688133627176285,
-0.10156303644180298,
0.19297420978546143,
-0.16652989387512207,
0.13151156902313232,
-0.10643674433231354,
0.16574621200561523,
0.17772263288497925,
0.6516269445419312,
-0.3433515429496765,
-0.37374719977378845,
-0.08353132009506226,
-0.15507082641124725,
-0.19945643842220306,
0.3918646275997162,
-0.28938502073287964,
0.2753103971481323,
0.2195626050233841,
-0.19723592698574066,
-0.3501671254634857,
-0.01677200198173523,
0.055279746651649475,
-0.0843023955821991,
-0.10059908032417297,
-0.18427619338035583,
-0.14552423357963562,
0.14575041830539703,
-0.14320993423461914,
-0.13179068267345428,
-0.004624117165803909,
-0.3207756578922272,
0.059750914573669434,
-0.0772145688533783,
-0.29979121685028076,
-0.20403409004211426,
0.10481718182563782,
0.37505123019218445,
0.21490803360939026,
0.09419339895248413,
0.049750905483961105,
-0.34128108620643616,
0.1715231090784073,
0.14951442182064056,
0.1182384192943573,
0.43042823672294617,
-0.02081282064318657,
0.3718361258506775,
0.6826689839363098,
0.11445944011211395,
-0.047987088561058044,
-0.004207630641758442,
-0.24814832210540771,
0.024340476840734482,
0.02382577583193779,
0.3393542766571045,
-0.4905770421028137,
-0.06515325605869293,
0.18656139075756073,
-0.015993405133485794,
-0.055738016963005066,
0.23562821745872498,
0.3187641501426697,
-0.361293226480484,
0.1625732183456421,
0.1662806272506714,
-0.029656313359737396,
0.044611670076847076,
-0.3122764527797699,
-0.07639192044734955,
0.02612665481865406,
-0.028405824676156044,
0.2153085172176361,
0.37517547607421875,
-0.3757916986942291,
0.4739305377006531,
0.03533671051263809,
-0.1602194607257843,
0.04394207149744034,
-0.07445097714662552,
-0.12079767882823944,
-0.20176205039024353,
0.23919403553009033,
-0.02545110508799553,
0.050477251410484314,
-0.09739401936531067,
-0.012774314731359482,
0.027316175401210785,
-0.18168658018112183,
-0.3045567274093628,
-0.37620893120765686,
-0.24054984748363495,
0.2019520401954651,
-0.02346312440931797,
-0.11182081699371338,
-0.2365124523639679,
-0.10285507142543793,
0.17934386432170868,
-0.49978944659233093,
-0.045549727976322174,
-0.07300946116447449,
-0.1554115116596222,
-0.022038644179701805,
0.19264967739582062,
0.3321079611778259,
-0.0709211528301239,
0.0900682806968689,
0.06673452258110046,
-0.311529278755188,
-0.22412040829658508,
0.20146389305591583,
-0.08829841762781143,
0.1940479874610901,
-0.20103007555007935,
0.06037396192550659,
-0.040451593697071075,
-0.6165743470191956,
-0.38593074679374695,
0.10603681951761246,
0.22307135164737701,
-0.09324324131011963,
-0.13470351696014404,
-0.23676492273807526,
0.23664094507694244,
-0.2952272295951843,
-0.10736162960529327,
0.04899980127811432,
0.10508833825588226,
-0.023957572877407074,
-0.3267240822315216,
-0.22936776280403137,
-0.03331148624420166,
0.10303731262683868,
-0.04299207404255867,
0.019501321017742157,
0.03444208204746246,
0.45652732253074646,
0.14231300354003906,
-0.04094560071825981,
0.04695914685726166,
0.2812907099723816,
0.41664591431617737,
0.03359496593475342,
-0.04476701095700264,
-0.040899910032749176,
-0.5700749158859253,
0.20993569493293762,
0.14074407517910004,
-0.12542219460010529,
-0.12508124113082886,
-0.16385327279567719,
-0.2609325647354126,
-0.05978819727897644,
-0.06570400297641754,
-0.017875023186206818,
0.15558794140815735,
0.15927991271018982,
0.33218151330947876,
0.1094369888305664,
-0.11914443969726562,
0.21301214396953583,
-0.5373790264129639,
0.178278848528862,
-0.2622484862804413,
0.177933469414711,
-0.030457699671387672,
0.12532036006450653,
0.3239292502403259,
-0.09931046515703201,
0.08796622604131699,
-0.12908907234668732,
-0.0831439420580864,
0.502729594707489,
0.009386522695422173,
0.13579487800598145,
0.2471979558467865,
0.37285348773002625,
0.05439727008342743,
-0.08521731197834015,
0.08083658665418625,
-0.16526757180690765,
-0.041965581476688385,
0.03430841118097305,
-0.26733192801475525,
0.03268163651227951,
-0.08498731255531311,
-0.06738471239805222,
0.2248898297548294,
-0.07411940395832062,
0.3140820264816284,
-0.029769010841846466,
-0.03888271749019623,
-0.2751835882663727,
-0.17771168053150177,
-0.07517363131046295,
0.3607105016708374,
-0.14301368594169617,
-0.06265774369239807,
0.1559811383485794,
0.4095160663127899,
-0.020628996193408966,
-0.09067543596029282,
0.19840562343597412,
0.08152585476636887,
-0.22911247611045837,
-0.0816606655716896,
0.2641116976737976,
0.23457446694374084,
0.2276795357465744,
-0.014012549072504044,
0.18948616087436676,
0.07117661088705063,
-0.05619266629219055,
0.1673860400915146,
-0.16918502748012543,
-0.00976001936942339,
0.4036225378513336,
0.12568356096744537,
0.010898666456341743,
-0.2650369107723236,
0.0454338900744915,
0.2030116766691208,
0.5164204239845276,
-0.3069397509098053,
-0.07801897078752518,
-0.20331300795078278,
-0.022365009412169456,
-0.0027795741334557533,
-0.34371811151504517,
-0.3578512966632843,
-0.1349753588438034,
0.06799881160259247,
0.4726889133453369,
0.11569288372993469,
0.12486320734024048,
-0.053858064115047455,
0.2224537879228592,
0.09254034608602524,
-0.16514475643634796,
-0.18714027106761932,
0.06587567925453186,
-0.09791088849306107,
0.055677372962236404,
0.39260172843933105,
-0.0635673925280571,
0.3531547486782074,
-0.5244259238243103,
-0.174499049782753,
-0.5462663173675537,
-0.48361366987228394,
0.21966369450092316,
-0.20578166842460632,
0.2577604651451111,
0.2761024832725525,
0.317279577255249,
0.12615671753883362,
-0.00008214730769395828,
0.15535904467105865,
-0.2760592997074127,
-0.35460346937179565,
-0.2557944655418396,
-0.019166404381394386,
-0.10921648144721985,
-0.13519218564033508,
-0.36983245611190796,
0.10125399380922318,
-0.21008680760860443,
0.10207124054431915,
0.0008239448070526123,
0.02672397717833519,
0.2857051491737366,
0.08145193010568619,
0.1861860156059265,
-0.1705826371908188,
0.20646528899669647,
-0.2983561158180237,
-0.7436745166778564,
0.09506983309984207,
-0.19936159253120422,
-0.22882066667079926,
0.011196453124284744,
0.2518717050552368,
0.29662492871284485,
-0.06406477093696594,
-0.4512532949447632,
-0.39206352829933167,
-0.09038752317428589,
0.1593724489212036,
0.016509752720594406,
-0.15543347597122192,
0.3954576849937439,
-0.09977664798498154,
-0.1225270926952362,
-0.1927509307861328,
-0.35375383496284485,
0.11857517808675766,
-0.0744081512093544,
0.3598250150680542,
-0.03532871603965759,
0.2783927023410797,
-0.006932098418474197,
0.552736759185791,
0.063715860247612,
-0.3731846511363983,
0.2554655969142914,
0.03617225959897041,
0.5047958493232727,
-0.12037811428308487,
-0.18761460483074188,
-0.08813375979661942,
-0.0018535256385803223,
0.13788023591041565,
0.16375339031219482,
0.08055317401885986,
0.19375906884670258,
-0.20146536827087402,
-0.36414846777915955,
-0.461673766374588,
-0.18763920664787292,
-0.17250147461891174,
0.2224399894475937,
0.30642643570899963,
-0.03673430532217026,
0.038223475217819214,
-0.10443006455898285,
-0.03856417164206505,
0.2388700693845749,
0.621221125125885,
0.057910799980163574,
0.11479772627353668,
-0.2876327335834503,
0.20324081182479858,
-0.1122882142663002,
0.40981388092041016,
-0.051404133439064026,
0.28838396072387695,
-0.05887468159198761,
0.08354382961988449,
-0.08757667243480682,
-0.290847510099411,
0.32744497060775757,
-0.18362115323543549,
0.32184356451034546,
0.04583301022648811,
-0.10384439677000046,
0.023511866107583046,
-0.14977502822875977,
-0.12958337366580963,
0.1956033557653427,
0.2656335234642029,
0.49551892280578613,
-0.4432011842727661,
-0.3598160743713379,
0.3211880624294281,
0.06737517565488815,
-0.05598394200205803,
-0.10246194899082184,
-0.15674321353435516,
-0.1922602653503418,
-0.27636122703552246,
-0.02301613986492157,
-0.22170421481132507,
0.03768668323755264,
-0.15698841214179993,
0.0427967868745327,
0.13483482599258423,
-0.016849083825945854,
0.07923205941915512,
0.2699028551578522,
0.20044270157814026,
0.15926484763622284,
0.26875004172325134,
0.21280346810817719,
0.2716594934463501,
0.6806365251541138,
0.3026639223098755,
-0.09935475885868073,
-0.12452715635299683,
-0.20115086436271667,
-0.0846627727150917,
0.06734015047550201,
0.16497617959976196,
-0.04754886031150818,
0.15966090559959412,
0.3370105028152466,
-0.14893406629562378,
-0.016989171504974365,
0.08541969954967499,
0.4840281307697296,
0.021070975810289383,
-0.2948284447193146,
-0.27549251914024353,
0.24349036812782288,
0.1808881312608719,
-0.0636725053191185,
0.1274701952934265,
0.10301395505666733,
-0.1275833547115326,
-0.23486459255218506,
0.15910759568214417,
0.7583658695220947,
0.08679665625095367,
-0.3215253949165344,
0.1678166389465332,
-0.20785105228424072,
0.33447009325027466,
-0.3076874613761902,
-0.09561619907617569,
-0.3612343668937683,
-0.06292462348937988,
0.0182159673422575,
0.051824938505887985,
0.20388442277908325,
-0.2713726758956909,
-0.42206311225891113,
0.21605978906154633,
-0.2913263440132141,
0.049043186008930206,
-0.1281302571296692,
0.43550804257392883,
-0.15188691020011902,
-0.053398247808218,
-0.4187334477901459,
0.22623980045318604,
0.03778597712516785,
0.11341075599193573,
-0.2614867091178894,
-0.15081864595413208,
0.08850404620170593,
-0.43873488903045654,
-0.23002301156520844,
-0.008429955691099167,
0.08563606441020966,
-0.07680203020572662,
0.18556126952171326,
0.2683864235877991,
0.119718536734581,
0.03166922181844711,
0.40121030807495117,
0.23935726284980774,
-0.3454670310020447,
0.08142419904470444,
-0.31299859285354614,
-0.17959101498126984,
-0.008828294463455677,
-0.07925689220428467,
0.35970625281333923,
-0.2641717195510864,
-0.32392117381095886,
-0.01886211335659027,
-0.0921395868062973,
-0.3278946876525879,
-0.018003016710281372,
-0.2467568963766098,
-0.2671569585800171,
-0.2533736824989319,
-0.04362611845135689,
0.06423544138669968,
-0.1675364077091217,
-0.27513572573661804,
0.21324020624160767,
-0.0257318913936615,
-0.008235258050262928,
0.010275639593601227,
0.2115836888551712,
-0.18408209085464478,
-0.06409864127635956,
0.5821512937545776,
-0.2382153570652008,
0.0018264204263687134,
0.44498366117477417,
0.04542975500226021,
-0.08735866844654083,
-0.3670881688594818,
-0.2623550295829773,
-0.020443959161639214,
-0.2235722541809082,
0.07129156589508057,
0.1381036639213562,
0.2234356850385666,
0.01320948451757431,
0.2815972864627838,
0.23633810877799988,
-0.08033432811498642,
0.2098328322172165,
-0.5782487392425537,
-0.3554050326347351,
0.24155062437057495,
-0.20800770819187164,
0.13504938781261444,
-0.1409764289855957,
0.14012061059474945,
-0.037534505128860474,
-0.023221658542752266,
-0.3887762129306793,
0.2520698010921478,
-0.17945094406604767,
0.1692461222410202,
0.33532238006591797,
0.0583295002579689,
0.27808231115341187,
-0.1733771115541458,
0.09139060974121094,
-0.101633220911026,
-0.36892855167388916,
-0.19692984223365784,
-0.17188198864459991,
0.12637242674827576,
0.03598753735423088,
0.06179197132587433,
0.13934820890426636,
-0.04022304713726044,
-0.2844001054763794,
0.04750866815447807,
-0.047383785247802734,
-0.04632652550935745,
0.13113181293010712,
0.17526637017726898,
0.019459806382656097,
0.26572588086128235,
0.05249468982219696,
-0.0032036006450653076,
0.19485339522361755,
0.12502457201480865,
-0.07693564146757126,
0.14018544554710388,
-0.2970595061779022,
-0.137270987033844,
0.17316441237926483,
0.2029391974210739,
0.1774638295173645,
-0.1687951683998108,
0.19193151593208313,
-0.2113260179758072,
0.11384829878807068,
0.21488593518733978,
0.3608192801475525,
0.5215640068054199,
-0.17094796895980835,
0.028968604281544685,
0.13246315717697144,
0.26877227425575256,
-0.16445626318454742,
0.036651384085416794,
0.25811392068862915,
-0.0537409707903862,
-0.15294353663921356,
0.0027489885687828064,
0.34825730323791504,
-0.21349771320819855,
0.20030319690704346,
0.27797627449035645,
0.3267616927623749,
-0.18415452539920807,
0.053251054137945175,
0.22372733056545258,
-0.2742607891559601,
-0.0029418542981147766,
0.24843844771385193,
0.019426776096224785,
0.0884084701538086,
0.21865423023700714,
-0.15884119272232056,
0.08721267431974411,
-0.11641227453947067,
0.37958526611328125,
-0.05888461321592331,
-0.25835779309272766,
0.20924600958824158,
0.4876079559326172,
0.26358866691589355,
-0.07305332273244858,
0.07533642649650574,
0.4748779833316803,
0.08221554011106491,
-0.04851433262228966,
-0.5303443670272827,
0.15423478186130524,
-0.11897251754999161,
-0.13072223961353302,
-0.2884328365325928,
-0.3437519669532776,
0.012443065643310547,
0.009209960699081421,
-0.04305919632315636,
0.02564367651939392,
0.06882252544164658,
-0.004309527575969696,
-0.3971509337425232,
-0.580051839351654,
-0.1741507649421692,
0.25510260462760925,
0.1090601310133934,
-0.17220152914524078,
0.2795853316783905,
0.2570462226867676,
-0.15205448865890503,
0.3070886731147766,
0.7304965853691101,
0.42031726241111755,
0.2456783503293991,
0.2398926466703415,
-0.10113044083118439,
-0.3405100703239441,
0.00492398627102375,
0.05880343168973923,
0.4122329354286194,
0.02309855818748474,
-0.35341283679008484,
0.2803243100643158,
0.18930599093437195,
-0.17523564398288727,
0.07892575860023499,
-0.21209515631198883,
0.0533219538629055,
-0.11633267998695374,
-0.04876326769590378,
0.15419185161590576,
0.14082249999046326,
-0.3030187785625458,
0.1664285659790039,
-0.3497418463230133,
-0.05815351754426956,
0.2189168632030487,
0.23018690943717957,
0.18889477849006653,
0.04031439125537872,
0.11504031717777252,
-0.03522094339132309,
0.5214560031890869,
0.3677419126033783,
-0.14610478281974792,
0.003299487754702568,
-0.281792551279068,
-0.6077658534049988,
-0.012870438396930695,
0.030386433005332947,
0.11562822759151459,
-0.07653117179870605,
-0.02579275518655777,
0.10600323230028152,
0.15668416023254395,
0.31022292375564575,
-0.22418859601020813,
-0.11529338359832764,
-0.3192282021045685,
-0.3017613887786865,
0.2308923900127411,
-0.1066342294216156,
-0.06299977749586105,
0.124540776014328,
-0.1716698259115219,
0.09544029831886292,
-0.03989617899060249,
0.02470177412033081,
-0.07323771715164185,
0.32765108346939087,
-0.26396533846855164,
0.07178154587745667,
0.5029472708702087,
0.26132845878601074,
0.47527948021888733,
-0.22933343052864075,
-0.2174244523048401,
-0.4161621630191803,
-0.0664636492729187,
-0.27672135829925537,
0.43281370401382446,
0.13065075874328613,
0.12947611510753632,
-0.027789447456598282,
-0.10767334699630737,
-0.24237695336341858,
0.5078527927398682,
0.032611750066280365,
-0.2268679440021515,
-0.41832906007766724,
-0.05547091364860535,
0.06937036663293839,
-0.06511397659778595,
-0.06515507400035858,
0.028129102662205696,
0.0025857537984848022,
0.06134718656539917,
-0.5129872560501099,
-0.08759190142154694,
0.5630142688751221,
-0.05815725773572922,
0.010821200907230377,
-0.07101789116859436,
0.2790166139602661,
0.17255868017673492,
-0.35367241501808167,
-0.6980356574058533,
0.29936134815216064,
0.27107247710227966,
0.016405396163463593,
-0.2873924672603607,
0.3345276713371277,
-0.08332386612892151,
0.28246763348579407,
-0.097092404961586,
0.21477137506008148,
0.03052711673080921,
-0.2756706476211548,
-0.10908865928649902,
0.029915526509284973
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error:
```
dataset = load_dataset("wikipedia", "20200501.bg")
print(dataset)
```
Your library is my only chance to be able training the models at scale and I am grateful for your help.
| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 62 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error:
```
dataset = load_dataset("wikipedia", "20200501.bg")
print(dataset)
```
Your library is my only chance to be able training the models at scale and I am grateful for your help.
| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi @dorost1234,
Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner.
`dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
I also read in error stack trace that:
> Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc.
Worked perfectly fine after this (Ignore these warnings)

| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 83 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hi @dorost1234,
Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner.
`dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
I also read in error stack trace that:
> Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc.
Worked perfectly fine after this (Ignore these warnings)

| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | For wikipedia dataset, looks like the files it's looking for are no longer available. For `bg`, I checked [here](https://dumps.wikimedia.org/bgwiki/). For this I think `dataset_infos.json` for this dataset has to made again? You'll have to load this dataset also using beam runner.
| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 41 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
For wikipedia dataset, looks like the files it's looking for are no longer available. For `bg`, I checked [here](https://dumps.wikimedia.org/bgwiki/). For this I think `dataset_infos.json` for this dataset has to made again? You'll have to load this dataset also using beam runner.
| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Hello @dorost1234,
Indeed, Wikipedia datasets need a lot of preprocessing and this is done using Apache Beam. That is the reason why it is required that you install Apache Beam in order to preform this preprocessing.
For some specific default parameters (English Wikipedia), Hugging Face has already preprocessed the dataset for you (and it is stored in the cloud). That is the reason why you do not get the error for English: the preprocessing is already done by HF and you just get the preprocessed dataset; Apache Beam is not required in that case. | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 94 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hello @dorost1234,
Indeed, Wikipedia datasets need a lot of preprocessing and this is done using Apache Beam. That is the reason why it is required that you install Apache Beam in order to preform this preprocessing.
For some specific default parameters (English Wikipedia), Hugging Face has already preprocessed the dataset for you (and it is stored in the cloud). That is the reason why you do not get the error for English: the preprocessing is already done by HF and you just get the preprocessed dataset; Apache Beam is not required in that case. | [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
I really appreciate if huggingface can kindly provide preprocessed
datasets, processing these datasets require sufficiently large resources
and I do not have unfortunately access to, and perhaps many others too.
thanks
On Fri, Mar 12, 2021 at 9:04 AM Albert Villanova del Moral <
***@***.***> wrote:
> Hello @dorost1234 <https://github.com/dorost1234>,
>
> Indeed, Wikipedia datasets need a lot of preprocessing and this is done
> using Apache Beam. That is the reason why it is required that you install
> Apache Beam in order to preform this preprocessing.
>
> For some specific default parameters (English Wikipedia), Hugging Face has
> already preprocessed the dataset for you (and it is stored in the cloud).
> That is the reason why you do not get the error for English: the
> preprocessing is already done by HF and you just get the preprocessed
> dataset; Apache Beam is not required in that case.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2035#issuecomment-797310899>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMXACFQZAGMK4VGXRETTDHDI3ANCNFSM4ZA5R2UA>
> .
>
| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 185 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hi
I really appreciate if huggingface can kindly provide preprocessed
datasets, processing these datasets require sufficiently large resources
and I do not have unfortunately access to, and perhaps many others too.
thanks
On Fri, Mar 12, 2021 at 9:04 AM Albert Villanova del Moral <
***@***.***> wrote:
> Hello @dorost1234 <https://github.com/dorost1234>,
>
> Indeed, Wikipedia datasets need a lot of preprocessing and this is done
> using Apache Beam. That is the reason why it is required that you install
> Apache Beam in order to preform this preprocessing.
>
> For some specific default parameters (English Wikipedia), Hugging Face has
> already preprocessed the dataset for you (and it is stored in the cloud).
> That is the reason why you do not get the error for English: the
> preprocessing is already done by HF and you just get the preprocessed
> dataset; Apache Beam is not required in that case.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2035#issuecomment-797310899>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMXACFQZAGMK4VGXRETTDHDI3ANCNFSM4ZA5R2UA>
> .
>
| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi everyone
thanks for the helpful pointers, I did it as @bhavitvyamalik suggested, for me this freezes on this command for several hours,
`Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
`
Do you know how long this takes? Any specific requirements the machine should have? like very large memory or so? @lhoestq
thanks
| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 65 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hi everyone
thanks for the helpful pointers, I did it as @bhavitvyamalik suggested, for me this freezes on this command for several hours,
`Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
`
Do you know how long this takes? Any specific requirements the machine should have? like very large memory or so? @lhoestq
thanks
| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | HI @dorost1234,
The dataset size is 631.84 MiB so depending on your internet speed it'll take some time. You can monitor your internet speed meanwhile to see if it's downloading the dataset or not (use `nload` if you're using linux/mac to monitor the same). In my case it took around 3-4 mins. Since they haven't used `download_and_extract` here that's why there's no download progress bar. | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 65 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
HI @dorost1234,
The dataset size is 631.84 MiB so depending on your internet speed it'll take some time. You can monitor your internet speed meanwhile to see if it's downloading the dataset or not (use `nload` if you're using linux/mac to monitor the same). In my case it took around 3-4 mins. Since they haven't used `download_and_extract` here that's why there's no download progress bar. | [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
thanks, my internet speed should be good, but this really freezes for me, this is how I try to get this dataset:
`from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
the output I see if different also from what you see after writing this command:
`Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...`
do you have any idea why it might get freezed? anything I am missing @lhoestq @bhavitvyamalik. Do I need maybe to set anything special for apache-beam?
thanks a lot
On Tue, Mar 16, 2021 at 9:03 AM Bhavitvya Malik ***@***.***>
wrote:
> HI @dorost1234 <https://github.com/dorost1234>,
> The dataset size is 631.84 MiB so depending on your internet speed it'll
> take some time. You can monitor your internet speed meanwhile to see if
> it's downloading the dataset or not (use nload if you're using linux/mac
> to monitor the same). In my case it took around 3-4 mins. Since they
> haven't used download_and_extract here that's why there's no download
> progress bar.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2035#issuecomment-800044303>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMQIHNNLM2LGG6QKZ73TD4GDJANCNFSM4ZA5R2UA>
> .
>
| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 212 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hi
thanks, my internet speed should be good, but this really freezes for me, this is how I try to get this dataset:
`from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
the output I see if different also from what you see after writing this command:
`Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...`
do you have any idea why it might get freezed? anything I am missing @lhoestq @bhavitvyamalik. Do I need maybe to set anything special for apache-beam?
thanks a lot
On Tue, Mar 16, 2021 at 9:03 AM Bhavitvya Malik ***@***.***>
wrote:
> HI @dorost1234 <https://github.com/dorost1234>,
> The dataset size is 631.84 MiB so depending on your internet speed it'll
> take some time. You can monitor your internet speed meanwhile to see if
> it's downloading the dataset or not (use nload if you're using linux/mac
> to monitor the same). In my case it took around 3-4 mins. Since they
> haven't used download_and_extract here that's why there's no download
> progress bar.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2035#issuecomment-800044303>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMQIHNNLM2LGG6QKZ73TD4GDJANCNFSM4ZA5R2UA>
> .
>
| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | I tried this on another machine (followed the same procedure I've mentioned above). This is what it shows (during the freeze period) for me:
```
>>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')
Downloading: 5.26kB [00:00, 1.23MB/s]
Downloading: 1.40kB [00:00, 327kB/s]
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
Connecting anonymously.
WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be.
```
After around 10 minutes, here's the loading of dataset:
```
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s]
Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data.
``` | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 156 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
I tried this on another machine (followed the same procedure I've mentioned above). This is what it shows (during the freeze period) for me:
```
>>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')
Downloading: 5.26kB [00:00, 1.23MB/s]
Downloading: 1.40kB [00:00, 327kB/s]
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
Connecting anonymously.
WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be.
```
After around 10 minutes, here's the loading of dataset:
```
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s]
Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data.
``` | [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2035 | wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
I honestly also now tried on another machine and nothing shows up after
hours of waiting. Are you sure you have not set any specific setting? maybe
google cloud which seems it is used here, needs some credential setting?
thanks for any suggestions on this
On Tue, Mar 16, 2021 at 10:02 AM Bhavitvya Malik ***@***.***>
wrote:
> I tried this on another machine (followed the same procedure I've
> mentioned above). This is what it shows (during the freeze period) for me:
>
> >>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')
> Downloading: 5.26kB [00:00, 1.23MB/s]
> Downloading: 1.40kB [00:00, 327kB/s]
> Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
> WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
> Connecting anonymously.
> WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be.
>
> After around 10 minutes, here's the loading of dataset:
>
> 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources]
> 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s]
> 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s]
> Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2035#issuecomment-800081772>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMX6A2ZTRZUIIZVFRCDTD4NC3ANCNFSM4ZA5R2UA>
> .
>
| Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 259 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hi
I honestly also now tried on another machine and nothing shows up after
hours of waiting. Are you sure you have not set any specific setting? maybe
google cloud which seems it is used here, needs some credential setting?
thanks for any suggestions on this
On Tue, Mar 16, 2021 at 10:02 AM Bhavitvya Malik ***@***.***>
wrote:
> I tried this on another machine (followed the same procedure I've
> mentioned above). This is what it shows (during the freeze period) for me:
>
> >>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')
> Downloading: 5.26kB [00:00, 1.23MB/s]
> Downloading: 1.40kB [00:00, 327kB/s]
> Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
> WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
> Connecting anonymously.
> WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be.
>
> After around 10 minutes, here's the loading of dataset:
>
> 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources]
> 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s]
> 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s]
> Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/2035#issuecomment-800081772>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AS37NMX6A2ZTRZUIIZVFRCDTD4NC3ANCNFSM4ZA5R2UA>
> .
>
| [
-0.25449809432029724,
-0.07792063057422638,
-0.15375827252864838,
0.4308664798736572,
0.3997032642364502,
0.35046157240867615,
0.13685032725334167,
0.5331583619117737,
0.18932723999023438,
0.0235845148563385,
-0.177303746342659,
-0.09421760588884354,
0.09440343081951141,
0.011184087023139,
-0.029704950749874115,
-0.4591733515262604,
-0.0672905370593071,
0.029536910355091095,
-0.13527143001556396,
-0.1168934553861618,
-0.25196290016174316,
0.1256147027015686,
-0.07917477935552597,
-0.04902847111225128,
-0.03874531760811806,
-0.18283993005752563,
-0.09583514928817749,
-0.20730525255203247,
-0.3507465124130249,
-0.24086464941501617,
0.3545782268047333,
0.01925746724009514,
0.3101121187210083,
0.1529972404241562,
-0.00011143677693326026,
-0.05096466839313507,
0.31311631202697754,
-0.23579451441764832,
-0.29361221194267273,
-0.2888575792312622,
-0.07208944857120514,
-0.3261856734752655,
-0.09043920040130615,
-0.42003166675567627,
0.1274465024471283,
0.046682458370923996,
0.08067134767770767,
-0.131801038980484,
0.07575744390487671,
0.299225389957428,
0.24687135219573975,
-0.14260324835777283,
0.313434362411499,
-0.14573779702186584,
0.3651961386203766,
-0.37770819664001465,
-0.028033720329403877,
0.3395860493183136,
0.2187209278345108,
0.07134266197681427,
0.21547949314117432,
0.22204305231571198,
-0.23414042592048645,
0.013499251566827297,
0.0482245609164238,
-0.2912238538265228,
0.22220557928085327,
-0.6297014951705933,
0.5206419825553894,
0.5344287157058716,
0.8290326595306396,
-0.1283513903617859,
-0.08746730536222458,
0.07239194959402084,
-0.026059191673994064,
-0.03137458860874176,
-0.0557403489947319,
0.481979638338089,
-0.18932615220546722,
0.09759834408760071,
0.12616509199142456,
-0.12543000280857086,
-0.15671899914741516,
0.4228464365005493,
-0.12413656711578369,
0.4435884356498718,
-0.05271994322538376,
0.21125975251197815,
-0.02166670933365822,
-0.10270203649997711,
-0.2636418342590332,
-0.0696592852473259,
-0.09616002440452576,
0.29332154989242554,
-0.2793981730937958,
0.01963573694229126,
-0.16150176525115967,
0.05564719811081886,
0.3511354923248291,
-0.1503831148147583,
-0.23462098836898804,
-0.04507818818092346,
0.09601017087697983,
0.15757468342781067,
0.18015047907829285,
0.16378282010555267,
0.06204836070537567,
-0.20000676810741425,
0.27828168869018555,
0.3079039454460144,
-0.0842115581035614,
-0.07617097347974777,
-0.2100430577993393,
-0.22305649518966675,
-0.29475700855255127,
0.09442927688360214,
0.08752940595149994,
-0.20317135751247406,
-0.17794694006443024,
0.007113548927009106,
-0.14436075091362,
-0.01943887211382389,
-0.2023947387933731,
0.3628208041191101,
-0.15014265477657318,
0.43123859167099,
0.17790132761001587,
0.3288224935531616,
-0.10357256233692169,
-0.26131007075309753,
-0.017352590337395668,
0.30654841661453247,
-0.1393193155527115,
-0.10366035252809525,
0.2187829464673996,
-0.10991568863391876,
0.264851838350296,
-0.08937197178602219,
-0.10313799977302551,
-0.17641159892082214,
-0.15369097888469696,
-0.36956754326820374,
-0.1791037917137146,
0.23040883243083954,
0.16197660565376282,
0.2839276194572449,
0.1476137638092041,
-0.24474768340587616,
-0.23058083653450012,
0.12074515223503113,
-0.35961517691612244,
-0.16815489530563354,
-0.2051549255847931,
0.19446848332881927,
0.06109803915023804,
-0.05465047061443329,
-0.31600695848464966,
0.28766414523124695,
0.3030639588832855,
-0.142398864030838,
0.11807268857955933,
-0.00754595547914505,
-0.02325413003563881,
-0.22518984973430634,
0.1790110021829605,
0.4908006191253662,
-0.3999597430229187,
0.0918976366519928,
-0.023850735276937485,
-0.033712536096572876,
0.18978175520896912,
0.18429706990718842,
-0.1779528260231018,
0.2565414607524872,
-0.09788427501916885,
0.03816002607345581,
0.21013110876083374,
-0.32144221663475037,
-0.5776352286338806,
0.1860538274049759,
0.1134101152420044,
-0.1670031100511551,
0.09947942942380905,
0.016000602394342422,
0.27503031492233276,
-0.049387525767087936,
0.05245435982942581,
0.3956748843193054,
0.13683763146400452,
-0.10564491897821426,
-0.3274504542350769,
-0.5078234076499939,
0.32648175954818726,
0.16331790387630463,
0.4547146260738373,
-0.13227027654647827,
0.2759852111339569,
0.29172176122665405,
0.31917446851730347,
-0.1915476769208908,
0.12467905133962631,
0.2333603948354721,
-0.008948378264904022,
-0.0445752814412117,
-0.00256238947622478,
-0.3310277760028839,
-0.30975836515426636,
0.14775994420051575,
0.10291315615177155,
0.16546468436717987,
-0.16095508635044098,
0.029683083295822144,
-0.31618958711624146,
-0.08880721032619476,
-0.1953117996454239,
0.10326915979385376,
0.19956424832344055,
-0.10527636110782623,
0.1195925772190094,
0.4854585528373718,
0.12651675939559937,
-0.09945910423994064,
-0.4156903028488159,
-0.09485287964344025,
-0.17893405258655548,
0.09233184158802032,
-0.217428520321846,
0.20449206233024597,
0.033680662512779236,
0.02580863982439041,
0.17968395352363586,
0.07305240631103516,
-0.16072389483451843,
-0.011060886085033417,
-0.07845185697078705,
-0.1035444587469101,
0.13546296954154968,
0.1169639304280281,
0.13312792778015137,
-0.4173751473426819,
0.19203022122383118,
0.10847942531108856,
0.32974645495414734,
-0.1357724517583847,
0.11781615763902664,
0.12223673611879349,
0.03997358679771423,
0.3655339479446411,
0.12343068420886993,
0.1498316079378128,
0.455599844455719,
0.03052620217204094,
0.12635454535484314,
-0.004974786192178726,
0.32711920142173767,
0.15566062927246094,
0.012748897075653076,
-0.13295972347259521,
-0.029277987778186798,
-0.11351432651281357,
0.3166726529598236,
-0.08453395962715149,
0.2671481668949127,
0.292759507894516,
-0.07651890069246292,
-0.004859849810600281,
-0.09782692044973373,
0.15339873731136322,
0.05220761150121689,
0.06990526616573334,
0.10658907145261765,
-0.09984397143125534,
0.3596494793891907,
-0.12939244508743286,
0.2643091678619385,
0.17554239928722382,
0.1863330751657486,
0.20913532376289368,
0.13508011400699615,
-0.011175590567290783,
-0.18828296661376953,
-0.12967942655086517,
0.06999358534812927,
0.3717176914215088,
0.06918366253376007,
0.16594533622264862,
-0.04843435436487198,
-0.14185982942581177,
0.08419077843427658,
-0.05239173769950867,
-0.25094297528266907,
-0.21631743013858795,
-0.12563802301883698,
-0.08572863042354584,
0.0915832668542862,
-0.00010502617806196213,
-0.3266669511795044,
-0.07210208475589752,
0.06216633319854736,
-0.3203505575656891,
-0.16056808829307556,
-0.2981230914592743,
-0.36845019459724426,
0.07678739726543427,
0.38712966442108154,
0.11129023134708405,
0.2952095866203308,
-0.33262893557548523,
-0.19187861680984497,
-0.08994564414024353,
-0.26811113953590393,
-0.01431400328874588,
-0.15697044134140015,
0.24139532446861267,
-0.024116843938827515,
0.7152194976806641,
-0.17999571561813354,
-0.2514212131500244,
0.18464861810207367,
-0.007019668817520142,
0.06587456166744232,
0.2497710883617401,
-0.15347830951213837,
-0.04292381927371025,
0.08453552424907684,
-0.48565366864204407,
-0.5155770182609558,
-0.2696566581726074,
0.012519340962171555,
0.04851805791258812,
0.0878061056137085,
0.1686408668756485,
0.19248446822166443,
0.0680268257856369,
0.12118785828351974,
0.1809067726135254,
-0.19004331529140472,
-0.1518687605857849,
0.4496892988681793,
-0.027413155883550644,
-0.4299623370170593,
0.18818679451942444,
0.010994311422109604,
0.3149317502975464,
0.007927426137030125,
-0.6572359204292297,
0.14411236345767975,
-0.27635902166366577,
0.24994316697120667,
-0.02199339121580124,
0.18347661197185516,
0.11434422433376312,
-0.21369701623916626,
0.04797232896089554,
0.044995613396167755,
0.10591001808643341,
-0.04062104970216751,
-0.20952531695365906,
0.2556217610836029,
0.02994559146463871,
0.29618555307388306,
0.16442091763019562,
0.6888408064842224,
0.05485554412007332,
0.16584086418151855,
0.4367814064025879,
0.23858237266540527,
0.23103182017803192,
-0.2314286231994629,
-0.3645717203617096,
0.06057451292872429,
-0.23949182033538818,
-0.031003184616565704,
0.26701223850250244,
-0.16232013702392578,
-0.467417448759079,
-0.3477126359939575,
-0.2426842749118805,
-0.36746716499328613,
-0.21077099442481995,
0.15399783849716187,
-0.050181806087493896,
0.08294022083282471,
0.057596635073423386,
0.12039866298437119,
0.02157362923026085,
-0.2823496460914612,
0.21378956735134125,
0.5317093133926392,
-0.24860155582427979,
0.16858956217765808,
-0.27826690673828125,
-0.3421221673488617,
-0.41263410449028015,
0.2524552345275879,
0.07770690321922302,
0.41476118564605713,
-0.09380225092172623,
0.34991827607154846,
0.20117974281311035,
-0.08926895260810852,
0.2906224727630615,
-0.17024412751197815,
0.12305053323507309,
0.1972469538450241,
0.10499341785907745,
-0.21521735191345215,
-0.06243979185819626,
-0.29433295130729675,
-0.016688041388988495,
0.30541667342185974,
-0.04445543885231018,
-0.6709661483764648,
0.08432893455028534,
-0.0425858348608017,
0.5003300309181213,
-0.057177066802978516,
-0.017349714413285255,
-0.16185666620731354,
-0.5653649568557739,
-0.4854041039943695,
-0.027687489986419678,
0.18957558274269104,
0.4046095907688141,
-0.19720910489559174,
0.26289916038513184,
-0.10207860171794891,
0.22056257724761963,
0.021316401660442352,
0.007734866812825203,
0.21325641870498657,
0.23278634250164032,
0.09743249416351318,
-0.19678817689418793,
-0.13784727454185486,
0.15032637119293213,
0.3620440363883972,
-0.06353268027305603,
-0.2343125343322754,
-0.12124771624803543,
-0.04300402104854584,
0.04348311573266983,
0.14154715836048126,
-0.10129046440124512,
0.0477067306637764,
0.14866334199905396,
-0.13793544471263885,
0.16582056879997253,
-0.012841468676924706,
0.25194641947746277,
-0.10633758455514908,
-0.49623462557792664,
-0.5676654577255249,
0.6620467901229858,
0.023382149636745453,
0.07014212012290955,
0.2541714906692505,
0.1754050850868225,
-0.19586116075515747,
0.3753734230995178,
0.1058029979467392,
1.137218952178955,
-0.2281339019536972,
0.11042053997516632,
-0.10398473590612411,
0.10946613550186157,
0.3614170551300049,
-0.3578392267227173,
0.20840688049793243,
-0.3226414620876312,
-0.10890702158212662,
-0.019519388675689697,
0.07367472350597382,
-0.04613921046257019,
0.0998932346701622,
-0.30722683668136597,
0.25644147396087646,
-0.3662327527999878,
-0.08695411682128906,
0.10564960539340973,
0.2329857349395752,
-0.40588948130607605,
-0.06803670525550842,
-0.3213793933391571,
0.11962863802909851,
-0.21466068923473358,
0.254692941904068,
-0.2110009789466858,
-0.12547878921031952,
-0.06142456829547882,
-0.2672702670097351,
-0.5050508975982666,
0.07064379006624222,
-0.28835025429725647,
0.32986897230148315,
-0.4893512427806854,
-0.18977490067481995,
0.3386206030845642,
0.4448707401752472,
0.04147959128022194,
0.4031546711921692,
-0.28798362612724304,
0.1116524338722229,
-0.2638610601425171,
-0.42361965775489807,
0.09449128061532974,
0.011207488365471363,
0.08713383227586746,
-0.18162891268730164,
-0.37099021673202515,
0.1669727861881256,
-0.05757245048880577,
0.05284944176673889,
-0.09598764777183533,
0.10437769442796707,
0.2016543596982956,
-0.04589775577187538,
-0.3565549850463867,
-0.022282719612121582,
-0.09438598155975342,
-0.0894327163696289,
0.12416680157184601,
0.08219675719738007,
-0.11190396547317505,
0.1409132182598114,
0.18529516458511353,
-0.3349807858467102,
0.021791603416204453,
0.3491058051586151,
0.1834491491317749,
0.023953605443239212,
0.6245263814926147,
0.3155456483364105,
-0.39654111862182617,
-0.189814954996109,
0.04391392320394516,
-0.271377295255661,
-0.458574116230011,
-0.08960511535406113,
-0.042189788073301315,
0.3383437991142273,
-0.41492846608161926,
0.35025355219841003,
0.17490658164024353,
-0.23483166098594666,
0.20646433532238007,
-0.7065884470939636,
-0.12402194738388062,
0.2160942107439041,
-0.07890927791595459,
0.006574861705303192,
0.0840708389878273,
-0.30959925055503845,
0.12182798981666565,
0.23526298999786377,
-0.2610890865325928,
0.2092309296131134,
-0.32334086298942566,
0.10076342523097992,
0.09949419647455215,
0.06333199888467789,
0.022301267832517624,
0.19910231232643127,
0.06504818797111511,
0.06916113197803497,
-0.04966416582465172,
-0.259909987449646,
-0.07022736966609955,
0.1948125958442688,
0.20511412620544434,
-0.05790074169635773,
0.22787486016750336,
-0.5071967244148254,
-0.16867004334926605,
0.08223886042833328,
-0.05847565829753876,
0.11558447033166885,
0.003859609365463257,
0.18110063672065735,
0.2013252079486847,
0.28857165575027466,
-0.3500792384147644,
0.2458777129650116,
-0.08690492808818817,
0.26149851083755493,
0.14082786440849304,
0.07593587040901184,
0.45799189805984497,
0.021300464868545532,
-0.33520954847335815,
-0.03354056924581528,
-0.030077621340751648,
0.08663587272167206,
0.25588104128837585,
-0.23335914313793182,
0.30034705996513367,
0.1989205777645111,
-0.11749505996704102,
0.5623859167098999,
-0.1496049165725708,
0.20659638941287994,
0.4130833148956299,
0.1872236132621765,
-0.3698637783527374,
0.001646361663006246,
0.29320141673088074,
-0.09663751721382141,
-0.07098251581192017,
0.0759609192609787,
0.2589092552661896,
-0.32232779264450073,
0.1137208417057991,
-0.06573879718780518,
0.16478261351585388,
-0.05655153840780258,
0.19225843250751495,
0.670076310634613,
0.22707302868366241,
0.04992608726024628,
-0.06946443766355515,
0.1699933111667633,
0.09539490938186646,
0.36280685663223267,
-0.22345641255378723,
0.19276344776153564,
-0.05200366675853729,
0.024634741246700287,
-0.1621614694595337,
-0.34005632996559143,
0.29861152172088623,
0.16320163011550903,
-0.024774596095085144,
0.09867642819881439,
-0.17225736379623413,
0.2616472542285919,
0.15435919165611267,
0.03022303245961666,
-0.2611556053161621,
0.19144311547279358,
-0.12247783690690994,
-0.01298250537365675,
-0.04421021789312363,
-0.26800742745399475,
0.0015667378902435303,
0.1556263118982315,
-0.004662208259105682,
-0.3565729260444641,
0.2555735409259796,
0.3037426471710205,
-0.24408577382564545,
-0.4411393404006958,
0.13480879366397858,
0.21249264478683472,
0.031170368194580078,
-0.30022132396698,
0.15776106715202332,
0.41378045082092285,
0.07809213548898697,
-0.1270553469657898,
0.20191626250743866,
0.44334596395492554,
0.42054739594459534,
-0.3373264968395233,
0.042441610246896744,
0.07534050941467285,
-0.06568066030740738,
-0.023378543555736542,
0.22760999202728271,
0.4672245979309082,
0.25026822090148926,
0.39701047539711,
0.11842609941959381,
-0.14160002768039703,
-0.03197542205452919,
0.23605048656463623,
-0.06391902267932892,
-0.05667078495025635,
-0.045185767114162445,
-0.05903562903404236,
0.1407211422920227,
-0.42055362462997437,
-0.013584941625595093,
-0.5078694224357605,
0.3400220572948456,
0.16105610132217407,
0.002587223192676902,
0.17752936482429504,
-0.09258116781711578,
0.04798588156700134,
-0.15697571635246277,
0.3962933421134949,
0.3195855915546417,
0.19914153218269348,
-0.3908325731754303,
-0.008995234966278076,
-0.4645196497440338,
-0.018636010587215424,
-0.29823511838912964,
0.11210107803344727,
-0.0814327746629715,
0.1286558210849762,
0.07550883293151855,
0.2132718414068222,
0.03663232922554016,
0.04509863257408142,
0.06680314242839813,
0.49491652846336365,
-0.2315315455198288,
-0.24470381438732147,
-0.1948162466287613,
0.21916285157203674,
-0.1583237498998642,
-0.39093124866485596,
0.05759371817111969,
-0.1385609656572342,
0.03407327085733414,
-0.32001960277557373,
-0.06650034338235855,
0.09557235240936279,
0.005959868431091309,
0.33242833614349365,
0.15237782895565033,
0.5925298929214478,
-0.1540946513414383,
-0.20217680931091309,
-0.20867189764976501,
-0.01106998510658741,
-0.1599348932504654,
0.31167730689048767,
0.196729376912117,
0.09890638291835785,
-0.16079369187355042,
-0.11197131872177124,
-0.029563941061496735,
0.29848724603652954,
-0.04481606185436249,
0.19492308795452118,
-0.36696210503578186,
-0.38635653257369995,
0.05791713297367096,
0.11385571956634521,
0.1190270483493805,
0.046926070004701614,
-0.13085611164569855,
-0.05331815779209137,
-0.3421497344970703,
-0.30868658423423767,
0.3866545259952545,
-0.37730318307876587,
-0.5697816610336304,
-0.09215502440929413,
0.007928736507892609,
0.04705670475959778,
0.19029779732227325,
-0.36608827114105225,
0.277555376291275,
0.38977301120758057,
0.051333293318748474,
-0.15096788108348846,
0.16642175614833832,
0.028648436069488525,
-0.01621585339307785,
-0.09404309093952179,
0.11607040464878082,
-0.008284278213977814,
-0.35631468892097473,
-0.2205844670534134,
-0.3912584185600281
] |
https://github.com/huggingface/datasets/issues/2032 | Use Arrow filtering instead of writing a new arrow file for Dataset.filter | Actually table.filter returns a new table in memory, which can fill users RAM.
Therefore it's not a good solution if we want to keep supporting bigger than RAM datastes | Currently the filter method reads the dataset batch by batch to write a new, filtered, arrow file on disk. Therefore all the reading + writing can take some time.
Using a mask directly on the arrow table doesn't do any read or write operation therefore it's significantly quicker.
I think there are two cases:
- if the dataset doesn't have an indices mapping, then one can simply use the arrow filtering on the main arrow table `dataset._data.filter(...)`
- if the dataset an indices mapping, then the mask should be applied on the indices mapping table `dataset._indices.filter(...)`
The indices mapping is used to map between the idx at `dataset[idx]` in `__getitem__` and the idx in the actual arrow table.
The new filter method should therefore be faster, and allow users to pass either a filtering function (that returns a boolean given an example), or directly a mask.
Feel free to discuss this idea in this thread :)
One additional note: the refactor at #2025 would make all the pickle-related stuff work directly with the arrow filtering, so that we only need to change the Dataset.filter method without having to deal with pickle.
cc @theo-m @gchhablani
related issues: #1796 #1949 | 29 | Use Arrow filtering instead of writing a new arrow file for Dataset.filter
Currently the filter method reads the dataset batch by batch to write a new, filtered, arrow file on disk. Therefore all the reading + writing can take some time.
Using a mask directly on the arrow table doesn't do any read or write operation therefore it's significantly quicker.
I think there are two cases:
- if the dataset doesn't have an indices mapping, then one can simply use the arrow filtering on the main arrow table `dataset._data.filter(...)`
- if the dataset an indices mapping, then the mask should be applied on the indices mapping table `dataset._indices.filter(...)`
The indices mapping is used to map between the idx at `dataset[idx]` in `__getitem__` and the idx in the actual arrow table.
The new filter method should therefore be faster, and allow users to pass either a filtering function (that returns a boolean given an example), or directly a mask.
Feel free to discuss this idea in this thread :)
One additional note: the refactor at #2025 would make all the pickle-related stuff work directly with the arrow filtering, so that we only need to change the Dataset.filter method without having to deal with pickle.
cc @theo-m @gchhablani
related issues: #1796 #1949
Actually table.filter returns a new table in memory, which can fill users RAM.
Therefore it's not a good solution if we want to keep supporting bigger than RAM datastes | [
-0.47958293557167053,
-0.030298687517642975,
-0.14877521991729736,
0.06036873534321785,
-0.15269841253757477,
-0.3829577565193176,
0.1461782157421112,
0.6005166172981262,
0.42061617970466614,
0.21208545565605164,
0.012704549357295036,
0.47666364908218384,
0.0037738485261797905,
0.34725627303123474,
-0.09691521525382996,
0.18299223482608795,
-0.13270971179008484,
0.30318695306777954,
-0.3162829279899597,
0.07526104152202606,
-0.18886598944664001,
-0.29721346497535706,
0.06049816310405731,
-0.007773295044898987,
0.10846184939146042,
-0.13002203404903412,
0.2366533875465393,
0.07299509644508362,
-0.14305110275745392,
-0.42042276263237,
0.17422661185264587,
0.2033897489309311,
-0.07720144838094711,
0.32059556245803833,
-0.00010178214142797515,
0.04870929569005966,
0.15092071890830994,
0.011623753234744072,
-0.2752479314804077,
0.2762477993965149,
-0.24525004625320435,
-0.21220779418945312,
0.12921243906021118,
-0.10641980171203613,
-0.2457132637500763,
-0.02471112832427025,
-0.2020001858472824,
-0.3631478548049927,
0.17318591475486755,
-0.0393199622631073,
0.2858291566371918,
0.002960389479994774,
-0.20911291241645813,
0.17823755741119385,
0.36404094099998474,
0.20305295288562775,
-0.11159101128578186,
-0.04516110196709633,
0.2109012007713318,
-0.016214463859796524,
-0.3178722560405731,
0.6857823729515076,
-0.1526098996400833,
0.04342372715473175,
0.34376969933509827,
-0.031536687165498734,
0.026578035205602646,
0.2338123321533203,
0.1308879256248474,
0.25592565536499023,
0.2691810727119446,
-0.07027298957109451,
-0.3910394310951233,
-0.1506723165512085,
-0.339905321598053,
-0.2798828184604645,
0.16285373270511627,
-0.1933821439743042,
-0.18697114288806915,
0.13132520020008087,
-0.05498506501317024,
-0.3188320994377136,
-0.03912466764450073,
-0.1782325953245163,
0.10612539947032928,
0.14607137441635132,
0.04063042253255844,
0.1182321235537529,
0.48790043592453003,
-0.430966317653656,
0.1546144336462021,
-0.2026871293783188,
-0.12752534449100494,
0.10378401726484299,
-0.11124816536903381,
-0.26150068640708923,
0.03647086024284363,
-0.37008997797966003,
0.048562705516815186,
0.2808944582939148,
0.21331746876239777,
0.4569535255432129,
0.013717756606638432,
-0.09846977144479752,
0.02205115556716919,
-0.062985360622406,
-0.010297201573848724,
0.21740110218524933,
0.47436684370040894,
0.017218245193362236,
-0.0637894943356514,
0.05192768573760986,
0.13390810787677765,
-0.158371701836586,
-0.17041850090026855,
-0.02557206153869629,
-0.2576160430908203,
-0.2021988183259964,
-0.19502007961273193,
-0.05233597755432129,
0.015927068889141083,
-0.019524933770298958,
0.23531824350357056,
0.3253513276576996,
0.05714668333530426,
-0.11921363323926926,
0.15098322927951813,
-0.34255456924438477,
-0.3927617371082306,
0.038296133279800415,
-0.15821358561515808,
-0.1154986321926117,
-0.16691280901432037,
0.05945638567209244,
0.09952305257320404,
-0.052453119307756424,
-0.05823345482349396,
-0.10447991639375687,
-0.11551213264465332,
0.4130043387413025,
0.2831607758998871,
-0.17465969920158386,
0.4540795683860779,
0.39531171321868896,
-0.30653661489486694,
-0.1725819855928421,
0.16623251140117645,
-0.26297199726104736,
-0.17761291563510895,
0.20165017247200012,
-0.06935539096593857,
-0.2929244339466095,
0.07962677627801895,
0.23416301608085632,
0.009412914514541626,
0.021431101486086845,
-0.2090713381767273,
0.19119513034820557,
-0.0655963346362114,
-0.34949490427970886,
-0.14547017216682434,
0.03005610965192318,
-0.4090644121170044,
-0.2762233316898346,
0.239435613155365,
0.2555522620677948,
-0.5639817714691162,
0.07582664489746094,
-0.14179909229278564,
0.008002866059541702,
0.19133010506629944,
0.1852511316537857,
-0.26833608746528625,
-0.2913714051246643,
-0.1239844411611557,
0.0844939798116684,
0.25844806432724,
-0.20055337250232697,
-0.5267037153244019,
0.30017009377479553,
-0.09015867859125137,
0.05753263831138611,
0.3369348347187042,
0.23736518621444702,
0.13784518837928772,
0.01962822489440441,
0.04568396508693695,
0.1962246149778366,
0.025225285440683365,
0.09416481852531433,
-0.26974350214004517,
-0.2171686440706253,
0.2816316783428192,
0.22566254436969757,
-0.11600126326084137,
-0.1996290385723114,
0.16591858863830566,
-0.4645572602748871,
0.33265745639801025,
-0.08637349307537079,
0.04237918555736542,
-0.06756386160850525,
0.4495544731616974,
-0.17667116224765778,
0.04344362020492554,
-0.03783271461725235,
-0.2701512575149536,
0.13683593273162842,
-0.003413047641515732,
-0.14448122680187225,
-0.17467667162418365,
-0.47736603021621704,
0.14061281085014343,
-0.0362444669008255,
-0.0001593083143234253,
-0.14310118556022644,
0.13123004138469696,
0.042503029108047485,
0.15865667164325714,
-0.4135275185108185,
-0.044749666005373,
0.14382506906986237,
-0.25216639041900635,
-0.04015382379293442,
-0.05430752411484718,
-0.014324330724775791,
0.09638731181621552,
-0.10476205497980118,
-0.05958336591720581,
0.025856833904981613,
0.0006616711616516113,
-0.0358000323176384,
-0.02608245611190796,
0.1552135944366455,
0.5744425058364868,
-0.24153481423854828,
0.25042489171028137,
0.08607137203216553,
0.045719292014837265,
0.05811868980526924,
0.1265789121389389,
0.33059266209602356,
0.07372304797172546,
0.08542817085981369,
-0.513423502445221,
0.5486616492271423,
-0.13102419674396515,
0.30413857102394104,
0.1316716969013214,
-0.08684734255075455,
0.32969561219215393,
0.12830007076263428,
-0.01790240965783596,
-0.2661072015762329,
-0.15269120037555695,
0.3662381172180176,
0.002159588038921356,
0.30429449677467346,
-0.3557978570461273,
0.36633723974227905,
0.23583289980888367,
0.18115457892417908,
0.0677136555314064,
0.13776904344558716,
0.14182622730731964,
-0.1358993947505951,
0.1746729612350464,
0.28216877579689026,
0.20356136560440063,
0.4184463918209076,
-0.010635282844305038,
-0.26909491419792175,
0.10317087173461914,
-0.07788017392158508,
0.31154295802116394,
-0.03363299369812012,
0.052946384996175766,
-0.05707269161939621,
-0.019757596775889397,
-0.3005806803703308,
-0.318968266248703,
-0.298845112323761,
-0.037166886031627655,
0.16737090051174164,
-0.09576490521430969,
-0.09234077483415604,
-0.2887621819972992,
-0.4522992670536041,
0.08504033088684082,
0.21390371024608612,
0.11328965425491333,
0.025955935940146446,
0.1505889892578125,
0.070467010140419,
-0.5152872800827026,
0.3156859278678894,
-0.09328833222389221,
0.42188388109207153,
0.17002370953559875,
-0.03130229562520981,
-0.1817445009946823,
-0.1919538825750351,
-0.15571603178977966,
0.146747425198555,
0.25861895084381104,
0.05290493741631508,
0.2767116129398346,
0.30013853311538696,
0.1049487441778183,
-0.2983520030975342,
-0.3370130956172943,
-0.04549767076969147,
0.027654733508825302,
0.1772865653038025,
0.10981150716543198,
0.26974424719810486,
-0.2692398428916931,
-0.06979115307331085,
-0.015361284837126732,
-0.18801361322402954,
-0.3755279779434204,
-0.015791896730661392,
0.020484082400798798,
0.2335900217294693,
-0.22882093489170074,
-0.3924892246723175,
-0.11239422112703323,
-0.5899940133094788,
0.12728658318519592,
0.018164925277233124,
0.4537630081176758,
0.28462347388267517,
0.13797061145305634,
-0.04432591050863266,
-0.05901767686009407,
0.025984864681959152,
-0.1465112268924713,
-0.22208453714847565,
0.08316031843423843,
-0.13440239429473877,
-0.31244999170303345,
-0.22222352027893066,
-0.2078903764486313,
-0.16322079300880432,
0.329587459564209,
-0.29898378252983093,
0.08078349381685257,
-0.3768288791179657,
0.10446006059646606,
-0.007828827947378159,
0.10900416970252991,
0.2287585437297821,
0.3024500906467438,
-0.30988073348999023,
-0.07107614725828171,
-0.0801461935043335,
0.10873737186193466,
-0.05923110991716385,
-0.10260456055402756,
0.04716592654585838,
0.453429639339447,
0.046964969485998154,
0.7165243029594421,
0.12248817086219788,
0.015516381710767746,
0.19144833087921143,
0.15966282784938812,
0.32751965522766113,
-0.20144954323768616,
-0.0803585797548294,
-0.0977061539888382,
0.08384080231189728,
0.1834675669670105,
0.09539929777383804,
-0.15518540143966675,
-0.11938685923814774,
0.01731925457715988,
-0.06685386598110199,
0.07903578132390976,
-0.25361666083335876,
0.31951746344566345,
-0.11188484728336334,
-0.027141697704792023,
0.12587225437164307,
0.13972973823547363,
-0.3178972601890564,
0.030901402235031128,
-0.050110552459955215,
-0.115531787276268,
0.296903133392334,
-0.10870449990034103,
-0.35665228962898254,
-0.10102115571498871,
-0.3425430357456207,
0.33168068528175354,
0.2731185853481293,
0.16600334644317627,
0.027383890002965927,
-0.3125993013381958,
-0.03459477424621582,
-0.05467797443270683,
0.4487062692642212,
-0.26042240858078003,
-0.08516815304756165,
0.048295628279447556,
-0.21506130695343018,
-0.4676911532878876,
0.25346073508262634,
-0.01818741112947464,
0.21605533361434937,
-0.11331114172935486,
0.3237263262271881,
-0.34454768896102905,
-0.30059367418289185,
0.15850257873535156,
0.09910716861486435,
-0.167544886469841,
0.1274752914905548,
-0.27241334319114685,
-0.12925559282302856,
-0.19574204087257385,
0.3677343726158142,
0.024057256057858467,
0.11182089895009995,
0.07077561318874359,
-0.15629035234451294,
-0.03180346637964249,
-0.2683834135532379,
0.011604726314544678,
0.22866502404212952,
0.46449437737464905,
0.15436062216758728,
0.3615950345993042,
0.056628186255693436,
0.22089673578739166,
0.35257235169410706,
0.5730026960372925,
-0.2698046863079071,
0.13522259891033173,
-0.00783727690577507,
0.0056154970079660416,
0.33217287063598633,
0.2865387797355652,
0.058129362761974335,
0.43668243288993835,
-0.0889253318309784,
0.11867772787809372,
-0.14595283567905426,
-0.07720676809549332,
-0.4639759063720703,
0.0789802297949791,
-0.08668823540210724,
-0.5841501951217651,
0.3676283657550812,
0.03540896624326706,
-0.1664675772190094,
0.5667378902435303,
0.31091392040252686,
-0.13396307826042175,
0.4558185338973999,
0.27231526374816895,
0.9384429454803467,
0.018729954957962036,
0.21266859769821167,
-0.016062267124652863,
-0.18147671222686768,
0.09946420043706894,
-0.058563731610774994,
0.05554599314928055,
-0.17688898742198944,
-0.21967434883117676,
0.1497594565153122,
-0.15931981801986694,
0.028740670531988144,
-0.0078505240380764,
-0.15493988990783691,
0.17070698738098145,
-0.02532040700316429,
-0.1215386837720871,
-0.20090749859809875,
0.4054746925830841,
-0.09177447855472565,
-0.2005273699760437,
0.16221630573272705,
0.19851292669773102,
0.1159435510635376,
-0.3500550091266632,
0.024723783135414124,
-0.041895024478435516,
-0.1238994151353836,
-0.19958029687404633,
0.12278364598751068,
-0.0626332014799118,
-0.1367035061120987,
0.48288464546203613,
-0.14413687586784363,
-0.3084683120250702,
-0.0189550518989563,
-0.14488700032234192,
-0.2548711895942688,
0.18673190474510193,
0.09267941117286682,
0.21297915279865265,
0.15616099536418915,
0.44701582193374634,
-0.07357528805732727,
-0.13836295902729034,
0.3595620393753052,
-0.03544704243540764,
-0.2634339928627014,
-0.1547597050666809,
-0.018722057342529297,
-0.5883453488349915,
0.14858639240264893,
0.15008026361465454,
0.1620025336742401,
-0.1406385600566864,
-0.042921364307403564,
-0.015343829989433289,
-0.3979790508747101,
-0.27684491872787476,
0.2012542188167572,
0.29142990708351135,
-0.08651518821716309,
0.30662769079208374,
0.43589267134666443,
-0.2987297773361206,
-0.06262616813182831,
0.1701849102973938,
0.30005335807800293,
0.4239833652973175,
0.26716211438179016,
0.03270148113369942,
-0.42968183755874634,
-0.3333599865436554,
0.11690478771924973,
0.40573850274086,
0.05417264252901077,
0.2952704429626465,
-0.15443943440914154,
-0.2574831545352936,
0.17258483171463013,
0.1882379800081253,
-0.11878345906734467,
0.012990761548280716,
-0.3364695906639099,
-0.05330244451761246,
-0.3069866895675659,
0.3810921907424927,
-0.2185220867395401,
0.32721397280693054,
-0.09334296733140945,
-0.17381636798381805,
-0.39672422409057617,
0.18976670503616333,
-0.457923024892807,
0.05170373618602753,
-0.01274108700454235,
0.3248073160648346,
-0.07032235711812973,
0.10825391858816147,
0.0986378937959671,
-0.10447214543819427,
0.13572299480438232,
0.20222711563110352,
-0.256005197763443,
-0.3506912887096405,
0.0039078183472156525,
0.05623801052570343,
-0.18144753575325012,
-0.23402588069438934,
-0.16823825240135193,
-0.15305086970329285,
-0.17721113562583923,
-0.11201173067092896,
0.16741225123405457,
-0.27942728996276855,
-0.047107867896556854,
-0.024527978152036667,
0.0568404383957386,
-0.2844250202178955,
0.11207570135593414,
0.2959870994091034,
-0.202858567237854,
0.1985805481672287,
-0.1643909513950348,
0.11592112481594086,
-0.14397448301315308,
-0.2480149120092392,
0.38353267312049866,
0.06220574676990509,
0.07481524348258972,
0.005484746769070625,
0.022276967763900757,
-0.017199993133544922,
-0.1714845448732376,
0.06390530616044998,
0.3794456422328949,
0.31822144985198975,
0.25610992312431335,
-0.0709892213344574,
0.2642848789691925,
0.3121819496154785,
-0.3978835940361023,
-0.15402500331401825,
0.000960908830165863,
-0.20205453038215637,
0.37956202030181885,
0.05102938413619995,
-0.06939626485109329,
0.2474687099456787,
-0.024086415767669678,
0.07071220874786377,
-0.04363713413476944,
-0.15954220294952393,
-0.06421278417110443,
0.11429618299007416,
0.12444911897182465,
-0.34452927112579346,
0.476543664932251,
0.15428917109966278,
0.25056570768356323,
0.6483491659164429,
0.07812660932540894,
0.5232610702514648,
0.3782525956630707,
0.14478032290935516,
-0.24975571036338806,
-0.3932512700557709,
0.2035837173461914,
0.24973554909229279,
-0.10200418531894684,
0.03466165065765381,
0.3028980493545532,
-0.012262232601642609,
0.19140759110450745,
-0.21108628809452057,
0.11044368892908096,
-0.01940608024597168,
-0.19006869196891785,
-0.19976496696472168,
-0.2046351432800293,
-0.11126424372196198,
0.028244413435459137,
0.20783527195453644,
0.0696285292506218,
0.08080879598855972,
0.1647777557373047,
0.0623425655066967,
0.29568150639533997,
0.007456721737980843,
-0.03467965126037598,
-0.017353132367134094,
0.2973479628562927,
-0.19666950404644012,
-0.0851244181394577,
0.21090081334114075,
0.1674289107322693,
0.08546020090579987,
0.15841753780841827,
0.10736431181430817,
0.019500937312841415,
-0.3787456452846527,
0.06001899763941765,
-0.0934741348028183,
-0.15488941967487335,
-0.45799165964126587,
0.2082379311323166,
-0.00161849707365036,
-0.04467678442597389,
0.26891395449638367,
0.22111184895038605,
-0.22599317133426666,
-0.2464684396982193,
0.24977894127368927,
-0.03632371872663498,
-0.09678091108798981,
-0.2712990939617157,
0.4478418529033661,
-0.2982182204723358,
-0.08013340085744858,
-0.10667499154806137,
-0.05772992968559265,
-0.004355970770120621,
0.44955387711524963,
-0.24571876227855682,
0.14306971430778503,
-0.20774270594120026,
0.13303989171981812,
-0.004342919215559959,
0.5559468269348145,
0.06789695471525192,
0.1583939641714096,
-0.19907286763191223,
-0.10575693845748901,
-0.45399877429008484,
-0.10430967062711716,
-0.323304146528244,
-0.0682985857129097,
-0.00459700170904398,
0.42160123586654663,
0.3745937943458557,
0.006539657711982727,
0.19845512509346008,
-0.012017587199807167,
0.1298678070306778,
-0.01635804772377014,
-0.3277801275253296,
0.1081804633140564,
0.07460220903158188,
-0.04520144313573837,
0.08110994100570679,
-0.6288305521011353,
0.18192751705646515,
-0.03985375165939331,
0.2524818181991577,
-0.051661305129528046,
-0.04484657198190689,
0.3016422688961029,
0.3170327842235565,
0.4680459499359131,
-0.035726696252822876,
0.30927103757858276,
-0.036827296018600464,
-0.10335279256105423,
-0.02586491033434868,
-0.03294118121266365,
-0.23492984473705292,
0.046720538288354874,
0.18726351857185364,
0.3742513358592987,
-0.026989785954356194,
-0.15768887102603912,
-0.1442984789609909,
0.2597633898258209,
-0.22175030410289764,
0.19791759550571442,
-0.07985231280326843,
0.1259722262620926,
0.14529204368591309,
-0.076749287545681,
-0.45759347081184387,
0.2549750804901123,
0.006924290210008621,
-0.059007175266742706,
-0.24063898622989655,
-0.27851402759552,
0.39785271883010864,
-0.239456906914711,
-0.1680150181055069,
-0.006851494312286377,
0.257590651512146,
0.12708887457847595,
0.03491488844156265,
-0.3329256772994995,
-0.046618785709142685,
0.082328200340271,
-0.0721568912267685,
-0.2030007392168045,
0.11608709394931793,
0.10449758172035217,
0.07131648063659668,
-0.19370536506175995,
0.4939969480037689,
-0.03985583782196045,
-0.07013317942619324,
-0.27964070439338684,
-0.35870957374572754
] |
https://github.com/huggingface/datasets/issues/2031 | wikipedia.py generator that extracts XML doesn't release memory | Hi @miyamonz
Thanks for investigating this issue, good job !
It would be awesome to integrate your fix in the library, could you open a pull request ? | I tried downloading Japanese wikipedia, but it always failed because of out of memory maybe.
I found that the generator function that extracts XML data in wikipedia.py doesn't release memory in the loop.
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L464-L502
`root.clear()` intend to clear memory, but it doesn't.
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L490
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L494
I replaced them with `elem.clear()`, then it seems to work correctly.
here is the notebook to reproduce it.
https://gist.github.com/miyamonz/dc06117302b6e85fa51cbf46dde6bb51#file-xtract_content-ipynb | 28 | wikipedia.py generator that extracts XML doesn't release memory
I tried downloading Japanese wikipedia, but it always failed because of out of memory maybe.
I found that the generator function that extracts XML data in wikipedia.py doesn't release memory in the loop.
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L464-L502
`root.clear()` intend to clear memory, but it doesn't.
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L490
https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L494
I replaced them with `elem.clear()`, then it seems to work correctly.
here is the notebook to reproduce it.
https://gist.github.com/miyamonz/dc06117302b6e85fa51cbf46dde6bb51#file-xtract_content-ipynb
Hi @miyamonz
Thanks for investigating this issue, good job !
It would be awesome to integrate your fix in the library, could you open a pull request ? | [
0.2186526507139206,
-0.11096154898405075,
-0.05236680805683136,
0.6246851682662964,
0.3160354495048523,
0.0942653939127922,
-0.2117365151643753,
0.33323389291763306,
0.20938144624233246,
0.2579500377178192,
0.00605397392064333,
0.15176236629486084,
0.23278984427452087,
-0.1265527456998825,
-0.21752993762493134,
-0.21034392714500427,
0.04372944310307503,
0.07434731721878052,
0.037121646106243134,
-0.2225492000579834,
-0.22596652805805206,
0.12416920810937881,
-0.2827932834625244,
-0.12147112190723419,
-0.17570094764232635,
0.15075136721134186,
0.08346156775951385,
-0.19253414869308472,
-0.17684443295001984,
-0.3868057131767273,
0.14274242520332336,
0.0021264031529426575,
-0.12528076767921448,
0.22709301114082336,
-0.00011130445636808872,
-0.1786881685256958,
0.5870481729507446,
-0.017546022310853004,
-0.1438790261745453,
0.10739284008741379,
-0.20371267199516296,
-0.07391297072172165,
-0.10068954527378082,
-0.28783804178237915,
0.14150527119636536,
-0.030018333345651627,
0.16945475339889526,
-0.27437737584114075,
0.3588353395462036,
-0.055535685271024704,
0.22966864705085754,
-0.09951186925172806,
0.41344451904296875,
-0.04680674895644188,
0.7186949849128723,
0.2662893831729889,
-0.03358767181634903,
0.029499083757400513,
0.14833250641822815,
-0.12021111696958542,
0.026103876531124115,
0.40424227714538574,
-0.15691736340522766,
0.016586896032094955,
0.25264972448349,
-0.14933668076992035,
0.043988414108753204,
-0.5066655874252319,
0.46207714080810547,
0.34271249175071716,
0.5755249857902527,
-0.14992159605026245,
0.10628221184015274,
0.031069964170455933,
-0.10397189855575562,
-0.13158176839351654,
0.22471284866333008,
0.40015920996665955,
-0.6533280611038208,
-0.06833580136299133,
0.3109067380428314,
-0.48206770420074463,
-0.17909212410449982,
0.2063480168581009,
-0.0007486306130886078,
0.31837648153305054,
-0.007374097593128681,
0.06341230124235153,
0.25902295112609863,
-0.0018350258469581604,
-0.1166996881365776,
-0.04348454624414444,
-0.07423131167888641,
0.21876533329486847,
0.030532434582710266,
0.16333898901939392,
0.18440553545951843,
-0.1822965145111084,
0.2779969573020935,
-0.4200804829597473,
-0.40943390130996704,
0.0066292062401771545,
0.2780642509460449,
-0.04077751934528351,
0.38940849900245667,
0.027034200727939606,
-0.017056487500667572,
0.11334250122308731,
0.3600497245788574,
0.211576446890831,
-0.3496326208114624,
-0.08460124582052231,
0.13038939237594604,
0.05204692855477333,
0.08312395215034485,
-0.10651110857725143,
0.019185271114110947,
-0.06765933334827423,
0.170102059841156,
0.23868536949157715,
-0.2658776640892029,
-0.0708777904510498,
-0.20805242657661438,
0.4120151102542877,
-0.04382748529314995,
0.37275978922843933,
0.18699714541435242,
0.08539001643657684,
-0.41007813811302185,
-0.311619371175766,
-0.13783897459506989,
0.25222069025039673,
-0.2821926176548004,
0.04728686809539795,
0.001004677265882492,
-0.14431284368038177,
0.2116987556219101,
0.17310619354248047,
-0.19320304691791534,
-0.40355053544044495,
0.05407688021659851,
-0.19065351784229279,
0.20738482475280762,
0.2648635804653168,
0.06967230141162872,
0.22170598804950714,
-0.11994510889053345,
-0.08726341277360916,
-0.04283877834677696,
0.2829100489616394,
-0.01792648434638977,
-0.06425339728593826,
0.00017012469470500946,
0.2416817843914032,
0.06598048657178879,
0.19537684321403503,
0.008276410400867462,
-0.16247786581516266,
0.5027114748954773,
0.12040133774280548,
0.015703916549682617,
0.006114427000284195,
-0.012003839015960693,
-0.2563001811504364,
0.17826655507087708,
0.4500468969345093,
0.11541330814361572,
0.1249704360961914,
-0.1744931936264038,
0.1334429830312729,
0.48263153433799744,
0.16337907314300537,
0.004183447454124689,
0.4243832230567932,
-0.12278691679239273,
0.2591708302497864,
-0.023980937898159027,
-0.2639952003955841,
-0.31979572772979736,
-0.0183575376868248,
0.12099450826644897,
0.21700343489646912,
-0.039484985172748566,
0.02748771198093891,
0.12404248863458633,
0.3383145332336426,
0.01363062858581543,
0.27894288301467896,
0.07468485087156296,
0.12920035421848297,
-0.453927218914032,
-0.2271738052368164,
0.2193470299243927,
-0.3085440993309021,
0.3155328035354614,
-0.03959564119577408,
0.12764376401901245,
0.4033347964286804,
0.6220802664756775,
-0.2563405930995941,
0.36804965138435364,
0.15819716453552246,
0.31492069363594055,
0.05500541254878044,
0.03255258873105049,
-0.10549812018871307,
-0.12108250707387924,
0.0815546065568924,
-0.20726892352104187,
0.38252490758895874,
-0.06457924842834473,
-0.13099604845046997,
-0.10746143758296967,
0.08737961202859879,
-0.2546544671058655,
-0.34560251235961914,
0.20499125123023987,
0.10160725563764572,
0.3502480685710907,
0.27710339426994324,
0.1317819356918335,
-0.4485380947589874,
-0.15337063372135162,
0.1642218679189682,
-0.7328388094902039,
0.01748109795153141,
-0.16485817730426788,
-0.08566732704639435,
-0.18846465647220612,
0.07390828430652618,
-0.07468763738870621,
0.014621247537434101,
-0.11743875592947006,
-0.14403671026229858,
0.21054290235042572,
0.1954229772090912,
-0.27698975801467896,
-0.08075718581676483,
0.22594119608402252,
-0.45123255252838135,
0.19409339129924774,
0.45876458287239075,
0.17534708976745605,
-0.09628678113222122,
0.1605663001537323,
-0.11558778584003448,
-0.021201297640800476,
0.04537362977862358,
0.12331190705299377,
0.0445282980799675,
0.2474222183227539,
0.1230117678642273,
0.15930062532424927,
-0.1362757384777069,
0.11218282580375671,
0.5882787108421326,
-0.09063947200775146,
0.020133066922426224,
-0.11099154502153397,
-0.05267179757356644,
0.44894611835479736,
0.2313283383846283,
0.1596059650182724,
0.04793590307235718,
-0.3074401617050171,
-0.30583080649375916,
0.019124271348118782,
0.0920184850692749,
-0.1586148887872696,
-0.0036710002459585667,
0.13245847821235657,
-0.050799667835235596,
0.337824285030365,
-0.2958720326423645,
0.4203757643699646,
-0.0014914125204086304,
0.16118766367435455,
0.21698370575904846,
0.12967108190059662,
-0.02768285572528839,
-0.30159077048301697,
0.29430311918258667,
-0.007242144551128149,
0.37584203481674194,
0.10969021916389465,
-0.20389913022518158,
0.058848656713962555,
-0.4482647776603699,
0.013791384175419807,
-0.12354729324579239,
-0.20246972143650055,
-0.3298226594924927,
0.11095529049634933,
0.29906633496284485,
-0.27457675337791443,
-0.17864979803562164,
0.03982647880911827,
-0.2857562303543091,
0.08824007958173752,
-0.06418419629335403,
-0.16085758805274963,
-0.3678181767463684,
-0.1747342050075531,
0.02673584595322609,
0.28603795170783997,
-0.061983659863471985,
0.060397032648324966,
0.06251135468482971,
-0.22415848076343536,
-0.21907460689544678,
-0.1240185797214508,
0.26603370904922485,
-0.09002532064914703,
0.0177641361951828,
-0.229558527469635,
0.41144996881484985,
0.14633627235889435,
-0.1430453360080719,
0.2513381242752075,
-0.3257458209991455,
0.01583397202193737,
0.2487400770187378,
0.14999905228614807,
0.1744735687971115,
-0.12339681386947632,
-0.4725927412509918,
0.09537359327077866,
-0.484404057264328,
0.2165413647890091,
-0.0715494304895401,
0.10141471773386002,
0.6841796636581421,
0.05600186809897423,
-0.06514928489923477,
-0.054873306304216385,
0.17611603438854218,
-0.30817291140556335,
-0.19297386705875397,
0.20510409772396088,
-0.16735190153121948,
-0.3377019762992859,
0.036482129245996475,
-0.015345060266554356,
0.31645849347114563,
0.3823060989379883,
-0.28147968649864197,
0.28198203444480896,
-0.16320087015628815,
0.3446783125400543,
0.07123957574367523,
0.2762082517147064,
0.12846419215202332,
-0.03426066413521767,
-0.09649723768234253,
0.09769747406244278,
0.4960942268371582,
-0.05269590765237808,
-0.07069636881351471,
0.07768387347459793,
0.1368727684020996,
0.049421798437833786,
0.049529414623975754,
0.47618669271469116,
0.14367400109767914,
0.5873882174491882,
0.369521826505661,
0.11712341010570526,
0.09948243200778961,
-0.0463387593626976,
-0.1920555680990219,
0.007618331350386143,
-0.20973753929138184,
-0.22040458023548126,
0.14378471672534943,
0.03918541967868805,
-0.13616077601909637,
-0.1121596172451973,
-0.01745651289820671,
-0.13551358878612518,
-0.4964641034603119,
0.21885946393013,
0.23347291350364685,
0.3340347111225128,
-0.0010710526257753372,
0.2686026990413666,
0.12844319641590118,
-0.3472021818161011,
0.07517896592617035,
-0.20737971365451813,
0.20898431539535522,
-0.008935035206377506,
0.00953763723373413,
-0.329807847738266,
-0.5612037181854248,
0.07031752914190292,
0.09460888803005219,
-0.16018201410770416,
0.13694706559181213,
-0.2673763036727905,
0.19153890013694763,
-0.015670614317059517,
0.2761346399784088,
0.12964662909507751,
0.010777756571769714,
0.07975739240646362,
-0.04023377597332001,
-0.09323747456073761,
0.2106633335351944,
-0.1364920735359192,
-0.020893536508083344,
0.2161007821559906,
-0.045199595391750336,
-0.45476263761520386,
-0.15045395493507385,
0.0004929937422275543,
0.34988167881965637,
-0.17178097367286682,
0.03729569911956787,
-0.1772453635931015,
-0.33227089047431946,
-0.5068717002868652,
-0.10463429242372513,
0.13797657191753387,
0.4159507751464844,
0.09826251864433289,
-0.1348448395729065,
0.28210172057151794,
0.08946309238672256,
-0.07844747602939606,
0.07640901207923889,
0.3025161623954773,
-0.1999044418334961,
-0.002487482503056526,
-0.0331883504986763,
-0.2916381061077118,
0.09721676260232925,
0.13913553953170776,
0.09377794712781906,
0.00135725736618042,
-0.35110947489738464,
-0.14263252913951874,
-0.12386544793844223,
0.02090742439031601,
-0.09977138042449951,
0.2029339224100113,
-0.09696008265018463,
0.10065104812383652,
-0.2624901235103607,
-0.183281809091568,
0.12360063195228577,
-0.1975308209657669,
0.10655280202627182,
-0.2093931883573532,
0.3150336444377899,
-0.0883084237575531,
0.09702423214912415,
0.5454166531562805,
0.0013301447033882141,
-0.3294945955276489,
-0.021848589181900024,
0.21357318758964539,
0.8503894209861755,
-0.15259568393230438,
0.20354999601840973,
0.38371261954307556,
0.20437832176685333,
0.44386130571365356,
-0.09516729414463043,
0.45576947927474976,
-0.4460804760456085,
0.1965768188238144,
0.18800851702690125,
0.20446479320526123,
-0.12362729758024216,
-0.3261246085166931,
-0.0760759711265564,
0.09267538040876389,
-0.19960221648216248,
0.057218898087739944,
-0.0746128112077713,
0.33867621421813965,
-0.06800054758787155,
-0.10128523409366608,
-0.11378823220729828,
0.08971977233886719,
-0.03810509294271469,
0.3747808635234833,
-0.19960671663284302,
0.1092802882194519,
0.15186072885990143,
-0.008616860955953598,
-0.3571423888206482,
0.13471126556396484,
-0.12786799669265747,
0.3138390779495239,
-0.1692618578672409,
-0.29857367277145386,
-0.1522776186466217,
0.2091224193572998,
-0.30888044834136963,
0.2668367028236389,
-0.11832128465175629,
0.009040124714374542,
-0.13434317708015442,
-0.30136826634407043,
-0.09812366962432861,
0.20411467552185059,
0.2514210641384125,
-0.07935100793838501,
-0.3915470242500305,
0.366336464881897,
-0.12483737617731094,
-0.26948559284210205,
-0.38805532455444336,
0.006317630410194397,
-0.2515435814857483,
-0.001034444896504283,
-0.019907400012016296,
-0.03886619210243225,
-0.42252588272094727,
-0.04674919322133064,
0.17665718495845795,
0.2087346464395523,
-0.34662237763404846,
0.12731492519378662,
-0.2620410919189453,
-0.15585564076900482,
-0.01084819808602333,
-0.053065963089466095,
0.4631018340587616,
0.1669987440109253,
0.4985491633415222,
0.39815130829811096,
-0.1369817852973938,
-0.2070302963256836,
-0.25253599882125854,
-0.24424146115779877,
-0.2741563618183136,
0.30014994740486145,
-0.07928262650966644,
-0.019402585923671722,
-0.21083271503448486,
0.142303466796875,
-0.19961455464363098,
-0.2362210750579834,
0.04272228106856346,
-0.16159161925315857,
-0.2933999001979828,
0.23496688902378082,
-0.0004801899194717407,
0.0744674950838089,
-0.021656369790434837,
0.019819218665361404,
0.12765994668006897,
0.13108007609844208,
-0.2810684144496918,
-0.03542950004339218,
-0.005044491961598396,
0.14458879828453064,
0.13831230998039246,
-0.1445305049419403,
-0.06252404302358627,
-0.029495442286133766,
0.07632774859666824,
0.10322429984807968,
-0.12141148746013641,
-0.2354753017425537,
0.12767034769058228,
0.08886853605508804,
0.07589951157569885,
-0.13778984546661377,
0.13751904666423798,
-0.2588726282119751,
0.05123714357614517,
-0.24349504709243774,
0.14515896141529083,
0.02469191700220108,
-0.12235654890537262,
0.27176564931869507,
0.05947208032011986,
0.09152769297361374,
-0.1313970685005188,
0.2522028088569641,
0.04261770471930504,
0.3345505893230438,
0.008039498701691628,
0.12592551112174988,
0.3993856608867645,
-0.12609772384166718,
-0.7414154410362244,
-0.04344136267900467,
-0.12351647019386292,
-0.1203082725405693,
0.3450509011745453,
-0.0021814629435539246,
-0.29669657349586487,
0.3581521511077881,
0.1455204039812088,
0.36381030082702637,
0.03176990896463394,
0.07916973531246185,
0.03306078165769577,
0.2661411464214325,
-0.1345178186893463,
0.12335896492004395,
0.011024418286979198,
-0.19226796925067902,
-0.10882890224456787,
0.06272658705711365,
-0.03087024763226509,
-0.2388405054807663,
0.025423333048820496,
0.15984302759170532,
-0.07918179035186768,
-0.18243978917598724,
0.40272191166877747,
0.05159850791096687,
0.16446757316589355,
-0.03258611634373665,
0.02246551215648651,
0.13621696829795837,
0.10645557194948196,
0.2732837200164795,
0.1820954978466034,
0.13620536029338837,
0.09505821764469147,
0.002531386911869049,
-0.1988527476787567,
0.050504911690950394,
-0.11603046953678131,
0.41923606395721436,
-0.3653092682361603,
0.2405392825603485,
-0.12507379055023193,
0.029200736433267593,
0.26453766226768494,
0.01682339794933796,
-0.2856101095676422,
0.286312460899353,
-0.26935601234436035,
-0.13768137991428375,
0.0908491313457489,
-0.34889301657676697,
0.08299750089645386,
0.1361268013715744,
0.2529471516609192,
-0.19997872412204742,
0.27333730459213257,
0.09979593753814697,
-0.40586763620376587,
-0.31796276569366455,
0.6245746612548828,
-0.022479359060525894,
0.22099068760871887,
-0.4029296040534973,
-0.12962183356285095,
0.1554761826992035,
-0.181281179189682,
-0.43921327590942383,
0.4111105799674988,
0.2919529974460602,
0.43017420172691345,
-0.5130152106285095,
0.10230019688606262,
-0.16981860995292664,
-0.07900364696979523,
-0.2631183862686157,
0.2411452829837799,
0.1912722885608673,
0.15335167944431305,
-0.08488142490386963,
0.08822043985128403,
-0.20106980204582214,
-0.39692431688308716,
0.5125554203987122,
0.29183679819107056,
-0.040013983845710754,
-0.29146668314933777,
0.08263236284255981,
-0.23278549313545227,
-0.10045401751995087,
-0.15153852105140686,
-0.4054411053657532,
0.53980553150177,
0.19020523130893707,
0.01226896420121193,
-0.017553068697452545,
-0.23267680406570435,
0.0941384956240654,
-0.1395604908466339,
0.20335239171981812,
0.17441168427467346,
0.07702069729566574,
-0.3007369339466095,
-0.2969956398010254,
-0.40831243991851807,
0.4256492257118225,
-0.34813496470451355,
-0.11796063184738159,
0.0067754220217466354,
0.41438987851142883,
-0.283162921667099,
-0.024460148066282272,
-0.11374056339263916,
-0.4053596258163452,
0.0567634180188179,
0.22547490894794464,
-0.1330939531326294,
0.013169031590223312,
0.043883368372917175,
-0.2902202010154724,
-0.05946216732263565,
-0.40110689401626587,
0.3153996467590332,
-0.30399346351623535,
0.03279300779104233,
-0.08920183032751083,
0.20109474658966064,
0.24438440799713135,
0.19341082870960236,
0.3121204674243927,
0.1702418029308319,
-0.1130366176366806,
-0.08695729821920395,
-0.5135856866836548,
-0.26869338750839233,
-0.015314122661948204,
0.09842872619628906,
0.1275864988565445,
0.07674776017665863,
0.3675942122936249,
-0.2123594582080841,
-0.05946309491991997,
-0.5560926795005798,
0.42994317412376404,
-0.22012898325920105,
0.0037102263886481524,
-0.20143575966358185,
-0.13797354698181152,
-0.04016008600592613,
0.07473941892385483,
0.13642969727516174,
0.3669692277908325,
-0.24268192052841187,
0.04433056712150574,
-0.5643942952156067,
-0.457070529460907,
0.05850501358509064,
-0.4836909770965576,
-0.553826093673706,
-0.12026341259479523,
0.25075238943099976,
-0.028240248560905457,
-0.17785164713859558,
-0.3676702082157135,
0.26058530807495117,
0.07324600219726562,
0.04826025664806366,
-0.2900911867618561,
-0.18717750906944275,
-0.059381674975156784,
-0.08681271970272064,
0.10220089554786682,
0.26771068572998047,
0.3074435591697693,
-0.33211374282836914,
0.2800375819206238,
-0.1016460582613945
] |
https://github.com/huggingface/datasets/issues/2029 | Loading a faiss index KeyError | In your code `dataset2` doesn't contain the "embeddings" column, since it is created from the pandas DataFrame with columns "text" and "label".
Therefore when you call `dataset2[embeddings_name]`, you get a `KeyError`.
If you want the "embeddings" column back, you can create `dataset2` with
```python
dataset2 = load_from_disk(dataset_filename)
```
where `dataset_filename` is the place where you saved you dataset with the embeddings in the first place. | I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
| 65 | Loading a faiss index KeyError
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
In your code `dataset2` doesn't contain the "embeddings" column, since it is created from the pandas DataFrame with columns "text" and "label".
Therefore when you call `dataset2[embeddings_name]`, you get a `KeyError`.
If you want the "embeddings" column back, you can create `dataset2` with
```python
dataset2 = load_from_disk(dataset_filename)
```
where `dataset_filename` is the place where you saved you dataset with the embeddings in the first place. | [
0.0550740621984005,
-0.6190828084945679,
0.07024987041950226,
0.3613130450248718,
0.15540018677711487,
0.27107083797454834,
0.3453340530395508,
0.05105748772621155,
0.5391324758529663,
0.28440243005752563,
-0.07781369239091873,
0.15644265711307526,
0.4091770648956299,
-0.0636669471859932,
-0.06004566699266434,
-0.03658558428287506,
0.22996476292610168,
0.2709699869155884,
0.2771183252334595,
-0.11723682284355164,
-0.21328258514404297,
0.12541361153125763,
-0.2415113002061844,
0.23965050280094147,
-0.24199353158473969,
0.153262659907341,
-0.2360694855451584,
0.02074887603521347,
-0.19631549715995789,
-0.4184427857398987,
0.32184478640556335,
-0.28172168135643005,
0.6558505296707153,
0.19629600644111633,
-0.00012320870882831514,
0.07663385570049286,
0.35823482275009155,
-0.12245336174964905,
-0.21540559828281403,
0.0617961511015892,
0.13875433802604675,
0.06916650384664536,
0.20783454179763794,
-0.04172661900520325,
-0.01470128633081913,
-0.6515751481056213,
0.02663639932870865,
-0.1597285121679306,
0.297443687915802,
-0.005564210470765829,
0.09437331557273865,
0.009831240400671959,
0.08096049726009369,
-0.3012823164463043,
0.06911471486091614,
-0.32619160413742065,
-0.0540434867143631,
0.24273227155208588,
0.045290280133485794,
0.007650280371308327,
0.06686180830001831,
0.29880473017692566,
-0.04010157659649849,
0.021910618990659714,
0.42026472091674805,
0.276611864566803,
0.3658129572868347,
-0.16593925654888153,
0.1298123002052307,
0.1871758997440338,
0.3916555941104889,
-0.10821143537759781,
-0.4308946430683136,
-0.17392387986183167,
0.27717897295951843,
-0.11611352115869522,
0.21102020144462585,
-0.32978326082229614,
-0.01571189984679222,
0.2792978584766388,
0.42980000376701355,
-0.24344852566719055,
0.11592914164066315,
0.08304174244403839,
-0.08956487476825714,
-0.002929285168647766,
-0.19249403476715088,
0.039061762392520905,
0.17960527539253235,
-0.12817490100860596,
-0.30799785256385803,
-0.11444234848022461,
0.10009746253490448,
0.12095960229635239,
-0.3051660656929016,
0.10964851081371307,
0.1938895881175995,
0.008168861269950867,
-0.13555611670017242,
0.00805274024605751,
-0.2509581446647644,
-0.03736966848373413,
0.05729738995432854,
0.3799477219581604,
-0.16400402784347534,
0.014769390225410461,
0.09003254771232605,
0.06117567420005798,
0.06046593561768532,
0.23283226788043976,
0.03346986696124077,
-0.21082213521003723,
-0.176400288939476,
-0.15491726994514465,
-0.4953106641769409,
-0.3186224400997162,
-0.04502585157752037,
-0.31583115458488464,
-0.46812912821769714,
0.3127002716064453,
-0.40210750699043274,
-0.1081995740532875,
-0.003175993449985981,
0.5753404498100281,
0.2059752345085144,
-0.17312699556350708,
0.28174591064453125,
0.3410768508911133,
-0.24256233870983124,
0.2558033764362335,
-0.16184686124324799,
0.1206277459859848,
-0.12695586681365967,
0.37447991967201233,
0.05277052894234657,
-0.43890541791915894,
0.2052888721227646,
0.04448283836245537,
0.2107008844614029,
0.1028740406036377,
-0.42160889506340027,
0.00016941875219345093,
0.2830241024494171,
0.28128552436828613,
-0.08307793736457825,
0.09201303124427795,
0.3403283357620239,
-0.34232252836227417,
-0.1909656971693039,
0.045186519622802734,
-0.11482147127389908,
-0.07473209500312805,
-0.17848841845989227,
0.09114932268857956,
-0.07040109485387802,
-0.08972443640232086,
0.17440056800842285,
0.05619053170084953,
0.1586267650127411,
-0.2581045627593994,
0.08013951778411865,
0.025198690593242645,
-0.1384499967098236,
-0.1799934059381485,
0.4784161448478699,
0.39562153816223145,
-0.7722764611244202,
-0.39882805943489075,
0.11439702659845352,
0.1689772605895996,
-0.1344379484653473,
0.2855868935585022,
-0.08924361318349838,
0.0623679980635643,
-0.23198020458221436,
0.42193543910980225,
0.11154855787754059,
-0.12787114083766937,
-0.19274437427520752,
0.0685720220208168,
0.06793217360973358,
0.004826268181204796,
0.22713065147399902,
-0.1617613285779953,
0.32475796341896057,
0.1531333178281784,
0.3888324499130249,
0.07133740186691284,
0.03995928168296814,
-0.3257412612438202,
-0.1789892017841339,
-0.3758673071861267,
0.09911743551492691,
0.10267652571201324,
-0.09611929953098297,
-0.07423601299524307,
-0.18361014127731323,
-0.32270655035972595,
0.08831460773944855,
-0.23800283670425415,
-0.04856199771165848,
0.04004424810409546,
0.30230870842933655,
0.4282286763191223,
0.44277629256248474,
0.03683074563741684,
-0.011563345789909363,
0.2662014365196228,
0.03248792886734009,
0.09515561908483505,
-0.29855531454086304,
-0.05198775976896286,
-0.23569098114967346,
0.046401068568229675,
-0.06619848310947418,
-0.20133835077285767,
-0.06590867787599564,
-0.009110130369663239,
-0.024678358808159828,
0.047527167946100235,
-0.3220713436603546,
0.07772905379533768,
-0.19476929306983948,
0.21952617168426514,
-0.4618269205093384,
0.47885793447494507,
-0.26204410195350647,
-0.2415873110294342,
0.0462661013007164,
0.304008424282074,
0.1866382360458374,
-0.17258435487747192,
0.16633343696594238,
0.09493933618068695,
-0.09374606609344482,
-0.19922225177288055,
0.11901701986789703,
-0.19176746904850006,
0.1593572497367859,
-0.1571006029844284,
0.057444117963314056,
-0.06692256033420563,
0.1923545002937317,
0.1220773383975029,
-0.17929822206497192,
0.4870288372039795,
0.0392020121216774,
0.27926546335220337,
-0.18538588285446167,
-0.15398181974887848,
0.11312581598758698,
-0.0026398003101348877,
0.010103616863489151,
-0.338264524936676,
-0.08892476558685303,
-0.004655532538890839,
-0.11991806328296661,
-0.06265751272439957,
0.026810400187969208,
0.12312904745340347,
0.017413537949323654,
0.02856980636715889,
-0.10387658327817917,
0.05353455990552902,
-0.33471599221229553,
0.06762360036373138,
0.04714597389101982,
-0.3681938648223877,
0.35424166917800903,
0.2893678545951843,
-0.1669885665178299,
-0.24667885899543762,
-0.24663162231445312,
-0.2522491216659546,
0.13046474754810333,
-0.05279022455215454,
-0.23802761733531952,
0.06198742613196373,
-0.13294626772403717,
0.09304433315992355,
-0.2039635181427002,
-0.03931288421154022,
0.007351836189627647,
0.19901053607463837,
-0.5885120034217834,
0.0874699130654335,
-0.32689976692199707,
-0.084851935505867,
-0.008932060562074184,
-0.11832090467214584,
-0.035033050924539566,
-0.3714101314544678,
0.18186798691749573,
-0.18428757786750793,
-0.033905159682035446,
0.22881992161273956,
0.010824039578437805,
0.19860681891441345,
-0.01587342657148838,
0.0349433533847332,
-0.19947275519371033,
-0.19226932525634766,
-0.2766529321670532,
-0.07508479058742523,
-0.02612624689936638,
0.2121434360742569,
0.24640384316444397,
-0.017493152990937233,
-0.10351897776126862,
-0.10360069572925568,
-0.2901805639266968,
0.26085299253463745,
-0.21846847236156464,
0.09603150188922882,
-0.144301638007164,
0.13346654176712036,
-0.11501458287239075,
-0.20308703184127808,
0.3162393867969513,
-0.07128548622131348,
-0.22333653271198273,
-0.07486893236637115,
0.14459219574928284,
-0.01725725643336773,
-0.11714132130146027,
-0.34397491812705994,
0.08656972646713257,
-0.20176824927330017,
-0.051900312304496765,
-0.17155584692955017,
-0.0757855772972107,
-0.3403175473213196,
0.38888710737228394,
0.10980306565761566,
-0.12065838277339935,
0.08358790725469589,
-0.2783561050891876,
0.07603387534618378,
0.3620349168777466,
-0.049505677074193954,
-0.22942151129245758,
0.16086120903491974,
0.05347070097923279,
-0.21142429113388062,
-0.07397036999464035,
-0.3018965423107147,
-0.5255085229873657,
-0.013785092160105705,
0.20829328894615173,
0.22941511869430542,
0.41046345233917236,
0.14614391326904297,
-0.016688797622919083,
-0.08218938857316971,
-0.08180679380893707,
-0.349111944437027,
0.03399026393890381,
-0.1274581253528595,
0.1863524317741394,
-0.15800726413726807,
0.5168376564979553,
-0.26276251673698425,
0.42414480447769165,
0.4182265102863312,
-0.3344831168651581,
0.4018634855747223,
-0.10264267772436142,
0.48110103607177734,
-0.19389000535011292,
-0.19007128477096558,
0.13050365447998047,
0.05210985243320465,
0.04143434762954712,
0.2256225347518921,
-0.07838451117277145,
0.15157830715179443,
0.05007565766572952,
0.2746850252151489,
-0.1358637809753418,
-0.24876700341701508,
0.06968249380588531,
-0.026574790477752686,
-0.0034898221492767334,
-0.1062733381986618,
0.28501617908477783,
-0.1292749047279358,
0.15036195516586304,
0.2282373607158661,
0.40881866216659546,
0.36972859501838684,
-0.11079581081867218,
0.330461323261261,
-0.32461702823638916,
-0.24792218208312988,
0.5417068600654602,
0.07691401988267899,
0.25908219814300537,
-0.1951620727777481,
-0.08861808478832245,
0.4172723889350891,
0.16333134472370148,
0.5660609006881714,
-0.3769996762275696,
-0.32314223051071167,
0.2717079818248749,
0.2671847343444824,
-0.37121254205703735,
-0.11774446070194244,
-0.020698055624961853,
-0.043531499803066254,
-0.01803329959511757,
0.6748077869415283,
-0.4430408775806427,
-0.04734250158071518,
0.2658805847167969,
0.0650959312915802,
-0.18181829154491425,
-0.4256838858127594,
-0.4909735321998596,
-0.10806616395711899,
-0.47352325916290283,
-0.037767134606838226,
-0.06436027586460114,
0.3547738194465637,
0.05869981646537781,
0.28144264221191406,
-0.07200511544942856,
0.02132265642285347,
0.2308121621608734,
0.33258095383644104,
0.08805574476718903,
0.05965644493699074,
0.19274942576885223,
0.4122960567474365,
0.44057509303092957,
0.2876453995704651,
0.3852207064628601,
-0.08862313628196716,
-0.5030113458633423,
0.11899522691965103,
0.07952988892793655,
0.1915128529071808,
0.3066515326499939,
-0.057734064757823944,
0.25836265087127686,
-0.15171203017234802,
0.0912913829088211,
-0.26202666759490967,
-0.3267897069454193,
0.12303826212882996,
0.11361441761255264,
0.031999893486499786,
-0.2792311906814575,
0.46095600724220276,
-0.00279863178730011,
-0.11770526319742203,
-0.11319363117218018,
0.7454816102981567,
-0.04456339776515961,
0.9066886305809021,
-0.022490598261356354,
0.9038156867027283,
-0.1837664395570755,
0.005494561046361923,
0.41247013211250305,
-0.14304256439208984,
0.5982552766799927,
-0.13974744081497192,
0.005640577524900436,
-0.43720635771751404,
-0.149494469165802,
-0.054374322295188904,
0.013612072914838791,
0.21451899409294128,
-0.07287099957466125,
-0.3070853352546692,
0.12280193716287613,
-0.07230086624622345,
-0.14651767909526825,
-0.08935696631669998,
-0.02706868387758732,
0.06110166013240814,
-0.4498349130153656,
-0.32945936918258667,
0.007823947817087173,
0.44732415676116943,
0.32180413603782654,
0.059540897607803345,
-0.07983063906431198,
-0.3183341324329376,
0.0049135200679302216,
-0.358839213848114,
0.07128814607858658,
0.29945632815361023,
0.16056108474731445,
0.36016660928726196,
-0.20492024719715118,
0.2669721245765686,
0.12774324417114258,
0.7160634994506836,
-0.3889606297016144,
-0.25288125872612,
0.12048003077507019,
-0.36676469445228577,
-0.24271729588508606,
-0.1280360072851181,
-0.3013758957386017,
0.3244975507259369,
0.24489519000053406,
-0.432614803314209,
0.2945294678211212,
0.18069657683372498,
-0.1646520495414734,
-0.16185635328292847,
0.14550399780273438,
-0.06770668923854828,
-0.35634830594062805,
-0.1175529807806015,
-0.09057176113128662,
0.3375672698020935,
-0.14440077543258667,
0.06597653776407242,
0.2046833634376526,
-0.08204780519008636,
0.10913655161857605,
0.08382993936538696,
-0.12310905009508133,
-0.005533851683139801,
0.5033710598945618,
-0.2285597324371338,
0.11460496485233307,
0.34993982315063477,
0.12862353026866913,
-0.449892520904541,
0.00038809701800346375,
-0.4983142614364624,
0.501463770866394,
-0.3836682140827179,
-0.1845145970582962,
0.3491201102733612,
-0.23497040569782257,
-0.022677725180983543,
-0.0013712607324123383,
0.3730078339576721,
-0.2326381504535675,
-0.28153109550476074,
-0.2601920962333679,
-0.10827556997537613,
0.36139750480651855,
-0.13286006450653076,
0.16167572140693665,
-0.08604428172111511,
0.11582762002944946,
-0.12790383398532867,
0.012833332642912865,
-0.2126484513282776,
0.1579229086637497,
-0.13722872734069824,
0.07535184174776077,
-0.07343512773513794,
-0.2143034040927887,
-0.0054204994812607765,
-0.24599634110927582,
0.01982986368238926,
0.16605083644390106,
0.028093494474887848,
-0.016721606254577637,
-0.010271616280078888,
0.1721183955669403,
0.061721574515104294,
0.1258162409067154,
-0.41393712162971497,
-0.07177066802978516,
-0.03208082914352417,
-0.3967060446739197,
0.35435420274734497,
0.20075088739395142,
-0.04689209163188934,
-0.07181385904550552,
0.0021623708307743073,
0.07318703085184097,
0.04126198589801788,
0.24621184170246124,
0.12417829036712646,
0.5196714997291565,
0.28026336431503296,
-0.11639045178890228,
-0.4827323853969574,
0.14838969707489014,
0.024218924343585968,
0.40922772884368896,
0.15061533451080322,
-0.04090177267789841,
0.3504684865474701,
-0.29400497674942017,
-0.06803040951490402,
0.004269894678145647,
0.22359374165534973,
0.3811904191970825,
-0.0977509468793869,
0.06811665743589401,
0.21369940042495728,
0.04740549251437187,
-0.2503564953804016,
0.0347793810069561,
0.38098469376564026,
-0.14747051894664764,
-0.03412444517016411,
0.23386842012405396,
0.18129965662956238,
0.12278823554515839,
-0.19792447984218597,
0.06926038861274719,
0.20642592012882233,
0.13131168484687805,
-0.3917587697505951,
0.048544757068157196,
0.14348900318145752,
0.2531648278236389,
0.4207601845264435,
0.2260640412569046,
0.3615330159664154,
0.10744127631187439,
-0.16831538081169128,
0.030404765158891678,
-0.04286996275186539,
0.3624769151210785,
-0.17027762532234192,
-0.5442962050437927,
0.4591156244277954,
0.19908127188682556,
0.4446202516555786,
-0.30057084560394287,
0.011094138026237488,
0.22464340925216675,
-0.0075125740841031075,
0.002991120796650648,
-0.12642966210842133,
0.0194794163107872,
-0.20735278725624084,
-0.48146766424179077,
0.24697083234786987,
0.007039681077003479,
-0.16179582476615906,
-0.07484191656112671,
0.09046325087547302,
-0.16714364290237427,
-0.11276185512542725,
-0.12882211804389954,
-0.312762975692749,
-0.16333046555519104,
-0.3798958659172058,
0.2976244390010834,
0.2746294438838959,
0.01720600202679634,
-0.09243053942918777,
-0.08203782141208649,
-0.012951016426086426,
0.36288580298423767,
0.07100291550159454,
0.5582460761070251,
0.09283307194709778,
-0.11611950397491455,
0.11368690431118011,
0.010831896215677261,
0.05225750803947449,
-0.014790207147598267,
0.11803745478391647,
-0.16040542721748352,
0.2515517473220825,
0.2814062237739563,
0.0793314129114151,
-0.12622247636318207,
-0.386667400598526,
-0.026021849364042282,
0.6515322923660278,
0.09285761415958405,
-0.12936779856681824,
-0.4074525535106659,
0.07243663817644119,
-0.11088024079799652,
0.03836282342672348,
-0.31132426857948303,
0.2983466386795044,
0.03686946630477905,
-0.09624895453453064,
-0.012902727350592613,
0.26674938201904297,
0.02368795871734619,
-0.18711625039577484,
0.25475478172302246,
0.8629198670387268,
-0.08747687190771103,
-0.24326148629188538,
0.15776006877422333,
-0.5931993126869202,
0.23700445890426636,
-0.07494001090526581,
-0.22063158452510834,
0.2276032716035843,
0.6163488626480103,
0.43112969398498535,
-0.03190968930721283,
-0.010508209466934204,
-0.04498813673853874,
0.2689785957336426,
0.4219914376735687,
-0.00008635222911834717,
-0.31207752227783203,
-0.11986419558525085,
-0.20529375970363617,
-0.10858329385519028,
0.01600145548582077,
0.11131493747234344,
-0.10173138976097107,
-0.043883513659238815,
0.038988545536994934,
0.12288029491901398,
-0.17387522757053375,
-0.3629509210586548,
0.6114476323127747,
0.036908216774463654,
0.3470844030380249,
-0.13605976104736328,
-0.005968891084194183,
-0.1750846952199936,
-0.16968274116516113,
0.03294580429792404,
0.28291505575180054,
-0.18066100776195526,
0.2205716073513031,
-0.17666180431842804,
-0.28836843371391296,
-0.2644262909889221,
0.2516523003578186,
0.0712011381983757,
-0.27015233039855957,
-0.20919983088970184,
0.18262234330177307,
-0.1758241057395935,
0.0448128804564476,
-0.036168649792671204,
0.0521937720477581,
-0.04623429477214813,
0.2966393530368805,
0.10567745566368103,
-0.2640364468097687,
0.6632553339004517,
-0.3797849714756012,
0.03185635805130005,
0.18263132870197296,
0.19510889053344727,
0.4907488226890564,
0.0071045104414224625,
-0.890553891658783,
0.04151275008916855,
0.038294244557619095,
-0.0612078532576561,
-0.32319992780685425,
-0.09070676565170288,
0.20052161812782288,
0.07877631485462189,
-0.23113074898719788,
-0.1733236163854599,
0.016819117590785027,
0.12169140577316284,
0.01777384802699089,
-0.26730823516845703
] |
https://github.com/huggingface/datasets/issues/2029 | Loading a faiss index KeyError | Ok in that case HF should fix their misleading example at https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I copy-pasted it here.
> When you are done with your queries you can save your index on disk:
>
> ```python
> ds_with_embeddings.save_faiss_index('embeddings', 'my_index.faiss')
> ```
> Then reload it later:
>
> ```python
> ds = load_dataset('crime_and_punish', split='train[:100]')
> ds.load_faiss_index('embeddings', 'my_index.faiss')
> ``` | I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
| 57 | Loading a faiss index KeyError
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
Ok in that case HF should fix their misleading example at https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I copy-pasted it here.
> When you are done with your queries you can save your index on disk:
>
> ```python
> ds_with_embeddings.save_faiss_index('embeddings', 'my_index.faiss')
> ```
> Then reload it later:
>
> ```python
> ds = load_dataset('crime_and_punish', split='train[:100]')
> ds.load_faiss_index('embeddings', 'my_index.faiss')
> ``` | [
0.01727960631251335,
-0.5772304534912109,
0.06312304735183716,
0.2795121669769287,
0.08014959841966629,
0.2722070813179016,
0.3179306387901306,
0.1032484769821167,
0.5430004000663757,
0.27028799057006836,
-0.11547300964593887,
0.11195064336061478,
0.4107095003128052,
-0.10571907460689545,
-0.05825651437044144,
-0.019387751817703247,
0.22881749272346497,
0.25645911693573,
0.22517083585262299,
-0.13394226133823395,
-0.2051003873348236,
0.09734772890806198,
-0.2735077738761902,
0.2104548066854477,
-0.21787671744823456,
0.1518886685371399,
-0.22787722945213318,
0.056894101202487946,
-0.1768643707036972,
-0.43198150396347046,
0.3245585858821869,
-0.2239338457584381,
0.6598060131072998,
0.1977226585149765,
-0.00012157022138126194,
0.12187868356704712,
0.3807426691055298,
-0.15950992703437805,
-0.25136876106262207,
0.11510083079338074,
0.0764164850115776,
0.027223384007811546,
0.2132127732038498,
-0.07267747819423676,
0.006101131439208984,
-0.6095622777938843,
0.053328901529312134,
-0.17942015826702118,
0.24127551913261414,
0.024558499455451965,
0.11260120570659637,
0.057678766548633575,
0.04220445081591606,
-0.3755270540714264,
0.09923220425844193,
-0.31272679567337036,
-0.06819227337837219,
0.2848208248615265,
-0.007160380482673645,
0.002299850806593895,
0.00634755939245224,
0.3573620319366455,
-0.020069211721420288,
0.019341416656970978,
0.400461882352829,
0.2284754514694214,
0.30436962842941284,
-0.1044260710477829,
0.15673716366291046,
0.17006292939186096,
0.31592270731925964,
-0.15487736463546753,
-0.39620840549468994,
-0.12166783958673477,
0.1943066418170929,
-0.1263984590768814,
0.19703707098960876,
-0.30634790658950806,
0.023513752967119217,
0.31192147731781006,
0.39522427320480347,
-0.1900372952222824,
0.1177399754524231,
0.08200948685407639,
-0.06454793363809586,
-0.05138428509235382,
-0.21085496246814728,
0.02407902479171753,
0.19027909636497498,
-0.08653085678815842,
-0.28200969099998474,
-0.155973419547081,
0.07476397603750229,
0.08232709020376205,
-0.35040876269340515,
0.16805152595043182,
0.20654579997062683,
0.020942892879247665,
-0.07232396304607391,
-0.02485848218202591,
-0.20643071830272675,
0.015259663574397564,
0.15694092214107513,
0.36110255122184753,
-0.2030457854270935,
-0.017811685800552368,
0.044889964163303375,
0.019162379205226898,
0.1014065220952034,
0.27696332335472107,
-0.0010163560509681702,
-0.21690711379051208,
-0.11316896229982376,
-0.15016485750675201,
-0.4902278184890747,
-0.33672621846199036,
-0.04144083708524704,
-0.34899359941482544,
-0.478696346282959,
0.30672213435173035,
-0.4552726745605469,
-0.13043487071990967,
0.01864567957818508,
0.6528443098068237,
0.18601475656032562,
-0.25718992948532104,
0.25223487615585327,
0.32968175411224365,
-0.3448682129383087,
0.2203895002603531,
-0.19810965657234192,
0.11313453316688538,
-0.11607973277568817,
0.4127856194972992,
0.1097564548254013,
-0.46003860235214233,
0.17544645071029663,
0.012085064314305782,
0.22218000888824463,
0.08428384363651276,
-0.343034029006958,
-0.03079053945839405,
0.3162083625793457,
0.29776856303215027,
-0.06580469012260437,
0.07196728885173798,
0.3783288300037384,
-0.32620561122894287,
-0.22400659322738647,
0.04656849801540375,
-0.12611693143844604,
-0.11553020030260086,
-0.1683066189289093,
0.11499960720539093,
-0.04471937566995621,
-0.06951572000980377,
0.23598259687423706,
0.09916114807128906,
0.1431572437286377,
-0.26346156001091003,
0.08151699602603912,
0.039304353296756744,
-0.18172141909599304,
-0.17815306782722473,
0.4668315649032593,
0.42613738775253296,
-0.7533155083656311,
-0.3583066761493683,
0.10445909202098846,
0.22463981807231903,
-0.13046714663505554,
0.28015264868736267,
-0.13365547358989716,
0.05120355635881424,
-0.26632392406463623,
0.47767317295074463,
0.16053585708141327,
-0.15009233355522156,
-0.21011458337306976,
0.11528755724430084,
0.1037185788154602,
0.01635567657649517,
0.19066771864891052,
-0.15384411811828613,
0.33974018692970276,
0.11711172759532928,
0.33729231357574463,
-0.024212967604398727,
0.03646966069936752,
-0.34727391600608826,
-0.25519636273384094,
-0.33730974793434143,
0.08232703804969788,
0.09593260288238525,
-0.05802822485566139,
-0.11279772967100143,
-0.10977771133184433,
-0.3149943947792053,
0.11164352297782898,
-0.21942871809005737,
-0.06899095326662064,
0.13419800996780396,
0.29314127564430237,
0.39780914783477783,
0.4509916603565216,
0.06530404090881348,
-0.07931559532880783,
0.2604402005672455,
0.0285848006606102,
0.060843173414468765,
-0.18461228907108307,
-0.10177182406187057,
-0.2828640341758728,
0.047787465155124664,
-0.10882000625133514,
-0.21916580200195312,
-0.028245041146874428,
-0.0028138086199760437,
-0.05790279805660248,
0.05746147409081459,
-0.31441983580589294,
0.1071905642747879,
-0.20376266539096832,
0.1530470848083496,
-0.4385949969291687,
0.46634089946746826,
-0.3173537254333496,
-0.23102892935276031,
0.046002864837646484,
0.2543344795703888,
0.17450085282325745,
-0.1636386513710022,
0.12952633202075958,
0.10269775986671448,
-0.05661986395716667,
-0.2618730664253235,
0.17464154958724976,
-0.16550953686237335,
0.14276207983493805,
-0.22919070720672607,
0.0832303911447525,
-0.041944775730371475,
0.20455171167850494,
0.11576388031244278,
-0.22818538546562195,
0.4575836658477783,
0.052060894668102264,
0.2677704095840454,
-0.14735957980155945,
-0.2205035388469696,
0.13868828117847443,
0.0298013873398304,
-0.0034480122849345207,
-0.32383444905281067,
-0.10255731642246246,
0.03775195777416229,
-0.11645331978797913,
-0.0653848871588707,
0.01812122017145157,
0.19225718080997467,
0.01988954469561577,
0.03166976943612099,
-0.1030554249882698,
0.08113858848810196,
-0.25992777943611145,
0.02538791298866272,
0.09230539202690125,
-0.4249453544616699,
0.36047613620758057,
0.2861749827861786,
-0.1327141374349594,
-0.2303948998451233,
-0.26571905612945557,
-0.28749880194664,
0.06737488508224487,
-0.08044189214706421,
-0.22731351852416992,
0.12740229070186615,
-0.07425560057163239,
0.08627063035964966,
-0.22239255905151367,
-0.04405201971530914,
0.012266678735613823,
0.14903731644153595,
-0.5887739062309265,
0.13965897262096405,
-0.38800355792045593,
-0.09424571692943573,
0.029119830578565598,
-0.13836367428302765,
-0.08690425753593445,
-0.3894474506378174,
0.2312374860048294,
-0.1868152618408203,
-0.05425937473773956,
0.2351476550102234,
-0.0808567926287651,
0.18291160464286804,
0.01586681418120861,
-0.009837912395596504,
-0.16900381445884705,
-0.16157087683677673,
-0.3648661971092224,
-0.08544217050075531,
-0.024152621626853943,
0.2970386743545532,
0.2358441799879074,
-0.03164515644311905,
-0.12092970311641693,
-0.13398747146129608,
-0.3524385988712311,
0.2762563228607178,
-0.14326496422290802,
0.12914776802062988,
-0.10654924809932709,
0.07737201452255249,
-0.1703564077615738,
-0.17098212242126465,
0.31471341848373413,
-0.022213835269212723,
-0.1975483000278473,
-0.014907455071806908,
0.12426163256168365,
0.03556176647543907,
-0.06515317410230637,
-0.3328304588794708,
0.10470729321241379,
-0.2776852548122406,
-0.1136714518070221,
-0.1886596828699112,
-0.05359503626823425,
-0.30467545986175537,
0.3891735374927521,
0.11959375441074371,
-0.10833169519901276,
0.09647046029567719,
-0.29303207993507385,
0.14722979068756104,
0.36781030893325806,
-0.10097154974937439,
-0.29944056272506714,
0.18631380796432495,
0.028902053833007812,
-0.21744582056999207,
-0.04390016943216324,
-0.3964252471923828,
-0.4838353395462036,
-0.026263391599059105,
0.2239997386932373,
0.20831723511219025,
0.3773666322231293,
0.15857337415218353,
-0.0878763496875763,
-0.08576895296573639,
-0.09887919574975967,
-0.3516177833080292,
0.08676180243492126,
-0.18403324484825134,
0.1607315093278885,
-0.19173845648765564,
0.5027082562446594,
-0.23632507026195526,
0.4415208101272583,
0.4734845459461212,
-0.3138490915298462,
0.4359808564186096,
-0.05602692812681198,
0.5026721358299255,
-0.2558836340904236,
-0.16059908270835876,
0.12896811962127686,
0.04156206548213959,
-0.015303310938179493,
0.231912299990654,
-0.06993406265974045,
0.13131724298000336,
0.07958444207906723,
0.24802172183990479,
-0.08464416861534119,
-0.28263479471206665,
0.11312311142683029,
0.02794530615210533,
0.004901379346847534,
-0.08292481303215027,
0.29153183102607727,
-0.07844503223896027,
0.1364879012107849,
0.2619972825050354,
0.4994945526123047,
0.3746815025806427,
-0.059598032385110855,
0.39227986335754395,
-0.27160412073135376,
-0.29883211851119995,
0.5406864881515503,
0.07666858285665512,
0.2704480290412903,
-0.23162753880023956,
-0.13291117548942566,
0.381705641746521,
0.11871686577796936,
0.46694934368133545,
-0.3202130198478699,
-0.276958703994751,
0.36230432987213135,
0.215748131275177,
-0.3539115786552429,
-0.16028377413749695,
-0.042199354618787766,
-0.06497659534215927,
-0.04566154256463051,
0.681030809879303,
-0.44880983233451843,
-0.0919199138879776,
0.2719634771347046,
0.04849481210112572,
-0.19177517294883728,
-0.42966026067733765,
-0.4913110136985779,
-0.20999765396118164,
-0.4370378255844116,
-0.07126773148775101,
-0.08320943266153336,
0.2882450819015503,
0.06757637858390808,
0.2692577838897705,
-0.0639859065413475,
0.021134551614522934,
0.17592710256576538,
0.29881545901298523,
0.08544456958770752,
0.05540044233202934,
0.22257834672927856,
0.35165148973464966,
0.4493591785430908,
0.3105468153953552,
0.37614771723747253,
-0.09230011701583862,
-0.3685173988342285,
0.19497895240783691,
0.12154848873615265,
0.13476227223873138,
0.34883421659469604,
-0.05989226698875427,
0.3128325343132019,
-0.141094371676445,
0.13426712155342102,
-0.25919103622436523,
-0.31055569648742676,
0.07688947767019272,
0.05827087163925171,
0.04375995695590973,
-0.2096959352493286,
0.5280876159667969,
-0.017682747915387154,
-0.10884226113557816,
-0.10193173587322235,
0.7750856280326843,
-0.0008787382394075394,
0.8857611417770386,
0.05650268495082855,
0.9090359210968018,
-0.17131707072257996,
0.02348947897553444,
0.4463817775249481,
-0.18763020634651184,
0.48258957266807556,
-0.195145845413208,
0.04261280968785286,
-0.43739205598831177,
-0.25198760628700256,
-0.056614361703395844,
0.004872020334005356,
0.16581103205680847,
-0.08413076400756836,
-0.35714325308799744,
0.10297735035419464,
-0.049615759402513504,
-0.16446053981781006,
-0.08599739521741867,
-0.06378728151321411,
-0.0010359901934862137,
-0.37926119565963745,
-0.30390000343322754,
0.029028423130512238,
0.4822967052459717,
0.36954033374786377,
0.022044159471988678,
-0.07903220504522324,
-0.291441410779953,
0.00644269585609436,
-0.3014765977859497,
0.04091329872608185,
0.2598654329776764,
0.15976296365261078,
0.30919554829597473,
-0.16461241245269775,
0.24547958374023438,
0.03595871478319168,
0.6067765355110168,
-0.3963741064071655,
-0.2278275489807129,
0.06608586013317108,
-0.2978232204914093,
-0.23671367764472961,
-0.09107306599617004,
-0.32103094458580017,
0.35300636291503906,
0.216413676738739,
-0.3930768370628357,
0.24555981159210205,
0.12775574624538422,
-0.16995258629322052,
-0.1908748745918274,
0.1798236072063446,
-0.1001085489988327,
-0.36219164729118347,
-0.0792512595653534,
-0.08531545102596283,
0.24354764819145203,
-0.09452348202466965,
0.0748395174741745,
0.1713632047176361,
-0.019290732219815254,
0.13981646299362183,
0.12925443053245544,
-0.1324252188205719,
0.0063684117048978806,
0.5463542938232422,
-0.2605176568031311,
0.13050396740436554,
0.3212524652481079,
0.15464156866073608,
-0.49566417932510376,
-0.03223598003387451,
-0.5321478247642517,
0.49352937936782837,
-0.30973199009895325,
-0.17656908929347992,
0.2286674976348877,
-0.1850275695323944,
-0.0002236887812614441,
0.03565475344657898,
0.41128355264663696,
-0.30130767822265625,
-0.2987973093986511,
-0.2700883746147156,
-0.09514625370502472,
0.43404126167297363,
-0.09440906345844269,
0.15650391578674316,
-0.0819237232208252,
0.07990111410617828,
-0.10405667126178741,
0.04196187108755112,
-0.23910677433013916,
0.15090599656105042,
-0.12278760969638824,
0.03788837790489197,
-0.1788298785686493,
-0.21388143301010132,
0.020580172538757324,
-0.17556098103523254,
0.016848092898726463,
0.17163711786270142,
-0.05221790075302124,
-0.04249361902475357,
0.011465322226285934,
0.17594636976718903,
0.026844510808587074,
0.09678091108798981,
-0.3826614320278168,
-0.08191181719303131,
-0.0648975670337677,
-0.3780136704444885,
0.30313143134117126,
0.19706162810325623,
-0.07791782915592194,
-0.11886650323867798,
0.01534108817577362,
0.030786864459514618,
0.062490008771419525,
0.25312212109565735,
0.1842307150363922,
0.5281676650047302,
0.2460189312696457,
-0.1327630877494812,
-0.521260142326355,
0.12348800897598267,
0.07253565639257431,
0.45311427116394043,
0.1454979032278061,
-0.06404545903205872,
0.3715767562389374,
-0.3348655700683594,
-0.03544646501541138,
-0.06358185410499573,
0.2820003628730774,
0.3686344623565674,
-0.11747004836797714,
0.031243467703461647,
0.1743302345275879,
0.06965295970439911,
-0.24468916654586792,
0.0674639344215393,
0.37839818000793457,
-0.12763917446136475,
0.021246496587991714,
0.25951096415519714,
0.1960684210062027,
0.12450939416885376,
-0.17767800390720367,
0.09349183738231659,
0.14377166330814362,
0.1801261007785797,
-0.4203801155090332,
0.014665920287370682,
0.059391897171735764,
0.2737780511379242,
0.3931540846824646,
0.1846986562013626,
0.4034121632575989,
0.07298126816749573,
-0.12661635875701904,
0.07672569900751114,
0.004841797053813934,
0.39155545830726624,
-0.2059016227722168,
-0.6314300298690796,
0.47307345271110535,
0.24343669414520264,
0.5203198194503784,
-0.30032628774642944,
-0.027320735156536102,
0.21134743094444275,
0.015867330133914948,
0.0019209565361961722,
-0.14044731855392456,
0.008723538368940353,
-0.1797018051147461,
-0.422844260931015,
0.260308176279068,
-0.013575613498687744,
-0.2500584125518799,
-0.10145328938961029,
0.055635079741477966,
-0.13754422962665558,
-0.12219943106174469,
-0.09836722910404205,
-0.273823082447052,
-0.1351662129163742,
-0.2959282398223877,
0.3009158968925476,
0.2911665737628937,
0.040797699242830276,
-0.025356674566864967,
-0.04205484688282013,
0.007270477712154388,
0.34672102332115173,
0.0485006645321846,
0.532879114151001,
0.14213939011096954,
-0.10488122701644897,
0.07605951279401779,
0.06317313015460968,
0.058993615210056305,
0.00003602541983127594,
0.1344175636768341,
-0.16734814643859863,
0.21818992495536804,
0.3409721851348877,
0.06370213627815247,
-0.13141508400440216,
-0.3197764754295349,
-0.0504969097673893,
0.5998362898826599,
0.10000211000442505,
-0.16187706589698792,
-0.3587867319583893,
0.10461137443780899,
-0.06218898296356201,
0.021511301398277283,
-0.263264536857605,
0.28260159492492676,
0.11950540542602539,
-0.14053510129451752,
0.08468200266361237,
0.2874368131160736,
0.03859066218137741,
-0.17727088928222656,
0.31133803725242615,
0.8044203519821167,
-0.07803357392549515,
-0.26706549525260925,
0.1288086473941803,
-0.5427345037460327,
0.268016517162323,
-0.18297822773456573,
-0.18503519892692566,
0.2906185984611511,
0.6496265530586243,
0.41903233528137207,
-0.03230699151754379,
0.07213157415390015,
-0.11047101765871048,
0.3419898450374603,
0.44373276829719543,
0.021264035254716873,
-0.33508703112602234,
-0.16642120480537415,
-0.21123963594436646,
-0.13984414935112,
-0.06455478817224503,
0.1304071992635727,
-0.06124291941523552,
-0.012106746435165405,
0.03484637662768364,
0.10608676075935364,
-0.09498724341392517,
-0.34371107816696167,
0.6024447679519653,
0.03808734565973282,
0.3508692681789398,
-0.1602429747581482,
-0.04480299353599548,
-0.17961972951889038,
-0.11768195033073425,
0.03824450820684433,
0.23024219274520874,
-0.21099638938903809,
0.1636524349451065,
-0.14356569945812225,
-0.3141816258430481,
-0.26847419142723083,
0.29332247376441956,
0.09347626566886902,
-0.2817203402519226,
-0.17171815037727356,
0.1432597041130066,
-0.20024889707565308,
0.03347475454211235,
-0.027099452912807465,
0.07889340817928314,
-0.03356640040874481,
0.33099907636642456,
0.07544304430484772,
-0.2962700426578522,
0.6966269612312317,
-0.3728353977203369,
0.07053148746490479,
0.2038525640964508,
0.23605380952358246,
0.501144289970398,
0.03288144990801811,
-0.8710238933563232,
-0.006415367126464844,
0.09064830094575882,
-0.07195423543453217,
-0.2740328013896942,
-0.05546550825238228,
0.19809430837631226,
0.03844409063458443,
-0.23263905942440033,
-0.08695125579833984,
-0.0006064549088478088,
0.1136786937713623,
-0.046307679265737534,
-0.2873271107673645
] |
https://github.com/huggingface/datasets/issues/2029 | Loading a faiss index KeyError | Hi !
The code of the example is valid.
An index is a search engine, it's not considered a column of a dataset.
When you do `ds.load_faiss_index("embeddings", 'my_index.faiss')`, it attaches an index named "embeddings" to the dataset but it doesn't re-add the "embeddings" column. You can list the indexes of a dataset by using `ds.list_indexes()`.
If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column.
This looks misleading indeed, and we should add a note to make it more explicit that it doesn't store the column that was used to build the index.
Feel free to open a PR to suggest an improvement on the documentation if you want to contribute :) | I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
| 119 | Loading a faiss index KeyError
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
Hi !
The code of the example is valid.
An index is a search engine, it's not considered a column of a dataset.
When you do `ds.load_faiss_index("embeddings", 'my_index.faiss')`, it attaches an index named "embeddings" to the dataset but it doesn't re-add the "embeddings" column. You can list the indexes of a dataset by using `ds.list_indexes()`.
If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column.
This looks misleading indeed, and we should add a note to make it more explicit that it doesn't store the column that was used to build the index.
Feel free to open a PR to suggest an improvement on the documentation if you want to contribute :) | [
0.13970805704593658,
-0.5335462093353271,
0.051471609622240067,
0.31969743967056274,
0.12647497653961182,
0.27505674958229065,
0.4119959771633148,
-0.04047832265496254,
0.6586281657218933,
0.20735463500022888,
-0.06241346150636673,
0.15385836362838745,
0.38660484552383423,
-0.04890163242816925,
0.013029846362769604,
-0.017361566424369812,
0.3034026622772217,
0.22086310386657715,
0.24146133661270142,
-0.15659813582897186,
-0.18136975169181824,
0.07171747833490372,
-0.2770501673221588,
0.11127317696809769,
-0.19683140516281128,
0.1754428893327713,
-0.2499135434627533,
-0.03279528766870499,
-0.22553867101669312,
-0.3927149772644043,
0.32989394664764404,
-0.24550390243530273,
0.6396083831787109,
0.19093146920204163,
-0.0001244103186763823,
0.11366687715053558,
0.3821777105331421,
-0.13723793625831604,
-0.25953909754753113,
0.12433958053588867,
-0.04079219698905945,
0.028388934209942818,
0.22597332298755646,
-0.07417389750480652,
0.0443996787071228,
-0.6045327186584473,
0.030618272721767426,
-0.26641005277633667,
0.20416750013828278,
0.0784025564789772,
0.08112325519323349,
0.02667168900370598,
0.05949318781495094,
-0.35015869140625,
0.14530572295188904,
-0.2944701313972473,
-0.1072397455573082,
0.27233776450157166,
0.03636635094881058,
0.05917868763208389,
0.09677045792341232,
0.22348320484161377,
-0.029700621962547302,
-0.004460548982024193,
0.38167721033096313,
0.32067492604255676,
0.32335248589515686,
-0.1499413549900055,
0.18329709768295288,
0.139644056558609,
0.47784242033958435,
-0.08671440929174423,
-0.3786846995353699,
-0.12745891511440277,
0.21332226693630219,
-0.1693466603755951,
0.17817991971969604,
-0.3018351197242737,
0.04948719963431358,
0.28333836793899536,
0.3947207033634186,
-0.2305172085762024,
0.1729186773300171,
0.1110185831785202,
-0.10586507618427277,
0.029610849916934967,
-0.23337006568908691,
0.08126872777938843,
0.12547868490219116,
-0.08155529946088791,
-0.23091280460357666,
-0.11102141439914703,
0.12038414180278778,
0.11445911973714828,
-0.34781408309936523,
0.2244480848312378,
0.21049988269805908,
0.019231218844652176,
-0.11707372963428497,
0.035505276173353195,
-0.11751267313957214,
0.04515158385038376,
0.08256970345973969,
0.3602946698665619,
-0.16127881407737732,
0.04259486496448517,
0.09055008739233017,
-0.001476131845265627,
0.031570762395858765,
0.20606283843517303,
0.03466994687914848,
-0.2354733645915985,
-0.12731854617595673,
-0.051164984703063965,
-0.46011754870414734,
-0.3972393572330475,
-0.022084709256887436,
-0.29396721720695496,
-0.46825650334358215,
0.32696962356567383,
-0.3949010968208313,
-0.1495504379272461,
0.035908039659261703,
0.6100537776947021,
0.24236539006233215,
-0.24100300669670105,
0.2574201226234436,
0.3329063653945923,
-0.2494078129529953,
0.25055524706840515,
-0.21557915210723877,
0.10016068816184998,
-0.1791631579399109,
0.416097491979599,
0.08831647038459778,
-0.43629908561706543,
0.20588965713977814,
-0.01568528451025486,
0.11531873047351837,
0.016086265444755554,
-0.44228029251098633,
-0.010799279436469078,
0.32890787720680237,
0.3100946247577667,
-0.11815492808818817,
0.06469897925853729,
0.290696382522583,
-0.3939504027366638,
-0.17814409732818604,
0.08676347881555557,
-0.11326054483652115,
-0.024350464344024658,
-0.19088636338710785,
0.07114741951227188,
-0.11139875650405884,
-0.13815437257289886,
0.20291021466255188,
0.12367655336856842,
0.15407970547676086,
-0.26102307438850403,
0.10423647612333298,
0.03244388476014137,
-0.16944998502731323,
-0.18805135786533356,
0.5441298484802246,
0.3905661106109619,
-0.7543742060661316,
-0.35465624928474426,
0.021022101864218712,
0.19536781311035156,
-0.08983331173658371,
0.20882438123226166,
-0.07030358165502548,
0.1384410858154297,
-0.28013524413108826,
0.43640315532684326,
0.2500099539756775,
-0.029927361756563187,
-0.1367248296737671,
-0.027881447225809097,
0.08228360116481781,
0.011290213093161583,
0.14623987674713135,
-0.0464116707444191,
0.30896756052970886,
0.23037365078926086,
0.28614962100982666,
0.0061391741037368774,
0.05979625880718231,
-0.3615944981575012,
-0.19483838975429535,
-0.27271753549575806,
0.1160120740532875,
0.08043095469474792,
-0.03724215552210808,
-0.02800901234149933,
-0.09629293531179428,
-0.36188003420829773,
0.06445030868053436,
-0.1609586477279663,
-0.047905340790748596,
0.05180809646844864,
0.3199557960033417,
0.4249478578567505,
0.4439719021320343,
0.06355355679988861,
-0.14283770322799683,
0.2731234133243561,
0.16685789823532104,
0.002476602792739868,
-0.19463957846164703,
-0.04104727506637573,
-0.3104976415634155,
0.10023601353168488,
-0.08617089688777924,
-0.19012610614299774,
-0.09360253810882568,
0.04340469837188721,
-0.039303846657276154,
0.034856852144002914,
-0.3543618619441986,
0.09177041798830032,
-0.13899312913417816,
0.18693119287490845,
-0.46183088421821594,
0.4687994420528412,
-0.2446718066930771,
-0.23997871577739716,
-0.0660557821393013,
0.2928886413574219,
0.09532405436038971,
-0.23050114512443542,
0.15914708375930786,
0.1184905469417572,
0.015007102862000465,
-0.2839363217353821,
0.17430202662944794,
-0.17552514374256134,
0.15072239935398102,
-0.21294893324375153,
0.10873392969369888,
-0.06528988480567932,
0.2566757798194885,
0.06909503787755966,
-0.23927375674247742,
0.42371541261672974,
0.01811886765062809,
0.2957785427570343,
-0.19879421591758728,
-0.21147775650024414,
0.12702924013137817,
0.041851747781038284,
-0.05457301437854767,
-0.30169665813446045,
-0.18672414124011993,
-0.02595154196023941,
-0.12244808673858643,
-0.04582767188549042,
0.0013796165585517883,
0.14798346161842346,
-0.031773779541254044,
0.0533248670399189,
-0.0762057974934578,
0.04678438603878021,
-0.3594030737876892,
0.017525989562273026,
0.06330100446939468,
-0.40149980783462524,
0.4099878668785095,
0.26768842339515686,
-0.04248398169875145,
-0.28473371267318726,
-0.15804152190685272,
-0.29276642203330994,
0.03624914586544037,
-0.03726109117269516,
-0.23390087485313416,
0.13301897048950195,
-0.05644959211349487,
0.024952590465545654,
-0.27096232771873474,
0.038487810641527176,
0.10107444226741791,
0.1226191595196724,
-0.5553828477859497,
0.09185946732759476,
-0.3217410743236542,
-0.022808246314525604,
0.024797219783067703,
-0.10728009045124054,
-0.04404328390955925,
-0.3912597894668579,
0.153103768825531,
-0.11462371051311493,
-0.016934840008616447,
0.21432361006736755,
-0.06200006231665611,
0.21817147731781006,
-0.024720219895243645,
-0.04014359414577484,
-0.18765325844287872,
-0.21245494484901428,
-0.30345815420150757,
-0.09880763292312622,
-0.003245850093662739,
0.2954036593437195,
0.22418667376041412,
-0.020266439765691757,
-0.07088158279657364,
-0.16172142326831818,
-0.32949158549308777,
0.25599974393844604,
-0.16733543574810028,
0.13258907198905945,
-0.12510012090206146,
0.11967174708843231,
-0.19699060916900635,
-0.12603147327899933,
0.26353439688682556,
-0.04873906821012497,
-0.17949223518371582,
-0.05375571921467781,
0.18226586282253265,
0.02491186186671257,
-0.10082325339317322,
-0.4248000681400299,
0.13421334326267242,
-0.1854081004858017,
-0.07517418265342712,
-0.16832606494426727,
-0.07007251679897308,
-0.2950831353664398,
0.39343222975730896,
0.12326352298259735,
-0.0822993665933609,
0.08145900070667267,
-0.36216434836387634,
0.1432953029870987,
0.35592666268348694,
-0.05116451904177666,
-0.3062044680118561,
0.22697225213050842,
-0.023869680240750313,
-0.21265289187431335,
-0.023242678493261337,
-0.3001648783683777,
-0.4479038119316101,
0.024727456271648407,
0.14864905178546906,
0.30763858556747437,
0.414419949054718,
0.1959235966205597,
-0.12592607736587524,
-0.03822314366698265,
-0.12480191886425018,
-0.42076098918914795,
0.12425211071968079,
-0.011737342923879623,
0.197339728474617,
-0.09833255410194397,
0.5074978470802307,
-0.30510884523391724,
0.49467623233795166,
0.34916990995407104,
-0.4038628339767456,
0.44987499713897705,
-0.1538040041923523,
0.5353226065635681,
-0.22702807188034058,
-0.1876470297574997,
0.09773148596286774,
0.09771314263343811,
-0.07425683736801147,
0.2291565239429474,
-0.07714645564556122,
0.1077795997262001,
0.07862576097249985,
0.39985495805740356,
-0.15349888801574707,
-0.23505860567092896,
0.09338167309761047,
0.04169908165931702,
-0.004332497715950012,
-0.09674784541130066,
0.2947266399860382,
-0.09905856847763062,
0.1402980089187622,
0.1448267251253128,
0.46614599227905273,
0.4105900526046753,
-0.11447306722402573,
0.3640742897987366,
-0.27890145778656006,
-0.32217398285865784,
0.5076093077659607,
-0.009489263407886028,
0.31124600768089294,
-0.19096815586090088,
-0.22576311230659485,
0.42709076404571533,
0.16221334040164948,
0.5094700455665588,
-0.37137606739997864,
-0.3883594274520874,
0.332629919052124,
0.29549774527549744,
-0.36318859457969666,
-0.15254032611846924,
-0.027386847883462906,
-0.021592946723103523,
-0.037003565579652786,
0.6526849865913391,
-0.42287278175354004,
-0.0011690085520967841,
0.2416592836380005,
0.08184285461902618,
-0.20179948210716248,
-0.3822225034236908,
-0.5365281105041504,
-0.20041289925575256,
-0.36919236183166504,
-0.05372057110071182,
-0.11743652075529099,
0.3132624626159668,
0.16939252614974976,
0.17669393122196198,
-0.09361813962459564,
-0.06188983470201492,
0.19373801350593567,
0.30946221947669983,
0.08490893244743347,
0.18151076138019562,
0.2277316153049469,
0.37159016728401184,
0.4876294434070587,
0.2552196979522705,
0.3997569978237152,
-0.19003775715827942,
-0.24395158886909485,
0.1860184371471405,
0.025718003511428833,
0.21177372336387634,
0.2899111211299896,
-0.033005017787218094,
0.20364424586296082,
-0.19589942693710327,
0.06492607295513153,
-0.22016628086566925,
-0.25909191370010376,
0.14629149436950684,
0.09349106252193451,
0.004181631375104189,
-0.2914552092552185,
0.544859766960144,
-0.017598720267415047,
-0.22072599828243256,
-0.1630166471004486,
0.7354047894477844,
-0.05294685810804367,
0.8978902697563171,
-0.002840869128704071,
0.9030038118362427,
-0.25799643993377686,
-0.05609508231282234,
0.41464731097221375,
-0.0845782458782196,
0.5710943937301636,
-0.14553943276405334,
0.07414932548999786,
-0.4189850986003876,
-0.23358950018882751,
-0.08286304026842117,
-0.052309777587652206,
0.18024174869060516,
-0.1072506457567215,
-0.29004740715026855,
0.0874738022685051,
-0.08362079411745071,
-0.13425606489181519,
-0.08750069886445999,
-0.0732039213180542,
0.15483878552913666,
-0.33995524048805237,
-0.20966172218322754,
0.011138029396533966,
0.47513526678085327,
0.3716219961643219,
0.0004495391622185707,
-0.0049823494628071785,
-0.31484901905059814,
-0.020830899477005005,
-0.29482123255729675,
0.025920432060956955,
0.3043399155139923,
0.14374575018882751,
0.30110499262809753,
-0.24683614075183868,
0.20286604762077332,
0.13603703677654266,
0.5763687491416931,
-0.4888344705104828,
-0.1904987245798111,
0.11825357377529144,
-0.30014872550964355,
-0.22964917123317719,
-0.158682182431221,
-0.33492356538772583,
0.29590293765068054,
0.30552929639816284,
-0.3957144320011139,
0.21168389916419983,
0.13475027680397034,
-0.21608838438987732,
-0.1810222864151001,
0.20220889151096344,
-0.03488565981388092,
-0.4023378789424896,
-0.11476308107376099,
0.008068278431892395,
0.2858686149120331,
-0.09762448072433472,
0.04075615853071213,
0.16612787544727325,
-0.03704917058348656,
0.20139262080192566,
0.14747367799282074,
-0.14115464687347412,
-0.005466721951961517,
0.571029782295227,
-0.2033819556236267,
0.17250439524650574,
0.29773053526878357,
0.14023369550704956,
-0.4358298182487488,
-0.03534262627363205,
-0.551581859588623,
0.504902720451355,
-0.2644137740135193,
-0.20701661705970764,
0.26309487223625183,
-0.1769469827413559,
0.05232136696577072,
0.02108469232916832,
0.3146510720252991,
-0.2509734034538269,
-0.391597718000412,
-0.27117085456848145,
-0.047689519822597504,
0.42465871572494507,
-0.08915942907333374,
0.1883837729692459,
-0.17194992303848267,
0.00017600320279598236,
-0.09201554208993912,
0.013145468197762966,
-0.19611692428588867,
0.1657242327928543,
-0.07582683861255646,
0.10750286281108856,
-0.029734652489423752,
-0.17648747563362122,
0.0076229749247431755,
-0.3154182732105255,
0.0121848676353693,
0.08215881884098053,
0.020067453384399414,
-0.017369624227285385,
0.05585435405373573,
0.1841937154531479,
0.08154858648777008,
0.15430611371994019,
-0.4690365493297577,
-0.03691729158163071,
-0.05662534013390541,
-0.4456322491168976,
0.3262780010700226,
0.14440232515335083,
-0.15965323150157928,
-0.13179165124893188,
0.03735039383172989,
0.14133648574352264,
0.04746107757091522,
0.21255694329738617,
0.1360691487789154,
0.5164858102798462,
0.23257875442504883,
-0.13561251759529114,
-0.426855206489563,
0.1551969051361084,
0.08979957550764084,
0.4254204332828522,
0.16615870594978333,
-0.1481361985206604,
0.3840106427669525,
-0.3068838119506836,
0.01126791536808014,
-0.013534425757825375,
0.2134609818458557,
0.4560759365558624,
-0.06282959878444672,
0.07916563004255295,
0.19103553891181946,
0.04117809981107712,
-0.19625408947467804,
0.0836331695318222,
0.39547547698020935,
-0.10426449030637741,
0.015106428414583206,
0.28219595551490784,
0.21611115336418152,
0.15743733942508698,
-0.2313297539949417,
0.04672500491142273,
0.1695627123117447,
0.27419084310531616,
-0.3947870433330536,
-0.0031681619584560394,
0.07394751906394958,
0.27835461497306824,
0.4403623342514038,
0.17064857482910156,
0.3151629567146301,
0.15103304386138916,
-0.16431227326393127,
0.10359585285186768,
0.03899063915014267,
0.4055016338825226,
-0.18533313274383545,
-0.5798711180686951,
0.549957811832428,
0.2564827799797058,
0.4967415928840637,
-0.27851179242134094,
0.02763601765036583,
0.21316280961036682,
0.007769295945763588,
-0.011287612840533257,
-0.21049875020980835,
0.03702742978930473,
-0.14640232920646667,
-0.4431438744068146,
0.2175292670726776,
-0.0443866141140461,
-0.23701952397823334,
-0.10079999268054962,
0.029851282015442848,
-0.19731663167476654,
-0.10290908813476562,
-0.1672842800617218,
-0.303496778011322,
-0.16123871505260468,
-0.3351868987083435,
0.2984621524810791,
0.22374901175498962,
0.0694236308336258,
-0.05101273953914642,
-0.17266584932804108,
-0.014790229499340057,
0.365104615688324,
0.09828706085681915,
0.4093310832977295,
0.09224304556846619,
-0.05016636475920677,
0.13715384900569916,
0.04767140746116638,
0.009827768430113792,
-0.06809073686599731,
0.13685016334056854,
-0.20606708526611328,
0.1784709244966507,
0.20988862216472626,
0.062412507832050323,
-0.06111741065979004,
-0.33006343245506287,
-0.027207065373659134,
0.6360582709312439,
0.04770244285464287,
-0.1378110647201538,
-0.3980536162853241,
0.03923993557691574,
-0.08326314389705658,
-0.011674828827381134,
-0.26534920930862427,
0.27882128953933716,
0.05983512103557587,
-0.13426484167575836,
0.05671268701553345,
0.3222050368785858,
0.011663157492876053,
-0.2166978418827057,
0.26536333560943604,
0.7818454504013062,
-0.09926503151655197,
-0.17186115682125092,
0.11673612892627716,
-0.5884335041046143,
0.20827169716358185,
-0.1338329315185547,
-0.2299385964870453,
0.23741696774959564,
0.6179019808769226,
0.4279899597167969,
-0.05817843973636627,
0.03173569589853287,
-0.06839366257190704,
0.29861509799957275,
0.39980974793434143,
0.024750184267759323,
-0.31537216901779175,
-0.16264384984970093,
-0.16445575654506683,
-0.13962006568908691,
0.012508854269981384,
0.1287265568971634,
-0.14962589740753174,
-0.06127861142158508,
0.04955778270959854,
0.11296239495277405,
-0.17671427130699158,
-0.3649272322654724,
0.7231638431549072,
0.01154654286801815,
0.3714819848537445,
-0.1130693107843399,
0.05163846164941788,
-0.26284533739089966,
-0.2042689323425293,
0.04727654159069061,
0.3148731291294098,
-0.19293999671936035,
0.15715757012367249,
-0.1494903862476349,
-0.22761447727680206,
-0.18848618865013123,
0.2476053237915039,
0.09087413549423218,
-0.2714473605155945,
-0.23099395632743835,
0.12852269411087036,
-0.2478741705417633,
0.010283742100000381,
-0.01498675998300314,
0.02484436333179474,
-0.04832020401954651,
0.27728885412216187,
0.10548524558544159,
-0.27249735593795776,
0.5993978977203369,
-0.40960851311683655,
0.10132057964801788,
0.09721101075410843,
0.22118037939071655,
0.5730556845664978,
0.022323261946439743,
-0.8656449913978577,
-0.005809970200061798,
0.08379616588354111,
-0.13170844316482544,
-0.24589762091636658,
-0.09870503842830658,
0.18038904666900635,
0.055853601545095444,
-0.31650111079216003,
-0.15918006002902985,
-0.012558206915855408,
0.1369660645723343,
-0.09018296003341675,
-0.28962260484695435
] |
https://github.com/huggingface/datasets/issues/2029 | Loading a faiss index KeyError | > If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column.
Yes. I was trying to use the dataset in RAG and it complained that the dataset didn't have the right columns. No problems when loading the dataset with `load_from_disk` and then doing `load_faiss_index`
What I learned was
1. column and index are different
2. loading the index does not create a column
3. the column is not needed to be able to use the index
4. RAG needs both the embeddings column and the index
If I can come up with a way to articulate this in the right spot in the docs, I'll open a PR | I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
| 115 | Loading a faiss index KeyError
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation.
The basic steps are:
1. Create a dataset (dataset1)
2. Create an embeddings column using DPR
3. Add a faiss index to the dataset
4. Save faiss index to a file
5. Create a new dataset (dataset2) with the same text and label information as dataset1
6. Try to load the faiss index from file to dataset2
7. Get `KeyError: "Column embeddings not in the dataset"`
I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU.
https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing
Ubuntu Version
VERSION="18.04.5 LTS (Bionic Beaver)"
datasets==1.4.1
faiss==1.5.3
faiss-gpu==1.7.0
torch==1.8.0+cu101
transformers==4.3.3
NVIDIA-SMI 460.56
Driver Version: 460.32.03
CUDA Version: 11.2
Tesla K80
I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index
I included the exact code from the documentation at the end of the notebook to show that they don't work either.
> If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column.
Yes. I was trying to use the dataset in RAG and it complained that the dataset didn't have the right columns. No problems when loading the dataset with `load_from_disk` and then doing `load_faiss_index`
What I learned was
1. column and index are different
2. loading the index does not create a column
3. the column is not needed to be able to use the index
4. RAG needs both the embeddings column and the index
If I can come up with a way to articulate this in the right spot in the docs, I'll open a PR | [
0.114166259765625,
-0.6093648672103882,
0.062236350029706955,
0.37251102924346924,
0.13730180263519287,
0.2862831652164459,
0.40662792325019836,
0.027965500950813293,
0.5614458322525024,
0.20742478966712952,
-0.057639189064502716,
0.15142200887203217,
0.47379112243652344,
-0.06073666363954544,
-0.05298912525177002,
-0.04161544889211655,
0.2702906131744385,
0.24316224455833435,
0.27373427152633667,
-0.16266921162605286,
-0.20256488025188446,
0.12476574629545212,
-0.2621256709098816,
0.1718703806400299,
-0.24821071326732635,
0.24874748289585114,
-0.2778122127056122,
0.030895976349711418,
-0.24042032659053802,
-0.38261306285858154,
0.3425862491130829,
-0.2952021062374115,
0.6600481271743774,
0.14926180243492126,
-0.00012319156667217612,
0.10207816958427429,
0.32733094692230225,
-0.18719428777694702,
-0.21228569746017456,
0.09153585135936737,
0.11227972060441971,
0.014388905838131905,
0.20146845281124115,
-0.08705636113882065,
-0.005721423774957657,
-0.6249673366546631,
-0.012162761762738228,
-0.16448253393173218,
0.18244048953056335,
0.033269885927438736,
0.10686471313238144,
-0.006537291221320629,
0.0351543165743351,
-0.3783898651599884,
0.20511206984519958,
-0.33389919996261597,
-0.10932490974664688,
0.3227837383747101,
0.09181803464889526,
0.06594103574752808,
0.05419250205159187,
0.18775512278079987,
-0.06825423240661621,
0.12062765657901764,
0.4152822494506836,
0.2805345356464386,
0.3271453380584717,
-0.09415571391582489,
0.1916976273059845,
0.19262665510177612,
0.45426997542381287,
-0.040183261036872864,
-0.33391398191452026,
-0.11438429355621338,
0.2563905119895935,
-0.15852582454681396,
0.23078709840774536,
-0.2589789927005768,
0.018375981599092484,
0.3088291585445404,
0.3913376033306122,
-0.20830224454402924,
0.14921194314956665,
0.11256062984466553,
-0.0701967403292656,
-0.049944162368774414,
-0.23364369571208954,
0.10628216713666916,
0.11876176297664642,
-0.041224583983421326,
-0.22930894792079926,
-0.16648517549037933,
0.06980320066213608,
0.08679457753896713,
-0.33133018016815186,
0.13001590967178345,
0.1641417145729065,
0.06615912169218063,
-0.10914251208305359,
0.05478520691394806,
-0.18937422335147858,
-0.02648753672838211,
0.13744968175888062,
0.3345857858657837,
-0.18037661910057068,
0.024696845561265945,
0.04442036524415016,
-0.0005221990868449211,
-0.011388644576072693,
0.2225162535905838,
0.04412950202822685,
-0.2677796483039856,
-0.09624792635440826,
-0.10686162859201431,
-0.5135742425918579,
-0.303986519575119,
-0.1129448339343071,
-0.3393261432647705,
-0.4211432635784149,
0.2222638726234436,
-0.4232881963253021,
-0.14129012823104858,
-0.02981579676270485,
0.5755093097686768,
0.275249183177948,
-0.1636069416999817,
0.21799980103969574,
0.37872451543807983,
-0.297256737947464,
0.17818358540534973,
-0.18840792775154114,
0.08736322820186615,
-0.17981790006160736,
0.43884608149528503,
0.1041526198387146,
-0.4247673749923706,
0.2150660753250122,
0.09942486882209778,
0.0897853896021843,
0.06372208148241043,
-0.37704747915267944,
-0.0550755076110363,
0.34084025025367737,
0.27611351013183594,
-0.0871320441365242,
0.08471012115478516,
0.35609814524650574,
-0.2921202778816223,
-0.20509690046310425,
0.059205763041973114,
-0.12360890954732895,
-0.10763327777385712,
-0.14795081317424774,
0.09176000207662582,
-0.0937497690320015,
-0.05814418941736221,
0.1996406614780426,
0.0405040942132473,
0.15049880743026733,
-0.32999610900878906,
0.04498354345560074,
-0.009383115917444229,
-0.16189073026180267,
-0.22454118728637695,
0.4479081928730011,
0.3724363446235657,
-0.775933563709259,
-0.33683568239212036,
0.055039361119270325,
0.15568609535694122,
-0.08233755081892014,
0.2427777498960495,
-0.12442277371883392,
0.13491109013557434,
-0.27099892497062683,
0.4014905095100403,
0.12205392122268677,
-0.09015457332134247,
-0.17089113593101501,
0.044893935322761536,
0.09302499890327454,
0.028585849329829216,
0.23800179362297058,
-0.09867097437381744,
0.3254886567592621,
0.149747833609581,
0.3354112505912781,
-0.00019833259284496307,
0.004355378448963165,
-0.3671828806400299,
-0.16304799914360046,
-0.3921636939048767,
0.06977290660142899,
0.09562253952026367,
-0.13257268071174622,
-0.025171302258968353,
-0.13507702946662903,
-0.4143712818622589,
0.08103868365287781,
-0.24818193912506104,
-0.04805624485015869,
0.024453168734908104,
0.267490029335022,
0.3455544710159302,
0.4671976566314697,
0.0824592188000679,
-0.1673387587070465,
0.2564874589443207,
0.1291600465774536,
0.042305223643779755,
-0.12255160510540009,
-0.01573781482875347,
-0.27942875027656555,
-0.012705812230706215,
-0.04968194290995598,
-0.1818126142024994,
-0.07905992120504379,
0.01458953320980072,
-0.011876767501235008,
-0.07578486204147339,
-0.33210834860801697,
0.13034392893314362,
-0.25766876339912415,
0.20695620775222778,
-0.5300256609916687,
0.45209118723869324,
-0.28027066588401794,
-0.22286659479141235,
0.03299928456544876,
0.24889183044433594,
0.14724379777908325,
-0.2128632664680481,
0.14380234479904175,
0.10140642523765564,
-0.0003676852211356163,
-0.2585803270339966,
0.11111710965633392,
-0.18294356763362885,
0.16200321912765503,
-0.14460094273090363,
0.08512745797634125,
-0.11798377335071564,
0.2549680173397064,
0.06506326049566269,
-0.22447285056114197,
0.45913606882095337,
-0.023492004722356796,
0.30522096157073975,
-0.20298855006694794,
-0.2119348794221878,
0.11735662817955017,
-0.01786651462316513,
-0.02672925591468811,
-0.33005157113075256,
-0.11730028688907623,
0.04390344023704529,
-0.16801871359348297,
-0.05418841540813446,
0.08579908311367035,
0.10690376162528992,
-0.02823420986533165,
0.052294861525297165,
-0.15526476502418518,
0.011299517005681992,
-0.2901858985424042,
0.018937960267066956,
0.08877106755971909,
-0.37209969758987427,
0.4891068935394287,
0.28946420550346375,
-0.15150600671768188,
-0.26881322264671326,
-0.21404223144054413,
-0.33132511377334595,
0.059576839208602905,
-0.0840371698141098,
-0.21003824472427368,
0.15871748328208923,
-0.1157231479883194,
0.05468140169978142,
-0.2241607904434204,
0.008105039596557617,
0.07596276700496674,
0.15769748389720917,
-0.5991177558898926,
0.05723683536052704,
-0.30491501092910767,
-0.03660173714160919,
0.030859723687171936,
-0.10123004019260406,
0.04151834174990654,
-0.3487307131290436,
0.18157623708248138,
-0.11908435821533203,
-0.037794772535562515,
0.15112905204296112,
-0.06264160573482513,
0.22031153738498688,
-0.08167809993028641,
0.04887028783559799,
-0.19511350989341736,
-0.2207871675491333,
-0.3345488905906677,
-0.06908856332302094,
-0.055573977530002594,
0.3011593818664551,
0.18259182572364807,
-0.04116218164563179,
-0.12989795207977295,
-0.13964137434959412,
-0.2877669036388397,
0.30020225048065186,
-0.16889457404613495,
0.15247593820095062,
-0.11279310286045074,
0.11339697241783142,
-0.13852795958518982,
-0.15316951274871826,
0.32622045278549194,
-0.03577442094683647,
-0.194945827126503,
-0.07042737305164337,
0.09430115669965744,
-0.029889240860939026,
-0.08833321928977966,
-0.4785197675228119,
0.1902281790971756,
-0.20062999427318573,
-0.1416560709476471,
-0.19470566511154175,
-0.08397863805294037,
-0.41740429401397705,
0.4110865592956543,
0.09257396310567856,
-0.06988321244716644,
0.09429987519979477,
-0.3801020383834839,
0.06980936229228973,
0.3063390254974365,
-0.0815025269985199,
-0.2894347608089447,
0.14652219414710999,
0.009655158966779709,
-0.21569731831550598,
0.03900868445634842,
-0.319602906703949,
-0.5543980002403259,
0.021747522056102753,
0.15951035916805267,
0.2703956365585327,
0.4036833941936493,
0.15676714479923248,
-0.10570334643125534,
-0.053316380828619,
-0.11792031675577164,
-0.4052334725856781,
0.03280060738325119,
-0.05352126806974411,
0.21136504411697388,
-0.1147603914141655,
0.48694899678230286,
-0.32067209482192993,
0.5223788619041443,
0.3810577690601349,
-0.33831846714019775,
0.4276518225669861,
-0.11276871711015701,
0.5202959775924683,
-0.24227091670036316,
-0.14221203327178955,
0.19874507188796997,
0.05869464576244354,
0.0017600618302822113,
0.24371866881847382,
-0.09586386382579803,
0.11906652897596359,
0.06896039098501205,
0.3653152883052826,
-0.08962196856737137,
-0.26740238070487976,
0.1314048022031784,
0.03055180050432682,
-0.01604476571083069,
-0.07163813710212708,
0.32725489139556885,
-0.09209078550338745,
0.15457680821418762,
0.1849210262298584,
0.39696866273880005,
0.3998638391494751,
-0.0730622187256813,
0.27124541997909546,
-0.3327036201953888,
-0.2081063985824585,
0.5384803414344788,
0.08142220228910446,
0.28049436211586,
-0.19650240242481232,
-0.16231349110603333,
0.4398677349090576,
0.1852533221244812,
0.5423481464385986,
-0.42568835616111755,
-0.3764913082122803,
0.3058632016181946,
0.32167455554008484,
-0.43372562527656555,
-0.14761488139629364,
-0.022491563111543655,
-0.04536131024360657,
-0.014993693679571152,
0.7402037382125854,
-0.4742543697357178,
-0.017762882634997368,
0.26062649488449097,
0.10666913539171219,
-0.1701061874628067,
-0.4776916801929474,
-0.5002129077911377,
-0.14443765580654144,
-0.4203992486000061,
-0.0762697234749794,
-0.2062741369009018,
0.30784308910369873,
0.10219281911849976,
0.2367188185453415,
-0.0812157690525055,
0.012986335903406143,
0.15018019080162048,
0.30228614807128906,
0.044606760144233704,
0.052597638219594955,
0.21014909446239471,
0.4190897047519684,
0.43588870763778687,
0.27209052443504333,
0.42050862312316895,
-0.13997814059257507,
-0.33202269673347473,
0.20888423919677734,
-0.0006844867020845413,
0.16122783720493317,
0.3638094365596771,
0.029952332377433777,
0.2056964635848999,
-0.1669265776872635,
0.010323256254196167,
-0.2124233841896057,
-0.3417513072490692,
0.0968279168009758,
0.06270677596330643,
0.07182460278272629,
-0.2635461688041687,
0.49067509174346924,
0.029607407748699188,
-0.14652147889137268,
-0.10244709253311157,
0.7082782983779907,
-0.00388301070779562,
0.9643492698669434,
-0.006848037242889404,
0.9512913823127747,
-0.15516754984855652,
-0.03763614967465401,
0.4408627450466156,
-0.18203073740005493,
0.497823566198349,
-0.16123564541339874,
0.10901272296905518,
-0.4382877051830292,
-0.21741624176502228,
-0.0792141780257225,
-0.04545622318983078,
0.191879004240036,
-0.023382730782032013,
-0.2681634724140167,
0.15533660352230072,
-0.10227924585342407,
-0.09495189785957336,
-0.09575750678777695,
-0.055362768471241,
0.06451104581356049,
-0.4010765254497528,
-0.19228307902812958,
0.018740296363830566,
0.4626627564430237,
0.35808101296424866,
0.025602709501981735,
0.02972652204334736,
-0.32381898164749146,
-0.011519737541675568,
-0.3098016381263733,
0.046371713280677795,
0.3120695650577545,
0.10807649046182632,
0.382355660200119,
-0.24168002605438232,
0.2194238156080246,
0.10668016970157623,
0.6348163485527039,
-0.4909476935863495,
-0.19866572320461273,
0.13144731521606445,
-0.22501739859580994,
-0.24956759810447693,
-0.14120550453662872,
-0.3402716815471649,
0.303634375333786,
0.24554908275604248,
-0.41585081815719604,
0.2610158622264862,
0.11050157994031906,
-0.13139942288398743,
-0.16386498510837555,
0.15263329446315765,
0.00987723097205162,
-0.4759310185909271,
-0.10791607201099396,
-0.023459263145923615,
0.3508506417274475,
-0.09615741670131683,
0.05728253349661827,
0.10417972505092621,
-0.021820206195116043,
0.19862812757492065,
0.07227882742881775,
-0.12420342117547989,
-0.03190242499113083,
0.48559024930000305,
-0.16332218050956726,
0.14178207516670227,
0.3344898223876953,
0.09869129955768585,
-0.41702884435653687,
-0.02846181020140648,
-0.5361009240150452,
0.5242938995361328,
-0.3646399676799774,
-0.18970973789691925,
0.31458523869514465,
-0.17211240530014038,
0.06391394138336182,
0.014535170048475266,
0.38197535276412964,
-0.20456337928771973,
-0.2862964868545532,
-0.26019519567489624,
-0.020641906186938286,
0.3878621459007263,
-0.06254120171070099,
0.13801200687885284,
-0.11810830980539322,
0.004194870591163635,
-0.12067550420761108,
0.0701410323381424,
-0.2063860446214676,
0.17697161436080933,
-0.0697772428393364,
0.13052865862846375,
-0.034991554915905,
-0.2045268416404724,
-0.03642866387963295,
-0.2391810119152069,
0.018126850947737694,
0.09277006983757019,
-0.01831238530576229,
-0.0059971995651721954,
0.013902362436056137,
0.1815476268529892,
0.09017970412969589,
0.11116355657577515,
-0.42622601985931396,
-0.047481633722782135,
-0.06762832403182983,
-0.3948303461074829,
0.35418206453323364,
0.1756356656551361,
-0.11669562757015228,
-0.16516344249248505,
0.04959459602832794,
0.06970100104808807,
-0.056394848972558975,
0.26389211416244507,
0.12733949720859528,
0.5054331421852112,
0.28312721848487854,
-0.13079889118671417,
-0.4669467508792877,
0.1515468806028366,
0.06834755092859268,
0.39968279004096985,
0.18057602643966675,
-0.09227100759744644,
0.3608170747756958,
-0.2189323455095291,
0.028939533978700638,
-0.0035553101915866137,
0.13133199512958527,
0.45950713753700256,
-0.05300531163811684,
0.05779509246349335,
0.1733683943748474,
0.05633983761072159,
-0.1533014476299286,
0.09759340435266495,
0.33123520016670227,
-0.09352871775627136,
-0.03808100149035454,
0.23219765722751617,
0.2101740539073944,
0.09216240048408508,
-0.17720766365528107,
0.03370921313762665,
0.22561483085155487,
0.18712881207466125,
-0.3880457878112793,
-0.012069974094629288,
0.10332198441028595,
0.2610355019569397,
0.4901569187641144,
0.10795025527477264,
0.3249964714050293,
0.04467211663722992,
-0.10877331346273422,
0.0432826429605484,
0.047109995037317276,
0.4198778569698334,
-0.1686376929283142,
-0.6134330034255981,
0.515734851360321,
0.2900373339653015,
0.474455326795578,
-0.3256697952747345,
0.03629788011312485,
0.23244693875312805,
0.013147754594683647,
-0.006487536709755659,
-0.17166981101036072,
-0.03228282555937767,
-0.16261625289916992,
-0.4494573473930359,
0.12969012558460236,
-0.03750983998179436,
-0.15597081184387207,
-0.030580822378396988,
0.023607566952705383,
-0.09763854742050171,
-0.005641333758831024,
-0.09764836728572845,
-0.31798893213272095,
-0.18045277893543243,
-0.3293997049331665,
0.27657151222229004,
0.23270025849342346,
0.06574338674545288,
-0.045187853276729584,
-0.11335600912570953,
-0.03200890123844147,
0.45097869634628296,
0.03849630057811737,
0.5022711753845215,
0.1259165108203888,
0.01648062840104103,
0.03369526565074921,
0.0694674402475357,
0.0463828518986702,
-0.011855577118694782,
0.21214361488819122,
-0.12749503552913666,
0.24947839975357056,
0.2408227175474167,
0.09029427170753479,
-0.10382488369941711,
-0.35258787870407104,
-0.054138485342264175,
0.5762382745742798,
0.06361827254295349,
-0.1043974980711937,
-0.397902250289917,
0.05231250822544098,
-0.0834134891629219,
0.013453163206577301,
-0.19973668456077576,
0.3871746063232422,
-0.003299415111541748,
-0.10491882264614105,
0.038101937621831894,
0.3390267789363861,
0.02344800904393196,
-0.18518097698688507,
0.24326081573963165,
0.8182146549224854,
-0.2200944423675537,
-0.23271818459033966,
0.12558969855308533,
-0.5277734994888306,
0.2583823502063751,
-0.13817071914672852,
-0.16598065197467804,
0.20669439435005188,
0.6418518424034119,
0.4926269054412842,
-0.04489032179117203,
-0.026389822363853455,
-0.04076559469103813,
0.27490466833114624,
0.41525137424468994,
0.04232126846909523,
-0.33993101119995117,
-0.09488113224506378,
-0.21206629276275635,
-0.16273640096187592,
-0.059730950742959976,
0.10980543494224548,
-0.046406347304582596,
-0.06074684113264084,
0.0680689811706543,
0.06998181343078613,
-0.13503096997737885,
-0.3679937422275543,
0.6232011318206787,
0.05875974893569946,
0.36268192529678345,
-0.11510798335075378,
0.02545764110982418,
-0.28043675422668457,
-0.15380531549453735,
-0.0043474240228533745,
0.2639607787132263,
-0.19374091923236847,
0.14827995002269745,
-0.15942540764808655,
-0.1516762226819992,
-0.2438269704580307,
0.23025397956371307,
0.04256054759025574,
-0.1830158829689026,
-0.20475947856903076,
0.1614382266998291,
-0.2503417134284973,
0.022426066920161247,
-0.002981727011501789,
0.023191215470433235,
-0.05041956156492233,
0.27514487504959106,
0.07465922832489014,
-0.22653579711914062,
0.6171561479568481,
-0.3164283335208893,
0.09093804657459259,
0.16473807394504547,
0.2101885974407196,
0.49744972586631775,
0.04366067796945572,
-0.8163813352584839,
-0.013322286307811737,
0.07788792997598648,
-0.13949045538902283,
-0.24824011325836182,
-0.09615938365459442,
0.22678831219673157,
0.02299271896481514,
-0.28479504585266113,
-0.22235655784606934,
0.05003700777888298,
0.052701398730278015,
-0.06663820892572403,
-0.24812468886375427
] |
https://github.com/huggingface/datasets/issues/2026 | KeyError on using map after renaming a column | Hi,
Actually, the error occurs due to these two lines:
```python
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
```
`Dataset.rename_column` doesn't update the `_format_columns` attribute, previously defined by `Dataset.set_format`, with a new column name which is why this new column is missing in the output. | Hi,
I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function.
Here is what I try:
```python
transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])])
def prepare_features(examples):
images = []
labels = []
print(examples)
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(examples["image"][example_idx].permute(2,0,1)))
else:
images.append(examples["image"][example_idx].permute(2,0,1))
labels.append(examples["label"][example_idx])
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('cifar10')
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
features = datasets.Features({
"image": datasets.Array3D(shape=(3,32,32),dtype="float32"),
"label": datasets.features.ClassLabel(names=[
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]),
})
train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
```
The error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-54-bf29672c53ee> in <module>()
14 ]),
15 })
---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
2 frames
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1287 test_inputs = self[:2] if batched else self[0]
1288 test_indices = [0, 1] if batched else 0
-> 1289 update_data = does_function_return_dict(test_inputs, test_indices)
1290 logger.info("Testing finished, running the mapping function on the dataset")
1291
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1259 processed_inputs = (
-> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1261 )
1262 does_return_dict = isinstance(processed_inputs, Mapping)
<ipython-input-52-b4dccbafb70d> in prepare_features(examples)
3 labels = []
4 print(examples)
----> 5 for example_idx, example in enumerate(examples["image"]):
6 if transform is not None:
7 images.append(transform(examples["image"][example_idx].permute(2,0,1)))
KeyError: 'image'
```
The print statement inside returns this:
```python
{'label': tensor([6, 9])}
```
Apparently, both `img` and `image` do not exist after renaming.
Note that this code works fine with `img` everywhere.
Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
| 42 | KeyError on using map after renaming a column
Hi,
I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function.
Here is what I try:
```python
transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])])
def prepare_features(examples):
images = []
labels = []
print(examples)
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(examples["image"][example_idx].permute(2,0,1)))
else:
images.append(examples["image"][example_idx].permute(2,0,1))
labels.append(examples["label"][example_idx])
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('cifar10')
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
features = datasets.Features({
"image": datasets.Array3D(shape=(3,32,32),dtype="float32"),
"label": datasets.features.ClassLabel(names=[
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]),
})
train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
```
The error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-54-bf29672c53ee> in <module>()
14 ]),
15 })
---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
2 frames
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1287 test_inputs = self[:2] if batched else self[0]
1288 test_indices = [0, 1] if batched else 0
-> 1289 update_data = does_function_return_dict(test_inputs, test_indices)
1290 logger.info("Testing finished, running the mapping function on the dataset")
1291
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1259 processed_inputs = (
-> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1261 )
1262 does_return_dict = isinstance(processed_inputs, Mapping)
<ipython-input-52-b4dccbafb70d> in prepare_features(examples)
3 labels = []
4 print(examples)
----> 5 for example_idx, example in enumerate(examples["image"]):
6 if transform is not None:
7 images.append(transform(examples["image"][example_idx].permute(2,0,1)))
KeyError: 'image'
```
The print statement inside returns this:
```python
{'label': tensor([6, 9])}
```
Apparently, both `img` and `image` do not exist after renaming.
Note that this code works fine with `img` everywhere.
Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
Hi,
Actually, the error occurs due to these two lines:
```python
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
```
`Dataset.rename_column` doesn't update the `_format_columns` attribute, previously defined by `Dataset.set_format`, with a new column name which is why this new column is missing in the output. | [
0.03439067676663399,
0.006200328469276428,
-0.06358008831739426,
-0.33422839641571045,
0.48084425926208496,
0.2616390883922577,
0.6042662262916565,
0.2373318076133728,
0.13709133863449097,
0.08659094572067261,
0.05403532087802887,
0.5270300507545471,
-0.1558949202299118,
0.299463152885437,
-0.1945008784532547,
-0.08811669051647186,
0.41338199377059937,
0.09350358694791794,
-0.11563342809677124,
0.19720222055912018,
-0.4435485303401947,
0.04970606043934822,
-0.3014572560787201,
0.28078383207321167,
-0.3147517442703247,
-0.1778964102268219,
0.05453304946422577,
-0.19385433197021484,
-0.24731765687465668,
-0.2746689021587372,
-0.049216002225875854,
0.09710322320461273,
-0.022366512566804886,
0.6005280017852783,
-0.0001189421018352732,
0.08269932866096497,
0.1887073963880539,
-0.08655152469873428,
0.08298535645008087,
-0.29607516527175903,
-0.18191516399383545,
-0.011541635729372501,
-0.22306129336357117,
-0.5142740607261658,
0.0406854972243309,
-0.06361528486013412,
-0.07717244327068329,
-0.26717761158943176,
0.10244952887296677,
0.24669966101646423,
0.16382978856563568,
-0.11388292908668518,
0.22092284262180328,
-0.022048676386475563,
0.04394690319895744,
0.23825402557849884,
-0.19265122711658478,
0.07693187147378922,
0.04910498857498169,
-0.3582008481025696,
0.22909864783287048,
0.6931740641593933,
-0.2142525166273117,
-0.08262568712234497,
0.2492944598197937,
0.1485666036605835,
0.41321098804473877,
-0.3595764636993408,
0.36146479845046997,
-0.13661789894104004,
0.23790553212165833,
-0.15123847126960754,
-0.10438065975904465,
-0.054232802242040634,
-0.0018237661570310593,
-0.2537846565246582,
-0.023236185312271118,
-0.31963834166526794,
0.07769593596458435,
-0.22969913482666016,
-0.33052748441696167,
-0.18500682711601257,
0.12853673100471497,
0.2078441083431244,
0.12311360239982605,
-0.09719839692115784,
-0.029608361423015594,
0.44928187131881714,
0.1049036830663681,
-0.3226708173751831,
-0.12460611015558243,
0.026912925764918327,
0.09808441996574402,
0.22117313742637634,
-0.22417791187763214,
-0.06977488845586777,
0.10546714067459106,
-0.022715307772159576,
-0.28656813502311707,
-0.6728143095970154,
0.01710115745663643,
-0.11549855023622513,
0.1804637312889099,
0.07850121706724167,
0.10636244714260101,
0.20729036629199982,
-0.08792559057474136,
0.3839029371738434,
0.043741222470998764,
0.04999084398150444,
-0.3903314471244812,
-0.2533302307128906,
0.1843823492527008,
-0.399015873670578,
0.3597586154937744,
0.24726098775863647,
0.3776053190231323,
0.09367752075195312,
0.4118516147136688,
-0.012761698104441166,
0.13943594694137573,
-0.09650996327400208,
-0.02358034998178482,
0.35823577642440796,
0.24442629516124725,
-0.05046544224023819,
0.10449753701686859,
0.14741185307502747,
-0.037725500762462616,
0.2744559347629547,
-0.03996987268328667,
0.15208059549331665,
-0.5921469926834106,
-0.10537686944007874,
-0.1591842919588089,
0.06445643305778503,
0.027374694123864174,
-0.1856069564819336,
0.1200416088104248,
-0.10297852754592896,
-0.01741371862590313,
-0.0625612735748291,
0.4089115262031555,
0.19146069884300232,
-0.3518826961517334,
0.11432390660047531,
0.22875195741653442,
-0.23525528609752655,
-0.12316099554300308,
0.21782353520393372,
-0.6010234951972961,
-0.18661993741989136,
-0.1935400515794754,
0.09118680655956268,
0.20307643711566925,
0.1996433585882187,
-0.27529647946357727,
-0.13464388251304626,
0.5062403678894043,
-0.4040709137916565,
0.08267798274755478,
-0.24270950257778168,
-0.2949000895023346,
-0.23645509779453278,
-0.16903367638587952,
-0.03395397961139679,
-0.04627631977200508,
-0.02568468451499939,
-0.17594322562217712,
0.35765406489372253,
0.015510044991970062,
-0.048661988228559494,
-0.10098229348659515,
0.2132537066936493,
-0.034283071756362915,
0.1602659523487091,
0.4271647334098816,
-0.31456220149993896,
-0.20635919272899628,
-0.01526066567748785,
-0.22039878368377686,
-0.16166049242019653,
-0.09202224761247635,
0.093030646443367,
0.2039041370153427,
-0.0727139338850975,
0.4399835467338562,
-0.15441392362117767,
-0.08987133949995041,
0.17854753136634827,
0.13115842640399933,
-0.046215400099754333,
0.1775301992893219,
-0.07912324368953705,
0.12811250984668732,
0.2086731195449829,
0.11113481223583221,
0.011696274392306805,
-0.022794365882873535,
-0.2068922519683838,
0.09393436461687088,
0.09910281002521515,
0.21925246715545654,
-0.02455328404903412,
0.03605717420578003,
0.08036909997463226,
-0.3255302309989929,
0.16788166761398315,
0.1803424209356308,
0.14161303639411926,
-0.2925769090652466,
-0.1196027398109436,
-0.25508421659469604,
-0.1336405724287033,
-0.17606669664382935,
0.03164292499423027,
0.05520417541265488,
-0.05400095880031586,
-0.03442083299160004,
-0.14912530779838562,
-0.16488300263881683,
-0.15275605022907257,
0.049740664660930634,
0.10933175683021545,
-0.3486708700656891,
-0.018466079607605934,
-0.21109986305236816,
-0.14416199922561646,
-0.38502347469329834,
0.01327696442604065,
0.18813422322273254,
-0.05409673973917961,
-0.23810800909996033,
0.34956493973731995,
0.1393091082572937,
0.04409666731953621,
-0.31541183590888977,
0.17560730874538422,
0.0911010280251503,
-0.03345125913619995,
-0.0013042930513620377,
0.10426987707614899,
0.18146508932113647,
-0.03480491787195206,
0.112356998026371,
0.2557910084724426,
-0.25813570618629456,
0.3806617558002472,
-0.23958894610404968,
0.12885598838329315,
-0.08415905386209488,
-0.1766914576292038,
-0.23736663162708282,
-0.393781840801239,
-0.14378191530704498,
-0.2950775623321533,
-0.23233099281787872,
-0.07121972739696503,
0.30537596344947815,
-0.20797991752624512,
0.5871573090553284,
-0.04098281264305115,
0.024091385304927826,
-0.005710244178771973,
0.06156322732567787,
0.2896173596382141,
0.01141736377030611,
0.10648959875106812,
0.2978287935256958,
-0.00961376540362835,
-0.22335880994796753,
0.2672613561153412,
0.17085139453411102,
0.27672362327575684,
0.20409367978572845,
0.21670570969581604,
0.2447035014629364,
0.04802674800157547,
0.1485539823770523,
-0.0613897480070591,
0.016496434807777405,
-0.29990118741989136,
0.30999884009361267,
0.284422367811203,
-0.23363551497459412,
0.09982320666313171,
-0.06604204326868057,
0.07008719444274902,
0.2823905944824219,
-0.15271763503551483,
0.056222833693027496,
-0.2700428366661072,
-0.09488853812217712,
0.3865870237350464,
0.09207683801651001,
0.4332135021686554,
-0.18424271047115326,
-0.37890106439590454,
0.24179662764072418,
-0.3546552360057831,
-0.0365539975464344,
-0.44943302869796753,
0.030626244843006134,
-0.032506030052900314,
0.08569199591875076,
-0.46062350273132324,
0.08175553381443024,
-0.16478212177753448,
-0.1355617344379425,
-0.12113302201032639,
-0.5227619409561157,
0.12185562402009964,
-0.442646861076355,
0.014803742989897728,
0.24688829481601715,
0.2771108150482178,
-0.2926216721534729,
-0.17715011537075043,
0.45425882935523987,
-0.21786563098430634,
-0.14943040907382965,
0.1258665770292282,
0.01216358132660389,
-0.03933391720056534,
-0.11803464591503143,
-0.1904156506061554,
-0.026527943089604378,
-0.12349484860897064,
0.11690827459096909,
-0.2646968960762024,
0.01631389930844307,
0.5068845152854919,
0.2759177088737488,
-0.24426038563251495,
0.14303645491600037,
-0.048932358622550964,
-0.15842926502227783,
-0.38227877020835876,
0.2083154171705246,
-0.08685974776744843,
0.08384092897176743,
0.004729144275188446,
-0.11430314183235168,
-0.003728661686182022,
0.04104125127196312,
-0.1813214123249054,
-0.29237258434295654,
-0.08111485093832016,
0.252066045999527,
0.1551324725151062,
0.10158742964267731,
0.2861320972442627,
0.41639286279678345,
-0.1233828216791153,
0.015546530485153198,
-0.22976207733154297,
-0.040773965418338776,
0.44961634278297424,
0.2750445604324341,
0.28390663862228394,
0.44892415404319763,
-0.01613028161227703,
0.29311367869377136,
-0.13201045989990234,
-0.1058141440153122,
0.4552730321884155,
-0.3281629681587219,
0.09713961184024811,
-0.4271518290042877,
-0.49832960963249207,
0.021225549280643463,
-0.3456517159938812,
-0.26921576261520386,
-0.2526131868362427,
-0.19740313291549683,
-0.20742958784103394,
-0.1250823736190796,
0.2784191370010376,
-0.48623499274253845,
-0.3314012885093689,
0.16035820543766022,
0.07059625536203384,
0.30742335319519043,
0.048765238374471664,
-0.01927882805466652,
-0.44957974553108215,
-0.168879896402359,
0.09809468686580658,
0.02448345720767975,
0.05590612068772316,
-0.33550766110420227,
-0.6632706522941589,
-0.2365221083164215,
-0.39345216751098633,
0.4276641011238098,
0.11316002905368805,
0.1529773324728012,
-0.1410125494003296,
-0.06066755950450897,
-0.05564779043197632,
0.06886590272188187,
0.7746016979217529,
-0.44157740473747253,
-0.11490011215209961,
0.301085501909256,
-0.0476226806640625,
-0.0988454595208168,
-0.24329791963100433,
-0.06724301725625992,
0.2733609974384308,
0.047289714217185974,
0.8124077916145325,
0.0474175289273262,
0.08439186960458755,
0.21454599499702454,
0.06295549869537354,
-0.06583328545093536,
0.028618454933166504,
-0.4060545265674591,
-0.28940051794052124,
-0.5907237529754639,
-0.020671188831329346,
0.05729467421770096,
0.2173587530851364,
0.30887824296951294,
0.18899595737457275,
0.19607912003993988,
-0.19456833600997925,
0.015450268983840942,
0.26640838384628296,
0.19868770241737366,
0.37797632813453674,
0.05605136230587959,
-0.04836713522672653,
0.12463316321372986,
0.0030194688588380814,
0.14064021408557892,
-0.22075995802879333,
-0.27769437432289124,
-0.057359032332897186,
0.04227240011096001,
0.3460412919521332,
0.2213224172592163,
0.06288819760084152,
0.09592346847057343,
0.14610257744789124,
0.25815820693969727,
-0.2759147584438324,
0.2963350713253021,
0.49333032965660095,
0.14033064246177673,
-0.4810529351234436,
-0.32022374868392944,
0.23703131079673767,
0.21850602328777313,
-0.1690099835395813,
0.3816429674625397,
0.09295246750116348,
-0.32983139157295227,
0.5882657170295715,
0.08547038584947586,
0.8382593393325806,
-0.3112332820892334,
0.05548461526632309,
-0.0850675106048584,
0.07848884165287018,
0.286737322807312,
0.06256808340549469,
0.22338154911994934,
-0.19899463653564453,
-0.4336814880371094,
0.02944095991551876,
-0.05872463807463646,
0.34761813282966614,
0.0871923491358757,
-0.18708990514278412,
0.2699613571166992,
-0.22248680889606476,
0.5848441123962402,
-0.25395384430885315,
-0.24099186062812805,
0.21160291135311127,
-0.37431207299232483,
0.12431821972131729,
0.056649185717105865,
-0.06866110861301422,
0.0904509425163269,
0.010075798258185387,
0.14018523693084717,
-0.10218418389558792,
-0.35835421085357666,
0.06752751767635345,
-0.05393954738974571,
-0.20072980225086212,
0.2325114905834198,
-0.2137073278427124,
-0.2194652259349823,
-0.0675615668296814,
0.33790403604507446,
0.3049491047859192,
0.2256918102502823,
0.0769784152507782,
0.23450149595737457,
0.44316959381103516,
0.20916712284088135,
-0.04088328406214714,
-0.1617860496044159,
-0.04702885448932648,
0.14012137055397034,
-0.28522875905036926,
0.13694798946380615,
-0.014186771586537361,
-0.24163106083869934,
-0.36424320936203003,
0.04156368598341942,
0.43234479427337646,
-0.33937400579452515,
-0.24990442395210266,
-0.15704083442687988,
-0.011291274800896645,
-0.10009337216615677,
0.06785975396633148,
-0.3800917863845825,
-0.18972070515155792,
0.400256484746933,
-0.11459848284721375,
-0.4112876057624817,
0.1257438212633133,
0.36346909403800964,
0.08220475167036057,
0.013131607323884964,
0.5031770467758179,
-0.19953975081443787,
0.011348221451044083,
-0.08634255826473236,
0.09820444136857986,
0.2158660590648651,
-0.08675041794776917,
0.029797114431858063,
0.3238883912563324,
-0.030905067920684814,
-0.15960337221622467,
0.4304635524749756,
0.05671457573771477,
0.20152589678764343,
0.07845336198806763,
-0.24326688051223755,
-0.6696434617042542,
0.48778653144836426,
0.10315077006816864,
0.2492167204618454,
0.10519243031740189,
0.34676674008369446,
-0.2948550283908844,
-0.011246433481574059,
-0.23995502293109894,
0.06492066383361816,
-0.04382046312093735,
0.3154606819152832,
0.44217154383659363,
0.025337431579828262,
-0.08960738778114319,
-0.289814829826355,
0.2092774212360382,
0.26412874460220337,
-0.08504654467105865,
-0.21385902166366577,
-0.01676762104034424,
0.11830883473157883,
0.10531730204820633,
-0.15056492388248444,
-0.024389617145061493,
-0.32315701246261597,
-0.02744339033961296,
-0.27033916115760803,
-0.08286908268928528,
0.33890265226364136,
0.033918533474206924,
0.19236673414707184,
-0.5534641146659851,
-0.08619055896997452,
0.3065202236175537,
0.13931003212928772,
-0.12518060207366943,
-0.05674012005329132,
0.2653055191040039,
0.17761527001857758,
-0.05040784180164337,
0.09706379473209381,
-0.29157885909080505,
-0.06840797513723373,
-0.15435214340686798,
0.11561422795057297,
0.3472285568714142,
-0.1888151615858078,
0.13398265838623047,
0.05610533803701401,
0.27962836623191833,
0.13100183010101318,
-0.2598957419395447,
-0.1948145478963852,
0.3021290898323059,
0.09886640310287476,
-0.3267250061035156,
-0.1829233020544052,
0.5215925574302673,
-0.01564062014222145,
0.24111276865005493,
0.2352425456047058,
-0.04850747436285019,
0.13168750703334808,
-0.26017290353775024,
-0.017790621146559715,
0.1529349684715271,
-0.07377739995718002,
0.24698156118392944,
0.62541264295578,
-0.11507469415664673,
0.27151671051979065,
0.29260602593421936,
0.3730807900428772,
-0.12497637420892715,
0.6644845008850098,
0.06355030834674835,
0.20422028005123138,
0.15866175293922424,
0.2688656449317932,
-0.11448097974061966,
-0.08995097875595093,
0.5314692258834839,
0.13465853035449982,
-0.22350209951400757,
0.29695725440979004,
0.19078713655471802,
-0.25905585289001465,
-0.001837211661040783,
-0.22525808215141296,
-0.07754495739936829,
0.28075873851776123,
-0.21775305271148682,
-0.2554296553134918,
-0.15150240063667297,
-0.03606288880109787,
0.0017206966876983643,
0.080563023686409,
-0.057208891957998276,
0.06858672201633453,
0.6512506008148193,
0.026028338819742203,
0.051004961133003235,
0.09604489803314209,
-0.5209686160087585,
0.13529707491397858,
0.393367201089859,
-0.13343563675880432,
-0.017999926581978798,
0.05715300142765045,
0.16420501470565796,
0.22000433504581451,
0.015519975684583187,
0.3567884564399719,
0.1692756861448288,
-0.2766984701156616,
0.16297979652881622,
-0.019590236246585846,
-0.10517733544111252,
0.26419496536254883,
0.043905001133680344,
0.32678353786468506,
0.008745929226279259,
0.10008315742015839,
0.035745881497859955,
-0.18553750216960907,
-0.10507993400096893,
0.14877949655056,
0.1994476318359375,
0.19670578837394714,
-0.06667398661375046,
0.07766929268836975,
-0.13841809332370758,
-0.061289168894290924,
0.16629207134246826,
-0.2106764316558838,
-0.21686497330665588,
0.47410205006599426,
-0.11827554553747177,
0.18315547704696655,
0.1314246654510498,
0.062266454100608826,
0.11475951969623566,
0.19018520414829254,
0.10686160624027252,
-0.18237444758415222,
-0.5617812275886536,
-0.050648707896471024,
-0.36188772320747375,
-0.14546054601669312,
-0.04832560196518898,
0.09589362144470215,
0.00018402934074401855,
-0.29588446021080017,
0.28071925044059753,
0.10119025409221649,
0.4350568652153015,
-0.4830631613731384,
-0.05666026845574379,
0.560692548751831,
0.05398418381810188,
-0.06014358624815941,
0.02028375118970871,
0.24734286963939667,
0.10788984596729279,
-0.34711283445358276,
0.09702703356742859,
0.058661993592977524,
-0.008825980126857758,
-0.3392789363861084,
-0.1747094690799713,
-0.254141241312027,
-0.22222772240638733,
0.4715786576271057,
0.1747031956911087,
0.4249306917190552,
-0.1517661213874817,
-0.07277540862560272,
0.16374382376670837,
-0.16768233478069305,
-0.016834495589137077,
0.20952269434928894,
0.2309504598379135,
0.38832321763038635,
-0.07110343128442764,
0.12801775336265564,
-0.39709004759788513,
0.007460916414856911,
0.030202247202396393,
-0.18531037867069244,
-0.3765934705734253,
0.18692129850387573,
0.2549925148487091,
0.04083406925201416,
-0.1853448748588562,
0.3607904314994812,
0.038896627724170685,
0.5180017352104187,
-0.06803067028522491,
-0.36906564235687256,
0.7985039353370667,
-0.3579206168651581,
-0.6600232124328613,
0.08235999941825867,
-0.09001621603965759,
-0.1427420675754547,
0.04120754450559616,
-0.2388153374195099,
-0.06306478381156921,
0.07364076375961304,
-0.03345320001244545,
-0.34661608934402466,
0.09012812376022339,
-0.16457721590995789,
0.07983587682247162,
0.03644757345318794,
0.48609858751296997,
-0.31976690888404846,
-0.09455778449773788,
-0.2467268407344818,
-0.06323877722024918
] |
https://github.com/huggingface/datasets/issues/2026 | KeyError on using map after renaming a column | Hi @mariosasko,
Thanks for opening a PR on this :)
Why does the old name also disappear? | Hi,
I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function.
Here is what I try:
```python
transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])])
def prepare_features(examples):
images = []
labels = []
print(examples)
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(examples["image"][example_idx].permute(2,0,1)))
else:
images.append(examples["image"][example_idx].permute(2,0,1))
labels.append(examples["label"][example_idx])
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('cifar10')
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
features = datasets.Features({
"image": datasets.Array3D(shape=(3,32,32),dtype="float32"),
"label": datasets.features.ClassLabel(names=[
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]),
})
train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
```
The error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-54-bf29672c53ee> in <module>()
14 ]),
15 })
---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
2 frames
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1287 test_inputs = self[:2] if batched else self[0]
1288 test_indices = [0, 1] if batched else 0
-> 1289 update_data = does_function_return_dict(test_inputs, test_indices)
1290 logger.info("Testing finished, running the mapping function on the dataset")
1291
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1259 processed_inputs = (
-> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1261 )
1262 does_return_dict = isinstance(processed_inputs, Mapping)
<ipython-input-52-b4dccbafb70d> in prepare_features(examples)
3 labels = []
4 print(examples)
----> 5 for example_idx, example in enumerate(examples["image"]):
6 if transform is not None:
7 images.append(transform(examples["image"][example_idx].permute(2,0,1)))
KeyError: 'image'
```
The print statement inside returns this:
```python
{'label': tensor([6, 9])}
```
Apparently, both `img` and `image` do not exist after renaming.
Note that this code works fine with `img` everywhere.
Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
| 17 | KeyError on using map after renaming a column
Hi,
I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function.
Here is what I try:
```python
transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])])
def prepare_features(examples):
images = []
labels = []
print(examples)
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(examples["image"][example_idx].permute(2,0,1)))
else:
images.append(examples["image"][example_idx].permute(2,0,1))
labels.append(examples["label"][example_idx])
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('cifar10')
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
features = datasets.Features({
"image": datasets.Array3D(shape=(3,32,32),dtype="float32"),
"label": datasets.features.ClassLabel(names=[
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]),
})
train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
```
The error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-54-bf29672c53ee> in <module>()
14 ]),
15 })
---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
2 frames
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1287 test_inputs = self[:2] if batched else self[0]
1288 test_indices = [0, 1] if batched else 0
-> 1289 update_data = does_function_return_dict(test_inputs, test_indices)
1290 logger.info("Testing finished, running the mapping function on the dataset")
1291
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1259 processed_inputs = (
-> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1261 )
1262 does_return_dict = isinstance(processed_inputs, Mapping)
<ipython-input-52-b4dccbafb70d> in prepare_features(examples)
3 labels = []
4 print(examples)
----> 5 for example_idx, example in enumerate(examples["image"]):
6 if transform is not None:
7 images.append(transform(examples["image"][example_idx].permute(2,0,1)))
KeyError: 'image'
```
The print statement inside returns this:
```python
{'label': tensor([6, 9])}
```
Apparently, both `img` and `image` do not exist after renaming.
Note that this code works fine with `img` everywhere.
Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
Hi @mariosasko,
Thanks for opening a PR on this :)
Why does the old name also disappear? | [
0.03439067676663399,
0.006200328469276428,
-0.06358008831739426,
-0.33422839641571045,
0.48084425926208496,
0.2616390883922577,
0.6042662262916565,
0.2373318076133728,
0.13709133863449097,
0.08659094572067261,
0.05403532087802887,
0.5270300507545471,
-0.1558949202299118,
0.299463152885437,
-0.1945008784532547,
-0.08811669051647186,
0.41338199377059937,
0.09350358694791794,
-0.11563342809677124,
0.19720222055912018,
-0.4435485303401947,
0.04970606043934822,
-0.3014572560787201,
0.28078383207321167,
-0.3147517442703247,
-0.1778964102268219,
0.05453304946422577,
-0.19385433197021484,
-0.24731765687465668,
-0.2746689021587372,
-0.049216002225875854,
0.09710322320461273,
-0.022366512566804886,
0.6005280017852783,
-0.0001189421018352732,
0.08269932866096497,
0.1887073963880539,
-0.08655152469873428,
0.08298535645008087,
-0.29607516527175903,
-0.18191516399383545,
-0.011541635729372501,
-0.22306129336357117,
-0.5142740607261658,
0.0406854972243309,
-0.06361528486013412,
-0.07717244327068329,
-0.26717761158943176,
0.10244952887296677,
0.24669966101646423,
0.16382978856563568,
-0.11388292908668518,
0.22092284262180328,
-0.022048676386475563,
0.04394690319895744,
0.23825402557849884,
-0.19265122711658478,
0.07693187147378922,
0.04910498857498169,
-0.3582008481025696,
0.22909864783287048,
0.6931740641593933,
-0.2142525166273117,
-0.08262568712234497,
0.2492944598197937,
0.1485666036605835,
0.41321098804473877,
-0.3595764636993408,
0.36146479845046997,
-0.13661789894104004,
0.23790553212165833,
-0.15123847126960754,
-0.10438065975904465,
-0.054232802242040634,
-0.0018237661570310593,
-0.2537846565246582,
-0.023236185312271118,
-0.31963834166526794,
0.07769593596458435,
-0.22969913482666016,
-0.33052748441696167,
-0.18500682711601257,
0.12853673100471497,
0.2078441083431244,
0.12311360239982605,
-0.09719839692115784,
-0.029608361423015594,
0.44928187131881714,
0.1049036830663681,
-0.3226708173751831,
-0.12460611015558243,
0.026912925764918327,
0.09808441996574402,
0.22117313742637634,
-0.22417791187763214,
-0.06977488845586777,
0.10546714067459106,
-0.022715307772159576,
-0.28656813502311707,
-0.6728143095970154,
0.01710115745663643,
-0.11549855023622513,
0.1804637312889099,
0.07850121706724167,
0.10636244714260101,
0.20729036629199982,
-0.08792559057474136,
0.3839029371738434,
0.043741222470998764,
0.04999084398150444,
-0.3903314471244812,
-0.2533302307128906,
0.1843823492527008,
-0.399015873670578,
0.3597586154937744,
0.24726098775863647,
0.3776053190231323,
0.09367752075195312,
0.4118516147136688,
-0.012761698104441166,
0.13943594694137573,
-0.09650996327400208,
-0.02358034998178482,
0.35823577642440796,
0.24442629516124725,
-0.05046544224023819,
0.10449753701686859,
0.14741185307502747,
-0.037725500762462616,
0.2744559347629547,
-0.03996987268328667,
0.15208059549331665,
-0.5921469926834106,
-0.10537686944007874,
-0.1591842919588089,
0.06445643305778503,
0.027374694123864174,
-0.1856069564819336,
0.1200416088104248,
-0.10297852754592896,
-0.01741371862590313,
-0.0625612735748291,
0.4089115262031555,
0.19146069884300232,
-0.3518826961517334,
0.11432390660047531,
0.22875195741653442,
-0.23525528609752655,
-0.12316099554300308,
0.21782353520393372,
-0.6010234951972961,
-0.18661993741989136,
-0.1935400515794754,
0.09118680655956268,
0.20307643711566925,
0.1996433585882187,
-0.27529647946357727,
-0.13464388251304626,
0.5062403678894043,
-0.4040709137916565,
0.08267798274755478,
-0.24270950257778168,
-0.2949000895023346,
-0.23645509779453278,
-0.16903367638587952,
-0.03395397961139679,
-0.04627631977200508,
-0.02568468451499939,
-0.17594322562217712,
0.35765406489372253,
0.015510044991970062,
-0.048661988228559494,
-0.10098229348659515,
0.2132537066936493,
-0.034283071756362915,
0.1602659523487091,
0.4271647334098816,
-0.31456220149993896,
-0.20635919272899628,
-0.01526066567748785,
-0.22039878368377686,
-0.16166049242019653,
-0.09202224761247635,
0.093030646443367,
0.2039041370153427,
-0.0727139338850975,
0.4399835467338562,
-0.15441392362117767,
-0.08987133949995041,
0.17854753136634827,
0.13115842640399933,
-0.046215400099754333,
0.1775301992893219,
-0.07912324368953705,
0.12811250984668732,
0.2086731195449829,
0.11113481223583221,
0.011696274392306805,
-0.022794365882873535,
-0.2068922519683838,
0.09393436461687088,
0.09910281002521515,
0.21925246715545654,
-0.02455328404903412,
0.03605717420578003,
0.08036909997463226,
-0.3255302309989929,
0.16788166761398315,
0.1803424209356308,
0.14161303639411926,
-0.2925769090652466,
-0.1196027398109436,
-0.25508421659469604,
-0.1336405724287033,
-0.17606669664382935,
0.03164292499423027,
0.05520417541265488,
-0.05400095880031586,
-0.03442083299160004,
-0.14912530779838562,
-0.16488300263881683,
-0.15275605022907257,
0.049740664660930634,
0.10933175683021545,
-0.3486708700656891,
-0.018466079607605934,
-0.21109986305236816,
-0.14416199922561646,
-0.38502347469329834,
0.01327696442604065,
0.18813422322273254,
-0.05409673973917961,
-0.23810800909996033,
0.34956493973731995,
0.1393091082572937,
0.04409666731953621,
-0.31541183590888977,
0.17560730874538422,
0.0911010280251503,
-0.03345125913619995,
-0.0013042930513620377,
0.10426987707614899,
0.18146508932113647,
-0.03480491787195206,
0.112356998026371,
0.2557910084724426,
-0.25813570618629456,
0.3806617558002472,
-0.23958894610404968,
0.12885598838329315,
-0.08415905386209488,
-0.1766914576292038,
-0.23736663162708282,
-0.393781840801239,
-0.14378191530704498,
-0.2950775623321533,
-0.23233099281787872,
-0.07121972739696503,
0.30537596344947815,
-0.20797991752624512,
0.5871573090553284,
-0.04098281264305115,
0.024091385304927826,
-0.005710244178771973,
0.06156322732567787,
0.2896173596382141,
0.01141736377030611,
0.10648959875106812,
0.2978287935256958,
-0.00961376540362835,
-0.22335880994796753,
0.2672613561153412,
0.17085139453411102,
0.27672362327575684,
0.20409367978572845,
0.21670570969581604,
0.2447035014629364,
0.04802674800157547,
0.1485539823770523,
-0.0613897480070591,
0.016496434807777405,
-0.29990118741989136,
0.30999884009361267,
0.284422367811203,
-0.23363551497459412,
0.09982320666313171,
-0.06604204326868057,
0.07008719444274902,
0.2823905944824219,
-0.15271763503551483,
0.056222833693027496,
-0.2700428366661072,
-0.09488853812217712,
0.3865870237350464,
0.09207683801651001,
0.4332135021686554,
-0.18424271047115326,
-0.37890106439590454,
0.24179662764072418,
-0.3546552360057831,
-0.0365539975464344,
-0.44943302869796753,
0.030626244843006134,
-0.032506030052900314,
0.08569199591875076,
-0.46062350273132324,
0.08175553381443024,
-0.16478212177753448,
-0.1355617344379425,
-0.12113302201032639,
-0.5227619409561157,
0.12185562402009964,
-0.442646861076355,
0.014803742989897728,
0.24688829481601715,
0.2771108150482178,
-0.2926216721534729,
-0.17715011537075043,
0.45425882935523987,
-0.21786563098430634,
-0.14943040907382965,
0.1258665770292282,
0.01216358132660389,
-0.03933391720056534,
-0.11803464591503143,
-0.1904156506061554,
-0.026527943089604378,
-0.12349484860897064,
0.11690827459096909,
-0.2646968960762024,
0.01631389930844307,
0.5068845152854919,
0.2759177088737488,
-0.24426038563251495,
0.14303645491600037,
-0.048932358622550964,
-0.15842926502227783,
-0.38227877020835876,
0.2083154171705246,
-0.08685974776744843,
0.08384092897176743,
0.004729144275188446,
-0.11430314183235168,
-0.003728661686182022,
0.04104125127196312,
-0.1813214123249054,
-0.29237258434295654,
-0.08111485093832016,
0.252066045999527,
0.1551324725151062,
0.10158742964267731,
0.2861320972442627,
0.41639286279678345,
-0.1233828216791153,
0.015546530485153198,
-0.22976207733154297,
-0.040773965418338776,
0.44961634278297424,
0.2750445604324341,
0.28390663862228394,
0.44892415404319763,
-0.01613028161227703,
0.29311367869377136,
-0.13201045989990234,
-0.1058141440153122,
0.4552730321884155,
-0.3281629681587219,
0.09713961184024811,
-0.4271518290042877,
-0.49832960963249207,
0.021225549280643463,
-0.3456517159938812,
-0.26921576261520386,
-0.2526131868362427,
-0.19740313291549683,
-0.20742958784103394,
-0.1250823736190796,
0.2784191370010376,
-0.48623499274253845,
-0.3314012885093689,
0.16035820543766022,
0.07059625536203384,
0.30742335319519043,
0.048765238374471664,
-0.01927882805466652,
-0.44957974553108215,
-0.168879896402359,
0.09809468686580658,
0.02448345720767975,
0.05590612068772316,
-0.33550766110420227,
-0.6632706522941589,
-0.2365221083164215,
-0.39345216751098633,
0.4276641011238098,
0.11316002905368805,
0.1529773324728012,
-0.1410125494003296,
-0.06066755950450897,
-0.05564779043197632,
0.06886590272188187,
0.7746016979217529,
-0.44157740473747253,
-0.11490011215209961,
0.301085501909256,
-0.0476226806640625,
-0.0988454595208168,
-0.24329791963100433,
-0.06724301725625992,
0.2733609974384308,
0.047289714217185974,
0.8124077916145325,
0.0474175289273262,
0.08439186960458755,
0.21454599499702454,
0.06295549869537354,
-0.06583328545093536,
0.028618454933166504,
-0.4060545265674591,
-0.28940051794052124,
-0.5907237529754639,
-0.020671188831329346,
0.05729467421770096,
0.2173587530851364,
0.30887824296951294,
0.18899595737457275,
0.19607912003993988,
-0.19456833600997925,
0.015450268983840942,
0.26640838384628296,
0.19868770241737366,
0.37797632813453674,
0.05605136230587959,
-0.04836713522672653,
0.12463316321372986,
0.0030194688588380814,
0.14064021408557892,
-0.22075995802879333,
-0.27769437432289124,
-0.057359032332897186,
0.04227240011096001,
0.3460412919521332,
0.2213224172592163,
0.06288819760084152,
0.09592346847057343,
0.14610257744789124,
0.25815820693969727,
-0.2759147584438324,
0.2963350713253021,
0.49333032965660095,
0.14033064246177673,
-0.4810529351234436,
-0.32022374868392944,
0.23703131079673767,
0.21850602328777313,
-0.1690099835395813,
0.3816429674625397,
0.09295246750116348,
-0.32983139157295227,
0.5882657170295715,
0.08547038584947586,
0.8382593393325806,
-0.3112332820892334,
0.05548461526632309,
-0.0850675106048584,
0.07848884165287018,
0.286737322807312,
0.06256808340549469,
0.22338154911994934,
-0.19899463653564453,
-0.4336814880371094,
0.02944095991551876,
-0.05872463807463646,
0.34761813282966614,
0.0871923491358757,
-0.18708990514278412,
0.2699613571166992,
-0.22248680889606476,
0.5848441123962402,
-0.25395384430885315,
-0.24099186062812805,
0.21160291135311127,
-0.37431207299232483,
0.12431821972131729,
0.056649185717105865,
-0.06866110861301422,
0.0904509425163269,
0.010075798258185387,
0.14018523693084717,
-0.10218418389558792,
-0.35835421085357666,
0.06752751767635345,
-0.05393954738974571,
-0.20072980225086212,
0.2325114905834198,
-0.2137073278427124,
-0.2194652259349823,
-0.0675615668296814,
0.33790403604507446,
0.3049491047859192,
0.2256918102502823,
0.0769784152507782,
0.23450149595737457,
0.44316959381103516,
0.20916712284088135,
-0.04088328406214714,
-0.1617860496044159,
-0.04702885448932648,
0.14012137055397034,
-0.28522875905036926,
0.13694798946380615,
-0.014186771586537361,
-0.24163106083869934,
-0.36424320936203003,
0.04156368598341942,
0.43234479427337646,
-0.33937400579452515,
-0.24990442395210266,
-0.15704083442687988,
-0.011291274800896645,
-0.10009337216615677,
0.06785975396633148,
-0.3800917863845825,
-0.18972070515155792,
0.400256484746933,
-0.11459848284721375,
-0.4112876057624817,
0.1257438212633133,
0.36346909403800964,
0.08220475167036057,
0.013131607323884964,
0.5031770467758179,
-0.19953975081443787,
0.011348221451044083,
-0.08634255826473236,
0.09820444136857986,
0.2158660590648651,
-0.08675041794776917,
0.029797114431858063,
0.3238883912563324,
-0.030905067920684814,
-0.15960337221622467,
0.4304635524749756,
0.05671457573771477,
0.20152589678764343,
0.07845336198806763,
-0.24326688051223755,
-0.6696434617042542,
0.48778653144836426,
0.10315077006816864,
0.2492167204618454,
0.10519243031740189,
0.34676674008369446,
-0.2948550283908844,
-0.011246433481574059,
-0.23995502293109894,
0.06492066383361816,
-0.04382046312093735,
0.3154606819152832,
0.44217154383659363,
0.025337431579828262,
-0.08960738778114319,
-0.289814829826355,
0.2092774212360382,
0.26412874460220337,
-0.08504654467105865,
-0.21385902166366577,
-0.01676762104034424,
0.11830883473157883,
0.10531730204820633,
-0.15056492388248444,
-0.024389617145061493,
-0.32315701246261597,
-0.02744339033961296,
-0.27033916115760803,
-0.08286908268928528,
0.33890265226364136,
0.033918533474206924,
0.19236673414707184,
-0.5534641146659851,
-0.08619055896997452,
0.3065202236175537,
0.13931003212928772,
-0.12518060207366943,
-0.05674012005329132,
0.2653055191040039,
0.17761527001857758,
-0.05040784180164337,
0.09706379473209381,
-0.29157885909080505,
-0.06840797513723373,
-0.15435214340686798,
0.11561422795057297,
0.3472285568714142,
-0.1888151615858078,
0.13398265838623047,
0.05610533803701401,
0.27962836623191833,
0.13100183010101318,
-0.2598957419395447,
-0.1948145478963852,
0.3021290898323059,
0.09886640310287476,
-0.3267250061035156,
-0.1829233020544052,
0.5215925574302673,
-0.01564062014222145,
0.24111276865005493,
0.2352425456047058,
-0.04850747436285019,
0.13168750703334808,
-0.26017290353775024,
-0.017790621146559715,
0.1529349684715271,
-0.07377739995718002,
0.24698156118392944,
0.62541264295578,
-0.11507469415664673,
0.27151671051979065,
0.29260602593421936,
0.3730807900428772,
-0.12497637420892715,
0.6644845008850098,
0.06355030834674835,
0.20422028005123138,
0.15866175293922424,
0.2688656449317932,
-0.11448097974061966,
-0.08995097875595093,
0.5314692258834839,
0.13465853035449982,
-0.22350209951400757,
0.29695725440979004,
0.19078713655471802,
-0.25905585289001465,
-0.001837211661040783,
-0.22525808215141296,
-0.07754495739936829,
0.28075873851776123,
-0.21775305271148682,
-0.2554296553134918,
-0.15150240063667297,
-0.03606288880109787,
0.0017206966876983643,
0.080563023686409,
-0.057208891957998276,
0.06858672201633453,
0.6512506008148193,
0.026028338819742203,
0.051004961133003235,
0.09604489803314209,
-0.5209686160087585,
0.13529707491397858,
0.393367201089859,
-0.13343563675880432,
-0.017999926581978798,
0.05715300142765045,
0.16420501470565796,
0.22000433504581451,
0.015519975684583187,
0.3567884564399719,
0.1692756861448288,
-0.2766984701156616,
0.16297979652881622,
-0.019590236246585846,
-0.10517733544111252,
0.26419496536254883,
0.043905001133680344,
0.32678353786468506,
0.008745929226279259,
0.10008315742015839,
0.035745881497859955,
-0.18553750216960907,
-0.10507993400096893,
0.14877949655056,
0.1994476318359375,
0.19670578837394714,
-0.06667398661375046,
0.07766929268836975,
-0.13841809332370758,
-0.061289168894290924,
0.16629207134246826,
-0.2106764316558838,
-0.21686497330665588,
0.47410205006599426,
-0.11827554553747177,
0.18315547704696655,
0.1314246654510498,
0.062266454100608826,
0.11475951969623566,
0.19018520414829254,
0.10686160624027252,
-0.18237444758415222,
-0.5617812275886536,
-0.050648707896471024,
-0.36188772320747375,
-0.14546054601669312,
-0.04832560196518898,
0.09589362144470215,
0.00018402934074401855,
-0.29588446021080017,
0.28071925044059753,
0.10119025409221649,
0.4350568652153015,
-0.4830631613731384,
-0.05666026845574379,
0.560692548751831,
0.05398418381810188,
-0.06014358624815941,
0.02028375118970871,
0.24734286963939667,
0.10788984596729279,
-0.34711283445358276,
0.09702703356742859,
0.058661993592977524,
-0.008825980126857758,
-0.3392789363861084,
-0.1747094690799713,
-0.254141241312027,
-0.22222772240638733,
0.4715786576271057,
0.1747031956911087,
0.4249306917190552,
-0.1517661213874817,
-0.07277540862560272,
0.16374382376670837,
-0.16768233478069305,
-0.016834495589137077,
0.20952269434928894,
0.2309504598379135,
0.38832321763038635,
-0.07110343128442764,
0.12801775336265564,
-0.39709004759788513,
0.007460916414856911,
0.030202247202396393,
-0.18531037867069244,
-0.3765934705734253,
0.18692129850387573,
0.2549925148487091,
0.04083406925201416,
-0.1853448748588562,
0.3607904314994812,
0.038896627724170685,
0.5180017352104187,
-0.06803067028522491,
-0.36906564235687256,
0.7985039353370667,
-0.3579206168651581,
-0.6600232124328613,
0.08235999941825867,
-0.09001621603965759,
-0.1427420675754547,
0.04120754450559616,
-0.2388153374195099,
-0.06306478381156921,
0.07364076375961304,
-0.03345320001244545,
-0.34661608934402466,
0.09012812376022339,
-0.16457721590995789,
0.07983587682247162,
0.03644757345318794,
0.48609858751296997,
-0.31976690888404846,
-0.09455778449773788,
-0.2467268407344818,
-0.06323877722024918
] |
https://github.com/huggingface/datasets/issues/2026 | KeyError on using map after renaming a column | I just merged a @mariosasko 's PR that fixes this issue.
If it happens again, feel free to re-open :) | Hi,
I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function.
Here is what I try:
```python
transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])])
def prepare_features(examples):
images = []
labels = []
print(examples)
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(examples["image"][example_idx].permute(2,0,1)))
else:
images.append(examples["image"][example_idx].permute(2,0,1))
labels.append(examples["label"][example_idx])
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('cifar10')
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
features = datasets.Features({
"image": datasets.Array3D(shape=(3,32,32),dtype="float32"),
"label": datasets.features.ClassLabel(names=[
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]),
})
train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
```
The error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-54-bf29672c53ee> in <module>()
14 ]),
15 })
---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
2 frames
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1287 test_inputs = self[:2] if batched else self[0]
1288 test_indices = [0, 1] if batched else 0
-> 1289 update_data = does_function_return_dict(test_inputs, test_indices)
1290 logger.info("Testing finished, running the mapping function on the dataset")
1291
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1259 processed_inputs = (
-> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1261 )
1262 does_return_dict = isinstance(processed_inputs, Mapping)
<ipython-input-52-b4dccbafb70d> in prepare_features(examples)
3 labels = []
4 print(examples)
----> 5 for example_idx, example in enumerate(examples["image"]):
6 if transform is not None:
7 images.append(transform(examples["image"][example_idx].permute(2,0,1)))
KeyError: 'image'
```
The print statement inside returns this:
```python
{'label': tensor([6, 9])}
```
Apparently, both `img` and `image` do not exist after renaming.
Note that this code works fine with `img` everywhere.
Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
| 20 | KeyError on using map after renaming a column
Hi,
I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function.
Here is what I try:
```python
transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])])
def prepare_features(examples):
images = []
labels = []
print(examples)
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(examples["image"][example_idx].permute(2,0,1)))
else:
images.append(examples["image"][example_idx].permute(2,0,1))
labels.append(examples["label"][example_idx])
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('cifar10')
raw_dataset.set_format('torch',columns=['img','label'])
raw_dataset = raw_dataset.rename_column('img','image')
features = datasets.Features({
"image": datasets.Array3D(shape=(3,32,32),dtype="float32"),
"label": datasets.features.ClassLabel(names=[
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck",
]),
})
train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
```
The error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-54-bf29672c53ee> in <module>()
14 ]),
15 })
---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000)
2 frames
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1287 test_inputs = self[:2] if batched else self[0]
1288 test_indices = [0, 1] if batched else 0
-> 1289 update_data = does_function_return_dict(test_inputs, test_indices)
1290 logger.info("Testing finished, running the mapping function on the dataset")
1291
/usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1259 processed_inputs = (
-> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1261 )
1262 does_return_dict = isinstance(processed_inputs, Mapping)
<ipython-input-52-b4dccbafb70d> in prepare_features(examples)
3 labels = []
4 print(examples)
----> 5 for example_idx, example in enumerate(examples["image"]):
6 if transform is not None:
7 images.append(transform(examples["image"][example_idx].permute(2,0,1)))
KeyError: 'image'
```
The print statement inside returns this:
```python
{'label': tensor([6, 9])}
```
Apparently, both `img` and `image` do not exist after renaming.
Note that this code works fine with `img` everywhere.
Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
I just merged a @mariosasko 's PR that fixes this issue.
If it happens again, feel free to re-open :) | [
0.03439067676663399,
0.006200328469276428,
-0.06358008831739426,
-0.33422839641571045,
0.48084425926208496,
0.2616390883922577,
0.6042662262916565,
0.2373318076133728,
0.13709133863449097,
0.08659094572067261,
0.05403532087802887,
0.5270300507545471,
-0.1558949202299118,
0.299463152885437,
-0.1945008784532547,
-0.08811669051647186,
0.41338199377059937,
0.09350358694791794,
-0.11563342809677124,
0.19720222055912018,
-0.4435485303401947,
0.04970606043934822,
-0.3014572560787201,
0.28078383207321167,
-0.3147517442703247,
-0.1778964102268219,
0.05453304946422577,
-0.19385433197021484,
-0.24731765687465668,
-0.2746689021587372,
-0.049216002225875854,
0.09710322320461273,
-0.022366512566804886,
0.6005280017852783,
-0.0001189421018352732,
0.08269932866096497,
0.1887073963880539,
-0.08655152469873428,
0.08298535645008087,
-0.29607516527175903,
-0.18191516399383545,
-0.011541635729372501,
-0.22306129336357117,
-0.5142740607261658,
0.0406854972243309,
-0.06361528486013412,
-0.07717244327068329,
-0.26717761158943176,
0.10244952887296677,
0.24669966101646423,
0.16382978856563568,
-0.11388292908668518,
0.22092284262180328,
-0.022048676386475563,
0.04394690319895744,
0.23825402557849884,
-0.19265122711658478,
0.07693187147378922,
0.04910498857498169,
-0.3582008481025696,
0.22909864783287048,
0.6931740641593933,
-0.2142525166273117,
-0.08262568712234497,
0.2492944598197937,
0.1485666036605835,
0.41321098804473877,
-0.3595764636993408,
0.36146479845046997,
-0.13661789894104004,
0.23790553212165833,
-0.15123847126960754,
-0.10438065975904465,
-0.054232802242040634,
-0.0018237661570310593,
-0.2537846565246582,
-0.023236185312271118,
-0.31963834166526794,
0.07769593596458435,
-0.22969913482666016,
-0.33052748441696167,
-0.18500682711601257,
0.12853673100471497,
0.2078441083431244,
0.12311360239982605,
-0.09719839692115784,
-0.029608361423015594,
0.44928187131881714,
0.1049036830663681,
-0.3226708173751831,
-0.12460611015558243,
0.026912925764918327,
0.09808441996574402,
0.22117313742637634,
-0.22417791187763214,
-0.06977488845586777,
0.10546714067459106,
-0.022715307772159576,
-0.28656813502311707,
-0.6728143095970154,
0.01710115745663643,
-0.11549855023622513,
0.1804637312889099,
0.07850121706724167,
0.10636244714260101,
0.20729036629199982,
-0.08792559057474136,
0.3839029371738434,
0.043741222470998764,
0.04999084398150444,
-0.3903314471244812,
-0.2533302307128906,
0.1843823492527008,
-0.399015873670578,
0.3597586154937744,
0.24726098775863647,
0.3776053190231323,
0.09367752075195312,
0.4118516147136688,
-0.012761698104441166,
0.13943594694137573,
-0.09650996327400208,
-0.02358034998178482,
0.35823577642440796,
0.24442629516124725,
-0.05046544224023819,
0.10449753701686859,
0.14741185307502747,
-0.037725500762462616,
0.2744559347629547,
-0.03996987268328667,
0.15208059549331665,
-0.5921469926834106,
-0.10537686944007874,
-0.1591842919588089,
0.06445643305778503,
0.027374694123864174,
-0.1856069564819336,
0.1200416088104248,
-0.10297852754592896,
-0.01741371862590313,
-0.0625612735748291,
0.4089115262031555,
0.19146069884300232,
-0.3518826961517334,
0.11432390660047531,
0.22875195741653442,
-0.23525528609752655,
-0.12316099554300308,
0.21782353520393372,
-0.6010234951972961,
-0.18661993741989136,
-0.1935400515794754,
0.09118680655956268,
0.20307643711566925,
0.1996433585882187,
-0.27529647946357727,
-0.13464388251304626,
0.5062403678894043,
-0.4040709137916565,
0.08267798274755478,
-0.24270950257778168,
-0.2949000895023346,
-0.23645509779453278,
-0.16903367638587952,
-0.03395397961139679,
-0.04627631977200508,
-0.02568468451499939,
-0.17594322562217712,
0.35765406489372253,
0.015510044991970062,
-0.048661988228559494,
-0.10098229348659515,
0.2132537066936493,
-0.034283071756362915,
0.1602659523487091,
0.4271647334098816,
-0.31456220149993896,
-0.20635919272899628,
-0.01526066567748785,
-0.22039878368377686,
-0.16166049242019653,
-0.09202224761247635,
0.093030646443367,
0.2039041370153427,
-0.0727139338850975,
0.4399835467338562,
-0.15441392362117767,
-0.08987133949995041,
0.17854753136634827,
0.13115842640399933,
-0.046215400099754333,
0.1775301992893219,
-0.07912324368953705,
0.12811250984668732,
0.2086731195449829,
0.11113481223583221,
0.011696274392306805,
-0.022794365882873535,
-0.2068922519683838,
0.09393436461687088,
0.09910281002521515,
0.21925246715545654,
-0.02455328404903412,
0.03605717420578003,
0.08036909997463226,
-0.3255302309989929,
0.16788166761398315,
0.1803424209356308,
0.14161303639411926,
-0.2925769090652466,
-0.1196027398109436,
-0.25508421659469604,
-0.1336405724287033,
-0.17606669664382935,
0.03164292499423027,
0.05520417541265488,
-0.05400095880031586,
-0.03442083299160004,
-0.14912530779838562,
-0.16488300263881683,
-0.15275605022907257,
0.049740664660930634,
0.10933175683021545,
-0.3486708700656891,
-0.018466079607605934,
-0.21109986305236816,
-0.14416199922561646,
-0.38502347469329834,
0.01327696442604065,
0.18813422322273254,
-0.05409673973917961,
-0.23810800909996033,
0.34956493973731995,
0.1393091082572937,
0.04409666731953621,
-0.31541183590888977,
0.17560730874538422,
0.0911010280251503,
-0.03345125913619995,
-0.0013042930513620377,
0.10426987707614899,
0.18146508932113647,
-0.03480491787195206,
0.112356998026371,
0.2557910084724426,
-0.25813570618629456,
0.3806617558002472,
-0.23958894610404968,
0.12885598838329315,
-0.08415905386209488,
-0.1766914576292038,
-0.23736663162708282,
-0.393781840801239,
-0.14378191530704498,
-0.2950775623321533,
-0.23233099281787872,
-0.07121972739696503,
0.30537596344947815,
-0.20797991752624512,
0.5871573090553284,
-0.04098281264305115,
0.024091385304927826,
-0.005710244178771973,
0.06156322732567787,
0.2896173596382141,
0.01141736377030611,
0.10648959875106812,
0.2978287935256958,
-0.00961376540362835,
-0.22335880994796753,
0.2672613561153412,
0.17085139453411102,
0.27672362327575684,
0.20409367978572845,
0.21670570969581604,
0.2447035014629364,
0.04802674800157547,
0.1485539823770523,
-0.0613897480070591,
0.016496434807777405,
-0.29990118741989136,
0.30999884009361267,
0.284422367811203,
-0.23363551497459412,
0.09982320666313171,
-0.06604204326868057,
0.07008719444274902,
0.2823905944824219,
-0.15271763503551483,
0.056222833693027496,
-0.2700428366661072,
-0.09488853812217712,
0.3865870237350464,
0.09207683801651001,
0.4332135021686554,
-0.18424271047115326,
-0.37890106439590454,
0.24179662764072418,
-0.3546552360057831,
-0.0365539975464344,
-0.44943302869796753,
0.030626244843006134,
-0.032506030052900314,
0.08569199591875076,
-0.46062350273132324,
0.08175553381443024,
-0.16478212177753448,
-0.1355617344379425,
-0.12113302201032639,
-0.5227619409561157,
0.12185562402009964,
-0.442646861076355,
0.014803742989897728,
0.24688829481601715,
0.2771108150482178,
-0.2926216721534729,
-0.17715011537075043,
0.45425882935523987,
-0.21786563098430634,
-0.14943040907382965,
0.1258665770292282,
0.01216358132660389,
-0.03933391720056534,
-0.11803464591503143,
-0.1904156506061554,
-0.026527943089604378,
-0.12349484860897064,
0.11690827459096909,
-0.2646968960762024,
0.01631389930844307,
0.5068845152854919,
0.2759177088737488,
-0.24426038563251495,
0.14303645491600037,
-0.048932358622550964,
-0.15842926502227783,
-0.38227877020835876,
0.2083154171705246,
-0.08685974776744843,
0.08384092897176743,
0.004729144275188446,
-0.11430314183235168,
-0.003728661686182022,
0.04104125127196312,
-0.1813214123249054,
-0.29237258434295654,
-0.08111485093832016,
0.252066045999527,
0.1551324725151062,
0.10158742964267731,
0.2861320972442627,
0.41639286279678345,
-0.1233828216791153,
0.015546530485153198,
-0.22976207733154297,
-0.040773965418338776,
0.44961634278297424,
0.2750445604324341,
0.28390663862228394,
0.44892415404319763,
-0.01613028161227703,
0.29311367869377136,
-0.13201045989990234,
-0.1058141440153122,
0.4552730321884155,
-0.3281629681587219,
0.09713961184024811,
-0.4271518290042877,
-0.49832960963249207,
0.021225549280643463,
-0.3456517159938812,
-0.26921576261520386,
-0.2526131868362427,
-0.19740313291549683,
-0.20742958784103394,
-0.1250823736190796,
0.2784191370010376,
-0.48623499274253845,
-0.3314012885093689,
0.16035820543766022,
0.07059625536203384,
0.30742335319519043,
0.048765238374471664,
-0.01927882805466652,
-0.44957974553108215,
-0.168879896402359,
0.09809468686580658,
0.02448345720767975,
0.05590612068772316,
-0.33550766110420227,
-0.6632706522941589,
-0.2365221083164215,
-0.39345216751098633,
0.4276641011238098,
0.11316002905368805,
0.1529773324728012,
-0.1410125494003296,
-0.06066755950450897,
-0.05564779043197632,
0.06886590272188187,
0.7746016979217529,
-0.44157740473747253,
-0.11490011215209961,
0.301085501909256,
-0.0476226806640625,
-0.0988454595208168,
-0.24329791963100433,
-0.06724301725625992,
0.2733609974384308,
0.047289714217185974,
0.8124077916145325,
0.0474175289273262,
0.08439186960458755,
0.21454599499702454,
0.06295549869537354,
-0.06583328545093536,
0.028618454933166504,
-0.4060545265674591,
-0.28940051794052124,
-0.5907237529754639,
-0.020671188831329346,
0.05729467421770096,
0.2173587530851364,
0.30887824296951294,
0.18899595737457275,
0.19607912003993988,
-0.19456833600997925,
0.015450268983840942,
0.26640838384628296,
0.19868770241737366,
0.37797632813453674,
0.05605136230587959,
-0.04836713522672653,
0.12463316321372986,
0.0030194688588380814,
0.14064021408557892,
-0.22075995802879333,
-0.27769437432289124,
-0.057359032332897186,
0.04227240011096001,
0.3460412919521332,
0.2213224172592163,
0.06288819760084152,
0.09592346847057343,
0.14610257744789124,
0.25815820693969727,
-0.2759147584438324,
0.2963350713253021,
0.49333032965660095,
0.14033064246177673,
-0.4810529351234436,
-0.32022374868392944,
0.23703131079673767,
0.21850602328777313,
-0.1690099835395813,
0.3816429674625397,
0.09295246750116348,
-0.32983139157295227,
0.5882657170295715,
0.08547038584947586,
0.8382593393325806,
-0.3112332820892334,
0.05548461526632309,
-0.0850675106048584,
0.07848884165287018,
0.286737322807312,
0.06256808340549469,
0.22338154911994934,
-0.19899463653564453,
-0.4336814880371094,
0.02944095991551876,
-0.05872463807463646,
0.34761813282966614,
0.0871923491358757,
-0.18708990514278412,
0.2699613571166992,
-0.22248680889606476,
0.5848441123962402,
-0.25395384430885315,
-0.24099186062812805,
0.21160291135311127,
-0.37431207299232483,
0.12431821972131729,
0.056649185717105865,
-0.06866110861301422,
0.0904509425163269,
0.010075798258185387,
0.14018523693084717,
-0.10218418389558792,
-0.35835421085357666,
0.06752751767635345,
-0.05393954738974571,
-0.20072980225086212,
0.2325114905834198,
-0.2137073278427124,
-0.2194652259349823,
-0.0675615668296814,
0.33790403604507446,
0.3049491047859192,
0.2256918102502823,
0.0769784152507782,
0.23450149595737457,
0.44316959381103516,
0.20916712284088135,
-0.04088328406214714,
-0.1617860496044159,
-0.04702885448932648,
0.14012137055397034,
-0.28522875905036926,
0.13694798946380615,
-0.014186771586537361,
-0.24163106083869934,
-0.36424320936203003,
0.04156368598341942,
0.43234479427337646,
-0.33937400579452515,
-0.24990442395210266,
-0.15704083442687988,
-0.011291274800896645,
-0.10009337216615677,
0.06785975396633148,
-0.3800917863845825,
-0.18972070515155792,
0.400256484746933,
-0.11459848284721375,
-0.4112876057624817,
0.1257438212633133,
0.36346909403800964,
0.08220475167036057,
0.013131607323884964,
0.5031770467758179,
-0.19953975081443787,
0.011348221451044083,
-0.08634255826473236,
0.09820444136857986,
0.2158660590648651,
-0.08675041794776917,
0.029797114431858063,
0.3238883912563324,
-0.030905067920684814,
-0.15960337221622467,
0.4304635524749756,
0.05671457573771477,
0.20152589678764343,
0.07845336198806763,
-0.24326688051223755,
-0.6696434617042542,
0.48778653144836426,
0.10315077006816864,
0.2492167204618454,
0.10519243031740189,
0.34676674008369446,
-0.2948550283908844,
-0.011246433481574059,
-0.23995502293109894,
0.06492066383361816,
-0.04382046312093735,
0.3154606819152832,
0.44217154383659363,
0.025337431579828262,
-0.08960738778114319,
-0.289814829826355,
0.2092774212360382,
0.26412874460220337,
-0.08504654467105865,
-0.21385902166366577,
-0.01676762104034424,
0.11830883473157883,
0.10531730204820633,
-0.15056492388248444,
-0.024389617145061493,
-0.32315701246261597,
-0.02744339033961296,
-0.27033916115760803,
-0.08286908268928528,
0.33890265226364136,
0.033918533474206924,
0.19236673414707184,
-0.5534641146659851,
-0.08619055896997452,
0.3065202236175537,
0.13931003212928772,
-0.12518060207366943,
-0.05674012005329132,
0.2653055191040039,
0.17761527001857758,
-0.05040784180164337,
0.09706379473209381,
-0.29157885909080505,
-0.06840797513723373,
-0.15435214340686798,
0.11561422795057297,
0.3472285568714142,
-0.1888151615858078,
0.13398265838623047,
0.05610533803701401,
0.27962836623191833,
0.13100183010101318,
-0.2598957419395447,
-0.1948145478963852,
0.3021290898323059,
0.09886640310287476,
-0.3267250061035156,
-0.1829233020544052,
0.5215925574302673,
-0.01564062014222145,
0.24111276865005493,
0.2352425456047058,
-0.04850747436285019,
0.13168750703334808,
-0.26017290353775024,
-0.017790621146559715,
0.1529349684715271,
-0.07377739995718002,
0.24698156118392944,
0.62541264295578,
-0.11507469415664673,
0.27151671051979065,
0.29260602593421936,
0.3730807900428772,
-0.12497637420892715,
0.6644845008850098,
0.06355030834674835,
0.20422028005123138,
0.15866175293922424,
0.2688656449317932,
-0.11448097974061966,
-0.08995097875595093,
0.5314692258834839,
0.13465853035449982,
-0.22350209951400757,
0.29695725440979004,
0.19078713655471802,
-0.25905585289001465,
-0.001837211661040783,
-0.22525808215141296,
-0.07754495739936829,
0.28075873851776123,
-0.21775305271148682,
-0.2554296553134918,
-0.15150240063667297,
-0.03606288880109787,
0.0017206966876983643,
0.080563023686409,
-0.057208891957998276,
0.06858672201633453,
0.6512506008148193,
0.026028338819742203,
0.051004961133003235,
0.09604489803314209,
-0.5209686160087585,
0.13529707491397858,
0.393367201089859,
-0.13343563675880432,
-0.017999926581978798,
0.05715300142765045,
0.16420501470565796,
0.22000433504581451,
0.015519975684583187,
0.3567884564399719,
0.1692756861448288,
-0.2766984701156616,
0.16297979652881622,
-0.019590236246585846,
-0.10517733544111252,
0.26419496536254883,
0.043905001133680344,
0.32678353786468506,
0.008745929226279259,
0.10008315742015839,
0.035745881497859955,
-0.18553750216960907,
-0.10507993400096893,
0.14877949655056,
0.1994476318359375,
0.19670578837394714,
-0.06667398661375046,
0.07766929268836975,
-0.13841809332370758,
-0.061289168894290924,
0.16629207134246826,
-0.2106764316558838,
-0.21686497330665588,
0.47410205006599426,
-0.11827554553747177,
0.18315547704696655,
0.1314246654510498,
0.062266454100608826,
0.11475951969623566,
0.19018520414829254,
0.10686160624027252,
-0.18237444758415222,
-0.5617812275886536,
-0.050648707896471024,
-0.36188772320747375,
-0.14546054601669312,
-0.04832560196518898,
0.09589362144470215,
0.00018402934074401855,
-0.29588446021080017,
0.28071925044059753,
0.10119025409221649,
0.4350568652153015,
-0.4830631613731384,
-0.05666026845574379,
0.560692548751831,
0.05398418381810188,
-0.06014358624815941,
0.02028375118970871,
0.24734286963939667,
0.10788984596729279,
-0.34711283445358276,
0.09702703356742859,
0.058661993592977524,
-0.008825980126857758,
-0.3392789363861084,
-0.1747094690799713,
-0.254141241312027,
-0.22222772240638733,
0.4715786576271057,
0.1747031956911087,
0.4249306917190552,
-0.1517661213874817,
-0.07277540862560272,
0.16374382376670837,
-0.16768233478069305,
-0.016834495589137077,
0.20952269434928894,
0.2309504598379135,
0.38832321763038635,
-0.07110343128442764,
0.12801775336265564,
-0.39709004759788513,
0.007460916414856911,
0.030202247202396393,
-0.18531037867069244,
-0.3765934705734253,
0.18692129850387573,
0.2549925148487091,
0.04083406925201416,
-0.1853448748588562,
0.3607904314994812,
0.038896627724170685,
0.5180017352104187,
-0.06803067028522491,
-0.36906564235687256,
0.7985039353370667,
-0.3579206168651581,
-0.6600232124328613,
0.08235999941825867,
-0.09001621603965759,
-0.1427420675754547,
0.04120754450559616,
-0.2388153374195099,
-0.06306478381156921,
0.07364076375961304,
-0.03345320001244545,
-0.34661608934402466,
0.09012812376022339,
-0.16457721590995789,
0.07983587682247162,
0.03644757345318794,
0.48609858751296997,
-0.31976690888404846,
-0.09455778449773788,
-0.2467268407344818,
-0.06323877722024918
] |
https://github.com/huggingface/datasets/issues/2022 | ValueError when rename_column on splitted dataset | Hi,
This is a bug so thanks for reporting it. `Dataset.__setstate__` is the problem, which is called when `Dataset.rename_column` tries to copy the dataset with `copy.deepcopy(self)`. This only happens if the `split` arg in `load_dataset` was defined as `ReadInstruction`.
To overcome this issue, use the named splits API (for now):
```python
train_ds, test_ds = load_dataset(
path='csv',
delimiter='\t',
data_files=text_files,
split=['train[:90%]', 'train[-10%:]'],
)
train_ds = train_ds.rename_column('sentence', 'text')
``` | Hi there,
I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so:
```python
split = {
'train': ReadInstruction('train', to=90, unit='%'),
'test': ReadInstruction('train', from_=-10, unit='%')
}
dataset = load_dataset(
path='csv', # use 'text' loading script to load from local txt-files
delimiter='\t', # xxx
data_files=text_files, # list of paths to local text files
split=split, # xxx
)
dataset
```
Part of output:
```python
DatasetDict({
train: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 900
})
test: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 100
})
})
```
Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however:
```python
dataset['train'].rename_column('sentence', 'text')
```
```python
/usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name)
353 for split_name in split_names_from_instruction:
354 if not re.match(_split_re, split_name):
--> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.")
356
357 def __str__(self):
ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('.
```
In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split.
Thanks in advance! :) | 66 | ValueError when rename_column on splitted dataset
Hi there,
I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so:
```python
split = {
'train': ReadInstruction('train', to=90, unit='%'),
'test': ReadInstruction('train', from_=-10, unit='%')
}
dataset = load_dataset(
path='csv', # use 'text' loading script to load from local txt-files
delimiter='\t', # xxx
data_files=text_files, # list of paths to local text files
split=split, # xxx
)
dataset
```
Part of output:
```python
DatasetDict({
train: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 900
})
test: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 100
})
})
```
Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however:
```python
dataset['train'].rename_column('sentence', 'text')
```
```python
/usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name)
353 for split_name in split_names_from_instruction:
354 if not re.match(_split_re, split_name):
--> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.")
356
357 def __str__(self):
ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('.
```
In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split.
Thanks in advance! :)
Hi,
This is a bug so thanks for reporting it. `Dataset.__setstate__` is the problem, which is called when `Dataset.rename_column` tries to copy the dataset with `copy.deepcopy(self)`. This only happens if the `split` arg in `load_dataset` was defined as `ReadInstruction`.
To overcome this issue, use the named splits API (for now):
```python
train_ds, test_ds = load_dataset(
path='csv',
delimiter='\t',
data_files=text_files,
split=['train[:90%]', 'train[-10%:]'],
)
train_ds = train_ds.rename_column('sentence', 'text')
``` | [
-0.0835748016834259,
0.2197994887828827,
-0.03482908383011818,
-0.04238470643758774,
0.42087721824645996,
0.07306233793497086,
0.6438037753105164,
0.41798412799835205,
-0.022552933543920517,
0.3396529257297516,
-0.0866868793964386,
0.3978034555912018,
-0.05218486487865448,
0.36443525552749634,
-0.2562585473060608,
-0.24770587682724,
0.10441391170024872,
-0.0795426219701767,
0.1267368346452713,
0.2697293758392334,
-0.33005276322364807,
0.07780777662992477,
-0.39327776432037354,
0.12606850266456604,
-0.07813378423452377,
0.062379978597164154,
0.032519757747650146,
0.09537671506404877,
0.028275877237319946,
-0.36107760667800903,
0.1441161334514618,
-0.03551020845770836,
0.18996469676494598,
0.5556840300559998,
-0.000116236180474516,
0.12328095734119415,
0.22254878282546997,
-0.12801721692085266,
-0.18916325271129608,
-0.4528481960296631,
-0.005279082804918289,
-0.16803638637065887,
0.001736232079565525,
-0.35067659616470337,
0.1707240641117096,
0.2284773588180542,
-0.23099474608898163,
-0.25847893953323364,
0.10060742497444153,
0.36931195855140686,
0.10768993198871613,
0.09652972221374512,
-0.010720361024141312,
0.11912428587675095,
0.10851464420557022,
0.021247338503599167,
-0.30477258563041687,
0.08998328447341919,
-0.07612383365631104,
-0.17922192811965942,
-0.11379028111696243,
0.23175136744976044,
-0.0711764246225357,
0.1480417400598526,
-0.023544684052467346,
0.31067416071891785,
0.03458895534276962,
-0.046964697539806366,
0.08885303884744644,
0.06718000024557114,
0.21446970105171204,
-0.24017858505249023,
-0.4639914035797119,
-0.4442960321903229,
0.16377194225788116,
-0.32501649856567383,
0.2570495009422302,
-0.18774700164794922,
0.1232370138168335,
0.1840745359659195,
-0.13986636698246002,
0.052361853420734406,
-0.13730481266975403,
-0.14063900709152222,
-0.09230417013168335,
0.08936119079589844,
-0.032361529767513275,
0.40946945548057556,
-0.10029350221157074,
-0.11142975091934204,
0.1749086230993271,
0.05133375525474548,
-0.07852014899253845,
-0.13118067383766174,
-0.501962423324585,
0.02781429886817932,
-0.2302481234073639,
-0.2595579922199249,
-0.32012802362442017,
-0.12000255286693573,
0.01583614945411682,
-0.2517315745353699,
0.2726787030696869,
0.21649706363677979,
-0.036297209560871124,
0.19965219497680664,
0.13009998202323914,
0.485177606344223,
0.23599646985530853,
0.140298530459404,
-0.20384693145751953,
-0.09152612835168839,
0.06073427200317383,
-0.29887306690216064,
0.14961765706539154,
0.19085878133773804,
0.13883839547634125,
0.10122466087341309,
-0.4223220944404602,
-0.021415643393993378,
-0.299931138753891,
-0.18861626088619232,
-0.030533775687217712,
0.22145605087280273,
0.20323960483074188,
0.4568885862827301,
0.1693876087665558,
0.05748017132282257,
-0.0006995908915996552,
-0.1406511813402176,
-0.03712508827447891,
0.17933249473571777,
-0.3019694983959198,
0.15059922635555267,
0.039969924837350845,
0.19645583629608154,
0.08144397288560867,
-0.27065688371658325,
-0.02082497626543045,
-0.29915380477905273,
-0.020320193842053413,
-0.19919146597385406,
0.09521082788705826,
0.2918282449245453,
-0.08355207741260529,
-0.10790833085775375,
0.11641381680965424,
-0.4457983374595642,
0.035215720534324646,
0.257923424243927,
-0.2536047101020813,
-0.32079237699508667,
0.13972575962543488,
0.1286000907421112,
0.03990073502063751,
-0.052753716707229614,
0.04824114218354225,
-0.022960010915994644,
0.6056432723999023,
-0.13944555819034576,
0.1351456344127655,
-0.30968743562698364,
-0.22670534253120422,
-0.016039859503507614,
-0.033279359340667725,
0.10004472732543945,
-0.5333274602890015,
-0.1184835284948349,
0.06361925601959229,
0.19419710338115692,
0.17697861790657043,
0.17553047835826874,
0.18300200998783112,
0.15833307802677155,
0.13353951275348663,
0.2669034004211426,
0.29672831296920776,
-0.3958650529384613,
0.028895273804664612,
0.280764639377594,
-0.31855323910713196,
-0.1601911038160324,
0.3707807958126068,
-0.2173387110233307,
0.12075094133615494,
-0.1076936200261116,
0.13417986035346985,
0.011336308903992176,
-0.06573714315891266,
0.0960766151547432,
-0.03781456872820854,
-0.0701456367969513,
0.33072149753570557,
-0.018021531403064728,
0.018863599747419357,
-0.11579040437936783,
-0.15686175227165222,
-0.2933053970336914,
0.32436099648475647,
-0.02646521106362343,
0.1164182648062706,
0.13003285229206085,
0.10575646162033081,
0.5420781970024109,
0.1200011670589447,
-0.0832299292087555,
-0.22531455755233765,
0.028383687138557434,
0.31808197498321533,
-0.168324813246727,
-0.3165951371192932,
-0.17092838883399963,
-0.43260109424591064,
0.04894362390041351,
-0.07522200047969818,
0.04720483347773552,
0.031313613057136536,
0.25429418683052063,
-0.10513299703598022,
-0.12179087102413177,
-0.4117277264595032,
0.2951657474040985,
-0.5749083161354065,
0.24643293023109436,
-0.3180006146430969,
0.07760005444288254,
0.0061802975833415985,
-0.321950763463974,
-0.2502305209636688,
0.15526743233203888,
0.1714721918106079,
-0.011288893409073353,
-0.23743143677711487,
0.6657512187957764,
0.34775131940841675,
0.046343494206666946,
-0.3765333890914917,
-0.2769818902015686,
-0.10850014537572861,
0.24177509546279907,
-0.235804945230484,
-0.13306991755962372,
0.24574702978134155,
-0.04125170409679413,
-0.06281238049268723,
0.2938629984855652,
-0.42021557688713074,
0.5500611066818237,
-0.010936487466096878,
-0.15323598682880402,
0.0020685959607362747,
-0.257507860660553,
-0.10373639315366745,
-0.3930051326751709,
-0.1505555808544159,
-0.33116158843040466,
0.11401952803134918,
-0.19655756652355194,
-0.18692359328269958,
-0.2932312488555908,
0.6310684084892273,
-0.05368298292160034,
-0.1708037555217743,
0.007796250283718109,
0.13579361140727997,
-0.04664798825979233,
-0.0799034982919693,
0.623110294342041,
0.4926961064338684,
0.029492400586605072,
-0.10185691714286804,
0.25110870599746704,
0.18718470633029938,
-0.2857348918914795,
0.2048226296901703,
0.26811617612838745,
0.14197392761707306,
0.4111412465572357,
0.24564336240291595,
0.005155428312718868,
-0.22683748602867126,
-0.183865025639534,
0.39680516719818115,
0.11953670531511307,
-0.49191275238990784,
0.02356247790157795,
-0.1649116575717926,
0.24191895127296448,
-0.20570088922977448,
-0.22671286761760712,
0.1853088140487671,
-0.5442617535591125,
-0.23491759598255157,
0.347245991230011,
-0.3372887074947357,
0.30510252714157104,
-0.1589926928281784,
-0.3950490951538086,
0.0922146588563919,
-0.16612829267978668,
-0.07192233204841614,
-0.17821171879768372,
-0.08851847797632217,
-0.04583676531910896,
-0.12614643573760986,
-0.09722895175218582,
0.041027046740055084,
-0.1662224382162094,
-0.09439637511968613,
-0.136542409658432,
-0.2923828363418579,
-0.02740437537431717,
-0.4529353976249695,
-0.009384920820593834,
0.40050840377807617,
0.03668944537639618,
0.18001031875610352,
-0.4637696444988251,
0.2288457602262497,
0.07759491354227066,
-0.020973915234208107,
0.03460131585597992,
0.2929464280605316,
0.006127818953245878,
-0.16404113173484802,
-0.6690232753753662,
-0.2725984454154968,
-0.304247111082077,
0.13382895290851593,
-0.272979199886322,
-0.16759946942329407,
0.059672269970178604,
-0.16183817386627197,
0.014235072769224644,
0.17344892024993896,
0.151435986161232,
-0.021506376564502716,
0.011957626789808273,
0.1503855586051941,
0.01462964154779911,
0.1776954084634781,
0.12653151154518127,
0.1827683001756668,
-0.10115869343280792,
0.05922235548496246,
-0.1364727020263672,
-0.056478582322597504,
-0.09169831871986389,
0.33805328607559204,
0.0930304303765297,
-0.0017820950597524643,
0.2639892101287842,
0.2979947328567505,
-0.03633321076631546,
-0.17179882526397705,
-0.267501562833786,
0.24656054377555847,
0.05763187259435654,
0.11982356011867523,
0.08033081889152527,
0.6318510174751282,
0.2055414468050003,
0.17527949810028076,
-0.15071700513362885,
-0.07017847895622253,
0.06589439511299133,
-0.0693153366446495,
0.018884852528572083,
-0.19038057327270508,
-0.014346279203891754,
-0.07193151116371155,
-0.3799417316913605,
-0.2754402756690979,
0.09684709459543228,
-0.1404147744178772,
-0.07464244216680527,
-0.03706194460391998,
0.00862957164645195,
0.04368045926094055,
-0.22747690975666046,
-0.052439168095588684,
-0.0882401317358017,
0.4275675117969513,
0.13278891146183014,
0.13907888531684875,
-0.07488776743412018,
-0.058731526136398315,
0.1260322779417038,
0.17999345064163208,
0.12195877730846405,
-0.308224618434906,
-0.2348090410232544,
0.02789078839123249,
-0.2218739092350006,
0.23117634654045105,
0.3654354214668274,
0.5237159132957458,
0.1095002144575119,
-0.4189082384109497,
0.03912600874900818,
0.12440840154886246,
0.581993579864502,
-0.2301921397447586,
-0.030865244567394257,
0.182000994682312,
-0.15825475752353668,
0.09986459463834763,
-0.16809432208538055,
-0.20261719822883606,
-0.02972801774740219,
0.2626563608646393,
0.4312618374824524,
-0.08188338577747345,
-0.04554526507854462,
0.5021077394485474,
0.2213868945837021,
-0.0002616681158542633,
-0.20037348568439484,
-0.14440694451332092,
-0.3349117934703827,
-0.2491309642791748,
-0.020762600004673004,
0.05158611387014389,
0.1574810892343521,
0.05140046775341034,
0.31279444694519043,
-0.030131271108984947,
-0.31425741314888,
0.14049680531024933,
0.23259799182415009,
-0.042832210659980774,
-0.07765952497720718,
0.1895499974489212,
0.05597590655088425,
0.1787734478712082,
0.08049473911523819,
0.23186556994915009,
-0.49864110350608826,
-0.6792056560516357,
-0.08389881253242493,
-0.17330612242221832,
0.4837496280670166,
0.23735862970352173,
-0.23550285398960114,
0.23864418268203735,
-0.06226901710033417,
0.22225446999073029,
-0.1055741161108017,
-0.005489705596119165,
0.3826483190059662,
0.08413217216730118,
-0.3165597915649414,
-0.5406339764595032,
0.3414807617664337,
0.07956379652023315,
-0.08305191248655319,
0.09007629752159119,
0.36659806966781616,
-0.46761199831962585,
0.41900312900543213,
-0.1272708773612976,
0.5394504070281982,
0.17117908596992493,
-0.0342089869081974,
0.42040082812309265,
-0.1584545373916626,
-0.06789115816354752,
-0.06878285109996796,
0.10580826550722122,
-0.37475791573524475,
-0.2032313048839569,
-0.06291431933641434,
0.09812566637992859,
0.44577187299728394,
0.04399153217673302,
-0.02398807555437088,
0.3131878674030304,
-0.03774617612361908,
0.31816962361335754,
-0.012959780171513557,
-0.023680660873651505,
-0.12484311312437057,
-0.2890898287296295,
0.03141641244292259,
0.017025846987962723,
0.058511849492788315,
-0.3307894766330719,
0.34682345390319824,
0.185060054063797,
-0.04455467686057091,
-0.006880141794681549,
-0.17967423796653748,
-0.09209620952606201,
-0.0396210215985775,
0.2621529698371887,
-0.07027404010295868,
-0.20682917535305023,
0.25616833567619324,
0.23600143194198608,
0.34552448987960815,
0.1204388439655304,
0.2218235582113266,
0.2901316285133362,
0.05360161513090134,
0.31501907110214233,
0.05109246075153351,
-0.05201435089111328,
0.3549726605415344,
0.25595760345458984,
-0.1892663538455963,
-0.1287592649459839,
-0.09706537425518036,
-0.15928882360458374,
-0.1369863897562027,
0.0045309290289878845,
0.3254043459892273,
-0.7125185132026672,
-0.27925148606300354,
-0.14634403586387634,
0.0076214708387851715,
-0.20571477711200714,
0.07022281736135483,
-0.43605053424835205,
-0.321126252412796,
0.042350511997938156,
-0.24731607735157013,
-0.5409808158874512,
-0.04105314239859581,
0.2723684310913086,
0.09287846088409424,
0.4236687421798706,
0.6302574872970581,
0.07445204257965088,
-0.11896063387393951,
-0.07692816853523254,
0.28152918815612793,
-0.0017071606125682592,
-0.2372875213623047,
0.3587245047092438,
0.24915465712547302,
0.012526154518127441,
0.14215193688869476,
0.08940477669239044,
0.013923421502113342,
0.1374351978302002,
-0.17947334051132202,
-0.29466119408607483,
-0.23643478751182556,
0.036480508744716644,
0.23717673122882843,
0.0985814779996872,
0.18280291557312012,
0.29212021827697754,
-0.41380128264427185,
-0.16716529428958893,
-0.1980048418045044,
-0.0679667592048645,
-0.044537417590618134,
0.3395097255706787,
0.23076187074184418,
0.0757986381649971,
-0.02257726900279522,
-0.16920676827430725,
0.209300696849823,
0.36601150035858154,
0.3369353413581848,
-0.17018568515777588,
-0.3115431070327759,
0.10452500730752945,
0.08796216547489166,
0.31999409198760986,
-0.2685278058052063,
-0.06452858448028564,
-0.16549049317836761,
-0.2432911992073059,
0.13979128003120422,
0.4403594732284546,
0.009370490908622742,
0.6279398202896118,
-0.23263974487781525,
0.061808571219444275,
-0.02211339958012104,
0.19735132157802582,
-0.37017524242401123,
0.13640862703323364,
-0.17789512872695923,
0.30948054790496826,
-0.04631129652261734,
0.1947895586490631,
-0.38712698221206665,
-0.14074581861495972,
-0.10170453786849976,
0.09191714227199554,
0.1624625325202942,
-0.23298786580562592,
0.027549859136343002,
-0.22763893008232117,
0.3421432077884674,
0.5766687393188477,
-0.03660177066922188,
-0.3406233489513397,
0.26014575362205505,
0.09385447949171066,
-0.21498940885066986,
0.2604704201221466,
0.1313985139131546,
-0.3491407632827759,
0.23992198705673218,
0.21982228755950928,
0.023825492709875107,
0.27393969893455505,
-0.41582250595092773,
0.09623147547245026,
0.4593586027622223,
-0.23125796020030975,
0.09330809116363525,
0.7471665143966675,
-0.07168802618980408,
0.32759761810302734,
0.24111980199813843,
0.1174241155385971,
-0.147477388381958,
0.5122218728065491,
0.29563620686531067,
0.33134761452674866,
0.18359506130218506,
0.0873706191778183,
-0.19883522391319275,
-0.04406919702887535,
0.07180225104093552,
0.02331496775150299,
-0.2806161344051361,
-0.001032508909702301,
0.0523831881582737,
0.09938866645097733,
-0.135128915309906,
0.006386464927345514,
0.07644595205783844,
0.07877881824970245,
-0.08532137423753738,
-0.3726898729801178,
-0.18073035776615143,
-0.07732082903385162,
-0.43519479036331177,
0.010004252195358276,
-0.0010134205222129822,
0.22390682995319366,
0.5572535991668701,
-0.06309983134269714,
0.2330804020166397,
-0.4022643566131592,
-0.12164074927568436,
-0.06716771423816681,
0.33764877915382385,
-0.4362979233264923,
0.0450071319937706,
0.19677616655826569,
0.09785047173500061,
0.3461168110370636,
-0.27364251017570496,
0.36749035120010376,
0.015870828181505203,
-0.03134730085730553,
-0.3278319537639618,
-0.27030518651008606,
-0.14794467389583588,
0.25842854380607605,
0.47701799869537354,
-0.24737602472305298,
0.16012731194496155,
0.342600554227829,
0.07084951549768448,
-0.0214187391102314,
0.30097177624702454,
0.29210588335990906,
0.14847899973392487,
-0.35368630290031433,
0.6270412802696228,
0.03427913039922714,
-0.17250315845012665,
-0.06490062922239304,
0.02912687510251999,
-0.22071197628974915,
0.015345795080065727,
0.4927918314933777,
-0.08570616692304611,
0.26256662607192993,
0.09815153479576111,
0.029404185712337494,
0.20183412730693817,
0.38943371176719666,
0.2932918667793274,
-0.4533611834049225,
-0.05368250608444214,
0.1658809632062912,
-0.34338441491127014,
-0.14135783910751343,
0.10903318226337433,
-0.15238986909389496,
-0.10431813448667526,
-0.26104027032852173,
0.10036945343017578,
-0.036239832639694214,
0.044841468334198,
0.18436294794082642,
-0.2561533749103546,
0.23803643882274628,
-0.00573449581861496,
-0.37587064504623413,
-0.08419783413410187,
0.02096840739250183,
0.03704271465539932,
-0.3455038070678711,
-0.019041258841753006,
0.4193594455718994,
-0.10627783834934235,
-0.2612062692642212,
-0.11170504242181778,
0.3965737223625183,
0.021208470687270164,
-0.07021449506282806,
0.20496968924999237,
0.5175048112869263,
-0.21314078569412231,
0.11915973573923111,
0.0022138692438602448,
-0.3588140606880188,
-0.45680713653564453,
0.41729891300201416,
-0.0768352746963501,
0.3570564389228821,
0.03739891201257706,
0.012648221105337143,
-0.0493575856089592,
0.10370392352342606,
-0.23928901553153992,
0.034457650035619736,
-0.46730518341064453,
0.03108142875134945,
0.23423811793327332,
0.06496518850326538,
0.139720618724823,
0.29435551166534424,
0.10556837916374207,
0.44838252663612366,
-0.12422940880060196,
-0.3101117014884949,
0.5607995986938477,
-0.3047522008419037,
-0.652894139289856,
0.12099172919988632,
-0.174409419298172,
0.38748258352279663,
0.0959179699420929,
-0.6975600123405457,
-0.1059780940413475,
0.3279695510864258,
-0.09646626561880112,
-0.20878158509731293,
0.1775735765695572,
0.21007944643497467,
-0.022771067917346954,
0.024789948016405106,
0.12183847278356552,
0.04367458447813988,
-0.18340222537517548,
-0.016177525743842125,
-0.07344092428684235
] |
https://github.com/huggingface/datasets/issues/2022 | ValueError when rename_column on splitted dataset | This has been fixed in #2043 , thanks @mariosasko
The fix is available on master and we'll do a new release soon :)
feel free to re-open if you still have issues | Hi there,
I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so:
```python
split = {
'train': ReadInstruction('train', to=90, unit='%'),
'test': ReadInstruction('train', from_=-10, unit='%')
}
dataset = load_dataset(
path='csv', # use 'text' loading script to load from local txt-files
delimiter='\t', # xxx
data_files=text_files, # list of paths to local text files
split=split, # xxx
)
dataset
```
Part of output:
```python
DatasetDict({
train: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 900
})
test: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 100
})
})
```
Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however:
```python
dataset['train'].rename_column('sentence', 'text')
```
```python
/usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name)
353 for split_name in split_names_from_instruction:
354 if not re.match(_split_re, split_name):
--> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.")
356
357 def __str__(self):
ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('.
```
In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split.
Thanks in advance! :) | 32 | ValueError when rename_column on splitted dataset
Hi there,
I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so:
```python
split = {
'train': ReadInstruction('train', to=90, unit='%'),
'test': ReadInstruction('train', from_=-10, unit='%')
}
dataset = load_dataset(
path='csv', # use 'text' loading script to load from local txt-files
delimiter='\t', # xxx
data_files=text_files, # list of paths to local text files
split=split, # xxx
)
dataset
```
Part of output:
```python
DatasetDict({
train: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 900
})
test: Dataset({
features: ['sentence', 'sentiment'],
num_rows: 100
})
})
```
Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however:
```python
dataset['train'].rename_column('sentence', 'text')
```
```python
/usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name)
353 for split_name in split_names_from_instruction:
354 if not re.match(_split_re, split_name):
--> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.")
356
357 def __str__(self):
ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('.
```
In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split.
Thanks in advance! :)
This has been fixed in #2043 , thanks @mariosasko
The fix is available on master and we'll do a new release soon :)
feel free to re-open if you still have issues | [
-0.0835748016834259,
0.2197994887828827,
-0.03482908383011818,
-0.04238470643758774,
0.42087721824645996,
0.07306233793497086,
0.6438037753105164,
0.41798412799835205,
-0.022552933543920517,
0.3396529257297516,
-0.0866868793964386,
0.3978034555912018,
-0.05218486487865448,
0.36443525552749634,
-0.2562585473060608,
-0.24770587682724,
0.10441391170024872,
-0.0795426219701767,
0.1267368346452713,
0.2697293758392334,
-0.33005276322364807,
0.07780777662992477,
-0.39327776432037354,
0.12606850266456604,
-0.07813378423452377,
0.062379978597164154,
0.032519757747650146,
0.09537671506404877,
0.028275877237319946,
-0.36107760667800903,
0.1441161334514618,
-0.03551020845770836,
0.18996469676494598,
0.5556840300559998,
-0.000116236180474516,
0.12328095734119415,
0.22254878282546997,
-0.12801721692085266,
-0.18916325271129608,
-0.4528481960296631,
-0.005279082804918289,
-0.16803638637065887,
0.001736232079565525,
-0.35067659616470337,
0.1707240641117096,
0.2284773588180542,
-0.23099474608898163,
-0.25847893953323364,
0.10060742497444153,
0.36931195855140686,
0.10768993198871613,
0.09652972221374512,
-0.010720361024141312,
0.11912428587675095,
0.10851464420557022,
0.021247338503599167,
-0.30477258563041687,
0.08998328447341919,
-0.07612383365631104,
-0.17922192811965942,
-0.11379028111696243,
0.23175136744976044,
-0.0711764246225357,
0.1480417400598526,
-0.023544684052467346,
0.31067416071891785,
0.03458895534276962,
-0.046964697539806366,
0.08885303884744644,
0.06718000024557114,
0.21446970105171204,
-0.24017858505249023,
-0.4639914035797119,
-0.4442960321903229,
0.16377194225788116,
-0.32501649856567383,
0.2570495009422302,
-0.18774700164794922,
0.1232370138168335,
0.1840745359659195,
-0.13986636698246002,
0.052361853420734406,
-0.13730481266975403,
-0.14063900709152222,
-0.09230417013168335,
0.08936119079589844,
-0.032361529767513275,
0.40946945548057556,
-0.10029350221157074,
-0.11142975091934204,
0.1749086230993271,
0.05133375525474548,
-0.07852014899253845,
-0.13118067383766174,
-0.501962423324585,
0.02781429886817932,
-0.2302481234073639,
-0.2595579922199249,
-0.32012802362442017,
-0.12000255286693573,
0.01583614945411682,
-0.2517315745353699,
0.2726787030696869,
0.21649706363677979,
-0.036297209560871124,
0.19965219497680664,
0.13009998202323914,
0.485177606344223,
0.23599646985530853,
0.140298530459404,
-0.20384693145751953,
-0.09152612835168839,
0.06073427200317383,
-0.29887306690216064,
0.14961765706539154,
0.19085878133773804,
0.13883839547634125,
0.10122466087341309,
-0.4223220944404602,
-0.021415643393993378,
-0.299931138753891,
-0.18861626088619232,
-0.030533775687217712,
0.22145605087280273,
0.20323960483074188,
0.4568885862827301,
0.1693876087665558,
0.05748017132282257,
-0.0006995908915996552,
-0.1406511813402176,
-0.03712508827447891,
0.17933249473571777,
-0.3019694983959198,
0.15059922635555267,
0.039969924837350845,
0.19645583629608154,
0.08144397288560867,
-0.27065688371658325,
-0.02082497626543045,
-0.29915380477905273,
-0.020320193842053413,
-0.19919146597385406,
0.09521082788705826,
0.2918282449245453,
-0.08355207741260529,
-0.10790833085775375,
0.11641381680965424,
-0.4457983374595642,
0.035215720534324646,
0.257923424243927,
-0.2536047101020813,
-0.32079237699508667,
0.13972575962543488,
0.1286000907421112,
0.03990073502063751,
-0.052753716707229614,
0.04824114218354225,
-0.022960010915994644,
0.6056432723999023,
-0.13944555819034576,
0.1351456344127655,
-0.30968743562698364,
-0.22670534253120422,
-0.016039859503507614,
-0.033279359340667725,
0.10004472732543945,
-0.5333274602890015,
-0.1184835284948349,
0.06361925601959229,
0.19419710338115692,
0.17697861790657043,
0.17553047835826874,
0.18300200998783112,
0.15833307802677155,
0.13353951275348663,
0.2669034004211426,
0.29672831296920776,
-0.3958650529384613,
0.028895273804664612,
0.280764639377594,
-0.31855323910713196,
-0.1601911038160324,
0.3707807958126068,
-0.2173387110233307,
0.12075094133615494,
-0.1076936200261116,
0.13417986035346985,
0.011336308903992176,
-0.06573714315891266,
0.0960766151547432,
-0.03781456872820854,
-0.0701456367969513,
0.33072149753570557,
-0.018021531403064728,
0.018863599747419357,
-0.11579040437936783,
-0.15686175227165222,
-0.2933053970336914,
0.32436099648475647,
-0.02646521106362343,
0.1164182648062706,
0.13003285229206085,
0.10575646162033081,
0.5420781970024109,
0.1200011670589447,
-0.0832299292087555,
-0.22531455755233765,
0.028383687138557434,
0.31808197498321533,
-0.168324813246727,
-0.3165951371192932,
-0.17092838883399963,
-0.43260109424591064,
0.04894362390041351,
-0.07522200047969818,
0.04720483347773552,
0.031313613057136536,
0.25429418683052063,
-0.10513299703598022,
-0.12179087102413177,
-0.4117277264595032,
0.2951657474040985,
-0.5749083161354065,
0.24643293023109436,
-0.3180006146430969,
0.07760005444288254,
0.0061802975833415985,
-0.321950763463974,
-0.2502305209636688,
0.15526743233203888,
0.1714721918106079,
-0.011288893409073353,
-0.23743143677711487,
0.6657512187957764,
0.34775131940841675,
0.046343494206666946,
-0.3765333890914917,
-0.2769818902015686,
-0.10850014537572861,
0.24177509546279907,
-0.235804945230484,
-0.13306991755962372,
0.24574702978134155,
-0.04125170409679413,
-0.06281238049268723,
0.2938629984855652,
-0.42021557688713074,
0.5500611066818237,
-0.010936487466096878,
-0.15323598682880402,
0.0020685959607362747,
-0.257507860660553,
-0.10373639315366745,
-0.3930051326751709,
-0.1505555808544159,
-0.33116158843040466,
0.11401952803134918,
-0.19655756652355194,
-0.18692359328269958,
-0.2932312488555908,
0.6310684084892273,
-0.05368298292160034,
-0.1708037555217743,
0.007796250283718109,
0.13579361140727997,
-0.04664798825979233,
-0.0799034982919693,
0.623110294342041,
0.4926961064338684,
0.029492400586605072,
-0.10185691714286804,
0.25110870599746704,
0.18718470633029938,
-0.2857348918914795,
0.2048226296901703,
0.26811617612838745,
0.14197392761707306,
0.4111412465572357,
0.24564336240291595,
0.005155428312718868,
-0.22683748602867126,
-0.183865025639534,
0.39680516719818115,
0.11953670531511307,
-0.49191275238990784,
0.02356247790157795,
-0.1649116575717926,
0.24191895127296448,
-0.20570088922977448,
-0.22671286761760712,
0.1853088140487671,
-0.5442617535591125,
-0.23491759598255157,
0.347245991230011,
-0.3372887074947357,
0.30510252714157104,
-0.1589926928281784,
-0.3950490951538086,
0.0922146588563919,
-0.16612829267978668,
-0.07192233204841614,
-0.17821171879768372,
-0.08851847797632217,
-0.04583676531910896,
-0.12614643573760986,
-0.09722895175218582,
0.041027046740055084,
-0.1662224382162094,
-0.09439637511968613,
-0.136542409658432,
-0.2923828363418579,
-0.02740437537431717,
-0.4529353976249695,
-0.009384920820593834,
0.40050840377807617,
0.03668944537639618,
0.18001031875610352,
-0.4637696444988251,
0.2288457602262497,
0.07759491354227066,
-0.020973915234208107,
0.03460131585597992,
0.2929464280605316,
0.006127818953245878,
-0.16404113173484802,
-0.6690232753753662,
-0.2725984454154968,
-0.304247111082077,
0.13382895290851593,
-0.272979199886322,
-0.16759946942329407,
0.059672269970178604,
-0.16183817386627197,
0.014235072769224644,
0.17344892024993896,
0.151435986161232,
-0.021506376564502716,
0.011957626789808273,
0.1503855586051941,
0.01462964154779911,
0.1776954084634781,
0.12653151154518127,
0.1827683001756668,
-0.10115869343280792,
0.05922235548496246,
-0.1364727020263672,
-0.056478582322597504,
-0.09169831871986389,
0.33805328607559204,
0.0930304303765297,
-0.0017820950597524643,
0.2639892101287842,
0.2979947328567505,
-0.03633321076631546,
-0.17179882526397705,
-0.267501562833786,
0.24656054377555847,
0.05763187259435654,
0.11982356011867523,
0.08033081889152527,
0.6318510174751282,
0.2055414468050003,
0.17527949810028076,
-0.15071700513362885,
-0.07017847895622253,
0.06589439511299133,
-0.0693153366446495,
0.018884852528572083,
-0.19038057327270508,
-0.014346279203891754,
-0.07193151116371155,
-0.3799417316913605,
-0.2754402756690979,
0.09684709459543228,
-0.1404147744178772,
-0.07464244216680527,
-0.03706194460391998,
0.00862957164645195,
0.04368045926094055,
-0.22747690975666046,
-0.052439168095588684,
-0.0882401317358017,
0.4275675117969513,
0.13278891146183014,
0.13907888531684875,
-0.07488776743412018,
-0.058731526136398315,
0.1260322779417038,
0.17999345064163208,
0.12195877730846405,
-0.308224618434906,
-0.2348090410232544,
0.02789078839123249,
-0.2218739092350006,
0.23117634654045105,
0.3654354214668274,
0.5237159132957458,
0.1095002144575119,
-0.4189082384109497,
0.03912600874900818,
0.12440840154886246,
0.581993579864502,
-0.2301921397447586,
-0.030865244567394257,
0.182000994682312,
-0.15825475752353668,
0.09986459463834763,
-0.16809432208538055,
-0.20261719822883606,
-0.02972801774740219,
0.2626563608646393,
0.4312618374824524,
-0.08188338577747345,
-0.04554526507854462,
0.5021077394485474,
0.2213868945837021,
-0.0002616681158542633,
-0.20037348568439484,
-0.14440694451332092,
-0.3349117934703827,
-0.2491309642791748,
-0.020762600004673004,
0.05158611387014389,
0.1574810892343521,
0.05140046775341034,
0.31279444694519043,
-0.030131271108984947,
-0.31425741314888,
0.14049680531024933,
0.23259799182415009,
-0.042832210659980774,
-0.07765952497720718,
0.1895499974489212,
0.05597590655088425,
0.1787734478712082,
0.08049473911523819,
0.23186556994915009,
-0.49864110350608826,
-0.6792056560516357,
-0.08389881253242493,
-0.17330612242221832,
0.4837496280670166,
0.23735862970352173,
-0.23550285398960114,
0.23864418268203735,
-0.06226901710033417,
0.22225446999073029,
-0.1055741161108017,
-0.005489705596119165,
0.3826483190059662,
0.08413217216730118,
-0.3165597915649414,
-0.5406339764595032,
0.3414807617664337,
0.07956379652023315,
-0.08305191248655319,
0.09007629752159119,
0.36659806966781616,
-0.46761199831962585,
0.41900312900543213,
-0.1272708773612976,
0.5394504070281982,
0.17117908596992493,
-0.0342089869081974,
0.42040082812309265,
-0.1584545373916626,
-0.06789115816354752,
-0.06878285109996796,
0.10580826550722122,
-0.37475791573524475,
-0.2032313048839569,
-0.06291431933641434,
0.09812566637992859,
0.44577187299728394,
0.04399153217673302,
-0.02398807555437088,
0.3131878674030304,
-0.03774617612361908,
0.31816962361335754,
-0.012959780171513557,
-0.023680660873651505,
-0.12484311312437057,
-0.2890898287296295,
0.03141641244292259,
0.017025846987962723,
0.058511849492788315,
-0.3307894766330719,
0.34682345390319824,
0.185060054063797,
-0.04455467686057091,
-0.006880141794681549,
-0.17967423796653748,
-0.09209620952606201,
-0.0396210215985775,
0.2621529698371887,
-0.07027404010295868,
-0.20682917535305023,
0.25616833567619324,
0.23600143194198608,
0.34552448987960815,
0.1204388439655304,
0.2218235582113266,
0.2901316285133362,
0.05360161513090134,
0.31501907110214233,
0.05109246075153351,
-0.05201435089111328,
0.3549726605415344,
0.25595760345458984,
-0.1892663538455963,
-0.1287592649459839,
-0.09706537425518036,
-0.15928882360458374,
-0.1369863897562027,
0.0045309290289878845,
0.3254043459892273,
-0.7125185132026672,
-0.27925148606300354,
-0.14634403586387634,
0.0076214708387851715,
-0.20571477711200714,
0.07022281736135483,
-0.43605053424835205,
-0.321126252412796,
0.042350511997938156,
-0.24731607735157013,
-0.5409808158874512,
-0.04105314239859581,
0.2723684310913086,
0.09287846088409424,
0.4236687421798706,
0.6302574872970581,
0.07445204257965088,
-0.11896063387393951,
-0.07692816853523254,
0.28152918815612793,
-0.0017071606125682592,
-0.2372875213623047,
0.3587245047092438,
0.24915465712547302,
0.012526154518127441,
0.14215193688869476,
0.08940477669239044,
0.013923421502113342,
0.1374351978302002,
-0.17947334051132202,
-0.29466119408607483,
-0.23643478751182556,
0.036480508744716644,
0.23717673122882843,
0.0985814779996872,
0.18280291557312012,
0.29212021827697754,
-0.41380128264427185,
-0.16716529428958893,
-0.1980048418045044,
-0.0679667592048645,
-0.044537417590618134,
0.3395097255706787,
0.23076187074184418,
0.0757986381649971,
-0.02257726900279522,
-0.16920676827430725,
0.209300696849823,
0.36601150035858154,
0.3369353413581848,
-0.17018568515777588,
-0.3115431070327759,
0.10452500730752945,
0.08796216547489166,
0.31999409198760986,
-0.2685278058052063,
-0.06452858448028564,
-0.16549049317836761,
-0.2432911992073059,
0.13979128003120422,
0.4403594732284546,
0.009370490908622742,
0.6279398202896118,
-0.23263974487781525,
0.061808571219444275,
-0.02211339958012104,
0.19735132157802582,
-0.37017524242401123,
0.13640862703323364,
-0.17789512872695923,
0.30948054790496826,
-0.04631129652261734,
0.1947895586490631,
-0.38712698221206665,
-0.14074581861495972,
-0.10170453786849976,
0.09191714227199554,
0.1624625325202942,
-0.23298786580562592,
0.027549859136343002,
-0.22763893008232117,
0.3421432077884674,
0.5766687393188477,
-0.03660177066922188,
-0.3406233489513397,
0.26014575362205505,
0.09385447949171066,
-0.21498940885066986,
0.2604704201221466,
0.1313985139131546,
-0.3491407632827759,
0.23992198705673218,
0.21982228755950928,
0.023825492709875107,
0.27393969893455505,
-0.41582250595092773,
0.09623147547245026,
0.4593586027622223,
-0.23125796020030975,
0.09330809116363525,
0.7471665143966675,
-0.07168802618980408,
0.32759761810302734,
0.24111980199813843,
0.1174241155385971,
-0.147477388381958,
0.5122218728065491,
0.29563620686531067,
0.33134761452674866,
0.18359506130218506,
0.0873706191778183,
-0.19883522391319275,
-0.04406919702887535,
0.07180225104093552,
0.02331496775150299,
-0.2806161344051361,
-0.001032508909702301,
0.0523831881582737,
0.09938866645097733,
-0.135128915309906,
0.006386464927345514,
0.07644595205783844,
0.07877881824970245,
-0.08532137423753738,
-0.3726898729801178,
-0.18073035776615143,
-0.07732082903385162,
-0.43519479036331177,
0.010004252195358276,
-0.0010134205222129822,
0.22390682995319366,
0.5572535991668701,
-0.06309983134269714,
0.2330804020166397,
-0.4022643566131592,
-0.12164074927568436,
-0.06716771423816681,
0.33764877915382385,
-0.4362979233264923,
0.0450071319937706,
0.19677616655826569,
0.09785047173500061,
0.3461168110370636,
-0.27364251017570496,
0.36749035120010376,
0.015870828181505203,
-0.03134730085730553,
-0.3278319537639618,
-0.27030518651008606,
-0.14794467389583588,
0.25842854380607605,
0.47701799869537354,
-0.24737602472305298,
0.16012731194496155,
0.342600554227829,
0.07084951549768448,
-0.0214187391102314,
0.30097177624702454,
0.29210588335990906,
0.14847899973392487,
-0.35368630290031433,
0.6270412802696228,
0.03427913039922714,
-0.17250315845012665,
-0.06490062922239304,
0.02912687510251999,
-0.22071197628974915,
0.015345795080065727,
0.4927918314933777,
-0.08570616692304611,
0.26256662607192993,
0.09815153479576111,
0.029404185712337494,
0.20183412730693817,
0.38943371176719666,
0.2932918667793274,
-0.4533611834049225,
-0.05368250608444214,
0.1658809632062912,
-0.34338441491127014,
-0.14135783910751343,
0.10903318226337433,
-0.15238986909389496,
-0.10431813448667526,
-0.26104027032852173,
0.10036945343017578,
-0.036239832639694214,
0.044841468334198,
0.18436294794082642,
-0.2561533749103546,
0.23803643882274628,
-0.00573449581861496,
-0.37587064504623413,
-0.08419783413410187,
0.02096840739250183,
0.03704271465539932,
-0.3455038070678711,
-0.019041258841753006,
0.4193594455718994,
-0.10627783834934235,
-0.2612062692642212,
-0.11170504242181778,
0.3965737223625183,
0.021208470687270164,
-0.07021449506282806,
0.20496968924999237,
0.5175048112869263,
-0.21314078569412231,
0.11915973573923111,
0.0022138692438602448,
-0.3588140606880188,
-0.45680713653564453,
0.41729891300201416,
-0.0768352746963501,
0.3570564389228821,
0.03739891201257706,
0.012648221105337143,
-0.0493575856089592,
0.10370392352342606,
-0.23928901553153992,
0.034457650035619736,
-0.46730518341064453,
0.03108142875134945,
0.23423811793327332,
0.06496518850326538,
0.139720618724823,
0.29435551166534424,
0.10556837916374207,
0.44838252663612366,
-0.12422940880060196,
-0.3101117014884949,
0.5607995986938477,
-0.3047522008419037,
-0.652894139289856,
0.12099172919988632,
-0.174409419298172,
0.38748258352279663,
0.0959179699420929,
-0.6975600123405457,
-0.1059780940413475,
0.3279695510864258,
-0.09646626561880112,
-0.20878158509731293,
0.1775735765695572,
0.21007944643497467,
-0.022771067917346954,
0.024789948016405106,
0.12183847278356552,
0.04367458447813988,
-0.18340222537517548,
-0.016177525743842125,
-0.07344092428684235
] |
https://github.com/huggingface/datasets/issues/2021 | Interactively doing save_to_disk and load_from_disk corrupts the datasets object? | Hi,
Can you give us a minimal reproducible example? This [part](https://huggingface.co/docs/datasets/master/processing.html#controling-the-cache-behavior) of the docs explains how to control caching. | dataset_info.json file saved after using save_to_disk gets corrupted as follows.

Is there a way to disable the cache that will save to /tmp/huggiface/datastes ?
I have a feeling there is a serious issue with cashing. | 19 | Interactively doing save_to_disk and load_from_disk corrupts the datasets object?
dataset_info.json file saved after using save_to_disk gets corrupted as follows.

Is there a way to disable the cache that will save to /tmp/huggiface/datastes ?
I have a feeling there is a serious issue with cashing.
Hi,
Can you give us a minimal reproducible example? This [part](https://huggingface.co/docs/datasets/master/processing.html#controling-the-cache-behavior) of the docs explains how to control caching. | [
-0.07485511898994446,
-0.14697124063968658,
0.05617262050509453,
0.7758002877235413,
0.2905217409133911,
0.3213845193386078,
-0.23171813786029816,
0.13119029998779297,
0.19429421424865723,
0.13167066872119904,
-0.1502695083618164,
0.06683534383773804,
0.23899395763874054,
0.20337428152561188,
0.13799834251403809,
0.2394493967294693,
0.4092523753643036,
-0.10221715271472931,
-0.29691392183303833,
-0.002489246428012848,
-0.057139698415994644,
0.20132066309452057,
0.23924387991428375,
-0.047508835792541504,
-0.3708270490169525,
-0.16654038429260254,
0.0865427628159523,
0.3370096981525421,
-0.045787326991558075,
-0.33075204491615295,
0.17031539976596832,
0.25001874566078186,
-0.2806943356990814,
0.39975181221961975,
-0.0001322347961831838,
-0.278096079826355,
0.06549149006605148,
-0.11208934336900711,
-0.48072993755340576,
0.34499356150627136,
-0.21468371152877808,
0.10561981052160263,
0.18325601518154144,
-0.051474180072546005,
0.018075697124004364,
0.030572079122066498,
-0.04486861079931259,
-0.2771775722503662,
0.4946133494377136,
-0.1418091058731079,
0.009972061961889267,
0.2939893901348114,
0.054078664630651474,
0.17054332792758942,
-0.08911200612783432,
0.3520071506500244,
-0.17303277552127838,
0.24737699329853058,
-0.056708723306655884,
-0.04223674535751343,
-0.13353615999221802,
0.32717862725257874,
-0.1942921131849289,
-0.22153155505657196,
0.4750733971595764,
0.1670779436826706,
-0.22610962390899658,
-0.10156111419200897,
0.14168009161949158,
0.030004581436514854,
0.2404651641845703,
-0.44137370586395264,
-0.4901423454284668,
-0.40945783257484436,
-0.16263414919376373,
-0.2622808516025543,
0.4829568564891815,
0.11492931842803955,
0.02376338094472885,
0.26980650424957275,
-0.6267799139022827,
-0.3822420537471771,
-0.07521254569292068,
0.10468481481075287,
0.2587689459323883,
-0.6426103115081787,
-0.2962203919887543,
-0.02028961479663849,
0.09609721601009369,
-0.026915300637483597,
-0.2518176734447479,
-0.28429368138313293,
-0.4094383120536804,
0.20436476171016693,
-0.28042975068092346,
-0.17062237858772278,
-0.03651218116283417,
0.6992866396903992,
0.3096771836280823,
0.026673367246985435,
0.1539706289768219,
-0.026879020035266876,
-0.3828498125076294,
0.05703584849834442,
0.4450922906398773,
0.18410950899124146,
-0.15103352069854736,
-0.3038627803325653,
0.19378283619880676,
0.24870210886001587,
0.19340287148952484,
-0.12793707847595215,
0.6235293745994568,
0.06540363281965256,
0.3158101439476013,
-0.279408723115921,
0.10270234942436218,
-0.4267752766609192,
-0.15818722546100616,
0.22385482490062714,
0.11368516832590103,
0.12708231806755066,
0.15182562172412872,
0.27431800961494446,
-0.20324701070785522,
0.23887625336647034,
-0.17414361238479614,
0.2308162897825241,
-0.11128342151641846,
-0.16446933150291443,
-0.2411799132823944,
0.020054982975125313,
-0.10284046828746796,
0.4697912037372589,
0.3572986125946045,
-0.2158576399087906,
0.1555406153202057,
0.14888019859790802,
-0.21947719156742096,
-0.2177104651927948,
-0.14139604568481445,
-0.17308901250362396,
0.2110484540462494,
0.20017503201961517,
-0.07840143144130707,
0.26144927740097046,
0.044214196503162384,
0.18134373426437378,
-0.10440882295370102,
-0.016749300062656403,
-0.30258116126060486,
-0.16533321142196655,
0.2371431589126587,
-0.009331312961876392,
-0.3137509822845459,
-0.0204303041100502,
-0.3833114802837372,
-0.04067675396800041,
0.373403400182724,
-0.060661040246486664,
0.22709745168685913,
0.3761095404624939,
-0.4323396682739258,
-0.21262668073177338,
0.11869882792234421,
0.7272849082946777,
-0.0777013972401619,
-0.18090477585792542,
0.33803096413612366,
-0.06770582497119904,
-0.0976458266377449,
0.4955669045448303,
-0.046168189495801926,
0.12403947114944458,
-0.17512552440166473,
-0.000054016709327697754,
0.09213516116142273,
-0.403675377368927,
-0.5119621753692627,
-0.0031918538734316826,
0.2435678392648697,
0.1814952790737152,
0.08188475668430328,
0.1703975796699524,
0.02767813764512539,
-0.2080339640378952,
-0.3021430969238281,
0.2457525134086609,
0.05719785392284393,
0.10074133425951004,
-0.24728868901729584,
-0.21501237154006958,
0.0834207534790039,
-0.04443810135126114,
-0.35684511065483093,
0.4231315851211548,
-0.04316245764493942,
-0.034539271146059036,
0.029222004115581512,
-0.004833642393350601,
0.20217712223529816,
0.32845598459243774,
0.2372109442949295,
0.12978222966194153,
0.023876694962382317,
0.07289135456085205,
-0.4457373023033142,
0.12065013498067856,
0.08236946165561676,
-0.257956326007843,
-0.03352120518684387,
-0.25115400552749634,
-0.02119465172290802,
0.13511177897453308,
-0.07826603949069977,
0.11930784583091736,
-0.09831678867340088,
-0.03230562061071396,
0.24603113532066345,
0.17170485854148865,
-0.2977086007595062,
0.8645349144935608,
0.06487605720758438,
0.230266273021698,
-0.5460048317909241,
-0.06536839157342911,
0.1276174634695053,
-0.09124153107404709,
-0.32070887088775635,
-0.1451040804386139,
0.17519785463809967,
-0.21266378462314606,
-0.08147671073675156,
0.670113742351532,
-0.017503822222352028,
0.4155430197715759,
0.0389864481985569,
0.3504508435726166,
0.26061421632766724,
0.17641323804855347,
-0.03858283907175064,
-0.011305209249258041,
0.19531035423278809,
0.003096364438533783,
-0.20791664719581604,
0.232374370098114,
0.04012559354305267,
-0.059602074325084686,
-0.05956259369850159,
-0.11374727636575699,
0.1619166135787964,
-0.18463356792926788,
0.020550919696688652,
-0.31816306710243225,
-0.03802356496453285,
-0.20648793876171112,
0.2917073369026184,
-0.023800743743777275,
-0.38078683614730835,
0.11579503864049911,
0.24473033845424652,
0.02472289279103279,
0.0320938341319561,
-0.00013677775859832764,
-0.019897453486919403,
-0.3366124927997589,
0.04102116450667381,
0.2540484666824341,
0.5070414543151855,
-0.08930440992116928,
0.06459581106901169,
0.028731781989336014,
0.08359254896640778,
-0.06301061064004898,
0.14695130288600922,
0.03723769634962082,
0.07628371566534042,
0.11653131246566772,
0.02703450806438923,
-0.0039832452312111855,
-0.4554964601993561,
0.4673798382282257,
-0.12039052695035934,
0.13107435405254364,
-0.42884528636932373,
0.30271875858306885,
-0.07545717060565948,
-0.18272414803504944,
-0.04894757270812988,
0.019473467022180557,
-0.3586301803588867,
-0.25531771779060364,
0.12005665153265,
0.7634332180023193,
0.009685605764389038,
-0.03435937315225601,
-0.0973857194185257,
0.6595611572265625,
-0.13742515444755554,
0.16373229026794434,
-0.5104164481163025,
0.08529345691204071,
-0.11503652483224869,
-0.20062409341335297,
0.13179431855678558,
-0.22834786772727966,
0.3360629975795746,
-0.2017657607793808,
-0.11695202440023422,
-0.3274323344230652,
0.16139855980873108,
0.16729550063610077,
0.1527266949415207,
0.16049522161483765,
-0.03045189380645752,
0.1365007758140564,
-0.04917757585644722,
0.26919251680374146,
0.026231126859784126,
-0.23777924478054047,
-0.2840474545955658,
0.040583908557891846,
0.1341717541217804,
0.03888215869665146,
-0.11390465497970581,
0.349801629781723,
-0.03294050693511963,
-0.05417429655790329,
0.25626474618911743,
-0.16043932735919952,
0.04469802603125572,
0.1442907452583313,
0.05146365240216255,
-0.11741597205400467,
-0.2412375509738922,
0.09536883234977722,
-0.3460167646408081,
-0.8206095695495605,
0.3271397054195404,
0.01870528981089592,
-0.24292315542697906,
0.17734180390834808,
0.4334363341331482,
-0.06862547993659973,
0.25574350357055664,
-0.43004506826400757,
-0.32363468408584595,
-0.14161595702171326,
-0.1264071762561798,
-0.23158222436904907,
0.020772209390997887,
0.11105281114578247,
0.10768041014671326,
0.029178457334637642,
-0.04604822397232056,
-0.20067523419857025,
0.23170983791351318,
-0.03162814676761627,
0.46529069542884827,
-0.15878280997276306,
0.28571394085884094,
0.14454326033592224,
0.16522759199142456,
0.04741585627198219,
0.08712867647409439,
0.5161064863204956,
0.19887752830982208,
0.7607300281524658,
-0.09009262174367905,
-0.18151696026325226,
-0.3419683277606964,
-0.28725558519363403,
-0.14737075567245483,
-0.032497555017471313,
0.22556659579277039,
0.2973235249519348,
-0.08421769738197327,
0.03803810849785805,
-0.14435464143753052,
-0.27309587597846985,
-0.12767216563224792,
0.04628768563270569,
0.1949002742767334,
-0.011085445061326027,
0.06302282214164734,
0.009693136438727379,
-0.2521272599697113,
0.17205753922462463,
0.3098351061344147,
0.3786347806453705,
0.05571674555540085,
-0.36700570583343506,
0.05773922801017761,
-0.2918661832809448,
0.07476290315389633,
-0.37159407138824463,
0.2076219618320465,
-0.1661166548728943,
0.05296289920806885,
0.13803906738758087,
-0.11513885110616684,
1.0467969179153442,
0.059348851442337036,
0.20434576272964478,
-0.18691542744636536,
-0.30954211950302124,
-0.07775041460990906,
0.06915833055973053,
0.016184519976377487,
0.2611720860004425,
0.05951499938964844,
0.6162323355674744,
-0.15019574761390686,
-0.4283818006515503,
-0.06706102937459946,
0.21218334138393402,
-0.3520035743713379,
-0.11925994604825974,
-0.029030736535787582,
-0.009223364293575287,
-0.19504903256893158,
-0.12640726566314697,
-0.05321191996335983,
-0.0326082669198513,
0.07090392708778381,
0.17604757845401764,
-0.18670977652072906,
0.13014066219329834,
0.08166643977165222,
-0.06648232042789459,
0.40747201442718506,
-0.06748823821544647,
0.12420280277729034,
0.07306209206581116,
0.24560122191905975,
0.13844384253025055,
0.23809945583343506,
0.19989275932312012,
-0.19746458530426025,
-0.13809466361999512,
0.22152310609817505,
-0.01964082568883896,
0.39966556429862976,
-0.15747873485088348,
-0.05899617820978165,
0.14055967330932617,
-0.11382482945919037,
-0.3557965159416199,
0.10306187719106674,
0.06608288735151291,
0.049211617559194565,
-0.3060365319252014,
-0.0036102179437875748,
0.2606482207775116,
0.11601319909095764,
-0.040405549108982086,
-0.1814964860677719,
0.19624772667884827,
-0.376783549785614,
0.28501617908477783,
0.2217981219291687,
1.1114581823349,
-0.09658700227737427,
0.44672831892967224,
-0.019025128334760666,
-0.18580225110054016,
0.4888451099395752,
-0.4004948139190674,
0.06977998465299606,
-0.30766841769218445,
0.0705442950129509,
-0.23818449676036835,
-0.0994819775223732,
0.011401668190956116,
0.054205384105443954,
-0.026403501629829407,
0.35003775358200073,
-0.3125455975532532,
0.3876649737358093,
-0.294325590133667,
-0.0302392840385437,
-0.29954731464385986,
-0.45650753378868103,
-0.15429557859897614,
0.009506840258836746,
-0.1227845847606659,
0.06942307949066162,
0.09243030846118927,
-0.13524264097213745,
-0.07313960790634155,
0.031023576855659485,
-0.07559520751237869,
0.04350005090236664,
-0.11272541433572769,
0.0468672513961792,
0.10025161504745483,
-0.1901460587978363,
-0.18070439994335175,
0.4376668930053711,
0.5001237392425537,
0.020976323634386063,
-0.24491944909095764,
0.011641371995210648,
-0.2824936807155609,
0.025380883365869522,
-0.15004996955394745,
0.13428287208080292,
0.20043997466564178,
0.08599915355443954,
0.15133729577064514,
-0.15904352068901062,
-0.0797581896185875,
-0.11970468610525131,
-0.04147028923034668,
-0.09373204410076141,
-0.11135350167751312,
-0.4145843982696533,
-0.4675278961658478,
-0.05415455996990204,
0.2668153941631317,
-0.14065875113010406,
-0.0024488847702741623,
0.30706897377967834,
-0.018436996266245842,
0.07864516228437424,
-0.3082568943500519,
-0.11369121074676514,
-0.10699427127838135,
0.605297327041626,
-0.023877780884504318,
-0.1746397465467453,
0.28373628854751587,
-0.23771719634532928,
-0.07940752804279327,
-0.17190033197402954,
-0.14770007133483887,
0.19233645498752594,
-0.48845374584198,
0.06624912470579147,
0.06311006098985672,
-0.07605163753032684,
-0.37015455961227417,
-0.12715372443199158,
0.09420472383499146,
-0.13519272208213806,
0.025170285254716873,
-0.18506547808647156,
-0.4053344130516052,
0.09118140488862991,
0.40460118651390076,
0.2675653398036957,
0.19159483909606934,
-0.25860536098480225,
-0.33461207151412964,
0.008307939395308495,
-0.11360935121774673,
0.02933824248611927,
-0.07233411818742752,
-0.1758124679327011,
0.4042055308818817,
0.15956908464431763,
0.3628729581832886,
-0.34102863073349,
-0.13444414734840393,
-0.08284199982881546,
-0.2898585796356201,
-0.05243918299674988,
-0.06711241602897644,
0.22080816328525543,
0.1286533772945404,
-0.2424934059381485,
-0.07857082784175873,
-0.09337931871414185,
0.11156249046325684,
-0.2209189236164093,
0.1932237148284912,
0.3436005115509033,
0.08919523656368256,
0.0913304015994072,
-0.04062749072909355,
0.3802587687969208,
0.056800566613674164,
-0.1113143116235733,
0.15127559006214142,
0.15281614661216736,
-0.039967093616724014,
0.009917862713336945,
-0.3080691397190094,
-0.2685752809047699,
-0.23127320408821106,
0.1376551389694214,
0.3123863935470581,
0.02861177735030651,
0.069654680788517,
-0.22918446362018585,
-0.1985618770122528,
0.17940166592597961,
0.44569745659828186,
0.34987905621528625,
-0.15618064999580383,
-0.1637626737356186,
0.2775178551673889,
-0.034301094710826874,
0.22831174731254578,
-0.2759072780609131,
0.3110444247722626,
-0.14429423213005066,
-0.21815265715122223,
0.2194909304380417,
0.14577528834342957,
0.08942374587059021,
0.1508740782737732,
-0.015993693843483925,
0.596602201461792,
0.1635362058877945,
0.1562795639038086,
-0.033190060406923294,
-0.17555704712867737,
0.28588297963142395,
0.27033284306526184,
0.27111759781837463,
0.054308950901031494,
0.2297404408454895,
0.1829448640346527,
0.25892841815948486,
-0.004606451839208603,
0.15493696928024292,
-0.2851570248603821,
-0.3397423028945923,
0.15655599534511566,
0.12722617387771606,
-0.19174686074256897,
0.25343334674835205,
0.007706210017204285,
0.5218213200569153,
-0.03363935276865959,
-0.5268296003341675,
-0.2592495381832123,
0.3149910569190979,
-0.23930591344833374,
-0.19209851324558258,
0.15738970041275024,
-0.04093881696462631,
0.3146926462650299,
0.3009059727191925,
-0.1844610720872879,
-0.21950958669185638,
0.3485594391822815,
-0.03606180101633072,
-0.021856188774108887,
-0.18287676572799683,
-0.09299465268850327,
0.16651764512062073,
0.19115610420703888,
-0.0352359302341938,
-0.08294850587844849,
-0.15251712501049042,
0.011723440140485764,
-0.22916486859321594,
0.33401456475257874,
0.09440707415342331,
0.1614552140235901,
0.2619744539260864,
0.12462207674980164,
0.041186004877090454,
0.0491621270775795,
0.10890069603919983,
0.12432107329368591,
-0.1317135989665985,
-0.2439182549715042,
0.13014794886112213,
-0.1043873280286789,
0.08130595088005066,
-0.030560266226530075,
0.0009520053863525391,
0.5091179013252258,
-0.186443492770195,
-0.135356605052948,
-0.15051759779453278,
-0.049946676939725876,
-0.12390917539596558,
0.04327492043375969,
-0.2306683361530304,
-0.03943648189306259,
0.3530200123786926,
-0.09094162285327911,
0.0934864953160286,
-0.08407161384820938,
-0.02116209641098976,
0.13853861391544342,
0.6743147969245911,
0.31105998158454895,
-0.2636904716491699,
-0.1781882494688034,
0.055828824639320374,
-0.3784164488315582,
0.11279220879077911,
0.14909738302230835,
0.2689667046070099,
-0.23755836486816406,
0.09250499308109283,
-0.20277157425880432,
0.19090399146080017,
0.016391165554523468,
-0.22666674852371216,
-0.04087859392166138,
0.23889179527759552,
-0.033932529389858246,
-0.10323017835617065,
-0.06015928089618683,
0.09454120695590973,
0.090106301009655,
-0.10533616691827774,
0.44792312383651733,
0.2539942264556885,
-0.08849938213825226,
0.10335100442171097,
0.23871645331382751,
-0.6483796238899231,
-0.009517546743154526,
0.3108648657798767,
0.329861044883728,
-0.16112375259399414,
0.07239064574241638,
-0.13246701657772064,
-0.04745971038937569,
-0.13721303641796112,
-0.15520985424518585,
-0.08791951090097427,
-0.06725846230983734,
0.21290011703968048,
-0.3041413724422455,
-0.0716676265001297,
-0.28155019879341125,
0.28460121154785156,
0.1085599958896637,
-0.17373649775981903,
-0.11527816951274872,
0.1978372484445572,
0.1536778211593628,
-0.009852648712694645,
0.3255872130393982,
0.2880614697933197,
-0.10771197080612183,
0.4771922826766968,
-0.5032345056533813,
0.12474435567855835,
0.3944432735443115,
-0.18707406520843506,
-0.022914769127964973,
0.164642333984375,
0.2516719698905945,
0.4809967279434204,
-0.5691508054733276,
-0.6756883263587952,
0.01150781661272049,
-0.03850316256284714,
-0.19430190324783325,
-0.27860206365585327,
0.5799130797386169,
-0.4410836696624756,
-0.12323141098022461,
0.004528123885393143,
0.6662647724151611,
0.3753524422645569,
-0.11917345225811005,
0.33227625489234924,
-0.09271791577339172
] |
https://github.com/huggingface/datasets/issues/2012 | No upstream branch | What's the issue exactly ?
Given an `upstream` remote repository with url `https://github.com/huggingface/datasets.git`, you can totally rebase from `upstream/master`.
It's mentioned at the beginning how to add the `upstream` remote repository
https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L10-L14 | Feels like the documentation on adding a new dataset is outdated?
https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54
There is no upstream branch on remote. | 32 | No upstream branch
Feels like the documentation on adding a new dataset is outdated?
https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54
There is no upstream branch on remote.
What's the issue exactly ?
Given an `upstream` remote repository with url `https://github.com/huggingface/datasets.git`, you can totally rebase from `upstream/master`.
It's mentioned at the beginning how to add the `upstream` remote repository
https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L10-L14 | [
-0.0541967935860157,
-0.3429022431373596,
-0.07095758616924286,
-0.2234124094247818,
0.13222521543502808,
0.001415841281414032,
0.12123455107212067,
0.014974843710660934,
-0.43292510509490967,
0.16632819175720215,
0.010383832268416882,
-0.050456564873456955,
0.14463500678539276,
0.20273903012275696,
0.07673260569572449,
-0.06221272051334381,
0.21592344343662262,
-0.11128239333629608,
0.009495370090007782,
-0.387719988822937,
-0.09594652056694031,
0.04078587889671326,
0.05256952345371246,
-0.4642563462257385,
-0.04451519623398781,
0.09810338914394379,
-0.12982749938964844,
0.007910218089818954,
-0.4901854395866394,
-0.4163925349712372,
0.3651946187019348,
-0.03290502354502678,
-0.04298832267522812,
0.4762800931930542,
-0.00011294061550870538,
-0.015029791742563248,
0.3386002779006958,
0.005578707903623581,
-0.19534412026405334,
-0.25801676511764526,
-0.4318866729736328,
-0.4034751355648041,
-0.0033092608209699392,
0.22230973839759827,
-0.18756303191184998,
0.06526712328195572,
0.1741565614938736,
0.09764613211154938,
0.19493725895881653,
0.1445426046848297,
0.22383709251880646,
0.20493772625923157,
0.29051652550697327,
-0.40317586064338684,
0.13698738813400269,
0.3619071841239929,
-0.22849182784557343,
0.6680124402046204,
0.2545556426048279,
0.48735058307647705,
0.07013687491416931,
0.14298592507839203,
0.31439414620399475,
-0.1501745730638504,
0.2716188430786133,
0.0007992247119545937,
0.08263979852199554,
-0.19877074658870697,
0.003030620515346527,
0.19265705347061157,
0.6094886064529419,
0.12202686816453934,
-0.5760815143585205,
-0.15047086775302887,
-0.015856698155403137,
-0.29081958532333374,
0.006096705794334412,
0.15176548063755035,
-0.012705337256193161,
0.11869765818119049,
-0.27978700399398804,
-0.5576730370521545,
-0.17584115266799927,
0.3202892541885376,
0.21982908248901367,
0.28377360105514526,
-0.15869033336639404,
-0.05961168557405472,
0.11483457684516907,
0.15833497047424316,
-0.30492377281188965,
0.2595873773097992,
-0.1861926019191742,
0.04995501786470413,
0.0524858720600605,
-0.1112525537610054,
0.01737741380929947,
0.17934130132198334,
0.11479973047971725,
0.4388841986656189,
-0.20548757910728455,
-0.2199704945087433,
-0.23147828876972198,
0.07531048357486725,
0.21653103828430176,
0.07562178373336792,
-0.0312715545296669,
-0.07908642292022705,
0.19869768619537354,
0.06020769476890564,
0.35482093691825867,
-0.22590377926826477,
0.08186902105808258,
-0.04844805970788002,
-0.3386692404747009,
-0.1433107554912567,
0.22310863435268402,
-0.31687653064727783,
0.18777652084827423,
-0.2154598832130432,
-0.026035262271761894,
-0.010539975017309189,
-0.013222412206232548,
-0.029434219002723694,
0.011092504486441612,
-0.004999186843633652,
-0.19914023578166962,
0.23915855586528778,
-0.17272759974002838,
-0.09769068658351898,
-0.2451280802488327,
0.04718431085348129,
-0.3421873152256012,
-0.07749000936746597,
-0.01039821282029152,
-0.5276138782501221,
0.42983514070510864,
0.2547621428966522,
0.23932130634784698,
0.2254776656627655,
-0.4373151361942291,
0.1930023431777954,
-0.020710639655590057,
0.2717284560203552,
-0.02861756645143032,
-0.023809969425201416,
-0.09571501612663269,
0.0014507956802845001,
-0.06228429824113846,
-0.30666685104370117,
-0.23708829283714294,
-0.35356807708740234,
-0.3002384305000305,
0.16840790212154388,
-0.20777522027492523,
-0.08394239097833633,
-0.46133503317832947,
0.2800758481025696,
-0.2034396231174469,
-0.19496378302574158,
0.21607118844985962,
0.31176304817199707,
-0.15250186622142792,
-0.20192599296569824,
0.3219572603702545,
0.35677504539489746,
0.12601768970489502,
-0.2448609173297882,
-0.16716468334197998,
0.027001189067959785,
0.018594123423099518,
0.23176848888397217,
-0.19682158529758453,
0.0661112442612648,
-0.1416386514902115,
-0.31270503997802734,
0.10760826617479324,
-0.39017635583877563,
-0.21166054904460907,
0.17479120194911957,
-0.18288344144821167,
-0.21972815692424774,
-0.031187526881694794,
0.10896711051464081,
0.06284116208553314,
-0.12084515392780304,
-0.15215909481048584,
-0.026000455021858215,
-0.21952933073043823,
-0.31928378343582153,
-0.14810998737812042,
-0.13626337051391602,
-0.4844517707824707,
-0.0842958390712738,
0.0573403500020504,
0.1630789190530777,
0.354959100484848,
-0.0026099104434251785,
-0.13550618290901184,
0.08396744728088379,
0.09624865651130676,
0.40973538160324097,
0.6342185735702515,
0.2227146476507187,
-0.14829275012016296,
0.07104267179965973,
-0.419263631105423,
0.10083181411027908,
0.11693450808525085,
0.3873184621334076,
0.1521231085062027,
-0.08502316474914551,
-0.04435912147164345,
-0.19682317972183228,
-0.00048619136214256287,
-0.42589983344078064,
0.024492688477039337,
0.18848857283592224,
0.21385301649570465,
0.2234971970319748,
-0.2566770315170288,
0.09588359296321869,
-0.0294913649559021,
0.1528881937265396,
-0.6297127604484558,
0.10881082713603973,
-0.16648462414741516,
0.09394338726997375,
0.02371758222579956,
0.21249687671661377,
0.007032617926597595,
-0.277743399143219,
0.09662364423274994,
0.3237045705318451,
-0.2774694263935089,
0.2817155718803406,
0.36971980333328247,
0.1944119930267334,
0.3049989640712738,
-0.1333855539560318,
-0.09435007721185684,
-0.14497403800487518,
-0.08895399421453476,
0.19311979413032532,
-0.21828022599220276,
0.09466711431741714,
0.011094918474555016,
-0.0022163763642311096,
0.2311752885580063,
0.1143166646361351,
0.2847476899623871,
0.0765317976474762,
-0.05141735076904297,
-0.31942489743232727,
0.1716018170118332,
-0.022641826421022415,
0.24450288712978363,
-0.0863724946975708,
-0.16928622126579285,
0.29994267225265503,
0.11817766726016998,
-0.1917346566915512,
-0.25045648217201233,
0.21264442801475525,
0.0553065687417984,
-0.034940656274557114,
0.15094171464443207,
0.3782608211040497,
0.2094811052083969,
0.314018189907074,
0.2590819299221039,
0.20574045181274414,
0.22975528240203857,
-0.27714914083480835,
0.033285051584243774,
-0.013365708291530609,
-0.09763555228710175,
0.010200198739767075,
0.2610311210155487,
0.08931555598974228,
-0.2038082778453827,
0.26173433661460876,
-0.10532520711421967,
0.2662077248096466,
0.039454128593206406,
0.13917845487594604,
-0.2544880211353302,
-0.19878068566322327,
-0.2773374021053314,
-0.42563962936401367,
-0.4906125068664551,
-0.2860663831233978,
0.05033303052186966,
0.22274616360664368,
0.0436122752726078,
0.04816631227731705,
0.1802770495414734,
0.06527458131313324,
-0.37731486558914185,
0.07415375858545303,
-0.022974785417318344,
-0.27169594168663025,
-0.09496385604143143,
0.12811386585235596,
0.059343889355659485,
-0.11305549740791321,
0.5370506048202515,
-0.3216629922389984,
-0.01481216587126255,
-0.5511786937713623,
-0.7157527804374695,
0.1464819312095642,
-0.18880970776081085,
0.23675666749477386,
0.3718583285808563,
-0.0906207412481308,
-0.05355602502822876,
-0.1214696392416954,
0.13720105588436127,
-0.37952813506126404,
-0.2920965552330017,
-0.23721469938755035,
-0.18623162806034088,
-0.054914843291044235,
-0.16971881687641144,
-0.5078217387199402,
0.0070134494453668594,
-0.31144893169403076,
0.6385703682899475,
-0.16541224718093872,
-0.05978113412857056,
0.33904924988746643,
0.05032858997583389,
-0.12827499210834503,
-0.23004406690597534,
0.07834286242723465,
-0.10047970712184906,
-0.3781203627586365,
0.12602832913398743,
-0.30466610193252563,
-0.3719867169857025,
0.3863864541053772,
0.13932637870311737,
0.4151360094547272,
-0.10586635768413544,
-0.5360225439071655,
0.08737257122993469,
-0.13371579349040985,
0.12597262859344482,
0.2594906687736511,
0.3358607292175293,
0.4246498942375183,
-0.2974682152271271,
-0.09980673342943192,
-0.1367078274488449,
-0.19377827644348145,
0.02557041496038437,
0.029075227677822113,
0.3333815634250641,
-0.13513073325157166,
0.6006178259849548,
-0.04990723729133606,
0.6402547359466553,
-0.09828032553195953,
-0.015474896878004074,
0.11437399685382843,
-0.14939187467098236,
0.6323479413986206,
-0.3316774070262909,
-0.3233624994754791,
0.136496439576149,
0.03455204516649246,
0.0068870969116687775,
0.1125791147351265,
0.4248797595500946,
0.09232474118471146,
-0.24681209027767181,
-0.3051478862762451,
-0.10026411712169647,
-0.14601224660873413,
-0.15580792725086212,
-0.1389607936143875,
0.02733808383345604,
0.15673738718032837,
-0.16993683576583862,
-0.12946482002735138,
0.059499092400074005,
-0.1904827058315277,
0.49836063385009766,
0.3119199573993683,
0.17629598081111908,
-0.11391644179821014,
-0.02002374827861786,
-0.328776478767395,
0.022379852831363678,
0.1333620250225067,
0.11101523041725159,
-0.09896592795848846,
0.022777095437049866,
0.06395044177770615,
0.00451908353716135,
0.08216860890388489,
-0.268412709236145,
-0.08768686652183533,
-0.17555342614650726,
-0.39736807346343994,
-0.07347455620765686,
0.07618795335292816,
0.12946513295173645,
0.2193845510482788,
0.5229237079620361,
0.19187769293785095,
-0.4371405839920044,
-0.24947096407413483,
0.452858567237854,
-0.1036301776766777,
0.024237852543592453,
0.077480249106884,
-0.3639131188392639,
-0.19278177618980408,
-0.14176711440086365,
-0.15612754225730896,
-0.14998216927051544,
-0.24233008921146393,
0.20023909211158752,
0.20974098145961761,
0.08045516908168793,
0.13073119521141052,
-0.02185773104429245,
-0.11008645594120026,
-0.07818979024887085,
0.1754276305437088,
0.105926513671875,
0.1379510909318924,
0.28651514649391174,
0.5018666386604309,
0.6798104643821716,
-0.1456863433122635,
-0.0953032374382019,
0.1463414430618286,
-0.1023482233285904,
0.3624456226825714,
0.25340816378593445,
0.30156370997428894,
0.3917582333087921,
0.38399314880371094,
0.04691673070192337,
-0.1379912793636322,
0.036847274750471115,
0.19822348654270172,
0.0981239303946495,
-0.15254873037338257,
-0.5134531259536743,
0.34817636013031006,
-0.24560511112213135,
0.10516759753227234,
0.25611668825149536,
0.6245747804641724,
0.1192331537604332,
-0.1702457219362259,
-0.13791272044181824,
0.744983971118927,
0.2711578607559204,
0.18395128846168518,
0.2813597321510315,
-0.20679835975170135,
0.6587558388710022,
-0.025255614891648293,
0.12059988081455231,
0.019294817000627518,
0.14907188713550568,
-0.027702011168003082,
-0.03830517828464508,
-0.16777068376541138,
-0.3307247757911682,
0.14689502120018005,
0.33339595794677734,
0.20542000234127045,
0.8445016741752625,
0.15784932672977448,
0.2077127993106842,
0.10237980633974075,
0.10105820000171661,
-0.32590657472610474,
0.17629612982273102,
0.10654407739639282,
0.16276487708091736,
-0.21117499470710754,
-0.35453641414642334,
-0.25338855385780334,
-0.2073822170495987,
-0.2653511166572571,
-0.1439160853624344,
0.15213339030742645,
0.15104536712169647,
0.1530211865901947,
-0.404455304145813,
0.1483871340751648,
-0.11247758567333221,
0.615048348903656,
0.0065367817878723145,
-0.40307366847991943,
0.08431538194417953,
-0.08268777281045914,
-0.25172948837280273,
-0.03606637194752693,
0.03238857537508011,
0.044734276831150055,
-0.23641544580459595,
-0.30173617601394653,
-0.1546248197555542,
-0.029462255537509918,
-0.6098446846008301,
-0.1334957331418991,
0.0929759070277214,
-0.4606902599334717,
0.0419834665954113,
0.1105692982673645,
0.3218735456466675,
-0.06633520126342773,
-0.2480003833770752,
0.09487946331501007,
0.03474559262394905,
-0.15560856461524963,
-0.4615314304828644,
0.27265018224716187,
-0.09906526654958725,
-0.3219062387943268,
0.43356695771217346,
-0.09013301879167557,
-0.19812051951885223,
0.03504396975040436,
0.11761303246021271,
-0.17521584033966064,
-0.07870306074619293,
-0.25997138023376465,
0.41981562972068787,
-0.6655980944633484,
-0.07201991975307465,
-0.06026637926697731,
0.14047347009181976,
0.26961278915405273,
0.020142771303653717,
0.193198561668396,
-0.15549060702323914,
-0.03990519046783447,
-0.06577633321285248,
-0.4366455078125,
0.40043312311172485,
-0.43240728974342346,
-0.029674988240003586,
-0.03450998663902283,
-0.026264816522598267,
0.2608999013900757,
0.09949100017547607,
-0.3136250376701355,
0.10218404978513718,
0.07107769697904587,
0.1782091110944748,
0.12318473309278488,
-0.18918243050575256,
0.36617109179496765,
-0.3087966740131378,
-0.015416910871863365,
-0.2810230851173401,
-0.3800630569458008,
-0.11211226880550385,
-0.07063253223896027,
0.10568319261074066,
-0.03886352479457855,
0.0025967650581151247,
-0.010811704210937023,
0.026266973465681076,
-0.26353129744529724,
0.06493768095970154,
0.15439990162849426,
0.20396125316619873,
0.04494627192616463,
-0.08050220459699631,
0.21328173577785492,
0.16361765563488007,
0.002413678914308548,
-0.015584845095872879,
0.2798173427581787,
0.24353164434432983,
-0.01163842435926199,
-0.05799419432878494,
-0.12433551996946335,
-0.06052573025226593,
-0.04427807033061981,
0.1273370385169983,
-0.009481973946094513,
0.03604269400238991,
0.2648443281650543,
-0.018352322280406952,
0.20347483456134796,
-0.1404738873243332,
0.4461749196052551,
-0.040963634848594666,
0.22878684103488922,
0.2913948595523834,
0.11612679809331894,
0.10036200284957886,
-0.15217015147209167,
-0.012298098765313625,
0.13284510374069214,
0.17957668006420135,
0.11246742308139801,
0.3269709646701813,
0.5192693471908569,
-0.08695128560066223,
0.14754347503185272,
0.25718429684638977,
-0.013118126429617405,
-0.02532932534813881,
0.33260899782180786,
0.39512041211128235,
0.09557889401912689,
0.10726113617420197,
0.09866844117641449,
0.21870744228363037,
0.10122936964035034,
0.041524335741996765,
-0.09902428835630417,
0.2544950544834137,
0.008600277826189995,
-0.05340248718857765,
0.21186673641204834,
-0.07292243838310242,
-0.1415673792362213,
0.08910451084375381,
0.39635878801345825,
-0.11694342643022537,
-0.0006471723318099976,
0.4232810437679291,
0.08123169839382172,
-0.1144537478685379,
-0.12308184057474136,
0.2472333163022995,
0.053145185112953186,
-0.10366848111152649,
-0.1387121081352234,
-0.06996649503707886,
0.022377468645572662,
0.03096872940659523,
0.0588696151971817,
-0.19248582422733307,
0.23924267292022705,
-0.04614406079053879,
-0.11773744225502014,
-0.12225587666034698,
0.0664886012673378,
-0.020142540335655212,
0.2105911374092102,
0.11616018414497375,
0.262784481048584,
0.33097174763679504,
-0.3042774796485901,
0.15126432478427887,
0.44037488102912903,
0.34462282061576843,
0.07839855551719666,
0.30080968141555786,
0.24245956540107727,
0.10010963678359985,
-0.10459836572408676,
0.028108686208724976,
0.4148680865764618,
-0.038737952709198,
0.11914250254631042,
-0.09586308896541595,
0.16890619695186615,
-0.08975598216056824,
0.5723362565040588,
-0.16235588490962982,
0.11403492093086243,
-0.0797848254442215,
0.4220881760120392,
-0.131137877702713,
0.03504832088947296,
-0.2059662789106369,
0.3387073874473572,
-0.3323360085487366,
0.13307029008865356,
0.11888821423053741,
-0.005439711734652519,
-0.10032439976930618,
-0.08442127704620361,
0.10774539411067963,
0.15677319467067719,
0.46331143379211426,
0.5227732062339783,
0.09737162292003632,
-0.01215862762182951,
-0.3283228278160095,
-0.35304319858551025,
-0.08914528042078018,
-0.15847767889499664,
0.168724924325943,
-0.10218512266874313,
0.15347930788993835,
0.11909805238246918,
0.046624213457107544,
0.1040748655796051,
-0.12263184040784836,
-0.08314540237188339,
-0.10036395490169525,
-0.019765455275774002,
-0.14047716557979584,
-0.028627149760723114,
-0.07371559739112854,
0.04570041596889496,
0.21245482563972473,
0.07544632256031036,
-0.13547508418560028,
0.044820286333560944,
0.2117481380701065,
0.34827500581741333,
-0.03739439696073532,
-0.12364324927330017,
-0.16073864698410034,
0.10377611964941025,
0.18004834651947021,
-0.12061726301908493,
-0.510187566280365,
-0.4385744333267212,
-0.23091937601566315,
-0.2537137269973755,
0.3338180184364319,
-0.2255728542804718,
0.4225817918777466,
-0.26488545536994934,
-0.23863111436367035,
-0.3333466649055481,
0.17119428515434265,
0.1513843983411789,
0.010809681378304958,
-0.26211899518966675,
0.23013345897197723,
-0.1468750387430191,
-0.021789029240608215,
0.2312791496515274,
0.1507333666086197,
-0.099286288022995,
-0.027318675071001053,
-0.397413432598114,
-0.13343872129917145,
0.5408660173416138,
-0.36372876167297363,
0.29085856676101685,
-0.11502522975206375,
0.03396136313676834,
0.6897444725036621,
-0.2622004449367523,
-0.7218093872070312,
0.11651679128408432,
0.11827023327350616,
0.15737351775169373,
-0.22578752040863037,
0.3257893919944763,
-0.22512999176979065,
-0.31657686829566956,
0.017838962376117706,
0.45716962218284607,
0.1328650563955307,
-0.31726694107055664,
0.1752414107322693,
-0.14566025137901306
] |
https://github.com/huggingface/datasets/issues/2012 | No upstream branch | ~~What difference is there with the default `origin` remote that is set when you clone the repo?~~ I've just understood that this applies to **forks** of the repo 🤡 | Feels like the documentation on adding a new dataset is outdated?
https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54
There is no upstream branch on remote. | 29 | No upstream branch
Feels like the documentation on adding a new dataset is outdated?
https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54
There is no upstream branch on remote.
~~What difference is there with the default `origin` remote that is set when you clone the repo?~~ I've just understood that this applies to **forks** of the repo 🤡 | [
-0.15264344215393066,
-0.39081838726997375,
-0.05686827003955841,
-0.38039642572402954,
-0.05352788418531418,
-0.12343929708003998,
0.31518101692199707,
-0.0022337809205055237,
-0.35390618443489075,
0.2694295048713684,
-0.009293590672314167,
-0.04662815481424332,
0.39551278948783875,
0.23512671887874603,
0.24673837423324585,
-0.06801869720220566,
0.3274162709712982,
-0.19039788842201233,
0.2409149706363678,
-0.7290987372398376,
-0.21803654730319977,
-0.04928115755319595,
0.12126365303993225,
-0.20999930799007416,
-0.1465396136045456,
0.23080787062644958,
0.048276081681251526,
0.18149077892303467,
-0.29021742939949036,
-0.3672443628311157,
0.4538207948207855,
0.061785738915205,
0.015986111015081406,
0.453630268573761,
-0.00012143701314926147,
-0.035286568105220795,
0.42747724056243896,
0.03579650819301605,
-0.261027991771698,
-0.15297497808933258,
-0.594043493270874,
-0.23140381276607513,
0.007118226028978825,
0.07150844484567642,
-0.029064815491437912,
0.18049456179141998,
0.2290717214345932,
-0.11033886671066284,
0.04691609740257263,
0.12953366339206696,
0.14207787811756134,
0.19139759242534637,
0.036215800791978836,
-0.37785273790359497,
0.28212571144104004,
0.4759957790374756,
-0.22669310867786407,
0.8752221465110779,
0.241710364818573,
0.5030213594436646,
0.1716815084218979,
-0.06528148055076599,
0.1075374186038971,
0.04306645691394806,
-0.037370793521404266,
0.10297316312789917,
0.17499957978725433,
-0.15494462847709656,
0.1622280478477478,
0.43015605211257935,
0.7702750563621521,
0.23607134819030762,
-0.4754006266593933,
0.021269313991069794,
-0.012533935718238354,
-0.3896007835865021,
-0.059369929134845734,
0.3834998309612274,
0.06466397643089294,
0.09514990448951721,
-0.19794172048568726,
-0.3189466595649719,
-0.3143388032913208,
0.2806486189365387,
-0.06581812351942062,
0.4146604537963867,
-0.13668915629386902,
0.08400163054466248,
-0.025212910026311874,
0.2557758688926697,
-0.16606377065181732,
0.0732252299785614,
-0.21529453992843628,
-0.11906653642654419,
0.015089668333530426,
-0.1759965717792511,
0.08977904170751572,
0.08729252219200134,
0.07181195914745331,
0.5886422991752625,
-0.3382132947444916,
-0.12449020892381668,
-0.2546328902244568,
0.0834154561161995,
0.16287796199321747,
-0.004964948631823063,
0.06894025206565857,
0.12332340329885483,
0.34343910217285156,
-0.1844356656074524,
0.31327584385871887,
-0.15800845623016357,
0.06242644786834717,
0.14616592228412628,
-0.2167903035879135,
-0.15689191222190857,
0.34826165437698364,
-0.4060584008693695,
0.22223728895187378,
-0.1124550998210907,
-0.1276998668909073,
-0.2261943519115448,
-0.17691078782081604,
-0.0030163973569869995,
0.0541892945766449,
0.14218944311141968,
-0.47687506675720215,
0.28589946031570435,
-0.18103472888469696,
-0.16085706651210785,
-0.2593807876110077,
-0.10990069806575775,
-0.1611194908618927,
-0.03405051678419113,
-0.05750454589724541,
-0.44123756885528564,
0.49181419610977173,
0.15357241034507751,
0.2645319402217865,
0.36898770928382874,
-0.11725927144289017,
0.055230747908353806,
0.09563164412975311,
0.3831588327884674,
-0.1271001398563385,
0.03212682157754898,
-0.11346033215522766,
0.10482712090015411,
-0.1427420973777771,
-0.026944339275360107,
-0.19899728894233704,
-0.4819033145904541,
-0.22531215846538544,
0.09541695564985275,
-0.282834529876709,
-0.20538769662380219,
-0.6288793087005615,
0.14895829558372498,
-0.3456098139286041,
-0.06654410064220428,
0.33761775493621826,
0.15094147622585297,
-0.014386620372533798,
-0.17804034054279327,
0.09571657329797745,
0.40868842601776123,
-0.016841957345604897,
-0.29625535011291504,
-0.12484871596097946,
-0.19757790863513947,
-0.017399169504642487,
0.20926298201084137,
-0.3593129515647888,
-0.04579358547925949,
0.053810782730579376,
-0.09897401183843613,
0.04497459530830383,
-0.4179220497608185,
-0.15437375009059906,
0.09062046557664871,
-0.23688694834709167,
-0.23999685049057007,
0.03985389322042465,
0.08183994889259338,
0.20990382134914398,
-0.15547390282154083,
-0.17643320560455322,
0.03916887938976288,
-0.21719716489315033,
-0.22060857713222504,
-0.17835457623004913,
-0.04829308018088341,
-0.3847339153289795,
0.11118824779987335,
0.014252129942178726,
0.11735175549983978,
0.31903600692749023,
-0.13957981765270233,
-0.23488467931747437,
0.062280572950839996,
-0.1315765678882599,
0.18529076874256134,
0.7095391154289246,
-0.05903199315071106,
-0.10038135945796967,
0.22342324256896973,
-0.5277837514877319,
0.1685791313648224,
0.19478531181812286,
0.25247281789779663,
0.3422008156776428,
-0.009450649842619896,
0.07559651136398315,
-0.08663097769021988,
-0.18108609318733215,
-0.16496096551418304,
-0.08941973000764847,
0.246516615152359,
0.2977789044380188,
0.1671324223279953,
-0.5274186730384827,
0.00905996561050415,
-0.22399921715259552,
0.15252991020679474,
-0.46466994285583496,
0.2709392011165619,
-0.04080531746149063,
0.14901453256607056,
-0.24671818315982819,
0.01174188032746315,
-0.07814138382673264,
-0.26708507537841797,
0.04793013632297516,
0.27139830589294434,
-0.18042990565299988,
0.4189496636390686,
0.48512905836105347,
0.2931007146835327,
0.3441978991031647,
-0.2479107677936554,
0.1567436307668686,
-0.04401322081685066,
-0.11114941537380219,
0.19807100296020508,
-0.26919013261795044,
0.09703599661588669,
0.18096177279949188,
-0.031429700553417206,
0.1452764868736267,
-0.11582755297422409,
0.2320694923400879,
0.015004318207502365,
-0.10417624562978745,
-0.3393949866294861,
0.05190434679389,
0.21700799465179443,
0.28672897815704346,
-0.0579628050327301,
-0.15934038162231445,
0.38181546330451965,
0.09627889841794968,
-0.5721608400344849,
-0.2647395133972168,
0.2277708351612091,
0.09363879263401031,
-0.20304200053215027,
0.1316748857498169,
0.5656303763389587,
0.3525888919830322,
0.17179974913597107,
0.273319810628891,
0.19779571890830994,
0.09862793236970901,
-0.48010048270225525,
0.18986162543296814,
-0.016746632754802704,
-0.12675048410892487,
-0.00970412790775299,
0.16980291903018951,
-0.01992718130350113,
-0.15595510601997375,
0.061297159641981125,
0.09829621016979218,
0.21831446886062622,
0.12693552672863007,
0.09658912569284439,
-0.36883407831192017,
-0.17662662267684937,
-0.3448287844657898,
-0.29508206248283386,
-0.5318111777305603,
-0.3349751830101013,
-0.019853990525007248,
0.01832127757370472,
-0.09651181101799011,
-0.08179034292697906,
0.17705285549163818,
0.17092598974704742,
-0.41755321621894836,
0.03437374532222748,
-0.03046487085521221,
-0.3974834084510803,
-0.10179226845502853,
0.03605444356799126,
-0.1647346466779709,
-0.0609872005879879,
0.5170278549194336,
-0.4658834636211395,
-0.1691502034664154,
-0.40353065729141235,
-0.5375564098358154,
0.12568865716457367,
0.059817835688591,
0.18794162571430206,
0.1697302758693695,
0.18999338150024414,
0.08905944228172302,
0.031588438898324966,
0.16395646333694458,
-0.23397274315357208,
-0.22964492440223694,
-0.2627096474170685,
-0.23791860044002533,
-0.11413946002721786,
-0.004667732864618301,
-0.40126845240592957,
-0.1181752160191536,
-0.20072054862976074,
0.46426820755004883,
-0.17804794013500214,
0.03797607868909836,
0.20096814632415771,
-0.16171807050704956,
-0.06569451093673706,
-0.25491073727607727,
0.0839424654841423,
-0.14407554268836975,
-0.5398852229118347,
0.055048707872629166,
-0.21482209861278534,
-0.10057839751243591,
0.30102619528770447,
0.054575853049755096,
0.28007200360298157,
0.047706954181194305,
-0.528268039226532,
-0.010066313669085503,
-0.16903647780418396,
0.3068682551383972,
0.5019595623016357,
0.3753702938556671,
0.567735493183136,
-0.4530453085899353,
-0.007560165598988533,
0.014790929853916168,
-0.3003119230270386,
0.0370483435690403,
0.20826053619384766,
0.1650037169456482,
-0.048484668135643005,
0.4850200414657593,
-0.27237412333488464,
0.7536585927009583,
-0.1300552785396576,
0.08229963481426239,
-0.040413983166217804,
0.008437857031822205,
0.5139192938804626,
-0.4079750180244446,
-0.08114136755466461,
0.23014678061008453,
0.12414276599884033,
-0.06543249636888504,
0.02566717565059662,
0.33373236656188965,
-0.020179318264126778,
-0.17287768423557281,
-0.5013914108276367,
0.0714673325419426,
-0.11272935569286346,
-0.06972213089466095,
-0.06874662637710571,
0.12833157181739807,
0.15902939438819885,
-0.1638227105140686,
-0.07393567264080048,
0.0784243792295456,
-0.270179808139801,
0.44936156272888184,
0.19998058676719666,
-0.00804873462766409,
-0.5328279137611389,
-0.1079104095697403,
-0.1444193422794342,
0.08932223916053772,
0.12601523101329803,
-0.001505320891737938,
-0.007839102298021317,
-0.16758540272712708,
0.12764866650104523,
-0.05046582594513893,
0.017727158963680267,
-0.30455678701400757,
-0.10777950286865234,
-0.21224041283130646,
-0.4268774688243866,
-0.005508776754140854,
-0.12259627878665924,
0.05506254360079765,
0.15360288321971893,
0.42212894558906555,
0.20559793710708618,
-0.29682525992393494,
-0.2599087059497833,
0.47033312916755676,
0.09194744378328323,
-0.0268703605979681,
0.164960116147995,
-0.33719104528427124,
-0.01620468497276306,
-0.11416871845722198,
-0.048230238258838654,
-0.3885558843612671,
-0.345027893781662,
-0.011360367760062218,
0.298324853181839,
0.02682618983089924,
0.13255897164344788,
-0.23469404876232147,
0.08127070963382721,
-0.18783321976661682,
-0.003468126291409135,
0.048365283757448196,
0.22606104612350464,
0.16477900743484497,
0.5362101197242737,
0.6573822498321533,
-0.18387292325496674,
-0.2224896252155304,
0.06368546187877655,
-0.06942207366228104,
0.20161713659763336,
0.4448976218700409,
0.42416810989379883,
0.2504865229129791,
0.30988940596580505,
-0.04997311532497406,
0.05369007587432861,
-0.025445565581321716,
0.07952429354190826,
0.12705278396606445,
-0.2192239761352539,
-0.3969986140727997,
0.4532271921634674,
-0.24843570590019226,
0.030803285539150238,
0.26473143696784973,
0.6452975273132324,
0.23090700805187225,
-0.161471426486969,
-0.10408831387758255,
0.8261783123016357,
0.41811734437942505,
0.25132980942726135,
0.3437063694000244,
-0.2981662154197693,
0.43822503089904785,
-0.009353186935186386,
0.006492920219898224,
-0.05544591322541237,
0.17792505025863647,
-0.018634960055351257,
-0.10227935016155243,
-0.07570082694292068,
-0.14650410413742065,
0.28459858894348145,
0.18538451194763184,
0.07161830365657806,
0.7963961958885193,
0.1774628907442093,
0.13132044672966003,
0.29254987835884094,
0.14267058670520782,
-0.20624181628227234,
0.07739484310150146,
-0.07846403121948242,
0.14662620425224304,
-0.15340960025787354,
-0.11972539126873016,
-0.17705406248569489,
-0.16678889095783234,
-0.2664332985877991,
-0.054640032351017,
0.3031914234161377,
0.011773903854191303,
0.29715046286582947,
-0.5078317523002625,
-0.12068140506744385,
-0.24579071998596191,
0.6949747204780579,
-0.0030184686183929443,
-0.13073799014091492,
0.07456298172473907,
0.13535046577453613,
-0.021277526393532753,
0.2675533890724182,
-0.11569163203239441,
0.013835618272423744,
-0.2264949083328247,
-0.5466221570968628,
-0.060536257922649384,
-0.05394335836172104,
-0.5696591138839722,
-0.15813957154750824,
0.019940804690122604,
-0.3625675439834595,
0.02652839757502079,
0.052578818053007126,
0.45463499426841736,
-0.031011728569865227,
-0.1170663833618164,
0.02292628027498722,
0.11071497201919556,
-0.10566740483045578,
-0.3512170910835266,
0.051778994500637054,
-0.15263089537620544,
-0.3998308777809143,
0.3213108777999878,
-0.03648339956998825,
-0.22095394134521484,
0.026541605591773987,
-0.08006738126277924,
-0.13108983635902405,
-0.08112843334674835,
0.04517393559217453,
0.36838775873184204,
-0.7441096305847168,
0.06386285275220871,
-0.17490161955356598,
0.011659562587738037,
0.2676512897014618,
-0.015374753624200821,
0.00991227850317955,
0.05287956818938255,
-0.15580855309963226,
-0.012355722486972809,
-0.1575997918844223,
0.23365318775177002,
-0.36435580253601074,
0.09062131494283676,
0.1775607466697693,
-0.30763620138168335,
0.1613840013742447,
-0.06238284707069397,
-0.2264402210712433,
0.13885463774204254,
0.0980687215924263,
0.2257530391216278,
0.14071029424667358,
-0.09131383150815964,
0.26901328563690186,
-0.3536028563976288,
-0.026734402403235435,
-0.39609646797180176,
-0.2725749611854553,
-0.11628281325101852,
-0.22291460633277893,
0.18967118859291077,
-0.09104788303375244,
-0.256300687789917,
0.10808122158050537,
-0.14171861112117767,
-0.13777706027030945,
0.2155238538980484,
0.21886640787124634,
0.21756789088249207,
0.06444641947746277,
0.014908979646861553,
0.22432413697242737,
0.03606073558330536,
-0.15619540214538574,
0.1475900113582611,
0.2517768144607544,
0.33750635385513306,
-0.027280248701572418,
0.09079696983098984,
-0.1516243815422058,
-0.15144112706184387,
-0.2205790877342224,
0.13331487774848938,
-0.13220790028572083,
0.16088706254959106,
0.16465288400650024,
-0.018042519688606262,
0.21006926894187927,
-0.2077443152666092,
0.23657122254371643,
0.10066363960504532,
0.0847126692533493,
0.0704977884888649,
0.1816996932029724,
0.11102773994207382,
-0.021497387439012527,
-0.1847313940525055,
0.37531477212905884,
0.2301630675792694,
0.04689657315611839,
0.3382747769355774,
0.42785030603408813,
0.010820195078849792,
0.46043962240219116,
0.18214750289916992,
0.07763125747442245,
-0.08835511654615402,
0.6449822187423706,
0.5471997261047363,
0.02609185501933098,
0.2726806104183197,
0.017038948833942413,
0.22921045124530792,
0.007151596248149872,
-0.028005488216876984,
-0.0036746934056282043,
0.15947645902633667,
0.23487940430641174,
0.002236459404230118,
0.3667225241661072,
-0.02727767825126648,
-0.05358368530869484,
-0.0611049085855484,
0.10473518073558807,
-0.1418786644935608,
0.2086801826953888,
0.2416004240512848,
-0.010176959447562695,
-0.08555889129638672,
-0.2205314040184021,
0.17176911234855652,
0.012413343414664268,
-0.20534127950668335,
-0.36896127462387085,
0.05457703024148941,
0.20006123185157776,
0.2004278153181076,
-0.1807764619588852,
-0.20271344482898712,
0.17073076963424683,
0.06113290786743164,
-0.10067875683307648,
-0.04210646450519562,
0.26874592900276184,
-0.23983797430992126,
0.10682780295610428,
0.26228004693984985,
0.22688157856464386,
0.43461287021636963,
-0.32862213253974915,
0.2640407979488373,
0.495701402425766,
0.17932340502738953,
0.031548723578453064,
0.33716678619384766,
0.3460943102836609,
0.3019025921821594,
-0.1499713808298111,
0.19911248981952667,
0.20722967386245728,
0.04449843615293503,
0.1712992638349533,
-0.13475072383880615,
0.14570379257202148,
0.016122445464134216,
0.5959377288818359,
-0.048444245010614395,
0.04926775395870209,
-0.11223249137401581,
0.4181310534477234,
-0.05450275540351868,
0.11221428960561752,
-0.23903661966323853,
0.39245083928108215,
-0.29747775197029114,
0.2598186135292053,
0.11903287470340729,
0.03626422956585884,
-0.23353499174118042,
-0.053440485149621964,
0.04907132685184479,
0.011198874562978745,
0.5582708120346069,
0.45552122592926025,
0.08614486455917358,
-0.042880598455667496,
-0.1485631763935089,
0.009703919291496277,
-0.004738472402095795,
-0.22314882278442383,
0.08955539762973785,
-0.16045160591602325,
0.07507536560297012,
0.09480030834674835,
0.2105298936367035,
-0.03509640693664551,
-0.12062763422727585,
-0.14631566405296326,
0.09929127991199493,
0.1164449155330658,
-0.21360640227794647,
0.03449210524559021,
-0.006905967369675636,
-0.17136605083942413,
0.04824712872505188,
0.09963716566562653,
0.056716736406087875,
-0.1007903665304184,
0.17011970281600952,
0.1625000238418579,
0.14794836938381195,
-0.18199457228183746,
-0.22395804524421692,
0.1941973716020584,
0.18531513214111328,
0.13809403777122498,
-0.3846302330493927,
-0.25086361169815063,
-0.1912682205438614,
-0.41256213188171387,
0.20450130105018616,
-0.213657945394516,
0.3190739154815674,
-0.08831667900085449,
-0.12721045315265656,
-0.16039647161960602,
0.04909370094537735,
0.07885849475860596,
0.20514823496341705,
-0.11128997802734375,
-0.016522813588380814,
-0.07589330524206161,
-0.35863012075424194,
0.2597528398036957,
0.031591854989528656,
0.014924462884664536,
-0.1502951681613922,
-0.3193620443344116,
0.07434666901826859,
0.41093960404396057,
-0.3343660235404968,
0.3913281261920929,
-0.33472052216529846,
0.027335286140441895,
0.5880268812179565,
-0.15753670036792755,
-0.4989510476589203,
0.17429351806640625,
0.19005544483661652,
-0.17720258235931396,
-0.3052076995372772,
0.37346401810646057,
-0.03306788206100464,
-0.3052961826324463,
-0.009174022823572159,
0.4189300537109375,
0.13555780053138733,
-0.4480024576187134,
0.01812540739774704,
-0.06387598812580109
] |
https://github.com/huggingface/datasets/issues/2010 | Local testing fails | I'm not able to reproduce on my side.
Can you provide the full stacktrace please ?
What version of `python` and `dill` do you have ? Which OS are you using ? | I'm following the CI setup as described in
https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19
in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4
and getting
```
FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes)
1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04)
```
Seems like a discrepancy with CI, perhaps a lib version that's not controlled?
Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}` | 32 | Local testing fails
I'm following the CI setup as described in
https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19
in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4
and getting
```
FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes)
1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04)
```
Seems like a discrepancy with CI, perhaps a lib version that's not controlled?
Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}`
I'm not able to reproduce on my side.
Can you provide the full stacktrace please ?
What version of `python` and `dill` do you have ? Which OS are you using ? | [
-0.15660013258457184,
0.0945402979850769,
0.0029505249112844467,
0.051976095885038376,
-0.13645070791244507,
-0.25910916924476624,
0.40860190987586975,
0.22406519949436188,
-0.10595893859863281,
0.2676888704299927,
-0.005887068808078766,
0.07883350551128387,
-0.1537659764289856,
0.5032166838645935,
-0.23508329689502716,
0.1064348816871643,
0.029259130358695984,
0.15190769731998444,
-0.2006688416004181,
0.07912081480026245,
-0.037602223455905914,
0.2799375653266907,
-0.226581871509552,
-0.04477708041667938,
-0.3562321066856384,
-0.034193336963653564,
-0.21877890825271606,
0.18961787223815918,
-0.1608963906764984,
-0.32544735074043274,
0.6411885619163513,
0.032476961612701416,
0.027730170637369156,
0.7641417980194092,
-0.00012871311628259718,
0.03934720903635025,
0.4674038290977478,
-0.1851537674665451,
-0.3570638597011566,
-0.2890089154243469,
0.35207635164260864,
-0.07479529082775116,
0.4789137840270996,
-0.12173061072826385,
-0.05356945842504501,
0.3681686818599701,
-0.35716712474823,
-0.28292351961135864,
0.3377824127674103,
0.2963617146015167,
0.08195777982473373,
0.5929403305053711,
-0.1577761471271515,
-0.0510140061378479,
-0.09359709173440933,
0.6183968186378479,
-0.28038719296455383,
0.6484383940696716,
0.4351874887943268,
-0.15342704951763153,
-0.11851032823324203,
-0.08087071776390076,
0.11256170272827148,
0.10811203718185425,
-0.12653997540473938,
0.04911693558096886,
-0.12125831097364426,
-0.28176772594451904,
0.188283771276474,
-0.04349629580974579,
0.427869588136673,
-0.3348487317562103,
-0.36693495512008667,
0.29185932874679565,
-0.13226599991321564,
-0.3039437532424927,
0.43144702911376953,
-0.09469731152057648,
-0.47974905371665955,
0.24646171927452087,
-0.5746463537216187,
0.18038125336170197,
-0.09598458558320999,
0.1889844834804535,
-0.3290426433086395,
0.013923928141593933,
-0.0037794196978211403,
0.0756976306438446,
-0.08330991864204407,
-0.07591919600963593,
0.07755059003829956,
0.21807515621185303,
0.11248981952667236,
0.21054707467556,
0.01920393481850624,
-0.18259553611278534,
0.004288896918296814,
0.266610324382782,
0.24720537662506104,
0.42406243085861206,
-0.18247708678245544,
-0.12257500737905502,
0.09414778649806976,
0.1986430585384369,
0.029792791232466698,
0.4149530231952667,
0.1767909824848175,
0.32871726155281067,
0.44727379083633423,
-0.03142765909433365,
-0.034934137016534805,
0.21398058533668518,
0.27012693881988525,
-0.219471737742424,
0.08743233978748322,
-0.059967778623104095,
0.12365597486495972,
-0.48844608664512634,
-0.24302023649215698,
0.3342882990837097,
-0.22558411955833435,
0.013031421229243279,
0.29213792085647583,
0.23757362365722656,
0.08711177855730057,
0.19623783230781555,
0.16213729977607727,
0.407970130443573,
-0.11785919219255447,
0.3706067204475403,
-0.10396282374858856,
-0.11246402561664581,
-0.13226033747196198,
0.19034312665462494,
0.5385658144950867,
-0.04718005284667015,
0.4167152941226959,
-0.007027785759419203,
0.5418521165847778,
-0.0736423134803772,
0.030018432065844536,
-0.022493451833724976,
0.1987534463405609,
0.5158858895301819,
-0.23142528533935547,
-0.04309478774666786,
0.2318384051322937,
-0.16801537573337555,
-0.29344797134399414,
0.1876365840435028,
-0.03655348718166351,
-0.3601265549659729,
-0.18115243315696716,
-0.03283317759633064,
-0.24028275907039642,
0.004947870969772339,
0.4045206308364868,
-0.4238610565662384,
0.17298974096775055,
0.015731196850538254,
0.01263342797756195,
-0.2405940145254135,
0.004309471696615219,
0.09559273719787598,
0.32552459836006165,
0.5624176263809204,
-0.12838445603847504,
-0.040545154362916946,
0.09093096107244492,
0.056034695357084274,
0.3275008797645569,
0.32299700379371643,
-0.21749195456504822,
-0.0797664001584053,
-0.12281018495559692,
-0.15186113119125366,
0.3863774538040161,
-0.5328124165534973,
-0.27624717354774475,
0.3100047707557678,
0.12892886996269226,
-0.16965903341770172,
-0.14274388551712036,
-0.208109512925148,
0.12035606056451797,
0.12683364748954773,
0.34030282497406006,
0.033969201147556305,
-0.1404903531074524,
-0.025244252756237984,
-0.37126684188842773,
-0.2300160825252533,
0.0015913881361484528,
0.01333458349108696,
0.025610005483031273,
0.16001349687576294,
0.16676494479179382,
-0.4279124140739441,
0.13110029697418213,
-0.051847126334905624,
-0.103810153901577,
0.05273379012942314,
0.4886043071746826,
-0.42418116331100464,
0.06365130841732025,
0.2276824712753296,
-0.18369948863983154,
0.30353057384490967,
-0.0784522294998169,
0.3136443793773651,
-0.13732297718524933,
-0.05884107947349548,
-0.5334228277206421,
0.4065418839454651,
-0.0188787542283535,
-0.1267283856868744,
-0.12202475219964981,
0.044822026044130325,
0.35272347927093506,
0.11355490982532501,
-0.17422610521316528,
0.06045198440551758,
-0.11823669075965881,
0.10452412813901901,
0.3406916856765747,
-0.01940297894179821,
-0.4063429832458496,
-0.40139278769493103,
-0.1490999460220337,
-0.028607793152332306,
0.011514682322740555,
-0.2519128918647766,
-0.3854123651981354,
0.24798142910003662,
0.0569712296128273,
-0.2244209200143814,
0.2305831015110016,
0.081685371696949,
0.29543405771255493,
-0.016208436340093613,
0.03677036240696907,
0.0003964453935623169,
-0.18492218852043152,
-0.03391389548778534,
0.009830866008996964,
0.3970496654510498,
-0.03169206902384758,
0.16998225450515747,
-0.1750236451625824,
0.14412011206150055,
0.40024295449256897,
0.031011391431093216,
-0.15850017964839935,
-0.27366089820861816,
0.30453217029571533,
-0.004911823198199272,
0.5264114737510681,
0.051644548773765564,
-0.1131988987326622,
-0.01989026367664337,
-0.23784548044204712,
-0.15690386295318604,
0.06675174087285995,
0.3204011619091034,
0.26292258501052856,
-0.01348764356225729,
0.2638959586620331,
0.003394845873117447,
0.5038726925849915,
-0.12402404099702835,
0.18165503442287445,
0.13843174278736115,
-0.2771657407283783,
-0.312250554561615,
0.04014810174703598,
-0.18180467188358307,
-0.09601719677448273,
0.23778298497200012,
0.2507990896701813,
-0.07022975385189056,
-0.21757039427757263,
-0.21249118447303772,
-0.1106228306889534,
0.33288800716400146,
-0.227073535323143,
0.24567629396915436,
-0.14922024309635162,
0.1999562382698059,
-0.1773366779088974,
-0.21984343230724335,
-0.10610590875148773,
-0.26378771662712097,
-0.03785690665245056,
0.23957306146621704,
-0.04070957005023956,
0.23504967987537384,
-0.317192405462265,
0.45997166633605957,
0.15770547091960907,
-0.6352961659431458,
-0.2629724144935608,
-0.14443862438201904,
-0.33957919478416443,
-0.07766352593898773,
0.3256204426288605,
-0.37274494767189026,
0.18438133597373962,
-0.4821201264858246,
0.01236790232360363,
0.1615029126405716,
-0.4731438159942627,
0.294929563999176,
0.13542768359184265,
0.5952252745628357,
-0.04591868817806244,
0.15083393454551697,
-0.1922260820865631,
-0.33440056443214417,
0.41081419587135315,
-0.3192216157913208,
-0.33658161759376526,
0.05477961152791977,
0.007266763597726822,
-0.16813623905181885,
-0.5058835744857788,
-0.30632907152175903,
-0.3148083984851837,
-0.05334992706775665,
0.1918007880449295,
0.05011243000626564,
0.14432808756828308,
0.3339979350566864,
0.4101508855819702,
-0.004436281975358725,
0.20733846724033356,
0.050699926912784576,
-0.010028795339167118,
-0.4861394762992859,
0.23715490102767944,
-0.3061428964138031,
-0.36150923371315,
-0.19873666763305664,
-0.05292277783155441,
0.3845672011375427,
0.18407748639583588,
-0.5582752227783203,
-0.29095759987831116,
-0.17779220640659332,
0.4546240270137787,
0.10301534831523895,
-0.04681728035211563,
0.2920681834220886,
0.042203933000564575,
0.036501310765743256,
-0.027070434764027596,
-0.3199702203273773,
0.28811919689178467,
0.02378317341208458,
0.30608251690864563,
-0.023914068937301636,
0.1803102195262909,
-0.030555304139852524,
0.73513263463974,
0.1958528459072113,
-0.24085040390491486,
0.3919069468975067,
0.18050964176654816,
0.3743959963321686,
-0.43118414282798767,
-0.262813001871109,
0.290243923664093,
0.03689543157815933,
-0.4468596577644348,
0.02809278666973114,
0.03275228291749954,
-0.7290306687355042,
-0.2692888379096985,
0.002174917608499527,
-0.18882223963737488,
-0.25019213557243347,
0.2722432315349579,
-0.29993000626564026,
0.36383429169654846,
-0.08397523313760757,
0.07558999210596085,
-0.07109122723340988,
-0.022997761145234108,
0.004649762995541096,
0.28359466791152954,
-0.03938283771276474,
0.053670357912778854,
-0.1316986382007599,
-0.42438647150993347,
-0.45438235998153687,
0.26041561365127563,
0.1815054714679718,
0.7051237225532532,
-0.34667879343032837,
-0.28446248173713684,
0.08267112076282501,
-0.012799546122550964,
0.15474583208560944,
0.18881617486476898,
-0.27126169204711914,
0.24395382404327393,
-0.33596131205558777,
-0.44821763038635254,
-0.25164926052093506,
0.03708845004439354,
0.3414699137210846,
0.1930960714817047,
0.440769761800766,
0.07027804106473923,
-0.09867784380912781,
0.16572266817092896,
0.1349693387746811,
0.07601484656333923,
-0.07483381778001785,
-0.38677552342414856,
-0.45302289724349976,
-0.37257885932922363,
0.3067512810230255,
-0.0564761683344841,
0.11854813992977142,
-0.17792370915412903,
0.0036988556385040283,
0.17224715650081635,
-0.021883554756641388,
-0.05728420615196228,
0.34912267327308655,
0.023207232356071472,
-0.1563134789466858,
0.09276218712329865,
-0.023924298584461212,
0.16093331575393677,
0.04875347018241882,
0.10744863748550415,
-0.06942158937454224,
0.27190881967544556,
0.27269160747528076,
-0.06429675966501236,
0.0035999342799186707,
0.459755003452301,
-0.0078346636146307,
-0.26119330525398254,
-0.009829465299844742,
-0.09111729264259338,
-0.16983139514923096,
0.287485271692276,
-0.018848225474357605,
-0.05193981155753136,
-0.05422908440232277,
0.20328019559383392,
-0.03496994823217392,
0.04810195043683052,
-0.08592069894075394,
0.42813730239868164,
-0.06710387766361237,
0.012687433511018753,
0.27424782514572144,
0.17840053141117096,
0.9760026931762695,
-0.043449074029922485,
0.0564655140042305,
0.17950671911239624,
0.021545924246311188,
-0.2822633683681488,
0.2678415775299072,
-0.051539771258831024,
-0.1963825821876526,
0.23892132937908173,
0.020876435562968254,
-0.33057621121406555,
0.2563529312610626,
-0.14275872707366943,
-0.26441463828086853,
0.07216407358646393,
-0.47169625759124756,
0.20732206106185913,
0.09745685756206512,
-0.07848887145519257,
-0.3223835229873657,
0.007412121631205082,
0.04529691860079765,
0.09264035522937775,
0.11557365208864212,
0.6465579271316528,
-0.16744592785835266,
0.10426848381757736,
-0.45890170335769653,
-0.3181270956993103,
-0.3372456133365631,
-0.07504121214151382,
-0.30585941672325134,
0.1702502965927124,
0.4338042736053467,
-0.6257210969924927,
-0.12607231736183167,
0.2802773416042328,
0.5041136741638184,
0.2558201551437378,
-0.3557375371456146,
-0.023459535092115402,
-0.20543548464775085,
0.08400622755289078,
0.4423816502094269,
-0.10813147574663162,
0.12122756987810135,
-0.13896217942237854,
-0.371650755405426,
-0.2003161907196045,
-0.16850291192531586,
-0.3224397897720337,
0.3863140344619751,
0.10033626854419708,
-0.008644133806228638,
-0.21094241738319397,
0.2304939329624176,
-0.13335974514484406,
-0.03404134511947632,
-0.015915604308247566,
0.046045854687690735,
0.08328156173229218,
0.06043042615056038,
0.377346396446228,
-0.09589305520057678,
-0.1846654713153839,
-0.13656403124332428,
0.0956188440322876,
-0.03830984979867935,
-0.18523621559143066,
0.3123592138290405,
-0.08220967650413513,
-0.03995900601148605,
-0.09552298486232758,
0.10177486389875412,
-0.3029923737049103,
-0.1660032868385315,
0.05677718296647072,
-0.16003601253032684,
-0.3582683205604553,
-0.20829258859157562,
0.5189052820205688,
0.302540123462677,
0.21233537793159485,
0.006827782839536667,
-0.19373364746570587,
-0.6883791089057922,
0.15805846452713013,
0.13932552933692932,
0.23347987234592438,
-0.050199031829833984,
0.3976535499095917,
0.09559483826160431,
-0.0819227397441864,
-0.11546620726585388,
-0.07779312133789062,
-0.4233609735965729,
0.09480523318052292,
0.09106951951980591,
-0.18755915760993958,
0.347215861082077,
-0.11002478003501892,
-0.05269496887922287,
0.044653184711933136,
0.024697717279195786,
-0.09282223880290985,
-0.045376092195510864,
0.1755247414112091,
0.02061993069946766,
-0.3655265271663666,
0.17060844600200653,
-0.04153692349791527,
0.11996550858020782,
-0.15343983471393585,
-0.09750710427761078,
-0.037173863500356674,
-0.004948809742927551,
-0.08059072494506836,
-0.2490549236536026,
0.16809311509132385,
-0.055942997336387634,
0.16643811762332916,
0.021386072039604187,
0.31518709659576416,
-0.049411170184612274,
0.11043035238981247,
0.014966960996389389,
-0.1250571459531784,
0.16893869638442993,
0.2227519154548645,
-0.20501576364040375,
0.08052781224250793,
0.015767976641654968,
-0.17309492826461792,
-0.017868202179670334,
-0.022092998027801514,
0.44003766775131226,
0.08000294119119644,
-0.17802773416042328,
0.1011364758014679,
0.44033557176589966,
0.06419172137975693,
-0.018031606450676918,
-0.06141107156872749,
0.19835464656352997,
0.16255946457386017,
-0.0008154585957527161,
0.4802030324935913,
0.0641893595457077,
-0.34623414278030396,
0.4527825713157654,
-0.00384700670838356,
0.1812504082918167,
-0.06621522456407547,
-0.001235727220773697,
-0.029138978570699692,
-0.05325949564576149,
0.31748059391975403,
0.14114806056022644,
-0.1872004270553589,
0.1661783903837204,
-0.08766543865203857,
-0.09365081042051315,
-0.09329671412706375,
-0.2477649450302124,
0.2596847712993622,
0.05409038066864014,
-0.17134390771389008,
0.24992994964122772,
-0.3742426037788391,
0.15509095788002014,
-0.00249510258436203,
-0.12671951949596405,
0.6321108341217041,
-0.49661123752593994,
-0.3118755519390106,
-0.3651081323623657,
-0.04073271527886391,
-0.10912322252988815,
-0.12330085039138794,
-0.22573775053024292,
-0.06334014981985092,
0.147543266415596,
0.040672171860933304,
0.013158690184354782,
0.1704794317483902,
0.26082557439804077,
0.11692436039447784,
-0.275431752204895,
-0.4348377287387848,
-0.05348297208547592,
0.1039654091000557,
0.0875292420387268,
-0.02000514045357704,
0.5283884406089783,
0.20620769262313843,
-0.28274160623550415,
-0.2568255364894867,
0.4794694185256958,
0.5924416184425354,
0.3914433419704437,
0.08834654092788696,
-0.20706923305988312,
-0.22086235880851746,
0.031134499236941338,
-0.3435666561126709,
0.2105429470539093,
0.13870318233966827,
-0.09177301824092865,
0.022552404552698135,
0.02106735296547413,
-0.08279166370630264,
0.03287273272871971,
-0.13485640287399292,
0.1390841156244278,
-0.07596905529499054,
0.32647448778152466,
-0.02533375844359398,
0.04350132495164871,
0.02439798042178154,
0.13395653665065765,
-0.24875235557556152,
0.3929106891155243,
0.08334134519100189,
0.003557469928637147,
0.1769809126853943,
0.04381377622485161,
-0.013007985427975655,
-0.06831690669059753,
0.4770764410495758,
0.3794437050819397,
0.30738601088523865,
-0.23296287655830383,
-0.23394539952278137,
-0.17142483592033386,
0.1797960102558136,
0.1334393471479416,
0.3775697648525238,
-0.07776713371276855,
0.17236918210983276,
0.14740845561027527,
0.1493644416332245,
0.0007745474576950073,
-0.22886303067207336,
0.007078832946717739,
-0.0403420552611351,
-0.25093981623649597,
0.07985891401767731,
-0.5340799689292908,
-0.15187110006809235,
0.09360409528017044,
-0.34924447536468506,
0.37748801708221436,
-0.2518044114112854,
-0.08027131110429764,
0.014089387841522694,
-0.25664886832237244,
0.194600448012352,
-0.026911914348602295,
0.22618690133094788,
0.3685004413127899,
0.4666379690170288,
0.18969473242759705,
-0.21339136362075806,
-0.16799362003803253,
-0.39074090123176575,
0.10599597543478012,
0.045763567090034485,
-0.23440754413604736,
0.2104596048593521,
-0.2749538719654083,
-0.034455638378858566,
-0.18378493189811707,
0.4403219223022461,
0.19640152156352997,
-0.2830711007118225,
0.3341462314128876,
-0.16894526779651642,
-0.2094668447971344,
-0.1900046318769455,
0.12341812252998352,
0.47767767310142517,
-0.06163238734006882,
0.23712696135044098,
-0.28272128105163574,
-0.18462327122688293,
0.522576093673706,
-0.22784429788589478,
-0.015275783836841583,
-0.07484471052885056,
-0.024467691779136658,
-0.12319467216730118,
-0.0727071687579155,
-0.3173844814300537,
-0.10970485955476761,
-0.06196114420890808,
-0.10957684367895126,
-0.4085152745246887,
0.31550008058547974,
0.26802894473075867,
-0.05704374983906746,
-0.04131720960140228,
0.5945864915847778,
-0.14248639345169067,
0.012223238125443459,
-0.004241809248924255,
-0.07613520324230194
] |
https://github.com/huggingface/datasets/issues/2010 | Local testing fails | ```
co_filename = '<ipython-input-2-e0383a102aae>', returned_obj = [0]
def create_ipython_func(co_filename, returned_obj):
def func():
return returned_obj
code = func.__code__
> code = CodeType(*[getattr(code, k) if k != "co_filename" else co_filename for k in code_args])
E TypeError: an integer is required (got type bytes)
tests/test_caching.py:152: TypeError
```
Python 3.8.8
dill==0.3.1.1
| I'm following the CI setup as described in
https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19
in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4
and getting
```
FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes)
1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04)
```
Seems like a discrepancy with CI, perhaps a lib version that's not controlled?
Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}` | 47 | Local testing fails
I'm following the CI setup as described in
https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19
in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4
and getting
```
FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes)
1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04)
```
Seems like a discrepancy with CI, perhaps a lib version that's not controlled?
Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}`
```
co_filename = '<ipython-input-2-e0383a102aae>', returned_obj = [0]
def create_ipython_func(co_filename, returned_obj):
def func():
return returned_obj
code = func.__code__
> code = CodeType(*[getattr(code, k) if k != "co_filename" else co_filename for k in code_args])
E TypeError: an integer is required (got type bytes)
tests/test_caching.py:152: TypeError
```
Python 3.8.8
dill==0.3.1.1
| [
-0.15954236686229706,
0.08368636667728424,
0.00807403028011322,
0.05419408902525902,
-0.06059163063764572,
-0.2532823383808136,
0.43223050236701965,
0.3210861086845398,
0.06659090518951416,
0.2115698754787445,
-0.024156726896762848,
0.10391591489315033,
-0.19237202405929565,
0.4952000379562378,
-0.21587345004081726,
0.13591860234737396,
0.05527966469526291,
0.19342760741710663,
-0.13184234499931335,
0.08386056125164032,
-0.09596613049507141,
0.2499602884054184,
-0.25641149282455444,
-0.04104255139827728,
-0.30229833722114563,
-0.024599505588412285,
-0.14872139692306519,
0.1830328106880188,
-0.18266600370407104,
-0.36032941937446594,
0.6797198057174683,
0.019989384338259697,
-0.0009315181523561478,
0.6896494626998901,
-0.00012576005246955901,
0.027079448103904724,
0.5052761435508728,
-0.1809414029121399,
-0.4039548337459564,
-0.33205097913742065,
0.15198838710784912,
0.003736395388841629,
0.34486350417137146,
-0.1304057091474533,
-0.05944371223449707,
0.42550820112228394,
-0.26927247643470764,
-0.3886941373348236,
0.25371843576431274,
0.3457770049571991,
0.0861624926328659,
0.662592887878418,
-0.15292061865329742,
-0.07385646551847458,
-0.0913386419415474,
0.7564919590950012,
-0.2964875400066376,
0.6160546541213989,
0.3982505202293396,
-0.1529933363199234,
-0.08901303261518478,
-0.037063706666231155,
0.12386226654052734,
0.207879900932312,
-0.19369542598724365,
0.10462218523025513,
-0.18562161922454834,
-0.3124094307422638,
0.12736164033412933,
-0.04072381556034088,
0.3077147305011749,
-0.2930816411972046,
-0.42101410031318665,
0.26401156187057495,
-0.19624263048171997,
-0.42163151502609253,
0.44772598147392273,
-0.032106250524520874,
-0.5543994903564453,
0.14411340653896332,
-0.6164291501045227,
0.3599110543727875,
-0.09563436359167099,
0.19370156526565552,
-0.26135122776031494,
-0.08602388203144073,
-0.12195250391960144,
0.10394487529993057,
-0.06896933913230896,
-0.10675330460071564,
-0.09502071142196655,
0.11584390699863434,
0.08932409435510635,
0.267354279756546,
0.041706062853336334,
-0.21206633746623993,
0.07456642389297485,
0.28862419724464417,
0.19568577408790588,
0.45949476957321167,
-0.2210509330034256,
-0.0970081314444542,
0.07518524676561356,
0.18585243821144104,
0.042229052633047104,
0.3725645840167999,
0.15670596063137054,
0.3691076338291168,
0.4090424180030823,
0.09819754958152771,
-0.12367002665996552,
0.14232568442821503,
0.22340236604213715,
-0.224360391497612,
0.14639650285243988,
0.01688452810049057,
0.18985815346240997,
-0.4522976279258728,
-0.28176143765449524,
0.30505743622779846,
-0.15729251503944397,
0.033510301262140274,
0.3083817958831787,
0.2298792600631714,
0.09248016774654388,
0.17902767658233643,
0.15446804463863373,
0.3162519335746765,
-0.21778014302253723,
0.24948441982269287,
-0.07182985544204712,
-0.09283775091171265,
-0.15755940973758698,
0.22927343845367432,
0.5492323637008667,
0.03963861241936684,
0.4059889018535614,
0.017002012580633163,
0.5969012975692749,
-0.053027234971523285,
0.0845729187130928,
-0.08202625811100006,
0.22962749004364014,
0.46127447485923767,
-0.2623301148414612,
0.0007759705185890198,
0.25388023257255554,
-0.1570119559764862,
-0.3096911907196045,
0.07165760546922684,
0.02549203857779503,
-0.33898937702178955,
-0.19037018716335297,
-0.004122688435018063,
-0.23627030849456787,
0.0440891794860363,
0.3062964677810669,
-0.411574125289917,
0.23501238226890564,
-0.0339251346886158,
0.06666974723339081,
-0.2979629635810852,
0.033409181982278824,
0.09072455018758774,
0.2940314710140228,
0.5816891193389893,
0.03201911225914955,
-0.058712951838970184,
0.08722271770238876,
0.17036613821983337,
0.32226255536079407,
0.3197820484638214,
-0.2711988389492035,
-0.08010721951723099,
-0.20098967850208282,
-0.21222448348999023,
0.46042898297309875,
-0.528128445148468,
-0.22052690386772156,
0.3383588194847107,
0.1630098670721054,
-0.04699370637536049,
-0.024037152528762817,
-0.1779368668794632,
0.12301522493362427,
0.025045355781912804,
0.3560110032558441,
0.02011551894247532,
-0.14397594332695007,
-0.05072774365544319,
-0.30509936809539795,
-0.2096911519765854,
-0.03265294432640076,
-0.05200137943029404,
-0.012500818818807602,
0.1478216052055359,
0.16825146973133087,
-0.35539770126342773,
0.13168711960315704,
-0.09263607859611511,
-0.10036766529083252,
-0.02656519040465355,
0.4984472990036011,
-0.4364665746688843,
-0.0033530329819768667,
0.17794263362884521,
-0.14666667580604553,
0.31575995683670044,
-0.0652017593383789,
0.33254653215408325,
-0.12679101526737213,
-0.07861008495092392,
-0.4938030242919922,
0.31827718019485474,
-0.09209451079368591,
-0.14166299998760223,
-0.08799443393945694,
0.1350090056657791,
0.3590695858001709,
0.11580868065357208,
-0.2030637115240097,
0.1976778507232666,
-0.16743087768554688,
0.06740809977054596,
0.17989642918109894,
-0.11731985956430435,
-0.33187493681907654,
-0.39386555552482605,
-0.17561638355255127,
-0.043793946504592896,
-0.05761297792196274,
-0.23176617920398712,
-0.3719640374183655,
0.20775336027145386,
0.09611000865697861,
-0.16598005592823029,
0.10208392143249512,
0.06583748757839203,
0.2748289704322815,
0.07116422057151794,
0.00567040778696537,
0.013898581266403198,
-0.13402289152145386,
0.032442063093185425,
-0.05866300314664841,
0.5032774209976196,
0.016101911664009094,
0.14363650977611542,
-0.11915383487939835,
0.0993642657995224,
0.3589842915534973,
0.046263981610536575,
-0.22231897711753845,
-0.2488671839237213,
0.302621454000473,
0.08158277720212936,
0.42698532342910767,
0.12820033729076385,
-0.149523064494133,
0.020827725529670715,
0.020804479718208313,
-0.1623556762933731,
0.03479951620101929,
0.2654782831668854,
0.2746235430240631,
-0.028559353202581406,
0.27430227398872375,
-0.04875800758600235,
0.6123737692832947,
-0.12883563339710236,
0.16228562593460083,
0.08334419131278992,
-0.27826398611068726,
-0.26117926836013794,
0.09429246932268143,
-0.12725944817066193,
-0.18810127675533295,
0.16841556131839752,
0.23995551466941833,
-0.028327371925115585,
-0.24380308389663696,
-0.22515137493610382,
-0.11235710978507996,
0.26006683707237244,
-0.3167209029197693,
0.309210866689682,
-0.16572442650794983,
0.16264855861663818,
-0.22436703741550446,
-0.19491441547870636,
0.03397717326879501,
-0.21563272178173065,
-0.1114063709974289,
0.3362268805503845,
-0.042950570583343506,
0.2492922991514206,
-0.359866201877594,
0.37891125679016113,
0.12707196176052094,
-0.6568127870559692,
-0.2761151194572449,
-0.04939192160964012,
-0.35802850127220154,
-0.07832644879817963,
0.3884337544441223,
-0.3923022747039795,
0.22307544946670532,
-0.48471367359161377,
-0.008307786658406258,
0.16423605382442474,
-0.4976351857185364,
0.244846373796463,
0.1052224338054657,
0.5596270561218262,
0.008848592638969421,
0.08865685760974884,
-0.238902747631073,
-0.41238933801651,
0.40631338953971863,
-0.2631419599056244,
-0.38115182518959045,
0.09733432531356812,
-0.033276330679655075,
-0.23520320653915405,
-0.5069958567619324,
-0.3434549868106842,
-0.264054536819458,
-0.06903120875358582,
0.3037875294685364,
0.08826276659965515,
0.11016866564750671,
0.4585246741771698,
0.4080486595630646,
-0.002004685578867793,
0.12820397317409515,
0.04671626538038254,
-0.07915621995925903,
-0.5806210041046143,
0.29879051446914673,
-0.32131853699684143,
-0.3068709671497345,
-0.23980973660945892,
-0.12181927263736725,
0.40346649289131165,
0.2295229583978653,
-0.44565802812576294,
-0.19231559336185455,
-0.19110138714313507,
0.4425348937511444,
0.19646205008029938,
0.009047096595168114,
0.29456138610839844,
0.007989398203790188,
0.0029948893934488297,
-0.017132222652435303,
-0.25132811069488525,
0.2703389525413513,
0.10974565893411636,
0.31678929924964905,
0.0037345867604017258,
0.2698604464530945,
0.03796892240643501,
0.6234936714172363,
0.3126413822174072,
-0.23715035617351532,
0.36459818482398987,
0.12784187495708466,
0.417430579662323,
-0.5137653350830078,
-0.3205946981906891,
0.30463242530822754,
-0.0243833065032959,
-0.4611195921897888,
-0.05232955515384674,
0.012907384894788265,
-0.6639068126678467,
-0.19391049444675446,
0.016219090670347214,
-0.1264439821243286,
-0.30659452080726624,
0.2799481451511383,
-0.22779011726379395,
0.32355526089668274,
-0.06027611345052719,
0.06507088989019394,
-0.177247554063797,
-0.01825479045510292,
-0.02323535457253456,
0.2895423471927643,
0.04581303521990776,
0.07012521475553513,
-0.0966770276427269,
-0.3918628394603729,
-0.45476049184799194,
0.24722470343112946,
0.2436317652463913,
0.6850358843803406,
-0.2653804123401642,
-0.2727939784526825,
-0.012528233230113983,
0.015639876946806908,
0.00854470580816269,
0.2388787418603897,
-0.23277835547924042,
0.2690616846084595,
-0.35486191511154175,
-0.4105348587036133,
-0.22299237549304962,
-0.011318624019622803,
0.4066477119922638,
0.1472586989402771,
0.4967995882034302,
0.08193261176347733,
-0.14099203050136566,
0.26310548186302185,
0.13536705076694489,
0.05557997152209282,
0.036329735070466995,
-0.44706568121910095,
-0.3837276101112366,
-0.3355270028114319,
0.2988205552101135,
0.0592847540974617,
0.04935162886977196,
-0.12056068331003189,
-0.005728885531425476,
0.13241419196128845,
-0.019162628799676895,
0.05922093614935875,
0.371775358915329,
-0.03193124756217003,
-0.0958162173628807,
0.09432710707187653,
-0.10941362380981445,
0.01946883276104927,
-0.019199611619114876,
0.16495314240455627,
0.011049624532461166,
0.06870996952056885,
0.2090957760810852,
-0.04162951186299324,
0.018017351627349854,
0.40326038002967834,
-0.08496648818254471,
-0.32522451877593994,
-0.0046236589550971985,
-0.0674571692943573,
-0.260946124792099,
0.3393782079219818,
0.059050895273685455,
-0.028967514634132385,
-0.13176068663597107,
0.10667818784713745,
0.005407601594924927,
-0.03093327395617962,
-0.06704796850681305,
0.5506899356842041,
-0.02202063798904419,
-0.04178039729595184,
0.22688014805316925,
0.16521772742271423,
0.8252403736114502,
0.06444388628005981,
0.10214200615882874,
0.24965795874595642,
0.05488959699869156,
-0.19104528427124023,
0.3437015414237976,
0.016283782199025154,
-0.13066673278808594,
0.26281219720840454,
0.005952106788754463,
-0.3169224262237549,
0.3387092053890228,
-0.12932083010673523,
-0.24768438935279846,
0.10913120210170746,
-0.3752107620239258,
0.35337838530540466,
0.06859760731458664,
-0.03444706276059151,
-0.3180183470249176,
-0.05508926883339882,
-0.01109173335134983,
0.11565527319908142,
0.11046463996171951,
0.5969847440719604,
-0.0907769426703453,
0.05943465977907181,
-0.47128021717071533,
-0.32458239793777466,
-0.33805596828460693,
-0.04600588232278824,
-0.34875303506851196,
0.19526700675487518,
0.35556039214134216,
-0.5530387163162231,
-0.06386621296405792,
0.1838647425174713,
0.45805102586746216,
0.22211520373821259,
-0.3360339403152466,
-0.04483843222260475,
-0.0872652605175972,
0.1277051568031311,
0.41577261686325073,
-0.18991607427597046,
0.18035994470119476,
-0.07805401086807251,
-0.2937188744544983,
-0.22604772448539734,
-0.16011248528957367,
-0.34290480613708496,
0.399027943611145,
0.08023567497730255,
0.06684848666191101,
-0.2352944165468216,
0.17354446649551392,
-0.14135617017745972,
0.0017314814031124115,
-0.02458980306982994,
0.0601651705801487,
0.011042732745409012,
0.05046371743083,
0.30549556016921997,
-0.15860581398010254,
-0.18892458081245422,
-0.13475099205970764,
0.07679607719182968,
-0.037765271961688995,
-0.15416881442070007,
0.33680272102355957,
-0.23170341551303864,
-0.059079065918922424,
-0.10620838403701782,
0.18894565105438232,
-0.2515738308429718,
-0.2681214213371277,
0.08377418667078018,
-0.10970145463943481,
-0.33552640676498413,
-0.18891917169094086,
0.5555795431137085,
0.2536104917526245,
0.14496949315071106,
0.06758533418178558,
-0.21992690861225128,
-0.6909098029136658,
0.14233314990997314,
0.0476175881922245,
0.2239873856306076,
-0.03853246569633484,
0.36729156970977783,
0.04047592729330063,
-0.17014002799987793,
-0.13037410378456116,
-0.17467564344406128,
-0.36406317353248596,
0.08017010986804962,
0.17964644730091095,
-0.1369647979736328,
0.35929906368255615,
-0.08911392092704773,
-0.01505197212100029,
0.055410824716091156,
0.0056978315114974976,
-0.10878338664770126,
-0.10233898460865021,
0.16109488904476166,
-0.020992550998926163,
-0.3436933159828186,
0.2249809056520462,
0.006468761712312698,
0.08985312283039093,
-0.24503672122955322,
-0.07616917788982391,
0.0171046145260334,
-0.01760825514793396,
-0.06699877232313156,
-0.315011590719223,
0.12127685546875,
0.012704025954008102,
0.16138488054275513,
-0.011732131242752075,
0.2935888469219208,
-0.023001564666628838,
0.11981398612260818,
0.00018470920622348785,
-0.07505238056182861,
0.1143960952758789,
0.23723900318145752,
-0.24273984134197235,
0.14282801747322083,
0.02910553105175495,
-0.19740785658359528,
-0.054975755512714386,
-0.04334009438753128,
0.3361027240753174,
0.12951788306236267,
-0.14756013453006744,
0.07667823135852814,
0.3650752902030945,
0.07515889406204224,
-0.019595351070165634,
-0.025722473859786987,
0.10183319449424744,
0.1505984365940094,
0.022837039083242416,
0.5174658894538879,
0.02312282845377922,
-0.34358450770378113,
0.5378298163414001,
-0.07494429498910904,
0.22763583064079285,
-0.10151049494743347,
0.10557834804058075,
-0.04023994877934456,
-0.030313612893223763,
0.292629212141037,
0.1018691435456276,
-0.18417540192604065,
0.20633143186569214,
-0.06791824847459793,
-0.12822440266609192,
-0.14122673869132996,
-0.18888255953788757,
0.28978314995765686,
-0.014353826642036438,
-0.13973025977611542,
0.1568305790424347,
-0.3757256865501404,
0.09371479600667953,
0.15007129311561584,
-0.057857200503349304,
0.564296305179596,
-0.5855811834335327,
-0.282995343208313,
-0.39444276690483093,
-0.14394353330135345,
-0.07905088365077972,
-0.1622619479894638,
-0.22227926552295685,
-0.015266813337802887,
0.0844990611076355,
0.05220947787165642,
0.03217947855591774,
0.20104694366455078,
0.32054978609085083,
0.12757666409015656,
-0.2623807191848755,
-0.3341459631919861,
-0.05279310792684555,
0.08784888684749603,
0.09494873881340027,
-0.02026578225195408,
0.5610432624816895,
0.23456205427646637,
-0.24237975478172302,
-0.2002234160900116,
0.47218751907348633,
0.589576005935669,
0.37863627076148987,
0.12273204326629639,
-0.1951044648885727,
-0.22944574058055878,
0.012983201071619987,
-0.32577329874038696,
0.22139541804790497,
0.12427231669425964,
-0.01316404715180397,
-0.05325404554605484,
0.05742349475622177,
-0.07164682447910309,
0.0075356923043727875,
-0.14398783445358276,
0.0037624379619956017,
-0.18290285766124725,
0.44682449102401733,
-0.09854365885257721,
0.0938502624630928,
0.051419034600257874,
0.1554649919271469,
-0.24136042594909668,
0.28232455253601074,
0.088857501745224,
0.05735309422016144,
0.2049228549003601,
0.1141105443239212,
0.002820132300257683,
-0.0617850087583065,
0.4479652941226959,
0.23571722209453583,
0.21317604184150696,
-0.2273445427417755,
-0.18074031174182892,
-0.18360120058059692,
0.11411767452955246,
0.15760305523872375,
0.28573039174079895,
-0.11369417607784271,
0.22415006160736084,
0.18395152688026428,
0.07126456499099731,
-0.04945714771747589,
-0.3080800771713257,
0.0026935087516903877,
-0.04280316084623337,
-0.21355950832366943,
-0.012730758637189865,
-0.42305028438568115,
-0.1899389624595642,
0.09159781038761139,
-0.4213804304599762,
0.3242902457714081,
-0.24750949442386627,
-0.048445627093315125,
0.040698349475860596,
-0.2419208288192749,
0.18704845011234283,
-0.10467293858528137,
0.2583913207054138,
0.420864075422287,
0.4123570919036865,
0.12196645885705948,
-0.28010380268096924,
-0.20730316638946533,
-0.32723280787467957,
0.10925496369600296,
0.15121367573738098,
-0.2796412408351898,
0.3367854952812195,
-0.24442648887634277,
0.03863973170518875,
-0.24676772952079773,
0.39072638750076294,
0.19720187783241272,
-0.38326844573020935,
0.30995795130729675,
-0.13851958513259888,
-0.28704723715782166,
-0.11506834626197815,
0.04468466341495514,
0.5041117668151855,
-0.11775735020637512,
0.268207311630249,
-0.2525079846382141,
-0.1620396375656128,
0.5046149492263794,
-0.43645787239074707,
-0.09341207146644592,
-0.029393501579761505,
0.05014470964670181,
-0.169691801071167,
-0.04894481599330902,
-0.3520064651966095,
-0.05491479113698006,
-0.01202391553670168,
-0.10737649351358414,
-0.38549184799194336,
0.3357226550579071,
0.22343195974826813,
-0.0321991965174675,
-0.040445372462272644,
0.7254136800765991,
-0.20318055152893066,
-0.0253896601498127,
0.04309127852320671,
-0.07357388734817505
] |
https://github.com/huggingface/datasets/issues/2010 | Local testing fails | I managed to reproduce. This comes from the CodeType init signature that is different in python 3.8.8
I opened a PR to fix this test
Thanks ! | I'm following the CI setup as described in
https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19
in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4
and getting
```
FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes)
1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04)
```
Seems like a discrepancy with CI, perhaps a lib version that's not controlled?
Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}` | 27 | Local testing fails
I'm following the CI setup as described in
https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19
in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4
and getting
```
FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes)
1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04)
```
Seems like a discrepancy with CI, perhaps a lib version that's not controlled?
Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}`
I managed to reproduce. This comes from the CodeType init signature that is different in python 3.8.8
I opened a PR to fix this test
Thanks ! | [
-0.21295066177845,
0.0823647528886795,
0.023841243237257004,
0.09466223418712616,
0.049615755677223206,
-0.19082459807395935,
0.3812548518180847,
0.3104434609413147,
0.050584133714437485,
0.22537121176719666,
0.13752427697181702,
0.11011501401662827,
-0.1860499382019043,
0.6575947999954224,
-0.11238306760787964,
0.15623429417610168,
0.0674784779548645,
0.2533709406852722,
-0.026602216064929962,
0.13123805820941925,
-0.12005838006734848,
0.26802563667297363,
-0.24322479963302612,
-0.06532594561576843,
-0.2336263656616211,
-0.007685953751206398,
-0.15736883878707886,
0.2269875407218933,
-0.18694916367530823,
-0.5005515217781067,
0.7258081436157227,
-0.059695009142160416,
-0.011777341365814209,
0.6850976347923279,
-0.00012768033775500953,
0.046028777956962585,
0.5900763273239136,
-0.13112488389015198,
-0.2848142087459564,
-0.209054633975029,
0.12253303080797195,
-0.009903976693749428,
0.44257238507270813,
-0.05848568305373192,
-0.06361773610115051,
0.42321276664733887,
-0.3844323754310608,
-0.45041152834892273,
0.30817753076553345,
0.34122568368911743,
0.08565620332956314,
0.6891778707504272,
-0.18334932625293732,
-0.06472652405500412,
-0.15570688247680664,
0.7216383218765259,
-0.2735100984573364,
0.5735641121864319,
0.45034509897232056,
-0.12010253220796585,
-0.06787831336259842,
-0.10771487653255463,
0.11484119296073914,
0.18800027668476105,
-0.12248923629522324,
0.02248474210500717,
-0.09368657320737839,
-0.18824052810668945,
0.13830101490020752,
-0.0737014040350914,
0.3249830901622772,
-0.25476306676864624,
-0.3429163098335266,
0.18587446212768555,
-0.14956866204738617,
-0.5330843329429626,
0.5146339535713196,
-0.11135359853506088,
-0.47684210538864136,
0.19159789383411407,
-0.5451623201370239,
0.2967490553855896,
-0.07489583641290665,
0.15539143979549408,
-0.3125770092010498,
-0.08327265083789825,
-0.10468678176403046,
0.11072449386119843,
-0.08919657766819,
-0.06749236583709717,
0.098918117582798,
0.17871440947055817,
-0.007631856948137283,
0.287278950214386,
0.10704779624938965,
-0.21118324995040894,
0.01447000727057457,
0.3994738757610321,
0.17871102690696716,
0.45566850900650024,
-0.25141867995262146,
-0.07275258749723434,
0.12223087251186371,
0.1218675747513771,
-0.008882317692041397,
0.3863511383533478,
0.21461895108222961,
0.23066282272338867,
0.3758419156074524,
0.02321760170161724,
-0.08103591948747635,
0.14151975512504578,
0.22081978619098663,
-0.281631201505661,
0.2822885513305664,
-0.032186176627874374,
0.14620409905910492,
-0.4389750361442566,
-0.09227091073989868,
0.22294041514396667,
-0.0682024359703064,
0.01679190993309021,
0.23276805877685547,
0.22724199295043945,
0.182413250207901,
0.15234875679016113,
0.09442999958992004,
0.42983031272888184,
-0.17783483862876892,
0.2726738154888153,
-0.08764573931694031,
-0.1687571406364441,
-0.15376430749893188,
0.1956513375043869,
0.49868080019950867,
-0.15370428562164307,
0.45613017678260803,
-0.005797854624688625,
0.6063705682754517,
-0.03109876997768879,
0.020663609728217125,
-0.027587320655584335,
0.2237468957901001,
0.45273420214653015,
-0.2669318914413452,
-0.02317279949784279,
0.3080398440361023,
-0.22730718553066254,
-0.3217342495918274,
0.0499488040804863,
0.10058441758155823,
-0.44104278087615967,
-0.21975938975811005,
-0.01882949098944664,
-0.2830902934074402,
-0.010693620890378952,
0.2729876637458801,
-0.4864014983177185,
0.20794253051280975,
0.0007706582546234131,
0.06493490934371948,
-0.2876134514808655,
0.1068175733089447,
0.10759285092353821,
0.20905257761478424,
0.5335058569908142,
0.01954779401421547,
-0.0479588508605957,
0.07985398918390274,
0.07931803166866302,
0.2857225835323334,
0.3176196813583374,
-0.2670462429523468,
-0.09587081521749496,
-0.1992754191160202,
-0.1947423219680786,
0.4257671535015106,
-0.515684962272644,
-0.17743031680583954,
0.3740009665489197,
0.15634213387966156,
-0.19855733215808868,
-0.04944894462823868,
-0.2684142291545868,
0.06577193737030029,
0.0986228808760643,
0.2402128130197525,
0.05674399435520172,
-0.1665889322757721,
0.060193464159965515,
-0.3022289276123047,
-0.29047101736068726,
-0.02104591578245163,
0.03382764011621475,
0.024978237226605415,
0.1769678294658661,
0.19980597496032715,
-0.40176114439964294,
0.11792958527803421,
-0.09269610047340393,
-0.11643548309803009,
0.020585428923368454,
0.5448554158210754,
-0.3864396810531616,
-0.0036128759384155273,
0.1999371349811554,
-0.032770149409770966,
0.3577793836593628,
-0.07800278067588806,
0.20455504953861237,
-0.14009511470794678,
-0.02090751752257347,
-0.5408804416656494,
0.38009709119796753,
-0.09910143911838531,
-0.052833084017038345,
-0.11798609793186188,
0.06091098487377167,
0.38301095366477966,
0.14356085658073425,
-0.24020874500274658,
0.0653645321726799,
-0.07747511565685272,
0.09466534852981567,
0.2909982204437256,
-0.08611321449279785,
-0.32879212498664856,
-0.42515048384666443,
-0.15633425116539001,
-0.023316308856010437,
0.0048966482281684875,
-0.22420939803123474,
-0.40060096979141235,
0.21714848279953003,
0.08867419511079788,
-0.14165683090686798,
0.07461308687925339,
0.09536218643188477,
0.23191672563552856,
0.02827998623251915,
-0.005821777507662773,
0.01197851449251175,
-0.18691690266132355,
-0.0353844091296196,
0.014793355017900467,
0.4722609519958496,
0.0298200361430645,
0.08339904248714447,
-0.15918835997581482,
0.10932808369398117,
0.3530663847923279,
0.023485850542783737,
-0.1824231743812561,
-0.31590011715888977,
0.26670020818710327,
0.0317159928381443,
0.5888886451721191,
0.12915974855422974,
-0.14106133580207825,
-0.10752768069505692,
-0.0508212111890316,
-0.1599723845720291,
-0.0017900988459587097,
0.18705043196678162,
0.2271011471748352,
-0.015888679772615433,
0.22669321298599243,
-0.11016683280467987,
0.5531957745552063,
-0.15857915580272675,
0.0749339684844017,
0.18165044486522675,
-0.2237859070301056,
-0.3028707206249237,
0.1822272539138794,
-0.15176203846931458,
-0.01195764821022749,
0.14674589037895203,
0.22637687623500824,
-0.05929655209183693,
-0.23833245038986206,
-0.21996307373046875,
-0.06923709064722061,
0.18346650898456573,
-0.35580071806907654,
0.24071626365184784,
-0.14395080506801605,
0.09364386647939682,
-0.3681102395057678,
-0.21255354583263397,
0.0038092266768217087,
-0.2537488639354706,
-0.1256662905216217,
0.2570476233959198,
0.016705244779586792,
0.21248918771743774,
-0.30557167530059814,
0.4417043924331665,
0.11034709215164185,
-0.616568922996521,
-0.23074910044670105,
-0.042180366814136505,
-0.28746068477630615,
-0.11028338968753815,
0.34401392936706543,
-0.4251948893070221,
0.14426225423812866,
-0.543674886226654,
-0.010643355548381805,
0.20997676253318787,
-0.5716855525970459,
0.3610415458679199,
0.11012768000364304,
0.5630648732185364,
0.09088940918445587,
0.13597838580608368,
-0.0833357572555542,
-0.3285456895828247,
0.39074477553367615,
-0.2811044454574585,
-0.3202841877937317,
0.11164595186710358,
-0.05928770452737808,
-0.23867033421993256,
-0.4834080636501312,
-0.22417494654655457,
-0.17322242259979248,
-0.04867018014192581,
0.2961147427558899,
0.08135093748569489,
0.0692148208618164,
0.43724870681762695,
0.3239246904850006,
-0.007102785632014275,
0.08791568875312805,
0.04921436309814453,
-0.03230413794517517,
-0.6007463932037354,
0.25182926654815674,
-0.23728452622890472,
-0.28545325994491577,
-0.15979412198066711,
-0.0864265114068985,
0.4862285554409027,
0.0981939509510994,
-0.39986228942871094,
-0.18029873073101044,
-0.1212022453546524,
0.49781912565231323,
0.17718569934368134,
-0.09013108909130096,
0.3163527846336365,
0.02466239035129547,
0.04938275367021561,
-0.05737169086933136,
-0.22627584636211395,
0.18441201746463776,
-0.004374723881483078,
0.3145071268081665,
0.017887426540255547,
0.22936499118804932,
-0.07370267808437347,
0.6722062230110168,
0.23465952277183533,
-0.2608806788921356,
0.3040289282798767,
0.0912792757153511,
0.32934996485710144,
-0.451239675283432,
-0.20178426802158356,
0.26011189818382263,
0.024302273988723755,
-0.47628849744796753,
-0.043738141655921936,
0.024765726178884506,
-0.6657323837280273,
-0.13949692249298096,
0.17448575794696808,
-0.15485848486423492,
-0.18060997128486633,
0.25037452578544617,
-0.2951577603816986,
0.3791857659816742,
-0.09469862282276154,
0.11344166845083237,
-0.13528525829315186,
-0.031215786933898926,
-0.010915135964751244,
0.33985939621925354,
-0.10451439768075943,
0.0421220026910305,
-0.12971512973308563,
-0.49607107043266296,
-0.38193315267562866,
0.23054715991020203,
0.2182384729385376,
0.6499723792076111,
-0.21021459996700287,
-0.3641645908355713,
0.024985477328300476,
0.04654379561543465,
0.09636498987674713,
0.1762780249118805,
-0.23801617324352264,
0.27217355370521545,
-0.3735036253929138,
-0.49162670969963074,
-0.29253309965133667,
0.025582682341337204,
0.4043448567390442,
0.07840020954608917,
0.5375290513038635,
0.12646403908729553,
-0.12717925012111664,
0.13428427278995514,
0.11026688665151596,
0.09292194247245789,
-0.03757544606924057,
-0.45432817935943604,
-0.4238273799419403,
-0.3833251893520355,
0.3148336112499237,
0.019740475341677666,
0.034498631954193115,
-0.2098483145236969,
0.024978119879961014,
0.03122655674815178,
0.016538936644792557,
-0.07208359241485596,
0.3944140374660492,
0.022352388128638268,
-0.13451577723026276,
0.09044334292411804,
-0.08835817873477936,
0.07294220477342606,
-0.020175425335764885,
0.14702466130256653,
0.11288514733314514,
0.09449249505996704,
0.14238283038139343,
-0.116844043135643,
-0.03568301349878311,
0.4573667347431183,
-0.038381703197956085,
-0.19472229480743408,
0.10691334307193756,
-0.10834217071533203,
-0.26608848571777344,
0.21292561292648315,
0.012190870940685272,
-0.06847876310348511,
-0.09590315073728561,
0.13708311319351196,
0.022638197988271713,
-0.003493925556540489,
-0.09942402690649033,
0.4119969308376312,
-0.05516970157623291,
-0.029876673594117165,
0.36515212059020996,
0.1775609850883484,
0.8157598376274109,
-0.00866653025150299,
0.06927754729986191,
0.2503994107246399,
-0.020990706980228424,
-0.34508010745048523,
0.5113013982772827,
-0.04016558453440666,
-0.26925334334373474,
0.24521572887897491,
-0.014184868894517422,
-0.3603079915046692,
0.31927838921546936,
-0.1270444542169571,
-0.2522832751274109,
0.0036987268831580877,
-0.40360671281814575,
0.3278369605541229,
0.06436662375926971,
-0.12360195070505142,
-0.3593873679637909,
-0.03458687290549278,
-0.14254769682884216,
0.08362561464309692,
0.12839533388614655,
0.6133267879486084,
-0.11067960411310196,
0.07679270952939987,
-0.3790449798107147,
-0.319816529750824,
-0.32658451795578003,
-0.06535614281892776,
-0.27352777123451233,
0.20314329862594604,
0.492352694272995,
-0.44738584756851196,
-0.00763325858861208,
0.18971268832683563,
0.5910067558288574,
0.21510100364685059,
-0.37105169892311096,
-0.02413557842373848,
0.09597622603178024,
0.018728243187069893,
0.3918752670288086,
-0.16236178576946259,
0.13908687233924866,
-0.0467720702290535,
-0.318101167678833,
-0.1999572217464447,
-0.2435205727815628,
-0.338981032371521,
0.3941817879676819,
0.00373203307390213,
-0.09338262677192688,
-0.3095395863056183,
0.13876144587993622,
-0.15270143747329712,
0.07070662081241608,
-0.034796494990587234,
0.04512159526348114,
0.007147632539272308,
0.09959515929222107,
0.32695648074150085,
-0.07984170317649841,
-0.20072951912879944,
-0.11528801918029785,
0.039093706756830215,
-0.057786330580711365,
-0.10129702836275101,
0.3804948329925537,
-0.11017261445522308,
-0.005503978580236435,
-0.11181659251451492,
0.15054044127464294,
-0.20896027982234955,
-0.24610021710395813,
0.07593022286891937,
-0.11049647629261017,
-0.31705033779144287,
-0.09751758724451065,
0.5581837892532349,
0.2994673252105713,
0.15949788689613342,
0.05126248672604561,
-0.10699305683374405,
-0.6706627011299133,
0.10325472056865692,
0.06696957349777222,
0.21338129043579102,
0.014643218368291855,
0.45753639936447144,
-0.010356954298913479,
-0.21442316472530365,
-0.12200707197189331,
-0.08851853013038635,
-0.3779914677143097,
0.057143453508615494,
0.06815700232982635,
-0.07522191852331161,
0.3518766164779663,
-0.16780541837215424,
-0.03053072839975357,
0.02503945305943489,
-0.049674563109874725,
-0.09002310037612915,
-0.046216364949941635,
0.1742308884859085,
0.04842911660671234,
-0.3221474885940552,
0.31578588485717773,
0.006481967866420746,
0.11836796998977661,
-0.11517118662595749,
0.005788158625364304,
-0.085615374147892,
0.014218587428331375,
-0.08096964657306671,
-0.202314093708992,
0.0976981446146965,
-0.11701797693967819,
0.09608640521764755,
-0.09269244968891144,
0.35239964723587036,
-0.08898564428091049,
0.1439664363861084,
-0.05549120157957077,
-0.04779752716422081,
0.2524556517601013,
0.2699754536151886,
-0.20415548980236053,
0.16875094175338745,
0.030308902263641357,
-0.2895762324333191,
0.01721983030438423,
0.06558211147785187,
0.30421528220176697,
0.08053970336914062,
-0.2911088764667511,
0.1201176792383194,
0.29487329721450806,
0.07223466038703918,
0.0454736202955246,
-0.012031035497784615,
-0.1217372715473175,
0.16137994825839996,
-0.015614520758390427,
0.494870662689209,
0.2002599835395813,
-0.3090686798095703,
0.4006701111793518,
-0.032427165657281876,
0.3457432687282562,
-0.030457422137260437,
0.05596739426255226,
-0.005586795508861542,
-0.029682587832212448,
0.26383987069129944,
0.19787590205669403,
-0.12670916318893433,
0.11028162389993668,
-0.1203785091638565,
-0.08202452212572098,
-0.04440406709909439,
-0.26035982370376587,
0.3358686864376068,
-0.05842917412519455,
-0.10321967303752899,
0.2719579041004181,
-0.33370399475097656,
0.11023756116628647,
0.06331071257591248,
-0.002089366316795349,
0.660057544708252,
-0.6151898503303528,
-0.300229012966156,
-0.3712923228740692,
-0.17743071913719177,
-0.06519642472267151,
-0.1714659035205841,
-0.3542007505893707,
0.05013982206583023,
0.04438120871782303,
0.062221501022577286,
-0.06412789225578308,
0.2548413574695587,
0.32293450832366943,
0.12236407399177551,
-0.2019755095243454,
-0.45484811067581177,
-0.060446448624134064,
0.08948348462581635,
0.08838269114494324,
-0.05646361783146858,
0.5304105877876282,
0.14470654726028442,
-0.3150204122066498,
-0.12226662039756775,
0.5399009585380554,
0.6615060567855835,
0.28592318296432495,
0.09713830053806305,
-0.2560993432998657,
-0.22926965355873108,
0.00994241051375866,
-0.264998197555542,
0.12559431791305542,
0.15156777203083038,
0.10816088318824768,
-0.058122728019952774,
0.05843508988618851,
-0.04179295524954796,
0.04283597692847252,
-0.14702069759368896,
0.06761466711759567,
-0.1739853173494339,
0.3367728888988495,
-0.035660579800605774,
0.15515682101249695,
0.00264735147356987,
0.1935732662677765,
-0.23814812302589417,
0.3953498303890228,
0.1332024782896042,
0.08254032582044601,
0.177198588848114,
0.16772472858428955,
-0.0010882914066314697,
0.0668807327747345,
0.5126700401306152,
0.29181742668151855,
0.15037447214126587,
-0.18541233241558075,
-0.28787124156951904,
-0.1938415914773941,
0.13870035111904144,
0.16637013852596283,
0.2949790954589844,
-0.048884619027376175,
0.18594513833522797,
0.12059799581766129,
0.08942443132400513,
-0.01196606457233429,
-0.14412948489189148,
-0.12153814733028412,
-0.13357751071453094,
-0.18351751565933228,
-0.02500424161553383,
-0.3701714277267456,
-0.19067983329296112,
0.014999758452177048,
-0.3371478021144867,
0.35247349739074707,
-0.14099039137363434,
-0.06371976435184479,
-0.05437280237674713,
-0.21873526275157928,
0.17819562554359436,
-0.22500449419021606,
0.2600576877593994,
0.3480684161186218,
0.3272464871406555,
0.16481125354766846,
-0.3105279207229614,
-0.11078926920890808,
-0.40635472536087036,
0.02375958114862442,
0.1805666983127594,
-0.3148142695426941,
0.31080499291419983,
-0.21335364878177643,
-0.027485441416502,
-0.23380009829998016,
0.26573219895362854,
0.17443226277828217,
-0.34078702330589294,
0.15137653052806854,
-0.13942551612854004,
-0.29183387756347656,
-0.08409608900547028,
0.1667216718196869,
0.487475723028183,
-0.11432887613773346,
0.22222475707530975,
-0.16199061274528503,
-0.2502763271331787,
0.43205198645591736,
-0.31461334228515625,
-0.035678744316101074,
0.01713559776544571,
-0.030336111783981323,
-0.23457321524620056,
-0.05236983299255371,
-0.3275540769100189,
-0.05477938428521156,
-0.07551982998847961,
-0.14531323313713074,
-0.40742242336273193,
0.3302372395992279,
0.24674783647060394,
-0.02924124337732792,
-0.07922729849815369,
0.6571488380432129,
-0.14295744895935059,
0.004196608439087868,
-0.0779263824224472,
-0.033836137503385544
] |
https://github.com/huggingface/datasets/issues/2009 | Ambiguous documentation | Hi @theo-m !
A few lines above this line, you'll find that the `_split_generators` method returns a list of `SplitGenerator`s objects:
```python
datasets.SplitGenerator(
name=datasets.Split.VALIDATION,
# These kwargs will be passed to _generate_examples
gen_kwargs={
"filepath": os.path.join(data_dir, "dev.jsonl"),
"split": "dev",
},
),
```
Notice the `gen_kwargs` argument passed to the constructor of `SplitGenerator`: this dict will be unpacked as keyword arguments to pass to the `_generat_examples` method (in this case the `filepath` and `split` arguments).
Let me know if that helps! | https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158
Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from.
Happy to push a PR with a clearer statement when I understand the meaning. | 79 | Ambiguous documentation
https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158
Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from.
Happy to push a PR with a clearer statement when I understand the meaning.
Hi @theo-m !
A few lines above this line, you'll find that the `_split_generators` method returns a list of `SplitGenerator`s objects:
```python
datasets.SplitGenerator(
name=datasets.Split.VALIDATION,
# These kwargs will be passed to _generate_examples
gen_kwargs={
"filepath": os.path.join(data_dir, "dev.jsonl"),
"split": "dev",
},
),
```
Notice the `gen_kwargs` argument passed to the constructor of `SplitGenerator`: this dict will be unpacked as keyword arguments to pass to the `_generat_examples` method (in this case the `filepath` and `split` arguments).
Let me know if that helps! | [
0.06302551925182343,
-0.055988676846027374,
-0.05370435491204262,
0.10702961683273315,
0.023567887023091316,
0.16932514309883118,
0.3407929837703705,
0.10250920057296753,
-0.14459730684757233,
-0.16507549583911896,
0.08257492631673813,
0.35922035574913025,
0.04754749685525894,
0.022965891286730766,
0.1957676261663437,
-0.22672030329704285,
0.09677010029554367,
0.14181411266326904,
-0.01601780205965042,
-0.15531204640865326,
-0.3404792249202728,
0.26017269492149353,
-0.32861143350601196,
0.3037528991699219,
-0.240535706281662,
-0.21402476727962494,
-0.1296740025281906,
0.3539069890975952,
-0.4259348213672638,
-0.2638631761074066,
0.21498505771160126,
0.17327728867530823,
-0.1561240255832672,
0.19875961542129517,
-0.00011244768393225968,
0.006169721484184265,
0.29457831382751465,
-0.18925286829471588,
-0.1790921837091446,
0.021082855761051178,
-0.3679365813732147,
-0.17750433087348938,
0.028906118124723434,
-0.35336020588874817,
0.1910025179386139,
-0.3274489939212799,
0.036587465554475784,
-0.1565571427345276,
0.5122280716896057,
0.19034352898597717,
0.15557731688022614,
0.023027192801237106,
0.1395212560892105,
-0.18158990144729614,
-0.16110336780548096,
0.5714948773384094,
-0.24545818567276,
-0.11392049491405487,
0.04088359698653221,
0.1185336709022522,
0.06282223761081696,
0.21830780804157257,
0.09054277837276459,
-0.11169102787971497,
0.4655440151691437,
-0.041124846786260605,
-0.21040916442871094,
-0.5389922857284546,
0.09714797139167786,
0.2854475975036621,
0.501854419708252,
-0.26400813460350037,
-0.2595458924770355,
-0.25309789180755615,
-0.18307049572467804,
-0.14830909669399261,
-0.13075056672096252,
0.34721875190734863,
-0.37249526381492615,
-0.010222140699625015,
-0.3185664117336273,
-0.2991984784603119,
-0.26646170020103455,
-0.30254626274108887,
0.14885447919368744,
0.3738006353378296,
-0.15064941346645355,
0.1400252878665924,
0.047317761927843094,
0.12097673118114471,
-0.06526000797748566,
-0.22757357358932495,
0.028453441336750984,
0.492031455039978,
0.03347383439540863,
-0.14789652824401855,
0.22511640191078186,
0.005313359200954437,
0.40099790692329407,
0.2251070886850357,
-0.002608918584883213,
-0.26634204387664795,
0.07310818135738373,
0.1978611946105957,
0.3588045537471771,
-0.20315663516521454,
0.3699662387371063,
0.0002884063869714737,
0.06916683912277222,
0.014731425791978836,
0.22635826468467712,
-0.166926771402359,
0.16841110587120056,
-0.38308894634246826,
0.044941674917936325,
0.03793185204267502,
0.3937675952911377,
-0.11233310401439667,
-0.09585314244031906,
0.04141806438565254,
-0.1373910903930664,
-0.39357051253318787,
0.05582423880696297,
0.04933461919426918,
0.21715186536312103,
-0.002918679267168045,
-0.08906174451112747,
-0.10216587781906128,
-0.12448461353778839,
-0.26166069507598877,
-0.24097716808319092,
0.2836475074291229,
-0.18666690587997437,
0.17430542409420013,
-0.1942203938961029,
-0.20254629850387573,
0.3773420453071594,
0.20094799995422363,
0.2653449475765228,
0.14258746802806854,
0.1070014238357544,
0.18380425870418549,
0.13371197879314423,
0.2818727493286133,
-0.03530928120017052,
0.17374078929424286,
0.2208317071199417,
0.037971146404743195,
-0.3028087913990021,
0.021115723997354507,
-0.41558676958084106,
-0.38428476452827454,
0.04517189785838127,
0.10549965500831604,
-0.27652376890182495,
0.16172298789024353,
-0.20132997632026672,
0.33486440777778625,
0.054600607603788376,
-0.11717231571674347,
0.09207171201705933,
0.010470777750015259,
-0.0390687957406044,
-0.5046522617340088,
0.31237226724624634,
0.4569099545478821,
-0.4068634510040283,
-0.14708620309829712,
-0.19765661656856537,
-0.23949137330055237,
-0.01422039419412613,
0.017830919474363327,
-0.30502286553382874,
0.4071798622608185,
-0.20980410277843475,
0.411105751991272,
0.5502248406410217,
-0.02642717771232128,
0.2617897391319275,
0.4143194854259491,
0.2440982311964035,
0.04009579122066498,
0.19678106904029846,
-0.3653976619243622,
0.12812578678131104,
-0.17263196408748627,
-0.22876092791557312,
0.10942529141902924,
-0.12041997909545898,
-0.21988902986049652,
0.09268151223659515,
0.0025508999824523926,
-0.12289349734783173,
-0.17690154910087585,
-0.11595144867897034,
0.013555973768234253,
0.0102815181016922,
0.19566331803798676,
0.4094668924808502,
-0.23829200863838196,
0.14609986543655396,
0.319618821144104,
0.3091384172439575,
-0.19955040514469147,
0.22278638184070587,
0.05750370770692825,
-0.6098825335502625,
-0.08887365460395813,
0.019351348280906677,
0.1056630089879036,
-0.16841940581798553,
-0.26313722133636475,
-0.39379772543907166,
0.07140383124351501,
-0.24209822714328766,
-0.23682433366775513,
0.11458021402359009,
-0.09829509258270264,
0.2783879041671753,
-0.18276137113571167,
-0.3041558563709259,
-0.017916565760970116,
-0.02067391201853752,
0.07759815454483032,
-0.6391504406929016,
0.1906319260597229,
-0.0363016277551651,
0.15592244267463684,
-0.053046759217977524,
0.04594441503286362,
0.06311840564012527,
-0.23247650265693665,
0.17147493362426758,
0.45879536867141724,
0.41868558526039124,
-0.03339296579360962,
-0.06339973956346512,
0.3129435181617737,
-0.03419940173625946,
-0.02612726390361786,
0.3035818338394165,
-0.043940167874097824,
0.16508544981479645,
0.05736672878265381,
-0.335843563079834,
0.4323941469192505,
-0.2407272309064865,
0.33305829763412476,
0.2003156691789627,
0.020713752135634422,
0.1567842811346054,
0.19186261296272278,
-0.1606840342283249,
-0.11378777027130127,
-0.25596871972084045,
0.20646463334560394,
0.3144344389438629,
0.08097903430461884,
-0.2916630506515503,
0.4554887115955353,
0.5633227825164795,
-0.32601651549339294,
-0.2243342399597168,
0.01928216777741909,
0.019523359835147858,
-0.3728526532649994,
-0.06733827292919159,
0.3394283056259155,
0.530939519405365,
0.024987295269966125,
0.17431212961673737,
0.0886852890253067,
-0.26710638403892517,
-0.22693988680839539,
0.4196884334087372,
0.07941831648349762,
0.061003029346466064,
0.06512657552957535,
-0.5002262592315674,
-0.2657810151576996,
-0.34898144006729126,
-0.15418866276741028,
0.25628989934921265,
0.21850813925266266,
-0.36757755279541016,
0.2802485227584839,
0.06447684019804001,
0.12093543261289597,
-0.2625284492969513,
-0.11413943022489548,
-0.2750663459300995,
-0.5612813234329224,
0.04269176349043846,
-0.029997508972883224,
-0.08988894522190094,
0.045008815824985504,
0.03528525307774544,
0.2285885214805603,
-0.024703845381736755,
0.17709262669086456,
-0.3000348210334778,
-0.1925521343946457,
-0.026237890124320984,
0.10838447511196136,
-0.00443037785589695,
0.019843541085720062,
0.21941311657428741,
-0.16604307293891907,
0.11929835379123688,
-0.26695147156715393,
-0.3701038360595703,
0.2968115210533142,
-0.42685359716415405,
0.28549960255622864,
0.7126976251602173,
0.3422037959098816,
0.04949808865785599,
-0.23328997194766998,
0.050464533269405365,
-0.14689169824123383,
-0.28253278136253357,
-0.20106983184814453,
-0.10710439085960388,
0.07248781621456146,
-0.35479214787483215,
-0.5272269248962402,
0.03417230769991875,
-0.2080564796924591,
0.24928900599479675,
-0.057388827204704285,
0.2517397105693817,
0.28555357456207275,
0.20628634095191956,
0.24444447457790375,
0.08744365721940994,
0.16485808789730072,
-0.16097590327262878,
-0.3166236877441406,
0.2856169044971466,
-0.48654043674468994,
-0.1536630094051361,
0.10324639081954956,
-0.09227573871612549,
0.4634682834148407,
-0.0369102843105793,
-0.10640616714954376,
-0.3701997995376587,
-0.118655264377594,
0.042470548301935196,
0.018697215244174004,
0.38416919112205505,
0.16901558637619019,
-0.027305832132697105,
0.025608709082007408,
-0.36478468775749207,
-0.10001358389854431,
0.05519202724099159,
-0.3473072648048401,
0.1823517382144928,
0.06089268997311592,
0.4155503809452057,
-0.0704483911395073,
0.6626816391944885,
0.3334251046180725,
0.04070725664496422,
-0.05795091390609741,
-0.11775515228509903,
0.481796532869339,
-0.01993025839328766,
-0.16615000367164612,
0.07487103343009949,
0.1015363335609436,
-0.13296380639076233,
0.09534281492233276,
0.09037242829799652,
0.09375067800283432,
0.14870157837867737,
-0.027414649724960327,
-0.26318681240081787,
-0.3521750271320343,
0.12544624507427216,
0.21026356518268585,
0.27742528915405273,
-0.07122628390789032,
0.2989460527896881,
-0.19032426178455353,
0.18211808800697327,
-0.2548034191131592,
0.49085497856140137,
0.614568829536438,
0.08277574926614761,
-0.3357672393321991,
-0.16447994112968445,
-0.34406256675720215,
0.13100244104862213,
-0.0074123814702034,
-0.0851849615573883,
-0.0927436351776123,
-0.12339619547128677,
0.1414814591407776,
-0.14611555635929108,
0.4138369560241699,
-0.34779655933380127,
-0.19352799654006958,
0.15258195996284485,
-0.01632162556052208,
-0.17387892305850983,
0.06592214107513428,
-0.1577225774526596,
0.29363319277763367,
0.17642001807689667,
0.0440504215657711,
-0.5996693968772888,
-0.4980010986328125,
0.1934530884027481,
0.010828734375536442,
-0.20418089628219604,
0.12988120317459106,
-0.15110519528388977,
-0.6448946595191956,
-0.0861666277050972,
-0.13225585222244263,
0.1849900186061859,
0.05452488735318184,
-0.17930768430233002,
0.394792765378952,
0.13125956058502197,
0.12182214111089706,
0.15209859609603882,
0.4695470333099365,
0.30661773681640625,
-0.11204714328050613,
-0.2064916491508484,
0.07654157280921936,
0.11021802574396133,
0.020254645496606827,
0.35728269815444946,
-0.14492513239383698,
-0.24036180973052979,
-0.002213209867477417,
-0.2800564467906952,
0.5578086376190186,
0.2927025556564331,
-0.1902349293231964,
0.034793220460414886,
-0.14908930659294128,
-0.13576865196228027,
-0.2394869327545166,
0.0017742710188031197,
0.38523101806640625,
-0.3035708963871002,
-0.30608275532722473,
-0.8698114156723022,
0.43358781933784485,
0.34809574484825134,
-0.20586225390434265,
0.3483258783817291,
0.3761308789253235,
-0.24766720831394196,
0.05838619917631149,
0.38353240489959717,
0.7816464900970459,
0.43720370531082153,
0.23352448642253876,
0.4435303807258606,
-0.21888740360736847,
0.5801459550857544,
0.05651473253965378,
-0.07854162901639938,
-0.477575421333313,
0.004558863118290901,
-0.219032883644104,
-0.16594348847866058,
0.2511468529701233,
0.3887835741043091,
-0.2179742008447647,
0.19363313913345337,
-0.1872207522392273,
0.06770803034305573,
-0.1618504524230957,
0.22551843523979187,
-0.1253632754087448,
-0.09130242466926575,
-0.20294800400733948,
0.11334007978439331,
0.05698465555906296,
-0.0039101168513298035,
-0.04604542255401611,
-0.2679023742675781,
0.06449542939662933,
-0.4196643829345703,
-0.36844903230667114,
-0.06099584698677063,
0.3079549968242645,
0.0672423392534256,
0.24745923280715942,
-0.22703087329864502,
0.38865354657173157,
0.12021584808826447,
0.2785610556602478,
-0.06698217988014221,
-0.1209644079208374,
0.17906497418880463,
-0.17073729634284973,
0.015560401603579521,
-0.15390406548976898,
0.1677234172821045,
0.4168999493122101,
0.09698119014501572,
-0.054014284163713455,
0.056555598974227905,
-0.15893283486366272,
-0.08833477646112442,
-0.4750368297100067,
0.18106308579444885,
-0.2370457500219345,
-0.5176573395729065,
-0.11484415829181671,
0.08287235349416733,
-0.2824341058731079,
-0.07623070478439331,
0.0554891861975193,
0.24438510835170746,
-0.23205751180648804,
0.29360219836235046,
-0.30239957571029663,
-0.02248130738735199,
0.04890734329819679,
-0.23020070791244507,
0.08625967055559158,
0.03687278926372528,
0.2618044316768646,
0.011295989155769348,
-0.1381823718547821,
-0.32728320360183716,
0.20004016160964966,
0.5726198554039001,
-0.6263508796691895,
0.25644034147262573,
0.2468700408935547,
0.17699886858463287,
0.1548406332731247,
0.17776095867156982,
-0.1841900646686554,
0.343729168176651,
-0.211795374751091,
-0.3027580976486206,
0.03210932016372681,
0.30651283264160156,
-0.22231335937976837,
0.20318925380706787,
0.023401126265525818,
-0.015786033123731613,
0.19777464866638184,
0.11794532090425491,
-0.29932427406311035,
0.11516762524843216,
0.1789739727973938,
0.0359148308634758,
0.20885702967643738,
0.015479601919651031,
0.10032844543457031,
0.07520940899848938,
0.003878183662891388,
-0.05265326052904129,
-0.3928081691265106,
-0.11687333136796951,
-0.21869049966335297,
0.18305806815624237,
-0.028858549892902374,
-0.18771807849407196,
0.14997750520706177,
0.16684465110301971,
-0.42488569021224976,
-0.05393502488732338,
0.3341400623321533,
-0.03730843588709831,
0.05516785383224487,
0.2743197977542877,
0.13238918781280518,
0.1528705656528473,
-0.17300845682621002,
-0.15095441043376923,
0.13436272740364075,
0.42465412616729736,
0.22463053464889526,
0.24329832196235657,
-0.22409768402576447,
-0.08632512390613556,
-0.15762688219547272,
0.48610004782676697,
0.2494947761297226,
-0.08477024734020233,
0.32805684208869934,
0.1216634064912796,
0.08732439577579498,
-0.4062584638595581,
0.4440465271472931,
0.47525233030319214,
-0.01796489581465721,
0.23641158640384674,
-0.05184895917773247,
0.0944417417049408,
-0.06887264549732208,
-0.17883169651031494,
0.15370868146419525,
0.04254062846302986,
0.15134738385677338,
0.3643048107624054,
0.15706245601177216,
0.21816912293434143,
-0.054237499833106995,
-0.246882826089859,
0.5586369037628174,
-0.0006457287818193436,
0.3511783182621002,
0.7551182508468628,
-0.03546025604009628,
0.12356474995613098,
0.28207239508628845,
0.056720227003097534,
0.10680360347032547,
0.1088806539773941,
0.023995067924261093,
0.2393900454044342,
0.06699539721012115,
-0.012341279536485672,
0.2862536609172821,
-0.16195668280124664,
-0.0269898883998394,
0.2715641260147095,
0.04870669171214104,
0.1325714886188507,
-0.026209436357021332,
0.2715279757976532,
-0.06002141162753105,
0.10209614038467407,
-0.24933487176895142,
0.23156878352165222,
0.001593276858329773,
-0.20973004400730133,
-0.45648297667503357,
-0.2576330900192261,
-0.187261164188385,
-0.08493120968341827,
0.060574449598789215,
-0.41154181957244873,
0.3470730185508728,
-0.35003453493118286,
0.28074437379837036,
0.023072943091392517,
0.40158626437187195,
0.011521108448505402,
0.05620565265417099,
-0.048679228872060776,
0.03920433670282364,
0.19394095242023468,
-0.07024164497852325,
0.2330794483423233,
0.404389888048172,
0.4464852213859558,
0.2524721026420593,
0.08699707686901093,
-0.1364700049161911,
-0.13093040883541107,
-0.049408551305532455,
0.0036353208124637604,
0.153779998421669,
-0.3043951988220215,
-0.180019348859787,
0.22088922560214996,
0.15445518493652344,
-0.0029645878821611404,
-0.03888561949133873,
0.198902428150177,
0.07924139499664307,
-0.10732530057430267,
0.5643258094787598,
-0.25656259059906006,
-0.1210436224937439,
-0.007953651249408722,
0.0975218340754509,
-0.35013100504875183,
-0.3489461839199066,
0.27837565541267395,
0.24495013058185577,
0.05251174420118332,
-0.36149123311042786,
0.08282008022069931,
-0.03641325607895851,
0.5925096869468689,
0.02137584239244461,
0.04227862507104874,
-0.1893225759267807,
-0.2608792781829834,
-0.4184710681438446,
-0.19524043798446655,
-0.012075722217559814,
-0.362428218126297,
0.12394057214260101,
0.26397809386253357,
0.05118463560938835,
0.04532080143690109,
-0.11077755689620972,
0.006659081671386957,
-0.06471408158540726,
0.3001202344894409,
-0.2498515099287033,
-0.13998639583587646,
0.09746553003787994,
0.12805742025375366,
-0.11263330280780792,
-0.007093656808137894,
0.10195622593164444,
-0.01054305024445057,
-0.025355448946356773,
-0.08757920563220978,
0.1269019991159439,
0.32888737320899963,
0.3355790376663208,
-0.18880492448806763,
0.24490758776664734,
0.23538526892662048,
-0.08251023292541504,
-0.2910904586315155,
-0.2382965087890625,
0.16945649683475494,
-0.37288224697113037,
0.49299460649490356,
-0.01618625968694687,
0.1797351986169815,
-0.07022050768136978,
-0.2198333591222763,
-0.2998577356338501,
0.20331284403800964,
0.08259811997413635,
-0.09411057084798813,
-0.23726098239421844,
0.24534794688224792,
-0.4747852385044098,
-0.02093643881380558,
0.2546728849411011,
0.3233115077018738,
-0.12943734228610992,
0.0668986365199089,
-0.08583366125822067,
-0.32034334540367126,
0.4812018573284149,
-0.2044387012720108,
-0.30906933546066284,
-0.12414953857660294,
0.059383515268564224,
0.0217447429895401,
-0.31695032119750977,
-0.5852505564689636,
-0.06435328722000122,
0.25322425365448,
-0.11136768013238907,
-0.14046050608158112,
0.12807594239711761,
0.04938434809446335,
-0.2989431917667389,
-0.14534570276737213,
0.1923641860485077,
0.1709427535533905,
-0.3089115619659424,
0.1824215054512024,
-0.17368389666080475
] |
https://github.com/huggingface/datasets/issues/2009 | Ambiguous documentation | Oh ok I hadn't made the connection between those two, will offer a tweak to the comment and the template then - thanks! | https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158
Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from.
Happy to push a PR with a clearer statement when I understand the meaning. | 23 | Ambiguous documentation
https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158
Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from.
Happy to push a PR with a clearer statement when I understand the meaning.
Oh ok I hadn't made the connection between those two, will offer a tweak to the comment and the template then - thanks! | [
0.09075352549552917,
-0.17848263680934906,
-0.0821814015507698,
-0.13477647304534912,
0.20261044800281525,
0.10430439561605453,
0.432101845741272,
0.07421387732028961,
-0.09254398941993713,
-0.1297507882118225,
0.12960973381996155,
0.20715466141700745,
0.014975317753851414,
0.10097212344408035,
0.31267252564430237,
0.03194780647754669,
0.20202189683914185,
0.0814613476395607,
-0.12701602280139923,
-0.18600235879421234,
-0.3509489595890045,
0.12044575810432434,
-0.20264068245887756,
0.2474186271429062,
-0.32143309712409973,
-0.07153885811567307,
-0.09570017457008362,
0.31538888812065125,
-0.38015061616897583,
-0.34720149636268616,
0.3936372399330139,
0.21358847618103027,
-0.11848800629377365,
0.15078721940517426,
-0.0001064841344486922,
0.031334906816482544,
0.4308875799179077,
-0.18483242392539978,
-0.1925986111164093,
0.2388116717338562,
-0.20639759302139282,
-0.24352166056632996,
0.04021339863538742,
-0.3196240961551666,
0.09195467084646225,
-0.2830055356025696,
0.10822103172540665,
-0.04741562902927399,
0.3947281837463379,
0.2065674066543579,
0.2524821162223816,
0.018118489533662796,
0.051402267068624496,
-0.2937711775302887,
-0.021461836993694305,
0.35281652212142944,
-0.2551085948944092,
0.11145493388175964,
0.18928997218608856,
-0.01781921647489071,
-0.22241413593292236,
0.31525638699531555,
0.060358256101608276,
-0.20146490633487701,
0.5262856483459473,
-0.09145994484424591,
0.12537994980812073,
-0.33555155992507935,
0.23067417740821838,
0.19552317261695862,
0.6530068516731262,
-0.28807225823402405,
-0.33906206488609314,
-0.15878021717071533,
-0.01599779725074768,
-0.17256367206573486,
-0.11068334430456161,
0.14561539888381958,
-0.44381874799728394,
0.09858205169439316,
-0.3290771245956421,
-0.29952749609947205,
-0.33813512325286865,
-0.1893775910139084,
0.10415305197238922,
0.3985578417778015,
-0.1467224657535553,
0.028783388435840607,
-0.07981002330780029,
-0.06371045112609863,
0.06064261123538017,
-0.051468901336193085,
-0.062030646950006485,
0.47951647639274597,
0.04752170294523239,
-0.057106517255306244,
0.3913276493549347,
0.307220458984375,
0.48490840196609497,
0.33195120096206665,
0.06475324183702469,
-0.12495731562376022,
0.048213981091976166,
0.12198104709386826,
0.16885694861412048,
-0.09521196782588959,
0.2625269591808319,
-0.19813929498195648,
0.19326728582382202,
0.07168867439031601,
0.2193526327610016,
-0.18510425090789795,
0.16516391932964325,
-0.41401344537734985,
0.09602662920951843,
-0.13826411962509155,
0.32350999116897583,
-0.21935616433620453,
-0.047859568148851395,
0.021295327693223953,
0.1541709303855896,
-0.23298034071922302,
0.003372042439877987,
0.14600032567977905,
0.0977545902132988,
-0.029409125447273254,
-0.026741106063127518,
-0.0824773758649826,
-0.163943812251091,
-0.01777687855064869,
-0.3367515802383423,
0.22821760177612305,
-0.28196293115615845,
0.2159060537815094,
-0.2383444458246231,
-0.10508382320404053,
0.36398452520370483,
0.2932411730289459,
0.2600690722465515,
0.37622880935668945,
-0.11562934517860413,
0.20624999701976776,
0.144138902425766,
0.2639552354812622,
-0.3072514533996582,
0.10146338492631912,
0.1514815241098404,
0.0976407527923584,
-0.2121097445487976,
0.022252138704061508,
-0.33755698800086975,
-0.4068911373615265,
0.033156052231788635,
0.15586432814598083,
-0.2776869535446167,
-0.051716893911361694,
-0.052833594381809235,
0.44353458285331726,
0.12556703388690948,
-0.1862485706806183,
0.043945107609033585,
0.0011062100529670715,
-0.06437452137470245,
-0.4972918927669525,
0.3103570342063904,
0.4556651711463928,
-0.30020925402641296,
-0.20153717696666718,
-0.055629778653383255,
-0.2588975131511688,
0.1801883578300476,
0.18005140125751495,
-0.2338027060031891,
0.11578179895877838,
-0.2990381419658661,
0.2452956885099411,
0.40099647641181946,
-0.030504770576953888,
0.185211181640625,
0.28868675231933594,
0.24084343016147614,
-0.04560364782810211,
0.22818449139595032,
-0.1671770066022873,
-0.1202182024717331,
-0.19614270329475403,
-0.1287865787744522,
-0.07713429629802704,
0.049337126314640045,
-0.1397658884525299,
-0.10344027727842331,
-0.0711306557059288,
-0.07051940262317657,
-0.11752524971961975,
-0.16830585896968842,
0.05475990101695061,
0.0953352227807045,
0.10155383497476578,
0.39323246479034424,
-0.23459351062774658,
0.1285252571105957,
0.34670716524124146,
0.4189895689487457,
-0.12886254489421844,
0.07942090183496475,
0.056517817080020905,
-0.6715266704559326,
-0.046604953706264496,
0.013109106570482254,
0.24239590764045715,
-0.18822051584720612,
-0.24850772321224213,
-0.41491568088531494,
0.0028943773359060287,
-0.04663843289017677,
-0.26503974199295044,
0.14915548264980316,
-0.011379018425941467,
0.1515474170446396,
-0.13663843274116516,
-0.19816070795059204,
-0.0785096138715744,
-0.02824147790670395,
0.011772461235523224,
-0.4073159098625183,
0.1264130026102066,
-0.03086010180413723,
0.05494866520166397,
0.06609394401311874,
0.12116444110870361,
0.14555205404758453,
0.012739061377942562,
0.2302759885787964,
0.3799116313457489,
0.21935860812664032,
0.054494503885507584,
0.1166280135512352,
0.3671432137489319,
-0.11923957616090775,
0.09653997421264648,
0.2640688419342041,
-0.08311253786087036,
0.1438301056623459,
-0.036175768822431564,
-0.30965331196784973,
0.2935362160205841,
0.14550401270389557,
0.1645066738128662,
0.19826611876487732,
-0.08753293007612228,
0.123420849442482,
0.11117525398731232,
-0.143738254904747,
-0.10316064953804016,
-0.23270316421985626,
0.15119114518165588,
0.4141845703125,
0.0949406623840332,
-0.3783423900604248,
0.4364843964576721,
0.2460189312696457,
-0.2534935772418976,
-0.18841996788978577,
0.1434512734413147,
0.0920642539858818,
-0.4229133129119873,
-0.04247146099805832,
-0.008984323590993881,
0.4792379140853882,
0.18189387023448944,
0.23705430328845978,
0.1093304455280304,
-0.28407782316207886,
-0.37408900260925293,
0.2590411305427551,
-0.0067262426018714905,
-0.05516866594552994,
0.024031024426221848,
-0.12590597569942474,
-0.26809272170066833,
-0.29313743114471436,
-0.010390998795628548,
0.06463293731212616,
0.24185128509998322,
-0.42468124628067017,
0.15127885341644287,
0.013872543349862099,
-0.04885834828019142,
-0.2073213905096054,
-0.13205309212207794,
-0.36771589517593384,
-0.576834499835968,
0.06485350430011749,
0.0012627765536308289,
-0.20231014490127563,
0.09996185451745987,
-0.12996476888656616,
0.314982146024704,
0.06950073689222336,
0.2884173095226288,
-0.3500848114490509,
-0.25098979473114014,
0.03565647825598717,
0.15217112004756927,
-0.004658473189920187,
-0.10697094351053238,
0.33288103342056274,
-0.11148985475301743,
0.06817404925823212,
-0.43805596232414246,
-0.5030035972595215,
0.17673301696777344,
-0.33952581882476807,
0.3017330765724182,
0.5701348781585693,
0.4036954641342163,
0.05652422457933426,
-0.08302318304777145,
0.0947984978556633,
-0.17775338888168335,
-0.24369721114635468,
-0.25318098068237305,
-0.16253703832626343,
0.08252610266208649,
-0.3432881236076355,
-0.347371906042099,
-0.03417971730232239,
-0.2782120704650879,
0.2322387993335724,
0.08113506436347961,
0.14934612810611725,
0.45692312717437744,
0.11859764158725739,
0.1602669060230255,
0.04636864364147186,
0.1483183652162552,
-0.2061445564031601,
-0.36140134930610657,
0.35228145122528076,
-0.3719356656074524,
-0.28039076924324036,
0.018698837608098984,
0.04367601126432419,
0.4063163101673126,
-0.02612064778804779,
-0.20847007632255554,
-0.43752408027648926,
-0.09881523996591568,
0.22551080584526062,
0.07955972850322723,
0.46326544880867004,
0.17542316019535065,
-0.12881378829479218,
-0.16906507313251495,
-0.3697238266468048,
-0.1438211351633072,
0.00560605525970459,
-0.532070517539978,
0.1350744664669037,
0.11612631380558014,
0.20165559649467468,
-0.13737253844738007,
0.6183996200561523,
0.18341192603111267,
-0.03933326527476311,
0.08632475137710571,
-0.23570162057876587,
0.6174340844154358,
-0.1425570845603943,
-0.051983900368213654,
0.17157846689224243,
0.0455174595117569,
-0.02954062633216381,
0.2016075700521469,
0.19067829847335815,
0.025224369019269943,
0.04899197816848755,
-0.059111595153808594,
-0.04395994544029236,
-0.375627338886261,
0.03854409605264664,
0.2568567395210266,
0.18771786987781525,
-0.014530724845826626,
0.1676347851753235,
-0.27169474959373474,
0.0075925420969724655,
-0.12250332534313202,
0.4069196581840515,
0.4516637921333313,
0.16845490038394928,
-0.23813553154468536,
0.018700262531638145,
-0.48035579919815063,
0.28030943870544434,
-0.048240505158901215,
-0.05259697884321213,
-0.17322313785552979,
-0.2888434827327728,
0.12352783977985382,
-0.08844850957393646,
0.2902469038963318,
-0.29352813959121704,
-0.252464234828949,
0.17431774735450745,
0.11875087022781372,
-0.3780839145183563,
-0.015643136575818062,
-0.12833748757839203,
0.2648366391658783,
0.26696690917015076,
0.09264858812093735,
-0.5838432908058167,
-0.4488584101200104,
0.08714693039655685,
0.033972855657339096,
-0.09441523253917694,
0.04181012883782387,
-0.2512210011482239,
-0.6246235370635986,
-0.031652528792619705,
-0.13254547119140625,
0.06766112893819809,
-0.08960114419460297,
-0.20216244459152222,
0.35164082050323486,
0.21784773468971252,
0.17411601543426514,
0.13694456219673157,
0.34815502166748047,
0.18630552291870117,
0.058536749333143234,
-0.11715869605541229,
0.03576096519827843,
0.26290905475616455,
0.1564120054244995,
0.3872845768928528,
-0.24500223994255066,
-0.15561817586421967,
-0.09139233827590942,
-0.24306468665599823,
0.503779411315918,
0.4062492549419403,
-0.190799742937088,
0.10119844228029251,
-0.06806229054927826,
-0.05767147243022919,
-0.22235549986362457,
-0.049801137298345566,
0.2901694178581238,
-0.175947368144989,
-0.3967423141002655,
-0.8526318073272705,
0.5501236915588379,
0.2221502661705017,
-0.35092592239379883,
0.12337681651115417,
0.3864322900772095,
-0.2540650963783264,
-0.10425698757171631,
0.2390335202217102,
0.926906168460846,
0.46659815311431885,
0.3813880681991577,
0.567003071308136,
-0.019357096403837204,
0.3943984806537628,
0.27515071630477905,
-0.08544578403234482,
-0.55063396692276,
-0.11212947964668274,
-0.14181499183177948,
-0.11993345618247986,
0.11939243227243423,
0.3322308659553528,
-0.07280582934617996,
0.26126018166542053,
-0.2402740865945816,
0.11520767211914062,
-0.12837553024291992,
-0.011382848024368286,
-0.19960764050483704,
-0.08779314160346985,
-0.33889874815940857,
0.2031571865081787,
0.08033943921327591,
-0.027807895094156265,
-0.1115988940000534,
-0.2137955278158188,
0.038340140134096146,
-0.32418984174728394,
-0.3365105986595154,
-0.011234654113650322,
0.166306272149086,
0.12326464056968689,
0.18985798954963684,
-0.11643759906291962,
0.19515152275562286,
0.06203470379114151,
0.3750988841056824,
-0.06631085276603699,
-0.2711077928543091,
0.14843395352363586,
-0.1516665816307068,
0.032264262437820435,
-0.07261452823877335,
0.20966610312461853,
0.5035310983657837,
-0.015519723296165466,
-0.16644734144210815,
0.07060811668634415,
-0.03751901164650917,
-0.04959958419203758,
-0.532487690448761,
0.003784969449043274,
-0.3056997060775757,
-0.5237840414047241,
-0.2686619162559509,
-0.055267542600631714,
-0.1828411966562271,
-0.10468652844429016,
0.12078757584095001,
0.25441551208496094,
0.04145409166812897,
0.2985796332359314,
-0.1615925133228302,
-0.010248027741909027,
0.013082260265946388,
0.05469942092895508,
-0.08946895599365234,
0.05767375975847244,
0.3235439658164978,
0.055471960455179214,
-0.3141047954559326,
-0.31132060289382935,
-0.002712789922952652,
0.5453401207923889,
-0.5239102840423584,
0.12505558133125305,
0.4224223494529724,
0.18554629385471344,
0.03523044288158417,
0.2699258625507355,
-0.11505100131034851,
0.10455772280693054,
-0.10198095440864563,
-0.24708646535873413,
-0.27669864892959595,
0.3957056403160095,
-0.2152259200811386,
0.28962284326553345,
-0.04203881323337555,
-0.0012258253991603851,
0.21286791563034058,
-0.06500404328107834,
-0.4069843292236328,
-0.06392029672861099,
0.2035139799118042,
-0.03132178634405136,
0.3573606014251709,
0.02835029736161232,
0.16423118114471436,
0.09974269568920135,
0.06171513348817825,
-0.1078161895275116,
-0.4556206464767456,
-0.1732759177684784,
-0.16205981373786926,
0.14704710245132446,
-0.08217263966798782,
-0.19665303826332092,
0.27910304069519043,
0.07279396802186966,
-0.3431847393512726,
-0.03731616213917732,
0.4923645257949829,
0.09392247349023819,
-0.015171028673648834,
0.2618495523929596,
0.04403354600071907,
0.1581650972366333,
0.1447543054819107,
-0.04781823605298996,
0.23076404631137848,
0.27448368072509766,
0.1432129144668579,
0.07818475365638733,
-0.38925477862358093,
-0.11418376863002777,
0.32259488105773926,
0.5643660426139832,
0.23075167834758759,
-0.00749332457780838,
0.21254020929336548,
0.11366891115903854,
-0.012728352099657059,
-0.17723073065280914,
0.37571749091148376,
0.3366525173187256,
-0.14396682381629944,
0.12916341423988342,
0.08737127482891083,
0.19601136445999146,
-0.295981228351593,
-0.1362830102443695,
-0.0016908328980207443,
0.001386510208249092,
0.1935543566942215,
0.29637816548347473,
0.11718019843101501,
0.02321581542491913,
-0.0299493670463562,
-0.16306078433990479,
0.40872201323509216,
-0.1278824359178543,
0.030939308926463127,
0.4737968146800995,
-0.0006788447499275208,
0.045771170407533646,
0.35332822799682617,
0.2377205491065979,
0.0006733611226081848,
0.16270798444747925,
0.022443853318691254,
0.13935571908950806,
0.061435915529727936,
-0.03737599030137062,
-0.00524592399597168,
-0.2839747965335846,
0.015807343646883965,
0.303702175617218,
0.03544079512357712,
0.08365224301815033,
0.05501752346754074,
0.3576849699020386,
0.26737862825393677,
0.07826540619134903,
-0.1751667708158493,
0.2874329388141632,
-0.029082395136356354,
-0.3568980097770691,
-0.28108441829681396,
-0.23414337635040283,
-0.05688244104385376,
-0.20312993228435516,
-0.056024570018053055,
-0.3469703793525696,
0.39625513553619385,
-0.2842957377433777,
0.3317701816558838,
-0.026289308443665504,
0.25268322229385376,
0.030822157859802246,
0.21388380229473114,
0.019182424992322922,
0.10567039251327515,
0.34387916326522827,
-0.09203843772411346,
0.3848395049571991,
0.4586820900440216,
0.6834431886672974,
0.23319564759731293,
0.24563062191009521,
-0.11297155916690826,
-0.1820152997970581,
-0.033870961517095566,
-0.0387643426656723,
0.1852029263973236,
-0.11104421317577362,
-0.1605173647403717,
0.29984697699546814,
0.18130017817020416,
-0.0675622895359993,
0.15903609991073608,
0.19811253249645233,
0.1491735428571701,
-0.12069371342658997,
0.4673970937728882,
-0.16421671211719513,
-0.25682780146598816,
-0.16327455639839172,
0.20033304393291473,
-0.34647199511528015,
-0.14833952486515045,
0.24936620891094208,
0.2265753597021103,
0.09908683598041534,
-0.2746402323246002,
0.13393133878707886,
0.12539106607437134,
0.7037278413772583,
0.1380409598350525,
0.054493702948093414,
-0.07642242312431335,
-0.18340203166007996,
-0.5739237666130066,
-0.17663344740867615,
0.11146984994411469,
-0.45779940485954285,
0.0147805605083704,
-0.028478603810071945,
0.1749308854341507,
-0.05768681317567825,
-0.022851675748825073,
-0.05760211870074272,
0.08306583762168884,
0.05209258943796158,
-0.34599632024765015,
-0.042947571724653244,
-0.016525238752365112,
0.05580068379640579,
-0.045507945120334625,
-0.03073183260858059,
0.07581735402345657,
-0.043528903275728226,
0.09064004570245743,
-0.048840299248695374,
0.2820125222206116,
0.1464834064245224,
0.31402936577796936,
-0.04890449345111847,
0.2010912299156189,
0.40745970606803894,
-0.15195679664611816,
-0.323445588350296,
-0.39138567447662354,
-0.06761316955089569,
-0.3365277647972107,
0.42398613691329956,
-0.02040981873869896,
0.035030853003263474,
-0.05162682384252548,
-0.4418339431285858,
-0.19301562011241913,
0.39307570457458496,
0.0923602432012558,
-0.18007098138332367,
-0.17328597605228424,
0.24957171082496643,
-0.2952673137187958,
-0.2162279486656189,
0.038937199860811234,
0.2992437481880188,
-0.08709828555583954,
-0.017105940729379654,
-0.04397691413760185,
-0.538633406162262,
0.7789413928985596,
-0.28154969215393066,
-0.2707867920398712,
-0.14146755635738373,
0.17809638381004333,
-0.0699509009718895,
-0.2371913492679596,
-0.6841175556182861,
0.11797485500574112,
0.18550705909729004,
0.07755272090435028,
-0.2221452295780182,
0.22765880823135376,
-0.18036161363124847,
-0.27494174242019653,
-0.1646127700805664,
0.22494298219680786,
0.1434909701347351,
-0.2990718483924866,
-0.05709891766309738,
-0.2372342050075531
] |
https://github.com/huggingface/datasets/issues/2007 | How to not load huggingface datasets into memory | So maybe a summary here:
If I could fit a large model with batch_size = X into memory, is there a way I could train this model for huge datasets with keeping setting the same? thanks | Hi
I am running this example from transformers library version 4.3.3:
(Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box)
USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir
(Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py)
If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory.
I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size?
In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set.
thank you so much @lhoestq for your great help in advance
| 36 | How to not load huggingface datasets into memory
Hi
I am running this example from transformers library version 4.3.3:
(Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box)
USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir
(Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py)
If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory.
I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size?
In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set.
thank you so much @lhoestq for your great help in advance
So maybe a summary here:
If I could fit a large model with batch_size = X into memory, is there a way I could train this model for huge datasets with keeping setting the same? thanks | [
-0.15727373957633972,
-0.5049943923950195,
0.006041053682565689,
0.530024528503418,
0.5585089921951294,
0.0471687987446785,
0.07906781136989594,
0.2601298391819,
0.39253249764442444,
0.11795051395893097,
-0.02501250058412552,
-0.2572227120399475,
-0.3355436325073242,
0.35029545426368713,
0.07988368719816208,
-0.16710662841796875,
0.04809720069169998,
-0.009338565170764923,
-0.49065056443214417,
0.081441730260849,
-0.25675326585769653,
-0.0583377480506897,
0.023544609546661377,
-0.34964895248413086,
-0.3608570396900177,
0.07815966755151749,
0.08022257685661316,
0.06284505873918533,
0.015036427415907383,
-0.0004082852974534035,
0.02733139507472515,
-0.07058250904083252,
0.1996215432882309,
0.4450719356536865,
-0.00012403006257954985,
0.09557175636291504,
0.10588602721691132,
-0.34305045008659363,
-0.011349944397807121,
-0.020234212279319763,
-0.040181778371334076,
-0.15849095582962036,
0.17591111361980438,
-0.09605579078197479,
-0.12496572732925415,
0.16420361399650574,
0.057076118886470795,
-0.11926798522472382,
0.6155751347541809,
0.03770478442311287,
0.08119750022888184,
0.1557733565568924,
-0.1867886185646057,
0.13917167484760284,
0.09970573335886002,
0.17155113816261292,
0.06137080490589142,
0.19247031211853027,
-0.11176504194736481,
0.08047348260879517,
-0.020596608519554138,
0.3296138048171997,
-0.15510337054729462,
-0.1606426239013672,
0.3712909519672394,
-0.029681921005249023,
0.09771372377872467,
-0.4963966906070709,
0.06988483667373657,
0.22780746221542358,
0.33271029591560364,
-0.18467360734939575,
-0.2815984785556793,
-0.237673819065094,
-0.26649123430252075,
-0.2981759309768677,
0.03562226891517639,
0.3874962031841278,
-0.16271217167377472,
0.19529207050800323,
-0.5647274851799011,
-0.35832479596138,
-0.11733018606901169,
-0.07937963306903839,
0.01709412783384323,
-0.1479901373386383,
-0.11177365481853485,
0.09310135245323181,
0.38867688179016113,
-0.174827441573143,
-0.3857385814189911,
0.053506430238485336,
0.12446562945842743,
0.20218263566493988,
-0.4465094804763794,
-0.27542486786842346,
-0.09813336282968521,
-0.012656964361667633,
0.5197054743766785,
0.06968298554420471,
-0.08406480401754379,
0.143550306558609,
0.3678041398525238,
-0.012456826865673065,
0.25592905282974243,
0.2244562804698944,
-0.35794082283973694,
-0.022691890597343445,
0.3058370351791382,
0.15482260286808014,
0.06663581728935242,
-0.09808152168989182,
-0.04837925732135773,
-0.1039825901389122,
-0.11875218152999878,
-0.2178410291671753,
0.19384296238422394,
-0.24720874428749084,
0.11519508808851242,
-0.1014176681637764,
-0.0034153051674365997,
0.14570511877536774,
-0.0707058236002922,
0.5723401308059692,
-0.10757799446582794,
0.24478796124458313,
-0.054705940186977386,
0.13190819323062897,
-0.40477150678634644,
0.019962027668952942,
-0.17323102056980133,
0.18087957799434662,
-0.25497815012931824,
0.31285494565963745,
0.3761708438396454,
0.10773520171642303,
0.3884444236755371,
-0.12955549359321594,
0.06677696108818054,
-0.07200618833303452,
0.02009993977844715,
-0.31847450137138367,
0.07431437820196152,
0.4120982587337494,
0.051430124789476395,
0.10466783493757248,
0.052558012306690216,
0.2978252172470093,
-0.21429932117462158,
0.30478212237358093,
-0.18778729438781738,
-0.3000200390815735,
0.46475085616111755,
0.02609049156308174,
-0.3193109631538391,
0.2963603138923645,
-0.5062674880027771,
0.23296505212783813,
0.1344289481639862,
0.21492046117782593,
0.026302166283130646,
0.06527054309844971,
-0.38897210359573364,
-0.09688777476549149,
0.44458693265914917,
0.7276226282119751,
-0.08710236847400665,
-0.37357646226882935,
0.262514591217041,
-0.09192225337028503,
0.09987334907054901,
0.6178454756736755,
-0.014416510239243507,
0.026505708694458008,
0.006340581923723221,
-0.33653390407562256,
0.09796079993247986,
-0.14028331637382507,
-0.36936846375465393,
0.24711085855960846,
-0.2083164006471634,
0.1737019419670105,
0.26348674297332764,
0.19606752693653107,
-0.1570899784564972,
0.12543128430843353,
-0.014241859316825867,
0.4411007761955261,
0.02681969664990902,
0.24726122617721558,
-0.13989640772342682,
-0.5316048264503479,
0.12084835022687912,
0.21063928306102753,
0.22566509246826172,
0.057257018983364105,
-0.15098348259925842,
0.5526142120361328,
0.08866719901561737,
-0.1365782767534256,
0.1413094699382782,
0.4671056866645813,
-0.044081348925828934,
-0.1722709983587265,
-0.013390244916081429,
0.032729439437389374,
-0.509432852268219,
0.20024555921554565,
-0.2553114593029022,
0.03257349506020546,
-0.10795633494853973,
-0.010128788650035858,
0.048686668276786804,
-0.09302262216806412,
0.1028229370713234,
-0.19377705454826355,
-0.09281612932682037,
-0.3027760982513428,
0.186807781457901,
-0.07716552168130875,
-0.05798057094216347,
0.16187047958374023,
0.05336925387382507,
0.2806994616985321,
-0.6293306946754456,
-0.18641388416290283,
0.08767009526491165,
-0.08234021067619324,
0.05092161148786545,
0.08698979020118713,
-0.05717039108276367,
-0.07526139914989471,
0.11553830653429031,
0.1845797896385193,
0.06814039498567581,
0.0221206396818161,
-0.28768783807754517,
0.5894076824188232,
0.2645469307899475,
-0.21517819166183472,
0.18737606704235077,
0.05682430788874626,
0.08076003193855286,
-0.01679828390479088,
-0.22811242938041687,
0.27560651302337646,
0.0014030113816261292,
0.3533555269241333,
0.06751814484596252,
-0.24337516725063324,
-0.015375221148133278,
-0.2704687714576721,
-0.09662599861621857,
-0.31890830397605896,
0.19481828808784485,
0.37012580037117004,
0.29049864411354065,
0.31809550523757935,
-0.10975544899702072,
-0.6400546431541443,
0.4141537845134735,
0.028523094952106476,
0.011982355266809464,
0.1240222305059433,
-0.4441155195236206,
-0.044127874076366425,
-0.10439686477184296,
-0.42976975440979004,
0.20829495787620544,
0.22344090044498444,
-0.028632428497076035,
0.15743732452392578,
0.45329737663269043,
-0.03835580125451088,
0.15972764790058136,
0.34957432746887207,
0.22938691079616547,
-0.0217219740152359,
0.07189829647541046,
-0.15233655273914337,
-0.13772928714752197,
0.14743874967098236,
0.04160924255847931,
-0.2868332266807556,
-0.3908240497112274,
0.04969785362482071,
-0.1045076921582222,
-0.18144169449806213,
-0.22128598392009735,
0.24574227631092072,
-0.46828892827033997,
0.14058268070220947,
-0.024312831461429596,
0.18286077678203583,
-0.0790768563747406,
0.12983502447605133,
0.1344468593597412,
0.44912469387054443,
0.2074003517627716,
-0.3838287889957428,
0.039886802434921265,
0.021067695692181587,
0.02687744051218033,
-0.019807282835245132,
0.1581050455570221,
-0.18727116286754608,
0.2134440541267395,
0.10741042345762253,
-0.2879979610443115,
0.08815018087625504,
-0.10725240409374237,
0.2509254217147827,
-0.10202760994434357,
0.3402297794818878,
-0.11454284191131592,
0.172845259308815,
0.18165817856788635,
0.04741693660616875,
-0.10805210471153259,
-0.17352540791034698,
-0.039493270218372345,
0.0962267816066742,
0.05922889709472656,
0.38141483068466187,
-0.20717254281044006,
-0.1616586148738861,
-0.06306495517492294,
-0.4113835394382477,
0.5235686898231506,
0.1085386872291565,
-0.014470301568508148,
0.3826696276664734,
0.25277239084243774,
0.05536075681447983,
-0.232366681098938,
0.24397563934326172,
-0.04540419206023216,
-0.18669384717941284,
0.4161207973957062,
-0.02489401400089264,
-0.2029862105846405,
0.10085785388946533,
-0.11281498521566391,
0.15960010886192322,
0.2732198238372803,
-0.5897435545921326,
-0.02668577805161476,
-0.2009778916835785,
-0.3303197920322418,
-0.001695249229669571,
0.19105128943920135,
0.21520483493804932,
-0.38499879837036133,
0.05670372396707535,
0.10275272279977798,
-0.054118916392326355,
0.10806150734424591,
-0.02179444581270218,
0.3186086118221283,
0.13368138670921326,
0.5374335050582886,
-0.07030995935201645,
0.8954890966415405,
0.08737382292747498,
0.23482440412044525,
0.059182338416576385,
0.012794272974133492,
0.18766334652900696,
-0.12136339396238327,
0.03188173472881317,
-0.10254370421171188,
-0.11589822173118591,
-0.17615683376789093,
0.2353009730577469,
-0.009106015786528587,
0.140272855758667,
-0.21118026971817017,
-0.11607138812541962,
0.20837515592575073,
-0.3471630811691284,
0.3769296705722809,
0.027289489284157753,
0.08529756963253021,
-0.06752189993858337,
-0.0631655752658844,
0.023664403706789017,
-0.23260468244552612,
0.04978503659367561,
0.09128738194704056,
0.2584248483181,
0.16410981118679047,
-0.13996551930904388,
-0.037739355117082596,
-0.6823827624320984,
0.04728974401950836,
-0.162850484251976,
0.07054901123046875,
-0.01183430477976799,
-0.362876296043396,
-0.10110558569431305,
0.1495698094367981,
0.7003588080406189,
0.20931214094161987,
-0.0992954671382904,
-0.15137068927288055,
-0.6746295094490051,
-0.3832983374595642,
0.008754953742027283,
-0.19946317374706268,
-0.1459486335515976,
0.13363827764987946,
0.33630210161209106,
-0.2980455458164215,
-0.1955035775899887,
0.14031103253364563,
0.22183562815189362,
-0.2850462794303894,
-0.1815047562122345,
-0.4925498366355896,
-0.006113648414611816,
-0.4370339512825012,
0.11374780535697937,
0.34733274579048157,
0.08877626806497574,
-0.1772833913564682,
0.06353279948234558,
-0.04171818494796753,
-0.04148175194859505,
0.39546895027160645,
-0.007948599755764008,
0.25316476821899414,
0.005849265493452549,
-0.05065381899476051,
0.110976442694664,
0.0996195524930954,
-0.007509838789701462,
0.6166418790817261,
0.2945857048034668,
-0.24603942036628723,
0.19506853818893433,
0.22993426024913788,
0.4992126524448395,
0.21860916912555695,
-0.07312718033790588,
0.060115449130535126,
0.18478597700595856,
0.33941417932510376,
-0.41471147537231445,
0.3623574674129486,
-0.05751553177833557,
-0.1000477746129036,
-0.24852661788463593,
-0.26424074172973633,
0.5508928894996643,
0.27322572469711304,
0.16027913987636566,
-0.06582070887088776,
-0.09297092258930206,
-0.32202523946762085,
0.28225773572921753,
0.14270265400409698,
0.91837477684021,
-0.23077978193759918,
0.42099398374557495,
0.09391764551401138,
0.3291243314743042,
0.4919905960559845,
-0.3209998607635498,
0.26286581158638,
-0.18502365052700043,
-0.3845910429954529,
0.05418642610311508,
-0.24255946278572083,
-0.08958334475755692,
0.20866449177265167,
-0.10838067531585693,
0.5269126296043396,
0.003923743963241577,
0.055905066430568695,
-0.035892851650714874,
0.2178511917591095,
0.0480002760887146,
-0.5682685375213623,
-0.39843958616256714,
-0.03150966763496399,
0.018267877399921417,
0.05490582436323166,
-0.09108271449804306,
0.019643066450953484,
0.3000822067260742,
-0.2966688275337219,
0.09157581627368927,
0.04705936461687088,
-0.625985860824585,
-0.0620194748044014,
-0.13735470175743103,
0.04000009596347809,
0.26743075251579285,
0.1379140466451645,
-0.07572786509990692,
0.3967711329460144,
-0.19718267023563385,
-0.13525380194187164,
-0.23231083154678345,
-0.028518877923488617,
-0.23190587759017944,
0.136667400598526,
0.2972685694694519,
0.08818892389535904,
-0.07165121287107468,
0.09053604304790497,
-0.042404256761074066,
0.005207754671573639,
-0.06771782040596008,
-0.3298543691635132,
-0.13585743308067322,
-0.24937854707241058,
-0.20009754598140717,
-0.03529919683933258,
-0.00611208938062191,
0.1681886911392212,
0.024074535816907883,
-0.014476679265499115,
-0.22601379454135895,
0.1662594974040985,
0.17553995549678802,
-0.4944986402988434,
-0.19151711463928223,
0.6306122541427612,
0.05814625322818756,
-0.13181057572364807,
0.3846065104007721,
0.2682068943977356,
0.01563144475221634,
-0.10551384836435318,
-0.08018457144498825,
0.45317980647087097,
-0.4024274945259094,
0.2040715217590332,
0.13347452878952026,
-0.16697871685028076,
-0.23008714616298676,
0.17605715990066528,
0.07834640145301819,
-0.2996072769165039,
0.03955588862299919,
-0.0767427533864975,
-0.6522597670555115,
0.5526911616325378,
-0.16008344292640686,
0.14572405815124512,
0.22107380628585815,
0.009822900407016277,
-0.10010223835706711,
0.3121771216392517,
-0.17713209986686707,
-0.12391898781061172,
-0.2733042538166046,
0.026500413194298744,
0.15477252006530762,
-0.16643977165222168,
0.26669231057167053,
0.16077230870723724,
-0.07165338099002838,
0.18320198357105255,
-0.22983573377132416,
-0.14425748586654663,
-0.008322784677147865,
0.1810941845178604,
-0.012727782130241394,
0.0924254059791565,
-0.027355775237083435,
-0.006377397105097771,
0.012506281957030296,
-0.1734694242477417,
0.6875866651535034,
0.0699368417263031,
0.18867725133895874,
0.08078644424676895,
0.0989772230386734,
0.025180432945489883,
-0.38382774591445923,
0.12728138267993927,
0.06434597074985504,
0.12450630962848663,
0.3593580424785614,
0.04593953490257263,
0.041266780346632004,
-0.00361594557762146,
-0.43445974588394165,
-0.01193317025899887,
0.4488798975944519,
-0.13604530692100525,
-0.020009465515613556,
-0.08392471075057983,
-0.28616687655448914,
0.20592710375785828,
0.06951963901519775,
0.16057270765304565,
-0.2592911422252655,
-0.0067384084686636925,
0.14794212579727173,
0.06309488415718079,
-0.07582567632198334,
0.006252172403037548,
0.1269005686044693,
-0.34145528078079224,
0.010447319597005844,
0.6033744215965271,
0.16430629789829254,
0.043260201811790466,
0.0644860565662384,
0.12934264540672302,
0.2971192002296448,
0.04887298867106438,
0.07112850248813629,
0.06000354140996933,
0.016528043895959854,
0.02234721928834915,
0.3840656280517578,
0.4498665928840637,
0.42909857630729675,
0.15331962704658508,
-0.015200875699520111,
0.2711752653121948,
-0.6284007430076599,
0.22733251750469208,
-0.1653495728969574,
-0.5089746117591858,
-0.3248387277126312,
0.42847704887390137,
-0.21222755312919617,
0.12089288234710693,
-0.47001904249191284,
0.0007581636309623718,
0.3411903977394104,
-0.18159887194633484,
-0.2354869395494461,
0.20560823380947113,
-0.2333945333957672,
-0.16250255703926086,
0.20383384823799133,
-0.04102708026766777,
-0.24419811367988586,
0.3038100600242615,
0.05284300819039345,
-0.36026275157928467,
0.23834408819675446,
0.2009582817554474,
-0.09193871915340424,
0.18403637409210205,
-0.040934301912784576,
0.38671088218688965,
-0.010936655104160309,
-0.34428438544273376,
0.08566002547740936,
0.16586460173130035,
0.13663311302661896,
-0.03885599598288536,
0.09826290607452393,
0.09759742021560669,
0.03750040754675865,
-0.09688034653663635,
-0.013248755596578121,
0.2822805345058441,
0.0023821257054805756,
-0.1933211088180542,
0.18972881138324738,
0.17482827603816986,
0.5260710716247559,
0.027138322591781616,
0.0026785656809806824,
-0.023128848522901535,
-0.030111175030469894,
0.007849637418985367,
0.13321076333522797,
-0.40830928087234497,
0.11059389263391495,
0.32159581780433655,
0.012032903730869293,
-0.22426453232765198,
0.1360994130373001,
-0.5450911521911621,
0.1193033829331398,
0.3821803629398346,
-0.3217528462409973,
0.09505295753479004,
0.10023719817399979,
-0.003294778987765312,
-0.22482062876224518,
0.6864810585975647,
0.1166607066988945,
0.08426149189472198,
-0.5442641377449036,
0.18974409997463226,
-0.1960075944662094,
0.028714880347251892,
-0.06128455325961113,
0.38671255111694336,
0.14481191337108612,
0.2428368180990219,
-0.036457858979701996,
0.17842014133930206,
-0.4886820316314697,
-0.08894635736942291,
-0.3430786728858948,
-0.154451385140419,
-0.1451510339975357,
-0.15041722357273102,
-0.4410775303840637,
0.33653685450553894,
0.14525499939918518,
-0.17598477005958557,
0.07398878037929535,
-0.12769433856010437,
-0.2232111096382141,
-0.11746196448802948,
-0.017043929547071457,
-0.03724459558725357,
0.31462761759757996,
0.21628817915916443,
0.10405122488737106,
0.16226711869239807,
-0.14833539724349976,
-0.18568231165409088,
-0.1942177712917328,
-0.03626175597310066,
-0.24063459038734436,
-0.24034175276756287,
-0.034779634326696396,
0.24314358830451965,
-0.274526447057724,
0.05260207876563072,
-0.25900211930274963,
0.07304241508245468,
-0.014621339738368988,
-0.30162185430526733,
0.09456697851419449,
-0.12221315503120422,
0.08139308542013168,
0.2626316249370575,
0.17979282140731812,
0.3855157494544983,
-0.20103251934051514,
-0.0622672364115715,
-0.17282849550247192,
-0.02521969936788082,
0.4078328013420105,
-0.2210170328617096,
-0.16230395436286926,
-0.22039248049259186,
0.2522370219230652,
-0.18054357171058655,
-0.07965210825204849,
-0.5692533850669861,
0.2579887807369232,
0.04816799983382225,
0.15227089822292328,
-0.37005576491355896,
0.4148766100406647,
-0.09361794590950012,
-0.11562445759773254,
-0.2093273550271988,
0.13172803819179535,
-0.014187291264533997,
-0.151517853140831,
-0.2511226534843445,
-0.37917935848236084
] |
https://github.com/huggingface/datasets/issues/2007 | How to not load huggingface datasets into memory | The `datastets` library doesn't load datasets into memory. Therefore you can load a dataset that is terabytes big without filling up your RAM.
The only thing that's loaded into memory during training is the batch used in the training step.
So as long as your model works with batch_size = X, then you can load an even bigger dataset and it will work as well with the same batch_size.
Note that you still have to take into account that some batches take more memory than others, depending on the texts lengths. If it works for a batch with batch_size = X and with texts of maximum length, then it will work for all batches.
In your case I guess that there are a few long sentences in the dataset. For those long sentences you get a memory error on your GPU because they're too long. By passing `max_train_samples` you may have taken a subset of the dataset that only contain short sentences. That's probably why in your case it worked only when you set `max_train_samples`.
I'd suggest you to reduce the batch size so that the batches with long sentences can be loaded on the GPU.
Let me know if that helps or if you have other questions | Hi
I am running this example from transformers library version 4.3.3:
(Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box)
USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir
(Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py)
If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory.
I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size?
In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set.
thank you so much @lhoestq for your great help in advance
| 208 | How to not load huggingface datasets into memory
Hi
I am running this example from transformers library version 4.3.3:
(Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box)
USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir
(Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py)
If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory.
I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size?
In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set.
thank you so much @lhoestq for your great help in advance
The `datastets` library doesn't load datasets into memory. Therefore you can load a dataset that is terabytes big without filling up your RAM.
The only thing that's loaded into memory during training is the batch used in the training step.
So as long as your model works with batch_size = X, then you can load an even bigger dataset and it will work as well with the same batch_size.
Note that you still have to take into account that some batches take more memory than others, depending on the texts lengths. If it works for a batch with batch_size = X and with texts of maximum length, then it will work for all batches.
In your case I guess that there are a few long sentences in the dataset. For those long sentences you get a memory error on your GPU because they're too long. By passing `max_train_samples` you may have taken a subset of the dataset that only contain short sentences. That's probably why in your case it worked only when you set `max_train_samples`.
I'd suggest you to reduce the batch size so that the batches with long sentences can be loaded on the GPU.
Let me know if that helps or if you have other questions | [
-0.15187671780586243,
-0.5147151947021484,
0.033216334879398346,
0.49745243787765503,
0.5210771560668945,
0.013915441930294037,
0.11802709102630615,
0.23573315143585205,
0.4079456627368927,
0.18799631297588348,
0.007619410753250122,
-0.20288456976413727,
-0.28504717350006104,
0.34070292115211487,
0.08864274621009827,
-0.10324917733669281,
0.05328161269426346,
0.08662518858909607,
-0.5714517831802368,
0.0523507222533226,
-0.27374130487442017,
-0.01612705923616886,
0.01597234606742859,
-0.36415767669677734,
-0.38865363597869873,
0.1600886583328247,
0.062486350536346436,
0.11862477660179138,
-0.009863950312137604,
-0.0714210644364357,
0.1428128033876419,
-0.03939478471875191,
0.17701704800128937,
0.43724915385246277,
-0.00012698218051809818,
0.10796467959880829,
0.13809484243392944,
-0.3148224651813507,
-0.030641114339232445,
-0.032229676842689514,
-0.004192017018795013,
-0.20592822134494781,
0.2809610962867737,
-0.17894014716148376,
-0.15039417147636414,
0.1292395293712616,
-0.004397144541144371,
-0.1768302619457245,
0.6732688546180725,
0.08668868243694305,
0.05895335227251053,
0.153540700674057,
-0.2452387809753418,
0.16674409806728363,
0.15763428807258606,
0.19760851562023163,
0.0586230531334877,
0.11640024185180664,
-0.10491667687892914,
0.10343238711357117,
0.030460625886917114,
0.3367857038974762,
-0.2480972558259964,
-0.12710361182689667,
0.4123450517654419,
0.003317883238196373,
0.017605651170015335,
-0.4697834551334381,
0.10207781940698624,
0.2507307231426239,
0.4073416590690613,
-0.22392308712005615,
-0.21384429931640625,
-0.279468834400177,
-0.3462490141391754,
-0.24460852146148682,
0.1370270699262619,
0.30818435549736023,
-0.14336954057216644,
0.21125318109989166,
-0.5356811881065369,
-0.34743091464042664,
-0.11709512770175934,
-0.03916139155626297,
0.061094775795936584,
-0.14115361869335175,
-0.11476871371269226,
0.11860816925764084,
0.4361446499824524,
-0.16695518791675568,
-0.33585771918296814,
-0.0003865044564008713,
0.1707519292831421,
0.22306819260120392,
-0.5019466280937195,
-0.31632471084594727,
-0.06577277928590775,
-0.10572592169046402,
0.47211021184921265,
0.1215851679444313,
-0.07960895448923111,
0.09369951486587524,
0.32990893721580505,
0.009158607572317123,
0.28490185737609863,
0.1574462205171585,
-0.3003251254558563,
-0.007296587340533733,
0.2969490885734558,
0.14906901121139526,
0.14342986047267914,
-0.11053202301263809,
-0.033379729837179184,
-0.05073798447847366,
-0.20474931597709656,
-0.25915464758872986,
0.28458523750305176,
-0.278202086687088,
0.079459547996521,
-0.08929962664842606,
-0.03431011736392975,
0.17012625932693481,
-0.06992418318986893,
0.5180566310882568,
-0.08270470798015594,
0.3102355897426605,
-0.007110588252544403,
0.13159704208374023,
-0.43387389183044434,
0.014576920308172703,
-0.19417992234230042,
0.2515982687473297,
-0.22401969134807587,
0.3322901129722595,
0.41166776418685913,
0.04992823302745819,
0.37970370054244995,
-0.0956689789891243,
0.06745841354131699,
-0.07631254196166992,
0.07966390252113342,
-0.32358112931251526,
0.12391368299722672,
0.4826914668083191,
0.035579029470682144,
0.19510716199874878,
0.07251710444688797,
0.1766028106212616,
-0.21363237500190735,
0.39688703417778015,
-0.23072996735572815,
-0.2883966267108917,
0.363097220659256,
0.005372645799070597,
-0.4209285378456116,
0.29041823744773865,
-0.5321798920631409,
0.26642948389053345,
0.12232889235019684,
0.2021842747926712,
0.0557633712887764,
0.0789671465754509,
-0.39844614267349243,
-0.08628054708242416,
0.4873937666416168,
0.8010218739509583,
-0.1476060152053833,
-0.3931116461753845,
0.1329435408115387,
-0.10045848786830902,
0.19597716629505157,
0.572510838508606,
-0.014280328527092934,
0.0148477703332901,
-0.014455903321504593,
-0.21403513848781586,
0.07092562317848206,
-0.14157789945602417,
-0.35443446040153503,
0.28426995873451233,
-0.1708962321281433,
0.17428311705589294,
0.25948646664619446,
0.2458408772945404,
-0.09268519282341003,
0.13570468127727509,
-0.10187894105911255,
0.37446749210357666,
0.06811325252056122,
0.22523552179336548,
-0.12717919051647186,
-0.5379963517189026,
0.2040787786245346,
0.21697041392326355,
0.20226295292377472,
0.08728793263435364,
-0.13509401679039001,
0.6384109258651733,
0.023844733834266663,
-0.12332265079021454,
0.1502554714679718,
0.5214673280715942,
-0.02977263554930687,
-0.09621496498584747,
-0.010851812548935413,
-0.06479333341121674,
-0.5006048679351807,
0.19892609119415283,
-0.0586792454123497,
0.0444425605237484,
-0.1048353910446167,
0.0006820596754550934,
0.0573623925447464,
-0.12732595205307007,
0.09570037573575974,
-0.17718592286109924,
-0.1211930587887764,
-0.2916913628578186,
0.1514544039964676,
-0.13470298051834106,
-0.09034669399261475,
0.1488623470067978,
-0.05840713530778885,
0.29728513956069946,
-0.6091175675392151,
-0.10886739194393158,
0.1102919802069664,
-0.12348699569702148,
0.025995761156082153,
0.12480440735816956,
-0.0882154330611229,
-0.08458476513624191,
0.10677893459796906,
0.24150261282920837,
0.11241989582777023,
0.01783934235572815,
-0.2222641110420227,
0.6307321786880493,
0.24343107640743256,
-0.31276991963386536,
0.1205127015709877,
0.06976677477359772,
0.12512695789337158,
0.02526102215051651,
-0.17859581112861633,
0.19503960013389587,
-0.13313746452331543,
0.3484588861465454,
0.00585705041885376,
-0.23014356195926666,
-0.03588014468550682,
-0.24957644939422607,
-0.12386523187160492,
-0.31752052903175354,
0.22977061569690704,
0.3747279942035675,
0.315951943397522,
0.38226285576820374,
-0.13016420602798462,
-0.6248888969421387,
0.4318440854549408,
-0.00199231319129467,
0.007369175553321838,
0.14880630373954773,
-0.4452288746833801,
-0.08009277284145355,
-0.059690117835998535,
-0.37476441264152527,
0.20527885854244232,
0.22007593512535095,
-0.013582918792963028,
0.13069164752960205,
0.4082517921924591,
-0.051336921751499176,
0.16274917125701904,
0.34937578439712524,
0.14887376129627228,
-0.05484548956155777,
-0.031260255724191666,
-0.15416014194488525,
-0.19042113423347473,
0.21000835299491882,
0.02700972743332386,
-0.25558707118034363,
-0.4284459352493286,
0.054600790143013,
-0.18637900054454803,
-0.15334579348564148,
-0.19714386761188507,
0.20541459321975708,
-0.4946784973144531,
0.11873617768287659,
-0.015110865235328674,
0.17512822151184082,
-0.06624390184879303,
0.150977224111557,
0.19968003034591675,
0.44123661518096924,
0.19188138842582703,
-0.46022897958755493,
-0.005720686167478561,
0.00389377074316144,
0.029223447665572166,
-0.05678713694214821,
0.15627557039260864,
-0.10571104288101196,
0.20353807508945465,
0.08142795413732529,
-0.2594132423400879,
0.06312867254018784,
-0.11288680136203766,
0.24161787331104279,
-0.13432593643665314,
0.3047716021537781,
-0.09087018668651581,
0.20145392417907715,
0.18460290133953094,
0.07115979492664337,
-0.1057426854968071,
-0.1495920866727829,
-0.03263533487915993,
0.14212332665920258,
0.09933120012283325,
0.3976772725582123,
-0.3058062791824341,
-0.2062702178955078,
-0.0010529756546020508,
-0.3736867606639862,
0.42154568433761597,
0.10118000209331512,
-0.006492204964160919,
0.3571305572986603,
0.27699199318885803,
0.08486243337392807,
-0.19523882865905762,
0.295612096786499,
-0.09051017463207245,
-0.20001302659511566,
0.43553686141967773,
0.020141294226050377,
-0.2268257886171341,
0.20559769868850708,
-0.046450141817331314,
0.19572263956069946,
0.2565195858478546,
-0.617375910282135,
-0.04492941126227379,
-0.24506579339504242,
-0.32395926117897034,
-0.05271855741739273,
0.22975455224514008,
0.2915318012237549,
-0.33308106660842896,
0.06194302439689636,
0.04141833633184433,
-0.12229382991790771,
0.09637346863746643,
-0.042884767055511475,
0.2026364803314209,
0.2002975046634674,
0.574306070804596,
-0.090914785861969,
0.9312593340873718,
0.12410584092140198,
0.18048860132694244,
0.07552845031023026,
-0.03740187734365463,
0.25255313515663147,
-0.131436288356781,
0.015397632494568825,
-0.11865593492984772,
-0.005835235118865967,
-0.14306998252868652,
0.2657727897167206,
-0.025503404438495636,
0.19750043749809265,
-0.24316996335983276,
0.044231075793504715,
0.15303683280944824,
-0.2962442934513092,
0.3551991879940033,
-0.006709977984428406,
0.12537461519241333,
-0.04032635688781738,
-0.025875046849250793,
0.010808944702148438,
-0.24129557609558105,
0.012306062504649162,
0.15309327840805054,
0.24567198753356934,
0.1957314908504486,
-0.19068749248981476,
-0.07605412602424622,
-0.6258141994476318,
0.0005810484290122986,
-0.19694001972675323,
0.09938624501228333,
-0.05860382318496704,
-0.3489125669002533,
-0.02770353853702545,
0.1523526906967163,
0.676886796951294,
0.2532062828540802,
-0.17298953235149384,
-0.148743137717247,
-0.7294564843177795,
-0.40251654386520386,
-0.009595930576324463,
-0.22916054725646973,
-0.1238153949379921,
0.07380950450897217,
0.36090391874313354,
-0.391493022441864,
-0.29161709547042847,
0.07330597937107086,
0.2556808590888977,
-0.2727661430835724,
-0.15386655926704407,
-0.5318116545677185,
-0.09207244217395782,
-0.4376601576805115,
0.055204473435878754,
0.33931103348731995,
0.08707260340452194,
-0.19919344782829285,
0.04102928563952446,
-0.018595075234770775,
-0.09400675445795059,
0.41329818964004517,
-0.04334656149148941,
0.27446073293685913,
-0.0019246565643697977,
-0.013676939532160759,
0.17320851981639862,
0.11165554821491241,
-0.019367339089512825,
0.6520435214042664,
0.3140730559825897,
-0.19215822219848633,
0.19880816340446472,
0.2186889946460724,
0.4826209843158722,
0.2193184196949005,
-0.13577182590961456,
0.12315349280834198,
0.13721251487731934,
0.2870839238166809,
-0.46728721261024475,
0.3837451934814453,
0.009191848337650299,
-0.09021878987550735,
-0.14644302427768707,
-0.31382253766059875,
0.5189353227615356,
0.3223371207714081,
0.1545017510652542,
-0.09944534301757812,
0.003390587866306305,
-0.28735971450805664,
0.17863549292087555,
0.10930316150188446,
0.9667986631393433,
-0.27807122468948364,
0.4263836741447449,
0.09635163843631744,
0.3156811594963074,
0.6530100703239441,
-0.2819085717201233,
0.21292854845523834,
-0.17297376692295074,
-0.3770288825035095,
0.0020606424659490585,
-0.23522932827472687,
-0.02680463343858719,
0.2167588770389557,
-0.07668079435825348,
0.4903028607368469,
0.024577371776103973,
0.2099643349647522,
-0.025812389329075813,
0.21987557411193848,
0.12256878614425659,
-0.5316359400749207,
-0.3666524887084961,
-0.04115377366542816,
-0.03307054936885834,
0.023753492161631584,
-0.014827550388872623,
0.028277579694986343,
0.22341907024383545,
-0.37175118923187256,
0.09538915753364563,
0.05725774168968201,
-0.47549787163734436,
-0.034422870725393295,
-0.11708278954029083,
0.01823878288269043,
0.3291780948638916,
0.21113991737365723,
-0.08042390644550323,
0.3448341488838196,
-0.22168110311031342,
-0.2169554978609085,
-0.3277769684791565,
-0.022613391280174255,
-0.25018155574798584,
0.1860281527042389,
0.2770848870277405,
0.07318980246782303,
-0.09088550508022308,
0.14340433478355408,
-0.02902582287788391,
-0.02907617948949337,
-0.05415003001689911,
-0.28433579206466675,
-0.08970576524734497,
-0.2674400508403778,
-0.20328901708126068,
0.03348354995250702,
0.028473224490880966,
0.18634158372879028,
0.00867228489369154,
0.05323488265275955,
-0.20109745860099792,
0.15198667347431183,
0.12267781794071198,
-0.49706369638442993,
-0.1683163195848465,
0.623339831829071,
0.08270334452390671,
-0.055016495287418365,
0.40000393986701965,
0.23619253933429718,
-0.024286339059472084,
-0.11131192743778229,
-0.1081453412771225,
0.3746097981929779,
-0.39813968539237976,
0.17012043297290802,
0.14485201239585876,
-0.1961880624294281,
-0.2891497015953064,
0.13200904428958893,
0.030324017629027367,
-0.2681395709514618,
-0.0012035369873046875,
-0.014727175235748291,
-0.5990902185440063,
0.5723332166671753,
-0.15696263313293457,
0.22246940433979034,
0.21935194730758667,
0.013669798150658607,
-0.17396056652069092,
0.23256495594978333,
-0.16299307346343994,
-0.07492274045944214,
-0.30243346095085144,
0.0509452149271965,
0.18448592722415924,
-0.14532092213630676,
0.2424786388874054,
0.09739634394645691,
-0.08831412345170975,
0.13873553276062012,
-0.2038188874721527,
-0.11814012378454208,
0.03855041414499283,
0.20561622083187103,
0.01019599661231041,
0.03452060744166374,
-0.05671326071023941,
-0.030088499188423157,
-0.04459204897284508,
-0.21337567269802094,
0.6652671694755554,
0.055938467383384705,
0.1515234410762787,
0.20133274793624878,
0.10880713164806366,
0.02938411757349968,
-0.4303296208381653,
0.1400623917579651,
0.01572825014591217,
0.1691090166568756,
0.25046053528785706,
0.08288489282131195,
0.10036978870630264,
-0.03103942796587944,
-0.45418038964271545,
0.06291406601667404,
0.4600508213043213,
-0.17204222083091736,
-0.08075607568025589,
-0.08805197477340698,
-0.2382044792175293,
0.21629728376865387,
0.07308800518512726,
0.2468605637550354,
-0.26933929324150085,
-0.04181911051273346,
0.1638191044330597,
0.02399366721510887,
-0.08638643473386765,
-0.025184012949466705,
0.09913548827171326,
-0.31052151322364807,
0.019154805690050125,
0.612343966960907,
0.17441925406455994,
0.05662749707698822,
0.08716027438640594,
0.10889670997858047,
0.3070237338542938,
0.10723008215427399,
0.09153150022029877,
0.14319534599781036,
-0.037750206887722015,
0.00731702521443367,
0.2631457448005676,
0.4207816421985626,
0.34982118010520935,
0.2286442071199417,
-0.03360886871814728,
0.3077249228954315,
-0.573945939540863,
0.22163419425487518,
-0.23410764336585999,
-0.4970020055770874,
-0.3280584514141083,
0.407850980758667,
-0.17678719758987427,
0.04547055810689926,
-0.49193620681762695,
0.09693234413862228,
0.262043297290802,
-0.15572823584079742,
-0.22884133458137512,
0.1897573322057724,
-0.1993207335472107,
-0.14960747957229614,
0.14616207778453827,
-0.0007468834519386292,
-0.35640257596969604,
0.2511367201805115,
0.0528331883251667,
-0.36491745710372925,
0.32658058404922485,
0.12205851823091507,
-0.10097745060920715,
0.14105279743671417,
-0.05282582342624664,
0.40611532330513,
-0.08527969568967819,
-0.2893255054950714,
0.0562756210565567,
0.1439654380083084,
0.10410638153553009,
0.021318504586815834,
0.11774430423974991,
0.06370945274829865,
0.030446764081716537,
-0.08800278604030609,
-0.017703264951705933,
0.2320951670408249,
-0.01817488670349121,
-0.11799539625644684,
0.20107029378414154,
0.08625239133834839,
0.4885622262954712,
0.0414116196334362,
-0.041204459965229034,
-0.00731629366055131,
-0.12236252427101135,
-0.006367478519678116,
0.10909250378608704,
-0.4597768187522888,
0.14223960041999817,
0.2558189034461975,
0.026440322399139404,
-0.21834659576416016,
0.1529572606086731,
-0.5634790658950806,
-0.002533518709242344,
0.3973653018474579,
-0.23949652910232544,
0.08164799213409424,
0.057038500905036926,
-0.012404557317495346,
-0.2247113287448883,
0.7063226699829102,
0.14932559430599213,
0.10099579393863678,
-0.49046236276626587,
0.08786922693252563,
-0.2523314952850342,
0.011696651577949524,
-0.05648011341691017,
0.30430686473846436,
0.1508435308933258,
0.21247610449790955,
-0.05629871040582657,
0.22392337024211884,
-0.5081437826156616,
-0.07571229338645935,
-0.31260058283805847,
-0.1842353790998459,
-0.09841988980770111,
-0.15483494102954865,
-0.44671738147735596,
0.29845380783081055,
0.10489271581172943,
-0.16870805621147156,
0.09458096325397491,
-0.10092061012983322,
-0.23752877116203308,
-0.07834021747112274,
0.05724146217107773,
-0.03779338672757149,
0.32249996066093445,
0.2368449866771698,
0.12221971154212952,
0.20721927285194397,
-0.16052663326263428,
-0.15557657182216644,
-0.14739614725112915,
-0.09276275336742401,
-0.257364422082901,
-0.21156767010688782,
-0.07414095103740692,
0.2012784332036972,
-0.30871233344078064,
0.07079172879457474,
-0.24805083870887756,
0.07432245463132858,
-0.03390763700008392,
-0.22583889961242676,
0.06301796436309814,
-0.11844504624605179,
-0.005012523382902145,
0.29038405418395996,
0.12959258258342743,
0.34741953015327454,
-0.19782918691635132,
0.019058259204030037,
-0.17499294877052307,
-0.06002310663461685,
0.4449538588523865,
-0.23499709367752075,
-0.12134644389152527,
-0.2829074561595917,
0.22633790969848633,
-0.09860711544752121,
-0.11315792053937912,
-0.5062595009803772,
0.19411233067512512,
0.057232148945331573,
0.16763991117477417,
-0.4304615259170532,
0.46600964665412903,
-0.13169388473033905,
-0.1142587661743164,
-0.21209381520748138,
0.19248220324516296,
0.009714927524328232,
-0.08529781550168991,
-0.17498208582401276,
-0.41222214698791504
] |
https://github.com/huggingface/datasets/issues/2005 | Setting to torch format not working with torchvision and MNIST | Adding to the previous information, I think `torch.utils.data.DataLoader` is doing some conversion.
What I tried:
```python
train_dataset = load_dataset('mnist')
```
I don't use any `map` or `set_format` or any `transform`. I use this directly, and try to load batches using the `DataLoader` with batch size 2, I get an output like this for the `image`:
```
[[tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor...
```
For `label`, it works fine:
```
tensor([7, 6])
```
Note that I didn't specify conversion to torch tensors anywhere.
Basically, there are two problems here:
1. `dataset.map` doesn't return tensor type objects, even though it uses the transforms, the grayscale conversion in transform was done, but the output was lists only.
2. The `DataLoader` performs its own conversion, which may be not desired.
I understand that we can't change `DataLoader` because it is a torch functionality, however, is there a way we can handle image data to allow using it with torch `DataLoader` and `torchvision` properly?
I think if the `image` was a torch tensor (N,H,W,C), or a list of torch tensors (H,W,C), before it is passed to `DataLoader`, then we might not face this issue. | Hi
I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object.
A snippet of what I am trying to do:
```python
def prepare_features(examples):
images = []
labels = []
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(
np.array(examples["image"][example_idx], dtype=np.uint8)
))
else:
images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8)))
labels.append(torch.tensor(examples["label"][example_idx]))
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('mnist')
train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000)
train_dataset.set_format("torch",columns=["image","label"])
```
After this, I check the type of the following:
```python
print(type(train_dataset["train"]["label"]))
print(type(train_dataset["train"]["image"][0]))
```
This leads to the following output:
```python
<class 'torch.Tensor'>
<class 'list'>
```
I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`.
I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue?
Thanks,
Gunjan
EDIT:
I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28).
EDIT 2:
Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. | 202 | Setting to torch format not working with torchvision and MNIST
Hi
I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object.
A snippet of what I am trying to do:
```python
def prepare_features(examples):
images = []
labels = []
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(
np.array(examples["image"][example_idx], dtype=np.uint8)
))
else:
images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8)))
labels.append(torch.tensor(examples["label"][example_idx]))
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('mnist')
train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000)
train_dataset.set_format("torch",columns=["image","label"])
```
After this, I check the type of the following:
```python
print(type(train_dataset["train"]["label"]))
print(type(train_dataset["train"]["image"][0]))
```
This leads to the following output:
```python
<class 'torch.Tensor'>
<class 'list'>
```
I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`.
I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue?
Thanks,
Gunjan
EDIT:
I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28).
EDIT 2:
Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
Adding to the previous information, I think `torch.utils.data.DataLoader` is doing some conversion.
What I tried:
```python
train_dataset = load_dataset('mnist')
```
I don't use any `map` or `set_format` or any `transform`. I use this directly, and try to load batches using the `DataLoader` with batch size 2, I get an output like this for the `image`:
```
[[tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor...
```
For `label`, it works fine:
```
tensor([7, 6])
```
Note that I didn't specify conversion to torch tensors anywhere.
Basically, there are two problems here:
1. `dataset.map` doesn't return tensor type objects, even though it uses the transforms, the grayscale conversion in transform was done, but the output was lists only.
2. The `DataLoader` performs its own conversion, which may be not desired.
I understand that we can't change `DataLoader` because it is a torch functionality, however, is there a way we can handle image data to allow using it with torch `DataLoader` and `torchvision` properly?
I think if the `image` was a torch tensor (N,H,W,C), or a list of torch tensors (H,W,C), before it is passed to `DataLoader`, then we might not face this issue. | [
-0.12737540900707245,
-0.3511652648448944,
-0.01793275587260723,
0.35360872745513916,
0.4760025143623352,
0.08871380239725113,
0.733028769493103,
0.3804348111152649,
0.06552515923976898,
-0.038042545318603516,
-0.11115357279777527,
0.38195115327835083,
-0.23296885192394257,
-0.3339342772960663,
0.03510889783501625,
-0.5614942312240601,
0.2225799858570099,
-0.09982740879058838,
-0.28079813718795776,
-0.06134728714823723,
-0.2431335300207138,
0.03548943251371384,
-0.2184973657131195,
-0.10849666595458984,
-0.5479357838630676,
0.04409640282392502,
-0.019555658102035522,
-0.07656855136156082,
-0.06229933351278305,
-0.13918034732341766,
0.12234671413898468,
-0.17449648678302765,
0.4444531500339508,
0.7012937068939209,
-0.00012770108878612518,
0.07030172646045685,
0.3642725944519043,
-0.1737782508134842,
0.049999114125967026,
-0.16101329028606415,
0.040047310292720795,
-0.2573830187320709,
0.07277627289295197,
-0.09468314796686172,
-0.22349423170089722,
-0.17084546387195587,
0.09591015428304672,
-0.17902977764606476,
-0.028142273426055908,
0.4191693067550659,
0.0771300345659256,
0.2790106534957886,
0.2466610223054886,
0.1386307328939438,
0.2278119921684265,
0.5182861089706421,
-0.27343839406967163,
-0.05611692741513252,
0.22615043818950653,
0.3754779100418091,
0.12400421500205994,
0.5647351741790771,
-0.2913343906402588,
-0.03623348847031593,
0.26694485545158386,
0.12900540232658386,
-0.10145575553178787,
-0.3140054941177368,
0.049157410860061646,
0.08946321904659271,
0.42194443941116333,
-0.14943954348564148,
-0.08077897131443024,
-0.14366409182548523,
-0.14397819340229034,
-0.12738050520420074,
0.040591202676296234,
0.2803192734718323,
-0.07184071838855743,
-0.1872383952140808,
-0.5392425656318665,
0.3052915334701538,
-0.14862358570098877,
0.2131594568490982,
-0.2805245518684387,
-0.0034207403659820557,
-0.13816343247890472,
0.29280853271484375,
-0.047119248658418655,
-0.11271293461322784,
0.19308120012283325,
-0.12341457605361938,
0.13007575273513794,
-0.009825735352933407,
-0.14363141357898712,
-0.0534907765686512,
-0.38959887623786926,
-0.31501248478889465,
-0.20014813542366028,
-0.160264790058136,
0.16648587584495544,
0.1392759084701538,
-0.11639561504125595,
0.12807080149650574,
0.1826329529285431,
0.26803353428840637,
0.1057826429605484,
0.32070228457450867,
-0.08589236438274384,
-0.2895815670490265,
-0.0469193272292614,
0.08773323893547058,
-0.29622676968574524,
-0.4357527196407318,
0.15453419089317322,
0.32529640197753906,
0.24522115290164948,
0.06874248385429382,
0.12985558807849884,
-0.32394126057624817,
-0.10892283916473389,
-0.009586316533386707,
0.07522494345903397,
0.2850382626056671,
-0.11867916584014893,
0.24390509724617004,
0.48048293590545654,
0.39720290899276733,
-0.15381847321987152,
0.06956236064434052,
0.025072410702705383,
0.03152093663811684,
-0.4404953420162201,
-0.285698801279068,
0.1534099280834198,
-0.1177731603384018,
0.10007032006978989,
0.03743180260062218,
0.04641563445329666,
0.10069668292999268,
0.07349640876054764,
-0.18586979806423187,
0.6246296763420105,
0.14764724671840668,
-0.19447419047355652,
0.2767925560474396,
0.2709067165851593,
0.5297806262969971,
-0.3042983114719391,
0.2565314769744873,
-0.5095702409744263,
0.06525279581546783,
-0.023091500625014305,
-0.014543850906193256,
0.21865473687648773,
-0.020722128450870514,
-0.21216225624084473,
0.015829091891646385,
0.5923119783401489,
-0.08367820084095001,
0.27348780632019043,
-0.5791621804237366,
0.09496405720710754,
-0.1913350522518158,
0.034152500331401825,
0.06366966664791107,
-0.20471526682376862,
-0.05235854536294937,
0.38634371757507324,
0.09194983541965485,
0.3154589533805847,
0.16028177738189697,
0.05108363553881645,
0.07987017929553986,
-0.22535288333892822,
-0.2350507378578186,
0.336323618888855,
-0.37685659527778625,
0.092038094997406,
-0.017693186178803444,
0.09387907385826111,
-0.06380392611026764,
0.11201898753643036,
0.3361778259277344,
0.0326007679104805,
-0.12800128757953644,
0.02944871410727501,
0.1963149607181549,
-0.16618242859840393,
0.1402871161699295,
0.07735966145992279,
0.19130311906337738,
0.19337497651576996,
0.03500647470355034,
-0.015683721750974655,
0.2076537311077118,
-0.22167158126831055,
0.17757640779018402,
-0.054280370473861694,
-0.07471343874931335,
0.07117719203233719,
0.04037807881832123,
-0.36989057064056396,
-0.012196704745292664,
-0.047469694167375565,
0.18646693229675293,
-0.2331002950668335,
-0.048721496015787125,
0.023635171353816986,
0.08221714198589325,
0.05827927961945534,
0.04792488366365433,
0.00497826375067234,
-0.19195683300495148,
-0.18220587074756622,
-0.13902710378170013,
-0.0032417885959148407,
0.0922105610370636,
-0.20947688817977905,
-0.2617241144180298,
-0.05234343558549881,
-0.1232488825917244,
0.17830383777618408,
0.058838095515966415,
-0.35903647541999817,
0.05102594196796417,
0.019273651763796806,
-0.3653304874897003,
-0.20136012136936188,
0.17339247465133667,
0.2676691710948944,
-0.09962134063243866,
-0.04223459213972092,
0.19160327315330505,
0.06328880041837692,
0.11463357508182526,
-0.5482739806175232,
0.08346603065729141,
0.17784196138381958,
-0.24697014689445496,
0.2043914645910263,
0.2162795215845108,
0.14853382110595703,
-0.27550339698791504,
-0.19603440165519714,
0.43878644704818726,
0.16041074693202972,
0.3159129023551941,
-0.33002549409866333,
0.11610180884599686,
-0.07264680415391922,
-0.03940185531973839,
-0.19063392281532288,
-0.040807515382766724,
-0.2772817313671112,
0.0730239748954773,
-0.13185951113700867,
0.012982203625142574,
-0.4569188952445984,
-0.04493575543165207,
0.2962619960308075,
0.08876402676105499,
0.1758728325366974,
-0.0012162551283836365,
-0.3998463451862335,
0.21331259608268738,
0.17712706327438354,
-0.6013532876968384,
0.29783856868743896,
-0.004361569881439209,
0.1892075538635254,
-0.10501866787672043,
0.09558327496051788,
-0.16254311800003052,
0.2484443485736847,
0.1140424907207489,
0.09074831008911133,
-0.19946491718292236,
0.14185220003128052,
-0.10792585462331772,
0.02684575319290161,
0.026369977742433548,
-0.1406286656856537,
-0.2336929440498352,
-0.35895073413848877,
0.2713826298713684,
-0.16618333756923676,
-0.13451848924160004,
-0.40185457468032837,
-0.2621854841709137,
0.03605656698346138,
-0.0740048810839653,
-0.08233382552862167,
0.1507582813501358,
0.18556755781173706,
0.19043487310409546,
0.2634176015853882,
-0.18189401924610138,
0.37431591749191284,
-0.4130295217037201,
-0.035354651510715485,
-0.07500942051410675,
-0.28679606318473816,
-0.09916479885578156,
0.0896558165550232,
-0.5234109163284302,
0.09148447960615158,
-0.2289901077747345,
-0.09319087862968445,
-0.25017622113227844,
0.013548292219638824,
0.14182262122631073,
-0.2678501009941101,
-0.28500327467918396,
0.3085911273956299,
0.19392819702625275,
-0.1424819529056549,
0.04066236689686775,
0.26635080575942993,
0.01030721329152584,
0.04690108448266983,
0.1537836343050003,
-0.08962015807628632,
0.1165606677532196,
-0.06329842656850815,
-0.1767411231994629,
-0.09661835432052612,
-0.07506111264228821,
-0.07041659951210022,
-0.021759849041700363,
0.06337703764438629,
0.346258282661438,
0.3721838891506195,
-0.08989016711711884,
-0.05204236879944801,
0.03560919314622879,
0.06296464800834656,
-0.3976878225803375,
0.5225034356117249,
-0.2261539101600647,
-0.36082619428634644,
0.11920170485973358,
0.023855838924646378,
0.06514731049537659,
0.4862689971923828,
0.060522645711898804,
0.049731601029634476,
0.011782122775912285,
-0.07894501090049744,
0.25259286165237427,
0.22119691967964172,
0.35102030634880066,
-0.09112472832202911,
0.019165800884366035,
-0.1647072732448578,
0.015416599810123444,
-0.10187137871980667,
-0.06325531750917435,
0.6088865995407104,
0.18508407473564148,
0.23994258046150208,
0.09925894439220428,
0.6996648907661438,
-0.06113751605153084,
-0.7380957007408142,
0.21680673956871033,
-0.24250978231430054,
0.19216693937778473,
-0.11812164634466171,
-0.3539585471153259,
0.39885619282722473,
-0.20942005515098572,
0.06437406688928604,
-0.08596731722354889,
-0.024906877428293228,
-0.23915784060955048,
-0.09022422134876251,
0.35736149549484253,
-0.3172067105770111,
-0.15857422351837158,
0.40442991256713867,
-0.14470255374908447,
0.2763724625110626,
-0.23134246468544006,
0.3245895802974701,
-0.2609265446662903,
-0.21379289031028748,
0.06005708500742912,
0.44877195358276367,
0.1385136991739273,
0.04172488674521446,
-0.334284245967865,
-0.2166968435049057,
-0.14322680234909058,
0.3568275272846222,
0.11957734078168869,
0.5672699213027954,
-0.09803614765405655,
-0.07446521520614624,
0.10155647993087769,
0.2413695752620697,
0.830759584903717,
0.04555724561214447,
-0.0904589593410492,
0.15144222974777222,
-0.3478350341320038,
-0.45497822761535645,
-0.10222916305065155,
-0.05141806602478027,
0.09068089723587036,
0.17169034481048584,
0.1203862875699997,
-0.09105332940816879,
-0.18333402276039124,
-0.005832638591527939,
0.19555465877056122,
-0.05512464419007301,
0.034718938171863556,
-0.22691111266613007,
0.05875767022371292,
-0.12964943051338196,
-0.15528327226638794,
0.22118239104747772,
0.02967519871890545,
0.005161826033145189,
-0.30812811851501465,
-0.32623055577278137,
-0.12669971585273743,
0.18248197436332703,
-0.1330120861530304,
0.41106683015823364,
0.09925103932619095,
-0.17808546125888824,
0.07690712064504623,
0.5561056137084961,
0.4184049367904663,
-0.03893890976905823,
-0.1187732070684433,
0.08064393699169159,
0.29311060905456543,
0.10643263161182404,
0.30020424723625183,
0.3208248019218445,
-0.06187279149889946,
-0.43966424465179443,
-0.22684860229492188,
-0.19381509721279144,
-0.3305324614048004,
0.3972930312156677,
0.4080626964569092,
0.09893538802862167,
-0.4953550696372986,
-0.49217066168785095,
0.3861902058124542,
0.2937195599079132,
0.19583018124103546,
0.20459191501140594,
-0.5417593121528625,
-0.40096738934516907,
0.07817859202623367,
0.46624186635017395,
0.8556233048439026,
-0.037078700959682465,
0.370282918214798,
0.03156561776995659,
0.010806940495967865,
0.17210185527801514,
-0.0018886998295783997,
0.41179436445236206,
-0.3542814254760742,
0.1392894983291626,
-0.164854034781456,
-0.31255003809928894,
0.2525230050086975,
-0.060203246772289276,
-0.24396952986717224,
0.04253619536757469,
-0.3494715094566345,
0.1936202496290207,
-0.12569347023963928,
-0.08285336196422577,
-0.04982651770114899,
-0.471418172121048,
0.18787403404712677,
0.015452079474925995,
-0.08251337707042694,
0.26173895597457886,
0.11116153001785278,
-0.16362066566944122,
-0.37986040115356445,
0.06169593334197998,
-0.07622233778238297,
-0.015011643059551716,
-0.24596907198429108,
-0.16324345767498016,
-0.024310410022735596,
-0.7298658490180969,
0.05867994949221611,
0.4961579442024231,
0.33455443382263184,
-0.16056637465953827,
-0.0478365495800972,
0.1396413892507553,
0.44384750723838806,
0.1629004031419754,
-0.09901697933673859,
-0.34018465876579285,
0.2853407561779022,
0.09737569838762283,
0.18433207273483276,
0.10863815248012543,
0.06814876198768616,
0.21052046120166779,
-0.5777894258499146,
0.03725104779005051,
0.30602920055389404,
-0.3449508249759674,
-0.3229842185974121,
-0.19845017790794373,
0.049185048788785934,
0.03816347196698189,
0.028618566691875458,
0.1244892105460167,
-0.03890316188335419,
0.20724302530288696,
-0.04151230677962303,
-0.22646169364452362,
0.13288995623588562,
0.45233139395713806,
0.11298388987779617,
-0.35004642605781555,
0.39075639843940735,
0.3549591898918152,
-0.044777899980545044,
-0.043743960559368134,
0.41669389605522156,
0.6353195905685425,
-0.34569674730300903,
0.09949740022420883,
-0.10271698236465454,
-0.15698707103729248,
-0.011073713190853596,
0.5430936217308044,
-0.23431716859340668,
-0.1309782862663269,
-0.23895759880542755,
-0.04081706702709198,
-0.4308939278125763,
0.01081337034702301,
-0.31629857420921326,
0.456630140542984,
-0.043222058564424515,
0.3627100884914398,
0.21050570905208588,
-0.18734970688819885,
-0.14413586258888245,
-0.25864869356155396,
0.1723509579896927,
0.3679336607456207,
-0.2471824586391449,
0.21876117587089539,
-0.12695860862731934,
-0.12202289700508118,
-0.03625227138400078,
0.026031551882624626,
-0.24973976612091064,
-0.03339078649878502,
-0.057677969336509705,
0.17730601131916046,
0.06661458313465118,
-0.11354019492864609,
-0.07354690879583359,
-0.17366977035999298,
-0.13858114182949066,
-0.2681717276573181,
-0.03771784156560898,
0.11092103272676468,
-0.11599935591220856,
0.353161096572876,
-0.17836599051952362,
0.23122572898864746,
0.31867676973342896,
-0.2700003981590271,
-0.10262273252010345,
0.03587159514427185,
0.2229631096124649,
0.060050882399082184,
0.00453167175874114,
-0.06155644357204437,
-0.2772364318370819,
0.1125919371843338,
0.16520316898822784,
0.25497522950172424,
0.20461755990982056,
-0.09999659657478333,
0.10917837917804718,
-0.04380689561367035,
0.20418445765972137,
0.10125526785850525,
-0.1718703657388687,
-0.050829093903303146,
0.060372814536094666,
-0.007623609155416489,
0.1006220281124115,
0.14499907195568085,
0.03886927291750908,
0.12528149783611298,
-0.08346407115459442,
0.27557802200317383,
0.06655879318714142,
0.3113946318626404,
-0.37050777673721313,
0.04514180123806,
0.41785678267478943,
-0.24107296764850616,
0.23508626222610474,
0.4640146791934967,
0.014799613505601883,
0.193049818277359,
0.29070472717285156,
0.10934381186962128,
-0.1187017634510994,
0.3226965069770813,
0.39451703429222107,
0.8204308152198792,
0.5895953178405762,
0.08376968652009964,
0.2746028006076813,
0.09925709664821625,
-0.15360766649246216,
-0.2072514295578003,
0.23582398891448975,
0.39196842908859253,
0.018866688013076782,
0.18569323420524597,
-0.24079908430576324,
-0.48712393641471863,
0.2258823812007904,
0.1217745840549469,
-0.19461801648139954,
-0.08222351968288422,
-0.6648061275482178,
0.011875316500663757,
0.13582652807235718,
-0.18665997684001923,
-0.17971526086330414,
-0.05013806372880936,
0.220590740442276,
0.2597532272338867,
-0.10321985185146332,
-0.16091258823871613,
-0.1724744439125061,
0.06910110265016556,
0.03752904757857323,
-0.007329706102609634,
0.16975747048854828,
-0.13684643805027008,
0.16176097095012665,
0.24482446908950806,
0.1969081163406372,
0.284953236579895,
0.4870796799659729,
-0.16817118227481842,
-0.15989406406879425,
-0.010553201660513878,
-0.19236597418785095,
0.08990161120891571,
0.06671234220266342,
0.03153381496667862,
-0.1532079577445984,
-0.014956234022974968,
0.008462533354759216,
0.03862767294049263,
0.03146062046289444,
-0.09408107399940491,
-0.21825940907001495,
0.1676250398159027,
0.30557453632354736,
-0.36377719044685364,
-0.1490928828716278,
-0.09989863634109497,
-0.24665629863739014,
-0.3483099639415741,
-0.26553475856781006,
0.5327389240264893,
0.027895595878362656,
0.12800973653793335,
0.14216776192188263,
-0.04215959459543228,
0.048786040395498276,
0.1574120819568634,
-0.12155681848526001,
0.0775766521692276,
-0.1540934443473816,
0.13596616685390472,
-0.08580520749092102,
0.03191046416759491,
0.11847475171089172,
-0.38344821333885193,
-0.018849391490221024,
-0.03916454687714577,
0.24254250526428223,
0.06467486172914505,
0.2020900845527649,
-0.09834717214107513,
0.4987447261810303,
0.6146568059921265,
-0.13361555337905884,
-0.1414809226989746,
-0.13041925430297852,
0.37065088748931885,
0.07330819964408875,
-0.07746567577123642,
0.021921303123235703,
0.10242748260498047,
0.006507012993097305,
-0.34206485748291016,
-0.2554904520511627,
-0.01998257078230381,
0.30414512753486633,
0.35128262639045715,
0.09328848868608475,
0.3203134536743164,
-0.019220542162656784,
0.048409707844257355,
-0.2411344051361084,
0.0504152774810791,
-0.12760111689567566,
0.009670205414295197,
-0.022803064435720444,
0.5810165405273438,
-0.22440199553966522,
-0.059342700988054276,
-0.41364988684654236,
0.4290262460708618,
0.09053143858909607,
-0.33885523676872253,
-0.08051943778991699,
0.35840025544166565,
-0.31732094287872314,
-0.2010883092880249,
0.22619517147541046,
0.4100218713283539,
0.15135975182056427,
0.19435712695121765,
-0.5254404544830322,
-0.4069116413593292,
0.4472021460533142,
-0.441707968711853,
-0.5069120526313782,
0.02907465398311615,
-0.3133937418460846,
0.06790400296449661,
0.49642300605773926,
-0.471049964427948,
-0.14913369715213776,
0.0015052962116897106,
-0.08082769066095352,
-0.09160427749156952,
-0.09819349646568298,
0.2610398828983307,
0.015110637992620468,
-0.25184643268585205,
0.17900733649730682,
0.1764504313468933,
-0.022816140204668045,
-0.42041611671447754,
-0.27535998821258545
] |
https://github.com/huggingface/datasets/issues/2005 | Setting to torch format not working with torchvision and MNIST | What's the feature types of your new dataset after `.map` ?
Can you try with adding `features=` in the `.map` call in order to set the "image" feature type to `Array2D` ?
The default feature type is lists of lists, we've not implemented shape verification to use ArrayXD instead of nested lists yet | Hi
I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object.
A snippet of what I am trying to do:
```python
def prepare_features(examples):
images = []
labels = []
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(
np.array(examples["image"][example_idx], dtype=np.uint8)
))
else:
images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8)))
labels.append(torch.tensor(examples["label"][example_idx]))
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('mnist')
train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000)
train_dataset.set_format("torch",columns=["image","label"])
```
After this, I check the type of the following:
```python
print(type(train_dataset["train"]["label"]))
print(type(train_dataset["train"]["image"][0]))
```
This leads to the following output:
```python
<class 'torch.Tensor'>
<class 'list'>
```
I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`.
I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue?
Thanks,
Gunjan
EDIT:
I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28).
EDIT 2:
Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. | 53 | Setting to torch format not working with torchvision and MNIST
Hi
I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object.
A snippet of what I am trying to do:
```python
def prepare_features(examples):
images = []
labels = []
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(
np.array(examples["image"][example_idx], dtype=np.uint8)
))
else:
images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8)))
labels.append(torch.tensor(examples["label"][example_idx]))
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('mnist')
train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000)
train_dataset.set_format("torch",columns=["image","label"])
```
After this, I check the type of the following:
```python
print(type(train_dataset["train"]["label"]))
print(type(train_dataset["train"]["image"][0]))
```
This leads to the following output:
```python
<class 'torch.Tensor'>
<class 'list'>
```
I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`.
I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue?
Thanks,
Gunjan
EDIT:
I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28).
EDIT 2:
Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
What's the feature types of your new dataset after `.map` ?
Can you try with adding `features=` in the `.map` call in order to set the "image" feature type to `Array2D` ?
The default feature type is lists of lists, we've not implemented shape verification to use ArrayXD instead of nested lists yet | [
-0.12737540900707245,
-0.3511652648448944,
-0.01793275587260723,
0.35360872745513916,
0.4760025143623352,
0.08871380239725113,
0.733028769493103,
0.3804348111152649,
0.06552515923976898,
-0.038042545318603516,
-0.11115357279777527,
0.38195115327835083,
-0.23296885192394257,
-0.3339342772960663,
0.03510889783501625,
-0.5614942312240601,
0.2225799858570099,
-0.09982740879058838,
-0.28079813718795776,
-0.06134728714823723,
-0.2431335300207138,
0.03548943251371384,
-0.2184973657131195,
-0.10849666595458984,
-0.5479357838630676,
0.04409640282392502,
-0.019555658102035522,
-0.07656855136156082,
-0.06229933351278305,
-0.13918034732341766,
0.12234671413898468,
-0.17449648678302765,
0.4444531500339508,
0.7012937068939209,
-0.00012770108878612518,
0.07030172646045685,
0.3642725944519043,
-0.1737782508134842,
0.049999114125967026,
-0.16101329028606415,
0.040047310292720795,
-0.2573830187320709,
0.07277627289295197,
-0.09468314796686172,
-0.22349423170089722,
-0.17084546387195587,
0.09591015428304672,
-0.17902977764606476,
-0.028142273426055908,
0.4191693067550659,
0.0771300345659256,
0.2790106534957886,
0.2466610223054886,
0.1386307328939438,
0.2278119921684265,
0.5182861089706421,
-0.27343839406967163,
-0.05611692741513252,
0.22615043818950653,
0.3754779100418091,
0.12400421500205994,
0.5647351741790771,
-0.2913343906402588,
-0.03623348847031593,
0.26694485545158386,
0.12900540232658386,
-0.10145575553178787,
-0.3140054941177368,
0.049157410860061646,
0.08946321904659271,
0.42194443941116333,
-0.14943954348564148,
-0.08077897131443024,
-0.14366409182548523,
-0.14397819340229034,
-0.12738050520420074,
0.040591202676296234,
0.2803192734718323,
-0.07184071838855743,
-0.1872383952140808,
-0.5392425656318665,
0.3052915334701538,
-0.14862358570098877,
0.2131594568490982,
-0.2805245518684387,
-0.0034207403659820557,
-0.13816343247890472,
0.29280853271484375,
-0.047119248658418655,
-0.11271293461322784,
0.19308120012283325,
-0.12341457605361938,
0.13007575273513794,
-0.009825735352933407,
-0.14363141357898712,
-0.0534907765686512,
-0.38959887623786926,
-0.31501248478889465,
-0.20014813542366028,
-0.160264790058136,
0.16648587584495544,
0.1392759084701538,
-0.11639561504125595,
0.12807080149650574,
0.1826329529285431,
0.26803353428840637,
0.1057826429605484,
0.32070228457450867,
-0.08589236438274384,
-0.2895815670490265,
-0.0469193272292614,
0.08773323893547058,
-0.29622676968574524,
-0.4357527196407318,
0.15453419089317322,
0.32529640197753906,
0.24522115290164948,
0.06874248385429382,
0.12985558807849884,
-0.32394126057624817,
-0.10892283916473389,
-0.009586316533386707,
0.07522494345903397,
0.2850382626056671,
-0.11867916584014893,
0.24390509724617004,
0.48048293590545654,
0.39720290899276733,
-0.15381847321987152,
0.06956236064434052,
0.025072410702705383,
0.03152093663811684,
-0.4404953420162201,
-0.285698801279068,
0.1534099280834198,
-0.1177731603384018,
0.10007032006978989,
0.03743180260062218,
0.04641563445329666,
0.10069668292999268,
0.07349640876054764,
-0.18586979806423187,
0.6246296763420105,
0.14764724671840668,
-0.19447419047355652,
0.2767925560474396,
0.2709067165851593,
0.5297806262969971,
-0.3042983114719391,
0.2565314769744873,
-0.5095702409744263,
0.06525279581546783,
-0.023091500625014305,
-0.014543850906193256,
0.21865473687648773,
-0.020722128450870514,
-0.21216225624084473,
0.015829091891646385,
0.5923119783401489,
-0.08367820084095001,
0.27348780632019043,
-0.5791621804237366,
0.09496405720710754,
-0.1913350522518158,
0.034152500331401825,
0.06366966664791107,
-0.20471526682376862,
-0.05235854536294937,
0.38634371757507324,
0.09194983541965485,
0.3154589533805847,
0.16028177738189697,
0.05108363553881645,
0.07987017929553986,
-0.22535288333892822,
-0.2350507378578186,
0.336323618888855,
-0.37685659527778625,
0.092038094997406,
-0.017693186178803444,
0.09387907385826111,
-0.06380392611026764,
0.11201898753643036,
0.3361778259277344,
0.0326007679104805,
-0.12800128757953644,
0.02944871410727501,
0.1963149607181549,
-0.16618242859840393,
0.1402871161699295,
0.07735966145992279,
0.19130311906337738,
0.19337497651576996,
0.03500647470355034,
-0.015683721750974655,
0.2076537311077118,
-0.22167158126831055,
0.17757640779018402,
-0.054280370473861694,
-0.07471343874931335,
0.07117719203233719,
0.04037807881832123,
-0.36989057064056396,
-0.012196704745292664,
-0.047469694167375565,
0.18646693229675293,
-0.2331002950668335,
-0.048721496015787125,
0.023635171353816986,
0.08221714198589325,
0.05827927961945534,
0.04792488366365433,
0.00497826375067234,
-0.19195683300495148,
-0.18220587074756622,
-0.13902710378170013,
-0.0032417885959148407,
0.0922105610370636,
-0.20947688817977905,
-0.2617241144180298,
-0.05234343558549881,
-0.1232488825917244,
0.17830383777618408,
0.058838095515966415,
-0.35903647541999817,
0.05102594196796417,
0.019273651763796806,
-0.3653304874897003,
-0.20136012136936188,
0.17339247465133667,
0.2676691710948944,
-0.09962134063243866,
-0.04223459213972092,
0.19160327315330505,
0.06328880041837692,
0.11463357508182526,
-0.5482739806175232,
0.08346603065729141,
0.17784196138381958,
-0.24697014689445496,
0.2043914645910263,
0.2162795215845108,
0.14853382110595703,
-0.27550339698791504,
-0.19603440165519714,
0.43878644704818726,
0.16041074693202972,
0.3159129023551941,
-0.33002549409866333,
0.11610180884599686,
-0.07264680415391922,
-0.03940185531973839,
-0.19063392281532288,
-0.040807515382766724,
-0.2772817313671112,
0.0730239748954773,
-0.13185951113700867,
0.012982203625142574,
-0.4569188952445984,
-0.04493575543165207,
0.2962619960308075,
0.08876402676105499,
0.1758728325366974,
-0.0012162551283836365,
-0.3998463451862335,
0.21331259608268738,
0.17712706327438354,
-0.6013532876968384,
0.29783856868743896,
-0.004361569881439209,
0.1892075538635254,
-0.10501866787672043,
0.09558327496051788,
-0.16254311800003052,
0.2484443485736847,
0.1140424907207489,
0.09074831008911133,
-0.19946491718292236,
0.14185220003128052,
-0.10792585462331772,
0.02684575319290161,
0.026369977742433548,
-0.1406286656856537,
-0.2336929440498352,
-0.35895073413848877,
0.2713826298713684,
-0.16618333756923676,
-0.13451848924160004,
-0.40185457468032837,
-0.2621854841709137,
0.03605656698346138,
-0.0740048810839653,
-0.08233382552862167,
0.1507582813501358,
0.18556755781173706,
0.19043487310409546,
0.2634176015853882,
-0.18189401924610138,
0.37431591749191284,
-0.4130295217037201,
-0.035354651510715485,
-0.07500942051410675,
-0.28679606318473816,
-0.09916479885578156,
0.0896558165550232,
-0.5234109163284302,
0.09148447960615158,
-0.2289901077747345,
-0.09319087862968445,
-0.25017622113227844,
0.013548292219638824,
0.14182262122631073,
-0.2678501009941101,
-0.28500327467918396,
0.3085911273956299,
0.19392819702625275,
-0.1424819529056549,
0.04066236689686775,
0.26635080575942993,
0.01030721329152584,
0.04690108448266983,
0.1537836343050003,
-0.08962015807628632,
0.1165606677532196,
-0.06329842656850815,
-0.1767411231994629,
-0.09661835432052612,
-0.07506111264228821,
-0.07041659951210022,
-0.021759849041700363,
0.06337703764438629,
0.346258282661438,
0.3721838891506195,
-0.08989016711711884,
-0.05204236879944801,
0.03560919314622879,
0.06296464800834656,
-0.3976878225803375,
0.5225034356117249,
-0.2261539101600647,
-0.36082619428634644,
0.11920170485973358,
0.023855838924646378,
0.06514731049537659,
0.4862689971923828,
0.060522645711898804,
0.049731601029634476,
0.011782122775912285,
-0.07894501090049744,
0.25259286165237427,
0.22119691967964172,
0.35102030634880066,
-0.09112472832202911,
0.019165800884366035,
-0.1647072732448578,
0.015416599810123444,
-0.10187137871980667,
-0.06325531750917435,
0.6088865995407104,
0.18508407473564148,
0.23994258046150208,
0.09925894439220428,
0.6996648907661438,
-0.06113751605153084,
-0.7380957007408142,
0.21680673956871033,
-0.24250978231430054,
0.19216693937778473,
-0.11812164634466171,
-0.3539585471153259,
0.39885619282722473,
-0.20942005515098572,
0.06437406688928604,
-0.08596731722354889,
-0.024906877428293228,
-0.23915784060955048,
-0.09022422134876251,
0.35736149549484253,
-0.3172067105770111,
-0.15857422351837158,
0.40442991256713867,
-0.14470255374908447,
0.2763724625110626,
-0.23134246468544006,
0.3245895802974701,
-0.2609265446662903,
-0.21379289031028748,
0.06005708500742912,
0.44877195358276367,
0.1385136991739273,
0.04172488674521446,
-0.334284245967865,
-0.2166968435049057,
-0.14322680234909058,
0.3568275272846222,
0.11957734078168869,
0.5672699213027954,
-0.09803614765405655,
-0.07446521520614624,
0.10155647993087769,
0.2413695752620697,
0.830759584903717,
0.04555724561214447,
-0.0904589593410492,
0.15144222974777222,
-0.3478350341320038,
-0.45497822761535645,
-0.10222916305065155,
-0.05141806602478027,
0.09068089723587036,
0.17169034481048584,
0.1203862875699997,
-0.09105332940816879,
-0.18333402276039124,
-0.005832638591527939,
0.19555465877056122,
-0.05512464419007301,
0.034718938171863556,
-0.22691111266613007,
0.05875767022371292,
-0.12964943051338196,
-0.15528327226638794,
0.22118239104747772,
0.02967519871890545,
0.005161826033145189,
-0.30812811851501465,
-0.32623055577278137,
-0.12669971585273743,
0.18248197436332703,
-0.1330120861530304,
0.41106683015823364,
0.09925103932619095,
-0.17808546125888824,
0.07690712064504623,
0.5561056137084961,
0.4184049367904663,
-0.03893890976905823,
-0.1187732070684433,
0.08064393699169159,
0.29311060905456543,
0.10643263161182404,
0.30020424723625183,
0.3208248019218445,
-0.06187279149889946,
-0.43966424465179443,
-0.22684860229492188,
-0.19381509721279144,
-0.3305324614048004,
0.3972930312156677,
0.4080626964569092,
0.09893538802862167,
-0.4953550696372986,
-0.49217066168785095,
0.3861902058124542,
0.2937195599079132,
0.19583018124103546,
0.20459191501140594,
-0.5417593121528625,
-0.40096738934516907,
0.07817859202623367,
0.46624186635017395,
0.8556233048439026,
-0.037078700959682465,
0.370282918214798,
0.03156561776995659,
0.010806940495967865,
0.17210185527801514,
-0.0018886998295783997,
0.41179436445236206,
-0.3542814254760742,
0.1392894983291626,
-0.164854034781456,
-0.31255003809928894,
0.2525230050086975,
-0.060203246772289276,
-0.24396952986717224,
0.04253619536757469,
-0.3494715094566345,
0.1936202496290207,
-0.12569347023963928,
-0.08285336196422577,
-0.04982651770114899,
-0.471418172121048,
0.18787403404712677,
0.015452079474925995,
-0.08251337707042694,
0.26173895597457886,
0.11116153001785278,
-0.16362066566944122,
-0.37986040115356445,
0.06169593334197998,
-0.07622233778238297,
-0.015011643059551716,
-0.24596907198429108,
-0.16324345767498016,
-0.024310410022735596,
-0.7298658490180969,
0.05867994949221611,
0.4961579442024231,
0.33455443382263184,
-0.16056637465953827,
-0.0478365495800972,
0.1396413892507553,
0.44384750723838806,
0.1629004031419754,
-0.09901697933673859,
-0.34018465876579285,
0.2853407561779022,
0.09737569838762283,
0.18433207273483276,
0.10863815248012543,
0.06814876198768616,
0.21052046120166779,
-0.5777894258499146,
0.03725104779005051,
0.30602920055389404,
-0.3449508249759674,
-0.3229842185974121,
-0.19845017790794373,
0.049185048788785934,
0.03816347196698189,
0.028618566691875458,
0.1244892105460167,
-0.03890316188335419,
0.20724302530288696,
-0.04151230677962303,
-0.22646169364452362,
0.13288995623588562,
0.45233139395713806,
0.11298388987779617,
-0.35004642605781555,
0.39075639843940735,
0.3549591898918152,
-0.044777899980545044,
-0.043743960559368134,
0.41669389605522156,
0.6353195905685425,
-0.34569674730300903,
0.09949740022420883,
-0.10271698236465454,
-0.15698707103729248,
-0.011073713190853596,
0.5430936217308044,
-0.23431716859340668,
-0.1309782862663269,
-0.23895759880542755,
-0.04081706702709198,
-0.4308939278125763,
0.01081337034702301,
-0.31629857420921326,
0.456630140542984,
-0.043222058564424515,
0.3627100884914398,
0.21050570905208588,
-0.18734970688819885,
-0.14413586258888245,
-0.25864869356155396,
0.1723509579896927,
0.3679336607456207,
-0.2471824586391449,
0.21876117587089539,
-0.12695860862731934,
-0.12202289700508118,
-0.03625227138400078,
0.026031551882624626,
-0.24973976612091064,
-0.03339078649878502,
-0.057677969336509705,
0.17730601131916046,
0.06661458313465118,
-0.11354019492864609,
-0.07354690879583359,
-0.17366977035999298,
-0.13858114182949066,
-0.2681717276573181,
-0.03771784156560898,
0.11092103272676468,
-0.11599935591220856,
0.353161096572876,
-0.17836599051952362,
0.23122572898864746,
0.31867676973342896,
-0.2700003981590271,
-0.10262273252010345,
0.03587159514427185,
0.2229631096124649,
0.060050882399082184,
0.00453167175874114,
-0.06155644357204437,
-0.2772364318370819,
0.1125919371843338,
0.16520316898822784,
0.25497522950172424,
0.20461755990982056,
-0.09999659657478333,
0.10917837917804718,
-0.04380689561367035,
0.20418445765972137,
0.10125526785850525,
-0.1718703657388687,
-0.050829093903303146,
0.060372814536094666,
-0.007623609155416489,
0.1006220281124115,
0.14499907195568085,
0.03886927291750908,
0.12528149783611298,
-0.08346407115459442,
0.27557802200317383,
0.06655879318714142,
0.3113946318626404,
-0.37050777673721313,
0.04514180123806,
0.41785678267478943,
-0.24107296764850616,
0.23508626222610474,
0.4640146791934967,
0.014799613505601883,
0.193049818277359,
0.29070472717285156,
0.10934381186962128,
-0.1187017634510994,
0.3226965069770813,
0.39451703429222107,
0.8204308152198792,
0.5895953178405762,
0.08376968652009964,
0.2746028006076813,
0.09925709664821625,
-0.15360766649246216,
-0.2072514295578003,
0.23582398891448975,
0.39196842908859253,
0.018866688013076782,
0.18569323420524597,
-0.24079908430576324,
-0.48712393641471863,
0.2258823812007904,
0.1217745840549469,
-0.19461801648139954,
-0.08222351968288422,
-0.6648061275482178,
0.011875316500663757,
0.13582652807235718,
-0.18665997684001923,
-0.17971526086330414,
-0.05013806372880936,
0.220590740442276,
0.2597532272338867,
-0.10321985185146332,
-0.16091258823871613,
-0.1724744439125061,
0.06910110265016556,
0.03752904757857323,
-0.007329706102609634,
0.16975747048854828,
-0.13684643805027008,
0.16176097095012665,
0.24482446908950806,
0.1969081163406372,
0.284953236579895,
0.4870796799659729,
-0.16817118227481842,
-0.15989406406879425,
-0.010553201660513878,
-0.19236597418785095,
0.08990161120891571,
0.06671234220266342,
0.03153381496667862,
-0.1532079577445984,
-0.014956234022974968,
0.008462533354759216,
0.03862767294049263,
0.03146062046289444,
-0.09408107399940491,
-0.21825940907001495,
0.1676250398159027,
0.30557453632354736,
-0.36377719044685364,
-0.1490928828716278,
-0.09989863634109497,
-0.24665629863739014,
-0.3483099639415741,
-0.26553475856781006,
0.5327389240264893,
0.027895595878362656,
0.12800973653793335,
0.14216776192188263,
-0.04215959459543228,
0.048786040395498276,
0.1574120819568634,
-0.12155681848526001,
0.0775766521692276,
-0.1540934443473816,
0.13596616685390472,
-0.08580520749092102,
0.03191046416759491,
0.11847475171089172,
-0.38344821333885193,
-0.018849391490221024,
-0.03916454687714577,
0.24254250526428223,
0.06467486172914505,
0.2020900845527649,
-0.09834717214107513,
0.4987447261810303,
0.6146568059921265,
-0.13361555337905884,
-0.1414809226989746,
-0.13041925430297852,
0.37065088748931885,
0.07330819964408875,
-0.07746567577123642,
0.021921303123235703,
0.10242748260498047,
0.006507012993097305,
-0.34206485748291016,
-0.2554904520511627,
-0.01998257078230381,
0.30414512753486633,
0.35128262639045715,
0.09328848868608475,
0.3203134536743164,
-0.019220542162656784,
0.048409707844257355,
-0.2411344051361084,
0.0504152774810791,
-0.12760111689567566,
0.009670205414295197,
-0.022803064435720444,
0.5810165405273438,
-0.22440199553966522,
-0.059342700988054276,
-0.41364988684654236,
0.4290262460708618,
0.09053143858909607,
-0.33885523676872253,
-0.08051943778991699,
0.35840025544166565,
-0.31732094287872314,
-0.2010883092880249,
0.22619517147541046,
0.4100218713283539,
0.15135975182056427,
0.19435712695121765,
-0.5254404544830322,
-0.4069116413593292,
0.4472021460533142,
-0.441707968711853,
-0.5069120526313782,
0.02907465398311615,
-0.3133937418460846,
0.06790400296449661,
0.49642300605773926,
-0.471049964427948,
-0.14913369715213776,
0.0015052962116897106,
-0.08082769066095352,
-0.09160427749156952,
-0.09819349646568298,
0.2610398828983307,
0.015110637992620468,
-0.25184643268585205,
0.17900733649730682,
0.1764504313468933,
-0.022816140204668045,
-0.42041611671447754,
-0.27535998821258545
] |
https://github.com/huggingface/datasets/issues/2005 | Setting to torch format not working with torchvision and MNIST | Hi @lhoestq
Raw feature types are like this:
```
Image:
<class 'list'> 60000 #(type, len)
<class 'list'> 28
<class 'list'> 28
<class 'int'>
Label:
<class 'list'> 60000
<class 'int'>
```
Inside the `prepare_feature` method with batch size 100000 , after processing, they are like this:
Inside Prepare Train Features
```
Image:
<class 'list'> 10000
<class 'torch.Tensor'> 1
<class 'torch.Tensor'> 28
<class 'torch.Tensor'> 28
<class 'torch.Tensor'>
Label:
<class 'list'> 10000
<class 'torch.Tensor'>
```
After map, the feature type are like this:
```
Image:
<class 'list'> 60000
<class 'list'> 1
<class 'list'> 28
<class 'list'> 28
<class 'float'>
Label:
<class 'list'> 60000
<class 'int'>
```
After dataloader with batch size 2, the batch features are like this:
```
Image:
<class 'list'> 1
<class 'list'> 28
<class 'list'> 28
<class 'torch.Tensor'> 2
<class 'torch.Tensor'>
Label:
<class 'torch.Tensor'> 2
<class 'torch.Tensor'>
```
<hr>
When I was setting the format of `train_dataset` to 'torch' after mapping -
```
Image:
<class 'list'> 60000
<class 'list'> 1
<class 'list'> 28
<class 'torch.Tensor'> 28
<class 'torch.Tensor'>
Label:
<class 'torch.Tensor'> 60000
<class 'torch.Tensor'>
```
Corresponding DataLoader batch:
```
From DataLoader batch features
Image:
<class 'list'> 1
<class 'list'> 28
<class 'torch.Tensor'> 2
<class 'torch.Tensor'> 28
<class 'torch.Tensor'>
Label:
<class 'torch.Tensor'> 2
<class 'torch.Tensor'>
```
I will check with features and get back.
| Hi
I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object.
A snippet of what I am trying to do:
```python
def prepare_features(examples):
images = []
labels = []
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(
np.array(examples["image"][example_idx], dtype=np.uint8)
))
else:
images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8)))
labels.append(torch.tensor(examples["label"][example_idx]))
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('mnist')
train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000)
train_dataset.set_format("torch",columns=["image","label"])
```
After this, I check the type of the following:
```python
print(type(train_dataset["train"]["label"]))
print(type(train_dataset["train"]["image"][0]))
```
This leads to the following output:
```python
<class 'torch.Tensor'>
<class 'list'>
```
I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`.
I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue?
Thanks,
Gunjan
EDIT:
I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28).
EDIT 2:
Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. | 213 | Setting to torch format not working with torchvision and MNIST
Hi
I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object.
A snippet of what I am trying to do:
```python
def prepare_features(examples):
images = []
labels = []
for example_idx, example in enumerate(examples["image"]):
if transform is not None:
images.append(transform(
np.array(examples["image"][example_idx], dtype=np.uint8)
))
else:
images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8)))
labels.append(torch.tensor(examples["label"][example_idx]))
output = {"label":labels, "image":images}
return output
raw_dataset = load_dataset('mnist')
train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000)
train_dataset.set_format("torch",columns=["image","label"])
```
After this, I check the type of the following:
```python
print(type(train_dataset["train"]["label"]))
print(type(train_dataset["train"]["image"][0]))
```
This leads to the following output:
```python
<class 'torch.Tensor'>
<class 'list'>
```
I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`.
I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue?
Thanks,
Gunjan
EDIT:
I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28).
EDIT 2:
Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
Hi @lhoestq
Raw feature types are like this:
```
Image:
<class 'list'> 60000 #(type, len)
<class 'list'> 28
<class 'list'> 28
<class 'int'>
Label:
<class 'list'> 60000
<class 'int'>
```
Inside the `prepare_feature` method with batch size 100000 , after processing, they are like this:
Inside Prepare Train Features
```
Image:
<class 'list'> 10000
<class 'torch.Tensor'> 1
<class 'torch.Tensor'> 28
<class 'torch.Tensor'> 28
<class 'torch.Tensor'>
Label:
<class 'list'> 10000
<class 'torch.Tensor'>
```
After map, the feature type are like this:
```
Image:
<class 'list'> 60000
<class 'list'> 1
<class 'list'> 28
<class 'list'> 28
<class 'float'>
Label:
<class 'list'> 60000
<class 'int'>
```
After dataloader with batch size 2, the batch features are like this:
```
Image:
<class 'list'> 1
<class 'list'> 28
<class 'list'> 28
<class 'torch.Tensor'> 2
<class 'torch.Tensor'>
Label:
<class 'torch.Tensor'> 2
<class 'torch.Tensor'>
```
<hr>
When I was setting the format of `train_dataset` to 'torch' after mapping -
```
Image:
<class 'list'> 60000
<class 'list'> 1
<class 'list'> 28
<class 'torch.Tensor'> 28
<class 'torch.Tensor'>
Label:
<class 'torch.Tensor'> 60000
<class 'torch.Tensor'>
```
Corresponding DataLoader batch:
```
From DataLoader batch features
Image:
<class 'list'> 1
<class 'list'> 28
<class 'torch.Tensor'> 2
<class 'torch.Tensor'> 28
<class 'torch.Tensor'>
Label:
<class 'torch.Tensor'> 2
<class 'torch.Tensor'>
```
I will check with features and get back.
| [
-0.12737540900707245,
-0.3511652648448944,
-0.01793275587260723,
0.35360872745513916,
0.4760025143623352,
0.08871380239725113,
0.733028769493103,
0.3804348111152649,
0.06552515923976898,
-0.038042545318603516,
-0.11115357279777527,
0.38195115327835083,
-0.23296885192394257,
-0.3339342772960663,
0.03510889783501625,
-0.5614942312240601,
0.2225799858570099,
-0.09982740879058838,
-0.28079813718795776,
-0.06134728714823723,
-0.2431335300207138,
0.03548943251371384,
-0.2184973657131195,
-0.10849666595458984,
-0.5479357838630676,
0.04409640282392502,
-0.019555658102035522,
-0.07656855136156082,
-0.06229933351278305,
-0.13918034732341766,
0.12234671413898468,
-0.17449648678302765,
0.4444531500339508,
0.7012937068939209,
-0.00012770108878612518,
0.07030172646045685,
0.3642725944519043,
-0.1737782508134842,
0.049999114125967026,
-0.16101329028606415,
0.040047310292720795,
-0.2573830187320709,
0.07277627289295197,
-0.09468314796686172,
-0.22349423170089722,
-0.17084546387195587,
0.09591015428304672,
-0.17902977764606476,
-0.028142273426055908,
0.4191693067550659,
0.0771300345659256,
0.2790106534957886,
0.2466610223054886,
0.1386307328939438,
0.2278119921684265,
0.5182861089706421,
-0.27343839406967163,
-0.05611692741513252,
0.22615043818950653,
0.3754779100418091,
0.12400421500205994,
0.5647351741790771,
-0.2913343906402588,
-0.03623348847031593,
0.26694485545158386,
0.12900540232658386,
-0.10145575553178787,
-0.3140054941177368,
0.049157410860061646,
0.08946321904659271,
0.42194443941116333,
-0.14943954348564148,
-0.08077897131443024,
-0.14366409182548523,
-0.14397819340229034,
-0.12738050520420074,
0.040591202676296234,
0.2803192734718323,
-0.07184071838855743,
-0.1872383952140808,
-0.5392425656318665,
0.3052915334701538,
-0.14862358570098877,
0.2131594568490982,
-0.2805245518684387,
-0.0034207403659820557,
-0.13816343247890472,
0.29280853271484375,
-0.047119248658418655,
-0.11271293461322784,
0.19308120012283325,
-0.12341457605361938,
0.13007575273513794,
-0.009825735352933407,
-0.14363141357898712,
-0.0534907765686512,
-0.38959887623786926,
-0.31501248478889465,
-0.20014813542366028,
-0.160264790058136,
0.16648587584495544,
0.1392759084701538,
-0.11639561504125595,
0.12807080149650574,
0.1826329529285431,
0.26803353428840637,
0.1057826429605484,
0.32070228457450867,
-0.08589236438274384,
-0.2895815670490265,
-0.0469193272292614,
0.08773323893547058,
-0.29622676968574524,
-0.4357527196407318,
0.15453419089317322,
0.32529640197753906,
0.24522115290164948,
0.06874248385429382,
0.12985558807849884,
-0.32394126057624817,
-0.10892283916473389,
-0.009586316533386707,
0.07522494345903397,
0.2850382626056671,
-0.11867916584014893,
0.24390509724617004,
0.48048293590545654,
0.39720290899276733,
-0.15381847321987152,
0.06956236064434052,
0.025072410702705383,
0.03152093663811684,
-0.4404953420162201,
-0.285698801279068,
0.1534099280834198,
-0.1177731603384018,
0.10007032006978989,
0.03743180260062218,
0.04641563445329666,
0.10069668292999268,
0.07349640876054764,
-0.18586979806423187,
0.6246296763420105,
0.14764724671840668,
-0.19447419047355652,
0.2767925560474396,
0.2709067165851593,
0.5297806262969971,
-0.3042983114719391,
0.2565314769744873,
-0.5095702409744263,
0.06525279581546783,
-0.023091500625014305,
-0.014543850906193256,
0.21865473687648773,
-0.020722128450870514,
-0.21216225624084473,
0.015829091891646385,
0.5923119783401489,
-0.08367820084095001,
0.27348780632019043,
-0.5791621804237366,
0.09496405720710754,
-0.1913350522518158,
0.034152500331401825,
0.06366966664791107,
-0.20471526682376862,
-0.05235854536294937,
0.38634371757507324,
0.09194983541965485,
0.3154589533805847,
0.16028177738189697,
0.05108363553881645,
0.07987017929553986,
-0.22535288333892822,
-0.2350507378578186,
0.336323618888855,
-0.37685659527778625,
0.092038094997406,
-0.017693186178803444,
0.09387907385826111,
-0.06380392611026764,
0.11201898753643036,
0.3361778259277344,
0.0326007679104805,
-0.12800128757953644,
0.02944871410727501,
0.1963149607181549,
-0.16618242859840393,
0.1402871161699295,
0.07735966145992279,
0.19130311906337738,
0.19337497651576996,
0.03500647470355034,
-0.015683721750974655,
0.2076537311077118,
-0.22167158126831055,
0.17757640779018402,
-0.054280370473861694,
-0.07471343874931335,
0.07117719203233719,
0.04037807881832123,
-0.36989057064056396,
-0.012196704745292664,
-0.047469694167375565,
0.18646693229675293,
-0.2331002950668335,
-0.048721496015787125,
0.023635171353816986,
0.08221714198589325,
0.05827927961945534,
0.04792488366365433,
0.00497826375067234,
-0.19195683300495148,
-0.18220587074756622,
-0.13902710378170013,
-0.0032417885959148407,
0.0922105610370636,
-0.20947688817977905,
-0.2617241144180298,
-0.05234343558549881,
-0.1232488825917244,
0.17830383777618408,
0.058838095515966415,
-0.35903647541999817,
0.05102594196796417,
0.019273651763796806,
-0.3653304874897003,
-0.20136012136936188,
0.17339247465133667,
0.2676691710948944,
-0.09962134063243866,
-0.04223459213972092,
0.19160327315330505,
0.06328880041837692,
0.11463357508182526,
-0.5482739806175232,
0.08346603065729141,
0.17784196138381958,
-0.24697014689445496,
0.2043914645910263,
0.2162795215845108,
0.14853382110595703,
-0.27550339698791504,
-0.19603440165519714,
0.43878644704818726,
0.16041074693202972,
0.3159129023551941,
-0.33002549409866333,
0.11610180884599686,
-0.07264680415391922,
-0.03940185531973839,
-0.19063392281532288,
-0.040807515382766724,
-0.2772817313671112,
0.0730239748954773,
-0.13185951113700867,
0.012982203625142574,
-0.4569188952445984,
-0.04493575543165207,
0.2962619960308075,
0.08876402676105499,
0.1758728325366974,
-0.0012162551283836365,
-0.3998463451862335,
0.21331259608268738,
0.17712706327438354,
-0.6013532876968384,
0.29783856868743896,
-0.004361569881439209,
0.1892075538635254,
-0.10501866787672043,
0.09558327496051788,
-0.16254311800003052,
0.2484443485736847,
0.1140424907207489,
0.09074831008911133,
-0.19946491718292236,
0.14185220003128052,
-0.10792585462331772,
0.02684575319290161,
0.026369977742433548,
-0.1406286656856537,
-0.2336929440498352,
-0.35895073413848877,
0.2713826298713684,
-0.16618333756923676,
-0.13451848924160004,
-0.40185457468032837,
-0.2621854841709137,
0.03605656698346138,
-0.0740048810839653,
-0.08233382552862167,
0.1507582813501358,
0.18556755781173706,
0.19043487310409546,
0.2634176015853882,
-0.18189401924610138,
0.37431591749191284,
-0.4130295217037201,
-0.035354651510715485,
-0.07500942051410675,
-0.28679606318473816,
-0.09916479885578156,
0.0896558165550232,
-0.5234109163284302,
0.09148447960615158,
-0.2289901077747345,
-0.09319087862968445,
-0.25017622113227844,
0.013548292219638824,
0.14182262122631073,
-0.2678501009941101,
-0.28500327467918396,
0.3085911273956299,
0.19392819702625275,
-0.1424819529056549,
0.04066236689686775,
0.26635080575942993,
0.01030721329152584,
0.04690108448266983,
0.1537836343050003,
-0.08962015807628632,
0.1165606677532196,
-0.06329842656850815,
-0.1767411231994629,
-0.09661835432052612,
-0.07506111264228821,
-0.07041659951210022,
-0.021759849041700363,
0.06337703764438629,
0.346258282661438,
0.3721838891506195,
-0.08989016711711884,
-0.05204236879944801,
0.03560919314622879,
0.06296464800834656,
-0.3976878225803375,
0.5225034356117249,
-0.2261539101600647,
-0.36082619428634644,
0.11920170485973358,
0.023855838924646378,
0.06514731049537659,
0.4862689971923828,
0.060522645711898804,
0.049731601029634476,
0.011782122775912285,
-0.07894501090049744,
0.25259286165237427,
0.22119691967964172,
0.35102030634880066,
-0.09112472832202911,
0.019165800884366035,
-0.1647072732448578,
0.015416599810123444,
-0.10187137871980667,
-0.06325531750917435,
0.6088865995407104,
0.18508407473564148,
0.23994258046150208,
0.09925894439220428,
0.6996648907661438,
-0.06113751605153084,
-0.7380957007408142,
0.21680673956871033,
-0.24250978231430054,
0.19216693937778473,
-0.11812164634466171,
-0.3539585471153259,
0.39885619282722473,
-0.20942005515098572,
0.06437406688928604,
-0.08596731722354889,
-0.024906877428293228,
-0.23915784060955048,
-0.09022422134876251,
0.35736149549484253,
-0.3172067105770111,
-0.15857422351837158,
0.40442991256713867,
-0.14470255374908447,
0.2763724625110626,
-0.23134246468544006,
0.3245895802974701,
-0.2609265446662903,
-0.21379289031028748,
0.06005708500742912,
0.44877195358276367,
0.1385136991739273,
0.04172488674521446,
-0.334284245967865,
-0.2166968435049057,
-0.14322680234909058,
0.3568275272846222,
0.11957734078168869,
0.5672699213027954,
-0.09803614765405655,
-0.07446521520614624,
0.10155647993087769,
0.2413695752620697,
0.830759584903717,
0.04555724561214447,
-0.0904589593410492,
0.15144222974777222,
-0.3478350341320038,
-0.45497822761535645,
-0.10222916305065155,
-0.05141806602478027,
0.09068089723587036,
0.17169034481048584,
0.1203862875699997,
-0.09105332940816879,
-0.18333402276039124,
-0.005832638591527939,
0.19555465877056122,
-0.05512464419007301,
0.034718938171863556,
-0.22691111266613007,
0.05875767022371292,
-0.12964943051338196,
-0.15528327226638794,
0.22118239104747772,
0.02967519871890545,
0.005161826033145189,
-0.30812811851501465,
-0.32623055577278137,
-0.12669971585273743,
0.18248197436332703,
-0.1330120861530304,
0.41106683015823364,
0.09925103932619095,
-0.17808546125888824,
0.07690712064504623,
0.5561056137084961,
0.4184049367904663,
-0.03893890976905823,
-0.1187732070684433,
0.08064393699169159,
0.29311060905456543,
0.10643263161182404,
0.30020424723625183,
0.3208248019218445,
-0.06187279149889946,
-0.43966424465179443,
-0.22684860229492188,
-0.19381509721279144,
-0.3305324614048004,
0.3972930312156677,
0.4080626964569092,
0.09893538802862167,
-0.4953550696372986,
-0.49217066168785095,
0.3861902058124542,
0.2937195599079132,
0.19583018124103546,
0.20459191501140594,
-0.5417593121528625,
-0.40096738934516907,
0.07817859202623367,
0.46624186635017395,
0.8556233048439026,
-0.037078700959682465,
0.370282918214798,
0.03156561776995659,
0.010806940495967865,
0.17210185527801514,
-0.0018886998295783997,
0.41179436445236206,
-0.3542814254760742,
0.1392894983291626,
-0.164854034781456,
-0.31255003809928894,
0.2525230050086975,
-0.060203246772289276,
-0.24396952986717224,
0.04253619536757469,
-0.3494715094566345,
0.1936202496290207,
-0.12569347023963928,
-0.08285336196422577,
-0.04982651770114899,
-0.471418172121048,
0.18787403404712677,
0.015452079474925995,
-0.08251337707042694,
0.26173895597457886,
0.11116153001785278,
-0.16362066566944122,
-0.37986040115356445,
0.06169593334197998,
-0.07622233778238297,
-0.015011643059551716,
-0.24596907198429108,
-0.16324345767498016,
-0.024310410022735596,
-0.7298658490180969,
0.05867994949221611,
0.4961579442024231,
0.33455443382263184,
-0.16056637465953827,
-0.0478365495800972,
0.1396413892507553,
0.44384750723838806,
0.1629004031419754,
-0.09901697933673859,
-0.34018465876579285,
0.2853407561779022,
0.09737569838762283,
0.18433207273483276,
0.10863815248012543,
0.06814876198768616,
0.21052046120166779,
-0.5777894258499146,
0.03725104779005051,
0.30602920055389404,
-0.3449508249759674,
-0.3229842185974121,
-0.19845017790794373,
0.049185048788785934,
0.03816347196698189,
0.028618566691875458,
0.1244892105460167,
-0.03890316188335419,
0.20724302530288696,
-0.04151230677962303,
-0.22646169364452362,
0.13288995623588562,
0.45233139395713806,
0.11298388987779617,
-0.35004642605781555,
0.39075639843940735,
0.3549591898918152,
-0.044777899980545044,
-0.043743960559368134,
0.41669389605522156,
0.6353195905685425,
-0.34569674730300903,
0.09949740022420883,
-0.10271698236465454,
-0.15698707103729248,
-0.011073713190853596,
0.5430936217308044,
-0.23431716859340668,
-0.1309782862663269,
-0.23895759880542755,
-0.04081706702709198,
-0.4308939278125763,
0.01081337034702301,
-0.31629857420921326,
0.456630140542984,
-0.043222058564424515,
0.3627100884914398,
0.21050570905208588,
-0.18734970688819885,
-0.14413586258888245,
-0.25864869356155396,
0.1723509579896927,
0.3679336607456207,
-0.2471824586391449,
0.21876117587089539,
-0.12695860862731934,
-0.12202289700508118,
-0.03625227138400078,
0.026031551882624626,
-0.24973976612091064,
-0.03339078649878502,
-0.057677969336509705,
0.17730601131916046,
0.06661458313465118,
-0.11354019492864609,
-0.07354690879583359,
-0.17366977035999298,
-0.13858114182949066,
-0.2681717276573181,
-0.03771784156560898,
0.11092103272676468,
-0.11599935591220856,
0.353161096572876,
-0.17836599051952362,
0.23122572898864746,
0.31867676973342896,
-0.2700003981590271,
-0.10262273252010345,
0.03587159514427185,
0.2229631096124649,
0.060050882399082184,
0.00453167175874114,
-0.06155644357204437,
-0.2772364318370819,
0.1125919371843338,
0.16520316898822784,
0.25497522950172424,
0.20461755990982056,
-0.09999659657478333,
0.10917837917804718,
-0.04380689561367035,
0.20418445765972137,
0.10125526785850525,
-0.1718703657388687,
-0.050829093903303146,
0.060372814536094666,
-0.007623609155416489,
0.1006220281124115,
0.14499907195568085,
0.03886927291750908,
0.12528149783611298,
-0.08346407115459442,
0.27557802200317383,
0.06655879318714142,
0.3113946318626404,
-0.37050777673721313,
0.04514180123806,
0.41785678267478943,
-0.24107296764850616,
0.23508626222610474,
0.4640146791934967,
0.014799613505601883,
0.193049818277359,
0.29070472717285156,
0.10934381186962128,
-0.1187017634510994,
0.3226965069770813,
0.39451703429222107,
0.8204308152198792,
0.5895953178405762,
0.08376968652009964,
0.2746028006076813,
0.09925709664821625,
-0.15360766649246216,
-0.2072514295578003,
0.23582398891448975,
0.39196842908859253,
0.018866688013076782,
0.18569323420524597,
-0.24079908430576324,
-0.48712393641471863,
0.2258823812007904,
0.1217745840549469,
-0.19461801648139954,
-0.08222351968288422,
-0.6648061275482178,
0.011875316500663757,
0.13582652807235718,
-0.18665997684001923,
-0.17971526086330414,
-0.05013806372880936,
0.220590740442276,
0.2597532272338867,
-0.10321985185146332,
-0.16091258823871613,
-0.1724744439125061,
0.06910110265016556,
0.03752904757857323,
-0.007329706102609634,
0.16975747048854828,
-0.13684643805027008,
0.16176097095012665,
0.24482446908950806,
0.1969081163406372,
0.284953236579895,
0.4870796799659729,
-0.16817118227481842,
-0.15989406406879425,
-0.010553201660513878,
-0.19236597418785095,
0.08990161120891571,
0.06671234220266342,
0.03153381496667862,
-0.1532079577445984,
-0.014956234022974968,
0.008462533354759216,
0.03862767294049263,
0.03146062046289444,
-0.09408107399940491,
-0.21825940907001495,
0.1676250398159027,
0.30557453632354736,
-0.36377719044685364,
-0.1490928828716278,
-0.09989863634109497,
-0.24665629863739014,
-0.3483099639415741,
-0.26553475856781006,
0.5327389240264893,
0.027895595878362656,
0.12800973653793335,
0.14216776192188263,
-0.04215959459543228,
0.048786040395498276,
0.1574120819568634,
-0.12155681848526001,
0.0775766521692276,
-0.1540934443473816,
0.13596616685390472,
-0.08580520749092102,
0.03191046416759491,
0.11847475171089172,
-0.38344821333885193,
-0.018849391490221024,
-0.03916454687714577,
0.24254250526428223,
0.06467486172914505,
0.2020900845527649,
-0.09834717214107513,
0.4987447261810303,
0.6146568059921265,
-0.13361555337905884,
-0.1414809226989746,
-0.13041925430297852,
0.37065088748931885,
0.07330819964408875,
-0.07746567577123642,
0.021921303123235703,
0.10242748260498047,
0.006507012993097305,
-0.34206485748291016,
-0.2554904520511627,
-0.01998257078230381,
0.30414512753486633,
0.35128262639045715,
0.09328848868608475,
0.3203134536743164,
-0.019220542162656784,
0.048409707844257355,
-0.2411344051361084,
0.0504152774810791,
-0.12760111689567566,
0.009670205414295197,
-0.022803064435720444,
0.5810165405273438,
-0.22440199553966522,
-0.059342700988054276,
-0.41364988684654236,
0.4290262460708618,
0.09053143858909607,
-0.33885523676872253,
-0.08051943778991699,
0.35840025544166565,
-0.31732094287872314,
-0.2010883092880249,
0.22619517147541046,
0.4100218713283539,
0.15135975182056427,
0.19435712695121765,
-0.5254404544830322,
-0.4069116413593292,
0.4472021460533142,
-0.441707968711853,
-0.5069120526313782,
0.02907465398311615,
-0.3133937418460846,
0.06790400296449661,
0.49642300605773926,
-0.471049964427948,
-0.14913369715213776,
0.0015052962116897106,
-0.08082769066095352,
-0.09160427749156952,
-0.09819349646568298,
0.2610398828983307,
0.015110637992620468,
-0.25184643268585205,
0.17900733649730682,
0.1764504313468933,
-0.022816140204668045,
-0.42041611671447754,
-0.27535998821258545
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.