html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/888 | Nested lists are zipped unexpectedly | Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`.
See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details | I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
``` | 27 | Nested lists are zipped unexpectedly
I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
```
Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`.
See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details | [
0.22983874380588531,
-0.4676937758922577,
-0.10918619483709335,
0.39305782318115234,
0.01122317649424076,
-0.007393186911940575,
0.24145425856113434,
0.043625976890325546,
0.170482337474823,
0.12772074341773987,
-0.14806903898715973,
0.435934454202652,
0.23617568612098694,
0.2945677638053894,
-0.06695249676704407,
-0.09880285710096359,
0.27586454153060913,
-0.07476779073476791,
-0.1930999606847763,
-0.11464723199605942,
-0.31362298130989075,
0.2664881944656372,
-0.3605996370315552,
0.055194951593875885,
0.0843060165643692,
-0.05681655555963516,
-0.1831730306148529,
0.1451127976179123,
0.16575637459754944,
-0.08426483720541,
0.5213049054145813,
0.037981223315000534,
-0.08861945569515228,
0.5056127309799194,
-0.00011407573765609413,
0.21238313615322113,
0.1992180347442627,
-0.058527834713459015,
-0.24967508018016815,
-0.3481118977069855,
0.0021731529850512743,
-0.42330047488212585,
0.19105814397335052,
-0.27396127581596375,
-0.05789639428257942,
-0.26683124899864197,
-0.02728431113064289,
-0.45052260160446167,
0.5443415641784668,
0.06471098214387894,
0.2045087367296219,
0.2837788164615631,
0.023612357676029205,
0.0481436625123024,
0.2327335774898529,
0.020513057708740234,
-0.11908745020627975,
0.015383814461529255,
0.15558356046676636,
0.0709383487701416,
0.11597047001123428,
-0.018671555444598198,
0.04232639819383621,
0.06944821029901505,
0.2614143192768097,
0.46439602971076965,
-0.2956535220146179,
-0.45149552822113037,
-0.3163236379623413,
0.2530362606048584,
0.056079715490341187,
-0.131722554564476,
-0.3857865333557129,
-0.5079494714736938,
-0.31579169631004333,
-0.4794180393218994,
0.2364196628332138,
0.1448516994714737,
-0.09737426787614822,
0.21249376237392426,
-0.1825152486562729,
0.17445817589759827,
-0.06920211017131805,
0.3213106393814087,
-0.17477430403232574,
0.34117138385772705,
-0.23863685131072998,
0.15469451248645782,
-0.10075705498456955,
-0.11286661773920059,
0.14959532022476196,
-0.45613721013069153,
0.24088123440742493,
0.12730185687541962,
-0.185105562210083,
-0.04078773409128189,
0.05415888503193855,
-0.34831294417381287,
0.06750684976577759,
0.10403667390346527,
-0.008131594397127628,
0.16140934824943542,
-0.38720762729644775,
-0.06633275747299194,
0.29792529344558716,
0.26951730251312256,
-0.08650924265384674,
-0.029597455635666847,
-0.148349791765213,
0.2968333959579468,
0.11758244782686234,
0.015988975763320923,
0.2882223427295685,
0.06998609006404877,
-0.13799841701984406,
-0.030700186267495155,
0.3500603437423706,
0.1445537656545639,
-0.3362065851688385,
0.10176095366477966,
-0.47386837005615234,
-0.07496598362922668,
-0.03369715064764023,
0.06388767063617706,
-0.32066524028778076,
0.1525016725063324,
-0.007156904321163893,
0.24714431166648865,
-0.13455776870250702,
0.3446597754955292,
-0.237173929810524,
-0.19042804837226868,
-0.06528521329164505,
0.0663500428199768,
-0.0420982651412487,
-0.09537896513938904,
0.16548699140548706,
0.2125786691904068,
0.18123407661914825,
-0.2676427364349365,
0.03924468904733658,
0.015229814685881138,
0.3261411488056183,
0.14744669198989868,
-0.1008215993642807,
0.34997493028640747,
0.22308817505836487,
-0.1812283992767334,
-0.10148081928491592,
0.05665603280067444,
-0.5195719003677368,
-0.051851045340299606,
0.15812814235687256,
0.133820042014122,
-0.4378281235694885,
0.09688617289066315,
-0.08043061196804047,
0.14716200530529022,
0.3309531509876251,
0.36691445112228394,
0.03437425196170807,
0.03424980118870735,
-0.5084049701690674,
-0.22939033806324005,
0.0003260927041992545,
-0.07389411330223083,
-0.20717981457710266,
-0.02623019926249981,
-0.101927749812603,
0.07165839523077011,
0.28047510981559753,
0.35139501094818115,
-0.12959939241409302,
0.26296672224998474,
-0.31514132022857666,
0.26500338315963745,
0.1025322899222374,
0.017196374014019966,
-0.37167274951934814,
0.21608072519302368,
-0.15127067267894745,
0.5964815020561218,
0.016699764877557755,
0.009715475142002106,
0.09721622616052628,
-0.1860406994819641,
0.4022802412509918,
0.1987628936767578,
0.3353220522403717,
-0.20426161587238312,
-0.12044810503721237,
-0.08449996262788773,
0.4401874840259552,
-0.23150072991847992,
-0.506645143032074,
0.06581240147352219,
-0.20220518112182617,
-0.053566064685583115,
0.27370595932006836,
-0.08461812138557434,
-0.022978534922003746,
0.4262550473213196,
-0.05087658017873764,
0.17802706360816956,
0.006601566448807716,
0.05734331160783768,
-0.5211533904075623,
0.17285145819187164,
-0.13699769973754883,
-0.15790468454360962,
-0.37929296493530273,
-0.10826202481985092,
-0.1152305006980896,
0.38776037096977234,
-0.18136543035507202,
-0.08647694438695908,
0.15967045724391937,
0.15048931539058685,
-0.07181943207979202,
-0.1262720376253128,
-0.10379830002784729,
0.12335219234228134,
0.07140304893255234,
0.09061748534440994,
-0.6953417062759399,
0.39205673336982727,
0.2789389491081238,
0.0548490434885025,
-0.21763566136360168,
0.23173074424266815,
-0.04565868899226189,
-0.29403117299079895,
0.0523778535425663,
0.2249440997838974,
0.23389597237110138,
-0.1588658094406128,
-0.4249764382839203,
0.02980475127696991,
0.3272550106048584,
-0.019933955743908882,
-0.16821947693824768,
0.4148454964160919,
-0.07352987676858902,
-0.08609767258167267,
-0.4220728874206543,
0.48356735706329346,
-0.09402323514223099,
0.40294501185417175,
-0.15990956127643585,
-0.06250602751970291,
0.04806162416934967,
0.18928241729736328,
-0.2036752700805664,
-0.20968939363956451,
-0.052921611815690994,
0.2995162904262543,
0.18771687150001526,
0.2752785086631775,
-0.24358171224594116,
0.4470912516117096,
0.7448366284370422,
0.03508858010172844,
-0.0720679759979248,
0.27816179394721985,
-0.019539441913366318,
-0.24792027473449707,
-0.05993230268359184,
0.09525950253009796,
0.3652765154838562,
0.0646611824631691,
0.22163894772529602,
0.11589159071445465,
-0.12297423183917999,
-0.2536590099334717,
-0.007780857849866152,
0.2639898955821991,
0.15660160779953003,
-0.010072872042655945,
0.281886488199234,
-0.0750233381986618,
-0.25094741582870483,
0.11762935668230057,
-0.01214233785867691,
0.0026537191588431597,
-0.15096156299114227,
0.33718910813331604,
-0.36867907643318176,
0.011347289197146893,
0.05871133878827095,
-0.547153651714325,
-0.09466013312339783,
-0.31443190574645996,
-0.12469875812530518,
0.22931750118732452,
-0.03630375862121582,
-0.021086011081933975,
0.5416879057884216,
0.007451711688190699,
0.2658095955848694,
0.05521836131811142,
-0.07125526666641235,
0.07660254091024399,
-0.23920533061027527,
0.07236643135547638,
-0.07379692792892456,
-0.21919982135295868,
-0.019729897379875183,
0.2536250352859497,
-0.21254047751426697,
-0.2188151329755783,
-0.20200420916080475,
0.0020513904746621847,
-0.4176460802555084,
0.286864310503006,
0.12449757009744644,
0.3577861189842224,
0.08635319024324417,
-0.13630522787570953,
0.02868914045393467,
0.7422842383384705,
-0.2904422879219055,
0.03336049243807793,
0.15720458328723907,
-0.013064739294350147,
-0.27049919962882996,
-0.3338177502155304,
-0.20838527381420135,
-0.06913478672504425,
0.6958269476890564,
0.23053495585918427,
0.13449561595916748,
0.198408305644989,
-0.06064557656645775,
-0.20142501592636108,
0.3159995675086975,
-0.1195731833577156,
-0.28126657009124756,
-0.31806105375289917,
0.2908920645713806,
-0.15029259026050568,
-0.43292370438575745,
-0.17166198790073395,
-0.2320408672094345,
0.1632247269153595,
-0.05224604159593582,
-0.26770687103271484,
-0.05195964500308037,
-0.335341215133667,
0.26345738768577576,
0.11473406106233597,
-0.01832357980310917,
0.3230088949203491,
0.0054676528088748455,
0.0031281413976103067,
-0.09694889932870865,
-0.08483447879552841,
0.2513018846511841,
0.031140601262450218,
0.1827378123998642,
0.14954037964344025,
0.2881781756877899,
0.06946652382612228,
0.3716076910495758,
0.44875848293304443,
-0.05758780241012573,
0.07087413966655731,
-0.2050478309392929,
0.0590156689286232,
-0.3577527105808258,
-0.028577182441949844,
-0.32489901781082153,
-0.09132609516382217,
-0.1134556233882904,
0.14707474410533905,
-0.04454756900668144,
-0.142478808760643,
0.22771640121936798,
0.2406812161207199,
0.05880451947450638,
-0.17939333617687225,
0.05935196205973625,
-0.13863158226013184,
-0.06767585873603821,
0.12511949241161346,
0.10052087157964706,
-0.2591463029384613,
-0.2106325775384903,
-0.18909385800361633,
-0.2704479396343231,
0.3228023052215576,
-0.13355094194412231,
-0.4832399785518646,
-0.3275098204612732,
-0.2935384213924408,
0.0865745097398758,
0.06585947424173355,
0.3359498977661133,
0.12101216614246368,
-0.3332602083683014,
0.17204856872558594,
0.00421071657910943,
0.6275281310081482,
0.1835339069366455,
-0.10389126092195511,
0.23929400742053986,
-0.37928506731987,
-0.5593376159667969,
-0.22334665060043335,
-0.3037460446357727,
0.058243297040462494,
-0.07339684665203094,
0.7011969089508057,
-0.43229198455810547,
-0.2735140323638916,
-0.15425677597522736,
0.022594794631004333,
-0.1823844015598297,
-0.11031948029994965,
-0.17269283533096313,
-0.03836740925908089,
-0.0809846743941307,
-0.31573933362960815,
0.12110312283039093,
0.022062130272388458,
-0.20137187838554382,
-0.5030108094215393,
-0.03027012199163437,
-0.14972133934497833,
0.03272838890552521,
-0.1705443561077118,
0.2045017033815384,
0.1852380484342575,
-0.053342752158641815,
0.18296344578266144,
0.3905874490737915,
-0.3235558271408081,
0.5041462182998657,
0.16338574886322021,
-0.42022156715393066,
-0.05677003785967827,
-0.05225814878940582,
-0.03874100372195244,
0.170734703540802,
-0.27894890308380127,
0.3413133919239044,
-0.20474407076835632,
0.18574278056621552,
-0.42332661151885986,
0.026189930737018585,
0.5656718015670776,
0.16400493681430817,
-0.1857062429189682,
-0.44884222745895386,
0.46330738067626953,
-0.0362384095788002,
-0.23612411320209503,
0.2130219042301178,
-0.477150022983551,
-0.22495047748088837,
0.08511745929718018,
-0.09771702438592911,
0.6535152196884155,
-0.014114667661488056,
0.3276812732219696,
0.7303429841995239,
0.2532292306423187,
0.6516915559768677,
-0.20090226829051971,
0.10172642022371292,
-0.0378718227148056,
-0.2553577423095703,
-0.23215244710445404,
-0.09909228980541229,
-0.24376879632472992,
0.07220958173274994,
-0.16714808344841003,
0.32491937279701233,
-0.2017383575439453,
-0.09809034317731857,
-0.1091667041182518,
-0.22465480864048004,
0.36767733097076416,
-0.1916196495294571,
-0.2470279186964035,
0.0923592746257782,
0.1439550369977951,
0.27669283747673035,
-0.02904658019542694,
-0.17885278165340424,
-0.3586546778678894,
-0.08180219680070877,
0.016900992020964622,
0.051918528974056244,
-0.041986797004938126,
0.2930721938610077,
0.5869745016098022,
-0.08689998090267181,
-0.15372280776500702,
0.36902767419815063,
0.14239072799682617,
-0.10047293454408646,
-0.09462177008390427,
-0.15217240154743195,
-0.21621176600456238,
0.1140698567032814,
0.14033471047878265,
-0.19924405217170715,
0.186988964676857,
0.1408911943435669,
-0.06719592958688736,
-0.05837856978178024,
-0.1235269159078598,
-0.02811049297451973,
-0.15394218266010284,
0.3628603219985962,
-0.17322878539562225,
-0.3580101430416107,
-0.13355162739753723,
0.13376758992671967,
-0.07433068752288818,
0.009341337718069553,
0.14063821732997894,
-0.07206383347511292,
-0.12723517417907715,
0.17935317754745483,
-0.17114555835723877,
-0.38433384895324707,
-0.100631944835186,
0.4531826674938202,
0.34656330943107605,
0.23328834772109985,
0.5220938920974731,
0.21173696219921112,
-0.013121381402015686,
-0.04133634641766548,
0.10719793289899826,
0.2450934499502182,
0.04290825501084328,
0.2102355659008026,
-0.22966329753398895,
0.0036048893816769123,
-0.1185465157032013,
0.43138375878334045,
0.14014364778995514,
-0.006808154750615358,
-0.31983083486557007,
-0.2256009429693222,
-0.1199585571885109,
0.11462324857711792,
0.13805311918258667,
0.08693228662014008,
-0.3789418935775757,
0.12099798768758774,
0.017273567616939545,
-0.2959541976451874,
-0.244249165058136,
0.0440337248146534,
-0.17469888925552368,
0.0734403133392334,
0.16506265103816986,
-0.06725268810987473,
0.25271058082580566,
0.07984814792871475,
0.14228583872318268,
0.11946633458137512,
-0.21475505828857422,
-0.24838802218437195,
-0.07793854922056198,
0.024731114506721497,
-0.1127660721540451,
-0.11586223542690277,
0.04022069275379181,
0.07329314202070236,
0.0024655391462147236,
-0.2223987579345703,
0.062097907066345215,
0.05236468464136124,
0.10281442850828171,
0.09344395995140076,
0.11878937482833862,
0.11333654820919037,
-0.0887407436966896,
0.02199583128094673,
-0.11390605568885803,
0.3333357274532318,
-0.08804246038198471,
-0.00827454961836338,
-0.3272552788257599,
-0.037597768008708954,
-0.3286808133125305,
-0.004740815609693527,
-0.0873388797044754,
0.051862455904483795,
0.38606229424476624,
-0.15409065783023834,
-0.17579728364944458,
-0.14739346504211426,
0.32979172468185425,
0.41876962780952454,
-0.18397705256938934,
-0.11483383923768997,
-0.3160581886768341,
0.15244746208190918,
-0.04300147667527199,
-0.19445189833641052,
0.2041420340538025,
0.4142586290836334,
0.04786673188209534,
0.35996195673942566,
0.07953813672065735,
0.12550023198127747,
0.010744203813374043,
-0.20781558752059937,
0.09085196256637573,
-0.07192879915237427,
0.32820332050323486,
0.2948705852031708,
-0.012539477087557316,
0.18776457011699677,
0.13932593166828156,
-0.10762181878089905,
0.13662172853946686,
0.5006203055381775,
0.4455505907535553,
0.15728354454040527,
0.4649830758571625,
0.2576404809951782,
0.16203197836875916,
-0.3960627019405365,
-0.09343535453081131,
0.21196408569812775,
-0.006872940342873335,
0.11351339519023895,
0.2420567125082016,
0.13504227995872498,
0.03175932914018631,
-0.24651393294334412,
-0.07105089724063873,
0.13779769837856293,
0.035261981189250946,
-0.39077475666999817,
0.08549021929502487,
-0.023466063663363457,
-0.0725790411233902,
-0.19070224463939667,
-0.024770021438598633,
-0.3372785151004791,
0.2577615976333618,
-0.1021222472190857,
0.16907794773578644,
-0.17884252965450287,
0.07240656018257141,
-0.03903346136212349,
0.1608751118183136,
-0.011252211406826973,
0.39894428849220276,
0.32080307602882385,
-0.16319279372692108,
0.00965295173227787,
0.005761094857007265,
0.16891586780548096,
0.07398764044046402,
-0.002522930270060897,
0.18512365221977234,
0.08491935580968857,
-0.16913458704948425,
-0.09216877818107605,
0.17388370633125305,
-0.2618694603443146,
-0.12276886403560638,
0.3215522766113281,
0.1802615076303482,
-0.09504672139883041,
0.37880611419677734,
0.18229036033153534,
0.32234692573547363,
-0.4141271710395813,
0.32348769903182983,
-0.36906254291534424,
0.06902112066745758,
-0.13747920095920563,
-0.2140282392501831,
-0.48571789264678955,
-0.18494929373264313,
0.45498454570770264,
0.06229632720351219,
0.38710176944732666,
0.07716717571020126,
0.10508982092142105,
-0.1980639547109604,
0.5660415887832642,
0.1562879979610443,
0.08481016010046005,
0.2197216898202896,
-0.016659602522850037,
-0.1285703182220459,
0.19372250139713287,
0.028212135657668114,
0.07469142228364944,
0.04112493619322777,
0.2085571140050888,
-0.012678752653300762,
0.19190923869609833,
-0.24879437685012817,
-0.3145216703414917,
-0.23959997296333313,
0.12383946776390076,
-0.6030552983283997,
-0.21362663805484772,
0.05461026728153229,
0.13221049308776855,
0.02278243377804756,
-0.13036879897117615,
0.3184504210948944,
-0.05312250927090645,
-0.04057818278670311,
0.00551991444081068,
0.2425612062215805,
-0.3423750400543213,
0.18141032755374908,
0.06021622195839882,
0.3718809485435486,
-0.14782147109508514,
-0.025227006524801254,
-0.12647120654582977,
-0.2578122317790985,
-0.13136272132396698,
0.07531415671110153,
0.5303569436073303,
-0.10085291415452957,
0.3721911609172821,
-0.16195343434810638,
0.2664507329463959,
-0.02188272774219513,
-0.11178073287010193,
0.24698230624198914,
-0.44014859199523926,
-0.328955739736557,
0.25834667682647705,
-0.26559674739837646,
0.12131422758102417,
0.14670851826667786,
0.6770501136779785,
-0.009260226041078568,
0.14496073126792908,
0.22927352786064148,
-0.12962163984775543,
0.48180654644966125,
-0.20918425917625427,
-0.40573588013648987,
0.1518884003162384,
-0.14565671980381012,
0.15263009071350098,
-0.22122611105442047,
-0.008383775129914284,
-0.09043268114328384,
0.47028160095214844,
-0.31186026334762573,
-0.3027622699737549,
0.029877321794629097,
-0.042978428304195404,
-0.0823715478181839,
-0.24349044263362885,
0.3457026779651642,
0.12186340242624283,
-0.2046688199043274,
0.37939828634262085,
-0.22598281502723694
] |
https://github.com/huggingface/datasets/issues/888 | Nested lists are zipped unexpectedly | Thanks.
This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
| I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
``` | 28 | Nested lists are zipped unexpectedly
I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
```
Thanks.
This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
| [
0.21846766769886017,
-0.31721821427345276,
-0.15455208718776703,
0.40963977575302124,
0.019808528944849968,
0.0022648668382316828,
0.1813221424818039,
0.12848219275474548,
0.12042085826396942,
0.11076198518276215,
-0.08942649513483047,
0.5233137011528015,
0.33097413182258606,
0.20519095659255981,
-0.10971169918775558,
-0.06532086431980133,
0.31392261385917664,
-0.054633114486932755,
-0.028982285410165787,
-0.07130405306816101,
-0.3160272240638733,
0.2633284628391266,
-0.3739173114299774,
0.04648657143115997,
0.13226282596588135,
-0.05219149589538574,
-0.25759732723236084,
0.31288206577301025,
0.10925901681184769,
-0.07227547466754913,
0.41276103258132935,
-0.07933759689331055,
-0.10829555243253708,
0.40870198607444763,
-0.00011303029168630019,
0.15144237875938416,
0.2343338131904602,
-0.10968983173370361,
-0.22925633192062378,
-0.28968775272369385,
0.11246135830879211,
-0.4846195578575134,
0.11443911492824554,
-0.25473764538764954,
-0.039697080850601196,
-0.28458285331726074,
-0.12641464173793793,
-0.6383926272392273,
0.47453388571739197,
-0.12578406929969788,
0.22453880310058594,
0.23740254342556,
0.06650824844837189,
0.04225290194153786,
0.2652527987957001,
-0.08348191529512405,
-0.03733540326356888,
0.10731164366006851,
0.2651546001434326,
-0.010516978800296783,
0.14353270828723907,
-0.08464746177196503,
-0.10272929817438126,
0.04347481206059456,
0.14240391552448273,
0.38843482732772827,
-0.36565491557121277,
-0.4055754244327545,
-0.31646478176116943,
0.13160671293735504,
0.129377543926239,
-0.08039180189371109,
-0.33274683356285095,
-0.4394022226333618,
-0.3403947651386261,
-0.4365856349468231,
0.1443234086036682,
0.29442474246025085,
-0.03516126796603203,
0.20338869094848633,
-0.14298024773597717,
0.14549708366394043,
0.02651461958885193,
0.3943547308444977,
-0.09280703961849213,
0.5669482946395874,
-0.1781390905380249,
0.20753315091133118,
-0.14154067635536194,
-0.09789194911718369,
0.321732759475708,
-0.5392983555793762,
0.11955411732196808,
0.08275321871042252,
-0.08114499598741531,
0.028947709128260612,
-0.025487219914793968,
-0.29507848620414734,
0.02092468924820423,
0.24300803244113922,
0.009758569300174713,
0.0969805046916008,
-0.2464403361082077,
-0.09636353701353073,
0.34391656517982483,
0.23050707578659058,
-0.1567777693271637,
0.04801133647561073,
-0.19938892126083374,
0.24592144787311554,
0.0642060786485672,
-0.07430257648229599,
0.33139026165008545,
-0.018140243366360664,
0.004182540811598301,
0.09408239275217056,
0.3247087001800537,
-0.006613185629248619,
-0.3000767230987549,
-0.017223186790943146,
-0.6085444688796997,
-0.12700574100017548,
-0.015709104016423225,
-0.02121109701693058,
-0.21860556304454803,
0.23459480702877045,
-0.06605725735425949,
0.3846604526042938,
-0.12841758131980896,
0.2158970832824707,
-0.1964946687221527,
-0.1969260275363922,
-0.14036086201667786,
0.04982897639274597,
-0.02284308709204197,
-0.07315678894519806,
0.1988912969827652,
0.30861860513687134,
0.09859973192214966,
-0.32327425479888916,
0.0642547681927681,
0.05886353552341461,
0.2998344898223877,
0.07703148573637009,
0.04181806370615959,
0.33012139797210693,
0.29619941115379333,
-0.17138011753559113,
-0.08284725993871689,
0.1917274296283722,
-0.6464289426803589,
-0.06232408061623573,
0.13489778339862823,
0.15340396761894226,
-0.44815027713775635,
0.04457929730415344,
0.03836022689938545,
-0.03740449994802475,
0.35448265075683594,
0.24287961423397064,
0.014559541828930378,
0.0994817242026329,
-0.3080241084098816,
-0.19643133878707886,
-0.1299651712179184,
-0.06101534888148308,
-0.2842940390110016,
0.11406099796295166,
-0.24709703028202057,
0.12788330018520355,
0.4151356518268585,
0.16777940094470978,
-0.15441159904003143,
0.21560679376125336,
-0.33776840567588806,
0.2923150658607483,
0.12592069804668427,
0.1345868557691574,
-0.4144975543022156,
0.30280426144599915,
-0.1807543784379959,
0.5522434115409851,
0.038271695375442505,
-0.005897555034607649,
-0.11937353760004044,
-0.13126713037490845,
0.48940667510032654,
0.14287203550338745,
0.3969980478286743,
-0.19767583906650543,
-0.23311865329742432,
-0.035386573523283005,
0.4713866114616394,
-0.184308260679245,
-0.5262540578842163,
0.1478792279958725,
-0.15204964578151703,
-0.1689661294221878,
0.3451801538467407,
-0.12723393738269806,
0.03505668044090271,
0.428943932056427,
0.004361079074442387,
-0.0003773157950490713,
-0.024130258709192276,
0.08164696395397186,
-0.33558985590934753,
0.09892293810844421,
-0.22584578394889832,
-0.28608545660972595,
-0.44638121128082275,
-0.018377024680376053,
-0.1477213054895401,
0.25644195079803467,
-0.17006546258926392,
-0.030860966071486473,
0.1736149936914444,
0.20906060934066772,
-0.11638850718736649,
-0.31996050477027893,
-0.010587635450065136,
0.019504809752106667,
0.32656070590019226,
0.09761378169059753,
-0.6830198764801025,
0.405405730009079,
0.2875940501689911,
-0.011384865269064903,
-0.1458495557308197,
0.0695437639951706,
0.15248218178749084,
-0.2553287148475647,
0.018017105758190155,
0.3207510709762573,
0.15931138396263123,
-0.18358160555362701,
-0.3426267206668854,
-0.15456053614616394,
0.15208588540554047,
-0.024511225521564484,
0.024228215217590332,
0.5047957301139832,
-0.0688403770327568,
-0.03772016242146492,
-0.2710860073566437,
0.5477911829948425,
-0.25547775626182556,
0.43148013949394226,
-0.21039530634880066,
-0.054799892008304596,
-0.0019478440517559648,
0.11013391613960266,
-0.1451646238565445,
-0.1782769411802292,
-0.05194903165102005,
0.3697813153266907,
0.13206109404563904,
0.22170577943325043,
-0.1272536963224411,
0.5368802547454834,
0.622623860836029,
0.014943216927349567,
-0.1085233986377716,
0.23665636777877808,
-0.01727098971605301,
-0.23394988477230072,
-0.08270307630300522,
0.131830096244812,
0.47690507769584656,
0.16632449626922607,
0.238328754901886,
0.06337353587150574,
-0.04665762186050415,
-0.2988385260105133,
0.041532889008522034,
0.2948477268218994,
0.14174306392669678,
0.018941642716526985,
0.24715933203697205,
-0.11037171632051468,
-0.18901856243610382,
0.13108858466148376,
-0.06762025505304337,
-0.05555088818073273,
-0.18472784757614136,
0.4284857511520386,
-0.4148806035518646,
0.1286703497171402,
0.008959620259702206,
-0.6086061596870422,
-0.12592898309230804,
-0.3674314320087433,
-0.09627635031938553,
0.16301710903644562,
-0.033271875232458115,
-0.07937344908714294,
0.31833764910697937,
-0.05088112875819206,
0.20746637880802155,
0.03442760184407234,
-0.09795310348272324,
0.054923057556152344,
-0.30404534935951233,
0.11654491722583771,
-0.0992763563990593,
-0.17880496382713318,
-0.1328113079071045,
0.286011666059494,
-0.0628289058804512,
-0.0983801931142807,
-0.16778770089149475,
-0.061333250254392624,
-0.32984042167663574,
0.43589264154434204,
-0.00530328368768096,
0.2740272581577301,
0.14201445877552032,
-0.1684321016073227,
-0.057388924062252045,
0.811455249786377,
-0.2242007851600647,
-0.05300132930278778,
0.1051107719540596,
-0.1221105307340622,
-0.2619017958641052,
-0.2897168695926666,
-0.2417910248041153,
-0.0876348540186882,
0.5448138117790222,
0.2349027842283249,
0.06521305441856384,
0.012659813277423382,
-0.09158477187156677,
-0.40411701798439026,
0.46600326895713806,
-0.20621563494205475,
-0.2937188446521759,
-0.36254194378852844,
0.38377121090888977,
-0.17041949927806854,
-0.30731257796287537,
-0.14110514521598816,
-0.23179693520069122,
0.20737552642822266,
-0.05514942854642868,
-0.20602789521217346,
0.06941047310829163,
-0.2908574938774109,
0.17785270512104034,
0.017011065036058426,
0.015464062802493572,
0.2527924180030823,
0.11662664264440536,
-0.022867167368531227,
-0.12349361181259155,
-0.0833318829536438,
0.1336052119731903,
-0.11750015616416931,
0.31878942251205444,
-0.01428601797670126,
0.16774217784404755,
0.01501697301864624,
0.24843770265579224,
0.3785092234611511,
0.11093577742576599,
0.17586274445056915,
-0.16044801473617554,
0.04115267097949982,
-0.27544599771499634,
-0.033614084124565125,
-0.4888684153556824,
-0.06389755010604858,
-0.14707770943641663,
0.10495030134916306,
-0.03063197433948517,
-0.27734819054603577,
0.20617114007472992,
0.05426008999347687,
-0.06454548984766006,
-0.12424807250499725,
0.06563381850719452,
-0.1353941708803177,
-0.02988974191248417,
0.1548278033733368,
0.0780922994017601,
-0.2866789698600769,
-0.28046196699142456,
-0.22605223953723907,
-0.35234129428863525,
0.35819482803344727,
-0.1251738965511322,
-0.5212159752845764,
-0.3446734845638275,
-0.06810268759727478,
0.23248884081840515,
0.015518303960561752,
0.24906271696090698,
0.17685098946094513,
-0.3771738111972809,
0.09622582048177719,
-0.04482351243495941,
0.5204251408576965,
0.22176022827625275,
-0.03320392593741417,
0.3260820209980011,
-0.13753008842468262,
-0.4786704480648041,
-0.2850191295146942,
-0.3057846426963806,
0.21254314482212067,
-0.11465618014335632,
0.685915470123291,
-0.4032104015350342,
-0.1047900840640068,
-0.06628886610269547,
0.1085297092795372,
-0.13283087313175201,
-0.20472043752670288,
-0.20618434250354767,
-0.010784008540213108,
-0.019001219421625137,
-0.24658939242362976,
0.04285998269915581,
0.16728419065475464,
-0.30294090509414673,
-0.45079198479652405,
0.020264042541384697,
-0.1985384225845337,
0.019310617819428444,
-0.2084348350763321,
0.2844066321849823,
0.10697170346975327,
-0.004723213613033295,
0.14851130545139313,
0.46337249875068665,
-0.3736361265182495,
0.6574386954307556,
0.23145024478435516,
-0.2134837508201599,
-0.019956588745117188,
-0.08278641849756241,
0.0931333675980568,
0.15651918947696686,
-0.24625429511070251,
0.34248462319374084,
-0.19023391604423523,
0.09401292353868484,
-0.2823221981525421,
-0.18783922493457794,
0.4364047944545746,
0.024758972227573395,
-0.16641287505626678,
-0.40406209230422974,
0.48620209097862244,
-0.15261255204677582,
-0.2920738160610199,
0.1725664734840393,
-0.7546377778053284,
-0.15074115991592407,
0.06666456162929535,
-0.07456701248884201,
0.7946734428405762,
0.13339895009994507,
0.16289059817790985,
0.5988460779190063,
0.15699398517608643,
0.34403330087661743,
-0.2301671802997589,
0.12906157970428467,
-0.12002395838499069,
-0.18316923081874847,
-0.1518256515264511,
-0.10168106108903885,
-0.229971244931221,
0.21756768226623535,
-0.1713269054889679,
0.3684469759464264,
-0.306654691696167,
-0.20795828104019165,
-0.08208075165748596,
-0.2884981036186218,
0.2763157784938812,
-0.13973817229270935,
-0.36778005957603455,
0.08314059674739838,
0.08896011859178543,
0.18205626308918,
0.01627478189766407,
-0.22328533232212067,
-0.4019067585468292,
-0.182864710688591,
0.1694711148738861,
0.1881856918334961,
0.07377159595489502,
0.2382063865661621,
0.5669977068901062,
-0.0908387154340744,
-0.23765777051448822,
0.2308870106935501,
0.03782157227396965,
0.00831752922385931,
-0.05109277740120888,
-0.08689526468515396,
-0.04980850964784622,
0.10957197844982147,
0.13939785957336426,
-0.07937037199735641,
0.0019789044745266438,
0.14298763871192932,
-0.18892058730125427,
-0.03809216991066933,
-0.1322389394044876,
-0.07500143349170685,
-0.26702022552490234,
0.3036189675331116,
-0.06649888306856155,
-0.49306952953338623,
-0.0863867774605751,
0.1625569611787796,
0.09610726684331894,
-0.04421500489115715,
0.14096088707447052,
-0.058447569608688354,
-0.06000114604830742,
0.21543040871620178,
-0.20956645905971527,
-0.3898905813694,
-0.13025853037834167,
0.4818539023399353,
0.35420817136764526,
0.33140262961387634,
0.5364950299263,
0.11738242954015732,
-0.005248392000794411,
-0.061588969081640244,
0.17743758857250214,
0.17317628860473633,
0.05555708706378937,
0.23084166646003723,
-0.2614547908306122,
0.13894860446453094,
0.025560511276125908,
0.24953991174697876,
0.1538054496049881,
0.09332015365362167,
-0.2747825086116791,
-0.2578546702861786,
-0.012396576814353466,
0.07527048885822296,
0.2469942420721054,
0.02641293965280056,
-0.36949193477630615,
0.01665600761771202,
-0.06555544584989548,
-0.29434818029403687,
-0.2588207721710205,
0.1187271699309349,
-0.07350407540798187,
0.07066313177347183,
0.06329496949911118,
-0.04989283159375191,
0.09830661118030548,
0.1755087673664093,
0.17880193889141083,
0.09733526408672333,
-0.09398316591978073,
-0.24234403669834137,
-0.08931885659694672,
0.03993828967213631,
-0.09944621473550797,
-0.051297809928655624,
0.03122580423951149,
0.06194464862346649,
0.11776787042617798,
-0.1408180147409439,
-0.08007626980543137,
-0.05016041174530983,
0.11515922099351883,
0.049476150423288345,
0.17524400353431702,
0.009220368228852749,
-0.16704949736595154,
0.06506577879190445,
-0.16281430423259735,
0.35219401121139526,
-0.07341538369655609,
0.02299616113305092,
-0.2047654092311859,
-0.03578346222639084,
-0.33331140875816345,
-0.1181887537240982,
-0.06016450375318527,
0.2736838161945343,
0.44233086705207825,
-0.17544539272785187,
-0.09912688285112381,
-0.1710648089647293,
0.3002392053604126,
0.46212154626846313,
-0.10710588842630386,
-0.05822261795401573,
-0.4228379726409912,
0.18977023661136627,
-0.0301656574010849,
-0.22065041959285736,
0.04779770225286484,
0.406749963760376,
-0.011504250578582287,
0.3411346971988678,
0.07623638957738876,
0.004459287505596876,
0.18758507072925568,
-0.16098621487617493,
0.21293741464614868,
0.06910651922225952,
0.28612494468688965,
0.4457661807537079,
-0.018822919577360153,
0.1424773633480072,
0.19348427653312683,
-0.18987612426280975,
0.07587432116270065,
0.40383851528167725,
0.4355384409427643,
0.10026364773511887,
0.5404441952705383,
0.19175152480602264,
-0.05077294632792473,
-0.3868575096130371,
-0.11489202082157135,
0.1924688220024109,
0.16131699085235596,
0.1440420150756836,
0.3425581157207489,
0.1328892558813095,
-0.023340603336691856,
-0.1878124326467514,
-0.10280425101518631,
0.16399501264095306,
0.17702440917491913,
-0.4165565073490143,
0.015663132071495056,
-0.15860098600387573,
-0.17369909584522247,
-0.09607821702957153,
-0.028438059613108635,
-0.21678465604782104,
0.2008899599313736,
-0.19736170768737793,
0.11106911301612854,
-0.2086459994316101,
0.1426241248846054,
0.0291806198656559,
0.113515205681324,
-0.12199358642101288,
0.3748130202293396,
0.4225356876850128,
-0.1691361963748932,
0.13620729744434357,
-0.02146220952272415,
0.19881151616573334,
0.11221260577440262,
-0.06230338290333748,
0.057575859129428864,
0.10412436723709106,
-0.2180202156305313,
-0.05220463126897812,
0.17241114377975464,
-0.20578773319721222,
-0.1832585483789444,
0.2945328950881958,
0.20708654820919037,
-0.13004159927368164,
0.5459813475608826,
0.2538103759288788,
0.3727189302444458,
-0.32818859815597534,
0.284149169921875,
-0.270430326461792,
-0.030711522325873375,
-0.18450112640857697,
-0.35614147782325745,
-0.45681262016296387,
-0.22689877450466156,
0.3489001393318176,
0.1265207678079605,
0.30130109190940857,
0.06697788089513779,
0.11086111515760422,
-0.1432696133852005,
0.5278856158256531,
0.1273643672466278,
-0.07210371643304825,
0.15256233513355255,
-0.057444486767053604,
-0.0945013090968132,
0.30243951082229614,
-0.1291501671075821,
0.07928492873907089,
-0.016669467091560364,
0.07803571969270706,
0.08335750550031662,
0.19776184856891632,
-0.22638273239135742,
-0.2716866135597229,
-0.3187076151371002,
0.2024093121290207,
-0.6554202437400818,
-0.24554547667503357,
0.3589974045753479,
0.20674288272857666,
0.0032627168111503124,
-0.14578430354595184,
0.2539191246032715,
-0.02991863526403904,
0.007100988645106554,
-0.01842467673122883,
0.04419242963194847,
-0.24374596774578094,
0.1884051412343979,
0.15711763501167297,
0.4281648099422455,
-0.06770826876163483,
-0.07355542480945587,
-0.13802577555179596,
-0.27737876772880554,
-0.1953829973936081,
0.14497540891170502,
0.5468015670776367,
0.032432977110147476,
0.34504178166389465,
-0.10001377016305923,
0.36059460043907166,
-0.10937121510505676,
-0.14594724774360657,
0.10215085744857788,
-0.27453067898750305,
-0.23567946255207062,
0.21474190056324005,
-0.27249056100845337,
0.09016657620668411,
0.07185047119855881,
0.600497305393219,
0.02556842379271984,
0.201538547873497,
0.22850848734378815,
-0.09280809015035629,
0.38094228506088257,
-0.10586807131767273,
-0.4406687021255493,
0.275593638420105,
-0.1367698758840561,
0.1099882572889328,
-0.2000235617160797,
0.20153234899044037,
-0.07027176767587662,
0.5745115280151367,
-0.24510623514652252,
-0.11490663141012192,
0.028858475387096405,
-0.0563109926879406,
-0.11137733608484268,
-0.18281427025794983,
0.21705397963523865,
0.14658401906490326,
-0.1766926646232605,
0.2814052104949951,
-0.16167253255844116
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Yes right now `ArrayXD` can only be used as a column feature type, not a subtype.
With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes.
For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset.
What do you think ? | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 85 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yes right now `ArrayXD` can only be used as a column feature type, not a subtype.
With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes.
For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset.
What do you think ? | [
-0.1616060733795166,
0.01084157545119524,
-0.06661894172430038,
0.17723128199577332,
0.3133356273174286,
0.00577168446034193,
0.5568304657936096,
0.11533649265766144,
-0.13974183797836304,
0.07902061939239502,
0.16181223094463348,
0.061189040541648865,
-0.24828724563121796,
0.28827938437461853,
0.1433378905057907,
-0.4168107509613037,
0.16501134634017944,
0.25722721219062805,
0.05538158491253853,
0.11300898343324661,
-0.18978223204612732,
-0.20306070148944855,
-0.22296251356601715,
0.1924259066581726,
-0.20328207314014435,
-0.13255803287029266,
-0.23127736151218414,
-0.17466408014297485,
-0.2154565304517746,
-0.4873972535133362,
0.3294046223163605,
0.14319780468940735,
0.2426176816225052,
0.1376817673444748,
-0.00011549243208719417,
-0.01075128186494112,
0.39260196685791016,
0.013295757584273815,
-0.1953313797712326,
0.027708055451512337,
0.0773620754480362,
-0.48803919553756714,
0.11426698416471481,
-0.38382425904273987,
0.10639022290706635,
-0.9378995299339294,
-0.04163917526602745,
-0.08971906453371048,
0.10508713871240616,
0.05009274184703827,
0.19229210913181305,
0.17157746851444244,
0.3899649679660797,
-0.01054528821259737,
0.4836089313030243,
0.32425519824028015,
-0.27070218324661255,
-0.03869780898094177,
0.38310590386390686,
0.1397038996219635,
0.07713577151298523,
-0.1748771071434021,
-0.02848922088742256,
0.0574248768389225,
0.47208645939826965,
0.17139758169651031,
0.272736519575119,
-0.16845808923244476,
-0.1026955097913742,
0.41052719950675964,
0.49524107575416565,
-0.23191142082214355,
-0.30759307742118835,
-0.3115697503089905,
0.0032653852831572294,
-0.17538101971149445,
-0.10730881243944168,
0.21377481520175934,
-0.12963388860225677,
-0.01407475396990776,
-0.1534995585680008,
0.15485553443431854,
-0.4418315291404724,
0.31434717774391174,
0.10757230967283249,
0.1329263597726822,
0.07352176308631897,
0.2417718470096588,
-0.2476111501455307,
-0.5056383609771729,
0.43169307708740234,
-0.2360917329788208,
-0.02704227715730667,
0.14070214331150055,
0.007250966038554907,
-0.008092000149190426,
-0.16986505687236786,
-0.3400794565677643,
0.4770570695400238,
-0.10004913061857224,
0.3479023277759552,
0.011199659667909145,
0.16620028018951416,
0.09313499182462692,
0.04096774011850357,
0.34059980511665344,
-0.12125660479068756,
-0.2747885584831238,
-0.15112806856632233,
0.11713975667953491,
0.17133550345897675,
0.07277149707078934,
-0.2241659164428711,
-0.12836837768554688,
0.2919895052909851,
-0.10561367869377136,
0.2182832956314087,
0.3313552141189575,
0.062166791409254074,
-0.020299594849348068,
-0.5062046647071838,
-0.1305089145898819,
-0.03679493069648743,
0.12053579092025757,
0.06742067635059357,
0.1349913328886032,
-0.0809326320886612,
0.3865688741207123,
0.13140420615673065,
-0.005581709556281567,
-0.09676575660705566,
-0.1221151053905487,
-0.16393426060676575,
-0.0432266928255558,
-0.031127803027629852,
0.26601049304008484,
-0.03623225912451744,
-0.08435341715812683,
0.12068692594766617,
0.1519429236650467,
-0.06731289625167847,
0.10368449985980988,
0.11265836656093597,
0.08755814284086227,
-0.19350068271160126,
-0.24137850105762482,
-0.2568320631980896,
0.009255379438400269,
-0.23371680080890656,
0.34633225202560425,
0.019691625609993935,
-0.252425879240036,
-0.45456746220588684,
0.12534375488758087,
-0.24851159751415253,
-0.037492021918296814,
-0.2303137481212616,
0.22046861052513123,
0.27251189947128296,
0.01924835331737995,
0.10926001518964767,
-0.07481556385755539,
0.04037073999643326,
-0.45842382311820984,
-0.016177533194422722,
-0.06293445825576782,
-0.2794123589992523,
0.11302591115236282,
0.005277106072753668,
-0.010395797900855541,
-0.13504932820796967,
-0.023258300498127937,
-0.1822218894958496,
0.0009779594838619232,
-0.0583324208855629,
0.19947288930416107,
0.46916094422340393,
0.20010678470134735,
-0.044286973774433136,
0.06833702325820923,
0.09939896315336227,
-0.1840386986732483,
0.31977707147598267,
0.06001714617013931,
-0.045809824019670486,
-0.17211294174194336,
-0.2826549708843231,
0.31459829211235046,
-0.09646210074424744,
-0.1695905178785324,
-0.08001220971345901,
-0.5706948041915894,
0.3061468303203583,
0.14844265580177307,
0.09845523536205292,
-0.07344689965248108,
0.04198389872908592,
-0.4109463393688202,
0.2504270672798157,
-0.4095454812049866,
0.2487359344959259,
-0.07554235309362411,
0.2601507008075714,
-0.09079953283071518,
0.11705788969993591,
-0.2781338095664978,
-0.8328420519828796,
0.20760829746723175,
-0.3454921245574951,
-0.1066998764872551,
0.029505260288715363,
-0.18897263705730438,
-0.1704300343990326,
0.14569874107837677,
-0.13040705025196075,
0.15649531781673431,
0.08730124682188034,
0.0034689621534198523,
0.0561499148607254,
-0.29687780141830444,
-0.25163188576698303,
-0.35270076990127563,
-0.06088170409202576,
-0.02074092999100685,
-0.4056304395198822,
0.4219982624053955,
0.14684459567070007,
-0.26536449790000916,
-0.29455623030662537,
0.2871395945549011,
-0.03913174197077751,
-0.08123790472745895,
-0.04055590555071831,
0.25170817971229553,
-0.09432381391525269,
0.00020114734070375562,
-0.5369091629981995,
0.17635463178157806,
0.03466971591114998,
-0.17438603937625885,
0.3629363775253296,
0.006033200770616531,
0.026515992358326912,
-0.1310424953699112,
0.23020359873771667,
0.4568025767803192,
-0.0022050058469176292,
0.42854589223861694,
-0.17449457943439484,
-0.04040549695491791,
-0.07211735844612122,
0.19695541262626648,
-0.07365968823432922,
-0.165854349732399,
-0.2773364186286926,
0.23618371784687042,
0.15943880379199982,
-0.026037145406007767,
-0.2023518830537796,
0.15954869985580444,
0.2601912319660187,
-0.10219057649374008,
0.046060711145401,
0.14008907973766327,
-0.2551283836364746,
0.0729362964630127,
0.1663905382156372,
0.15240564942359924,
0.1684519350528717,
0.2051691859960556,
-0.1223246306180954,
-0.023150648921728134,
-0.16202068328857422,
-0.09881576895713806,
0.21741892397403717,
0.17602768540382385,
0.4924126863479614,
0.0949757993221283,
0.4513031542301178,
-0.18522754311561584,
-0.19040827453136444,
-0.004029403906315565,
0.027307864278554916,
0.0714370459318161,
-0.15418730676174164,
0.056347206234931946,
-0.09565845876932144,
-0.06152604892849922,
-0.08484403043985367,
-0.6617178916931152,
-0.047957953065633774,
0.010169431567192078,
0.0034059465397149324,
0.0023365444503724575,
-0.17642077803611755,
0.2182944416999817,
0.07076836377382278,
-0.12850521504878998,
0.20332811772823334,
-0.1506585031747818,
-0.16653726994991302,
0.0061286501586437225,
-0.024549786001443863,
0.06365013867616653,
0.24782077968120575,
-0.0018962542526423931,
0.008557496592402458,
0.2448379099369049,
0.08238361775875092,
-0.33131712675094604,
-0.31513553857803345,
-0.008297552354633808,
-0.15285724401474,
0.23263877630233765,
0.43191251158714294,
-0.04954428970813751,
0.17052768170833588,
-0.3125084638595581,
0.31043389439582825,
0.0129286153241992,
-0.27427464723587036,
0.13886460661888123,
-0.21981742978096008,
0.17485465109348297,
-0.10596282035112381,
0.007749257143586874,
-0.17929887771606445,
-0.36209002137184143,
0.3248402178287506,
0.41524866223335266,
0.19818386435508728,
0.24612317979335785,
0.352029025554657,
0.17199397087097168,
-0.0005935810040682554,
0.017038619145751,
0.1446620225906372,
0.25585001707077026,
0.3828646242618561,
-0.026648391038179398,
-0.18193593621253967,
-0.13551115989685059,
-0.9175078868865967,
0.09743984788656235,
0.3725893795490265,
0.060048095881938934,
-0.1703149527311325,
-0.1563492715358734,
0.2750999331474304,
0.08539435267448425,
-0.013637981377542019,
0.44565528631210327,
0.12303980439901352,
0.016177963465452194,
-0.09629322588443756,
-0.049328796565532684,
0.3227926194667816,
0.25415217876434326,
-0.02902146428823471,
0.23660089075565338,
0.3795797526836395,
-0.11615132540464401,
0.6229428052902222,
0.03356878459453583,
-0.434372216463089,
0.31520503759384155,
-0.2801404893398285,
-0.1684265285730362,
-0.19517776370048523,
-0.05413050204515457,
-0.14075949788093567,
-0.030708972364664078,
-0.09051778167486191,
-0.060001250356435776,
-0.11867111921310425,
-0.3501574397087097,
0.1830918788909912,
0.1964472383260727,
0.04432640224695206,
0.014334789477288723,
0.12710872292518616,
0.05627807229757309,
0.3102787137031555,
-0.1323702335357666,
0.010313303209841251,
-0.39227211475372314,
-0.23436057567596436,
-0.2627180516719818,
-0.2672702670097351,
0.16224677860736847,
-0.00612553209066391,
-0.21945317089557648,
0.07165674865245819,
-0.01616007648408413,
0.309205561876297,
0.5854971408843994,
0.10129360109567642,
0.30754438042640686,
-0.2115698903799057,
0.06563010066747665,
-0.04789508879184723,
0.36906442046165466,
-0.1495688408613205,
-0.2604706585407257,
0.46193504333496094,
0.11156846582889557,
-0.4515559673309326,
-0.17442798614501953,
-0.0168557520955801,
-0.12022559344768524,
-0.2905307710170746,
0.15743355453014374,
-0.3936348855495453,
-0.025870010256767273,
0.31979164481163025,
0.29213330149650574,
-0.036438681185245514,
-0.1393866389989853,
-0.13648995757102966,
-0.09234784543514252,
-0.18672853708267212,
-0.2591007649898529,
0.029978958889842033,
0.3263770341873169,
0.1582377403974533,
-0.382650762796402,
-0.46298736333847046,
-0.13174490630626678,
-0.27406826615333557,
0.050139859318733215,
0.4171845018863678,
-0.10655255615711212,
0.15909941494464874,
-0.31151604652404785,
0.04253755509853363,
0.272148460149765,
0.16537781059741974,
0.1622939109802246,
0.04125330224633217,
0.004972337279468775,
0.10176986455917358,
0.4132728576660156,
0.17759539186954498,
-0.13184291124343872,
0.13685159385204315,
0.034091826528310776,
0.08792317658662796,
-0.22651895880699158,
-0.21322180330753326,
0.4135327935218811,
-0.35429099202156067,
-0.020844999700784683,
-0.3419048488140106,
0.671628475189209,
-0.027588604018092155,
0.11438364535570145,
0.20112532377243042,
0.3124505877494812,
-0.18801435828208923,
0.24367132782936096,
0.6279745697975159,
0.810168445110321,
0.08266077935695648,
0.0925123542547226,
0.6586757898330688,
0.03957463428378105,
-0.03682288900017738,
0.40765300393104553,
0.06281581521034241,
-0.48584142327308655,
0.10586275160312653,
-0.15238043665885925,
-0.28381070494651794,
0.2352135330438614,
0.08376329392194748,
-0.12775084376335144,
-0.004428679123520851,
-0.06409437209367752,
0.4120752811431885,
0.10505147278308868,
0.01339719444513321,
-0.35040897130966187,
-0.22083821892738342,
-0.17912457883358002,
0.04568549618124962,
0.05591731518507004,
-0.46033135056495667,
-0.04901513084769249,
-0.35132545232772827,
0.025259755551815033,
0.02597898617386818,
-0.124750055372715,
-0.23738719522953033,
-0.37297549843788147,
-0.06404721736907959,
0.41746780276298523,
-0.5670104026794434,
0.11837176233530045,
0.2152516394853592,
-0.017716804519295692,
-0.28024303913116455,
-0.12612426280975342,
-0.07662658393383026,
0.16729392111301422,
-0.24284124374389648,
-0.2445152848958969,
-0.31880953907966614,
0.27643221616744995,
0.06746304035186768,
-0.09184876084327698,
-0.10105311125516891,
0.035077523440122604,
-0.038397759199142456,
-0.17447292804718018,
-0.014175339601933956,
0.2645861804485321,
-0.3808230459690094,
-0.08093287795782089,
-0.2153044044971466,
-0.05247917398810387,
-0.12549816071987152,
0.066517174243927,
0.04758259654045105,
0.07882135361433029,
-0.09338308125734329,
0.18830731511116028,
0.14968451857566833,
-0.09939094632863998,
-0.020406989380717278,
0.5038687586784363,
0.36247530579566956,
0.3046237528324127,
0.2016717940568924,
0.05996556952595711,
-0.17358726263046265,
0.3485202491283417,
0.44944822788238525,
-0.5054563283920288,
0.1632678210735321,
0.14183926582336426,
-0.24781659245491028,
-0.13639919459819794,
0.540482759475708,
0.03942719101905823,
0.21223291754722595,
-0.07878994196653366,
0.01177376788109541,
-0.4203207194805145,
0.45318248867988586,
0.08423443138599396,
0.3178560137748718,
-0.2962428331375122,
0.006683058105409145,
-0.016440462321043015,
-0.003370443591848016,
-0.25555309653282166,
0.08239112049341202,
0.13992449641227722,
-0.12069237232208252,
-0.43550196290016174,
-0.06975661963224411,
0.08993718028068542,
0.13022206723690033,
0.056797150522470474,
0.043143682181835175,
-0.47321757674217224,
-0.13663586974143982,
-0.06306080520153046,
0.14652295410633087,
0.11138663440942764,
-0.07509618252515793,
0.10886263847351074,
-0.035666219890117645,
-0.3903197944164276,
-0.17364589869976044,
-0.03850587084889412,
-0.1806109994649887,
-0.1987411379814148,
-0.07515688985586166,
0.29431238770484924,
0.030744656920433044,
-0.326324462890625,
0.03146255761384964,
-0.11105892062187195,
0.24274682998657227,
0.08386911451816559,
0.11728568375110626,
-0.028693214058876038,
-0.07102174311876297,
-0.07779093831777573,
0.2803216874599457,
-0.02098534256219864,
-0.24576279520988464,
0.33637383580207825,
-0.2781674861907959,
-0.4002947509288788,
-0.17116200923919678,
0.5554990172386169,
0.22211702167987823,
-0.10556686669588089,
0.07754173874855042,
0.09827647358179092,
0.160813108086586,
-0.3934295177459717,
0.025037409737706184,
0.14383012056350708,
0.05193868651986122,
0.23611710965633392,
0.4788059592247009,
0.3344216048717499,
-0.0777621790766716,
-0.028703775256872177,
0.11932667344808578,
-0.1326753944158554,
-0.00020682487229350954,
0.043733906000852585,
0.6355385780334473,
-0.12587688863277435,
0.048518646508455276,
0.48112723231315613,
0.19399385154247284,
0.4050463140010834,
0.045796409249305725,
0.0016180597012862563,
0.38233986496925354,
0.3568309247493744,
-0.10435371845960617,
0.2455844283103943,
-0.05119255185127258,
0.07298585027456284,
0.17937490344047546,
0.4925749599933624,
-0.04423622786998749,
0.21955789625644684,
0.7067697644233704,
0.23347431421279907,
-0.05546257272362709,
-0.2771448493003845,
-0.11557842791080475,
0.0063219228759408,
-0.08220964670181274,
-0.0751168355345726,
-0.16911029815673828,
-0.37987974286079407,
-0.37404537200927734,
-0.23216021060943604,
-0.4588373601436615,
0.29070010781288147,
-0.233600452542305,
0.29342034459114075,
-0.40839558839797974,
0.5953159332275391,
0.2168377935886383,
0.05169205367565155,
-0.12795503437519073,
0.514050304889679,
0.43166905641555786,
-0.0781320258975029,
-0.0360897034406662,
0.47019821405410767,
0.22004184126853943,
0.2157692164182663,
-0.32170605659484863,
0.005828447174280882,
-0.09644505381584167,
-0.2204751819372177,
0.10554695129394531,
0.06033901497721672,
0.147679403424263,
0.17962633073329926,
0.29847007989883423,
0.06714314222335815,
-0.09874452650547028,
0.21739517152309418,
0.19057026505470276,
-0.0963219404220581,
-0.2707989811897278,
0.3887588083744049,
-0.2764681875705719,
-0.08806103467941284,
0.013379818759858608,
-0.08520817756652832,
-0.3422197103500366,
-0.03592381626367569,
0.253932923078537,
-0.16863302886486053,
0.06422363966703415,
0.03855213522911072,
0.051269564777612686,
-0.2165200412273407,
0.5640590786933899,
0.03776950016617775,
0.3752741813659668,
-0.0008873739861883223,
0.018055371940135956,
-0.36693182587623596,
0.266267865896225,
-0.28437620401382446,
0.03498758003115654,
0.39765623211860657,
0.15150627493858337,
-0.03191418573260307,
0.09352070093154907,
0.2348976880311966,
0.24834959208965302,
-0.04760722070932388,
0.3987117111682892,
-0.38231801986694336,
-0.046815864741802216,
0.36741751432418823,
0.045746371150016785,
-0.01667477749288082,
-0.32895663380622864,
0.231316477060318,
-0.3987184762954712,
-0.03986857458949089,
0.18515124917030334,
0.09116358309984207,
0.07333091646432877,
0.010180340148508549,
0.4556729197502136,
-0.05213892459869385,
-0.0057957409881055355,
0.15701167285442352,
-0.0347006693482399,
-0.3226480782032013,
-0.30237749218940735,
-0.2103191763162613,
0.24825350940227509,
0.16881126165390015,
0.4968717396259308,
-0.2597644627094269,
0.1670035719871521,
-0.011452908627688885,
-0.1393120139837265,
-0.01384456641972065,
0.14292460680007935,
-0.22754016518592834,
0.5355846881866455,
-0.4553392827510834,
-0.026294322684407234,
-0.03279784321784973,
-0.06463098526000977,
0.04573001712560654,
0.09547410905361176,
-0.10814754664897919,
-0.5193563103675842,
0.6752309799194336,
-0.06918973475694656,
-0.41022270917892456,
0.18904459476470947,
-0.11859317868947983,
0.524876058101654,
-0.0722406655550003,
-0.2589219808578491,
0.034365925937891006,
0.3283542990684509,
0.019148707389831543,
0.08816161751747131,
0.04105004295706749,
0.07246691733598709,
-0.09392272680997849,
-0.2172299027442932,
0.17764931917190552,
-0.13182973861694336,
-0.12104779481887817,
-0.3250682055950165,
-0.5128967761993408
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | > Yes right now ArrayXD can only be used as a column feature type, not a subtype.
Meaning it can't be nested under `Sequence`?
If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 45 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
> Yes right now ArrayXD can only be used as a column feature type, not a subtype.
Meaning it can't be nested under `Sequence`?
If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested. | [
-0.14969058334827423,
0.046683695167303085,
-0.08322657644748688,
0.11906835436820984,
0.27300816774368286,
0.12014748901128769,
0.6236190795898438,
0.13252943754196167,
0.00043084556818939745,
0.11699926853179932,
0.27267971634864807,
0.21372032165527344,
-0.14821559190750122,
0.08733733743429184,
0.14949797093868256,
-0.3523188531398773,
0.23041760921478271,
0.3752022385597229,
0.1984272599220276,
0.08082553744316101,
-0.1512221395969391,
-0.09654222428798676,
-0.23079918324947357,
0.36259421706199646,
-0.24300028383731842,
-0.11532246321439743,
-0.11991175264120102,
-0.08327464759349823,
-0.13971976935863495,
-0.5142061710357666,
0.40070873498916626,
0.025521811097860336,
0.23229342699050903,
0.11462117731571198,
-0.00011815007019322366,
-0.01466364972293377,
0.43486347794532776,
0.05916469171643257,
-0.12298330664634705,
-0.004891755059361458,
0.10119428485631943,
-0.4042521119117737,
0.2644631564617157,
-0.4277360439300537,
-0.024050911888480186,
-0.9039798378944397,
0.04272997006773949,
0.006663531996309757,
0.12529335916042328,
0.2079317718744278,
0.14422722160816193,
0.12975747883319855,
0.47644931077957153,
-0.180675208568573,
0.46008506417274475,
0.1405649334192276,
-0.29449549317359924,
-0.08078419417142868,
0.5120019912719727,
0.14389877021312714,
0.09920665621757507,
-0.31352102756500244,
-0.1309572011232376,
0.07073839753866196,
0.44062379002571106,
0.34199702739715576,
0.2460748702287674,
-0.258565217256546,
-0.26238688826560974,
0.3397234380245209,
0.41323092579841614,
-0.1750987023115158,
-0.12347893416881561,
-0.18438458442687988,
0.03575185313820839,
-0.2876291275024414,
0.016576219350099564,
0.10873853415250778,
-0.2263009399175644,
0.015462260693311691,
-0.009694642387330532,
0.12073814868927002,
-0.40095382928848267,
0.3173990845680237,
0.1675131916999817,
0.2928379774093628,
0.07076171785593033,
0.263076514005661,
-0.1044255867600441,
-0.348195880651474,
0.5756608843803406,
-0.2738814353942871,
0.10033337026834488,
0.21774691343307495,
-0.0703515112400055,
0.022967776283621788,
-0.17509695887565613,
-0.3643650710582733,
0.40702787041664124,
-0.03971555456519127,
0.23409487307071686,
-0.06545987725257874,
0.2624443769454956,
0.1516703963279724,
-0.08502273261547089,
0.3085605502128601,
-0.013591844588518143,
-0.289694219827652,
-0.0956178605556488,
0.13514091074466705,
0.0693397969007492,
0.042380161583423615,
-0.2960188686847687,
-0.07982046157121658,
0.28779855370521545,
-0.03630680590867996,
0.21925626695156097,
0.22945019602775574,
0.05760400369763374,
0.00014272220141720027,
-0.4910030961036682,
-0.21630249917507172,
-0.04690937325358391,
0.22784841060638428,
0.13353027403354645,
-0.09123355150222778,
-0.12097736448049545,
0.3931635916233063,
0.11456502228975296,
0.05390945076942444,
-0.10548622161149979,
-0.020339077338576317,
-0.13856102526187897,
0.026131263002753258,
-0.09256846457719803,
0.1498645395040512,
0.13249628245830536,
-0.017704196274280548,
0.18242380023002625,
0.11768094450235367,
0.11834198981523514,
0.16720905900001526,
0.1050797775387764,
0.12161129713058472,
-0.03908892348408699,
0.02139146625995636,
0.06077134981751442,
-0.03228190913796425,
-0.21466971933841705,
0.3445395231246948,
-0.15020348131656647,
-0.28121963143348694,
-0.46119096875190735,
0.09512505680322647,
-0.2679341733455658,
0.026810914278030396,
-0.08556240797042847,
0.05317455530166626,
0.32062822580337524,
-0.009290624409914017,
0.07006057351827621,
0.008486918173730373,
0.09412001818418503,
-0.391010582447052,
0.010252723470330238,
-0.20701181888580322,
-0.3107111155986786,
0.10500753670930862,
-0.18326880037784576,
-0.05113707110285759,
-0.10334018617868423,
-0.03417658060789108,
-0.183064267039299,
0.21111243963241577,
-0.24384339153766632,
0.3546353578567505,
0.4485314190387726,
0.12384442239999771,
0.07614082098007202,
0.09374018758535385,
0.0458834134042263,
-0.12583336234092712,
0.27544716000556946,
0.12349852919578552,
-0.0420813262462616,
-0.23322351276874542,
-0.19782215356826782,
0.13695527613162994,
-0.06502379477024078,
-0.3227216601371765,
0.0924910381436348,
-0.36141034960746765,
0.453286349773407,
0.03468695282936096,
-0.055667828768491745,
0.15333978831768036,
-0.14503438770771027,
-0.3850354254245758,
0.18315860629081726,
-0.4505040943622589,
0.103610560297966,
0.11987678706645966,
0.21426749229431152,
-0.07738389819860458,
0.06935594975948334,
-0.34800246357917786,
-0.705808162689209,
0.19832029938697815,
-0.3318618834018707,
-0.051080647855997086,
-0.032328877598047256,
-0.15907317399978638,
-0.21612614393234253,
0.18692944943904877,
-0.22822117805480957,
0.12363199144601822,
0.06549835950136185,
-0.01018841378390789,
0.1269923597574234,
-0.2844240665435791,
-0.3284112811088562,
-0.3324744701385498,
-0.027413304895162582,
-0.04622922092676163,
-0.5676480531692505,
0.4337337613105774,
-0.015260319225490093,
-0.38344404101371765,
-0.2677718698978424,
0.25813060998916626,
0.04498526081442833,
-0.06546296924352646,
0.0735679417848587,
0.20841017365455627,
-0.08868343383073807,
-0.12370795011520386,
-0.5375245213508606,
0.09253646433353424,
-0.032605454325675964,
-0.47554895281791687,
0.14851075410842896,
0.1747867912054062,
0.0008851512684486806,
-0.2654137909412384,
0.12460966408252716,
0.3514431416988373,
0.2007005661725998,
0.5677338242530823,
-0.1623016893863678,
0.04681209474802017,
-0.05057774484157562,
0.19669421017169952,
-0.06600236147642136,
-0.08247088640928268,
-0.05080147087574005,
0.24969762563705444,
0.05010370910167694,
-0.041622426360845566,
-0.1632547378540039,
0.2374601513147354,
0.3121313154697418,
-0.07191453129053116,
0.07125422358512878,
0.0841200202703476,
-0.120545394718647,
0.014147675596177578,
0.19880317151546478,
-0.22633159160614014,
0.18352548778057098,
0.1453007459640503,
-0.10914699733257294,
0.1152716875076294,
-0.34589534997940063,
-0.09470783174037933,
0.11840522289276123,
0.041625168174505234,
0.49658048152923584,
0.06266187876462936,
0.2471487820148468,
-0.21607644855976105,
-0.18966667354106903,
-0.19802325963974,
-0.08871059119701385,
0.10409289598464966,
-0.2519027292728424,
0.04507274925708771,
-0.2113896757364273,
-0.08832162618637085,
0.009318802505731583,
-0.5655488967895508,
0.06710639595985413,
-0.08814211934804916,
-0.1248614564538002,
0.13535580039024353,
-0.08412395417690277,
0.25114959478378296,
-0.05220397189259529,
-0.24216808378696442,
0.2563663423061371,
-0.09641127288341522,
-0.25335270166397095,
-0.07175889611244202,
0.026772096753120422,
0.06158026307821274,
0.15546467900276184,
0.06907530874013901,
-0.04495864734053612,
0.2691817283630371,
-0.03381824865937233,
-0.3550158441066742,
-0.275241494178772,
0.049921322613954544,
-0.203617125749588,
0.227401003241539,
0.4706682562828064,
0.13865384459495544,
0.07063306123018265,
-0.5315936207771301,
0.3367733061313629,
0.05357612296938896,
-0.3053092062473297,
0.2561753988265991,
-0.17802852392196655,
0.05551246553659439,
-0.021642984822392464,
-0.08927681297063828,
-0.13822628557682037,
-0.3535017967224121,
0.18067505955696106,
0.507956862449646,
0.2637712061405182,
0.07049643248319626,
0.2626505494117737,
0.2246546894311905,
0.03756130486726761,
-0.08087240904569626,
0.18133659660816193,
0.28287801146507263,
0.459724098443985,
-0.17452441155910492,
-0.2502916157245636,
-0.022766800597310066,
-0.8539389967918396,
0.037688013166189194,
0.16834288835525513,
0.1771160364151001,
-0.13445346057415009,
-0.1827840805053711,
0.19936229288578033,
0.10495307296514511,
-0.035828668624162674,
0.36696934700012207,
0.10599479079246521,
0.005178006831556559,
-0.14730267226696014,
-0.05262741446495056,
0.42975494265556335,
0.06483954191207886,
0.005989918019622564,
0.20774979889392853,
0.3540017306804657,
-0.2904820442199707,
0.4884472191333771,
0.23391591012477875,
-0.27608227729797363,
0.3280074894428253,
-0.27279362082481384,
-0.19187170267105103,
-0.33950385451316833,
-0.04887887090444565,
-0.25942501425743103,
0.034766003489494324,
-0.13296674191951752,
-0.05614208057522774,
-0.1326051950454712,
-0.31956395506858826,
0.18137209117412567,
0.387163907289505,
0.05190832540392876,
0.025386326014995575,
-0.001442265696823597,
-0.012157322838902473,
0.2845228910446167,
-0.09572192281484604,
-0.029858922585844994,
-0.2548687756061554,
-0.1367805302143097,
-0.21716558933258057,
-0.2505752742290497,
0.18649211525917053,
-0.030670033767819405,
-0.4782135784626007,
-0.11282248795032501,
-0.06053277850151062,
0.21487122774124146,
0.5360187292098999,
0.044931236654520035,
0.11405746638774872,
-0.08362845331430435,
0.1271994709968567,
-0.12068323791027069,
0.4702155292034149,
-0.2056220918893814,
-0.2539268434047699,
0.5924776792526245,
0.1768164485692978,
-0.4166940450668335,
-0.1383584439754486,
-0.02370380237698555,
-0.03764669969677925,
-0.38036179542541504,
0.18942657113075256,
-0.4217671751976013,
0.03247864171862602,
0.3612160384654999,
0.23127859830856323,
-0.0839889794588089,
-0.17920851707458496,
-0.14394095540046692,
-0.2551182508468628,
-0.12620392441749573,
-0.3026901185512543,
0.07540646195411682,
0.35236820578575134,
0.11897481232881546,
-0.48889651894569397,
-0.34451815485954285,
-0.04038136452436447,
-0.21985174715518951,
-0.05913788452744484,
0.425281286239624,
-0.24750135838985443,
0.042838454246520996,
-0.31036612391471863,
-0.03876578435301781,
0.06783892959356308,
0.12221231311559677,
0.16962739825248718,
0.03648921474814415,
0.0777311623096466,
-0.18795424699783325,
0.452688992023468,
0.07881182432174683,
-0.22874867916107178,
0.21787700057029724,
0.07107896357774734,
0.016011936590075493,
-0.13281288743019104,
-0.2347792685031891,
0.43641579151153564,
-0.3234702944755554,
-0.06711405515670776,
-0.3596940338611603,
0.5855861902236938,
0.10399536788463593,
0.10381928831338882,
0.20817556977272034,
0.1932806372642517,
-0.20106998085975647,
0.20217332243919373,
0.6190623641014099,
0.8599429130554199,
-0.006221774499863386,
0.1288314312696457,
0.7438943982124329,
0.19307878613471985,
0.23251381516456604,
0.42360883951187134,
0.05578921362757683,
-0.4851091504096985,
-0.11736451834440231,
-0.21803955733776093,
-0.36829352378845215,
0.21326781809329987,
0.1600598245859146,
-0.25008928775787354,
0.10496121644973755,
-0.21315622329711914,
0.4065161645412445,
0.2036920189857483,
-0.05238453671336174,
-0.15432581305503845,
-0.15826499462127686,
-0.23679132759571075,
0.056863196194171906,
0.11289336532354355,
-0.5091961026191711,
-0.10736612975597382,
-0.2736949920654297,
-0.03622005507349968,
-0.04063453525304794,
-0.10311350971460342,
-0.04975322633981705,
-0.22193612158298492,
0.011609056033194065,
0.34053534269332886,
-0.49455392360687256,
0.09693776816129684,
0.24018612504005432,
0.0545356385409832,
-0.3938039243221283,
-0.09496544301509857,
-0.15820147097110748,
0.15757852792739868,
-0.24125556647777557,
-0.22492070496082306,
-0.35603463649749756,
0.31166741251945496,
-0.039134711027145386,
0.0634184405207634,
0.023866601288318634,
-0.03190053254365921,
-0.15450872480869293,
-0.09650205075740814,
0.0643358901143074,
0.15219612419605255,
-0.2587006688117981,
-0.274207204580307,
-0.08163798600435257,
-0.12325189262628555,
-0.18287399411201477,
0.03559906408190727,
0.12393262982368469,
-0.10153539478778839,
-0.07288576662540436,
0.03883136808872223,
0.11034464836120605,
0.035549554973840714,
-0.006755526177585125,
0.6729291081428528,
0.34189024567604065,
0.33431634306907654,
0.327396422624588,
0.025948163121938705,
-0.15852636098861694,
0.156500443816185,
0.6011669039726257,
-0.44753262400627136,
0.24175748229026794,
0.10943987965583801,
-0.2066473811864853,
-0.2043611705303192,
0.5340679883956909,
-0.10072657465934753,
0.24585238099098206,
-0.2113167941570282,
-0.05598771199584007,
-0.39514458179473877,
0.41059109568595886,
0.11978007107973099,
0.2570124864578247,
-0.32239946722984314,
0.06891275942325592,
0.003037799149751663,
-0.25050872564315796,
-0.2125861644744873,
-0.012769950553774834,
-0.09301663190126419,
-0.06765224784612656,
-0.3429587781429291,
0.015114549547433853,
0.13785824179649353,
0.17098373174667358,
0.06573452055454254,
0.06986220926046371,
-0.3820571303367615,
-0.1314588189125061,
-0.03815197944641113,
0.18835683166980743,
0.16337576508522034,
-0.13746832311153412,
0.23310114443302155,
0.0005477198865264654,
-0.29752761125564575,
-0.1349496990442276,
-0.10466112196445465,
-0.19488084316253662,
-0.009615037590265274,
-0.10157648473978043,
0.293063759803772,
0.08488711714744568,
-0.41998812556266785,
-0.03634526953101158,
-0.2228238582611084,
0.1653895080089569,
0.06119147315621376,
-0.01884917914867401,
-0.08095915615558624,
-0.09231886267662048,
-0.04861902445554733,
0.2589801549911499,
0.0017538005486130714,
-0.17033468186855316,
0.43380042910575867,
-0.22934971749782562,
-0.39924356341362,
-0.24507933855056763,
0.5093852281570435,
0.23236176371574402,
-0.193242609500885,
0.12199931591749191,
0.01530380453914404,
0.10136458277702332,
-0.34276413917541504,
0.07777144759893417,
0.27875202894210815,
0.02466622181236744,
0.15709704160690308,
0.3537639081478119,
0.20225875079631805,
0.018243005499243736,
0.048677314072847366,
0.021756011992692947,
0.009951564483344555,
-0.09068658947944641,
0.06765590608119965,
0.614108681678772,
-0.012181643396615982,
0.14867107570171356,
0.46650251746177673,
0.08639273047447205,
0.3322010636329651,
0.12019769847393036,
0.09878165274858475,
0.29527613520622253,
0.45594480633735657,
-0.12175465375185013,
0.3147563934326172,
0.04936788231134415,
-0.008923257701098919,
0.21641315519809723,
0.6006954312324524,
-0.13713134825229645,
0.19764108955860138,
0.5118808150291443,
0.17623354494571686,
-0.06589333713054657,
-0.22778786718845367,
0.016727089881896973,
0.07458871603012085,
-0.08215399086475372,
-0.09257286041975021,
-0.04774285480380058,
-0.27987876534461975,
-0.4828265309333801,
-0.11672802269458771,
-0.35593605041503906,
0.18598417937755585,
-0.26344677805900574,
0.26700878143310547,
-0.415342777967453,
0.7211955189704895,
0.213189959526062,
-0.03736838325858116,
0.00740344263613224,
0.519615113735199,
0.2977152168750763,
-0.022733399644494057,
-0.07103916257619858,
0.45698004961013794,
0.3191640079021454,
0.2489790916442871,
-0.28541746735572815,
0.015457035973668098,
-0.16175803542137146,
-0.2667802572250366,
0.05961911752820015,
0.12580275535583496,
0.1170557290315628,
0.24199917912483215,
0.2920165956020355,
0.05336261913180351,
-0.09571971744298935,
0.2782728672027588,
0.18972371518611908,
0.00015361137047875673,
-0.16817538440227509,
0.4383736252784729,
-0.3106478750705719,
-0.2009638398885727,
0.17286959290504456,
0.041555874049663544,
-0.4118337035179138,
0.0932750552892685,
0.27616769075393677,
-0.15684975683689117,
0.08164480328559875,
0.02301754057407379,
0.04715657979249954,
-0.2880285978317261,
0.5047274231910706,
-0.03024531528353691,
0.5685747265815735,
-0.05713799595832825,
-0.039585720747709274,
-0.3826920986175537,
0.35459503531455994,
-0.36106035113334656,
-0.01815512590110302,
0.431589812040329,
0.14604772627353668,
0.004891743417829275,
0.19876599311828613,
0.1994730532169342,
0.12666146457195282,
-0.20161259174346924,
0.38631483912467957,
-0.34148815274238586,
-0.14087434113025665,
0.40991103649139404,
0.15353016555309296,
-0.21024693548679352,
-0.22670352458953857,
0.22068755328655243,
-0.2635424733161926,
-0.038719307631254196,
0.2351829558610916,
-0.02366594411432743,
0.04914260655641556,
-0.021844349801540375,
0.45459261536598206,
0.11392432451248169,
0.1612926572561264,
0.1480778455734253,
0.023915547877550125,
-0.25108999013900757,
-0.21179142594337463,
-0.2025730013847351,
0.29570141434669495,
0.16325147449970245,
0.4352879822254181,
-0.2515108585357666,
0.2785422205924988,
-0.14914570748806,
0.010938986204564571,
0.07570774853229523,
0.07073007524013519,
-0.3185371160507202,
0.6374911069869995,
-0.53675776720047,
-0.02550995536148548,
0.031204309314489365,
-0.20143255591392517,
0.027492335066199303,
0.15252220630645752,
-0.061323076486587524,
-0.5150301456451416,
0.6163955926895142,
0.020746497437357903,
-0.45864996314048767,
0.19950392842292786,
-0.095066137611866,
0.4964278042316437,
-0.12674155831336975,
-0.1346389204263687,
-0.08362925797700882,
0.3756229877471924,
-0.015766501426696777,
-0.02875271812081337,
0.04559756815433502,
0.03409240394830704,
-0.02456587553024292,
-0.18552124500274658,
0.0254758782684803,
-0.07557051628828049,
-0.1420818716287613,
-0.3219663202762604,
-0.5487009882926941
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Yea unfortunately..
That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects.
We already have an ExtensionArray that allows us to use them as column types but not for subtypes.
Maybe we can extend it, I haven't experimented with that yet | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 48 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yea unfortunately..
That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects.
We already have an ExtensionArray that allows us to use them as column types but not for subtypes.
Maybe we can extend it, I haven't experimented with that yet | [
-0.021221181377768517,
0.1621367186307907,
0.01912551000714302,
0.19337473809719086,
0.35349616408348083,
0.1465558558702469,
0.6769048571586609,
0.10014152526855469,
-0.13536329567432404,
0.16975010931491852,
0.17544172704219818,
0.24838680028915405,
-0.21873244643211365,
-0.04890650138258934,
0.16822077333927155,
-0.48519033193588257,
0.13466911017894745,
0.3015386164188385,
0.022854426875710487,
0.07043499499559402,
-0.04694262146949768,
-0.1379912793636322,
-0.21325235068798065,
0.2988719642162323,
-0.321310818195343,
0.006946335546672344,
-0.0415840744972229,
-0.26098331809043884,
-0.28111371397972107,
-0.5396838188171387,
0.45489487051963806,
-0.13678821921348572,
0.21576042473316193,
0.05412539094686508,
-0.00011805730900960043,
0.13916537165641785,
0.471752792596817,
0.11581812053918839,
-0.26761025190353394,
-0.0728076919913292,
0.11657320708036423,
-0.3765857517719269,
0.22548070549964905,
-0.2949298024177551,
0.07462968677282333,
-0.8747573494911194,
-0.013704773038625717,
-0.04804214462637901,
-0.03900819271802902,
0.2231348305940628,
0.13902944326400757,
0.1530652642250061,
0.3917602002620697,
-0.13804230093955994,
0.5562933087348938,
0.20292438566684723,
-0.3445000946521759,
-0.033177174627780914,
0.25755980610847473,
0.1419352889060974,
0.07369454950094223,
-0.25204524397850037,
0.03174712136387825,
0.15357856452465057,
0.3329482078552246,
0.30480682849884033,
0.31533151865005493,
-0.21418173611164093,
-0.09369198977947235,
0.358394980430603,
0.4189322888851166,
-0.17434027791023254,
-0.2196037918329239,
-0.15802539885044098,
0.03511728346347809,
-0.08256664127111435,
-0.07192415744066238,
0.14024725556373596,
-0.14358511567115784,
-0.059512749314308167,
-0.08164297044277191,
0.23403295874595642,
-0.41481372714042664,
0.28778091073036194,
0.1884298175573349,
0.06270195543766022,
0.11773233115673065,
0.2468918263912201,
-0.12417373806238174,
-0.2687945067882538,
0.37284305691719055,
-0.29629698395729065,
-0.08790338784456253,
0.16725470125675201,
0.010468398220837116,
0.10180376470088959,
-0.1779809296131134,
-0.29509150981903076,
0.39780452847480774,
-0.007865133695304394,
0.26241961121559143,
0.05213286355137825,
0.2533869743347168,
0.17389245331287384,
-0.02278493531048298,
0.25816574692726135,
-0.05248134583234787,
-0.06772741675376892,
-0.14617091417312622,
-0.0010095316683873534,
0.07352076470851898,
0.029685933142900467,
-0.26029372215270996,
-0.15661120414733887,
0.40415656566619873,
-0.10659965127706528,
0.19349965453147888,
0.3161320984363556,
0.08387906104326248,
-0.0544140450656414,
-0.5178287029266357,
-0.1269526481628418,
0.08197370916604996,
0.053860586136579514,
0.14109662175178528,
-0.020063774660229683,
-0.09959007799625397,
0.400256484746933,
0.046650826930999756,
-0.09121683239936829,
-0.11674720048904419,
-0.006497437600046396,
-0.24958613514900208,
-0.1215883269906044,
0.05176873877644539,
0.15789766609668732,
-0.01781117171049118,
-0.06004294008016586,
0.12220775336027145,
0.1848507523536682,
0.14433397352695465,
0.08231982588768005,
0.14576025307178497,
0.14535239338874817,
-0.11780475825071335,
-0.10481880605220795,
0.0018948217621073127,
-0.03247654810547829,
-0.24537119269371033,
0.1876763105392456,
-0.03543500602245331,
-0.2638182044029236,
-0.537296712398529,
0.08828393369913101,
-0.22880840301513672,
0.04093038663268089,
-0.3024856150150299,
-0.03184186667203903,
0.1760607659816742,
0.007587806321680546,
0.0760318711400032,
-0.16961106657981873,
0.24479568004608154,
-0.35987359285354614,
0.12709690630435944,
-0.19725845754146576,
-0.24950659275054932,
0.03882858157157898,
-0.2804267704486847,
-0.053051456809043884,
-0.023477012291550636,
-0.05677983537316322,
-0.27082058787345886,
0.06504323333501816,
-0.18567802011966705,
0.30916669964790344,
0.5356974601745605,
0.3405401110649109,
0.029239950701594353,
-0.14999307692050934,
0.10011707246303558,
-0.1054031029343605,
0.22798310220241547,
0.03750175982713699,
-0.06673454493284225,
-0.10722067207098007,
-0.2658880949020386,
0.2532447278499603,
-0.1829283982515335,
-0.23415374755859375,
0.016666974872350693,
-0.4594133496284485,
0.21687796711921692,
0.09800077974796295,
-0.000880334759131074,
0.060475170612335205,
0.008152271620929241,
-0.4529452919960022,
0.048594094812870026,
-0.4307851493358612,
0.24276305735111237,
-0.09230022877454758,
0.30016037821769714,
0.07037531584501266,
0.16709278523921967,
-0.37744948267936707,
-0.6568472981452942,
0.2559567093849182,
-0.34696057438850403,
0.03966440632939339,
0.07442516088485718,
-0.16714729368686676,
-0.11282316595315933,
0.20923414826393127,
-0.04015117138624191,
0.212995707988739,
0.04445813223719597,
-0.004036691039800644,
0.15634013712406158,
-0.21693064272403717,
-0.20365868508815765,
-0.4877379536628723,
-0.0552402101457119,
0.002082565100863576,
-0.40645843744277954,
0.4541431665420532,
-0.03633560240268707,
-0.24640557169914246,
-0.35278797149658203,
0.22592398524284363,
-0.10121503472328186,
-0.0033874092623591423,
0.025005174800753593,
0.17070479691028595,
0.03524479642510414,
-0.11942901462316513,
-0.45587512850761414,
0.030692797154188156,
-0.07539954036474228,
-0.3779904246330261,
0.14929048717021942,
0.15263493359088898,
0.01793413795530796,
-0.17377552390098572,
0.10945138335227966,
0.3874129354953766,
0.24843326210975647,
0.5152692794799805,
-0.09536317735910416,
0.15822497010231018,
-0.031422801315784454,
0.23996813595294952,
-0.14967848360538483,
-0.14980916678905487,
-0.13299089670181274,
0.13232536613941193,
0.02415275201201439,
0.04989339038729668,
-0.09742579609155655,
0.054342664778232574,
0.22938424348831177,
-0.06082558631896973,
0.0662456676363945,
0.14791233837604523,
-0.26433563232421875,
0.12474244087934494,
0.23347826302051544,
-0.06964142620563507,
0.07612140476703644,
0.17350226640701294,
0.007998848333954811,
-0.08982225507497787,
-0.300695538520813,
-0.10953214019536972,
0.18242967128753662,
0.1665162444114685,
0.5337373614311218,
0.0058297645300626755,
0.3214503526687622,
-0.13664862513542175,
-0.14775922894477844,
0.02879216894507408,
-0.018866464495658875,
0.028834441676735878,
-0.21764351427555084,
0.08991491794586182,
-0.27399590611457825,
0.045877207070589066,
-0.04085078835487366,
-0.5973737239837646,
0.16763195395469666,
-0.06250959634780884,
-0.10865265876054764,
-0.014020733535289764,
-0.20819281041622162,
0.275380939245224,
0.020489053800702095,
-0.18512515723705292,
0.18970249593257904,
-0.10982491075992584,
-0.1761683225631714,
-0.048124685883522034,
-0.11759214103221893,
0.024252040311694145,
0.2732265889644623,
-0.004464823752641678,
-0.08651167899370193,
0.2622179090976715,
-0.07134000957012177,
-0.3759303092956543,
-0.37475064396858215,
0.05837403982877731,
-0.13347750902175903,
0.27128341794013977,
0.6011121273040771,
-0.08819731324911118,
0.05690471827983856,
-0.4877176880836487,
0.3660813271999359,
-0.049885839223861694,
-0.23717181384563446,
0.43115878105163574,
-0.22440332174301147,
0.11039795726537704,
-0.10153564065694809,
-0.0475696437060833,
-0.08230788260698318,
-0.29281139373779297,
0.2672373056411743,
0.4423724412918091,
0.20788592100143433,
0.19001872837543488,
0.3677292466163635,
0.2935209572315216,
-0.059509772807359695,
-0.04181381314992905,
0.21013930439949036,
0.3851242959499359,
0.5554257035255432,
-0.13260400295257568,
-0.2390660047531128,
0.04697300121188164,
-0.9182721376419067,
0.05986567586660385,
0.27455729246139526,
0.09657331556081772,
-0.05319101735949516,
-0.16626423597335815,
0.24675507843494415,
0.1517784595489502,
0.07341553270816803,
0.23633569478988647,
0.07301432639360428,
0.030682343989610672,
-0.0971594899892807,
-0.07205463200807571,
0.3589543402194977,
0.05925096198916435,
-0.05444107949733734,
0.059930987656116486,
0.27493441104888916,
-0.25004878640174866,
0.4926736354827881,
0.03234416991472244,
-0.3953185975551605,
0.29001384973526,
-0.2813067138195038,
-0.15717247128486633,
-0.2730335295200348,
-0.03837715834379196,
-0.20336635410785675,
0.020253362134099007,
-0.07475545257329941,
-0.05790049582719803,
-0.046946655958890915,
-0.37058404088020325,
0.20490095019340515,
0.3417932391166687,
0.04603337123990059,
-0.059337444603443146,
0.06811614334583282,
-0.10480833053588867,
0.14223411679267883,
-0.09608863294124603,
0.015193373896181583,
-0.31608933210372925,
-0.10015769302845001,
-0.21411392092704773,
-0.23987796902656555,
0.13525502383708954,
0.03665740415453911,
-0.35345950722694397,
-0.0899076983332634,
0.18761639297008514,
0.21337972581386566,
0.5379563570022583,
0.006975982803851366,
0.28435927629470825,
-0.12436607480049133,
0.14485296607017517,
-0.0040666162967681885,
0.38108378648757935,
-0.2507454752922058,
-0.21404333412647247,
0.549307644367218,
0.20647330582141876,
-0.42602354288101196,
-0.19976964592933655,
0.011509045958518982,
0.004528993275016546,
-0.3076286315917969,
-0.01466073002666235,
-0.31752973794937134,
0.03506488353013992,
0.4345044791698456,
0.29855552315711975,
-0.018632397055625916,
-0.01409037783741951,
-0.19720040261745453,
-0.187931627035141,
-0.0682574063539505,
-0.3189411163330078,
-0.0060395486652851105,
0.37949779629707336,
0.055057693272829056,
-0.3710643947124481,
-0.4575194716453552,
-0.03665171563625336,
-0.20410722494125366,
0.02199869230389595,
0.46982723474502563,
-0.1820257008075714,
0.11306298524141312,
-0.38933178782463074,
0.01575648784637451,
0.3853190839290619,
0.13869471848011017,
0.1158117949962616,
-0.033930134028196335,
0.19721326231956482,
-0.052170541137456894,
0.39168208837509155,
-0.011398657225072384,
-0.15004616975784302,
0.1345306634902954,
0.034018754959106445,
-0.029001478105783463,
-0.01841307245194912,
-0.18756406009197235,
0.3766219913959503,
-0.34508660435676575,
-0.06278856098651886,
-0.3435286283493042,
0.6501117944717407,
0.08761883527040482,
0.1313517540693283,
0.23997937142848969,
0.43665429949760437,
-0.19134673476219177,
0.3129684031009674,
0.7067785859107971,
0.7163446545600891,
0.01909293420612812,
0.14177559316158295,
0.5875767469406128,
0.04866403341293335,
0.2839803993701935,
0.3927364647388458,
0.1299736201763153,
-0.44775405526161194,
0.08775687217712402,
-0.11774970591068268,
-0.34262511134147644,
0.2784103453159332,
0.1346615105867386,
-0.1673138439655304,
-0.1764116734266281,
-0.22587944567203522,
0.5874402523040771,
0.170342355966568,
0.01797335036098957,
-0.35420626401901245,
-0.17259269952774048,
-0.060899101197719574,
0.07368899136781693,
0.13890144228935242,
-0.5042875409126282,
-0.03248301520943642,
-0.2297135889530182,
-0.19759954512119293,
0.0037453160621225834,
-0.22458429634571075,
-0.06362947076559067,
-0.20129099488258362,
-0.09640990942716599,
0.44809824228286743,
-0.48375746607780457,
0.204023540019989,
0.22266069054603577,
0.1445986032485962,
-0.27378493547439575,
-0.14725293219089508,
-0.06846337020397186,
0.2030746191740036,
-0.32004061341285706,
-0.17941968142986298,
-0.3234151601791382,
0.1967071294784546,
0.07858916372060776,
0.005546092055737972,
0.046965546905994415,
0.007979579269886017,
-0.18573549389839172,
-0.09393097460269928,
0.020763011649250984,
0.27109283208847046,
-0.31047680974006653,
-0.0762961208820343,
-0.2866949737071991,
-0.1470491737127304,
-0.14738582074642181,
0.04096764698624611,
0.02304631471633911,
-0.17622417211532593,
-0.08339373767375946,
0.0549641028046608,
0.16994264721870422,
0.03785115107893944,
-0.0440756157040596,
0.614361047744751,
0.4108811020851135,
0.3430805802345276,
0.26160258054733276,
0.04669106751680374,
-0.1633809357881546,
0.1584562212228775,
0.7001409530639648,
-0.5357528924942017,
0.17567045986652374,
0.09489946067333221,
-0.29780668020248413,
-0.16409610211849213,
0.5314980149269104,
-0.029676254838705063,
0.23332579433918,
-0.24501293897628784,
-0.02022300660610199,
-0.3762754499912262,
0.41654059290885925,
0.08812001347541809,
0.3043982684612274,
-0.26103904843330383,
-0.04397334158420563,
-0.02046782150864601,
-0.08434399962425232,
-0.20425385236740112,
0.00001095547395379981,
0.026867516338825226,
-0.04686374217271805,
-0.48332449793815613,
-0.04496050998568535,
0.11465378850698471,
-0.028198683634400368,
0.07644212990999222,
0.04695509374141693,
-0.3073562681674957,
-0.09387238323688507,
-0.06958377361297607,
0.14457526803016663,
0.0750073492527008,
-0.16099652647972107,
0.13167011737823486,
-0.01849617063999176,
-0.29221776127815247,
-0.11029061675071716,
-0.11734889447689056,
-0.17165209352970123,
-0.18854820728302002,
-0.10036413371562958,
0.37076520919799805,
0.021867524832487106,
-0.4096211791038513,
-0.062274184077978134,
-0.25917989015579224,
0.2143736332654953,
0.14315132796764374,
0.010411445051431656,
0.0338703915476799,
-0.01407176535576582,
0.01085522398352623,
0.24036671221256256,
-0.04893406480550766,
-0.21677705645561218,
0.36677852272987366,
-0.2843901216983795,
-0.3287573456764221,
-0.2931690216064453,
0.38238152861595154,
0.3120448887348175,
-0.13002727925777435,
0.14662280678749084,
0.12182512879371643,
0.09573958814144135,
-0.26359859108924866,
0.0599467009305954,
0.2136285901069641,
-0.12378977984189987,
0.195771723985672,
0.3809492886066437,
0.1733328402042389,
0.029394499957561493,
-0.04995144158601761,
0.07471809536218643,
-0.058328382670879364,
0.04048065096139908,
0.15803731977939606,
0.7727533578872681,
-0.08896303921937943,
0.0468703992664814,
0.34637758135795593,
0.05720198154449463,
0.30925893783569336,
-0.13760575652122498,
-0.04992474988102913,
0.4082028269767761,
0.11940568685531616,
-0.14702841639518738,
0.23536372184753418,
0.03651515394449234,
0.143693208694458,
0.2908639907836914,
0.5998584032058716,
-0.06553458422422409,
0.15461444854736328,
0.6458663940429688,
0.1295800358057022,
-0.060900043696165085,
-0.30792486667633057,
-0.17056019604206085,
0.0009384967852383852,
-0.01708235777914524,
-0.31977972388267517,
-0.07181668281555176,
-0.34003227949142456,
-0.37776979804039,
-0.20017676055431366,
-0.32196101546287537,
0.1966748833656311,
-0.24145011603832245,
0.13999345898628235,
-0.2682493031024933,
0.6058330535888672,
0.17339785397052765,
0.018611203879117966,
-0.011450625956058502,
0.4665215015411377,
0.1931340992450714,
-0.11038452386856079,
-0.10411858558654785,
0.3926160931587219,
0.23527571558952332,
0.32066991925239563,
-0.240293487906456,
-0.10840518027544022,
-0.03841680288314819,
-0.26323091983795166,
0.04782715439796448,
0.14192324876785278,
0.2050635814666748,
0.12602566182613373,
0.23569141328334808,
0.05492259934544563,
-0.07628173381090164,
0.12941299378871918,
0.10683488845825195,
-0.024024460464715958,
-0.18707755208015442,
0.4449999928474426,
-0.2076496034860611,
-0.14979536831378937,
0.14667528867721558,
-0.06259464472532272,
-0.29744961857795715,
-0.1419364959001541,
0.184987410902977,
-0.11328217387199402,
0.006851564161479473,
-0.004378223326057196,
0.03154364973306656,
-0.15522730350494385,
0.5530236959457397,
0.046312589198350906,
0.47427573800086975,
-0.08364703506231308,
-0.04956532269716263,
-0.2923718988895416,
0.26677823066711426,
-0.4952574372291565,
-0.0020596326794475317,
0.49606409668922424,
0.2562362849712372,
-0.006528922822326422,
0.13963109254837036,
0.14870747923851013,
0.34948670864105225,
-0.06305845081806183,
0.42086705565452576,
-0.2486194223165512,
-0.18346093595027924,
0.4288111925125122,
0.016288554295897484,
-0.11657265573740005,
-0.3974458575248718,
0.22012294828891754,
-0.226669043302536,
-0.024923626333475113,
0.2209423929452896,
0.02512739971280098,
0.16647787392139435,
0.10088200867176056,
0.512607216835022,
0.02132088504731655,
0.09377474337816238,
0.23486678302288055,
0.007140406873077154,
-0.3104793429374695,
-0.24807238578796387,
-0.24171096086502075,
0.14544521272182465,
0.0429888553917408,
0.4380662143230438,
-0.226176455616951,
0.15970231592655182,
-0.08594479411840439,
-0.08571179956197739,
0.07238500565290451,
0.18997281789779663,
-0.2099245935678482,
0.5638706684112549,
-0.6787708401679993,
-0.0031190086156129837,
-0.02487100474536419,
-0.24679411947727203,
0.05845034867525101,
0.0574171245098114,
-0.16132894158363342,
-0.3593488335609436,
0.6176450252532959,
-0.1556897610425949,
-0.41577452421188354,
0.14466682076454163,
-0.09502419829368591,
0.4629307985305786,
-0.15214920043945312,
-0.2348794937133789,
-0.12059728801250458,
0.3565760850906372,
0.041790325194597244,
0.019683651626110077,
0.01532463263720274,
0.08727279305458069,
-0.009390345774590969,
-0.232437863945961,
0.13488517701625824,
-0.09557221084833145,
-0.02585684321820736,
-0.3619649410247803,
-0.5236226916313171
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Cool
So please consider this issue as a feature request for:
```
Array3D(shape=(None, 137, 2), dtype="float32")
```
its a way to represent videos, poses, and other cool sequences | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 28 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Cool
So please consider this issue as a feature request for:
```
Array3D(shape=(None, 137, 2), dtype="float32")
```
its a way to represent videos, poses, and other cool sequences | [
-0.11950726807117462,
0.2424519807100296,
-0.08252330869436264,
0.0961938202381134,
0.3023025095462799,
-0.08079171925783157,
0.6678082346916199,
0.12745097279548645,
-0.45234525203704834,
0.26682183146476746,
0.3651505708694458,
0.15331602096557617,
-0.25517579913139343,
0.14884082973003387,
0.2744101583957672,
-0.42577245831489563,
0.1371486485004425,
0.5718726515769958,
0.18966054916381836,
0.11347075551748276,
-0.08112330734729767,
-0.09107128530740738,
-0.15861628949642181,
0.18719451129436493,
-0.3031567335128784,
-0.018084468320012093,
-0.17795398831367493,
-0.3297392427921295,
-0.13452553749084473,
-0.45148617029190063,
0.2623896300792694,
0.038963254541158676,
0.1677655279636383,
0.14945949614048004,
-0.0001254905655514449,
-0.016787972301244736,
0.5140050649642944,
0.0055480459704995155,
-0.1965206414461136,
0.07104756683111191,
0.03904976323246956,
-0.5094622373580933,
0.23154467344284058,
-0.26141494512557983,
-0.04862724617123604,
-0.5891058444976807,
-0.03733057901263237,
-0.06619533151388168,
-0.036601752042770386,
0.13774915039539337,
0.09991233795881271,
0.2449055165052414,
0.1895422637462616,
-0.0658864825963974,
0.5248128771781921,
0.610652506351471,
-0.4015272259712219,
-0.003251603338867426,
0.40934088826179504,
0.04848151281476021,
0.009082685224711895,
-0.044668011367321014,
-0.11383795738220215,
0.15280044078826904,
0.3713418245315552,
0.1253393292427063,
0.4157228469848633,
-0.3516634702682495,
-0.11975057423114777,
0.3804669678211212,
0.51325923204422,
-0.2269856482744217,
-0.1633288413286209,
-0.18252304196357727,
0.13759347796440125,
-0.1191866472363472,
-0.16815787553787231,
0.27769067883491516,
-0.30585339665412903,
-0.1067282035946846,
-0.3200065791606903,
0.18121780455112457,
-0.45197510719299316,
0.4415173828601837,
0.23196427524089813,
-0.03246234729886055,
0.026533178985118866,
0.1550101339817047,
-0.15431325137615204,
-0.20966850221157074,
0.6051819324493408,
-0.3144928216934204,
0.17138028144836426,
0.02667330950498581,
0.23157864809036255,
0.0007798114093020558,
-0.17810480296611786,
-0.2584559917449951,
0.22409823536872864,
0.02405632846057415,
0.18966960906982422,
0.0009136009612120688,
0.33610692620277405,
0.054934948682785034,
-0.23508909344673157,
0.15510936081409454,
0.019665149971842766,
-0.2865146994590759,
-0.1086953729391098,
0.1641213595867157,
0.05238370969891548,
0.08127991855144501,
-0.09288302063941956,
-0.1581505984067917,
0.21445539593696594,
0.1445920765399933,
0.22469712793827057,
0.3323439359664917,
0.09896311163902283,
-0.02121826633810997,
-0.6472469568252563,
-0.11901719123125076,
0.04935086518526077,
0.16761212050914764,
0.11621184647083282,
0.021795691922307014,
-0.14202050864696503,
0.4201963543891907,
0.041330475360155106,
-0.10683616995811462,
-0.13273100554943085,
0.028479740023612976,
-0.20209109783172607,
0.034552041441202164,
0.1474197506904602,
0.2719281315803528,
0.0682377964258194,
-0.10987834632396698,
0.2920950651168823,
0.11498827487230301,
0.2518875002861023,
0.13041548430919647,
0.2680574655532837,
0.18439701199531555,
-0.1766609251499176,
-0.029183413833379745,
-0.010827654972672462,
0.02397856116294861,
-0.2019135057926178,
0.25281593203544617,
0.03599977865815163,
-0.29116663336753845,
-0.40170925855636597,
0.06757309287786484,
-0.13321171700954437,
0.11479531973600388,
0.011067495681345463,
0.03926711529493332,
0.12916199862957,
-0.09209667146205902,
0.0919330045580864,
-0.06536341458559036,
0.09205680340528488,
-0.40384337306022644,
0.1100912019610405,
0.05874341353774071,
-0.3762682378292084,
-0.006014031358063221,
-0.17853431403636932,
0.05989088863134384,
-0.05814732238650322,
-0.09338312596082687,
-0.24550051987171173,
0.14912034571170807,
-0.28153324127197266,
0.09785503149032593,
0.5955638289451599,
0.06837103515863419,
-0.06656990945339203,
0.12860384583473206,
0.0778094157576561,
-0.191103994846344,
0.27002036571502686,
0.17735183238983154,
-0.0744972825050354,
-0.09173309803009033,
-0.31898126006126404,
0.31595122814178467,
-0.17401379346847534,
-0.20624896883964539,
0.08530254662036896,
-0.480560839176178,
0.5045501589775085,
0.12277773022651672,
0.09113074839115143,
-0.012192916125059128,
-0.0017254982376471162,
-0.3954717516899109,
0.10352930426597595,
-0.5231150984764099,
0.22635939717292786,
0.06486604362726212,
0.3272498846054077,
-0.10172940790653229,
0.014254719950258732,
-0.29041939973831177,
-0.762138307094574,
0.11185824871063232,
-0.38177740573883057,
0.03239698335528374,
-0.09285948425531387,
-0.0941648930311203,
-0.009800500236451626,
0.14356791973114014,
-0.1588364541530609,
0.1365593671798706,
0.018694423139095306,
0.2234545201063156,
0.17552252113819122,
-0.09271135926246643,
-0.14796766638755798,
-0.488605797290802,
0.1605396270751953,
-0.09355946630239487,
-0.3995201289653778,
0.6104868054389954,
-0.030409136787056923,
-0.3412741720676422,
-0.2333662360906601,
0.30264589190483093,
0.11167854070663452,
-0.1268317699432373,
0.07595512270927429,
0.0232765581458807,
-0.04671406373381615,
-0.00726076727733016,
-0.571678638458252,
0.1451820284128189,
0.1695391982793808,
-0.5125934481620789,
0.3018431067466736,
0.23807482421398163,
-0.020865540951490402,
-0.2693944275379181,
0.265048086643219,
0.5354461669921875,
0.016400853171944618,
0.5599134564399719,
-0.14889222383499146,
0.10691055655479431,
-0.08349455893039703,
0.3042314648628235,
-0.17105847597122192,
-0.2814379930496216,
-0.07708187401294708,
0.32159945368766785,
0.23483161628246307,
-0.08163836598396301,
-0.12026212364435196,
0.16733279824256897,
0.3450402021408081,
-0.10630430281162262,
0.11705707758665085,
0.1044827252626419,
-0.16723942756652832,
0.030595194548368454,
0.21944886445999146,
-0.24864447116851807,
-0.009598220698535442,
0.11336783319711685,
-0.1509043127298355,
-0.016722222790122032,
-0.1790008395910263,
-0.17752043902873993,
0.23999765515327454,
0.19789858162403107,
0.5377188324928284,
0.1734982281923294,
0.2530478239059448,
-0.23421430587768555,
-0.25632524490356445,
-0.2838901877403259,
0.07821577042341232,
-0.0029493875335901976,
-0.16629105806350708,
0.08192652463912964,
-0.09859703481197357,
-0.1753583401441574,
-0.053821805864572525,
-0.8407215476036072,
-0.0549628771841526,
-0.0161433108150959,
-0.13320040702819824,
-0.018302101641893387,
-0.12504513561725616,
0.29046329855918884,
0.13499732315540314,
-0.11611141264438629,
0.18877185881137848,
-0.12794165313243866,
-0.23948071897029877,
-0.020878328010439873,
0.0010636970400810242,
-0.04788122698664665,
0.19386060535907745,
0.11021479219198227,
-0.028572412207722664,
0.08936036378145218,
0.19561418890953064,
-0.4436904788017273,
-0.41406723856925964,
0.07615593075752258,
-0.0546472929418087,
0.3043240010738373,
0.6237302422523499,
-0.028849951922893524,
0.14163587987422943,
-0.4335572421550751,
0.37200185656547546,
0.030733315274119377,
-0.19801631569862366,
0.27010294795036316,
-0.1913006454706192,
0.13115063309669495,
-0.07743897289037704,
0.1274392157793045,
-0.043630678206682205,
-0.2877107560634613,
0.1742711067199707,
0.45358940958976746,
0.22852210700511932,
0.06468716263771057,
0.38534975051879883,
0.3064379394054413,
0.03193880245089531,
0.06176985055208206,
0.25028929114341736,
0.3139861524105072,
0.34400108456611633,
-0.1534816324710846,
-0.1516786813735962,
-0.0795786902308464,
-0.8197317719459534,
-0.04145974665880203,
0.19953744113445282,
0.005626149941235781,
-0.32044702768325806,
-0.15873147547245026,
0.2815917730331421,
0.02123146317899227,
0.04662550240755081,
0.3734763562679291,
0.12325964868068695,
0.11930423974990845,
-0.09993181377649307,
-0.2473721206188202,
0.32001993060112,
0.14774662256240845,
-0.16016709804534912,
0.010414683260023594,
0.4238665997982025,
-0.2608790099620819,
0.6008731126785278,
-0.010329005308449268,
-0.36596599221229553,
0.3163509964942932,
-0.16807523369789124,
-0.030800631269812584,
-0.21455267071723938,
-0.024849969893693924,
-0.14438983798027039,
0.08740880340337753,
-0.09681379050016403,
-0.05151002109050751,
-0.19671154022216797,
-0.296780526638031,
0.14977337419986725,
0.2748083770275116,
-0.06453042477369308,
0.016301743686199188,
-0.048532549291849136,
-0.16325893998146057,
0.18956534564495087,
-0.1704740971326828,
0.09037917107343674,
-0.2627588212490082,
-0.15583525598049164,
-0.13048061728477478,
-0.21189278364181519,
0.2559705674648285,
-0.02616507187485695,
-0.3173457086086273,
-0.07321325689554214,
0.07022088766098022,
0.19077326357364655,
0.6411176323890686,
0.01791391335427761,
0.12417562305927277,
-0.018988583236932755,
0.08274252712726593,
-0.09361638873815536,
0.7690868377685547,
-0.24369025230407715,
-0.12895378470420837,
0.4463673532009125,
0.03623912110924721,
-0.4153817296028137,
-0.19209489226341248,
-0.11460506170988083,
-0.0710533857345581,
-0.3726539611816406,
0.1269795149564743,
-0.20479078590869904,
-0.02578633278608322,
0.31336086988449097,
0.3239358961582184,
-0.018565479665994644,
-0.09819386899471283,
-0.11918412894010544,
-0.1535015106201172,
-0.19673043489456177,
-0.3282932937145233,
-0.04001282900571823,
0.32376301288604736,
0.24263355135917664,
-0.4854755699634552,
-0.3750818967819214,
-0.1122346892952919,
-0.06753239035606384,
-0.1278328001499176,
0.39817821979522705,
-0.06365446001291275,
0.07895442098379135,
-0.4502411484718323,
0.019328871741890907,
0.2227463722229004,
-0.13193394243717194,
0.2497079074382782,
0.024983055889606476,
0.1944115161895752,
-0.06538704037666321,
0.5268793106079102,
0.2793349325656891,
0.007096144370734692,
0.041103869676589966,
0.08464372158050537,
0.09077125787734985,
-0.1872560828924179,
-0.1035773903131485,
0.3837703466415405,
-0.4485936760902405,
-0.1014222726225853,
-0.2877468764781952,
0.5306909680366516,
-0.05516066029667854,
0.1810457706451416,
0.09352384507656097,
0.4269599914550781,
-0.21412913501262665,
0.26970505714416504,
0.6378163695335388,
0.9567369222640991,
0.03404621034860611,
0.35216206312179565,
0.665608823299408,
-0.016293993219733238,
0.243068665266037,
0.37266770005226135,
0.14535237848758698,
-0.49719956517219543,
-0.02670823596417904,
-0.1719360500574112,
-0.4330448508262634,
0.18196417391300201,
0.13267779350280762,
-0.2565488815307617,
-0.05614257603883743,
-0.14850473403930664,
0.28463214635849,
0.07065487653017044,
-0.036253996193408966,
-0.10296570509672165,
-0.1446872353553772,
-0.09484586864709854,
0.0010900310007855296,
0.012376765720546246,
-0.3828658163547516,
-0.1385524868965149,
-0.34608811140060425,
-0.02288810908794403,
0.03275606036186218,
-0.1455654799938202,
0.002142784185707569,
-0.2827848494052887,
0.04191524535417557,
0.3617232143878937,
-0.6093162894248962,
0.030666999518871307,
0.08797827363014221,
0.051579996943473816,
-0.2078799307346344,
-0.11856709420681,
-0.1019461378455162,
0.33508947491645813,
-0.29274165630340576,
-0.20244555175304413,
-0.32911279797554016,
0.30695977807044983,
-0.0366925485432148,
0.034352146089076996,
0.13679733872413635,
0.0006993863498792052,
-0.09086175262928009,
-0.15946064889431,
0.01507031824439764,
0.2453789860010147,
-0.16309858858585358,
-0.34232041239738464,
-0.2061365246772766,
-0.10854200273752213,
-0.04235938563942909,
-0.0009979058522731066,
0.08765356987714767,
-0.20882774889469147,
-0.2218296229839325,
0.1476566642522812,
0.10276636481285095,
-0.049764376133680344,
-0.006663196720182896,
0.4624759554862976,
0.2039846032857895,
0.30917027592658997,
0.35088467597961426,
-0.07022589445114136,
-0.18640857934951782,
0.20115971565246582,
0.462796151638031,
-0.5874419212341309,
0.18544043600559235,
0.12403355538845062,
-0.2766520380973816,
-0.08491901308298111,
0.48946186900138855,
-0.13674427568912506,
0.3455241918563843,
-0.10244512557983398,
-0.003582001430913806,
-0.30300378799438477,
0.14142192900180817,
0.08511337637901306,
0.36112087965011597,
-0.20153355598449707,
-0.12058413773775101,
0.002042674459517002,
-0.15577618777751923,
-0.16037777066230774,
0.0274455938488245,
0.15076963603496552,
0.07184931635856628,
-0.6480785012245178,
-0.16031594574451447,
-0.1307605803012848,
0.17007943987846375,
0.042788486927747726,
0.0692400336265564,
-0.47201481461524963,
-0.04957584664225578,
-0.04467640444636345,
0.2160998284816742,
0.08680351823568344,
-0.0737600028514862,
0.1676155924797058,
0.04948492720723152,
-0.32841455936431885,
-0.15563863515853882,
-0.090865358710289,
-0.1441146433353424,
-0.15055637061595917,
-0.06302093714475632,
0.3078472316265106,
-0.0997764989733696,
-0.35936036705970764,
-0.12164980918169022,
-0.19800569117069244,
0.3116026520729065,
0.10844902694225311,
0.05448510870337486,
-0.01207504328340292,
-0.012439222075045109,
-0.06978373974561691,
0.23847219347953796,
-0.07673861086368561,
-0.18828806281089783,
0.3575381934642792,
-0.28648459911346436,
-0.3052307367324829,
-0.24008874595165253,
0.38857540488243103,
0.022489018738269806,
-0.24479058384895325,
0.07347463816404343,
0.10669663548469543,
0.08827997744083405,
-0.2088194489479065,
-0.03263450041413307,
0.1386852264404297,
-0.09585195779800415,
0.151249960064888,
0.412718802690506,
0.1199408620595932,
0.0477122887969017,
-0.014456109143793583,
0.06681425869464874,
-0.2037319839000702,
0.021462973207235336,
0.1346936672925949,
0.5152422785758972,
-0.09641995280981064,
0.04653085395693779,
0.3629019558429718,
0.11971913278102875,
0.30329659581184387,
-0.07188726216554642,
-0.0999753326177597,
0.24137477576732635,
0.1897231787443161,
-0.14816498756408691,
0.2805441617965698,
0.07977607846260071,
0.047267600893974304,
0.2441510409116745,
0.5410912036895752,
0.038820963352918625,
0.08458762615919113,
0.2596605718135834,
0.11917556077241898,
-0.04987926036119461,
-0.45478108525276184,
-0.05646586790680885,
0.0095203947275877,
0.0025752289220690727,
-0.05196480080485344,
-0.034516219049692154,
-0.21873065829277039,
-0.21390266716480255,
-0.1241593062877655,
-0.34987762570381165,
0.1636027842760086,
-0.027808647602796555,
0.2309521585702896,
-0.05943609029054642,
0.7911986708641052,
0.14746145904064178,
0.03510626405477524,
-0.08233105391263962,
0.36547183990478516,
0.1892608255147934,
-0.08421816676855087,
-0.23636697232723236,
0.3424326479434967,
0.3028414249420166,
0.305791974067688,
-0.41373035311698914,
-0.0027465601451694965,
-0.0482073612511158,
-0.2514016926288605,
0.0007548842113465071,
0.1104699894785881,
0.1996537744998932,
0.3655869662761688,
0.24302653968334198,
0.052929989993572235,
-0.0775848850607872,
0.1095646545290947,
0.2621611952781677,
-0.0590660497546196,
-0.2608361542224884,
0.47481706738471985,
-0.36839085817337036,
-0.0772835984826088,
0.020059507340192795,
-0.02140042744576931,
-0.4413030445575714,
-0.09221433103084564,
0.3433688282966614,
-0.22229325771331787,
-0.03149787709116936,
0.007884267717599869,
0.00036614062264561653,
-0.40764757990837097,
0.4685802757740021,
0.056580785661935806,
0.5203984975814819,
-0.1426043063402176,
-0.057029761373996735,
-0.1997385323047638,
0.22563058137893677,
-0.18276773393154144,
0.06312665343284607,
0.3602488338947296,
0.28220492601394653,
-0.07029310613870621,
0.1351904720067978,
0.08179653435945511,
0.34292885661125183,
-0.009585356339812279,
0.32747408747673035,
-0.3078688383102417,
0.07214701920747757,
0.33324283361434937,
0.06983470916748047,
-0.08409173041582108,
-0.3582053482532501,
0.15510636568069458,
-0.38117891550064087,
-0.04116962105035782,
0.18657846748828888,
0.047658517956733704,
0.06021663919091225,
0.34296849370002747,
0.4439254105091095,
0.002110336674377322,
0.07944133877754211,
0.12551552057266235,
-0.13021136820316315,
-0.19104965031147003,
-0.15067973732948303,
0.01718326099216938,
0.41002345085144043,
-0.030391376465559006,
0.5122290849685669,
-0.2526366412639618,
0.4674156904220581,
-0.1593756526708603,
0.14068304002285004,
0.18905478715896606,
0.25056880712509155,
-0.14290982484817505,
0.4738929867744446,
-0.6883049607276917,
0.06143638491630554,
0.11719106882810593,
-0.24475309252738953,
0.105418361723423,
0.14440734684467316,
-0.09446533024311066,
-0.39616185426712036,
0.6354133486747742,
-0.23614798486232758,
-0.517355740070343,
0.18918278813362122,
-0.09221534430980682,
0.3242467939853668,
-0.04866483435034752,
-0.3283882439136505,
-0.08397307991981506,
0.4084094166755676,
0.029456373304128647,
0.0013381646713241935,
0.10201553255319595,
-0.09592831134796143,
-0.010799351148307323,
-0.15528826415538788,
0.1843918263912201,
-0.015267138369381428,
-0.17277759313583374,
-0.4269973635673523,
-0.5472984313964844
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | @lhoestq well, so sequence of sequences doesn't work either...
```
pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648
```
| I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 23 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq well, so sequence of sequences doesn't work either...
```
pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648
```
| [
-0.1600916087627411,
0.1551731675863266,
-0.13658002018928528,
0.20118463039398193,
0.23780497908592224,
0.002427169354632497,
0.5615336894989014,
0.08139834553003311,
-0.15611106157302856,
0.18688717484474182,
0.3679438531398773,
0.14772449433803558,
-0.19520968198776245,
-0.07515143603086472,
0.19821782410144806,
-0.3740193843841553,
0.10513246804475784,
0.4515882432460785,
0.09581533074378967,
0.08156038075685501,
-0.1296786367893219,
-0.10000810772180557,
-0.253184050321579,
0.2315310835838318,
-0.25456827878952026,
-0.11556468904018402,
-0.1887785941362381,
-0.24447672069072723,
-0.06532865017652512,
-0.6357089877128601,
0.2661862373352051,
0.04157515615224838,
0.11110622435808182,
0.22008444368839264,
-0.00012018422421533614,
-0.04306389391422272,
0.49930354952812195,
0.05532123148441315,
-0.1863553375005722,
-0.04839085415005684,
-0.016586629673838615,
-0.5161793231964111,
0.24669958651065826,
-0.28309619426727295,
0.025601478293538094,
-0.6335045099258423,
-0.050777990370988846,
-0.11116979271173477,
0.09917928278446198,
0.21628865599632263,
0.13575811684131622,
0.10129936039447784,
0.2948572337627411,
-0.13792572915554047,
0.4939406216144562,
0.18564842641353607,
-0.2645457983016968,
-0.006446131505072117,
0.42438367009162903,
0.0077982512302696705,
0.003983998671174049,
-0.22600004076957703,
-0.09149956703186035,
0.19466076791286469,
0.3239576518535614,
0.25442519783973694,
0.1728006899356842,
-0.26841646432876587,
-0.11674363911151886,
0.46339842677116394,
0.5487832427024841,
-0.19920244812965393,
-0.20620329678058624,
-0.16235187649726868,
0.025136981159448624,
-0.24955207109451294,
-0.016856657341122627,
0.22302298247814178,
-0.2625146508216858,
-0.06791029125452042,
-0.2960224449634552,
0.22520528733730316,
-0.36347439885139465,
0.3561139404773712,
0.2739035487174988,
0.07418470084667206,
0.03625993803143501,
0.19226586818695068,
-0.04267729073762894,
-0.16010454297065735,
0.44819018244743347,
-0.2737980782985687,
0.04113345593214035,
0.20048458874225616,
-0.04778274521231651,
0.08125288039445877,
-0.17875438928604126,
-0.259859174489975,
0.3866293430328369,
0.10062571614980698,
0.2853740453720093,
-0.04974450543522835,
0.2407916933298111,
0.011290904134511948,
-0.1565420925617218,
0.2287861853837967,
-0.03543749079108238,
-0.19554884731769562,
-0.15343886613845825,
0.1481015980243683,
0.11318238079547882,
0.10706796497106552,
-0.0841120257973671,
-0.2671603560447693,
0.34216880798339844,
-0.010037651285529137,
0.16210272908210754,
0.2628885805606842,
-0.0015819735126569867,
0.15848030149936676,
-0.7266276478767395,
-0.2275591939687729,
-0.010235183872282505,
0.23443607985973358,
0.0673704668879509,
-0.07876642793416977,
-0.14435264468193054,
0.3206435739994049,
0.06907235831022263,
0.017556561157107353,
-0.22207511961460114,
-0.02828483283519745,
-0.1574116349220276,
0.1480102837085724,
-0.005637096241116524,
0.14561326801776886,
0.13143078982830048,
-0.002154499990865588,
0.12790928781032562,
0.04693135246634483,
0.24037805199623108,
-0.05914146825671196,
0.18085211515426636,
0.1860531121492386,
-0.18973949551582336,
0.07943768799304962,
-0.01328373420983553,
-0.1411842703819275,
-0.20696839690208435,
0.33736222982406616,
-0.07481296360492706,
-0.24892736971378326,
-0.23960204422473907,
0.11953756213188171,
-0.24643400311470032,
0.14363577961921692,
-0.056774478405714035,
0.022128932178020477,
0.35044264793395996,
0.0329582616686821,
0.09728661179542542,
-0.04631408676505089,
0.13431577384471893,
-0.3639494776725769,
0.03161023557186127,
0.02917015738785267,
-0.404064416885376,
0.10277483612298965,
-0.017001045867800713,
0.042077887803316116,
0.0010875349398702383,
0.0002231054095318541,
-0.24837249517440796,
0.316739946603775,
-0.3398917615413666,
0.3151930868625641,
0.47719481587409973,
0.23142462968826294,
-0.14764897525310516,
0.0780266523361206,
0.008704965002834797,
-0.18053989112377167,
0.28362300992012024,
0.12470695376396179,
-0.07068213820457458,
-0.1788305640220642,
-0.2814868986606598,
0.19679448008537292,
-0.06826969236135483,
-0.2683037221431732,
-0.047451749444007874,
-0.3563321828842163,
0.3282252550125122,
0.009509590454399586,
-0.030008835718035698,
-0.057911209762096405,
-0.06115100905299187,
-0.36349305510520935,
0.09846673905849457,
-0.39850637316703796,
0.16821987926959991,
0.31026744842529297,
0.2540775537490845,
-0.1070060282945633,
0.018002569675445557,
-0.22155576944351196,
-0.6752681136131287,
0.13675126433372498,
-0.3360007703304291,
-0.07144670188426971,
-0.16087651252746582,
-0.04218559339642525,
-0.1771295666694641,
0.25564053654670715,
-0.25501081347465515,
0.15288302302360535,
0.07672816514968872,
0.17223942279815674,
0.23792946338653564,
-0.2839891314506531,
-0.12917260825634003,
-0.2462117075920105,
0.023567436262965202,
-0.034684982150793076,
-0.48336440324783325,
0.6345499157905579,
-0.0643041729927063,
-0.3637027144432068,
-0.21964000165462494,
0.1341252475976944,
0.045770589262247086,
-0.11066681891679764,
0.0889575406908989,
0.22542165219783783,
0.06352382153272629,
-0.1646241545677185,
-0.49934008717536926,
0.0038287672214210033,
0.12411956489086151,
-0.5690350532531738,
0.09151969105005264,
0.23022550344467163,
0.00611842842772603,
-0.2539626955986023,
0.10378088802099228,
0.33098408579826355,
0.009149065241217613,
0.589252769947052,
-0.10806626081466675,
-0.0582963190972805,
-0.022379178553819656,
0.20746204257011414,
-0.10527997463941574,
-0.1419219821691513,
0.047913938760757446,
0.3649188280105591,
0.3332379460334778,
-0.05937524512410164,
-0.08091564476490021,
0.07297692447900772,
0.2331445962190628,
-0.05247701704502106,
0.0030049937777221203,
0.08715935051441193,
-0.1870844066143036,
-0.04042106866836548,
0.16658829152584076,
-0.23826389014720917,
0.15281304717063904,
0.15056659281253815,
-0.15060549974441528,
-0.014066298492252827,
-0.3169113099575043,
-0.22607454657554626,
0.1385509967803955,
0.15584325790405273,
0.5817117094993591,
0.12869426608085632,
0.333438515663147,
-0.1319294422864914,
-0.1932005137205124,
-0.3791249990463257,
0.05765256658196449,
0.15121565759181976,
-0.19382597506046295,
0.1737958788871765,
-0.14543908834457397,
0.03654872626066208,
0.028119394555687904,
-0.6938307881355286,
0.04465706646442413,
-0.09636131674051285,
-0.1944790780544281,
0.05386315658688545,
-0.10521429777145386,
0.21629242599010468,
0.1200704574584961,
-0.21245290338993073,
0.28098198771476746,
-0.06108451634645462,
-0.16560444235801697,
-0.09610536694526672,
-0.012270522303879261,
0.036058392375707626,
0.2140233963727951,
0.047058165073394775,
0.002929474925622344,
0.1734708994626999,
-0.08416180312633514,
-0.4023230969905853,
-0.3385603427886963,
0.07223194092512131,
-0.0891835018992424,
0.20778381824493408,
0.5260066390037537,
0.07933393120765686,
-0.04332839325070381,
-0.5001629590988159,
0.3418540358543396,
0.17126008868217468,
-0.27878889441490173,
0.358145534992218,
-0.20939761400222778,
0.18847402930259705,
0.026400357484817505,
-0.08357340097427368,
-0.013348611071705818,
-0.30302920937538147,
0.2011640965938568,
0.5015563368797302,
0.2515631914138794,
0.28234997391700745,
0.3574548363685608,
0.2633707821369171,
-0.04834919422864914,
-0.004742586985230446,
0.16473975777626038,
0.335320383310318,
0.3585025668144226,
-0.10839640349149704,
-0.2562658190727234,
-0.10587434470653534,
-0.8942083716392517,
0.065769724547863,
0.3306564390659332,
-0.05344722419977188,
-0.26644501090049744,
-0.2960110306739807,
0.2652877867221832,
-0.04446787387132645,
0.12494606524705887,
0.39584147930145264,
0.15150536596775055,
-0.027753887698054314,
-0.07511477172374725,
-0.06603505462408066,
0.4360358417034149,
0.014645781368017197,
0.03303522989153862,
0.012260088697075844,
0.38509732484817505,
-0.18099138140678406,
0.6154465079307556,
0.2386413812637329,
-0.2948968708515167,
0.24687448143959045,
-0.26877662539482117,
-0.01609985902905464,
-0.38049885630607605,
0.14055967330932617,
-0.21494682133197784,
0.13249973952770233,
-0.13962730765342712,
-0.08481444418430328,
-0.15572941303253174,
-0.18568579852581024,
0.21088895201683044,
0.325787752866745,
-0.05601191148161888,
0.02706216648221016,
-0.0124884732067585,
-0.006274079438298941,
0.21577347815036774,
-0.07226075232028961,
0.008548303507268429,
-0.16570033133029938,
-0.12190931290388107,
-0.28322282433509827,
-0.33241331577301025,
0.25492677092552185,
-0.04207366332411766,
-0.4164329171180725,
-0.06957433372735977,
0.04707122966647148,
0.17468121647834778,
0.5719996094703674,
0.057209599763154984,
0.22471249103546143,
-0.15257735550403595,
0.11330404132604599,
-0.13672614097595215,
0.5029538869857788,
-0.16148391366004944,
-0.21734993159770966,
0.5037882328033447,
0.14878298342227936,
-0.3988543450832367,
-0.17282654345035553,
-0.1450510323047638,
0.10501760244369507,
-0.3108481466770172,
0.03740733861923218,
-0.3851982355117798,
0.035042792558670044,
0.2270035743713379,
0.45198994874954224,
0.030863216146826744,
-0.15458732843399048,
-0.1730749011039734,
-0.23413756489753723,
-0.16797031462192535,
-0.17699740827083588,
-0.07721457630395889,
0.33253374695777893,
0.1185419037938118,
-0.521742582321167,
-0.28310874104499817,
-0.22187456488609314,
-0.21664546430110931,
-0.11684504896402359,
0.42928546667099,
-0.09597183763980865,
0.19762039184570312,
-0.4244103729724884,
-0.021712766960263252,
0.2756631374359131,
0.07550550252199173,
0.20742236077785492,
0.04718650132417679,
0.11861677467823029,
-0.1547592729330063,
0.38129308819770813,
0.13657566905021667,
-0.09779176861047745,
0.12088283896446228,
0.08734191209077835,
0.1731405407190323,
-0.030942419543862343,
-0.11824385076761246,
0.2858743667602539,
-0.3870583772659302,
-0.24091863632202148,
-0.25261110067367554,
0.6065796613693237,
0.0345117412507534,
0.13066412508487701,
0.20119740068912506,
0.37899482250213623,
-0.19072821736335754,
0.15445128083229065,
0.5385940074920654,
0.8276060223579407,
-0.10918337851762772,
0.10956007242202759,
0.6449872255325317,
0.10660748183727264,
0.3623753786087036,
0.46513670682907104,
0.1103198230266571,
-0.4643546938896179,
-0.14541591703891754,
-0.09503911435604095,
-0.4753383696079254,
0.1898423284292221,
0.22017411887645721,
-0.2813164293766022,
0.10274006426334381,
-0.20253142714500427,
0.42501577734947205,
0.11371023952960968,
-0.17043299973011017,
-0.10864831507205963,
-0.12362698465585709,
-0.2000635862350464,
0.058270715177059174,
0.04766225442290306,
-0.3526816666126251,
-0.17186297476291656,
-0.18647454679012299,
-0.09502271562814713,
-0.10464540868997574,
-0.0701150894165039,
-0.01499978732317686,
-0.32503828406333923,
-0.04540291428565979,
0.48366138339042664,
-0.7281643748283386,
0.019850822165608406,
0.14081136882305145,
0.057834938168525696,
-0.1766631305217743,
-0.07002733647823334,
-0.18267354369163513,
0.09840919822454453,
-0.2828504741191864,
-0.16208051145076752,
-0.3218931257724762,
0.18635916709899902,
0.009795961901545525,
0.08413418382406235,
0.13133402168750763,
-0.10874064266681671,
-0.13770490884780884,
0.05130942910909653,
0.17947129905223846,
0.13634972274303436,
-0.22458434104919434,
-0.20159503817558289,
-0.05018438398838043,
-0.2770041525363922,
-0.1344670057296753,
0.03154097497463226,
0.14421118795871735,
-0.15306082367897034,
-0.1088709682226181,
0.08988078683614731,
0.04805703088641167,
-0.08801359683275223,
0.026797661557793617,
0.64796382188797,
0.20055769383907318,
0.46968725323677063,
0.2697416841983795,
-0.0549197643995285,
-0.1910225749015808,
0.0595998577773571,
0.5864039063453674,
-0.6140027642250061,
0.1377328634262085,
0.08553081750869751,
-0.10888101160526276,
-0.0170558150857687,
0.5587211847305298,
-0.1463164985179901,
0.33113372325897217,
-0.09945045411586761,
-0.08585260063409805,
-0.3952619433403015,
0.2944931089878082,
0.034583933651447296,
0.27144843339920044,
-0.24112236499786377,
-0.005688733886927366,
-0.049023862928152084,
-0.01776537112891674,
-0.20132172107696533,
-0.027435407042503357,
-0.1023833155632019,
0.07542779296636581,
-0.5516824126243591,
-0.006328262854367495,
0.006060096900910139,
0.11832640320062637,
0.08394693583250046,
0.1277223378419876,
-0.4031297564506531,
-0.1666739284992218,
0.04904581606388092,
0.16361041367053986,
0.1434488743543625,
-0.13647834956645966,
0.10579201579093933,
0.016443029046058655,
-0.2059156447649002,
-0.19042161107063293,
-0.08907720446586609,
-0.15878450870513916,
-0.15243077278137207,
-0.17989356815814972,
0.3732461929321289,
0.013350293040275574,
-0.4500875473022461,
-0.09930753707885742,
-0.3206634819507599,
0.3353334367275238,
0.08383146673440933,
0.033870358020067215,
0.05185147002339363,
-0.0675969049334526,
-0.1365983486175537,
0.25067126750946045,
0.025240933522582054,
-0.2826594412326813,
0.3494510054588318,
-0.4587413966655731,
-0.3821811378002167,
-0.13722780346870422,
0.45602887868881226,
0.2827412486076355,
-0.1941176950931549,
0.07832354307174683,
0.06015300005674362,
0.1380980759859085,
-0.24009695649147034,
-0.034507907927036285,
0.07294265180826187,
-0.012485992163419724,
0.1442500352859497,
0.338478684425354,
0.21486732363700867,
-0.13689599931240082,
0.08492561429738998,
0.10684190690517426,
-0.044374506920576096,
-0.005737002938985825,
0.0059638433158397675,
0.689557671546936,
0.022174635902047157,
0.06496744602918625,
0.4045621156692505,
0.08228706568479538,
0.33562108874320984,
-0.025246068835258484,
-0.09287101775407791,
0.3353501558303833,
0.2887386381626129,
-0.028422512114048004,
0.19666489958763123,
-0.09208817780017853,
-0.06859982013702393,
0.28639912605285645,
0.5743162035942078,
-0.21704885363578796,
0.10652472823858261,
0.35711702704429626,
0.26538965106010437,
0.06380271911621094,
-0.2555147111415863,
-0.11675449460744858,
0.0768638327717781,
-0.0006837656255811453,
-0.10983169823884964,
-0.027549466118216515,
-0.1941814422607422,
-0.3827088475227356,
-0.15051142871379852,
-0.389760285615921,
0.2327127754688263,
-0.1659683883190155,
0.217774897813797,
-0.3669433295726776,
0.6742687821388245,
0.21016670763492584,
-0.03691352903842926,
-0.17137041687965393,
0.5313131809234619,
0.3248061537742615,
-0.07920864224433899,
-0.10937158763408661,
0.36681273579597473,
0.3572770357131958,
0.3015877604484558,
-0.2407059669494629,
0.07957682013511658,
-0.1918935924768448,
-0.25661972165107727,
-0.054577842354774475,
0.15614736080169678,
0.17200805246829987,
0.0037678699009120464,
0.24825596809387207,
0.07094962149858475,
-0.12562775611877441,
0.36898738145828247,
0.28043001890182495,
0.03707456588745117,
-0.19326581060886383,
0.3348274827003479,
-0.27187100052833557,
-0.19034525752067566,
0.13119174540042877,
0.006321560125797987,
-0.4402509331703186,
0.10308220237493515,
0.3191305100917816,
-0.12231334298849106,
0.02016558311879635,
0.045045822858810425,
0.03412171080708504,
-0.3694944679737091,
0.47349482774734497,
0.15778563916683197,
0.6076855659484863,
-0.07976924628019333,
-0.1412038505077362,
-0.2672112286090851,
0.28978100419044495,
-0.4417598247528076,
0.07409436255693436,
0.308042973279953,
0.2579082250595093,
-0.04874846711754799,
0.2920190691947937,
0.07726971060037613,
0.2233106791973114,
-0.04798704758286476,
0.37013623118400574,
-0.3534584939479828,
-0.1368514895439148,
0.3459901511669159,
0.04852145537734032,
-0.2119521051645279,
-0.28493231534957886,
0.24081198871135712,
-0.3483983874320984,
0.01872461847960949,
0.1598384529352188,
0.16104570031166077,
0.011611081659793854,
0.2485993653535843,
0.4437901973724365,
0.11999841034412384,
0.07787119597196579,
0.135581836104393,
0.018292874097824097,
-0.276559978723526,
-0.2072041779756546,
-0.03770604729652405,
0.3501322865486145,
0.15345869958400726,
0.4672713875770569,
-0.24801349639892578,
0.3416925072669983,
-0.06838811188936234,
0.049189478158950806,
0.07881161570549011,
0.3267090916633606,
-0.2487182319164276,
0.4114188253879547,
-0.5436220169067383,
0.06655990332365036,
0.0299390759319067,
-0.19425636529922485,
0.13547033071517944,
0.10805850476026535,
-0.1219414621591568,
-0.5837485194206238,
0.6118191480636597,
-0.16556784510612488,
-0.41068053245544434,
0.10208868235349655,
-0.01448227558284998,
0.3352403938770294,
-0.12222873419523239,
-0.13298465311527252,
0.01589113473892212,
0.4949214458465576,
-0.033086419105529785,
-0.20153823494911194,
0.012879091314971447,
0.0020363028161227703,
0.0365060530602932,
-0.16226455569267273,
0.21191196143627167,
-0.007995388470590115,
-0.1454569548368454,
-0.38979583978652954,
-0.5064117908477783
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Working with Arrow can be quite fun sometimes.
You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741).
Let me know if it works.
I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 67 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Working with Arrow can be quite fun sometimes.
You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741).
Let me know if it works.
I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week. | [
-0.2213132381439209,
0.19797593355178833,
-0.015701554715633392,
0.3644231855869293,
0.35363149642944336,
0.012184892781078815,
0.5489981174468994,
0.1765436977148056,
-0.22645048797130585,
0.20632675290107727,
0.21528109908103943,
0.2304825782775879,
-0.1810271292924881,
0.003713978687301278,
0.2849796414375305,
-0.3763325810432434,
0.15250541269779205,
0.38059917092323303,
0.03357365354895592,
0.13607625663280487,
-0.03977442532777786,
-0.07203532755374908,
-0.12139414995908737,
0.11141858249902725,
-0.4059666097164154,
-0.004856768995523453,
-0.17471331357955933,
-0.12007429450750351,
-0.23102661967277527,
-0.5286948084831238,
0.18104703724384308,
0.06852557510137558,
0.0716022327542305,
0.22119846940040588,
-0.00012125128705520183,
0.08701281994581223,
0.5184177160263062,
0.07389403134584427,
-0.3144262433052063,
-0.025351347401738167,
0.1473909169435501,
-0.41041994094848633,
0.2535744607448578,
-0.22328756749629974,
0.05241326987743378,
-0.6484954357147217,
0.07178696990013123,
-0.025283658877015114,
0.16901877522468567,
0.27962803840637207,
0.15558163821697235,
0.2720469832420349,
0.32037144899368286,
-0.12939448654651642,
0.4958254396915436,
0.41107428073883057,
-0.2912888824939728,
-0.03751794621348381,
0.2439012974500656,
0.09630775451660156,
-0.20482902228832245,
-0.08129748702049255,
-0.046104755252599716,
0.127263605594635,
0.4374939799308777,
0.25341787934303284,
0.18010883033275604,
-0.2713247835636139,
0.12929046154022217,
0.3118753433227539,
0.5142440795898438,
-0.298447847366333,
-0.16867956519126892,
-0.24064788222312927,
0.06960632652044296,
-0.12142010778188705,
0.05004076287150383,
0.2096702754497528,
-0.3758709132671356,
-0.17506636679172516,
-0.2558998763561249,
0.05319451913237572,
-0.3825433552265167,
0.1938742846250534,
0.3322297930717468,
-0.07293141633272171,
-0.07717202603816986,
0.19577869772911072,
0.09489582479000092,
-0.08444434404373169,
0.4489102363586426,
-0.32749366760253906,
-0.06036147102713585,
0.1682136356830597,
-0.026026539504528046,
0.19145174324512482,
-0.06189219653606415,
-0.24891240894794464,
0.3557295799255371,
-0.014637431129813194,
0.0907958447933197,
-0.026043923571705818,
0.4090178608894348,
-0.03004663810133934,
-0.16669733822345734,
0.24244283139705658,
0.02684531919658184,
-0.05644778907299042,
-0.012662445195019245,
0.14587204158306122,
0.13689082860946655,
0.0023784590885043144,
-0.303697794675827,
-0.3543183505535126,
0.4389375150203705,
-0.15977062284946442,
0.22627022862434387,
0.27198511362075806,
0.05805482342839241,
0.052741698920726776,
-0.3872818052768707,
-0.16340982913970947,
-0.051205266267061234,
0.26051434874534607,
0.00794177409261465,
-0.1695232391357422,
-0.07498297840356827,
0.3475949168205261,
-0.1134955883026123,
-0.07718438655138016,
-0.20060670375823975,
0.01412896253168583,
-0.18721914291381836,
-0.03555535897612572,
0.18567737936973572,
-0.0006737398798577487,
0.17128567397594452,
-0.10051456838846207,
0.11025841534137726,
0.036488134413957596,
0.22940906882286072,
-0.003271714085713029,
0.07451892644166946,
0.2431534379720688,
-0.10598643124103546,
0.0759955644607544,
-0.10074489563703537,
-0.10354007035493851,
-0.19389608502388,
0.359540194272995,
-0.007272259332239628,
-0.3163636326789856,
-0.3604942858219147,
0.06773688644170761,
-0.18848006427288055,
0.10953179746866226,
-0.33342453837394714,
0.024151744320988655,
0.2464962750673294,
0.19292505085468292,
0.04680964723229408,
-0.0788814127445221,
0.11973227560520172,
-0.41869547963142395,
0.2552201747894287,
0.15068303048610687,
-0.32967981696128845,
-0.07641936838626862,
-0.17745830118656158,
-0.14531588554382324,
0.014685363508760929,
0.14076367020606995,
-0.2277485430240631,
0.3168015480041504,
-0.19699905812740326,
0.16468358039855957,
0.5898749828338623,
0.14218123257160187,
-0.19427503645420074,
0.04892856255173683,
-0.03594224900007248,
-0.1330452561378479,
0.2738949656486511,
0.13370484113693237,
-0.08580369502305984,
0.00036197243025526404,
-0.22650374472141266,
0.24272818863391876,
-0.20607829093933105,
-0.128423273563385,
-0.10287171602249146,
-0.4257863163948059,
0.25701960921287537,
0.18265782296657562,
0.18831977248191833,
-0.20023377239704132,
-0.07634560763835907,
-0.4452914893627167,
0.15099309384822845,
-0.4555950462818146,
0.31997430324554443,
0.2012661099433899,
0.27386873960494995,
-0.06866218894720078,
0.09198188036680222,
-0.19715523719787598,
-0.686598539352417,
0.22455008327960968,
-0.32398274540901184,
0.11369217932224274,
-0.1173117384314537,
-0.03893428295850754,
-0.04703580588102341,
0.23423494398593903,
-0.18901124596595764,
0.016943516209721565,
0.030437838286161423,
0.007918299175798893,
0.24688349664211273,
-0.1551266461610794,
-0.12084340304136276,
-0.323716938495636,
-0.07242706418037415,
0.08797341585159302,
-0.4804648756980896,
0.35518407821655273,
-0.02684851735830307,
-0.325533002614975,
-0.24177542328834534,
0.12611240148544312,
-0.09644308686256409,
-0.06996330618858337,
-0.0347927063703537,
0.13794566690921783,
-0.17182491719722748,
0.00948640238493681,
-0.44156762957572937,
0.06687994301319122,
0.03407047688961029,
-0.36494311690330505,
0.3318946957588196,
0.09767089039087296,
0.009557042270898819,
-0.2681989371776581,
0.023220594972372055,
0.33312591910362244,
0.10535527765750885,
0.5135989785194397,
-0.04698852822184563,
-0.01219364907592535,
-0.09000015258789062,
0.25900375843048096,
-0.00018070690566673875,
-0.09548341482877731,
0.07814078032970428,
0.19128425419330597,
0.30239933729171753,
0.10074290633201599,
-0.09008622914552689,
0.018186569213867188,
0.36223843693733215,
-0.0750441700220108,
-0.015478624030947685,
0.21645770967006683,
-0.3582881987094879,
-0.044306106865406036,
0.11466134339570999,
-0.2236911952495575,
0.09582240134477615,
0.18965087831020355,
-0.09621625393629074,
-0.003071174491196871,
-0.12162453681230545,
-0.24560357630252838,
0.23082099854946136,
0.10904441773891449,
0.4995392858982086,
0.0859798938035965,
0.24744711816310883,
-0.202501580119133,
-0.29542744159698486,
-0.1155419647693634,
0.11008263379335403,
0.21187938749790192,
-0.3103191554546356,
-0.03645097836852074,
0.003600441152229905,
-0.026373637840151787,
-0.04725739732384682,
-0.4187699854373932,
-0.07728013396263123,
-0.002173993270844221,
-0.11590055376291275,
0.03878265619277954,
-0.13915196061134338,
0.20608744025230408,
0.0957116112112999,
-0.17541439831256866,
0.16913571953773499,
-0.08273758739233017,
-0.1555672436952591,
-0.07009430229663849,
-0.0628751665353775,
0.02738800458610058,
0.432510644197464,
-0.006216379348188639,
0.10227789729833603,
0.06940102577209473,
0.007533521391451359,
-0.3865615129470825,
-0.3180575370788574,
0.0014937875093892217,
-0.18850131332874298,
0.3855707049369812,
0.5089983940124512,
0.012955078855156898,
0.07049650698900223,
-0.23512473702430725,
0.42832866311073303,
-0.062049880623817444,
-0.2789503037929535,
0.29511433839797974,
-0.24952945113182068,
0.013223021291196346,
-0.07542051374912262,
-0.06257747113704681,
0.08712701499462128,
-0.3013957142829895,
0.41611993312835693,
0.38923317193984985,
0.2587938606739044,
0.2775220274925232,
0.45375552773475647,
0.3612790107727051,
-0.15781892836093903,
0.07667701691389084,
0.26655346155166626,
0.0884508341550827,
0.4034973382949829,
-0.03177449852228165,
-0.2591504156589508,
-0.06069551035761833,
-0.6752926111221313,
0.07913621515035629,
0.1878126710653305,
-0.13350091874599457,
-0.08554750680923462,
-0.34913694858551025,
0.36534157395362854,
-0.017571542412042618,
0.25127217173576355,
0.3202785551548004,
0.13091926276683807,
0.022084135562181473,
-0.030240006744861603,
-0.15392698347568512,
0.4097856283187866,
-0.05654608830809593,
-0.1166488453745842,
-0.044496119022369385,
0.36856210231781006,
-0.27815207839012146,
0.7187981605529785,
0.159427672624588,
-0.19088096916675568,
0.1735195815563202,
-0.1888527125120163,
0.08687475323677063,
-0.23857511579990387,
-0.050661444664001465,
0.0356893315911293,
0.08391466736793518,
-0.03302687779068947,
-0.0050412616692483425,
-0.014653852209448814,
-0.1548367142677307,
0.24451860785484314,
0.09449034929275513,
0.017952488735318184,
-0.0938049927353859,
0.27266716957092285,
0.0028938045725226402,
0.12385746836662292,
-0.14959114789962769,
0.01749528758227825,
-0.3889082372188568,
-0.18019655346870422,
-0.16479803621768951,
-0.34639328718185425,
0.2637691795825958,
-0.011087032966315746,
-0.28536251187324524,
0.039152663201093674,
-0.38505062460899353,
0.11644377559423447,
0.42422541975975037,
-0.15640094876289368,
0.22179405391216278,
-0.020631972700357437,
0.19370533525943756,
-0.15111760795116425,
0.6794899106025696,
-0.11875129491090775,
-0.34091275930404663,
0.42746880650520325,
0.1553487479686737,
-0.5605750679969788,
-0.08464246988296509,
-0.16528664529323578,
0.2461467832326889,
-0.3158966600894928,
0.10866918414831161,
-0.41432926058769226,
-0.14333266019821167,
0.41401100158691406,
0.39137187600135803,
-0.05456582456827164,
-0.1851378083229065,
-0.21211403608322144,
-0.30407479405403137,
-0.1858677715063095,
-0.12978984415531158,
0.012849852442741394,
0.37273237109184265,
0.1485011875629425,
-0.3051454424858093,
-0.2967606484889984,
0.016409017145633698,
-0.12483630329370499,
-0.05244012549519539,
0.40779954195022583,
-0.24689261615276337,
0.17859117686748505,
-0.21985843777656555,
-0.06658696383237839,
0.32682350277900696,
0.20263119041919708,
0.05367139354348183,
-0.1761283576488495,
0.11340735107660294,
-0.03934396803379059,
0.4988563656806946,
0.20186439156532288,
-0.11459232866764069,
0.1512622982263565,
0.1214175596833229,
0.2522667944431305,
-0.1870196908712387,
-0.08605057001113892,
0.4117688834667206,
-0.26268070936203003,
-0.22547592222690582,
-0.32364529371261597,
0.5513410568237305,
0.04274040088057518,
0.2184249758720398,
0.35255202651023865,
0.43898189067840576,
-0.22359314560890198,
0.2400866597890854,
0.48352333903312683,
0.8892108798027039,
-0.15078969299793243,
0.24045026302337646,
0.6072925925254822,
0.005506314802914858,
0.2729426622390747,
0.23931670188903809,
0.22259476780891418,
-0.5379677414894104,
-0.0511486791074276,
0.07093514502048492,
-0.35193485021591187,
0.28473371267318726,
0.10380334407091141,
-0.11337150633335114,
-0.04175923019647598,
-0.13837331533432007,
0.4122713506221771,
0.0663561001420021,
0.12671369314193726,
-0.29731297492980957,
-0.30451062321662903,
-0.08275656402111053,
0.031222950667142868,
0.04540389031171799,
-0.3888438045978546,
-0.059233441948890686,
-0.11341872066259384,
-0.07888489216566086,
-0.07339514791965485,
-0.21809262037277222,
-0.06166713684797287,
-0.5097699165344238,
-0.09594152867794037,
0.4721810221672058,
-0.4421560764312744,
0.20038658380508423,
0.13334406912326813,
0.12538276612758636,
-0.08046188205480576,
-0.102549709379673,
-0.03465396538376808,
0.1324414312839508,
-0.18098184466362,
-0.06683353334665298,
-0.32477012276649475,
0.11695511639118195,
0.05005288124084473,
-0.09297777712345123,
0.0070036654360592365,
-0.12740477919578552,
-0.07828456908464432,
-0.03454790636897087,
-0.054657433182001114,
0.19909819960594177,
-0.2799147069454193,
-0.20941314101219177,
-0.2535102963447571,
-0.1570216417312622,
-0.19317111372947693,
0.03919880464673042,
0.16045860946178436,
-0.1208101138472557,
-0.07206978648900986,
-0.0012572341365739703,
0.028834914788603783,
-0.06945035606622696,
-0.04550815001130104,
0.5458690524101257,
0.21700669825077057,
0.5177695155143738,
0.35891762375831604,
-0.049875739961862564,
-0.18147647380828857,
-0.033292047679424286,
0.6822752952575684,
-0.773172914981842,
0.2939395606517792,
0.1818486452102661,
-0.24213506281375885,
-0.16770295798778534,
0.5106952786445618,
-0.12476281076669693,
0.13428951799869537,
-0.10646255314350128,
0.1037910208106041,
-0.4808642566204071,
0.29909348487854004,
0.20305289328098297,
0.3578310012817383,
-0.17867666482925415,
-0.0927872434258461,
0.07187800854444504,
0.12344657629728317,
-0.19774799048900604,
-0.005035502836108208,
0.09589886665344238,
0.016149280592799187,
-0.40357455611228943,
-0.04250355437397957,
0.24485763907432556,
0.039789341390132904,
0.032777804881334305,
0.019810141995549202,
-0.3607736825942993,
-0.1390211284160614,
-0.03786170482635498,
0.14554134011268616,
-0.037149205803871155,
-0.1967010349035263,
0.2865370213985443,
-0.022483093664050102,
-0.23300854861736298,
-0.2979307174682617,
0.15488193929195404,
-0.0779569000005722,
-0.1853630095720291,
-0.2841276526451111,
0.3411080539226532,
-0.09695357084274292,
-0.34571683406829834,
0.017939336597919464,
-0.21943335235118866,
0.2988493740558624,
0.027140162885189056,
0.1437523514032364,
0.1295875608921051,
-0.03720787167549133,
-0.009505636990070343,
0.213930144906044,
0.1074954941868782,
-0.21734121441841125,
0.20242194831371307,
-0.43661755323410034,
-0.4164588749408722,
-0.14296245574951172,
0.395370215177536,
0.3089136481285095,
-0.061444539576768875,
0.12813247740268707,
0.10379261523485184,
0.1279309242963791,
-0.20232442021369934,
0.014339154586195946,
0.13771624863147736,
-0.18967317044734955,
0.14611731469631195,
0.35541999340057373,
0.060518354177474976,
-0.006623697467148304,
-0.10272566229104996,
0.18622276186943054,
-0.0740232989192009,
0.04662078991532326,
0.10862170904874802,
0.44951382279396057,
0.0012585001531988382,
-0.02755577117204666,
0.4771544635295868,
0.01750134490430355,
0.29436227679252625,
-0.07106129825115204,
-0.0856117531657219,
0.3696000874042511,
0.1361251324415207,
0.012899301946163177,
0.08575329184532166,
-0.12888509035110474,
0.10216212272644043,
0.23273538053035736,
0.35441768169403076,
-0.055894073098897934,
-0.018650343641638756,
0.746391773223877,
0.24879521131515503,
-0.013441409915685654,
-0.3547644019126892,
-0.053871531039476395,
-0.19856521487236023,
-0.12775658071041107,
-0.07943280786275864,
-0.07918093353509903,
-0.25954297184944153,
-0.0793812945485115,
-0.20000290870666504,
-0.4033374488353729,
0.22919082641601562,
-0.12262684106826782,
0.08475655317306519,
-0.32994991540908813,
0.6227367520332336,
0.21933293342590332,
0.00306386174634099,
-0.16118426620960236,
0.4744718372821808,
0.2397117167711258,
-0.21449822187423706,
-0.3211132884025574,
0.6006439924240112,
0.44678163528442383,
0.3391546308994293,
-0.2090890109539032,
0.03971643000841141,
0.027591615915298462,
-0.16984395682811737,
-0.06829258799552917,
0.07739623636007309,
0.227827250957489,
0.1914871782064438,
0.14241085946559906,
0.05181759595870972,
-0.137539803981781,
0.034177154302597046,
0.2019423395395279,
-0.0764237567782402,
-0.12304971367120743,
0.21567551791667938,
-0.310153067111969,
-0.2395063191652298,
-0.016339274123311043,
-0.12589320540428162,
-0.39758795499801636,
-0.0625828355550766,
0.46611231565475464,
-0.19911335408687592,
-0.0436268113553524,
-0.23006461560726166,
0.03519735112786293,
-0.1980312317609787,
0.5869739055633545,
0.16210278868675232,
0.4991675913333893,
-0.3921729028224945,
-0.047974761575460434,
-0.33897507190704346,
0.23386918008327484,
-0.46708276867866516,
0.11459570378065109,
0.2771799862384796,
0.31037506461143494,
-0.1225024089217186,
0.061113450676202774,
0.2008214145898819,
0.27449846267700195,
0.06808535754680634,
0.372952401638031,
-0.26228076219558716,
0.034185219556093216,
0.3085060119628906,
-0.02928254008293152,
-0.014893230982124805,
-0.43451738357543945,
0.26619186997413635,
-0.3839816749095917,
-0.02356830984354019,
0.08238451927900314,
0.21931971609592438,
0.236135795712471,
0.06692428141832352,
0.4159303307533264,
-0.006545979995280504,
0.02680680714547634,
0.15884317457675934,
-0.23405615985393524,
-0.36721158027648926,
-0.1426379233598709,
-0.24646569788455963,
0.23775547742843628,
0.11278954893350601,
0.49681493639945984,
-0.3303932547569275,
0.17464230954647064,
-0.22607475519180298,
0.02207677625119686,
0.04351622983813286,
0.2901395857334137,
-0.14157195389270782,
0.418350487947464,
-0.6275556683540344,
0.12061266601085663,
0.10109448432922363,
-0.1684277206659317,
0.05126629397273064,
0.025398962199687958,
-0.297852486371994,
-0.4806823134422302,
0.5629154443740845,
-0.3771931827068329,
-0.45624276995658875,
0.07515981793403625,
0.03180042654275894,
0.4164328873157501,
-0.21714971959590912,
-0.4832148253917694,
0.015603596344590187,
0.3150599002838135,
0.06084618717432022,
-0.04681844636797905,
0.16616298258304596,
-0.029331669211387634,
0.10804738104343414,
-0.15059718489646912,
0.3135238289833069,
-0.10692156851291656,
-0.17431670427322388,
-0.2626369595527649,
-0.599611222743988
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus)
Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
| I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 37 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus)
Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
| [
-0.374576210975647,
0.12805821001529694,
-0.047619856894016266,
0.208238422870636,
0.2405511885881424,
-0.0033122380264103413,
0.49839818477630615,
0.14746320247650146,
-0.2932838797569275,
0.1866018921136856,
0.2814418375492096,
-0.05396429821848869,
-0.19091719388961792,
-0.11750131845474243,
0.22293642163276672,
-0.2851470708847046,
0.14254391193389893,
0.372378945350647,
0.004917227663099766,
0.02820035070180893,
-0.08748172968626022,
-0.17401699721813202,
-0.25961315631866455,
-0.11417953670024872,
-0.28675469756126404,
-0.19243240356445312,
-0.23852501809597015,
-0.1416582465171814,
-0.18207043409347534,
-0.5740127563476562,
0.1513037085533142,
0.0021338383667171,
0.2676510512828827,
0.41988375782966614,
-0.00012584030628204346,
0.014041909947991371,
0.5327541828155518,
-0.029670489951968193,
-0.30781781673431396,
0.18048013746738434,
0.11603900045156479,
-0.5670772790908813,
0.07550252974033356,
-0.27681538462638855,
0.0667395070195198,
-0.6155686974525452,
0.07928624749183655,
-0.09356798231601715,
0.08113223314285278,
0.2686924934387207,
0.07581445574760437,
0.11476578563451767,
0.2332262098789215,
-0.2019832581281662,
0.4513532817363739,
0.29154643416404724,
-0.19349543750286102,
0.0987180694937706,
0.47978895902633667,
0.22443081438541412,
-0.13446521759033203,
-0.09340991824865341,
-0.2257819026708603,
0.27860933542251587,
0.22499634325504303,
0.1619923859834671,
0.5029176473617554,
-0.2946101427078247,
0.13336603343486786,
0.3447370231151581,
0.5489016175270081,
-0.11152446269989014,
-0.2093062549829483,
-0.2974889278411865,
-0.06867726147174835,
-0.11758121848106384,
-0.24315623939037323,
0.24193188548088074,
-0.2852618098258972,
-0.1375112384557724,
-0.28290459513664246,
0.12524361908435822,
-0.36889347434043884,
0.30381667613983154,
0.27151352167129517,
0.008696027100086212,
0.08807896822690964,
0.24282096326351166,
-0.032525062561035156,
-0.14728879928588867,
0.39264994859695435,
-0.15541158616542816,
-0.11841242015361786,
0.1431397795677185,
0.058882348239421844,
0.15500591695308685,
-0.038071997463703156,
-0.288838654756546,
0.43211665749549866,
-0.10634409636259079,
0.013871254399418831,
-0.047338660806417465,
0.5867902040481567,
-0.09263066947460175,
-0.1287662833929062,
0.39049088954925537,
-0.1972961127758026,
-0.041650038212537766,
0.10457778722047806,
0.10699714720249176,
-0.06201823055744171,
0.20882858335971832,
-0.2877638339996338,
-0.40631791949272156,
0.40932968258857727,
-0.10461698472499847,
0.0710788294672966,
0.16944022476673126,
0.06700057536363602,
0.1073107123374939,
-0.32121986150741577,
-0.05982597544789314,
-0.17917342483997345,
0.35382261872291565,
-0.003910935949534178,
-0.025315266102552414,
-0.067893385887146,
0.2610294818878174,
-0.03805462643504143,
-0.07146219164133072,
-0.1640247255563736,
-0.08083699643611908,
-0.23091758787631989,
-0.026076147332787514,
0.25226008892059326,
0.15479810535907745,
0.20872440934181213,
-0.22512154281139374,
0.23052763938903809,
0.05265993997454643,
0.10992398858070374,
-0.11921966820955276,
0.204105406999588,
0.3068581223487854,
-0.03177599236369133,
0.09199858456850052,
-0.0652690902352333,
0.060339998453855515,
-0.2398640513420105,
0.47550758719444275,
-0.12243179976940155,
-0.2511696517467499,
-0.2756827771663666,
0.032548826187849045,
-0.23423150181770325,
0.08592915534973145,
-0.33214622735977173,
0.08392035216093063,
0.4152878224849701,
0.0884539783000946,
0.11650078743696213,
-0.12336776405572891,
0.06684615463018417,
-0.44321995973587036,
0.036399371922016144,
0.19624799489974976,
-0.3947775363922119,
0.09624273329973221,
-0.01763021945953369,
0.16938374936580658,
0.28342026472091675,
0.12042492628097534,
-0.07690433412790298,
0.2557764947414398,
-0.19146756827831268,
0.244873508810997,
0.5503520965576172,
0.03743988275527954,
-0.32487666606903076,
0.23411530256271362,
-0.023538945242762566,
-0.2791967988014221,
0.3945930004119873,
0.11496546864509583,
0.09642243385314941,
-0.051859378814697266,
-0.13846562802791595,
0.3612684905529022,
-0.2345641404390335,
0.07399804890155792,
-0.13796673715114594,
-0.5268688797950745,
0.09479840099811554,
0.16226784884929657,
0.3325761556625366,
-0.10041585564613342,
0.03537270799279213,
-0.3560439348220825,
0.16480188071727753,
-0.40082526206970215,
0.31267333030700684,
0.14926980435848236,
0.2288142293691635,
-0.1841287612915039,
0.20839913189411163,
-0.18135663866996765,
-0.6962059736251831,
0.2876124978065491,
-0.5014747977256775,
0.07391678541898727,
0.0391727089881897,
-0.04297018423676491,
-0.16205403208732605,
0.07031487673521042,
-0.06924831122159958,
0.017435358837246895,
-0.05595408007502556,
0.0669511929154396,
0.3730543255805969,
-0.18423797190189362,
-0.06454843282699585,
-0.3771054446697235,
0.05736839026212692,
-0.0027466563042253256,
-0.3606957495212555,
0.20456461608409882,
0.00236911466345191,
-0.4256264269351959,
-0.19670695066452026,
0.07872743159532547,
-0.06718781590461731,
-0.10911622643470764,
-0.029898682609200478,
0.19067002832889557,
-0.10572773963212967,
-0.12659521400928497,
-0.5945062637329102,
0.11334380507469177,
-0.007530106697231531,
-0.17096352577209473,
0.30668678879737854,
0.12030500173568726,
-0.03838676959276199,
-0.2761614918708801,
0.15489812195301056,
0.22504112124443054,
0.09560509771108627,
0.4443618655204773,
-0.04831768199801445,
-0.178797647356987,
0.0536850281059742,
0.10913416743278503,
0.023280438035726547,
-0.1872335970401764,
0.057342808693647385,
0.13116271793842316,
0.24369949102401733,
0.017907412722706795,
-0.10047288239002228,
-0.06741141527891159,
0.23301707208156586,
-0.04132857173681259,
0.19553537666797638,
0.12482001632452011,
-0.3651072382926941,
-0.07162641733884811,
0.14101839065551758,
-0.2624342441558838,
0.18577943742275238,
0.22643812000751495,
0.0025505477096885443,
0.007684355601668358,
-0.024963457137346268,
-0.28263142704963684,
0.1699322611093521,
0.03705380856990814,
0.5360163450241089,
0.27104291319847107,
0.26853039860725403,
-0.15290577709674835,
-0.25962433218955994,
-0.07022607326507568,
0.12421169131994247,
0.18143923580646515,
-0.27336549758911133,
0.010387853719294071,
0.000049893402319867164,
-0.13574524223804474,
-0.04129442945122719,
-0.39041754603385925,
0.07417061924934387,
0.08749162405729294,
-0.037294454872608185,
0.0703359916806221,
-0.15334519743919373,
0.16520307958126068,
-0.03977758809924126,
-0.041830722242593765,
0.2344287931919098,
-0.2710820734500885,
-0.09374304115772247,
-0.00934629701077938,
-0.28187376260757446,
-0.032399732619524,
0.3056124448776245,
-0.0038355595897883177,
0.14192906022071838,
0.09929734468460083,
0.09660106152296066,
-0.25070494413375854,
-0.27883830666542053,
-0.034102268517017365,
0.021712513640522957,
0.3230952322483063,
0.4574573040008545,
0.14997343719005585,
0.11795763671398163,
-0.17523068189620972,
0.3148292303085327,
-0.11351847648620605,
-0.21769089996814728,
0.1710076928138733,
-0.3160587251186371,
0.03262823075056076,
-0.12103511393070221,
-0.04946465790271759,
0.01121718343347311,
-0.372951865196228,
0.06965819746255875,
0.4055190086364746,
0.2205289751291275,
0.3084490895271301,
0.4828369915485382,
0.23675525188446045,
0.12433137744665146,
0.1658312827348709,
0.19842682778835297,
0.2151188999414444,
0.457296222448349,
-0.02934890054166317,
-0.297474205493927,
-0.19027818739414215,
-0.698136568069458,
0.018409840762615204,
0.37383365631103516,
-0.2694818675518036,
-0.024569250643253326,
-0.3942731022834778,
0.10623663663864136,
0.058317504823207855,
0.2845515310764313,
0.3782830238342285,
-0.04741897061467171,
-0.02540995553135872,
-0.07031672447919846,
-0.058421771973371506,
0.24947690963745117,
0.12398852407932281,
0.11730846017599106,
-0.03087463602423668,
0.4462176561355591,
-0.19458630681037903,
0.7147114276885986,
0.09477188438177109,
-0.30389392375946045,
0.27079105377197266,
-0.14014068245887756,
0.017062222585082054,
-0.2703031003475189,
0.03720095753669739,
0.09616544842720032,
0.12775175273418427,
-0.23763836920261383,
0.14757701754570007,
-0.059103887528181076,
-0.3861612379550934,
0.17759773135185242,
0.0471053384244442,
-0.07902543991804123,
-0.044459108263254166,
0.2812482416629791,
-0.2039061337709427,
0.13388696312904358,
-0.07929116487503052,
0.03680676594376564,
-0.31275108456611633,
-0.25265049934387207,
-0.19027099013328552,
-0.47111278772354126,
0.14106205105781555,
0.04336013272404671,
-0.10229159891605377,
0.12383628636598587,
-0.3025415241718292,
0.2792183756828308,
0.4346427917480469,
0.000725160411093384,
0.23956187069416046,
-0.07878214120864868,
0.20655685663223267,
-0.09702403843402863,
0.6973790526390076,
-0.18041624128818512,
-0.08164290338754654,
0.325996994972229,
0.1955781877040863,
-0.5518752336502075,
-0.24223148822784424,
-0.0672411173582077,
0.09544382989406586,
-0.1372198462486267,
0.11831405013799667,
-0.4352433383464813,
0.12174098938703537,
0.3166219890117645,
0.42479467391967773,
-0.05360982194542885,
-0.22969716787338257,
-0.2966368496417999,
-0.3348881006240845,
-0.21743841469287872,
-0.0390174575150013,
0.10083780437707901,
0.3269643187522888,
0.1987345814704895,
-0.3782704770565033,
-0.4008757472038269,
-0.040806084871292114,
-0.07394477725028992,
0.07055623829364777,
0.3742888569831848,
0.026396453380584717,
0.017282554879784584,
-0.27327781915664673,
0.13705092668533325,
0.35070398449897766,
0.11350327730178833,
-0.004343055654317141,
0.0875769853591919,
0.17090250551700592,
0.01458379253745079,
0.4518880844116211,
0.3074624836444855,
-0.04811599478125572,
-0.036169636994600296,
0.17421168088912964,
0.31808120012283325,
-0.1563243418931961,
-0.016377093270421028,
0.2593963146209717,
-0.3316498398780823,
-0.45877301692962646,
-0.29227572679519653,
0.546674370765686,
0.10496833175420761,
0.1723925918340683,
0.2966723144054413,
0.26433318853378296,
-0.30653658509254456,
0.446404367685318,
0.5022367835044861,
0.89258873462677,
-0.11671417951583862,
0.2179514616727829,
0.37229663133621216,
0.2857915759086609,
0.26205095648765564,
0.3009258508682251,
0.18851561844348907,
-0.47038573026657104,
0.061144549399614334,
0.10758186131715775,
-0.42748919129371643,
0.19379407167434692,
0.33183348178863525,
-0.21362830698490143,
0.05559736490249634,
-0.20178264379501343,
0.3583788573741913,
-0.019514724612236023,
0.05693664401769638,
-0.07708105444908142,
-0.25091540813446045,
-0.030021142214536667,
-0.022096434608101845,
0.10721653699874878,
-0.30956414341926575,
-0.17830508947372437,
-0.1149403527379036,
-0.18043220043182373,
-0.15788021683692932,
-0.30142322182655334,
-0.12944334745407104,
-0.3661159574985504,
-0.026383284479379654,
0.35234272480010986,
-0.5593371391296387,
0.012738906778395176,
0.0975903645157814,
0.09047635644674301,
0.05141483619809151,
-0.07093971967697144,
-0.0683586448431015,
0.23989571630954742,
-0.2562885582447052,
0.10048529505729675,
-0.35814258456230164,
0.1616695076227188,
-0.017057688906788826,
-0.06351327896118164,
0.010568865574896336,
-0.1707506626844406,
-0.10433313995599747,
-0.1473846584558487,
0.0010238166432827711,
0.0947539284825325,
-0.24148929119110107,
-0.3821016550064087,
-0.19393290579319,
-0.08715644478797913,
-0.0878811776638031,
-0.02874329686164856,
0.08978530764579773,
-0.0756542831659317,
0.2411966323852539,
0.07993686199188232,
-0.1455172449350357,
-0.05001258850097656,
0.026844821870326996,
0.6528417468070984,
-0.030887234956026077,
0.4302843511104584,
0.3163840174674988,
-0.04794115200638771,
-0.13713163137435913,
-0.005802219733595848,
0.4690587520599365,
-0.6159567832946777,
0.36258968710899353,
0.15116068720817566,
-0.27430692315101624,
-0.005990878213196993,
0.44511693716049194,
-0.07272432744503021,
0.2775432765483856,
-0.16059447824954987,
-0.00499471090734005,
-0.47035491466522217,
0.2354561686515808,
0.12058371305465698,
0.37057530879974365,
-0.15226000547409058,
-0.22070039808750153,
0.09761766344308853,
0.16113823652267456,
-0.12689581513404846,
-0.0327623188495636,
0.008387955836951733,
0.016170548275113106,
-0.6082543730735779,
0.1483255922794342,
0.08972159773111343,
0.15009228885173798,
-0.048017144203186035,
0.046520259231328964,
-0.22602422535419464,
-0.08516917377710342,
0.026854224503040314,
0.20548571646213531,
-0.031073417514562607,
-0.05226442962884903,
0.35204437375068665,
-0.15900428593158722,
-0.34310469031333923,
-0.19624611735343933,
0.1736915111541748,
-0.025875087827444077,
-0.202925905585289,
-0.27172401547431946,
0.3582439422607422,
0.009541397914290428,
-0.1717253029346466,
0.16339188814163208,
-0.2824487090110779,
0.29184943437576294,
0.06435684114694595,
0.2059907168149948,
0.19214022159576416,
-0.06766489148139954,
-0.03455016762018204,
0.14833007752895355,
0.2114979326725006,
-0.2168191820383072,
0.18925213813781738,
-0.40901803970336914,
-0.4071272909641266,
-0.027429193258285522,
0.3321343660354614,
0.31508421897888184,
-0.042649175971746445,
0.005769574083387852,
0.07252579182386398,
0.11303406208753586,
-0.28083163499832153,
0.044814396649599075,
0.11336563527584076,
-0.05560945346951485,
0.1534714251756668,
0.4482031762599945,
0.09660301357507706,
-0.09774599224328995,
-0.19229812920093536,
0.20721620321273804,
0.07309972494840622,
0.053151022642850876,
-0.0388382188975811,
0.49762752652168274,
0.06062141805887222,
-0.10856896638870239,
0.3637855648994446,
-0.025639405474066734,
0.43118640780448914,
-0.01519596017897129,
0.017849670723080635,
0.4252931773662567,
0.28941336274147034,
-0.026755571365356445,
0.035665594041347504,
-0.1030522957444191,
-0.02763381600379944,
0.4369133710861206,
0.45024174451828003,
-0.0880773514509201,
0.0422736257314682,
0.42867806553840637,
0.33602282404899597,
0.0045397402718663216,
-0.38617852330207825,
-0.19567450881004333,
-0.13963350653648376,
-0.12592670321464539,
-0.23163245618343353,
-0.08977726101875305,
-0.08556053042411804,
-0.16629722714424133,
-0.2277534455060959,
-0.4116142690181732,
0.0615379624068737,
-0.12466301769018173,
0.006956829223781824,
-0.2559818625450134,
0.5384839773178101,
0.08665606379508972,
-0.027461063116788864,
-0.23189455270767212,
0.4704699218273163,
0.24908216297626495,
-0.11127232015132904,
-0.10512011498212814,
0.5898385643959045,
0.559962809085846,
0.4387233853340149,
-0.2553030550479889,
-0.011218271218240261,
-0.020123949274420738,
-0.12639574706554413,
-0.3179320693016052,
0.1776319295167923,
0.24755971133708954,
0.08267819881439209,
0.16293352842330933,
-0.01251306850463152,
-0.12059915065765381,
0.22892539203166962,
0.16149817407131195,
-0.23850563168525696,
0.033243805170059204,
0.30799600481987,
-0.23527173697948456,
-0.19897937774658203,
0.04378488287329674,
-0.06363531202077866,
-0.4537608325481415,
-0.09030484408140182,
0.5740747451782227,
-0.3744279146194458,
0.010803865268826485,
-0.08257497847080231,
-0.01804252155125141,
-0.359626829624176,
0.665310263633728,
0.25633153319358826,
0.6802741885185242,
-0.246372789144516,
0.015094616450369358,
-0.3281953036785126,
0.3073233664035797,
-0.5743767023086548,
0.19132019579410553,
0.18576480448246002,
0.40290552377700806,
-0.07870294898748398,
0.07603868842124939,
0.13967466354370117,
0.2906520664691925,
-0.0944431871175766,
0.5938667058944702,
-0.2642400860786438,
0.018315041437745094,
0.013586481101810932,
0.032102037221193314,
-0.020035134628415108,
-0.4920801818370819,
0.2735617458820343,
-0.40485385060310364,
-0.06116030737757683,
0.0724634975194931,
0.09605520963668823,
0.3531213402748108,
0.3399715721607208,
0.5330661535263062,
-0.013852013275027275,
0.1522528976202011,
0.0977395549416542,
-0.033815834671258926,
-0.49071142077445984,
-0.023254884406924248,
-0.253542959690094,
0.16726864874362946,
0.11767908930778503,
0.35589662194252014,
-0.3410945534706116,
0.30615663528442383,
-0.0457979254424572,
-0.12813091278076172,
-0.018648391589522362,
0.28608325123786926,
-0.08825267851352692,
0.26836708188056946,
-0.5508416891098022,
0.09477432817220688,
0.03822005167603493,
-0.18668608367443085,
0.07874712347984314,
0.013466798700392246,
-0.21530064940452576,
-0.5623301267623901,
0.6698253750801086,
-0.3410622775554657,
-0.5061423182487488,
-0.11337584257125854,
0.04407762736082077,
0.22925198078155518,
-0.12405962496995926,
-0.2394167184829712,
0.03477919474244118,
0.35170406103134155,
0.16227087378501892,
-0.21053557097911835,
0.11080476641654968,
-0.1335240751504898,
-0.008062835782766342,
-0.19486567378044128,
0.2667160928249359,
-0.08929766714572906,
-0.23011940717697144,
-0.612136960029602,
-0.6397606134414673
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 42 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported. | [
-0.1500292867422104,
0.20671392977237701,
-0.04670111835002899,
0.2796335816383362,
0.44586944580078125,
-0.014902414754033089,
0.6093958020210266,
0.1298004388809204,
-0.32201865315437317,
0.19370655715465546,
0.2713230848312378,
0.31502142548561096,
-0.16626328229904175,
-0.13409149646759033,
0.28403985500335693,
-0.3528668284416199,
0.1987505406141281,
0.4137449562549591,
-0.02612832933664322,
0.05394215136766434,
-0.07697173953056335,
-0.180870920419693,
-0.2342819720506668,
0.150030255317688,
-0.48750966787338257,
0.01622004620730877,
-0.2609254717826843,
-0.08983994275331497,
-0.2083282619714737,
-0.6032205820083618,
0.25451937317848206,
0.039249662309885025,
0.025706300511956215,
0.2163894921541214,
-0.00011871290189446881,
0.07178955525159836,
0.523374080657959,
0.10011805593967438,
-0.3757018446922302,
-0.020712435245513916,
0.12989717721939087,
-0.4313426613807678,
0.2927471399307251,
-0.31186479330062866,
-0.04442749544978142,
-0.6730908155441284,
-0.005232833791524172,
-0.09253165870904922,
0.0851975828409195,
0.28676915168762207,
0.15314140915870667,
0.1496405303478241,
0.26104626059532166,
-0.21679280698299408,
0.5045078992843628,
0.308695912361145,
-0.2349267154932022,
-0.09653902798891068,
0.2660938799381256,
0.027071531862020493,
-0.08678416907787323,
-0.14111970365047455,
-0.049965888261795044,
0.2337394505739212,
0.3484751582145691,
0.3037255108356476,
0.2073805183172226,
-0.21040982007980347,
0.025628184899687767,
0.3553411662578583,
0.5374168753623962,
-0.21185320615768433,
-0.1425718516111374,
-0.15338429808616638,
0.007466102484613657,
-0.135996475815773,
-0.03676048293709755,
0.2109222710132599,
-0.30659788846969604,
-0.08608071506023407,
-0.27233409881591797,
0.1510215699672699,
-0.3894478678703308,
0.29657119512557983,
0.1956052929162979,
0.018336571753025055,
0.043338000774383545,
0.2343142032623291,
-0.019765568897128105,
-0.1694682240486145,
0.520833432674408,
-0.2911008894443512,
-0.02257598005235195,
0.12742400169372559,
0.047996580600738525,
0.159519225358963,
-0.07552366703748703,
-0.30948224663734436,
0.38649675250053406,
-0.05545131117105484,
0.13265004754066467,
0.04408176988363266,
0.3791761100292206,
0.02121124416589737,
-0.15554611384868622,
0.23365095257759094,
-0.128194198012352,
-0.08994093537330627,
0.0055326540023088455,
0.07010002434253693,
0.00222205207683146,
0.04704415425658226,
-0.2628854215145111,
-0.2715007960796356,
0.4232476055622101,
-0.09344058483839035,
0.26949718594551086,
0.18733347952365875,
0.027152210474014282,
0.03920566290616989,
-0.5091850161552429,
-0.1334913969039917,
-0.07821907848119736,
0.2353956699371338,
0.08063305914402008,
-0.08232056349515915,
-0.061626896262168884,
0.3054971396923065,
-0.11721351742744446,
-0.1475103795528412,
-0.23557525873184204,
0.016607185825705528,
-0.25145265460014343,
-0.02538800984621048,
0.1708402782678604,
0.22888532280921936,
0.14490018784999847,
-0.04703548550605774,
0.06509484350681305,
0.11351629346609116,
0.2895408570766449,
-0.010591586120426655,
0.13578790426254272,
0.19527526199817657,
-0.2065052092075348,
0.03022054210305214,
-0.012940163724124432,
-0.11328250914812088,
-0.17925801873207092,
0.38300248980522156,
0.018222933635115623,
-0.36638444662094116,
-0.2873323857784271,
0.09464311599731445,
-0.2151789665222168,
0.06138234958052635,
-0.07093917578458786,
0.17182615399360657,
0.2112199068069458,
0.1510828137397766,
0.06083020567893982,
-0.03335125371813774,
0.04179203882813454,
-0.44017133116722107,
0.21931886672973633,
0.13951389491558075,
-0.40588030219078064,
0.0554627887904644,
-0.163177490234375,
-0.06643987447023392,
-0.015645479783415794,
-0.024564048275351524,
-0.2742760181427002,
0.2772705852985382,
-0.19553759694099426,
0.22987504303455353,
0.5872291326522827,
0.16619913280010223,
-0.24383950233459473,
-0.036898281425237656,
0.0033267620019614697,
-0.16649453341960907,
0.22623880207538605,
0.16005147993564606,
-0.11714865267276764,
0.0681515783071518,
-0.17701900005340576,
0.30294886231422424,
-0.15429960191249847,
-0.1596275269985199,
-0.10558924078941345,
-0.399621844291687,
0.3469380736351013,
0.2101229727268219,
0.14834727346897125,
-0.11168435961008072,
-0.10295369476079941,
-0.3682795464992523,
0.11748342216014862,
-0.4526265263557434,
0.2587612569332123,
0.1318945586681366,
0.38440996408462524,
-0.15946678817272186,
0.09330569207668304,
-0.2613683342933655,
-0.6854187250137329,
0.298584908246994,
-0.24929630756378174,
0.17300549149513245,
-0.09013525396585464,
0.022700730711221695,
-0.09971322119235992,
0.16923582553863525,
-0.20327647030353546,
-0.0019785624463111162,
0.0679667666554451,
0.05060037225484848,
0.23363815248012543,
-0.19736474752426147,
-0.19059565663337708,
-0.3107888996601105,
-0.061224017292261124,
0.0008914410718716681,
-0.3421289622783661,
0.5485231876373291,
-0.017251912504434586,
-0.39673686027526855,
-0.35981857776641846,
0.07436612993478775,
-0.008519570343196392,
-0.04592840373516083,
-0.023859888315200806,
0.19298887252807617,
-0.013088390231132507,
-0.12980534136295319,
-0.4362170398235321,
0.10466521233320236,
0.03095715492963791,
-0.3927149772644043,
0.2777438759803772,
0.20701934397220612,
-0.03436994552612305,
-0.2954363226890564,
0.04061172157526016,
0.3032568395137787,
0.07001850754022598,
0.5143805742263794,
-0.06755685806274414,
0.017066704109311104,
0.024785924702882767,
0.21326380968093872,
-0.007307311519980431,
-0.11725351214408875,
-0.0014550323830917478,
0.23228508234024048,
0.2657838463783264,
0.013867422007024288,
-0.0900229662656784,
0.05861620604991913,
0.3243606686592102,
-0.08001481741666794,
0.05079280957579613,
0.08368521183729172,
-0.2945880889892578,
-0.019324181601405144,
0.21280881762504578,
-0.21050575375556946,
0.19794775545597076,
0.20746298134326935,
-0.048201169818639755,
0.11026991903781891,
-0.2756567597389221,
-0.1483098268508911,
0.23555918037891388,
0.14297914505004883,
0.5560606122016907,
0.02224814146757126,
0.2309233695268631,
-0.26265430450439453,
-0.2959457039833069,
-0.16685903072357178,
0.16685029864311218,
0.25694024562835693,
-0.3018985986709595,
-0.05855971947312355,
-0.14593948423862457,
-0.0343172512948513,
-0.03554047644138336,
-0.4733986556529999,
0.0393412709236145,
0.0014645810006186366,
-0.1478913426399231,
0.0221956018358469,
-0.11769720166921616,
0.25840434432029724,
0.048003021627664566,
-0.09063778817653656,
0.226075679063797,
-0.06722822040319443,
-0.13706755638122559,
-0.11124170571565628,
-0.16639301180839539,
0.023018285632133484,
0.30569982528686523,
0.06077421084046364,
-0.02557392604649067,
0.1304396539926529,
0.00861577782779932,
-0.37289637327194214,
-0.3643665015697479,
0.07001660019159317,
-0.09638530015945435,
0.3734642267227173,
0.48468348383903503,
0.03400881215929985,
0.0707845464348793,
-0.2421431839466095,
0.47717827558517456,
-0.0035101824905723333,
-0.27951526641845703,
0.3224964141845703,
-0.2145094871520996,
0.043125126510858536,
-0.08843868225812912,
-0.20025090873241425,
0.04335448145866394,
-0.3384428918361664,
0.21440862119197845,
0.3770567774772644,
0.21819138526916504,
0.24025492370128632,
0.48269549012184143,
0.384685754776001,
-0.026259368285536766,
0.07251252979040146,
0.19789884984493256,
0.25198739767074585,
0.34460926055908203,
-0.06192585080862045,
-0.20835641026496887,
-0.08896654844284058,
-0.7822168469429016,
0.06586381793022156,
0.33430421352386475,
-0.132839173078537,
-0.13301073014736176,
-0.309155136346817,
0.3684866726398468,
-0.05663643777370453,
0.14051513373851776,
0.37806493043899536,
0.17087170481681824,
-0.0217633917927742,
-0.08045964688062668,
-0.11399941891431808,
0.3861762583255768,
0.09082307666540146,
-0.07788687199354172,
-0.007912646047770977,
0.4225042164325714,
-0.1440059244632721,
0.6777369976043701,
0.098717600107193,
-0.2711268663406372,
0.2037225067615509,
-0.2157239019870758,
0.004897015634924173,
-0.25059354305267334,
0.026511522009968758,
-0.12178420275449753,
0.08886311203241348,
-0.15233349800109863,
-0.019150959327816963,
-0.03637315705418587,
-0.31887632608413696,
0.12181337177753448,
0.1965562403202057,
-0.06244029104709625,
-0.03971751406788826,
0.13161496818065643,
-0.030844274908304214,
0.10222575813531876,
-0.09183595329523087,
0.10500025004148483,
-0.2875980734825134,
-0.07567910850048065,
-0.19088783860206604,
-0.42048168182373047,
0.12403572350740433,
-0.05752703920006752,
-0.3283359110355377,
0.13981309533119202,
-0.08856583386659622,
0.1524427980184555,
0.3744049668312073,
-0.10428770631551743,
0.1758558750152588,
-0.14145901799201965,
0.15694782137870789,
-0.15479424595832825,
0.6634988188743591,
-0.17584027349948883,
-0.2710132896900177,
0.5152448415756226,
0.14071358740329742,
-0.5415211915969849,
-0.21296849846839905,
-0.2095397263765335,
0.24580897390842438,
-0.2725166380405426,
0.1520119458436966,
-0.4102877676486969,
-0.03270117938518524,
0.37731286883354187,
0.3596920967102051,
-0.032730069011449814,
-0.09448465704917908,
-0.22166116535663605,
-0.3411523103713989,
-0.0681903138756752,
-0.1154121458530426,
-0.07278836518526077,
0.31528958678245544,
0.12360990792512894,
-0.39715781807899475,
-0.37359553575515747,
-0.04002410173416138,
-0.172128364443779,
-0.010451707988977432,
0.4588952958583832,
-0.23808586597442627,
0.16494637727737427,
-0.2397785782814026,
0.0009236831683665514,
0.26487112045288086,
0.19213174283504486,
0.11757863312959671,
-0.06437969952821732,
0.10528814792633057,
-0.05726216733455658,
0.4494801163673401,
0.25927603244781494,
-0.05408521369099617,
0.05743073299527168,
0.1639578640460968,
0.1375255584716797,
-0.12498541921377182,
-0.026866087689995766,
0.41337016224861145,
-0.33084988594055176,
-0.18988598883152008,
-0.3715834617614746,
0.6200919151306152,
0.041490476578474045,
0.15148736536502838,
0.35556697845458984,
0.3764851987361908,
-0.24240735173225403,
0.31652864813804626,
0.544649064540863,
0.9667250514030457,
-0.12890444695949554,
0.21344421803951263,
0.6495651602745056,
0.00296497019007802,
0.2828018069267273,
0.25408464670181274,
0.22778376936912537,
-0.5002314448356628,
-0.033999618142843246,
-0.006580263376235962,
-0.3927590847015381,
0.2069500982761383,
0.21497873961925507,
-0.18650273978710175,
-0.0012378795072436333,
-0.2182621955871582,
0.4358299672603607,
0.10367482900619507,
0.03440634906291962,
-0.21346822381019592,
-0.11787767708301544,
-0.07300416380167007,
0.08956769108772278,
0.005827740766108036,
-0.4381958842277527,
-0.11544889211654663,
-0.10171577334403992,
-0.1978420466184616,
-0.01352783851325512,
-0.12549370527267456,
-0.023903420194983482,
-0.3495715260505676,
0.0696779191493988,
0.37010931968688965,
-0.5165640115737915,
0.020865818485617638,
0.1090419813990593,
0.05728735402226448,
-0.1402059942483902,
-0.09696947783231735,
0.026019511744379997,
0.2428458034992218,
-0.18427416682243347,
-0.013058718293905258,
-0.3214937150478363,
0.26306095719337463,
0.032830528914928436,
-0.20511916279792786,
0.022954028099775314,
-0.13531248271465302,
-0.16925503313541412,
-0.17502401769161224,
-0.05511503294110298,
0.24795158207416534,
-0.25306934118270874,
-0.1780582219362259,
-0.081589475274086,
-0.14631733298301697,
-0.1738772988319397,
0.06660261005163193,
0.11702580749988556,
-0.14107447862625122,
0.0025063762441277504,
0.1300414651632309,
0.023549528792500496,
-0.07092239707708359,
0.020519685000181198,
0.5894395709037781,
0.291307270526886,
0.4302317202091217,
0.309469610452652,
-0.04679367318749428,
-0.17819438874721527,
0.003834771690890193,
0.6479731798171997,
-0.541528046131134,
0.22304558753967285,
0.1170605793595314,
-0.20200233161449432,
-0.1218762993812561,
0.4708724915981293,
-0.11451586335897446,
0.28162676095962524,
-0.18627797067165375,
0.1173037588596344,
-0.47316160798072815,
0.290572851896286,
0.222040593624115,
0.42584070563316345,
-0.26733002066612244,
-0.16887721419334412,
-0.005042538978159428,
-0.019114887341856956,
-0.2316870391368866,
0.07894869893789291,
0.02793084643781185,
0.06788415461778641,
-0.5748075246810913,
-0.10592719167470932,
0.13177168369293213,
0.08111818879842758,
0.10176641494035721,
0.0013395778369158506,
-0.38815703988075256,
-0.15802516043186188,
-0.002090522088110447,
0.15583179891109467,
0.058741748332977295,
-0.1748424917459488,
0.20193150639533997,
-0.13838055729866028,
-0.25600358843803406,
-0.2296721488237381,
0.038931913673877716,
-0.02139168791472912,
-0.2181999832391739,
-0.18092618882656097,
0.38344088196754456,
-0.025435447692871094,
-0.31178852915763855,
0.026956258341670036,
-0.2520405948162079,
0.2981007993221283,
0.11875373870134354,
0.07039462774991989,
0.12290504574775696,
-0.05840712785720825,
-0.07515304535627365,
0.19653037190437317,
0.04046474024653435,
-0.27315738797187805,
0.25903308391571045,
-0.43747177720069885,
-0.3664400279521942,
-0.22709323465824127,
0.4581241309642792,
0.32349565625190735,
-0.1110689640045166,
0.07360711693763733,
0.15905071794986725,
0.1698397994041443,
-0.22207026183605194,
0.04900205135345459,
0.21036729216575623,
-0.11934681981801987,
0.18067492544651031,
0.3013380765914917,
0.0832025483250618,
-0.0033887322060763836,
-0.10545409470796585,
0.11712831258773804,
-0.022933145985007286,
0.02528264932334423,
0.083405502140522,
0.4652063846588135,
-0.10984417796134949,
-0.051816247403621674,
0.38788312673568726,
-0.019609244540333748,
0.22277668118476868,
0.007995901629328728,
-0.08504218608140945,
0.41476112604141235,
0.086929090321064,
-0.05177526921033859,
0.1325204074382782,
-0.029311878606677055,
0.11169876158237457,
0.2715785503387451,
0.38338592648506165,
-0.12040761858224869,
-0.026783645153045654,
0.6152064204216003,
0.22237244248390198,
-0.04603717103600502,
-0.4197400212287903,
-0.1864476352930069,
-0.14554953575134277,
-0.03401144593954086,
-0.08270564675331116,
-0.12813006341457367,
-0.235988587141037,
-0.15408556163311005,
-0.16394388675689697,
-0.45097362995147705,
0.25125688314437866,
-0.0805562436580658,
0.06922578066587448,
-0.2903127372264862,
0.7235401272773743,
0.18264847993850708,
0.015535677783191204,
-0.13641592860221863,
0.4172534942626953,
0.3453894257545471,
-0.1296580731868744,
-0.18104228377342224,
0.4945090115070343,
0.3849450945854187,
0.423895925283432,
-0.41109195351600647,
-0.032410673797130585,
0.005664846394211054,
-0.21467278897762299,
-0.05592840164899826,
0.05933929234743118,
0.23705697059631348,
0.18803910911083221,
0.1770806610584259,
0.07763747125864029,
-0.1500835120677948,
0.10098173469305038,
0.25142860412597656,
-0.03579626604914665,
-0.2235604226589203,
0.21573087573051453,
-0.22515201568603516,
-0.22059708833694458,
0.05898197367787361,
-0.0766526311635971,
-0.47136932611465454,
-0.14397455751895905,
0.41794291138648987,
-0.1683092713356018,
-0.00664603291079402,
-0.07099444419145584,
0.04235736280679703,
-0.2739173471927643,
0.48608681559562683,
0.010111096315085888,
0.583724319934845,
-0.2782610356807709,
-0.10448777675628662,
-0.39047184586524963,
0.3186706602573395,
-0.5196859240531921,
0.10719448328018188,
0.2680417597293854,
0.3691578805446625,
-0.07570106536149979,
0.11052575707435608,
0.1447153240442276,
0.17749571800231934,
0.00622566370293498,
0.42663925886154175,
-0.3925252854824066,
-0.010361582972109318,
0.2564425468444824,
0.007643695920705795,
-0.08664146065711975,
-0.3860510587692261,
0.16128796339035034,
-0.34793752431869507,
-0.018234649673104286,
0.17642495036125183,
0.1481558382511139,
0.24859163165092468,
0.22585956752300262,
0.5414072871208191,
-0.057941678911447525,
0.15316900610923767,
0.24250145256519318,
-0.15872129797935486,
-0.3644287586212158,
-0.17784199118614197,
-0.1589810997247696,
0.24178573489189148,
0.07554660737514496,
0.43354371190071106,
-0.2603597939014435,
0.2352059930562973,
-0.16380387544631958,
-0.001934931380674243,
0.0276692695915699,
0.24005918204784393,
-0.13745686411857605,
0.40335723757743835,
-0.6006198525428772,
0.09105958789587021,
-0.02164255455136299,
-0.16584523022174835,
0.0927807092666626,
0.056538864970207214,
-0.2232377678155899,
-0.45278218388557434,
0.6323028802871704,
-0.3164665997028351,
-0.48032423853874207,
0.025567928329110146,
-0.010819584131240845,
0.3791213035583496,
-0.11545491218566895,
-0.3446509540081024,
-0.09048231691122055,
0.39343491196632385,
0.0028523646760731936,
-0.10306030511856079,
0.11040180176496506,
0.05311798304319382,
0.07314290851354599,
-0.1679360270500183,
0.24423369765281677,
-0.19231684505939484,
-0.1297086775302887,
-0.3842494487762451,
-0.5637403130531311
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Hi @lhoestq,
Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays?
e.g.:
`datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))`
`Array3D(shape=(None, 137, 2), dtype="float32")` | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 29 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi @lhoestq,
Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays?
e.g.:
`datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))`
`Array3D(shape=(None, 137, 2), dtype="float32")` | [
-0.2084440290927887,
0.003985189832746983,
-0.09013105183839798,
0.04117843881249428,
0.3527285158634186,
-0.03630052134394646,
0.618253231048584,
0.09212662279605865,
-0.19569189846515656,
0.19286686182022095,
0.24202658236026764,
0.04752204939723015,
-0.27965620160102844,
0.04918176680803299,
0.242654949426651,
-0.3445933759212494,
0.21767409145832062,
0.4056481420993805,
0.1302119642496109,
0.016045326367020607,
-0.15405648946762085,
-0.1357140839099884,
-0.31794917583465576,
0.2507111430168152,
-0.1650809794664383,
-0.006374744698405266,
-0.2581348121166229,
-0.11908292025327682,
-0.09530196338891983,
-0.4796812832355499,
0.4352332353591919,
0.10036619007587433,
0.21723298728466034,
0.17358340322971344,
-0.0001256443210877478,
-0.015191113576292992,
0.4540734887123108,
0.005307132378220558,
-0.22720107436180115,
0.10617414116859436,
0.05165218561887741,
-0.42385539412498474,
0.16830618679523468,
-0.3253708779811859,
0.09302534908056259,
-1.0158859491348267,
0.03741786256432533,
-0.16508103907108307,
-0.004754934459924698,
-0.02511654794216156,
0.0971730649471283,
0.11753503233194351,
0.5744317173957825,
-0.05445721372961998,
0.40389183163642883,
0.33943942189216614,
-0.2964440882205963,
0.0017572306096553802,
0.6183673739433289,
0.1803756207227707,
0.16332514584064484,
-0.30200353264808655,
-0.1555912047624588,
0.1084759384393692,
0.36687660217285156,
0.09007130563259125,
0.2777220904827118,
-0.19633632898330688,
-0.10393305122852325,
0.3525257110595703,
0.4946058690547943,
-0.20986580848693848,
-0.24756667017936707,
-0.2931711673736572,
0.006206214893609285,
-0.0968708023428917,
-0.16348019242286682,
0.1315521001815796,
-0.2634223997592926,
-0.03815872222185135,
-0.24934136867523193,
0.027852201834321022,
-0.47914859652519226,
0.3923698365688324,
0.18320900201797485,
0.31687676906585693,
0.07805418223142624,
0.2102218121290207,
-0.1305960714817047,
-0.4713120758533478,
0.5399208068847656,
-0.19467370212078094,
-0.03934759274125099,
0.1770697683095932,
-0.010968384332954884,
0.038232482969760895,
-0.14360913634300232,
-0.39140236377716064,
0.32965177297592163,
-0.13473951816558838,
0.2233514040708542,
0.003693300299346447,
0.2935331463813782,
0.13097065687179565,
-0.11200296878814697,
0.4439811408519745,
-0.005044306628406048,
-0.2573389708995819,
-0.10001370310783386,
0.017674880102276802,
0.14946313202381134,
0.11855514347553253,
-0.38859063386917114,
-0.06656115502119064,
0.21357207000255585,
-0.00729576637968421,
0.11256330460309982,
0.3052562177181244,
0.08393712341785431,
-0.08253395557403564,
-0.544491171836853,
-0.19525527954101562,
-0.0342567153275013,
0.11300252377986908,
0.13208138942718506,
0.06446272879838943,
-0.09580996632575989,
0.33587726950645447,
0.0190794225782156,
-0.027425318956375122,
-0.04928876832127571,
-0.07435791194438934,
-0.16969801485538483,
-0.20901061594486237,
-0.07422716170549393,
0.2425680160522461,
0.023055704310536385,
-0.2454908788204193,
0.2963341474533081,
0.25895971059799194,
-0.10091491043567657,
0.17459015548229218,
0.13552400469779968,
0.08654186874628067,
-0.12460882216691971,
-0.14219318330287933,
-0.15301872789859772,
0.06598371267318726,
-0.2035205364227295,
0.45758935809135437,
0.034964676946401596,
-0.2632191479206085,
-0.5190049409866333,
0.06348114460706711,
-0.21896368265151978,
-0.05992140620946884,
-0.013462858274579048,
0.15403887629508972,
0.246514692902565,
-0.0262612234801054,
0.07057502120733261,
-0.10210228711366653,
0.10381824523210526,
-0.37536925077438354,
0.055006999522447586,
-0.19843558967113495,
-0.4159473776817322,
0.052062179893255234,
0.036230772733688354,
0.017668798565864563,
-0.24960988759994507,
-0.1657964587211609,
-0.13680489361286163,
0.1306779831647873,
-0.14763274788856506,
0.15542662143707275,
0.4196244776248932,
0.06593408435583115,
0.026213567703962326,
0.14706909656524658,
0.10740522295236588,
-0.20007307827472687,
0.2734329104423523,
0.05881022661924362,
0.023161066696047783,
-0.06642157584428787,
-0.36638516187667847,
0.2728358209133148,
-0.10102862119674683,
-0.2770082950592041,
0.034904517233371735,
-0.5597995519638062,
0.30229732394218445,
0.2005215287208557,
0.10874366015195847,
0.005318715702742338,
0.0642160028219223,
-0.34755685925483704,
0.3698146939277649,
-0.4612921476364136,
0.2046327292919159,
-0.04516220837831497,
0.33030635118484497,
-0.17539484798908234,
0.1733090877532959,
-0.31765854358673096,
-0.767121434211731,
0.24276338517665863,
-0.30014845728874207,
-0.0834675058722496,
0.14649146795272827,
0.03407156839966774,
-0.12144289910793304,
0.17298179864883423,
-0.22080206871032715,
0.08931197226047516,
-0.03169099614024162,
-0.06866317987442017,
0.16656725108623505,
-0.25477898120880127,
-0.211660698056221,
-0.4258860647678375,
0.01525865774601698,
-0.04175727441906929,
-0.5153883099555969,
0.35710248351097107,
0.1193012148141861,
-0.37394946813583374,
-0.3116867244243622,
0.2690059542655945,
-0.1038859635591507,
-0.20808784663677216,
-0.11685233563184738,
0.26875823736190796,
-0.10845765471458435,
0.014357324689626694,
-0.5090366005897522,
0.12129716575145721,
-0.0007316144183278084,
-0.31149864196777344,
0.44524091482162476,
0.18804210424423218,
0.007421133574098349,
-0.3056252896785736,
0.2982734441757202,
0.410292387008667,
0.13030117750167847,
0.4531943202018738,
-0.13913314044475555,
-0.014308477751910686,
-0.07552850991487503,
0.2140805721282959,
0.049323905259370804,
-0.1115582212805748,
-0.11174087226390839,
0.2841147482395172,
0.11762028187513351,
-0.09520157426595688,
-0.1254860758781433,
0.15263782441616058,
0.17837676405906677,
-0.08802793174982071,
0.06175955757498741,
0.15660825371742249,
-0.1742016077041626,
0.12631212174892426,
0.16004277765750885,
0.05948903039097786,
0.17689523100852966,
0.1391759067773819,
-0.22937361896038055,
0.053116776049137115,
-0.1666702777147293,
-0.15808196365833282,
0.2809896767139435,
0.05688377469778061,
0.477367103099823,
0.10187385976314545,
0.2846912741661072,
-0.20708896219730377,
-0.1774289757013321,
-0.14155708253383636,
-0.0324726365506649,
0.0808199942111969,
-0.14079488813877106,
0.04415825754404068,
-0.14672192931175232,
-0.19752472639083862,
0.0022289359476417303,
-0.6770454049110413,
0.013373554684221745,
-0.023939143866300583,
-0.10550310462713242,
0.023071158677339554,
-0.08057678490877151,
0.2785804569721222,
-0.07870782911777496,
-0.128610298037529,
0.2623373568058014,
-0.1532336175441742,
-0.14769023656845093,
0.014616725035011768,
-0.09394200146198273,
-0.0071483817882835865,
0.18498075008392334,
-0.06405148655176163,
-0.13560138642787933,
0.23879308998584747,
0.15102732181549072,
-0.1945214867591858,
-0.3252479135990143,
-0.028423020616173744,
-0.06775373965501785,
0.2654830515384674,
0.4885599911212921,
-0.17511774599552155,
0.14044980704784393,
-0.32837623357772827,
0.32279935479164124,
-0.1191449984908104,
-0.24913325905799866,
0.17542079091072083,
-0.18403761088848114,
0.010526495054364204,
-0.1025371178984642,
0.08856222778558731,
-0.19600287079811096,
-0.24939975142478943,
0.20907063782215118,
0.46572211384773254,
0.2165713757276535,
0.29885122179985046,
0.45659080147743225,
0.21074731647968292,
-0.009106124751269817,
-0.11954167485237122,
0.32863718271255493,
0.23012319207191467,
0.43041232228279114,
-0.003096747910603881,
-0.1493748128414154,
-0.12614722549915314,
-0.8431602120399475,
0.1197352483868599,
0.377520889043808,
0.16663600504398346,
-0.10065700113773346,
-0.18611125648021698,
0.13863837718963623,
0.0683850347995758,
0.034507542848587036,
0.3450479507446289,
0.08374607563018799,
0.0808110237121582,
-0.20812703669071198,
-0.06666022539138794,
0.38704973459243774,
0.20042845606803894,
-0.005589442327618599,
0.2823004424571991,
0.303477942943573,
-0.1905016154050827,
0.6329154372215271,
-0.06740871071815491,
-0.3457587659358978,
0.26884832978248596,
-0.1577969193458557,
-0.1502290666103363,
-0.11617786437273026,
-0.2045215517282486,
-0.07198655605316162,
0.03572826832532883,
-0.21120008826255798,
-0.07226186990737915,
-0.04872726649045944,
-0.3421907424926758,
0.12180464714765549,
0.3561461567878723,
0.04759969934821129,
0.11592253297567368,
-0.06617584824562073,
-0.056389715522527695,
0.2670342028141022,
-0.10155891627073288,
0.11031153798103333,
-0.3185112476348877,
-0.20994296669960022,
-0.30180805921554565,
-0.3100987374782562,
0.23420462012290955,
-0.051537975668907166,
-0.27448979020118713,
-0.03468741104006767,
0.06658114492893219,
0.2780245244503021,
0.5870445966720581,
0.1450057178735733,
0.16731837391853333,
-0.030436700209975243,
0.13689523935317993,
-0.05560729652643204,
0.38127240538597107,
-0.0937616229057312,
-0.22236840426921844,
0.5127316117286682,
0.0989438071846962,
-0.4337403476238251,
-0.21741609275341034,
-0.020359037443995476,
-0.09682847559452057,
-0.25932303071022034,
0.0813821405172348,
-0.2699008584022522,
-0.014940464869141579,
0.3794329762458801,
0.1416914016008377,
-0.07761276513338089,
-0.22966589033603668,
-0.15840105712413788,
-0.08758901059627533,
-0.16140159964561462,
-0.2980894148349762,
-0.09822047501802444,
0.35844624042510986,
0.11973944306373596,
-0.41499119997024536,
-0.3605045974254608,
-0.12431290745735168,
-0.163224995136261,
-0.021390050649642944,
0.37610235810279846,
-0.20708386600017548,
0.04706361144781113,
-0.2696407437324524,
-0.058536287397146225,
0.22214576601982117,
-0.04877210780978203,
0.15636326372623444,
0.13894928991794586,
0.04723266884684563,
-0.04505569115281105,
0.557508111000061,
0.1805845946073532,
-0.15623649954795837,
0.1604667454957962,
0.05011144280433655,
0.11212994158267975,
-0.15791213512420654,
-0.30097639560699463,
0.5219438672065735,
-0.4097985327243805,
0.07912174612283707,
-0.33418694138526917,
0.5171595811843872,
-0.06430421769618988,
0.20471224188804626,
0.33436885476112366,
0.2912308871746063,
-0.19842010736465454,
0.16402220726013184,
0.6330121755599976,
0.8277633786201477,
0.14018964767456055,
0.14104658365249634,
0.7423071265220642,
-0.044788479804992676,
-0.09040272980928421,
0.5768281817436218,
0.11317112296819687,
-0.48755425214767456,
0.10666538774967194,
-0.20292462408542633,
-0.3054341971874237,
0.23310670256614685,
0.151863694190979,
-0.12394539266824722,
-0.021685410290956497,
-0.09885021299123764,
0.4097417891025543,
0.26679420471191406,
-0.010626748204231262,
-0.27631065249443054,
-0.16566120088100433,
-0.11895660310983658,
-0.006522221490740776,
0.05288076028227806,
-0.5251214504241943,
-0.15814347565174103,
-0.3651215136051178,
0.008471415378153324,
-0.02220822498202324,
-0.1836150735616684,
-0.028426341712474823,
-0.22587235271930695,
0.04506264254450798,
0.4800753891468048,
-0.5878508687019348,
0.19174867868423462,
0.15929602086544037,
-0.015609209425747395,
-0.34682902693748474,
-0.11093246936798096,
-0.06943223625421524,
0.17533044517040253,
-0.1501409262418747,
-0.20986627042293549,
-0.3819771409034729,
0.3388650119304657,
0.0652790516614914,
-0.1567867398262024,
-0.0076094260439276695,
-0.04682926461100578,
-0.1408231407403946,
-0.253926545381546,
-0.03923817351460457,
0.2380223423242569,
-0.2631184458732605,
-0.11700021475553513,
-0.23327095806598663,
-0.06059585139155388,
-0.12054271250963211,
-0.029440855607390404,
0.17767876386642456,
0.0005446625873446465,
0.013040189631283283,
0.18196964263916016,
0.15438109636306763,
-0.041155070066452026,
-0.06017583981156349,
0.5626729130744934,
0.1886487901210785,
0.3105584681034088,
0.2667617201805115,
0.02613549306988716,
-0.09321107715368271,
0.2646549344062805,
0.43704500794410706,
-0.5262249708175659,
0.17177578806877136,
0.11614760756492615,
-0.142719104886055,
-0.0936780720949173,
0.3504406213760376,
-0.06581533700227737,
0.3271067142486572,
-0.1283331960439682,
-0.053062379360198975,
-0.2728983461856842,
0.34119752049446106,
-0.04207742586731911,
0.30024781823158264,
-0.2621001601219177,
-0.036826811730861664,
0.056318435817956924,
-0.03351263329386711,
-0.143936425447464,
0.0840524286031723,
0.24232055246829987,
-0.1925824135541916,
-0.47767308354377747,
-0.0777851939201355,
0.08311446011066437,
0.15272843837738037,
-0.0344700887799263,
0.005704363342374563,
-0.5085964202880859,
-0.011931011453270912,
-0.03745414316654205,
0.20353807508945465,
0.1438116878271103,
-0.1473114937543869,
0.12347257137298584,
-0.021133525297045708,
-0.3804354965686798,
-0.10492589324712753,
-0.12080639600753784,
-0.17150625586509705,
-0.11652868986129761,
-0.093229278922081,
0.3691176474094391,
0.13298751413822174,
-0.2661270201206207,
0.08691398799419403,
-0.17108668386936188,
0.2644999027252197,
0.14528699219226837,
0.0637354850769043,
0.0402693934738636,
-0.11367002129554749,
-0.12270207703113556,
0.2589554190635681,
0.01260440144687891,
-0.26052555441856384,
0.5132203102111816,
-0.3607143759727478,
-0.31772899627685547,
-0.24661609530448914,
0.60394287109375,
0.22002199292182922,
-0.10873526334762573,
0.042289383709430695,
0.05186206102371216,
0.05429550260305405,
-0.2933724522590637,
0.0083418944850564,
0.36200568079948425,
0.16836506128311157,
0.07968413084745407,
0.3961845338344574,
0.30503496527671814,
-0.0819176733493805,
0.07811543345451355,
0.15114538371562958,
-0.03421725705265999,
0.022941265255212784,
0.02214156463742256,
0.6143955588340759,
-0.09793199598789215,
0.07841237634420395,
0.416504442691803,
0.09844207018613815,
0.4063202440738678,
0.24997088313102722,
0.01536963414400816,
0.44569361209869385,
0.42482152581214905,
-0.07881082594394684,
0.2008180171251297,
-0.04261524975299835,
0.015702873468399048,
0.14235711097717285,
0.49357089400291443,
-0.0558745302259922,
0.11260078102350235,
0.7638302445411682,
0.12660321593284607,
0.08974850177764893,
-0.29803022742271423,
-0.13839435577392578,
0.03867834806442261,
-0.041729316115379333,
-0.058402299880981445,
-0.08549123257398605,
-0.33344319462776184,
-0.36532387137413025,
-0.18933111429214478,
-0.3462080657482147,
0.12358307093381882,
-0.2630022466182709,
0.15517890453338623,
-0.44779205322265625,
0.6662035584449768,
0.20661737024784088,
0.0486719086766243,
-0.08896296471357346,
0.44108808040618896,
0.3619864583015442,
0.06269469112157822,
-0.14304302632808685,
0.5823982954025269,
0.3293173909187317,
0.35081955790519714,
-0.3735729157924652,
-0.10254628211259842,
-0.13755367696285248,
-0.18386857211589813,
0.12467682361602783,
0.19955742359161377,
0.0957779586315155,
0.2726631462574005,
0.24631576240062714,
-0.0009986396180465817,
-0.01735198125243187,
0.17821523547172546,
0.335332989692688,
-0.10916081070899963,
-0.24788567423820496,
0.22198271751403809,
-0.3379707634449005,
-0.06725127249956131,
0.09293243288993835,
-0.002986062550917268,
-0.4135436415672302,
-0.017029685899615288,
0.2774393856525421,
-0.200198695063591,
-0.05128736048936844,
0.003204755252227187,
-0.014380562119185925,
-0.2667314112186432,
0.5101760625839233,
0.059889938682317734,
0.4724583327770233,
0.02097497321665287,
-0.13032275438308716,
-0.35636112093925476,
0.37548840045928955,
-0.21779002249240875,
0.09494267404079437,
0.33243557810783386,
0.14966052770614624,
0.032975807785987854,
-0.029118934646248817,
0.26205989718437195,
0.2070946842432022,
-0.02502834051847458,
0.4323693513870239,
-0.3074163794517517,
0.0020207378547638655,
0.3492791950702667,
0.06567908823490143,
-0.14663326740264893,
-0.2338235229253769,
0.19582949578762054,
-0.4173712730407715,
-0.11056884378194809,
0.16052110493183136,
0.021884001791477203,
0.10339689254760742,
0.06608182191848755,
0.43181923031806946,
-0.01042904332280159,
0.13003450632095337,
0.2182445079088211,
-0.06761039793491364,
-0.2745562791824341,
-0.20899760723114014,
-0.12324250489473343,
0.2718925476074219,
0.1555337905883789,
0.4557086229324341,
-0.25167539715766907,
0.21506905555725098,
-0.06576579809188843,
-0.04976772889494896,
0.0068625351414084435,
0.1790616363286972,
-0.2423691302537918,
0.5438677668571472,
-0.5492841601371765,
-0.07794477045536041,
0.1637868583202362,
-0.25485315918922424,
0.05688435584306717,
0.2144898623228073,
-0.13880927860736847,
-0.4605128765106201,
0.5378773808479309,
0.05517760291695595,
-0.47425466775894165,
0.07901641726493835,
-0.18475627899169922,
0.3659098446369171,
-0.09476912021636963,
-0.24039843678474426,
-0.03663906827569008,
0.3571832776069641,
0.07307500392198563,
0.18862655758857727,
0.09951671212911606,
0.10057517141103745,
-0.10191222280263901,
-0.21682614088058472,
-0.01443869061768055,
-0.07122914493083954,
-0.07717978954315186,
-0.3374575078487396,
-0.42070117592811584
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 38 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point. | [
-0.09873039275407791,
0.21576887369155884,
-0.036189738661050797,
0.1980811357498169,
0.3335244655609131,
-0.01481380220502615,
0.6729154586791992,
0.09411292523145676,
-0.2653336226940155,
0.19205231964588165,
0.3300935924053192,
0.28478512167930603,
-0.18515832722187042,
-0.0952649712562561,
0.2423304170370102,
-0.39009255170822144,
0.17594103515148163,
0.4636605978012085,
0.08268792927265167,
0.05195630341768265,
-0.0520087331533432,
-0.13845162093639374,
-0.24438753724098206,
0.29183146357536316,
-0.3977595269680023,
-0.007421582471579313,
-0.26254165172576904,
-0.22839517891407013,
-0.1936282068490982,
-0.5090430378913879,
0.31470853090286255,
-0.0006439865683205426,
0.11578904092311859,
0.22048455476760864,
-0.00012111614341847599,
0.0560128428041935,
0.49807313084602356,
0.056340642273426056,
-0.26768195629119873,
-0.126644566655159,
0.09791789948940277,
-0.3960364758968353,
0.24923865497112274,
-0.3438534736633301,
-0.03365839272737503,
-0.8026290535926819,
0.019317297264933586,
0.022197332233190536,
0.07842421531677246,
0.25141575932502747,
0.13479821383953094,
0.13277003169059753,
0.29146939516067505,
-0.19927720725536346,
0.4904192090034485,
0.3490455150604248,
-0.27305901050567627,
-0.08437911421060562,
0.3083590567111969,
0.049719274044036865,
-0.019599316641688347,
-0.20243582129478455,
-0.06918805092573166,
0.152765154838562,
0.3510463535785675,
0.30431079864501953,
0.3325361907482147,
-0.2280716598033905,
-0.040341317653656006,
0.42991921305656433,
0.5088961124420166,
-0.157527357339859,
-0.17081137001514435,
-0.12800636887550354,
0.08625270426273346,
-0.09454693645238876,
-0.062421854585409164,
0.23521187901496887,
-0.28722527623176575,
-0.07062063366174698,
-0.19196546077728271,
0.16250701248645782,
-0.45091602206230164,
0.36065447330474854,
0.2118665724992752,
0.08092239499092102,
-0.011420248076319695,
0.22497843205928802,
-0.09353529661893845,
-0.229249507188797,
0.5371078252792358,
-0.3507048785686493,
0.037439413368701935,
0.2259349226951599,
0.11728151142597198,
0.1355794072151184,
-0.10685229301452637,
-0.23853081464767456,
0.4191494882106781,
-0.004982719197869301,
0.1828819066286087,
-0.06394469738006592,
0.30011314153671265,
0.10840187221765518,
-0.19019237160682678,
0.20923863351345062,
-0.020875297486782074,
-0.11744606494903564,
-0.07927383482456207,
0.16554030776023865,
0.04669056087732315,
0.06182238832116127,
-0.276974618434906,
-0.28441038727760315,
0.410666286945343,
-0.07095629721879959,
0.2312156707048416,
0.2673475742340088,
0.09081090986728668,
0.02942994423210621,
-0.5808674097061157,
-0.14972251653671265,
-0.025486337020993233,
0.2121630311012268,
0.09223011136054993,
-0.1061178520321846,
-0.14199316501617432,
0.405183345079422,
0.022859321907162666,
-0.09561401605606079,
-0.19982066750526428,
0.007037464063614607,
-0.20481495559215546,
-0.058982003480196,
0.10277550667524338,
0.1123303547501564,
0.12614135444164276,
-0.010921471752226353,
0.05620674788951874,
0.10105030238628387,
0.23483285307884216,
0.049926143139600754,
0.17283889651298523,
0.1402011215686798,
-0.18908998370170593,
-0.06464620679616928,
-0.03354731947183609,
-0.1814265102148056,
-0.2189384400844574,
0.37103691697120667,
-0.0744902566075325,
-0.2519071698188782,
-0.4225299656391144,
0.09550783038139343,
-0.27651458978652954,
0.06513502448797226,
-0.05947050452232361,
0.07526101917028427,
0.23037303984165192,
0.06284421682357788,
0.0401090644299984,
-0.031094804406166077,
0.2473573386669159,
-0.3945891559123993,
0.18736091256141663,
-0.001576741342432797,
-0.31778717041015625,
-0.018428724259138107,
-0.14738421142101288,
-0.04978601261973381,
-0.0766056478023529,
-0.0850059986114502,
-0.2564002573490143,
0.27506113052368164,
-0.22004513442516327,
0.26535359025001526,
0.6616533994674683,
0.2300475537776947,
-0.027522340416908264,
0.009354246780276299,
0.020385336130857468,
-0.16925473511219025,
0.20736576616764069,
0.0774761512875557,
-0.16636158525943756,
-0.037583108991384506,
-0.31474268436431885,
0.22843408584594727,
-0.17251800000667572,
-0.23746336996555328,
-0.0014492761110886931,
-0.3701041638851166,
0.43195149302482605,
0.13115783035755157,
0.07571227103471756,
-0.025697028264403343,
-0.059315308928489685,
-0.42420175671577454,
0.06177603825926781,
-0.47538572549819946,
0.23887278139591217,
0.09565364569425583,
0.3680790662765503,
-0.1174955740571022,
0.10337281972169876,
-0.19879885017871857,
-0.6633156538009644,
0.14799396693706512,
-0.326946496963501,
0.06849699467420578,
-0.10351590067148209,
-0.012729005888104439,
-0.11671704053878784,
0.1993882954120636,
-0.1957891285419464,
0.06805657595396042,
0.046557217836380005,
0.0832819789648056,
0.19927047193050385,
-0.16044145822525024,
-0.22584272921085358,
-0.4588734209537506,
0.016646534204483032,
-0.022931456565856934,
-0.3702341318130493,
0.5743255615234375,
-0.04875831678509712,
-0.35156184434890747,
-0.3371126353740692,
0.13422811031341553,
0.059916622936725616,
-0.07955490797758102,
0.030111631378531456,
0.14923523366451263,
-0.08305355906486511,
-0.07877565920352936,
-0.4900355041027069,
0.08640238642692566,
0.031607735902071,
-0.47319021821022034,
0.2193966805934906,
0.18136553466320038,
-0.009098763577640057,
-0.24578674137592316,
0.06350452452898026,
0.3747844099998474,
0.08795617520809174,
0.5813249945640564,
-0.12697239220142365,
0.06605587154626846,
-0.016617177054286003,
0.1873176544904709,
-0.06378541886806488,
-0.098899245262146,
-0.0413627102971077,
0.18754833936691284,
0.21956196427345276,
-0.04123933985829353,
-0.08149799704551697,
0.012403862550854683,
0.2831690013408661,
-0.07639090716838837,
0.048575498163700104,
0.09435039013624191,
-0.2622021436691284,
0.024129819124937057,
0.20714817941188812,
-0.27044644951820374,
0.09333757311105728,
0.13918140530586243,
-0.07425016909837723,
0.050626497715711594,
-0.2858203947544098,
-0.1754847913980484,
0.1957799792289734,
0.08461996167898178,
0.5732081532478333,
0.11509573459625244,
0.27380043268203735,
-0.20923829078674316,
-0.2014387995004654,
-0.176131933927536,
0.08516890555620193,
0.15053820610046387,
-0.23911863565444946,
0.06941130757331848,
-0.09600173681974411,
0.008092330768704414,
-0.06270825862884521,
-0.5734022259712219,
0.05628985911607742,
-0.04109844192862511,
-0.12515850365161896,
-0.007178592029958963,
-0.14935524761676788,
0.2693190276622772,
0.0940232202410698,
-0.1845419555902481,
0.2232494354248047,
-0.13778218626976013,
-0.2320774793624878,
-0.08101232349872589,
-0.13977211713790894,
0.022913075983524323,
0.18933066725730896,
0.03116900660097599,
-0.09405933320522308,
0.09993664920330048,
0.0354996919631958,
-0.4118797779083252,
-0.45401009917259216,
0.09965115785598755,
-0.11424893140792847,
0.33446967601776123,
0.5833545327186584,
-0.014907538890838623,
0.0700240358710289,
-0.3229905962944031,
0.42943745851516724,
-0.001149845658801496,
-0.22776439785957336,
0.3517604172229767,
-0.27923884987831116,
0.07885245233774185,
-0.10591130703687668,
-0.0940302312374115,
0.03769708797335625,
-0.24898019433021545,
0.1979437619447708,
0.4887150228023529,
0.2029843032360077,
0.20317316055297852,
0.4810783267021179,
0.3484107553958893,
-0.0808461457490921,
0.042980391532182693,
0.286752313375473,
0.27254346013069153,
0.462309330701828,
-0.13022159039974213,
-0.22611626982688904,
-0.04215113818645477,
-0.9024543166160583,
0.07996676117181778,
0.2271864265203476,
0.015799080953001976,
-0.19567057490348816,
-0.13246475160121918,
0.36340418457984924,
-0.021104134619235992,
0.11893871426582336,
0.2944110631942749,
0.15682968497276306,
0.04158951714634895,
-0.15170754492282867,
-0.07371988892555237,
0.4391619861125946,
0.10085082054138184,
-0.022989265620708466,
-0.02762940339744091,
0.2658871114253998,
-0.18810692429542542,
0.6245256662368774,
0.11906091868877411,
-0.37822556495666504,
0.18522043526172638,
-0.2673843204975128,
-0.026985494419932365,
-0.22190099954605103,
0.07073359191417694,
-0.18249927461147308,
0.16329091787338257,
-0.08587296307086945,
-0.06857766211032867,
-0.0720267966389656,
-0.2815802991390228,
0.11583532392978668,
0.24489352107048035,
-0.05778779461979866,
-0.02305448055267334,
0.0227087140083313,
-0.026449866592884064,
0.16119429469108582,
-0.1319909244775772,
0.08043107390403748,
-0.27335745096206665,
-0.10790182650089264,
-0.18916837871074677,
-0.2828925549983978,
0.2439749836921692,
0.01777406595647335,
-0.282755970954895,
0.07095474749803543,
0.06768498569726944,
0.13953234255313873,
0.4566805064678192,
-0.1347285658121109,
0.23836424946784973,
-0.1145220696926117,
0.09296592324972153,
-0.17609983682632446,
0.5438801646232605,
-0.15666325390338898,
-0.23141975700855255,
0.5165032148361206,
0.23146644234657288,
-0.5232296586036682,
-0.18866278231143951,
-0.15552307665348053,
0.15359202027320862,
-0.34654363989830017,
0.14943808317184448,
-0.3906957507133484,
-0.011744590476155281,
0.3368810713291168,
0.37387797236442566,
0.004063452128320932,
-0.12059962004423141,
-0.16477496922016144,
-0.275490403175354,
-0.08474744111299515,
-0.24199923872947693,
-0.08588207513093948,
0.34761396050453186,
0.09770233184099197,
-0.41913101077079773,
-0.3573644757270813,
0.03676433116197586,
-0.1770736426115036,
-0.0007152756443247199,
0.4346478283405304,
-0.2874871492385864,
0.07126770913600922,
-0.3394148349761963,
-0.02031092531979084,
0.23010237514972687,
0.13982050120830536,
0.1775074154138565,
-0.06623134762048721,
0.14350688457489014,
-0.09264209866523743,
0.4353046417236328,
0.08633029460906982,
-0.08822677284479141,
0.07839494943618774,
0.11919774860143661,
0.10829249769449234,
-0.013369455002248287,
-0.07988935708999634,
0.4191327691078186,
-0.33059772849082947,
-0.16199959814548492,
-0.3191153109073639,
0.6340938806533813,
-0.010407939553260803,
0.18017937242984772,
0.2604028582572937,
0.4216444790363312,
-0.1894235908985138,
0.25519677996635437,
0.5969883799552917,
0.86201411485672,
0.03783891350030899,
0.17222003638744354,
0.6916139125823975,
0.03553762286901474,
0.2889745235443115,
0.3305395841598511,
0.11083522439002991,
-0.5170722603797913,
0.04005568102002144,
-0.08930917084217072,
-0.42948561906814575,
0.23979967832565308,
0.26571133732795715,
-0.24768035113811493,
-0.012588663958013058,
-0.24381797015666962,
0.480745792388916,
0.15651309490203857,
-0.05369751900434494,
-0.20151853561401367,
-0.13086749613285065,
-0.07957053929567337,
0.060436856001615524,
0.018454646691679955,
-0.39001935720443726,
-0.1430811583995819,
-0.21995045244693756,
-0.14418651163578033,
-0.03661167621612549,
-0.049515482038259506,
0.04606613516807556,
-0.3448443114757538,
-0.0502130426466465,
0.5167239904403687,
-0.5515486598014832,
0.06685014814138412,
0.16535072028636932,
0.055945366621017456,
-0.21334095299243927,
-0.11794153600931168,
-0.03661879524588585,
0.24716953933238983,
-0.23610636591911316,
-0.12937475740909576,
-0.304561585187912,
0.2676635682582855,
0.04449455812573433,
-0.0840873271226883,
0.05383465811610222,
-0.12565965950489044,
-0.06035622954368591,
-0.05455810949206352,
-0.0292104110121727,
0.1936977654695511,
-0.21707509458065033,
-0.15098512172698975,
-0.11451878398656845,
-0.15925633907318115,
-0.12182065844535828,
0.038919564336538315,
0.12157867103815079,
-0.1410832554101944,
-0.13789409399032593,
0.1177486926317215,
0.0704650953412056,
-0.011949161067605019,
-0.051650021225214005,
0.5510166883468628,
0.3104274868965149,
0.39015746116638184,
0.2568705677986145,
-0.01922103762626648,
-0.1990414261817932,
0.07806700468063354,
0.5724360346794128,
-0.6061908006668091,
0.16831544041633606,
0.1329139769077301,
-0.17899756133556366,
-0.10070183128118515,
0.5450144410133362,
-0.11705110222101212,
0.2916317582130432,
-0.12735016644001007,
0.07248461991548538,
-0.3985956907272339,
0.25152987241744995,
0.18339098989963531,
0.3132038414478302,
-0.24128982424736023,
-0.07183937728404999,
0.058363668620586395,
-0.10336332768201828,
-0.21089161932468414,
0.056416600942611694,
0.05434320867061615,
0.007361889351159334,
-0.5352551341056824,
-0.01729884371161461,
0.03816704452037811,
0.07228095829486847,
0.09405343979597092,
0.014677157625555992,
-0.3673618733882904,
-0.13025617599487305,
-0.08369096368551254,
0.17340533435344696,
0.12898066639900208,
-0.10588069260120392,
0.20104345679283142,
-0.01679736189544201,
-0.2995283007621765,
-0.2105608582496643,
-0.04313727468252182,
-0.1308128833770752,
-0.19201217591762543,
-0.09902292490005493,
0.3399966061115265,
0.02073040045797825,
-0.4380846917629242,
-0.10245683044195175,
-0.23976819217205048,
0.2741350829601288,
0.072525255382061,
0.020698182284832,
0.0892329216003418,
-0.045588161796331406,
-0.050786342471838,
0.22199179232120514,
0.010539921931922436,
-0.24015440046787262,
0.37989455461502075,
-0.4209009110927582,
-0.27882906794548035,
-0.32065775990486145,
0.38665148615837097,
0.2373378723859787,
-0.20531892776489258,
0.13427922129631042,
0.16002389788627625,
0.13355082273483276,
-0.29314568638801575,
0.11275440454483032,
0.15652886033058167,
-0.0677805244922638,
0.1565396934747696,
0.32400044798851013,
0.10539930313825607,
-0.01716226525604725,
-0.0824289470911026,
0.09631716459989548,
-0.11413077265024185,
0.0136933708563447,
0.10669022798538208,
0.6419899463653564,
-0.12013711780309677,
0.10073783248662949,
0.41036492586135864,
-0.00685117207467556,
0.2283300906419754,
-0.13624927401542664,
-0.1021321713924408,
0.36180275678634644,
0.13664810359477997,
-0.11503487825393677,
0.2637447118759155,
0.014405352994799614,
0.04237854853272438,
0.1945033222436905,
0.5667415857315063,
-0.12465952336788177,
0.07764504849910736,
0.6018322110176086,
0.23606842756271362,
0.0012241508811712265,
-0.3576306104660034,
-0.11528667062520981,
-0.039012402296066284,
-0.002881452441215515,
-0.17662060260772705,
-0.11264996975660324,
-0.2524796724319458,
-0.34450480341911316,
-0.12694363296031952,
-0.39857643842697144,
0.1758282631635666,
-0.08522067964076996,
0.1613776683807373,
-0.3082702159881592,
0.7386054992675781,
0.19287429749965668,
0.019133802503347397,
-0.09083787351846695,
0.47985193133354187,
0.3387976884841919,
-0.1544819325208664,
-0.19703428447246552,
0.4266253709793091,
0.32377487421035767,
0.3594302237033844,
-0.33661502599716187,
-0.0549648143351078,
-0.08874194324016571,
-0.24887773394584656,
0.040842100977897644,
0.10509879887104034,
0.21212132275104523,
0.09204383194446564,
0.24404993653297424,
0.05473675578832626,
-0.10428028553724289,
0.2355063408613205,
0.23571926355361938,
0.00559573108330369,
-0.19128349423408508,
0.34885892271995544,
-0.2889256477355957,
-0.18701086938381195,
0.05044541507959366,
-0.07543260604143143,
-0.353697806596756,
-0.10602626204490662,
0.3406725227832794,
-0.10863041132688522,
-0.001378250657580793,
-0.0808868259191513,
0.040944479405879974,
-0.24565334618091583,
0.4476251006126404,
0.07333927601575851,
0.5915704965591431,
-0.1646007001399994,
-0.06695680320262909,
-0.3540521264076233,
0.36946603655815125,
-0.4273028075695038,
0.06926683336496353,
0.28835710883140564,
0.27244478464126587,
-0.0647476390004158,
0.14074857532978058,
0.0931723490357399,
0.24196864664554596,
0.04848217964172363,
0.37808993458747864,
-0.3498033583164215,
-0.11154700815677643,
0.2903214693069458,
0.027509193867444992,
-0.1034037247300148,
-0.34408658742904663,
0.14826427400112152,
-0.3978519141674042,
-0.013310478068888187,
0.21306723356246948,
0.10515836626291275,
0.19912506639957428,
0.21046851575374603,
0.5235130786895752,
-0.020420940592885017,
0.09538622945547104,
0.16678796708583832,
-0.06463056802749634,
-0.24806086719036102,
-0.17214256525039673,
-0.18310624361038208,
0.29718512296676636,
0.044929079711437225,
0.40573957562446594,
-0.18768000602722168,
0.2667941451072693,
-0.14431573450565338,
-0.1357731819152832,
0.10330972075462341,
0.2441294640302658,
-0.22406932711601257,
0.45084285736083984,
-0.6143884658813477,
0.019652890041470528,
0.009642413817346096,
-0.22102218866348267,
0.06379296630620956,
0.06435155123472214,
-0.14374811947345734,
-0.4331988990306854,
0.6617772579193115,
-0.29927393794059753,
-0.4578566551208496,
0.07305008172988892,
-0.04486994072794914,
0.40743449330329895,
-0.1394217312335968,
-0.2819710671901703,
-0.06147601082921028,
0.46098583936691284,
0.014607795514166355,
-0.0193118117749691,
0.01725410483777523,
0.004794850945472717,
0.0918334499001503,
-0.17302730679512024,
0.1973406821489334,
-0.09373626857995987,
-0.11257452517747879,
-0.41818490624427795,
-0.5695375800132751
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | @lhoestq, thanks for the update.
I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here?
I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version)
Below are my modifications of this class.
```
class ArrayExtensionArray(pa.ExtensionArray):
def __array__(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
return self.to_numpy(zero_copy_only=zero_copy_only)
def __getitem__(self, i):
return self.storage[i]
def to_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
size = 1
for i in range(self.type.ndims):
size *= self.type.shape[i]
storage = storage.flatten()
numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only)
numpy_arr = numpy_arr.reshape(len(self), *self.type.shape)
return numpy_arr
def to_list_of_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
shape = self.type.shape
arrays = []
for dim in range(1, self.type.ndims):
assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}"
first_dim_offsets = np.array([off.as_py() for off in storage.offsets])
for i in range(len(storage)):
storage_el = storage[i:i+1]
first_dim = first_dim_offsets[i+1] - first_dim_offsets[i]
# flatten storage
for dim in range(self.type.ndims):
storage_el = storage_el.flatten()
numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only)
arrays.append(numpy_arr.reshape(first_dim, *shape[1:]))
return arrays
def to_pylist(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
if self.type.shape[0] is None:
return self.to_list_of_numpy(zero_copy_only=zero_copy_only)
else:
return self.to_numpy(zero_copy_only=zero_copy_only).tolist()
```
I ran few tests and it works as expected. Let me know what you think. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 224 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq, thanks for the update.
I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here?
I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version)
Below are my modifications of this class.
```
class ArrayExtensionArray(pa.ExtensionArray):
def __array__(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
return self.to_numpy(zero_copy_only=zero_copy_only)
def __getitem__(self, i):
return self.storage[i]
def to_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
size = 1
for i in range(self.type.ndims):
size *= self.type.shape[i]
storage = storage.flatten()
numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only)
numpy_arr = numpy_arr.reshape(len(self), *self.type.shape)
return numpy_arr
def to_list_of_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
shape = self.type.shape
arrays = []
for dim in range(1, self.type.ndims):
assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}"
first_dim_offsets = np.array([off.as_py() for off in storage.offsets])
for i in range(len(storage)):
storage_el = storage[i:i+1]
first_dim = first_dim_offsets[i+1] - first_dim_offsets[i]
# flatten storage
for dim in range(self.type.ndims):
storage_el = storage_el.flatten()
numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only)
arrays.append(numpy_arr.reshape(first_dim, *shape[1:]))
return arrays
def to_pylist(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
if self.type.shape[0] is None:
return self.to_list_of_numpy(zero_copy_only=zero_copy_only)
else:
return self.to_numpy(zero_copy_only=zero_copy_only).tolist()
```
I ran few tests and it works as expected. Let me know what you think. | [
0.008176663890480995,
0.11728734523057938,
-0.10610853880643845,
0.2801862061023712,
0.40251344442367554,
-0.06431570649147034,
0.5933443903923035,
0.10925915837287903,
-0.2332412302494049,
0.22073672711849213,
0.1275910586118698,
0.3022356331348419,
-0.24728399515151978,
-0.021196184679865837,
0.20192201435565948,
-0.31352853775024414,
0.08904002606868744,
0.5067414045333862,
0.04888559505343437,
-0.02731907367706299,
-0.05329088121652603,
-0.06954824179410934,
-0.16074267029762268,
0.14685513079166412,
-0.2513417601585388,
0.06874440610408783,
-0.2443503737449646,
-0.22434473037719727,
-0.17733833193778992,
-0.4697860777378082,
0.28790733218193054,
0.1888696551322937,
0.028783606365323067,
0.08598379045724869,
-0.00012308113218750805,
0.05414138361811638,
0.33211201429367065,
-0.0007845197687856853,
-0.27148252725601196,
-0.08199801295995712,
0.2015637457370758,
-0.4400668144226074,
0.23840831220149994,
-0.32550525665283203,
-0.01398120354861021,
-0.8362496495246887,
-0.04946441575884819,
-0.11109061539173126,
0.07087551057338715,
0.20579113066196442,
0.10444263368844986,
0.0736098662018776,
0.2843003571033478,
-0.07893635332584381,
0.4699324667453766,
0.3682914972305298,
-0.28825125098228455,
-0.1275918185710907,
0.39754578471183777,
0.14315788447856903,
-0.040008820593357086,
-0.21010854840278625,
-0.13134151697158813,
0.1417173594236374,
0.3835518956184387,
0.22648584842681885,
0.2187134325504303,
-0.23538608849048615,
0.07335380464792252,
0.3944593071937561,
0.5115256905555725,
-0.2453646957874298,
-0.19431321322917938,
-0.23479969799518585,
0.08977096527814865,
-0.04675512760877609,
-0.0856357291340828,
0.32830315828323364,
-0.2202516347169876,
-0.04876090958714485,
-0.35369542241096497,
0.22864118218421936,
-0.5123701691627502,
0.3541973829269409,
0.1902458220720291,
0.0773995891213417,
-0.014646962285041809,
0.20342858135700226,
-0.10737131536006927,
-0.23082153499126434,
0.5585185885429382,
-0.35725075006484985,
0.031931910663843155,
0.2399897575378418,
0.06889325380325317,
0.10284493863582611,
-0.06907912343740463,
-0.4354410767555237,
0.3606017231941223,
-0.0460963249206543,
0.1935751587152481,
-0.02136453241109848,
0.27438703179359436,
0.030405154451727867,
-0.10269785672426224,
0.2985353171825409,
-0.0004929614951834083,
-0.059696443378925323,
-0.27311715483665466,
0.11011180281639099,
0.14550240337848663,
0.09483353793621063,
-0.1704498529434204,
-0.15998545289039612,
0.40613725781440735,
-0.03821598365902901,
0.2606358528137207,
0.21529975533485413,
0.048556532710790634,
0.019086288288235664,
-0.7071177363395691,
-0.15802820026874542,
-0.04215988144278526,
0.1278485357761383,
0.11433672904968262,
0.0015052406815811992,
-0.05143464356660843,
0.37880373001098633,
0.012027128599584103,
-0.13033995032310486,
-0.15234695374965668,
-0.08060850203037262,
-0.15515756607055664,
0.0050096819177269936,
0.07768406718969345,
0.24271677434444427,
0.02857121080160141,
0.037332065403461456,
0.10993227362632751,
0.014573181048035622,
0.09781160950660706,
0.07485023885965347,
0.2582395374774933,
0.12244909256696701,
-0.18936492502689362,
-0.06657448410987854,
-0.07664824277162552,
-0.03259697183966637,
-0.2722553610801697,
0.43971070647239685,
-0.05442012473940849,
-0.24220655858516693,
-0.3447396457195282,
0.06494618207216263,
-0.2117098718881607,
0.11843592673540115,
-0.11556391417980194,
0.0989568829536438,
0.2430277168750763,
0.039920300245285034,
0.05176602676510811,
-0.06574363261461258,
0.1976660043001175,
-0.4457697868347168,
0.1396118849515915,
0.00011029910820070654,
-0.46623730659484863,
0.06175914406776428,
-0.08357147872447968,
-0.0497664138674736,
-0.02556135132908821,
-0.1201089397072792,
-0.20076371729373932,
0.1728932410478592,
-0.2748224139213562,
0.32070672512054443,
0.5103974938392639,
0.3285773992538452,
-0.11692365258932114,
0.08306827396154404,
0.032613035291433334,
-0.08532977849245071,
0.27113276720046997,
0.07905597239732742,
-0.13323602080345154,
0.053682226687669754,
-0.36956489086151123,
0.16109894216060638,
-0.09287697076797485,
-0.16003358364105225,
-0.09354204684495926,
-0.4882470965385437,
0.31238049268722534,
0.14473147690296173,
0.17496012151241302,
0.007329125888645649,
-0.04380463436245918,
-0.4492783546447754,
0.25520047545433044,
-0.5342485308647156,
0.2359110713005066,
0.10789245367050171,
0.3874284029006958,
-0.07322961091995239,
0.03979191929101944,
-0.19108423590660095,
-0.6725093126296997,
0.19044339656829834,
-0.45588546991348267,
0.04814674332737923,
-0.030142785981297493,
-0.050547510385513306,
-0.154376819729805,
0.14809703826904297,
-0.17346838116645813,
0.125801220536232,
0.050397761166095734,
0.14910313487052917,
0.23414050042629242,
-0.29194438457489014,
-0.04079035297036171,
-0.3832753300666809,
-0.13402290642261505,
-0.10488755255937576,
-0.5120506286621094,
0.6572319269180298,
0.07240645587444305,
-0.290424644947052,
-0.297291100025177,
0.14710061252117157,
0.02803296223282814,
-0.03708607330918312,
-0.11880692839622498,
0.12292846292257309,
-0.06583058834075928,
-0.11311714351177216,
-0.470267653465271,
0.16960066556930542,
-0.0339043065905571,
-0.2905173599720001,
0.2976224422454834,
0.11447524279356003,
-0.07829974591732025,
-0.1841137856245041,
0.19075746834278107,
0.5881352424621582,
0.08519569039344788,
0.5646957159042358,
-0.14793555438518524,
-0.013357081450521946,
-0.12367857992649078,
0.17819498479366302,
-0.01132248342037201,
-0.15541021525859833,
-0.16187970340251923,
0.2307116687297821,
0.28572651743888855,
-0.0325835756957531,
-0.1471523493528366,
0.16628523170948029,
0.2829982340335846,
-0.057341281324625015,
-0.08306068181991577,
0.06545338034629822,
-0.14172689616680145,
0.0683533176779747,
0.11915163695812225,
-0.104092076420784,
0.2394605129957199,
0.19611655175685883,
-0.18192097544670105,
-0.009021406061947346,
-0.17368824779987335,
-0.16778554022312164,
0.2829218804836273,
0.16134905815124512,
0.5691128373146057,
0.14033469557762146,
0.37670817971229553,
-0.32647743821144104,
-0.2785778045654297,
-0.10179676860570908,
0.014397653751075268,
0.14712941646575928,
-0.2031049132347107,
0.05800504609942436,
-0.10777520388364792,
-0.00690046139061451,
-0.12375730276107788,
-0.5938738584518433,
-0.029938481748104095,
0.009283504448831081,
-0.07544297724962234,
-0.00920282956212759,
-0.19013702869415283,
0.1717362254858017,
0.1932961642742157,
-0.13368433713912964,
0.2393602579832077,
-0.09473689645528793,
-0.18878592550754547,
0.08406758308410645,
-0.13976991176605225,
-0.006382032297551632,
0.22087256610393524,
0.020798031240701675,
-0.09176565706729889,
0.13037529587745667,
-0.025486161932349205,
-0.45712196826934814,
-0.36359286308288574,
0.10560832172632217,
-0.08762748539447784,
0.28296226263046265,
0.5301012396812439,
-0.06093260273337364,
0.06966772675514221,
-0.28819647431373596,
0.38873982429504395,
0.0011956918751820922,
-0.20870627462863922,
0.2950398325920105,
-0.2056494951248169,
0.1029590517282486,
-0.08822187781333923,
-0.08088749647140503,
-0.02511979267001152,
-0.21631865203380585,
0.22041639685630798,
0.3758435547351837,
0.2948094308376312,
0.23027363419532776,
0.49093392491340637,
0.28095176815986633,
-0.040837083011865616,
0.09598714858293533,
0.16386382281780243,
0.26213985681533813,
0.36901921033859253,
-0.06387567520141602,
-0.1603313833475113,
-0.10584110021591187,
-0.8136042952537537,
0.08774007111787796,
0.33708876371383667,
-0.03359111398458481,
-0.341825395822525,
-0.09185180813074112,
0.16716846823692322,
-0.07807331532239914,
0.06882784515619278,
0.33884197473526,
0.09134271740913391,
0.05526832118630409,
-0.030466310679912567,
-0.04430704936385155,
0.41427552700042725,
0.15059958398342133,
-0.008293531835079193,
0.01064679678529501,
0.28313541412353516,
-0.19887924194335938,
0.5975490212440491,
0.09073645621538162,
-0.28712648153305054,
0.10083406418561935,
-0.2542864680290222,
-0.054166533052921295,
-0.2191140353679657,
-0.01260436326265335,
-0.17988258600234985,
0.12918536365032196,
-0.23109391331672668,
0.059953074902296066,
-0.12822364270687103,
-0.30537790060043335,
0.25177520513534546,
0.33722707629203796,
-0.05729470029473305,
-0.05843624100089073,
0.1691235899925232,
0.13702349364757538,
0.2135799080133438,
-0.16073477268218994,
0.122099868953228,
-0.35600754618644714,
-0.17732873558998108,
-0.333777517080307,
-0.30372342467308044,
0.14179998636245728,
-0.04029608890414238,
-0.262480229139328,
0.006457208655774593,
0.09194458276033401,
0.257871150970459,
0.515453040599823,
-0.026533393189311028,
0.24619345366954803,
-0.1622949242591858,
0.16181670129299164,
-0.053719017654657364,
0.5656304955482483,
-0.002727489685639739,
-0.2775243818759918,
0.5173029899597168,
0.17405496537685394,
-0.39376184344291687,
-0.3545570373535156,
-0.10321752727031708,
0.08117429167032242,
-0.2107180804014206,
0.05779967084527016,
-0.3799522817134857,
-0.17244987189769745,
0.26688992977142334,
0.396516889333725,
-0.00915430672466755,
-0.1572374850511551,
-0.16606900095939636,
-0.11688914149999619,
-0.14534781873226166,
-0.19576215744018555,
-0.18588803708553314,
0.43369442224502563,
-0.007019640412181616,
-0.44504210352897644,
-0.33570539951324463,
-0.11893098056316376,
-0.13904942572116852,
-0.0002586828195489943,
0.5432820320129395,
-0.20231063663959503,
-0.001557631534524262,
-0.3428705930709839,
-0.008044936694204807,
0.25601726770401,
0.11394821852445602,
0.18244560062885284,
0.09794212132692337,
0.23491811752319336,
-0.09105206280946732,
0.3822706639766693,
0.23728151619434357,
-0.21989955008029938,
0.04489698261022568,
0.10271500051021576,
0.1267092227935791,
-0.004162434488534927,
-0.19367901980876923,
0.37964704632759094,
-0.418085515499115,
-0.04669841006398201,
-0.3388866186141968,
0.6189416646957397,
0.0008023574482649565,
0.19761814177036285,
0.29698237776756287,
0.40211722254753113,
-0.24340614676475525,
0.1732524186372757,
0.5898040533065796,
0.8234219551086426,
0.021046381443738937,
0.09118535369634628,
0.718323826789856,
0.06493111699819565,
0.04760429263114929,
0.38226109743118286,
0.23093898594379425,
-0.44901174306869507,
0.054126519709825516,
-0.09496898204088211,
-0.3679797947406769,
0.20827579498291016,
0.30487653613090515,
-0.10940151661634445,
-0.06178702414035797,
-0.06985826790332794,
0.458951473236084,
0.08709680289030075,
-0.05680423602461815,
-0.2477201372385025,
-0.12354407459497452,
-0.14305436611175537,
-0.016434310004115105,
-0.10084802657365799,
-0.4252542555332184,
-0.025596676394343376,
-0.3447962999343872,
-0.18401235342025757,
0.00542836356908083,
-0.07518207281827927,
-0.0757148340344429,
-0.41665905714035034,
0.007047026883810759,
0.5495273470878601,
-0.5068942308425903,
0.06920529901981354,
0.0717688575387001,
-0.12239998579025269,
-0.21667876839637756,
-0.11113506555557251,
-0.23613804578781128,
0.2741560935974121,
-0.14555907249450684,
-0.22167950868606567,
-0.36606669425964355,
0.2566593289375305,
0.13540874421596527,
0.012584340758621693,
-0.01586209051311016,
-0.10128799080848694,
-0.01871930994093418,
-0.14519290626049042,
-0.023818688467144966,
0.41596975922584534,
-0.393889456987381,
-0.16200795769691467,
-0.13567964732646942,
-0.19298246502876282,
-0.08840392529964447,
-0.0010424623033031821,
0.1095190942287445,
-0.10162311047315598,
-0.09753832221031189,
0.13914263248443604,
0.08002027124166489,
-0.04632995277643204,
-0.03899705037474632,
0.6464512348175049,
0.27866262197494507,
0.39943793416023254,
0.10479295253753662,
0.0850067213177681,
-0.17248213291168213,
0.13714328408241272,
0.4868004024028778,
-0.571553111076355,
0.2576577067375183,
0.09075970202684402,
-0.1696769893169403,
-0.029016537591814995,
0.5399841070175171,
-0.044212087988853455,
0.4526691436767578,
-0.15689264237880707,
0.11090021580457687,
-0.3084827959537506,
0.14643241465091705,
0.21145062148571014,
0.45774880051612854,
-0.28757762908935547,
0.06321947276592255,
0.02018256112933159,
-0.04140612110495567,
-0.17268848419189453,
-0.043986160308122635,
0.035586465150117874,
-0.09427601099014282,
-0.5580288171768188,
-0.02808205969631672,
0.022301966324448586,
0.07942965626716614,
0.01927887834608555,
-0.04438558220863342,
-0.5251635313034058,
-0.08225621283054352,
0.011079453863203526,
0.18505489826202393,
0.13980267941951752,
0.02430335432291031,
0.09043517708778381,
-0.07219275832176208,
-0.25656306743621826,
-0.22345075011253357,
-0.05486982688307762,
-0.1382228583097458,
-0.18300940096378326,
-0.10361456871032715,
0.3470049798488617,
-0.01565544120967388,
-0.40393468737602234,
-0.0975513756275177,
-0.26940831542015076,
0.237111434340477,
0.1720995306968689,
0.07146000862121582,
0.03956114128232002,
-0.036238767206668854,
-0.18818506598472595,
0.24408964812755585,
-0.03038615733385086,
-0.20203331112861633,
0.22807222604751587,
-0.4099785387516022,
-0.422000527381897,
-0.21879398822784424,
0.43999573588371277,
0.23592756688594818,
-0.16736789047718048,
0.0056284405291080475,
-0.004720842000097036,
0.12149018794298172,
-0.21950748562812805,
0.09441883116960526,
0.24326476454734802,
0.02301904559135437,
0.15900595486164093,
0.4403979480266571,
0.28495317697525024,
-0.15594053268432617,
-0.01129076536744833,
0.12147990614175797,
-0.04771927371621132,
0.05418579652905464,
0.13685385882854462,
0.6701663732528687,
-0.04939938709139824,
0.08553306758403778,
0.456831157207489,
-0.018363729119300842,
0.22316530346870422,
-0.07503907382488251,
-0.11584089696407318,
0.4804656207561493,
0.005745725240558386,
-0.11400356143712997,
0.18912211060523987,
-0.011435819789767265,
0.055955372750759125,
0.21982280910015106,
0.4599030613899231,
-0.030586805194616318,
0.0386233851313591,
0.6613848805427551,
0.07902746647596359,
-0.08434509485960007,
-0.31699445843696594,
-0.12863601744174957,
-0.07051102817058563,
0.0905379131436348,
-0.05334905907511711,
-0.17381086945533752,
-0.2111712247133255,
-0.3472503423690796,
-0.10796211659908295,
-0.45506277680397034,
0.2416439801454544,
-0.17537173628807068,
0.23239803314208984,
-0.3419380486011505,
0.5808366537094116,
0.20178288221359253,
0.036116987466812134,
-0.13171732425689697,
0.4449383616447449,
0.3095204830169678,
-0.01740088500082493,
-0.18000270426273346,
0.3680499494075775,
0.2668587863445282,
0.40843167901039124,
-0.12824569642543793,
-0.15569502115249634,
0.01570078171789646,
-0.2543371021747589,
0.07826203107833862,
0.055527444928884506,
0.18520891666412354,
0.028358137235045433,
0.19955530762672424,
0.042482953518629074,
-0.07925399392843246,
0.2689208686351776,
0.2696080207824707,
0.007309840526431799,
-0.1913246363401413,
0.34189310669898987,
-0.1809464991092682,
-0.19397972524166107,
-0.02638070099055767,
-0.2045585662126541,
-0.46635890007019043,
-0.09440765529870987,
0.2306014597415924,
-0.0828590914607048,
-0.016725854948163033,
0.033215295523405075,
0.014934515580534935,
-0.19093452394008636,
0.3069327473640442,
0.09631244838237762,
0.4915100634098053,
-0.23890195786952972,
-0.07601509243249893,
-0.22823280096054077,
0.33680224418640137,
-0.3284420967102051,
0.08920720964670181,
0.3115129768848419,
0.3918777108192444,
-0.04111795499920845,
-0.004877475555986166,
0.09927159547805786,
0.1293204426765442,
0.040465302765369415,
0.43059176206588745,
-0.3858342170715332,
-0.022686058655381203,
0.3656059801578522,
-0.03403740003705025,
-0.0408562570810318,
-0.28741520643234253,
0.15306688845157623,
-0.3587372899055481,
-0.040105417370796204,
0.19569380581378937,
0.26135802268981934,
0.12650297582149506,
0.2545161843299866,
0.3684667944908142,
-0.08613035827875137,
-0.025106284767389297,
0.16552048921585083,
-0.12692449986934662,
-0.2944835424423218,
-0.11344064027070999,
-0.12816496193408966,
0.3101494312286377,
0.20087690651416779,
0.5762239098548889,
-0.19291527569293976,
0.22459180653095245,
-0.14272066950798035,
-0.12438491731882095,
0.10411348938941956,
0.20118266344070435,
-0.2228568196296692,
0.4451681673526764,
-0.5870548486709595,
0.11539878696203232,
-0.02361264079809189,
-0.16266408562660217,
0.20379573106765747,
0.12548501789569855,
-0.19504736363887787,
-0.4592522978782654,
0.6747373938560486,
-0.308829665184021,
-0.49593228101730347,
0.13023687899112701,
-0.008557773195207119,
0.29611632227897644,
-0.10748683661222458,
-0.3079211115837097,
-0.06517881155014038,
0.4423903822898865,
-0.0427195206284523,
0.23319140076637268,
0.038866691291332245,
0.004646008834242821,
0.09753285348415375,
-0.17147471010684967,
0.1417766809463501,
0.034084074199199677,
-0.14227117598056793,
-0.4382563531398773,
-0.573832631111145
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Thanks for diving into this !
Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint).
Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to.
Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases.
In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet):
```python
from datasets import Dataset, Features, Array3D
# this works
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix]]})
print(d.to_pandas())
# this should work as well
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]})
print(d.to_pandas())
```
I'll be happy to help you on this :) | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 164 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Thanks for diving into this !
Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint).
Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to.
Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases.
In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet):
```python
from datasets import Dataset, Features, Array3D
# this works
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix]]})
print(d.to_pandas())
# this should work as well
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]})
print(d.to_pandas())
```
I'll be happy to help you on this :) | [
0.08111881464719772,
0.06608691811561584,
-0.07496575266122818,
0.19978894293308258,
0.5059948563575745,
-0.06205607205629349,
0.666225254535675,
0.22281469404697418,
-0.2351689338684082,
0.21039441227912903,
0.20339086651802063,
0.3141407370567322,
-0.16791634261608124,
0.15190981328487396,
0.1614728718996048,
-0.526451587677002,
0.1352110654115677,
0.4473290741443634,
-0.037045933306217194,
0.08682128041982651,
-0.08640177547931671,
-0.1268898844718933,
-0.23473040759563446,
0.19982776045799255,
-0.35606101155281067,
0.043541114777326584,
-0.4179326295852661,
-0.13190174102783203,
-0.19629214704036713,
-0.33971256017684937,
0.2675033509731293,
0.13947266340255737,
0.15465866029262543,
0.19404631853103638,
-0.00011625656770775095,
-0.020186077803373337,
0.2754315137863159,
0.002722490578889847,
-0.16532808542251587,
-0.15045344829559326,
0.17563636600971222,
-0.45606958866119385,
0.1426977813243866,
-0.37676486372947693,
-0.059796784073114395,
-0.7914664149284363,
-0.1558023989200592,
-0.056577250361442566,
0.05843963846564293,
0.18194815516471863,
0.18608960509300232,
0.19707229733467102,
0.34455570578575134,
0.007005665916949511,
0.3372129797935486,
0.2662031054496765,
-0.33379197120666504,
-0.07435429096221924,
0.22050447762012482,
-0.13642995059490204,
-0.019756237044930458,
-0.08120200037956238,
-0.0935627818107605,
0.12538857758045197,
0.37038740515708923,
0.25596246123313904,
0.44126009941101074,
-0.3059554994106293,
-0.03850765898823738,
0.48660212755203247,
0.526644766330719,
-0.22638371586799622,
-0.14868921041488647,
-0.21056118607521057,
0.03260529413819313,
-0.07202239334583282,
-0.11340711265802383,
0.3932390809059143,
-0.2839553952217102,
-0.025906570255756378,
-0.16177141666412354,
0.26715779304504395,
-0.47387897968292236,
0.34360358119010925,
0.015358584932982922,
0.17688891291618347,
0.060075387358665466,
0.10677841305732727,
-0.07881481945514679,
-0.3343677818775177,
0.6473375558853149,
-0.26837682723999023,
0.16954252123832703,
0.1576763540506363,
0.12607897818088531,
0.05479903891682625,
0.03995184972882271,
-0.30566924810409546,
0.2611987888813019,
-0.06626921892166138,
0.25653088092803955,
-0.05405604466795921,
0.3141367435455322,
0.07778143882751465,
-0.09619845449924469,
0.2931361794471741,
-0.19101646542549133,
-0.0353444442152977,
-0.19153349101543427,
0.2000771313905716,
0.1407671719789505,
0.13481655716896057,
-0.09582236409187317,
-0.3377191126346588,
0.3894747495651245,
-0.07044346630573273,
0.3181087374687195,
0.284415066242218,
0.05033792182803154,
0.029510632157325745,
-0.7314227223396301,
-0.1056453138589859,
-0.07943272590637207,
0.13332295417785645,
0.06327734887599945,
0.023407090455293655,
-0.06656689196825027,
0.39163851737976074,
0.004837432876229286,
0.034488096833229065,
-0.17721474170684814,
0.13832733035087585,
-0.24071890115737915,
-0.15820035338401794,
0.05804605409502983,
0.3111126124858856,
0.03239133208990097,
0.06568554788827896,
0.1681862473487854,
-0.04925689846277237,
0.04737722501158714,
0.0943843200802803,
0.19244791567325592,
0.1907954216003418,
-0.21833385527133942,
-0.20423641800880432,
-0.048218101263046265,
-0.24087588489055634,
-0.2660056948661804,
0.3408505618572235,
0.12376531958580017,
-0.1147489994764328,
-0.2962648570537567,
0.1257818043231964,
-0.25769636034965515,
0.03328239917755127,
0.01898767426609993,
0.16564075648784637,
0.12303245067596436,
0.18610844016075134,
0.06707490980625153,
-0.016318190842866898,
0.2285516858100891,
-0.439090758562088,
0.131013885140419,
0.14341945946216583,
-0.37883031368255615,
0.18397864699363708,
0.09020625799894333,
0.047282926738262177,
-0.020489325746893883,
-0.1859840303659439,
-0.19585667550563812,
0.23402522504329681,
-0.1092265248298645,
0.20456601679325104,
0.4382781684398651,
0.10317046195268631,
-0.050832804292440414,
0.03969017416238785,
-0.10085475444793701,
-0.057490888983011246,
0.18445809185504913,
0.06798028200864792,
-0.23258812725543976,
0.008638466708362103,
-0.3313024342060089,
0.3617541790008545,
-0.04681346192955971,
-0.13409200310707092,
-0.11938450485467911,
-0.45664310455322266,
0.5288199782371521,
0.1604703664779663,
0.23125839233398438,
-0.02935715764760971,
-0.037894558161497116,
-0.41357454657554626,
0.21313278377056122,
-0.5370698571205139,
0.20640680193901062,
-0.011048540472984314,
0.3182368278503418,
-0.2316180169582367,
0.10172639787197113,
-0.14970795810222626,
-0.6831348538398743,
0.20955750346183777,
-0.26155465841293335,
0.1348549723625183,
-0.16272956132888794,
0.016148336231708527,
-0.2137753963470459,
0.08648402243852615,
-0.16145533323287964,
0.05134694650769234,
0.15556742250919342,
-0.05177028104662895,
0.1015731543302536,
-0.23288694024085999,
-0.1256846934556961,
-0.284223735332489,
0.0373976044356823,
-0.0718301385641098,
-0.2994229793548584,
0.606870174407959,
-0.0240518506616354,
-0.22567953169345856,
-0.2027261108160019,
0.19077259302139282,
0.15968067944049835,
-0.01749405637383461,
-0.003947692923247814,
0.16419078409671783,
-0.10857458412647247,
-0.010828882455825806,
-0.5107388496398926,
0.22013624012470245,
-0.008873232640326023,
-0.2927827537059784,
0.32595521211624146,
0.14844006299972534,
0.0312674455344677,
-0.21861830353736877,
0.1461089700460434,
0.594231128692627,
-0.20543760061264038,
0.5001154541969299,
-0.16967473924160004,
0.10784252732992172,
-0.044009171426296234,
0.10705795884132385,
-0.12064080685377121,
-0.16747555136680603,
-0.1490996778011322,
0.2324395328760147,
0.10000970214605331,
-0.050064779818058014,
-0.20199768245220184,
0.16506144404411316,
0.22095221281051636,
-0.0789223313331604,
-0.03823818266391754,
0.03891369327902794,
-0.12051589787006378,
0.08635980635881424,
0.2220526933670044,
-0.0977577269077301,
0.10828235745429993,
0.20698204636573792,
-0.1347232609987259,
0.08056812733411789,
-0.3435122072696686,
-0.1386653184890747,
0.28596532344818115,
0.19628813862800598,
0.5069097876548767,
0.030931381508708,
0.3337843120098114,
-0.24852262437343597,
-0.218299001455307,
-0.07449108362197876,
0.04974992573261261,
0.13413095474243164,
-0.33795061707496643,
0.13352200388908386,
-0.15747053921222687,
-0.0023975681979209185,
0.005832549184560776,
-0.7622507810592651,
-0.0921698585152626,
-0.012477090582251549,
-0.08174870163202286,
-0.001816065632738173,
-0.2064686417579651,
0.17497965693473816,
0.1516534835100174,
-0.18108806014060974,
0.09891435503959656,
-0.18234993517398834,
-0.2228328138589859,
-0.024091999977827072,
-0.115409255027771,
0.05950571969151497,
0.13913817703723907,
0.16856619715690613,
-0.01947023905813694,
0.11554748564958572,
0.12713153660297394,
-0.2960382103919983,
-0.3022586703300476,
0.043551161885261536,
-0.24273860454559326,
0.3763853907585144,
0.43503957986831665,
0.014104817993938923,
0.03956061974167824,
-0.18879708647727966,
0.35453787446022034,
0.23146352171897888,
-0.1280815303325653,
0.3346899151802063,
-0.1032503992319107,
0.08458460122346878,
-0.1186966598033905,
0.015142700634896755,
0.028119830414652824,
-0.2963925302028656,
0.18469418585300446,
0.39974522590637207,
0.26376381516456604,
0.22967365384101868,
0.582741379737854,
0.31166791915893555,
0.05216636136174202,
0.122344009578228,
0.19995878636837006,
0.20725321769714355,
0.4295157492160797,
0.032140668481588364,
-0.22796988487243652,
-0.18159566819667816,
-0.8064339756965637,
0.11232739686965942,
0.2651633620262146,
-0.000343814812367782,
-0.40038248896598816,
-0.11923220008611679,
0.4195519685745239,
-0.06583818048238754,
0.12927494943141937,
0.47662433981895447,
0.1627044975757599,
-0.005132393445819616,
-0.13316434621810913,
-0.07624253630638123,
0.34627145528793335,
0.2557983994483948,
-0.08543951064348221,
-0.019713593646883965,
0.27885186672210693,
-0.08597186952829361,
0.5770153403282166,
-0.054513562470674515,
-0.3353949785232544,
0.2743908762931824,
-0.22903575003147125,
-0.048615287989377975,
-0.12065805494785309,
-0.08301849663257599,
-0.20857785642147064,
-0.00003296499926364049,
-0.08837054669857025,
-0.10227600485086441,
-0.12557856738567352,
-0.30675995349884033,
0.006785291712731123,
0.23127253353595734,
-0.24003931879997253,
-0.050702325999736786,
0.019487299025058746,
0.014084568247199059,
0.19860121607780457,
-0.10478890687227249,
0.14625871181488037,
-0.3106015622615814,
-0.07703585922718048,
-0.13766491413116455,
-0.25555938482284546,
0.10499395430088043,
-0.0008804421522654593,
-0.014186995103955269,
0.024731392040848732,
0.0688321441411972,
0.08966764062643051,
0.39669710397720337,
-0.14018596708774567,
0.34562522172927856,
-0.18024827539920807,
0.12161716818809509,
-0.17366105318069458,
0.6282703280448914,
-0.08472497016191483,
-0.19326767325401306,
0.5385676622390747,
0.10903805494308472,
-0.43439674377441406,
-0.27609318494796753,
-0.2283090204000473,
0.024592658504843712,
-0.28759264945983887,
0.11803483217954636,
-0.36855193972587585,
-0.14810217916965485,
0.21786311268806458,
0.31992307305336,
0.016556058079004288,
-0.1950828731060028,
-0.23089072108268738,
-0.2040196806192398,
-0.05112815275788307,
-0.1320188045501709,
-0.04581709951162338,
0.3967011272907257,
0.05910174921154976,
-0.30442675948143005,
-0.3976414203643799,
-0.10712462663650513,
-0.1380680948495865,
0.15466879308223724,
0.3969094753265381,
-0.15833675861358643,
0.042384158819913864,
-0.303718626499176,
-0.007844009436666965,
0.08202237635850906,
0.07756835222244263,
0.17567497491836548,
0.045868128538131714,
0.021585438400506973,
0.027588816359639168,
0.35618090629577637,
0.2391684204339981,
-0.11443406343460083,
-0.06430406123399734,
-0.022167323157191277,
0.12716715037822723,
-0.1965864598751068,
-0.0822138711810112,
0.4506605267524719,
-0.3617122769355774,
0.00828248169273138,
-0.26443853974342346,
0.6715800762176514,
-0.09013819694519043,
0.11709467321634293,
0.2661958336830139,
0.5690852403640747,
-0.1716603934764862,
0.2838435173034668,
0.6202143430709839,
1.0007253885269165,
-0.029507949948310852,
0.1052313968539238,
0.7753416299819946,
-0.11384781450033188,
0.06444574147462845,
0.3265838027000427,
0.21640543639659882,
-0.4182456135749817,
0.1595391035079956,
-0.11146145313978195,
-0.32465386390686035,
0.11798863112926483,
0.12209653109312057,
-0.20341072976589203,
-0.07146092504262924,
-0.27898600697517395,
0.29905855655670166,
0.1234777569770813,
-0.04420369863510132,
-0.1172318086028099,
-0.20518727600574493,
-0.23192600905895233,
0.06632654368877411,
-0.04821871593594551,
-0.3505482077598572,
-0.10492252558469772,
-0.3317466378211975,
-0.2237376719713211,
-0.02891097031533718,
0.0008956747478805482,
0.003447438357397914,
-0.3338734805583954,
0.008811509236693382,
0.3812505900859833,
-0.5121398568153381,
0.0015974652487784624,
0.18445806205272675,
-0.09207507222890854,
-0.1640262007713318,
-0.20304366946220398,
-0.12689267098903656,
0.4598900377750397,
-0.28434327244758606,
-0.09143352508544922,
-0.37323248386383057,
0.34922248125076294,
0.04239135980606079,
-0.103363536298275,
-0.08978158980607986,
-0.024545015767216682,
0.09144791960716248,
-0.18662886321544647,
-0.021514398977160454,
0.22343391180038452,
-0.21825462579727173,
-0.032379359006881714,
-0.059906378388404846,
0.015726400539278984,
-0.1066974401473999,
0.09592138230800629,
0.04411167651414871,
-0.04285408928990364,
-0.05443437770009041,
0.17282146215438843,
0.04483946040272713,
-0.0678497701883316,
-0.004352401476353407,
0.44378724694252014,
0.33730417490005493,
0.260478138923645,
0.2011244297027588,
-0.06190028041601181,
-0.20484736561775208,
0.11338545382022858,
0.3587191104888916,
-0.48496973514556885,
0.17921565473079681,
0.10195571184158325,
-0.23708093166351318,
-0.1328744739294052,
0.49738526344299316,
0.05487336218357086,
0.22207118570804596,
-0.04658084362745285,
0.14591734111309052,
-0.414911687374115,
0.11465825140476227,
0.1664491891860962,
0.2982104420661926,
-0.32588618993759155,
0.08798057585954666,
0.027540631592273712,
-0.010067769326269627,
-0.2889707088470459,
0.05061051622033119,
0.10506550222635269,
-0.009065343998372555,
-0.5112305283546448,
-0.12081277370452881,
0.01937175542116165,
0.08408308029174805,
0.14213700592517853,
-0.06217806041240692,
-0.45420923829078674,
-0.1741422712802887,
-0.17306135594844818,
0.14615334570407867,
0.11530105024576187,
-0.11779872328042984,
0.16031481325626373,
-0.11153779923915863,
-0.3431859612464905,
-0.28134390711784363,
-0.07265009731054306,
0.02153034694492817,
-0.15320029854774475,
-0.12493158131837845,
0.32407867908477783,
-0.011986973695456982,
-0.2783167362213135,
-0.24678722023963928,
-0.25762057304382324,
0.19585366547107697,
0.1499994397163391,
0.04499204456806183,
0.044235941022634506,
-0.041136760264635086,
-0.1221286952495575,
0.2578858435153961,
-0.054880235344171524,
-0.27847105264663696,
0.2966710031032562,
-0.333116739988327,
-0.3128943145275116,
-0.32697558403015137,
0.4821079969406128,
0.20513111352920532,
-0.17484183609485626,
0.010281170718371868,
0.10690492391586304,
0.20022781193256378,
-0.35587698221206665,
0.02393912337720394,
0.026455363258719444,
0.01950431615114212,
0.22805926203727722,
0.4076538383960724,
0.180611714720726,
-0.09155154973268509,
-0.16125725209712982,
0.059835612773895264,
-0.11766164004802704,
0.0223850030452013,
0.0006822981522418559,
0.5625871419906616,
-0.23422864079475403,
0.10410155355930328,
0.464387983083725,
0.08357174694538116,
0.19189725816249847,
-0.10585173964500427,
-0.11867361515760422,
0.264742374420166,
0.08167972415685654,
-0.08268940448760986,
0.055542316287755966,
0.03835901618003845,
0.08321736752986908,
0.0390605553984642,
0.39297112822532654,
-0.0885394960641861,
0.03442581743001938,
0.5620694756507874,
0.18304570019245148,
0.10937617719173431,
-0.29623866081237793,
-0.11325379461050034,
-0.09645174443721771,
-0.0015240751672536135,
0.07342183589935303,
-0.22105850279331207,
-0.3147689700126648,
-0.36133873462677,
-0.08067715913057327,
-0.48695963621139526,
0.18534864485263824,
-0.09471521526575089,
0.19958172738552094,
-0.2643705904483795,
0.6058089137077332,
0.13354550302028656,
0.16240453720092773,
-0.2395661473274231,
0.27640461921691895,
0.3889527916908264,
-0.14088638126850128,
-0.3185476064682007,
0.3108559250831604,
0.3091471791267395,
0.382061630487442,
-0.44036439061164856,
-0.12886668741703033,
-0.007554180454462767,
-0.27166274189949036,
0.13830767571926117,
0.03807999938726425,
0.17865705490112305,
0.29991960525512695,
0.3266957104206085,
0.11148610711097717,
-0.17850452661514282,
0.22614723443984985,
0.28929293155670166,
0.06282202154397964,
-0.28046610951423645,
0.3225162625312805,
-0.22058407962322235,
-0.05367550253868103,
-0.016114598140120506,
-0.21474148333072662,
-0.3772152066230774,
-0.12832047045230865,
0.24848367273807526,
-0.07962899655103683,
0.00102172140032053,
-0.048282232135534286,
0.07473165541887283,
-0.09626370668411255,
0.3985402286052704,
0.0026093339547514915,
0.5584187507629395,
-0.29542410373687744,
0.0728156566619873,
-0.40152984857559204,
0.2960192859172821,
-0.36957424879074097,
-0.006360366940498352,
0.28879514336586,
0.35427120327949524,
-0.016344893723726273,
0.1101769283413887,
0.0010076292091980577,
0.29767945408821106,
0.008311369456350803,
0.4255388379096985,
-0.3503299951553345,
0.08755987882614136,
0.19518212974071503,
0.004894237499684095,
-0.013151486404240131,
-0.28484779596328735,
0.12863510847091675,
-0.42236289381980896,
0.06018274277448654,
0.1569889783859253,
0.1705656796693802,
0.19108270108699799,
0.3271726965904236,
0.47621142864227295,
-0.07264260947704315,
-0.007685346994549036,
0.13584034144878387,
-0.0648118406534195,
-0.36276739835739136,
0.006071405950933695,
-0.18506579101085663,
0.22748006880283356,
0.13935750722885132,
0.4237053394317627,
-0.19741220772266388,
0.11693302541971207,
-0.14795950055122375,
-0.09168508648872375,
0.07306219637393951,
0.19579023122787476,
-0.1012750044465065,
0.3477631211280823,
-0.40797245502471924,
0.10937487334012985,
-0.11230240017175674,
-0.12913687527179718,
0.07204160839319229,
0.1794416606426239,
-0.1668446660041809,
-0.5900039672851562,
0.7276586890220642,
-0.2650006413459778,
-0.5538643002510071,
0.16250818967819214,
-0.031157435849308968,
0.3296858072280884,
-0.027208514511585236,
-0.3190828561782837,
-0.07868654280900955,
0.3554780185222626,
-0.016446903347969055,
0.07744081318378448,
0.12848012149333954,
-0.017558705061674118,
0.05848162993788719,
-0.1163029670715332,
0.09963587671518326,
-0.05306031182408333,
-0.055901192128658295,
-0.464307576417923,
-0.5050968527793884
] |
https://github.com/huggingface/datasets/issues/883 | Downloading/caching only a part of a datasets' dataset. | I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger.
This makes the task impossible with limited memory resources. | Hi,
I want to use the validation data *only* (of natural question).
I don't want to have the whole dataset cached in my machine, just the dev set.
Is this possible? I can't find a way to do it in the docs.
Thank you,
Sapir | 40 | Downloading/caching only a part of a datasets' dataset.
Hi,
I want to use the validation data *only* (of natural question).
I don't want to have the whole dataset cached in my machine, just the dev set.
Is this possible? I can't find a way to do it in the docs.
Thank you,
Sapir
I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger.
This makes the task impossible with limited memory resources. | [
-0.25964710116386414,
0.017662450671195984,
-0.14441365003585815,
0.05602747201919556,
0.005209655035287142,
0.1932338923215866,
0.07143615931272507,
0.4244528114795685,
-0.20966292917728424,
0.12258386611938477,
-0.16739612817764282,
-0.31124889850616455,
0.03828083723783493,
0.3431014120578766,
0.2733544111251831,
0.31571534276008606,
-0.04495980590581894,
0.4445396363735199,
-0.013587944209575653,
0.17978781461715698,
0.13217109441757202,
-0.3596687912940979,
0.0900438129901886,
0.17981208860874176,
-0.03431401401758194,
-0.01303820963948965,
0.3524552583694458,
-0.17290332913398743,
-0.3025225102901459,
-0.26461178064346313,
0.5076571702957153,
0.1568508893251419,
0.09876775741577148,
-0.36249804496765137,
-0.00012160290498286486,
0.04930528253316879,
0.01573312282562256,
-0.25930431485176086,
-0.19486328959465027,
0.17479680478572845,
-0.3646431267261505,
0.2211197018623352,
-0.10162638127803802,
-0.11095337569713593,
-0.26299330592155457,
0.14961636066436768,
0.0997372418642044,
-0.11486503481864929,
0.38685309886932373,
0.3819859027862549,
0.07266777753829956,
0.2527620494365692,
-0.2582721412181854,
0.08188463002443314,
-0.43864887952804565,
-0.12059672921895981,
-0.11136958003044128,
0.22935131192207336,
0.3401835262775421,
0.17426034808158875,
0.1508788913488388,
0.360914021730423,
0.2037588655948639,
0.3365457355976105,
0.5206013917922974,
-0.10590158402919769,
0.22139756381511688,
-0.5290888547897339,
0.35289978981018066,
0.3634748160839081,
0.8179839253425598,
-0.2111044079065323,
-0.17093761265277863,
0.03815750405192375,
-0.11082873493432999,
-0.3244958221912384,
-0.02764630876481533,
0.34986457228660583,
-0.3038276135921478,
0.5577998161315918,
-0.6025671362876892,
-0.5060826539993286,
-0.45143669843673706,
0.021116293966770172,
-0.07199615240097046,
-0.11113490164279938,
0.02679053321480751,
-0.0793379619717598,
0.20384715497493744,
0.3404904305934906,
0.4757581651210785,
-0.10106348991394043,
-0.3275686800479889,
0.20507310330867767,
-0.15561378002166748,
-0.46301335096359253,
-0.4531756639480591,
0.11245448142290115,
0.27693697810173035,
0.2156207412481308,
-0.028127066791057587,
0.13600656390190125,
0.019645163789391518,
0.03268475458025932,
0.33240634202957153,
0.2571537494659424,
0.20977844297885895,
0.30000531673431396,
0.12624216079711914,
-0.28362539410591125,
0.04354916512966156,
-0.03837934508919716,
0.016626296564936638,
0.17939788103103638,
-0.035248760133981705,
0.20058917999267578,
-0.1922214776277542,
-0.5734283924102783,
0.028257424011826515,
-0.16242247819900513,
-0.026857100427150726,
-0.10421259701251984,
0.01174483634531498,
0.3720722496509552,
-0.23376941680908203,
-0.033817026764154434,
-0.4144832193851471,
0.12903693318367004,
-0.024403883144259453,
-0.761401355266571,
-0.13534754514694214,
0.20018495619297028,
-0.15188156068325043,
0.15370260179042816,
0.3087082803249359,
-0.25763046741485596,
0.2571442425251007,
-0.232706680893898,
-0.05363385006785393,
-0.014496504329144955,
0.38221079111099243,
-0.24052029848098755,
0.35979312658309937,
0.30087170004844666,
-0.10034322738647461,
0.14360153675079346,
-0.0037028207443654537,
0.06776437163352966,
-0.27027738094329834,
0.2140786349773407,
-0.02404322661459446,
-0.7160577774047852,
0.13297729194164276,
0.030605729669332504,
-0.2915472984313965,
0.049824994057416916,
-0.018612556159496307,
0.26919159293174744,
0.10030637681484222,
-0.04243594780564308,
-0.02807755395770073,
0.10428311675786972,
-0.09310847520828247,
0.05695675313472748,
0.3539178967475891,
0.005456387531012297,
-0.3496732711791992,
-0.0455450639128685,
0.07576354593038559,
-0.22234277427196503,
-0.07823685556650162,
0.17968930304050446,
-0.35260266065597534,
0.28321152925491333,
-0.03499323129653931,
-0.051590122282505035,
0.6107291579246521,
-0.03300853073596954,
-0.3416728377342224,
0.050378162413835526,
0.03749682754278183,
-0.3896379768848419,
-0.10716883093118668,
0.1974390745162964,
0.13916727900505066,
0.0782245621085167,
-0.5371801257133484,
0.4953879714012146,
-0.004566460382193327,
-0.2572208344936371,
-0.09021462500095367,
-0.13359682261943817,
0.050974324345588684,
-0.03446189686655998,
0.31878435611724854,
0.5672200322151184,
0.0934516042470932,
0.21098455786705017,
-0.0654318630695343,
-0.18264691531658173,
0.17790566384792328,
0.14419767260551453,
0.18083789944648743,
-0.2567463219165802,
-0.10360566526651382,
-0.26432719826698303,
-0.3934878706932068,
0.28961268067359924,
0.01900920830667019,
-0.6332794427871704,
0.5450122952461243,
-0.1466408222913742,
-0.21262222528457642,
-0.28114989399909973,
0.19851943850517273,
-0.3874562978744507,
-0.06836061924695969,
-0.07877140492200851,
0.5183344483375549,
-0.2221154123544693,
-0.4332067668437958,
0.24598632752895355,
-0.038842856884002686,
-0.008598089218139648,
-0.03470999747514725,
-0.07734829187393188,
-0.01362636499106884,
0.23322774469852448,
-0.07802555710077286,
-0.23260407149791718,
-0.1438826620578766,
-0.07709308713674545,
0.001028910162858665,
0.2435716837644577,
-0.1894330382347107,
-0.03823838382959366,
-0.057995542883872986,
0.44801637530326843,
0.11334406584501266,
-0.1220167949795723,
0.0389685221016407,
-0.12640777230262756,
0.03787975758314133,
0.05921703577041626,
-0.26916274428367615,
0.4455898404121399,
-0.042580801993608475,
0.13046737015247345,
0.04025468975305557,
-0.07881210744380951,
0.203436017036438,
-0.374523401260376,
0.014410366304218769,
-0.26025864481925964,
0.053886353969573975,
-0.16444461047649384,
0.33521339297294617,
-0.03823931887745857,
-0.2119157612323761,
-0.11002916842699051,
0.14151203632354736,
0.07418989390134811,
0.018070906400680542,
-0.10578226298093796,
-0.16951704025268555,
-0.0013914222363382578,
0.18381518125534058,
0.18740656971931458,
0.373381108045578,
0.055443357676267624,
0.37420573830604553,
0.17276068031787872,
0.08357805013656616,
-0.03223713859915733,
0.05898750200867653,
-0.24225419759750366,
-0.18201373517513275,
-0.03363677114248276,
-0.35632646083831787,
-0.1824301928281784,
-0.1795850247144699,
0.4001225531101227,
0.12011627107858658,
-0.045422859489917755,
-0.17487163841724396,
0.01626749522984028,
-0.4271828830242157,
-0.04919802397489548,
-0.04826340451836586,
0.13937559723854065,
-0.10468901693820953,
0.21753492951393127,
0.06364202499389648,
0.17977260053157806,
-0.033021751791238785,
0.08580215275287628,
-0.2827940285205841,
0.48514842987060547,
-0.3380613923072815,
0.07533103972673416,
-0.05370175838470459,
-0.14759282767772675,
-0.069603331387043,
0.10151834785938263,
0.12138628959655762,
0.14349830150604248,
0.3591326177120209,
-0.08731476217508316,
-0.1552485078573227,
-0.32423391938209534,
0.11373461037874222,
-0.020188260823488235,
0.456411212682724,
-0.04269170016050339,
-0.16630606353282928,
0.5134201645851135,
0.16451233625411987,
0.11842881143093109,
-0.18026259541511536,
-0.22821640968322754,
-0.3151455521583557,
-0.17132239043712616,
0.20472390949726105,
0.22880887985229492,
-0.18348407745361328,
-0.22065997123718262,
-0.3584466874599457,
-0.15974412858486176,
0.11364949494600296,
-0.10769585520029068,
0.19319303333759308,
0.22256022691726685,
-0.01693957857787609,
-0.23973774909973145,
-0.3206495940685272,
0.04033884033560753,
-0.22679796814918518,
-0.3674768805503845,
0.2391417920589447,
-0.04141370579600334,
-0.25983530282974243,
0.17996495962142944,
-0.07110435515642166,
0.03220093250274658,
0.3513367474079132,
-0.37241101264953613,
-0.15652312338352203,
0.06505551934242249,
-0.09567379951477051,
-0.1702403575181961,
-0.06970440596342087,
0.2953813672065735,
-0.5932692289352417,
0.10543251037597656,
0.0074930754490196705,
-0.05877315253019333,
-0.05025995150208473,
0.024557052180171013,
0.22466689348220825,
0.0605241023004055,
0.12988974153995514,
0.3504846394062042,
0.8538562059402466,
-0.1514461189508438,
-0.1626928150653839,
0.015422430820763111,
0.08801889419555664,
0.4468534290790558,
-0.03791831433773041,
-0.07486977428197861,
0.2885403633117676,
-0.04939126595854759,
-0.28894999623298645,
0.02681330405175686,
-0.1392238736152649,
-0.10486861318349838,
-0.3318146765232086,
0.050577569752931595,
-0.011321251280605793,
-0.013927079737186432,
0.0929989367723465,
-0.1182701513171196,
0.08119548857212067,
0.5327094793319702,
0.018740449100732803,
0.013738729991018772,
-0.11024290323257446,
0.29599839448928833,
0.05838574096560478,
0.1100257933139801,
0.11785107105970383,
-0.5235834121704102,
-0.16305597126483917,
-0.09819694608449936,
0.0888543352484703,
-0.22713086009025574,
-0.07141193002462387,
0.03454016149044037,
0.03168501704931259,
0.23606160283088684,
0.10143886506557465,
0.5184102654457092,
-0.20110458135604858,
0.2330280840396881,
-0.18854530155658722,
-0.3180355429649353,
0.06453157216310501,
-0.19065353274345398,
0.09452395886182785,
-0.07631966471672058,
0.07637345045804977,
0.00735654728487134,
-0.1936407834291458,
-0.01876305416226387,
-0.06994205713272095,
0.23332908749580383,
-0.366506963968277,
0.06821604073047638,
0.047265395522117615,
-0.011143136769533157,
0.029032457619905472,
0.4540620744228363,
0.11341381072998047,
-0.0058892956003546715,
0.36451420187950134,
0.07312966883182526,
-0.35488107800483704,
0.09758436679840088,
0.09190645068883896,
0.34256601333618164,
0.09172027558088303,
0.05676484853029251,
0.14303679764270782,
0.1277787685394287,
0.1461900770664215,
0.07648005336523056,
0.22140304744243622,
0.011714991182088852,
-0.19093537330627441,
-0.062356747686862946,
0.0023005057591944933,
0.1911739706993103,
0.17072589695453644,
-0.08378756791353226,
-0.27951085567474365,
0.38046786189079285,
-0.09152214229106903,
-0.22606417536735535,
0.486137330532074,
-0.3498319983482361,
-0.2019871473312378,
-0.2566848397254944,
-0.3647644519805908,
0.17655038833618164,
0.07982187718153,
-0.08599422872066498,
0.33061811327934265,
-0.2526828348636627,
-0.10094329714775085,
-0.23970961570739746,
0.4438515603542328,
0.86100834608078,
-0.12279324978590012,
0.20629562437534332,
-0.3994807302951813,
-0.2029978185892105,
0.3680363595485687,
-0.5688806176185608,
0.05696181580424309,
-0.2196459174156189,
-0.7584598660469055,
-0.29061123728752136,
-0.25420233607292175,
0.18654896318912506,
0.3905203342437744,
0.24561676383018494,
0.24059782922267914,
0.1417122632265091,
0.49280720949172974,
0.12051187455654144,
0.1755271703004837,
0.1043289303779602,
-0.02887631021440029,
0.07134402543306351,
0.022588597610592842,
-0.12703758478164673,
0.27086490392684937,
-0.1556709110736847,
0.09180551022291183,
0.057195279747247696,
-0.03729748725891113,
-0.30125901103019714,
0.04893706366419792,
-0.46067529916763306,
-0.24964410066604614,
-0.1814269870519638,
-0.05147150158882141,
-0.013131780549883842,
0.43944644927978516,
0.5612176656723022,
0.22548523545265198,
-0.25421541929244995,
0.24225583672523499,
0.0651293396949768,
0.08861185610294342,
-0.246274933218956,
0.018190840259194374,
0.0016429465031251311,
-0.3460487723350525,
0.14013203978538513,
0.4257400333881378,
-0.09959100931882858,
-0.2508586049079895,
0.03732682392001152,
0.1967257261276245,
-0.08068445324897766,
-0.11191753298044205,
-0.16108982264995575,
0.11513496935367584,
0.3356597423553467,
-0.006050273310393095,
0.04896457493305206,
0.3836345374584198,
-0.34826233983039856,
0.20783013105392456,
-0.14325948059558868,
-0.31189846992492676,
-0.0696333795785904,
0.4085511863231659,
0.26087790727615356,
-0.20658697187900543,
0.24441513419151306,
-0.6133477091789246,
-0.07046926766633987,
-0.20923355221748352,
-0.021969987079501152,
0.19121266901493073,
-0.16492731869220734,
0.0004839159664697945,
-0.21335776150226593,
-0.40108394622802734,
-0.34025171399116516,
0.04907030612230301,
0.3917351961135864,
0.19112440943717957,
-0.18818791210651398,
-0.2655118703842163,
-0.23197045922279358,
0.051117975264787674,
-0.10822514444589615,
0.3742310404777527,
-0.062148284167051315,
-0.01692196913063526,
-0.1252293437719345,
0.4188048243522644,
-0.18443197011947632,
-0.17766599357128143,
-0.005334146320819855,
0.25315600633621216,
-0.167404904961586,
0.1499565839767456,
-0.0022155374754220247,
-0.1374548226594925,
-0.17547065019607544,
0.028130121529102325,
-0.34563082456588745,
-0.14691062271595,
-0.07462415099143982,
0.19917093217372894,
-0.008558436296880245,
0.03843369707465172,
0.11710255593061447,
0.040287479758262634,
-0.05683699995279312,
0.052002809941768646,
0.20149262249469757,
-0.012229993008077145,
0.25753992795944214,
0.2684282660484314,
0.45379313826560974,
-0.018110018223524094,
-0.5937930345535278,
-0.009500043466687202,
0.07445192337036133,
0.22089003026485443,
0.03988828882575035,
0.4148596525192261,
0.01692519336938858,
-0.053888000547885895,
-0.3319830894470215,
-0.1668199598789215,
0.05327991768717766,
-0.1499510109424591,
-0.039805520325899124,
0.1185954362154007,
0.14689722657203674,
-0.023799829185009003,
0.19886597990989685,
0.8052162528038025,
-0.09248814731836319,
0.22915124893188477,
0.5309457182884216,
0.11367586255073547,
0.00402927165850997,
-0.18609052896499634,
0.3704558312892914,
-0.304172158241272,
-0.18236960470676422,
0.1436481922864914,
0.11347413808107376,
0.19580847024917603,
0.4399094879627228,
-0.0908522829413414,
0.1677696704864502,
-0.23482158780097961,
0.016801495105028152,
0.436586856842041,
-0.026141773909330368,
-0.1989736407995224,
0.11531159281730652,
0.25904202461242676,
0.20690962672233582,
0.035178929567337036,
-0.12562572956085205,
0.1561606526374817,
0.1670108586549759,
0.2003987580537796,
-0.1934620440006256,
-0.23566697537899017,
-0.0692506805062294,
0.16923119127750397,
-0.08887075632810593,
0.12843774259090424,
-0.18442153930664062,
-0.32541078329086304,
0.25705698132514954,
-0.42995885014533997,
-0.2986116409301758,
0.01708810403943062,
0.19217011332511902,
-0.07248685508966446,
-0.2084238976240158,
0.00670399097725749,
0.2563120424747467,
0.3134521543979645,
0.1623130589723587,
-0.41597265005111694,
0.24703814089298248,
0.10646364092826843,
-0.097242571413517,
0.21710677444934845,
0.28171679377555847,
0.1689365953207016,
-0.09128697961568832,
-0.134613037109375,
0.15518029034137726,
-0.25955235958099365,
-0.0017360232304781675,
0.31581243872642517,
0.23927633464336395,
-0.2397792786359787,
-0.06781528145074844,
0.22925835847854614,
0.014196787029504776,
0.08870770782232285,
-0.019853267818689346,
-0.276579350233078,
0.2951286733150482,
0.18548952043056488,
0.04110876843333244,
0.2854757308959961,
0.017252232879400253,
0.014039169996976852,
0.4403684437274933,
-0.3901267945766449,
0.20034652948379517,
-0.5645315051078796,
0.040173403918743134,
0.6362972855567932,
-0.16027837991714478,
0.1644347459077835,
0.06626361608505249,
0.056820522993803024,
-0.028910435736179352,
-0.09938359260559082,
-0.21323004364967346,
0.13085278868675232,
0.15426646173000336,
-0.003908801358193159,
-0.26299506425857544,
0.5772282481193542,
0.06706572324037552,
0.09503456205129623,
-0.1848515123128891,
0.05803326889872551,
-0.34191077947616577,
0.1647651046514511,
-0.07586565613746643,
0.043541911989450455,
0.07810623943805695,
0.12365331500768661,
0.126008078455925,
0.5432233214378357,
-0.06590539216995239,
-0.016243284568190575,
-0.03206807002425194,
0.504550039768219,
-0.1067461371421814,
0.14571015536785126,
0.08739224821329117,
0.5286425948143005,
0.13068412244319916,
-0.22847980260849,
0.41679754853248596,
0.11578359454870224,
-0.15635178983211517,
0.39525675773620605,
-0.10518547147512436,
0.43802931904792786,
0.32763850688934326,
0.5421129465103149,
-0.05631541833281517,
0.21710780262947083,
0.0971885621547699,
0.18750488758087158,
-0.03577912598848343,
0.19166603684425354,
-0.43457308411598206,
-0.04358627647161484,
0.19062596559524536,
-0.13639472424983978,
-0.5238881707191467,
0.031088434159755707,
-0.152483269572258,
0.2835087776184082,
-0.024535659700632095,
-0.10286898165941238,
0.21823443472385406,
-0.3127637505531311,
0.04781404510140419,
0.18078714609146118,
0.42469522356987,
0.17292435467243195,
-0.25991153717041016,
-0.25854116678237915,
-0.37705352902412415,
0.13918937742710114,
0.42957696318626404,
-0.08863180875778198,
-0.20418472588062286,
-0.1264173537492752,
0.3098582923412323,
0.21691645681858063,
-0.2114596664905548,
-0.435421347618103,
0.09232146292924881,
0.2990783751010895,
-0.3669799864292145,
-0.17880907654762268,
0.20191071927547455,
0.09158098697662354,
0.020091313868761063,
-0.1414799690246582,
0.4481547474861145,
0.06117907539010048,
-0.3696346879005432,
-0.49829965829849243,
-0.3521563410758972
] |
https://github.com/huggingface/datasets/issues/880 | Add SQA | I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq | ## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 16 | Add SQA
## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq | [
-0.06400924175977707,
-0.2312077432870865,
-0.20991787314414978,
-0.12106953561306,
0.09991472959518433,
-0.19758279621601105,
0.03379734233021736,
0.3069656491279602,
0.14835992455482483,
0.05626997724175453,
-0.16755640506744385,
-0.0026325518265366554,
-0.07126069813966751,
0.5443828105926514,
0.150016650557518,
-0.10455302149057388,
0.027217866852879524,
0.14283211529254913,
-0.2944614589214325,
0.07118602097034454,
-0.19629377126693726,
0.09148632735013962,
0.02157135121524334,
0.03122973069548607,
-0.23689031600952148,
-0.08445476740598679,
-0.1073179692029953,
-0.1923377960920334,
-0.19041138887405396,
-0.19726994633674622,
0.005409048870205879,
0.07224737852811813,
0.16864219307899475,
0.2730420231819153,
-0.0001059325149981305,
-0.13431204855442047,
-0.07519984245300293,
-0.09753291308879852,
-0.09391951560974121,
0.050661176443099976,
-0.1607964038848877,
0.09261234849691391,
-0.11105172336101532,
-0.07712948322296143,
-0.5252555012702942,
0.20419028401374817,
-0.07481002807617188,
-0.3007480502128601,
0.5820877552032471,
0.2628433406352997,
0.21861302852630615,
0.09285739064216614,
0.07511736452579498,
-0.2174711972475052,
0.375223308801651,
0.004957912024110556,
-0.35867664217948914,
-0.006589522119611502,
0.40213820338249207,
-0.34805169701576233,
0.05484028905630112,
0.4530361592769623,
0.2656967043876648,
-0.22763250768184662,
0.15250688791275024,
0.12550365924835205,
0.2736349105834961,
0.03347942233085632,
0.06746555119752884,
0.2694990336894989,
0.3335780203342438,
-0.09275410324335098,
-0.1821044683456421,
-0.1886141300201416,
0.014418118633329868,
0.12352533638477325,
-0.2833784818649292,
0.11862477660179138,
-0.34903788566589355,
0.016779450699687004,
-0.18077439069747925,
-0.24538636207580566,
-0.34967151284217834,
0.10179859399795532,
0.017914878204464912,
0.5167183876037598,
-0.019233619794249535,
-0.1948670744895935,
-0.08310758322477341,
-0.13312749564647675,
-0.04276922717690468,
-0.04725288227200508,
0.24435943365097046,
0.2530234158039093,
-0.5382788777351379,
-0.27205121517181396,
0.2136118859052658,
0.11504468321800232,
0.24359571933746338,
0.1921222060918808,
0.4720073342323303,
-0.07239045947790146,
0.03146436810493469,
-0.29650601744651794,
0.16723544895648956,
0.47812631726264954,
-0.00351366656832397,
0.04268709942698479,
-0.1635618954896927,
0.11457343399524689,
0.06965649127960205,
0.018535181879997253,
0.011364066042006016,
0.4373466968536377,
-0.2889094948768616,
0.033233363181352615,
0.12173600494861603,
0.07776492089033127,
-0.3187231123447418,
0.20002815127372742,
-0.22166064381599426,
-0.08587147295475006,
-0.04617723822593689,
0.3067343831062317,
-0.27222153544425964,
0.09639573842287064,
0.16178590059280396,
0.15257522463798523,
0.037624020129442215,
-0.12058380991220474,
-0.09929121285676956,
-0.13813722133636475,
-0.13890644907951355,
0.32762467861175537,
0.2592456340789795,
0.07565723359584808,
-0.11824098229408264,
-0.11058980971574783,
0.12366773933172226,
0.06711245328187943,
-0.11901883035898209,
-0.12577806413173676,
0.2719293236732483,
0.006378594785928726,
-0.11961767077445984,
-0.24746476113796234,
0.00698838522657752,
-0.18556036055088043,
-0.08260902017354965,
0.20460982620716095,
0.0866256058216095,
0.08225955069065094,
-0.045844465494155884,
0.29353511333465576,
-0.035112377256155014,
-0.33789563179016113,
0.05606437101960182,
0.3847607672214508,
0.05440683662891388,
-0.07861163467168808,
0.161203995347023,
0.07706886529922485,
-0.16406841576099396,
-0.06991907954216003,
0.26800447702407837,
0.16236649453639984,
0.04373816028237343,
0.01791762374341488,
-0.0602714940905571,
0.2952127754688263,
-0.40492263436317444,
0.15581069886684418,
0.1623995155096054,
0.492461621761322,
0.1605459451675415,
0.4469805359840393,
-0.3020619750022888,
0.042210087180137634,
-0.05108436197042465,
-0.10682536661624908,
-0.06116536632180214,
0.26195234060287476,
-0.023306328803300858,
0.2226986140012741,
0.17959220707416534,
-0.09816913306713104,
0.12476261705160141,
0.2569144666194916,
-0.24345122277736664,
-0.03648955374956131,
-0.26056379079818726,
-0.32094401121139526,
-0.1499195545911789,
0.5569956302642822,
-0.008157252334058285,
-0.09472591429948807,
-0.15036310255527496,
-0.22697335481643677,
0.08971980214118958,
-0.24181555211544037,
-0.10534577071666718,
-0.2026325911283493,
0.41813814640045166,
-0.18168655037879944,
0.06699065119028091,
-0.5491580367088318,
-0.5756070017814636,
-0.14826148748397827,
-0.1463884860277176,
0.2786494195461273,
0.03390658646821976,
-0.45097869634628296,
-0.3733324706554413,
0.13270162045955658,
0.007506455760449171,
-0.034304700791835785,
0.24797014892101288,
0.1869213581085205,
0.24281655251979828,
-0.050018951296806335,
-0.0937465950846672,
0.1550152450799942,
-0.04245217144489288,
-0.11471200734376907,
-0.1329624503850937,
0.19868989288806915,
-0.12259843200445175,
0.045611750334501266,
-0.018567832186818123,
0.31479138135910034,
-0.13383764028549194,
0.17513792216777802,
0.33474037051200867,
0.15507446229457855,
-0.1319170892238617,
-0.2625656723976135,
0.0805613324046135,
0.47349926829338074,
0.03268872946500778,
-0.05275547504425049,
-0.19237616658210754,
0.49938830733299255,
0.12382878363132477,
-0.09807749837636948,
-0.2853281497955322,
0.4043613076210022,
-0.1816481202840805,
0.26818880438804626,
0.15086770057678223,
0.034650154411792755,
-0.011713355779647827,
-0.08246668428182602,
-0.13106980919837952,
0.14973938465118408,
0.4146444499492645,
0.13672199845314026,
-0.2725355625152588,
-0.06834014505147934,
-0.336194783449173,
0.39720645546913147,
0.291821151971817,
-0.2563176155090332,
0.33813950419425964,
0.09304632991552353,
-0.04481152445077896,
-0.09962400794029236,
0.017471447587013245,
0.18983334302902222,
0.1904861181974411,
0.2655976116657257,
-0.13405755162239075,
0.1325652301311493,
-0.03513098880648613,
-0.13049273192882538,
0.0047887349501252174,
0.07298614829778671,
-0.10768182575702667,
0.359382301568985,
0.3060603737831116,
0.11291344463825226,
-0.08751466125249863,
-0.08116643130779266,
-0.2993248999118805,
-0.04683965817093849,
-0.02178509533405304,
0.17938034236431122,
0.21822267770767212,
-0.22646404802799225,
0.033400822430849075,
-0.3110872507095337,
0.01576739363372326,
0.011647650972008705,
0.6521466374397278,
-0.13621290028095245,
-0.19080083072185516,
0.22196640074253082,
0.07426076382398605,
0.9107957482337952,
-0.16975855827331543,
-0.04776814952492714,
-0.22346600890159607,
-0.27869027853012085,
0.12758620083332062,
0.3061980605125427,
0.0774175375699997,
-0.046122707426548004,
0.505206286907196,
-0.18181034922599792,
0.3880176544189453,
-0.08808878064155579,
-0.36542630195617676,
0.09200013428926468,
-0.020826496183872223,
0.08689825981855392,
-0.013521301560103893,
0.05195643752813339,
-0.24621228873729706,
-0.31175756454467773,
0.09624476730823517,
-0.2440950721502304,
-0.10636698454618454,
-0.04039007052779198,
0.21756304800510406,
-0.09077548235654831,
-0.1126226931810379,
-0.49637922644615173,
-0.061772290617227554,
-0.3034152090549469,
0.476081907749176,
0.22979925572872162,
-0.028861025348305702,
-0.01942834071815014,
-0.07751088589429855,
0.034369274973869324,
-0.15266065299510956,
0.10680725425481796,
-0.21560950577259064,
0.16385485231876373,
0.2227654606103897,
-0.12402556091547012,
-0.2118234932422638,
-0.494314968585968,
-0.31104427576065063,
-0.023798219859600067,
0.07631339132785797,
-0.17100806534290314,
-0.06842819601297379,
-0.2200554758310318,
0.0027599174063652754,
-0.15199518203735352,
0.13273872435092926,
0.4515959918498993,
-0.07667925953865051,
-0.20750588178634644,
-0.05131297931075096,
0.20858757197856903,
0.5510804653167725,
0.06167902052402496,
-0.159629687666893,
0.13309338688850403,
0.2265029400587082,
0.03263760730624199,
0.6488926410675049,
0.05898067355155945,
0.0846872627735138,
0.25852927565574646,
0.06455818563699722,
-0.11768729984760284,
-0.2783656716346741,
0.07523423433303833,
-0.19348715245723724,
-0.15774331986904144,
0.09850514680147171,
0.475858211517334,
0.2683970034122467,
0.04499305412173271,
-0.15292125940322876,
0.12534353137016296,
-0.2520802617073059,
-0.19791553914546967,
0.40554338693618774,
0.037006549537181854,
0.4625873565673828,
-0.08751990646123886,
-0.1534029096364975,
0.007968290708959103,
-0.3550320267677307,
0.09139807522296906,
-0.09228979796171188,
0.025874920189380646,
-0.4211962819099426,
-0.5453459024429321,
-0.21823592483997345,
-0.2534327805042267,
0.36966627836227417,
0.45437121391296387,
-0.010351216420531273,
-0.07004683464765549,
-0.43529900908470154,
-0.08193128556013107,
-0.0756269097328186,
0.17006915807724,
0.06222923472523689,
-0.35149312019348145,
0.012109908275306225,
-0.24428077042102814,
0.07734377682209015,
0.1962990164756775,
-0.33589228987693787,
-0.3367528021335602,
-0.05380019545555115,
0.38742613792419434,
-0.35626184940338135,
0.0581250824034214,
0.2264222353696823,
-0.048667892813682556,
-0.05624334514141083,
0.008691934868693352,
-0.08542239665985107,
-0.12642928957939148,
0.00511836726218462,
0.2333192378282547,
0.36871495842933655,
0.03640357777476311,
0.22352299094200134,
-0.03960385173559189,
-0.09243983775377274,
-0.036127857863903046,
0.02632020227611065,
0.1368790715932846,
0.08308257907629013,
0.0011648389045149088,
0.12474332004785538,
-0.14307060837745667,
-0.197737917304039,
-0.0488722063601017,
0.40018153190612793,
-0.20859244465827942,
-0.06987060606479645,
-0.1505303531885147,
-0.15440547466278076,
-0.021156614646315575,
0.24885691702365875,
0.10119927674531937,
0.3039301931858063,
0.03486312925815582,
0.13763932883739471,
-0.2829015851020813,
-0.17388352751731873,
-0.15080763399600983,
-0.005853779148310423,
0.11366846412420273,
-0.13432109355926514,
0.46861714124679565,
-0.27426764369010925,
-0.2376135140657425,
-0.03224104642868042,
0.4683000147342682,
-0.1962360292673111,
0.10280074179172516,
0.015681032091379166,
1.031785011291504,
-0.16589432954788208,
0.37110885977745056,
0.14158892631530762,
-0.09747331589460373,
0.2048790454864502,
-0.3503005802631378,
0.1448190063238144,
-0.13106761872768402,
-0.359312504529953,
-0.05615685507655144,
0.039952583611011505,
-0.08056210726499557,
-0.004561653360724449,
-0.39126574993133545,
0.13894930481910706,
0.1756032258272171,
0.36668476462364197,
0.2946526110172272,
0.25843295454978943,
0.0696527510881424,
-0.01526282075792551,
-0.5002796053886414,
0.2108229249715805,
0.11168477684259415,
-0.23970343172550201,
-0.05027763545513153,
0.048144564032554626,
-0.13714033365249634,
-0.12770210206508636,
-0.19424840807914734,
0.07074715197086334,
-0.43007099628448486,
-0.04620267450809479,
0.2861475348472595,
-0.10574480891227722,
0.11062406748533249,
0.21241572499275208,
-0.02672814577817917,
-0.06047860160470009,
-0.39435088634490967,
0.010163896717131138,
-0.26562345027923584,
0.22791913151741028,
0.07281944155693054,
-0.02910257689654827,
0.2924782633781433,
-0.2039586454629898,
-0.11701728403568268,
0.22735652327537537,
0.33631137013435364,
-0.47573423385620117,
-0.4612279236316681,
0.07218043506145477,
0.3284939229488373,
-0.12560421228408813,
0.008526555262506008,
0.12944144010543823,
-0.11915677785873413,
-0.14173626899719238,
0.2308952808380127,
0.06010224297642708,
0.05940723046660423,
0.10530399531126022,
0.4885712265968323,
-0.17892777919769287,
-0.035729777067899704,
0.11766193807125092,
0.41076210141181946,
-0.03855237737298012,
0.24713249504566193,
0.302837997674942,
-0.2766367495059967,
-0.43917566537857056,
-0.10437660664319992,
0.23837752640247345,
-0.4756163954734802,
-0.02995186299085617,
-0.16431266069412231,
-0.3447367250919342,
-0.033302027732133865,
0.5254303812980652,
0.40611904859542847,
-0.09939495474100113,
-0.06070910766720772,
-0.052086587995290756,
0.10303890705108643,
0.6272663474082947,
0.33722826838493347,
0.1448052078485489,
0.09635943919420242,
-0.18211320042610168,
-0.08785884082317352,
0.24476151168346405,
-0.45429497957229614,
-0.09256471693515778,
-0.3687010109424591,
0.24349746108055115,
-0.0720837339758873,
-0.2631468176841736,
0.27225837111473083,
0.06147606298327446,
0.14261366426944733,
-0.10436496883630753,
-0.39494773745536804,
-0.4038263261318207,
0.059707120060920715,
0.09715493023395538,
0.13802072405815125,
-0.05525203049182892,
-0.15080571174621582,
-0.14379754662513733,
-0.09282303601503372,
-0.13153870403766632,
0.054268281906843185,
-0.33404573798179626,
0.011097686365246773,
-0.17889799177646637,
0.03633175045251846,
-0.12402798235416412,
-0.18147683143615723,
0.00995301641523838,
-0.20889301598072052,
-0.18226061761379242,
0.13467839360237122,
-0.03924187645316124,
0.059743061661720276,
-0.06569282710552216,
0.07994000613689423,
0.5429310202598572,
0.49983376264572144,
-0.15789680182933807,
0.059122081845998764,
0.0836746096611023,
-0.31548935174942017,
-0.04431573674082756,
0.27736055850982666,
-0.08318038284778595,
-0.11817346513271332,
0.08423849195241928,
0.1406010091304779,
0.33858346939086914,
-0.4173092544078827,
-0.07553387433290482,
-0.07988579571247101,
-0.20253391563892365,
0.3330044150352478,
0.26379895210266113,
-0.08641274273395538,
-0.09990517795085907,
0.3682371973991394,
0.21497118473052979,
-0.03560183197259903,
-0.0385456457734108,
0.17312154173851013,
0.19376520812511444,
0.2517060339450836,
0.0641474574804306,
-0.018477002158761024,
-0.014470125548541546,
-0.1412949115037918,
-0.033426616340875626,
-0.2027125507593155,
0.14487864077091217,
-0.05256293714046478,
0.07548627257347107,
0.2267361730337143,
0.38094842433929443,
-0.008971031755208969,
0.19590595364570618,
-0.1053646057844162,
0.14689405262470245,
0.2529245615005493,
0.07748047262430191,
0.1793920397758484,
-0.022717222571372986,
-0.4215109944343567,
-0.1569175273180008,
0.10768093913793564,
-0.14976970851421356,
0.06964652240276337,
-0.242684006690979,
-0.37097811698913574,
-0.12688501179218292,
-0.08962798118591309,
-0.040899429470300674,
0.5435216426849365,
-0.163598895072937,
0.17390944063663483,
-0.0686829537153244,
0.04791998490691185,
0.06702268123626709,
0.3332654535770416,
-0.09288337826728821,
0.2201659083366394,
0.21919777989387512,
0.32391178607940674,
0.03367193415760994,
0.47499507665634155,
-0.002597381127998233,
0.23134921491146088,
-0.40865859389305115,
0.3700209856033325,
-0.22056125104427338,
-0.15243522822856903,
-0.06044945865869522,
0.24555644392967224,
0.2833978831768036,
-0.04615631699562073,
0.2276705652475357,
0.2533397376537323,
-0.294352263212204,
0.2517372667789459,
-0.012922856956720352,
0.03222423046827316,
-0.28536033630371094,
0.11916039139032364,
-0.05434984341263771,
-0.046074029058218,
-0.049511633813381195,
-0.06128408759832382,
-0.5117422342300415,
0.1801472306251526,
-0.2863974869251251,
-0.29686763882637024,
-0.012535340152680874,
-0.07364827394485474,
0.12881295382976532,
-0.187611386179924,
0.275515079498291,
0.23958820104599,
0.42375239729881287,
-0.051050473004579544,
-0.36064407229423523,
-0.04626051336526871,
-0.14188534021377563,
0.1449589878320694,
-0.11670402437448502,
0.15624110400676727,
-0.03633412346243858,
0.21648776531219482,
0.3477034866809845,
-0.1118953675031662,
-0.3725242614746094,
-0.3810082674026489,
0.23647040128707886,
-0.40078073740005493,
0.3359994888305664,
0.17422927916049957,
0.09775442630052567,
0.17200185358524323,
-0.3217594623565674,
-0.04275403171777725,
0.01274480763822794,
0.178507000207901,
0.05821944773197174,
0.15629024803638458,
0.03902377933263779,
-0.21072225272655487,
-0.11474974453449249,
0.02979242615401745,
0.3679978549480438,
-0.175237238407135,
-0.18964286148548126,
0.22728250920772552,
-0.24851778149604797,
-0.19828055799007416,
0.042505308985710144,
0.3440338969230652,
0.3117298185825348,
-0.041538581252098083,
-0.3080856502056122,
0.3648127019405365,
0.0051476298831403255,
0.1454780101776123,
0.42139172554016113,
-0.1411506086587906,
0.09803661704063416,
0.0003455458499956876,
-0.07008850574493408,
-0.07283848524093628,
0.12196187674999237,
-0.04295976459980011,
0.08873334527015686,
0.06023899465799332,
-0.20106837153434753,
0.344804584980011,
-0.09215936809778214,
-0.21583938598632812,
0.026481090113520622,
0.043216608464717865,
0.08770854771137238,
-0.15869779884815216,
-0.5564059019088745,
-0.09048891812562943,
0.19629435241222382,
-0.012718971818685532,
-0.0732562392950058,
0.6972963809967041,
0.08562907576560974,
-0.14791834354400635,
-0.12988561391830444,
0.16286712884902954,
0.062237001955509186,
-0.12792614102363586,
-0.3026590347290039,
-0.5541505217552185
] |
https://github.com/huggingface/datasets/issues/880 | Add SQA | @thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings:
```
import pandas as pd
import ast
data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t')
def _parse_answer_coordinates(answer_coordinate_str):
"""Parses the answer_coordinates of a question.
Args:
answer_coordinate_str: A string representation of a Python list of tuple
strings.
For example: "['(1, 4)','(1, 3)', ...]"
"""
try:
answer_coordinates = []
# make a list of strings
coords = ast.literal_eval(answer_coordinate_str)
# parse each string as a tuple
for row_index, column_index in sorted(
ast.literal_eval(coord) for coord in coords):
answer_coordinates.append((row_index, column_index))
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_coordinate_str)
return answer_coordinates
def _parse_answer_text(answer_text):
"""Populates the answer_texts field of `answer` by parsing `answer_text`.
Args:
answer_text: A string representation of a Python list of strings.
For example: "[u'test', u'hello', ...]"
"""
try:
answer = []
for value in ast.literal_eval(answer_text):
answer.append(value)
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_text)
return answer
data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str))
data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt))
```
Here I'm using Pandas to read in one of the TSV files (the dev set).
| ## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 185 | Add SQA
## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
@thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings:
```
import pandas as pd
import ast
data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t')
def _parse_answer_coordinates(answer_coordinate_str):
"""Parses the answer_coordinates of a question.
Args:
answer_coordinate_str: A string representation of a Python list of tuple
strings.
For example: "['(1, 4)','(1, 3)', ...]"
"""
try:
answer_coordinates = []
# make a list of strings
coords = ast.literal_eval(answer_coordinate_str)
# parse each string as a tuple
for row_index, column_index in sorted(
ast.literal_eval(coord) for coord in coords):
answer_coordinates.append((row_index, column_index))
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_coordinate_str)
return answer_coordinates
def _parse_answer_text(answer_text):
"""Populates the answer_texts field of `answer` by parsing `answer_text`.
Args:
answer_text: A string representation of a Python list of strings.
For example: "[u'test', u'hello', ...]"
"""
try:
answer = []
for value in ast.literal_eval(answer_text):
answer.append(value)
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_text)
return answer
data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str))
data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt))
```
Here I'm using Pandas to read in one of the TSV files (the dev set).
| [
-0.06400924175977707,
-0.2312077432870865,
-0.20991787314414978,
-0.12106953561306,
0.09991472959518433,
-0.19758279621601105,
0.03379734233021736,
0.3069656491279602,
0.14835992455482483,
0.05626997724175453,
-0.16755640506744385,
-0.0026325518265366554,
-0.07126069813966751,
0.5443828105926514,
0.150016650557518,
-0.10455302149057388,
0.027217866852879524,
0.14283211529254913,
-0.2944614589214325,
0.07118602097034454,
-0.19629377126693726,
0.09148632735013962,
0.02157135121524334,
0.03122973069548607,
-0.23689031600952148,
-0.08445476740598679,
-0.1073179692029953,
-0.1923377960920334,
-0.19041138887405396,
-0.19726994633674622,
0.005409048870205879,
0.07224737852811813,
0.16864219307899475,
0.2730420231819153,
-0.0001059325149981305,
-0.13431204855442047,
-0.07519984245300293,
-0.09753291308879852,
-0.09391951560974121,
0.050661176443099976,
-0.1607964038848877,
0.09261234849691391,
-0.11105172336101532,
-0.07712948322296143,
-0.5252555012702942,
0.20419028401374817,
-0.07481002807617188,
-0.3007480502128601,
0.5820877552032471,
0.2628433406352997,
0.21861302852630615,
0.09285739064216614,
0.07511736452579498,
-0.2174711972475052,
0.375223308801651,
0.004957912024110556,
-0.35867664217948914,
-0.006589522119611502,
0.40213820338249207,
-0.34805169701576233,
0.05484028905630112,
0.4530361592769623,
0.2656967043876648,
-0.22763250768184662,
0.15250688791275024,
0.12550365924835205,
0.2736349105834961,
0.03347942233085632,
0.06746555119752884,
0.2694990336894989,
0.3335780203342438,
-0.09275410324335098,
-0.1821044683456421,
-0.1886141300201416,
0.014418118633329868,
0.12352533638477325,
-0.2833784818649292,
0.11862477660179138,
-0.34903788566589355,
0.016779450699687004,
-0.18077439069747925,
-0.24538636207580566,
-0.34967151284217834,
0.10179859399795532,
0.017914878204464912,
0.5167183876037598,
-0.019233619794249535,
-0.1948670744895935,
-0.08310758322477341,
-0.13312749564647675,
-0.04276922717690468,
-0.04725288227200508,
0.24435943365097046,
0.2530234158039093,
-0.5382788777351379,
-0.27205121517181396,
0.2136118859052658,
0.11504468321800232,
0.24359571933746338,
0.1921222060918808,
0.4720073342323303,
-0.07239045947790146,
0.03146436810493469,
-0.29650601744651794,
0.16723544895648956,
0.47812631726264954,
-0.00351366656832397,
0.04268709942698479,
-0.1635618954896927,
0.11457343399524689,
0.06965649127960205,
0.018535181879997253,
0.011364066042006016,
0.4373466968536377,
-0.2889094948768616,
0.033233363181352615,
0.12173600494861603,
0.07776492089033127,
-0.3187231123447418,
0.20002815127372742,
-0.22166064381599426,
-0.08587147295475006,
-0.04617723822593689,
0.3067343831062317,
-0.27222153544425964,
0.09639573842287064,
0.16178590059280396,
0.15257522463798523,
0.037624020129442215,
-0.12058380991220474,
-0.09929121285676956,
-0.13813722133636475,
-0.13890644907951355,
0.32762467861175537,
0.2592456340789795,
0.07565723359584808,
-0.11824098229408264,
-0.11058980971574783,
0.12366773933172226,
0.06711245328187943,
-0.11901883035898209,
-0.12577806413173676,
0.2719293236732483,
0.006378594785928726,
-0.11961767077445984,
-0.24746476113796234,
0.00698838522657752,
-0.18556036055088043,
-0.08260902017354965,
0.20460982620716095,
0.0866256058216095,
0.08225955069065094,
-0.045844465494155884,
0.29353511333465576,
-0.035112377256155014,
-0.33789563179016113,
0.05606437101960182,
0.3847607672214508,
0.05440683662891388,
-0.07861163467168808,
0.161203995347023,
0.07706886529922485,
-0.16406841576099396,
-0.06991907954216003,
0.26800447702407837,
0.16236649453639984,
0.04373816028237343,
0.01791762374341488,
-0.0602714940905571,
0.2952127754688263,
-0.40492263436317444,
0.15581069886684418,
0.1623995155096054,
0.492461621761322,
0.1605459451675415,
0.4469805359840393,
-0.3020619750022888,
0.042210087180137634,
-0.05108436197042465,
-0.10682536661624908,
-0.06116536632180214,
0.26195234060287476,
-0.023306328803300858,
0.2226986140012741,
0.17959220707416534,
-0.09816913306713104,
0.12476261705160141,
0.2569144666194916,
-0.24345122277736664,
-0.03648955374956131,
-0.26056379079818726,
-0.32094401121139526,
-0.1499195545911789,
0.5569956302642822,
-0.008157252334058285,
-0.09472591429948807,
-0.15036310255527496,
-0.22697335481643677,
0.08971980214118958,
-0.24181555211544037,
-0.10534577071666718,
-0.2026325911283493,
0.41813814640045166,
-0.18168655037879944,
0.06699065119028091,
-0.5491580367088318,
-0.5756070017814636,
-0.14826148748397827,
-0.1463884860277176,
0.2786494195461273,
0.03390658646821976,
-0.45097869634628296,
-0.3733324706554413,
0.13270162045955658,
0.007506455760449171,
-0.034304700791835785,
0.24797014892101288,
0.1869213581085205,
0.24281655251979828,
-0.050018951296806335,
-0.0937465950846672,
0.1550152450799942,
-0.04245217144489288,
-0.11471200734376907,
-0.1329624503850937,
0.19868989288806915,
-0.12259843200445175,
0.045611750334501266,
-0.018567832186818123,
0.31479138135910034,
-0.13383764028549194,
0.17513792216777802,
0.33474037051200867,
0.15507446229457855,
-0.1319170892238617,
-0.2625656723976135,
0.0805613324046135,
0.47349926829338074,
0.03268872946500778,
-0.05275547504425049,
-0.19237616658210754,
0.49938830733299255,
0.12382878363132477,
-0.09807749837636948,
-0.2853281497955322,
0.4043613076210022,
-0.1816481202840805,
0.26818880438804626,
0.15086770057678223,
0.034650154411792755,
-0.011713355779647827,
-0.08246668428182602,
-0.13106980919837952,
0.14973938465118408,
0.4146444499492645,
0.13672199845314026,
-0.2725355625152588,
-0.06834014505147934,
-0.336194783449173,
0.39720645546913147,
0.291821151971817,
-0.2563176155090332,
0.33813950419425964,
0.09304632991552353,
-0.04481152445077896,
-0.09962400794029236,
0.017471447587013245,
0.18983334302902222,
0.1904861181974411,
0.2655976116657257,
-0.13405755162239075,
0.1325652301311493,
-0.03513098880648613,
-0.13049273192882538,
0.0047887349501252174,
0.07298614829778671,
-0.10768182575702667,
0.359382301568985,
0.3060603737831116,
0.11291344463825226,
-0.08751466125249863,
-0.08116643130779266,
-0.2993248999118805,
-0.04683965817093849,
-0.02178509533405304,
0.17938034236431122,
0.21822267770767212,
-0.22646404802799225,
0.033400822430849075,
-0.3110872507095337,
0.01576739363372326,
0.011647650972008705,
0.6521466374397278,
-0.13621290028095245,
-0.19080083072185516,
0.22196640074253082,
0.07426076382398605,
0.9107957482337952,
-0.16975855827331543,
-0.04776814952492714,
-0.22346600890159607,
-0.27869027853012085,
0.12758620083332062,
0.3061980605125427,
0.0774175375699997,
-0.046122707426548004,
0.505206286907196,
-0.18181034922599792,
0.3880176544189453,
-0.08808878064155579,
-0.36542630195617676,
0.09200013428926468,
-0.020826496183872223,
0.08689825981855392,
-0.013521301560103893,
0.05195643752813339,
-0.24621228873729706,
-0.31175756454467773,
0.09624476730823517,
-0.2440950721502304,
-0.10636698454618454,
-0.04039007052779198,
0.21756304800510406,
-0.09077548235654831,
-0.1126226931810379,
-0.49637922644615173,
-0.061772290617227554,
-0.3034152090549469,
0.476081907749176,
0.22979925572872162,
-0.028861025348305702,
-0.01942834071815014,
-0.07751088589429855,
0.034369274973869324,
-0.15266065299510956,
0.10680725425481796,
-0.21560950577259064,
0.16385485231876373,
0.2227654606103897,
-0.12402556091547012,
-0.2118234932422638,
-0.494314968585968,
-0.31104427576065063,
-0.023798219859600067,
0.07631339132785797,
-0.17100806534290314,
-0.06842819601297379,
-0.2200554758310318,
0.0027599174063652754,
-0.15199518203735352,
0.13273872435092926,
0.4515959918498993,
-0.07667925953865051,
-0.20750588178634644,
-0.05131297931075096,
0.20858757197856903,
0.5510804653167725,
0.06167902052402496,
-0.159629687666893,
0.13309338688850403,
0.2265029400587082,
0.03263760730624199,
0.6488926410675049,
0.05898067355155945,
0.0846872627735138,
0.25852927565574646,
0.06455818563699722,
-0.11768729984760284,
-0.2783656716346741,
0.07523423433303833,
-0.19348715245723724,
-0.15774331986904144,
0.09850514680147171,
0.475858211517334,
0.2683970034122467,
0.04499305412173271,
-0.15292125940322876,
0.12534353137016296,
-0.2520802617073059,
-0.19791553914546967,
0.40554338693618774,
0.037006549537181854,
0.4625873565673828,
-0.08751990646123886,
-0.1534029096364975,
0.007968290708959103,
-0.3550320267677307,
0.09139807522296906,
-0.09228979796171188,
0.025874920189380646,
-0.4211962819099426,
-0.5453459024429321,
-0.21823592483997345,
-0.2534327805042267,
0.36966627836227417,
0.45437121391296387,
-0.010351216420531273,
-0.07004683464765549,
-0.43529900908470154,
-0.08193128556013107,
-0.0756269097328186,
0.17006915807724,
0.06222923472523689,
-0.35149312019348145,
0.012109908275306225,
-0.24428077042102814,
0.07734377682209015,
0.1962990164756775,
-0.33589228987693787,
-0.3367528021335602,
-0.05380019545555115,
0.38742613792419434,
-0.35626184940338135,
0.0581250824034214,
0.2264222353696823,
-0.048667892813682556,
-0.05624334514141083,
0.008691934868693352,
-0.08542239665985107,
-0.12642928957939148,
0.00511836726218462,
0.2333192378282547,
0.36871495842933655,
0.03640357777476311,
0.22352299094200134,
-0.03960385173559189,
-0.09243983775377274,
-0.036127857863903046,
0.02632020227611065,
0.1368790715932846,
0.08308257907629013,
0.0011648389045149088,
0.12474332004785538,
-0.14307060837745667,
-0.197737917304039,
-0.0488722063601017,
0.40018153190612793,
-0.20859244465827942,
-0.06987060606479645,
-0.1505303531885147,
-0.15440547466278076,
-0.021156614646315575,
0.24885691702365875,
0.10119927674531937,
0.3039301931858063,
0.03486312925815582,
0.13763932883739471,
-0.2829015851020813,
-0.17388352751731873,
-0.15080763399600983,
-0.005853779148310423,
0.11366846412420273,
-0.13432109355926514,
0.46861714124679565,
-0.27426764369010925,
-0.2376135140657425,
-0.03224104642868042,
0.4683000147342682,
-0.1962360292673111,
0.10280074179172516,
0.015681032091379166,
1.031785011291504,
-0.16589432954788208,
0.37110885977745056,
0.14158892631530762,
-0.09747331589460373,
0.2048790454864502,
-0.3503005802631378,
0.1448190063238144,
-0.13106761872768402,
-0.359312504529953,
-0.05615685507655144,
0.039952583611011505,
-0.08056210726499557,
-0.004561653360724449,
-0.39126574993133545,
0.13894930481910706,
0.1756032258272171,
0.36668476462364197,
0.2946526110172272,
0.25843295454978943,
0.0696527510881424,
-0.01526282075792551,
-0.5002796053886414,
0.2108229249715805,
0.11168477684259415,
-0.23970343172550201,
-0.05027763545513153,
0.048144564032554626,
-0.13714033365249634,
-0.12770210206508636,
-0.19424840807914734,
0.07074715197086334,
-0.43007099628448486,
-0.04620267450809479,
0.2861475348472595,
-0.10574480891227722,
0.11062406748533249,
0.21241572499275208,
-0.02672814577817917,
-0.06047860160470009,
-0.39435088634490967,
0.010163896717131138,
-0.26562345027923584,
0.22791913151741028,
0.07281944155693054,
-0.02910257689654827,
0.2924782633781433,
-0.2039586454629898,
-0.11701728403568268,
0.22735652327537537,
0.33631137013435364,
-0.47573423385620117,
-0.4612279236316681,
0.07218043506145477,
0.3284939229488373,
-0.12560421228408813,
0.008526555262506008,
0.12944144010543823,
-0.11915677785873413,
-0.14173626899719238,
0.2308952808380127,
0.06010224297642708,
0.05940723046660423,
0.10530399531126022,
0.4885712265968323,
-0.17892777919769287,
-0.035729777067899704,
0.11766193807125092,
0.41076210141181946,
-0.03855237737298012,
0.24713249504566193,
0.302837997674942,
-0.2766367495059967,
-0.43917566537857056,
-0.10437660664319992,
0.23837752640247345,
-0.4756163954734802,
-0.02995186299085617,
-0.16431266069412231,
-0.3447367250919342,
-0.033302027732133865,
0.5254303812980652,
0.40611904859542847,
-0.09939495474100113,
-0.06070910766720772,
-0.052086587995290756,
0.10303890705108643,
0.6272663474082947,
0.33722826838493347,
0.1448052078485489,
0.09635943919420242,
-0.18211320042610168,
-0.08785884082317352,
0.24476151168346405,
-0.45429497957229614,
-0.09256471693515778,
-0.3687010109424591,
0.24349746108055115,
-0.0720837339758873,
-0.2631468176841736,
0.27225837111473083,
0.06147606298327446,
0.14261366426944733,
-0.10436496883630753,
-0.39494773745536804,
-0.4038263261318207,
0.059707120060920715,
0.09715493023395538,
0.13802072405815125,
-0.05525203049182892,
-0.15080571174621582,
-0.14379754662513733,
-0.09282303601503372,
-0.13153870403766632,
0.054268281906843185,
-0.33404573798179626,
0.011097686365246773,
-0.17889799177646637,
0.03633175045251846,
-0.12402798235416412,
-0.18147683143615723,
0.00995301641523838,
-0.20889301598072052,
-0.18226061761379242,
0.13467839360237122,
-0.03924187645316124,
0.059743061661720276,
-0.06569282710552216,
0.07994000613689423,
0.5429310202598572,
0.49983376264572144,
-0.15789680182933807,
0.059122081845998764,
0.0836746096611023,
-0.31548935174942017,
-0.04431573674082756,
0.27736055850982666,
-0.08318038284778595,
-0.11817346513271332,
0.08423849195241928,
0.1406010091304779,
0.33858346939086914,
-0.4173092544078827,
-0.07553387433290482,
-0.07988579571247101,
-0.20253391563892365,
0.3330044150352478,
0.26379895210266113,
-0.08641274273395538,
-0.09990517795085907,
0.3682371973991394,
0.21497118473052979,
-0.03560183197259903,
-0.0385456457734108,
0.17312154173851013,
0.19376520812511444,
0.2517060339450836,
0.0641474574804306,
-0.018477002158761024,
-0.014470125548541546,
-0.1412949115037918,
-0.033426616340875626,
-0.2027125507593155,
0.14487864077091217,
-0.05256293714046478,
0.07548627257347107,
0.2267361730337143,
0.38094842433929443,
-0.008971031755208969,
0.19590595364570618,
-0.1053646057844162,
0.14689405262470245,
0.2529245615005493,
0.07748047262430191,
0.1793920397758484,
-0.022717222571372986,
-0.4215109944343567,
-0.1569175273180008,
0.10768093913793564,
-0.14976970851421356,
0.06964652240276337,
-0.242684006690979,
-0.37097811698913574,
-0.12688501179218292,
-0.08962798118591309,
-0.040899429470300674,
0.5435216426849365,
-0.163598895072937,
0.17390944063663483,
-0.0686829537153244,
0.04791998490691185,
0.06702268123626709,
0.3332654535770416,
-0.09288337826728821,
0.2201659083366394,
0.21919777989387512,
0.32391178607940674,
0.03367193415760994,
0.47499507665634155,
-0.002597381127998233,
0.23134921491146088,
-0.40865859389305115,
0.3700209856033325,
-0.22056125104427338,
-0.15243522822856903,
-0.06044945865869522,
0.24555644392967224,
0.2833978831768036,
-0.04615631699562073,
0.2276705652475357,
0.2533397376537323,
-0.294352263212204,
0.2517372667789459,
-0.012922856956720352,
0.03222423046827316,
-0.28536033630371094,
0.11916039139032364,
-0.05434984341263771,
-0.046074029058218,
-0.049511633813381195,
-0.06128408759832382,
-0.5117422342300415,
0.1801472306251526,
-0.2863974869251251,
-0.29686763882637024,
-0.012535340152680874,
-0.07364827394485474,
0.12881295382976532,
-0.187611386179924,
0.275515079498291,
0.23958820104599,
0.42375239729881287,
-0.051050473004579544,
-0.36064407229423523,
-0.04626051336526871,
-0.14188534021377563,
0.1449589878320694,
-0.11670402437448502,
0.15624110400676727,
-0.03633412346243858,
0.21648776531219482,
0.3477034866809845,
-0.1118953675031662,
-0.3725242614746094,
-0.3810082674026489,
0.23647040128707886,
-0.40078073740005493,
0.3359994888305664,
0.17422927916049957,
0.09775442630052567,
0.17200185358524323,
-0.3217594623565674,
-0.04275403171777725,
0.01274480763822794,
0.178507000207901,
0.05821944773197174,
0.15629024803638458,
0.03902377933263779,
-0.21072225272655487,
-0.11474974453449249,
0.02979242615401745,
0.3679978549480438,
-0.175237238407135,
-0.18964286148548126,
0.22728250920772552,
-0.24851778149604797,
-0.19828055799007416,
0.042505308985710144,
0.3440338969230652,
0.3117298185825348,
-0.041538581252098083,
-0.3080856502056122,
0.3648127019405365,
0.0051476298831403255,
0.1454780101776123,
0.42139172554016113,
-0.1411506086587906,
0.09803661704063416,
0.0003455458499956876,
-0.07008850574493408,
-0.07283848524093628,
0.12196187674999237,
-0.04295976459980011,
0.08873334527015686,
0.06023899465799332,
-0.20106837153434753,
0.344804584980011,
-0.09215936809778214,
-0.21583938598632812,
0.026481090113520622,
0.043216608464717865,
0.08770854771137238,
-0.15869779884815216,
-0.5564059019088745,
-0.09048891812562943,
0.19629435241222382,
-0.012718971818685532,
-0.0732562392950058,
0.6972963809967041,
0.08562907576560974,
-0.14791834354400635,
-0.12988561391830444,
0.16286712884902954,
0.062237001955509186,
-0.12792614102363586,
-0.3026590347290039,
-0.5541505217552185
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | Hi ! It runs on my side without issues. I tried
```python
from datasets import load_dataset
load_dataset("boolq")
```
What version of datasets and tensorflow are your runnning ?
Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful. | Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 47 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
Hi ! It runs on my side without issues. I tried
```python
from datasets import load_dataset
load_dataset("boolq")
```
What version of datasets and tensorflow are your runnning ?
Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful. | [
-0.3142426013946533,
-0.1296665072441101,
-0.13981470465660095,
0.22436578571796417,
0.08980449289083481,
0.0106669245287776,
0.4253872036933899,
0.3031974732875824,
0.44576847553253174,
-0.12459570914506912,
-0.0860084667801857,
0.3309846520423889,
-0.18556809425354004,
0.4824473559856415,
0.041710685938596725,
-0.025413842871785164,
-0.12364093959331512,
0.08377549797296524,
-0.013211643323302269,
-0.06779197603464127,
-0.43351665139198303,
0.36625921726226807,
-0.41905075311660767,
0.17288127541542053,
-0.12002604454755783,
-0.2764456570148468,
-0.011230593547224998,
0.23545679450035095,
-0.3227625787258148,
-0.3402307331562042,
0.12919305264949799,
0.039989765733480453,
0.2798754870891571,
0.197585329413414,
-0.00010042171197710559,
0.04742750898003578,
0.41360118985176086,
0.0912816971540451,
-0.22012600302696228,
-0.2904614210128784,
-0.17259299755096436,
-0.3197638690471649,
0.17700713872909546,
-0.17048406600952148,
-0.07812901586294174,
-0.05451589822769165,
-0.0554291307926178,
0.07697303593158722,
0.41252511739730835,
0.46009930968284607,
0.3143283724784851,
0.07579798996448517,
0.11705692857503891,
-0.19515153765678406,
0.19319263100624084,
-0.16269831359386444,
0.15155285596847534,
0.20157046616077423,
0.04193775728344917,
-0.293895959854126,
0.15875215828418732,
0.26375845074653625,
-0.18334002792835236,
-0.24602894484996796,
0.012176687829196453,
-0.20740284025669098,
-0.1017385721206665,
-0.3344746232032776,
0.2351708561182022,
0.014145607128739357,
0.5186157822608948,
-0.122410349547863,
-0.2733829915523529,
-0.05668483301997185,
0.14293771982192993,
-0.19254668056964874,
0.1893986016511917,
0.09149935841560364,
0.05343344062566757,
-0.06353043764829636,
0.18509884178638458,
-0.48960787057876587,
-0.037642862647771835,
-0.035420648753643036,
-0.1383906453847885,
0.2759748697280884,
-0.12153971940279007,
0.05188434198498726,
0.19128036499023438,
-0.17118066549301147,
0.11334721744060516,
0.2080257683992386,
-0.1522892713546753,
0.15849602222442627,
-0.517992377281189,
0.03580593690276146,
0.15612876415252686,
-0.027178427204489708,
-0.0363989993929863,
0.12962739169597626,
-0.189453125,
0.018724462017416954,
-0.09172023832798004,
0.20680934190750122,
0.0046224892139434814,
0.5135235786437988,
0.38422104716300964,
0.2736546993255615,
0.15835727751255035,
0.10752847045660019,
-0.22334709763526917,
0.034229177981615067,
-0.5201338529586792,
-0.36210474371910095,
-0.1302122175693512,
0.2492167204618454,
0.23662713170051575,
-0.08484754711389542,
-0.35383641719818115,
-0.1739945411682129,
-0.322468101978302,
-0.1347561776638031,
0.34326204657554626,
0.6987860798835754,
0.04301338270306587,
-0.12656272947788239,
0.05251189321279526,
0.26968851685523987,
-0.34834685921669006,
-0.07061164081096649,
-0.2877413034439087,
0.30176547169685364,
-0.030714942142367363,
-0.15547427535057068,
0.2976013123989105,
-0.1689215898513794,
0.35254260897636414,
0.060639988631010056,
-0.24980761110782623,
-0.09909268468618393,
0.2741260528564453,
-0.25463759899139404,
-0.3732599914073944,
0.25111860036849976,
0.004749487619847059,
0.01516339834779501,
0.20083479583263397,
0.23038476705551147,
-0.041110843420028687,
0.2055431306362152,
-0.21436668932437897,
-0.289174884557724,
0.04164546728134155,
0.3372690975666046,
-0.02298158034682274,
-0.27757593989372253,
-0.1418444812297821,
0.17584426701068878,
0.11507361382246017,
-0.14728307723999023,
-0.2639818489551544,
-0.3271435797214508,
-0.10467720031738281,
-0.21856920421123505,
0.3993264436721802,
0.4546142816543579,
-0.3941679298877716,
-0.2644502520561218,
-0.38619381189346313,
-0.21173959970474243,
0.0058000097051262856,
0.2955778241157532,
-0.13708782196044922,
0.5168123245239258,
-0.20740357041358948,
0.0861334502696991,
0.2646965980529785,
-0.21119363605976105,
-0.18445029854774475,
0.19702599942684174,
-0.014966137707233429,
-0.03487439081072807,
-0.27509209513664246,
-0.0445287711918354,
0.12034186720848083,
0.16736458241939545,
0.1317071169614792,
0.14151404798030853,
0.29684388637542725,
-0.24300865828990936,
-0.14651991426944733,
-0.12238773703575134,
0.07106417417526245,
0.34578049182891846,
0.23013056814670563,
-0.053553249686956406,
-0.05845163017511368,
-0.4113752543926239,
0.06856737285852432,
0.15321531891822815,
-0.2991672456264496,
0.19515663385391235,
0.34040144085884094,
-0.11517946422100067,
0.19680452346801758,
0.025454102084040642,
-0.3794723451137543,
0.1544528305530548,
-0.23398457467556,
-0.03783337026834488,
-0.06209619715809822,
0.1533767282962799,
-0.3266774117946625,
0.07349961996078491,
-0.18621908128261566,
-0.052405837923288345,
0.19312365353107452,
-0.16551421582698822,
-0.056978896260261536,
0.08579430729150772,
-0.30884838104248047,
0.26910826563835144,
-0.023538051173090935,
0.13463543355464935,
-0.21374009549617767,
0.10543147474527359,
-0.14657039940357208,
-0.09275177121162415,
0.2968970835208893,
0.2993907630443573,
0.1980735957622528,
0.029989242553710938,
-0.021200349554419518,
0.24328885972499847,
0.12887679040431976,
0.10437485575675964,
-0.04127348214387894,
-0.5058260560035706,
0.11125548928976059,
-0.038422998040914536,
0.307051420211792,
0.133013054728508,
0.07425744831562042,
0.08087341487407684,
0.0900946855545044,
0.27174970507621765,
-0.08599060773849487,
0.19372709095478058,
0.1444682627916336,
0.18172001838684082,
0.24008552730083466,
0.02927512302994728,
-0.006893773563206196,
-0.12920156121253967,
0.481089323759079,
-0.04004477709531784,
-0.025570213794708252,
0.02851889468729496,
-0.1477418839931488,
0.06914268434047699,
0.43806925415992737,
0.10779432207345963,
0.12245763093233109,
0.02660561166703701,
-0.12259281426668167,
0.12353400886058807,
0.11764156073331833,
0.15315431356430054,
0.2710776627063751,
0.20761527121067047,
-0.4852932393550873,
-0.10210220515727997,
-0.04211939871311188,
-0.26934918761253357,
0.1733107566833496,
-0.1938357651233673,
0.02882250025868416,
0.20616087317466736,
-0.06930715590715408,
-0.12480217218399048,
-0.18517129123210907,
-0.2250051498413086,
0.09095185995101929,
0.27746349573135376,
-0.19736698269844055,
-0.06494881957769394,
-0.0835353285074234,
-0.3896840214729309,
0.191729336977005,
-0.10835761576890945,
-0.030446240678429604,
-0.35120806097984314,
0.12872156500816345,
-0.02963513508439064,
-0.03437168151140213,
0.24762551486492157,
0.06126398593187332,
0.31483134627342224,
0.10701491683721542,
-0.08508230000734329,
-0.13643218576908112,
-0.2685345411300659,
-0.2265997678041458,
0.13108479976654053,
0.1870204657316208,
0.08184847235679626,
0.25324633717536926,
-0.09901388734579086,
0.08837209641933441,
-0.053489137440919876,
-0.22254890203475952,
-0.08780566602945328,
-0.09443241357803345,
0.33476415276527405,
0.11848349869251251,
0.0666118934750557,
-0.05646158382296562,
-0.22380155324935913,
0.35234954953193665,
-0.16339364647865295,
-0.021187780424952507,
0.1725941002368927,
0.17168332636356354,
-0.057861510664224625,
-0.22050167620182037,
-0.5058778524398804,
-0.5898681282997131,
-0.49117612838745117,
0.09636944532394409,
0.06363262981176376,
0.19666993618011475,
0.36253049969673157,
-0.02949005737900734,
0.1960618793964386,
0.07130000740289688,
-0.04950728267431259,
0.005585888400673866,
-0.15990759432315826,
0.26207834482192993,
-0.06519855558872223,
-0.2783259451389313,
0.04343939945101738,
-0.08800533413887024,
0.4329286813735962,
-0.2539990544319153,
-0.30814749002456665,
0.003639137838035822,
-0.0644264817237854,
-0.09770268946886063,
-0.06206059083342552,
-0.15365315973758698,
-0.11697837710380554,
0.061161577701568604,
0.013871975243091583,
0.06635110825300217,
-0.32577064633369446,
0.2271665334701538,
0.01918330416083336,
0.19687479734420776,
-0.0655774399638176,
0.3469650447368622,
-0.3650503158569336,
0.60718834400177,
0.18263739347457886,
0.19847220182418823,
0.2066987007856369,
0.260295569896698,
0.08824392408132553,
0.0225900337100029,
-0.711161196231842,
0.011996347457170486,
0.19723135232925415,
-0.17378756403923035,
0.022320197895169258,
-0.07429268956184387,
0.004897660110145807,
-0.23215888440608978,
-0.18119511008262634,
-0.1740100085735321,
-0.23934698104858398,
-0.05550026893615723,
-0.36439749598503113,
0.022894758731126785,
-0.021846244111657143,
0.36738428473472595,
-0.21086345613002777,
0.002523427829146385,
0.0858273059129715,
0.1972026526927948,
0.1464117169380188,
-0.09420612454414368,
-0.5303609371185303,
-0.5024212598800659,
-0.3433574438095093,
0.24143363535404205,
-0.2680499255657196,
0.2392217069864273,
-0.137182354927063,
0.020919302478432655,
0.10316506028175354,
-0.11034712940454483,
0.4958154559135437,
-0.1310851126909256,
-0.11985047161579132,
0.31111541390419006,
-0.08520351350307465,
-0.21694351732730865,
-0.15604455769062042,
-0.21457435190677643,
0.24877332150936127,
0.09196095168590546,
0.4482041895389557,
-0.2502596974372864,
0.018346473574638367,
0.014993737451732159,
-0.1805451512336731,
-0.29330793023109436,
-0.4980679452419281,
-0.4371125400066376,
-0.14740262925624847,
-0.378598690032959,
-0.0684284046292305,
-0.24365292489528656,
0.25051969289779663,
-0.23808857798576355,
-0.017340201884508133,
-0.044607385993003845,
-0.23534788191318512,
0.18153975903987885,
0.1636776179075241,
0.5122843384742737,
-0.19213585555553436,
0.09656833112239838,
0.0463169626891613,
0.06180347129702568,
0.11009146273136139,
0.3877333402633667,
-0.1745922863483429,
-0.2596476972103119,
-0.031625859439373016,
-0.01945076510310173,
0.29708337783813477,
-0.10348409414291382,
-0.2948684096336365,
0.30717846751213074,
-0.05161465331912041,
0.11024892330169678,
0.025938140228390694,
0.014743772335350513,
0.25328508019447327,
0.1661931723356247,
-0.049143824726343155,
-0.41615578532218933,
0.15462826192378998,
-0.026426488533616066,
0.05938956141471863,
0.20633278787136078,
-0.21293498575687408,
-0.029732968658208847,
0.2763863503932953,
-0.06480098515748978,
0.5007889270782471,
-0.1812511384487152,
-0.19337940216064453,
0.34079164266586304,
0.21750056743621826,
0.403896689414978,
-0.1669142097234726,
0.2915229797363281,
-0.5527962446212769,
-0.01965627633035183,
0.22657287120819092,
-0.13747192919254303,
-0.040273889899253845,
-0.2586251497268677,
-0.5010080933570862,
0.2584685683250427,
-0.19388747215270996,
0.3548456132411957,
0.02516886033117771,
0.23960788547992706,
-0.19910944998264313,
0.06860260665416718,
-0.26528599858283997,
0.19740064442157745,
-0.11810202896595001,
0.31592896580696106,
-0.17480053007602692,
-0.06731457263231277,
0.33890509605407715,
-0.12134157866239548,
-0.09729862958192825,
0.3927970826625824,
-0.133114293217659,
0.24919848144054413,
0.18692034482955933,
-0.08594436943531036,
0.13711142539978027,
0.4802417457103729,
0.036093711853027344,
0.22734560072422028,
-0.13513563573360443,
0.06576330959796906,
-0.019321061670780182,
-0.09433338791131973,
-0.11217832565307617,
0.16035376489162445,
0.29173657298088074,
-0.11767926067113876,
-0.35130685567855835,
0.4982580244541168,
-0.053963251411914825,
0.08089619874954224,
-0.2077498584985733,
0.09667756408452988,
-0.019735848531126976,
-0.27928465604782104,
-0.05826511234045029,
-0.077706478536129,
0.08353419601917267,
-0.11277349293231964,
0.19551222026348114,
0.1503966897726059,
-0.045955903828144073,
0.2849721312522888,
-0.10047974437475204,
-0.2767523527145386,
-0.03683248907327652,
0.16316509246826172,
-0.020260818302631378,
0.26787427067756653,
0.7444613575935364,
0.3148198425769806,
-0.04340777173638344,
-0.4068889915943146,
-0.1119849756360054,
0.10229542851448059,
-0.03548932820558548,
0.2343207746744156,
0.2025265395641327,
-0.0975748598575592,
0.21757066249847412,
0.07019306719303131,
0.0332486517727375,
-0.04878760874271393,
-0.07802492380142212,
-0.49767929315567017,
-0.28993621468544006,
0.5084171295166016,
-0.23844249546527863,
-0.07176122069358826,
-0.02268359623849392,
-0.02330130524933338,
0.025399815291166306,
0.17862354218959808,
-0.4123269319534302,
-0.004747054539620876,
-0.500321626663208,
-0.1386014223098755,
-0.19446371495723724,
-0.2909422218799591,
0.13505202531814575,
0.18392756581306458,
0.25737741589546204,
-0.09739448130130768,
-0.12594273686408997,
-0.2820374369621277,
0.027913009747862816,
0.018612168729305267,
-0.05061621218919754,
0.13413292169570923,
-0.03560975193977356,
-0.219293475151062,
0.026943428441882133,
0.1245466023683548,
-0.01908228173851967,
-0.14182604849338531,
0.042854949831962585,
0.23098550736904144,
0.0664210319519043,
0.1498231291770935,
-0.10485793650150299,
0.3925117254257202,
-0.1542077660560608,
-0.10917655378580093,
0.08928234875202179,
0.040463563054800034,
0.14543230831623077,
0.004116129130125046,
-0.0036397504154592752,
-0.0570225827395916,
0.07639853656291962,
0.07887524366378784,
0.15677598118782043,
-0.2010095715522766,
0.2653389573097229,
-0.1736503690481186,
0.050992097705602646,
0.6181199550628662,
-0.22273187339305878,
0.1117158830165863,
0.09685040265321732,
0.3101872503757477,
-0.22786395251750946,
0.1903333216905594,
-0.22621342539787292,
-0.026935294270515442,
0.0044274888932704926,
0.13689692318439484,
-0.2643565535545349,
-0.185804083943367,
0.19441935420036316,
0.18683741986751556,
0.23788374662399292,
0.12075433135032654,
0.002141883596777916,
0.28280484676361084,
-0.2137751281261444,
-0.16572140157222748,
0.18048344552516937,
0.18042190372943878,
0.00425424799323082,
0.36043649911880493,
-0.2713554799556732,
-0.044931888580322266,
0.059424784034490585,
0.2507370710372925,
0.19731681048870087,
-0.3961365222930908,
-0.14213210344314575,
0.3903945982456207,
-0.007780031301081181,
-0.2976873517036438,
-0.2608274817466736,
0.444903701543808,
-0.10441067814826965,
-0.05675746873021126,
-0.11783520132303238,
0.13537989556789398,
-0.333161860704422,
-0.09494372457265854,
-0.5158817172050476,
-0.090194471180439,
-0.04543964937329292,
-0.13128870725631714,
0.02520117349922657,
0.04201533645391464,
-0.11481399834156036,
0.0730806514620781,
-0.16377860307693481,
-0.3743668794631958,
0.20090001821517944,
0.2530694603919983,
-0.24377255141735077,
-0.11507775634527206,
0.39142850041389465,
0.15331953763961792,
0.3194292485713959,
0.19700585305690765,
0.08292897045612335,
0.3079623579978943,
0.5380838513374329,
-0.3283628225326538,
-0.000004358503247203771,
0.019908752292394638,
-0.1313573569059372,
0.034675195813179016,
0.3137904107570648,
0.2148800492286682,
0.39739319682121277,
0.2980228662490845,
0.2429428994655609,
-0.17194011807441711,
0.19439852237701416,
0.04713067039847374,
0.16509287059307098,
0.004055817611515522,
0.6533156037330627,
-0.051563188433647156,
0.010702481493353844,
-0.20286215841770172,
-0.04924938827753067,
-0.5103921294212341,
-0.08797372132539749,
0.29993125796318054,
0.2265716791152954,
0.05600576847791672,
-0.2306598424911499,
0.13659988343715668,
-0.3244098722934723,
0.42047184705734253,
0.4334089756011963,
0.46494436264038086,
-0.41408291459083557,
0.14577071368694305,
-0.40078645944595337,
0.04661383107304573,
0.0658598318696022,
-0.002046113833785057,
-0.10973804444074631,
0.031468234956264496,
-0.042501118034124374,
-0.08670994639396667,
0.13193979859352112,
0.03990066424012184,
0.22278891503810883,
-0.17746545374393463,
-0.48141729831695557,
0.1328633427619934,
0.04619304835796356,
0.16846337914466858,
0.02445543371140957,
-0.13321556150913239,
0.19251631200313568,
-0.42588043212890625,
0.09932884573936462,
-0.037695541977882385,
-0.2557373642921448,
0.18412110209465027,
-0.24341116845607758,
0.24204517900943756,
0.0028275190852582455,
0.2686466574668884,
0.010274743661284447,
-0.02413763664662838,
-0.1938578486442566,
-0.32890376448631287,
-0.14308562874794006,
0.012501518242061138,
0.3162788450717926,
0.2012418657541275,
-0.04066764563322067,
0.21811816096305847,
-0.13729488849639893,
0.16710445284843445,
-0.01015411876142025,
-0.175099179148674,
-0.161508709192276,
-0.048024605959653854,
0.2521772086620331,
-0.1583050787448883,
0.052384309470653534,
0.14598844945430756,
0.04668036848306656,
0.15648065507411957,
-0.4045482575893402,
-0.06978577375411987,
0.4909425377845764,
-0.018943695351481438,
-0.06519981473684311,
-0.05440061166882515,
0.24222387373447418,
0.1531122922897339,
0.024959074333310127,
-0.3776179552078247,
0.024551082402467728,
0.3022923469543457,
-0.02520694024860859,
0.07761659473180771,
0.30288165807724,
0.40113985538482666,
0.09646779298782349,
-0.09904182702302933,
-0.2832089066505432,
0.16158658266067505,
0.0936066210269928,
0.07789625972509384,
0.020555680617690086
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | hey
i do the exact same commands. for me it fails i guess might be issues with
caching maybe?
thanks
best
rabeeh
On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <[email protected]>
wrote:
> Hi ! It runs on my side without issues. I tried
>
> from datasets import load_datasetload_dataset("boolq")
>
> What version of datasets and tensorflow are your runnning ?
> Also if you manage to get a minimal reproducible script (on google colab
> for example) that would be useful.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A>
> .
>
| Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 117 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
hey
i do the exact same commands. for me it fails i guess might be issues with
caching maybe?
thanks
best
rabeeh
On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <[email protected]>
wrote:
> Hi ! It runs on my side without issues. I tried
>
> from datasets import load_datasetload_dataset("boolq")
>
> What version of datasets and tensorflow are your runnning ?
> Also if you manage to get a minimal reproducible script (on google colab
> for example) that would be useful.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A>
> .
>
| [
-0.3142426013946533,
-0.1296665072441101,
-0.13981470465660095,
0.22436578571796417,
0.08980449289083481,
0.0106669245287776,
0.4253872036933899,
0.3031974732875824,
0.44576847553253174,
-0.12459570914506912,
-0.0860084667801857,
0.3309846520423889,
-0.18556809425354004,
0.4824473559856415,
0.041710685938596725,
-0.025413842871785164,
-0.12364093959331512,
0.08377549797296524,
-0.013211643323302269,
-0.06779197603464127,
-0.43351665139198303,
0.36625921726226807,
-0.41905075311660767,
0.17288127541542053,
-0.12002604454755783,
-0.2764456570148468,
-0.011230593547224998,
0.23545679450035095,
-0.3227625787258148,
-0.3402307331562042,
0.12919305264949799,
0.039989765733480453,
0.2798754870891571,
0.197585329413414,
-0.00010042171197710559,
0.04742750898003578,
0.41360118985176086,
0.0912816971540451,
-0.22012600302696228,
-0.2904614210128784,
-0.17259299755096436,
-0.3197638690471649,
0.17700713872909546,
-0.17048406600952148,
-0.07812901586294174,
-0.05451589822769165,
-0.0554291307926178,
0.07697303593158722,
0.41252511739730835,
0.46009930968284607,
0.3143283724784851,
0.07579798996448517,
0.11705692857503891,
-0.19515153765678406,
0.19319263100624084,
-0.16269831359386444,
0.15155285596847534,
0.20157046616077423,
0.04193775728344917,
-0.293895959854126,
0.15875215828418732,
0.26375845074653625,
-0.18334002792835236,
-0.24602894484996796,
0.012176687829196453,
-0.20740284025669098,
-0.1017385721206665,
-0.3344746232032776,
0.2351708561182022,
0.014145607128739357,
0.5186157822608948,
-0.122410349547863,
-0.2733829915523529,
-0.05668483301997185,
0.14293771982192993,
-0.19254668056964874,
0.1893986016511917,
0.09149935841560364,
0.05343344062566757,
-0.06353043764829636,
0.18509884178638458,
-0.48960787057876587,
-0.037642862647771835,
-0.035420648753643036,
-0.1383906453847885,
0.2759748697280884,
-0.12153971940279007,
0.05188434198498726,
0.19128036499023438,
-0.17118066549301147,
0.11334721744060516,
0.2080257683992386,
-0.1522892713546753,
0.15849602222442627,
-0.517992377281189,
0.03580593690276146,
0.15612876415252686,
-0.027178427204489708,
-0.0363989993929863,
0.12962739169597626,
-0.189453125,
0.018724462017416954,
-0.09172023832798004,
0.20680934190750122,
0.0046224892139434814,
0.5135235786437988,
0.38422104716300964,
0.2736546993255615,
0.15835727751255035,
0.10752847045660019,
-0.22334709763526917,
0.034229177981615067,
-0.5201338529586792,
-0.36210474371910095,
-0.1302122175693512,
0.2492167204618454,
0.23662713170051575,
-0.08484754711389542,
-0.35383641719818115,
-0.1739945411682129,
-0.322468101978302,
-0.1347561776638031,
0.34326204657554626,
0.6987860798835754,
0.04301338270306587,
-0.12656272947788239,
0.05251189321279526,
0.26968851685523987,
-0.34834685921669006,
-0.07061164081096649,
-0.2877413034439087,
0.30176547169685364,
-0.030714942142367363,
-0.15547427535057068,
0.2976013123989105,
-0.1689215898513794,
0.35254260897636414,
0.060639988631010056,
-0.24980761110782623,
-0.09909268468618393,
0.2741260528564453,
-0.25463759899139404,
-0.3732599914073944,
0.25111860036849976,
0.004749487619847059,
0.01516339834779501,
0.20083479583263397,
0.23038476705551147,
-0.041110843420028687,
0.2055431306362152,
-0.21436668932437897,
-0.289174884557724,
0.04164546728134155,
0.3372690975666046,
-0.02298158034682274,
-0.27757593989372253,
-0.1418444812297821,
0.17584426701068878,
0.11507361382246017,
-0.14728307723999023,
-0.2639818489551544,
-0.3271435797214508,
-0.10467720031738281,
-0.21856920421123505,
0.3993264436721802,
0.4546142816543579,
-0.3941679298877716,
-0.2644502520561218,
-0.38619381189346313,
-0.21173959970474243,
0.0058000097051262856,
0.2955778241157532,
-0.13708782196044922,
0.5168123245239258,
-0.20740357041358948,
0.0861334502696991,
0.2646965980529785,
-0.21119363605976105,
-0.18445029854774475,
0.19702599942684174,
-0.014966137707233429,
-0.03487439081072807,
-0.27509209513664246,
-0.0445287711918354,
0.12034186720848083,
0.16736458241939545,
0.1317071169614792,
0.14151404798030853,
0.29684388637542725,
-0.24300865828990936,
-0.14651991426944733,
-0.12238773703575134,
0.07106417417526245,
0.34578049182891846,
0.23013056814670563,
-0.053553249686956406,
-0.05845163017511368,
-0.4113752543926239,
0.06856737285852432,
0.15321531891822815,
-0.2991672456264496,
0.19515663385391235,
0.34040144085884094,
-0.11517946422100067,
0.19680452346801758,
0.025454102084040642,
-0.3794723451137543,
0.1544528305530548,
-0.23398457467556,
-0.03783337026834488,
-0.06209619715809822,
0.1533767282962799,
-0.3266774117946625,
0.07349961996078491,
-0.18621908128261566,
-0.052405837923288345,
0.19312365353107452,
-0.16551421582698822,
-0.056978896260261536,
0.08579430729150772,
-0.30884838104248047,
0.26910826563835144,
-0.023538051173090935,
0.13463543355464935,
-0.21374009549617767,
0.10543147474527359,
-0.14657039940357208,
-0.09275177121162415,
0.2968970835208893,
0.2993907630443573,
0.1980735957622528,
0.029989242553710938,
-0.021200349554419518,
0.24328885972499847,
0.12887679040431976,
0.10437485575675964,
-0.04127348214387894,
-0.5058260560035706,
0.11125548928976059,
-0.038422998040914536,
0.307051420211792,
0.133013054728508,
0.07425744831562042,
0.08087341487407684,
0.0900946855545044,
0.27174970507621765,
-0.08599060773849487,
0.19372709095478058,
0.1444682627916336,
0.18172001838684082,
0.24008552730083466,
0.02927512302994728,
-0.006893773563206196,
-0.12920156121253967,
0.481089323759079,
-0.04004477709531784,
-0.025570213794708252,
0.02851889468729496,
-0.1477418839931488,
0.06914268434047699,
0.43806925415992737,
0.10779432207345963,
0.12245763093233109,
0.02660561166703701,
-0.12259281426668167,
0.12353400886058807,
0.11764156073331833,
0.15315431356430054,
0.2710776627063751,
0.20761527121067047,
-0.4852932393550873,
-0.10210220515727997,
-0.04211939871311188,
-0.26934918761253357,
0.1733107566833496,
-0.1938357651233673,
0.02882250025868416,
0.20616087317466736,
-0.06930715590715408,
-0.12480217218399048,
-0.18517129123210907,
-0.2250051498413086,
0.09095185995101929,
0.27746349573135376,
-0.19736698269844055,
-0.06494881957769394,
-0.0835353285074234,
-0.3896840214729309,
0.191729336977005,
-0.10835761576890945,
-0.030446240678429604,
-0.35120806097984314,
0.12872156500816345,
-0.02963513508439064,
-0.03437168151140213,
0.24762551486492157,
0.06126398593187332,
0.31483134627342224,
0.10701491683721542,
-0.08508230000734329,
-0.13643218576908112,
-0.2685345411300659,
-0.2265997678041458,
0.13108479976654053,
0.1870204657316208,
0.08184847235679626,
0.25324633717536926,
-0.09901388734579086,
0.08837209641933441,
-0.053489137440919876,
-0.22254890203475952,
-0.08780566602945328,
-0.09443241357803345,
0.33476415276527405,
0.11848349869251251,
0.0666118934750557,
-0.05646158382296562,
-0.22380155324935913,
0.35234954953193665,
-0.16339364647865295,
-0.021187780424952507,
0.1725941002368927,
0.17168332636356354,
-0.057861510664224625,
-0.22050167620182037,
-0.5058778524398804,
-0.5898681282997131,
-0.49117612838745117,
0.09636944532394409,
0.06363262981176376,
0.19666993618011475,
0.36253049969673157,
-0.02949005737900734,
0.1960618793964386,
0.07130000740289688,
-0.04950728267431259,
0.005585888400673866,
-0.15990759432315826,
0.26207834482192993,
-0.06519855558872223,
-0.2783259451389313,
0.04343939945101738,
-0.08800533413887024,
0.4329286813735962,
-0.2539990544319153,
-0.30814749002456665,
0.003639137838035822,
-0.0644264817237854,
-0.09770268946886063,
-0.06206059083342552,
-0.15365315973758698,
-0.11697837710380554,
0.061161577701568604,
0.013871975243091583,
0.06635110825300217,
-0.32577064633369446,
0.2271665334701538,
0.01918330416083336,
0.19687479734420776,
-0.0655774399638176,
0.3469650447368622,
-0.3650503158569336,
0.60718834400177,
0.18263739347457886,
0.19847220182418823,
0.2066987007856369,
0.260295569896698,
0.08824392408132553,
0.0225900337100029,
-0.711161196231842,
0.011996347457170486,
0.19723135232925415,
-0.17378756403923035,
0.022320197895169258,
-0.07429268956184387,
0.004897660110145807,
-0.23215888440608978,
-0.18119511008262634,
-0.1740100085735321,
-0.23934698104858398,
-0.05550026893615723,
-0.36439749598503113,
0.022894758731126785,
-0.021846244111657143,
0.36738428473472595,
-0.21086345613002777,
0.002523427829146385,
0.0858273059129715,
0.1972026526927948,
0.1464117169380188,
-0.09420612454414368,
-0.5303609371185303,
-0.5024212598800659,
-0.3433574438095093,
0.24143363535404205,
-0.2680499255657196,
0.2392217069864273,
-0.137182354927063,
0.020919302478432655,
0.10316506028175354,
-0.11034712940454483,
0.4958154559135437,
-0.1310851126909256,
-0.11985047161579132,
0.31111541390419006,
-0.08520351350307465,
-0.21694351732730865,
-0.15604455769062042,
-0.21457435190677643,
0.24877332150936127,
0.09196095168590546,
0.4482041895389557,
-0.2502596974372864,
0.018346473574638367,
0.014993737451732159,
-0.1805451512336731,
-0.29330793023109436,
-0.4980679452419281,
-0.4371125400066376,
-0.14740262925624847,
-0.378598690032959,
-0.0684284046292305,
-0.24365292489528656,
0.25051969289779663,
-0.23808857798576355,
-0.017340201884508133,
-0.044607385993003845,
-0.23534788191318512,
0.18153975903987885,
0.1636776179075241,
0.5122843384742737,
-0.19213585555553436,
0.09656833112239838,
0.0463169626891613,
0.06180347129702568,
0.11009146273136139,
0.3877333402633667,
-0.1745922863483429,
-0.2596476972103119,
-0.031625859439373016,
-0.01945076510310173,
0.29708337783813477,
-0.10348409414291382,
-0.2948684096336365,
0.30717846751213074,
-0.05161465331912041,
0.11024892330169678,
0.025938140228390694,
0.014743772335350513,
0.25328508019447327,
0.1661931723356247,
-0.049143824726343155,
-0.41615578532218933,
0.15462826192378998,
-0.026426488533616066,
0.05938956141471863,
0.20633278787136078,
-0.21293498575687408,
-0.029732968658208847,
0.2763863503932953,
-0.06480098515748978,
0.5007889270782471,
-0.1812511384487152,
-0.19337940216064453,
0.34079164266586304,
0.21750056743621826,
0.403896689414978,
-0.1669142097234726,
0.2915229797363281,
-0.5527962446212769,
-0.01965627633035183,
0.22657287120819092,
-0.13747192919254303,
-0.040273889899253845,
-0.2586251497268677,
-0.5010080933570862,
0.2584685683250427,
-0.19388747215270996,
0.3548456132411957,
0.02516886033117771,
0.23960788547992706,
-0.19910944998264313,
0.06860260665416718,
-0.26528599858283997,
0.19740064442157745,
-0.11810202896595001,
0.31592896580696106,
-0.17480053007602692,
-0.06731457263231277,
0.33890509605407715,
-0.12134157866239548,
-0.09729862958192825,
0.3927970826625824,
-0.133114293217659,
0.24919848144054413,
0.18692034482955933,
-0.08594436943531036,
0.13711142539978027,
0.4802417457103729,
0.036093711853027344,
0.22734560072422028,
-0.13513563573360443,
0.06576330959796906,
-0.019321061670780182,
-0.09433338791131973,
-0.11217832565307617,
0.16035376489162445,
0.29173657298088074,
-0.11767926067113876,
-0.35130685567855835,
0.4982580244541168,
-0.053963251411914825,
0.08089619874954224,
-0.2077498584985733,
0.09667756408452988,
-0.019735848531126976,
-0.27928465604782104,
-0.05826511234045029,
-0.077706478536129,
0.08353419601917267,
-0.11277349293231964,
0.19551222026348114,
0.1503966897726059,
-0.045955903828144073,
0.2849721312522888,
-0.10047974437475204,
-0.2767523527145386,
-0.03683248907327652,
0.16316509246826172,
-0.020260818302631378,
0.26787427067756653,
0.7444613575935364,
0.3148198425769806,
-0.04340777173638344,
-0.4068889915943146,
-0.1119849756360054,
0.10229542851448059,
-0.03548932820558548,
0.2343207746744156,
0.2025265395641327,
-0.0975748598575592,
0.21757066249847412,
0.07019306719303131,
0.0332486517727375,
-0.04878760874271393,
-0.07802492380142212,
-0.49767929315567017,
-0.28993621468544006,
0.5084171295166016,
-0.23844249546527863,
-0.07176122069358826,
-0.02268359623849392,
-0.02330130524933338,
0.025399815291166306,
0.17862354218959808,
-0.4123269319534302,
-0.004747054539620876,
-0.500321626663208,
-0.1386014223098755,
-0.19446371495723724,
-0.2909422218799591,
0.13505202531814575,
0.18392756581306458,
0.25737741589546204,
-0.09739448130130768,
-0.12594273686408997,
-0.2820374369621277,
0.027913009747862816,
0.018612168729305267,
-0.05061621218919754,
0.13413292169570923,
-0.03560975193977356,
-0.219293475151062,
0.026943428441882133,
0.1245466023683548,
-0.01908228173851967,
-0.14182604849338531,
0.042854949831962585,
0.23098550736904144,
0.0664210319519043,
0.1498231291770935,
-0.10485793650150299,
0.3925117254257202,
-0.1542077660560608,
-0.10917655378580093,
0.08928234875202179,
0.040463563054800034,
0.14543230831623077,
0.004116129130125046,
-0.0036397504154592752,
-0.0570225827395916,
0.07639853656291962,
0.07887524366378784,
0.15677598118782043,
-0.2010095715522766,
0.2653389573097229,
-0.1736503690481186,
0.050992097705602646,
0.6181199550628662,
-0.22273187339305878,
0.1117158830165863,
0.09685040265321732,
0.3101872503757477,
-0.22786395251750946,
0.1903333216905594,
-0.22621342539787292,
-0.026935294270515442,
0.0044274888932704926,
0.13689692318439484,
-0.2643565535545349,
-0.185804083943367,
0.19441935420036316,
0.18683741986751556,
0.23788374662399292,
0.12075433135032654,
0.002141883596777916,
0.28280484676361084,
-0.2137751281261444,
-0.16572140157222748,
0.18048344552516937,
0.18042190372943878,
0.00425424799323082,
0.36043649911880493,
-0.2713554799556732,
-0.044931888580322266,
0.059424784034490585,
0.2507370710372925,
0.19731681048870087,
-0.3961365222930908,
-0.14213210344314575,
0.3903945982456207,
-0.007780031301081181,
-0.2976873517036438,
-0.2608274817466736,
0.444903701543808,
-0.10441067814826965,
-0.05675746873021126,
-0.11783520132303238,
0.13537989556789398,
-0.333161860704422,
-0.09494372457265854,
-0.5158817172050476,
-0.090194471180439,
-0.04543964937329292,
-0.13128870725631714,
0.02520117349922657,
0.04201533645391464,
-0.11481399834156036,
0.0730806514620781,
-0.16377860307693481,
-0.3743668794631958,
0.20090001821517944,
0.2530694603919983,
-0.24377255141735077,
-0.11507775634527206,
0.39142850041389465,
0.15331953763961792,
0.3194292485713959,
0.19700585305690765,
0.08292897045612335,
0.3079623579978943,
0.5380838513374329,
-0.3283628225326538,
-0.000004358503247203771,
0.019908752292394638,
-0.1313573569059372,
0.034675195813179016,
0.3137904107570648,
0.2148800492286682,
0.39739319682121277,
0.2980228662490845,
0.2429428994655609,
-0.17194011807441711,
0.19439852237701416,
0.04713067039847374,
0.16509287059307098,
0.004055817611515522,
0.6533156037330627,
-0.051563188433647156,
0.010702481493353844,
-0.20286215841770172,
-0.04924938827753067,
-0.5103921294212341,
-0.08797372132539749,
0.29993125796318054,
0.2265716791152954,
0.05600576847791672,
-0.2306598424911499,
0.13659988343715668,
-0.3244098722934723,
0.42047184705734253,
0.4334089756011963,
0.46494436264038086,
-0.41408291459083557,
0.14577071368694305,
-0.40078645944595337,
0.04661383107304573,
0.0658598318696022,
-0.002046113833785057,
-0.10973804444074631,
0.031468234956264496,
-0.042501118034124374,
-0.08670994639396667,
0.13193979859352112,
0.03990066424012184,
0.22278891503810883,
-0.17746545374393463,
-0.48141729831695557,
0.1328633427619934,
0.04619304835796356,
0.16846337914466858,
0.02445543371140957,
-0.13321556150913239,
0.19251631200313568,
-0.42588043212890625,
0.09932884573936462,
-0.037695541977882385,
-0.2557373642921448,
0.18412110209465027,
-0.24341116845607758,
0.24204517900943756,
0.0028275190852582455,
0.2686466574668884,
0.010274743661284447,
-0.02413763664662838,
-0.1938578486442566,
-0.32890376448631287,
-0.14308562874794006,
0.012501518242061138,
0.3162788450717926,
0.2012418657541275,
-0.04066764563322067,
0.21811816096305847,
-0.13729488849639893,
0.16710445284843445,
-0.01015411876142025,
-0.175099179148674,
-0.161508709192276,
-0.048024605959653854,
0.2521772086620331,
-0.1583050787448883,
0.052384309470653534,
0.14598844945430756,
0.04668036848306656,
0.15648065507411957,
-0.4045482575893402,
-0.06978577375411987,
0.4909425377845764,
-0.018943695351481438,
-0.06519981473684311,
-0.05440061166882515,
0.24222387373447418,
0.1531122922897339,
0.024959074333310127,
-0.3776179552078247,
0.024551082402467728,
0.3022923469543457,
-0.02520694024860859,
0.07761659473180771,
0.30288165807724,
0.40113985538482666,
0.09646779298782349,
-0.09904182702302933,
-0.2832089066505432,
0.16158658266067505,
0.0936066210269928,
0.07789625972509384,
0.020555680617690086
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | Could you check if it works on the master branch ?
You can use `load_dataset("boolq", script_version="master")` to do so.
We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881 | Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 43 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
Could you check if it works on the master branch ?
You can use `load_dataset("boolq", script_version="master")` to do so.
We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881 | [
-0.3142426013946533,
-0.1296665072441101,
-0.13981470465660095,
0.22436578571796417,
0.08980449289083481,
0.0106669245287776,
0.4253872036933899,
0.3031974732875824,
0.44576847553253174,
-0.12459570914506912,
-0.0860084667801857,
0.3309846520423889,
-0.18556809425354004,
0.4824473559856415,
0.041710685938596725,
-0.025413842871785164,
-0.12364093959331512,
0.08377549797296524,
-0.013211643323302269,
-0.06779197603464127,
-0.43351665139198303,
0.36625921726226807,
-0.41905075311660767,
0.17288127541542053,
-0.12002604454755783,
-0.2764456570148468,
-0.011230593547224998,
0.23545679450035095,
-0.3227625787258148,
-0.3402307331562042,
0.12919305264949799,
0.039989765733480453,
0.2798754870891571,
0.197585329413414,
-0.00010042171197710559,
0.04742750898003578,
0.41360118985176086,
0.0912816971540451,
-0.22012600302696228,
-0.2904614210128784,
-0.17259299755096436,
-0.3197638690471649,
0.17700713872909546,
-0.17048406600952148,
-0.07812901586294174,
-0.05451589822769165,
-0.0554291307926178,
0.07697303593158722,
0.41252511739730835,
0.46009930968284607,
0.3143283724784851,
0.07579798996448517,
0.11705692857503891,
-0.19515153765678406,
0.19319263100624084,
-0.16269831359386444,
0.15155285596847534,
0.20157046616077423,
0.04193775728344917,
-0.293895959854126,
0.15875215828418732,
0.26375845074653625,
-0.18334002792835236,
-0.24602894484996796,
0.012176687829196453,
-0.20740284025669098,
-0.1017385721206665,
-0.3344746232032776,
0.2351708561182022,
0.014145607128739357,
0.5186157822608948,
-0.122410349547863,
-0.2733829915523529,
-0.05668483301997185,
0.14293771982192993,
-0.19254668056964874,
0.1893986016511917,
0.09149935841560364,
0.05343344062566757,
-0.06353043764829636,
0.18509884178638458,
-0.48960787057876587,
-0.037642862647771835,
-0.035420648753643036,
-0.1383906453847885,
0.2759748697280884,
-0.12153971940279007,
0.05188434198498726,
0.19128036499023438,
-0.17118066549301147,
0.11334721744060516,
0.2080257683992386,
-0.1522892713546753,
0.15849602222442627,
-0.517992377281189,
0.03580593690276146,
0.15612876415252686,
-0.027178427204489708,
-0.0363989993929863,
0.12962739169597626,
-0.189453125,
0.018724462017416954,
-0.09172023832798004,
0.20680934190750122,
0.0046224892139434814,
0.5135235786437988,
0.38422104716300964,
0.2736546993255615,
0.15835727751255035,
0.10752847045660019,
-0.22334709763526917,
0.034229177981615067,
-0.5201338529586792,
-0.36210474371910095,
-0.1302122175693512,
0.2492167204618454,
0.23662713170051575,
-0.08484754711389542,
-0.35383641719818115,
-0.1739945411682129,
-0.322468101978302,
-0.1347561776638031,
0.34326204657554626,
0.6987860798835754,
0.04301338270306587,
-0.12656272947788239,
0.05251189321279526,
0.26968851685523987,
-0.34834685921669006,
-0.07061164081096649,
-0.2877413034439087,
0.30176547169685364,
-0.030714942142367363,
-0.15547427535057068,
0.2976013123989105,
-0.1689215898513794,
0.35254260897636414,
0.060639988631010056,
-0.24980761110782623,
-0.09909268468618393,
0.2741260528564453,
-0.25463759899139404,
-0.3732599914073944,
0.25111860036849976,
0.004749487619847059,
0.01516339834779501,
0.20083479583263397,
0.23038476705551147,
-0.041110843420028687,
0.2055431306362152,
-0.21436668932437897,
-0.289174884557724,
0.04164546728134155,
0.3372690975666046,
-0.02298158034682274,
-0.27757593989372253,
-0.1418444812297821,
0.17584426701068878,
0.11507361382246017,
-0.14728307723999023,
-0.2639818489551544,
-0.3271435797214508,
-0.10467720031738281,
-0.21856920421123505,
0.3993264436721802,
0.4546142816543579,
-0.3941679298877716,
-0.2644502520561218,
-0.38619381189346313,
-0.21173959970474243,
0.0058000097051262856,
0.2955778241157532,
-0.13708782196044922,
0.5168123245239258,
-0.20740357041358948,
0.0861334502696991,
0.2646965980529785,
-0.21119363605976105,
-0.18445029854774475,
0.19702599942684174,
-0.014966137707233429,
-0.03487439081072807,
-0.27509209513664246,
-0.0445287711918354,
0.12034186720848083,
0.16736458241939545,
0.1317071169614792,
0.14151404798030853,
0.29684388637542725,
-0.24300865828990936,
-0.14651991426944733,
-0.12238773703575134,
0.07106417417526245,
0.34578049182891846,
0.23013056814670563,
-0.053553249686956406,
-0.05845163017511368,
-0.4113752543926239,
0.06856737285852432,
0.15321531891822815,
-0.2991672456264496,
0.19515663385391235,
0.34040144085884094,
-0.11517946422100067,
0.19680452346801758,
0.025454102084040642,
-0.3794723451137543,
0.1544528305530548,
-0.23398457467556,
-0.03783337026834488,
-0.06209619715809822,
0.1533767282962799,
-0.3266774117946625,
0.07349961996078491,
-0.18621908128261566,
-0.052405837923288345,
0.19312365353107452,
-0.16551421582698822,
-0.056978896260261536,
0.08579430729150772,
-0.30884838104248047,
0.26910826563835144,
-0.023538051173090935,
0.13463543355464935,
-0.21374009549617767,
0.10543147474527359,
-0.14657039940357208,
-0.09275177121162415,
0.2968970835208893,
0.2993907630443573,
0.1980735957622528,
0.029989242553710938,
-0.021200349554419518,
0.24328885972499847,
0.12887679040431976,
0.10437485575675964,
-0.04127348214387894,
-0.5058260560035706,
0.11125548928976059,
-0.038422998040914536,
0.307051420211792,
0.133013054728508,
0.07425744831562042,
0.08087341487407684,
0.0900946855545044,
0.27174970507621765,
-0.08599060773849487,
0.19372709095478058,
0.1444682627916336,
0.18172001838684082,
0.24008552730083466,
0.02927512302994728,
-0.006893773563206196,
-0.12920156121253967,
0.481089323759079,
-0.04004477709531784,
-0.025570213794708252,
0.02851889468729496,
-0.1477418839931488,
0.06914268434047699,
0.43806925415992737,
0.10779432207345963,
0.12245763093233109,
0.02660561166703701,
-0.12259281426668167,
0.12353400886058807,
0.11764156073331833,
0.15315431356430054,
0.2710776627063751,
0.20761527121067047,
-0.4852932393550873,
-0.10210220515727997,
-0.04211939871311188,
-0.26934918761253357,
0.1733107566833496,
-0.1938357651233673,
0.02882250025868416,
0.20616087317466736,
-0.06930715590715408,
-0.12480217218399048,
-0.18517129123210907,
-0.2250051498413086,
0.09095185995101929,
0.27746349573135376,
-0.19736698269844055,
-0.06494881957769394,
-0.0835353285074234,
-0.3896840214729309,
0.191729336977005,
-0.10835761576890945,
-0.030446240678429604,
-0.35120806097984314,
0.12872156500816345,
-0.02963513508439064,
-0.03437168151140213,
0.24762551486492157,
0.06126398593187332,
0.31483134627342224,
0.10701491683721542,
-0.08508230000734329,
-0.13643218576908112,
-0.2685345411300659,
-0.2265997678041458,
0.13108479976654053,
0.1870204657316208,
0.08184847235679626,
0.25324633717536926,
-0.09901388734579086,
0.08837209641933441,
-0.053489137440919876,
-0.22254890203475952,
-0.08780566602945328,
-0.09443241357803345,
0.33476415276527405,
0.11848349869251251,
0.0666118934750557,
-0.05646158382296562,
-0.22380155324935913,
0.35234954953193665,
-0.16339364647865295,
-0.021187780424952507,
0.1725941002368927,
0.17168332636356354,
-0.057861510664224625,
-0.22050167620182037,
-0.5058778524398804,
-0.5898681282997131,
-0.49117612838745117,
0.09636944532394409,
0.06363262981176376,
0.19666993618011475,
0.36253049969673157,
-0.02949005737900734,
0.1960618793964386,
0.07130000740289688,
-0.04950728267431259,
0.005585888400673866,
-0.15990759432315826,
0.26207834482192993,
-0.06519855558872223,
-0.2783259451389313,
0.04343939945101738,
-0.08800533413887024,
0.4329286813735962,
-0.2539990544319153,
-0.30814749002456665,
0.003639137838035822,
-0.0644264817237854,
-0.09770268946886063,
-0.06206059083342552,
-0.15365315973758698,
-0.11697837710380554,
0.061161577701568604,
0.013871975243091583,
0.06635110825300217,
-0.32577064633369446,
0.2271665334701538,
0.01918330416083336,
0.19687479734420776,
-0.0655774399638176,
0.3469650447368622,
-0.3650503158569336,
0.60718834400177,
0.18263739347457886,
0.19847220182418823,
0.2066987007856369,
0.260295569896698,
0.08824392408132553,
0.0225900337100029,
-0.711161196231842,
0.011996347457170486,
0.19723135232925415,
-0.17378756403923035,
0.022320197895169258,
-0.07429268956184387,
0.004897660110145807,
-0.23215888440608978,
-0.18119511008262634,
-0.1740100085735321,
-0.23934698104858398,
-0.05550026893615723,
-0.36439749598503113,
0.022894758731126785,
-0.021846244111657143,
0.36738428473472595,
-0.21086345613002777,
0.002523427829146385,
0.0858273059129715,
0.1972026526927948,
0.1464117169380188,
-0.09420612454414368,
-0.5303609371185303,
-0.5024212598800659,
-0.3433574438095093,
0.24143363535404205,
-0.2680499255657196,
0.2392217069864273,
-0.137182354927063,
0.020919302478432655,
0.10316506028175354,
-0.11034712940454483,
0.4958154559135437,
-0.1310851126909256,
-0.11985047161579132,
0.31111541390419006,
-0.08520351350307465,
-0.21694351732730865,
-0.15604455769062042,
-0.21457435190677643,
0.24877332150936127,
0.09196095168590546,
0.4482041895389557,
-0.2502596974372864,
0.018346473574638367,
0.014993737451732159,
-0.1805451512336731,
-0.29330793023109436,
-0.4980679452419281,
-0.4371125400066376,
-0.14740262925624847,
-0.378598690032959,
-0.0684284046292305,
-0.24365292489528656,
0.25051969289779663,
-0.23808857798576355,
-0.017340201884508133,
-0.044607385993003845,
-0.23534788191318512,
0.18153975903987885,
0.1636776179075241,
0.5122843384742737,
-0.19213585555553436,
0.09656833112239838,
0.0463169626891613,
0.06180347129702568,
0.11009146273136139,
0.3877333402633667,
-0.1745922863483429,
-0.2596476972103119,
-0.031625859439373016,
-0.01945076510310173,
0.29708337783813477,
-0.10348409414291382,
-0.2948684096336365,
0.30717846751213074,
-0.05161465331912041,
0.11024892330169678,
0.025938140228390694,
0.014743772335350513,
0.25328508019447327,
0.1661931723356247,
-0.049143824726343155,
-0.41615578532218933,
0.15462826192378998,
-0.026426488533616066,
0.05938956141471863,
0.20633278787136078,
-0.21293498575687408,
-0.029732968658208847,
0.2763863503932953,
-0.06480098515748978,
0.5007889270782471,
-0.1812511384487152,
-0.19337940216064453,
0.34079164266586304,
0.21750056743621826,
0.403896689414978,
-0.1669142097234726,
0.2915229797363281,
-0.5527962446212769,
-0.01965627633035183,
0.22657287120819092,
-0.13747192919254303,
-0.040273889899253845,
-0.2586251497268677,
-0.5010080933570862,
0.2584685683250427,
-0.19388747215270996,
0.3548456132411957,
0.02516886033117771,
0.23960788547992706,
-0.19910944998264313,
0.06860260665416718,
-0.26528599858283997,
0.19740064442157745,
-0.11810202896595001,
0.31592896580696106,
-0.17480053007602692,
-0.06731457263231277,
0.33890509605407715,
-0.12134157866239548,
-0.09729862958192825,
0.3927970826625824,
-0.133114293217659,
0.24919848144054413,
0.18692034482955933,
-0.08594436943531036,
0.13711142539978027,
0.4802417457103729,
0.036093711853027344,
0.22734560072422028,
-0.13513563573360443,
0.06576330959796906,
-0.019321061670780182,
-0.09433338791131973,
-0.11217832565307617,
0.16035376489162445,
0.29173657298088074,
-0.11767926067113876,
-0.35130685567855835,
0.4982580244541168,
-0.053963251411914825,
0.08089619874954224,
-0.2077498584985733,
0.09667756408452988,
-0.019735848531126976,
-0.27928465604782104,
-0.05826511234045029,
-0.077706478536129,
0.08353419601917267,
-0.11277349293231964,
0.19551222026348114,
0.1503966897726059,
-0.045955903828144073,
0.2849721312522888,
-0.10047974437475204,
-0.2767523527145386,
-0.03683248907327652,
0.16316509246826172,
-0.020260818302631378,
0.26787427067756653,
0.7444613575935364,
0.3148198425769806,
-0.04340777173638344,
-0.4068889915943146,
-0.1119849756360054,
0.10229542851448059,
-0.03548932820558548,
0.2343207746744156,
0.2025265395641327,
-0.0975748598575592,
0.21757066249847412,
0.07019306719303131,
0.0332486517727375,
-0.04878760874271393,
-0.07802492380142212,
-0.49767929315567017,
-0.28993621468544006,
0.5084171295166016,
-0.23844249546527863,
-0.07176122069358826,
-0.02268359623849392,
-0.02330130524933338,
0.025399815291166306,
0.17862354218959808,
-0.4123269319534302,
-0.004747054539620876,
-0.500321626663208,
-0.1386014223098755,
-0.19446371495723724,
-0.2909422218799591,
0.13505202531814575,
0.18392756581306458,
0.25737741589546204,
-0.09739448130130768,
-0.12594273686408997,
-0.2820374369621277,
0.027913009747862816,
0.018612168729305267,
-0.05061621218919754,
0.13413292169570923,
-0.03560975193977356,
-0.219293475151062,
0.026943428441882133,
0.1245466023683548,
-0.01908228173851967,
-0.14182604849338531,
0.042854949831962585,
0.23098550736904144,
0.0664210319519043,
0.1498231291770935,
-0.10485793650150299,
0.3925117254257202,
-0.1542077660560608,
-0.10917655378580093,
0.08928234875202179,
0.040463563054800034,
0.14543230831623077,
0.004116129130125046,
-0.0036397504154592752,
-0.0570225827395916,
0.07639853656291962,
0.07887524366378784,
0.15677598118782043,
-0.2010095715522766,
0.2653389573097229,
-0.1736503690481186,
0.050992097705602646,
0.6181199550628662,
-0.22273187339305878,
0.1117158830165863,
0.09685040265321732,
0.3101872503757477,
-0.22786395251750946,
0.1903333216905594,
-0.22621342539787292,
-0.026935294270515442,
0.0044274888932704926,
0.13689692318439484,
-0.2643565535545349,
-0.185804083943367,
0.19441935420036316,
0.18683741986751556,
0.23788374662399292,
0.12075433135032654,
0.002141883596777916,
0.28280484676361084,
-0.2137751281261444,
-0.16572140157222748,
0.18048344552516937,
0.18042190372943878,
0.00425424799323082,
0.36043649911880493,
-0.2713554799556732,
-0.044931888580322266,
0.059424784034490585,
0.2507370710372925,
0.19731681048870087,
-0.3961365222930908,
-0.14213210344314575,
0.3903945982456207,
-0.007780031301081181,
-0.2976873517036438,
-0.2608274817466736,
0.444903701543808,
-0.10441067814826965,
-0.05675746873021126,
-0.11783520132303238,
0.13537989556789398,
-0.333161860704422,
-0.09494372457265854,
-0.5158817172050476,
-0.090194471180439,
-0.04543964937329292,
-0.13128870725631714,
0.02520117349922657,
0.04201533645391464,
-0.11481399834156036,
0.0730806514620781,
-0.16377860307693481,
-0.3743668794631958,
0.20090001821517944,
0.2530694603919983,
-0.24377255141735077,
-0.11507775634527206,
0.39142850041389465,
0.15331953763961792,
0.3194292485713959,
0.19700585305690765,
0.08292897045612335,
0.3079623579978943,
0.5380838513374329,
-0.3283628225326538,
-0.000004358503247203771,
0.019908752292394638,
-0.1313573569059372,
0.034675195813179016,
0.3137904107570648,
0.2148800492286682,
0.39739319682121277,
0.2980228662490845,
0.2429428994655609,
-0.17194011807441711,
0.19439852237701416,
0.04713067039847374,
0.16509287059307098,
0.004055817611515522,
0.6533156037330627,
-0.051563188433647156,
0.010702481493353844,
-0.20286215841770172,
-0.04924938827753067,
-0.5103921294212341,
-0.08797372132539749,
0.29993125796318054,
0.2265716791152954,
0.05600576847791672,
-0.2306598424911499,
0.13659988343715668,
-0.3244098722934723,
0.42047184705734253,
0.4334089756011963,
0.46494436264038086,
-0.41408291459083557,
0.14577071368694305,
-0.40078645944595337,
0.04661383107304573,
0.0658598318696022,
-0.002046113833785057,
-0.10973804444074631,
0.031468234956264496,
-0.042501118034124374,
-0.08670994639396667,
0.13193979859352112,
0.03990066424012184,
0.22278891503810883,
-0.17746545374393463,
-0.48141729831695557,
0.1328633427619934,
0.04619304835796356,
0.16846337914466858,
0.02445543371140957,
-0.13321556150913239,
0.19251631200313568,
-0.42588043212890625,
0.09932884573936462,
-0.037695541977882385,
-0.2557373642921448,
0.18412110209465027,
-0.24341116845607758,
0.24204517900943756,
0.0028275190852582455,
0.2686466574668884,
0.010274743661284447,
-0.02413763664662838,
-0.1938578486442566,
-0.32890376448631287,
-0.14308562874794006,
0.012501518242061138,
0.3162788450717926,
0.2012418657541275,
-0.04066764563322067,
0.21811816096305847,
-0.13729488849639893,
0.16710445284843445,
-0.01015411876142025,
-0.175099179148674,
-0.161508709192276,
-0.048024605959653854,
0.2521772086620331,
-0.1583050787448883,
0.052384309470653534,
0.14598844945430756,
0.04668036848306656,
0.15648065507411957,
-0.4045482575893402,
-0.06978577375411987,
0.4909425377845764,
-0.018943695351481438,
-0.06519981473684311,
-0.05440061166882515,
0.24222387373447418,
0.1531122922897339,
0.024959074333310127,
-0.3776179552078247,
0.024551082402467728,
0.3022923469543457,
-0.02520694024860859,
0.07761659473180771,
0.30288165807724,
0.40113985538482666,
0.09646779298782349,
-0.09904182702302933,
-0.2832089066505432,
0.16158658266067505,
0.0936066210269928,
0.07789625972509384,
0.020555680617690086
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > neat feature
I dint get these clearly, can you please elaborate like how to work on these | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 18 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> neat feature
I dint get these clearly, can you please elaborate like how to work on these | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 18 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no? | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Thanks thomwolf and julien-c
I'm still confusion on what you guys said,
I have solved the problem as follows:
1. read the csv file using pandas from s3
2. Convert to dictionary key as column name and values as list column data
3. convert it to Dataset using
`from datasets import Dataset`
`train_dataset = Dataset.from_dict(train_dict)` | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 55 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Thanks thomwolf and julien-c
I'm still confusion on what you guys said,
I have solved the problem as follows:
1. read the csv file using pandas from s3
2. Convert to dictionary key as column name and values as list column data
3. convert it to Dataset using
`from datasets import Dataset`
`train_dataset = Dataset.from_dict(train_dict)` | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | We were brainstorming around your use-case.
Let's keep the issue open for now, I think this is an interesting question to think about. | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 23 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
We were brainstorming around your use-case.
Let's keep the issue open for now, I think this is an interesting question to think about. | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > We were brainstorming around your use-case.
>
> Let's keep the issue open for now, I think this is an interesting question to think about.
Sure thomwolf, Thanks for your concern | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 32 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> We were brainstorming around your use-case.
>
> Let's keep the issue open for now, I think this is an interesting question to think about.
Sure thomwolf, Thanks for your concern | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | I agree it would be cool to have that feature. Also that's good to know that pandas supports this.
For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 45 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
I agree it would be cool to have that feature. Also that's good to know that pandas supports this.
For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Any updates on this issue?
I face a similar issue. I have many parquet files in S3 and I would like to train on them.
To be honest I even face issues with only getting the last layer embedding out of them. | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 42 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Any updates on this issue?
I face a similar issue. I have many parquet files in S3 and I would like to train on them.
To be honest I even face issues with only getting the last layer embedding out of them. | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Hi dorlavie,
You can find one solution that i have mentioned above, that can help you.
And there is one more solution also which is downloading files locally
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 28 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Hi dorlavie,
You can find one solution that i have mentioned above, that can help you.
And there is one more solution also which is downloading files locally
| [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > Hi dorlavie,
> You can find one solution that i have mentioned above, that can help you.
> And there is one more solution also which is downloading files locally
mahesh1amour, thanks for the fast reply
Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB).
In addition, due to security concerns I am not allowed to save the data locally | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 68 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> Hi dorlavie,
> You can find one solution that i have mentioned above, that can help you.
> And there is one more solution also which is downloading files locally
mahesh1amour, thanks for the fast reply
Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB).
In addition, due to security concerns I am not allowed to save the data locally | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset`
boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html)
```python
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
```
datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html)
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv'])
```
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 46 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset`
boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html)
```python
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
```
datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html)
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv'])
```
| [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Thanks @philschmid for the suggestion.
As I mentioned in the previous comment, due to security issues I can not save the data locally.
I need to read it from S3 and process it directly.
I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 61 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Thanks @philschmid for the suggestion.
As I mentioned in the previous comment, due to security issues I can not save the data locally.
I need to read it from S3 and process it directly.
I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases? | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ?
Or is it the use of the `boto3` library that is not allowed in your case ? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 37 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ?
Or is it the use of the `boto3` library that is not allowed in your case ? | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @lhoestq yes you are correct.
I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3.
I am allowed to save the output of any model locally.
It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 47 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@lhoestq yes you are correct.
I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3.
I am allowed to save the output of any model locally.
It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden | [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk
**sagemaker start training job**
```python
pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'})
```
**in the train.py script**
```python
from datasets import load_from_disk
train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN'])
```
I have created an example of how to use transformers and datasets with sagemaker.
https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3
The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 127 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk
**sagemaker start training job**
```python
pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'})
```
**in the train.py script**
```python
from datasets import load_from_disk
train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN'])
```
I have created an example of how to use transformers and datasets with sagemaker.
https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3
The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
| [
-0.2508121132850647,
-0.24077488481998444,
-0.053151946514844894,
0.5038032531738281,
0.2426777184009552,
0.03797951713204384,
0.42340996861457825,
0.23022297024726868,
0.05345635861158371,
0.012271949090063572,
-0.02131815254688263,
0.3855956196784973,
-0.23641864955425262,
0.4087212383747101,
-0.07339179515838623,
0.15194696187973022,
0.0036893149372190237,
0.11744179576635361,
0.24157504737377167,
0.16631168127059937,
-0.04288316145539284,
0.277386873960495,
-0.057136233896017075,
0.10906533896923065,
-0.18401841819286346,
0.013617544434964657,
0.014628557488322258,
0.35061949491500854,
-0.075077123939991,
-0.5084872841835022,
0.010817176662385464,
-0.019076742231845856,
0.4783013164997101,
0.383335143327713,
-0.00011392125452402979,
-0.028652800247073174,
0.3157631456851959,
0.045019205659627914,
-0.4229220449924469,
-0.3848213255405426,
-0.559197723865509,
0.11109354346990585,
0.15265905857086182,
-0.037460919469594955,
-0.35072439908981323,
-0.06534098088741302,
-0.31168001890182495,
-0.26568564772605896,
0.40284475684165955,
0.662377655506134,
0.17820391058921814,
0.19147051870822906,
-0.07310545444488525,
-0.3078446090221405,
0.2821200489997864,
0.02037275768816471,
0.0018274466274306178,
0.22203263640403748,
-0.27150675654411316,
0.1779979020357132,
0.2951638698577881,
0.2709996700286865,
-0.4019233286380768,
0.11394476145505905,
0.5365954637527466,
0.03048752248287201,
0.35133805871009827,
0.07847274094820023,
0.12746411561965942,
0.1705704927444458,
0.5800999999046326,
-0.13612529635429382,
-0.4543987214565277,
-0.18491999804973602,
-0.21418343484401703,
-0.282492071390152,
0.19152683019638062,
0.08946209400892258,
0.03748880326747894,
0.028242146596312523,
-0.04647039994597435,
-0.04667987301945686,
-0.09882006794214249,
0.2466033399105072,
0.0339198000729084,
0.4405596852302551,
-0.2780037224292755,
0.06335632503032684,
0.2615090012550354,
0.07033826410770416,
0.3421873450279236,
-0.11327239125967026,
0.018123695626854897,
0.04666393622756004,
-0.25198546051979065,
0.16740252077579498,
-0.015357906930148602,
0.21228644251823425,
-0.06997973471879959,
0.19386440515518188,
0.30343082547187805,
-0.07399207353591919,
0.3996635377407074,
0.24019022285938263,
0.3883310556411743,
-0.16802944242954254,
0.09138259291648865,
0.00038861605571582913,
-0.09941136837005615,
0.4869205951690674,
0.07859814912080765,
-0.19348640739917755,
-0.31331175565719604,
-0.5367278456687927,
0.12409552931785583,
0.2688181698322296,
0.39719468355178833,
-0.3510358929634094,
-0.265877902507782,
-0.08602023869752884,
-0.11921307444572449,
-0.19657643139362335,
0.2694828510284424,
0.497222900390625,
-0.3471299111843109,
-0.1139850914478302,
-0.11797113716602325,
0.2110883891582489,
-0.21435396373271942,
0.08540333807468414,
-0.19831842184066772,
0.2434525042772293,
-0.31905725598335266,
0.022750727832317352,
0.14868004620075226,
-0.579932451248169,
0.5168522596359253,
-0.07386384159326553,
0.005126208532601595,
-0.34400808811187744,
0.14929001033306122,
-0.21646448969841003,
0.17776158452033997,
0.18143969774246216,
0.19353193044662476,
0.25707563757896423,
-0.05378152057528496,
-0.07601672410964966,
-0.18203316628932953,
0.08557533472776413,
-0.18490535020828247,
-0.4797710180282593,
0.041279904544353485,
0.22406287491321564,
-0.26578328013420105,
-0.16027213633060455,
-0.05942083150148392,
-0.18594880402088165,
0.2781679928302765,
-0.09843119233846664,
-0.38869965076446533,
0.04533236101269722,
-0.11810202896595001,
-0.22078119218349457,
0.46907395124435425,
0.31921708583831787,
-0.3537427484989166,
0.10859625786542892,
-0.4716528356075287,
0.11384689062833786,
0.08351053297519684,
0.21051707863807678,
-0.36592379212379456,
0.44895970821380615,
-0.3048420548439026,
0.13289397954940796,
0.5610039234161377,
-0.2565934658050537,
0.006054115016013384,
0.08536147326231003,
-0.04215111956000328,
-0.16067752242088318,
0.13422061502933502,
-0.06304161995649338,
-0.13407082855701447,
-0.10856437683105469,
0.016782376915216446,
0.3441394567489624,
0.0382879376411438,
0.038852509111166,
-0.15669895708560944,
-0.024769198149442673,
0.12574124336242676,
0.2443981170654297,
0.11008378118276596,
-0.02205432392656803,
-0.03737105801701546,
-0.1964024305343628,
-0.05566839501261711,
-0.11840103566646576,
-0.04348786175251007,
0.46798038482666016,
0.2733064293861389,
0.3011104464530945,
-0.0028270066250115633,
0.15164998173713684,
-0.2742568552494049,
0.13330426812171936,
0.04489561542868614,
-0.27727144956588745,
-0.06685914844274521,
0.010664750821888447,
-0.2895232141017914,
0.0034126807004213333,
-0.45207419991493225,
0.09890749305486679,
0.10530825704336166,
0.31380388140678406,
0.23262697458267212,
-0.09711766242980957,
-0.11902232468128204,
-0.30598562955856323,
0.33053678274154663,
-0.015123190358281136,
-0.30880826711654663,
0.11353122442960739,
-0.4051383435726166,
-0.05489648878574371,
0.08690394461154938,
0.043993547558784485,
0.1716851145029068,
0.11763587594032288,
0.0150821004062891,
0.17876999080181122,
0.12436001002788544,
0.22744961082935333,
-0.21446917951107025,
0.15621066093444824,
-0.11996541917324066,
0.030692758038640022,
0.17973630130290985,
-0.133449986577034,
0.13561873137950897,
0.08357296139001846,
-0.04444060102105141,
0.47719234228134155,
-0.026710066944360733,
0.18943966925144196,
0.1397073119878769,
0.015092534013092518,
0.2696095407009125,
-0.16948793828487396,
-0.02041509933769703,
-0.13537123799324036,
0.04767589643597603,
-0.12000174075365067,
0.11466941982507706,
0.07627496123313904,
-0.07292808592319489,
-0.12954920530319214,
0.3834596276283264,
0.09598342329263687,
-0.010804536752402782,
-0.2696371376514435,
-0.22965876758098602,
-0.14496980607509613,
0.06536243855953217,
0.4955296814441681,
0.36652401089668274,
0.22105911374092102,
0.09654724597930908,
-0.035579994320869446,
-0.053980860859155655,
-0.1855219304561615,
0.23793523013591766,
0.4237585663795471,
0.43809667229652405,
0.35562941431999207,
-0.37812817096710205,
-0.07472430914640427,
-0.2402072697877884,
-0.16073386371135712,
0.1642102748155594,
0.2822505235671997,
-0.40024110674858093,
0.1890033483505249,
-0.059893250465393066,
-0.1696401834487915,
-0.298271507024765,
-0.35486504435539246,
-0.10320379585027695,
-0.25546884536743164,
-0.11922647058963776,
0.27691003680229187,
-0.26685601472854614,
-0.027291689068078995,
0.0960366278886795,
0.012838169932365417,
-0.07400578260421753,
-0.05529898405075073,
-0.341839075088501,
-0.24718044698238373,
-0.1704050600528717,
0.05501197651028633,
0.21830928325653076,
0.09588500112295151,
0.26589658856391907,
-0.18654870986938477,
0.10830147564411163,
-0.4633399546146393,
-0.08259453624486923,
-0.017645761370658875,
-0.008097412064671516,
0.30249500274658203,
0.27422934770584106,
0.08020762354135513,
0.299799382686615,
-0.24657782912254333,
0.4653753638267517,
-0.01209819596260786,
0.020435092970728874,
0.23647557199001312,
-0.02133834734559059,
-0.11214356124401093,
-0.03339594975113869,
-0.38095879554748535,
0.06997314840555191,
-0.45348095893859863,
-0.3755660951137543,
0.011292049661278725,
0.1440519392490387,
0.2753456234931946,
0.33289486169815063,
0.22992506623268127,
-0.209956094622612,
0.33619654178619385,
-0.20963238179683685,
-0.20370499789714813,
0.12677805125713348,
-0.2523745894432068,
-0.2639801502227783,
0.3304712474346161,
-0.045013394206762314,
0.805679202079773,
-0.10353153198957443,
-0.2581116855144501,
-0.02818189188838005,
0.05415458604693413,
-0.31354761123657227,
-0.14228005707263947,
-0.24673911929130554,
0.3080142140388489,
0.20880381762981415,
-0.0856471061706543,
-0.007817764766514301,
-0.32584938406944275,
0.09111158549785614,
-0.21481941640377045,
0.21225197613239288,
-0.20177704095840454,
0.890449047088623,
-0.005194318015128374,
0.4429088532924652,
0.1470211148262024,
-0.21184644103050232,
0.45299363136291504,
-0.10638014227151871,
0.18244676291942596,
-0.10482364147901535,
-0.26024797558784485,
-0.11808270961046219,
0.16645294427871704,
-0.2900656461715698,
0.14829671382904053,
-0.2593998312950134,
-0.06323479861021042,
-0.2945416569709778,
0.06319589912891388,
-0.3335375487804413,
-0.21664045751094818,
0.010893474332988262,
-0.2645999789237976,
0.13347746431827545,
-0.1084318533539772,
0.03714129701256752,
-0.05224821716547012,
0.17822788655757904,
0.19645608961582184,
0.27402517199516296,
0.1798407882452011,
-0.03609592840075493,
-0.28927183151245117,
-0.022856013849377632,
-0.3024623692035675,
0.3309327960014343,
-0.04492945596575737,
0.14456000924110413,
-0.17260007560253143,
-0.22848117351531982,
0.1085917055606842,
-0.21206329762935638,
0.5687652230262756,
-0.2886081635951996,
0.0759904533624649,
0.25668099522590637,
-0.1874072104692459,
-0.47114619612693787,
-0.2658158838748932,
-0.06750309467315674,
0.24600113928318024,
0.02893737144768238,
0.40878018736839294,
-0.1191495805978775,
-0.48353686928749084,
0.14731790125370026,
-0.05674198269844055,
-0.08621916174888611,
-0.20473463833332062,
-0.3479642868041992,
-0.12316593527793884,
-0.38239043951034546,
-0.07729702442884445,
-0.06978712975978851,
0.34710022807121277,
0.09936125576496124,
-0.20500586926937103,
0.05404183641076088,
0.0844748243689537,
0.026174426078796387,
-0.04633669555187225,
0.47267234325408936,
0.03306027129292488,
0.23103298246860504,
0.2723464071750641,
0.37697678804397583,
0.10945390164852142,
0.3990897238254547,
0.20310187339782715,
-0.4686414897441864,
-0.10395290702581406,
0.03071441687643528,
0.46288612484931946,
-0.023479312658309937,
-0.1841689795255661,
0.10565712302923203,
0.14306506514549255,
0.1544754058122635,
-0.16917096078395844,
0.10934079438447952,
0.4040111005306244,
0.04353053867816925,
-0.3053802251815796,
-0.5429391264915466,
-0.013675066642463207,
0.08267634361982346,
0.0919228345155716,
-0.06263130158185959,
-0.32039496302604675,
-0.20804183185100555,
0.26093465089797974,
0.40158894658088684,
0.6901732683181763,
-0.07239209860563278,
0.29669058322906494,
0.5587427020072937,
0.09106028825044632,
0.0016882059862837195,
0.2774413824081421,
-0.10427097231149673,
-0.513932466506958,
0.19549086689949036,
0.08333734422922134,
-0.18157550692558289,
-0.009393059648573399,
0.23393364250659943,
-0.17572978138923645,
0.20524345338344574,
-0.21967865526676178,
0.0933762788772583,
-0.17336441576480865,
0.16021417081356049,
-0.16883496940135956,
-0.05021040514111519,
-0.12187576293945312,
0.049732353538274765,
-0.06927282363176346,
0.08204994350671768,
-0.103642039000988,
-0.2097410261631012,
0.03377413749694824,
-0.23093952238559723,
0.07481455057859421,
0.27534398436546326,
0.008100074715912342,
0.034326475113630295,
-0.28055110573768616,
-0.1951715648174286,
0.12133706361055374,
0.24471959471702576,
0.3164100646972656,
0.03513104468584061,
-0.08934565633535385,
0.10109955817461014,
-0.3682296872138977,
-0.2763563096523285,
-0.2608577013015747,
-0.09564302116632462,
0.18498678505420685,
-0.21080175042152405,
-0.049980275332927704,
0.12406247109174728,
-0.06137159839272499,
-0.37628698348999023,
-0.03358619660139084,
-0.035045821219682693,
0.2754875719547272,
-0.4317032992839813,
-0.25452011823654175,
-0.13191178441047668,
-0.11611232906579971,
-0.19192005693912506,
0.16081523895263672,
0.22877062857151031,
-0.12014106661081314,
0.015217668376863003,
-0.15043142437934875,
-0.2745184004306793,
0.058402884751558304,
0.5248117446899414,
-0.10167981684207916,
0.15217003226280212,
0.6307947039604187,
0.0710354745388031,
-0.11384996026754379,
-0.2894230782985687,
-0.29964905977249146,
0.018357424065470695,
-0.2909435033798218,
0.18339084088802338,
0.24349400401115417,
-0.06892147660255432,
0.24410240352153778,
0.3077546954154968,
0.17140591144561768,
-0.09898427128791809,
-0.050827015191316605,
-0.5483646392822266,
-0.02840510383248329,
0.04740952327847481,
-0.1534881740808487,
0.362004816532135,
0.1767350733280182,
-0.3220783472061157,
-0.08175989240407944,
-0.17704489827156067,
-0.2993302047252655,
0.001103654270991683,
-0.11980001628398895,
0.24056269228458405,
-0.21579457819461823,
-0.27803757786750793,
0.2113572210073471,
0.062096789479255676,
0.16222558915615082,
-0.35582026839256287,
-0.07771129906177521,
-0.2533760666847229,
-0.06813200563192368,
0.12217023223638535,
0.144182488322258,
0.009541903622448444,
0.13364139199256897,
-0.14447644352912903,
-0.3320428133010864,
-0.13068445026874542,
0.06709075719118118,
0.10109187662601471,
-0.003990956116467714,
0.2840554416179657,
0.09248080849647522,
0.021909546107053757,
-0.1482168734073639,
-0.10650123655796051,
-0.19945403933525085,
-0.17430059611797333,
0.008558907546103,
0.20157188177108765,
-0.18141432106494904,
-0.21467247605323792,
0.04384208470582962,
0.003067956306040287,
0.0793970376253128,
0.07924127578735352,
0.3128158748149872,
-0.46475619077682495,
0.05156795307993889,
0.16024889051914215,
0.5055229067802429,
0.39061716198921204,
-0.07990404218435287,
0.21403546631336212,
0.31187206506729126,
0.23815810680389404,
-0.1135244071483612,
-0.2740479111671448,
-0.19607266783714294,
-0.23409900069236755,
-0.006973994430154562,
-0.06986550241708755,
-0.06775611639022827,
0.05826135352253914,
0.20018203556537628,
-0.04572797566652298,
0.17842550575733185,
0.14800049364566803,
0.12701870501041412,
0.27947333455085754,
-0.32117462158203125,
0.04061457887291908,
0.2804035246372223,
0.17324411869049072,
0.14498315751552582,
0.3777579069137573,
-0.1555618792772293,
0.14438007771968842,
-0.275264710187912,
0.19547274708747864,
-0.1280411332845688,
-0.6779035925865173,
0.10114589333534241,
0.04139900952577591,
-0.09672203660011292,
-0.0895923376083374,
-0.13703258335590363,
0.3286105990409851,
0.031060868874192238,
0.06254469603300095,
-0.36785218119621277,
0.08398833870887756,
-0.14665329456329346,
-0.08804584294557571,
-0.34064123034477234,
0.007626220118254423,
-0.03255164250731468,
0.15515217185020447,
0.15166069567203522,
-0.03498773276805878,
-0.08578842133283615,
0.08755480498075485,
-0.04003482311964035,
-0.04366423934698105,
0.07095468789339066,
0.39618682861328125,
-0.23190270364284515,
-0.40200358629226685,
0.18865327537059784,
-0.12193847447633743,
-0.07899976521730423,
0.0003445003821980208,
0.07150555402040482,
0.5281402468681335,
0.3324436843395233,
0.15924975275993347,
0.004360916092991829,
-0.047878023236989975,
-0.1837078183889389,
-0.05301466956734657,
0.05968419462442398,
0.1682320386171341,
0.31045597791671753,
0.46307072043418884,
0.17038284242153168,
-0.14674115180969238,
0.12417136877775192,
-0.14532606303691864,
0.32080763578414917,
-0.03040103241801262,
0.17152024805545807,
0.17503567039966583,
-0.24030351638793945,
-0.20717668533325195,
0.21401935815811157,
-0.5623787045478821,
-0.24554575979709625,
0.37041333317756653,
0.0733889564871788,
0.05771279335021973,
-0.11649580299854279,
0.05903701111674309,
0.16942816972732544,
0.5225658416748047,
0.1972416788339615,
0.30793192982673645,
-0.45671823620796204,
-0.0008991116774268448,
-0.5817421674728394,
-0.012712910771369934,
0.16453209519386292,
0.27163222432136536,
0.15987253189086914,
0.1856328547000885,
-0.24485717713832855,
-0.07578281313180923,
0.24620425701141357,
0.29718253016471863,
0.10820254683494568,
0.23381586372852325,
-0.15741300582885742,
-0.1347535401582718,
0.15149801969528198,
-0.12748973071575165,
0.0899902805685997,
-0.17915385961532593,
0.0747644305229187,
-0.04721369594335556,
0.03622931241989136,
-0.27514970302581787,
0.02370108664035797,
0.0012946412898600101,
-0.1667187511920929,
0.5104474425315857,
-0.2578531503677368,
0.44648975133895874,
-0.03210362046957016,
0.10998079180717468,
-0.4661695063114166,
0.048950742930173874,
-0.14958453178405762,
0.11494540423154831,
0.07384087890386581,
0.2687282860279083,
-0.025266772136092186,
0.38490527868270874,
-0.4096689820289612,
0.2747504711151123,
-0.16085585951805115,
-0.34263715147972107,
-0.0414934940636158,
0.11783492565155029,
0.07679251581430435,
0.31934788823127747,
0.08215003460645676,
-0.0379420630633831,
0.034878842532634735,
0.06316086649894714,
-0.523525059223175,
-0.21494479477405548,
0.6017243266105652,
-0.4399195611476898,
-0.048564352095127106,
-0.007045770529657602,
0.2270689606666565,
0.111774742603302,
-0.14164423942565918,
-0.41971731185913086,
0.10787064582109451,
0.26367634534835815,
0.10843584686517715,
-0.044717736542224884,
0.3393389880657196,
0.28862717747688293,
0.1458836942911148,
-0.09167245775461197,
0.19398315250873566,
0.1492437720298767,
-0.13217735290527344,
-0.13021691143512726,
-0.3663117289543152
] |
https://github.com/huggingface/datasets/issues/877 | DataLoader(datasets) become more and more slowly within iterations | Hi ! Thanks for reporting.
Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
It would be nice to know whether it comes from the dataloader or not | Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot! | 38 | DataLoader(datasets) become more and more slowly within iterations
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot!
Hi ! Thanks for reporting.
Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
It would be nice to know whether it comes from the dataloader or not | [
-0.3241669535636902,
-0.0680927112698555,
-0.12075738608837128,
0.23754309117794037,
-0.0479867085814476,
-0.055125631392002106,
0.4634113311767578,
-0.010447191074490547,
0.27750056982040405,
0.1358923614025116,
-0.0574941411614418,
0.44069704413414,
-0.03794948756694794,
-0.033812515437603,
-0.2684330940246582,
0.012353095225989819,
-0.0058120256289839745,
0.18658190965652466,
-0.4923050105571747,
-0.12448891997337341,
0.03278559073805809,
0.01309705525636673,
-0.20014438033103943,
-0.22243338823318481,
-0.10729152709245682,
-0.12398410588502884,
0.13693809509277344,
0.13509701192378998,
-0.10981126874685287,
-0.4247671663761139,
0.0017359706107527018,
0.1950882226228714,
0.37131205201148987,
0.6450659036636353,
-0.00011759154585888609,
0.05950559675693512,
0.03183485195040703,
0.22829100489616394,
-0.26630064845085144,
0.4214521646499634,
0.04679829627275467,
-0.44103920459747314,
0.17777612805366516,
-0.1502208113670349,
0.31836265325546265,
-0.16722963750362396,
-0.3622269332408905,
-0.1270674765110016,
0.03635941445827484,
-0.052284080535173416,
0.1114332526922226,
0.5388417840003967,
-0.5062484741210938,
0.014491641893982887,
-0.04278012365102768,
-0.22505831718444824,
-0.1712978333234787,
0.35825595259666443,
0.7214533090591431,
0.06325921416282654,
-0.4866901934146881,
0.26705265045166016,
0.066041000187397,
0.3211708068847656,
0.16954462230205536,
0.15094894170761108,
0.4048442244529724,
-0.28368639945983887,
-0.062000151723623276,
0.30783534049987793,
0.738113284111023,
-0.03541765734553337,
-0.29901739954948425,
-0.09106449037790298,
0.01050700806081295,
-0.19039611518383026,
0.06546349078416824,
-0.3881128132343292,
-0.3574894368648529,
-0.13382180035114288,
-0.3717270493507385,
-0.026921924203634262,
0.06791003048419952,
-0.047242652624845505,
-0.11196941137313843,
-0.06574100255966187,
0.045535631477832794,
-0.13034586608409882,
0.18957781791687012,
-0.2349327951669693,
0.29860934615135193,
-0.19546645879745483,
0.17114396393299103,
0.14892306923866272,
-0.6994064450263977,
-0.09027819335460663,
-0.28484010696411133,
0.05218227952718735,
-0.0891152024269104,
-0.01816943846642971,
0.35489416122436523,
0.1102725937962532,
-0.06674879789352417,
0.060080092400312424,
0.182592511177063,
0.11781713366508484,
0.004975801799446344,
-0.24247077107429504,
0.11380044370889664,
0.09381995350122452,
-0.19686642289161682,
0.0588538721203804,
-0.22029773890972137,
-0.3105728328227997,
0.6017606258392334,
-0.13016079366207123,
-0.1296999603509903,
0.11861708015203476,
-0.24907813966274261,
-0.1723693311214447,
0.12757942080497742,
-0.23051682114601135,
0.3537155091762543,
0.24711282551288605,
-0.15367937088012695,
0.4567604660987854,
-0.2397269457578659,
-0.050376735627651215,
-0.2576821446418762,
-0.43240129947662354,
-0.11311798542737961,
-0.24187882244586945,
-0.1623125821352005,
0.31754446029663086,
-0.03722119331359863,
-0.21194598078727722,
0.07735256850719452,
0.44992339611053467,
0.23963366448879242,
0.01146900374442339,
0.06375019252300262,
-0.22986704111099243,
-0.18952766060829163,
-0.0006904018810018897,
-0.09460999071598053,
0.3075333833694458,
0.03697657957673073,
0.11283618956804276,
-0.06899833679199219,
0.20156627893447876,
-0.6437547206878662,
0.07855034619569778,
-0.039443980902433395,
0.13801272213459015,
0.20789872109889984,
-0.19200439751148224,
-0.2747974693775177,
-0.064682736992836,
-0.17526806890964508,
0.08439978957176208,
0.05752990394830704,
-0.3610057234764099,
-0.05839487165212631,
-0.08916863054037094,
-0.012257037684321404,
0.3467795252799988,
-0.23515398800373077,
0.020275680348277092,
-0.17966113984584808,
0.03479646518826485,
0.44474104046821594,
0.4324098825454712,
-0.344300240278244,
0.6609272360801697,
-0.4009300768375397,
-0.2704450190067291,
0.4817546606063843,
-0.21737438440322876,
-0.43202099204063416,
0.7465628385543823,
-0.15813110768795013,
0.2618143856525421,
0.31242793798446655,
0.40266355872154236,
0.46367326378822327,
-0.2787517309188843,
0.24230965971946716,
0.19207103550434113,
0.19545143842697144,
0.21776434779167175,
-0.14720356464385986,
0.13826730847358704,
0.23421445488929749,
0.21699094772338867,
-0.0854831263422966,
0.3467284142971039,
-0.02161553129553795,
-0.20398864150047302,
0.47376301884651184,
-0.20933935046195984,
-0.07136780023574829,
0.36196228861808777,
-0.1518404483795166,
-0.15508872270584106,
0.1403794288635254,
0.11301711946725845,
-0.5651845335960388,
0.2188803106546402,
0.017457757145166397,
-0.24433742463588715,
0.31228551268577576,
0.1191147118806839,
-0.17051471769809723,
0.08100376278162003,
-0.27757588028907776,
0.0633913055062294,
0.03831972926855087,
0.11556047201156616,
-0.10989666730165482,
-0.33753153681755066,
0.005483634769916534,
0.3593551814556122,
-0.05421261116862297,
0.07246488332748413,
0.11106324195861816,
0.29413264989852905,
0.4734768271446228,
-0.13572800159454346,
0.2266169935464859,
-0.34973427653312683,
-0.0022914374712854624,
-0.10507594794034958,
-0.13632263243198395,
0.2549380362033844,
0.2548445463180542,
0.46633943915367126,
0.4570465683937073,
0.08390586078166962,
0.1968623250722885,
0.09204332530498505,
0.151091530919075,
-0.11825987696647644,
0.2299346774816513,
-0.15048116445541382,
0.3272104859352112,
0.33990031480789185,
-0.43147608637809753,
0.30466511845588684,
-0.15575209259986877,
-0.2725870609283447,
0.07484016567468643,
0.012878438457846642,
-0.09949050098657608,
0.36360836029052734,
0.4137883186340332,
0.18912248313426971,
0.5586003661155701,
0.21355044841766357,
-0.1636325567960739,
0.12998203933238983,
0.0829000249505043,
0.08679240942001343,
-0.23389284312725067,
0.17535212635993958,
-0.269944965839386,
-0.0051416619680821896,
-0.19180002808570862,
-0.019730040803551674,
0.4462364614009857,
0.03285037726163864,
0.18072472512722015,
-0.19301235675811768,
0.21828895807266235,
-0.1475968211889267,
-0.01963789202272892,
0.2065652310848236,
0.2737126648426056,
0.4008263051509857,
-0.029416324570775032,
-0.08975809812545776,
-0.31646960973739624,
-0.2832612991333008,
0.08549590408802032,
0.36030668020248413,
-0.09956783801317215,
0.20977701246738434,
-0.2502036392688751,
0.19539564847946167,
-0.18948306143283844,
-0.35576358437538147,
-0.1991959810256958,
-0.26041799783706665,
-0.19258789718151093,
0.07874438911676407,
0.29646435379981995,
-0.009786270558834076,
0.10028251260519028,
-0.01925395056605339,
0.23097965121269226,
0.07351846247911453,
-0.16929122805595398,
0.032754085958004,
-0.09568384289741516,
-0.019179703667759895,
0.20258620381355286,
-0.1779782772064209,
0.06359667330980301,
-0.09347227215766907,
0.1840919703245163,
-0.3834201991558075,
0.19687625765800476,
-0.1433965265750885,
0.04453059658408165,
0.16536059975624084,
-0.02526172623038292,
0.3253192603588104,
-0.021857254207134247,
-0.10167890042066574,
0.11566511541604996,
-0.1382932960987091,
-0.031626880168914795,
-0.024585526436567307,
-0.19355246424674988,
0.11500048637390137,
0.36581942439079285,
0.07104019820690155,
-0.2702751159667969,
-0.10066506266593933,
-0.22871650755405426,
0.03875152766704559,
0.13283760845661163,
-0.15252576768398285,
-0.11260237544775009,
0.07761543989181519,
0.25645512342453003,
0.026456814259290695,
-0.02348809503018856,
-0.7568567991256714,
0.40948486328125,
0.09237949550151825,
0.048086412250995636,
-0.2590310275554657,
-0.11156830191612244,
0.20963820815086365,
0.2576954960823059,
-0.4277702271938324,
0.023391686379909515,
-0.13141179084777832,
0.22367656230926514,
-0.1926167756319046,
0.13948246836662292,
-0.10263004153966904,
-0.1637045294046402,
-0.06422901898622513,
0.07135836035013199,
-0.07321412116289139,
-0.16029919683933258,
-0.2642505168914795,
0.07125028222799301,
-0.1342388540506363,
0.2918332815170288,
-0.22330446541309357,
0.4822227656841278,
0.21656382083892822,
-0.12052353471517563,
0.08851928263902664,
-0.09224715083837509,
0.09819778054952621,
0.15989182889461517,
-0.3891575038433075,
-0.2941409647464752,
-0.11473441123962402,
-0.33262595534324646,
0.3235487639904022,
-0.34575313329696655,
0.019070541486144066,
0.03778039291501045,
-0.005388189572840929,
-0.1034279465675354,
-0.009618074633181095,
0.14078330993652344,
-0.1608005166053772,
0.28508228063583374,
-0.12760069966316223,
0.05511844530701637,
-0.3122488558292389,
-0.13164857029914856,
0.07561083137989044,
0.16637001931667328,
0.010002360679209232,
-0.3491048812866211,
-0.42167460918426514,
0.1617167741060257,
-0.48158615827560425,
0.057887084782123566,
-0.03318926692008972,
0.5251988172531128,
0.37199053168296814,
0.08601737767457962,
0.3544752895832062,
0.07998518645763397,
0.5257924199104309,
0.20511896908283234,
-0.22329236567020416,
0.002348949434235692,
-0.4758288860321045,
0.014172153547406197,
-0.1697368621826172,
-0.2489892542362213,
0.2695688307285309,
0.34607550501823425,
0.40944942831993103,
-0.06740020215511322,
-0.187281996011734,
-0.09539222717285156,
0.1143278032541275,
-0.2102627158164978,
-0.568430483341217,
-0.15205201506614685,
0.102138452231884,
0.16262982785701752,
0.1056237518787384,
-0.535679042339325,
0.2143601030111313,
0.03225430101156235,
-0.018900128081440926,
-0.0836556926369667,
-0.2037844955921173,
0.3269469738006592,
0.07475858926773071,
0.11293421685695648,
0.14727157354354858,
0.36089420318603516,
0.014742047525942326,
-0.06843931972980499,
0.1255163550376892,
0.15688195824623108,
-0.022057225927710533,
-0.16957765817642212,
0.1808072179555893,
0.09721080958843231,
0.37124982476234436,
0.21939152479171753,
-0.05189400166273117,
0.18395309150218964,
-0.12597860395908356,
0.16054919362068176,
-0.1819387525320053,
-0.26424476504325867,
0.5638890862464905,
0.03097102977335453,
-0.406939834356308,
-0.17196176946163177,
0.483460932970047,
0.09894049912691116,
-0.01054940465837717,
0.34989768266677856,
-0.590415894985199,
0.014225548133254051,
-0.15940448641777039,
0.14201804995536804,
0.7446181774139404,
-0.12648756802082062,
-0.012597058899700642,
0.0659484788775444,
0.3584728240966797,
0.05031852051615715,
-0.17367561161518097,
-0.02918456308543682,
-0.2662469744682312,
-0.42744696140289307,
0.001396668259985745,
-0.3462822437286377,
0.4885742962360382,
0.15713128447532654,
-0.07120678573846817,
0.16933304071426392,
-0.16534680128097534,
-0.02675190381705761,
-0.18235652148723602,
0.16070857644081116,
-0.09415500611066818,
-0.40926939249038696,
-0.3305325210094452,
0.050294578075408936,
-0.11556020379066467,
0.16414311528205872,
-0.1359095722436905,
-0.19621716439723969,
0.080079585313797,
0.2977904677391052,
-0.054925043135881424,
-0.18548117578029633,
-0.30810898542404175,
-0.006028924137353897,
0.5209765434265137,
-0.2394127994775772,
-0.12475588172674179,
0.029318707063794136,
0.06417986005544662,
-0.15903997421264648,
0.043051328510046005,
0.21728958189487457,
-0.027793219313025475,
0.36008960008621216,
0.13431726396083832,
-0.2849559485912323,
0.10392801463603973,
-0.004828877747058868,
0.22510339319705963,
0.34711161255836487,
0.09378589689731598,
-0.220129132270813,
0.03779664263129234,
0.1709921658039093,
0.2526410222053528,
-0.20162037014961243,
-0.16966740787029266,
0.21427521109580994,
0.14977245032787323,
-0.10010456293821335,
0.052983660250902176,
0.494434118270874,
-0.24532651901245117,
0.397970050573349,
0.04845530912280083,
-0.3939450979232788,
-0.1342611163854599,
0.24392710626125336,
0.3966485261917114,
-0.0035282380413264036,
0.5114948153495789,
0.0457230769097805,
-0.2285664826631546,
-0.12651772797107697,
0.26428186893463135,
0.08481286466121674,
-0.25791072845458984,
0.23708482086658478,
0.08470594137907028,
0.38235023617744446,
0.19518251717090607,
0.03654133155941963,
-0.046356093138456345,
-0.07958255708217621,
-0.41962307691574097,
-0.39356231689453125,
-0.138342022895813,
-0.13418687880039215,
-0.03440849483013153,
0.02547849901020527,
-0.2641668915748596,
-0.12822362780570984,
-0.09127545356750488,
0.28526800870895386,
-0.19153046607971191,
-0.11648840457201004,
-0.08780325949192047,
-0.06698355078697205,
0.12309925258159637,
-0.23248298466205597,
0.09892542660236359,
0.31560778617858887,
0.033266980201005936,
0.13626201450824738,
-0.03830910846590996,
-0.17202015221118927,
0.093509741127491,
0.14232023060321808,
-0.05386338010430336,
-0.1565546840429306,
0.08573532104492188,
-0.03153979778289795,
0.11663144081830978,
-0.10027195513248444,
-0.05954906344413757,
-0.07750080525875092,
0.03136536106467247,
0.051088858395814896,
0.3887099623680115,
-0.13450251519680023,
-0.10911960154771805,
0.27311116456985474,
0.025658827275037766,
0.209488183259964,
0.21662583947181702,
-0.008704251609742641,
0.11752419918775558,
-0.26167500019073486,
-0.2864657938480377,
0.12584735453128815,
0.09324371069669724,
-0.11848247796297073,
0.3263697326183319,
-0.5417139530181885,
0.2881821393966675,
0.046943023800849915,
0.1405949890613556,
0.49090680480003357,
-0.11220581084489822,
-0.3595329523086548,
-0.0469784215092659,
0.11881674081087112,
-0.0551329180598259,
-0.31066134572029114,
-0.04353839159011841,
0.15525375306606293,
-0.0671742856502533,
0.15915033221244812,
-0.026454875245690346,
0.0291597843170166,
0.10337427258491516,
-0.19615934789180756,
-0.04102693498134613,
-0.26280245184898376,
-0.14731508493423462,
0.12065238505601883,
0.2635149359703064,
0.12237514555454254,
0.3378017544746399,
0.4258939325809479,
-0.24132606387138367,
0.14060690999031067,
0.08709033578634262,
0.2866998016834259,
0.3331165313720703,
0.15724895894527435,
-0.16726672649383545,
-0.42850878834724426,
-0.10220294445753098,
0.5111819505691528,
-0.2431720644235611,
-0.15942853689193726,
0.061227910220623016,
-0.05945281311869621,
0.1479029655456543,
-0.10620395094156265,
-0.24636293947696686,
0.27216362953186035,
-0.14733511209487915,
-0.2630116045475006,
0.05484114587306976,
0.001562638208270073,
-0.13661478459835052,
0.0878087729215622,
-0.2911333739757538,
0.028630470857024193,
-0.2513046860694885,
0.257212370634079,
0.16574573516845703,
-0.4683099687099457,
-0.4442840814590454,
0.14633619785308838,
-0.09041804075241089,
-0.21343620121479034,
0.061211954802274704,
-0.1709275096654892,
0.2752653658390045,
0.17691285908222198,
0.2811594009399414,
0.2175334244966507,
0.3926665484905243,
0.08407335728406906,
-0.11590799689292908,
-0.3157943785190582,
-0.1059999093413353,
0.13319240510463715,
0.17595815658569336,
-0.26660627126693726,
0.07880663126707077,
0.2236635684967041,
0.010962956584990025,
-0.21974247694015503,
-0.21316634118556976,
-0.13890321552753448,
-0.1174120306968689,
-0.42001739144325256,
0.22548986971378326,
0.1522701531648636,
0.20541654527187347,
-0.25529560446739197,
0.010122865438461304,
-0.32151052355766296,
-0.26942187547683716,
0.3446248173713684,
-0.4715992510318756,
-0.06064334884285927,
-0.004403579514473677,
0.01552457083016634,
-0.4134434461593628,
0.7372549176216125,
0.44197940826416016,
0.39895856380462646,
-0.3557167649269104,
-0.1895863264799118,
-0.48552751541137695,
-0.10538365691900253,
-0.24922791123390198,
-0.12535496056079865,
0.3149227499961853,
0.450552761554718,
0.0909566730260849,
0.34658026695251465,
0.4759303331375122,
0.0007376396679319441,
-0.23305030167102814,
0.10604590177536011,
-0.38057056069374084,
0.08595649898052216,
-0.25193628668785095,
0.19735071063041687,
-0.21699008345603943,
-0.25610944628715515,
0.5060575008392334,
0.02612276002764702,
0.08500953018665314,
0.13274572789669037,
0.006447875872254372,
0.2202892303466797,
0.5054418444633484,
0.1820293664932251,
-0.0491194874048233,
0.012755831703543663,
0.12495017051696777,
-0.012006559409201145,
-0.026048434898257256,
-0.24672487378120422,
0.09297440201044083,
0.020972512662410736,
0.0895192101597786,
-0.048032522201538086,
-0.06451823562383652,
0.10162817686796188,
-0.12254954129457474,
0.3272274434566498,
-0.12301307171583176,
-0.08390840888023376,
-0.10536573827266693,
-0.024037865921854973,
0.09946097433567047,
0.27041807770729065,
0.024356305599212646,
0.3296838402748108,
0.33030301332473755,
0.22318707406520844,
-0.398743212223053,
-0.01952519081532955,
0.18545334041118622,
-0.4523904025554657,
-0.27270692586898804,
-0.23031631112098694,
0.20114275813102722,
0.16967803239822388,
0.25932368636131287,
-0.1572711169719696,
0.12485102564096451,
0.5009222030639648,
-0.076893649995327,
0.13011422753334045,
0.33282074332237244,
-0.022250136360526085,
0.3303355574607849,
-0.07234010845422745,
0.169429212808609,
-0.06518612802028656,
-0.19604404270648956,
-0.22236233949661255,
-0.09461754560470581
] |
https://github.com/huggingface/datasets/issues/877 | DataLoader(datasets) become more and more slowly within iterations | > Hi ! Thanks for reporting.
> Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
> It would be nice to know whether it comes from the dataloader or not
I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s. | Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot! | 64 | DataLoader(datasets) become more and more slowly within iterations
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot!
> Hi ! Thanks for reporting.
> Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
> It would be nice to know whether it comes from the dataloader or not
I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s. | [
-0.31665992736816406,
-0.10293681919574738,
-0.09790528565645218,
0.24407020211219788,
-0.0499429814517498,
-0.06016191467642784,
0.4438633322715759,
0.05886587128043175,
0.2712092101573944,
0.12997455894947052,
-0.1063351109623909,
0.41852936148643494,
-0.0331583246588707,
-0.02751450054347515,
-0.2983725368976593,
-0.004931450355798006,
0.006709677167236805,
0.18829762935638428,
-0.4768674075603485,
-0.11947080492973328,
0.017964698374271393,
0.054586559534072876,
-0.2014026939868927,
-0.1911981701850891,
-0.10099828243255615,
-0.12060406059026718,
0.14090383052825928,
0.17107917368412018,
-0.13374681770801544,
-0.42460960149765015,
-0.013866339810192585,
0.19352689385414124,
0.39524486660957336,
0.6482264399528503,
-0.00011782018555095419,
0.05661836639046669,
0.026499375700950623,
0.21208615601062775,
-0.25656571984291077,
0.40059372782707214,
0.059771716594696045,
-0.43373653292655945,
0.16833645105361938,
-0.151347815990448,
0.293093740940094,
-0.19664908945560455,
-0.3613283634185791,
-0.136707603931427,
0.06310751289129257,
-0.02522612363100052,
0.09394097328186035,
0.5212467908859253,
-0.47035327553749084,
0.02971450239419937,
-0.033709898591041565,
-0.18532425165176392,
-0.1692756712436676,
0.38148531317710876,
0.7359798550605774,
0.056453049182891846,
-0.5058468580245972,
0.2526673972606659,
0.051794618368148804,
0.3203216791152954,
0.1774703413248062,
0.1548086553812027,
0.3938530385494232,
-0.2973325848579407,
-0.06327160447835922,
0.3236044943332672,
0.7466249465942383,
-0.021077817305922508,
-0.29433441162109375,
-0.06970909237861633,
-0.012459623627364635,
-0.2196052223443985,
0.08096019178628922,
-0.3400808572769165,
-0.3324061334133148,
-0.13574504852294922,
-0.3238391876220703,
-0.030991360545158386,
0.023505978286266327,
-0.049088332802057266,
-0.08604659885168076,
-0.06609261780977249,
0.06496451795101166,
-0.11877630650997162,
0.23688477277755737,
-0.26701149344444275,
0.3284734785556793,
-0.1962854266166687,
0.13204540312290192,
0.15154965221881866,
-0.6910883784294128,
-0.10199172794818878,
-0.31915777921676636,
0.03199508786201477,
-0.059574633836746216,
0.0018937030108645558,
0.3282824456691742,
0.13340947031974792,
-0.08339567482471466,
0.05044044181704521,
0.16586044430732727,
0.12847843766212463,
-0.0052223424427211285,
-0.2074887454509735,
0.10975705087184906,
0.1336803287267685,
-0.23767288029193878,
0.028205720707774162,
-0.20981928706169128,
-0.3414178490638733,
0.5878214836120605,
-0.1503877341747284,
-0.14326174557209015,
0.1301598697900772,
-0.22435952723026276,
-0.22268398106098175,
0.12001100182533264,
-0.2705472707748413,
0.36142128705978394,
0.24293187260627747,
-0.13945910334587097,
0.42874887585639954,
-0.23865769803524017,
-0.04815969988703728,
-0.28185534477233887,
-0.43022334575653076,
-0.07409439235925674,
-0.22630424797534943,
-0.14699354767799377,
0.31793588399887085,
-0.0038821580819785595,
-0.20840178430080414,
0.060328807681798935,
0.45743343234062195,
0.2425089031457901,
-0.012822246178984642,
0.1101612001657486,
-0.26861539483070374,
-0.11842377483844757,
-0.0063191968947649,
-0.1206202507019043,
0.3061603605747223,
0.05166584253311157,
0.07608586549758911,
-0.09695161134004593,
0.18325263261795044,
-0.6864609718322754,
0.08343707025051117,
-0.06727977097034454,
0.11888813972473145,
0.20859265327453613,
-0.1886485069990158,
-0.2580995559692383,
-0.097959004342556,
-0.2360370010137558,
-0.007542531471699476,
0.03474053367972374,
-0.36948180198669434,
-0.05334538221359253,
-0.06925205141305923,
0.010637372732162476,
0.3819204270839691,
-0.19733113050460815,
0.035057615488767624,
-0.158267080783844,
0.045413028448820114,
0.45445629954338074,
0.46504759788513184,
-0.3375990092754364,
0.6549205780029297,
-0.45231565833091736,
-0.24646475911140442,
0.4832216203212738,
-0.22516091167926788,
-0.428491473197937,
0.8008061051368713,
-0.1540125608444214,
0.283891886472702,
0.31930625438690186,
0.4010230004787445,
0.43096229434013367,
-0.2910650074481964,
0.1836390644311905,
0.17515693604946136,
0.20736044645309448,
0.21590600907802582,
-0.16109192371368408,
0.15023711323738098,
0.21004658937454224,
0.21987693011760712,
-0.0866750106215477,
0.37316787242889404,
0.01380560826510191,
-0.24458461999893188,
0.5300355553627014,
-0.23380710184574127,
-0.06451750546693802,
0.3581281900405884,
-0.12760180234909058,
-0.17729038000106812,
0.16328053176403046,
0.11612823605537415,
-0.5292485356330872,
0.2247515618801117,
-0.01825329288840294,
-0.2675390839576721,
0.30403974652290344,
0.13151293992996216,
-0.17322222888469696,
0.0576087087392807,
-0.2893499433994293,
0.06051773205399513,
0.03442418947815895,
0.13011236488819122,
-0.1397276073694229,
-0.3061439096927643,
-0.013618038967251778,
0.3415115177631378,
-0.0361141711473465,
0.05006038397550583,
0.0910874679684639,
0.2567870020866394,
0.4768994152545929,
-0.10744880884885788,
0.20596753060817719,
-0.3815585970878601,
0.0034205778501927853,
-0.12450230866670609,
-0.14312875270843506,
0.25944674015045166,
0.25451987981796265,
0.4919041097164154,
0.4801601767539978,
0.10596533864736557,
0.2099207639694214,
0.07943733036518097,
0.12122853100299835,
-0.13130338490009308,
0.23050253093242645,
-0.14944224059581757,
0.30682387948036194,
0.3459585905075073,
-0.4667883515357971,
0.33175110816955566,
-0.13551589846611023,
-0.28344759345054626,
0.0963178277015686,
-0.00368949375115335,
-0.09473267197608948,
0.4250706732273102,
0.4221172630786896,
0.2127610743045807,
0.5241930484771729,
0.20978571474552155,
-0.16578058898448944,
0.10913778096437454,
0.12474652379751205,
0.08734731376171112,
-0.2630181610584259,
0.1912240833044052,
-0.24784669280052185,
0.013132563792169094,
-0.18870775401592255,
-0.020451825112104416,
0.45746928453445435,
0.03076184168457985,
0.1961122751235962,
-0.1940346658229828,
0.24210475385189056,
-0.16298803687095642,
-0.00855692382901907,
0.20145626366138458,
0.29799360036849976,
0.4072524607181549,
-0.051467522978782654,
-0.08248570561408997,
-0.2856568396091461,
-0.3075770139694214,
0.09668512642383575,
0.33802929520606995,
-0.11081843823194504,
0.2201795130968094,
-0.24319924414157867,
0.18314795196056366,
-0.18349751830101013,
-0.3231661915779114,
-0.2017688900232315,
-0.2333124727010727,
-0.20808765292167664,
0.1413586586713791,
0.3014654815196991,
-0.024840885773301125,
0.14724114537239075,
-0.02045251801609993,
0.22736647725105286,
0.049364861100912094,
-0.18514925241470337,
0.03640476241707802,
-0.09345012903213501,
-0.03839960694313049,
0.25958290696144104,
-0.17247118055820465,
0.04506324976682663,
-0.11903277784585953,
0.17749595642089844,
-0.3923739492893219,
0.20009447634220123,
-0.13996073603630066,
0.07182077318429947,
0.17243973910808563,
-0.05844247341156006,
0.35950538516044617,
-0.0697542205452919,
-0.09754766523838043,
0.10091257095336914,
-0.11513396352529526,
-0.005050845444202423,
0.01295013539493084,
-0.21459680795669556,
0.11320456862449646,
0.37659648060798645,
0.053709354251623154,
-0.2767656445503235,
-0.12880323827266693,
-0.1705852597951889,
0.03403512015938759,
0.14896604418754578,
-0.12206166982650757,
-0.13055917620658875,
0.06557955592870712,
0.24509555101394653,
0.050166718661785126,
0.015743112191557884,
-0.7621062994003296,
0.3951427638530731,
0.06771677732467651,
0.015577235259115696,
-0.24871809780597687,
-0.07882382720708847,
0.19259434938430786,
0.24240076541900635,
-0.44387340545654297,
0.004475065506994724,
-0.10685835033655167,
0.23402176797389984,
-0.2126055210828781,
0.1059337854385376,
-0.10010940581560135,
-0.13561134040355682,
-0.060072146356105804,
0.06718612462282181,
-0.04682539775967598,
-0.14238731563091278,
-0.25931641459465027,
0.05233711004257202,
-0.08204251527786255,
0.27099961042404175,
-0.20039348304271698,
0.46415168046951294,
0.24662013351917267,
-0.08608497679233551,
0.13531294465065002,
-0.10737088322639465,
0.09270977973937988,
0.13372014462947845,
-0.3944266140460968,
-0.26073727011680603,
-0.11743525415658951,
-0.31289142370224,
0.3140820860862732,
-0.3539556860923767,
0.01198293175548315,
0.001005158992484212,
0.0014419102808460593,
-0.09455305337905884,
-0.028845803812146187,
0.15463033318519592,
-0.15467792749404907,
0.2852310240268707,
-0.13614116609096527,
0.023718740791082382,
-0.3096567392349243,
-0.16585204005241394,
0.1099759042263031,
0.20086702704429626,
0.034529026597738266,
-0.33260324597358704,
-0.407292902469635,
0.13628655672073364,
-0.45399975776672363,
0.04848318174481392,
-0.009008885361254215,
0.5288022756576538,
0.3669133484363556,
0.06603285670280457,
0.3438122570514679,
0.06050701439380646,
0.5548291802406311,
0.2545395493507385,
-0.20801113545894623,
0.019586002454161644,
-0.4589506983757019,
0.02022690139710903,
-0.16294220089912415,
-0.2597130835056305,
0.26897647976875305,
0.35518401861190796,
0.464461088180542,
-0.055768683552742004,
-0.223153218626976,
-0.12569749355316162,
0.131010502576828,
-0.17778003215789795,
-0.5715377926826477,
-0.11795231699943542,
0.10327962785959244,
0.14910222589969635,
0.10275809466838837,
-0.5400914549827576,
0.218064546585083,
0.008647073060274124,
-0.013799043372273445,
-0.07276596128940582,
-0.20456112921237946,
0.31140613555908203,
0.07045751065015793,
0.13197918236255646,
0.17893899977207184,
0.3548606038093567,
0.010865370742976665,
-0.026491040363907814,
0.13808870315551758,
0.1556931585073471,
-0.02588799223303795,
-0.17096005380153656,
0.16591113805770874,
0.07665413618087769,
0.32143765687942505,
0.2069893330335617,
-0.04952605813741684,
0.1642778515815735,
-0.13356852531433105,
0.1671287566423416,
-0.18984362483024597,
-0.23645713925361633,
0.5697373151779175,
0.014337163418531418,
-0.41167953610420227,
-0.1541273444890976,
0.46923333406448364,
0.08243688941001892,
-0.03293097764253616,
0.3657380938529968,
-0.5970934629440308,
0.030388088896870613,
-0.15926845371723175,
0.11820760369300842,
0.7345677018165588,
-0.13996469974517822,
-0.011086024343967438,
0.06307123601436615,
0.3613540530204773,
0.04454941675066948,
-0.19977889955043793,
-0.024523504078388214,
-0.26330557465553284,
-0.4968051314353943,
-0.006457754876464605,
-0.3365730047225952,
0.4635763168334961,
0.17439080774784088,
-0.07890445739030838,
0.15655004978179932,
-0.10586365312337875,
-0.08096552640199661,
-0.19446401298046112,
0.23457114398479462,
-0.08446288853883743,
-0.41027912497520447,
-0.2810540497303009,
0.03884584456682205,
-0.13397520780563354,
0.1421445608139038,
-0.1132422387599945,
-0.23501940071582794,
0.08510024845600128,
0.32901549339294434,
-0.03518347069621086,
-0.19625455141067505,
-0.3124465346336365,
-0.012079364620149136,
0.4914208650588989,
-0.261890172958374,
-0.13249841332435608,
0.07068607211112976,
0.05156298726797104,
-0.16600163280963898,
0.0156613327562809,
0.21861489117145538,
-0.011865256354212761,
0.35124483704566956,
0.13585619628429413,
-0.2737428545951843,
0.12673673033714294,
-0.024862324818968773,
0.20718063414096832,
0.29733872413635254,
0.07344670593738556,
-0.2179529368877411,
0.06714528799057007,
0.1551453024148941,
0.25283676385879517,
-0.18122504651546478,
-0.1727757602930069,
0.1670878827571869,
0.08984150737524033,
-0.07807866483926773,
0.04230727627873421,
0.4858025014400482,
-0.23435333371162415,
0.4053570032119751,
0.06505535542964935,
-0.424410343170166,
-0.13949260115623474,
0.2559439539909363,
0.33452120423316956,
-0.043380558490753174,
0.5527667999267578,
0.054234035313129425,
-0.21014700829982758,
-0.1225174218416214,
0.31440478563308716,
0.06252703070640564,
-0.2677164375782013,
0.24836333096027374,
0.11360254138708115,
0.4252675473690033,
0.22273562848567963,
0.026056809350848198,
-0.025055620819330215,
-0.0971146747469902,
-0.38784390687942505,
-0.39766931533813477,
-0.152053564786911,
-0.15829989314079285,
-0.03330766037106514,
0.007874201983213425,
-0.2520017623901367,
-0.17516250908374786,
-0.046198368072509766,
0.26507800817489624,
-0.18479827046394348,
-0.09129057079553604,
-0.07563889026641846,
-0.07173893600702286,
0.16888228058815002,
-0.19443988800048828,
0.11624321341514587,
0.32306742668151855,
0.022184107452630997,
0.09591042250394821,
-0.0278775654733181,
-0.15388047695159912,
0.06645413488149643,
0.14953061938285828,
-0.09377148002386093,
-0.19926653802394867,
0.08279712498188019,
-0.0799875557422638,
0.08723051100969315,
-0.1243395060300827,
-0.11060379445552826,
-0.10671155899763107,
-0.007849148474633694,
0.06477843225002289,
0.36949101090431213,
-0.15744096040725708,
-0.12221822142601013,
0.27086499333381653,
0.01515992172062397,
0.17465421557426453,
0.19521918892860413,
-0.004496637266129255,
0.11717300117015839,
-0.2872147560119629,
-0.26666146516799927,
0.10802476853132248,
0.11657914519309998,
-0.11886559426784515,
0.3841858506202698,
-0.5312280654907227,
0.2938060760498047,
0.047239094972610474,
0.15315793454647064,
0.4938797354698181,
-0.1071816012263298,
-0.3221668303012848,
-0.02040230855345726,
0.10874441266059875,
-0.041273877024650574,
-0.3164401054382324,
-0.043235208839178085,
0.13909503817558289,
-0.07004338502883911,
0.1413058042526245,
-0.020987162366509438,
0.00848870538175106,
0.1209070011973381,
-0.1787739247083664,
-0.03180397301912308,
-0.2754976451396942,
-0.1832914501428604,
0.11373686045408249,
0.2706338167190552,
0.09249918907880783,
0.3110261857509613,
0.42163291573524475,
-0.23206762969493866,
0.1466449499130249,
0.050889112055301666,
0.2746368646621704,
0.3467848002910614,
0.1904749870300293,
-0.19239546358585358,
-0.4684845507144928,
-0.11911588162183762,
0.4923175573348999,
-0.23875176906585693,
-0.15278872847557068,
0.04576151445508003,
-0.05545664578676224,
0.1530504822731018,
-0.12370337545871735,
-0.21787142753601074,
0.26524999737739563,
-0.1303158402442932,
-0.23759840428829193,
0.056486938148736954,
-0.006806087680160999,
-0.14628686010837555,
0.08958753198385239,
-0.2862943708896637,
0.08165065944194794,
-0.24941162765026093,
0.3162236511707306,
0.16349096596240997,
-0.421857088804245,
-0.455207884311676,
0.1364048570394516,
-0.051443248987197876,
-0.24443458020687103,
0.043728165328502655,
-0.15861056745052338,
0.2364048957824707,
0.19429247081279755,
0.27664265036582947,
0.23075543344020844,
0.4069310128688812,
0.09459036588668823,
-0.08649911731481552,
-0.32399609684944153,
-0.09404953569173813,
0.14226573705673218,
0.17593097686767578,
-0.24219731986522675,
0.09370081126689911,
0.23886844515800476,
-0.012227252125740051,
-0.20298060774803162,
-0.21318471431732178,
-0.18224504590034485,
-0.10115354508161545,
-0.4517959952354431,
0.17296265065670013,
0.19040389358997345,
0.16218383610248566,
-0.27385789155960083,
-0.021747447550296783,
-0.3191104531288147,
-0.24766798317432404,
0.33614781498908997,
-0.4791129231452942,
-0.03346326947212219,
-0.000531525060068816,
0.015080361627042294,
-0.3787364363670349,
0.7244367003440857,
0.4265894293785095,
0.373186856508255,
-0.3712475597858429,
-0.20311971008777618,
-0.4963701665401459,
-0.13565456867218018,
-0.1927957534790039,
-0.09296372532844543,
0.3313577175140381,
0.42026135325431824,
0.08913695812225342,
0.2848302125930786,
0.4489075541496277,
-0.036792732775211334,
-0.2154841125011444,
0.14586515724658966,
-0.37627479434013367,
0.06101970002055168,
-0.2251269817352295,
0.24610479176044464,
-0.23042212426662445,
-0.23883937299251556,
0.5200163125991821,
-0.0023022510576993227,
0.07588373124599457,
0.16672147810459137,
-0.01066228561103344,
0.23846635222434998,
0.5113663673400879,
0.18183210492134094,
-0.014339474961161613,
0.03555891662836075,
0.07969267666339874,
0.005866843741387129,
-0.01019336562603712,
-0.21858005225658417,
0.06695981323719025,
0.028292810544371605,
0.09777404367923737,
-0.04490216076374054,
-0.051878221333026886,
0.07381487637758255,
-0.15082737803459167,
0.3138604760169983,
-0.1692911982536316,
-0.08985695987939835,
-0.14281345903873444,
-0.04917299374938011,
0.12824667990207672,
0.25654086470603943,
0.03825050964951515,
0.3413081765174866,
0.33975768089294434,
0.21156558394432068,
-0.42150744795799255,
-0.012690268456935883,
0.17041508853435516,
-0.4388914704322815,
-0.2576795816421509,
-0.18825192749500275,
0.2134842425584793,
0.13326773047447205,
0.29818159341812134,
-0.1307428926229477,
0.15052367746829987,
0.5181913375854492,
-0.059445202350616455,
0.14137671887874603,
0.3339853882789612,
-0.021269412711262703,
0.33722126483917236,
-0.053097210824489594,
0.18005023896694183,
-0.01834971271455288,
-0.22417432069778442,
-0.22409671545028687,
-0.07886043936014175
] |
https://github.com/huggingface/datasets/issues/876 | imdb dataset cannot be loaded | It looks like there was an issue while building the imdb dataset.
Could you provide more information about your OS and the version of python and `datasets` ?
Also could you try again with
```python
dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload")
```
to make sure it's not a corrupted file issue ? | Hi
I am trying to load the imdb train dataset
`dataset = datasets.load_dataset("imdb", split="train")`
getting following errors, thanks for your help
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
>>> dataset = datasets.load_dataset("imdb", split="train")
```
| 51 | imdb dataset cannot be loaded
Hi
I am trying to load the imdb train dataset
`dataset = datasets.load_dataset("imdb", split="train")`
getting following errors, thanks for your help
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
>>> dataset = datasets.load_dataset("imdb", split="train")
```
It looks like there was an issue while building the imdb dataset.
Could you provide more information about your OS and the version of python and `datasets` ?
Also could you try again with
```python
dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload")
```
to make sure it's not a corrupted file issue ? | [
-0.5215907692909241,
-0.03979794308543205,
-0.12092772871255875,
0.41382864117622375,
0.30875933170318604,
0.3442186117172241,
0.4162842035293579,
0.41161730885505676,
0.18930791318416595,
-0.12590980529785156,
-0.24593763053417206,
-0.03638038411736488,
-0.23879972100257874,
0.11891843378543854,
-0.10061242431402206,
-0.19338934123516083,
-0.10938957333564758,
-0.008349279873073101,
0.008231756277382374,
0.024809909984469414,
-0.19548287987709045,
0.2631109058856964,
-0.4074179530143738,
-0.00738108903169632,
-0.5533472299575806,
-0.20760469138622284,
0.06644174456596375,
0.24647262692451477,
-0.1878923624753952,
-0.37773269414901733,
0.43747028708457947,
0.033827267587184906,
0.2985222041606903,
0.4265395402908325,
-0.00010842885967576876,
0.06612183153629303,
0.5560089945793152,
-0.14080360531806946,
-0.3377947509288788,
-0.2855275273323059,
-0.29108700156211853,
-0.07343319803476334,
0.2554956078529358,
-0.21219033002853394,
-0.06103907525539398,
-0.2735612988471985,
-0.08767948299646378,
-0.4681125581264496,
0.30001530051231384,
0.4594838619232178,
0.25512436032295227,
-0.030522726476192474,
0.07603662461042404,
-0.14565660059452057,
0.09943027794361115,
0.18256932497024536,
0.00969215203076601,
0.30303865671157837,
0.07601168751716614,
0.017388787120580673,
0.21452279388904572,
0.04152539372444153,
-0.25405174493789673,
-0.03798885643482208,
0.29627418518066406,
0.02748904749751091,
0.06730129569768906,
-0.46777012944221497,
0.03473811224102974,
0.24855925142765045,
0.6612048745155334,
-0.0836041122674942,
-0.35141316056251526,
-0.0572897270321846,
0.1594482809305191,
-0.2821143865585327,
0.1125699058175087,
0.2813578248023987,
-0.12026634067296982,
0.10454128682613373,
-0.4093436300754547,
-0.06621991842985153,
-0.08582472056150436,
0.177036315202713,
0.03006083332002163,
-0.07027620822191238,
0.05906892567873001,
0.07509040087461472,
0.22232161462306976,
-0.10040900111198425,
0.30603280663490295,
0.02870640717446804,
0.011488955467939377,
0.16014784574508667,
-0.2722388505935669,
0.061654552817344666,
-0.30993565917015076,
0.0013535222969949245,
-0.0696118101477623,
0.24964125454425812,
-0.20697613060474396,
-0.021083494648337364,
-0.02921150252223015,
0.2595464885234833,
0.28348663449287415,
0.13758432865142822,
0.03883605822920799,
0.40642398595809937,
0.14483924210071564,
0.23831318318843842,
-0.2738071084022522,
-0.10596121847629547,
-0.22602270543575287,
-0.15016987919807434,
0.09803571552038193,
0.13029877841472626,
0.025858743116259575,
-0.18133123219013214,
-0.5039569139480591,
-0.017943216487765312,
-0.18610525131225586,
0.0018605752848088741,
0.3757006824016571,
0.3940538763999939,
-0.10823441296815872,
0.17110253870487213,
0.18745729327201843,
0.31052103638648987,
-0.11816956847906113,
-0.06304173171520233,
-0.18552382290363312,
0.27311888337135315,
-0.18487600982189178,
0.0785207524895668,
0.40667077898979187,
-0.1432265043258667,
0.4070621728897095,
0.013880256563425064,
0.09884445369243622,
-0.20597687363624573,
0.1962585300207138,
-0.32651808857917786,
0.0474713072180748,
0.30694690346717834,
0.28823891282081604,
0.1749826967716217,
0.1750795990228653,
-0.022215761244297028,
-0.1219261884689331,
0.04349031671881676,
-0.24633757770061493,
-0.41313499212265015,
-0.182931587100029,
0.27879318594932556,
-0.0036364514380693436,
-0.055039629340171814,
-0.4261499047279358,
-0.029297268018126488,
0.04318869858980179,
-0.18810053169727325,
-0.17584599554538727,
-0.30514100193977356,
-0.17556264996528625,
-0.12360318750143051,
0.428362637758255,
0.47422096133232117,
-0.28194308280944824,
-0.06770189106464386,
-0.35458773374557495,
-0.10195979475975037,
0.20716610550880432,
0.25222358107566833,
-0.30165979266166687,
0.22459730505943298,
-0.36442944407463074,
0.1026928722858429,
0.3114508092403412,
-0.489624559879303,
-0.1315891146659851,
0.30700984597206116,
0.1519508808851242,
0.11789880692958832,
0.0510699637234211,
0.11782144010066986,
0.3234884738922119,
0.01528154220432043,
0.237396240234375,
0.4272215664386749,
-0.033305197954177856,
-0.1566786915063858,
-0.06332516670227051,
-0.20160868763923645,
0.19543537497520447,
0.3601021468639374,
0.3082617223262787,
0.002115286188200116,
0.0012143582571297884,
0.20979644358158112,
0.27425944805145264,
0.11757420003414154,
-0.04087219759821892,
0.20631946623325348,
-0.052626073360443115,
0.3531845808029175,
-0.05415099486708641,
-0.1990603357553482,
-0.4411430060863495,
0.19672279059886932,
0.2666049599647522,
-0.04650978744029999,
-0.15744276344776154,
-0.10118726640939713,
-0.27584540843963623,
-0.179388627409935,
-0.23914052546024323,
0.003442702814936638,
0.18499727547168732,
-0.08312596380710602,
-0.013920892961323261,
0.05820164456963539,
-0.43721866607666016,
0.39670222997665405,
-0.10662008821964264,
0.1430695652961731,
-0.3454018831253052,
0.3588089048862457,
-0.17270371317863464,
-0.22369614243507385,
0.1571170538663864,
0.11874433606863022,
0.18630963563919067,
-0.24966654181480408,
-0.0465860478579998,
0.4384959638118744,
0.327171266078949,
-0.028225719928741455,
-0.07127595692873001,
-0.22272944450378418,
0.1980135142803192,
-0.37379780411720276,
0.160286545753479,
-0.13035064935684204,
0.05175192654132843,
-0.13544005155563354,
-0.05916903167963028,
0.16390615701675415,
-0.28177034854888916,
0.24405567348003387,
0.2280351221561432,
0.1386641412973404,
0.2511507570743561,
-0.09945817291736603,
-0.021128103137016296,
-0.44060850143432617,
0.18278902769088745,
-0.019028017297387123,
0.018331089988350868,
-0.014589134603738785,
-0.26297107338905334,
-0.2127717137336731,
0.4115476906299591,
0.14765024185180664,
-0.053378839045763016,
0.1388184130191803,
-0.1717071533203125,
0.10229755192995071,
-0.0761987566947937,
0.15129661560058594,
0.24948714673519135,
0.17613911628723145,
-0.09010408073663712,
-0.07389359176158905,
0.13710105419158936,
-0.11124289780855179,
0.26876869797706604,
0.06308121979236603,
0.13869860768318176,
0.3271506130695343,
-0.1574341505765915,
-0.0432165265083313,
-0.3005729615688324,
-0.3626558184623718,
0.11643015593290329,
0.2661465108394623,
-0.37613293528556824,
-0.07215555012226105,
-0.31373271346092224,
-0.17083992063999176,
-0.08896256238222122,
-0.3290140628814697,
-0.04070618376135826,
-0.3265828788280487,
-0.08765651285648346,
0.34477099776268005,
0.3259415626525879,
0.1502281278371811,
-0.2954137623310089,
-0.1498265117406845,
-0.05878913402557373,
-0.04746856912970543,
-0.07577063888311386,
-0.21405628323554993,
-0.14742442965507507,
0.12506461143493652,
0.45191335678100586,
0.19955551624298096,
0.27897322177886963,
-0.3943605422973633,
-0.09727294743061066,
0.021090155467391014,
0.1583140790462494,
-0.052774228155612946,
-0.13729208707809448,
0.1901930272579193,
0.11640553921461105,
0.24807558953762054,
0.11379862576723099,
-0.5119880437850952,
0.3313749134540558,
-0.1434604376554489,
0.0764828473329544,
0.15951836109161377,
0.07674619555473328,
-0.0790889635682106,
0.014605287462472916,
-0.4780643880367279,
-0.4822542071342468,
-0.33787840604782104,
-0.08819372951984406,
0.16944332420825958,
0.043015703558921814,
0.2023383378982544,
0.1366269290447235,
0.11543089151382446,
0.3183825612068176,
0.12768429517745972,
-0.029581479728221893,
-0.3274246156215668,
0.3202657699584961,
-0.2303406298160553,
-0.16038291156291962,
0.24129529297351837,
0.10508177429437637,
0.14614631235599518,
0.008743814192712307,
-0.41404232382774353,
0.09790093451738358,
-0.06174977496266365,
0.15730853378772736,
-0.09455370157957077,
-0.1469496488571167,
-0.04306146129965782,
0.06994076818227768,
-0.04194473847746849,
0.047037217766046524,
-0.09499761462211609,
-0.037198904901742935,
-0.04919789358973503,
0.16019849479198456,
-0.12553004920482635,
0.5187342762947083,
-0.3258315622806549,
0.5013356804847717,
0.29362258315086365,
-0.20531512796878815,
0.3749493658542633,
-0.19273795187473297,
0.1645798534154892,
-0.2501034438610077,
-0.619615912437439,
-0.15460272133350372,
-0.12972748279571533,
-0.14643025398254395,
-0.004847699776291847,
-0.11204755306243896,
-0.18945494294166565,
-0.232450470328331,
0.12645286321640015,
-0.3696000277996063,
-0.15516012907028198,
0.0012162678176537156,
-0.38506653904914856,
0.07587239891290665,
-0.21246078610420227,
0.17716054618358612,
-0.02840157225728035,
-0.21887008845806122,
0.055567704141139984,
0.33430150151252747,
0.16103416681289673,
-0.02907848171889782,
-0.15142087638378143,
-0.16636280715465546,
-0.07662272453308105,
0.2000466138124466,
0.09129919111728668,
0.3703824579715729,
-0.2813604772090912,
0.1310255378484726,
0.09683946520090103,
0.20252667367458344,
0.7217803001403809,
-0.3861362636089325,
0.029386764392256737,
0.24998879432678223,
-0.036061570048332214,
-0.27881738543510437,
-0.09031844139099121,
-0.16898566484451294,
0.28533458709716797,
0.30457866191864014,
0.4047123193740845,
-0.05902211368083954,
-0.1351766735315323,
0.30055907368659973,
0.2268385887145996,
-0.1510552167892456,
-0.2041570097208023,
-0.20096957683563232,
-0.09616105258464813,
-0.30419138073921204,
-0.15632542967796326,
0.07618261873722076,
0.16811087727546692,
-0.1662718504667282,
-0.15483668446540833,
-0.10710521042346954,
-0.0860011950135231,
0.28720593452453613,
0.14290720224380493,
0.4447769522666931,
0.13645730912685394,
0.2428424209356308,
0.2942498028278351,
-0.018297256901860237,
0.6086502075195312,
0.5828626155853271,
-0.3432210087776184,
-0.14987587928771973,
-0.005440172273665667,
-0.06425528228282928,
0.20229880511760712,
0.07193781435489655,
-0.14820636808872223,
-0.3828926682472229,
-0.02344737946987152,
0.04701394587755203,
0.0367249920964241,
0.07398971170186996,
0.4998266100883484,
-0.1790410727262497,
-0.3552514612674713,
-0.722640872001648,
0.2665426731109619,
0.23975591361522675,
0.11217975616455078,
0.23702698945999146,
0.01242744829505682,
-0.2850596308708191,
0.3875688910484314,
0.013415004126727581,
0.6175728440284729,
-0.11116160452365875,
-0.1354353278875351,
-0.006221090909093618,
0.23965825140476227,
0.19218586385250092,
-0.2774074971675873,
0.1478308141231537,
-0.35724490880966187,
-0.2386857122182846,
-0.11308250576257706,
-0.17667046189308167,
-0.06489232927560806,
0.11646093428134918,
-0.2836247682571411,
0.25371453166007996,
-0.43407192826271057,
-0.19871056079864502,
-0.3366388976573944,
0.5193690657615662,
-0.18240174651145935,
-0.0792320966720581,
-0.06007617339491844,
0.20072586834430695,
-0.026053572073578835,
0.09329265356063843,
0.05424899235367775,
0.06647540628910065,
-0.1279192417860031,
0.014065294526517391,
-0.44987952709198,
0.12065364420413971,
-0.09124413877725601,
0.46744781732559204,
-0.23630134761333466,
-0.18177324533462524,
0.14745277166366577,
0.2513224184513092,
0.18486791849136353,
-0.10392158478498459,
-0.06160951405763626,
0.14731764793395996,
0.19967815279960632,
-0.24311435222625732,
-0.07188018411397934,
0.0659913420677185,
0.5382035970687866,
0.01892336644232273,
-0.20806114375591278,
0.17049413919448853,
-0.019290713593363762,
-0.09030508249998093,
0.21195879578590393,
-0.14070531725883484,
0.2336816042661667,
-0.3958040475845337,
-0.30603593587875366,
-0.18006540834903717,
-0.016764475032687187,
-0.08421806246042252,
0.15875038504600525,
-0.08186793327331543,
-0.033617276698350906,
0.22712522745132446,
0.1778804212808609,
-0.21747305989265442,
0.006827075034379959,
0.39887723326683044,
0.055701639503240585,
0.26179128885269165,
0.6054586172103882,
0.33355966210365295,
-0.18885959684848785,
-0.26470261812210083,
0.1452561616897583,
0.18888120353221893,
-0.35610678791999817,
0.1968364715576172,
0.07371973991394043,
0.27667930722236633,
0.1766979992389679,
0.08650567382574081,
0.14204590022563934,
0.06737347692251205,
-0.1388966143131256,
-0.5432530641555786,
-0.24287588894367218,
0.2320493757724762,
-0.15291430056095123,
0.1940089911222458,
-0.14898492395877838,
0.03858769312500954,
0.036278679966926575,
-0.08973756432533264,
-0.3076260983943939,
0.17045654356479645,
-0.35365378856658936,
0.023796088993549347,
0.03326712176203728,
-0.1266150027513504,
0.14350038766860962,
-0.11723402142524719,
0.20984356105327606,
-0.14449839293956757,
0.042180754244327545,
-0.22705861926078796,
0.006778803654015064,
0.08305851370096207,
-0.07579929381608963,
-0.20003727078437805,
-0.2402275651693344,
-0.18003752827644348,
-0.2467716932296753,
-0.11152355372905731,
-0.12794138491153717,
0.2296343594789505,
0.10456462949514389,
0.25534459948539734,
0.10921888053417206,
-0.1440078318119049,
-0.15224726498126984,
0.12935808300971985,
-0.0784708634018898,
0.1014203280210495,
0.030577750876545906,
0.07428307831287384,
0.1241869330406189,
-0.010430357418954372,
-0.2565319538116455,
0.02565889246761799,
-0.039374709129333496,
0.0003745501453522593,
0.3196095824241638,
-0.23039646446704865,
0.21101032197475433,
0.2362060844898224,
0.26772186160087585,
0.6366461515426636,
-0.14344672858715057,
0.1193624883890152,
-0.10940811783075333,
0.24583986401557922,
-0.2158830463886261,
0.016018228605389595,
0.25683918595314026,
0.018163083121180534,
-0.1134101152420044,
0.15554222464561462,
0.06225018948316574,
0.033484335988759995,
-0.18580187857151031,
0.01472452562302351,
0.4976821839809418,
-0.022680923342704773,
0.38114863634109497,
0.2872026562690735,
-0.03539659082889557,
-0.10429691523313522,
0.054542046040296555,
0.1543368101119995,
0.21031494438648224,
0.5497239232063293,
-0.32228121161460876,
0.1640162616968155,
-0.15616995096206665,
0.033100660890340805,
-0.01070630457252264,
-0.3065341114997864,
0.046189986169338226,
0.07371719181537628,
0.02562795951962471,
-0.1397121399641037,
-0.1254885345697403,
0.35160547494888306,
-0.2902524173259735,
-0.12007658928632736,
-0.22686927020549774,
0.07492062449455261,
-0.14232008159160614,
0.10956369340419769,
-0.17311552166938782,
-0.16980890929698944,
-0.37327972054481506,
-0.05689820274710655,
-0.08002199977636337,
-0.028451314195990562,
0.10867954790592194,
0.38778790831565857,
-0.16573870182037354,
-0.3098503351211548,
0.08447287231683731,
0.09710069745779037,
0.1705607771873474,
-0.31059426069259644,
0.13445156812667847,
0.27241769433021545,
0.12776441872119904,
0.31656932830810547,
0.1486421525478363,
0.5456300377845764,
0.37499648332595825,
-0.24483084678649902,
0.011622954159975052,
0.1487063467502594,
-0.15716643631458282,
0.07537497580051422,
0.29994210600852966,
0.17943218350410461,
0.30495312809944153,
0.22859305143356323,
0.268378347158432,
-0.10666921734809875,
0.0680551826953888,
-0.02319970726966858,
0.24831973016262054,
-0.154508575797081,
0.374786376953125,
-0.10991033166646957,
-0.08394145965576172,
-0.3794899880886078,
-0.07222605496644974,
-0.3162461519241333,
-0.1649576872587204,
0.3867695927619934,
-0.12320782244205475,
0.003352060914039612,
0.004056209232658148,
0.08443105965852737,
-0.19057326018810272,
0.49925410747528076,
0.3944145143032074,
0.10963303595781326,
-0.4755224883556366,
-0.0928497314453125,
-0.5908110737800598,
-0.05581298843026161,
-0.09844361990690231,
-0.07599102705717087,
0.2061026245355606,
0.22988314926624298,
-0.12043792009353638,
0.04571179673075676,
0.09333211183547974,
0.13675859570503235,
-0.040135450661182404,
0.21723031997680664,
-0.29012706875801086,
-0.09016186743974686,
-0.20901457965373993,
0.05587691813707352,
-0.16636666655540466,
-0.1674051135778427,
0.08281847089529037,
-0.5049978494644165,
0.03604930639266968,
0.0008962401770986617,
-0.37204739451408386,
0.18054096400737762,
0.3742033839225769,
0.2840800881385803,
-0.09685076028108597,
0.7990047931671143,
0.06983339041471481,
-0.034964561462402344,
-0.26179489493370056,
-0.39250755310058594,
-0.19677405059337616,
0.41533908247947693,
0.2645184099674225,
0.30117616057395935,
-0.1691698580980301,
0.021093349903821945,
-0.31259584426879883,
0.32125788927078247,
-0.08245541900396347,
-0.1678822785615921,
-0.3540566563606262,
-0.19238199293613434,
-0.020094064995646477,
0.033096615225076675,
0.250387579202652,
0.1431870460510254,
-0.06786413490772247,
0.1911812275648117,
-0.20780174434185028,
-0.31762614846229553,
0.5762025117874146,
-0.09044961631298065,
-0.1553603708744049,
-0.1684868484735489,
0.09653887897729874,
0.27501726150512695,
0.06615634262561798,
-0.5203387141227722,
0.0940827950835228,
0.3871850073337555,
-0.1895415484905243,
-0.10510037839412689,
0.16406956315040588,
0.2043435126543045,
0.10316504538059235,
-0.08630816638469696,
-0.07620008289813995,
0.0498596616089344,
-0.14770472049713135,
-0.05657505989074707,
0.041075196117162704
] |
https://github.com/huggingface/datasets/issues/873 | load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error | I see the issue happening again today -
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data] Package stopwords is already up-to-date!
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Can someone please take a look ? | ```
from datasets import load_dataset
dataset = load_dataset('cnn_dailymail', '3.0.0')
```
Stack trace:
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-6-2e06a8332652> in <module>()
1 from datasets import load_dataset
----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0')
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
608 download_config=download_config,
609 download_mode=download_mode,
--> 610 ignore_verifications=ignore_verifications,
611 )
612
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
513 if not downloaded_from_gcs:
514 self._download_and_prepare(
--> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
516 )
517 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
568 split_dict = SplitDict(dataset_name=self.name)
569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
571
572 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
I have ran the code on Google Colab | 108 | load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
```
from datasets import load_dataset
dataset = load_dataset('cnn_dailymail', '3.0.0')
```
Stack trace:
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-6-2e06a8332652> in <module>()
1 from datasets import load_dataset
----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0')
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
608 download_config=download_config,
609 download_mode=download_mode,
--> 610 ignore_verifications=ignore_verifications,
611 )
612
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
513 if not downloaded_from_gcs:
514 self._download_and_prepare(
--> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
516 )
517 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
568 split_dict = SplitDict(dataset_name=self.name)
569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
571
572 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
I have ran the code on Google Colab
I see the issue happening again today -
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data] Package stopwords is already up-to-date!
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Can someone please take a look ? | [
-0.22429290413856506,
0.1419459879398346,
-0.022575952112674713,
0.23843230307102203,
0.38199472427368164,
0.12616503238677979,
0.6168980002403259,
0.21475985646247864,
-0.023177430033683777,
0.13341295719146729,
-0.16375663876533508,
0.05823656544089317,
-0.375956654548645,
-0.12307801842689514,
0.008583743125200272,
0.1149686723947525,
-0.09640133380889893,
0.15829575061798096,
-0.20510989427566528,
-0.14228598773479462,
-0.3901509642601013,
0.1864793598651886,
-0.07681845128536224,
0.015992922708392143,
-0.254440039396286,
-0.20727317035198212,
-0.11916942894458771,
0.478272020816803,
-0.2281918078660965,
-0.34157106280326843,
0.2912242114543915,
-0.19371336698532104,
0.2596125602722168,
0.6446203589439392,
-0.00011036967043764889,
0.13481281697750092,
0.25745517015457153,
-0.045984476804733276,
-0.5990342497825623,
-0.610715925693512,
-0.13449199497699738,
-0.1810777634382248,
0.2224271446466446,
-0.285746693611145,
-0.054573796689510345,
0.11204587668180466,
0.06253980100154877,
0.019521988928318024,
0.3589365780353546,
0.5676549673080444,
0.23820513486862183,
0.25008752942085266,
-0.021465295925736427,
-0.14232458174228668,
-0.13942116498947144,
0.39177945256233215,
-0.08329629898071289,
0.5298005938529968,
-0.3784784972667694,
-0.007453230209648609,
0.3009917438030243,
0.2560058832168579,
-0.3467575013637543,
0.24812845885753632,
0.31058385968208313,
0.09317091107368469,
0.20149379968643188,
-0.31857919692993164,
0.01025609765201807,
0.052064504474401474,
0.46281611919403076,
-0.37764522433280945,
-0.21393254399299622,
-0.026096295565366745,
0.0874803215265274,
-0.4519515335559845,
0.34401410818099976,
0.30344149470329285,
-0.13032935559749603,
0.05318290740251541,
-0.146174818277359,
-0.14383836090564728,
-0.18141014873981476,
0.4520484507083893,
-0.17188304662704468,
0.216727614402771,
-0.057003457099199295,
0.03170156478881836,
0.040194254368543625,
0.05489995703101158,
0.5230493545532227,
-0.20129238069057465,
0.11098332703113556,
0.1689763218164444,
-0.02591681480407715,
0.06191708892583847,
0.20042194426059723,
-0.19873394072055817,
-0.19590196013450623,
0.16296932101249695,
-0.0814734473824501,
-0.27251508831977844,
-0.030820848420262337,
0.042036183178424835,
0.0562603622674942,
0.1875985860824585,
-0.08704213052988052,
0.5960317254066467,
0.20500239729881287,
0.25872260332107544,
-0.012604345567524433,
-0.12888647615909576,
-0.3524649441242218,
-0.2497720867395401,
0.10273753106594086,
0.05564502999186516,
0.6368337273597717,
0.08087000250816345,
-0.2626226842403412,
-0.1706475168466568,
-0.28750884532928467,
0.026669789105653763,
0.18249329924583435,
0.3770372271537781,
0.0879201665520668,
-0.001578157301992178,
0.10185254365205765,
0.2980029284954071,
-0.06114044040441513,
0.32074663043022156,
-0.22278915345668793,
0.212176114320755,
-0.11940550804138184,
-0.0389346145093441,
0.2705804109573364,
-0.22022923827171326,
0.12178433686494827,
-0.17325222492218018,
-0.01373707689344883,
-0.006396337412297726,
0.15506066381931305,
-0.17590086162090302,
0.07422485947608948,
0.5078182816505432,
-0.1087169274687767,
0.2788078188896179,
0.2708216607570648,
0.02655630186200142,
-0.3172301948070526,
0.13267254829406738,
-0.17933236062526703,
-0.40739545226097107,
-0.08903535455465317,
0.19181977212429047,
0.04331963509321213,
-0.1540219485759735,
0.051239822059869766,
-0.2044745236635208,
-0.15101873874664307,
-0.16469940543174744,
-0.004930117167532444,
-0.19149401783943176,
-0.08781301975250244,
-0.359704852104187,
0.29433906078338623,
0.6152350902557373,
-0.3911423683166504,
0.0004787409561686218,
-0.42503878474235535,
-0.15409645438194275,
0.17082323133945465,
0.2825912833213806,
-0.1810850203037262,
0.41825130581855774,
-0.21918101608753204,
-0.21099776029586792,
0.4664492607116699,
-0.4039040505886078,
-0.4069178104400635,
0.16192425787448883,
-0.16908469796180725,
-0.02314889244735241,
0.014325181022286415,
0.19509275257587433,
-0.1637684851884842,
0.08746533840894699,
0.03179345279932022,
0.34409061074256897,
-0.014082456938922405,
0.07915394008159637,
-0.09520316869020462,
-0.28909993171691895,
0.149442657828331,
0.13948363065719604,
0.25371474027633667,
0.20653751492500305,
0.0017706746002659202,
0.05744432657957077,
0.034536585211753845,
-0.1340150386095047,
-0.01993902213871479,
0.19302932918071747,
0.48965951800346375,
0.07062528282403946,
-0.30335691571235657,
-0.008035780861973763,
-0.515210747718811,
0.11546480655670166,
0.05068044364452362,
0.2688595652580261,
-0.24434414505958557,
0.04758117347955704,
-0.28074291348457336,
-0.12132164090871811,
-0.2518717050552368,
-0.07208030670881271,
0.14134417474269867,
0.36262407898902893,
0.060216933488845825,
0.06581810861825943,
-0.28757989406585693,
0.26500773429870605,
0.05553669109940529,
0.14826105535030365,
-0.13624145090579987,
0.41471925377845764,
-0.19793163239955902,
-0.062431011348962784,
-0.04360802471637726,
0.13523271679878235,
0.2345956265926361,
-0.1446533203125,
-0.13017573952674866,
0.36456719040870667,
-0.15087828040122986,
-0.0773252323269844,
0.03983452171087265,
-0.10547668486833572,
0.07364761829376221,
-0.03638320788741112,
0.2342955619096756,
0.36205074191093445,
0.15993501245975494,
-0.04314357042312622,
-0.10023901611566544,
0.29040995240211487,
0.16195237636566162,
0.03900715336203575,
0.1538696587085724,
-0.037143029272556305,
0.039589639753103256,
-0.05552022159099579,
0.10829321295022964,
-0.04127531498670578,
0.21163401007652283,
0.09974316507577896,
0.47399911284446716,
0.022757725790143013,
-0.13076485693454742,
-0.3711322247982025,
0.270595908164978,
-0.1347057968378067,
0.14442013204097748,
0.15061569213867188,
-0.28885093331336975,
0.09924542903900146,
-0.19000285863876343,
0.14723333716392517,
0.6052936315536499,
0.11647126823663712,
0.03250454366207123,
0.12581461668014526,
-0.08709011226892471,
-0.07045242190361023,
0.20777921378612518,
0.08836483210325241,
0.25692614912986755,
0.2160900980234146,
0.06952653080224991,
0.06202808395028114,
-0.3969859480857849,
-0.2876625061035156,
0.042667828500270844,
0.4161449074745178,
-0.39316248893737793,
0.059592269361019135,
-0.1244836151599884,
-0.21660500764846802,
-0.09777318686246872,
-0.5352478623390198,
-0.07868949323892593,
-0.31557202339172363,
-0.15556153655052185,
0.17356854677200317,
0.13676005601882935,
0.16626279056072235,
-0.12104222923517227,
-0.12622934579849243,
0.10589008033275604,
-0.48591849207878113,
-0.20688468217849731,
-0.0484762117266655,
-0.017488902434706688,
0.0651339665055275,
0.2804499864578247,
-0.10328473895788193,
0.2476295679807663,
-0.13129737973213196,
-0.12177962809801102,
-0.18639878928661346,
-0.09073717147111893,
-0.08353090286254883,
-0.10422653704881668,
0.20843705534934998,
0.2644523084163666,
0.35428178310394287,
0.04679010063409805,
-0.1947212666273117,
0.36193060874938965,
-0.18281368911266327,
0.022310292348265648,
0.3297630846500397,
-0.12602944672107697,
-0.01341636385768652,
-0.060309842228889465,
-0.5458139777183533,
-0.5458029508590698,
-0.3574635982513428,
-0.11933474242687225,
0.12827757000923157,
0.1643211394548416,
0.4390532076358795,
0.14954283833503723,
0.1939641684293747,
-0.10657384991645813,
0.004158032592386007,
-0.0272341538220644,
-0.15406771004199982,
0.4063127636909485,
-0.2877521812915802,
-0.24397069215774536,
0.17135341465473175,
-0.040531307458877563,
0.1901889443397522,
-0.1609366238117218,
-0.4939943253993988,
-0.2556856572628021,
-0.07315206527709961,
0.0382288321852684,
-0.19877104461193085,
-0.05136231705546379,
0.2149718999862671,
0.09620185196399689,
-0.10095483809709549,
0.15196171402931213,
-0.13013988733291626,
-0.04967637360095978,
0.16874727606773376,
0.02031593583524227,
-0.21992816030979156,
0.5267879962921143,
-0.2912864685058594,
0.5844217538833618,
0.12982070446014404,
-0.0976594015955925,
0.32871416211128235,
-0.20170371234416962,
0.43552154302597046,
-0.21072255074977875,
-0.5223427414894104,
-0.07874546945095062,
0.2892434597015381,
-0.17900493741035461,
0.18003325164318085,
0.05656079202890396,
-0.2591914236545563,
-0.2643009126186371,
-0.04440248757600784,
-0.37798449397087097,
-0.07434650510549545,
0.1186382919549942,
-0.017985545098781586,
0.07816563546657562,
-0.059277478605508804,
0.09652163088321686,
-0.15041667222976685,
-0.16989398002624512,
-0.12164344638586044,
0.378208190202713,
0.019080940634012222,
0.10198714584112167,
-0.028879839926958084,
0.027093546465039253,
-0.3145633339881897,
0.22980743646621704,
-0.05207310989499092,
0.07154712080955505,
-0.21872174739837646,
0.08311597257852554,
-0.028510868549346924,
0.029310546815395355,
0.36129453778266907,
-0.0923880934715271,
0.011215271428227425,
0.4276467561721802,
0.07234533131122589,
-0.4850647747516632,
-0.09465900808572769,
-0.2762003242969513,
0.16767404973506927,
-0.0012722144601866603,
0.20475032925605774,
-0.11704554408788681,
-0.1677079200744629,
0.3938707709312439,
0.27331608533859253,
-0.07975397258996964,
-0.32480621337890625,
-0.4682423770427704,
-0.3894970417022705,
-0.4203394949436188,
-0.07653443515300751,
-0.12504029273986816,
0.0756566971540451,
0.10526210814714432,
-0.12577320635318756,
-0.03646104782819748,
0.020461374893784523,
0.11456181108951569,
-0.014096518978476524,
0.24215665459632874,
0.06333699822425842,
0.12614554166793823,
0.1231672391295433,
0.1575559675693512,
0.3707534670829773,
0.5872365236282349,
-0.10243822634220123,
-0.30173641443252563,
-0.0854126587510109,
0.13888579607009888,
0.0639616996049881,
0.21510015428066254,
-0.2014809101819992,
-0.3429368734359741,
0.09438826143741608,
0.19149845838546753,
0.041661228984594345,
-0.03606139495968819,
0.5686712265014648,
-0.15860377252101898,
-0.3970257639884949,
-0.2941635847091675,
0.40280860662460327,
-0.13274142146110535,
0.17458263039588928,
0.2641441822052002,
-0.16212183237075806,
-0.19398637115955353,
0.11448411643505096,
-0.286445289850235,
0.7768803834915161,
-0.11218440532684326,
0.21498875319957733,
0.6759074926376343,
0.10972167551517487,
0.40763846039772034,
-0.01141461730003357,
0.13721643388271332,
-0.31179556250572205,
-0.18353316187858582,
-0.15314063429832458,
-0.26211628317832947,
0.09902738034725189,
0.2857242822647095,
-0.15700268745422363,
0.41382458806037903,
-0.259977787733078,
0.10280685871839523,
-0.12730151414871216,
0.16036109626293182,
-0.08527834713459015,
0.0861266478896141,
-0.3097005784511566,
0.18090303242206573,
0.023454494774341583,
0.3886292278766632,
-0.2298668622970581,
0.10795561224222183,
-0.15126101672649384,
-0.23455043137073517,
0.0025138389319181442,
0.12334907799959183,
-0.4199479818344116,
0.27698880434036255,
-0.01762576773762703,
-0.16460727155208588,
-0.18694084882736206,
0.24710428714752197,
-0.07044398784637451,
-0.09758025407791138,
-0.11746535450220108,
0.09919758886098862,
-0.10496905446052551,
-0.09004230052232742,
-0.13194595277309418,
0.04365815967321396,
0.2979975640773773,
-0.09784214198589325,
-0.2941854000091553,
0.06571656465530396,
-0.14507341384887695,
-0.27952060103416443,
0.22773632407188416,
0.056636858731508255,
0.2674981355667114,
-0.35831204056739807,
-0.28081607818603516,
-0.040181588381528854,
-0.05219928175210953,
-0.07768724858760834,
0.14193134009838104,
0.003922431264072657,
0.01971292681992054,
0.07144809514284134,
-0.2434999793767929,
-0.3559807538986206,
-0.16121309995651245,
0.28351345658302307,
-0.209885373711586,
0.06074093282222748,
0.5739107728004456,
0.13685861229896545,
-0.20890328288078308,
-0.30132848024368286,
0.19530624151229858,
0.03916274011135101,
-0.17534178495407104,
0.22514064610004425,
0.23657472431659698,
0.26499995589256287,
-0.012553946115076542,
0.2555105686187744,
0.22373521327972412,
-0.06297361105680466,
-0.19746555387973785,
-0.3072933852672577,
-0.17112933099269867,
0.028605718165636063,
0.0978400707244873,
0.2520790100097656,
0.08839954435825348,
0.06311016529798508,
0.3833886682987213,
-0.26585128903388977,
-0.31859874725341797,
0.011983975768089294,
-0.016286861151456833,
-0.06122152879834175,
0.07422429323196411,
-0.05952274426817894,
0.554149866104126,
0.012094865553081036,
0.2147974669933319,
-0.33515799045562744,
-0.06588765978813171,
-0.28230971097946167,
-0.019231630489230156,
0.12739722430706024,
0.12418413907289505,
-0.11537771672010422,
0.08203525096178055,
-0.2575685977935791,
-0.21829093992710114,
-0.12886542081832886,
-0.05567925050854683,
0.238222137093544,
-0.06395913660526276,
0.14933380484580994,
0.05890876054763794,
-0.07905600219964981,
-0.13434454798698425,
0.06020423024892807,
-0.2575853168964386,
0.09186340123414993,
0.03790977969765663,
0.140552818775177,
0.21135513484477997,
-0.13552457094192505,
-0.41857218742370605,
-0.049429163336753845,
0.033485278487205505,
0.02623436413705349,
0.21992433071136475,
-0.18697169423103333,
-0.010103757493197918,
-0.007281958591192961,
0.3588443994522095,
0.19042377173900604,
-0.28650081157684326,
0.05406998470425606,
0.21503280103206635,
0.2182925045490265,
-0.28869542479515076,
0.07968906313180923,
-0.04440699517726898,
0.06192367151379585,
0.10277219861745834,
0.19136862456798553,
-0.3624690771102905,
0.06468980014324188,
-0.19609008729457855,
0.031547773629426956,
0.3888283967971802,
-0.19769012928009033,
0.051650065928697586,
0.3998385965824127,
-0.17169535160064697,
0.06772912293672562,
0.28481796383857727,
0.044519420713186264,
0.10667300224304199,
0.5403016209602356,
-0.169164776802063,
0.02743363380432129,
-0.2749083936214447,
-0.11549851298332214,
0.00933940801769495,
-0.31575170159339905,
0.05279737338423729,
0.14991122484207153,
-0.02759173884987831,
-0.006132103968411684,
-0.15019606053829193,
0.27253589034080505,
-0.45939919352531433,
0.12138214707374573,
-0.3764190971851349,
0.37778744101524353,
-0.14252202212810516,
0.1625412404537201,
-0.1579572558403015,
0.010522959753870964,
-0.012090819887816906,
0.044616904109716415,
0.01951470412313938,
-0.24715712666511536,
0.24122188985347748,
0.49036768078804016,
-0.11947916448116302,
-0.1413523256778717,
0.39036446809768677,
0.26259005069732666,
-0.1352919042110443,
-0.23590224981307983,
0.3025464415550232,
0.3034743070602417,
0.12000077962875366,
-0.04925740882754326,
0.4870748519897461,
0.42694196105003357,
0.4090616703033447,
0.003901886288076639,
0.20132267475128174,
-0.010011414997279644,
-0.188931405544281,
-0.021495725959539413,
0.08820057660341263,
-0.055045925080776215,
0.5318029522895813,
0.16388501226902008,
0.2567685842514038,
-0.24685387313365936,
0.1854962557554245,
0.013369289226830006,
-0.015949081629514694,
-0.1292092353105545,
0.6912081241607666,
-0.256479412317276,
-0.10568998754024506,
-0.23311014473438263,
0.05443739518523216,
-0.528907299041748,
0.25208425521850586,
0.35357627272605896,
0.08126428723335266,
0.10963621735572815,
0.07250604778528214,
0.07782819122076035,
0.0445871502161026,
0.27820485830307007,
0.3427436351776123,
0.3053826093673706,
-0.5661407113075256,
0.024391448125243187,
-0.6365788578987122,
0.17119021713733673,
-0.2892042398452759,
-0.043449290096759796,
-0.18065108358860016,
-0.015653083100914955,
-0.13643214106559753,
0.12965939939022064,
0.12616634368896484,
0.05368366464972496,
-0.05346941947937012,
-0.10564640164375305,
-0.28983771800994873,
-0.09530343860387802,
-0.06266531348228455,
0.025722837075591087,
0.015950625762343407,
-0.4950200617313385,
0.024820173159241676,
-0.4131799042224884,
0.0006353493663482368,
0.02705872431397438,
-0.13350802659988403,
0.03969802334904671,
0.36116302013397217,
0.45333772897720337,
-0.02638939395546913,
0.5661259889602661,
-0.06055828556418419,
-0.1965639740228653,
-0.1913536638021469,
-0.26495474576950073,
-0.15980009734630585,
0.22946737706661224,
0.1461041122674942,
0.38516995310783386,
-0.30641424655914307,
-0.008760512806475163,
-0.4270077645778656,
0.290129691362381,
-0.03781285136938095,
-0.06739496439695358,
-0.20098674297332764,
0.0023698818404227495,
-0.1316203624010086,
0.19836242496967316,
0.1464608758687973,
-0.015197783708572388,
-0.08407711982727051,
0.18836450576782227,
-0.26357975602149963,
-0.38849252462387085,
0.4612838923931122,
-0.2634090483188629,
-0.24366167187690735,
0.04287630692124367,
0.16999924182891846,
-0.09318576753139496,
0.17881788313388824,
-0.4839814007282257,
0.3811459541320801,
0.4383370876312256,
0.16403011977672577,
-0.21903784573078156,
0.13784611225128174,
0.0010958865750581026,
0.13838443160057068,
0.07924071699380875,
0.41239967942237854,
0.0075347162783145905,
-0.3825780749320984,
-0.0340820848941803,
-0.11865528672933578
] |
https://github.com/huggingface/datasets/issues/871 | terminate called after throwing an instance of 'google::protobuf::FatalException' | Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side.
Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.) | Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted | 39 | terminate called after throwing an instance of 'google::protobuf::FatalException'
Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted
Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side.
Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.) | [
-0.27569520473480225,
-0.6896211504936218,
0.11620399355888367,
0.3686620891094208,
0.3344203233718872,
-0.061229903250932693,
0.33480292558670044,
0.15361082553863525,
-0.20834007859230042,
0.11798208951950073,
-0.06540077924728394,
-0.33246126770973206,
-0.029532156884670258,
0.4058208167552948,
-0.18327878415584564,
-0.29906708002090454,
0.018954342231154442,
0.15408886969089508,
-0.4621332883834839,
-0.002163992263376713,
-0.22905506193637848,
0.3899802565574646,
-0.21345826983451843,
0.34838828444480896,
-0.11307789385318756,
0.11780639737844467,
0.08297986537218094,
0.01277197990566492,
-0.09498421847820282,
-0.23160456120967865,
0.22116465866565704,
-0.09099598228931427,
0.16676576435565948,
0.3702022135257721,
-0.00013112323358654976,
-0.03679048269987106,
0.2655949294567108,
0.05706879124045372,
-0.14401352405548096,
0.1104690209031105,
-0.05115414783358574,
0.14617720246315002,
0.05361967533826828,
0.03615184500813484,
0.05987952649593353,
-0.2049442082643509,
0.20898842811584473,
0.23126426339149475,
0.48973947763442993,
0.015162565745413303,
0.05317853018641472,
0.30633214116096497,
0.3312015235424042,
0.08169900625944138,
-0.02704474702477455,
-0.11656409502029419,
-0.28881552815437317,
-0.0628109946846962,
-0.11185965687036514,
-0.016079070046544075,
0.305289626121521,
0.010992265306413174,
0.07653286308050156,
-0.1810523420572281,
-0.16580459475517273,
-0.04648609831929207,
0.4919874668121338,
-0.31760096549987793,
0.2732105553150177,
0.30266547203063965,
0.5659938454627991,
-0.20894478261470795,
-0.3208208680152893,
0.28250882029533386,
-0.16296398639678955,
-0.6633639931678772,
0.029516486451029778,
0.01576421968638897,
0.03682751581072807,
0.28724443912506104,
-0.17659498751163483,
-0.07471497356891632,
-0.35607460141181946,
0.061863530427217484,
-0.2483200579881668,
0.3457752466201782,
-0.07241019606590271,
0.3870837688446045,
0.19090762734413147,
0.06618982553482056,
-0.3279821574687958,
0.2797853350639343,
-0.16431763768196106,
0.039189569652080536,
-0.3566978871822357,
-0.26770657300949097,
-0.07975468039512634,
0.14593182504177094,
0.17029495537281036,
0.12136603146791458,
-0.0884903147816658,
0.057484205812215805,
0.25077563524246216,
0.11395379155874252,
0.44809356331825256,
0.0888851135969162,
-0.09092558175325394,
0.09555690735578537,
0.263712614774704,
0.19253845512866974,
-0.0199968870729208,
0.06089099496603012,
0.17070485651493073,
-0.20564669370651245,
0.21660961210727692,
-0.03909030556678772,
0.5442743301391602,
-0.43714451789855957,
-0.39809441566467285,
0.3282664716243744,
-0.5851675868034363,
0.07343246787786484,
0.10951191186904907,
0.46472957730293274,
-0.021874453872442245,
0.1591082066297531,
0.2288997918367386,
0.00176385382656008,
-0.21709536015987396,
-0.3298831880092621,
-0.03252720087766647,
0.12487773597240448,
0.013593139126896858,
0.07924673706293106,
-0.0938062071800232,
-0.11054519563913345,
0.01896016113460064,
-0.16876618564128876,
0.057033754885196686,
-0.41750580072402954,
-0.03151397779583931,
-0.2017417550086975,
-0.21511709690093994,
0.0476764477789402,
0.02302686683833599,
0.09130141139030457,
0.06268163025379181,
0.23382411897182465,
-0.1088443398475647,
-0.01947588101029396,
0.2328738272190094,
-0.44189006090164185,
-0.11681550741195679,
0.02093479223549366,
-0.3718617856502533,
0.0700109526515007,
0.05117694288492203,
0.10089003294706345,
0.011720587499439716,
0.06472481787204742,
0.011204279959201813,
-0.11784522235393524,
-0.6016008853912354,
0.09555993229150772,
0.21376299858093262,
0.5098164081573486,
-0.29832059144973755,
-0.28317153453826904,
0.02142401412129402,
-0.21856056153774261,
0.13308420777320862,
0.35102522373199463,
-0.10740521550178528,
0.47403785586357117,
-0.16802255809307098,
0.07712803035974503,
0.4050399661064148,
-0.07548544555902481,
-0.40743595361709595,
0.2993322014808655,
-0.10437513887882233,
-0.026438215747475624,
-0.231357142329216,
-0.3312269449234009,
-0.21086345613002777,
-0.09103085845708847,
-0.4682707190513611,
0.08347713947296143,
0.004256162326782942,
0.022909263148903847,
-0.3265223801136017,
-0.27868273854255676,
0.20170141756534576,
0.12925922870635986,
0.08489517867565155,
-0.1155642494559288,
0.04390472173690796,
0.5326947569847107,
0.007924591191112995,
-0.1599254310131073,
-0.07170285284519196,
0.2296438217163086,
0.3724675178527832,
0.09578584134578705,
0.0016299935523420572,
-0.0008600185392424464,
-0.3926897346973419,
0.1919947862625122,
-0.15096281468868256,
0.34991633892059326,
-0.03398055583238602,
0.1316322535276413,
-0.39843112230300903,
0.23843516409397125,
-0.38729384541511536,
-0.20965655148029327,
0.04232506826519966,
0.1670193374156952,
-0.11352686583995819,
-0.02173905074596405,
-0.0022788215428590775,
0.22308756411075592,
-0.323898583650589,
0.16480837762355804,
-0.19455265998840332,
0.21807830035686493,
-0.12903784215450287,
-0.18675237894058228,
-0.09208714216947556,
0.20057401061058044,
0.12426282465457916,
-0.24721607565879822,
-0.0812024176120758,
0.5033459067344666,
-0.449703186750412,
0.36225271224975586,
0.12569834291934967,
0.2714715898036957,
-0.10726416110992432,
-0.7133020162582397,
-0.14916494488716125,
0.06057930365204811,
0.044292375445365906,
0.08424840867519379,
0.2721659541130066,
0.020964471623301506,
0.36870133876800537,
0.10028016567230225,
0.04224465787410736,
-0.13728635013103485,
0.0769415870308876,
-0.12706564366817474,
-0.3090755343437195,
-0.05677195265889168,
0.19608174264431,
0.09750518947839737,
-0.09797168523073196,
0.09257493913173676,
-0.31716740131378174,
-0.18594525754451752,
0.5001757740974426,
-0.3895016014575958,
0.10555248707532883,
0.19409191608428955,
0.2213134616613388,
0.015827594324946404,
-0.01677040010690689,
-0.37219351530075073,
0.4321252405643463,
-0.11884506046772003,
-0.04471055045723915,
0.29256802797317505,
-0.23492346704006195,
0.30689892172813416,
0.2109823077917099,
0.22688211500644684,
-0.0990801677107811,
0.24705447256565094,
0.15112990140914917,
0.12757587432861328,
-0.28354743123054504,
0.1347998082637787,
-0.029208865016698837,
0.3193383812904358,
-0.3493127226829529,
0.3340667486190796,
-0.25015977025032043,
0.002952307928353548,
-0.0844353437423706,
0.16953729093074799,
-0.23277707397937775,
-0.11750289052724838,
-0.07774577289819717,
0.3478620648384094,
0.2846853733062744,
0.23752249777317047,
0.1363133043050766,
0.28736868500709534,
0.31231623888015747,
0.05048299580812454,
0.07764606177806854,
0.0606762133538723,
-0.37155044078826904,
-0.16256672143936157,
0.27890628576278687,
-0.008420038968324661,
0.17553839087486267,
-0.03872713819146156,
-0.2875960171222687,
-0.1948438435792923,
-0.26290959119796753,
0.43664324283599854,
-0.25736820697784424,
0.3862486183643341,
0.2549959719181061,
0.323866605758667,
0.05080575868487358,
-0.232135608792305,
0.37697339057922363,
-0.08049893379211426,
-0.11127537488937378,
0.14767329394817352,
0.008018081076443195,
0.001247658976353705,
-0.13220259547233582,
-0.1545511931180954,
-0.003123440081253648,
-0.2535024881362915,
0.36438116431236267,
-0.12523184716701508,
-0.04546234384179115,
0.15976431965827942,
0.08160300552845001,
0.09781508147716522,
0.032448336482048035,
0.09449750185012817,
-0.24240709841251373,
0.07129368185997009,
0.10285075008869171,
0.17086870968341827,
-0.10956265777349472,
0.08422232419252396,
0.1628803312778473,
0.40060538053512573,
0.027005061507225037,
-0.5209593176841736,
-0.08058733493089676,
-0.01527329534292221,
-0.2542363405227661,
-0.07134133577346802,
0.11670523881912231,
0.336833119392395,
0.0828821063041687,
0.163786381483078,
0.1131119653582573,
-0.0577150322496891,
0.36266547441482544,
0.12090238183736801,
0.4364433288574219,
0.17043878138065338,
0.6243667006492615,
0.035967469215393066,
0.4471471309661865,
0.22757279872894287,
-0.09470586478710175,
0.3119547963142395,
0.09369363635778427,
0.050096020102500916,
-0.06400397419929504,
-0.2120324969291687,
0.005694292020052671,
-0.1506773829460144,
-0.13624846935272217,
0.32139357924461365,
-0.12736102938652039,
-0.05249300226569176,
-0.21991249918937683,
0.3802466094493866,
-0.26652854681015015,
-0.3836387097835541,
-0.19501931965351105,
0.47910958528518677,
0.44697684049606323,
-0.21178504824638367,
-0.12935030460357666,
0.021055487915873528,
0.14872092008590698,
0.2695370614528656,
0.016481060534715652,
0.08361095935106277,
-0.02999955788254738,
0.12476512044668198,
-0.12714171409606934,
-0.32142022252082825,
0.22026941180229187,
0.08249593526124954,
0.3695676326751709,
-0.22897237539291382,
-0.05238412320613861,
0.22291608154773712,
-0.08946007490158081,
0.3142284154891968,
-0.11100219190120697,
0.09588755667209625,
-0.022350303828716278,
-0.38088908791542053,
-0.07128563523292542,
-0.1707487553358078,
-0.245864599943161,
-0.05346941202878952,
0.11161819100379944,
0.1962752640247345,
-0.7227668762207031,
-0.14655373990535736,
0.6654103398323059,
0.01488050539046526,
-0.2597120404243469,
-0.03079398348927498,
-0.4269808828830719,
-0.4244687259197235,
-0.31645143032073975,
0.026061397045850754,
0.18988442420959473,
-0.022852158173918724,
-0.18089185655117035,
0.10038954764604568,
0.12158454954624176,
-0.3787503242492676,
0.16770273447036743,
0.24319249391555786,
-0.0777750015258789,
-0.29462867975234985,
-0.14196312427520752,
0.15226122736930847,
-0.2428969442844391,
-0.20915743708610535,
0.3184257745742798,
0.2315768152475357,
-0.3591952323913574,
0.3091990053653717,
0.19302690029144287,
0.12608204782009125,
0.43525806069374084,
-0.2374529093503952,
0.024190809577703476,
-0.39336249232292175,
0.10622532665729523,
-0.07479861378669739,
0.18969663977622986,
0.6916983723640442,
0.16417646408081055,
-0.373266339302063,
0.190445676445961,
0.4620969891548157,
-0.1921071857213974,
0.03807700052857399,
0.2201416939496994,
0.3627298176288605,
-0.1466461420059204,
0.238256573677063,
-0.10888589918613434,
1.2690074443817139,
0.08175484836101532,
-0.1839943677186966,
0.36576810479164124,
0.17863155901432037,
0.25740644335746765,
-0.2753506004810333,
0.21422326564788818,
-0.28460758924484253,
-0.25866633653640747,
-0.09806395322084427,
-0.03248116374015808,
-0.033173322677612305,
-0.11191373318433762,
-0.46783164143562317,
0.3271194100379944,
0.15955771505832672,
-0.13850721716880798,
0.2032446265220642,
0.27439069747924805,
0.00848810002207756,
-0.006603030487895012,
-0.24903473258018494,
-0.012261439114809036,
-0.08384160697460175,
0.5479543805122375,
-0.40077680349349976,
-0.040816035121679306,
0.1884879767894745,
0.06910574436187744,
-0.5751297473907471,
0.19629842042922974,
-0.23015666007995605,
0.008863384835422039,
0.16889309883117676,
-0.1305914670228958,
0.31031662225723267,
0.1113412007689476,
0.3887820243835449,
0.15055309236049652,
-0.3223508298397064,
0.09068692475557327,
-0.23857201635837555,
-0.10925105214118958,
-0.1439512073993683,
0.26290181279182434,
0.06363409012556076,
-0.1279813051223755,
-0.4963580369949341,
0.18361864984035492,
-0.027569586411118507,
-0.16375502943992615,
0.03909073397517204,
-0.4867976903915405,
-0.11434374749660492,
-0.4812121093273163,
-0.04990779981017113,
0.06446285545825958,
-0.33225706219673157,
-0.19103509187698364,
-0.024121874943375587,
-0.07082069665193558,
-0.4919300377368927,
-0.0446479357779026,
0.13532058894634247,
-0.3358822166919708,
-0.03279491141438484,
0.2914808392524719,
-0.46473023295402527,
0.4955451786518097,
0.51759272813797,
0.40596210956573486,
0.03450220823287964,
-0.12264978885650635,
-0.4105329215526581,
-0.10570981353521347,
-0.7558623552322388,
0.10901861637830734,
-0.04629451781511307,
-0.1276705265045166,
0.004685458727180958,
0.676690399646759,
0.189372256398201,
0.08324602991342545,
0.03753485530614853,
-0.029181214049458504,
-0.1648816466331482,
0.2903735041618347,
0.03593909367918968,
0.39290305972099304,
0.02639058418571949,
0.66789710521698,
-0.18166840076446533,
-0.20870089530944824,
-0.13483524322509766,
-0.11404311656951904,
-0.5952379107475281,
0.04315441846847534,
0.6293121576309204,
-0.49681031703948975,
0.25512129068374634,
0.21875375509262085,
0.04709243401885033,
0.3650161325931549,
-0.15304075181484222,
-0.008551155216991901,
0.0009552825358696282,
0.21529273688793182,
0.14327993988990784,
-0.2293223887681961,
-0.049996569752693176,
0.06482338905334473,
0.11819707602262497,
0.022332677617669106,
0.19773976504802704,
-0.03454775735735893,
0.10430826246738434,
0.16686025261878967,
0.4337749481201172,
0.08937542885541916,
-0.3285418152809143,
-0.08265749365091324,
0.15691189467906952,
0.3206039071083069,
0.423133909702301,
0.17580796778202057,
-0.022117439657449722,
-0.13437728583812714,
-0.009829333983361721,
0.2518424391746521,
0.5083557367324829,
-0.07761068642139435,
0.3535532057285309,
-0.23448733985424042,
-0.17375968396663666,
-0.2526758015155792,
0.4068446159362793,
0.4358227849006653,
-0.303058385848999,
-0.07764462381601334,
-0.04293832555413246,
-0.017500020563602448,
-0.13700751960277557,
0.06027570739388466,
0.21706439554691315,
-0.07615292817354202,
-0.16534274816513062,
0.5258347988128662,
0.07069217413663864,
0.09775903820991516,
0.37211620807647705,
0.26655635237693787,
0.2728874683380127,
-0.1531069129705429,
-0.053760264068841934,
0.2709616422653198,
-0.3218214511871338,
0.23327989876270294,
0.0879887118935585,
-0.014997185207903385,
0.3673681616783142,
-0.1052369624376297,
-0.176279217004776,
-0.007757172454148531,
-0.6213703155517578,
0.5529293417930603,
0.09946148842573166,
-0.41194814443588257,
-0.16083361208438873,
0.09557163715362549,
0.257967472076416,
0.1640245020389557,
-0.1661914438009262,
0.3881981074810028,
0.09010109305381775,
-0.34783777594566345,
-0.49243566393852234,
0.5627104640007019,
-0.12206906080245972,
-0.34202879667282104,
0.12244542688131332,
0.0005514866206794977,
-0.4981304109096527,
0.2230648547410965,
-0.15280720591545105,
-0.30769166350364685,
-0.15389521420001984,
0.17346453666687012,
-0.17867912352085114,
-0.24127140641212463,
-0.3105517625808716,
0.13490775227546692,
0.08298002928495407,
-0.16810818016529083,
0.34393855929374695,
0.2536003887653351,
-0.23037278652191162,
-0.25078001618385315,
0.48169857263565063,
0.08941584825515747,
-0.07687675207853317,
-0.22280527651309967,
0.2002963125705719,
0.018481681123375893,
0.17358890175819397,
0.17933383584022522,
-0.023288164287805557,
-0.008464666083455086,
0.23011311888694763,
0.21807001531124115,
-0.09707435220479965,
-0.030791541561484337,
-0.021437376737594604,
-0.08976799249649048,
0.19069576263427734,
-0.535397469997406,
0.049141887575387955,
-0.1127963438630104,
0.0020701971370726824,
-0.4266146719455719,
0.2310677170753479,
-0.4342009127140045,
0.2886885106563568,
0.2736757695674896,
0.0018201731145381927,
0.06864484399557114,
0.15500275790691376,
-0.0375969298183918,
-0.10033407062292099,
0.3217400908470154,
0.40345078706741333,
0.04916682094335556,
-0.3347398638725281,
-0.20308002829551697,
-0.22732314467430115,
0.35245200991630554,
0.0174699854105711,
0.37886789441108704,
0.34898263216018677,
0.0774131640791893,
-0.1255183219909668,
0.22824598848819733,
0.13925766944885254,
0.2732212543487549,
-0.14632782340049744,
0.2943366467952728,
-0.15930600464344025,
-0.2022356539964676,
-0.3895685076713562,
-0.03204863518476486,
-0.0684850811958313,
-0.14793667197227478,
0.15286098420619965,
-0.048346295952796936,
-0.09997639060020447,
0.01953548938035965,
-0.4915773868560791,
-0.3992325961589813,
-0.13820676505565643,
0.04713251441717148,
0.2893940210342407,
-0.05393659323453903,
-0.11066173017024994,
-0.1935107707977295,
-0.16310030221939087,
-0.36013063788414,
-0.1371573656797409,
0.13299819827079773,
-0.20413212478160858,
0.1272541880607605,
-0.011604963801801205,
0.3329962193965912,
-0.39214086532592773,
-0.02412518486380577,
0.21379509568214417,
-0.18174590170383453,
-0.3372455835342407,
-0.02583330310881138,
-0.24926933646202087,
-0.07170478254556656,
0.10516348481178284,
0.22073446214199066,
0.12198423594236374,
0.0383797287940979,
-0.4720090329647064,
0.005641407333314419,
0.6514026522636414,
-0.03940136730670929,
-0.1021968349814415,
0.025127947330474854,
0.030715420842170715,
0.3078184127807617,
-0.1596793234348297,
-0.5445811748504639,
0.06367177516222,
-0.02195165865123272,
0.07918969541788101,
-0.24916160106658936,
0.1685008406639099,
0.10204480588436127,
-0.0360071025788784,
0.1172407940030098,
0.32343775033950806,
0.2480837106704712,
0.08096281439065933,
0.3928498327732086,
-0.046475090086460114
] |
https://github.com/huggingface/datasets/issues/871 | terminate called after throwing an instance of 'google::protobuf::FatalException' | closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks | Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted | 19 | terminate called after throwing an instance of 'google::protobuf::FatalException'
Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted
closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks | [
-0.1825484335422516,
-0.7557111382484436,
0.08364059031009674,
0.5567312240600586,
0.33121538162231445,
-0.04410403221845627,
0.2286124974489212,
0.2201019525527954,
-0.37961632013320923,
0.312804639339447,
-0.01004094909876585,
-0.4250833988189697,
0.002881661057472229,
0.5060401558876038,
-0.22879168391227722,
-0.4332336485385895,
-0.07104772329330444,
0.30942344665527344,
-0.38743460178375244,
0.1011398658156395,
-0.22644604742527008,
0.41867196559906006,
-0.21919789910316467,
0.18528346717357635,
0.008175920695066452,
0.19570955634117126,
-0.057718634605407715,
-0.0667140781879425,
-0.3531185984611511,
-0.3468533456325531,
0.01821957342326641,
-0.20398394763469696,
0.05813413858413696,
0.31370002031326294,
-0.00013062372454442084,
-0.028428032994270325,
0.23188817501068115,
-0.03663548082113266,
-0.0024561663158237934,
0.11101388931274414,
-0.040446262806653976,
0.09543294459581375,
-0.04324059933423996,
0.057171162217855453,
-0.021473586559295654,
-0.24902352690696716,
0.13409744203090668,
0.08242817968130112,
0.4000381827354431,
0.17781469225883484,
0.059879470616579056,
0.07082834094762802,
0.5268980264663696,
0.10118768364191055,
0.1303853541612625,
-0.185942605137825,
-0.24512431025505066,
-0.05441419780254364,
-0.08722218871116638,
0.25439292192459106,
0.2519198954105377,
0.012764768674969673,
0.23436124622821808,
-0.1039731502532959,
-0.15829938650131226,
-0.16672182083129883,
0.4694925546646118,
-0.3594507873058319,
0.37392330169677734,
0.5036096572875977,
0.42492958903312683,
-0.15960760414600372,
-0.23899251222610474,
0.1978805959224701,
-0.046376097947359085,
-0.7821178436279297,
0.021462200209498405,
0.11773882061243057,
-0.03140220046043396,
0.3177409768104553,
-0.19563686847686768,
0.02504284866154194,
-0.391338586807251,
-0.053550466895103455,
-0.34203067421913147,
0.10481560230255127,
-0.1563068926334381,
0.26934733986854553,
0.3107013702392578,
-0.01236330159008503,
-0.36895811557769775,
0.4468306303024292,
-0.22334639728069305,
0.004629172384738922,
-0.31676697731018066,
-0.28400543332099915,
-0.0876741111278534,
0.08858730643987656,
0.34256985783576965,
0.09834202378988266,
0.02997923642396927,
-0.04418617859482765,
0.3686283826828003,
-0.07317809760570526,
0.4484468102455139,
0.06989632546901703,
-0.17500647902488708,
-0.04746145382523537,
-0.030417369678616524,
0.23911550641059875,
-0.08339259773492813,
0.039903461933135986,
0.08781807124614716,
-0.3864671289920807,
0.03345010057091713,
-0.06124481186270714,
0.540734589099884,
-0.4030386805534363,
-0.37428805232048035,
0.5508587956428528,
-0.5646087527275085,
0.13828183710575104,
-0.015264035202562809,
0.39283445477485657,
0.036888714879751205,
0.30640968680381775,
0.12086216360330582,
-0.0254709143191576,
-0.18153877556324005,
-0.460344135761261,
-0.032458629459142685,
0.0571846142411232,
0.0687045007944107,
-0.03819389268755913,
-0.22900158166885376,
-0.19187530875205994,
0.02742503397166729,
-0.11628583818674088,
0.2301359474658966,
-0.4824361801147461,
-0.05260883644223213,
-0.38605743646621704,
-0.1272219568490982,
0.05829513445496559,
0.1070084199309349,
-0.09415023028850555,
0.003994126338511705,
0.12282178550958633,
-0.13687781989574432,
0.10214254260063171,
0.20300841331481934,
-0.3419499099254608,
-0.20195774734020233,
0.04431817680597305,
-0.2757991850376129,
0.2491312325000763,
0.09743872284889221,
0.2676699459552765,
0.0701395720243454,
0.1285983920097351,
0.03754791244864464,
-0.29709941148757935,
-0.5591108798980713,
0.03338010236620903,
0.21096381545066833,
0.3538914620876312,
-0.45210132002830505,
-0.1101314127445221,
0.12893782556056976,
-0.1627076417207718,
0.20673923194408417,
0.3624174892902374,
0.06594182550907135,
0.2911636531352997,
-0.208068385720253,
0.18429872393608093,
0.38464149832725525,
0.004162164870649576,
-0.4475165903568268,
0.4741543233394623,
-0.1718919575214386,
0.026861807331442833,
-0.08158543705940247,
-0.5575347542762756,
-0.07633089274168015,
0.06254065036773682,
-0.38751348853111267,
0.06094026193022728,
-0.050427865236997604,
-0.10202747583389282,
-0.3786962330341339,
-0.33488351106643677,
0.2869662940502167,
0.052184946835041046,
0.09310972690582275,
-0.26444128155708313,
-0.028909070417284966,
0.34709692001342773,
0.10545410215854645,
-0.1164802685379982,
-0.05464109405875206,
0.29436594247817993,
0.15999528765678406,
-0.01236702036112547,
0.05001877248287201,
-0.07154272496700287,
-0.05988552048802376,
0.12665574252605438,
-0.18154288828372955,
0.23022891581058502,
0.18110856413841248,
0.04776495322585106,
-0.4110558032989502,
0.2406521886587143,
-0.19585375487804413,
-0.12140514701604843,
0.08132819831371307,
0.09050676226615906,
0.003174175275489688,
0.0335053913295269,
0.037716615945100784,
0.03733626380562782,
-0.27900105714797974,
0.19658219814300537,
-0.14217548072338104,
0.0688367411494255,
-0.21338248252868652,
-0.11222587525844574,
0.0000703071418683976,
0.22615452110767365,
0.07854669541120529,
-0.13267435133457184,
-0.13583524525165558,
0.4077899754047394,
-0.14598000049591064,
0.17883117496967316,
-0.082333505153656,
0.07999632507562637,
-0.1061849296092987,
-0.6050514578819275,
0.07276412844657898,
0.0006517884903587401,
-0.07936327159404755,
0.08023172616958618,
0.40089908242225647,
0.0033714594319462776,
0.4482322037220001,
0.12872037291526794,
0.04078763350844383,
-0.29532426595687866,
0.040761012583971024,
-0.030797969549894333,
-0.26582464575767517,
-0.11307651549577713,
0.2272978574037552,
0.04920201748609543,
0.026459192857146263,
0.09018653631210327,
-0.37225455045700073,
0.043330397456884384,
0.5868800282478333,
-0.324476957321167,
-0.02045181393623352,
0.35209783911705017,
0.19123579561710358,
-0.0975402221083641,
-0.15231336653232574,
-0.29974159598350525,
0.2898995876312256,
-0.027874214574694633,
0.11707805097103119,
0.2232637256383896,
-0.17305579781532288,
0.1739894300699234,
0.2037847340106964,
0.20635300874710083,
-0.042458027601242065,
0.3433317542076111,
0.16077889502048492,
0.07473500072956085,
-0.19427430629730225,
0.13785603642463684,
-0.08421720564365387,
0.28024762868881226,
-0.2942642271518707,
0.20670516788959503,
-0.34647586941719055,
-0.10273029655218124,
-0.036014754325151443,
0.20285607874393463,
-0.10977841913700104,
-0.07750257849693298,
-0.012180408462882042,
0.1491117626428604,
0.20925477147102356,
0.09432525932788849,
0.015966108068823814,
0.34569045901298523,
0.3015296459197998,
0.3043160140514374,
0.19304701685905457,
0.27217787504196167,
-0.32974305748939514,
-0.07925572991371155,
0.24361753463745117,
-0.09949766099452972,
0.10182106494903564,
-0.00453469343483448,
-0.27795735001564026,
0.04787847399711609,
-0.31904542446136475,
0.39752277731895447,
-0.2260151505470276,
0.42617467045783997,
0.2910577058792114,
0.3495926260948181,
0.1624094694852829,
-0.12865085899829865,
0.2713698446750641,
0.13100962340831757,
-0.214952290058136,
0.11897554993629456,
0.04337507486343384,
0.10602611303329468,
-0.19288484752178192,
0.00476849963888526,
0.0756092444062233,
-0.34400877356529236,
0.5978236794471741,
0.07256970554590225,
0.09807904064655304,
0.10024215281009674,
0.2643184959888458,
0.1980096995830536,
0.13206881284713745,
0.2236943393945694,
-0.32748648524284363,
-0.09454163163900375,
0.07023432850837708,
0.06014639511704445,
-0.10190283507108688,
0.02033870294690132,
0.1251717358827591,
0.5520700216293335,
0.009498996660113335,
-0.6542898416519165,
-0.06412393599748611,
-0.0393797867000103,
-0.3225175440311432,
-0.05480198189616203,
0.011852148920297623,
0.21948988735675812,
-0.014438917860388756,
0.16633276641368866,
0.12421368062496185,
0.008109957911074162,
0.23200362920761108,
0.10270065814256668,
0.32762959599494934,
0.1301310509443283,
0.6841675639152527,
0.14341212809085846,
0.47171127796173096,
0.32427963614463806,
0.09992110729217529,
0.22921058535575867,
-0.014260961674153805,
0.15263810753822327,
-0.1874091923236847,
0.02877981774508953,
0.20105716586112976,
-0.14871123433113098,
-0.22891755402088165,
0.37362203001976013,
-0.14041687548160553,
-0.035715848207473755,
-0.030977701768279076,
0.29817575216293335,
-0.17496147751808167,
-0.3061986267566681,
-0.01855483464896679,
0.43171441555023193,
0.19919149577617645,
-0.3637693524360657,
0.019916223362088203,
0.09474319219589233,
0.11488847434520721,
0.10373926907777786,
-0.14329271018505096,
0.05092744156718254,
0.10690022259950638,
0.12872375547885895,
-0.2539617717266083,
-0.4531194865703583,
0.23276886343955994,
0.1363757848739624,
0.27957552671432495,
-0.21905726194381714,
-0.10295619815587997,
0.20033329725265503,
-0.14135996997356415,
0.2534675598144531,
-0.061666976660490036,
0.004180250223726034,
0.08701922744512558,
-0.2812110483646393,
-0.010608332231640816,
-0.1489332765340805,
-0.16824692487716675,
-0.08874332904815674,
0.09990718215703964,
0.06295863538980484,
-0.6216031312942505,
-0.001859515206888318,
0.670857310295105,
0.005220367107540369,
-0.11654917150735855,
0.10243754833936691,
-0.38251206278800964,
-0.44062793254852295,
-0.27100372314453125,
0.09879832714796066,
0.3051098585128784,
0.14906233549118042,
-0.19043928384780884,
-0.020801346749067307,
0.08589714765548706,
-0.34691742062568665,
0.20354756712913513,
0.2855480909347534,
-0.05506938695907593,
-0.2784847617149353,
-0.09096048772335052,
0.0618516206741333,
-0.280857652425766,
-0.00925014540553093,
0.32375890016555786,
0.18737998604774475,
-0.4014207124710083,
0.37999120354652405,
0.1589244306087494,
0.255351722240448,
0.5518906116485596,
-0.1993994414806366,
0.11997028440237045,
-0.36126458644866943,
0.32711347937583923,
-0.20009654760360718,
0.3403961658477783,
0.6970123052597046,
-0.008874177001416683,
-0.279323548078537,
0.12687502801418304,
0.3541107177734375,
-0.3083726763725281,
0.18612921237945557,
0.27490538358688354,
0.48797371983528137,
-0.13178008794784546,
0.2013566642999649,
-0.02957559935748577,
1.345996618270874,
0.1415596306324005,
-0.22120466828346252,
0.3623623251914978,
0.02209622785449028,
0.06921899318695068,
-0.32134607434272766,
0.22260832786560059,
-0.27525827288627625,
-0.26324939727783203,
-0.08015719056129456,
-0.05651808902621269,
-0.021766643971204758,
-0.19656725227832794,
-0.5029947757720947,
0.14716514945030212,
0.14615972340106964,
-0.2665554881095886,
0.02576252445578575,
0.21838615834712982,
-0.07239865511655807,
0.02174209989607334,
-0.07877449691295624,
0.0044371201656758785,
-0.12709355354309082,
0.2550247311592102,
-0.2989117205142975,
0.017346033826470375,
0.09295342862606049,
-0.020315084606409073,
-0.7395153641700745,
0.1649555116891861,
-0.39726531505584717,
-0.23179325461387634,
0.01925472542643547,
-0.26717936992645264,
0.2511185109615326,
0.11900803446769714,
0.29094424843788147,
0.255322128534317,
-0.31128716468811035,
0.05660322681069374,
-0.20902901887893677,
-0.22432224452495575,
0.011706234887242317,
0.19835761189460754,
0.047738563269376755,
-0.1979285031557083,
-0.39767488837242126,
0.18282455205917358,
0.10189436376094818,
0.05944965034723282,
0.100304514169693,
-0.5291591882705688,
-0.09066566079854965,
-0.5466355085372925,
-0.051787376403808594,
-0.12373803555965424,
-0.16319240629673004,
-0.18336941301822662,
-0.02248311974108219,
-0.05874709039926529,
-0.49744680523872375,
-0.2320777028799057,
0.12727847695350647,
-0.3527323603630066,
-0.09558816999197006,
0.15528824925422668,
-0.2879285514354706,
0.5394781231880188,
0.446494996547699,
0.37567809224128723,
0.018542848527431488,
-0.08962056785821915,
-0.24117900431156158,
-0.11865075677633286,
-0.5672413110733032,
0.11385166645050049,
-0.1296156495809555,
-0.18086962401866913,
-0.1257193386554718,
0.4178597927093506,
0.25911208987236023,
0.07293552160263062,
0.04189368337392807,
-0.06805446743965149,
-0.2588283121585846,
0.22529982030391693,
-0.0678904727101326,
0.4425279200077057,
-0.016238359734416008,
0.6142125129699707,
-0.19677653908729553,
-0.04196541756391525,
-0.13381682336330414,
0.02412853203713894,
-0.4663614332675934,
-0.048649776726961136,
0.4135287404060364,
-0.5600553750991821,
0.06436733156442642,
0.1984221488237381,
0.06502058357000351,
0.5820106267929077,
-0.131685271859169,
-0.0346597321331501,
-0.08891341835260391,
0.17711055278778076,
0.07840150594711304,
-0.25936731696128845,
0.03057916834950447,
0.10241342335939407,
-0.0138139259070158,
0.022782132029533386,
0.19826477766036987,
-0.11380994319915771,
0.19058431684970856,
0.07533125579357147,
0.452208936214447,
0.053157564252614975,
-0.2297772765159607,
-0.06335993111133575,
0.29222372174263,
0.5698916912078857,
0.4143063724040985,
0.2580900192260742,
-0.047365929931402206,
-0.11226599663496017,
0.0235164612531662,
0.3457763195037842,
0.4345480799674988,
-0.21333307027816772,
0.34560102224349976,
-0.22151309251785278,
-0.17937380075454712,
-0.17418381571769714,
0.31661272048950195,
0.4049065113067627,
-0.3494211733341217,
-0.06127091124653816,
-0.022375259548425674,
-0.017197968438267708,
-0.12059736996889114,
0.07805129140615463,
0.20769654214382172,
-0.14722412824630737,
-0.19904424250125885,
0.49442148208618164,
0.015115663409233093,
0.09519318491220474,
0.20497094094753265,
0.24400806427001953,
0.04349755495786667,
-0.008122337982058525,
-0.1455042064189911,
0.3248818516731262,
-0.3696911334991455,
0.17766422033309937,
0.07455406337976456,
0.06688123196363449,
0.5588192939758301,
0.03862035647034645,
-0.24408820271492004,
-0.03599076345562935,
-0.5670961141586304,
0.5346627235412598,
0.11420327425003052,
-0.3848809003829956,
-0.2093837857246399,
0.28090184926986694,
0.07380793243646622,
0.22915636003017426,
-0.05328701436519623,
0.3404662013053894,
0.20147289335727692,
-0.4261125922203064,
-0.5190362334251404,
0.48468998074531555,
-0.20308548212051392,
-0.34809598326683044,
0.19346441328525543,
0.03055383451282978,
-0.5891632437705994,
0.3082306683063507,
-0.07697390764951706,
-0.24848568439483643,
-0.20799756050109863,
0.05307724326848984,
-0.1518978327512741,
-0.05506644397974014,
-0.2682466208934784,
0.07076021283864975,
0.1284523904323578,
-0.33707094192504883,
0.4778936207294464,
0.43002045154571533,
-0.1742851585149765,
-0.1102566197514534,
0.4660418927669525,
0.24973219633102417,
-0.08952646702528,
-0.28482651710510254,
0.0940384715795517,
0.11769668757915497,
0.07932264357805252,
0.0723171979188919,
-0.003388712415471673,
0.1967160701751709,
0.47273945808410645,
0.3561049699783325,
-0.07676483690738678,
-0.042094726115465164,
-0.030410153791308403,
0.019708523526787758,
0.17989061772823334,
-0.6338068246841431,
-0.08846258372068405,
-0.12700176239013672,
0.06677085161209106,
-0.3211504817008972,
0.0748252123594284,
-0.5564795732498169,
0.253054141998291,
0.16314122080802917,
-0.0004767886421177536,
0.054047077894210815,
0.1432608962059021,
-0.03274477273225784,
-0.06775497645139694,
0.2711188495159149,
0.44039011001586914,
0.006404825486242771,
-0.28552475571632385,
-0.25244131684303284,
-0.13229985535144806,
0.36136844754219055,
-0.24007229506969452,
0.1405514031648636,
0.3154824376106262,
0.15976570546627045,
-0.12409871071577072,
0.1682177186012268,
0.2631751000881195,
0.3169567883014679,
-0.06290002912282944,
0.3524357080459595,
-0.13351620733737946,
-0.23484814167022705,
-0.3311813175678253,
-0.13565972447395325,
-0.020817529410123825,
-0.1364220231771469,
0.29711419343948364,
-0.06577875465154648,
-0.14630500972270966,
0.09589260071516037,
-0.25507399439811707,
-0.3955487012863159,
-0.24899040162563324,
0.08861355483531952,
0.2972624897956848,
-0.09250462055206299,
-0.16019731760025024,
-0.2199966162443161,
-0.20320607721805573,
-0.23144575953483582,
-0.232193261384964,
0.2132411152124405,
-0.15350396931171417,
0.13092565536499023,
-0.08005798608064651,
0.11886328458786011,
-0.2190869152545929,
0.04677128419280052,
0.24529753625392914,
-0.0743778795003891,
-0.33156388998031616,
-0.02174643985927105,
-0.2387634515762329,
-0.02981066331267357,
0.25156518816947937,
0.21706686913967133,
0.1479579359292984,
-0.019263779744505882,
-0.31965580582618713,
-0.08054159581661224,
0.5513909459114075,
0.021487101912498474,
-0.08227387070655823,
0.0524178072810173,
0.019332513213157654,
0.39178499579429626,
-0.11353608220815659,
-0.6487385630607605,
0.10165488719940186,
0.02615300565958023,
0.13447536528110504,
-0.2566714584827423,
0.2677624821662903,
-0.11095601320266724,
-0.07724879682064056,
0.046975165605545044,
0.31997445225715637,
0.23249496519565582,
0.05027920380234718,
0.338165819644928,
-0.11065765470266342
] |
https://github.com/huggingface/datasets/issues/870 | [Feature Request] Add optional parameter in text loading script to preserve linebreaks | Hi ! Thanks for your message.
Indeed it's a free feature we can add and that can be useful.
If you want to contribute, feel free to open a PR to add it to the text dataset script :) | I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data.
I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great.
But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines.
Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned.
But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`. | 39 | [Feature Request] Add optional parameter in text loading script to preserve linebreaks
I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data.
I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great.
But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines.
Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned.
But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`.
Hi ! Thanks for your message.
Indeed it's a free feature we can add and that can be useful.
If you want to contribute, feel free to open a PR to add it to the text dataset script :) | [
-0.4354715943336487,
0.2950851321220398,
0.05672154948115349,
-0.24413076043128967,
-0.09724639356136322,
-0.20723769068717957,
0.3331259787082672,
0.17588423192501068,
0.29804590344429016,
0.32773977518081665,
0.503433883190155,
0.23918817937374115,
-0.017637604847550392,
0.13068459928035736,
-0.011161752976477146,
-0.15415479242801666,
-0.16735480725765228,
0.3164181709289551,
0.09484388679265976,
0.09435907751321793,
-0.17424286901950836,
0.22894135117530823,
-0.23517507314682007,
-0.3131570518016815,
-0.09428614377975464,
0.17584718763828278,
0.06154765188694,
-0.17628070712089539,
0.04866402596235275,
-0.2417837381362915,
0.053690388798713684,
0.4617236852645874,
-0.20172718167304993,
-0.06298142671585083,
-0.00012331247853580862,
-0.15191741287708282,
0.18342602252960205,
-0.18223141133785248,
-0.6022982597351074,
-0.11475774645805359,
-0.37292736768722534,
-0.2914460003376007,
-0.09922817349433899,
-0.22746872901916504,
0.06226890906691551,
0.34241020679473877,
-0.04587864875793457,
-0.4362996816635132,
0.28005650639533997,
0.30785614252090454,
0.049516063183546066,
0.10740700364112854,
-0.5713552832603455,
-0.0663224309682846,
0.5268211960792542,
0.291093647480011,
-0.06296039372682571,
0.05480223149061203,
0.016209222376346588,
0.05788101255893707,
-0.4066484272480011,
0.3086511492729187,
-0.3627740442752838,
-0.23989930748939514,
0.31539076566696167,
0.03332582116127014,
-0.10405262559652328,
0.019155625253915787,
0.12582291662693024,
0.645595133304596,
0.6044310927391052,
-0.5228231549263,
-0.18113766610622406,
-0.5374610424041748,
0.3158695697784424,
-0.25997066497802734,
0.07737564295530319,
0.0897538959980011,
-0.48005032539367676,
0.10286556929349899,
-0.32862621545791626,
-0.5799757242202759,
-0.2724968194961548,
0.028256170451641083,
0.05155576765537262,
0.007163706701248884,
0.08528070896863937,
-0.1294994205236435,
0.21397586166858673,
0.266727477312088,
-0.11557324230670929,
-0.3966218829154968,
-0.16725900769233704,
-0.012049534358084202,
0.1866081953048706,
-0.13835099339485168,
-0.13390758633613586,
0.029524682089686394,
0.2464732676744461,
0.19039596617221832,
0.2343105971813202,
-0.07289290428161621,
0.16598500311374664,
-0.0096091004088521,
-0.1466226726770401,
0.0010834160493686795,
0.6396603584289551,
-0.1263291984796524,
0.3962596654891968,
-0.0598769411444664,
0.2541896104812622,
-0.014751920476555824,
0.3621475398540497,
-0.05533856153488159,
0.2506428360939026,
0.21686170995235443,
0.5353251099586487,
0.05078469589352608,
-0.10152917355298996,
-0.008451554924249649,
0.15770211815834045,
-0.2738270163536072,
0.023110317066311836,
0.023177355527877808,
0.25297319889068604,
0.24979054927825928,
0.09393247961997986,
0.33977943658828735,
-0.02456376515328884,
-0.45208457112312317,
-0.011584664694964886,
-0.07390683144330978,
0.06909333914518356,
0.4735100567340851,
0.4798797070980072,
-0.13225366175174713,
0.018857020884752274,
0.30984431505203247,
-0.3272876739501953,
0.212581604719162,
-0.25991734862327576,
0.010739272460341454,
-0.062403466552495956,
0.08973126858472824,
0.050296131521463394,
-0.051447588950395584,
-0.27813878655433655,
0.12921679019927979,
-0.14427141845226288,
0.39823001623153687,
-0.20814938843250275,
-0.2423778474330902,
-0.012095773592591286,
0.11867805570363998,
-0.1746377795934677,
-0.11648501455783844,
-0.11901181936264038,
0.3408357799053192,
0.23297369480133057,
-0.21904116868972778,
0.3950003385543823,
-0.06775326281785965,
-0.4148363471031189,
-0.1905248910188675,
0.1208387017250061,
0.684441089630127,
-0.5018539428710938,
-0.39418864250183105,
-0.2446783185005188,
-0.16177776455879211,
0.1972193717956543,
-0.08458515256643295,
-0.2083406001329422,
0.31466957926750183,
-0.09435919672250748,
0.4131854474544525,
0.5370360016822815,
0.212602898478508,
-0.21132567524909973,
0.4115028977394104,
0.10020368546247482,
-0.02685011550784111,
0.30205729603767395,
0.1166805848479271,
0.4532320499420166,
0.0867428258061409,
-0.32385388016700745,
0.5056156516075134,
0.1082097589969635,
0.20165292918682098,
0.07918940484523773,
-0.13299912214279175,
0.3330932557582855,
0.1691439151763916,
-0.12615005671977997,
-0.03803601488471031,
-0.046394623816013336,
-0.04368891194462776,
0.1735135167837143,
-0.15402324497699738,
0.09815111756324768,
-0.057063862681388855,
0.11341908574104309,
0.2344139814376831,
-0.031881190836429596,
-0.09841880202293396,
-0.5309475660324097,
-0.14501631259918213,
0.14497382938861847,
-0.10539532452821732,
-0.23064690828323364,
-0.35729140043258667,
0.15329235792160034,
0.08999503403902054,
0.084507055580616,
0.3819425702095032,
-0.05448554456233978,
0.07624030113220215,
-0.4913657009601593,
0.1855788379907608,
-0.2050102800130844,
0.12585917115211487,
-0.05961795151233673,
0.29734548926353455,
-0.0412374883890152,
0.16004492342472076,
0.4320735037326813,
-0.14158879220485687,
-0.0284116193652153,
0.2037591189146042,
0.03573749214410782,
0.07576320320367813,
-0.18623214960098267,
0.5891008973121643,
0.22567303478717804,
0.30132588744163513,
-0.35499411821365356,
-0.31491976976394653,
-0.0073470743373036385,
0.07858441770076752,
0.09018079191446304,
0.08044087141752243,
-0.13424350321292877,
-0.19157062470912933,
-0.20217213034629822,
0.35266613960266113,
-0.1503383368253708,
0.3353111147880554,
-0.11818232387304306,
-0.12177789956331253,
-0.24941137433052063,
-0.31471705436706543,
-0.29096880555152893,
-0.422679603099823,
0.2018987536430359,
-0.14252853393554688,
0.3798128068447113,
0.25678279995918274,
-0.06510820239782333,
-0.08557816594839096,
0.5796647667884827,
-0.13687817752361298,
0.30696260929107666,
0.3238113820552826,
0.02114259824156761,
-0.1402035504579544,
0.14884543418884277,
0.26987889409065247,
0.38282331824302673,
0.2634969651699066,
-0.1487601399421692,
0.06681004166603088,
-0.005978372413665056,
-0.3844345510005951,
0.28026601672172546,
0.21706269681453705,
-0.0857427790760994,
0.3734266757965088,
0.016543617472052574,
-0.1488487422466278,
-0.32343780994415283,
-0.0239388607442379,
0.021002745255827904,
-0.08654418587684631,
-0.35177457332611084,
-0.11672640591859818,
-0.2842796742916107,
-0.25873202085494995,
-0.17882506549358368,
-0.2389431595802307,
-0.35895341634750366,
-0.24145589768886566,
0.1967180371284485,
-0.13879993557929993,
-0.34965449571609497,
0.1834881603717804,
-0.26291966438293457,
0.7408046722412109,
-0.18333078920841217,
-0.5621783137321472,
0.026969559490680695,
-0.1943000853061676,
0.0812373161315918,
-0.06597839295864105,
-0.01384537760168314,
0.1965547353029251,
0.2640572488307953,
-0.003652415005490184,
0.09097981452941895,
-0.06974779814481735,
0.10315892845392227,
0.049797166138887405,
0.038712210953235626,
-0.20219212770462036,
0.4928573966026306,
0.1726309061050415,
0.32857799530029297,
-0.2593168020248413,
-0.17930343747138977,
-0.2124929130077362,
0.041899681091308594,
0.1382414847612381,
0.11571458727121353,
-0.0770106390118599,
-0.37449267506599426,
-0.18180377781391144,
0.018616439774632454,
-0.2738804817199707,
-0.027367020025849342,
-0.41089823842048645,
0.006127888336777687,
0.23846273124217987,
0.08895830065011978,
0.03783980384469032,
-0.012853454798460007,
-0.05263197422027588,
0.046587035059928894,
0.13605226576328278,
0.37778276205062866,
0.01841977797448635,
0.15043753385543823,
-0.062360431998968124,
-0.05686825513839722,
0.0013302310835570097,
0.3807699978351593,
-0.4775213599205017,
0.26294106245040894,
-0.12003494054079056,
0.49522829055786133,
-0.12209830433130264,
-0.035120684653520584,
0.3664513826370239,
0.13640066981315613,
0.08151799440383911,
-0.22465720772743225,
-0.014772520400583744,
0.27879342436790466,
-0.36123165488243103,
0.04867839813232422,
0.2344341278076172,
0.5663762092590332,
-0.002538163447752595,
0.38881057500839233,
-0.006831249687820673,
0.14092805981636047,
0.2664130628108978,
-0.1572483628988266,
0.3855632245540619,
0.3046709895133972,
-0.2800631523132324,
-0.3151490390300751,
0.07951143383979797,
0.08123231679201126,
0.20620591938495636,
0.07044229656457901,
0.019344512373209,
-0.12363965064287186,
-0.46142059564590454,
0.23981401324272156,
-0.5338417887687683,
0.1624889075756073,
-0.0830807015299797,
0.23927263915538788,
-0.13540880382061005,
0.29150307178497314,
-0.2403935045003891,
-0.32132869958877563,
-0.0137794753536582,
0.320916086435318,
0.336584210395813,
-0.07237173616886139,
-0.2709950804710388,
0.31772956252098083,
-0.2754436731338501,
0.11210799217224121,
0.15836985409259796,
-0.0539843887090683,
0.06723165512084961,
-0.16830147802829742,
-0.01660909876227379,
0.23344182968139648,
0.5474969148635864,
-0.12550388276576996,
-0.3826480507850647,
-0.16109958291053772,
0.29492366313934326,
-0.08907321840524673,
-0.0021830014884471893,
0.11075067520141602,
0.2331683337688446,
0.28051045536994934,
-0.0554787702858448,
-0.2624710500240326,
-0.013530304655432701,
0.2837162911891937,
0.15789857506752014,
-0.03680364042520523,
-0.6033733487129211,
-0.07713010162115097,
0.082199826836586,
-0.09167324006557465,
0.017950456589460373,
-0.028876081109046936,
0.018479695543646812,
-0.2994559705257416,
0.13003619015216827,
0.3077903985977173,
-0.3788071274757385,
0.3649575412273407,
-0.09372571110725403,
0.11186984181404114,
-0.0028546741232275963,
-0.04363516345620155,
-0.2175232172012329,
-0.12951631844043732,
-0.06255268305540085,
0.2717801332473755,
-0.24329432845115662,
-0.3551977872848511,
-0.442470520734787,
-0.4403400421142578,
0.6828673481941223,
0.23836523294448853,
-0.2397618442773819,
0.2966238260269165,
-0.011127106845378876,
0.00831865705549717,
-0.05660133808851242,
-0.04557736590504646,
-0.1543448567390442,
-0.5080239176750183,
-0.19811663031578064,
-0.4083797335624695,
0.374597430229187,
-0.08507511764764786,
-0.11844391375780106,
0.019754020497202873,
-0.030966196209192276,
-0.4312165677547455,
0.15094339847564697,
-0.16202837228775024,
0.7613745331764221,
0.4389471709728241,
0.23393131792545319,
-0.04831499978899956,
-0.053029272705316544,
0.40914463996887207,
0.21546368300914764,
0.046855129301548004,
-0.16809844970703125,
0.16031545400619507,
-0.1227329894900322,
-0.048916880041360855,
0.2017664611339569,
0.06601563841104507,
-0.4209388196468353,
0.19257670640945435,
0.12530109286308289,
0.09055247902870178,
-0.1094527468085289,
0.3929075598716736,
-0.5889465808868408,
-0.4246121942996979,
0.15153776109218597,
-0.0910884439945221,
-0.12652814388275146,
0.0108971381559968,
0.21516472101211548,
-0.19846320152282715,
0.4758719801902771,
-0.2690283954143524,
-0.3731584846973419,
0.1091194674372673,
-0.12770189344882965,
-0.10770018398761749,
-0.09462703764438629,
-0.16705042123794556,
0.3970533311367035,
0.41451188921928406,
0.17247825860977173,
0.3433482050895691,
-0.12556642293930054,
0.04876311495900154,
-0.2599713206291199,
0.1427634358406067,
-0.07696612179279327,
0.10112550854682922,
0.2524687945842743,
-0.015511038713157177,
-0.3237214684486389,
0.06454438716173172,
0.2028001993894577,
-0.4637385606765747,
-0.24522964656352997,
-0.3908303380012512,
0.2647172808647156,
-0.49404844641685486,
-0.07140848785638809,
-0.057123344391584396,
0.3570420444011688,
-0.18170136213302612,
-0.01780632883310318,
0.05781404301524162,
0.32176876068115234,
0.01823567971587181,
-0.27628442645072937,
-0.1267780065536499,
-0.19526471197605133,
0.326421320438385,
-0.029297780245542526,
0.0016733160009607673,
0.4528478682041168,
0.249142587184906,
-0.15439529716968536,
-0.24835804104804993,
0.03307439759373665,
-0.022709310054779053,
-0.6799129843711853,
0.20171132683753967,
0.19616419076919556,
0.17100714147090912,
-0.04675538092851639,
0.20489434897899628,
-0.29731541872024536,
0.25776875019073486,
0.009928160347044468,
-0.25363531708717346,
0.0011223030742257833,
-0.037233296781778336,
0.255960077047348,
0.40142539143562317,
0.2199048399925232,
-0.16783882677555084,
0.0035411568824201822,
0.00859036110341549,
-0.1561027467250824,
-0.023954004049301147,
0.48703500628471375,
-0.17659251391887665,
0.011217579245567322,
0.20937074720859528,
-0.09702648222446442,
-0.2056294083595276,
-0.11252498626708984,
0.003166877431795001,
0.043721336871385574,
-0.0393633134663105,
-0.3089465796947479,
0.22350187599658966,
-0.1048404797911644,
0.04511071369051933,
-0.11079848557710648,
-0.008542435243725777,
0.10963152348995209,
-0.13151909410953522,
0.32081037759780884,
0.11527664959430695,
-0.21577218174934387,
0.3483758866786957,
0.18906381726264954,
0.37473180890083313,
-0.20615553855895996,
0.09693805128335953,
-0.3119313716888428,
0.20905068516731262,
-0.052951615303754807,
0.28159964084625244,
-0.07820270955562592,
0.07849077880382538,
-0.1537640243768692,
0.17947648465633392,
0.5239457488059998,
0.12829044461250305,
0.040846940129995346,
-0.08445191383361816,
-0.23829670250415802,
0.051368750631809235,
-0.04899705573916435,
0.08011332899332047,
-0.4318627119064331,
0.021955613046884537,
0.10428690910339355,
0.08637459576129913,
-0.2357272505760193,
-0.05892791226506233,
0.06600332260131836,
-0.011379439383745193,
0.13130731880664825,
0.2672941982746124,
0.03196440264582634,
-0.12378042936325073,
0.19128961861133575,
-0.1409001648426056,
0.40498459339141846,
0.23786060512065887,
0.1618032455444336,
0.5519506335258484,
-0.004450672771781683,
-0.047799110412597656,
-0.19679710268974304,
0.301605761051178,
0.01844734512269497,
-0.03183833137154579,
-0.06800655275583267,
0.38811033964157104,
0.19917845726013184,
0.02852196991443634,
-0.12007556855678558,
-0.39869681000709534,
0.19488579034805298,
0.2730502188205719,
-0.24936068058013916,
0.2182578146457672,
0.19280584156513214,
0.24954232573509216,
0.05288557708263397,
0.023040771484375,
-0.26133325695991516,
0.20509915053844452,
-0.06620410829782486,
-0.15796783566474915,
-0.5553824305534363,
-0.021859031170606613,
-0.1779492348432541,
-0.0033023091964423656,
0.03414144739508629,
-0.06018843874335289,
-0.030757542699575424,
0.11996471881866455,
0.08154398202896118,
-0.003785055596381426,
0.34702759981155396,
-0.3495808243751526,
0.22789067029953003,
-0.304591566324234,
-0.17196016013622284,
-0.11401376128196716,
0.3842439353466034,
0.5464938879013062,
-0.04211333766579628,
0.10878341645002365,
0.1423358917236328,
0.2631814181804657,
-0.0332072414457798,
-0.18736138939857483,
-0.005222615320235491,
0.09349469840526581,
0.22360476851463318,
0.12160447239875793,
0.5366199612617493,
0.32245153188705444,
-0.000047975496272556484,
0.023854302242398262,
0.4961560070514679,
0.18963398039340973,
-0.023298315703868866,
-0.4056718051433563,
0.4001929461956024,
0.4818978011608124,
-0.16913090646266937,
-0.4080250561237335,
0.0576712042093277,
0.1050150990486145,
-0.2676215171813965,
0.26471883058547974,
-0.05597943812608719,
-0.17017605900764465,
-0.2995609641075134,
0.020115187391638756,
0.040517255663871765,
0.12106883525848389,
0.35036858916282654,
0.0009222122607752681,
-0.11068981140851974,
-0.04199232906103134,
-0.2783927917480469,
-0.23082995414733887,
-0.05264170467853546,
-0.06326253712177277,
0.24386869370937347,
-0.24016433954238892,
0.0626300573348999,
0.16710154712200165,
-0.31633976101875305,
0.33539530634880066,
-0.30519798398017883,
-0.36889633536338806,
-0.10190476477146149,
-0.0181720107793808,
0.1649080365896225,
-0.07237938791513443,
-0.16757968068122864,
-0.08403714746236801,
0.07134611159563065,
-0.10590407252311707,
-0.1353933960199356,
-0.17311787605285645,
0.2033347636461258,
0.3793599307537079,
0.31749439239501953,
-0.11669251322746277,
-0.16010604798793793,
0.18572524189949036,
-0.11306560039520264,
0.1530614197254181,
0.06985802203416824,
0.2486238330602646,
-0.23879271745681763,
-0.018206661567091942,
0.2196347415447235,
0.211897075176239,
0.028792189434170723,
-0.03899868205189705,
0.05001264810562134,
0.5180220007896423,
-0.033145297318696976,
0.18500275909900665,
-0.18184217810630798,
0.030675839632749557,
-0.11502190679311752,
0.022719165310263634,
-0.10713501274585724,
-0.22592231631278992,
-0.18299926817417145,
0.14179031550884247,
0.0761198177933693,
-0.1698002964258194,
0.2956993281841278,
-0.2386937439441681,
0.019146032631397247,
-0.34577736258506775,
0.44181129336357117,
0.2836984395980835,
0.04356228560209274,
-0.7789453268051147,
-0.1735747754573822,
0.3784146308898926,
-0.05041514337062836,
0.014338219538331032,
0.5416885614395142,
0.17807824909687042,
0.21965092420578003,
-0.09074103087186813,
0.2851371169090271,
-0.012517152354121208,
-0.37642449140548706,
-0.10949178040027618,
-0.3844897449016571
] |
https://github.com/huggingface/datasets/issues/866 | OSCAR from Inria group | PR is already open here : #348
The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled).
As soon as #863 is merged we can start computing them. This will take a bit of time though | ## Adding a Dataset
- **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/).
- **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.*
- **Paper:** *[here](https://hal.inria.fr/hal-02148693)*
- **Data:** *[here](https://oscar-corpus.com/)*
- **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).*
I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages.
| 43 | OSCAR from Inria group
## Adding a Dataset
- **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/).
- **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.*
- **Paper:** *[here](https://hal.inria.fr/hal-02148693)*
- **Data:** *[here](https://oscar-corpus.com/)*
- **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).*
I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages.
PR is already open here : #348
The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled).
As soon as #863 is merged we can start computing them. This will take a bit of time though | [
-0.07899967581033707,
-0.06898017972707748,
-0.08298517763614655,
0.061385780572891235,
-0.08882305771112442,
0.09406177699565887,
-0.012248681858181953,
0.2985755503177643,
0.0025456047151237726,
0.08631610125303268,
-0.5969402194023132,
-0.05120494216680527,
-0.24507272243499756,
0.07547223567962646,
0.15065617859363556,
-0.3321433961391449,
0.052021946758031845,
-0.1897597461938858,
-0.2447090893983841,
-0.29405808448791504,
-0.1997528076171875,
0.19000476598739624,
0.10844486951828003,
-0.07059850543737411,
0.20794980227947235,
-0.2153773456811905,
-0.43402737379074097,
-0.11184006929397583,
-0.1303548812866211,
-0.19360314309597015,
-0.003016040660440922,
0.20021124184131622,
0.2905135452747345,
0.6354880332946777,
-0.00009606564708519727,
-0.10570590943098068,
-0.05947013571858406,
-0.23907160758972168,
0.09472676366567612,
-0.11666665226221085,
0.25346094369888306,
-0.08267322182655334,
-0.19837263226509094,
-0.33601367473602295,
-0.40459346771240234,
-0.3702590763568878,
-0.027756400406360626,
-0.4808143675327301,
0.16292572021484375,
0.1797286868095398,
0.28068339824676514,
-0.22710981965065002,
-0.17511017620563507,
-0.21705715358257294,
-0.024889614433050156,
-0.28692901134490967,
-0.3192919194698334,
0.06109967455267906,
0.5420656800270081,
-0.07494603097438812,
0.03867102041840553,
0.3805999159812927,
0.10315309464931488,
-0.2377462238073349,
-0.11790905892848969,
-0.04529041051864624,
0.08051501959562302,
-0.36046743392944336,
0.15375471115112305,
0.33729538321495056,
0.019772447645664215,
-0.34214121103286743,
-0.31691864132881165,
-0.17639411985874176,
-0.04912777245044708,
-0.020562821999192238,
-0.2518904507160187,
0.3864116668701172,
0.03646404296159744,
0.25462672114372253,
0.20601886510849,
-0.24139359593391418,
-0.11939487606287003,
0.10102564096450806,
0.031733930110931396,
0.5971212983131409,
0.08017600327730179,
-0.12375542521476746,
-0.024724464863538742,
0.01537992898374796,
-0.039810821413993835,
-0.006700574420392513,
0.027071693912148476,
0.19046592712402344,
-0.3079119026660919,
-0.32504674792289734,
0.20660579204559326,
-0.159338116645813,
0.4159706234931946,
-0.15098917484283447,
0.24825027585029602,
0.1740214228630066,
-0.17950554192066193,
0.12143275141716003,
0.2831610143184662,
-0.08993566781282425,
-0.1744024008512497,
-0.11565400660037994,
0.07233243435621262,
-0.4601125717163086,
0.08208218216896057,
0.17436368763446808,
-0.13573169708251953,
0.1313314288854599,
-0.2064630687236786,
0.05415612459182739,
-0.07753444463014603,
-0.045871272683143616,
0.08064676821231842,
-0.05373894423246384,
-0.2299365997314453,
0.01379378791898489,
-0.09864428639411926,
0.07683815807104111,
-0.02589218132197857,
0.012043429538607597,
-0.09097456187009811,
0.06794670969247818,
-0.10710317641496658,
-0.2761722207069397,
-0.20342548191547394,
0.21763578057289124,
-0.3801767826080322,
0.12884560227394104,
0.1727493405342102,
0.019011249765753746,
0.011964245699346066,
-0.23409824073314667,
0.23284092545509338,
0.2133849710226059,
0.3611576557159424,
-0.32029494643211365,
0.16095957159996033,
-0.14940088987350464,
0.21170936524868011,
-0.25982412695884705,
0.05025148764252663,
-0.21921102702617645,
-0.47147372364997864,
-0.029562829062342644,
0.04505722224712372,
-0.30233532190322876,
-0.15823636949062347,
0.2464544177055359,
-0.23152276873588562,
-0.13688980042934418,
-0.2449246048927307,
0.7459756731987,
0.007385134696960449,
0.12476124614477158,
-0.04919959232211113,
-0.0011200133012607694,
-0.3634639382362366,
-0.020204126834869385,
0.0891348198056221,
0.2649674415588379,
0.18601803481578827,
-0.00880474504083395,
0.04760655388236046,
0.18410834670066833,
0.12004407495260239,
0.33756330609321594,
-0.12492053955793381,
-0.14938484132289886,
0.0020370124839246273,
0.1753961443901062,
0.2010471671819687,
-0.2509191930294037,
0.05666603893041611,
0.041359078139066696,
0.006092526949942112,
-0.07180669903755188,
0.18880021572113037,
-0.10691028088331223,
0.3648880124092102,
-0.32892194390296936,
0.14531923830509186,
0.6325170993804932,
-0.24683357775211334,
0.18295250833034515,
-0.23722787201404572,
-0.03586658462882042,
-0.05154869705438614,
0.2669641077518463,
0.3047322630882263,
-0.31777259707450867,
0.11109481751918793,
-0.3176097869873047,
0.1368640810251236,
-0.19074775278568268,
0.2715632915496826,
-0.019910218194127083,
0.19887208938598633,
0.0542282797396183,
0.2405930459499359,
-0.40549689531326294,
-0.0055576227605342865,
0.032198600471019745,
-0.06765792518854141,
0.5373080372810364,
-0.08504486083984375,
-0.3493945002555847,
-0.19953005015850067,
-0.20659169554710388,
-0.03813426196575165,
-0.021345295011997223,
0.26774945855140686,
0.30269190669059753,
0.08854297548532486,
0.023381207138299942,
-0.13736025989055634,
-0.08616618812084198,
-0.13424845039844513,
-0.3086869716644287,
-0.003367303404957056,
0.36493128538131714,
-0.09229137748479843,
-0.08110558986663818,
0.21294426918029785,
0.40555310249328613,
-0.1997702568769455,
-0.2372061014175415,
0.10527847707271576,
0.11529877781867981,
-0.16469892859458923,
0.09172956645488739,
0.5061906576156616,
0.3447546362876892,
0.18930380046367645,
-0.5001248717308044,
0.1349046528339386,
0.11443027853965759,
0.18334384262561798,
-0.06493860483169556,
-0.16151152551174164,
0.29667219519615173,
0.18318554759025574,
-0.021967442706227303,
0.20729929208755493,
-0.08915650099515915,
0.3712121546268463,
-0.04402060806751251,
-0.09549730271100998,
-0.08472557365894318,
0.03433558717370033,
-0.01430974155664444,
0.04682924970984459,
0.11228875815868378,
-0.5806648135185242,
0.19953182339668274,
0.54948890209198,
0.07855568081140518,
0.3099133372306824,
0.15538232028484344,
-0.002356982557103038,
-0.1778402477502823,
-0.08579530566930771,
0.04356304556131363,
0.11411450058221817,
0.30944716930389404,
0.39736446738243103,
0.061520446091890335,
0.1920935958623886,
-0.008789663203060627,
0.1732657551765442,
-0.12014517933130264,
0.21822553873062134,
0.2752733528614044,
0.2165374606847763,
0.03975362703204155,
-0.2015639841556549,
-0.16706573963165283,
0.0866318941116333,
0.10498683899641037,
0.3335336148738861,
0.10441162437200546,
0.16209465265274048,
-0.28095850348472595,
-0.25953057408332825,
-0.16249141097068787,
-0.10266686230897903,
-0.002533717779442668,
0.2718779742717743,
-0.2838675379753113,
-0.19533230364322662,
0.25302860140800476,
-0.0899113267660141,
0.3012339770793915,
-0.11370741575956345,
-0.02975090593099594,
0.12934252619743347,
-0.4761378765106201,
-0.09637081623077393,
0.24891066551208496,
0.2857632040977478,
0.024387896060943604,
0.40652796626091003,
0.10193661600351334,
-0.00019394440460018814,
-0.05545743182301521,
-0.48033371567726135,
0.19790831208229065,
-0.21938885748386383,
-0.19934770464897156,
-0.08391210436820984,
-0.32828599214553833,
-0.008986213244497776,
-0.25606605410575867,
0.11635653674602509,
-0.19063633680343628,
-0.13587473332881927,
-0.023954033851623535,
-0.12526610493659973,
-0.030645165592432022,
-0.10825183987617493,
-0.6249158382415771,
-0.5535081624984741,
-0.39316779375076294,
0.11623653769493103,
-0.0869351178407669,
0.1905633509159088,
-0.22225402295589447,
-0.223690927028656,
-0.053218305110931396,
0.23866793513298035,
0.18234553933143616,
-0.28497228026390076,
-0.05592779442667961,
0.26150253415107727,
-0.38681894540786743,
-0.23364637792110443,
-0.2682064175605774,
-0.3120085895061493,
0.26690369844436646,
0.12761437892913818,
-0.09025317430496216,
0.023046549409627914,
-0.07228165119886398,
-0.32462039589881897,
0.2294093519449234,
-0.07988930493593216,
0.29515984654426575,
0.26610803604125977,
-0.20857511460781097,
-0.06839444488286972,
-0.048004042357206345,
0.06692665815353394,
0.18937243521213531,
-0.03522488474845886,
-0.06917442381381989,
0.21037687361240387,
0.24131621420383453,
0.3895184099674225,
-0.07555809617042542,
0.1789117455482483,
0.3257671296596527,
0.3153468370437622,
0.06768739968538284,
-0.0875457227230072,
-0.20064283907413483,
0.18449793756008148,
0.18577523529529572,
0.02736763283610344,
0.5681688785552979,
0.2440767139196396,
-0.7737679481506348,
-0.236836239695549,
-0.06652072817087173,
-0.2774052023887634,
-0.28233152627944946,
0.22674846649169922,
-0.006430383771657944,
0.1672702580690384,
-0.06945079565048218,
-0.33381080627441406,
-0.29702019691467285,
-0.0867694541811943,
0.1868283897638321,
0.01795840449631214,
-0.04484235867857933,
0.13901442289352417,
-0.13337618112564087,
0.16935260593891144,
-0.36282429099082947,
0.1929847151041031,
0.20519018173217773,
-0.07444969564676285,
-0.05479275435209274,
-0.13766610622406006,
0.014912192709743977,
-0.0647611916065216,
-0.07244856655597687,
-0.3927128314971924,
-0.00039702397771179676,
0.12836173176765442,
-0.3000941872596741,
0.07540931552648544,
0.01531342975795269,
-0.28246212005615234,
0.06761129200458527,
0.3900350332260132,
-0.06619662791490555,
-0.4734048545360565,
-0.22879335284233093,
0.162378191947937,
-0.00982627086341381,
-0.09816999733448029,
-0.19044026732444763,
-0.02238359861075878,
-0.4972301721572876,
-0.05570005998015404,
0.10055836290121078,
0.17718605697155,
0.1592845320701599,
0.026854287832975388,
-0.02684800699353218,
-0.11469246447086334,
-0.050391651690006256,
0.3639602065086365,
0.10629729181528091,
-0.16201099753379822,
0.35485777258872986,
0.1845196783542633,
-0.10377035290002823,
0.24752533435821533,
0.27769535779953003,
0.3752758204936981,
-0.2040380835533142,
-0.267469197511673,
0.2303123027086258,
-0.4009722173213959,
0.30911022424697876,
0.04405650123953819,
0.3894360065460205,
0.25378522276878357,
-0.17593839764595032,
-0.05484399199485779,
-0.16680662333965302,
-0.09640009701251984,
-0.025258291512727737,
0.24767400324344635,
-0.4372765123844147,
-0.6188764572143555,
0.3124138116836548,
0.1915922313928604,
-0.2940200865268707,
0.3257555365562439,
0.12273617833852768,
-0.4092983901500702,
0.6036087870597839,
-0.008506922982633114,
1.0068219900131226,
-0.20648199319839478,
0.019267823547124863,
-0.07574325799942017,
0.24259406328201294,
0.16570046544075012,
-0.32143881916999817,
-0.02495606802403927,
-0.04086017236113548,
-0.16272369027137756,
0.10126941651105881,
0.17930930852890015,
0.005564396735280752,
0.1615140438079834,
-0.26215314865112305,
0.09297376126050949,
0.0894046500325203,
-0.08396140486001968,
0.08686370402574539,
0.39806580543518066,
0.0476871095597744,
-0.31390538811683655,
-0.2840447723865509,
0.24094858765602112,
-0.003706879448145628,
-0.016463620588183403,
0.03756183758378029,
-0.17477160692214966,
-0.06271550059318542,
0.3782949447631836,
-0.4576456546783447,
0.0030914745293557644,
0.2986186146736145,
0.042078688740730286,
-0.1318151354789734,
-0.2317119687795639,
0.5097088813781738,
0.055434226989746094,
0.4480833113193512,
-0.14881181716918945,
-0.0856938436627388,
0.06142369657754898,
-0.19982971251010895,
-0.19617323577404022,
0.10594198852777481,
-0.17274586856365204,
0.4053304195404053,
-0.0920226201415062,
-0.3007204830646515,
0.29314854741096497,
0.3604837954044342,
-0.16099683940410614,
-0.2587648034095764,
-0.051553234457969666,
0.08584962040185928,
0.0663369670510292,
0.1887255311012268,
0.39182421565055847,
-0.3024209141731262,
-0.03774199262261391,
0.25994208455085754,
0.2304692566394806,
-0.2249954491853714,
0.171437069773674,
-0.012872113846242428,
-0.1304265409708023,
-0.004618553910404444,
-0.011362418532371521,
0.5888926982879639,
-0.19108062982559204,
0.02833983488380909,
0.2820189595222473,
-0.0597928911447525,
-0.2995472550392151,
-0.26783907413482666,
0.17369036376476288,
0.027203639969229698,
-0.0603509359061718,
-0.10441861301660538,
-0.2405276596546173,
0.1992272585630417,
-0.0005388314020819962,
0.2522381544113159,
0.14262014627456665,
-0.07045380771160126,
0.03345409408211708,
0.10155288875102997,
0.1490962654352188,
-0.03228768706321716,
0.01851140521466732,
-0.11886399984359741,
0.04787454381585121,
0.06887795031070709,
0.3429553508758545,
-0.5057382583618164,
0.007853732444345951,
-0.20167791843414307,
0.21853359043598175,
0.052844513207674026,
-0.09391031414270401,
-0.06186342611908913,
0.10016316920518875,
0.11761271953582764,
-0.018825631588697433,
-0.1256081759929657,
-0.2954028248786926,
-0.13703688979148865,
0.09356414526700974,
-0.08994394540786743,
0.23735538125038147,
0.19937746226787567,
-0.0618283748626709,
-0.16038471460342407,
-0.3016291558742523,
0.17191772162914276,
0.1017066240310669,
0.003425862407311797,
0.08959303796291351,
0.3138924241065979,
-0.10096066445112228,
-0.04530087858438492,
-0.016486333683133125,
0.05915600433945656,
0.14523890614509583,
-0.03436829894781113,
0.163967102766037,
0.037130311131477356,
-0.22689735889434814,
0.19593636691570282,
0.24242852628231049,
0.05174676701426506,
0.10042166709899902,
0.23975065350532532,
0.2974246144294739,
0.17094288766384125,
0.3149263858795166,
0.19693531095981598,
-0.19823256134986877,
0.01428669411689043,
-0.012567794881761074,
0.05644450709223747,
0.31727826595306396,
-0.3726847469806671,
0.09816917032003403,
0.12700943648815155,
0.022746292874217033,
0.3888135850429535,
0.3959037959575653,
0.2513137757778168,
0.10400530695915222,
0.057098597288131714,
-0.09614548087120056,
0.2420564740896225,
0.009487312287092209,
0.2537921667098999,
-0.10558844357728958,
0.13613708317279816,
-0.02552080526947975,
0.1322356015443802,
-0.03628204017877579,
0.4412901699542999,
0.11815942078828812,
-0.19809672236442566,
0.4327000677585602,
0.3672032356262207,
0.00027312603197060525,
0.18479537963867188,
-0.025760453194379807,
0.16545142233371735,
0.2912638783454895,
0.2248009443283081,
0.11230960488319397,
0.07669983059167862,
0.41373786330223083,
0.1545703262090683,
0.06047184392809868,
-0.123211570084095,
0.3448936641216278,
0.14267417788505554,
0.10091638565063477,
-0.23859842121601105,
-0.18536828458309174,
-0.3306390941143036,
-0.0049492837861180305,
-0.10868220031261444,
-0.16030195355415344,
0.2862166464328766,
0.012314344756305218,
0.1106622964143753,
-0.05455419048666954,
-0.030040882527828217,
0.013200596906244755,
0.3707946240901947,
-0.14732669293880463,
0.2632617652416229,
0.3792473077774048,
-0.34744760394096375,
-0.16101622581481934,
0.4022831618785858,
-0.07344581186771393,
0.00822449941188097,
-0.33073320984840393,
0.37710484862327576,
-0.01659366860985756,
-0.060439564287662506,
0.0015690912259742618,
0.172223299741745,
0.16570860147476196,
-0.12339969724416733,
0.16303598880767822,
0.18447458744049072,
-0.17006339132785797,
-0.043815892189741135,
0.1857716292142868,
-0.14767025411128998,
0.12121347337961197,
0.21909672021865845,
0.21015293896198273,
0.13034123182296753,
-0.12940624356269836,
0.029253564774990082,
-0.5958347916603088,
-0.2451609969139099,
0.2990209758281708,
-0.008203069679439068,
0.012320972979068756,
-0.13015812635421753,
0.12109651416540146,
0.20040737092494965,
0.4456833004951477,
0.19229355454444885,
0.20454439520835876,
-0.013814386911690235,
-0.34606507420539856,
-0.3378743529319763,
0.25690025091171265,
-0.14208699762821198,
0.014880013652145863,
-0.20770509541034698,
0.28836002945899963,
0.41048288345336914,
0.32000407576560974,
-0.3424783945083618,
0.3709460496902466,
0.017937419936060905,
0.006546930875629187,
-0.5773763060569763,
0.17934450507164001,
-0.00444936053827405,
0.1575571894645691,
0.09181353449821472,
-0.08193584531545639,
-0.11664923280477524,
-0.1669202446937561,
0.2160651534795761,
-0.2341344952583313,
-0.1001129075884819,
0.002919812686741352,
0.11204871535301208,
0.13577106595039368,
0.0802975445985794,
0.22194193303585052,
-0.030819350853562355,
-0.032829269766807556,
0.07140333950519562,
-0.3288223445415497,
-0.15407702326774597,
0.3053358495235443,
0.14694711565971375,
-0.11982443183660507,
-0.2654132544994354,
-0.3528786599636078,
0.20711418986320496,
0.27794525027275085,
-0.12278959155082703,
0.04934518411755562,
-0.21143299341201782,
-0.039165198802948,
0.0466240830719471,
-0.14173470437526703,
-0.13020281493663788,
0.39171281456947327,
-0.047289151698350906,
-0.06892891973257065,
-0.07542628794908524,
-0.2966422736644745,
0.24506746232509613,
-0.10273435711860657,
-0.31080251932144165,
-0.36669567227363586,
0.07276565581560135,
0.2543422281742096,
0.275960236787796,
-0.2505301833152771,
0.2675190269947052,
0.2665630578994751,
0.2953966557979584,
-0.08164216578006744,
0.1215064525604248,
0.06833602488040924,
-0.22003403306007385,
-0.2534705400466919,
-0.10436373949050903,
-0.011296047829091549,
-0.20401014387607574,
-0.34580478072166443,
-0.2720399498939514
] |
https://github.com/huggingface/datasets/issues/865 | Have Trouble importing `datasets` | I'm sorry, this was a problem with my environment.
Now that I have identified the cause of environmental dependency, I would like to fix it and try it.
Excuse me for making a noise. | I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets.
I cloned the newest version of datasets (master branch), and do `pip install -e .`.
Then, `import datasets` causes the error below.
```
~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module>
116 sys.path.append(str(HF_MODULES_CACHE))
117
--> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True)
119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")):
120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"):
~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok)
221 return
222 try:
--> 223 mkdir(name, mode)
224 except OSError:
225 # Cannot rely on checking for EEXIST, since the operating system
FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules'
```
The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set.
(I use Python 3.8, so `exist_ok` is expected to work.)
I've checked some environment variables, and they are set as below.
```
*** NameError: name 'HF_MODULES_CACHE' is not defined
*** NameError: name 'hf_cache_home' is not defined
*** NameError: name 'XDG_CACHE_HOME' is not defined
```
Should I set some environment variables before using this library?
And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set?
Thank you in advance. | 34 | Have Trouble importing `datasets`
I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets.
I cloned the newest version of datasets (master branch), and do `pip install -e .`.
Then, `import datasets` causes the error below.
```
~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module>
116 sys.path.append(str(HF_MODULES_CACHE))
117
--> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True)
119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")):
120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"):
~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok)
221 return
222 try:
--> 223 mkdir(name, mode)
224 except OSError:
225 # Cannot rely on checking for EEXIST, since the operating system
FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules'
```
The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set.
(I use Python 3.8, so `exist_ok` is expected to work.)
I've checked some environment variables, and they are set as below.
```
*** NameError: name 'HF_MODULES_CACHE' is not defined
*** NameError: name 'hf_cache_home' is not defined
*** NameError: name 'XDG_CACHE_HOME' is not defined
```
Should I set some environment variables before using this library?
And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set?
Thank you in advance.
I'm sorry, this was a problem with my environment.
Now that I have identified the cause of environmental dependency, I would like to fix it and try it.
Excuse me for making a noise. | [
-0.26811960339546204,
0.1308588683605194,
0.009198013693094254,
0.17224803566932678,
0.2753850519657135,
0.07383527606725693,
0.2072007954120636,
0.18338418006896973,
0.15290021896362305,
-0.10359552502632141,
-0.28493720293045044,
-0.14241555333137512,
-0.1180942952632904,
-0.3181895613670349,
0.030698468908667564,
0.15117037296295166,
0.263543039560318,
0.33810532093048096,
-0.35533636808395386,
-0.2657528221607208,
-0.23653464019298553,
0.1956792175769806,
0.06993379443883896,
0.0383722186088562,
-0.3075052797794342,
0.15867657959461212,
-0.19232076406478882,
0.35460227727890015,
-0.08741423487663269,
-0.3079352080821991,
0.3128025531768799,
0.0767817422747612,
0.27572596073150635,
0.7110573649406433,
-0.00012152310955571011,
0.16253207623958588,
0.190307155251503,
-0.06287141144275665,
-0.41912293434143066,
-0.3236560821533203,
-0.08901554346084595,
-0.32846561074256897,
0.11002170294523239,
-0.18702805042266846,
0.1990174502134323,
-0.2734278738498688,
0.08014380186796188,
-0.2908487319946289,
0.4990459382534027,
0.36610472202301025,
0.128785640001297,
0.35627004504203796,
0.15865248441696167,
-0.0425904281437397,
0.14841057360172272,
0.4451640248298645,
-0.07815448194742203,
-0.0663883239030838,
-0.008593549020588398,
-0.10548222064971924,
0.27788156270980835,
0.0019221153343096375,
-0.18297652900218964,
0.014080680906772614,
0.41557806730270386,
-0.07524851709604263,
0.03773361071944237,
-0.318442702293396,
0.059880901128053665,
0.20001664757728577,
0.7275675535202026,
-0.41219571232795715,
-0.7552506327629089,
-0.12534230947494507,
-0.191792294383049,
-0.16388404369354248,
0.284566193819046,
-0.08261816203594208,
0.0983770564198494,
0.28586694598197937,
0.004053478594869375,
-0.34402990341186523,
-0.16610346734523773,
0.3062966465950012,
-0.07754959911108017,
0.11183476448059082,
0.008307291194796562,
0.024855734780430794,
0.2521098554134369,
-0.18961575627326965,
0.3435192406177521,
-0.3411347568035126,
0.09488080441951752,
0.3831880986690521,
-0.32095757126808167,
-0.060626354068517685,
0.08679302036762238,
0.10253274440765381,
-0.06632764637470245,
0.09967102110385895,
-0.4005200266838074,
-0.022623136639595032,
-0.2901918590068817,
0.16021758317947388,
0.14849857985973358,
0.20439395308494568,
-0.06418278813362122,
0.3525402545928955,
0.21067766845226288,
-0.11759762465953827,
0.17626798152923584,
-0.07521957159042358,
-0.24364271759986877,
-0.20415909588336945,
0.0367048904299736,
-0.07335217297077179,
0.17528526484966278,
-0.3583667576313019,
-0.07626175135374069,
0.04999290034174919,
-0.0009142730268649757,
0.0625436082482338,
-0.01965923234820366,
0.36923062801361084,
-0.0863490179181099,
0.1779126524925232,
0.12727050483226776,
0.33687707781791687,
-0.29379773139953613,
0.11312969028949738,
-0.1551247388124466,
0.31290385127067566,
-0.22852958738803864,
0.023686183616518974,
0.2922728359699249,
-0.06844556331634521,
0.2617126703262329,
-0.12036658823490143,
0.3084438741207123,
0.24678432941436768,
0.08944597095251083,
-0.21385625004768372,
0.06180591136217117,
0.6000424027442932,
-0.20232558250427246,
0.4967266023159027,
0.30528780817985535,
-0.259016752243042,
-0.19089722633361816,
-0.05037350952625275,
-0.17294545471668243,
-0.23694951832294464,
-0.19757571816444397,
0.09008272737264633,
-0.4204050600528717,
0.059987153857946396,
-0.13694868981838226,
-0.44080850481987,
0.2870689034461975,
-0.24880734086036682,
-0.0929097905755043,
-0.274868905544281,
0.29011762142181396,
-0.17866253852844238,
0.16304254531860352,
0.7134701013565063,
-0.4537551999092102,
-0.09063317626714706,
-0.4043833315372467,
-0.08303516358137131,
-0.10283984988927841,
0.3096977174282074,
-0.13425321877002716,
0.10728885233402252,
-0.2472749948501587,
-0.14184114336967468,
0.29158952832221985,
-0.44253912568092346,
-0.37456145882606506,
-0.03541033715009689,
0.004885509610176086,
0.059154968708753586,
0.19877281785011292,
-0.03954922407865524,
0.12416990101337433,
-0.2175826132297516,
-0.17973875999450684,
0.2130536586046219,
0.030654536560177803,
-0.16234391927719116,
-0.10350538790225983,
-0.2806379795074463,
0.04647299647331238,
0.31103095412254333,
0.4101850688457489,
0.04622413218021393,
0.057921215891838074,
0.14239636063575745,
-0.07163247466087341,
-0.05588159337639809,
0.1470707803964615,
0.5463573932647705,
0.41872438788414,
0.21503058075904846,
0.1226578801870346,
-0.043519388884305954,
-0.27931439876556396,
0.3250389099121094,
0.0944104865193367,
-0.03128960728645325,
-0.3206387460231781,
0.0869084894657135,
-0.12552638351917267,
0.08224327862262726,
-0.2658860385417938,
-0.061287470161914825,
0.022920861840248108,
0.013283617794513702,
0.04295292869210243,
0.0041292025707662106,
-0.1376992017030716,
0.5887191891670227,
0.08418659120798111,
0.2985941767692566,
-0.3340807855129242,
0.49762117862701416,
-0.21974313259124756,
-0.02433287724852562,
-0.2272530347108841,
0.21323278546333313,
0.03562917187809944,
-0.095887191593647,
-0.16538938879966736,
0.22771741449832916,
0.05094142630696297,
0.04039908945560455,
-0.08943642675876617,
0.406790167093277,
0.16858765482902527,
-0.353010356426239,
0.3245934545993805,
0.21885977685451508,
0.07220090925693512,
0.012581421062350273,
-0.13605158030986786,
-0.17286743223667145,
-0.11183130741119385,
0.2684086263179779,
0.06297791749238968,
0.07533212006092072,
0.15974952280521393,
-0.01826220005750656,
-0.09262802451848984,
-0.2973417341709137,
0.2764793634414673,
0.14009132981300354,
0.5950936079025269,
0.019513456150889397,
0.2839187979698181,
-0.05880996957421303,
0.06487804651260376,
-0.046195730566978455,
0.05049455538392067,
0.029605429619550705,
-0.24496746063232422,
0.09414118528366089,
0.23930557072162628,
0.34683090448379517,
0.5564563870429993,
0.107278011739254,
-0.18749605119228363,
0.10478667914867401,
-0.17522560060024261,
0.015192818827927113,
0.023683136329054832,
0.1832287609577179,
0.14470958709716797,
0.12252508848905563,
-0.11152467131614685,
0.054196108132600784,
-0.12004087120294571,
-0.502633273601532,
0.06246627867221832,
0.3078276216983795,
-0.533496618270874,
0.2141970545053482,
-0.363201767206192,
-0.1724311113357544,
-0.1712999790906906,
-0.02008943445980549,
-0.22820129990577698,
-0.32695239782333374,
-0.17478297650814056,
0.1958208680152893,
-0.056968387216329575,
0.13768233358860016,
-0.023150840774178505,
-0.18509170413017273,
-0.16160117089748383,
-0.5011031627655029,
-0.16544486582279205,
-0.11890414357185364,
-0.061578042805194855,
-0.08522915095090866,
0.14521557092666626,
-0.01865922287106514,
0.11595510691404343,
-0.1061147078871727,
0.10914689302444458,
-0.3176581859588623,
-0.3510708510875702,
0.0525580495595932,
0.05059276148676872,
0.30230435729026794,
0.12530556321144104,
0.25755542516708374,
0.19926494359970093,
-0.2578473687171936,
0.13705265522003174,
0.06071446090936661,
-0.0799538642168045,
0.086237333714962,
0.030031941831111908,
-0.328006774187088,
-0.1532605141401291,
-0.12246061116456985,
-0.46668878197669983,
-0.4357230067253113,
-0.22885730862617493,
0.039491623640060425,
0.07015419751405716,
0.6503171324729919,
0.2038678377866745,
0.12933261692523956,
0.10877937823534012,
-0.09122104942798615,
-0.0634966790676117,
-0.014453672803938389,
0.5791631937026978,
-0.2120685875415802,
-0.26354652643203735,
0.012133537791669369,
-0.1841265708208084,
0.2727896273136139,
0.18574242293834686,
-0.2984970211982727,
-0.01780753955245018,
-0.13284093141555786,
0.1384146362543106,
0.018292151391506195,
0.3956166207790375,
0.41454073786735535,
0.17499275505542755,
0.09817885607481003,
-0.22871246933937073,
0.013999363407492638,
-0.12110231071710587,
0.17753343284130096,
0.3473450839519501,
-0.16265249252319336,
0.3198259174823761,
-0.2939310073852539,
0.8454336524009705,
0.08068025857210159,
0.01634877175092697,
0.4163772165775299,
0.1902274340391159,
0.7380409836769104,
-0.009634674526751041,
-0.4733699858188629,
-0.025553997606039047,
-0.009458886459469795,
-0.2399979680776596,
-0.0010805741185322404,
-0.005547895096242428,
-0.18450336158275604,
-0.13957874476909637,
0.17226815223693848,
-0.15254512429237366,
-0.15865781903266907,
-0.05619937554001808,
-0.07250173389911652,
0.10484004765748978,
0.1237601563334465,
0.091911181807518,
-0.23406951129436493,
-0.0683836042881012,
0.11896595358848572,
0.538979709148407,
-0.11239200085401535,
0.2590023875236511,
-0.4309726655483246,
-0.31154870986938477,
-0.10103019326925278,
0.10868695378303528,
-0.1497281938791275,
0.33636197447776794,
-0.11918249726295471,
0.14158524572849274,
-0.17876999080181122,
0.12557782232761383,
0.46879443526268005,
-0.22332105040550232,
-0.31369930505752563,
0.2532339096069336,
-0.026599382981657982,
-0.5515052676200867,
-0.27800771594047546,
0.07867280393838882,
0.14611583948135376,
-0.021288899704813957,
0.11743678152561188,
-0.36975058913230896,
-0.20674175024032593,
-0.02115439623594284,
0.4966009557247162,
-0.10667599737644196,
-0.1665022224187851,
-0.19157782196998596,
-0.26360276341438293,
-0.3931652009487152,
-0.3731766641139984,
-0.05361942946910858,
-0.017494607716798782,
0.042743075639009476,
0.2692253887653351,
-0.07280709594488144,
-0.004815687425434589,
0.3909721374511719,
0.028844540938735008,
0.3221440017223358,
-0.18401281535625458,
0.20990151166915894,
0.2420090287923813,
-0.19916296005249023,
0.31777578592300415,
0.5349607467651367,
-0.2972736954689026,
-0.3691245913505554,
0.12901993095874786,
0.04338330402970314,
0.19291263818740845,
0.11767929792404175,
-0.08909410238265991,
-0.14913682639598846,
-0.010816358029842377,
-0.0472196601331234,
0.0685800313949585,
0.049718473106622696,
0.03658957779407501,
0.18124906718730927,
-0.15435373783111572,
-0.34261974692344666,
0.452833354473114,
0.19374240934848785,
0.072144515812397,
0.3791004717350006,
0.38844212889671326,
-0.1684703379869461,
0.45400089025497437,
-0.07364192605018616,
0.8807653784751892,
-0.02570038102567196,
0.10924295336008072,
0.11452727019786835,
-0.16916845738887787,
0.5640377998352051,
-0.370522141456604,
-0.07924100756645203,
-0.3676965832710266,
-0.1644211709499359,
-0.10515895485877991,
-0.28764766454696655,
0.3911512792110443,
0.20093582570552826,
-0.18062691390514374,
0.3654470145702362,
-0.05428854748606682,
0.06444887816905975,
0.015721693634986877,
0.2018323391675949,
0.051467590034008026,
-0.42426738142967224,
-0.098304882645607,
0.1415807008743286,
-0.04290622100234032,
0.5573287606239319,
-0.12230584770441055,
0.16801562905311584,
-0.3432842195034027,
-0.13801209628582,
-0.26111388206481934,
0.13598206639289856,
-0.14278532564640045,
0.46217572689056396,
0.1932133436203003,
-0.27377843856811523,
0.26123878359794617,
0.20185954868793488,
0.5882259607315063,
0.20449846982955933,
-0.25995349884033203,
0.07726307213306427,
-0.1663914918899536,
0.016581879928708076,
0.06126686558127403,
-0.039154522120952606,
0.4917529821395874,
0.05349484458565712,
-0.2163821905851364,
0.06012580543756485,
-0.2685372531414032,
-0.13037072122097015,
0.22577588260173798,
-0.21354641020298004,
0.038044754415750504,
-0.19370536506175995,
-0.2546372711658478,
0.1674421727657318,
0.08464448899030685,
0.07278428226709366,
0.050044719129800797,
0.16309377551078796,
0.061161331832408905,
0.36795252561569214,
-0.1991783082485199,
-0.1089949756860733,
-0.20010064542293549,
0.39900240302085876,
-0.16308367252349854,
-0.053077854216098785,
0.5511955618858337,
0.04856765642762184,
-0.27520614862442017,
-0.009185129776597023,
-0.05087064206600189,
0.029410721734166145,
-0.47102048993110657,
-0.23807711899280548,
-0.18881337344646454,
-0.37086308002471924,
0.04138483107089996,
-0.28120219707489014,
0.3264870345592499,
-0.11400555074214935,
-0.1113220825791359,
-0.39065021276474,
-0.25035911798477173,
0.2954976260662079,
-0.17868955433368683,
0.19405147433280945,
-0.048776254057884216,
-0.052317339926958084,
0.16568003594875336,
-0.16565126180648804,
-0.21810945868492126,
-0.07748549431562424,
-0.25161823630332947,
-0.023950684815645218,
0.2636092007160187,
-0.08443529903888702,
0.04369020834565163,
-0.39198893308639526,
0.0042981794103980064,
-0.16590973734855652,
-0.398668110370636,
-0.061119191348552704,
-0.17351877689361572,
0.19711899757385254,
0.12147542089223862,
-0.1493666023015976,
0.22293365001678467,
-0.19897261261940002,
0.0006002746522426605,
-0.25658509135246277,
-0.0021222096402198076,
0.11977135390043259,
-0.11849202960729599,
0.11764424294233322,
0.1455775946378708,
-0.1439988911151886,
-0.3486427068710327,
0.21487867832183838,
0.11214957386255264,
0.18453456461429596,
0.07024159282445908,
0.21870335936546326,
0.03993326425552368,
-0.04396982491016388,
-0.5120843648910522,
0.09814479947090149,
-0.20633873343467712,
-0.09658131748437881,
0.38692834973335266,
-0.3597470223903656,
0.22604714334011078,
0.24106664955615997,
0.2113783359527588,
0.38131994009017944,
-0.10316688567399979,
0.15484784543514252,
0.4258764982223511,
0.08289036154747009,
-0.2561052739620209,
-0.21858574450016022,
0.15946529805660248,
0.07057324796915054,
0.058114390820264816,
0.3408961892127991,
0.1401667296886444,
-0.11982693523168564,
0.7606738805770874,
0.23118819296360016,
0.6941431760787964,
-0.11009526997804642,
0.26432889699935913,
0.3837808668613434,
-0.08340854197740555,
0.1918821483850479,
0.2336907833814621,
0.08495477586984634,
0.22389544546604156,
0.3608666956424713,
-0.276306688785553,
0.14869752526283264,
-0.020311901345849037,
0.14991909265518188,
0.04510318860411644,
-0.536881148815155,
0.011982505209743977,
-0.2342725247144699,
0.22289834916591644,
-0.05013759061694145,
-0.03949202969670296,
0.04000223055481911,
-0.38634780049324036,
0.024756332859396935,
-0.06328095495700836,
0.2031024694442749,
-0.03348089009523392,
0.12039334326982498,
0.4617055654525757,
0.013435936532914639,
-0.06660494953393936,
-0.1801103800535202,
0.020031021907925606,
-0.41029930114746094,
0.12398657947778702,
0.06871728599071503,
-0.1802631914615631,
-0.24269646406173706,
0.24134528636932373,
0.1321542114019394,
-0.06559956073760986,
-0.2045086920261383,
0.1677083969116211,
0.1210533082485199,
-0.1471862643957138,
-0.1756991297006607,
0.4764431416988373,
0.44725725054740906,
0.36503803730010986,
0.03475229814648628,
0.06564785540103912,
0.04293200746178627,
-0.058305010199546814,
0.15676714479923248,
0.006588461808860302,
-0.3767542243003845,
0.2104245275259018,
0.2244568020105362,
0.09036637842655182,
-0.09394513815641403,
-0.3274741470813751,
-0.14020444452762604,
-0.06106465682387352,
-0.29752597212791443,
0.31514105200767517,
0.007452534046024084,
-0.14360643923282623,
-0.005471715237945318,
-0.02022542990744114,
-0.49032294750213623,
0.042495857924222946,
0.475594162940979,
0.02372262440621853,
-0.02827710658311844,
-0.03990752622485161,
-0.0054831975139677525,
0.01093032956123352,
0.3377833962440491,
0.5781380534172058,
0.2742249667644501,
-0.40899431705474854,
0.09746497124433517,
-0.8250720500946045,
-0.021097244694828987,
-0.24240107834339142,
-0.13009347021579742,
0.1927948296070099,
0.06579802185297012,
0.0001381165347993374,
0.08860719949007034,
0.2619173228740692,
0.1530328243970871,
-0.06720804423093796,
-0.0717523992061615,
-0.3299862742424011,
-0.2705998718738556,
0.010885454714298248,
-0.02210739441215992,
-0.06709122657775879,
-0.3362777531147003,
0.014973978511989117,
0.1458161473274231,
-0.036993008106946945,
-0.12940587103366852,
-0.08583469688892365,
0.20775958895683289,
-0.15710176527500153,
0.42084628343582153,
-0.1390826553106308,
0.31309399008750916,
0.18302899599075317,
-0.1593533754348755,
-0.24206432700157166,
-0.2784923017024994,
-0.09133880585432053,
-0.0075333863496780396,
0.03567164018750191,
0.5254505276679993,
-0.42021694779396057,
-0.35115042328834534,
-0.38881897926330566,
0.06769217550754547,
0.20718985795974731,
-0.02184516005218029,
-0.11916950345039368,
0.3861372172832489,
-0.22010742127895355,
0.31553906202316284,
0.22223159670829773,
0.05276767164468765,
-0.02928069978952408,
0.37028077244758606,
-0.24898386001586914,
-0.3444296717643738,
0.44520553946495056,
-0.1271154135465622,
-0.11873793601989746,
-0.12911950051784515,
0.26476261019706726,
-0.04215141013264656,
-0.2734031081199646,
-0.41157713532447815,
0.010953854769468307,
0.14725150167942047,
-0.08650555461645126,
-0.32074224948883057,
0.03934270143508911,
0.1452871859073639,
0.09057912230491638,
-0.059190377593040466,
0.4109853208065033,
-0.12664033472537994,
-0.008443589322268963,
0.16318891942501068,
0.11226338148117065
] |
https://github.com/huggingface/datasets/issues/864 | Unable to download cnn_dailymail dataset | Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2 | ### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions. | 18 | Unable to download cnn_dailymail dataset
### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions.
Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2 | [
-0.30534854531288147,
0.234373539686203,
-0.07922708243131638,
0.17068012058734894,
0.360565721988678,
0.17380857467651367,
0.5607905983924866,
0.24365611374378204,
-0.17192447185516357,
0.07515959441661835,
-0.11793938279151917,
0.07677548378705978,
-0.28970828652381897,
-0.03775293752551079,
-0.01305684819817543,
-0.02915974147617817,
-0.21272581815719604,
0.10676264762878418,
-0.1973429173231125,
0.029163789004087448,
-0.10671418160200119,
0.09612725675106049,
-0.15220068395137787,
-0.06974973529577255,
-0.29296448826789856,
-0.13203641772270203,
0.036387015134096146,
0.17929904162883759,
-0.3712782561779022,
-0.3521043360233307,
0.3593551516532898,
-0.082521453499794,
0.18734876811504364,
0.43545272946357727,
-0.000111295776150655,
0.29957911372184753,
0.3638944625854492,
-0.05004101246595383,
-0.46190330386161804,
-0.47363758087158203,
-0.17969968914985657,
-0.1351315826177597,
0.04177436605095863,
-0.29667913913726807,
-0.0017573041841387749,
0.012268537655472755,
-0.035519298166036606,
0.14817531406879425,
0.35080453753471375,
0.6557961106300354,
0.27080947160720825,
0.40348806977272034,
0.3544585406780243,
-0.1669904738664627,
-0.22140860557556152,
0.1594429761171341,
-0.07421938329935074,
0.5186957120895386,
-0.4013257920742035,
0.103276826441288,
0.20565718412399292,
0.1207839623093605,
-0.1278405636548996,
0.17287343740463257,
0.05075478181242943,
0.018949851393699646,
0.13691192865371704,
-0.45643800497055054,
0.12486835569143295,
0.25986361503601074,
0.4185575842857361,
-0.2014636993408203,
-0.243145152926445,
0.11963769793510437,
0.1434071660041809,
-0.26624396443367004,
0.14729197323322296,
0.30987808108329773,
-0.16431352496147156,
0.05820055678486824,
-0.27769753336906433,
0.011133229359984398,
-0.291574090719223,
0.414060115814209,
-0.23036736249923706,
0.18169954419136047,
0.040302637964487076,
0.07407012581825256,
0.22286446392536163,
-0.15204167366027832,
0.40154141187667847,
-0.2636483609676361,
0.24718134105205536,
0.0726078450679779,
-0.05233702436089516,
-0.1367853879928589,
0.054563187062740326,
-0.24839793145656586,
0.013719604350626469,
0.013428478501737118,
-0.1899162232875824,
-0.24806687235832214,
0.0034490986727178097,
0.07252169400453568,
-0.0031760570127516985,
0.08489503711462021,
-0.2378150075674057,
0.6527372598648071,
0.13739922642707825,
0.4710148274898529,
-0.11476825922727585,
0.04230155050754547,
-0.2318076193332672,
-0.13142117857933044,
0.13424941897392273,
0.17735445499420166,
0.561800479888916,
-0.1913488209247589,
-0.41419464349746704,
0.25266793370246887,
-0.5342707633972168,
0.0010654681827872992,
0.19670690596103668,
0.3225839138031006,
-0.169694721698761,
0.035495005548000336,
0.000475834560347721,
0.10847683995962143,
0.028169043362140656,
0.08047962188720703,
-0.2693049907684326,
0.2859301269054413,
-0.11966118216514587,
-0.09742289036512375,
0.371902734041214,
-0.3562030792236328,
0.1796879917383194,
-0.0228084996342659,
0.10484883934259415,
-0.1313500851392746,
0.1455952674150467,
-0.27083396911621094,
-0.14643806219100952,
0.4110407531261444,
-0.10564344376325607,
0.13181903958320618,
0.085426926612854,
0.04590104892849922,
-0.17117704451084137,
0.1168934777379036,
-0.023616574704647064,
-0.3991504907608032,
0.07574085146188736,
0.240470290184021,
-0.07827333360910416,
-0.3346491754055023,
0.19673384726047516,
-0.21130529046058655,
-0.04418947175145149,
0.009028601460158825,
-0.13164351880550385,
-0.2747359871864319,
-0.04888712614774704,
-0.19608043134212494,
0.35706374049186707,
0.6024295091629028,
-0.43875351548194885,
0.03000388853251934,
-0.17706860601902008,
-0.22162124514579773,
0.1865835338830948,
0.285984069108963,
-0.3314291834831238,
0.28657323122024536,
-0.08010349422693253,
-0.20042775571346283,
0.44117480516433716,
-0.40873220562934875,
-0.5403162240982056,
0.2019556611776352,
-0.04574494808912277,
0.07474067062139511,
-0.05776660889387131,
0.053031593561172485,
0.08413724601268768,
0.07740730792284012,
0.0953817367553711,
0.491538405418396,
-0.1939900517463684,
-0.027716215699911118,
-0.1510462909936905,
-0.3296215236186981,
0.18938542902469635,
0.3296569287776947,
0.43076786398887634,
0.14757996797561646,
-0.008208067156374454,
0.10209298878908157,
0.1281471699476242,
0.07092505693435669,
-0.05174058675765991,
0.16132058203220367,
0.32195258140563965,
-0.03533802554011345,
-0.19704098999500275,
-0.07640163600444794,
-0.3915078341960907,
0.10541924089193344,
0.11944003403186798,
0.19854716956615448,
-0.09418082237243652,
-0.057752612978219986,
-0.4808586835861206,
-0.11438445746898651,
-0.22680136561393738,
0.040828920900821686,
0.21293526887893677,
0.20927385985851288,
0.12773571908473969,
0.04378785938024521,
-0.2601551413536072,
0.3888756036758423,
-0.050296612083911896,
0.20673903822898865,
-0.15094317495822906,
0.4017491638660431,
-0.29262205958366394,
-0.058600809425115585,
0.06588730216026306,
0.04778147116303444,
0.25279515981674194,
-0.12541355192661285,
-0.10623867064714432,
0.113292396068573,
0.010623163543641567,
-0.12691032886505127,
-0.06425607204437256,
-0.07396647334098816,
0.0886368677020073,
-0.16034208238124847,
0.03212631866335869,
0.3180971145629883,
0.07946719974279404,
0.03627584129571915,
-0.012977384962141514,
0.28848281502723694,
0.16335980594158173,
-0.04264943301677704,
0.11512969434261322,
0.149704247713089,
0.23335568606853485,
-0.20540432631969452,
0.0016974372556433082,
-0.07416942715644836,
0.2501130998134613,
-0.029403837397694588,
0.3837205171585083,
-0.1167595386505127,
-0.32276368141174316,
-0.29469096660614014,
0.20184949040412903,
-0.22361122071743011,
-0.01948522962629795,
0.06010127440094948,
-0.19776815176010132,
0.10458628833293915,
-0.21332746744155884,
0.32377222180366516,
0.44410550594329834,
0.0796770304441452,
0.028869086876511574,
0.10611823201179504,
-0.2178814560174942,
-0.10609883815050125,
0.15954673290252686,
0.2282204031944275,
0.15281927585601807,
0.19166682660579681,
-0.042862698435783386,
0.23197288811206818,
-0.2976655066013336,
-0.4345211088657379,
0.250997930765152,
0.48847275972366333,
-0.31152915954589844,
-0.02912573516368866,
-0.30287185311317444,
-0.1064915582537651,
-0.16221526265144348,
-0.4730813801288605,
-0.0811019316315651,
-0.2360573559999466,
-0.13590160012245178,
0.26146677136421204,
0.06388484686613083,
0.0723203718662262,
-0.3064320683479309,
-0.10445438325405121,
0.1325637549161911,
-0.3229348957538605,
-0.08566795289516449,
0.05517666041851044,
-0.039636556059122086,
0.14762358367443085,
0.399528443813324,
-0.09697815030813217,
0.34223708510398865,
-0.015431498177349567,
-0.1305360198020935,
-0.2630583941936493,
-0.19279825687408447,
-0.0004330585361458361,
0.022168463096022606,
0.24208854138851166,
0.16728980839252472,
0.4309624433517456,
0.022665850818157196,
-0.19360554218292236,
0.1404917985200882,
0.05844508484005928,
-0.026869015768170357,
0.2278822362422943,
-0.25747260451316833,
-0.10570406913757324,
-0.010171007364988327,
-0.48601213097572327,
-0.5390892028808594,
-0.32692113518714905,
-0.15994153916835785,
-0.04828991740942001,
0.19598925113677979,
0.42370811104774475,
0.11605218797922134,
0.13853566348552704,
-0.15663860738277435,
0.050007373094558716,
-0.12225734442472458,
-0.1248524859547615,
0.48966604471206665,
-0.374142587184906,
-0.38175296783447266,
0.10499537736177444,
-0.17454279959201813,
0.2857015132904053,
-0.08931176364421844,
-0.47788166999816895,
-0.20606079697608948,
-0.1840454488992691,
-0.07793854922056198,
-0.12949198484420776,
-0.22382178902626038,
0.12385910749435425,
-0.053183723241090775,
-0.0448056198656559,
0.12145749479532242,
-0.11701001971960068,
-0.021503515541553497,
0.15819339454174042,
0.07765445858240128,
-0.18861843645572662,
0.5733036398887634,
0.026938309893012047,
0.6518710255622864,
0.2029564082622528,
-0.26086705923080444,
0.3176008462905884,
-0.07881426066160202,
0.2220965027809143,
-0.040656719356775284,
-0.4731609523296356,
-0.046052444726228714,
0.21349909901618958,
0.03480672836303711,
-0.059652239084243774,
-0.22566360235214233,
-0.3095945715904236,
-0.2722097337245941,
-0.13013620674610138,
-0.30815136432647705,
-0.25451797246932983,
0.0712791234254837,
0.10314036905765533,
0.20536507666110992,
0.09950432926416397,
0.19141580164432526,
0.059102870523929596,
-0.16810229420661926,
-0.015037443488836288,
0.43139931559562683,
0.07715826481580734,
0.06338657438755035,
0.12956194579601288,
-0.059278979897499084,
-0.3305478096008301,
0.09203926473855972,
-0.09288486838340759,
0.30714330077171326,
-0.06199672818183899,
0.18668541312217712,
-0.00891150999814272,
-0.07653750479221344,
0.23132948577404022,
0.06874343752861023,
0.17000171542167664,
0.2777774930000305,
-0.12189091742038727,
-0.3610597848892212,
-0.236199751496315,
-0.35344767570495605,
0.03378725051879883,
0.21017692983150482,
0.18393319845199585,
-0.31568166613578796,
-0.06619325280189514,
0.6153857111930847,
0.14038687944412231,
-0.05568629875779152,
-0.395010381937027,
-0.20806322991847992,
-0.3233414590358734,
-0.4916277825832367,
0.09963875263929367,
-0.1292095184326172,
0.24462704360485077,
0.0665893629193306,
-0.187472864985466,
-0.03484693169593811,
0.021792897954583168,
0.18876415491104126,
0.00046050266246311367,
0.12297095358371735,
0.08193040639162064,
0.39358243346214294,
0.13864737749099731,
-0.09974195063114166,
0.4361156225204468,
0.4650556147098541,
0.04798556864261627,
-0.4144473671913147,
-0.08821976184844971,
0.1417160928249359,
-0.1368326097726822,
0.16665887832641602,
-0.21819449961185455,
-0.2737380862236023,
0.25231775641441345,
0.24603165686130524,
0.1622438281774521,
0.1378745585680008,
0.4610219895839691,
-0.24305588006973267,
-0.5729039311408997,
-0.3615535795688629,
0.18962547183036804,
-0.17972692847251892,
0.14135830104351044,
0.1366218626499176,
-0.24973660707473755,
0.017225507646799088,
0.010419368743896484,
-0.052560754120349884,
0.7789851427078247,
0.15485364198684692,
0.044110361486673355,
0.46803489327430725,
-0.0037567627150565386,
0.3014909327030182,
-0.0559011809527874,
0.08382996916770935,
-0.307282418012619,
-0.2321266233921051,
-0.12283001840114594,
-0.22825473546981812,
0.15366020798683167,
0.26825952529907227,
-0.21459177136421204,
0.3666177988052368,
-0.05684412270784378,
0.14512890577316284,
0.0025312358047813177,
0.34216123819351196,
-0.058432437479496,
0.06554586440324783,
-0.0626576766371727,
0.20406217873096466,
-0.14442935585975647,
0.40972280502319336,
-0.13568474352359772,
-0.14900502562522888,
-0.07689996063709259,
-0.25968989729881287,
-0.2632802426815033,
0.15819409489631653,
-0.38941845297813416,
0.3009175956249237,
0.09400682896375656,
-0.05416303500533104,
-0.07758733630180359,
-0.0720013752579689,
0.037950269877910614,
0.03878293186426163,
-0.17527826130390167,
0.0844963863492012,
-0.12885834276676178,
-0.23654654622077942,
-0.05951721966266632,
-0.10941403359174728,
0.4144059419631958,
-0.2647610008716583,
-0.2428981065750122,
0.09646980464458466,
0.04928155988454819,
-0.21072252094745636,
0.10666301101446152,
0.011268452741205692,
0.2041611522436142,
-0.3407524526119232,
-0.2518101930618286,
-0.03278068080544472,
-0.17753928899765015,
-0.12553058564662933,
0.1862042248249054,
0.03604469448328018,
-0.03649822250008583,
0.2830502986907959,
-0.06208178028464317,
-0.19475996494293213,
-0.15069802105426788,
0.3512091338634491,
-0.106758713722229,
-0.12338699400424957,
0.43479129672050476,
0.07205457240343094,
-0.3199332654476166,
-0.2920496165752411,
0.07938256114721298,
-0.04652667045593262,
-0.4147840738296509,
0.08965185284614563,
0.04864191636443138,
0.3403031527996063,
0.06553778797388077,
0.10395893454551697,
0.19103452563285828,
0.04465148597955704,
-0.026322556659579277,
-0.5710042715072632,
-0.22138124704360962,
-0.03546184301376343,
0.03544137626886368,
0.22890055179595947,
-0.09497218579053879,
0.3262067139148712,
0.20343954861164093,
-0.06553912907838821,
-0.3433676064014435,
0.13649395108222961,
-0.09542123973369598,
-0.04529334977269173,
0.13594485819339752,
-0.14903777837753296,
0.44306036829948425,
0.10090398788452148,
0.19788864254951477,
0.02786405198276043,
-0.11768372356891632,
-0.2749330699443817,
-0.12826836109161377,
0.11908867210149765,
0.16798509657382965,
-0.12618330121040344,
0.04200264438986778,
-0.19966140389442444,
-0.3425237536430359,
0.16670820116996765,
0.023325392976403236,
0.17778915166854858,
-0.018748613074421883,
0.04774327203631401,
0.15270572900772095,
0.057697124779224396,
-0.1524340808391571,
0.01975097507238388,
-0.09334114193916321,
0.34244436025619507,
0.22018791735172272,
0.2526730000972748,
0.10924828052520752,
-0.02830423228442669,
-0.43533653020858765,
-0.08897776901721954,
0.021520810201764107,
-0.10898949950933456,
0.3970862925052643,
-0.22670690715312958,
-0.08440792560577393,
0.11683908849954605,
0.22189824283123016,
0.3427521288394928,
-0.24455060064792633,
0.04737762734293938,
0.3164500296115875,
0.250219464302063,
-0.29429274797439575,
-0.07446439564228058,
0.16612371802330017,
0.11073063313961029,
0.11224228888750076,
0.07781367003917694,
-0.2546725869178772,
0.07170911133289337,
0.023752009496092796,
0.13734211027622223,
0.39213666319847107,
-0.04000334441661835,
0.12505540251731873,
0.3877008259296417,
-0.13047677278518677,
-0.006714898161590099,
0.19588422775268555,
-0.012120547704398632,
0.07087177783250809,
0.43155747652053833,
-0.2908123731613159,
-0.011964835226535797,
-0.1729232668876648,
-0.07347848266363144,
0.2268633097410202,
-0.2598980665206909,
-0.003940980415791273,
0.2269204556941986,
-0.11886067688465118,
0.08530642837285995,
-0.01976958103477955,
0.10144544392824173,
-0.020962640643119812,
0.12613849341869354,
-0.4866469204425812,
0.39160656929016113,
-0.09983617812395096,
0.30231302976608276,
-0.23091000318527222,
-0.13298200070858002,
-0.22922198474407196,
0.14528228342533112,
0.10430418699979782,
-0.16917625069618225,
0.22735311090946198,
0.39980384707450867,
-0.2776849865913391,
-0.15504100918769836,
0.0752837136387825,
0.3108184039592743,
-0.08133295923471451,
-0.27611520886421204,
0.18228566646575928,
0.3667353093624115,
-0.03441416844725609,
-0.0020697934087365866,
0.4475150406360626,
0.3937961161136627,
0.28242358565330505,
0.04741472005844116,
0.2371770143508911,
0.10837434977293015,
-0.1588352918624878,
0.09912879019975662,
0.11139831691980362,
0.22683201730251312,
0.34777507185935974,
0.3200224041938782,
0.22533252835273743,
-0.25154179334640503,
0.0480181947350502,
-0.09312416613101959,
-0.08263933658599854,
-0.23183348774909973,
0.5614548325538635,
0.04967542365193367,
0.03975941985845566,
-0.2407839447259903,
-0.053669992834329605,
-0.4856571853160858,
-0.034808117896318436,
0.3326089382171631,
0.1133718490600586,
0.09824051707983017,
-0.10428469628095627,
0.0643889531493187,
-0.09752972424030304,
0.31203630566596985,
0.3321332335472107,
0.2571238577365875,
-0.6201798319816589,
0.004288333002477884,
-0.6339928507804871,
0.17016392946243286,
-0.19856645166873932,
0.07438495755195618,
-0.01663638837635517,
0.041202910244464874,
-0.2311745285987854,
0.3115764260292053,
0.21938012540340424,
0.03954481706023216,
0.011645246297121048,
0.2519505023956299,
-0.19945183396339417,
-0.029427502304315567,
0.16616107523441315,
-0.1432821899652481,
0.08303260058164597,
-0.4240466356277466,
0.09940467774868011,
-0.4774450957775116,
0.017368337139487267,
-0.04437790811061859,
-0.30667755007743835,
-0.035329971462488174,
0.25298044085502625,
0.41547107696533203,
0.05414937436580658,
0.7115376591682434,
-0.08033871650695801,
-0.21797940135002136,
-0.2073085904121399,
-0.01567118987441063,
-0.23900403082370758,
0.15519265830516815,
0.14667785167694092,
0.37374168634414673,
-0.024113135412335396,
-0.1898600161075592,
-0.4175250828266144,
0.3508703112602234,
-0.1077161654829979,
-0.1765213906764984,
-0.21676722168922424,
-0.0179202351719141,
-0.1924644261598587,
0.24245110154151917,
0.050991762429475784,
0.08500146120786667,
-0.07306994497776031,
0.17927835881710052,
-0.3576472997665405,
-0.4977721571922302,
0.60898756980896,
-0.23517611622810364,
-0.2108122557401657,
-0.21934548020362854,
0.12395565211772919,
-0.11723710596561432,
0.11336246877908707,
-0.49773094058036804,
0.3211052119731903,
0.3238478899002075,
-0.012920744717121124,
-0.10956727713346481,
0.20090219378471375,
0.2233957201242447,
0.20485417544841766,
0.06408768892288208,
0.3913775384426117,
0.15037250518798828,
-0.39116382598876953,
-0.05759202688932419,
-0.20363333821296692
] |
https://github.com/huggingface/datasets/issues/864 | Unable to download cnn_dailymail dataset | I couldn't reproduce unfortunately. I tried
```python
from datasets import load_dataset
load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload")
```
and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9)
Maybe there was an issue with the google drive download link of the dataset ?
Are you still having the issue ? If so could your give me more info about your python and requests version ? | ### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions. | 66 | Unable to download cnn_dailymail dataset
### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions.
I couldn't reproduce unfortunately. I tried
```python
from datasets import load_dataset
load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload")
```
and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9)
Maybe there was an issue with the google drive download link of the dataset ?
Are you still having the issue ? If so could your give me more info about your python and requests version ? | [
-0.30534854531288147,
0.234373539686203,
-0.07922708243131638,
0.17068012058734894,
0.360565721988678,
0.17380857467651367,
0.5607905983924866,
0.24365611374378204,
-0.17192447185516357,
0.07515959441661835,
-0.11793938279151917,
0.07677548378705978,
-0.28970828652381897,
-0.03775293752551079,
-0.01305684819817543,
-0.02915974147617817,
-0.21272581815719604,
0.10676264762878418,
-0.1973429173231125,
0.029163789004087448,
-0.10671418160200119,
0.09612725675106049,
-0.15220068395137787,
-0.06974973529577255,
-0.29296448826789856,
-0.13203641772270203,
0.036387015134096146,
0.17929904162883759,
-0.3712782561779022,
-0.3521043360233307,
0.3593551516532898,
-0.082521453499794,
0.18734876811504364,
0.43545272946357727,
-0.000111295776150655,
0.29957911372184753,
0.3638944625854492,
-0.05004101246595383,
-0.46190330386161804,
-0.47363758087158203,
-0.17969968914985657,
-0.1351315826177597,
0.04177436605095863,
-0.29667913913726807,
-0.0017573041841387749,
0.012268537655472755,
-0.035519298166036606,
0.14817531406879425,
0.35080453753471375,
0.6557961106300354,
0.27080947160720825,
0.40348806977272034,
0.3544585406780243,
-0.1669904738664627,
-0.22140860557556152,
0.1594429761171341,
-0.07421938329935074,
0.5186957120895386,
-0.4013257920742035,
0.103276826441288,
0.20565718412399292,
0.1207839623093605,
-0.1278405636548996,
0.17287343740463257,
0.05075478181242943,
0.018949851393699646,
0.13691192865371704,
-0.45643800497055054,
0.12486835569143295,
0.25986361503601074,
0.4185575842857361,
-0.2014636993408203,
-0.243145152926445,
0.11963769793510437,
0.1434071660041809,
-0.26624396443367004,
0.14729197323322296,
0.30987808108329773,
-0.16431352496147156,
0.05820055678486824,
-0.27769753336906433,
0.011133229359984398,
-0.291574090719223,
0.414060115814209,
-0.23036736249923706,
0.18169954419136047,
0.040302637964487076,
0.07407012581825256,
0.22286446392536163,
-0.15204167366027832,
0.40154141187667847,
-0.2636483609676361,
0.24718134105205536,
0.0726078450679779,
-0.05233702436089516,
-0.1367853879928589,
0.054563187062740326,
-0.24839793145656586,
0.013719604350626469,
0.013428478501737118,
-0.1899162232875824,
-0.24806687235832214,
0.0034490986727178097,
0.07252169400453568,
-0.0031760570127516985,
0.08489503711462021,
-0.2378150075674057,
0.6527372598648071,
0.13739922642707825,
0.4710148274898529,
-0.11476825922727585,
0.04230155050754547,
-0.2318076193332672,
-0.13142117857933044,
0.13424941897392273,
0.17735445499420166,
0.561800479888916,
-0.1913488209247589,
-0.41419464349746704,
0.25266793370246887,
-0.5342707633972168,
0.0010654681827872992,
0.19670690596103668,
0.3225839138031006,
-0.169694721698761,
0.035495005548000336,
0.000475834560347721,
0.10847683995962143,
0.028169043362140656,
0.08047962188720703,
-0.2693049907684326,
0.2859301269054413,
-0.11966118216514587,
-0.09742289036512375,
0.371902734041214,
-0.3562030792236328,
0.1796879917383194,
-0.0228084996342659,
0.10484883934259415,
-0.1313500851392746,
0.1455952674150467,
-0.27083396911621094,
-0.14643806219100952,
0.4110407531261444,
-0.10564344376325607,
0.13181903958320618,
0.085426926612854,
0.04590104892849922,
-0.17117704451084137,
0.1168934777379036,
-0.023616574704647064,
-0.3991504907608032,
0.07574085146188736,
0.240470290184021,
-0.07827333360910416,
-0.3346491754055023,
0.19673384726047516,
-0.21130529046058655,
-0.04418947175145149,
0.009028601460158825,
-0.13164351880550385,
-0.2747359871864319,
-0.04888712614774704,
-0.19608043134212494,
0.35706374049186707,
0.6024295091629028,
-0.43875351548194885,
0.03000388853251934,
-0.17706860601902008,
-0.22162124514579773,
0.1865835338830948,
0.285984069108963,
-0.3314291834831238,
0.28657323122024536,
-0.08010349422693253,
-0.20042775571346283,
0.44117480516433716,
-0.40873220562934875,
-0.5403162240982056,
0.2019556611776352,
-0.04574494808912277,
0.07474067062139511,
-0.05776660889387131,
0.053031593561172485,
0.08413724601268768,
0.07740730792284012,
0.0953817367553711,
0.491538405418396,
-0.1939900517463684,
-0.027716215699911118,
-0.1510462909936905,
-0.3296215236186981,
0.18938542902469635,
0.3296569287776947,
0.43076786398887634,
0.14757996797561646,
-0.008208067156374454,
0.10209298878908157,
0.1281471699476242,
0.07092505693435669,
-0.05174058675765991,
0.16132058203220367,
0.32195258140563965,
-0.03533802554011345,
-0.19704098999500275,
-0.07640163600444794,
-0.3915078341960907,
0.10541924089193344,
0.11944003403186798,
0.19854716956615448,
-0.09418082237243652,
-0.057752612978219986,
-0.4808586835861206,
-0.11438445746898651,
-0.22680136561393738,
0.040828920900821686,
0.21293526887893677,
0.20927385985851288,
0.12773571908473969,
0.04378785938024521,
-0.2601551413536072,
0.3888756036758423,
-0.050296612083911896,
0.20673903822898865,
-0.15094317495822906,
0.4017491638660431,
-0.29262205958366394,
-0.058600809425115585,
0.06588730216026306,
0.04778147116303444,
0.25279515981674194,
-0.12541355192661285,
-0.10623867064714432,
0.113292396068573,
0.010623163543641567,
-0.12691032886505127,
-0.06425607204437256,
-0.07396647334098816,
0.0886368677020073,
-0.16034208238124847,
0.03212631866335869,
0.3180971145629883,
0.07946719974279404,
0.03627584129571915,
-0.012977384962141514,
0.28848281502723694,
0.16335980594158173,
-0.04264943301677704,
0.11512969434261322,
0.149704247713089,
0.23335568606853485,
-0.20540432631969452,
0.0016974372556433082,
-0.07416942715644836,
0.2501130998134613,
-0.029403837397694588,
0.3837205171585083,
-0.1167595386505127,
-0.32276368141174316,
-0.29469096660614014,
0.20184949040412903,
-0.22361122071743011,
-0.01948522962629795,
0.06010127440094948,
-0.19776815176010132,
0.10458628833293915,
-0.21332746744155884,
0.32377222180366516,
0.44410550594329834,
0.0796770304441452,
0.028869086876511574,
0.10611823201179504,
-0.2178814560174942,
-0.10609883815050125,
0.15954673290252686,
0.2282204031944275,
0.15281927585601807,
0.19166682660579681,
-0.042862698435783386,
0.23197288811206818,
-0.2976655066013336,
-0.4345211088657379,
0.250997930765152,
0.48847275972366333,
-0.31152915954589844,
-0.02912573516368866,
-0.30287185311317444,
-0.1064915582537651,
-0.16221526265144348,
-0.4730813801288605,
-0.0811019316315651,
-0.2360573559999466,
-0.13590160012245178,
0.26146677136421204,
0.06388484686613083,
0.0723203718662262,
-0.3064320683479309,
-0.10445438325405121,
0.1325637549161911,
-0.3229348957538605,
-0.08566795289516449,
0.05517666041851044,
-0.039636556059122086,
0.14762358367443085,
0.399528443813324,
-0.09697815030813217,
0.34223708510398865,
-0.015431498177349567,
-0.1305360198020935,
-0.2630583941936493,
-0.19279825687408447,
-0.0004330585361458361,
0.022168463096022606,
0.24208854138851166,
0.16728980839252472,
0.4309624433517456,
0.022665850818157196,
-0.19360554218292236,
0.1404917985200882,
0.05844508484005928,
-0.026869015768170357,
0.2278822362422943,
-0.25747260451316833,
-0.10570406913757324,
-0.010171007364988327,
-0.48601213097572327,
-0.5390892028808594,
-0.32692113518714905,
-0.15994153916835785,
-0.04828991740942001,
0.19598925113677979,
0.42370811104774475,
0.11605218797922134,
0.13853566348552704,
-0.15663860738277435,
0.050007373094558716,
-0.12225734442472458,
-0.1248524859547615,
0.48966604471206665,
-0.374142587184906,
-0.38175296783447266,
0.10499537736177444,
-0.17454279959201813,
0.2857015132904053,
-0.08931176364421844,
-0.47788166999816895,
-0.20606079697608948,
-0.1840454488992691,
-0.07793854922056198,
-0.12949198484420776,
-0.22382178902626038,
0.12385910749435425,
-0.053183723241090775,
-0.0448056198656559,
0.12145749479532242,
-0.11701001971960068,
-0.021503515541553497,
0.15819339454174042,
0.07765445858240128,
-0.18861843645572662,
0.5733036398887634,
0.026938309893012047,
0.6518710255622864,
0.2029564082622528,
-0.26086705923080444,
0.3176008462905884,
-0.07881426066160202,
0.2220965027809143,
-0.040656719356775284,
-0.4731609523296356,
-0.046052444726228714,
0.21349909901618958,
0.03480672836303711,
-0.059652239084243774,
-0.22566360235214233,
-0.3095945715904236,
-0.2722097337245941,
-0.13013620674610138,
-0.30815136432647705,
-0.25451797246932983,
0.0712791234254837,
0.10314036905765533,
0.20536507666110992,
0.09950432926416397,
0.19141580164432526,
0.059102870523929596,
-0.16810229420661926,
-0.015037443488836288,
0.43139931559562683,
0.07715826481580734,
0.06338657438755035,
0.12956194579601288,
-0.059278979897499084,
-0.3305478096008301,
0.09203926473855972,
-0.09288486838340759,
0.30714330077171326,
-0.06199672818183899,
0.18668541312217712,
-0.00891150999814272,
-0.07653750479221344,
0.23132948577404022,
0.06874343752861023,
0.17000171542167664,
0.2777774930000305,
-0.12189091742038727,
-0.3610597848892212,
-0.236199751496315,
-0.35344767570495605,
0.03378725051879883,
0.21017692983150482,
0.18393319845199585,
-0.31568166613578796,
-0.06619325280189514,
0.6153857111930847,
0.14038687944412231,
-0.05568629875779152,
-0.395010381937027,
-0.20806322991847992,
-0.3233414590358734,
-0.4916277825832367,
0.09963875263929367,
-0.1292095184326172,
0.24462704360485077,
0.0665893629193306,
-0.187472864985466,
-0.03484693169593811,
0.021792897954583168,
0.18876415491104126,
0.00046050266246311367,
0.12297095358371735,
0.08193040639162064,
0.39358243346214294,
0.13864737749099731,
-0.09974195063114166,
0.4361156225204468,
0.4650556147098541,
0.04798556864261627,
-0.4144473671913147,
-0.08821976184844971,
0.1417160928249359,
-0.1368326097726822,
0.16665887832641602,
-0.21819449961185455,
-0.2737380862236023,
0.25231775641441345,
0.24603165686130524,
0.1622438281774521,
0.1378745585680008,
0.4610219895839691,
-0.24305588006973267,
-0.5729039311408997,
-0.3615535795688629,
0.18962547183036804,
-0.17972692847251892,
0.14135830104351044,
0.1366218626499176,
-0.24973660707473755,
0.017225507646799088,
0.010419368743896484,
-0.052560754120349884,
0.7789851427078247,
0.15485364198684692,
0.044110361486673355,
0.46803489327430725,
-0.0037567627150565386,
0.3014909327030182,
-0.0559011809527874,
0.08382996916770935,
-0.307282418012619,
-0.2321266233921051,
-0.12283001840114594,
-0.22825473546981812,
0.15366020798683167,
0.26825952529907227,
-0.21459177136421204,
0.3666177988052368,
-0.05684412270784378,
0.14512890577316284,
0.0025312358047813177,
0.34216123819351196,
-0.058432437479496,
0.06554586440324783,
-0.0626576766371727,
0.20406217873096466,
-0.14442935585975647,
0.40972280502319336,
-0.13568474352359772,
-0.14900502562522888,
-0.07689996063709259,
-0.25968989729881287,
-0.2632802426815033,
0.15819409489631653,
-0.38941845297813416,
0.3009175956249237,
0.09400682896375656,
-0.05416303500533104,
-0.07758733630180359,
-0.0720013752579689,
0.037950269877910614,
0.03878293186426163,
-0.17527826130390167,
0.0844963863492012,
-0.12885834276676178,
-0.23654654622077942,
-0.05951721966266632,
-0.10941403359174728,
0.4144059419631958,
-0.2647610008716583,
-0.2428981065750122,
0.09646980464458466,
0.04928155988454819,
-0.21072252094745636,
0.10666301101446152,
0.011268452741205692,
0.2041611522436142,
-0.3407524526119232,
-0.2518101930618286,
-0.03278068080544472,
-0.17753928899765015,
-0.12553058564662933,
0.1862042248249054,
0.03604469448328018,
-0.03649822250008583,
0.2830502986907959,
-0.06208178028464317,
-0.19475996494293213,
-0.15069802105426788,
0.3512091338634491,
-0.106758713722229,
-0.12338699400424957,
0.43479129672050476,
0.07205457240343094,
-0.3199332654476166,
-0.2920496165752411,
0.07938256114721298,
-0.04652667045593262,
-0.4147840738296509,
0.08965185284614563,
0.04864191636443138,
0.3403031527996063,
0.06553778797388077,
0.10395893454551697,
0.19103452563285828,
0.04465148597955704,
-0.026322556659579277,
-0.5710042715072632,
-0.22138124704360962,
-0.03546184301376343,
0.03544137626886368,
0.22890055179595947,
-0.09497218579053879,
0.3262067139148712,
0.20343954861164093,
-0.06553912907838821,
-0.3433676064014435,
0.13649395108222961,
-0.09542123973369598,
-0.04529334977269173,
0.13594485819339752,
-0.14903777837753296,
0.44306036829948425,
0.10090398788452148,
0.19788864254951477,
0.02786405198276043,
-0.11768372356891632,
-0.2749330699443817,
-0.12826836109161377,
0.11908867210149765,
0.16798509657382965,
-0.12618330121040344,
0.04200264438986778,
-0.19966140389442444,
-0.3425237536430359,
0.16670820116996765,
0.023325392976403236,
0.17778915166854858,
-0.018748613074421883,
0.04774327203631401,
0.15270572900772095,
0.057697124779224396,
-0.1524340808391571,
0.01975097507238388,
-0.09334114193916321,
0.34244436025619507,
0.22018791735172272,
0.2526730000972748,
0.10924828052520752,
-0.02830423228442669,
-0.43533653020858765,
-0.08897776901721954,
0.021520810201764107,
-0.10898949950933456,
0.3970862925052643,
-0.22670690715312958,
-0.08440792560577393,
0.11683908849954605,
0.22189824283123016,
0.3427521288394928,
-0.24455060064792633,
0.04737762734293938,
0.3164500296115875,
0.250219464302063,
-0.29429274797439575,
-0.07446439564228058,
0.16612371802330017,
0.11073063313961029,
0.11224228888750076,
0.07781367003917694,
-0.2546725869178772,
0.07170911133289337,
0.023752009496092796,
0.13734211027622223,
0.39213666319847107,
-0.04000334441661835,
0.12505540251731873,
0.3877008259296417,
-0.13047677278518677,
-0.006714898161590099,
0.19588422775268555,
-0.012120547704398632,
0.07087177783250809,
0.43155747652053833,
-0.2908123731613159,
-0.011964835226535797,
-0.1729232668876648,
-0.07347848266363144,
0.2268633097410202,
-0.2598980665206909,
-0.003940980415791273,
0.2269204556941986,
-0.11886067688465118,
0.08530642837285995,
-0.01976958103477955,
0.10144544392824173,
-0.020962640643119812,
0.12613849341869354,
-0.4866469204425812,
0.39160656929016113,
-0.09983617812395096,
0.30231302976608276,
-0.23091000318527222,
-0.13298200070858002,
-0.22922198474407196,
0.14528228342533112,
0.10430418699979782,
-0.16917625069618225,
0.22735311090946198,
0.39980384707450867,
-0.2776849865913391,
-0.15504100918769836,
0.0752837136387825,
0.3108184039592743,
-0.08133295923471451,
-0.27611520886421204,
0.18228566646575928,
0.3667353093624115,
-0.03441416844725609,
-0.0020697934087365866,
0.4475150406360626,
0.3937961161136627,
0.28242358565330505,
0.04741472005844116,
0.2371770143508911,
0.10837434977293015,
-0.1588352918624878,
0.09912879019975662,
0.11139831691980362,
0.22683201730251312,
0.34777507185935974,
0.3200224041938782,
0.22533252835273743,
-0.25154179334640503,
0.0480181947350502,
-0.09312416613101959,
-0.08263933658599854,
-0.23183348774909973,
0.5614548325538635,
0.04967542365193367,
0.03975941985845566,
-0.2407839447259903,
-0.053669992834329605,
-0.4856571853160858,
-0.034808117896318436,
0.3326089382171631,
0.1133718490600586,
0.09824051707983017,
-0.10428469628095627,
0.0643889531493187,
-0.09752972424030304,
0.31203630566596985,
0.3321332335472107,
0.2571238577365875,
-0.6201798319816589,
0.004288333002477884,
-0.6339928507804871,
0.17016392946243286,
-0.19856645166873932,
0.07438495755195618,
-0.01663638837635517,
0.041202910244464874,
-0.2311745285987854,
0.3115764260292053,
0.21938012540340424,
0.03954481706023216,
0.011645246297121048,
0.2519505023956299,
-0.19945183396339417,
-0.029427502304315567,
0.16616107523441315,
-0.1432821899652481,
0.08303260058164597,
-0.4240466356277466,
0.09940467774868011,
-0.4774450957775116,
0.017368337139487267,
-0.04437790811061859,
-0.30667755007743835,
-0.035329971462488174,
0.25298044085502625,
0.41547107696533203,
0.05414937436580658,
0.7115376591682434,
-0.08033871650695801,
-0.21797940135002136,
-0.2073085904121399,
-0.01567118987441063,
-0.23900403082370758,
0.15519265830516815,
0.14667785167694092,
0.37374168634414673,
-0.024113135412335396,
-0.1898600161075592,
-0.4175250828266144,
0.3508703112602234,
-0.1077161654829979,
-0.1765213906764984,
-0.21676722168922424,
-0.0179202351719141,
-0.1924644261598587,
0.24245110154151917,
0.050991762429475784,
0.08500146120786667,
-0.07306994497776031,
0.17927835881710052,
-0.3576472997665405,
-0.4977721571922302,
0.60898756980896,
-0.23517611622810364,
-0.2108122557401657,
-0.21934548020362854,
0.12395565211772919,
-0.11723710596561432,
0.11336246877908707,
-0.49773094058036804,
0.3211052119731903,
0.3238478899002075,
-0.012920744717121124,
-0.10956727713346481,
0.20090219378471375,
0.2233957201242447,
0.20485417544841766,
0.06408768892288208,
0.3913775384426117,
0.15037250518798828,
-0.39116382598876953,
-0.05759202688932419,
-0.20363333821296692
] |
https://github.com/huggingface/datasets/issues/864 | Unable to download cnn_dailymail dataset | No, It's working fine now. Very strange. Here are my python and request versions
requests 2.24.0
Python 3.8.2 | ### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions. | 18 | Unable to download cnn_dailymail dataset
### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions.
No, It's working fine now. Very strange. Here are my python and request versions
requests 2.24.0
Python 3.8.2 | [
-0.30534854531288147,
0.234373539686203,
-0.07922708243131638,
0.17068012058734894,
0.360565721988678,
0.17380857467651367,
0.5607905983924866,
0.24365611374378204,
-0.17192447185516357,
0.07515959441661835,
-0.11793938279151917,
0.07677548378705978,
-0.28970828652381897,
-0.03775293752551079,
-0.01305684819817543,
-0.02915974147617817,
-0.21272581815719604,
0.10676264762878418,
-0.1973429173231125,
0.029163789004087448,
-0.10671418160200119,
0.09612725675106049,
-0.15220068395137787,
-0.06974973529577255,
-0.29296448826789856,
-0.13203641772270203,
0.036387015134096146,
0.17929904162883759,
-0.3712782561779022,
-0.3521043360233307,
0.3593551516532898,
-0.082521453499794,
0.18734876811504364,
0.43545272946357727,
-0.000111295776150655,
0.29957911372184753,
0.3638944625854492,
-0.05004101246595383,
-0.46190330386161804,
-0.47363758087158203,
-0.17969968914985657,
-0.1351315826177597,
0.04177436605095863,
-0.29667913913726807,
-0.0017573041841387749,
0.012268537655472755,
-0.035519298166036606,
0.14817531406879425,
0.35080453753471375,
0.6557961106300354,
0.27080947160720825,
0.40348806977272034,
0.3544585406780243,
-0.1669904738664627,
-0.22140860557556152,
0.1594429761171341,
-0.07421938329935074,
0.5186957120895386,
-0.4013257920742035,
0.103276826441288,
0.20565718412399292,
0.1207839623093605,
-0.1278405636548996,
0.17287343740463257,
0.05075478181242943,
0.018949851393699646,
0.13691192865371704,
-0.45643800497055054,
0.12486835569143295,
0.25986361503601074,
0.4185575842857361,
-0.2014636993408203,
-0.243145152926445,
0.11963769793510437,
0.1434071660041809,
-0.26624396443367004,
0.14729197323322296,
0.30987808108329773,
-0.16431352496147156,
0.05820055678486824,
-0.27769753336906433,
0.011133229359984398,
-0.291574090719223,
0.414060115814209,
-0.23036736249923706,
0.18169954419136047,
0.040302637964487076,
0.07407012581825256,
0.22286446392536163,
-0.15204167366027832,
0.40154141187667847,
-0.2636483609676361,
0.24718134105205536,
0.0726078450679779,
-0.05233702436089516,
-0.1367853879928589,
0.054563187062740326,
-0.24839793145656586,
0.013719604350626469,
0.013428478501737118,
-0.1899162232875824,
-0.24806687235832214,
0.0034490986727178097,
0.07252169400453568,
-0.0031760570127516985,
0.08489503711462021,
-0.2378150075674057,
0.6527372598648071,
0.13739922642707825,
0.4710148274898529,
-0.11476825922727585,
0.04230155050754547,
-0.2318076193332672,
-0.13142117857933044,
0.13424941897392273,
0.17735445499420166,
0.561800479888916,
-0.1913488209247589,
-0.41419464349746704,
0.25266793370246887,
-0.5342707633972168,
0.0010654681827872992,
0.19670690596103668,
0.3225839138031006,
-0.169694721698761,
0.035495005548000336,
0.000475834560347721,
0.10847683995962143,
0.028169043362140656,
0.08047962188720703,
-0.2693049907684326,
0.2859301269054413,
-0.11966118216514587,
-0.09742289036512375,
0.371902734041214,
-0.3562030792236328,
0.1796879917383194,
-0.0228084996342659,
0.10484883934259415,
-0.1313500851392746,
0.1455952674150467,
-0.27083396911621094,
-0.14643806219100952,
0.4110407531261444,
-0.10564344376325607,
0.13181903958320618,
0.085426926612854,
0.04590104892849922,
-0.17117704451084137,
0.1168934777379036,
-0.023616574704647064,
-0.3991504907608032,
0.07574085146188736,
0.240470290184021,
-0.07827333360910416,
-0.3346491754055023,
0.19673384726047516,
-0.21130529046058655,
-0.04418947175145149,
0.009028601460158825,
-0.13164351880550385,
-0.2747359871864319,
-0.04888712614774704,
-0.19608043134212494,
0.35706374049186707,
0.6024295091629028,
-0.43875351548194885,
0.03000388853251934,
-0.17706860601902008,
-0.22162124514579773,
0.1865835338830948,
0.285984069108963,
-0.3314291834831238,
0.28657323122024536,
-0.08010349422693253,
-0.20042775571346283,
0.44117480516433716,
-0.40873220562934875,
-0.5403162240982056,
0.2019556611776352,
-0.04574494808912277,
0.07474067062139511,
-0.05776660889387131,
0.053031593561172485,
0.08413724601268768,
0.07740730792284012,
0.0953817367553711,
0.491538405418396,
-0.1939900517463684,
-0.027716215699911118,
-0.1510462909936905,
-0.3296215236186981,
0.18938542902469635,
0.3296569287776947,
0.43076786398887634,
0.14757996797561646,
-0.008208067156374454,
0.10209298878908157,
0.1281471699476242,
0.07092505693435669,
-0.05174058675765991,
0.16132058203220367,
0.32195258140563965,
-0.03533802554011345,
-0.19704098999500275,
-0.07640163600444794,
-0.3915078341960907,
0.10541924089193344,
0.11944003403186798,
0.19854716956615448,
-0.09418082237243652,
-0.057752612978219986,
-0.4808586835861206,
-0.11438445746898651,
-0.22680136561393738,
0.040828920900821686,
0.21293526887893677,
0.20927385985851288,
0.12773571908473969,
0.04378785938024521,
-0.2601551413536072,
0.3888756036758423,
-0.050296612083911896,
0.20673903822898865,
-0.15094317495822906,
0.4017491638660431,
-0.29262205958366394,
-0.058600809425115585,
0.06588730216026306,
0.04778147116303444,
0.25279515981674194,
-0.12541355192661285,
-0.10623867064714432,
0.113292396068573,
0.010623163543641567,
-0.12691032886505127,
-0.06425607204437256,
-0.07396647334098816,
0.0886368677020073,
-0.16034208238124847,
0.03212631866335869,
0.3180971145629883,
0.07946719974279404,
0.03627584129571915,
-0.012977384962141514,
0.28848281502723694,
0.16335980594158173,
-0.04264943301677704,
0.11512969434261322,
0.149704247713089,
0.23335568606853485,
-0.20540432631969452,
0.0016974372556433082,
-0.07416942715644836,
0.2501130998134613,
-0.029403837397694588,
0.3837205171585083,
-0.1167595386505127,
-0.32276368141174316,
-0.29469096660614014,
0.20184949040412903,
-0.22361122071743011,
-0.01948522962629795,
0.06010127440094948,
-0.19776815176010132,
0.10458628833293915,
-0.21332746744155884,
0.32377222180366516,
0.44410550594329834,
0.0796770304441452,
0.028869086876511574,
0.10611823201179504,
-0.2178814560174942,
-0.10609883815050125,
0.15954673290252686,
0.2282204031944275,
0.15281927585601807,
0.19166682660579681,
-0.042862698435783386,
0.23197288811206818,
-0.2976655066013336,
-0.4345211088657379,
0.250997930765152,
0.48847275972366333,
-0.31152915954589844,
-0.02912573516368866,
-0.30287185311317444,
-0.1064915582537651,
-0.16221526265144348,
-0.4730813801288605,
-0.0811019316315651,
-0.2360573559999466,
-0.13590160012245178,
0.26146677136421204,
0.06388484686613083,
0.0723203718662262,
-0.3064320683479309,
-0.10445438325405121,
0.1325637549161911,
-0.3229348957538605,
-0.08566795289516449,
0.05517666041851044,
-0.039636556059122086,
0.14762358367443085,
0.399528443813324,
-0.09697815030813217,
0.34223708510398865,
-0.015431498177349567,
-0.1305360198020935,
-0.2630583941936493,
-0.19279825687408447,
-0.0004330585361458361,
0.022168463096022606,
0.24208854138851166,
0.16728980839252472,
0.4309624433517456,
0.022665850818157196,
-0.19360554218292236,
0.1404917985200882,
0.05844508484005928,
-0.026869015768170357,
0.2278822362422943,
-0.25747260451316833,
-0.10570406913757324,
-0.010171007364988327,
-0.48601213097572327,
-0.5390892028808594,
-0.32692113518714905,
-0.15994153916835785,
-0.04828991740942001,
0.19598925113677979,
0.42370811104774475,
0.11605218797922134,
0.13853566348552704,
-0.15663860738277435,
0.050007373094558716,
-0.12225734442472458,
-0.1248524859547615,
0.48966604471206665,
-0.374142587184906,
-0.38175296783447266,
0.10499537736177444,
-0.17454279959201813,
0.2857015132904053,
-0.08931176364421844,
-0.47788166999816895,
-0.20606079697608948,
-0.1840454488992691,
-0.07793854922056198,
-0.12949198484420776,
-0.22382178902626038,
0.12385910749435425,
-0.053183723241090775,
-0.0448056198656559,
0.12145749479532242,
-0.11701001971960068,
-0.021503515541553497,
0.15819339454174042,
0.07765445858240128,
-0.18861843645572662,
0.5733036398887634,
0.026938309893012047,
0.6518710255622864,
0.2029564082622528,
-0.26086705923080444,
0.3176008462905884,
-0.07881426066160202,
0.2220965027809143,
-0.040656719356775284,
-0.4731609523296356,
-0.046052444726228714,
0.21349909901618958,
0.03480672836303711,
-0.059652239084243774,
-0.22566360235214233,
-0.3095945715904236,
-0.2722097337245941,
-0.13013620674610138,
-0.30815136432647705,
-0.25451797246932983,
0.0712791234254837,
0.10314036905765533,
0.20536507666110992,
0.09950432926416397,
0.19141580164432526,
0.059102870523929596,
-0.16810229420661926,
-0.015037443488836288,
0.43139931559562683,
0.07715826481580734,
0.06338657438755035,
0.12956194579601288,
-0.059278979897499084,
-0.3305478096008301,
0.09203926473855972,
-0.09288486838340759,
0.30714330077171326,
-0.06199672818183899,
0.18668541312217712,
-0.00891150999814272,
-0.07653750479221344,
0.23132948577404022,
0.06874343752861023,
0.17000171542167664,
0.2777774930000305,
-0.12189091742038727,
-0.3610597848892212,
-0.236199751496315,
-0.35344767570495605,
0.03378725051879883,
0.21017692983150482,
0.18393319845199585,
-0.31568166613578796,
-0.06619325280189514,
0.6153857111930847,
0.14038687944412231,
-0.05568629875779152,
-0.395010381937027,
-0.20806322991847992,
-0.3233414590358734,
-0.4916277825832367,
0.09963875263929367,
-0.1292095184326172,
0.24462704360485077,
0.0665893629193306,
-0.187472864985466,
-0.03484693169593811,
0.021792897954583168,
0.18876415491104126,
0.00046050266246311367,
0.12297095358371735,
0.08193040639162064,
0.39358243346214294,
0.13864737749099731,
-0.09974195063114166,
0.4361156225204468,
0.4650556147098541,
0.04798556864261627,
-0.4144473671913147,
-0.08821976184844971,
0.1417160928249359,
-0.1368326097726822,
0.16665887832641602,
-0.21819449961185455,
-0.2737380862236023,
0.25231775641441345,
0.24603165686130524,
0.1622438281774521,
0.1378745585680008,
0.4610219895839691,
-0.24305588006973267,
-0.5729039311408997,
-0.3615535795688629,
0.18962547183036804,
-0.17972692847251892,
0.14135830104351044,
0.1366218626499176,
-0.24973660707473755,
0.017225507646799088,
0.010419368743896484,
-0.052560754120349884,
0.7789851427078247,
0.15485364198684692,
0.044110361486673355,
0.46803489327430725,
-0.0037567627150565386,
0.3014909327030182,
-0.0559011809527874,
0.08382996916770935,
-0.307282418012619,
-0.2321266233921051,
-0.12283001840114594,
-0.22825473546981812,
0.15366020798683167,
0.26825952529907227,
-0.21459177136421204,
0.3666177988052368,
-0.05684412270784378,
0.14512890577316284,
0.0025312358047813177,
0.34216123819351196,
-0.058432437479496,
0.06554586440324783,
-0.0626576766371727,
0.20406217873096466,
-0.14442935585975647,
0.40972280502319336,
-0.13568474352359772,
-0.14900502562522888,
-0.07689996063709259,
-0.25968989729881287,
-0.2632802426815033,
0.15819409489631653,
-0.38941845297813416,
0.3009175956249237,
0.09400682896375656,
-0.05416303500533104,
-0.07758733630180359,
-0.0720013752579689,
0.037950269877910614,
0.03878293186426163,
-0.17527826130390167,
0.0844963863492012,
-0.12885834276676178,
-0.23654654622077942,
-0.05951721966266632,
-0.10941403359174728,
0.4144059419631958,
-0.2647610008716583,
-0.2428981065750122,
0.09646980464458466,
0.04928155988454819,
-0.21072252094745636,
0.10666301101446152,
0.011268452741205692,
0.2041611522436142,
-0.3407524526119232,
-0.2518101930618286,
-0.03278068080544472,
-0.17753928899765015,
-0.12553058564662933,
0.1862042248249054,
0.03604469448328018,
-0.03649822250008583,
0.2830502986907959,
-0.06208178028464317,
-0.19475996494293213,
-0.15069802105426788,
0.3512091338634491,
-0.106758713722229,
-0.12338699400424957,
0.43479129672050476,
0.07205457240343094,
-0.3199332654476166,
-0.2920496165752411,
0.07938256114721298,
-0.04652667045593262,
-0.4147840738296509,
0.08965185284614563,
0.04864191636443138,
0.3403031527996063,
0.06553778797388077,
0.10395893454551697,
0.19103452563285828,
0.04465148597955704,
-0.026322556659579277,
-0.5710042715072632,
-0.22138124704360962,
-0.03546184301376343,
0.03544137626886368,
0.22890055179595947,
-0.09497218579053879,
0.3262067139148712,
0.20343954861164093,
-0.06553912907838821,
-0.3433676064014435,
0.13649395108222961,
-0.09542123973369598,
-0.04529334977269173,
0.13594485819339752,
-0.14903777837753296,
0.44306036829948425,
0.10090398788452148,
0.19788864254951477,
0.02786405198276043,
-0.11768372356891632,
-0.2749330699443817,
-0.12826836109161377,
0.11908867210149765,
0.16798509657382965,
-0.12618330121040344,
0.04200264438986778,
-0.19966140389442444,
-0.3425237536430359,
0.16670820116996765,
0.023325392976403236,
0.17778915166854858,
-0.018748613074421883,
0.04774327203631401,
0.15270572900772095,
0.057697124779224396,
-0.1524340808391571,
0.01975097507238388,
-0.09334114193916321,
0.34244436025619507,
0.22018791735172272,
0.2526730000972748,
0.10924828052520752,
-0.02830423228442669,
-0.43533653020858765,
-0.08897776901721954,
0.021520810201764107,
-0.10898949950933456,
0.3970862925052643,
-0.22670690715312958,
-0.08440792560577393,
0.11683908849954605,
0.22189824283123016,
0.3427521288394928,
-0.24455060064792633,
0.04737762734293938,
0.3164500296115875,
0.250219464302063,
-0.29429274797439575,
-0.07446439564228058,
0.16612371802330017,
0.11073063313961029,
0.11224228888750076,
0.07781367003917694,
-0.2546725869178772,
0.07170911133289337,
0.023752009496092796,
0.13734211027622223,
0.39213666319847107,
-0.04000334441661835,
0.12505540251731873,
0.3877008259296417,
-0.13047677278518677,
-0.006714898161590099,
0.19588422775268555,
-0.012120547704398632,
0.07087177783250809,
0.43155747652053833,
-0.2908123731613159,
-0.011964835226535797,
-0.1729232668876648,
-0.07347848266363144,
0.2268633097410202,
-0.2598980665206909,
-0.003940980415791273,
0.2269204556941986,
-0.11886067688465118,
0.08530642837285995,
-0.01976958103477955,
0.10144544392824173,
-0.020962640643119812,
0.12613849341869354,
-0.4866469204425812,
0.39160656929016113,
-0.09983617812395096,
0.30231302976608276,
-0.23091000318527222,
-0.13298200070858002,
-0.22922198474407196,
0.14528228342533112,
0.10430418699979782,
-0.16917625069618225,
0.22735311090946198,
0.39980384707450867,
-0.2776849865913391,
-0.15504100918769836,
0.0752837136387825,
0.3108184039592743,
-0.08133295923471451,
-0.27611520886421204,
0.18228566646575928,
0.3667353093624115,
-0.03441416844725609,
-0.0020697934087365866,
0.4475150406360626,
0.3937961161136627,
0.28242358565330505,
0.04741472005844116,
0.2371770143508911,
0.10837434977293015,
-0.1588352918624878,
0.09912879019975662,
0.11139831691980362,
0.22683201730251312,
0.34777507185935974,
0.3200224041938782,
0.22533252835273743,
-0.25154179334640503,
0.0480181947350502,
-0.09312416613101959,
-0.08263933658599854,
-0.23183348774909973,
0.5614548325538635,
0.04967542365193367,
0.03975941985845566,
-0.2407839447259903,
-0.053669992834329605,
-0.4856571853160858,
-0.034808117896318436,
0.3326089382171631,
0.1133718490600586,
0.09824051707983017,
-0.10428469628095627,
0.0643889531493187,
-0.09752972424030304,
0.31203630566596985,
0.3321332335472107,
0.2571238577365875,
-0.6201798319816589,
0.004288333002477884,
-0.6339928507804871,
0.17016392946243286,
-0.19856645166873932,
0.07438495755195618,
-0.01663638837635517,
0.041202910244464874,
-0.2311745285987854,
0.3115764260292053,
0.21938012540340424,
0.03954481706023216,
0.011645246297121048,
0.2519505023956299,
-0.19945183396339417,
-0.029427502304315567,
0.16616107523441315,
-0.1432821899652481,
0.08303260058164597,
-0.4240466356277466,
0.09940467774868011,
-0.4774450957775116,
0.017368337139487267,
-0.04437790811061859,
-0.30667755007743835,
-0.035329971462488174,
0.25298044085502625,
0.41547107696533203,
0.05414937436580658,
0.7115376591682434,
-0.08033871650695801,
-0.21797940135002136,
-0.2073085904121399,
-0.01567118987441063,
-0.23900403082370758,
0.15519265830516815,
0.14667785167694092,
0.37374168634414673,
-0.024113135412335396,
-0.1898600161075592,
-0.4175250828266144,
0.3508703112602234,
-0.1077161654829979,
-0.1765213906764984,
-0.21676722168922424,
-0.0179202351719141,
-0.1924644261598587,
0.24245110154151917,
0.050991762429475784,
0.08500146120786667,
-0.07306994497776031,
0.17927835881710052,
-0.3576472997665405,
-0.4977721571922302,
0.60898756980896,
-0.23517611622810364,
-0.2108122557401657,
-0.21934548020362854,
0.12395565211772919,
-0.11723710596561432,
0.11336246877908707,
-0.49773094058036804,
0.3211052119731903,
0.3238478899002075,
-0.012920744717121124,
-0.10956727713346481,
0.20090219378471375,
0.2233957201242447,
0.20485417544841766,
0.06408768892288208,
0.3913775384426117,
0.15037250518798828,
-0.39116382598876953,
-0.05759202688932419,
-0.20363333821296692
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space.
I'm sure we can optimize that though
What do you think @sgugger ? | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 58 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space.
I'm sure we can optimize that though
What do you think @sgugger ? | [
-0.1432340443134308,
-0.38764140009880066,
0.11331380903720856,
0.32277432084083557,
0.5927135944366455,
-0.19819122552871704,
0.28742316365242004,
0.39092981815338135,
-0.3091716170310974,
0.17205798625946045,
-0.03392792120575905,
-0.17978839576244354,
-0.3273913562297821,
0.18979474902153015,
0.1685713827610016,
-0.06555373966693878,
0.146600604057312,
0.11617890745401382,
-0.037318017333745956,
-0.2512281537055969,
0.012230254709720612,
0.033154092729091644,
0.20524433255195618,
0.23632650077342987,
-0.5892040729522705,
0.11623308807611465,
-0.09766054153442383,
0.022522712126374245,
-0.45221689343452454,
-0.09203147888183594,
0.06886190921068192,
-0.3121907711029053,
0.18920080363750458,
0.5060112476348877,
-0.00012865496682934463,
-0.08017751574516296,
0.1424444019794464,
-0.0695752426981926,
0.020569933578372,
0.2090914249420166,
0.21447591483592987,
-0.06325716525316238,
-0.21338899433612823,
0.10531806945800781,
0.21523861587047577,
-0.11431064456701279,
-0.07098295539617538,
-0.034040939062833786,
0.3668510615825653,
0.1840248852968216,
0.06569932401180267,
0.13553926348686218,
0.014897062443196774,
0.10366880148649216,
0.24296654760837555,
0.3396819233894348,
-0.037180520594120026,
-0.01005516480654478,
0.2122916728258133,
-0.19895635545253754,
0.014840205200016499,
0.1700541377067566,
0.09839846938848495,
-0.198229119181633,
0.32845786213874817,
0.2113911360502243,
-0.0749182254076004,
-0.4113594591617584,
0.21207275986671448,
0.3883529305458069,
-0.040698472410440445,
-0.3539564907550812,
-0.3082946240901947,
-0.3972705602645874,
0.24117644131183624,
-0.5351738333702087,
0.09333288669586182,
0.1817522943019867,
-0.12999336421489716,
0.057189758867025375,
-0.2757267355918884,
-0.41475656628608704,
-0.22040769457817078,
-0.09753817319869995,
-0.21435603499412537,
0.04973959922790527,
-0.22842782735824585,
-0.09450791776180267,
-0.02470947988331318,
-0.15148870646953583,
-0.36791083216667175,
-0.026125367730855942,
-0.00728757306933403,
0.19921645522117615,
-0.0928649753332138,
-0.32427287101745605,
-0.11265634000301361,
-0.3281560242176056,
0.271748811006546,
-0.44196194410324097,
-0.24123232066631317,
-0.40302273631095886,
-0.12958316504955292,
-0.4189319312572479,
0.39931437373161316,
0.4595159888267517,
-0.376015841960907,
0.17993716895580292,
0.12998422980308533,
0.014497591182589531,
-0.13884541392326355,
-0.052761010825634,
-0.16345426440238953,
0.13290749490261078,
0.07106585055589676,
-0.4047497808933258,
0.03130307048559189,
-0.22905242443084717,
-0.10030443221330643,
0.45911797881126404,
-0.37845081090927124,
0.2226310521364212,
0.05107705667614937,
0.32749488949775696,
-0.07608109712600708,
0.10531910508871078,
0.010907119140028954,
0.05134640261530876,
-0.41802385449409485,
-0.017794175073504448,
-0.06112900376319885,
0.07422003895044327,
-0.21511268615722656,
0.18698738515377045,
-0.028843658044934273,
0.10445146262645721,
0.021353039890527725,
-0.01798054203391075,
0.3231278657913208,
-0.09934017807245255,
0.039501089602708817,
-0.2510477602481842,
0.17269714176654816,
0.16851380467414856,
-0.2115902602672577,
0.4402739107608795,
-0.03287006542086601,
0.05730654299259186,
-0.05733371898531914,
0.07319334894418716,
-0.2025124877691269,
-0.461357980966568,
-0.05754173919558525,
0.09549758583307266,
-0.032403524965047836,
0.31406307220458984,
-0.06195266544818878,
0.32786673307418823,
0.4565286636352539,
0.019854674115777016,
0.025028802454471588,
-0.22849509119987488,
-0.22651353478431702,
0.009114954620599747,
0.39956891536712646,
0.39022406935691833,
-0.48463618755340576,
-0.17587533593177795,
-0.20547239482402802,
0.3122827410697937,
0.3894991874694824,
0.5888674259185791,
0.007783620152622461,
0.578309178352356,
-0.28118738532066345,
0.2357923984527588,
-0.2949526309967041,
0.2546404302120209,
-0.43086954951286316,
0.3521904945373535,
-0.05787883698940277,
-0.05454752966761589,
0.0877297967672348,
-0.058739073574543,
0.18249042332172394,
0.02089695818722248,
0.3823956847190857,
0.033304762095212936,
-0.15172342956066132,
0.02726271003484726,
-0.3604697287082672,
-0.401664674282074,
-0.2655521333217621,
0.014359096996486187,
0.1724795550107956,
-0.1572999358177185,
-0.3328549861907959,
0.5829170346260071,
0.12978513538837433,
-0.10001030564308167,
0.15983444452285767,
0.3174716532230377,
0.08704081922769547,
-0.03831527382135391,
0.05242633819580078,
-0.07932279258966446,
-0.1097157895565033,
-0.008805437944829464,
-0.3079407215118408,
0.2040724754333496,
0.10638947784900665,
-0.27117201685905457,
-0.0457131527364254,
0.032010480761528015,
0.07850879430770874,
-0.206470787525177,
-0.01803360879421234,
-0.1957940310239792,
-0.11084649711847305,
0.010616698302328587,
-0.07332603633403778,
-0.10524912178516388,
-0.08429519087076187,
0.07201678305864334,
-0.43796244263648987,
-0.045776672661304474,
-0.023143213242292404,
-0.14678087830543518,
-0.09454400092363358,
0.3605756461620331,
-0.11254031211137772,
0.025117021054029465,
-0.070872001349926,
0.1594514697790146,
0.13058941066265106,
0.0670296922326088,
-0.09692811965942383,
0.23769986629486084,
0.28207647800445557,
0.08177269250154495,
0.10236997902393341,
0.18416239321231842,
0.04220562055706978,
-0.05243903771042824,
-0.11789364367723465,
0.21369440853595734,
0.20884229242801666,
0.14766132831573486,
0.2419489175081253,
-0.21807269752025604,
-0.10305571556091309,
0.1184767559170723,
-0.04439254477620125,
-0.27751830220222473,
0.30782684683799744,
0.06344430893659592,
0.28979921340942383,
0.19365370273590088,
-0.19925616681575775,
-0.09153466671705246,
0.2885439991950989,
-0.18789924681186676,
0.024126870557665825,
0.43127748370170593,
-0.34369584918022156,
-0.11970651894807816,
-0.10632934421300888,
-0.2838625907897949,
0.2830732464790344,
0.08036308735609055,
0.12331002205610275,
0.10929179191589355,
0.1420128494501114,
-0.07463852316141129,
0.2112693190574646,
0.2753334045410156,
-0.19407100975513458,
0.16109392046928406,
0.1346515715122223,
0.05921692028641701,
-0.19896994531154633,
0.08614754676818848,
-0.196478471159935,
0.33857429027557373,
-0.40706780552864075,
0.3386440873146057,
0.057727497071027756,
0.013776318170130253,
-0.3941376805305481,
-0.27474525570869446,
-0.18092507123947144,
0.0264377910643816,
0.19267398118972778,
-0.23455721139907837,
-0.11104250699281693,
-0.05266326293349266,
0.3810817301273346,
0.29899856448173523,
0.15778566896915436,
0.2653695046901703,
0.01864941604435444,
0.1821880042552948,
-0.33868852257728577,
-0.029487278312444687,
0.1913498193025589,
-0.18691687285900116,
0.15184643864631653,
0.09830151498317719,
-0.2298426777124405,
-0.05648854002356529,
-0.3236949145793915,
0.2155354917049408,
-0.17991718649864197,
0.27948176860809326,
0.20249614119529724,
0.13636432588100433,
-0.43555083870887756,
0.0946044772863388,
0.019780201837420464,
-0.002754013519734144,
-0.1579779088497162,
-0.014179802499711514,
-0.12343227118253708,
0.12773214280605316,
-0.08377819508314133,
-0.2641700506210327,
-0.060165971517562866,
0.01954755373299122,
0.32544174790382385,
-0.009844500571489334,
0.03601009398698807,
0.2116546928882599,
0.15858222544193268,
0.10042480379343033,
-0.05141410231590271,
-0.19728128612041473,
-0.0010388870723545551,
-0.1854282021522522,
0.2126000076532364,
0.006226101890206337,
-0.19627238810062408,
-0.35622695088386536,
-0.05312489718198776,
0.025586018338799477,
-0.15690311789512634,
-0.5457939505577087,
0.05183916538953781,
-0.4050367474555969,
-0.30023136734962463,
-0.2334708869457245,
0.3785058557987213,
0.11567377299070358,
-0.10776977241039276,
0.08498290926218033,
0.09842285513877869,
0.11341908574104309,
-0.07525984197854996,
-0.24577555060386658,
0.23017382621765137,
-0.4163115322589874,
0.35236507654190063,
-0.07925844937562943,
0.8787887692451477,
0.3173365890979767,
-0.009972754865884781,
-0.03509239852428436,
-0.0326421856880188,
0.399186372756958,
-0.470462828874588,
-0.1981312334537506,
0.2872302830219269,
-0.059222377836704254,
-0.3348689079284668,
0.32398471236228943,
0.12259045243263245,
0.45757684111595154,
0.21334022283554077,
0.061285633593797684,
0.280878484249115,
-0.3745425343513489,
0.41088250279426575,
0.13387636840343475,
0.17688187956809998,
0.0014609845820814371,
0.13073202967643738,
0.01629401557147503,
-0.3149764835834503,
0.0631069764494896,
-0.05385261029005051,
0.21750463545322418,
0.016628002747893333,
0.018032094463706017,
-0.34134846925735474,
-0.697566032409668,
-0.04557086154818535,
0.1327458918094635,
0.07291541993618011,
0.1507202535867691,
-0.1237143874168396,
0.18995925784111023,
0.04684361070394516,
0.7578895688056946,
0.28132355213165283,
-0.17268088459968567,
0.00555053586140275,
-0.06816723197698593,
-0.1512739211320877,
0.047016192227602005,
-0.3141692876815796,
-0.03362976014614105,
0.5655533075332642,
0.6516924500465393,
-0.3451511263847351,
-0.06195904687047005,
0.1178140640258789,
0.34566786885261536,
-0.12289721518754959,
0.006776361260563135,
-0.4224220812320709,
0.0064460053108632565,
-0.23933906853199005,
0.24437303841114044,
0.06831616908311844,
0.06791804730892181,
-0.07804036140441895,
-0.08286164700984955,
0.05857354775071144,
-0.0831705778837204,
0.35886263847351074,
0.24068552255630493,
0.3210000991821289,
-0.29537543654441833,
0.3806355893611908,
-0.037977732717990875,
0.11557311564683914,
0.3630252182483673,
0.1936301290988922,
-0.1670263260602951,
-0.29682254791259766,
0.2599283754825592,
-0.10103138536214828,
0.33703771233558655,
0.5717677474021912,
-0.0340762622654438,
0.17664949595928192,
0.1356077343225479,
0.4558725655078888,
-0.47328296303749084,
0.5112181901931763,
0.490233451128006,
0.01288394071161747,
-0.5175439715385437,
-0.2263822853565216,
0.3698658347129822,
0.08313633501529694,
0.1231708824634552,
0.16517813503742218,
0.30953407287597656,
-0.3091197609901428,
0.2911875247955322,
-0.001634815358556807,
1.1803641319274902,
-0.1970946490764618,
0.5995185375213623,
0.11639609187841415,
0.284221887588501,
0.5852832198143005,
-0.28333669900894165,
0.19256986677646637,
-0.3745794892311096,
-0.06227140873670578,
0.16416533291339874,
0.034252528101205826,
-0.1442033052444458,
0.029732536524534225,
-0.10812871158123016,
0.15986751019954681,
-0.11288204044103622,
0.25990501046180725,
-0.2608388662338257,
0.3257429897785187,
0.06136736646294594,
-0.37317007780075073,
-0.23922355473041534,
-0.05279950797557831,
0.0120127247646451,
0.04643237590789795,
-0.15489664673805237,
0.09053684771060944,
-0.029699012637138367,
-0.30426615476608276,
-0.2594524323940277,
-0.17319487035274506,
-0.026034530252218246,
-0.03899148851633072,
0.19949863851070404,
-0.33626317977905273,
0.3272383213043213,
-0.03026086650788784,
0.2560786306858063,
0.6596658229827881,
-0.2298511564731598,
0.05390675365924835,
-0.18086370825767517,
0.03558497130870819,
-0.018596572801470757,
-0.08476676791906357,
0.03277844935655594,
0.05375027656555176,
0.07088074088096619,
-0.04615351930260658,
0.013614263385534286,
0.28960907459259033,
-0.3708905279636383,
-0.18656975030899048,
0.5945250391960144,
-0.4801498353481293,
0.01408643089234829,
-0.10681336373090744,
-0.051003266125917435,
-0.1402089148759842,
0.00557381846010685,
0.17236611247062683,
-0.25375133752822876,
0.07292252779006958,
0.04336198791861534,
-0.36646342277526855,
-0.2403925359249115,
0.17383737862110138,
0.28035011887550354,
-0.003643826814368367,
0.7379027605056763,
0.2823023498058319,
-0.07195579260587692,
-0.08893924951553345,
0.42876696586608887,
0.5030832290649414,
-0.4444897472858429,
0.29558464884757996,
0.17805473506450653,
-0.0375429205596447,
-0.0009510235977359116,
0.12825097143650055,
0.237966850399971,
-0.30743637681007385,
-0.1623658388853073,
-0.04940912872552872,
-0.4165502190589905,
0.04729941487312317,
-0.04313724860548973,
0.13121382892131805,
0.14369675517082214,
0.34834763407707214,
-0.09295865148305893,
0.1567375659942627,
-0.12738174200057983,
0.053581103682518005,
-0.016882237046957016,
0.03947758674621582,
-0.2568356990814209,
-0.05483940243721008,
0.14138492941856384,
-0.141882985830307,
-0.09235954284667969,
0.20897862315177917,
-0.019302329048514366,
-0.07351484149694443,
-0.2762778103351593,
0.1742601990699768,
0.018075324594974518,
-0.09714952111244202,
0.16589044034481049,
0.1317504644393921,
-0.18459591269493103,
-0.25571703910827637,
0.3654863238334656,
0.10424289852380753,
0.17103712260723114,
-0.22664082050323486,
0.12085238844156265,
-0.06821451336145401,
-0.1481807380914688,
0.016435597091913223,
0.2539687156677246,
0.3333452343940735,
0.06427328288555145,
0.1704203486442566,
0.24899889528751373,
-0.09270234405994415,
-0.05803009867668152,
0.2591570317745209,
0.2553391456604004,
0.06522582471370697,
0.11809076368808746,
-0.22245381772518158,
-0.07116835564374924,
0.04009166359901428,
0.16880886256694794,
0.4920583665370941,
-0.2982497215270996,
-0.24906523525714874,
0.4635605216026306,
0.07087020576000214,
-0.03735562041401863,
-0.07727707177400589,
-0.143379345536232,
-0.2336224615573883,
-0.20461590588092804,
0.31979602575302124,
-0.03753476217389107,
0.06520305573940277,
-0.13475118577480316,
0.1632537841796875,
-0.1233687624335289,
0.1600247025489807,
-0.029236871749162674,
0.5991112589836121,
0.0030999816954135895,
0.11949515342712402,
0.21877765655517578,
0.10102963447570801,
0.2389775961637497,
0.6983106732368469,
0.1785125434398651,
0.1925278902053833,
-0.3714151084423065,
0.10881432145833969,
-0.19278240203857422,
-0.49047160148620605,
-0.4612635672092438,
0.18449890613555908,
-0.1447879821062088,
0.29183295369148254,
-0.15451130270957947,
0.5883190631866455,
-0.0762195959687233,
-0.24932178854942322,
-0.15469229221343994,
-0.010358599945902824,
-0.2898417115211487,
-0.11912208795547485,
0.19235436618328094,
-0.12577584385871887,
0.17292392253875732,
0.2596203088760376,
-0.12387839704751968,
0.010252000764012337,
-0.0933723971247673,
0.0794772133231163,
-0.1036146953701973,
0.0493972972035408,
-0.18209964036941528,
0.18392260372638702,
0.11368971318006516,
-0.28769534826278687,
0.22695371508598328,
-0.08069336414337158,
0.03670995682477951,
-0.2104426473379135,
0.29473066329956055,
0.47530993819236755,
0.38731849193573,
-0.2240900993347168,
0.16996115446090698,
0.1405056118965149,
0.08644843846559525,
-0.06932343542575836,
0.16387274861335754,
0.3289233446121216,
0.12065303325653076,
0.01416692417114973,
-0.08465494215488434,
-0.12284008413553238,
-0.15791064500808716,
0.24468804895877838,
0.10136837512254715,
-0.14892368018627167,
0.22849661111831665,
-0.158221036195755,
-0.13193434476852417,
-0.2944997549057007,
0.02709498442709446,
-0.7009484767913818,
0.5352687239646912,
0.47649580240249634,
0.025295639410614967,
0.12345106154680252,
-0.09153282642364502,
-0.009524623863399029,
-0.13237138092517853,
0.5158677697181702,
0.4690687954425812,
-0.013955878093838692,
-0.38668251037597656,
0.030835313722491264,
-0.29776525497436523,
0.27263689041137695,
-0.2909192144870758,
0.31407058238983154,
-0.13087554275989532,
-0.07553237676620483,
0.020876798778772354,
-0.13940390944480896,
-0.08279847353696823,
-0.23434175550937653,
-0.6251959204673767,
0.18009208142757416,
-0.1407460868358612,
-0.1719837635755539,
-0.22635141015052795,
0.08639871329069138,
-0.060569245368242264,
-0.2572997808456421,
0.44576936960220337,
-0.0461423397064209,
-0.17050835490226746,
0.029391679912805557,
0.22795552015304565,
-0.21688883006572723,
0.17382115125656128,
0.25718024373054504,
0.28152063488960266,
0.04944861680269241,
0.06352148950099945,
-0.22895969450473785,
-0.2911762595176697,
0.1392117142677307,
-0.07182032614946365,
0.12638704478740692,
0.24615266919136047,
0.29430484771728516,
-0.3145042657852173,
-0.26485541462898254,
-0.389909565448761,
0.09292849153280258,
0.3281576633453369,
-0.22421033680438995,
-0.24435754120349884,
0.10151638835668564,
-0.11490192264318466,
0.034420210868120193,
0.013565189205110073,
0.4777697026729584,
-0.12092790752649307,
-0.047070637345314026,
-0.3605848252773285,
-0.2439100444316864,
0.4634322226047516,
-0.3155977129936218,
-0.41589996218681335,
-0.2619010806083679,
0.07823496311903,
0.3039797246456146,
-0.29663577675819397,
-0.7923544049263,
0.10156518220901489,
0.1591154932975769,
0.025392411276698112,
-0.44674167037010193,
0.13508982956409454,
-0.1159246638417244,
-0.13370853662490845,
-0.18707288801670074,
0.742853045463562,
0.04272377863526344,
-0.19075658917427063,
0.4248634874820709,
-0.2602861523628235
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | First I think we should disable padding in the dataset processing and let the data collator do it.
Then I'm wondering if you need attention_mask and token_type_ids at this point ?
Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like:
- input_ids: uint16 or uint32
- token_type_ids: uint8 or bool
- attention_mask: bool
- special_tokens_mask: bool
Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 90 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
First I think we should disable padding in the dataset processing and let the data collator do it.
Then I'm wondering if you need attention_mask and token_type_ids at this point ?
Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like:
- input_ids: uint16 or uint32
- token_type_ids: uint8 or bool
- attention_mask: bool
- special_tokens_mask: bool
Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo | [
-0.22990477085113525,
-0.36673402786254883,
0.12432359158992767,
0.2771851420402527,
0.6030980944633484,
-0.16952762007713318,
0.3121454417705536,
0.37343552708625793,
-0.25991758704185486,
0.15220652520656586,
-0.05892394855618477,
-0.13221894204616547,
-0.28685134649276733,
0.2487872689962387,
0.12460005283355713,
-0.1173476055264473,
0.10137580335140228,
0.10978617519140244,
-0.08229002356529236,
-0.2580445110797882,
-0.03824113309383392,
-0.0007751583470962942,
0.2506646513938904,
0.22081628441810608,
-0.5668438076972961,
0.0628851056098938,
-0.04071518033742905,
0.06896034628152847,
-0.44908618927001953,
-0.06936482340097427,
0.05819128453731537,
-0.29899606108665466,
0.20232544839382172,
0.5197608470916748,
-0.00012487721687648445,
-0.0508771650493145,
0.18901775777339935,
-0.07571522146463394,
-0.006458566524088383,
0.17788055539131165,
0.1570468246936798,
-0.09956419467926025,
-0.1501622349023819,
0.09196220338344574,
0.22818633913993835,
-0.07618625462055206,
-0.04263503849506378,
-0.06385691463947296,
0.3386058211326599,
0.22242975234985352,
0.09239619225263596,
0.1321178525686264,
0.0814070776104927,
0.08444025367498398,
0.2095717042684555,
0.3288497030735016,
-0.05221816897392273,
0.01456140074878931,
0.20903123915195465,
-0.15241317451000214,
-0.021401379257440567,
0.1811145842075348,
0.11391057074069977,
-0.16994766891002655,
0.2978741526603699,
0.21827004849910736,
-0.1149849072098732,
-0.412150502204895,
0.17696470022201538,
0.42692065238952637,
-0.05844647064805031,
-0.3764880299568176,
-0.3386249244213104,
-0.41222766041755676,
0.2050081491470337,
-0.5156779885292053,
0.049187030643224716,
0.19849684834480286,
-0.13572640717029572,
0.07472113519906998,
-0.2738563120365143,
-0.40569156408309937,
-0.23554030060768127,
-0.06131470203399658,
-0.19544975459575653,
0.0406942255795002,
-0.21222242712974548,
-0.0865626409649849,
0.016696659848093987,
-0.11476720124483109,
-0.36130037903785706,
-0.005836285185068846,
-0.014602196402847767,
0.24445585906505585,
-0.09029446542263031,
-0.30053821206092834,
-0.09071917831897736,
-0.3367120325565338,
0.2940709590911865,
-0.5009039044380188,
-0.19073821604251862,
-0.399605929851532,
-0.1979433298110962,
-0.36449307203292847,
0.37976619601249695,
0.47685474157333374,
-0.3775409162044525,
0.20856428146362305,
0.1635926216840744,
0.06162980571389198,
-0.10255181044340134,
-0.0461835153400898,
-0.10709861665964127,
0.10278366506099701,
0.03217196837067604,
-0.33459964394569397,
0.09099724143743515,
-0.26711326837539673,
-0.12784439325332642,
0.4031012952327728,
-0.314602792263031,
0.22814613580703735,
0.041138656437397,
0.32608750462532043,
-0.08707263320684433,
0.16516251862049103,
0.06869418919086456,
0.05819229781627655,
-0.44403424859046936,
-0.025672761723399162,
-0.09422151744365692,
0.08865505456924438,
-0.1856415867805481,
0.18091866374015808,
0.011786740273237228,
0.0643378496170044,
0.036656782031059265,
0.009292499162256718,
0.26647284626960754,
-0.024774927645921707,
0.08059538155794144,
-0.25217658281326294,
0.1330578476190567,
0.16917236149311066,
-0.1863246113061905,
0.4540972113609314,
0.005491786636412144,
0.05175483599305153,
-0.036207590252161026,
0.045383013784885406,
-0.2103348970413208,
-0.4931018352508545,
-0.09739629924297333,
0.12525993585586548,
-0.03896792605519295,
0.29607319831848145,
-0.07943646609783173,
0.3503780961036682,
0.44868382811546326,
0.01628459244966507,
0.015042328275740147,
-0.19292207062244415,
-0.20028407871723175,
-0.01258372887969017,
0.3824048638343811,
0.41931048035621643,
-0.5442306399345398,
-0.15734118223190308,
-0.23858986794948578,
0.25319141149520874,
0.38892680406570435,
0.6155260801315308,
-0.0056073316372931,
0.5517370104789734,
-0.2353394627571106,
0.16427884995937347,
-0.2852046489715576,
0.2683776915073395,
-0.42224743962287903,
0.35721355676651,
-0.05250433087348938,
-0.03883062303066254,
0.1061369776725769,
-0.05385608226060867,
0.17444562911987305,
0.012783142738044262,
0.39440903067588806,
0.023888345807790756,
-0.20388494431972504,
0.04734106734395027,
-0.381345272064209,
-0.40336841344833374,
-0.2660669982433319,
0.08000177890062332,
0.15811394155025482,
-0.13530473411083221,
-0.27350538969039917,
0.5514497756958008,
0.11555200815200806,
-0.14552997052669525,
0.13550031185150146,
0.326209157705307,
0.11132386326789856,
-0.06871303915977478,
0.01937907747924328,
-0.05324118956923485,
-0.21258661150932312,
0.034420326352119446,
-0.28655990958213806,
0.24896283447742462,
0.07938162982463837,
-0.27216336131095886,
-0.057351887226104736,
-0.019542496651411057,
0.08133332431316376,
-0.20654121041297913,
0.012421507388353348,
-0.21589644253253937,
-0.09159250557422638,
0.031171541661024094,
-0.047938428819179535,
-0.045712828636169434,
-0.10297940671443939,
0.04884374514222145,
-0.5028928518295288,
-0.04539313539862633,
-0.008149794302880764,
-0.18823832273483276,
-0.03242037072777748,
0.32905253767967224,
-0.09951482713222504,
0.04230719432234764,
-0.10003775358200073,
0.18438798189163208,
0.12575115263462067,
0.08205417543649673,
-0.06106623262166977,
0.23001103103160858,
0.29738277196884155,
0.11164790391921997,
0.09347358345985413,
0.20555607974529266,
0.06108357012271881,
-0.0517088957130909,
-0.11381466686725616,
0.2268056869506836,
0.1831570863723755,
0.13985072076320648,
0.26763883233070374,
-0.24796414375305176,
-0.08639939874410629,
0.12647387385368347,
-0.02725747413933277,
-0.2584274113178253,
0.31181231141090393,
0.06012981757521629,
0.3070545196533203,
0.14627757668495178,
-0.2055974006652832,
-0.06560708582401276,
0.3099731206893921,
-0.16937193274497986,
0.050930239260196686,
0.4050942659378052,
-0.3019103705883026,
-0.04691131412982941,
-0.07793783396482468,
-0.24463844299316406,
0.31695887446403503,
0.10275653004646301,
0.09096889942884445,
0.13041801750659943,
0.07606986910104752,
-0.0873517096042633,
0.14894890785217285,
0.27381399273872375,
-0.15505199134349823,
0.15036828815937042,
0.14635524153709412,
-0.012308991514146328,
-0.22403229773044586,
0.06603225320577621,
-0.21908164024353027,
0.37895193696022034,
-0.38922354578971863,
0.33027902245521545,
0.0908709242939949,
0.019770098850131035,
-0.4125822186470032,
-0.28434816002845764,
-0.23213359713554382,
0.0014971628552302718,
0.16708828508853912,
-0.1848984807729721,
-0.12686434388160706,
-0.0684739425778389,
0.34205207228660583,
0.23278138041496277,
0.1725662499666214,
0.29606151580810547,
-0.013493351638317108,
0.11166242510080338,
-0.3305937647819519,
0.0019323755986988544,
0.19828076660633087,
-0.14900344610214233,
0.15948642790317535,
0.10087252408266068,
-0.26571619510650635,
-0.017806341871619225,
-0.3181889057159424,
0.16429026424884796,
-0.19826027750968933,
0.2966387867927551,
0.22478801012039185,
0.18240654468536377,
-0.3565528988838196,
0.03789214417338371,
0.055685464292764664,
-0.008080647327005863,
-0.13186563551425934,
-0.030173998326063156,
-0.17177405953407288,
0.17189255356788635,
-0.09726377576589584,
-0.30413246154785156,
-0.11803045123815536,
-0.074410080909729,
0.36723601818084717,
-0.010540835559368134,
0.014780012890696526,
0.20397932827472687,
0.18892802298069,
0.11712376773357391,
0.02481330744922161,
-0.1679048389196396,
-0.012931715697050095,
-0.13661277294158936,
0.21705982089042664,
-0.002062637824565172,
-0.21715286374092102,
-0.37311941385269165,
-0.03924529626965523,
0.02912006340920925,
-0.18788106739521027,
-0.5029159188270569,
0.02552352100610733,
-0.4563644230365753,
-0.2719498872756958,
-0.22875754535198212,
0.42562589049339294,
0.08502404391765594,
-0.10879581421613693,
0.07852500677108765,
0.08286210894584656,
0.1354736089706421,
-0.033812761306762695,
-0.2376568764448166,
0.2106582075357437,
-0.40130671858787537,
0.4056994616985321,
-0.1035357266664505,
0.888210117816925,
0.34833693504333496,
-0.09707772731781006,
-0.0007673677755519748,
0.0034505894873291254,
0.36105963587760925,
-0.4532392621040344,
-0.2227279394865036,
0.2996627688407898,
-0.09419207274913788,
-0.32641544938087463,
0.26619166135787964,
0.09622376412153244,
0.43848365545272827,
0.16951313614845276,
0.053137317299842834,
0.24638396501541138,
-0.3661048114299774,
0.4002576470375061,
0.16994768381118774,
0.1683427393436432,
-0.039862535893917084,
0.0964055135846138,
-0.005765117704868317,
-0.30882132053375244,
0.08137322217226028,
-0.036756087094545364,
0.1908276528120041,
0.02909347414970398,
0.11779787391424179,
-0.34157344698905945,
-0.7532612681388855,
-0.00895355548709631,
0.1532115489244461,
0.07261443883180618,
0.14563672244548798,
-0.14994072914123535,
0.13208161294460297,
0.07809274643659592,
0.7480289340019226,
0.22800132632255554,
-0.18668709695339203,
-0.02437039278447628,
-0.04196780174970627,
-0.1549033224582672,
0.04670495167374611,
-0.34880882501602173,
-0.07221121340990067,
0.6041033864021301,
0.6499782204627991,
-0.4103459417819977,
-0.04327904433012009,
0.11843744665384293,
0.3192981481552124,
-0.11545280367136002,
0.017846932634711266,
-0.4534130394458771,
-0.027015095576643944,
-0.22393707931041718,
0.21070438623428345,
0.06875863671302795,
0.052345432341098785,
-0.15075060725212097,
-0.08437179028987885,
0.08289747685194016,
-0.09235310554504395,
0.30559009313583374,
0.3103860914707184,
0.2941123843193054,
-0.30238276720046997,
0.36695998907089233,
-0.04169541224837303,
0.1407233476638794,
0.36500680446624756,
0.32728874683380127,
-0.20096473395824432,
-0.36205536127090454,
0.2555137872695923,
-0.1160360723733902,
0.3236400783061981,
0.5161671042442322,
0.005391012877225876,
0.16001074016094208,
0.15577878057956696,
0.45751649141311646,
-0.46536731719970703,
0.5355373620986938,
0.48636090755462646,
-0.017737064510583878,
-0.5349085927009583,
-0.21123766899108887,
0.41219913959503174,
0.07217871397733688,
0.13784247636795044,
0.19062429666519165,
0.2771162688732147,
-0.3334348499774933,
0.28111714124679565,
0.01216660812497139,
1.1012877225875854,
-0.21452409029006958,
0.529549241065979,
0.11700434982776642,
0.2662312686443329,
0.6018491387367249,
-0.2290402054786682,
0.16645701229572296,
-0.3895484507083893,
-0.10805511474609375,
0.17801953852176666,
0.0635722354054451,
-0.1201988086104393,
0.022074857726693153,
-0.18034714460372925,
0.21077026426792145,
-0.0939512848854065,
0.19792625308036804,
-0.23492690920829773,
0.4142712354660034,
0.06431394070386887,
-0.38860058784484863,
-0.2565072178840637,
-0.0330815389752388,
-0.030876168981194496,
0.013263877481222153,
-0.1502639353275299,
0.04571539908647537,
-0.030023543164134026,
-0.31758350133895874,
-0.2670265734195709,
-0.17951937019824982,
-0.1207989752292633,
-0.025080809369683266,
0.18491274118423462,
-0.3685484528541565,
0.32847297191619873,
-0.06861917674541473,
0.2967183589935303,
0.5942736268043518,
-0.24109579622745514,
0.03162967413663864,
-0.17640598118305206,
0.03358714282512665,
-0.016001176089048386,
-0.06868356466293335,
0.046144697815179825,
0.05721953511238098,
0.029861167073249817,
-0.01248090248554945,
-0.0008998103439807892,
0.3430384695529938,
-0.37579500675201416,
-0.24486464262008667,
0.4503363370895386,
-0.5107024312019348,
0.024990782141685486,
-0.15064939856529236,
-0.06124947965145111,
-0.13850459456443787,
0.031661782413721085,
0.18083633482456207,
-0.2773388922214508,
0.02503574639558792,
0.02202429249882698,
-0.34293219447135925,
-0.26327401399612427,
0.1784665733575821,
0.2554323673248291,
0.03768550232052803,
0.6541034579277039,
0.3423446714878082,
-0.06585205346345901,
-0.06430899351835251,
0.39376300573349,
0.5364493727684021,
-0.5111445188522339,
0.2903212010860443,
0.1936579942703247,
-0.05047929659485817,
0.005552359391003847,
0.18929404020309448,
0.2149127870798111,
-0.2882869243621826,
-0.17830608785152435,
-0.03218887001276016,
-0.42613744735717773,
0.09593477100133896,
-0.06646367907524109,
0.1580207794904709,
0.1405065357685089,
0.3553332984447479,
-0.07148563116788864,
0.21265196800231934,
-0.15786604583263397,
0.023570073768496513,
-0.010570010170340538,
0.06252812594175339,
-0.19941002130508423,
-0.04946371540427208,
0.17447291314601898,
-0.11048205196857452,
-0.057203058153390884,
0.20218110084533691,
-0.03924693912267685,
-0.10360980778932571,
-0.2420641928911209,
0.1450629085302353,
0.012896780855953693,
-0.06298058480024338,
0.1344016194343567,
0.10398773849010468,
-0.1612371802330017,
-0.232815220952034,
0.4076182544231415,
0.07818583399057388,
0.11338760703802109,
-0.11918476223945618,
0.09421420842409134,
-0.09241324663162231,
-0.08308727294206619,
0.006390398368239403,
0.17686524987220764,
0.3059256970882416,
0.07717191427946091,
0.17202849686145782,
0.25130346417427063,
-0.0841100662946701,
0.016457801684737206,
0.2219177782535553,
0.19591130316257477,
0.10826069116592407,
0.11133766919374466,
-0.22978068888187408,
-0.08654211461544037,
0.021638553589582443,
0.23154202103614807,
0.46758705377578735,
-0.24868370592594147,
-0.20543454587459564,
0.4337887465953827,
0.11260683834552765,
-0.04127677530050278,
-0.07546457648277283,
-0.10492406785488129,
-0.21652494370937347,
-0.09062564373016357,
0.3524933457374573,
-0.0557720772922039,
0.051934614777565,
-0.11453983932733536,
0.14572007954120636,
-0.12388484179973602,
0.16272778809070587,
-0.05354809761047363,
0.6416906714439392,
-0.003755664685741067,
0.09960959106683731,
0.2106967568397522,
0.05253450199961662,
0.2626218795776367,
0.6772091388702393,
0.18488138914108276,
0.15085604786872864,
-0.42155221104621887,
0.08044242113828659,
-0.14945976436138153,
-0.5071748495101929,
-0.48762157559394836,
0.10390298813581467,
-0.17185941338539124,
0.3066624104976654,
-0.14844805002212524,
0.5831759572029114,
-0.09195543825626373,
-0.22201405465602875,
-0.13166560232639313,
-0.03544079512357712,
-0.2864600121974945,
-0.09657756239175797,
0.16605643928050995,
-0.13353142142295837,
0.13584651052951813,
0.2186133712530136,
-0.13285960257053375,
0.044625137001276016,
-0.03613898903131485,
0.08609379827976227,
-0.07282397150993347,
0.0552886426448822,
-0.21371343731880188,
0.17813782393932343,
0.1519746035337448,
-0.23927459120750427,
0.2329530119895935,
0.0016599447699263692,
-0.010798495262861252,
-0.254952609539032,
0.31913459300994873,
0.48273178935050964,
0.3858773112297058,
-0.2447325736284256,
0.22694894671440125,
0.1933881640434265,
0.04814527928829193,
-0.06902727484703064,
0.13357298076152802,
0.3105466663837433,
0.1057753786444664,
0.06401760131120682,
-0.03371666744351387,
-0.13936226069927216,
-0.16205011308193207,
0.1474624127149582,
0.08714831620454788,
-0.12557069957256317,
0.2617918848991394,
-0.16873838007450104,
-0.13732658326625824,
-0.27533960342407227,
0.010097595863044262,
-0.7297048568725586,
0.5182317495346069,
0.4826718270778656,
-0.03653984144330025,
0.10117051750421524,
-0.09451492875814438,
0.004882293287664652,
-0.12106690555810928,
0.5459299087524414,
0.4561132490634918,
0.04383055865764618,
-0.42085015773773193,
0.022986341267824173,
-0.27339375019073486,
0.2850801646709442,
-0.3483310639858246,
0.22945627570152283,
-0.15127280354499817,
-0.07497961819171906,
0.03982442617416382,
-0.08093434572219849,
-0.05868056043982506,
-0.23288626968860626,
-0.6350173354148865,
0.21645015478134155,
-0.1353760063648224,
-0.250829815864563,
-0.31143811345100403,
-0.0002752150467131287,
-0.07198319584131241,
-0.27021655440330505,
0.4331169128417969,
0.0030059008859097958,
-0.1167682558298111,
0.014451530762016773,
0.2491120547056198,
-0.1884375661611557,
0.11537022888660431,
0.2229570746421814,
0.30030474066734314,
0.05881039798259735,
0.002534642117097974,
-0.22317543625831604,
-0.2673763632774353,
0.11543001234531403,
-0.11285077780485153,
0.10925183445215225,
0.25297558307647705,
0.3821108639240265,
-0.28191977739334106,
-0.28460896015167236,
-0.4440237581729889,
0.16056707501411438,
0.3504858613014221,
-0.18554724752902985,
-0.25078949332237244,
0.1337047517299652,
-0.1008123904466629,
-0.0683625116944313,
0.03406459838151932,
0.4943028688430786,
-0.08249250799417496,
-0.041654374450445175,
-0.340887188911438,
-0.23514503240585327,
0.46027565002441406,
-0.30195096135139465,
-0.3991837799549103,
-0.23789724707603455,
0.06698443740606308,
0.2551594376564026,
-0.2525520920753479,
-0.8035457730293274,
0.10776519775390625,
0.13089865446090698,
-0.009748335927724838,
-0.4651966989040375,
0.13870136439800262,
-0.0748908668756485,
-0.14063690602779388,
-0.19191253185272217,
0.6681405901908875,
0.06042361259460449,
-0.15831245481967926,
0.42592060565948486,
-0.2587258815765381
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | > First I think we should disable padding in the dataset processing and let the data collator do it.
No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching.
For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script. | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 91 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
> First I think we should disable padding in the dataset processing and let the data collator do it.
No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching.
For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script. | [
-0.24492309987545013,
-0.4394877254962921,
0.11735696345567703,
0.3189444839954376,
0.5710245966911316,
-0.17657695710659027,
0.2565918266773224,
0.42917540669441223,
-0.3390790522098541,
0.15733583271503448,
-0.06757251173257828,
-0.20117205381393433,
-0.3087226152420044,
0.1915093958377838,
0.1266336590051651,
-0.14788930118083954,
0.06981899589300156,
0.17317385971546173,
-0.12523502111434937,
-0.22146885097026825,
-0.00031534527079202235,
0.03496963158249855,
0.24222680926322937,
0.17850039899349213,
-0.5778365135192871,
0.07625613361597061,
-0.07158099114894867,
0.011026233434677124,
-0.3461948335170746,
-0.034851547330617905,
0.09941338747739792,
-0.2865827977657318,
0.20106756687164307,
0.5267565846443176,
-0.0001265749306185171,
-0.041131746023893356,
0.15176016092300415,
-0.0826687291264534,
0.04614034295082092,
0.1951691061258316,
0.1975022554397583,
-0.08568219840526581,
-0.1636206954717636,
0.07720579206943512,
0.18405261635780334,
-0.08896496146917343,
-0.025129718706011772,
-0.003593764267861843,
0.37038370966911316,
0.22735120356082916,
0.0814753845334053,
0.2212548404932022,
-0.023742487654089928,
0.0711173340678215,
0.2784281373023987,
0.28877055644989014,
-0.08184045553207397,
-0.05092013627290726,
0.2467285543680191,
-0.21629950404167175,
-0.07551822811365128,
0.11387195438146591,
0.0970575287938118,
-0.13825693726539612,
0.29425838589668274,
0.2418760508298874,
-0.09015993028879166,
-0.43374139070510864,
0.22686335444450378,
0.44426292181015015,
-0.003812509123235941,
-0.3651983439922333,
-0.3235093355178833,
-0.4126269519329071,
0.20021864771842957,
-0.46952974796295166,
0.09317193925380707,
0.157283753156662,
-0.17085666954517365,
0.0714479461312294,
-0.304210901260376,
-0.33769407868385315,
-0.26050108671188354,
-0.06027033552527428,
-0.18918319046497345,
0.007234532386064529,
-0.20470735430717468,
-0.12976503372192383,
0.025829756632447243,
-0.08981013298034668,
-0.2813791036605835,
0.0086459219455719,
-0.005477882921695709,
0.23293033242225647,
-0.08753427863121033,
-0.295380562543869,
-0.08205673843622208,
-0.32091251015663147,
0.27843618392944336,
-0.48080384731292725,
-0.19114720821380615,
-0.42344099283218384,
-0.12176291644573212,
-0.41227200627326965,
0.4198240041732788,
0.4721467196941376,
-0.44052523374557495,
0.1479228138923645,
0.18130278587341309,
0.014090047217905521,
-0.11942065507173538,
-0.04084125906229019,
-0.12773089110851288,
0.08682908862829208,
0.09282843768596649,
-0.40297719836235046,
0.039300188422203064,
-0.23542585968971252,
-0.047266777604818344,
0.3343818485736847,
-0.24213601648807526,
0.16467724740505219,
-0.014944493770599365,
0.3203732371330261,
-0.09538563340902328,
0.2072838991880417,
0.0915631353855133,
0.010971439070999622,
-0.4334855377674103,
0.028075333684682846,
-0.09207600355148315,
0.07048061490058899,
-0.23146024346351624,
0.18550562858581543,
0.056261979043483734,
0.07756496965885162,
-0.013214867562055588,
-0.060012638568878174,
0.3360012471675873,
-0.06065667048096657,
0.031535230576992035,
-0.24499477446079254,
0.14178486168384552,
0.21858175098896027,
-0.17209485173225403,
0.38733214139938354,
-0.037259541451931,
0.12478338181972504,
-0.06762508302927017,
0.10889679193496704,
-0.1717199981212616,
-0.5269574522972107,
-0.05583469942212105,
0.0992494598031044,
-0.06328460574150085,
0.2949821650981903,
-0.10479825735092163,
0.39643242955207825,
0.46083229780197144,
-0.034245915710926056,
-0.03376514092087746,
-0.20152020454406738,
-0.24321052432060242,
-0.02633783221244812,
0.4121341407299042,
0.4938148260116577,
-0.5112316608428955,
-0.15737631916999817,
-0.240030899643898,
0.25836870074272156,
0.3261885643005371,
0.6362030506134033,
-0.055986613035202026,
0.6048204898834229,
-0.24778860807418823,
0.12495745718479156,
-0.3070099949836731,
0.28273966908454895,
-0.41845574975013733,
0.3741450309753418,
-0.04610069468617439,
-0.04736912623047829,
0.1415734738111496,
-0.05004298686981201,
0.21294787526130676,
-0.0024276322219520807,
0.3216818571090698,
0.04870910570025444,
-0.21029365062713623,
0.10447049885988235,
-0.36380818486213684,
-0.4317643642425537,
-0.2797996401786804,
0.09064789861440659,
0.1936856359243393,
-0.11616760492324829,
-0.3184915781021118,
0.625088632106781,
0.0562414713203907,
-0.10044559091329575,
0.1612388789653778,
0.35033637285232544,
0.015347559936344624,
-0.049900732934474945,
0.04809015244245529,
-0.06072571501135826,
-0.26620081067085266,
0.017563950270414352,
-0.3042602241039276,
0.24254228174686432,
0.12028241902589798,
-0.2763029634952545,
-0.020357605069875717,
-0.06171371787786484,
0.1419869363307953,
-0.1604047417640686,
0.0006386252352967858,
-0.1866592913866043,
-0.08401559293270111,
-0.02311142161488533,
-0.058522749692201614,
-0.04717794805765152,
0.011355338618159294,
0.023685473948717117,
-0.4993109107017517,
-0.014662785455584526,
0.007761817425489426,
-0.18259572982788086,
-0.035643018782138824,
0.35758090019226074,
-0.13427618145942688,
0.03898879140615463,
-0.12328340858221054,
0.16634154319763184,
0.08921457827091217,
0.13772882521152496,
-0.07223757356405258,
0.3133116364479065,
0.29545271396636963,
0.05097378045320511,
0.08417528867721558,
0.24687643349170685,
0.059543829411268234,
-0.07477769255638123,
-0.14488919079303741,
0.15931466221809387,
0.16430486738681793,
0.116480752825737,
0.2938348650932312,
-0.24981224536895752,
-0.1497594714164734,
0.06342510879039764,
-0.03764868155121803,
-0.21555446088314056,
0.2923840880393982,
0.041380155831575394,
0.30771949887275696,
0.20180493593215942,
-0.17229270935058594,
-0.07771002501249313,
0.33626365661621094,
-0.20027773082256317,
0.02669629640877247,
0.47851771116256714,
-0.27614521980285645,
-0.09273591637611389,
-0.14043684303760529,
-0.22919458150863647,
0.31582126021385193,
0.09738555550575256,
0.0808686837553978,
0.11552425473928452,
0.1317075937986374,
-0.08297093212604523,
0.17523705959320068,
0.33042725920677185,
-0.1765459179878235,
0.1896955370903015,
0.12552659213542938,
0.10038765519857407,
-0.18470542132854462,
0.03161957487463951,
-0.24091556668281555,
0.34978142380714417,
-0.38094642758369446,
0.28912386298179626,
0.09350866079330444,
0.01976006105542183,
-0.4174822270870209,
-0.21461059153079987,
-0.2094574272632599,
0.05369273200631142,
0.20304478704929352,
-0.18450626730918884,
-0.13468381762504578,
-0.05259072780609131,
0.4098623991012573,
0.29637619853019714,
0.13963176310062408,
0.2047358602285385,
-0.03466863930225372,
0.12420354038476944,
-0.3263194262981415,
-0.007629630155861378,
0.1608233004808426,
-0.1400023251771927,
0.11287330090999603,
0.0829424262046814,
-0.20214389264583588,
0.05334187671542168,
-0.3232710659503937,
0.17986802756786346,
-0.19531619548797607,
0.23581978678703308,
0.1865127831697464,
0.21585464477539062,
-0.3509801924228668,
0.03460981696844101,
-0.01802472397685051,
-0.08354159444570541,
-0.09088674932718277,
0.001270717941224575,
-0.1416144073009491,
0.1193026602268219,
-0.09180718660354614,
-0.363254189491272,
-0.08064592629671097,
-0.09250131994485855,
0.3361850678920746,
-0.05783521384000778,
0.012479517608880997,
0.17886097729206085,
0.2201022505760193,
0.11980326473712921,
-0.0008887986186891794,
-0.15027131140232086,
0.06517193466424942,
-0.09148529917001724,
0.209701269865036,
0.022297106683254242,
-0.2280716747045517,
-0.3884096145629883,
-0.04950525984168053,
0.0034499007742851973,
-0.1507953256368637,
-0.5319610238075256,
0.042844388633966446,
-0.4780925214290619,
-0.26157891750335693,
-0.2581436038017273,
0.4361441135406494,
0.17854969203472137,
-0.05562308430671692,
0.06517288088798523,
0.09482695162296295,
0.08552878350019455,
-0.06538035720586777,
-0.23834551870822906,
0.16570007801055908,
-0.40903082489967346,
0.31041139364242554,
-0.12789206206798553,
0.891873836517334,
0.2818322479724884,
-0.030153954401612282,
-0.023294473066926003,
-0.022820867598056793,
0.37913745641708374,
-0.42292773723602295,
-0.14718207716941833,
0.26816073060035706,
-0.08133940398693085,
-0.3361058533191681,
0.31713709235191345,
0.13550832867622375,
0.40414512157440186,
0.1233600452542305,
0.05801520496606827,
0.2295859009027481,
-0.3638528287410736,
0.4420798718929291,
0.1802273392677307,
0.16802652180194855,
-0.04285266995429993,
0.08005931973457336,
0.018766267225146294,
-0.32273027300834656,
0.04025694355368614,
-0.05411161482334137,
0.20840442180633545,
0.0055819228291511536,
0.14339296519756317,
-0.3114245533943176,
-0.7348176836967468,
-0.06941773742437363,
0.15143190324306488,
0.004125878214836121,
0.12986814975738525,
-0.1483124941587448,
0.13314448297023773,
0.05917754024267197,
0.7799113988876343,
0.24423524737358093,
-0.18084834516048431,
-0.017140040174126625,
-0.1189841777086258,
-0.1900433599948883,
0.07657475769519806,
-0.3629525899887085,
-0.10968267917633057,
0.5771885514259338,
0.6488317847251892,
-0.38226935267448425,
-0.059770241379737854,
0.09835134446620941,
0.33697614073753357,
-0.10647476464509964,
-0.002854535123333335,
-0.4241299629211426,
-0.04823649674654007,
-0.20513293147087097,
0.2068948894739151,
0.12536807358264923,
0.042704567313194275,
-0.15018245577812195,
-0.06684141606092453,
0.10602883994579315,
-0.0546179823577404,
0.28294438123703003,
0.32702115178108215,
0.2913772761821747,
-0.3086840510368347,
0.3943774402141571,
-0.032128896564245224,
0.040723226964473724,
0.3370809853076935,
0.2501644790172577,
-0.22707043588161469,
-0.3491242229938507,
0.28434810042381287,
-0.06047277897596359,
0.299170583486557,
0.5100071430206299,
-0.02803618647158146,
0.10720881074666977,
0.13043029606342316,
0.4783915579319,
-0.4216320514678955,
0.44754961133003235,
0.4779142439365387,
-0.04559822753071785,
-0.48163512349128723,
-0.20874740183353424,
0.4050309658050537,
0.09200774133205414,
0.14929451048374176,
0.16798938810825348,
0.26243478059768677,
-0.3083887994289398,
0.33867084980010986,
-0.027618486434221268,
1.140523910522461,
-0.25701236724853516,
0.607317328453064,
0.10812623798847198,
0.2599501311779022,
0.6181570887565613,
-0.26228803396224976,
0.1768556833267212,
-0.3545399010181427,
-0.1569012701511383,
0.19055357575416565,
0.054593272507190704,
-0.1465182602405548,
0.0966973751783371,
-0.20471596717834473,
0.203512504696846,
-0.09373678267002106,
0.18885654211044312,
-0.22858813405036926,
0.3655283749103546,
0.12256765365600586,
-0.42320987582206726,
-0.2664300203323364,
-0.0459933876991272,
-0.05118430405855179,
0.06399545818567276,
-0.1379387378692627,
0.07546834647655487,
-0.018139058724045753,
-0.29613906145095825,
-0.2930019497871399,
-0.15322428941726685,
-0.07355332374572754,
-0.09203418344259262,
0.24863620102405548,
-0.2898266911506653,
0.3593745529651642,
0.01140599325299263,
0.22156277298927307,
0.6132359504699707,
-0.2659585475921631,
0.06433998048305511,
-0.16606123745441437,
0.02612815797328949,
-0.02317684143781662,
-0.02078923210501671,
0.048474617302417755,
0.04874689504504204,
0.021407103165984154,
-0.04092850536108017,
-0.01565581001341343,
0.3132303059101105,
-0.3416116535663605,
-0.21260695159435272,
0.47889378666877747,
-0.4908945858478546,
0.034522853791713715,
-0.09679261595010757,
-0.10157094150781631,
-0.13028430938720703,
0.032182782888412476,
0.13768306374549866,
-0.28994226455688477,
0.09583982080221176,
0.027761055156588554,
-0.3693690896034241,
-0.24275895953178406,
0.23257581889629364,
0.28116869926452637,
0.0055729905143380165,
0.6309414505958557,
0.31983682513237,
-0.05060431733727455,
-0.09400107711553574,
0.359188050031662,
0.4548470973968506,
-0.5871472954750061,
0.32310572266578674,
0.18270578980445862,
-0.07760971784591675,
0.04166313633322716,
0.1862027794122696,
0.2471882551908493,
-0.26867327094078064,
-0.1792813241481781,
0.004179655108600855,
-0.44336166977882385,
0.08340127766132355,
0.05417872220277786,
0.16332361102104187,
0.19131052494049072,
0.3379994034767151,
0.011527457274496555,
0.20288871228694916,
-0.14761672914028168,
0.018498370423913002,
-0.01587514393031597,
0.056517455726861954,
-0.18893176317214966,
-0.08430717140436172,
0.21425025165081024,
-0.11004713177680969,
-0.07873687148094177,
0.24632158875465393,
-0.03654837980866432,
-0.10035780817270279,
-0.2585125267505646,
0.16443277895450592,
0.011617274954915047,
-0.09327588230371475,
0.07466064393520355,
0.12242604792118073,
-0.1858927607536316,
-0.29256489872932434,
0.4265335500240326,
0.10714895278215408,
0.10571008175611496,
-0.1591506004333496,
0.15001685917377472,
-0.11145997792482376,
-0.14536413550376892,
0.02557593211531639,
0.20136627554893494,
0.27043068408966064,
0.08757495880126953,
0.16924846172332764,
0.23382584750652313,
-0.10961399972438812,
-0.01592210680246353,
0.22439998388290405,
0.28486230969429016,
0.155661478638649,
0.10207660496234894,
-0.17079681158065796,
-0.10299905389547348,
-0.0018229098059237003,
0.20423325896263123,
0.4692019522190094,
-0.2532437741756439,
-0.22593459486961365,
0.4052751660346985,
0.09928979724645615,
-0.052645549178123474,
-0.09935236722230911,
-0.13449572026729584,
-0.1887049674987793,
-0.10916213691234589,
0.33166807889938354,
-0.08643397688865662,
0.04548115283250809,
-0.049516547471284866,
0.15290352702140808,
-0.06073111295700073,
0.14288486540317535,
-0.021119704470038414,
0.6312291026115417,
-0.005785874091088772,
0.08527138829231262,
0.15758922696113586,
0.06308741122484207,
0.2630431354045868,
0.6118052005767822,
0.24052515625953674,
0.1666042059659958,
-0.4917713701725006,
0.08646133542060852,
-0.18387547135353088,
-0.5297773480415344,
-0.44317811727523804,
0.12679502367973328,
-0.10188253968954086,
0.306904673576355,
-0.15979576110839844,
0.5299900770187378,
-0.08972625434398651,
-0.23195090889930725,
-0.16531673073768616,
-0.05834798514842987,
-0.2386588454246521,
-0.10734222084283829,
0.3041739761829376,
-0.09967045485973358,
0.18220949172973633,
0.2335483729839325,
-0.11556702852249146,
0.03173588588833809,
-0.01198338158428669,
0.12589171528816223,
-0.07497422397136688,
0.12504708766937256,
-0.22414056956768036,
0.15383219718933105,
0.13881953060626984,
-0.20755726099014282,
0.2348943054676056,
-0.02609473466873169,
0.01956307701766491,
-0.2605033218860626,
0.34081190824508667,
0.447200745344162,
0.369203120470047,
-0.2102324366569519,
0.2285749465227127,
0.19359703361988068,
0.06889480352401733,
-0.04676090553402901,
0.1994188278913498,
0.28606098890304565,
0.18853437900543213,
0.04347837716341019,
-0.05069547891616821,
-0.14867395162582397,
-0.11822642385959625,
0.1432497203350067,
0.07859998196363449,
-0.17583756148815155,
0.2510382831096649,
-0.11437167972326279,
-0.20286014676094055,
-0.2750481367111206,
0.0261965524405241,
-0.6956097483634949,
0.5344955325126648,
0.4925585389137268,
-0.048054683953523636,
0.10111372917890549,
-0.047488272190093994,
-0.0031144018284976482,
-0.05629124864935875,
0.5935713648796082,
0.4852709174156189,
0.0755331739783287,
-0.3850584030151367,
0.049233049154281616,
-0.2965462803840637,
0.2927156686782837,
-0.3322427272796631,
0.319203644990921,
-0.07131025940179825,
-0.10959966480731964,
-0.014767584390938282,
-0.08699677139520645,
-0.0745084211230278,
-0.24968820810317993,
-0.6370695233345032,
0.15847091376781464,
-0.13585102558135986,
-0.23814080655574799,
-0.25153741240501404,
0.02697739377617836,
-0.047562964260578156,
-0.3367348611354828,
0.3873046040534973,
0.04777761548757553,
-0.10690903663635254,
-0.032337263226509094,
0.21245327591896057,
-0.1892137974500656,
0.17318253219127655,
0.1958436816930771,
0.27027711272239685,
0.020276842638850212,
0.016923436895012856,
-0.17433813214302063,
-0.3229994773864746,
0.13474710285663605,
-0.09191104024648666,
0.05750734731554985,
0.2862853705883026,
0.3036932945251465,
-0.33949846029281616,
-0.26404261589050293,
-0.42437735199928284,
0.053734879940748215,
0.3286547064781189,
-0.16400183737277985,
-0.18378488719463348,
0.056817058473825455,
-0.08630598336458206,
-0.03455422818660736,
0.05834304168820381,
0.5320753455162048,
-0.14581862092018127,
-0.08057411015033722,
-0.37624526023864746,
-0.21002858877182007,
0.44528627395629883,
-0.34003782272338867,
-0.4382004737854004,
-0.22180457413196564,
0.036118634045124054,
0.19986797869205475,
-0.23387165367603302,
-0.75688236951828,
0.12111297994852066,
0.12666158378124237,
0.019304340705275536,
-0.47976818680763245,
0.15737628936767578,
-0.13839274644851685,
-0.16036821901798248,
-0.1602216511964798,
0.7219981551170349,
0.08236067742109299,
-0.17499414086341858,
0.4088815450668335,
-0.27129942178726196
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | Oh yes right..
Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ? | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 25 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
Oh yes right..
Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ? | [
-0.1584593802690506,
-0.32274940609931946,
0.11426511406898499,
0.2783169150352478,
0.6050810813903809,
-0.08939453214406967,
0.36650463938713074,
0.37571367621421814,
-0.25044044852256775,
0.16443227231502533,
-0.06106586381793022,
-0.08094025403261185,
-0.3737187683582306,
0.1472705900669098,
0.14738152921199799,
0.03244008496403694,
0.13914111256599426,
0.13548673689365387,
-0.07737313210964203,
-0.24713768064975739,
0.019477061927318573,
-0.03092777729034424,
0.24246671795845032,
0.19485218822956085,
-0.547697901725769,
0.09979328513145447,
-0.03192434459924698,
-0.030726280063390732,
-0.4810985028743744,
-0.1251825988292694,
0.10056742280721664,
-0.24837584793567657,
0.1287238448858261,
0.4240878224372864,
-0.00012953933037351817,
-0.018199022859334946,
0.14128419756889343,
-0.08144458383321762,
0.05100742727518082,
0.192646324634552,
0.07134711742401123,
-0.0778830498456955,
-0.15978409349918365,
0.08114056289196014,
0.20664562284946442,
-0.10239485651254654,
0.035403769463300705,
-0.0794183686375618,
0.32471466064453125,
0.14475174248218536,
0.06381931900978088,
0.11435036361217499,
-0.034890323877334595,
0.07471121102571487,
0.3187432587146759,
0.2770513594150543,
-0.07556372880935669,
0.0055223749950528145,
0.18703889846801758,
-0.22821392118930817,
-0.07464823126792908,
0.2356298863887787,
0.07751671224832535,
-0.20151130855083466,
0.3477512001991272,
0.25552213191986084,
-0.011827263981103897,
-0.3913119435310364,
0.2150571346282959,
0.33435675501823425,
-0.00593841727823019,
-0.36918947100639343,
-0.28155097365379333,
-0.47592347860336304,
0.15073467791080475,
-0.3983699381351471,
0.06763362139463425,
0.12646426260471344,
-0.0999668762087822,
0.11645067483186722,
-0.32566705346107483,
-0.4626319110393524,
-0.21519483625888824,
-0.042148441076278687,
-0.1925981342792511,
0.04990154504776001,
-0.2066260427236557,
-0.11627072095870972,
-0.06090618297457695,
-0.12378443777561188,
-0.26899370551109314,
-0.07285565882921219,
0.018144875764846802,
0.24703070521354675,
0.03554048016667366,
-0.3357771337032318,
-0.04862347990274429,
-0.4003136157989502,
0.3179067075252533,
-0.5198048949241638,
-0.1670583039522171,
-0.3840145766735077,
-0.28229403495788574,
-0.30929800868034363,
0.4190124273300171,
0.40082666277885437,
-0.37863296270370483,
0.2864234149456024,
0.14743565022945404,
0.014389767311513424,
-0.09818773716688156,
-0.08723607659339905,
-0.1584562361240387,
0.15296711027622223,
0.08890338242053986,
-0.36633339524269104,
0.07947397977113724,
-0.24285255372524261,
-0.11945009231567383,
0.4220166802406311,
-0.3422696888446808,
0.23827622830867767,
0.021172642707824707,
0.32712322473526,
-0.1095508486032486,
0.08152329176664352,
-0.018698979169130325,
0.042827095836400986,
-0.36232227087020874,
0.06961659342050552,
-0.057544250041246414,
-0.008136225864291191,
-0.16749252378940582,
0.18304355442523956,
-0.00435224873945117,
0.08699040114879608,
0.09235440939664841,
-0.06373834609985352,
0.24531437456607819,
-0.026941394433379173,
0.07498799264431,
-0.23835596442222595,
0.21998460590839386,
0.1590299904346466,
-0.21992003917694092,
0.44608885049819946,
-0.03568900376558304,
0.02703973464667797,
-0.06633790582418442,
0.10650397092103958,
-0.28451088070869446,
-0.5047078132629395,
-0.0448395274579525,
0.08486682176589966,
0.013394310139119625,
0.2874852418899536,
-0.10682988911867142,
0.3798874318599701,
0.49368590116500854,
-0.06471113860607147,
0.04655766859650612,
-0.16420775651931763,
-0.31961533427238464,
-0.012097946368157864,
0.3641357719898224,
0.381182998418808,
-0.48375898599624634,
-0.19461186230182648,
-0.16948658227920532,
0.24518918991088867,
0.2841441333293915,
0.623135507106781,
-0.058199238032102585,
0.5801353454589844,
-0.28976520895957947,
0.28611186146736145,
-0.26038241386413574,
0.22891540825366974,
-0.45802628993988037,
0.3011763095855713,
-0.02318108268082142,
-0.010198225267231464,
0.03773031011223793,
-0.1035018116235733,
0.2780754566192627,
-0.01870873011648655,
0.4887705445289612,
-0.04056748375296593,
-0.19372646510601044,
0.04839027300477028,
-0.34716448187828064,
-0.39096254110336304,
-0.2233014702796936,
-0.030192077159881592,
0.17552927136421204,
-0.1729310005903244,
-0.2678876519203186,
0.5790894627571106,
0.17351096868515015,
-0.06456679850816727,
0.2249487042427063,
0.32495811581611633,
0.12686800956726074,
-0.03760455176234245,
0.037734564393758774,
-0.10639766603708267,
-0.18409647047519684,
0.0007459500920958817,
-0.26248523592948914,
0.19736702740192413,
0.060528967529535294,
-0.3366335332393646,
-0.027903161942958832,
-0.030360504984855652,
0.05222787335515022,
-0.14900526404380798,
-0.009615856222808361,
-0.243294820189476,
-0.16884541511535645,
0.12207785248756409,
-0.04867607727646828,
-0.1587255895137787,
-0.07926454395055771,
0.05639027804136276,
-0.3761588931083679,
-0.00596192292869091,
0.028798038139939308,
-0.16117656230926514,
-0.09674251079559326,
0.3295547366142273,
-0.1723220944404602,
-0.004965968430042267,
-0.07971718907356262,
0.13598422706127167,
0.11034219712018967,
0.10882630199193954,
-0.16414891183376312,
0.3137364685535431,
0.3106912672519684,
0.09417308866977692,
0.04822568595409393,
0.21865907311439514,
0.012098562903702259,
-0.09836691617965698,
-0.19089286029338837,
0.18030312657356262,
0.208724245429039,
0.0652376115322113,
0.17507030069828033,
-0.2777833342552185,
-0.07792100310325623,
0.11876420676708221,
-0.08124716579914093,
-0.3290862739086151,
0.25859254598617554,
0.04744414612650871,
0.2946567237377167,
0.19832156598567963,
-0.14921835064888,
-0.07549552619457245,
0.316571444272995,
-0.16172249615192413,
0.037167083472013474,
0.3789632320404053,
-0.3250769078731537,
-0.09435058385133743,
-0.004581455606967211,
-0.310589462518692,
0.29050764441490173,
0.04628871753811836,
0.13456711173057556,
0.09405571222305298,
0.11507222801446915,
-0.06172581762075424,
0.18565934896469116,
0.21066078543663025,
-0.1262028068304062,
0.20953045785427094,
0.19208255410194397,
-0.0009268298745155334,
-0.2589700520038605,
0.13656087219715118,
-0.15726611018180847,
0.28989869356155396,
-0.35947972536087036,
0.22821466624736786,
0.07559352368116379,
0.026527071371674538,
-0.38851815462112427,
-0.22840821743011475,
-0.15282076597213745,
0.033125050365924835,
0.25426360964775085,
-0.1518005132675171,
-0.15186059474945068,
-0.01589983142912388,
0.30296409130096436,
0.3114877939224243,
0.24149715900421143,
0.2074393630027771,
0.015307918190956116,
0.12333273887634277,
-0.2894177734851837,
-0.031588632613420486,
0.1572476327419281,
-0.23570919036865234,
0.12228969484567642,
0.1127198338508606,
-0.2993732690811157,
-0.08174505084753036,
-0.29532888531684875,
0.20148053765296936,
-0.16485613584518433,
0.196104496717453,
0.2442871630191803,
0.12523162364959717,
-0.38741225004196167,
0.10482025891542435,
0.012835921719670296,
0.003478033933788538,
-0.13483364880084991,
-0.11365955322980881,
-0.07705464959144592,
0.1489090472459793,
-0.08062142133712769,
-0.27523037791252136,
-0.07245752215385437,
-0.0015945129562169313,
0.3967806398868561,
-0.03822469711303711,
0.005939614027738571,
0.1984383463859558,
0.2022283375263214,
0.09550753235816956,
-0.06750623136758804,
-0.19601188600063324,
-0.0069530438631772995,
-0.22214648127555847,
0.2693299651145935,
-0.020077180117368698,
-0.1803518384695053,
-0.3509809374809265,
-0.03677253797650337,
-0.03915826976299286,
-0.14396251738071442,
-0.5498436689376831,
0.10428059101104736,
-0.34756791591644287,
-0.21242985129356384,
-0.18695692718029022,
0.32366904616355896,
0.16212543845176697,
-0.027823204174637794,
0.09540147334337234,
0.07705474644899368,
0.07411345094442368,
-0.04607783257961273,
-0.15300273895263672,
0.22592850029468536,
-0.3670659363269806,
0.30846306681632996,
-0.0015537673607468605,
0.8413870930671692,
0.2584565579891205,
0.059178248047828674,
0.017511630430817604,
-0.03641356900334358,
0.4315398633480072,
-0.42160606384277344,
-0.19537143409252167,
0.2533494532108307,
-0.1266721934080124,
-0.3854462802410126,
0.3003964126110077,
0.15153205394744873,
0.3678121566772461,
0.24889932572841644,
0.0220233965665102,
0.34771573543548584,
-0.36864951252937317,
0.43263861536979675,
0.008607743307948112,
0.12010563164949417,
0.03945620730519295,
0.1065802350640297,
-0.027605531737208366,
-0.34502264857292175,
0.12100938707590103,
-0.11880999058485031,
0.24717429280281067,
-0.013874361291527748,
0.07470014691352844,
-0.21143169701099396,
-0.805539608001709,
-0.07938569784164429,
0.1710192710161209,
0.018114184960722923,
0.10243125259876251,
-0.07023531943559647,
0.14389877021312714,
0.10945763438940048,
0.7522369027137756,
0.14853231608867645,
-0.14663589000701904,
-0.07310345023870468,
-0.03209223970770836,
-0.1479644477367401,
-0.007332001347094774,
-0.31750163435935974,
-0.008026335388422012,
0.5544765591621399,
0.8051592111587524,
-0.38374873995780945,
-0.014599280431866646,
0.012789230793714523,
0.2712613046169281,
-0.16306328773498535,
0.046595409512519836,
-0.3782886862754822,
0.033482763916254044,
-0.18056438863277435,
0.1646660417318344,
0.15064620971679688,
0.04843450337648392,
-0.036495715379714966,
-0.13831473886966705,
0.03614266589283943,
-0.046269576996564865,
0.3272375762462616,
0.18011592328548431,
0.30792126059532166,
-0.26901838183403015,
0.37926435470581055,
0.022727804258465767,
0.14553822576999664,
0.363251268863678,
0.27829158306121826,
-0.2656794786453247,
-0.3319883346557617,
0.20269250869750977,
-0.17059272527694702,
0.3661514222621918,
0.5202789902687073,
-0.019919155165553093,
0.164669930934906,
0.14098714292049408,
0.38794752955436707,
-0.5066108703613281,
0.5397734045982361,
0.5001416802406311,
-0.015558303333818913,
-0.5173017382621765,
-0.2605225145816803,
0.32421043515205383,
0.089011050760746,
0.10869866609573364,
0.21835766732692719,
0.17541134357452393,
-0.41988277435302734,
0.3800751566886902,
0.05823909491300583,
1.0927494764328003,
-0.28207334876060486,
0.6457762718200684,
0.08569350838661194,
0.3474426567554474,
0.6195517182350159,
-0.39198288321495056,
0.1663231998682022,
-0.3371165990829468,
-0.16507777571678162,
0.12396519631147385,
0.08796051144599915,
-0.17084208130836487,
0.05176524072885513,
-0.14401251077651978,
0.1905905306339264,
-0.03157782554626465,
0.3619604706764221,
-0.26509082317352295,
0.2576603293418884,
0.12457405030727386,
-0.3357917070388794,
-0.21875779330730438,
-0.06758948415517807,
0.08155079185962677,
0.0012555376160889864,
-0.1550392210483551,
0.06623059511184692,
0.013988800346851349,
-0.3324240744113922,
-0.273244708776474,
-0.18586981296539307,
-0.10231014341115952,
0.033413562923669815,
0.2606479823589325,
-0.2193477600812912,
0.26652389764785767,
0.014916833490133286,
0.1957244575023651,
0.6118080615997314,
-0.27479803562164307,
-0.007397107779979706,
-0.14161023497581482,
0.03222476318478584,
-0.055413391441106796,
-0.10506704449653625,
0.027845634147524834,
0.12154074758291245,
0.10151989758014679,
0.010179216042160988,
-0.051777537912130356,
0.24964003264904022,
-0.4359845221042633,
-0.17438210546970367,
0.5185424089431763,
-0.5724601745605469,
-0.06095220148563385,
-0.16614864766597748,
-0.055382221937179565,
-0.10673512518405914,
0.0033899489790201187,
0.12298502773046494,
-0.23769089579582214,
0.07196051627397537,
0.04815634340047836,
-0.3586067855358124,
-0.19368068873882294,
0.3084656298160553,
0.1919230967760086,
0.05007106438279152,
0.6962026357650757,
0.1818850189447403,
-0.06953030079603195,
-0.04646272584795952,
0.40559425950050354,
0.5893692970275879,
-0.3776431083679199,
0.2560920715332031,
0.14960132539272308,
-0.09497864544391632,
-0.10040957480669022,
0.1920965611934662,
0.24291133880615234,
-0.25992995500564575,
-0.1791062355041504,
-0.04942639172077179,
-0.46658000349998474,
0.07210708409547806,
0.0032248401548713446,
0.16648833453655243,
0.13965599238872528,
0.32373276352882385,
-0.06663574278354645,
0.1534442901611328,
-0.12482409924268723,
0.09316089004278183,
-0.023891711607575417,
0.10163763165473938,
-0.28985658288002014,
0.002201596274971962,
0.1709149032831192,
-0.1663367748260498,
-0.09852787107229233,
0.2696661651134491,
0.014739692211151123,
-0.06437405943870544,
-0.2574068009853363,
0.17161566019058228,
0.05130926892161369,
-0.04145202413201332,
0.15218335390090942,
0.07730455696582794,
-0.12617070972919464,
-0.30966436862945557,
0.39143824577331543,
0.19167497754096985,
0.14035063982009888,
-0.22744780778884888,
0.14552678167819977,
-0.08630096167325974,
-0.13042788207530975,
0.04122232645750046,
0.189966082572937,
0.32334786653518677,
-0.03048957698047161,
0.16294381022453308,
0.18363896012306213,
-0.076836958527565,
0.07090820372104645,
0.26805177330970764,
0.28614917397499084,
0.045373205095529556,
0.12840959429740906,
-0.21391001343727112,
-0.06523929536342621,
0.06217352673411369,
0.25935986638069153,
0.4585363566875458,
-0.32025015354156494,
-0.22362814843654633,
0.4694555103778839,
0.08028668165206909,
-0.04138033464550972,
-0.13148729503154755,
-0.08762432634830475,
-0.15020941197872162,
-0.12259811162948608,
0.2824839949607849,
-0.013389001600444317,
-0.01832914724946022,
-0.13053782284259796,
0.16199932992458344,
-0.1548789143562317,
0.13995422422885895,
-0.04802018031477928,
0.5657489895820618,
0.004432606510818005,
0.07019931077957153,
0.21652257442474365,
0.08751823753118515,
0.2833935618400574,
0.6908549666404724,
0.24692001938819885,
0.15441887080669403,
-0.30742084980010986,
0.08460284769535065,
-0.23200808465480804,
-0.4808971583843231,
-0.3943101763725281,
0.2658727467060089,
-0.11994131654500961,
0.32731643319129944,
-0.1321466714143753,
0.5771369338035583,
-0.04814058914780617,
-0.23531144857406616,
-0.10172721743583679,
0.03923814743757248,
-0.32321009039878845,
-0.1748599410057068,
0.24539220333099365,
-0.11985956132411957,
0.16957004368305206,
0.2694952189922333,
-0.1514987051486969,
0.024941634386777878,
0.06072692573070526,
0.057838764041662216,
-0.06961473077535629,
0.08195292204618454,
-0.1515665501356125,
0.14337711036205292,
0.17246104776859283,
-0.2777450978755951,
0.26019880175590515,
-0.18491628766059875,
0.023628683760762215,
-0.24793469905853271,
0.3573223948478699,
0.461442232131958,
0.45690396428108215,
-0.22038686275482178,
0.1961306482553482,
0.13989713788032532,
0.050315890461206436,
-0.06493720412254333,
0.20285364985466003,
0.3066425323486328,
0.04743928462266922,
0.051334746181964874,
-0.0806986391544342,
-0.10919738560914993,
-0.06269226223230362,
0.2326475828886032,
0.03531954810023308,
-0.07470346987247467,
0.173051118850708,
-0.10697385668754578,
-0.17552851140499115,
-0.17655876278877258,
-0.0238731000572443,
-0.6561957001686096,
0.47989118099212646,
0.5330019593238831,
-0.06577424705028534,
0.23129397630691528,
-0.060078322887420654,
-0.009170005097985268,
-0.10389448702335358,
0.4950029253959656,
0.4832201600074768,
-0.08379875868558884,
-0.4275381863117218,
0.02575249783694744,
-0.27841541171073914,
0.31739550828933716,
-0.3863583505153656,
0.2983146905899048,
-0.13070258498191833,
-0.08447705209255219,
0.021827977150678635,
-0.11505184322595596,
-0.15748728811740875,
-0.25558072328567505,
-0.6535037159919739,
0.1622951477766037,
-0.10247909277677536,
-0.21344341337680817,
-0.2421802580356598,
0.08154331147670746,
-0.02843353897333145,
-0.3112555742263794,
0.45968157052993774,
-0.03519526124000549,
-0.15141084790229797,
0.013302753679454327,
0.32894429564476013,
-0.2615920901298523,
0.13399194180965424,
0.25571954250335693,
0.25014886260032654,
0.00006834558735135943,
0.00815638992935419,
-0.19909648597240448,
-0.26678603887557983,
0.08872412145137787,
-0.0846686065196991,
0.12751895189285278,
0.23068781197071075,
0.2665817141532898,
-0.3857630789279938,
-0.25056055188179016,
-0.4074322283267975,
0.11251886188983917,
0.3654772937297821,
-0.13079753518104553,
-0.24755267798900604,
0.14535580575466156,
-0.15004903078079224,
-0.023698648437857628,
-0.02054142765700817,
0.45203790068626404,
-0.1429157555103302,
-0.04499834030866623,
-0.2473854124546051,
-0.25187695026397705,
0.46711111068725586,
-0.3677017390727997,
-0.40635713934898376,
-0.20259223878383636,
0.029903391376137733,
0.3852638006210327,
-0.2789250910282135,
-0.8607034087181091,
0.10423058271408081,
0.22063134610652924,
0.01569039188325405,
-0.5150165557861328,
0.032545167952775955,
-0.02047540619969368,
-0.10859387367963791,
-0.2627114951610565,
0.8137916326522827,
0.07515931129455566,
-0.19300200045108795,
0.4323779046535492,
-0.3210272192955017
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ).
If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however! | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 55 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ).
If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however! | [
-0.20229443907737732,
-0.2920217514038086,
0.11891685426235199,
0.2300965040922165,
0.6037492752075195,
-0.17225311696529388,
0.3156903088092804,
0.3898855149745941,
-0.2658644914627075,
0.18251657485961914,
-0.0329228937625885,
-0.14777863025665283,
-0.3427739143371582,
0.2524905204772949,
0.11079303175210953,
-0.07131344079971313,
0.10648033767938614,
0.15688717365264893,
-0.04342629015445709,
-0.22820299863815308,
0.054199136793613434,
0.018276585265994072,
0.24269168078899384,
0.22361744940280914,
-0.5773254036903381,
0.09311647713184357,
-0.08973900973796844,
0.028962550684809685,
-0.4984022378921509,
-0.10516251623630524,
0.020068461075425148,
-0.27742189168930054,
0.2171357125043869,
0.48870307207107544,
-0.00012551412510219961,
-0.07239071279764175,
0.13901153206825256,
-0.0683196559548378,
0.004203721880912781,
0.1563260853290558,
0.2038099765777588,
-0.09630187600851059,
-0.14367204904556274,
0.12506669759750366,
0.2383716106414795,
-0.10818328708410263,
-0.04342157766222954,
-0.00003654768443084322,
0.34698545932769775,
0.16957888007164001,
0.08500714600086212,
0.19177120923995972,
0.09784020483493805,
0.051331888884305954,
0.216800719499588,
0.24415025115013123,
-0.04919734597206116,
0.049271680414676666,
0.21340540051460266,
-0.24368953704833984,
-0.04759899526834488,
0.17664961516857147,
0.11953935772180557,
-0.14370617270469666,
0.3066146969795227,
0.19225461781024933,
-0.07949143648147583,
-0.4115470349788666,
0.1700012981891632,
0.40912002325057983,
-0.03981121629476547,
-0.38142088055610657,
-0.28529152274131775,
-0.3907466530799866,
0.22809650003910065,
-0.5098487734794617,
0.036143623292446136,
0.16512112319469452,
-0.1153218075633049,
0.09479403495788574,
-0.2568562924861908,
-0.39151573181152344,
-0.2216070294380188,
-0.06956856697797775,
-0.27675774693489075,
0.0675145834684372,
-0.21888968348503113,
-0.09888838231563568,
-0.0032572271302342415,
-0.09550544619560242,
-0.3700414299964905,
0.012171128764748573,
-0.04981726408004761,
0.19204498827457428,
-0.1057279109954834,
-0.30058589577674866,
-0.09351031482219696,
-0.33355090022087097,
0.2913614809513092,
-0.49246013164520264,
-0.20839226245880127,
-0.40833255648612976,
-0.1743306815624237,
-0.36485472321510315,
0.4070281386375427,
0.4913433790206909,
-0.40736693143844604,
0.1588032990694046,
0.1524098515510559,
0.03694415092468262,
-0.16341567039489746,
-0.08123495429754257,
-0.15959998965263367,
0.12071995437145233,
0.016142800450325012,
-0.37205761671066284,
0.06394901871681213,
-0.24560818076133728,
-0.12668481469154358,
0.3839038610458374,
-0.35109105706214905,
0.23774100840091705,
0.05505125969648361,
0.31348633766174316,
-0.06506451964378357,
0.1613829880952835,
0.0347573384642601,
0.04110576584935188,
-0.4139358401298523,
-0.049407247453927994,
-0.07163223624229431,
0.059584204107522964,
-0.1605284959077835,
0.19141171872615814,
-0.018710540607571602,
0.10060626268386841,
0.04489657282829285,
-0.028489138931035995,
0.34212037920951843,
-0.07398457825183868,
0.07217180728912354,
-0.25574684143066406,
0.10209748148918152,
0.17471973598003387,
-0.1739892065525055,
0.4763530194759369,
0.01120409369468689,
0.01097357552498579,
-0.012226562947034836,
0.03181830048561096,
-0.16118291020393372,
-0.5222705602645874,
-0.09531155228614807,
0.12089642137289047,
-0.013667918741703033,
0.2884065508842468,
-0.048170264810323715,
0.3760947287082672,
0.39581695199012756,
0.0022844644263386726,
-0.02702331729233265,
-0.21761582791805267,
-0.18829545378684998,
-0.0019309446215629578,
0.40341514348983765,
0.3783380389213562,
-0.5633428692817688,
-0.15488453209400177,
-0.21996141970157623,
0.28483572602272034,
0.36995619535446167,
0.6364402174949646,
-0.04722601920366287,
0.5527012944221497,
-0.24902908504009247,
0.2100595235824585,
-0.31504765152931213,
0.2535913288593292,
-0.41380196809768677,
0.34805095195770264,
-0.1281871646642685,
-0.07209628075361252,
0.03793090581893921,
-0.09203577786684036,
0.24727368354797363,
0.02533085271716118,
0.4554363489151001,
0.04244266077876091,
-0.18594783544540405,
0.04855063185095787,
-0.35736480355262756,
-0.37546205520629883,
-0.2417563945055008,
0.02766573801636696,
0.13756786286830902,
-0.14340822398662567,
-0.2986961901187897,
0.559165894985199,
0.12244077026844025,
-0.1235056072473526,
0.17124006152153015,
0.30222824215888977,
0.15040504932403564,
-0.0457572415471077,
0.034705713391304016,
-0.024093130603432655,
-0.10813784599304199,
-0.0064385379664599895,
-0.22654563188552856,
0.2554841637611389,
0.07551259547472,
-0.3105175197124481,
-0.08789916336536407,
-0.00965188816189766,
0.10225991159677505,
-0.19118793308734894,
0.016962189227342606,
-0.2215738445520401,
-0.13107682764530182,
0.08137400448322296,
-0.0826464518904686,
-0.12175322324037552,
-0.11199036240577698,
0.09574051946401596,
-0.4077606201171875,
-0.06689088046550751,
-0.03756650164723396,
-0.1556822508573532,
-0.04472455754876137,
0.3314080834388733,
-0.10876885801553726,
0.022935237735509872,
-0.09088180214166641,
0.21220241487026215,
0.05968876928091049,
0.08225107938051224,
-0.08399418741464615,
0.23291857540607452,
0.2856232225894928,
0.13453079760074615,
0.10351785272359848,
0.1799336075782776,
0.06480833888053894,
-0.08361178636550903,
-0.06585604697465897,
0.23750059306621552,
0.23147200047969818,
0.11277120560407639,
0.25467514991760254,
-0.20774057507514954,
-0.05103767290711403,
0.12238853424787521,
-0.030319197103381157,
-0.26494306325912476,
0.2836708426475525,
0.04957931861281395,
0.25899752974510193,
0.15139079093933105,
-0.19058610498905182,
-0.04249528795480728,
0.2515277564525604,
-0.1678771674633026,
0.024789685383439064,
0.3735736310482025,
-0.3689998686313629,
-0.07845886051654816,
-0.05794970691204071,
-0.23197349905967712,
0.2978202700614929,
0.08521632105112076,
0.13627652823925018,
0.12015295773744583,
0.09701132029294968,
-0.09164805710315704,
0.15547189116477966,
0.282751202583313,
-0.13166871666908264,
0.1620895266532898,
0.22255055606365204,
0.0028683997225016356,
-0.2590222954750061,
0.029704056680202484,
-0.20653972029685974,
0.3683234751224518,
-0.3679235875606537,
0.29502683877944946,
0.05667397752404213,
0.048211343586444855,
-0.3758403956890106,
-0.2766399383544922,
-0.21924792230129242,
0.005714832805097103,
0.20627714693546295,
-0.16684597730636597,
-0.1179320365190506,
-0.09319272637367249,
0.38344165682792664,
0.26328718662261963,
0.15438562631607056,
0.32532376050949097,
0.03473173454403877,
0.0900794193148613,
-0.3657517731189728,
-0.005399624351412058,
0.15251320600509644,
-0.18678277730941772,
0.11739146709442139,
0.14430269598960876,
-0.2773665487766266,
-0.051535263657569885,
-0.300214946269989,
0.18422439694404602,
-0.18050050735473633,
0.2566881775856018,
0.2256781905889511,
0.15754050016403198,
-0.4216121733188629,
0.0344792902469635,
0.032453153282403946,
-0.02487774007022381,
-0.12833364307880402,
-0.053639769554138184,
-0.14091290533542633,
0.157362163066864,
-0.07453515380620956,
-0.2841414213180542,
-0.14794620871543884,
-0.05175011605024338,
0.36194610595703125,
-0.026467107236385345,
-0.029691100120544434,
0.18292354047298431,
0.16236840188503265,
0.09227863699197769,
0.015093324705958366,
-0.21459658443927765,
0.025105778127908707,
-0.14104190468788147,
0.1920463740825653,
0.013445393182337284,
-0.188930481672287,
-0.3331332504749298,
-0.01688033901154995,
0.0008044510032050312,
-0.15680131316184998,
-0.5277712941169739,
0.05393502861261368,
-0.4343661665916443,
-0.2976067066192627,
-0.2196919173002243,
0.34762299060821533,
0.08654045313596725,
-0.08606935292482376,
0.04640691727399826,
0.1269994080066681,
0.11927548795938492,
-0.07789731025695801,
-0.22581785917282104,
0.2165205031633377,
-0.43359509110450745,
0.42925843596458435,
-0.034552354365587234,
0.8483142256736755,
0.22673018276691437,
-0.05506546050310135,
0.010446981526911259,
-0.020999496802687645,
0.39379027485847473,
-0.4736230671405792,
-0.21246640384197235,
0.3288615047931671,
-0.12320949137210846,
-0.38018450140953064,
0.2800571620464325,
0.12273114919662476,
0.450792521238327,
0.17596451938152313,
0.048179324716329575,
0.2780034840106964,
-0.3748353123664856,
0.3768450915813446,
0.1353832632303238,
0.19445601105690002,
0.0062742955051362514,
0.07235977798700333,
0.04276888817548752,
-0.3326546549797058,
0.0735127255320549,
-0.02317483350634575,
0.16629658639431,
-0.00967843271791935,
0.03377600386738777,
-0.28033649921417236,
-0.7721144556999207,
-0.012238501571118832,
0.0897064208984375,
0.09981324523687363,
0.17311736941337585,
-0.14087557792663574,
0.16403533518314362,
0.030901925638318062,
0.8085677623748779,
0.302764892578125,
-0.19471311569213867,
-0.027523186057806015,
-0.06874070316553116,
-0.17786253988742828,
0.016813475638628006,
-0.3545093834400177,
-0.03588002547621727,
0.5801974534988403,
0.6342161297798157,
-0.3662617802619934,
-0.04949771240353584,
0.11199512332677841,
0.38165101408958435,
-0.11014332622289658,
0.039192084223032,
-0.39964255690574646,
-0.0195070281624794,
-0.24229910969734192,
0.2102530151605606,
0.07610920071601868,
0.07976021617650986,
-0.11548638343811035,
-0.08313919603824615,
0.10094150900840759,
-0.12104393541812897,
0.3523440957069397,
0.27201053500175476,
0.30416446924209595,
-0.2905328571796417,
0.37467312812805176,
-0.04268725961446762,
0.11385694146156311,
0.3892746865749359,
0.18023748695850372,
-0.1690206676721573,
-0.3310914635658264,
0.25562596321105957,
-0.0677468404173851,
0.33502641320228577,
0.5346251130104065,
-0.016122637316584587,
0.2118689864873886,
0.07860765606164932,
0.45181402564048767,
-0.4136649966239929,
0.5587218999862671,
0.49527278542518616,
-0.040274955332279205,
-0.53268963098526,
-0.16209396719932556,
0.33843520283699036,
0.07385199517011642,
0.1286018341779709,
0.1966751664876938,
0.26280859112739563,
-0.302143931388855,
0.32175564765930176,
-0.04300579056143761,
1.1316550970077515,
-0.2781013250350952,
0.5939577221870422,
0.0634622722864151,
0.2603401243686676,
0.6253474354743958,
-0.32046806812286377,
0.1985354721546173,
-0.3777291178703308,
-0.11131509393453598,
0.1610722690820694,
0.0844927728176117,
-0.1474875807762146,
0.06473749130964279,
-0.16991782188415527,
0.19658131897449493,
-0.10714514553546906,
0.26277267932891846,
-0.24707689881324768,
0.3641860783100128,
0.03575855866074562,
-0.377630352973938,
-0.26143261790275574,
-0.03298564255237579,
0.0006423140875995159,
0.028984596952795982,
-0.17432282865047455,
0.08738580346107483,
0.06210070103406906,
-0.29955846071243286,
-0.27480167150497437,
-0.19610996544361115,
-0.08265349268913269,
-0.011711426079273224,
0.20529042184352875,
-0.3377434313297272,
0.27421027421951294,
-0.06745579838752747,
0.2621942162513733,
0.6511213779449463,
-0.2098907083272934,
0.09593770653009415,
-0.19487859308719635,
0.06248205900192261,
-0.020391302183270454,
-0.08507296442985535,
0.0024805916473269463,
0.07703623920679092,
0.05032503232359886,
0.003279156982898712,
-0.01203225925564766,
0.29063791036605835,
-0.39919909834861755,
-0.17370198667049408,
0.5477034449577332,
-0.47314831614494324,
0.0558953657746315,
-0.09999711811542511,
-0.046525485813617706,
-0.17363868653774261,
0.02610423043370247,
0.14464356005191803,
-0.28540992736816406,
0.036547232419252396,
0.03923342749476433,
-0.37620532512664795,
-0.23543106019496918,
0.22426176071166992,
0.21781355142593384,
0.03367099538445473,
0.6945821642875671,
0.3077147901058197,
-0.029619349166750908,
-0.07772986590862274,
0.3860267400741577,
0.5473817586898804,
-0.4338844120502472,
0.30995801091194153,
0.18258625268936157,
-0.04412325844168663,
0.050225965678691864,
0.20611260831356049,
0.262481689453125,
-0.300070196390152,
-0.17965994775295258,
-0.07247070223093033,
-0.4185904264450073,
0.06418526917695999,
-0.04376072436571121,
0.14171530306339264,
0.19785313308238983,
0.4324564039707184,
-0.10585036873817444,
0.1831015944480896,
-0.15128688514232635,
0.0984666645526886,
-0.048773862421512604,
0.09889929741621017,
-0.27202436327934265,
-0.06358843296766281,
0.1578979641199112,
-0.11146234720945358,
-0.05660939961671829,
0.25503334403038025,
0.004463046323508024,
-0.10425478965044022,
-0.230146124958992,
0.16267894208431244,
0.031687989830970764,
-0.03729185461997986,
0.14046013355255127,
0.10889269411563873,
-0.1670829951763153,
-0.24568620324134827,
0.38831764459609985,
0.14429883658885956,
0.1313139647245407,
-0.22012045979499817,
0.13693839311599731,
-0.07150015980005264,
-0.0951591208577156,
-0.0318622924387455,
0.20921407639980316,
0.2916567325592041,
0.11461944878101349,
0.15344184637069702,
0.26141807436943054,
-0.07020340114831924,
-0.01236652210354805,
0.2207602560520172,
0.2243562936782837,
0.07912442088127136,
0.06227276101708412,
-0.182143896818161,
-0.1318073570728302,
-0.014275379478931427,
0.2707623839378357,
0.4881927967071533,
-0.2587161362171173,
-0.22578057646751404,
0.5012190341949463,
0.11171359568834305,
-0.024602416902780533,
-0.09118320792913437,
-0.11671572923660278,
-0.20402364432811737,
-0.12402258068323135,
0.31775227189064026,
-0.020763743668794632,
0.03524794802069664,
-0.11541713774204254,
0.17993028461933136,
-0.08691947162151337,
0.17170332372188568,
-0.05115270987153053,
0.5434494614601135,
-0.04044546186923981,
0.08517470955848694,
0.1827305257320404,
0.022499309852719307,
0.2841387987136841,
0.6910938620567322,
0.1807807981967926,
0.15452131628990173,
-0.3504057824611664,
0.1210545003414154,
-0.1919403374195099,
-0.504310667514801,
-0.4453705847263336,
0.13663198053836823,
-0.08864215016365051,
0.28012314438819885,
-0.14453066885471344,
0.5805777311325073,
-0.10936535894870758,
-0.27096378803253174,
-0.11861436069011688,
0.008829032070934772,
-0.2598237991333008,
-0.11745856702327728,
0.19252921640872955,
-0.15761707723140717,
0.13528354465961456,
0.26443129777908325,
-0.09904226660728455,
0.04622800275683403,
-0.09537766873836517,
0.05629037693142891,
-0.09683471918106079,
-0.02876010723412037,
-0.20808935165405273,
0.17802414298057556,
0.1250554919242859,
-0.24289676547050476,
0.2051355391740799,
-0.0710962638258934,
0.05254519730806351,
-0.2004518210887909,
0.30620718002319336,
0.4847804009914398,
0.4154980778694153,
-0.2384960651397705,
0.19547529518604279,
0.12755624949932098,
0.06699149310588837,
-0.06420531868934631,
0.11362721025943756,
0.32471945881843567,
0.10532093048095703,
0.0340534970164299,
-0.04335768148303032,
-0.14348796010017395,
-0.15367422997951508,
0.20623892545700073,
0.07566816359758377,
-0.1636306792497635,
0.19700957834720612,
-0.10184535384178162,
-0.14985744655132294,
-0.26999443769454956,
0.026094594970345497,
-0.7529438138008118,
0.5340991020202637,
0.46148794889450073,
-0.061011333018541336,
0.12806281447410583,
-0.08698275685310364,
0.0034484874922782183,
-0.1110580563545227,
0.47452887892723083,
0.48450395464897156,
-0.0024139804299920797,
-0.41028499603271484,
-0.040722016245126724,
-0.3033807575702667,
0.2930365204811096,
-0.3688572943210602,
0.2744466960430145,
-0.17348335683345795,
-0.08226033300161362,
0.05684373900294304,
-0.11731589585542679,
-0.09123562276363373,
-0.19002000987529755,
-0.7031126022338867,
0.13166998326778412,
-0.15592218935489655,
-0.19537024199962616,
-0.23844140768051147,
0.03132383152842522,
-0.05654299631714821,
-0.2429547905921936,
0.43892157077789307,
0.03335972875356674,
-0.12271951138973236,
-0.0055754161439836025,
0.2359008938074112,
-0.2267877459526062,
0.10968578606843948,
0.24169498682022095,
0.2818453013896942,
0.029361996799707413,
0.05563262104988098,
-0.19805845618247986,
-0.29262688755989075,
0.09762231260538101,
-0.11604086309671402,
0.12692272663116455,
0.24777352809906006,
0.2843005657196045,
-0.2559838593006134,
-0.2809935212135315,
-0.43146607279777527,
0.16405023634433746,
0.36317312717437744,
-0.13042308390140533,
-0.26109641790390015,
0.1225455179810524,
-0.10379788279533386,
-0.015727587044239044,
0.0005372714949771762,
0.5165203809738159,
-0.1023206040263176,
-0.056701306253671646,
-0.36439424753189087,
-0.2662370800971985,
0.490340918302536,
-0.32958105206489563,
-0.4211167097091675,
-0.23799191415309906,
0.051478516310453415,
0.3020358383655548,
-0.2552242577075958,
-0.7636173367500305,
0.08470547944307327,
0.1540556102991104,
0.014821702614426613,
-0.5005557537078857,
0.13221214711666107,
-0.059082090854644775,
-0.150060772895813,
-0.20532821118831635,
0.6773768663406372,
0.07866999506950378,
-0.20401136577129364,
0.3991595506668091,
-0.2519073188304901
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | > Hey guys,
>
> I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
>
> I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
>
> I've used the following CMD:
> `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
It's actually because of the parameter 'preprocessing_num_worker' when using TPU.
I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ).
So I think that's maybe where the problem came from.
Is there any possibility that all of the cores share the same preprocess dataset?
@sgugger @RammMaschine | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 273 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
> Hey guys,
>
> I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
>
> I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
>
> I've used the following CMD:
> `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
It's actually because of the parameter 'preprocessing_num_worker' when using TPU.
I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ).
So I think that's maybe where the problem came from.
Is there any possibility that all of the cores share the same preprocess dataset?
@sgugger @RammMaschine | [
-0.12765148282051086,
-0.4218367636203766,
0.10686738789081573,
0.2943577766418457,
0.6427580118179321,
-0.12837210297584534,
0.3398818075656891,
0.40121471881866455,
-0.24704474210739136,
0.154962956905365,
-0.03813442215323448,
-0.121829554438591,
-0.29877132177352905,
0.27047693729400635,
0.14445655047893524,
-0.08485852181911469,
0.08005914092063904,
0.1567353755235672,
-0.043232258409261703,
-0.36241862177848816,
0.017800986766815186,
0.011926502920687199,
0.26498499512672424,
0.2487945556640625,
-0.5399374961853027,
0.11643664538860321,
-0.08904092758893967,
0.08788803964853287,
-0.4778921902179718,
-0.04612010717391968,
0.0388476587831974,
-0.37018609046936035,
0.1601382941007614,
0.5560235977172852,
-0.00012619771587196738,
-0.05793123319745064,
0.19799938797950745,
-0.10434245318174362,
0.043037716299295425,
0.1906140297651291,
0.04013310372829437,
0.01644759252667427,
-0.15229317545890808,
0.11741787940263748,
0.16336998343467712,
-0.0749804899096489,
-0.05051450431346893,
-0.03680228814482689,
0.321307510137558,
0.23684509098529816,
0.08800915628671646,
0.01911640726029873,
0.051007915288209915,
0.05271553993225098,
0.2443503886461258,
0.26615026593208313,
-0.03266425058245659,
0.04101148620247841,
0.1123432144522667,
-0.058521296828985214,
0.038114819675683975,
0.16591106355190277,
0.17895518243312836,
-0.0714266374707222,
0.3485540747642517,
0.2815021276473999,
-0.06265906989574432,
-0.4381536543369293,
0.1757107824087143,
0.46497833728790283,
-0.03414556384086609,
-0.3490568995475769,
-0.3314695358276367,
-0.31329071521759033,
0.25590381026268005,
-0.5074099898338318,
0.001955378334969282,
0.3379586637020111,
-0.09144916385412216,
0.0786471962928772,
-0.26321038603782654,
-0.4374251961708069,
-0.24962127208709717,
-0.11104733496904373,
-0.22812408208847046,
-0.0159760732203722,
-0.2338903397321701,
-0.09319574385881424,
-0.039667680859565735,
-0.05891485512256622,
-0.4165322184562683,
-0.07057137042284012,
-0.0816849023103714,
0.22012150287628174,
-0.03197227418422699,
-0.26546743512153625,
-0.10904861986637115,
-0.22945046424865723,
0.24098870158195496,
-0.5617983937263489,
-0.07861291617155075,
-0.45660504698753357,
-0.2560959756374359,
-0.34591221809387207,
0.3546561300754547,
0.44838714599609375,
-0.45796599984169006,
0.18585878610610962,
0.1445353478193283,
0.08264635503292084,
-0.2117663323879242,
-0.06054069846868515,
-0.13897663354873657,
0.12248498201370239,
0.010262872092425823,
-0.4655173122882843,
0.0591999851167202,
-0.29680198431015015,
-0.13978329300880432,
0.3230864703655243,
-0.35380852222442627,
0.2023715376853943,
0.049994975328445435,
0.34388089179992676,
-0.10232680290937424,
0.041926030069589615,
0.05151255056262016,
0.08876778185367584,
-0.4091443121433258,
-0.015163501724600792,
-0.1164165511727333,
0.11811612546443939,
-0.16760137677192688,
0.2057821899652481,
-0.05782640725374222,
-0.004961476661264896,
0.04983130842447281,
0.008466240018606186,
0.2533488869667053,
-0.04281222075223923,
0.08282248675823212,
-0.2464296966791153,
0.21760255098342896,
0.15047743916511536,
-0.16833224892616272,
0.442506343126297,
-0.0380498506128788,
0.12250135093927383,
-0.001926301745697856,
0.12407099455595016,
-0.20612426102161407,
-0.46670693159103394,
-0.08318807184696198,
0.11856359988451004,
-0.05538142845034599,
0.28088924288749695,
-0.031732916831970215,
0.31544968485832214,
0.45043063163757324,
-0.00023751398839522153,
0.017097704112529755,
-0.17765039205551147,
-0.23505614697933197,
-0.02631871961057186,
0.3950235843658447,
0.3266682028770447,
-0.5285289883613586,
-0.14838886260986328,
-0.2407323718070984,
0.27789536118507385,
0.4014594852924347,
0.6155524253845215,
-0.007139295805245638,
0.5933489203453064,
-0.26615554094314575,
0.12744629383087158,
-0.3081241548061371,
0.2741971015930176,
-0.37720397114753723,
0.3744082450866699,
-0.09028124809265137,
-0.09579290449619293,
0.08434887230396271,
-0.04701525717973709,
0.07162604480981827,
0.07653533667325974,
0.39448997378349304,
0.0010768163483589888,
-0.14265841245651245,
-0.005901684518903494,
-0.393457293510437,
-0.3725033402442932,
-0.32022741436958313,
-0.029392099007964134,
0.12249646335840225,
-0.05891314148902893,
-0.28563016653060913,
0.5653199553489685,
0.15823078155517578,
-0.1308506578207016,
0.19142156839370728,
0.2992984652519226,
0.12775267660617828,
-0.08982822299003601,
-0.005090932361781597,
0.029559552669525146,
-0.08247118443250656,
0.03318725898861885,
-0.4174712896347046,
0.19057436287403107,
0.12402249127626419,
-0.25310584902763367,
-0.04473089426755905,
-0.06879056245088577,
0.028263768181204796,
-0.23176439106464386,
-0.019275864586234093,
-0.15465499460697174,
-0.04460104927420616,
0.015430053696036339,
-0.024827972054481506,
-0.12529003620147705,
-0.07365331798791885,
0.010647487826645374,
-0.5096875429153442,
-0.024176331236958504,
0.0002805480035021901,
-0.1650913953781128,
-0.039744649082422256,
0.3676859140396118,
-0.14054721593856812,
0.05624890699982643,
-0.08055326342582703,
0.1306503862142563,
0.12841644883155823,
0.07485935837030411,
-0.06344778835773468,
0.14557471871376038,
0.30399221181869507,
0.12245441228151321,
0.11354580521583557,
0.22187162935733795,
0.11840373277664185,
-0.07869217544794083,
-0.19110499322414398,
0.20721730589866638,
0.24887031316757202,
0.08002495020627975,
0.28202521800994873,
-0.22144916653633118,
-0.08948340266942978,
0.09871526062488556,
-0.053289443254470825,
-0.2998577356338501,
0.25179311633110046,
0.12368324398994446,
0.2842867374420166,
0.18052934110164642,
-0.18565474450588226,
-0.1370198130607605,
0.32394349575042725,
-0.19516772031784058,
-0.039615094661712646,
0.4245702028274536,
-0.30881214141845703,
-0.07585950195789337,
-0.08753389865159988,
-0.2740563452243805,
0.31538546085357666,
0.11011514812707901,
0.1338968425989151,
0.11876744031906128,
0.13885840773582458,
-0.09747055917978287,
0.1322098672389984,
0.2498319149017334,
-0.1262383610010147,
0.17477218806743622,
0.23923815786838531,
-0.07983452826738358,
-0.17433902621269226,
0.1291179358959198,
-0.19837623834609985,
0.3336583375930786,
-0.40301713347435,
0.31301355361938477,
0.1204988956451416,
0.11270646750926971,
-0.43435877561569214,
-0.29175859689712524,
-0.15307210385799408,
0.03251366317272186,
0.15911051630973816,
-0.23825295269489288,
-0.07506246864795685,
-0.13524921238422394,
0.34651708602905273,
0.19349035620689392,
0.17891797423362732,
0.2643802762031555,
0.05685507506132126,
0.16043098270893097,
-0.36751919984817505,
0.014615094289183617,
0.12297701090574265,
-0.12049275636672974,
0.10667841136455536,
0.09525736421346664,
-0.2957552373409271,
-0.03499975800514221,
-0.25906434655189514,
0.19338910281658173,
-0.2113824337720871,
0.29097867012023926,
0.15162523090839386,
0.11462143808603287,
-0.36817872524261475,
0.06806320697069168,
0.08829915523529053,
-0.032285865396261215,
-0.14985808730125427,
-0.0441933199763298,
-0.14867450296878815,
0.22811032831668854,
-0.08747230470180511,
-0.3000986576080322,
-0.09413708001375198,
-0.031290676444768906,
0.4148479402065277,
0.08378401398658752,
-0.010026867501437664,
0.21772390604019165,
0.17866046726703644,
0.12722665071487427,
0.019773581996560097,
-0.1597072035074234,
-0.03546770289540291,
-0.191140279173851,
0.19124847650527954,
-0.014475724659860134,
-0.2573111653327942,
-0.3347419202327728,
-0.11446031183004379,
0.10400813072919846,
-0.201048344373703,
-0.5380889773368835,
0.03518487885594368,
-0.47932422161102295,
-0.25894761085510254,
-0.2166302353143692,
0.38146963715553284,
0.03449329733848572,
-0.1614195853471756,
0.04667593166232109,
0.07471136003732681,
0.140839084982872,
-0.005468695890158415,
-0.23776164650917053,
0.20272983610630035,
-0.4108913838863373,
0.3287276327610016,
-0.18221059441566467,
0.8339399695396423,
0.3465126156806946,
-0.05551065132021904,
-0.06442705541849136,
-0.08094986528158188,
0.4020642340183258,
-0.45887255668640137,
-0.16531716287136078,
0.3064308166503906,
-0.12174192070960999,
-0.37594980001449585,
0.2950262725353241,
0.15795959532260895,
0.49085694551467896,
0.16500642895698547,
0.11033441126346588,
0.24989691376686096,
-0.32438376545906067,
0.34504541754722595,
0.11858651041984558,
0.12945111095905304,
-0.009000423364341259,
0.0719853937625885,
0.047803398221731186,
-0.336225688457489,
0.05437275022268295,
-0.04766983538866043,
0.238856703042984,
0.0033359266817569733,
0.15451034903526306,
-0.3303189277648926,
-0.6893529295921326,
-0.019804416224360466,
0.1392311155796051,
-0.024852335453033447,
0.14534859359264374,
-0.13204897940158844,
0.2101352959871292,
0.051663197576999664,
0.7545102834701538,
0.2475423365831375,
-0.09894220530986786,
0.023929884657263756,
-0.05054471269249916,
-0.14982275664806366,
0.01224993634968996,
-0.37875279784202576,
-0.027988610789179802,
0.5659727454185486,
0.5356940031051636,
-0.31869688630104065,
-0.0022771330550312996,
0.16696739196777344,
0.3624534010887146,
-0.11114037036895752,
-0.009517508558928967,
-0.4973682463169098,
-0.027031635865569115,
-0.1853753924369812,
0.11722072213888168,
0.05611534044146538,
0.05750881880521774,
-0.17319639027118683,
-0.14514070749282837,
0.08876582235097885,
-0.0695766881108284,
0.31302937865257263,
0.20919129252433777,
0.3291220963001251,
-0.22852970659732819,
0.3800683915615082,
-0.01797964610159397,
0.1245589479804039,
0.38653334975242615,
0.32264208793640137,
-0.18847708404064178,
-0.25840145349502563,
0.19593504071235657,
-0.2028002142906189,
0.32529890537261963,
0.4745909571647644,
-0.01838846132159233,
0.14065265655517578,
0.170586496591568,
0.4246022701263428,
-0.39473941922187805,
0.4877225458621979,
0.5528478026390076,
-0.05661667883396149,
-0.5213480591773987,
-0.2778938114643097,
0.4880216121673584,
0.1094362884759903,
0.13180050253868103,
0.25078004598617554,
0.21391314268112183,
-0.27606722712516785,
0.21511884033679962,
-0.06300970911979675,
1.0572490692138672,
-0.19799092411994934,
0.5809548497200012,
0.13326077163219452,
0.24431540071964264,
0.5600249171257019,
-0.16340892016887665,
0.18607106804847717,
-0.3717607855796814,
-0.06836617738008499,
0.17983585596084595,
0.023399772122502327,
-0.15145336091518402,
0.07235481590032578,
-0.20038335025310516,
0.170608252286911,
-0.17337647080421448,
0.24528557062149048,
-0.20342494547367096,
0.3449355661869049,
0.10532527416944504,
-0.29194176197052,
-0.2884560823440552,
-0.05565902590751648,
0.03997870907187462,
0.07363475859165192,
-0.1359112411737442,
0.010236142203211784,
-0.045181822031736374,
-0.29658472537994385,
-0.2285732924938202,
-0.15145699679851532,
-0.06160673871636391,
-0.018022336065769196,
0.1356382519006729,
-0.4155600666999817,
0.2852833867073059,
-0.006104420404881239,
0.2018766552209854,
0.6037318110466003,
-0.2552432417869568,
0.08157075941562653,
-0.16471078991889954,
0.05550006031990051,
-0.06094745174050331,
-0.06295880675315857,
0.018357811495661736,
0.03955382853746414,
-0.011247176676988602,
0.008124505169689655,
-0.03115134686231613,
0.33030903339385986,
-0.3478434085845947,
-0.1418485939502716,
0.4647274315357208,
-0.49788227677345276,
-0.007221976760774851,
-0.08025786280632019,
-0.11551172286272049,
-0.12495684623718262,
0.019605055451393127,
0.1544744074344635,
-0.31144899129867554,
0.0475621372461319,
0.11618585884571075,
-0.4666772484779358,
-0.2527616024017334,
0.20537124574184418,
0.312778502702713,
0.1111270934343338,
0.7269278764724731,
0.23976004123687744,
-0.0011835125042125583,
-0.06012379378080368,
0.37277936935424805,
0.543868899345398,
-0.4371436536312103,
0.31849703192710876,
0.262195885181427,
0.04887021332979202,
0.02911072038114071,
0.16723327338695526,
0.20235469937324524,
-0.23200903832912445,
-0.19165296852588654,
-0.011576498858630657,
-0.34605300426483154,
0.028033453971147537,
-0.07239658385515213,
0.1560411900281906,
0.11692468822002411,
0.4359505772590637,
0.03574357554316521,
0.19189958274364471,
-0.14148467779159546,
0.07000523060560226,
-0.004681797232478857,
0.021400583907961845,
-0.23107677698135376,
-0.002691765781491995,
0.15143348276615143,
-0.08144360035657883,
-0.06478770822286606,
0.16670222580432892,
0.0020318215247243643,
-0.09801867604255676,
-0.22853794693946838,
0.1536141186952591,
0.03983727842569351,
-0.03858111426234245,
0.16803699731826782,
0.14964178204536438,
-0.1911124438047409,
-0.20046277344226837,
0.39766594767570496,
0.14277596771717072,
0.16909201443195343,
-0.14834921061992645,
0.14702391624450684,
-0.11660262197256088,
-0.09888056665658951,
-0.0595458522439003,
0.1867140233516693,
0.3183194696903229,
0.0611322820186615,
0.13013388216495514,
0.3052385449409485,
-0.07367130368947983,
-0.027299439534544945,
0.12900522351264954,
0.13684731721878052,
0.11285597085952759,
0.05383394658565521,
-0.25439217686653137,
-0.004885973874479532,
-0.035565085709095,
0.2974039316177368,
0.42694833874702454,
-0.23302949965000153,
-0.14788608253002167,
0.3677385747432709,
0.09279406070709229,
-0.07726477086544037,
-0.021179301664233208,
-0.18285030126571655,
-0.21824181079864502,
-0.1203051432967186,
0.32246604561805725,
-0.04300279542803764,
0.07321281731128693,
-0.19276197254657745,
0.12278856337070465,
-0.1977943778038025,
0.18276835978031158,
-0.010510577820241451,
0.6458750367164612,
-0.025440147146582603,
0.12013900279998779,
0.24805817008018494,
0.08986248821020126,
0.2171669900417328,
0.684023380279541,
0.21063008904457092,
0.15595297515392303,
-0.4127492904663086,
0.04597744345664978,
-0.14763909578323364,
-0.5137035846710205,
-0.4766751825809479,
0.18075959384441376,
-0.13855791091918945,
0.2510443925857544,
-0.14363186061382294,
0.5851092338562012,
-0.09250285476446152,
-0.22861379384994507,
-0.15870919823646545,
-0.02250247821211815,
-0.22477957606315613,
-0.1209854707121849,
0.19576017558574677,
-0.17298468947410583,
0.1710040122270584,
0.2518327236175537,
-0.0850016325712204,
0.10183741897344589,
-0.015003564767539501,
0.06564714014530182,
-0.09195883572101593,
0.062072597444057465,
-0.1243009865283966,
0.15268169343471527,
0.09159364551305771,
-0.255581796169281,
0.20834530889987946,
-0.03742387145757675,
0.06236560642719269,
-0.14230932295322418,
0.304738312959671,
0.5044112801551819,
0.4020273685455322,
-0.19608795642852783,
0.19831424951553345,
0.12141687422990799,
0.03203732520341873,
-0.07649599760770798,
0.16601406037807465,
0.34224626421928406,
0.030787624418735504,
0.05747183412313461,
-0.03577360138297081,
-0.13747791945934296,
-0.01074155606329441,
0.20754167437553406,
0.159354105591774,
-0.20303720235824585,
0.3092688322067261,
-0.14450596272945404,
-0.1366320550441742,
-0.332480251789093,
0.027776747941970825,
-0.7808365821838379,
0.6018408536911011,
0.3939926326274872,
-0.03829394280910492,
0.07517042756080627,
-0.057583972811698914,
-0.005817381665110588,
-0.17737890779972076,
0.5535488724708557,
0.4052790701389313,
0.05279814079403877,
-0.40221384167671204,
0.04098561406135559,
-0.26955825090408325,
0.2878916561603546,
-0.41127365827560425,
0.2815774083137512,
-0.24197299778461456,
-0.019809944555163383,
-0.006252070888876915,
-0.1268976926803589,
-0.03191063925623894,
-0.27954766154289246,
-0.7357227206230164,
0.13752208650112152,
-0.11831448972225189,
-0.2483348697423935,
-0.25674083828926086,
0.08276016265153885,
-0.06333049386739731,
-0.2646409571170807,
0.39992204308509827,
-0.03840215504169464,
-0.11065151542425156,
0.03198123350739479,
0.17884711921215057,
-0.2364387810230255,
0.17929929494857788,
0.2317090630531311,
0.31243211030960083,
0.13296867907047272,
-0.010536442510783672,
-0.22968116402626038,
-0.2905624806880951,
0.09333286434412003,
-0.11130170524120331,
0.19918832182884216,
0.23459412157535553,
0.3189929127693176,
-0.21726936101913452,
-0.33258381485939026,
-0.42544347047805786,
0.23879224061965942,
0.35297638177871704,
-0.1453874558210373,
-0.21797601878643036,
0.09195400029420853,
-0.07556203752756119,
-0.07706117630004883,
0.04538105055689812,
0.46682512760162354,
-0.17069712281227112,
-0.10043170303106308,
-0.326961487531662,
-0.2557927668094635,
0.5335485339164734,
-0.34895244240760803,
-0.3766443133354187,
-0.25091516971588135,
0.06261594593524933,
0.2268562912940979,
-0.3144400119781494,
-0.7230042219161987,
0.19282540678977966,
0.20914962887763977,
-0.030504120513796806,
-0.41495198011398315,
0.09812858700752258,
-0.11217805743217468,
-0.1236163079738617,
-0.19593903422355652,
0.679000973701477,
0.05300642177462578,
-0.20233573019504547,
0.3828850984573364,
-0.27437031269073486
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5.
Feel free to update your Datasets version
```shell
pip install -U datasets
```
and see if it better suits your needs. | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 34 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5.
Feel free to update your Datasets version
```shell
pip install -U datasets
```
and see if it better suits your needs. | [
-0.23383398354053497,
-0.3642718195915222,
0.10987385362386703,
0.32716724276542664,
0.580288827419281,
-0.12271162867546082,
0.2948492169380188,
0.40527769923210144,
-0.18221348524093628,
0.17751678824424744,
-0.04829094186425209,
-0.12470803409814835,
-0.33843642473220825,
0.22990325093269348,
0.09760387986898422,
-0.06416884809732437,
0.12377574294805527,
0.15337209403514862,
-0.10449331998825073,
-0.23815903067588806,
0.019075794145464897,
0.044405531138181686,
0.2407270073890686,
0.24856539070606232,
-0.5509334802627563,
0.09611376374959946,
-0.053044650703668594,
0.06571144610643387,
-0.4600452482700348,
-0.06493492424488068,
0.09303580969572067,
-0.346802681684494,
0.2184777408838272,
0.5662024617195129,
-0.0001273607776965946,
-0.042478278279304504,
0.15866616368293762,
-0.03712595999240875,
-0.036269281059503555,
0.15158894658088684,
0.12113228440284729,
-0.059224169701337814,
-0.15600940585136414,
0.1039411798119545,
0.26078006625175476,
-0.08814144879579544,
-0.034814149141311646,
-0.06934065371751785,
0.3328703045845032,
0.2546795904636383,
0.08414500206708908,
0.16870719194412231,
0.05308547988533974,
0.020814625546336174,
0.22352074086666107,
0.2778952717781067,
-0.039204519242048264,
0.023658039048314095,
0.18847988545894623,
-0.19350844621658325,
-0.034208204597234726,
0.22108204662799835,
0.110808365046978,
-0.1128801628947258,
0.33156678080558777,
0.19343191385269165,
-0.057336218655109406,
-0.3944152295589447,
0.241011381149292,
0.3753351867198944,
0.04061031714081764,
-0.40692138671875,
-0.2597793638706207,
-0.40717044472694397,
0.2153962254524231,
-0.460197389125824,
0.07862646132707596,
0.15656384825706482,
-0.174577534198761,
0.0869324579834938,
-0.28224167227745056,
-0.4332430362701416,
-0.26240846514701843,
-0.06441815942525864,
-0.19523514807224274,
-0.02049928717315197,
-0.2531411051750183,
-0.08780030161142349,
0.03168513625860214,
-0.051335956901311874,
-0.3014712333679199,
0.0018026672769337893,
-0.01309994887560606,
0.1772996336221695,
-0.09295669943094254,
-0.28106728196144104,
-0.0840078592300415,
-0.313223272562027,
0.2787921726703644,
-0.5234853625297546,
-0.18430987000465393,
-0.43528324365615845,
-0.20175625383853912,
-0.3546654284000397,
0.4170536696910858,
0.4720200300216675,
-0.3960171937942505,
0.1702493131160736,
0.16657224297523499,
0.05489549785852432,
-0.15367162227630615,
-0.07587410509586334,
-0.15475080907344818,
0.07043725252151489,
0.07072212547063828,
-0.4381207227706909,
0.1299617886543274,
-0.2795092761516571,
-0.17100171744823456,
0.3896249532699585,
-0.29683297872543335,
0.203412264585495,
0.024419227614998817,
0.3456145226955414,
-0.05713857337832451,
0.15042677521705627,
0.07535707950592041,
0.02950381115078926,
-0.43570196628570557,
-0.014029573649168015,
-0.08743377774953842,
0.06906113773584366,
-0.1871558129787445,
0.1723107397556305,
-0.004425681196153164,
0.044465143233537674,
0.09751634299755096,
-0.0309927836060524,
0.2879885733127594,
-0.061480723321437836,
0.06585555523633957,
-0.2731788754463196,
0.10983746498823166,
0.19492016732692719,
-0.16692368686199188,
0.4897105097770691,
-0.005619427189230919,
0.04675748571753502,
0.0041756099089980125,
0.08907149732112885,
-0.21380643546581268,
-0.5087085366249084,
-0.13343726098537445,
0.10733912140130997,
-0.022537823766469955,
0.27033182978630066,
-0.11418616026639938,
0.3702566623687744,
0.4396835267543793,
-0.044038258492946625,
-0.02263520285487175,
-0.194494366645813,
-0.22295622527599335,
-0.012610993348062038,
0.37541764974594116,
0.4236917495727539,
-0.5573845505714417,
-0.13744747638702393,
-0.283102422952652,
0.2760492265224457,
0.3170405924320221,
0.6052902340888977,
-0.03665749728679657,
0.5938883423805237,
-0.26809975504875183,
0.1369599550962448,
-0.2820637822151184,
0.2830561399459839,
-0.43175506591796875,
0.36315321922302246,
-0.05580201745033264,
-0.08128303289413452,
0.06759417057037354,
-0.05093084275722504,
0.16017265617847443,
0.049495480954647064,
0.4206696152687073,
0.010538574308156967,
-0.1910240650177002,
0.02782929129898548,
-0.34919294714927673,
-0.39339739084243774,
-0.30291348695755005,
0.03914909064769745,
0.20747515559196472,
-0.1426800936460495,
-0.24288544058799744,
0.5842377543449402,
0.14932306110858917,
-0.11760124564170837,
0.14436206221580505,
0.4034584164619446,
0.10615096986293793,
-0.048993635922670364,
0.030990272760391235,
-0.15463830530643463,
-0.15219543874263763,
0.0177602656185627,
-0.24668404459953308,
0.18081021308898926,
0.09171201288700104,
-0.2361070066690445,
-0.09856578707695007,
-0.01834733597934246,
0.07846959680318832,
-0.18598979711532593,
-0.0025021417532116175,
-0.18685969710350037,
-0.1341239959001541,
0.05626269057393074,
-0.05349591001868248,
-0.08289024978876114,
-0.11116895824670792,
0.055769722908735275,
-0.4824640154838562,
-0.02163616381585598,
-0.04383547976613045,
-0.18780678510665894,
-0.05888565629720688,
0.3047100007534027,
-0.15678149461746216,
0.04964660853147507,
-0.10764768719673157,
0.20035138726234436,
0.06552468240261078,
0.09014593064785004,
-0.010425022803246975,
0.18493224680423737,
0.26473918557167053,
0.09367538243532181,
0.13311026990413666,
0.19938170909881592,
0.08280214667320251,
-0.06784328073263168,
-0.14168070256710052,
0.12530632317066193,
0.19425085186958313,
0.1309911459684372,
0.23536860942840576,
-0.23874010145664215,
-0.0969012975692749,
0.1526818871498108,
-0.0067467535845935345,
-0.2505146563053131,
0.2871019244194031,
0.04822991043329239,
0.2550385594367981,
0.1577136218547821,
-0.18244899809360504,
-0.09407046437263489,
0.3434640169143677,
-0.1666010022163391,
0.055735450237989426,
0.426144003868103,
-0.3578203618526459,
-0.09155227243900299,
-0.04630718007683754,
-0.18885888159275055,
0.37290647625923157,
0.08033200353384018,
0.134101003408432,
0.10677891224622726,
0.06447125226259232,
-0.0672612413764,
0.14993038773536682,
0.28745123744010925,
-0.1175793930888176,
0.17289136350154877,
0.18844841420650482,
-0.029573801904916763,
-0.2551501989364624,
0.05470220744609833,
-0.2172521948814392,
0.37173178791999817,
-0.38483139872550964,
0.3306092917919159,
0.0946647897362709,
0.03272567316889763,
-0.4031642973423004,
-0.20521505177021027,
-0.17555461823940277,
0.012751715257763863,
0.16424943506717682,
-0.15788961946964264,
-0.08293119072914124,
-0.09995526820421219,
0.39123791456222534,
0.2013758271932602,
0.19629882276058197,
0.3108692765235901,
0.03309783712029457,
0.1383020430803299,
-0.3434259593486786,
-0.004556190688163042,
0.16630397737026215,
-0.16329999268054962,
0.13639000058174133,
0.11262735724449158,
-0.26671651005744934,
-0.06242596358060837,
-0.24029766023159027,
0.1260368376970291,
-0.19230391085147858,
0.2783961892127991,
0.21132682263851166,
0.22930514812469482,
-0.38281217217445374,
0.09265049546957016,
0.04352319985628128,
-0.0196591354906559,
-0.1070588082075119,
-0.04211031645536423,
-0.11869894713163376,
0.13879451155662537,
-0.09324393421411514,
-0.3279578685760498,
-0.12229248136281967,
-0.05318222939968109,
0.3685314357280731,
-0.00018629332771524787,
-0.008169857785105705,
0.2316596359014511,
0.2695370018482208,
0.1328946202993393,
0.019613955169916153,
-0.15548746287822723,
0.008382158353924751,
-0.1846470981836319,
0.18035881221294403,
0.0460975281894207,
-0.18812577426433563,
-0.28214460611343384,
0.041953444480895996,
-0.0011368152918294072,
-0.1777224838733673,
-0.5618308782577515,
0.018450841307640076,
-0.4612649381160736,
-0.26866433024406433,
-0.22510457038879395,
0.40867844223976135,
0.10598667711019516,
-0.05961768701672554,
0.05952394753694534,
0.08672069758176804,
0.07464057952165604,
-0.09340403974056244,
-0.21417264640331268,
0.2236483097076416,
-0.421825110912323,
0.4128442406654358,
-0.03766519948840141,
0.8130556344985962,
0.30642902851104736,
-0.06881404668092728,
-0.006848147604614496,
-0.008248713798820972,
0.45847928524017334,
-0.4559735953807831,
-0.22102774679660797,
0.27778396010398865,
-0.14318348467350006,
-0.39807388186454773,
0.27017951011657715,
0.13003478944301605,
0.45509111881256104,
0.1515551060438156,
0.04780583083629608,
0.27455854415893555,
-0.31000757217407227,
0.3527386486530304,
0.1191464439034462,
0.17237883806228638,
0.0011767179239541292,
0.09655388444662094,
0.03634068742394447,
-0.29528918862342834,
0.04452008754014969,
-0.0182025246322155,
0.16531486809253693,
0.014882035553455353,
0.08540964871644974,
-0.3076312839984894,
-0.7416743040084839,
-0.03371359035372734,
0.06533020734786987,
0.016120022162795067,
0.13235366344451904,
-0.0856468454003334,
0.18222956359386444,
0.05008641630411148,
0.7840263843536377,
0.24174590408802032,
-0.146958589553833,
-0.06311963498592377,
-0.00909098144620657,
-0.22430293262004852,
0.05024077370762825,
-0.3604032099246979,
-0.0077726771123707294,
0.5267218947410583,
0.6359656453132629,
-0.3379247784614563,
-0.044970352202653885,
0.1372145265340805,
0.38180163502693176,
-0.10958143323659897,
0.03511859104037285,
-0.41706782579421997,
-0.07145736366510391,
-0.22452959418296814,
0.17310915887355804,
0.08257275074720383,
0.03987797349691391,
-0.11766615509986877,
-0.10584518313407898,
0.1136164590716362,
-0.06077459454536438,
0.3254384398460388,
0.25671979784965515,
0.31784719228744507,
-0.3010821044445038,
0.34174224734306335,
-0.046281490474939346,
0.12646181881427765,
0.3970065414905548,
0.2715197503566742,
-0.2576494514942169,
-0.2769012749195099,
0.2349773645401001,
-0.10838649421930313,
0.3079814016819,
0.5227624773979187,
-0.06462836265563965,
0.13112668693065643,
0.15538129210472107,
0.4302622973918915,
-0.4125351309776306,
0.5151008367538452,
0.5527089238166809,
0.017797859385609627,
-0.47657471895217896,
-0.2469361126422882,
0.4360094368457794,
0.10928341001272202,
0.1275293081998825,
0.21052664518356323,
0.2606104910373688,
-0.30308201909065247,
0.27011653780937195,
-0.09461961686611176,
1.085962176322937,
-0.2421150952577591,
0.5881173014640808,
0.12128202617168427,
0.23719535768032074,
0.5970584154129028,
-0.2419920712709427,
0.15632560849189758,
-0.33798736333847046,
-0.13132469356060028,
0.1505070924758911,
0.05532113462686539,
-0.1317778378725052,
0.03990578651428223,
-0.16741691529750824,
0.2230979949235916,
-0.08007590472698212,
0.19450834393501282,
-0.2192201167345047,
0.3541291058063507,
0.05051765963435173,
-0.32074031233787537,
-0.2754778265953064,
-0.032047342509031296,
-0.030304552987217903,
0.050714876502752304,
-0.16878823935985565,
0.05879492312669754,
0.040565431118011475,
-0.29914095997810364,
-0.3170068562030792,
-0.19163110852241516,
-0.06585246324539185,
0.015036566182971,
0.1493944674730301,
-0.35082268714904785,
0.2959381937980652,
0.051182374358177185,
0.2471512407064438,
0.6219080686569214,
-0.2682355046272278,
0.058883294463157654,
-0.26965317130088806,
0.04399685934185982,
-0.0632772222161293,
-0.04633324593305588,
-0.008113224990665913,
0.0676460936665535,
0.0005966835306026042,
0.008547219447791576,
-0.03528246656060219,
0.28030794858932495,
-0.34836453199386597,
-0.16164347529411316,
0.44364500045776367,
-0.46761611104011536,
-0.023443110287189484,
-0.1549750715494156,
-0.11210867017507553,
-0.15179678797721863,
0.02331988513469696,
0.17970828711986542,
-0.2624877691268921,
0.09787924587726593,
0.01171167939901352,
-0.389135479927063,
-0.2371119260787964,
0.2602458596229553,
0.23946982622146606,
0.0908636525273323,
0.6803624033927917,
0.3069347143173218,
-0.043292537331581116,
-0.07546326518058777,
0.3743821382522583,
0.47306618094444275,
-0.44972312450408936,
0.31705260276794434,
0.18601678311824799,
-0.03463137522339821,
0.033411867916584015,
0.12536819279193878,
0.24583502113819122,
-0.3215656280517578,
-0.19628459215164185,
-0.04284968599677086,
-0.4025847315788269,
0.09233305603265762,
-0.04289178177714348,
0.15593121945858002,
0.17858447134494781,
0.2970406115055084,
-0.013736088760197163,
0.14017850160598755,
-0.1373617947101593,
0.12333328276872635,
-0.0231053177267313,
0.06876087933778763,
-0.19335748255252838,
-0.058735739439725876,
0.22722437977790833,
-0.1636863648891449,
-0.0683894082903862,
0.20426446199417114,
0.014269190840423107,
-0.10045184195041656,
-0.19867929816246033,
0.1495772898197174,
0.0027416772209107876,
-0.02329818531870842,
0.13062593340873718,
0.05382324755191803,
-0.15016567707061768,
-0.24430684745311737,
0.42138874530792236,
0.17243331670761108,
0.14141367375850677,
-0.13926288485527039,
0.10989759117364883,
-0.10065143555402756,
-0.0634012520313263,
-0.014084565453231335,
0.1469549536705017,
0.26052597165107727,
0.0540863499045372,
0.15882796049118042,
0.3157702088356018,
-0.08776149153709412,
-0.10940827429294586,
0.19934611022472382,
0.19712409377098083,
0.10858439654111862,
0.09518785029649734,
-0.26547983288764954,
-0.08092638850212097,
0.037872400134801865,
0.286485493183136,
0.4713866710662842,
-0.28420472145080566,
-0.1716524213552475,
0.3851936161518097,
0.10270018875598907,
-0.047752976417541504,
-0.11896421760320663,
-0.13358443975448608,
-0.20946210622787476,
-0.13955113291740417,
0.2914470434188843,
-0.052671317011117935,
0.020577188581228256,
-0.11722151190042496,
0.18525472283363342,
-0.10636609047651291,
0.15240341424942017,
-0.020612414926290512,
0.6539322137832642,
0.01522102765738964,
0.0670526772737503,
0.17864736914634705,
0.0688595250248909,
0.2759258449077606,
0.8238028287887573,
0.1972067952156067,
0.16809464991092682,
-0.36837753653526306,
0.07338399440050125,
-0.21121618151664734,
-0.49439457058906555,
-0.4449979066848755,
0.1355963796377182,
-0.14875218272209167,
0.2809884548187256,
-0.16614316403865814,
0.5747609734535217,
-0.13521887362003326,
-0.2540163993835449,
-0.14531415700912476,
-0.07836589962244034,
-0.27354609966278076,
-0.14236344397068024,
0.2345377653837204,
-0.14494824409484863,
0.1949320286512375,
0.2462967485189438,
-0.12182336300611496,
0.01050399150699377,
-0.022356988862156868,
0.0733814686536789,
-0.15238477289676666,
0.028517385944724083,
-0.16889512538909912,
0.18493573367595673,
0.07989431172609329,
-0.22073425352573395,
0.21220308542251587,
-0.059928469359874725,
0.010018025524914265,
-0.24954339861869812,
0.3357709050178528,
0.4979710578918457,
0.3848266005516052,
-0.237309068441391,
0.2271021157503128,
0.1799067258834839,
0.016918420791625977,
-0.08358113467693329,
0.08126075565814972,
0.2790590524673462,
0.10573685169219971,
0.0313190333545208,
-0.038733601570129395,
-0.1393173784017563,
-0.06495487689971924,
0.17809005081653595,
0.129725381731987,
-0.22380834817886353,
0.20879985392093658,
-0.17843832075595856,
-0.17542050778865814,
-0.24956636130809784,
0.028814975172281265,
-0.7493739724159241,
0.5085181593894958,
0.5131711959838867,
-0.03139616549015045,
0.11460135877132416,
-0.07970661669969559,
-0.00685429573059082,
-0.1509416252374649,
0.5040616989135742,
0.46406134963035583,
-0.010310791432857513,
-0.39560508728027344,
0.021150458604097366,
-0.31626999378204346,
0.25241348147392273,
-0.37454068660736084,
0.3190291225910187,
-0.14068104326725006,
-0.0834927037358284,
-0.008290332742035389,
-0.1462576538324356,
-0.01148256380110979,
-0.2426193207502365,
-0.6652165651321411,
0.17915882170200348,
-0.17020860314369202,
-0.2547815442085266,
-0.2493762969970703,
0.0223899744451046,
-0.018474051728844643,
-0.2822554111480713,
0.41832607984542847,
-0.0032186268363147974,
-0.13225305080413818,
-0.011823912151157856,
0.2694911062717438,
-0.21865859627723694,
0.1853107064962387,
0.26657748222351074,
0.2303336262702942,
0.03517957776784897,
0.03517527878284454,
-0.26408568024635315,
-0.3061712384223938,
0.10127328336238861,
-0.06812653690576553,
0.15140756964683533,
0.2569340169429779,
0.3529635965824127,
-0.34323030710220337,
-0.2458404302597046,
-0.3924255073070526,
0.16208796203136444,
0.3589937686920166,
-0.13166742026805878,
-0.23579199612140656,
0.07621776312589645,
-0.10695955157279968,
-0.014140554703772068,
0.060524675995111465,
0.4861750304698944,
-0.12844792008399963,
-0.08054469525814056,
-0.3727776110172272,
-0.21690109372138977,
0.4692787230014801,
-0.22482827305793762,
-0.43437719345092773,
-0.23054099082946777,
0.04101883992552757,
0.27240997552871704,
-0.2714160978794098,
-0.801881730556488,
0.13166894018650055,
0.16681160032749176,
-0.005734544713050127,
-0.5056571960449219,
0.13500820100307465,
-0.08705559372901917,
-0.12997327744960785,
-0.16990746557712555,
0.7421056032180786,
0.08223235607147217,
-0.21329283714294434,
0.4542505741119385,
-0.25828662514686584
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 20 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error).
I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though)
Should we consider replacing the old urls with these ones even though it's not the exact same data ? | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 59 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error).
I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though)
Should we consider replacing the old urls with these ones even though it's not the exact same data ? | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ... | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 20 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ... | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this. | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 38 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this. | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 20 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much. | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 22 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much. | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Hi
I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 46 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Hi
I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen. | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 27 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen. | [
-0.4449557960033417,
-0.42247599363327026,
-0.08150412142276764,
0.4179416000843048,
0.5046890377998352,
0.12449770420789719,
0.12814545631408691,
0.21399644017219543,
0.27867045998573303,
0.0013543693348765373,
0.0727132111787796,
-0.11046157777309418,
-0.23516149818897247,
0.09720730781555176,
0.28374844789505005,
-0.040581054985523224,
-0.12386257946491241,
-0.002882931148633361,
-0.485933393239975,
0.039038535207509995,
-0.23671431839466095,
0.11676350980997086,
-0.11184506118297577,
-0.06525956094264984,
-0.34886953234672546,
-0.06710723787546158,
-0.13945293426513672,
0.058442749083042145,
-0.36051490902900696,
-0.2884308695793152,
0.35916754603385925,
0.04849344119429588,
0.21956199407577515,
0.4216262698173523,
-0.00010458743054186925,
-0.03442518413066864,
0.2609165906906128,
-0.11033220589160919,
-0.16430577635765076,
-0.39196839928627014,
-0.34350162744522095,
-0.1982589066028595,
-0.08634142577648163,
-0.08919860422611237,
-0.018449906259775162,
-0.11762142926454544,
-0.11299459636211395,
-0.3425155580043793,
0.25244003534317017,
0.35402148962020874,
0.3467801511287689,
0.26972562074661255,
0.35456717014312744,
-0.19142943620681763,
0.13827694952487946,
0.1699799746274948,
0.05550415813922882,
0.12840309739112854,
-0.007046542130410671,
-0.14007863402366638,
0.11668386310338974,
0.13948525488376617,
-0.03723447769880295,
0.2416529655456543,
0.10428782552480698,
-0.15864494442939758,
0.030769936740398407,
-0.25492870807647705,
0.2687593698501587,
0.13920503854751587,
0.3950156271457672,
-0.11574292182922363,
-0.13140776753425598,
0.1513412445783615,
0.06506232917308807,
-0.5738539695739746,
0.22009456157684326,
0.5009623765945435,
-0.1863730400800705,
0.19216136634349823,
-0.27147653698921204,
-0.08709534257650375,
0.023812055587768555,
0.14130662381649017,
-0.21970313787460327,
0.2921699285507202,
-0.2135501205921173,
0.018389679491519928,
0.18490101397037506,
-0.1017095074057579,
0.0880926176905632,
-0.01390217524021864,
0.1450839340686798,
0.2526482343673706,
-0.2700490951538086,
0.1261817216873169,
-0.11457659304141998,
0.1292574405670166,
0.08065445721149445,
0.008612353354692459,
-0.25201544165611267,
-0.15072207152843475,
0.2881469428539276,
-0.025947608053684235,
0.026900116354227066,
0.18884113430976868,
-0.2194879800081253,
0.08349017798900604,
0.08342494815587997,
0.19543199241161346,
-0.03696180135011673,
-0.054625269025564194,
-0.3145236372947693,
-0.2925897240638733,
0.03264749050140381,
-0.0937114879488945,
0.11518799513578415,
0.0685742199420929,
-0.2826322615146637,
0.01613907888531685,
0.004990215878933668,
-0.1779204159975052,
0.002390581648796797,
0.3310004770755768,
-0.21501590311527252,
0.14857614040374756,
0.29781574010849,
0.060011737048625946,
-0.0970928817987442,
-0.10614880919456482,
-0.2628636062145233,
-0.08037865906953812,
-0.19832275807857513,
-0.05640748143196106,
0.3051491975784302,
-0.09215439856052399,
0.37611064314842224,
0.022962843999266624,
-0.17977961897850037,
-0.18026800453662872,
0.01997334137558937,
-0.1830589473247528,
0.11124533414840698,
0.4338180124759674,
0.06936865299940109,
0.2375737428665161,
0.07188047468662262,
0.25477901101112366,
-0.0013331793015822768,
0.22461898624897003,
-0.04624807834625244,
-0.45879122614860535,
0.12388341128826141,
0.37031346559524536,
-0.10371353477239609,
-0.1154194176197052,
0.02482903189957142,
-0.14481057226657867,
0.07044979184865952,
0.2599559724330902,
-0.14403314888477325,
-0.2033018171787262,
-0.16531701385974884,
-0.21906203031539917,
0.5277347564697266,
0.3939635157585144,
0.03424155339598656,
-0.04210290312767029,
-0.40675100684165955,
-0.24531951546669006,
0.36084452271461487,
0.28235819935798645,
0.0014634660910815,
0.1401393711566925,
-0.304756224155426,
0.09743159264326096,
0.25193992257118225,
-0.214815154671669,
-0.256593257188797,
0.21181543171405792,
-0.21311867237091064,
-0.024679996073246002,
-0.05190184712409973,
0.09100396931171417,
0.010645498521625996,
0.014503232203423977,
0.2670854926109314,
0.18579021096229553,
-0.3312121033668518,
0.024992497637867928,
-0.1970982700586319,
-0.31133341789245605,
0.4462004601955414,
0.2143392413854599,
0.2483338564634323,
-0.0707215890288353,
0.01570117473602295,
0.11446719616651535,
0.3708971440792084,
0.25805938243865967,
0.07927042990922928,
-0.03383300453424454,
0.21253080666065216,
0.007951212115585804,
-0.20151780545711517,
-0.10891398787498474,
-0.28369635343551636,
0.10329073667526245,
0.24510088562965393,
-0.0778653547167778,
0.05089626833796501,
-0.007236124016344547,
-0.42736271023750305,
0.041381560266017914,
-0.16895818710327148,
-0.14934086799621582,
0.1657438576221466,
-0.07612396776676178,
0.14489442110061646,
-0.04929502680897713,
-0.076424740254879,
-0.05188160017132759,
-0.23853646218776703,
0.07050956040620804,
0.10587959736585617,
-0.020406143739819527,
-0.30566340684890747,
-0.009124316275119781,
0.24509675800800323,
-0.058119624853134155,
0.1331099271774292,
-0.03723661229014397,
-0.13541892170906067,
0.25236013531684875,
0.12333022058010101,
0.2528032958507538,
-0.0802924633026123,
0.02518250048160553,
0.15238144993782043,
-0.45250585675239563,
0.04305974021553993,
0.041944440454244614,
0.10440731793642044,
-0.15762346982955933,
0.21835024654865265,
-0.03144226595759392,
-0.09103254228830338,
0.04189511761069298,
0.1744564324617386,
0.15636824071407318,
0.14778341352939606,
-0.02493634633719921,
0.09018324315547943,
-0.13318292796611786,
0.32159388065338135,
-0.09381067752838135,
0.2526180148124695,
-0.06541867554187775,
-0.06491798162460327,
-0.11715687811374664,
0.4020731747150421,
0.1520848423242569,
0.08961842954158783,
0.04423129931092262,
-0.3025977313518524,
0.02850237675011158,
-0.21578213572502136,
0.31147971749305725,
0.49591347575187683,
0.1446497142314911,
0.1639537364244461,
0.11994906514883041,
0.15693804621696472,
-0.28165408968925476,
0.4310474395751953,
-0.040102969855070114,
0.23515231907367706,
0.25220057368278503,
-0.19616426527500153,
-0.05640016123652458,
-0.21671490371227264,
0.2778976857662201,
0.017576446756720543,
0.2078114151954651,
-0.1578264683485031,
-0.2426186203956604,
-0.2548193037509918,
-0.06735105067491531,
-0.4623292088508606,
-0.5436558127403259,
-0.2178748995065689,
-0.13212840259075165,
-0.23829980194568634,
0.02403404749929905,
-0.036704301834106445,
0.14264199137687683,
-0.042063500732183456,
-0.10259919613599777,
0.08179444819688797,
0.12687233090400696,
0.002695909235626459,
-0.053427502512931824,
-0.0635395273566246,
0.18412508070468903,
0.2524004876613617,
-0.3535851240158081,
0.5754960179328918,
-0.3072552978992462,
0.029987076297402382,
-0.24281646311283112,
-0.1333233267068863,
-0.024388113990426064,
-0.037005674093961716,
0.08675006777048111,
0.3703724443912506,
0.3781495690345764,
0.2589343786239624,
-0.035577259957790375,
0.3693833649158478,
-0.28275129199028015,
-0.06277576833963394,
-0.12146695703268051,
0.12257346510887146,
0.03744412586092949,
-0.2173154056072235,
-0.562472403049469,
-0.4598294198513031,
-0.4110194444656372,
-0.09170259535312653,
0.030459370464086533,
0.15629684925079346,
0.15120208263397217,
0.07255672663450241,
0.038223996758461,
0.14394506812095642,
-0.05548974499106407,
-0.3277634084224701,
-0.3739011585712433,
0.3905157148838043,
-0.267037957906723,
-0.44560620188713074,
0.2986951470375061,
0.05988302826881409,
0.4613802134990692,
0.2046918421983719,
-0.41128039360046387,
0.3908868730068207,
-0.11904478073120117,
-0.06690986454486847,
0.047383397817611694,
0.16776397824287415,
0.1566011607646942,
-0.04198887199163437,
-0.15582744777202606,
-0.12715107202529907,
-0.11226538568735123,
-0.1918482482433319,
-0.19831909239292145,
0.5375470519065857,
-0.1967824548482895,
0.3370722532272339,
0.06683122366666794,
0.7139244079589844,
0.14176417887210846,
-0.16782888770103455,
0.2005022168159485,
-0.10505974292755127,
0.10603180527687073,
0.12515266239643097,
-0.47578686475753784,
0.10092750191688538,
-0.1338583081960678,
0.17134059965610504,
0.19571968913078308,
0.007804493885487318,
0.12253499776124954,
-0.25674545764923096,
0.009698258712887764,
-0.26432037353515625,
-0.24601057171821594,
0.06228695064783096,
0.09642177820205688,
0.4988240897655487,
0.17762774229049683,
0.03792424127459526,
-0.02007003128528595,
-0.017367178574204445,
-0.013074919581413269,
0.31106895208358765,
0.15995468199253082,
0.13066577911376953,
0.1260281801223755,
-0.08903501182794571,
-0.35515615344047546,
0.06514454632997513,
-0.009017894975841045,
0.4483254849910736,
-0.04889106750488281,
-0.18618080019950867,
-0.025014877319335938,
-0.02294963225722313,
0.5050638318061829,
0.13520389795303345,
0.24186626076698303,
-0.09906960278749466,
-0.11321462690830231,
-0.3881947696208954,
-0.00882450770586729,
-0.0477994903922081,
-0.0792362242937088,
0.17921018600463867,
0.033759213984012604,
-0.21138888597488403,
-0.18056614696979523,
0.3363737165927887,
0.19658592343330383,
-0.240535706281662,
-0.3452710211277008,
-0.21482867002487183,
-0.37690484523773193,
-0.375888466835022,
-0.06329856067895889,
0.01560259610414505,
0.23703666031360626,
-0.27106133103370667,
-0.05457568168640137,
0.012776309624314308,
-0.03147651255130768,
0.08128996193408966,
-0.06278861314058304,
0.2074974775314331,
0.017050685361027718,
0.32761216163635254,
0.24725587666034698,
0.24834439158439636,
0.3023760914802551,
0.4499738812446594,
-0.07906592637300491,
0.03008979931473732,
-0.04503096640110016,
-0.03183860704302788,
0.168583944439888,
0.08830921351909637,
-0.12882378697395325,
0.03131725266575813,
0.3365077078342438,
0.1797913908958435,
-0.5687053799629211,
0.11871155351400375,
0.41429588198661804,
-0.04427747055888176,
-0.22489145398139954,
-0.29648399353027344,
0.18441277742385864,
0.023435553535819054,
0.1980576068162918,
0.2240125834941864,
0.0846090316772461,
-0.10260020196437836,
-0.37290582060813904,
0.0741107240319252,
0.7303832769393921,
0.004098489414900541,
-0.006337444297969341,
0.05413978174328804,
-0.2457991987466812,
0.049316395074129105,
0.19654294848442078,
0.059595152735710144,
-0.20256498456001282,
0.08234605193138123,
0.07154704630374908,
-0.1753578931093216,
0.08994618058204651,
0.1638876348733902,
-0.20382384955883026,
0.19456379115581512,
-0.09039460867643356,
0.3699929416179657,
0.12374821305274963,
0.27324309945106506,
-0.2994999885559082,
-0.07650244235992432,
-0.1843225508928299,
0.24961987137794495,
-0.15794996917247772,
0.50971919298172,
-0.23378771543502808,
-0.021878661587834358,
0.25221508741378784,
-0.33801496028900146,
-0.3348369598388672,
-0.019452212378382683,
-0.6515514254570007,
0.15432843565940857,
-0.20696023106575012,
0.05444236844778061,
0.26658546924591064,
0.07173970341682434,
0.04522337764501572,
0.39728209376335144,
-0.10997574776411057,
0.14812885224819183,
-0.21824587881565094,
-0.18376487493515015,
-0.14994439482688904,
0.10437066853046417,
0.038820721209049225,
-0.20559196174144745,
-0.24223174154758453,
-0.03048148937523365,
-0.029318979009985924,
0.10185939073562622,
0.16182348132133484,
-0.08490942418575287,
0.26290157437324524,
-0.15889379382133484,
-0.13140705227851868,
-0.05291442945599556,
-0.08087567985057831,
-0.13139520585536957,
0.2391679733991623,
0.08143306523561478,
-0.10590033233165741,
0.3598032593727112,
0.12048683315515518,
-0.035793207585811615,
-0.17569200694561005,
0.4182899296283722,
-0.12139368057250977,
0.013303205370903015,
0.4005338251590729,
0.2816835343837738,
-0.1847718209028244,
-0.4077313542366028,
0.001117838779464364,
-0.22806720435619354,
-0.25476136803627014,
0.21384069323539734,
0.15723569691181183,
0.27000951766967773,
-0.04901500791311264,
0.11238642036914825,
0.2817124128341675,
-0.22573815286159515,
0.15325087308883667,
-0.43748924136161804,
-0.3613285422325134,
-0.04511773958802223,
-0.0801631510257721,
0.1647503823041916,
-0.08392956107854843,
0.30074891448020935,
0.1840871125459671,
0.3149896264076233,
-0.3982214331626892,
0.18447858095169067,
-0.05545080453157425,
0.041033025830984116,
0.4086414873600006,
-0.15233086049556732,
0.27012571692466736,
-0.00010289315832778811,
0.20066915452480316,
0.035956960171461105,
-0.3535064160823822,
-0.2827749252319336,
-0.17894574999809265,
0.07970927655696869,
0.06451517343521118,
-0.31313154101371765,
0.23155757784843445,
-0.2747569680213928,
-0.15286490321159363,
0.17869731783866882,
0.04738563299179077,
0.10094969719648361,
-0.04881154000759125,
0.15223264694213867,
0.04107155650854111,
0.08859620988368988,
-0.212845116853714,
0.07007391005754471,
-0.05190103501081467,
0.3334442377090454,
0.08323975652456284,
-0.06848613917827606,
0.30257806181907654,
-0.15398040413856506,
-0.09996306896209717,
-0.21939240396022797,
0.1600320041179657,
-0.20814628899097443,
0.3932882845401764,
-0.18479987978935242,
-0.011456779204308987,
0.11406170576810837,
0.30094608664512634,
0.33540382981300354,
-0.0449945367872715,
0.14369294047355652,
0.13722020387649536,
0.3516525626182556,
-0.40804922580718994,
0.17734627425670624,
-0.14447996020317078,
0.014859048649668694,
-0.07027926295995712,
0.0008020715904422104,
0.022221161052584648,
0.037115518003702164,
-0.1540633589029312,
0.2090328484773636,
0.4429771602153778,
-0.25164222717285156,
0.10131334513425827,
0.20702429115772247,
-0.14431685209274292,
0.15126022696495056,
0.05373383313417435,
0.01452721282839775,
0.05114712566137314,
0.35693082213401794,
-0.3507206439971924,
0.3197164237499237,
-0.12006516754627228,
0.039106644690036774,
0.10245863348245621,
-0.294332355260849,
-0.0493200309574604,
0.2626119554042816,
-0.25381889939308167,
-0.039840370416641235,
-0.1569644808769226,
0.294178307056427,
-0.11784785985946655,
0.014435327611863613,
-0.15741439163684845,
0.26341521739959717,
-0.07960289716720581,
-0.026671193540096283,
-0.22451969981193542,
-0.16672226786613464,
-0.24165195226669312,
-0.008191236294806004,
0.1487242579460144,
-0.179410919547081,
0.29241645336151123,
0.265993595123291,
-0.02189430221915245,
-0.5418663024902344,
-0.1938091665506363,
0.1615171879529953,
-0.06607090681791306,
-0.36610645055770874,
0.0962020754814148,
0.42628413438796997,
-0.10736524313688278,
0.16737474501132965,
0.47673752903938293,
0.3966049551963806,
0.32193511724472046,
-0.14238585531711578,
0.0870661735534668,
0.057688064873218536,
-0.10058949887752533,
-0.18793365359306335,
0.20519031584262848,
0.07906762510538101,
-0.04851884767413139,
0.20979399979114532,
0.2723873555660248,
-0.2374075949192047,
-0.19492177665233612,
0.023563578724861145,
-0.1338629126548767,
-0.06351647526025772,
0.2793865203857422,
-0.13691255450248718,
0.04305947199463844,
-0.43184205889701843,
0.23056338727474213,
-0.2953835725784302,
0.30974388122558594,
0.5763674974441528,
-0.05164458975195885,
0.16799215972423553,
-0.28744977712631226,
0.11438562721014023,
-0.004496993031352758,
0.6133633852005005,
0.2889217436313629,
0.055917732417583466,
-0.4034256637096405,
-0.43118515610694885,
-0.7414612770080566,
0.010679294355213642,
0.07478431612253189,
0.09362230449914932,
-0.1725309193134308,
0.08811332285404205,
-0.053802743554115295,
0.06516790390014648,
0.2490345686674118,
0.08209285140037537,
0.1977207064628601,
0.027918849140405655,
-0.05663369968533516,
-0.05528471991419792,
-0.2002749741077423,
-0.014396836049854755,
0.13614560663700104,
-0.3531440794467926,
0.15829521417617798,
-0.38703176379203796,
0.12981830537319183,
-0.4399928152561188,
0.27063822746276855,
-0.048777151852846146,
0.2809251844882965,
0.28762727975845337,
0.15053384006023407,
0.3705020248889923,
-0.09074738621711731,
-0.054610755294561386,
-0.19502411782741547,
-0.06907916069030762,
-0.150426983833313,
0.15007208287715912,
0.21825562417507172,
0.1705782264471054,
-0.0018086540512740612,
-0.30956733226776123,
-0.44950833916664124,
0.08449063450098038,
0.003159931628033519,
-0.03723035007715225,
-0.19252406060695648,
0.04361343011260033,
-0.1081487238407135,
-0.10061390697956085,
0.3356008231639862,
0.22991570830345154,
-0.14369674026966095,
0.022884581238031387,
-0.3451315462589264,
-0.38486552238464355,
0.4460466206073761,
-0.15593445301055908,
-0.21605321764945984,
-0.28208839893341064,
0.09340781718492508,
-0.053583137691020966,
-0.00980936549603939,
-0.48511579632759094,
0.3032738268375397,
0.25332266092300415,
-0.0807628408074379,
-0.20001327991485596,
0.4165596067905426,
-0.11241979897022247,
-0.03501352667808533,
0.0745052844285965,
0.42599380016326904,
0.053124282509088516,
-0.2661994993686676,
-0.20818489789962769,
-0.1793360859155655
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns.
Currently to add more columns to a dataset, one must use `map`.
What you can do is somehting like this:
```python
# suppose you have datasets d1, d2, d3
def add_columns(example, index):
example.update(d2[index])
example.update(d3[index])
return example
full_dataset = d1.map(add_columns, with_indices=True)
``` | I want to achieve the following result

| 58 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns.
Currently to add more columns to a dataset, one must use `map`.
What you can do is somehting like this:
```python
# suppose you have datasets d1, d2, d3
def add_columns(example, index):
example.update(d2[index])
example.update(d3[index])
return example
full_dataset = d1.map(add_columns, with_indices=True)
``` | [
-0.42260879278182983,
-0.08625979721546173,
-0.1545989215373993,
0.07816196233034134,
0.10730957984924316,
0.4110478460788727,
0.31150761246681213,
0.46485084295272827,
0.11830145865678787,
0.17059604823589325,
-0.1758231371641159,
0.3464905023574829,
-0.07507321983575821,
0.5408211350440979,
-0.2195974588394165,
-0.28459522128105164,
0.15833617746829987,
0.5231658220291138,
-0.518383800983429,
0.07941929996013641,
-0.43633705377578735,
-0.11400185525417328,
-0.32522839307785034,
-0.3519527316093445,
-0.3305089473724365,
0.22723132371902466,
-0.32632607221603394,
0.04968925938010216,
-0.24203158915042877,
-0.2773003578186035,
0.18457883596420288,
0.15656232833862305,
0.1737535446882248,
0.18706795573234558,
-0.00010186565486947075,
-0.0065457639284431934,
-0.014074611477553844,
-0.09879252314567566,
-0.23881199955940247,
-0.23869915306568146,
-0.42746594548225403,
-0.5326146483421326,
0.01913531869649887,
-0.1855814903974533,
0.007085983641445637,
-0.5496053695678711,
-0.15158189833164215,
-0.1952262967824936,
-0.036327119916677475,
0.26912641525268555,
0.2765330374240875,
-0.00241393456235528,
0.14384238421916962,
-0.22053827345371246,
-0.03270904719829559,
0.047784581780433655,
-0.14886842668056488,
-0.23833689093589783,
-0.10288440436124802,
-0.030482294037938118,
0.267852783203125,
0.09248104691505432,
-0.07866647094488144,
-0.09554740786552429,
0.023015018552541733,
0.24294908344745636,
0.32892173528671265,
-0.46374186873435974,
0.2783742845058441,
0.35957610607147217,
0.5390445590019226,
-0.17612653970718384,
-0.30889490246772766,
-0.010776271112263203,
0.2730106711387634,
-0.22511310875415802,
-0.11531797796487808,
0.1722412109375,
0.18411436676979065,
0.10558152198791504,
0.005162235349416733,
-0.09690989553928375,
-0.23845019936561584,
0.353094220161438,
-0.12394791096448898,
0.5723180174827576,
0.09375826269388199,
0.12462898343801498,
0.16471049189567566,
-0.23234330117702484,
0.2123434990644455,
-0.23055948317050934,
-0.026388835161924362,
0.38262373208999634,
-0.579716682434082,
-0.08497466892004013,
-0.1941434144973755,
-0.2402859330177307,
0.18601086735725403,
0.09343494474887848,
0.012748626992106438,
-0.02302684634923935,
-0.11488793790340424,
0.21610282361507416,
0.10359731316566467,
0.14304475486278534,
0.11781604588031769,
0.3845241069793701,
-0.11298643797636032,
-0.21886110305786133,
0.3609624207019806,
-0.035208817571401596,
-0.30746960639953613,
-0.42766594886779785,
-0.09287572652101517,
-0.01259775459766388,
0.082821324467659,
0.24912399053573608,
0.09112899750471115,
-0.10141383856534958,
-0.11310425400733948,
-0.027137452736496925,
-0.024538518860936165,
0.054152362048625946,
0.10440322756767273,
0.7092759609222412,
-0.04964030161499977,
0.24613577127456665,
0.22598059475421906,
0.016785021871328354,
-0.2002800554037094,
0.30863335728645325,
0.10939189046621323,
-0.0477171316742897,
0.11334660649299622,
-0.20247404277324677,
-0.046514738351106644,
0.35169294476509094,
0.1328008770942688,
0.1754063367843628,
0.0056137507781386375,
-0.2470528930425644,
0.18151190876960754,
0.21985557675361633,
0.13232873380184174,
-0.04526284337043762,
0.1345878392457962,
-0.1955263316631317,
0.017967280000448227,
0.3099166452884674,
-0.17240992188453674,
-0.0889015942811966,
-0.5252357721328735,
0.20822782814502716,
-0.04232408478856087,
-0.07005194574594498,
-0.3134082555770874,
0.36233675479888916,
-0.07714980095624924,
0.053949255496263504,
0.11553473770618439,
-0.04746616259217262,
0.062178365886211395,
-0.16612480580806732,
0.20095747709274292,
0.1113441064953804,
-0.2669384479522705,
0.00802649650722742,
0.15360279381275177,
-0.1589450240135193,
0.14459966123104095,
-0.06001471355557442,
0.11772656440734863,
-0.23453925549983978,
-0.006772330496460199,
0.005961992312222719,
0.3625381290912628,
-0.3298891484737396,
-0.09269844740629196,
-0.03210749104619026,
-0.11978290230035782,
-0.005956599954515696,
0.24581746757030487,
0.09696366637945175,
0.18389713764190674,
0.2839230000972748,
0.20155665278434753,
0.04820319265127182,
0.03500701114535332,
-0.009959733113646507,
0.01516819279640913,
-0.12045568972826004,
0.4265734851360321,
0.2494771033525467,
-0.043200090527534485,
0.27666985988616943,
-0.015004988759756088,
-0.45884594321250916,
0.3301062285900116,
-0.3999514877796173,
0.29247233271598816,
0.13186420500278473,
0.1267351657152176,
-0.2035219669342041,
0.0067230332642793655,
-0.11771585047245026,
-0.5746805667877197,
0.051951877772808075,
0.28629663586616516,
0.21273590624332428,
0.07857886701822281,
-0.12868618965148926,
-0.10281208157539368,
-0.19287502765655518,
0.009984638541936874,
0.09415251761674881,
0.1835021674633026,
0.04131760820746422,
0.051945239305496216,
-0.24933062493801117,
-0.38106098771095276,
0.36065980792045593,
0.0950976237654686,
-0.043297410011291504,
-0.15084823966026306,
0.21309930086135864,
0.1889883279800415,
0.029141869395971298,
-0.016535412520170212,
0.27189743518829346,
0.09437403827905655,
-0.11734627932310104,
0.1646355241537094,
0.379459947347641,
-0.34524744749069214,
0.008248298428952694,
0.04714707285165787,
0.2545303702354431,
0.12269659340381622,
0.2721697688102722,
-0.17936347424983978,
-0.37590187788009644,
0.11367423832416534,
0.09211315959692001,
-0.08164533227682114,
0.4765715003013611,
-0.28746458888053894,
0.20871968567371368,
-0.09565795958042145,
0.17428775131702423,
0.25773143768310547,
-0.046593185514211655,
-0.22392871975898743,
-0.35435208678245544,
-0.01636037416756153,
0.2291426807641983,
-0.19165924191474915,
-0.023656705394387245,
-0.0687824934720993,
0.12394732981920242,
0.265605628490448,
0.02146437205374241,
-0.10228335857391357,
-0.09435820579528809,
-0.11679254472255707,
0.1243986189365387,
0.22679482400417328,
0.11676117032766342,
0.26449328660964966,
0.399999737739563,
-0.10860470682382584,
0.25403857231140137,
-0.275225967168808,
0.07468169927597046,
0.09163354337215424,
0.0373174324631691,
-0.07771146297454834,
0.44814178347587585,
0.22262880206108093,
-0.07543584704399109,
-0.018563048914074898,
-0.22968946397304535,
0.11009419709444046,
0.5023941397666931,
-0.09482436627149582,
-0.13744626939296722,
-0.2418772578239441,
-0.013237075880169868,
0.0900166928768158,
-0.3467952311038971,
0.022829841822385788,
-0.24790014326572418,
-0.17961883544921875,
0.12726379930973053,
-0.14659899473190308,
0.36094930768013,
-0.30122166872024536,
0.13020043075084686,
-0.041441429406404495,
-0.023027490824460983,
-0.03227096050977707,
0.07153412699699402,
0.1925760954618454,
0.17403051257133484,
-0.16116052865982056,
-0.0809800922870636,
-0.09695030003786087,
-0.11955167353153229,
0.20343731343746185,
-0.11111430078744888,
0.029660560190677643,
0.02091209590435028,
-0.12713292241096497,
-0.48543208837509155,
0.01859111897647381,
0.0776495486497879,
-0.2564774453639984,
-0.17582041025161743,
0.16878828406333923,
0.32613083720207214,
0.06324000656604767,
0.17946815490722656,
0.01668212190270424,
0.01851639896631241,
-0.17753969132900238,
-0.2074853628873825,
-0.2333160787820816,
-0.4139029383659363,
0.15589915215969086,
0.20399890840053558,
0.28658202290534973,
-0.038900211453437805,
0.4930994510650635,
-0.06125064194202423,
0.039267659187316895,
-0.05907221883535385,
-0.1255934238433838,
-0.3367054760456085,
0.4871847927570343,
-0.13942624628543854,
-0.05319178104400635,
0.130537748336792,
-0.25936833024024963,
0.12993426620960236,
0.28108614683151245,
0.09498853236436844,
-0.2102486789226532,
-0.03937644883990288,
0.14960119128227234,
-0.3974599242210388,
0.26912587881088257,
0.4252675771713257,
0.32842180132865906,
-0.10309109091758728,
0.01820865459740162,
-0.00890275277197361,
0.08230403065681458,
0.21643675863742828,
-0.22021815180778503,
-0.2070925086736679,
0.15236662328243256,
-0.025881031528115273,
-0.1935560703277588,
0.42129552364349365,
0.0882197767496109,
0.1785869002342224,
-0.21549922227859497,
0.3437778949737549,
0.06876444816589355,
-0.2970072329044342,
-0.24225980043411255,
0.09271278232336044,
0.4133457541465759,
-0.18660283088684082,
0.05524825677275658,
0.09856203198432922,
-0.16638579964637756,
0.021599018946290016,
-0.1545242965221405,
-0.0231145229190588,
0.20276950299739838,
-0.345836877822876,
0.2905593812465668,
-0.31374067068099976,
-0.02852260321378708,
-0.40440061688423157,
0.08560504764318466,
-0.16310492157936096,
0.11877167224884033,
-0.03305213898420334,
-0.22745488584041595,
-0.2630123198032379,
-0.2444104701280594,
-0.49034518003463745,
0.31733930110931396,
0.1552317887544632,
0.27176883816719055,
0.2912921607494354,
-0.022843141108751297,
-0.21718953549861908,
-0.01644756831228733,
0.6867684721946716,
-0.36891862750053406,
-0.6013423204421997,
0.37227338552474976,
-0.007273161318153143,
-0.5260196328163147,
0.04125691205263138,
-0.1601489782333374,
0.11852329224348068,
-0.18681778013706207,
0.6114799380302429,
-0.1121610477566719,
-0.1128566712141037,
0.5385575294494629,
0.19107291102409363,
-0.0030900014098733664,
-0.06476462632417679,
-0.02752428874373436,
0.146508127450943,
-0.09473027288913727,
-0.3211621642112732,
-0.13061906397342682,
0.5407403111457825,
-0.12056872248649597,
-0.1492384523153305,
-0.2390725016593933,
-0.3590196967124939,
0.11346536129713058,
0.16854381561279297,
0.16861481964588165,
0.32368990778923035,
-0.05598476156592369,
0.1164252832531929,
-0.27719244360923767,
0.314098984003067,
0.22331206500530243,
-0.1735614836215973,
-0.4095318615436554,
-0.06743795424699783,
-0.1244136318564415,
0.37694358825683594,
-0.1998218297958374,
0.07152757793664932,
0.22748224437236786,
-0.26818156242370605,
0.09857819974422455,
-0.13851980865001678,
0.06787358969449997,
0.24223089218139648,
0.08686185628175735,
-0.4898304045200348,
-0.41833680868148804,
0.296690970659256,
0.1976843625307083,
0.0894351378083229,
0.43778568506240845,
0.10152263939380646,
-0.2574074864387512,
-0.000024132403268595226,
-0.10518168658018112,
0.6077112555503845,
0.11932112276554108,
0.08892718702554703,
0.04941152036190033,
-0.18169736862182617,
0.40472936630249023,
0.021520329639315605,
0.37285786867141724,
-0.18717414140701294,
-0.24106842279434204,
-0.1781829595565796,
-0.015463529154658318,
0.1891346573829651,
0.08286809921264648,
-0.4538230895996094,
0.05971674248576164,
-0.43983951210975647,
0.1877656877040863,
-0.04410669207572937,
0.09644949436187744,
-0.02352013811469078,
-0.5262392163276672,
-0.38462597131729126,
0.1481364369392395,
0.04334257170557976,
-0.37316790223121643,
-0.0681559294462204,
0.04626721516251564,
-0.1016044020652771,
0.0921851098537445,
-0.1371251940727234,
-0.009337020106613636,
0.16085755825042725,
0.025058409199118614,
0.10020546615123749,
-0.34225818514823914,
-0.11596404761075974,
0.021010208874940872,
0.052162107080221176,
0.016561975702643394,
-0.01973150297999382,
-0.19123172760009766,
-0.01843893714249134,
0.06116783991456032,
-0.023226678371429443,
-0.16520825028419495,
-0.005761069245636463,
0.2311612367630005,
-0.3075411021709442,
0.34741681814193726,
0.16650477051734924,
-0.31172803044319153,
0.060279957950115204,
0.11855775862932205,
-0.1237676665186882,
-0.17873060703277588,
-0.051719702780246735,
0.23534530401229858,
0.21438805758953094,
-0.2692742943763733,
0.19174347817897797,
0.06254656612873077,
-0.2333199381828308,
0.09780067950487137,
-0.18853595852851868,
-0.2763429284095764,
-0.16054774820804596,
0.5698916912078857,
0.06576691567897797,
0.10761391371488571,
0.24774269759655,
0.11600334942340851,
-0.09715885668992996,
-0.1662721335887909,
0.1173514798283577,
0.3057338297367096,
-0.1103133112192154,
0.10177662968635559,
0.1677980124950409,
-0.11018146574497223,
-0.18013766407966614,
0.19382955133914948,
-0.027739083394408226,
0.4791872501373291,
-0.16449429094791412,
-0.24718382954597473,
-0.49671098589897156,
0.17976778745651245,
0.3701280951499939,
0.17145590484142303,
-0.02392205037176609,
0.1592520773410797,
-0.15171322226524353,
-0.07942988723516464,
-0.36083006858825684,
-0.13630804419517517,
-0.07174301892518997,
0.04626574367284775,
0.28365758061408997,
-0.04063010215759277,
-0.06850369274616241,
-0.07537589222192764,
0.30541083216667175,
-0.007498367689549923,
-0.01631752774119377,
-0.32891127467155457,
-0.16387741267681122,
0.0028935675509274006,
0.18145906925201416,
-0.2591574788093567,
0.02726195566356182,
-0.07294496893882751,
-0.404671311378479,
-0.29347285628318787,
0.0532366968691349,
0.4485887885093689,
-0.2827630937099457,
0.09783896803855896,
-0.05205130577087402,
-0.15743178129196167,
-0.059613652527332306,
-0.07696660608053207,
0.05020693689584732,
-0.19736526906490326,
-0.09686316549777985,
0.2935681641101837,
0.05627691373229027,
0.004973974544554949,
-0.1948280930519104,
0.18380092084407806,
0.026965081691741943,
-0.04689354449510574,
0.04761536419391632,
-0.06021149083971977,
0.06729507446289062,
0.2579362094402313,
0.30721113085746765,
0.16235436499118805,
0.0628558024764061,
0.2926851809024811,
0.21246947348117828,
0.32093125581741333,
-0.2774733901023865,
-0.3693934679031372,
0.06050494685769081,
0.387819766998291,
0.45836710929870605,
0.11085101217031479,
-0.31411123275756836,
-0.24797718226909637,
0.08075256645679474,
0.007926255464553833,
0.024210216477513313,
-0.09276172518730164,
0.3725391626358032,
0.5311440825462341,
0.07326219230890274,
0.013472771272063255,
0.05446554347872734,
0.16998982429504395,
0.18134568631649017,
0.15948954224586487,
-0.05799428001046181,
0.05075182020664215,
0.39659014344215393,
-0.19467119872570038,
-0.12404569983482361,
-0.21430402994155884,
0.023270001634955406,
0.11073581129312515,
-0.14145736396312714,
0.08607496321201324,
0.19042357802391052,
-0.10143120586872101,
-0.01677483692765236,
0.0004357419675216079,
-0.011841473169624805,
0.07469329237937927,
-0.056102458387613297,
-0.12049885094165802,
-0.02101789228618145,
-0.20383094251155853,
-0.07726356387138367,
0.005264232400804758,
0.1286933571100235,
-0.2836010754108429,
0.4928392171859741,
-0.19139446318149567,
0.07045631855726242,
-0.15029172599315643,
0.4490298330783844,
0.33034756779670715,
0.06698855757713318,
0.046275462955236435,
-0.09220593422651291,
0.3998713195323944,
0.01016359031200409,
0.07211130857467651,
0.2076401710510254,
0.3230278491973877,
0.1880320906639099,
0.2334594428539276,
0.08115871995687485,
-0.14555522799491882,
-0.1438238024711609,
0.08951177448034286,
0.006291524041444063,
0.08219122886657715,
-0.12053912878036499,
0.12355953454971313,
0.30702972412109375,
-0.21967896819114685,
0.15585775673389435,
-0.1300046443939209,
0.09158290177583694,
-0.5912757515907288,
0.08052315562963486,
0.19168421626091003,
-0.3469383716583252,
0.02812408283352852,
0.04223501682281494,
-0.06976938992738724,
-0.2851139008998871,
0.06194862350821495,
0.049580786377191544,
-0.036739666014909744,
0.08491985499858856,
0.17849835753440857,
0.08298031985759735,
0.406406044960022,
-0.1365167647600174,
-0.013744978234171867,
-0.2608764171600342,
-0.05082468315958977,
-0.13326285779476166,
-0.13481450080871582,
0.03577321022748947,
-0.18659770488739014,
-0.12009759992361069,
0.13287724554538727,
0.08758284896612167,
-0.04220397770404816,
0.3020153045654297,
0.2018316239118576,
0.10865981131792068,
0.20690466463565826,
-0.14768192172050476,
0.007172474171966314,
0.2105509489774704,
-0.05379489064216614,
0.03185942396521568,
-0.33544784784317017,
0.3440540134906769,
0.26875466108322144,
0.13239775598049164,
0.0037177158519625664,
0.14297105371952057,
-0.12609711289405823,
-0.18467192351818085,
0.25577953457832336,
0.11762113869190216,
0.11471541970968246,
-0.20014047622680664,
0.303607702255249,
-0.360051691532135,
-0.19292046129703522,
-0.3687105178833008,
0.3780514895915985,
0.11650574207305908,
0.2029489278793335,
-0.31304091215133667,
-0.17150186002254486,
0.11055265367031097,
-0.012434677220880985,
0.07063355296850204,
0.21222993731498718,
-0.14439457654953003,
0.4930890202522278,
0.2222592979669571,
-0.2137945592403412,
-0.1979370266199112,
-0.06253297626972198,
0.030031342059373856,
0.01593567244708538,
0.09250369668006897,
-0.208330899477005,
0.06623152643442154,
0.04416951537132263,
-0.4783135950565338,
-0.2526845335960388,
-0.09528649598360062,
0.3018609583377838,
0.09106164425611496,
-0.09330626577138901,
-0.09939924627542496,
0.2757209837436676,
-0.06090432032942772,
-0.3030005097389221,
0.3159584701061249,
-0.2151516228914261,
0.05173550546169281,
-0.09205152839422226,
0.016708027571439743,
-0.015443356707692146,
-0.18520192801952362,
-0.08377738296985626,
-0.38801610469818115
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | That's not really difficult to add, though, no?
I think it can be done without copy.
Maybe let's add it to the roadmap? | I want to achieve the following result

| 23 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

That's not really difficult to add, though, no?
I think it can be done without copy.
Maybe let's add it to the roadmap? | [
-0.5632333159446716,
0.15662437677383423,
-0.10527736693620682,
-0.08301149308681488,
0.08748175948858261,
0.16249701380729675,
0.3028233051300049,
0.4194338321685791,
-0.22494205832481384,
0.3868967294692993,
-0.1537492275238037,
0.285817414522171,
-0.1336851418018341,
0.42659613490104675,
-0.37740421295166016,
-0.11378906667232513,
0.169077530503273,
0.6831737756729126,
-0.48716074228286743,
-0.04612134024500847,
-0.276960164308548,
0.06183307245373726,
-0.19137170910835266,
-0.3543601930141449,
-0.5695504546165466,
0.29120656847953796,
-0.18520428240299225,
0.1471565216779709,
-0.39621809124946594,
-0.1970464438199997,
0.2927447557449341,
0.3368050754070282,
-0.04390132054686546,
0.10875143110752106,
-0.00011235837155254558,
0.020027844235301018,
0.013376733288168907,
-0.1588650792837143,
-0.22398081421852112,
-0.2859126329421997,
-0.4628485143184662,
-0.30973222851753235,
-0.05738838016986847,
-0.059102267026901245,
0.10346858203411102,
-0.12934479117393494,
0.0893111601471901,
-0.23392221331596375,
0.03514990955591202,
0.12969334423542023,
0.18864838778972626,
-0.04604602977633476,
-0.1494617462158203,
-0.3029184341430664,
0.0352647565305233,
0.38725700974464417,
-0.1596916913986206,
-0.11194414645433426,
0.03684229776263237,
0.05101202055811882,
0.14739668369293213,
0.19671420753002167,
0.08474922180175781,
-0.10486854612827301,
-0.03122350573539734,
0.12785370647907257,
0.2851850092411041,
-0.5738030076026917,
0.18949370086193085,
0.4373263120651245,
0.3858181834220886,
-0.2070237547159195,
-0.23101383447647095,
-0.10637760162353516,
0.1256217658519745,
-0.037894610315561295,
-0.00851308461278677,
0.24868786334991455,
0.00038472714368253946,
0.2998109459877014,
-0.12661850452423096,
-0.32144904136657715,
-0.3337571322917938,
0.21925348043441772,
0.0035820456687361,
0.5095902681350708,
0.18211016058921814,
0.12831906974315643,
0.24797610938549042,
-0.0896192342042923,
0.15146523714065552,
-0.11211128532886505,
-0.1872599869966507,
0.33190906047821045,
-0.3466583490371704,
-0.10949337482452393,
-0.4235306680202484,
-0.3127008080482483,
0.3242363929748535,
0.36474961042404175,
0.20443564653396606,
-0.05147174000740051,
-0.2810695469379425,
0.22247278690338135,
0.13684235513210297,
-0.028180507943034172,
0.26270613074302673,
0.22462786734104156,
0.10049352794885635,
-0.4747582972049713,
0.4068492650985718,
0.14193496108055115,
-0.25410228967666626,
-0.6352846026420593,
-0.3118087351322174,
-0.04954943060874939,
0.03981071710586548,
0.12757228314876556,
-0.024406319484114647,
-0.2763107419013977,
-0.08802862465381622,
0.05476745218038559,
-0.19945362210273743,
-0.08705992996692657,
0.1845136135816574,
0.546841561794281,
-0.029194442555308342,
0.18385222554206848,
0.16136737167835236,
-0.20349575579166412,
-0.12286391109228134,
0.11373555660247803,
0.2657357156276703,
0.1090385839343071,
0.0932537093758583,
-0.31030210852622986,
-0.05343426764011383,
0.10103016346693039,
0.4630504250526428,
0.29352912306785583,
0.08994096517562866,
-0.11257917433977127,
0.15727998316287994,
0.2680850327014923,
0.15086503326892853,
-0.10604215413331985,
0.0711880475282669,
-0.2159586399793625,
-0.1277608424425125,
0.3148566484451294,
-0.23880814015865326,
-0.07895207405090332,
-0.6027963161468506,
0.1250675767660141,
-0.19088412821292877,
-0.1287214308977127,
-0.2735525071620941,
0.40148910880088806,
-0.10886552184820175,
0.015294559299945831,
0.14862114191055298,
0.15040676295757294,
0.12078968435525894,
-0.12747137248516083,
0.12867620587348938,
0.138698011636734,
-0.22286365926265717,
-0.12536635994911194,
0.14949962496757507,
-0.37601637840270996,
-0.025756683200597763,
-0.05345532298088074,
-0.09177690744400024,
-0.3919665217399597,
-0.10962202399969101,
0.23801866173744202,
0.5789763927459717,
-0.3724956214427948,
-0.046145062893629074,
-0.022979384288191795,
-0.3579954504966736,
-0.17800283432006836,
0.31345993280410767,
0.27452266216278076,
0.18281550705432892,
0.0905676782131195,
0.08839019387960434,
0.2852329909801483,
-0.10220229625701904,
0.037351466715335846,
0.04200414940714836,
-0.2569615840911865,
0.29180917143821716,
0.22955691814422607,
-0.023775650188326836,
0.15687952935695648,
0.257810115814209,
-0.5314161777496338,
0.2531362771987915,
-0.4744187891483307,
0.19220544397830963,
0.0655757412314415,
0.43644484877586365,
-0.4588052034378052,
-0.027983414009213448,
0.051056068390607834,
-0.4954914152622223,
0.06990727037191391,
0.12608055770397186,
0.2886126637458801,
0.11754605174064636,
-0.36347696185112,
0.08634927123785019,
-0.12819717824459076,
-0.03322213515639305,
0.049010779708623886,
0.06382685899734497,
-0.017297888174653053,
-0.002205317374318838,
-0.09523951262235641,
-0.38508668541908264,
0.47186559438705444,
0.10254453867673874,
-0.09259583055973053,
-0.14657434821128845,
0.2257513701915741,
0.04525650665163994,
0.12248384207487106,
-0.07220593839883804,
0.2096063196659088,
-0.06795219331979752,
-0.2650657594203949,
0.2195996344089508,
0.5704522132873535,
-0.4314958155155182,
0.14670921862125397,
0.26235905289649963,
0.10931415110826492,
0.2668367028236389,
-0.15547017753124237,
-0.18487073481082916,
-0.5273685455322266,
-0.025693047791719437,
-0.04297233745455742,
-0.01765497587621212,
0.5327884554862976,
-0.3147445321083069,
0.030716024339199066,
0.04390417039394379,
0.22748376429080963,
0.31385087966918945,
-0.013802774250507355,
-0.39584746956825256,
-0.37874671816825867,
-0.07295746356248856,
0.4171088635921478,
0.016072604805231094,
0.18493199348449707,
-0.1893029361963272,
0.12077219039201736,
0.3447670638561249,
0.007803075481206179,
-0.01848391257226467,
-0.007862754166126251,
-0.14707043766975403,
0.11438176780939102,
0.2931670844554901,
0.02765015698969364,
0.3205236494541168,
0.3793957829475403,
-0.12095346301794052,
0.17997898161411285,
-0.24841848015785217,
-0.04682266712188721,
0.14093774557113647,
-0.013997108675539494,
0.22532665729522705,
0.3300786316394806,
0.34144893288612366,
-0.08920646458864212,
-0.27006402611732483,
-0.39845988154411316,
0.004603018518537283,
0.2516724765300751,
-0.13100196421146393,
-0.22523990273475647,
-0.25230950117111206,
0.009899189695715904,
0.009280525147914886,
-0.28265276551246643,
-0.2417200803756714,
-0.24305279552936554,
0.12820586562156677,
0.1327524334192276,
-0.0508081316947937,
0.5702415108680725,
-0.24933449923992157,
0.5388231873512268,
-0.22184208035469055,
-0.03556119650602341,
-0.1266866773366928,
0.13609015941619873,
0.20553453266620636,
0.09191571921110153,
-0.11814678460359573,
-0.3078885078430176,
0.09677410125732422,
-0.15674996376037598,
0.21576228737831116,
-0.21931192278862,
-0.2720019519329071,
0.09246642887592316,
0.09821949899196625,
-0.5494915843009949,
0.15956613421440125,
0.002591340336948633,
-0.13035620748996735,
-0.08010407537221909,
0.027919717133045197,
0.35927003622055054,
-0.28823429346084595,
-0.0033154506236314774,
-0.22001446783542633,
0.02601492963731289,
-0.42194366455078125,
0.05974994972348213,
-0.23981259763240814,
-0.3552934527397156,
0.2629978060722351,
0.3009653091430664,
0.2693173885345459,
0.1727236658334732,
0.5507325530052185,
-0.19921086728572845,
-0.061037175357341766,
-0.19949473440647125,
-0.06637942045927048,
-0.48978564143180847,
0.5394613742828369,
-0.09804609417915344,
0.015326918102800846,
0.08745204657316208,
-0.12524187564849854,
0.07777642458677292,
0.4468553364276886,
-0.07994911819696426,
-0.33764907717704773,
0.12856636941432953,
0.3639611303806305,
-0.33463481068611145,
0.11786358803510666,
0.4186067283153534,
0.4637768268585205,
-0.04785510525107384,
-0.10995879769325256,
0.19229057431221008,
0.26929786801338196,
0.13751457631587982,
-0.2730715870857239,
-0.2173585742712021,
-0.12119299173355103,
0.33597418665885925,
0.07648320496082306,
0.2960459589958191,
-0.02742329239845276,
0.20464913547039032,
-0.2270861715078354,
0.584733784198761,
0.2745041251182556,
-0.02304159663617611,
-0.0014798537595197558,
0.3178347051143646,
0.39910706877708435,
-0.23026444017887115,
0.11859846115112305,
0.08651832491159439,
-0.34384065866470337,
0.06547225266695023,
-0.09591498970985413,
-0.01790277101099491,
0.17586739361286163,
-0.2882622182369232,
0.1732366383075714,
-0.27505144476890564,
-0.17692314088344574,
-0.395358145236969,
0.05364609137177467,
-0.08321221172809601,
0.1600787192583084,
0.06395918875932693,
-0.105544812977314,
-0.2958192527294159,
-0.1693475991487503,
-0.35203006863594055,
0.28366363048553467,
0.26663389801979065,
0.08055921643972397,
0.30792224407196045,
-0.038713209331035614,
-0.2518894374370575,
-0.042143844068050385,
0.8338662981987,
-0.3788592219352722,
-0.4378483295440674,
0.22426588833332062,
0.1127658560872078,
-0.1577361673116684,
0.0970955565571785,
0.1057937890291214,
0.16321107745170593,
-0.07594114542007446,
0.5961184501647949,
-0.10549557954072952,
-0.1591188907623291,
0.5606846809387207,
-0.031605787575244904,
-0.08540471643209457,
0.048469506204128265,
0.027789806947112083,
0.035992540419101715,
-0.19672967493534088,
-0.432086318731308,
-0.055567167699337006,
0.33869773149490356,
-0.13583441078662872,
-0.19203190505504608,
-0.3072979152202606,
-0.36662036180496216,
0.024427738040685654,
0.2055245190858841,
0.1794952154159546,
0.09504624456167221,
-0.08200673758983612,
0.041419874876737595,
-0.2957620620727539,
0.5316927433013916,
0.39021652936935425,
-0.18229210376739502,
-0.5838051438331604,
0.024676362052559853,
-0.17632243037223816,
0.47056645154953003,
0.14443257451057434,
0.05014260858297348,
0.06794751435518265,
-0.17172621190547943,
-0.08216891437768936,
-0.048412129282951355,
0.18314975500106812,
0.003900800598785281,
-0.16749878227710724,
-0.56712806224823,
-0.10952136665582657,
0.30927252769470215,
0.2783619165420532,
0.07117293030023575,
0.48194026947021484,
-0.05834430083632469,
-0.3044937252998352,
-0.15752093493938446,
0.000939282588660717,
0.8850594758987427,
0.12602195143699646,
0.3311331570148468,
-0.22621919214725494,
0.0032262776512652636,
0.5197999477386475,
0.047833509743213654,
0.20477035641670227,
-0.1481340080499649,
-0.12419413030147552,
-0.26468950510025024,
-0.17120257019996643,
0.24455583095550537,
0.21086814999580383,
-0.34620678424835205,
-0.01580830290913582,
-0.15705975890159607,
0.24304306507110596,
-0.08859872817993164,
0.10554351657629013,
-0.15383188426494598,
-0.4903748333454132,
-0.021617107093334198,
0.048824846744537354,
-0.024536849930882454,
-0.30438098311424255,
-0.14613573253154755,
-0.17618604004383087,
-0.12799347937107086,
-0.08548009395599365,
-0.1804278939962387,
0.04232610762119293,
-0.10566124320030212,
0.07118730247020721,
0.31749793887138367,
-0.36148953437805176,
-0.25435999035835266,
0.029307730495929718,
0.1480715423822403,
-0.006447287742048502,
-0.07093009352684021,
0.042256396263837814,
0.06230279430747032,
0.12890499830245972,
0.03102705627679825,
-0.05374474823474884,
0.13553132116794586,
0.1384451985359192,
-0.086151622235775,
0.2090974599123001,
0.12161687016487122,
-0.4662894904613495,
-0.047295134514570236,
0.01978801190853119,
-0.18855759501457214,
0.31847065687179565,
0.04964417219161987,
0.2659670114517212,
0.008174652233719826,
-0.2457350641489029,
0.06976641714572906,
0.16110120713710785,
-0.10904842615127563,
-0.013689924031496048,
-0.09451629966497421,
-0.22268669307231903,
-0.11028627306222916,
0.5008257627487183,
-0.016383228823542595,
-0.07464266568422318,
0.0070937685668468475,
-0.02920491248369217,
-0.049754444509744644,
-0.1372649073600769,
0.19129116833209991,
0.1772453635931015,
-0.40854331851005554,
0.037879541516304016,
0.01316623855382204,
-0.32524892687797546,
-0.22657158970832825,
0.4109407663345337,
0.10609379410743713,
0.4780809283256531,
-0.00852145254611969,
-0.23974552750587463,
-0.3905121386051178,
0.06926420331001282,
0.13295181095600128,
0.31093829870224,
-0.04795273765921593,
0.326303094625473,
-0.15588697791099548,
-0.2524099051952362,
-0.31860536336898804,
-0.18574564158916473,
0.050136931240558624,
-0.04102712124586105,
-0.034687627106904984,
0.18393190205097198,
-0.1158590167760849,
-0.16396793723106384,
0.20497839152812958,
0.15772125124931335,
-0.09853053092956543,
-0.19688482582569122,
-0.13403046131134033,
0.1485394835472107,
0.10730589181184769,
-0.2840133607387543,
0.1500677615404129,
-0.043247513473033905,
-0.4669205844402313,
-0.23164191842079163,
0.0755482017993927,
0.32191628217697144,
-0.29242679476737976,
-0.0770317018032074,
-0.03387599438428879,
-0.14703215658664703,
0.25085699558258057,
-0.10522057861089706,
0.1271604299545288,
0.22978341579437256,
-0.14854326844215393,
0.39131858944892883,
-0.045292098075151443,
-0.09812387079000473,
0.08126775175333023,
0.1626683622598648,
0.11880797147750854,
0.1618904024362564,
-0.12164249271154404,
-0.1106601357460022,
-0.06313413381576538,
0.05542265996336937,
0.40068376064300537,
0.020576542243361473,
-0.11960023641586304,
0.2616110146045685,
0.2204764187335968,
0.20985396206378937,
-0.182388037443161,
-0.38112151622772217,
0.14064177870750427,
0.2541770935058594,
0.3422210216522217,
0.16120468080043793,
-0.05176093429327011,
-0.0710425153374672,
0.21068896353244781,
0.06981854140758514,
0.2964717745780945,
-0.2202170491218567,
0.3369921147823334,
0.2586955428123474,
0.007160604931414127,
0.1303485780954361,
-0.08904759585857391,
0.3342762589454651,
0.4624052047729492,
-0.006999727338552475,
-0.22914400696754456,
0.17349445819854736,
0.49458783864974976,
-0.18359094858169556,
0.11206790804862976,
-0.1738148182630539,
0.026486165821552277,
0.2452169954776764,
0.052542250603437424,
0.32098108530044556,
0.30819740891456604,
-0.11449999362230301,
-0.08156711608171463,
-0.01597333699464798,
0.009527184069156647,
0.15921157598495483,
0.07785501331090927,
-0.050328437238931656,
-0.21304894983768463,
-0.2653895616531372,
-0.2309085577726364,
0.08901168406009674,
0.15502333641052246,
-0.33994999527931213,
0.5834516286849976,
-0.09750190377235413,
0.149142324924469,
-0.1184299886226654,
0.5540005564689636,
0.18605491518974304,
0.08966431766748428,
0.04707571491599083,
0.07833351194858551,
0.34696653485298157,
-0.22844669222831726,
0.2433459609746933,
0.4025324285030365,
0.28545454144477844,
0.2740370035171509,
0.2811913788318634,
0.03061615489423275,
-0.1462978571653366,
-0.2365974634885788,
-0.028368782252073288,
-0.11632605642080307,
0.1971513330936432,
-0.30162566900253296,
0.21505053341388702,
0.2173684686422348,
-0.07160423696041107,
0.2614806890487671,
-0.07889959216117859,
-0.04564370587468147,
-0.4272865653038025,
-0.01933871954679489,
0.03384682908654213,
-0.284041166305542,
0.14520461857318878,
-0.040688760578632355,
-0.008872909471392632,
-0.39229753613471985,
0.11603304743766785,
-0.07907244563102722,
-0.09836003929376602,
0.024781430140137672,
0.07877408713102341,
0.24139508605003357,
0.30606183409690857,
-0.12304507941007614,
0.12788139283657074,
-0.01868848316371441,
-0.19878597557544708,
-0.26022231578826904,
0.04228020831942558,
0.0991182029247284,
-0.13053745031356812,
-0.1737665981054306,
0.18834543228149414,
0.23803363740444183,
0.07598456740379333,
0.4585737884044647,
0.2235710620880127,
0.39613908529281616,
0.16712142527103424,
-0.1709626317024231,
0.07796026021242142,
0.40454912185668945,
-0.24395489692687988,
0.0588640496134758,
-0.2913273572921753,
0.3434561491012573,
0.2600004971027374,
0.06568785011768341,
-0.060365308076143265,
0.03359878808259964,
-0.10451387614011765,
-0.12723390758037567,
0.26583850383758545,
0.1440148949623108,
0.05299833044409752,
-0.3452482521533966,
0.1761559247970581,
-0.1152968555688858,
-0.22722168266773224,
-0.46544769406318665,
0.17026199400424957,
0.10337734967470169,
0.17340272665023804,
-0.4425380825996399,
-0.22234830260276794,
0.04866970330476761,
-0.13155445456504822,
0.15970554947853088,
0.19923962652683258,
-0.37816059589385986,
0.5593153834342957,
-0.0075789885595440865,
-0.12051138281822205,
-0.26743361353874207,
-0.20302461087703705,
0.10233572125434875,
-0.02592897042632103,
0.03338629752397537,
-0.2070143073797226,
0.1993541568517685,
0.046962179243564606,
-0.2782863974571228,
-0.16760548949241638,
-0.05602530390024185,
0.41999611258506775,
0.20593422651290894,
-0.19585111737251282,
-0.06183188036084175,
0.30069559812545776,
0.1444234997034073,
-0.22987310588359833,
0.43960127234458923,
-0.14569558203220367,
-0.07543378323316574,
-0.12326309829950333,
0.043304797261953354,
-0.017035407945513725,
-0.21580392122268677,
-0.035169679671525955,
-0.5163918733596802
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Actually it's doable but requires to update the `Dataset._data_files` schema to support this.
I'm re-opening this since we may want to add this in the future | I want to achieve the following result

| 26 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

Actually it's doable but requires to update the `Dataset._data_files` schema to support this.
I'm re-opening this since we may want to add this in the future | [
-0.6200821995735168,
0.11323975026607513,
-0.14977407455444336,
0.11423583328723907,
0.125723734498024,
0.20324254035949707,
0.39566484093666077,
0.39590147137641907,
-0.003954931627959013,
0.24560575187206268,
-0.20389965176582336,
0.38265103101730347,
-0.07559116929769516,
0.5006222128868103,
-0.47172513604164124,
-0.07975757867097855,
0.18354135751724243,
0.7113133668899536,
-0.5424264073371887,
-0.011765088886022568,
-0.23666568100452423,
0.011350424960255623,
-0.33966130018234253,
-0.3187691867351532,
-0.5360066890716553,
0.2311907410621643,
-0.06106047332286835,
0.09879273176193237,
-0.3007909953594208,
-0.2530788779258728,
0.3102917969226837,
0.36444610357284546,
0.057110290974378586,
0.13876952230930328,
-0.0001069398203981109,
0.07275428622961044,
-0.08741080015897751,
-0.1837272047996521,
-0.2688955068588257,
-0.269329309463501,
-0.5620739459991455,
-0.29446613788604736,
-0.07573390007019043,
-0.05767368525266647,
-0.04068440571427345,
-0.3894325792789459,
0.024006523191928864,
-0.3615787923336029,
-0.04056863114237785,
0.15738627314567566,
0.2330460399389267,
-0.019054116681218147,
-0.1294506937265396,
-0.21837261319160461,
-0.020101912319660187,
0.3183130621910095,
-0.07680496573448181,
-0.17303191125392914,
-0.12439066171646118,
-0.020679345354437828,
-0.01041398011147976,
0.18712760508060455,
0.14813895523548126,
-0.1268915832042694,
0.04448115453124046,
0.141874760389328,
0.33912867307662964,
-0.4659828543663025,
0.16331642866134644,
0.4161897301673889,
0.46591952443122864,
-0.18598057329654694,
-0.20178501307964325,
-0.03571375459432602,
0.09924400597810745,
-0.15934135019779205,
0.06399871408939362,
0.28538742661476135,
0.1368727684020996,
0.30583545565605164,
-0.01084095984697342,
-0.10340418666601181,
-0.3154926896095276,
0.240775465965271,
-0.24594001471996307,
0.5976779460906982,
0.1353767216205597,
0.09290602803230286,
0.08293484151363373,
-0.23026438057422638,
0.16422109305858612,
-0.18721480667591095,
-0.1841837614774704,
0.3217141330242157,
-0.5415161848068237,
-0.11994297057390213,
-0.3733863830566406,
-0.1350853592157364,
0.3298955261707306,
0.24631930887699127,
0.20447656512260437,
0.0405510775744915,
-0.19249385595321655,
0.2452627420425415,
0.23985105752944946,
0.024579400196671486,
0.4051347076892853,
0.13686510920524597,
0.0434725321829319,
-0.2887255847454071,
0.2190430909395218,
0.09508880972862244,
-0.3077249228954315,
-0.6520453691482544,
-0.3247913122177124,
0.025201639160513878,
0.03898300603032112,
0.1931319236755371,
-0.10303183645009995,
-0.14355289936065674,
-0.09164302051067352,
0.10843293368816376,
0.05599185824394226,
-0.08601180464029312,
0.22217722237110138,
0.7616561055183411,
-0.05345448851585388,
0.1921386420726776,
0.1734066903591156,
-0.27510887384414673,
-0.17553776502609253,
0.18712152540683746,
0.1160215362906456,
0.017479421570897102,
0.19046975672245026,
-0.18420198559761047,
-0.04497108235955238,
0.31448376178741455,
0.3391457796096802,
0.1827121376991272,
0.15337421000003815,
-0.22094742953777313,
0.2149469256401062,
0.2782846689224243,
0.07140683382749557,
-0.09486742317676544,
0.05624135211110115,
-0.1682218760251999,
-0.014185753650963306,
0.31454718112945557,
-0.12276097387075424,
0.03538984805345535,
-0.48917073011398315,
0.2089894413948059,
-0.20081296563148499,
-0.04636427387595177,
-0.24995270371437073,
0.3336353302001953,
-0.10402923077344894,
-0.05009109526872635,
0.029179401695728302,
-0.017505157738924026,
0.07481954991817474,
-0.11277491599321365,
0.16829577088356018,
0.10644179582595825,
-0.28142058849334717,
-0.06913548707962036,
0.18472200632095337,
-0.41505131125450134,
-0.07116971909999847,
-0.01347533892840147,
-0.03603536635637283,
-0.3152644634246826,
-0.14208948612213135,
0.24415484070777893,
0.4369243383407593,
-0.4175727665424347,
-0.0972496047616005,
-0.029699744656682014,
-0.22387751936912537,
-0.12852761149406433,
0.24076685309410095,
0.12322366237640381,
0.16265738010406494,
0.12466326355934143,
0.1226343885064125,
0.16225115954875946,
0.03432520851492882,
0.008794687688350677,
-0.04358441382646561,
-0.2390635907649994,
0.3819730579853058,
0.16399027407169342,
-0.07838823646306992,
0.12246781587600708,
0.13113190233707428,
-0.48377835750579834,
0.4867561161518097,
-0.3978927731513977,
0.2967704236507416,
0.14093054831027985,
0.20175044238567352,
-0.4265711009502411,
-0.01405133493244648,
-0.08382562547922134,
-0.5214067697525024,
0.0832032859325409,
0.0862969309091568,
0.22481727600097656,
0.06638428568840027,
-0.28905582427978516,
0.03489810973405838,
-0.22732307016849518,
-0.06026023253798485,
0.05649610608816147,
0.20552697777748108,
-0.004535284359008074,
-0.12166832387447357,
-0.1537703573703766,
-0.35188043117523193,
0.37662753462791443,
0.15874868631362915,
-0.11544786393642426,
-0.11709920316934586,
0.2699808180332184,
0.17689792811870575,
0.13533008098602295,
-0.055210135877132416,
0.22024782001972198,
-0.008487511426210403,
-0.14993107318878174,
0.2518578767776489,
0.5035152435302734,
-0.2917838990688324,
0.062400009483098984,
0.2550007700920105,
0.20711234211921692,
0.09822949022054672,
0.008118191733956337,
-0.16664615273475647,
-0.44257473945617676,
0.05847477912902832,
0.044882915914058685,
-0.10633930563926697,
0.6201355457305908,
-0.36998528242111206,
0.03146829828619957,
-0.01440556813031435,
0.17930050194263458,
0.3834829032421112,
-0.04347657784819603,
-0.40432634949684143,
-0.35002243518829346,
-0.04279201850295067,
0.35111871361732483,
-0.13547606766223907,
0.2653815448284149,
-0.18877999484539032,
0.11071378737688065,
0.28042536973953247,
0.07044855505228043,
-0.08747797459363937,
-0.20532821118831635,
-0.20894764363765717,
0.12777996063232422,
0.3520624041557312,
0.10632117092609406,
0.3652787208557129,
0.35361331701278687,
-0.10555939376354218,
0.16053670644760132,
-0.2328377217054367,
-0.036788828670978546,
0.16005010902881622,
-0.10951924324035645,
0.12940821051597595,
0.5694363713264465,
0.33451545238494873,
-0.15476180613040924,
-0.2027948498725891,
-0.34469667077064514,
0.05457903817296028,
0.321036696434021,
-0.16447100043296814,
-0.12371692806482315,
-0.3376930356025696,
-0.028966590762138367,
-0.0205561351031065,
-0.228208988904953,
-0.19730068743228912,
-0.17475038766860962,
0.009784461930394173,
0.12020224332809448,
-0.08332886546850204,
0.5366840958595276,
-0.28343096375465393,
0.36714205145835876,
-0.1475299596786499,
0.04558822885155678,
-0.08101910352706909,
0.1155286356806755,
0.15028584003448486,
0.1537221074104309,
-0.09493187069892883,
-0.06008711829781532,
-0.054242078214883804,
-0.15207980573177338,
0.16897402703762054,
-0.20864835381507874,
-0.022829167544841766,
0.07508061826229095,
0.09566269814968109,
-0.4917036294937134,
0.13739244639873505,
0.05813629925251007,
-0.1652505099773407,
-0.0315137654542923,
0.1185319647192955,
0.4089571535587311,
-0.1036079153418541,
-0.0026434098836034536,
-0.1406344473361969,
0.11247844994068146,
-0.39717355370521545,
-0.030006593093276024,
-0.215860053896904,
-0.3724111318588257,
0.21062634885311127,
0.19469662010669708,
0.2574150562286377,
0.13287673890590668,
0.4780387580394745,
-0.1940964013338089,
-0.09097444266080856,
-0.16977134346961975,
-0.030956188216805458,
-0.4245988130569458,
0.46168053150177,
-0.02984028309583664,
-0.037107471376657486,
0.16072198748588562,
-0.1619766354560852,
0.16649024188518524,
0.4515378475189209,
0.07630752772092819,
-0.20160916447639465,
0.11022245138883591,
0.23750455677509308,
-0.36465218663215637,
0.01018960028886795,
0.3265557885169983,
0.3919833302497864,
-0.08777162432670593,
-0.12093091011047363,
0.15060114860534668,
0.30272459983825684,
0.008792957291007042,
-0.2549480199813843,
-0.24591144919395447,
-0.18723604083061218,
0.2631950378417969,
-0.12496420741081238,
0.32773441076278687,
-0.10826511681079865,
0.12555260956287384,
-0.1994955688714981,
0.406936913728714,
0.3109949231147766,
-0.027698174118995667,
-0.11799391359090805,
0.2570595443248749,
0.37704601883888245,
-0.08900375664234161,
0.13652214407920837,
0.1633625328540802,
-0.22395090758800507,
0.08213285356760025,
-0.15823403000831604,
-0.10310180485248566,
0.16203942894935608,
-0.35062485933303833,
0.2318837195634842,
-0.26720497012138367,
-0.11964888870716095,
-0.27701133489608765,
0.1028708666563034,
-0.13441628217697144,
0.20837965607643127,
0.022684186697006226,
-0.10448505729436874,
-0.21230414509773254,
-0.12702828645706177,
-0.26558321714401245,
0.24737221002578735,
0.11321241408586502,
0.20124715566635132,
0.33067452907562256,
-0.052023012191057205,
-0.2196618765592575,
-0.06460961699485779,
0.804314136505127,
-0.19647394120693207,
-0.26497939229011536,
0.27646443247795105,
0.18324244022369385,
-0.28160056471824646,
0.058871470391750336,
-0.0003237748460378498,
0.14112982153892517,
-0.15001195669174194,
0.646312952041626,
-0.10536107420921326,
-0.2349710464477539,
0.33379873633384705,
0.03567289561033249,
-0.026949992403388023,
0.049650244414806366,
0.03135468065738678,
0.09736686199903488,
-0.10701893270015717,
-0.3596581220626831,
0.026089245453476906,
0.4266490638256073,
-0.2164452075958252,
-0.1124901995062828,
-0.29847294092178345,
-0.3305152356624603,
0.09207028150558472,
0.20179715752601624,
0.26367247104644775,
0.02380351908504963,
-0.1854526400566101,
0.08432518690824509,
-0.10850941389799118,
0.5909473896026611,
0.27342820167541504,
-0.09026999771595001,
-0.5555421113967896,
0.0161081962287426,
-0.2124798595905304,
0.301738977432251,
0.044583115726709366,
-0.04928962513804436,
0.09134789556264877,
-0.23183007538318634,
-0.08637537807226181,
-0.06275415420532227,
0.22125332057476044,
0.0731513649225235,
-0.03942883387207985,
-0.5384455323219299,
-0.1915697455406189,
0.26793235540390015,
0.22781066596508026,
-0.0005600920412689447,
0.33810052275657654,
-0.06643123179674149,
-0.3769412040710449,
-0.057893551886081696,
0.0016404037596657872,
0.7042244672775269,
0.19608326256275177,
0.2802119553089142,
-0.04526433348655701,
-0.07345361262559891,
0.42300736904144287,
-0.11596232652664185,
0.30174535512924194,
-0.32291749119758606,
-0.17127491533756256,
-0.23382191359996796,
-0.11164674162864685,
0.2787318527698517,
0.3182136118412018,
-0.30919188261032104,
-0.022729448974132538,
-0.35465726256370544,
0.2063695192337036,
-0.09920766204595566,
0.06840240955352783,
-0.1414731740951538,
-0.39972618222236633,
-0.22924378514289856,
0.09329068660736084,
-0.04623961076140404,
-0.3588961958885193,
-0.2243017554283142,
-0.1141456738114357,
-0.09443703293800354,
0.036301977932453156,
-0.11645889282226562,
-0.016697993502020836,
-0.0416436605155468,
0.05355805158615112,
0.14204686880111694,
-0.2721470296382904,
-0.16935406625270844,
0.18301674723625183,
-0.01915362849831581,
-0.016107328236103058,
-0.08318207412958145,
-0.0362563282251358,
0.07230433076620102,
0.16167369484901428,
-0.01993047073483467,
-0.07012208551168442,
0.03580351173877716,
0.1406971961259842,
-0.12324551492929459,
0.0843951478600502,
0.11656259000301361,
-0.22216084599494934,
0.08680370450019836,
0.13015936315059662,
-0.26656675338745117,
0.07718681544065475,
0.019735751673579216,
0.09161660820245743,
0.1281285136938095,
-0.16989842057228088,
0.1342814415693283,
0.16714774072170258,
-0.128648042678833,
-0.016501542180776596,
-0.1649952381849289,
-0.26159632205963135,
-0.11773169785737991,
0.6089310050010681,
0.019570115953683853,
-0.05707719922065735,
0.0621194951236248,
0.050390321761369705,
-0.11098570376634598,
-0.22989130020141602,
0.24891412258148193,
0.2228279858827591,
-0.37536776065826416,
0.15413188934326172,
0.16785340011119843,
-0.20250022411346436,
-0.18075673282146454,
0.3313976526260376,
0.06070888787508011,
0.4667710065841675,
0.02135065197944641,
-0.34340134263038635,
-0.38061779737472534,
0.10426414757966995,
0.1155209094285965,
0.27824562788009644,
-0.02783161588013172,
0.22257526218891144,
-0.18138624727725983,
-0.36367061734199524,
-0.35658666491508484,
-0.08493953198194504,
-0.0004003706853836775,
-0.012431809678673744,
0.0026950351893901825,
0.1050577312707901,
-0.14922338724136353,
-0.09496834129095078,
0.2796120345592499,
0.0400894396007061,
-0.11534008383750916,
-0.27591562271118164,
-0.0686291977763176,
0.08151509612798691,
0.14143730700016022,
-0.24600209295749664,
0.1420932561159134,
0.0204802006483078,
-0.4042541980743408,
-0.34315940737724304,
0.06983943283557892,
0.4484347105026245,
-0.2318343073129654,
0.10610198974609375,
0.022323433309793472,
-0.01609077677130699,
0.09746067970991135,
-0.11487115919589996,
0.18491502106189728,
-0.1200103908777237,
-0.13419891893863678,
0.36163386702537537,
-0.09783315658569336,
-0.03885873407125473,
-0.002223464660346508,
0.18700644373893738,
0.09688136726617813,
0.07984069734811783,
-0.09282410144805908,
-0.0740218460559845,
-0.01724812015891075,
0.1759510040283203,
0.43401098251342773,
0.15336817502975464,
-0.06402617692947388,
0.24201315641403198,
0.10946320742368698,
0.3031438887119293,
-0.212726891040802,
-0.35323622822761536,
0.22204841673374176,
0.35889580845832825,
0.31416064500808716,
0.05581805482506752,
-0.09080347418785095,
-0.2506701350212097,
0.06781121343374252,
0.050198595970869064,
0.2047770768404007,
-0.16987232863903046,
0.3834701180458069,
0.43582332134246826,
-0.029431015253067017,
0.12614445388317108,
-0.013649346306920052,
0.272396057844162,
0.43890032172203064,
0.3103129267692566,
-0.11436301469802856,
0.1330091655254364,
0.5196548104286194,
-0.21226023137569427,
-0.17847701907157898,
-0.2729004919528961,
-0.06400090456008911,
0.20344199240207672,
-0.0655435249209404,
0.07500115036964417,
0.24604204297065735,
-0.12401018291711807,
-0.06996043771505356,
-0.0658295527100563,
0.06193578988313675,
0.06396444886922836,
-0.08222205191850662,
-0.11665523052215576,
-0.22605213522911072,
-0.2981690466403961,
-0.15493597090244293,
-0.002259069588035345,
0.09141665697097778,
-0.16445568203926086,
0.40760964155197144,
-0.13689783215522766,
0.07259438186883926,
-0.174976646900177,
0.5676490068435669,
0.3037234842777252,
0.014508425258100033,
0.08085056394338608,
-0.02716432884335518,
0.4270547330379486,
-0.06632460653781891,
0.3073720335960388,
0.221270352602005,
0.2742752134799957,
0.29302477836608887,
0.2621849775314331,
-0.1128539964556694,
-0.28601211309432983,
-0.11866781860589981,
-0.1190195083618164,
-0.12760326266288757,
0.19036675989627838,
-0.20013563334941864,
0.2976948916912079,
0.28409337997436523,
-0.13696828484535217,
0.19182327389717102,
-0.11676567047834396,
0.057209562510252,
-0.49396440386772156,
-0.06116286292672157,
0.019601482897996902,
-0.30986326932907104,
0.18193472921848297,
-0.0679013654589653,
0.051944293081760406,
-0.4709714949131012,
0.0641249567270279,
0.11470042169094086,
0.057492103427648544,
0.031080318614840508,
0.1373213678598404,
0.14973288774490356,
0.2665433883666992,
-0.19257822632789612,
0.07497859001159668,
-0.10779836773872375,
-0.157192200422287,
-0.30306363105773926,
-0.012172332033514977,
0.18112295866012573,
-0.12737928330898285,
-0.21982131898403168,
0.1420227438211441,
0.16405627131462097,
-0.018631717190146446,
0.3866998553276062,
0.3028850257396698,
0.40808528661727905,
0.17490054666996002,
-0.20606975257396698,
0.08165613561868668,
0.21374939382076263,
-0.15755146741867065,
0.02616295963525772,
-0.33092546463012695,
0.2674059271812439,
0.30308860540390015,
0.15886270999908447,
0.015621455386281013,
0.05745659023523331,
-0.03737858310341835,
-0.23598678410053253,
0.19221137464046478,
0.1937490552663803,
0.16853611171245575,
-0.2342079132795334,
0.24914507567882538,
-0.28905045986175537,
-0.1645459532737732,
-0.46676814556121826,
0.2209826558828354,
0.08362305164337158,
0.2395302951335907,
-0.3569459021091461,
-0.14981557428836823,
0.081729456782341,
-0.12760679423809052,
0.09640675038099289,
0.30454060435295105,
-0.3017326295375824,
0.5580819845199585,
0.11149653047323227,
-0.1556447595357895,
-0.268789678812027,
-0.1030104011297226,
0.05349941551685333,
-0.06440280377864838,
0.0059628672897815704,
-0.19045768678188324,
0.1649002581834793,
0.061510901898145676,
-0.3933854401111603,
-0.24259260296821594,
0.009496818296611309,
0.26828017830848694,
0.16111931204795837,
-0.08598194271326065,
-0.11583160609006882,
0.3000068962574005,
0.07288797199726105,
-0.30066654086112976,
0.17875491082668304,
-0.20949366688728333,
-0.0793694332242012,
-0.12681546807289124,
0.010036196559667587,
0.011526784859597683,
-0.25177061557769775,
-0.10315098613500595,
-0.4564324915409088
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows. | I want to achieve the following result

| 40 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows. | [
-0.34840458631515503,
-0.03517330437898636,
-0.12199399620294571,
0.06049662083387375,
0.17259781062602997,
0.09185495227575302,
0.3840519189834595,
0.3609427511692047,
0.0169332567602396,
0.3619815409183502,
0.0030053199734538794,
0.4973301589488983,
-0.15670962631702423,
0.5172732472419739,
-0.35656997561454773,
-0.1661897599697113,
0.17759987711906433,
0.7238046526908875,
-0.4239692687988281,
0.011939873918890953,
-0.2513480484485626,
0.0003020391159225255,
-0.4031875431537628,
-0.17890368402004242,
-0.36924871802330017,
0.2398509532213211,
-0.06263658404350281,
-0.14796988666057587,
-0.1530626267194748,
-0.31122899055480957,
0.32842713594436646,
0.08787096291780472,
0.1952241212129593,
0.01228890661150217,
-0.00011919980897800997,
-0.010859247297048569,
0.041553325951099396,
-0.11257898062467575,
-0.2453656792640686,
-0.32215678691864014,
-0.40531477332115173,
-0.49797776341438293,
0.22715669870376587,
-0.03784375265240669,
-0.03906584158539772,
-0.5209639668464661,
-0.1310441642999649,
-0.438772052526474,
-0.03039925917983055,
0.251980721950531,
0.17729303240776062,
-0.02980959787964821,
-0.07088872045278549,
-0.08228625357151031,
0.006934753153473139,
0.29281896352767944,
-0.26582592725753784,
-0.2799835503101349,
-0.10531029850244522,
-0.19822686910629272,
0.12269450724124908,
0.27150440216064453,
0.11518222093582153,
-0.059090111404657364,
0.12439610809087753,
0.19270077347755432,
0.40568652749061584,
-0.5003891587257385,
0.12885844707489014,
0.32485753297805786,
0.5749331712722778,
-0.27336782217025757,
-0.15512503683567047,
-0.0996265783905983,
0.4653523564338684,
-0.07417267560958862,
-0.07306692004203796,
0.16299565136432648,
0.05002148821949959,
0.19060572981834412,
0.13513079285621643,
-0.10572252422571182,
-0.3829077184200287,
0.3393300175666809,
-0.07983934134244919,
0.5351187586784363,
0.05467354878783226,
0.18815480172634125,
0.22901059687137604,
-0.10053601115942001,
0.2734648883342743,
-0.022001616656780243,
-0.08822949975728989,
0.48765885829925537,
-0.7353636026382446,
-0.05655224993824959,
-0.18425773084163666,
-0.14950250089168549,
0.07951433211565018,
0.24215568602085114,
0.22451671957969666,
0.0926511213183403,
0.02139311097562313,
0.09125176817178726,
0.23509804904460907,
0.2246275395154953,
0.3509421944618225,
0.3787027597427368,
-0.032511014491319656,
-0.24379843473434448,
0.3597438335418701,
0.04253954812884331,
-0.3643556237220764,
-0.5424800515174866,
0.017011594027280807,
0.018189111724495888,
0.22619706392288208,
0.12265083938837051,
0.023937415331602097,
-0.2209317684173584,
-0.11896464228630066,
0.08707188814878464,
0.05089576169848442,
0.025188064202666283,
0.14603669941425323,
0.9004566669464111,
0.012081940658390522,
0.3414287865161896,
0.2295052707195282,
0.013756794854998589,
-0.11397849768400192,
0.05691743269562721,
0.14382363855838776,
-0.055624429136514664,
0.20488762855529785,
-0.09139028191566467,
-0.21961022913455963,
0.3884478807449341,
0.23027703166007996,
0.05500482767820358,
0.1491927206516266,
-0.20470647513866425,
0.321925550699234,
0.2805396318435669,
-0.09680601954460144,
-0.1261659562587738,
0.2055714726448059,
0.06237057223916054,
-0.05579066649079323,
0.47118258476257324,
-0.231435626745224,
-0.1000727191567421,
-0.4651687443256378,
0.09417760372161865,
-0.1046970933675766,
0.01532785315066576,
-0.1906227469444275,
0.29599815607070923,
-0.18595248460769653,
-0.04350822791457176,
0.1876227855682373,
-0.03578530251979828,
0.2972153425216675,
-0.1553347259759903,
0.16128388047218323,
0.004932005889713764,
-0.34096992015838623,
-0.14713908731937408,
0.09101361781358719,
-0.3876313269138336,
0.05346149951219559,
-0.2109615057706833,
-0.1383637636899948,
-0.35262224078178406,
0.03159087523818016,
0.07572805136442184,
0.5826777815818787,
-0.3446737229824066,
-0.05540991574525833,
-0.08609957247972488,
-0.2328721582889557,
-0.11882102489471436,
0.2510834336280823,
0.0848359614610672,
0.15635381639003754,
0.35115015506744385,
0.056725289672613144,
0.11574409902095795,
0.15499994158744812,
0.060184091329574585,
-0.031086692586541176,
-0.2949572503566742,
0.361149400472641,
0.08459402620792389,
-0.183875173330307,
0.18723006546497345,
0.14515823125839233,
-0.6566547751426697,
0.4483214318752289,
-0.28731170296669006,
0.250468909740448,
0.06725748628377914,
0.28595981001853943,
-0.3821873962879181,
0.17607933282852173,
0.011500455439090729,
-0.5103510022163391,
0.009330330416560173,
0.07092268764972687,
0.09391279518604279,
-0.12795506417751312,
-0.1896888166666031,
0.08810599893331528,
-0.05016287788748741,
-0.002047094749286771,
0.13323719799518585,
0.07466544210910797,
-0.1537557989358902,
-0.013752502389252186,
-0.06327304244041443,
-0.5141729116439819,
0.26573583483695984,
0.036973319947719574,
-0.05854380130767822,
0.07478157430887222,
0.12933051586151123,
0.39897334575653076,
0.010472698137164116,
-0.050749268382787704,
0.2513028383255005,
-0.030506812036037445,
0.002641740022227168,
0.10379113256931305,
0.481920063495636,
-0.2660455107688904,
0.05952443554997444,
0.07924021035432816,
0.10765042901039124,
-0.007667286787182093,
0.15808507800102234,
-0.022119944915175438,
-0.44099169969558716,
0.12428038567304611,
0.07623142749071121,
-0.041300106793642044,
0.6403239965438843,
-0.35759904980659485,
0.3346843719482422,
-0.11004318296909332,
0.18086838722229004,
0.16153529286384583,
0.023188825696706772,
-0.42582497000694275,
-0.4088210463523865,
-0.012621516361832619,
0.04843917116522789,
-0.043607085943222046,
0.05585017055273056,
-0.14315089583396912,
0.17098835110664368,
0.11257398128509521,
0.12619996070861816,
0.05190795660018921,
0.001286024576984346,
-0.15228188037872314,
0.12397917360067368,
0.3801653981208801,
0.17823703587055206,
0.36078566312789917,
0.2986898124217987,
-0.2555091679096222,
0.07940249145030975,
-0.26339587569236755,
0.007508874870836735,
0.17950215935707092,
-0.10098835825920105,
0.1762390285730362,
0.42633870244026184,
0.3166391849517822,
-0.24781596660614014,
-0.040193621069192886,
-0.2858067452907562,
-0.0806199461221695,
0.3229050934314728,
-0.19344836473464966,
-0.05636949837207794,
-0.29103967547416687,
0.04930055886507034,
-0.050006575882434845,
-0.29469963908195496,
-0.021171240136027336,
-0.11205481737852097,
-0.15543116629123688,
-0.036415647715330124,
-0.019331037998199463,
0.37417468428611755,
-0.4930708110332489,
0.3559175133705139,
-0.2469775378704071,
-0.13393884897232056,
-0.13795354962348938,
0.009016959927976131,
0.16224314272403717,
0.04725049436092377,
-0.37230321764945984,
-0.013980628922581673,
-0.18441590666770935,
0.14610163867473602,
0.30583319067955017,
-0.09483804553747177,
0.10299038887023926,
0.008904827758669853,
0.037065308541059494,
-0.5876758098602295,
0.10670193284749985,
0.026941092684864998,
-0.20696191489696503,
-0.0409310944378376,
0.11772637069225311,
0.23388171195983887,
0.11255581676959991,
0.20979902148246765,
-0.010964233428239822,
0.14048857986927032,
-0.2592792212963104,
0.003588602412492037,
-0.2987799048423767,
-0.268205851316452,
0.24319426715373993,
0.16827787458896637,
0.2570118308067322,
-0.025056961923837662,
0.5799671411514282,
-0.08925703912973404,
-0.13763298094272614,
-0.18500801920890808,
-0.008203200995922089,
-0.25572893023490906,
0.4852348268032074,
0.1104867234826088,
0.10256871581077576,
0.09954371303319931,
-0.08627045154571533,
0.046719372272491455,
0.4133327603340149,
0.053407635539770126,
-0.144557923078537,
0.05279145389795303,
0.21727098524570465,
-0.5132229924201965,
0.1616339236497879,
0.4702354967594147,
0.510654866695404,
-0.03102334402501583,
-0.04330902546644211,
0.180946946144104,
0.21718290448188782,
0.08770567178726196,
-0.21572405099868774,
-0.19195511937141418,
-0.07501308619976044,
0.04241136834025383,
-0.17686444520950317,
0.37415164709091187,
0.04405533894896507,
0.1584659069776535,
-0.26322296261787415,
0.4001316726207733,
0.22654011845588684,
-0.12075414508581161,
-0.23254643380641937,
0.14977622032165527,
0.4359630048274994,
-0.25467392802238464,
0.07109513878822327,
-0.062402524054050446,
-0.25444498658180237,
-0.03847609460353851,
-0.09938806295394897,
-0.03693898767232895,
0.26893171668052673,
-0.4602845311164856,
0.3100154995918274,
-0.3693743646144867,
0.057233404368162155,
-0.3677944242954254,
0.07366237044334412,
-0.16515092551708221,
0.08350704610347748,
-0.00034021117608062923,
-0.1691705882549286,
-0.06507483869791031,
-0.35783901810646057,
-0.35933539271354675,
0.25743821263313293,
0.06951725482940674,
0.38015371561050415,
0.3835254907608032,
-0.1553502380847931,
-0.020475288853049278,
-0.08368339389562607,
0.5714023113250732,
-0.15620535612106323,
-0.4705405533313751,
0.2725016474723816,
0.2294001579284668,
-0.38871824741363525,
0.054817862808704376,
-0.09529987722635269,
0.16696515679359436,
-0.5454441905021667,
0.5598384141921997,
-0.07030888646841049,
-0.21775348484516144,
0.4023014008998871,
0.11583001911640167,
0.09911850839853287,
0.025843320414423943,
-0.06983784586191177,
0.321097731590271,
-0.08308549225330353,
-0.26610299944877625,
-0.17174655199050903,
0.38209807872772217,
-0.11906759440898895,
-0.09104453772306442,
-0.3985782265663147,
-0.40914225578308105,
-0.08848266303539276,
0.22395700216293335,
0.3877209424972534,
-0.06405583769083023,
-0.25568315386772156,
0.27028021216392517,
-0.33327025175094604,
0.3518730700016022,
0.13044463098049164,
0.03500733897089958,
-0.5236517786979675,
-0.046870626509189606,
-0.11965659260749817,
0.4337211847305298,
-0.0220801904797554,
-0.22081142663955688,
0.2770231366157532,
-0.2694503366947174,
0.12677332758903503,
0.052155978977680206,
-0.13384398818016052,
0.16651798784732819,
-0.009745568037033081,
-0.43158093094825745,
-0.21915732324123383,
0.34863439202308655,
0.13536974787712097,
0.008424315601587296,
0.6973349452018738,
0.08338657021522522,
-0.25659260153770447,
-0.025284480303525925,
-0.07337640225887299,
0.7857352495193481,
0.3151415288448334,
0.12897999584674835,
0.11360421031713486,
-0.17760807275772095,
0.3352883458137512,
-0.05299350619316101,
0.3411025404930115,
-0.2741163969039917,
0.05708128586411476,
-0.24209271371364594,
-0.08343780785799026,
0.40213078260421753,
0.18420349061489105,
-0.38461005687713623,
-0.0006987686501815915,
-0.47041594982147217,
0.04343545064330101,
-0.09100943803787231,
-0.034900836646556854,
-0.06108466163277626,
-0.4337596297264099,
-0.35398438572883606,
0.019239144399762154,
-0.0836382508277893,
-0.2131681889295578,
-0.14750972390174866,
-0.0658612996339798,
-0.09817466884851456,
0.015809517353773117,
-0.1265789270401001,
0.02248792164027691,
-0.12427322566509247,
0.026780307292938232,
0.2064046561717987,
-0.496812641620636,
-0.16664618253707886,
0.07488537579774857,
-0.19509491324424744,
-0.07765711098909378,
-0.10205455124378204,
-0.1442989706993103,
0.21816465258598328,
0.1547260731458664,
0.06758811324834824,
-0.10689401626586914,
-0.09027153998613358,
0.1711311936378479,
-0.410658061504364,
0.29535022377967834,
0.07859860360622406,
-0.35632917284965515,
0.21576589345932007,
0.13516142964363098,
-0.211405411362648,
0.017546361312270164,
-0.04760761931538582,
0.1775500327348709,
0.19619111716747284,
-0.1308622807264328,
0.11190005391836166,
0.24567215144634247,
-0.05131174623966217,
0.05921977385878563,
-0.0775819942355156,
-0.4195980727672577,
-0.1293431520462036,
0.5261605381965637,
0.04398978874087334,
0.0712042897939682,
0.1582731306552887,
-0.04396931454539299,
-0.1154847964644432,
-0.1995779275894165,
0.218459352850914,
0.3122899830341339,
-0.48854896426200867,
0.10142898559570312,
0.34938839077949524,
-0.1719634234905243,
-0.11156188696622849,
0.25087323784828186,
-0.10027897357940674,
0.5149903893470764,
-0.31745657324790955,
-0.3425138592720032,
-0.28849732875823975,
0.1409846842288971,
0.26144951581954956,
0.14165154099464417,
-0.19290253520011902,
0.055760666728019714,
-0.052850183099508286,
-0.33490511775016785,
-0.24675613641738892,
-0.22350849211215973,
0.10847965627908707,
0.03673740476369858,
-0.0551149919629097,
0.17018352448940277,
-0.03152245655655861,
-0.13214832544326782,
0.2110212743282318,
-0.05664824694395065,
0.04683409631252289,
-0.21089787781238556,
-0.026965472847223282,
0.11976629495620728,
0.03794023394584656,
-0.19670432806015015,
-0.02568993717432022,
-0.21141374111175537,
-0.4215814173221588,
-0.3005754351615906,
-0.057773709297180176,
0.39006927609443665,
-0.29331421852111816,
0.19272994995117188,
0.00738925626501441,
-0.12622210383415222,
0.05843759700655937,
-0.13330435752868652,
0.10637827962636948,
-0.26977869868278503,
-0.1290736049413681,
0.3115583062171936,
-0.014695352874696255,
-0.023992061614990234,
-0.11534975469112396,
0.14202812314033508,
-0.08041714131832123,
0.15084655582904816,
-0.10094213485717773,
-0.017898403108119965,
0.10608108341693878,
0.00433917623013258,
0.21452802419662476,
0.19857986271381378,
0.06958981603384018,
0.13785524666309357,
0.1196550503373146,
0.19444844126701355,
-0.25508999824523926,
-0.3299836814403534,
-0.12215323001146317,
0.47122111916542053,
0.2662367820739746,
0.08894643187522888,
-0.30715057253837585,
-0.17146779596805573,
0.2530726492404938,
-0.03500313311815262,
-0.006106589920818806,
-0.3235412836074829,
0.3857971131801605,
0.5572220683097839,
0.11795590817928314,
0.05958862602710724,
0.03969820216298103,
0.14062277972698212,
0.3361615240573883,
0.13380064070224762,
-0.1947600245475769,
0.011188297532498837,
0.6011149883270264,
-0.19568005204200745,
-0.3244708180427551,
-0.22755084931850433,
-0.17713280022144318,
0.0576401986181736,
-0.3520768880844116,
0.02590147592127323,
0.25340989232063293,
0.047511253505945206,
0.003797202603891492,
0.03821165859699249,
0.004717512987554073,
-0.049101121723651886,
-0.03331189602613449,
-0.15320944786071777,
-0.13394029438495636,
-0.18074487149715424,
-0.03900939226150513,
-0.16341236233711243,
-0.008154905401170254,
-0.03645060211420059,
0.5291035771369934,
-0.012298479676246643,
0.12848421931266785,
-0.2611065208911896,
0.6372095346450806,
0.40249738097190857,
0.29667672514915466,
0.14721080660820007,
-0.07210879027843475,
0.2510964870452881,
0.1226373016834259,
0.14056269824504852,
0.10094194114208221,
0.2281177043914795,
0.3508399426937103,
0.1949283629655838,
-0.010588756762444973,
-0.18407973647117615,
-0.15235090255737305,
0.11539987474679947,
-0.05421604588627815,
0.26886212825775146,
-0.1554083228111267,
0.03732035309076309,
0.21499425172805786,
-0.12381011247634888,
0.192307710647583,
-0.26102399826049805,
0.04077029973268509,
-0.5898836255073547,
0.2387276142835617,
0.054874058812856674,
-0.3407074809074402,
0.044793643057346344,
0.13098035752773285,
0.10031478106975555,
-0.24785271286964417,
0.10445433109998703,
0.12095990777015686,
-0.22258304059505463,
-0.0895209014415741,
0.08419759571552277,
0.11509618908166885,
0.3001423180103302,
-0.37387192249298096,
0.1910105049610138,
-0.17730192840099335,
-0.043548017740249634,
-0.17618437111377716,
-0.12033715099096298,
0.029821675270795822,
-0.28082194924354553,
-0.03484019637107849,
0.1566491574048996,
0.15484508872032166,
-0.014283313415944576,
0.49119237065315247,
0.35643163323402405,
0.27080780267715454,
0.11973158270120621,
-0.17299924790859222,
0.11041394621133804,
0.1908469945192337,
0.0002531094942241907,
0.011730676516890526,
-0.4289303123950958,
0.34200167655944824,
0.27951252460479736,
0.05352118983864784,
0.06456129252910614,
0.0777077004313469,
0.0041039129719138145,
-0.17863015830516815,
0.4160436987876892,
-0.009112794883549213,
0.022723011672496796,
-0.056351639330387115,
0.38881057500839233,
-0.3106722831726074,
-0.12445401400327682,
-0.2836521863937378,
0.3805931806564331,
0.12529024481773376,
0.07766678929328918,
-0.3122366666793823,
-0.1756627857685089,
0.0684751495718956,
-0.10565554350614548,
0.041050612926483154,
0.38228151202201843,
-0.03771919384598732,
0.5629077553749084,
0.2832452654838562,
-0.1616649031639099,
-0.33426785469055176,
-0.22835732996463776,
0.11901364475488663,
-0.050875913351774216,
0.004864877555519342,
-0.18593963980674744,
0.04428226500749588,
0.08111746609210968,
-0.40084347128868103,
-0.0934760719537735,
0.19428175687789917,
0.2948789894580841,
0.045638639479875565,
-0.30909302830696106,
-0.11783501505851746,
0.2098560631275177,
0.1142396628856659,
-0.25942519307136536,
0.16078993678092957,
-0.13148772716522217,
0.1261087954044342,
-0.06999842822551727,
0.14057278633117676,
-0.054675955325365067,
0.07123091071844101,
-0.19711966812610626,
-0.4769251346588135
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help !
Here is a few things about the current implementation:
- A dataset object is a wrapper of one `pyarrow.Table` that contains the data
- Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc.
Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :)
However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0).
Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0.
I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support. | I want to achieve the following result

| 230 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help !
Here is a few things about the current implementation:
- A dataset object is a wrapper of one `pyarrow.Table` that contains the data
- Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc.
Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :)
However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0).
Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0.
I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support. | [
-0.5330206155776978,
0.30334562063217163,
-0.030163750052452087,
0.06750238686800003,
-0.06257481873035431,
-0.05822180584073067,
0.2094469666481018,
0.4255702495574951,
-0.07458487898111343,
0.18278071284294128,
-0.18690836429595947,
0.7275899052619934,
-0.1599382609128952,
0.5724499821662903,
-0.2195647805929184,
-0.2587185204029083,
0.16445833444595337,
0.6102407574653625,
-0.5832621455192566,
0.256436824798584,
-0.25909048318862915,
-0.10352753847837448,
-0.3908790051937103,
-0.20353156328201294,
-0.4795861840248108,
0.20167787373065948,
-0.27372026443481445,
-0.04901527985930443,
-0.27964627742767334,
-0.32533836364746094,
0.3125085234642029,
0.23971618711948395,
0.1502656489610672,
0.20055097341537476,
-0.00011996712419204414,
0.13694384694099426,
-0.15741656720638275,
-0.14259959757328033,
-0.20511303842067719,
-0.34256449341773987,
-0.2079404890537262,
-0.42376527190208435,
0.11098525673151016,
0.021435843780636787,
0.050926171243190765,
-0.3994390070438385,
0.011584140360355377,
-0.20948165655136108,
-0.08471786975860596,
0.010631007142364979,
0.10653841495513916,
0.20309555530548096,
0.14042477309703827,
-0.032111089676618576,
0.18002767860889435,
0.2532161474227905,
-0.2782607078552246,
-0.01674198918044567,
0.15306879580020905,
-0.2789546251296997,
-0.06802131235599518,
0.042783886194229126,
0.07802113890647888,
-0.15968964993953705,
-0.11548831313848495,
0.22641190886497498,
-0.0171625055372715,
-0.4759061932563782,
0.00997831393033266,
0.3201735019683838,
0.5716279745101929,
-0.460849791765213,
-0.3677830994129181,
-0.23388302326202393,
0.25345510244369507,
-0.22183771431446075,
0.0001274221285711974,
0.375063419342041,
0.016770347952842712,
0.23716901242733002,
0.17753508687019348,
-0.05728597193956375,
-0.3395475745201111,
0.24117156863212585,
-0.01903596706688404,
0.43451452255249023,
0.19109444320201874,
0.2638528048992157,
0.23803092539310455,
0.06643462181091309,
0.14777714014053345,
-0.047218456864356995,
0.009313716553151608,
0.3843115568161011,
-0.560468316078186,
-0.05748780071735382,
-0.09188062697649002,
-0.23312309384346008,
0.3174954652786255,
0.3900790810585022,
0.15426188707351685,
0.1787301003932953,
-0.21723918616771698,
0.18004602193832397,
0.34432196617126465,
0.08064843714237213,
0.12062503397464752,
0.10886471718549728,
0.08864589035511017,
-0.35766565799713135,
0.22691355645656586,
0.16562950611114502,
-0.2526625394821167,
-0.4635506272315979,
-0.19712711870670319,
0.008335484191775322,
0.08765561133623123,
0.3238951563835144,
0.035935889929533005,
-0.18493041396141052,
-0.14398281276226044,
-0.02534758299589157,
-0.03682944178581238,
-0.015486211515963078,
0.04731915891170502,
0.6687632203102112,
-0.08775266259908676,
0.3547268211841583,
0.058144330978393555,
-0.226371169090271,
0.02418973110616207,
0.15497562289237976,
-0.11721454560756683,
0.018361294642090797,
0.2820977568626404,
-0.21734394133090973,
-0.17620453238487244,
0.32538142800331116,
0.2179027944803238,
0.33565467596054077,
0.14472518861293793,
-0.3521076738834381,
0.20805850625038147,
0.2606722414493561,
0.02591937966644764,
-0.2390606850385666,
0.1745026409626007,
-0.25542888045310974,
-0.11246559768915176,
0.5075585842132568,
-0.08099877089262009,
-0.16471809148788452,
-0.5950241088867188,
-0.0452265739440918,
-0.2724873125553131,
0.03835514932870865,
-0.43685343861579895,
0.41146010160446167,
-0.12371735274791718,
-0.11929801106452942,
-0.05070486664772034,
-0.07701432704925537,
0.18899112939834595,
-0.36731842160224915,
0.19486725330352783,
0.16208358108997345,
-0.4798494875431061,
0.06677285581827164,
0.2755306661128998,
-0.2665073871612549,
0.16133341193199158,
-0.09319870918989182,
-0.13690859079360962,
-0.17831888794898987,
-0.025109147652983665,
0.40011298656463623,
0.3169252574443817,
-0.14226244390010834,
-0.12864401936531067,
-0.2277921736240387,
-0.16533304750919342,
0.09837313741445541,
0.29615163803100586,
0.1404906064271927,
0.0227770134806633,
0.28623542189598083,
0.030266987159848213,
0.19919925928115845,
0.08262728154659271,
0.030240297317504883,
-0.026612821966409683,
-0.27150851488113403,
0.4335520267486572,
0.23053674399852753,
-0.0026214350946247578,
0.01659289002418518,
0.20312663912773132,
-0.8441975116729736,
0.46413397789001465,
-0.3334348201751709,
0.3690650463104248,
-0.12392106652259827,
0.2949068248271942,
-0.22969631850719452,
-0.0010068047558888793,
-0.22396621108055115,
-0.5165885090827942,
0.2283264398574829,
0.009054910391569138,
0.3067692816257477,
-0.08041013777256012,
-0.22153712809085846,
0.23352377116680145,
-0.002000009873881936,
-0.07993950694799423,
0.08084847033023834,
-0.016499722376465797,
-0.05487534776329994,
0.16996321082115173,
-0.1656707376241684,
-0.4816541373729706,
0.2382020205259323,
0.10831507295370102,
-0.07152849435806274,
-0.07733931392431259,
0.37133511900901794,
0.15702511370182037,
-0.0870870053768158,
-0.1743689924478531,
0.36151936650276184,
-0.018146848306059837,
-0.020605117082595825,
0.329624742269516,
0.46353331208229065,
-0.1377493143081665,
-0.16791918873786926,
0.10019843280315399,
0.10872452706098557,
-0.02094285935163498,
0.052941471338272095,
-0.02779804728925228,
-0.624505877494812,
0.18701934814453125,
0.050229281187057495,
0.09454917907714844,
0.7123306393623352,
-0.306561678647995,
0.07651673257350922,
0.01548745483160019,
0.05442193150520325,
0.20535531640052795,
0.04871060326695442,
-0.2358560562133789,
-0.20406799018383026,
-0.06400389224290848,
0.40380990505218506,
-0.12818662822246552,
0.16969601809978485,
-0.5598100423812866,
0.1875692456960678,
0.3318052291870117,
0.05768132954835892,
0.0605531707406044,
-0.025867417454719543,
-0.06261704862117767,
-0.010134353302419186,
0.21753381192684174,
-0.044055819511413574,
0.4475497007369995,
0.2890945076942444,
-0.027471067383885384,
0.03435495123267174,
-0.328868567943573,
0.03027772717177868,
0.12461823225021362,
-0.11248870193958282,
0.14105814695358276,
0.4801803529262543,
0.34676221013069153,
-0.09327615797519684,
-0.0006991637637838721,
-0.2700633704662323,
0.13271544873714447,
0.2761550545692444,
-0.26117998361587524,
-0.1646776795387268,
-0.5461023449897766,
0.10187215358018875,
-0.14800037443637848,
-0.45103028416633606,
-0.006099893245846033,
-0.06524933129549026,
-0.008342107757925987,
0.16606482863426208,
-0.1294538974761963,
0.39923936128616333,
-0.3121034502983093,
0.31034499406814575,
-0.45500314235687256,
0.009178065694868565,
-0.1386478990316391,
-0.07531747221946716,
0.07938384264707565,
0.02302560769021511,
0.006653874646872282,
-0.12593358755111694,
-0.10959989577531815,
0.09413368254899979,
0.10091041773557663,
-0.1167372614145279,
-0.09248029440641403,
0.047254178673028946,
-0.11761452257633209,
-0.25933849811553955,
0.15836194157600403,
-0.08502571284770966,
-0.1846010982990265,
-0.16187125444412231,
0.0596693716943264,
0.2899073660373688,
-0.1702336221933365,
0.16354329884052277,
-0.048060838133096695,
0.14157654345035553,
-0.2636122405529022,
-0.15413863956928253,
-0.32442352175712585,
-0.2585850954055786,
0.47622475028038025,
0.08165040612220764,
0.2547367215156555,
0.02973630279302597,
0.494140088558197,
-0.06993859261274338,
0.005819029174745083,
-0.056586749851703644,
0.06859689205884933,
-0.2480996996164322,
0.4400028884410858,
-0.07902546972036362,
-0.13341382145881653,
0.05097414553165436,
-0.26915621757507324,
0.030182695016264915,
0.3969057500362396,
0.06434161216020584,
-0.04428651183843613,
-0.003954529762268066,
0.5810074806213379,
-0.27968281507492065,
0.22663594782352448,
0.48956745862960815,
0.5526221990585327,
0.0019503864459693432,
-0.03659768030047417,
-0.0019033346325159073,
0.1531604379415512,
0.2148161083459854,
-0.35286745429039,
-0.044439636170864105,
-0.20587663352489471,
0.27250412106513977,
0.22328296303749084,
0.074139304459095,
-0.05531913414597511,
0.45796072483062744,
-0.22359219193458557,
0.41091248393058777,
0.13311150670051575,
-0.10935916006565094,
-0.11760041117668152,
-0.19321948289871216,
0.47282910346984863,
-0.2240556925535202,
0.02942543849349022,
-0.03826140984892845,
-0.28821396827697754,
0.07382293790578842,
-0.329346626996994,
0.0006596983294002712,
0.3874143362045288,
-0.23220707476139069,
0.16984392702579498,
-0.24076177179813385,
-0.14992322027683258,
-0.37156397104263306,
0.1180475726723671,
-0.2668705880641937,
0.006067866925150156,
0.10967116802930832,
-0.20999205112457275,
-0.18682171404361725,
-0.41372379660606384,
-0.43798208236694336,
0.2904357612133026,
0.23372045159339905,
0.15374816954135895,
0.4324118196964264,
-0.2906361520290375,
-0.03644181787967682,
-0.16388846933841705,
0.8776169419288635,
-0.04712522774934769,
-0.46525293588638306,
0.3030634820461273,
0.07659061253070831,
-0.35063695907592773,
0.047270286828279495,
0.04817391186952591,
0.3198089003562927,
-0.3462216854095459,
0.3192034661769867,
-0.28815802931785583,
-0.2275657057762146,
0.39362800121307373,
0.19903433322906494,
0.08159258216619492,
0.0893719419836998,
-0.13402396440505981,
0.079969622194767,
-0.05849609896540642,
-0.2685227394104004,
-0.08787991106510162,
0.42433249950408936,
-0.30545535683631897,
-0.042319782078266144,
-0.3029097616672516,
-0.22516626119613647,
-0.06799403578042984,
0.24959895014762878,
0.34467563033103943,
0.014223258011043072,
0.05594965070486069,
-0.038429684937000275,
-0.09308505803346634,
0.5758819580078125,
0.36566272377967834,
-0.12642572820186615,
-0.34386447072029114,
-0.04236534610390663,
-0.07917290180921555,
0.46787598729133606,
-0.1007188931107521,
0.08412592113018036,
0.3410400152206421,
-0.28840556740760803,
-0.045650169253349304,
-0.13051359355449677,
-0.07454518228769302,
0.02984943799674511,
-0.013924507424235344,
-0.46187064051628113,
-0.25576430559158325,
0.3674499988555908,
0.12605023384094238,
-0.025679225102066994,
0.46399104595184326,
0.08298061043024063,
-0.19042746722698212,
0.02078384719789028,
0.009859468787908554,
0.8966764807701111,
0.059623394161462784,
0.2757001519203186,
0.25674739480018616,
-0.2981202304363251,
0.35580626130104065,
-0.18126018345355988,
0.30977460741996765,
-0.3066486120223999,
-0.029555853456258774,
-0.2604188919067383,
-0.19969229400157928,
0.3407328128814697,
0.2249896079301834,
-0.3719775676727295,
-0.06442959606647491,
-0.30569544434547424,
-0.2230796217918396,
0.017306730151176453,
0.08089543879032135,
-0.023418813943862915,
-0.44179561734199524,
-0.18499445915222168,
-0.06379851698875427,
-0.10601387172937393,
-0.3592419922351837,
-0.16936460137367249,
-0.04108652099967003,
-0.15098021924495697,
0.09852079302072525,
-0.24366237223148346,
0.09951142221689224,
-0.02471066452562809,
0.16521331667900085,
0.33168867230415344,
-0.3736482858657837,
0.03393556550145149,
0.2207987755537033,
-0.2576707899570465,
-0.22432000935077667,
-0.013242704793810844,
-0.09695419669151306,
0.1727021187543869,
0.10695063322782516,
0.1969633251428604,
-0.15761098265647888,
0.2014956772327423,
0.1474810540676117,
-0.46100935339927673,
0.17783674597740173,
-0.00691990228369832,
-0.4613768458366394,
0.14203357696533203,
0.20879757404327393,
-0.0012904935283586383,
0.04770447313785553,
-0.0021936933044344187,
0.3976413607597351,
0.2397095263004303,
-0.26305314898490906,
0.015645118430256844,
0.3175116181373596,
-0.08653420209884644,
0.2900560796260834,
-0.3261568546295166,
-0.2962745428085327,
-0.18087932467460632,
0.4714466333389282,
0.030673464760184288,
0.351602166891098,
0.20168522000312805,
0.24368497729301453,
-0.16987493634223938,
-0.10799948871135712,
0.04979265481233597,
0.3055419325828552,
-0.39508137106895447,
-0.04739975929260254,
0.20836837589740753,
-0.06494245678186417,
-0.1075998842716217,
0.2953145205974579,
-0.011464465409517288,
0.402771919965744,
-0.24364861845970154,
-0.24601182341575623,
-0.33640795946121216,
0.24800147116184235,
0.3166216313838959,
0.11271359026432037,
0.22145241498947144,
0.2741636633872986,
0.12366084009408951,
-0.06522171944379807,
-0.2084725797176361,
-0.04214110225439072,
0.00539318285882473,
0.06776390224695206,
0.09583345055580139,
0.10079724341630936,
-0.1477748304605484,
-0.1431107521057129,
0.13756109774112701,
-0.0252182949334383,
0.016736561432480812,
-0.12084394693374634,
-0.10744498670101166,
0.12390828132629395,
0.09086576104164124,
-0.21394510567188263,
-0.0985749214887619,
-0.1487615555524826,
-0.30237388610839844,
-0.3175998330116272,
0.05741243064403534,
0.4234732985496521,
-0.3227655291557312,
0.18676798045635223,
0.18931694328784943,
0.010110982693731785,
-0.0515124574303627,
0.07075204700231552,
0.1303386092185974,
-0.10487603396177292,
-0.056245315819978714,
0.4097556173801422,
-0.06040956452488899,
-0.08422808349132538,
-0.13493449985980988,
0.09766274690628052,
0.03293564170598984,
-0.05734814703464508,
0.011032870970666409,
-0.15917880833148956,
-0.12037373334169388,
-0.18424664437770844,
0.3884128928184509,
0.15674565732479095,
0.2498009204864502,
0.1956639438867569,
0.37273845076560974,
0.13252028822898865,
-0.32042181491851807,
-0.2983632981777191,
0.008193997666239738,
0.2753521800041199,
0.2538132071495056,
0.043417803943157196,
-0.12070389837026596,
0.05668489262461662,
-0.07819119095802307,
-0.047985147684812546,
-0.022123869508504868,
0.035925548523664474,
0.2558053135871887,
0.3084741532802582,
0.07048041373491287,
0.07202397286891937,
0.0009227271657437086,
0.10664918273687363,
0.2689947187900543,
-0.06864777207374573,
-0.2647780179977417,
0.2673965394496918,
0.2540493309497833,
-0.2251477837562561,
-0.14450791478157043,
-0.3573759198188782,
-0.0025074926670640707,
0.20049422979354858,
0.04131818935275078,
0.06454914063215256,
0.14556317031383514,
0.47300225496292114,
-0.008635512553155422,
-0.11924923211336136,
0.037382569164037704,
0.21186797320842743,
0.013072088360786438,
-0.12054844945669174,
-0.31148719787597656,
-0.3096059262752533,
0.015065599232912064,
0.05577496439218521,
-0.04598391428589821,
-0.1940569281578064,
0.648300051689148,
-0.061002217233181,
0.06689358502626419,
-0.28831401467323303,
0.5695882439613342,
0.3132677376270294,
0.15056858956813812,
0.08334260433912277,
-0.07363393157720566,
0.32328709959983826,
-0.126806378364563,
-0.017682215198874474,
0.11624188721179962,
0.41054567694664,
0.2340724915266037,
0.07170064747333527,
-0.13173644244670868,
-0.16330870985984802,
-0.09184393286705017,
-0.13857312500476837,
-0.06357181817293167,
0.1402384489774704,
-0.052545852959156036,
0.32715269923210144,
0.1570773869752884,
-0.01775343157351017,
-0.016492269933223724,
0.13229891657829285,
0.3111962080001831,
-0.5493848919868469,
-0.06833712011575699,
0.10636690258979797,
-0.4318334758281708,
0.3776521682739258,
0.0480138398706913,
0.06392232328653336,
-0.14424832165241241,
0.14440685510635376,
0.012583193369209766,
-0.17129819095134735,
-0.06714792549610138,
0.03333371877670288,
0.3119400441646576,
0.35725998878479004,
-0.09174313396215439,
0.2588997781276703,
-0.25079649686813354,
-0.03641188517212868,
-0.24577872455120087,
-0.05832374095916748,
0.03264482319355011,
-0.3628958761692047,
-0.11463544517755508,
0.19665294885635376,
0.3155170977115631,
0.06403259932994843,
0.23176182806491852,
0.242022305727005,
0.3450903594493866,
0.4110003113746643,
-0.23254646360874176,
0.12463866174221039,
0.1620650440454483,
-0.0696844756603241,
-0.03616412729024887,
-0.355290025472641,
0.32439255714416504,
0.4109690189361572,
-0.014768886379897594,
-0.17186327278614044,
0.1330031156539917,
0.1479053646326065,
0.029481029137969017,
0.5030778050422668,
0.0799618735909462,
0.2476210594177246,
-0.15212613344192505,
0.19690679013729095,
-0.34234651923179626,
-0.14396291971206665,
-0.3880271017551422,
0.26621511578559875,
0.003173378063365817,
0.10380743443965912,
-0.32139116525650024,
0.05658368393778801,
0.011690044775605202,
-0.011398036032915115,
0.09059015661478043,
0.529271125793457,
0.03206438571214676,
0.28567206859588623,
0.2315208911895752,
-0.30145999789237976,
-0.20426884293556213,
-0.05371840298175812,
0.09425532072782516,
-0.044644784182310104,
-0.11672533303499222,
-0.06065046414732933,
0.048053983598947525,
-0.06290093064308167,
-0.3654369115829468,
-0.2624560594558716,
-0.09960661828517914,
0.09685474634170532,
0.04323815926909447,
-0.28772851824760437,
-0.1671690195798874,
0.24555131793022156,
0.17395585775375366,
-0.2317970097064972,
0.21708771586418152,
-0.18213310837745667,
-0.06757432222366333,
-0.21497368812561035,
0.2838034927845001,
-0.16064275801181793,
-0.22837309539318085,
-0.14636799693107605,
-0.5240386724472046
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | @lhoestq, we have two Pull Requests to implement:
- Dataset.add_item: #1870
- Dataset.add_column: #2145
which add a single row or column, repectively.
The request here is to implement the concatenation of *multiple* rows/columns. Am I right?
We should agree on the API:
- `concatenate_datasets` with `axis`?
- other Dataset method name? | I want to achieve the following result

| 51 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

@lhoestq, we have two Pull Requests to implement:
- Dataset.add_item: #1870
- Dataset.add_column: #2145
which add a single row or column, repectively.
The request here is to implement the concatenation of *multiple* rows/columns. Am I right?
We should agree on the API:
- `concatenate_datasets` with `axis`?
- other Dataset method name? | [
-0.2659381031990051,
-0.09517239034175873,
-0.08206047117710114,
0.04083068668842316,
-0.23825716972351074,
0.10751865804195404,
0.29300248622894287,
0.25326332449913025,
0.07052107155323029,
0.16365554928779602,
-0.004881810862571001,
0.3495404124259949,
-0.02749420516192913,
0.5060870051383972,
-0.02207992784678936,
-0.0006615428137592971,
0.2938614785671234,
0.553604781627655,
-0.2584514915943146,
0.0008193210233002901,
-0.5191210508346558,
0.06123443320393562,
-0.40064606070518494,
-0.20113548636436462,
-0.1511586755514145,
0.17109018564224243,
-0.423663467168808,
-0.09227927774190903,
-0.3538229465484619,
-0.08684609830379486,
0.3892124593257904,
0.18713560700416565,
0.024768395349383354,
0.2834433317184448,
-0.00011846956476802006,
-0.012050403282046318,
0.008737233467400074,
-0.12220050394535065,
0.03146430104970932,
-0.26489579677581787,
-0.4881325364112854,
-0.5036519169807434,
0.08924996852874756,
-0.1769721508026123,
0.1351442039012909,
-0.4490818381309509,
0.1138928160071373,
-0.3092617094516754,
0.040050942450761795,
0.17618459463119507,
0.10283977538347244,
-0.21886102855205536,
0.0002190000523114577,
-0.10637407749891281,
0.02107228897511959,
0.33904895186424255,
-0.04241893067955971,
-0.2795720100402832,
0.1721029430627823,
0.11126767098903656,
0.08024530857801437,
0.012746645137667656,
0.18220359086990356,
-0.04792047664523125,
0.12505267560482025,
0.18161730468273163,
0.08067893236875534,
-0.4402334690093994,
0.18589329719543457,
0.2143527716398239,
0.7385679483413696,
-0.1596599668264389,
-0.1948232799768448,
0.1284780651330948,
0.358920693397522,
-0.033520136028528214,
-0.1378205567598343,
0.350324422121048,
0.08048830181360245,
0.01624779962003231,
-0.10921088606119156,
-0.3514397144317627,
-0.2742884159088135,
0.45495420694351196,
-0.248998761177063,
0.4160049259662628,
0.05179598554968834,
0.24495744705200195,
-0.14352689683437347,
-0.27319490909576416,
0.1568622589111328,
-0.25877341628074646,
-0.013394319452345371,
0.3934815227985382,
-0.7762804627418518,
-0.06545530259609222,
-0.03587359935045242,
-0.1721755713224411,
0.35206037759780884,
0.28765180706977844,
0.24374519288539886,
0.012642196379601955,
-0.1284732073545456,
0.17597907781600952,
0.18503154814243317,
0.10463851690292358,
0.33573564887046814,
0.17963872849941254,
0.03724243491888046,
-0.07985759526491165,
0.3408163785934448,
0.11167843639850616,
-0.3545682430267334,
-0.22872424125671387,
-0.291250079870224,
-0.0033481598366051912,
0.10975770652294159,
0.219615638256073,
-0.0571819469332695,
-0.17501990497112274,
-0.49876120686531067,
-0.27617383003234863,
-0.04220327362418175,
-0.27245885133743286,
0.39802461862564087,
0.7039448022842407,
0.0774432122707367,
0.1547517329454422,
0.4607476592063904,
-0.02607988566160202,
-0.1366766393184662,
0.33829793334007263,
0.06476417928934097,
0.12971052527427673,
0.14350886642932892,
-0.32643547654151917,
-0.1615809202194214,
0.3666672110557556,
0.2250949591398239,
-0.009887690655887127,
0.2446804642677307,
-0.20903827250003815,
-0.023848367854952812,
0.2617449164390564,
0.10085083544254303,
-0.2530784606933594,
0.03685677424073219,
-0.1425592005252838,
-0.14163385331630707,
0.5437418818473816,
-0.45508846640586853,
-0.06203363835811615,
-0.3632272779941559,
0.09478670358657837,
0.11421996355056763,
0.07658952474594116,
-0.39873597025871277,
0.5860469937324524,
0.04107578843832016,
-0.061406053602695465,
0.20560236275196075,
0.06568291783332825,
0.2846108376979828,
-0.21947839856147766,
0.1627061516046524,
0.11275520920753479,
-0.3627960681915283,
-0.07645927369594574,
-0.07115431129932404,
-0.11910420656204224,
0.09069740027189255,
0.11035732179880142,
-0.30489739775657654,
-0.015397309325635433,
-0.14552775025367737,
0.3676784038543701,
0.7453736066818237,
-0.5776739716529846,
0.06772587448358536,
-0.017983591184020042,
-0.1502818912267685,
-0.23754771053791046,
0.353158563375473,
-0.034321997314691544,
0.217814639210701,
0.21142999827861786,
0.46239107847213745,
-0.03480272367596626,
-0.10179176181554794,
-0.16770443320274353,
0.1560552716255188,
-0.4027186632156372,
0.29175543785095215,
0.0737122967839241,
-0.08020591735839844,
0.09350943565368652,
0.10632184147834778,
-0.5713723301887512,
0.337334543466568,
-0.2997712194919586,
0.11355335265398026,
-0.1664855182170868,
0.1833057999610901,
-0.4257710874080658,
-0.00459466315805912,
-0.086103156208992,
-0.7237885594367981,
-0.13075833022594452,
0.053054679185152054,
0.20055967569351196,
0.21886597573757172,
-0.2594643235206604,
0.05176861584186554,
-0.22079814970493317,
0.008627677336335182,
0.2065584659576416,
0.05006609484553337,
0.1679953783750534,
-0.09198185056447983,
-0.2912178635597229,
-0.5517224073410034,
0.2889830470085144,
0.06755008548498154,
0.0585341677069664,
-0.28958308696746826,
0.21760043501853943,
0.23404453694820404,
0.10961494594812393,
-0.03633999079465866,
0.12333260476589203,
0.07666491717100143,
-0.29653459787368774,
0.3771733045578003,
0.4547508656978607,
-0.24958090484142303,
-0.10067480057477951,
0.22629544138908386,
0.270212858915329,
0.23503071069717407,
0.40215572714805603,
0.036105915904045105,
-0.6281508803367615,
0.20695364475250244,
-0.1773710399866104,
-0.019584685564041138,
0.2576204538345337,
-0.1827201098203659,
0.03365742042660713,
-0.11275972425937653,
0.009082222357392311,
0.13817881047725677,
0.15898819267749786,
-0.419989675283432,
-0.24422165751457214,
0.0635695531964302,
0.40598875284194946,
-0.03173743560910225,
0.03876308724284172,
-0.2467803657054901,
0.043440502136945724,
0.5327414274215698,
-0.1416110098361969,
-0.021951548755168915,
0.1453934907913208,
0.07748502492904663,
-0.1550804227590561,
0.25958332419395447,
0.17130856215953827,
0.5673297643661499,
0.16902297735214233,
-0.17234887182712555,
0.053590282797813416,
0.0660693496465683,
-0.05084097757935524,
0.1477140337228775,
0.09795555472373962,
0.12576915323734283,
0.28141236305236816,
0.41140058636665344,
-0.10377009212970734,
-0.0634789988398552,
-0.3552221655845642,
0.37855178117752075,
0.17299401760101318,
0.008406772278249264,
-0.1615496724843979,
-0.24786226451396942,
0.027167364954948425,
-0.10617241263389587,
-0.3447224199771881,
-0.05361400917172432,
-0.2709854543209076,
-0.1538494974374771,
-0.22575025260448456,
0.01899902895092964,
0.43020620942115784,
-0.3312757611274719,
0.5477532744407654,
-0.36032676696777344,
-0.06783158332109451,
-0.06291195750236511,
0.22370684146881104,
0.1445549726486206,
0.03307564929127693,
-0.28286343812942505,
-0.2202088087797165,
0.1612609326839447,
-0.20602354407310486,
0.3179125189781189,
-0.16290289163589478,
-0.18113914132118225,
0.1974109262228012,
-0.1518644094467163,
-0.5007156729698181,
0.36351388692855835,
-0.082793690264225,
-0.14280197024345398,
-0.15413221716880798,
0.0581262931227684,
0.3354324698448181,
-0.15428289771080017,
-0.046813275665044785,
-0.019609883427619934,
0.12233579158782959,
-0.32681721448898315,
-0.18042674660682678,
-0.22629345953464508,
-0.28094279766082764,
0.23001094162464142,
0.11759999394416809,
0.2725905478000641,
-0.15689988434314728,
-0.012717267498373985,
-0.0007028960972093046,
0.16914726793766022,
-0.1735595315694809,
-0.17792671918869019,
-0.40137529373168945,
0.25343334674835205,
0.022535717114806175,
-0.00005506871821125969,
0.08472173660993576,
0.001369869103655219,
0.1821192502975464,
0.544374406337738,
0.04488511383533478,
-0.5154663324356079,
0.06072424724698067,
0.4005957841873169,
-0.1820838749408722,
0.05265868827700615,
0.6426962614059448,
0.32333990931510925,
-0.040367115288972855,
-0.06730026006698608,
-0.20639391243457794,
0.2793898582458496,
0.4032502770423889,
-0.3642902970314026,
0.20130515098571777,
0.2751307785511017,
0.09296849370002747,
0.06225625053048134,
0.5054624676704407,
0.039363034069538116,
0.2922309935092926,
-0.07761780917644501,
0.19920556247234344,
0.1672186553478241,
-0.1365301012992859,
-0.151912659406662,
0.11843760311603546,
0.3083665370941162,
-0.0467521995306015,
-0.038584526628255844,
-0.09226969629526138,
-0.3269472122192383,
0.15839433670043945,
-0.23372845351696014,
0.042006853967905045,
0.10478593409061432,
-0.49604102969169617,
0.44815266132354736,
-0.29916250705718994,
-0.11780725419521332,
-0.3616158068180084,
0.16856297850608826,
-0.2411237508058548,
0.34342849254608154,
0.00837394967675209,
-0.1559027135372162,
-0.1463201493024826,
-0.2115321308374405,
-0.5169848799705505,
0.6049101948738098,
0.13319487869739532,
0.46926555037498474,
0.25551363825798035,
0.0806022360920906,
-0.003634266322478652,
-0.24869796633720398,
0.6828723549842834,
-0.13748258352279663,
-0.7627074122428894,
0.1882391721010208,
0.15651383996009827,
0.0762535035610199,
0.07386603951454163,
-0.08900974690914154,
0.20125427842140198,
0.0860765278339386,
0.5689386129379272,
-0.45527252554893494,
-0.18421322107315063,
0.39028480648994446,
-0.09374986588954926,
0.13547466695308685,
-0.02419714443385601,
0.038921985775232315,
-0.22805386781692505,
-0.020322564989328384,
-0.5453963279724121,
-0.03476247936487198,
0.36509960889816284,
0.0949464663863182,
-0.006566479802131653,
-0.09063045680522919,
-0.3901821970939636,
0.08621781319379807,
0.01291386503726244,
0.015607653185725212,
0.1319616585969925,
-0.16762803494930267,
-0.024961810559034348,
-0.18801230192184448,
0.5056003332138062,
0.3024643659591675,
-0.07287019491195679,
-0.5819801688194275,
0.06695820391178131,
-0.3535187244415283,
0.3753160834312439,
-0.03407451882958412,
0.09153870493173599,
0.42779451608657837,
-0.23315341770648956,
-0.0033342214301228523,
-0.018228212371468544,
-0.07674232125282288,
0.38269466161727905,
-0.04693549498915672,
-0.5235781669616699,
-0.4147224724292755,
0.2101319581270218,
0.24850206077098846,
-0.016555091366171837,
0.4987652599811554,
0.26345518231391907,
-0.3296017050743103,
-0.20174798369407654,
-0.012910154648125172,
0.9365920424461365,
0.19392269849777222,
0.18094134330749512,
-0.004417578689754009,
-0.39747247099876404,
0.5606546998023987,
-0.23243722319602966,
0.3922209143638611,
-0.17864929139614105,
0.030049219727516174,
-0.3281525671482086,
-0.18854589760303497,
0.4826352000236511,
0.1770557165145874,
-0.45715874433517456,
0.16328497231006622,
-0.23889678716659546,
0.1845560222864151,
-0.08811142295598984,
-0.03142014518380165,
-0.006056932732462883,
-0.4417264759540558,
-0.3329879343509674,
0.06668446958065033,
-0.2873602509498596,
-0.33607593178749084,
-0.3041713535785675,
-0.07941637188196182,
-0.044329870492219925,
-0.06425333023071289,
-0.339736670255661,
-0.13882209360599518,
0.11101022362709045,
0.15226134657859802,
0.13475358486175537,
-0.6152998805046082,
-0.061900749802589417,
-0.0827060341835022,
-0.13498324155807495,
-0.2727528214454651,
0.15391190350055695,
-0.1507541537284851,
0.033816102892160416,
0.09097716212272644,
-0.004652732517570257,
-0.2258448302745819,
0.25384727120399475,
0.08826550841331482,
-0.18790574371814728,
0.3396718204021454,
0.112106554210186,
-0.469448983669281,
-0.16546739637851715,
0.36707592010498047,
-0.12432299554347992,
-0.09133948385715485,
-0.08023400604724884,
0.47792935371398926,
0.2731669843196869,
-0.10572358965873718,
0.02869584411382675,
0.3009193241596222,
-0.002481096424162388,
0.21584205329418182,
-0.32373112440109253,
-0.13054342567920685,
-0.09941369295120239,
0.3208956718444824,
0.13218055665493011,
-0.17055369913578033,
0.1659010946750641,
-0.04406827315688133,
-0.11695490032434464,
-0.0541420504450798,
0.3138014078140259,
0.2610626816749573,
-0.3240882456302643,
0.003710462711751461,
0.057452015578746796,
-0.08410629630088806,
0.03617354854941368,
0.386014848947525,
-0.08119196444749832,
0.4857614040374756,
-0.04531504586338997,
-0.27221715450286865,
-0.19273196160793304,
0.17526531219482422,
0.2161032110452652,
0.11993800848722458,
0.09926886856555939,
0.025799065828323364,
0.08731208741664886,
-0.090391144156456,
-0.20350977778434753,
-0.15186595916748047,
-0.22553199529647827,
0.09903714060783386,
0.034471284598112106,
0.10196169465780258,
-0.13220955431461334,
0.04338068515062332,
0.11760199815034866,
-0.030901724472641945,
-0.03627464547753334,
-0.08326254785060883,
0.013400710187852383,
0.19891327619552612,
0.27189257740974426,
-0.08293848484754562,
0.12895852327346802,
-0.14536868035793304,
-0.42576950788497925,
-0.11303748935461044,
0.12396777421236038,
0.17967425286769867,
-0.2157677412033081,
0.10305997729301453,
0.13395695388317108,
-0.06093349680304527,
-0.1370379477739334,
0.02081388235092163,
0.32455968856811523,
0.07075133174657822,
-0.23782911896705627,
0.3518877327442169,
0.02944883145391941,
-0.05223361402750015,
-0.28711771965026855,
0.3617916703224182,
0.23778028786182404,
0.19157734513282776,
-0.03939224034547806,
-0.14102964103221893,
0.1022871732711792,
-0.04102925956249237,
0.26884010434150696,
0.32184669375419617,
-0.15696588158607483,
0.18068581819534302,
-0.03666427358984947,
0.08413887768983841,
-0.16167683899402618,
-0.33020392060279846,
0.11165349930524826,
0.4873655140399933,
0.12959715723991394,
0.1054629236459732,
-0.3884117007255554,
-0.002156345872208476,
0.09172274172306061,
0.005239350255578756,
0.2883104979991913,
-0.2763764560222626,
0.3092474639415741,
0.14307080209255219,
-0.09110447764396667,
0.145527184009552,
0.13068610429763794,
0.3028082847595215,
0.0655437782406807,
0.029153969138860703,
-0.02924104407429695,
0.02419910952448845,
0.6329192519187927,
-0.32140225172042847,
0.3307989835739136,
-0.12728732824325562,
-0.06668861210346222,
0.2555525302886963,
-0.02578294463455677,
0.15827317535877228,
0.3990776538848877,
-0.19103044271469116,
-0.07080088555812836,
0.00988131295889616,
-0.06171434745192528,
0.15844067931175232,
-0.09086814522743225,
0.015438751317560673,
-0.19807404279708862,
-0.1592763513326645,
-0.05269609019160271,
-0.0575689859688282,
0.044972844421863556,
0.06798665970563889,
0.46515896916389465,
-0.010676340200006962,
0.05339070409536362,
-0.15824639797210693,
0.41887980699539185,
0.0925082340836525,
0.16021639108657837,
0.011797220446169376,
0.10064897686243057,
0.410365492105484,
-0.15884949266910553,
0.27220267057418823,
0.18240396678447723,
0.06969047337770462,
0.16286800801753998,
0.4065343141555786,
0.03449854254722595,
-0.22438257932662964,
-0.03645556792616844,
0.04983597248792648,
0.01030092965811491,
0.1431874930858612,
-0.21743611991405487,
0.07596179097890854,
0.1773577779531479,
-0.0004710594657808542,
0.4957236349582672,
-0.007762674242258072,
-0.060139212757349014,
-0.7930126190185547,
0.4609390199184418,
-0.20922595262527466,
-0.4095268249511719,
0.21614885330200195,
0.16525423526763916,
-0.025731081143021584,
-0.15910135209560394,
-0.09524410218000412,
0.1630515605211258,
-0.08591396361589432,
-0.1366683393716812,
0.060592688620090485,
0.08560231328010559,
0.23729680478572845,
-0.11112162470817566,
0.1397964507341385,
-0.10578908771276474,
-0.2706928551197052,
-0.15312401950359344,
-0.10155881196260452,
0.2189241349697113,
-0.3876805007457733,
-0.13702447712421417,
0.1394798457622528,
0.3020133376121521,
-0.1061059981584549,
0.20273667573928833,
0.11052919924259186,
0.06593628972768784,
0.19470523297786713,
-0.09488673508167267,
0.0733056291937828,
0.31378817558288574,
-0.16034047305583954,
0.0028228999581187963,
-0.24529661238193512,
0.2166263908147812,
0.2222866415977478,
-0.07235433906316757,
-0.21092651784420013,
0.04262655973434448,
0.23660820722579956,
-0.3100654184818268,
0.16151541471481323,
0.13290520012378693,
0.1775909960269928,
-0.28988704085350037,
0.24745610356330872,
-0.06656206399202347,
-0.051804713904857635,
-0.5047515034675598,
0.38557958602905273,
-0.2173953801393509,
0.01699560508131981,
-0.2887922525405884,
-0.1012292131781578,
0.14278200268745422,
-0.07874128222465515,
-0.05396423861384392,
0.25237563252449036,
-0.13174240291118622,
0.3597702383995056,
0.09791751205921173,
-0.44671159982681274,
0.05432390421628952,
0.0797111913561821,
0.1406458467245102,
-0.007527066860347986,
-0.00724642351269722,
-0.05959627777338028,
0.0752682313323021,
-0.04997117072343826,
-0.26512616872787476,
-0.2647545337677002,
0.06071589142084122,
0.06972581893205643,
-0.01226392388343811,
-0.2821734845638275,
-0.30140724778175354,
0.45390892028808594,
0.04197404161095619,
-0.4050902724266052,
0.3852285146713257,
-0.028943536803126335,
-0.272331178188324,
-0.2589527666568756,
0.14567220211029053,
-0.021031463518738747,
-0.11971116811037064,
-0.10887591540813446,
-0.2165900021791458
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | For the API, I like `concatenate_datasets` with `axis` personally :)
From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns).
Regarding what we need to implement:
The axis=0 is already supported and is the current behavior of `concatenate_datasets`.
Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library).
To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally.
I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column.
Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ?
`axis` could also be an argument of `ConcatenationTable.from_tables` | I want to achieve the following result

| 158 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result

For the API, I like `concatenate_datasets` with `axis` personally :)
From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns).
Regarding what we need to implement:
The axis=0 is already supported and is the current behavior of `concatenate_datasets`.
Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library).
To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally.
I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column.
Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ?
`axis` could also be an argument of `ConcatenationTable.from_tables` | [
-0.34827178716659546,
0.06457655131816864,
-0.08929747343063354,
0.14640723168849945,
-0.004705748986452818,
0.06871254742145538,
0.17819473147392273,
0.43016621470451355,
-0.05500125139951706,
0.16881951689720154,
-0.0407027043402195,
0.5322628617286682,
-0.17968806624412537,
0.44571834802627563,
-0.17664918303489685,
-0.12986905872821808,
0.2669723629951477,
0.6772676706314087,
-0.5987273454666138,
0.15211442112922668,
-0.2508707642555237,
0.09974352270364761,
-0.395963191986084,
-0.3213895261287689,
-0.24887685477733612,
0.1981460154056549,
-0.376676470041275,
-0.1862781047821045,
-0.38921648263931274,
-0.25228843092918396,
0.48108890652656555,
0.41998055577278137,
0.19270059466362,
0.24351954460144043,
-0.00011308751709293574,
0.11429047584533691,
-0.15810397267341614,
-0.14430493116378784,
-0.17613621056079865,
-0.45647144317626953,
-0.3388725221157074,
-0.4732193052768707,
0.05500927194952965,
-0.03819457069039345,
-0.007904418744146824,
-0.43937715888023376,
-0.09832797944545746,
-0.42408838868141174,
-0.1667996048927307,
0.06781782954931259,
0.19138354063034058,
-0.19836221635341644,
-0.046788290143013,
-0.14681194722652435,
0.03416978940367699,
0.2906014025211334,
-0.2897629737854004,
-0.3481404483318329,
0.02735251560807228,
-0.008638349361717701,
0.11546282470226288,
-0.02583368308842182,
-0.06897024065256119,
-0.15571226179599762,
0.2706194221973419,
0.0808822438120842,
0.17766515910625458,
-0.4447629749774933,
0.09396056085824966,
0.34371936321258545,
0.6369026899337769,
-0.4048176407814026,
-0.22292548418045044,
-0.06052554398775101,
0.2747724652290344,
-0.12325896322727203,
-0.03662397339940071,
0.2869490087032318,
0.20618557929992676,
0.11650931090116501,
0.036016419529914856,
-0.12165878713130951,
-0.4184628129005432,
0.4105969965457916,
-0.06517679244279861,
0.5333595275878906,
0.06799566745758057,
0.16430029273033142,
0.2092805951833725,
-0.16215753555297852,
0.17805154621601105,
-0.3050978481769562,
-0.1483658105134964,
0.4382912218570709,
-0.5985084176063538,
-0.04615704342722893,
0.028652118518948555,
-0.14689376950263977,
0.22120244801044464,
0.24968789517879486,
0.2240438461303711,
0.07739777863025665,
-0.2034951001405716,
0.1244930550456047,
0.3155554533004761,
0.24423648416996002,
0.3259381353855133,
0.15828654170036316,
0.05880269035696983,
-0.057661693543195724,
0.4282645285129547,
0.042671531438827515,
-0.3903125524520874,
-0.26649945974349976,
-0.3373601734638214,
-0.07565713673830032,
0.2000366896390915,
0.1580793410539627,
0.042708951979875565,
-0.07012131810188293,
-0.16353236138820648,
0.07185427844524384,
0.17990797758102417,
-0.038804639130830765,
0.14718082547187805,
0.8159399032592773,
0.1902589499950409,
0.14290373027324677,
0.22275499999523163,
-0.049683015793561935,
-0.0719224289059639,
0.20154888927936554,
0.05343381315469742,
-0.01565735787153244,
0.25490057468414307,
-0.21171115338802338,
-0.2964211404323578,
0.39229637384414673,
0.3107229173183441,
0.20159201323986053,
0.15246598422527313,
-0.23578320443630219,
0.27290868759155273,
0.2159261554479599,
-0.02336379513144493,
-0.17136205732822418,
0.10855018347501755,
-0.18956425786018372,
-0.17243127524852753,
0.527569591999054,
-0.12466853857040405,
-0.04346213489770889,
-0.4908124506473541,
0.0946803092956543,
-0.27028176188468933,
0.11117997765541077,
-0.3244781196117401,
0.56146639585495,
-0.24497339129447937,
-0.16772116720676422,
0.06883987039327621,
0.033623870462179184,
0.16032317280769348,
-0.18577715754508972,
0.2226327508687973,
0.1458013653755188,
-0.3933648467063904,
-0.015884937718510628,
0.23947648704051971,
-0.2605883479118347,
-0.056906137615442276,
-0.16694894433021545,
-0.10671371966600418,
-0.10442196577787399,
-0.02154568023979664,
0.1586320847272873,
0.38997066020965576,
-0.2733123004436493,
-0.1256055384874344,
-0.09995285421609879,
-0.1640658676624298,
0.010330088436603546,
0.13732463121414185,
0.18625077605247498,
0.2845201790332794,
0.1511421650648117,
0.2225964367389679,
0.1819191724061966,
0.04888660088181496,
0.08804053068161011,
-0.04091792181134224,
-0.27202391624450684,
0.4463222622871399,
0.17541268467903137,
-0.23218421638011932,
0.17844343185424805,
0.015566745772957802,
-0.4601064920425415,
0.32368531823158264,
-0.3310925364494324,
0.24297074973583221,
-0.07844439893960953,
0.2711414694786072,
-0.32075655460357666,
0.0282501932233572,
-0.07094398885965347,
-0.5652902722358704,
0.05867574363946915,
0.09972917288541794,
0.3890402615070343,
0.10614360868930817,
-0.2458084523677826,
0.3670019209384918,
-0.0809096172451973,
-0.05221620202064514,
0.21151039004325867,
0.10095784813165665,
-0.1020018607378006,
0.03452572599053383,
-0.15552884340286255,
-0.4602507948875427,
0.31701958179473877,
0.09117886424064636,
0.012088069692254066,
-0.34842798113822937,
0.23834294080734253,
0.291260689496994,
0.12227975577116013,
-0.04433184862136841,
0.3409980833530426,
-0.0028975666500627995,
-0.17610491812229156,
0.213435560464859,
0.4273329973220825,
-0.23894956707954407,
-0.17554539442062378,
0.08122789114713669,
0.40706998109817505,
0.13992062211036682,
0.3254653811454773,
0.013352406211197376,
-0.6059426665306091,
0.16566532850265503,
-0.005250518210232258,
0.04538498818874359,
0.7022055983543396,
-0.3599381446838379,
0.12899602949619293,
0.004801636561751366,
0.15238504111766815,
0.22261540591716766,
0.12105243653059006,
-0.44399985671043396,
-0.3551977872848511,
0.024179374799132347,
0.38185256719589233,
-0.34552744030952454,
0.0015525443013757467,
-0.1329493373632431,
0.16721004247665405,
0.280638188123703,
-0.036435168236494064,
0.022014178335666656,
-0.010734540410339832,
0.01833118125796318,
0.0007225615554489195,
0.3417837917804718,
0.17399094998836517,
0.48831743001937866,
0.2531154155731201,
-0.16989460587501526,
0.13818985223770142,
-0.22801639139652252,
0.03456995263695717,
0.2451857626438141,
0.0025356949772685766,
-0.03275810927152634,
0.1938691884279251,
0.2984042763710022,
-0.051704246550798416,
0.02571777068078518,
-0.5200483202934265,
0.054614368826150894,
0.45405998826026917,
-0.11751382052898407,
-0.12325937300920486,
-0.4112274944782257,
-0.014678100124001503,
0.0131854098290205,
-0.5087951421737671,
-0.06055105850100517,
-0.10072047263383865,
-0.028961362317204475,
-0.03681081533432007,
-0.12295709550380707,
0.338733047246933,
-0.2723270058631897,
0.49349650740623474,
-0.5590956807136536,
-0.02552565559744835,
-0.019910743460059166,
0.03467470407485962,
0.10998164117336273,
0.04778162017464638,
-0.03143374249339104,
0.025708429515361786,
0.030616519972682,
-0.0037533710710704327,
0.25191110372543335,
0.05221780017018318,
-0.1747589111328125,
0.11484196782112122,
-0.0004915789468213916,
-0.5256098508834839,
0.17325153946876526,
-0.03416144475340843,
-0.10929238051176071,
-0.06813021004199982,
0.05089639499783516,
0.19728949666023254,
-0.02476455084979534,
0.17382290959358215,
-0.212916299700737,
-0.12442313134670258,
-0.4129619300365448,
0.010056829079985619,
-0.14921702444553375,
-0.2941407561302185,
0.30629223585128784,
0.20491935312747955,
0.27679163217544556,
-0.0660553127527237,
0.3649311661720276,
0.02857894077897072,
0.11799847334623337,
0.02480367198586464,
0.041242219507694244,
-0.39842671155929565,
0.36196085810661316,
-0.016221465542912483,
0.004075305070728064,
0.16384024918079376,
-0.12924370169639587,
0.2317785620689392,
0.37390193343162537,
-0.034932155162096024,
-0.1287054717540741,
0.0903959795832634,
0.32102280855178833,
-0.20324061810970306,
0.11636410653591156,
0.5452890992164612,
0.4964996874332428,
0.038978151977062225,
-0.08050686866044998,
-0.14513525366783142,
0.21955664455890656,
0.1137303039431572,
-0.4097942113876343,
-0.03981472924351692,
0.08305291086435318,
0.26097536087036133,
-0.18431970477104187,
0.3280729055404663,
-0.05825960263609886,
0.34876012802124023,
-0.038539569824934006,
0.4031772315502167,
0.09680798649787903,
-0.06857499480247498,
-0.2857970595359802,
0.12261130660772324,
0.33624058961868286,
-0.10621640086174011,
0.11775124073028564,
-0.19360926747322083,
-0.4214164614677429,
0.06060069426894188,
-0.17847426235675812,
-0.05469334125518799,
0.2122352570295334,
-0.45247235894203186,
0.19120670855045319,
-0.30751898884773254,
-0.05933571234345436,
-0.4267514944076538,
0.07546981424093246,
-0.2327069640159607,
0.2720513939857483,
-0.03615623340010643,
-0.2596209943294525,
-0.25452378392219543,
-0.43366795778274536,
-0.39550986886024475,
0.35015398263931274,
0.11188208311796188,
0.40406182408332825,
0.4325251281261444,
-0.052638713270425797,
-0.12013977766036987,
-0.20494040846824646,
0.4980340898036957,
-0.07401647418737411,
-0.5626012682914734,
0.3075748085975647,
0.014436576515436172,
-0.28543975949287415,
0.012246411293745041,
0.052353113889694214,
0.2708071768283844,
-0.11333537101745605,
0.35933685302734375,
-0.25297847390174866,
-0.22392410039901733,
0.3291352689266205,
0.0781998485326767,
0.19015687704086304,
-0.036209218204021454,
-0.10001645982265472,
0.048382844775915146,
-0.08916772156953812,
-0.4129239022731781,
-0.17945024371147156,
0.40767377614974976,
-0.18073393404483795,
-0.17602811753749847,
-0.17473188042640686,
-0.34646928310394287,
0.07359898090362549,
0.17829644680023193,
0.2868495583534241,
0.04546187072992325,
-0.035604577511548996,
0.039024028927087784,
-0.2527461647987366,
0.4640757441520691,
0.2757258117198944,
0.0017460249364376068,
-0.47431766986846924,
0.16030292212963104,
-0.11890069395303726,
0.1470324695110321,
0.015608623623847961,
0.06552751362323761,
0.3621341288089752,
-0.25860491394996643,
-0.05467924475669861,
-0.04497690871357918,
-0.17119285464286804,
0.060506559908390045,
-0.0700814500451088,
-0.6451606154441833,
-0.4660748243331909,
0.2414061427116394,
0.1642180234193802,
0.008146312087774277,
0.7264255881309509,
0.039105501025915146,
-0.32686251401901245,
-0.05751775950193405,
0.012978092767298222,
0.8818541765213013,
0.2684471607208252,
0.1046685054898262,
0.1382034569978714,
-0.24164119362831116,
0.4139750599861145,
-0.21395111083984375,
0.39392438530921936,
-0.34274983406066895,
-0.1126437708735466,
-0.2992987334728241,
-0.11030112951993942,
0.4037831127643585,
0.15060442686080933,
-0.4877849519252777,
-0.011433547362685204,
-0.2502495348453522,
0.1278432011604309,
-0.11708707362413406,
0.03482797369360924,
-0.07093747705221176,
-0.5233116149902344,
-0.4722074270248413,
0.057258155196905136,
-0.10929834842681885,
-0.4260680377483368,
-0.3047960698604584,
-0.03532514348626137,
-0.09107010066509247,
0.03517259657382965,
-0.2306586354970932,
-0.004414272960275412,
0.05216437578201294,
0.073905348777771,
0.24635694921016693,
-0.20353780686855316,
-0.023877430707216263,
0.08806078135967255,
-0.08048253506422043,
-0.14437635242938995,
-0.1169089749455452,
-0.19407472014427185,
-0.00464375875890255,
0.14778052270412445,
0.06055746227502823,
-0.20754534006118774,
0.2673377990722656,
0.1429787278175354,
-0.2555794417858124,
0.1882782280445099,
0.1570274531841278,
-0.34026727080345154,
0.15182484686374664,
0.1354851871728897,
-0.07060529291629791,
0.06969720870256424,
-0.030659444630146027,
0.46194544434547424,
0.2831308841705322,
-0.09586581587791443,
0.10219379514455795,
0.40889772772789,
-0.1689615696668625,
0.10025476664304733,
-0.1308337152004242,
-0.2835269272327423,
-0.18443280458450317,
0.47030749917030334,
0.13271848857402802,
-0.009724222123622894,
-0.08303967863321304,
0.1672370880842209,
-0.12612900137901306,
-0.14172649383544922,
0.22277812659740448,
0.33760109543800354,
-0.38972118496894836,
-0.028674589470028877,
0.1679212749004364,
-0.10506372898817062,
-0.042847923934459686,
0.27436062693595886,
-0.12650054693222046,
0.4867374300956726,
-0.18585751950740814,
-0.21885095536708832,
-0.19026784598827362,
0.19723281264305115,
0.2149624079465866,
0.23642553389072418,
-0.027867598459124565,
0.1071326807141304,
-0.047570157796144485,
-0.260520875453949,
-0.26548975706100464,
-0.21060803532600403,
0.04518449679017067,
-0.07540632039308548,
-0.028660938143730164,
0.19149385392665863,
-0.20677870512008667,
-0.21421897411346436,
0.15419457852840424,
-0.012800893746316433,
-0.13993871212005615,
-0.15168118476867676,
-0.1325606405735016,
0.1478935331106186,
0.10648640990257263,
-0.16860222816467285,
-0.10289056599140167,
-0.22503727674484253,
-0.5166933536529541,
-0.3138572871685028,
0.10470117628574371,
0.2757296860218048,
-0.34352004528045654,
0.11254434287548065,
0.19326567649841309,
0.08497858047485352,
0.009506218135356903,
-0.05325886234641075,
0.229392409324646,
-0.07559102773666382,
-0.02460278756916523,
0.2878011465072632,
-0.1329401433467865,
-0.05550846457481384,
-0.27684691548347473,
0.35514596104621887,
-0.023392431437969208,
0.10097654908895493,
0.06358127295970917,
-0.08526365458965302,
0.21578864753246307,
0.23389260470867157,
0.19222724437713623,
0.18681825697422028,
0.20350094139575958,
0.14370791614055634,
0.11896923184394836,
0.18746966123580933,
-0.08677704632282257,
-0.39051687717437744,
0.17522422969341278,
0.4561103582382202,
0.22356660664081573,
0.058778684586286545,
-0.24000400304794312,
-0.029841193929314613,
0.05760958045721054,
-0.040813107043504715,
0.1074296310544014,
-0.1897704303264618,
0.5861270427703857,
0.26048722863197327,
-0.02980419620871544,
0.176300510764122,
-0.19011302292346954,
0.08194424957036972,
0.24925197660923004,
0.12696364521980286,
-0.210513636469841,
0.24560979008674622,
0.5388051867485046,
-0.22312161326408386,
-0.08106744289398193,
-0.30954161286354065,
-0.1911904364824295,
0.15024305880069733,
-0.01866244524717331,
0.12905485928058624,
0.29908162355422974,
-0.02382475696504116,
-0.2618977427482605,
-0.017926987260580063,
-0.09798560291528702,
0.031188765540719032,
-0.029009312391281128,
0.09151708334684372,
-0.2588432729244232,
-0.24577106535434723,
-0.05791362375020981,
-0.06269874423742294,
0.0663742646574974,
0.011424350552260876,
0.3781791031360626,
-0.0919899046421051,
0.08408918231725693,
-0.3125247061252594,
0.6007608771324158,
0.27330282330513,
0.17193573713302612,
0.1691139191389084,
0.004053381737321615,
0.3385774791240692,
-0.01789866015315056,
0.09602081030607224,
0.08800563216209412,
0.170754075050354,
0.41114869713783264,
0.24530017375946045,
-0.0034239296801388264,
-0.2591455578804016,
-0.09201203286647797,
-0.012242069467902184,
0.08984522521495819,
0.25274673104286194,
-0.04723266512155533,
0.1304781138896942,
0.21124526858329773,
-0.03884736821055412,
0.24799619615077972,
-0.0010521418880671263,
0.1945606917142868,
-0.5377139449119568,
0.32595205307006836,
-0.01531917043030262,
-0.24762625992298126,
0.18761926889419556,
-0.002564213937148452,
0.013593444600701332,
-0.3884645104408264,
0.015428587794303894,
-0.002448257291689515,
-0.2050786018371582,
-0.17247274518013,
0.06930384784936905,
0.22104951739311218,
0.17488299310207367,
-0.27893200516700745,
0.23015284538269043,
-0.17841222882270813,
-0.1908658742904663,
-0.19576041400432587,
-0.11202385276556015,
0.1847132295370102,
-0.12099502235651016,
-0.12332785129547119,
0.15358586609363556,
0.20164895057678223,
-0.055682070553302765,
0.24471837282180786,
0.18073341250419617,
0.24826590716838837,
0.18569011986255646,
-0.18907824158668518,
0.17938610911369324,
0.11569175124168396,
-0.11455358564853668,
-0.059351544827222824,
-0.29886770248413086,
0.03197122737765312,
0.18624156713485718,
-0.00405192980542779,
-0.0816061720252037,
0.18171119689941406,
-0.05420036241412163,
-0.23271915316581726,
0.36718419194221497,
0.1295994520187378,
0.11324388533830643,
-0.14264698326587677,
0.21207597851753235,
-0.2643704116344452,
-0.060060273855924606,
-0.44515305757522583,
0.30551570653915405,
-0.027590185403823853,
0.18046200275421143,
-0.21977131068706512,
-0.18250632286071777,
0.16284656524658203,
-0.16112470626831055,
0.11217277497053146,
0.5696960687637329,
-0.2790897786617279,
0.4884001314640045,
0.10811462253332138,
-0.13158385455608368,
-0.2470436841249466,
-0.05657368525862694,
0.22728754580020905,
0.04928377643227577,
-0.014837183989584446,
0.06231151148676872,
-0.009503496810793877,
-0.07751543819904327,
-0.26257309317588806,
-0.13717980682849884,
-0.04124082252383232,
0.13458868861198425,
-0.06384516507387161,
-0.23943965137004852,
-0.19749684631824493,
0.2346857488155365,
0.02153443545103073,
-0.2805648446083069,
0.27889710664749146,
-0.1155550628900528,
-0.004369175992906094,
-0.20567750930786133,
0.10868419706821442,
-0.016339074820280075,
-0.2483726441860199,
0.006474957335740328,
-0.4142548739910126
] |
https://github.com/huggingface/datasets/issues/849 | Load amazon dataset | Thanks for reporting !
We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls.
Also I think the bullet points formatting has been fixed | Hi,
I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset.
Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews")
```
How it is when I tried (the error generated does point me to the right direction though)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews", 'Books_v1_00')
```
Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it? | 34 | Load amazon dataset
Hi,
I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset.
Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews")
```
How it is when I tried (the error generated does point me to the right direction though)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews", 'Books_v1_00')
```
Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it?
Thanks for reporting !
We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls.
Also I think the bullet points formatting has been fixed | [
-0.0789320170879364,
-0.1892746537923813,
-0.21114924550056458,
0.5182408690452576,
0.17753319442272186,
0.28121891617774963,
0.2807135581970215,
0.10958217829465866,
0.10753505676984787,
-0.2891574800014496,
-0.16567079722881317,
0.13360968232154846,
0.37317824363708496,
0.38080549240112305,
0.11738395690917969,
-0.07864324748516083,
-0.011468308977782726,
0.012094518169760704,
-0.010410982184112072,
0.03724878281354904,
-0.05193410813808441,
0.3416518568992615,
-0.477782666683197,
-0.10012132674455643,
0.0012970236130058765,
-0.15143635869026184,
0.016140354797244072,
0.015487932600080967,
-0.0385076105594635,
-0.3352609872817993,
0.2822166681289673,
0.12289410829544067,
0.267037957906723,
0.41271355748176575,
-0.00012002898438367993,
-0.17792610824108124,
0.46653756499290466,
-0.10208551585674286,
-0.25608474016189575,
-0.2737343907356262,
-0.20822378993034363,
-0.3046477437019348,
0.45946425199508667,
-0.3098633885383606,
-0.07138273119926453,
-0.5172997117042542,
-0.3546374440193176,
-0.2628708481788635,
0.3239258825778961,
0.22843731939792633,
0.19254536926746368,
0.10572662204504013,
-0.045025043189525604,
-0.1168595403432846,
0.04733923450112343,
0.22599667310714722,
0.1323072612285614,
0.10224731266498566,
0.2680184841156006,
0.1517852544784546,
-0.0303038340061903,
0.23126021027565002,
0.05320701375603676,
0.2929937541484833,
0.32278022170066833,
-0.0937236025929451,
-0.16267089545726776,
-0.14744387567043304,
0.4255655109882355,
0.21476227045059204,
1.3290975093841553,
-0.25341400504112244,
-0.28076502680778503,
-0.18642136454582214,
-0.2302001714706421,
-0.1689097136259079,
-0.01686917617917061,
0.34554919600486755,
-0.007727126125246286,
0.04363706335425377,
-0.2335566133260727,
-0.22316452860832214,
-0.1869320422410965,
0.3701874911785126,
0.05927829444408417,
0.06306532770395279,
-0.3054239749908447,
0.13807372748851776,
-0.1763879954814911,
-0.13288536667823792,
0.15719792246818542,
-0.19119809567928314,
0.031706422567367554,
0.17970305681228638,
-0.5834523439407349,
0.08735104650259018,
0.0808451771736145,
0.15401802957057953,
0.06331827491521835,
0.442672461271286,
0.30572089552879333,
0.26916366815567017,
-0.021579809486865997,
0.13933926820755005,
0.5947418808937073,
0.271232932806015,
0.32165127992630005,
0.015435129404067993,
-0.052783284336328506,
0.30217525362968445,
-0.038199104368686676,
-0.1961115300655365,
-0.005487431772053242,
-0.1151607409119606,
0.09778223931789398,
-0.29727479815483093,
0.23794911801815033,
-0.5695008635520935,
-0.2049046754837036,
-0.09278370440006256,
-0.28471681475639343,
-0.3555094599723816,
0.009845825843513012,
0.48031386733055115,
-0.10182047635316849,
0.10478311032056808,
0.20564225316047668,
0.29120299220085144,
-0.11137507110834122,
-0.1213558092713356,
-0.12416023015975952,
-0.019955772906541824,
-0.20608863234519958,
0.09163626283407211,
-0.030460676178336143,
-0.004103806335479021,
0.3585405647754669,
0.09541255980730057,
-0.0014446692075580359,
-0.3614826500415802,
0.3334645628929138,
-0.10395205020904541,
0.08918074518442154,
0.06432996690273285,
0.4270685017108917,
0.2381879836320877,
0.14386145770549774,
0.12213783711194992,
-0.2038876861333847,
0.2703430652618408,
-0.3434368073940277,
-0.21650761365890503,
-0.18398891389369965,
0.12854644656181335,
-0.30122852325439453,
-0.30059128999710083,
-0.5243891477584839,
0.1205805242061615,
0.1504327654838562,
-0.11283882707357407,
-0.04856685921549797,
0.12815067172050476,
-0.10471990704536438,
-0.13020753860473633,
0.09235388040542603,
0.46874433755874634,
-0.43062466382980347,
-0.2646571397781372,
-0.31251269578933716,
-0.10042690485715866,
0.21457920968532562,
0.2239418774843216,
-0.3063051104545593,
0.3549635112285614,
-0.17311783134937286,
0.03512278199195862,
0.5592149496078491,
-0.33556535840034485,
-0.10341409593820572,
0.49959754943847656,
0.2164156436920166,
-0.03550540655851364,
0.09619596600532532,
-0.2372705638408661,
-0.1126168891787529,
0.1777273565530777,
0.12229156494140625,
0.21518488228321075,
0.3439025282859802,
0.1276104599237442,
-0.20764009654521942,
-0.20627403259277344,
0.2997555732727051,
0.15476684272289276,
-0.12665227055549622,
-0.0012364956783130765,
-0.023607512935996056,
-0.10266906768083572,
0.3608758747577667,
-0.046417731791734695,
-0.13416224718093872,
0.3027931749820709,
-0.06957694888114929,
0.2714538872241974,
0.17790643870830536,
0.131605863571167,
-0.4466254711151123,
-0.03586471453309059,
0.0004685412859544158,
0.14816342294216156,
0.16830123960971832,
-0.19227443635463715,
-0.527263879776001,
0.009097758680582047,
-0.19909967482089996,
-0.1610388457775116,
0.07774244993925095,
0.032080862671136856,
0.04126640781760216,
-0.03356815502047539,
-0.019956504926085472,
-0.08564769476652145,
0.01638559065759182,
0.028304323554039,
-0.407939076423645,
0.16584132611751556,
0.08335289359092712,
0.06145615130662918,
0.27395954728126526,
0.09935696423053741,
0.262264609336853,
-0.011710849590599537,
-0.16454185545444489,
0.2622703015804291,
0.06598738580942154,
0.6024624705314636,
0.15126916766166687,
0.3022495210170746,
0.07526736706495285,
0.055578481405973434,
0.2502042055130005,
0.2778005301952362,
0.30708426237106323,
-0.14221473038196564,
-0.3737638294696808,
0.3783276379108429,
0.033441297709941864,
0.4875417649745941,
0.14828544855117798,
-0.16680777072906494,
0.2705939710140228,
0.01362745463848114,
-0.05563148111104965,
-0.24223557114601135,
0.26209720969200134,
0.07890397310256958,
0.6111765503883362,
-0.1333586871623993,
-0.12793688476085663,
0.2783307731151581,
0.14410318434238434,
-0.05567989498376846,
0.07391994446516037,
0.08673158288002014,
-0.24029771983623505,
-0.452881783246994,
0.5009837746620178,
-0.021504852920770645,
0.21616265177726746,
0.2434825450181961,
0.09838977456092834,
0.1076890304684639,
0.2769542634487152,
-0.22663502395153046,
0.30215466022491455,
0.3179551661014557,
0.21201002597808838,
-0.10571160912513733,
0.17328429222106934,
-0.16693934798240662,
-0.14140233397483826,
-0.15378162264823914,
0.04712247475981712,
0.22803224623203278,
-0.5924049019813538,
0.03425076603889465,
-0.36201179027557373,
-0.4074660837650299,
-0.34505462646484375,
-0.13149580359458923,
0.08168595284223557,
-0.31981801986694336,
-0.29206839203834534,
-0.04855016618967056,
-0.04713047295808792,
0.017613662406802177,
-0.13874121010303497,
0.05073295906186104,
-0.1904655545949936,
0.05407446622848511,
-0.2068432867527008,
-0.20306988060474396,
-0.16522710025310516,
0.05971476435661316,
0.4737498164176941,
0.2471572607755661,
0.39216384291648865,
-0.19707316160202026,
0.09266219288110733,
0.0477433055639267,
-0.2660236656665802,
0.20057687163352966,
0.19711732864379883,
0.17514273524284363,
-0.1349903792142868,
0.05599811300635338,
0.14379048347473145,
0.14993827044963837,
0.18420027196407318,
0.11996940523386002,
0.14172516763210297,
-0.04643047973513603,
-0.10631182789802551,
-0.1500600427389145,
0.18083925545215607,
-0.5233339667320251,
-0.19488118588924408,
-0.3031465411186218,
-0.0537586510181427,
0.20072752237319946,
0.29918044805526733,
-0.185672789812088,
-0.07156022638082504,
0.1559021770954132,
0.33989378809928894,
0.29628920555114746,
-0.3032110631465912,
-0.4763088822364807,
0.16137880086898804,
-0.2892211079597473,
-0.27506503462791443,
0.15899574756622314,
0.31776750087738037,
0.2421739399433136,
0.06120308116078377,
-0.22679662704467773,
-0.04130548611283302,
-0.08516143262386322,
-0.11120394617319107,
-0.07248849421739578,
0.16722096502780914,
0.26172715425491333,
0.0364031158387661,
-0.1051957979798317,
0.005417375825345516,
-0.241644486784935,
-0.07168491184711456,
-0.1896221786737442,
0.02816426008939743,
-0.035481564700603485,
0.12036390602588654,
-0.15633095800876617,
0.5662087798118591,
0.2551558315753937,
-0.05454084649682045,
0.3984050750732422,
-0.10349343717098236,
0.17999328672885895,
-0.04993872717022896,
-0.015813136473298073,
-0.3308514952659607,
-0.1166110634803772,
0.0042707775719463825,
0.4625919461250305,
0.16978204250335693,
-0.29652681946754456,
-0.24136529862880707,
-0.15135103464126587,
-0.8929017186164856,
-0.10867947340011597,
0.13848571479320526,
-0.1324649602174759,
0.25119367241859436,
0.11885872483253479,
0.07735676318407059,
-0.07271278649568558,
-0.10146947205066681,
-0.023382827639579773,
0.08853419870138168,
-0.006219944451004267,
-0.1664227694272995,
-0.4538203179836273,
-0.10159952193498611,
-0.14194521307945251,
0.5074072480201721,
-0.21622595191001892,
0.1196996197104454,
0.05323022976517677,
-0.09100860357284546,
0.16579848527908325,
-0.2087828814983368,
0.4329094886779785,
-0.35003820061683655,
-0.10274181514978409,
0.18527939915657043,
0.007839647121727467,
-0.3345583975315094,
0.0840522050857544,
-0.2710382044315338,
0.450885146856308,
0.10220009833574295,
0.044318582862615585,
-0.17062285542488098,
-0.27566903829574585,
-0.10510668903589249,
0.32020631432533264,
-0.27724045515060425,
-0.20402704179286957,
-0.06636536121368408,
-0.20641593635082245,
-0.3689190447330475,
-0.30995261669158936,
-0.295885294675827,
0.15307381749153137,
-0.044387467205524445,
-0.07250747829675674,
-0.0855383574962616,
0.06186629831790924,
0.09617792069911957,
0.22133640944957733,
0.4586626887321472,
-0.19387835264205933,
-0.07722067832946777,
0.10812071710824966,
-0.13094301521778107,
0.4480088949203491,
0.7521959543228149,
-0.008867048658430576,
-0.4299919009208679,
-0.010897799395024776,
-0.15888963639736176,
0.12219372391700745,
0.19904053211212158,
0.0710834264755249,
0.1092333272099495,
0.008538352325558662,
-0.06517678499221802,
-0.19209204614162445,
-0.2146841585636139,
0.10328427702188492,
0.18218480050563812,
-0.104416623711586,
-0.69939786195755,
0.6753959059715271,
0.07559067010879517,
-0.1975608468055725,
0.2609327435493469,
-0.0029874148312956095,
-0.21408818662166595,
0.27616995573043823,
0.010066596791148186,
1.1095728874206543,
0.15813201665878296,
-0.014588502235710621,
0.12668728828430176,
-0.259859561920166,
0.20069606602191925,
-0.1367526352405548,
-0.12122674286365509,
-0.4516962766647339,
0.36733123660087585,
-0.07364725321531296,
-0.11843567341566086,
0.19559936225414276,
0.2501859664916992,
-0.14438332617282867,
0.37827521562576294,
-0.2910301387310028,
-0.044253136962652206,
-0.02051352523267269,
0.4625367820262909,
-0.03875882551074028,
-0.28252920508384705,
-0.607141375541687,
0.08993472158908844,
-0.05101938545703888,
0.1447155773639679,
-0.27723047137260437,
0.0890922099351883,
-0.2481802999973297,
-0.09136611968278885,
-0.34561625123023987,
0.024512432515621185,
-0.08537068963050842,
0.09315887838602066,
-0.17416636645793915,
-0.4508795142173767,
0.12987852096557617,
0.3845646381378174,
-0.26225578784942627,
-0.09012525528669357,
-0.42444857954978943,
0.11901827156543732,
-0.09721767902374268,
0.030119694769382477,
0.035665370523929596,
0.02103448286652565,
0.37154778838157654,
-0.16169039905071259,
-0.30180197954177856,
0.007999843917787075,
0.08547504246234894,
0.06253990530967712,
-0.16890238225460052,
0.05886811017990112,
-0.003178749233484268,
-0.5724697709083557,
-0.5873051881790161,
0.1221197172999382,
0.04225669428706169,
-0.12122811377048492,
0.09230341017246246,
0.18281066417694092,
-0.11426059156656265,
0.21094243228435516,
0.2463112771511078,
0.036930184811353683,
-0.0788511335849762,
0.433298796415329,
0.31019824743270874,
-0.024496275931596756,
0.4668741524219513,
0.29518893361091614,
-0.1460084766149521,
-0.196352019906044,
0.1923953741788864,
0.19575069844722748,
-0.2520182728767395,
0.050944529473781586,
-0.03689258545637131,
0.3241746425628662,
-0.20706874132156372,
0.19046349823474884,
0.018820757046341896,
0.2794860899448395,
-0.022012485191226006,
-0.4668634235858917,
0.250815212726593,
0.2537478804588318,
0.19304259121418,
-0.011374635621905327,
-0.109950952231884,
-0.32844191789627075,
0.15923666954040527,
0.05052006244659424,
-0.2618046998977661,
0.3210795521736145,
-0.06956973671913147,
0.07813701778650284,
0.13219831883907318,
0.14430399239063263,
0.14517506957054138,
-0.2790776193141937,
-0.011959154158830643,
-0.12672880291938782,
-0.11002150177955627,
-0.19817990064620972,
-0.13543549180030823,
0.21279342472553253,
0.10159745067358017,
-0.22010153532028198,
-0.011580225080251694,
0.008608411066234112,
0.11618638783693314,
-0.17936621606349945,
0.05627312883734703,
-0.09375293552875519,
0.09997760504484177,
0.0836099237203598,
0.39077645540237427,
0.06698183715343475,
-0.6115542650222778,
0.07217258214950562,
-0.041090965270996094,
0.19883379340171814,
0.24106886982917786,
-0.04403575509786606,
0.3422810733318329,
-0.022105572745203972,
-0.025791538879275322,
-0.030673906207084656,
0.2908678352832794,
0.22021789848804474,
0.19475434720516205,
-0.08182176202535629,
0.2536892890930176,
0.24077314138412476,
0.32086122035980225,
0.5258145928382874,
-0.17582207918167114,
0.16463220119476318,
-0.02157275192439556,
0.14280441403388977,
-0.24381567537784576,
0.038911107927560806,
-0.14670224487781525,
-0.23760588467121124,
-0.18350796401500702,
0.0038751759566366673,
0.1829793006181717,
0.33259159326553345,
0.11302304267883301,
-0.12032507359981537,
0.45089882612228394,
-0.22452010214328766,
0.42226898670196533,
0.05903776362538338,
-0.1689966917037964,
0.14591820538043976,
0.17626965045928955,
0.14858639240264893,
-0.002841461915522814,
0.01836453750729561,
0.06895754486322403,
0.5400497317314148,
0.4455856680870056,
0.15968932211399078,
-0.22307991981506348,
-0.5270540714263916,
0.3603380620479584,
0.17544840276241302,
0.3199092149734497,
0.2928750216960907,
0.027170920744538307,
0.44357454776763916,
0.14760075509548187,
0.09135521203279495,
-0.06707460433244705,
0.002085842192173004,
-0.057334840297698975,
-0.20274989306926727,
-0.151611328125,
-0.290940523147583,
-0.10861216485500336,
-0.13459911942481995,
-0.20566362142562866,
-0.45166322588920593,
0.05441528931260109,
-0.12400460988283157,
-0.13231982290744781,
-0.5200741291046143,
0.05750037729740143,
-0.03456017002463341,
0.19571146368980408,
-0.19270770251750946,
0.0774272233247757,
0.1688811480998993,
-0.01962636038661003,
0.07767289131879807,
0.2913626730442047,
0.5396185517311096,
0.15114843845367432,
-0.10226231813430786,
-0.04864779859781265,
0.07756687700748444,
-0.12858206033706665,
0.08925221115350723,
0.13909365236759186,
0.21737241744995117,
0.08145768940448761,
0.14643539488315582,
0.11715414375066757,
-0.1644434928894043,
0.36673086881637573,
0.1373816281557083,
-0.021610435098409653,
-0.28276947140693665,
0.2542515695095062,
-0.36441856622695923,
-0.37065771222114563,
-0.2655565142631531,
-0.1761493980884552,
-0.4030534327030182,
-0.033116865903139114,
0.24070701003074646,
-0.11020626127719879,
-0.16534672677516937,
-0.1996425986289978,
0.052695829421281815,
0.06689678877592087,
0.6728176474571228,
0.03926840052008629,
0.36817696690559387,
-0.06547694653272629,
-0.06278747320175171,
-0.6017756462097168,
-0.01514530647546053,
-0.05107465013861656,
-0.13547950983047485,
0.10724077373743057,
0.1930965632200241,
0.10500841587781906,
0.26108497381210327,
0.17389008402824402,
-0.134333997964859,
0.10250735282897949,
0.04474012926220894,
-0.4506540894508362,
0.017667647451162338,
0.01924215443432331,
0.06958349794149399,
-0.19253824651241302,
-0.2314058393239975,
0.04607348144054413,
-0.2032756358385086,
-0.10236059129238129,
-0.37475892901420593,
-0.23164206743240356,
0.09567958861589432,
0.0854068323969841,
0.661838173866272,
-0.04716077446937561,
0.5717573165893555,
-0.21625234186649323,
-0.0034676743671298027,
-0.04786565899848938,
-0.24187904596328735,
-0.005112738348543644,
0.6518113613128662,
0.05522369593381882,
0.008245833218097687,
-0.10223104059696198,
-0.20839716494083405,
-0.0936172604560852,
0.10190047323703766,
-0.2653571665287018,
-0.24192550778388977,
-0.04901818558573723,
-0.22475610673427582,
-0.006589442025870085,
-0.270866721868515,
0.06714001297950745,
0.23266959190368652,
-0.07411375641822815,
0.06053968146443367,
-0.14629411697387695,
-0.10811180621385574,
0.40869805216789246,
-0.04875609651207924,
-0.011341764591634274,
0.0078063830733299255,
0.15325917303562164,
0.087167888879776,
-0.18029627203941345,
-0.632331907749176,
0.16976194083690643,
0.5076562166213989,
-0.015482929535210133,
0.15486636757850647,
0.4629182517528534,
0.015734270215034485,
0.030773047357797623,
-0.17765994369983673,
0.3021738529205322,
0.015830066055059433,
-0.22558659315109253,
-0.343771755695343,
-0.29726681113243103
] |
https://github.com/huggingface/datasets/issues/848 | Error when concatenate_datasets | As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
| Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
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.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks! | 172 | Error when concatenate_datasets
Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
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.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks!
As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
| [
-0.09119009971618652,
-0.1483130007982254,
-0.04474862664937973,
0.6809359788894653,
0.10687576979398727,
0.2218789905309677,
0.31290537118911743,
0.22910870611667633,
-0.12348383665084839,
0.12460477650165558,
-0.10832247883081436,
0.27360260486602783,
-0.08168939501047134,
-0.1234089657664299,
-0.30136629939079285,
-0.09740178287029266,
0.19849257171154022,
0.1485706865787506,
-0.5059522390365601,
-0.0316762737929821,
-0.35063937306404114,
0.16024570167064667,
-0.3358776569366455,
0.039867106825113297,
-0.4097849726676941,
0.04924559220671654,
-0.13179075717926025,
0.27618247270584106,
-0.0312031377106905,
-0.18386408686637878,
0.4585871696472168,
-0.34888726472854614,
0.18642643094062805,
0.5364499092102051,
-0.00011763785005314276,
0.17008614540100098,
0.27409547567367554,
-0.17238245904445648,
-0.37838396430015564,
-0.2567191421985626,
-0.36212971806526184,
-0.10041501373052597,
-0.002940510865300894,
-0.12345831096172333,
0.2076510488986969,
-0.14812064170837402,
-0.25838571786880493,
-0.5043874382972717,
0.3307150602340698,
0.22644838690757751,
0.11047952622175217,
0.3941423296928406,
0.09120544791221619,
-0.09806009382009506,
0.0378849059343338,
0.15339843928813934,
0.06594546884298325,
0.4203859567642212,
-0.18985898792743683,
-0.06170950084924698,
0.21082936227321625,
0.06706098467111588,
-0.12466703355312347,
0.1450284868478775,
0.07803703099489212,
0.30991092324256897,
0.15759974718093872,
-0.3968757688999176,
-0.12527768313884735,
0.10791175812482834,
0.525313675403595,
-0.3321695029735565,
-0.31784704327583313,
-0.08615909516811371,
0.13881979882717133,
-0.3995232880115509,
0.21788792312145233,
0.2979130446910858,
-0.14709052443504333,
0.11746274679899216,
-0.09073899686336517,
0.07714579254388809,
-0.2191733568906784,
0.1846294403076172,
-0.18065145611763,
0.11452024430036545,
-0.16109666228294373,
0.24070191383361816,
0.1381707787513733,
-0.0730409249663353,
0.5286442041397095,
-0.3571857810020447,
-0.1269245743751526,
0.15919555723667145,
-0.34229740500450134,
0.03218771889805794,
-0.1896209418773651,
-0.7045969367027283,
0.08900967240333557,
0.05582113191485405,
0.10370174050331116,
-0.22045868635177612,
0.0773700401186943,
0.2818922996520996,
0.40177810192108154,
0.149289071559906,
-0.037381935864686966,
0.5497027635574341,
-0.020275820046663284,
-0.06169695779681206,
0.19937023520469666,
0.009052439592778683,
-0.2867644131183624,
-0.21140940487384796,
0.11543043702840805,
-0.16468842327594757,
0.08365553617477417,
-0.001333349966444075,
-0.49712643027305603,
-0.15189270675182343,
-0.12786085903644562,
-0.14049381017684937,
0.19656021893024445,
0.03019420988857746,
0.12389988452196121,
0.5308151841163635,
0.13073816895484924,
0.44097596406936646,
0.2173488438129425,
0.017421502619981766,
-0.22650915384292603,
0.022214077413082123,
-0.045117031782865524,
0.21043553948402405,
0.10341406613588333,
0.004444025456905365,
0.08212237060070038,
0.17758698761463165,
0.10875608772039413,
0.006450354587286711,
0.07688518613576889,
-0.49485960602760315,
0.05832667276263237,
0.31147047877311707,
0.021164754405617714,
0.07500330358743668,
0.2738741934299469,
-0.05031433328986168,
-0.14390255510807037,
0.3170155882835388,
-0.4437067210674286,
-0.2742711901664734,
-0.5135645270347595,
0.09688171744346619,
0.09895548969507217,
0.23291565477848053,
-0.32036256790161133,
-0.11133147031068802,
0.6928232908248901,
0.1045665368437767,
-0.06835804134607315,
-0.0662887692451477,
-0.1984153389930725,
-0.3195585012435913,
0.3204246759414673,
0.20071212947368622,
-0.2164674699306488,
-0.03304483741521835,
-0.018493246287107468,
-0.06779708713293076,
0.3604027032852173,
0.505466878414154,
-0.3153640925884247,
0.1992003619670868,
-0.38550177216529846,
-0.03318190202116966,
0.3084051012992859,
-0.43667691946029663,
-0.14022020995616913,
0.21540223062038422,
0.0032158284448087215,
-0.07358640432357788,
0.2376118004322052,
0.008283558301627636,
0.13142341375350952,
0.1472160667181015,
0.8280867338180542,
0.31325456500053406,
0.06390061229467392,
-0.1781878024339676,
-0.097612664103508,
-0.13833622634410858,
0.265977144241333,
0.10001017153263092,
-0.2323940098285675,
0.035079460591077805,
-0.1362985223531723,
-0.4177926480770111,
0.3237214684486389,
-0.10169504582881927,
0.03967703506350517,
0.3689119517803192,
0.03515469282865524,
-0.34318074584007263,
-0.1154860109090805,
0.0461801253259182,
-0.19547347724437714,
0.04835253581404686,
0.03796159476041794,
-0.08521442115306854,
-0.2998003363609314,
0.09154395759105682,
-0.12289386987686157,
0.07692158967256546,
-0.07233548909425735,
0.049854718148708344,
0.01761229895055294,
0.23527809977531433,
-0.17259883880615234,
-0.24803203344345093,
-0.16533151268959045,
0.42371347546577454,
-0.27778273820877075,
-0.02691853605210781,
-0.20736007392406464,
0.568687379360199,
-0.064517542719841,
-0.03209793195128441,
-0.17634624242782593,
-0.03937371447682381,
0.0589345246553421,
0.11640193313360214,
-0.05410078540444374,
0.5149715542793274,
0.05206654965877533,
-0.16847780346870422,
0.025942150503396988,
-0.2057822197675705,
0.22902143001556396,
-0.07724973559379578,
0.1399115025997162,
-0.1201847568154335,
0.13092775642871857,
-0.09698894619941711,
0.07233176380395889,
0.422721803188324,
-0.1323702186346054,
0.2828259766101837,
-0.021570634096860886,
0.09008970111608505,
0.16952793300151825,
0.14529769122600555,
-0.05832568183541298,
-0.41771259903907776,
-0.0745217353105545,
0.16754204034805298,
0.21888190507888794,
0.25041723251342773,
-0.46558070182800293,
-0.23471501469612122,
0.33882471919059753,
0.024676650762557983,
0.04220902919769287,
0.12246988713741302,
-0.39127054810523987,
-0.04060979560017586,
-0.02842330001294613,
0.34918519854545593,
0.7707191109657288,
0.12764407694339752,
0.03345920518040657,
-0.12033651769161224,
-0.03592449054121971,
0.007695368491113186,
0.3499155044555664,
0.06371064484119415,
0.3463790714740753,
0.311422735452652,
-0.017366820946335793,
0.06899514049291611,
-0.016656111925840378,
-0.08799316734075546,
0.0875868946313858,
0.06227622553706169,
-0.4036812484264374,
0.052863750606775284,
-0.18998615443706512,
-0.054312948137521744,
-0.30404847860336304,
-0.2463194727897644,
-0.10401208698749542,
-0.21191446483135223,
-0.4094064235687256,
0.22741225361824036,
-0.05454446002840996,
0.19563451409339905,
-0.1933857947587967,
0.054521504789590836,
0.15092816948890686,
-0.09174872189760208,
0.0003244795952923596,
0.009441754780709743,
-0.20656831562519073,
-0.032604116946458817,
0.22103746235370636,
-0.10533898323774338,
0.036282382905483246,
-0.1857273429632187,
0.030105069279670715,
-0.11809210479259491,
0.11544667184352875,
0.013830164447426796,
-0.07582850754261017,
0.19631454348564148,
0.0516776405274868,
0.20550307631492615,
-0.047308072447776794,
-0.6516988277435303,
0.1352369636297226,
0.5362841486930847,
-0.2745610475540161,
0.3799957036972046,
0.14905332028865814,
-0.09476031363010406,
-0.10532243549823761,
-0.2667202651500702,
-0.4566354751586914,
-0.36363881826400757,
-0.06514991819858551,
-0.14521276950836182,
0.2417420893907547,
0.285663366317749,
0.23686905205249786,
0.009170080535113811,
0.14594510197639465,
0.15381906926631927,
-0.09610483050346375,
-0.23916445672512054,
0.4765641391277313,
0.04412892460823059,
-0.17645952105522156,
-0.1454288810491562,
-0.06851335614919662,
0.2939203083515167,
0.2050095498561859,
-0.3704075217247009,
0.11824219673871994,
-0.08392994850873947,
0.07217462360858917,
-0.3724437952041626,
0.08169058710336685,
0.09550511837005615,
0.30712661147117615,
-0.049568817019462585,
-0.10565360635519028,
-0.1409311145544052,
0.12135213613510132,
0.05091812461614609,
0.3641844093799591,
-0.026990989223122597,
0.39825665950775146,
-0.08975284546613693,
0.4547500014305115,
0.2624274492263794,
-0.16175706684589386,
0.21309253573417664,
0.1749909371137619,
0.5188269019126892,
0.009832901880145073,
-0.4894421696662903,
-0.3085486888885498,
-0.10530934482812881,
-0.022277792915701866,
-0.1453583836555481,
-0.13144747912883759,
-0.21356816589832306,
-0.17157267034053802,
0.16775311529636383,
-0.20210419595241547,
-0.0977446511387825,
0.09347116947174072,
-0.48903709650039673,
0.27890902757644653,
-0.26716259121894836,
-0.01722779870033264,
-0.22554194927215576,
0.23680530488491058,
-0.3388524055480957,
-0.002813464729115367,
0.15307393670082092,
-0.10816962271928787,
-0.07584185898303986,
-0.053224679082632065,
-0.16712261736392975,
0.2889295518398285,
0.07080279290676117,
0.6286579370498657,
0.08713364601135254,
-0.36192092299461365,
-0.141357421875,
0.10619166493415833,
0.6050752997398376,
0.3731422424316406,
-0.3529820740222931,
0.34405413269996643,
0.14444366097450256,
-0.52784264087677,
-0.1323235183954239,
-0.14307276904582977,
0.24728162586688995,
-0.08006040006875992,
0.6192359924316406,
-0.2810612618923187,
-0.21028649806976318,
0.048355113714933395,
0.35655754804611206,
-0.05513592064380646,
-0.0701754093170166,
-0.3375283181667328,
-0.09485522657632828,
-0.265756219625473,
-0.17509819567203522,
-0.008599381893873215,
0.37275728583335876,
-0.117761991918087,
-0.030783114954829216,
-0.10241656005382538,
-0.20328472554683685,
0.09420556575059891,
-0.06156338378787041,
0.573679506778717,
-0.10580773651599884,
0.3382008969783783,
-0.040429551154375076,
0.27280741930007935,
0.7298620343208313,
0.3896465599536896,
0.04856511950492859,
-0.2766026556491852,
0.20844055712223053,
0.0665280893445015,
0.3524950444698334,
0.03255823627114296,
-0.07743827998638153,
0.027674159035086632,
-0.13960491120815277,
0.1097322478890419,
-0.0665157213807106,
0.08004731684923172,
0.357790470123291,
-0.021420257166028023,
-0.6502230763435364,
-0.24151112139225006,
0.34916818141937256,
0.21813006699085236,
-0.04460648447275162,
0.48575541377067566,
-0.18558871746063232,
-0.46104228496551514,
0.13228143751621246,
0.04882989823818207,
0.9176332354545593,
0.07885576039552689,
0.33880406618118286,
0.18194331228733063,
-0.232596293091774,
0.22113849222660065,
0.16565997898578644,
0.16699166595935822,
-0.2519560754299164,
-0.2050487995147705,
-0.11600644886493683,
-0.39287781715393066,
-0.040287792682647705,
0.1229911670088768,
-0.29471197724342346,
0.14197678864002228,
-0.45927926898002625,
0.1178656741976738,
-0.12656326591968536,
-0.013210064731538296,
-0.1652894914150238,
-0.21604958176612854,
-0.16198165714740753,
0.013073259964585304,
-0.03126467764377594,
-0.15887199342250824,
-0.014159347862005234,
-0.24843141436576843,
-0.31445077061653137,
-0.091304250061512,
-0.15309767425060272,
0.22412094473838806,
-0.2308594286441803,
0.7114479541778564,
-0.06415924429893494,
-0.29844215512275696,
-0.20776553452014923,
0.19098280370235443,
0.1160421296954155,
-0.20210614800453186,
0.06243123859167099,
-0.10678178817033768,
-0.0023863452952355146,
0.043608225882053375,
-0.030229633674025536,
-0.12061484903097153,
0.190331369638443,
0.10352376848459244,
-0.2395179271697998,
0.11216232925653458,
-0.05872483178973198,
-0.33592700958251953,
0.049803417176008224,
0.33672821521759033,
0.07347986847162247,
-0.1848011463880539,
-0.1993734985589981,
0.20473475754261017,
0.03423599898815155,
-0.08933008462190628,
0.09722239524126053,
0.1633283793926239,
-0.1373356133699417,
0.11539594829082489,
-0.22874559462070465,
-0.34221506118774414,
-0.03661142662167549,
0.536350429058075,
0.3310489058494568,
0.17689862847328186,
0.5639305114746094,
-0.25129976868629456,
-0.011510555632412434,
-0.1210898905992508,
0.3575095236301422,
-0.048455461859703064,
-0.11711783707141876,
0.2420293241739273,
0.04649195820093155,
0.031642790883779526,
-0.1686173379421234,
0.0865354984998703,
0.4298754334449768,
0.2080882340669632,
-0.11150640994310379,
-0.3559650182723999,
-0.5394128561019897,
0.3848752975463867,
-0.1338527798652649,
0.2295486032962799,
-0.09436796605587006,
0.018809255212545395,
-0.21780164539813995,
-0.14289464056491852,
-0.23197157680988312,
0.004023726098239422,
-0.2592308223247528,
0.046057745814323425,
0.14327389001846313,
-0.05422044172883034,
0.13752451539039612,
-0.0019388418877497315,
0.11710259318351746,
-0.053086522966623306,
-0.055987127125263214,
-0.10222417116165161,
0.14517582952976227,
0.1476069837808609,
0.10748889297246933,
-0.22965237498283386,
-0.10949638485908508,
-0.35541048645973206,
-0.0964423194527626,
-0.14278589189052582,
-0.1945216804742813,
0.14739616215229034,
-0.06960663944482803,
0.09598861634731293,
0.02842605486512184,
0.16976329684257507,
-0.08422530442476273,
0.17736761271953583,
-0.007818601094186306,
0.12234126031398773,
-0.1652572602033615,
0.32268527150154114,
-0.10201895236968994,
-0.10350248962640762,
-0.5782648324966431,
0.008041505701839924,
-0.11383874714374542,
-0.1187392994761467,
0.19466181099414825,
-0.23553630709648132,
-0.1824669986963272,
-0.06589585542678833,
0.1693888008594513,
0.42387625575065613,
-0.2421950250864029,
0.05386629328131676,
0.0671146884560585,
0.11560925096273422,
-0.14540086686611176,
-0.23784661293029785,
-0.4377293288707733,
-0.16793857514858246,
-0.2898409962654114,
0.017974169924855232,
0.02646493725478649,
0.021435542032122612,
-0.14763297140598297,
0.04717147350311279,
0.2570030093193054,
-0.03312669321894646,
0.3051678538322449,
0.46174347400665283,
0.12236946821212769,
0.04979543015360832,
0.1322660893201828,
0.24849945306777954,
0.3821694850921631,
0.30371007323265076,
-0.1484188437461853,
0.2287614494562149,
0.1643526405096054,
-0.21518635749816895,
0.0003152066492475569,
-0.29520174860954285,
0.00826417189091444,
0.21861529350280762,
-0.15525157749652863,
-0.11986871063709259,
-0.019284039735794067,
0.11784534156322479,
-0.30188262462615967,
-0.27929583191871643,
-0.15895207226276398,
0.17228585481643677,
-0.0979042649269104,
-0.038444407284259796,
-0.09086623042821884,
-0.16824711859226227,
-0.057713497430086136,
-0.1306227743625641,
0.15837663412094116,
-0.14639031887054443,
0.3186442255973816,
0.1499689370393753,
-0.2276843637228012,
-0.14260950684547424,
0.22739370167255402,
0.6780188679695129,
-0.06400591880083084,
-0.35320234298706055,
0.1663101464509964,
0.47717776894569397,
0.07670032232999802,
0.10966108739376068,
0.22680307924747467,
0.626504123210907,
0.611481785774231,
0.06252630800008774,
-0.09975466132164001,
0.2163287103176117,
-0.18718478083610535,
0.1355878710746765,
0.16797207295894623,
0.0278326366096735,
-0.2090846300125122,
0.2076057642698288,
0.19351279735565186,
-0.045594945549964905,
0.1615619957447052,
0.14688575267791748,
0.2199597954750061,
-0.30955711007118225,
0.1947540044784546,
-0.31781500577926636,
-0.20080140233039856,
0.08132199943065643,
0.019271744415163994,
-0.35698091983795166,
0.04972241818904877,
0.6105669140815735,
0.08520600944757462,
0.12317463755607605,
0.31970733404159546,
0.02370617352426052,
0.02342289872467518,
0.3911936283111572,
0.45900943875312805,
0.14059755206108093,
-0.45429205894470215,
-0.1931885927915573,
-0.3783896565437317,
-0.05332443118095398,
0.24002234637737274,
0.09847670793533325,
-0.12065138667821884,
0.28327441215515137,
0.2563627362251282,
-0.005638225469738245,
0.1536625325679779,
0.26941531896591187,
-0.08837707340717316,
-0.09588373452425003,
-0.434492290019989,
-0.13295145332813263,
0.12469343096017838,
-0.019476862624287605,
0.022135669365525246,
-0.5010998845100403,
0.17182210087776184,
0.17362569272518158,
0.011649051681160927,
-0.0122559554874897,
0.21229250729084015,
0.27480724453926086,
0.5003045201301575,
0.37911325693130493,
0.15555612742900848,
0.47568586468696594,
-0.026323093101382256,
-0.16170915961265564,
0.025298282504081726,
-0.6679955720901489,
-0.17316073179244995,
0.1567954272031784,
0.0030108019709587097,
0.23588228225708008,
-0.3328933119773865,
-0.05051529407501221,
-0.1813407838344574,
0.22132346034049988,
-0.11841908097267151,
-0.23708616197109222,
-0.16636255383491516,
-0.0157356858253479,
0.043630532920360565,
-0.22969572246074677,
0.1340022087097168,
0.1197354719042778,
0.023528259247541428,
0.40174391865730286,
-0.09754061698913574,
-0.2917836904525757,
0.45672133564949036,
-0.07646915316581726,
-0.1883588582277298,
-0.019035350531339645,
0.09826654940843582,
0.08955357223749161,
0.28539690375328064,
-0.555975615978241,
-0.0551314651966095,
0.492731511592865,
-0.18367214500904083,
-0.431985467672348,
0.07861948013305664,
0.08167344331741333,
0.043545469641685486,
-0.01739794760942459,
0.6414547562599182,
-0.28353387117385864,
-0.5346692800521851,
-0.02492036670446396,
-0.20456376671791077
] |
https://github.com/huggingface/datasets/issues/848 | Error when concatenate_datasets | > As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
>
> The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
>
> Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
`dataset.flatten_indices()` solved my problem, thanks so much! | Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
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.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks! | 184 | Error when concatenate_datasets
Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
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.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks!
> As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
>
> The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
>
> Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
`dataset.flatten_indices()` solved my problem, thanks so much! | [
-0.09119009971618652,
-0.1483130007982254,
-0.04474862664937973,
0.6809359788894653,
0.10687576979398727,
0.2218789905309677,
0.31290537118911743,
0.22910870611667633,
-0.12348383665084839,
0.12460477650165558,
-0.10832247883081436,
0.27360260486602783,
-0.08168939501047134,
-0.1234089657664299,
-0.30136629939079285,
-0.09740178287029266,
0.19849257171154022,
0.1485706865787506,
-0.5059522390365601,
-0.0316762737929821,
-0.35063937306404114,
0.16024570167064667,
-0.3358776569366455,
0.039867106825113297,
-0.4097849726676941,
0.04924559220671654,
-0.13179075717926025,
0.27618247270584106,
-0.0312031377106905,
-0.18386408686637878,
0.4585871696472168,
-0.34888726472854614,
0.18642643094062805,
0.5364499092102051,
-0.00011763785005314276,
0.17008614540100098,
0.27409547567367554,
-0.17238245904445648,
-0.37838396430015564,
-0.2567191421985626,
-0.36212971806526184,
-0.10041501373052597,
-0.002940510865300894,
-0.12345831096172333,
0.2076510488986969,
-0.14812064170837402,
-0.25838571786880493,
-0.5043874382972717,
0.3307150602340698,
0.22644838690757751,
0.11047952622175217,
0.3941423296928406,
0.09120544791221619,
-0.09806009382009506,
0.0378849059343338,
0.15339843928813934,
0.06594546884298325,
0.4203859567642212,
-0.18985898792743683,
-0.06170950084924698,
0.21082936227321625,
0.06706098467111588,
-0.12466703355312347,
0.1450284868478775,
0.07803703099489212,
0.30991092324256897,
0.15759974718093872,
-0.3968757688999176,
-0.12527768313884735,
0.10791175812482834,
0.525313675403595,
-0.3321695029735565,
-0.31784704327583313,
-0.08615909516811371,
0.13881979882717133,
-0.3995232880115509,
0.21788792312145233,
0.2979130446910858,
-0.14709052443504333,
0.11746274679899216,
-0.09073899686336517,
0.07714579254388809,
-0.2191733568906784,
0.1846294403076172,
-0.18065145611763,
0.11452024430036545,
-0.16109666228294373,
0.24070191383361816,
0.1381707787513733,
-0.0730409249663353,
0.5286442041397095,
-0.3571857810020447,
-0.1269245743751526,
0.15919555723667145,
-0.34229740500450134,
0.03218771889805794,
-0.1896209418773651,
-0.7045969367027283,
0.08900967240333557,
0.05582113191485405,
0.10370174050331116,
-0.22045868635177612,
0.0773700401186943,
0.2818922996520996,
0.40177810192108154,
0.149289071559906,
-0.037381935864686966,
0.5497027635574341,
-0.020275820046663284,
-0.06169695779681206,
0.19937023520469666,
0.009052439592778683,
-0.2867644131183624,
-0.21140940487384796,
0.11543043702840805,
-0.16468842327594757,
0.08365553617477417,
-0.001333349966444075,
-0.49712643027305603,
-0.15189270675182343,
-0.12786085903644562,
-0.14049381017684937,
0.19656021893024445,
0.03019420988857746,
0.12389988452196121,
0.5308151841163635,
0.13073816895484924,
0.44097596406936646,
0.2173488438129425,
0.017421502619981766,
-0.22650915384292603,
0.022214077413082123,
-0.045117031782865524,
0.21043553948402405,
0.10341406613588333,
0.004444025456905365,
0.08212237060070038,
0.17758698761463165,
0.10875608772039413,
0.006450354587286711,
0.07688518613576889,
-0.49485960602760315,
0.05832667276263237,
0.31147047877311707,
0.021164754405617714,
0.07500330358743668,
0.2738741934299469,
-0.05031433328986168,
-0.14390255510807037,
0.3170155882835388,
-0.4437067210674286,
-0.2742711901664734,
-0.5135645270347595,
0.09688171744346619,
0.09895548969507217,
0.23291565477848053,
-0.32036256790161133,
-0.11133147031068802,
0.6928232908248901,
0.1045665368437767,
-0.06835804134607315,
-0.0662887692451477,
-0.1984153389930725,
-0.3195585012435913,
0.3204246759414673,
0.20071212947368622,
-0.2164674699306488,
-0.03304483741521835,
-0.018493246287107468,
-0.06779708713293076,
0.3604027032852173,
0.505466878414154,
-0.3153640925884247,
0.1992003619670868,
-0.38550177216529846,
-0.03318190202116966,
0.3084051012992859,
-0.43667691946029663,
-0.14022020995616913,
0.21540223062038422,
0.0032158284448087215,
-0.07358640432357788,
0.2376118004322052,
0.008283558301627636,
0.13142341375350952,
0.1472160667181015,
0.8280867338180542,
0.31325456500053406,
0.06390061229467392,
-0.1781878024339676,
-0.097612664103508,
-0.13833622634410858,
0.265977144241333,
0.10001017153263092,
-0.2323940098285675,
0.035079460591077805,
-0.1362985223531723,
-0.4177926480770111,
0.3237214684486389,
-0.10169504582881927,
0.03967703506350517,
0.3689119517803192,
0.03515469282865524,
-0.34318074584007263,
-0.1154860109090805,
0.0461801253259182,
-0.19547347724437714,
0.04835253581404686,
0.03796159476041794,
-0.08521442115306854,
-0.2998003363609314,
0.09154395759105682,
-0.12289386987686157,
0.07692158967256546,
-0.07233548909425735,
0.049854718148708344,
0.01761229895055294,
0.23527809977531433,
-0.17259883880615234,
-0.24803203344345093,
-0.16533151268959045,
0.42371347546577454,
-0.27778273820877075,
-0.02691853605210781,
-0.20736007392406464,
0.568687379360199,
-0.064517542719841,
-0.03209793195128441,
-0.17634624242782593,
-0.03937371447682381,
0.0589345246553421,
0.11640193313360214,
-0.05410078540444374,
0.5149715542793274,
0.05206654965877533,
-0.16847780346870422,
0.025942150503396988,
-0.2057822197675705,
0.22902143001556396,
-0.07724973559379578,
0.1399115025997162,
-0.1201847568154335,
0.13092775642871857,
-0.09698894619941711,
0.07233176380395889,
0.422721803188324,
-0.1323702186346054,
0.2828259766101837,
-0.021570634096860886,
0.09008970111608505,
0.16952793300151825,
0.14529769122600555,
-0.05832568183541298,
-0.41771259903907776,
-0.0745217353105545,
0.16754204034805298,
0.21888190507888794,
0.25041723251342773,
-0.46558070182800293,
-0.23471501469612122,
0.33882471919059753,
0.024676650762557983,
0.04220902919769287,
0.12246988713741302,
-0.39127054810523987,
-0.04060979560017586,
-0.02842330001294613,
0.34918519854545593,
0.7707191109657288,
0.12764407694339752,
0.03345920518040657,
-0.12033651769161224,
-0.03592449054121971,
0.007695368491113186,
0.3499155044555664,
0.06371064484119415,
0.3463790714740753,
0.311422735452652,
-0.017366820946335793,
0.06899514049291611,
-0.016656111925840378,
-0.08799316734075546,
0.0875868946313858,
0.06227622553706169,
-0.4036812484264374,
0.052863750606775284,
-0.18998615443706512,
-0.054312948137521744,
-0.30404847860336304,
-0.2463194727897644,
-0.10401208698749542,
-0.21191446483135223,
-0.4094064235687256,
0.22741225361824036,
-0.05454446002840996,
0.19563451409339905,
-0.1933857947587967,
0.054521504789590836,
0.15092816948890686,
-0.09174872189760208,
0.0003244795952923596,
0.009441754780709743,
-0.20656831562519073,
-0.032604116946458817,
0.22103746235370636,
-0.10533898323774338,
0.036282382905483246,
-0.1857273429632187,
0.030105069279670715,
-0.11809210479259491,
0.11544667184352875,
0.013830164447426796,
-0.07582850754261017,
0.19631454348564148,
0.0516776405274868,
0.20550307631492615,
-0.047308072447776794,
-0.6516988277435303,
0.1352369636297226,
0.5362841486930847,
-0.2745610475540161,
0.3799957036972046,
0.14905332028865814,
-0.09476031363010406,
-0.10532243549823761,
-0.2667202651500702,
-0.4566354751586914,
-0.36363881826400757,
-0.06514991819858551,
-0.14521276950836182,
0.2417420893907547,
0.285663366317749,
0.23686905205249786,
0.009170080535113811,
0.14594510197639465,
0.15381906926631927,
-0.09610483050346375,
-0.23916445672512054,
0.4765641391277313,
0.04412892460823059,
-0.17645952105522156,
-0.1454288810491562,
-0.06851335614919662,
0.2939203083515167,
0.2050095498561859,
-0.3704075217247009,
0.11824219673871994,
-0.08392994850873947,
0.07217462360858917,
-0.3724437952041626,
0.08169058710336685,
0.09550511837005615,
0.30712661147117615,
-0.049568817019462585,
-0.10565360635519028,
-0.1409311145544052,
0.12135213613510132,
0.05091812461614609,
0.3641844093799591,
-0.026990989223122597,
0.39825665950775146,
-0.08975284546613693,
0.4547500014305115,
0.2624274492263794,
-0.16175706684589386,
0.21309253573417664,
0.1749909371137619,
0.5188269019126892,
0.009832901880145073,
-0.4894421696662903,
-0.3085486888885498,
-0.10530934482812881,
-0.022277792915701866,
-0.1453583836555481,
-0.13144747912883759,
-0.21356816589832306,
-0.17157267034053802,
0.16775311529636383,
-0.20210419595241547,
-0.0977446511387825,
0.09347116947174072,
-0.48903709650039673,
0.27890902757644653,
-0.26716259121894836,
-0.01722779870033264,
-0.22554194927215576,
0.23680530488491058,
-0.3388524055480957,
-0.002813464729115367,
0.15307393670082092,
-0.10816962271928787,
-0.07584185898303986,
-0.053224679082632065,
-0.16712261736392975,
0.2889295518398285,
0.07080279290676117,
0.6286579370498657,
0.08713364601135254,
-0.36192092299461365,
-0.141357421875,
0.10619166493415833,
0.6050752997398376,
0.3731422424316406,
-0.3529820740222931,
0.34405413269996643,
0.14444366097450256,
-0.52784264087677,
-0.1323235183954239,
-0.14307276904582977,
0.24728162586688995,
-0.08006040006875992,
0.6192359924316406,
-0.2810612618923187,
-0.21028649806976318,
0.048355113714933395,
0.35655754804611206,
-0.05513592064380646,
-0.0701754093170166,
-0.3375283181667328,
-0.09485522657632828,
-0.265756219625473,
-0.17509819567203522,
-0.008599381893873215,
0.37275728583335876,
-0.117761991918087,
-0.030783114954829216,
-0.10241656005382538,
-0.20328472554683685,
0.09420556575059891,
-0.06156338378787041,
0.573679506778717,
-0.10580773651599884,
0.3382008969783783,
-0.040429551154375076,
0.27280741930007935,
0.7298620343208313,
0.3896465599536896,
0.04856511950492859,
-0.2766026556491852,
0.20844055712223053,
0.0665280893445015,
0.3524950444698334,
0.03255823627114296,
-0.07743827998638153,
0.027674159035086632,
-0.13960491120815277,
0.1097322478890419,
-0.0665157213807106,
0.08004731684923172,
0.357790470123291,
-0.021420257166028023,
-0.6502230763435364,
-0.24151112139225006,
0.34916818141937256,
0.21813006699085236,
-0.04460648447275162,
0.48575541377067566,
-0.18558871746063232,
-0.46104228496551514,
0.13228143751621246,
0.04882989823818207,
0.9176332354545593,
0.07885576039552689,
0.33880406618118286,
0.18194331228733063,
-0.232596293091774,
0.22113849222660065,
0.16565997898578644,
0.16699166595935822,
-0.2519560754299164,
-0.2050487995147705,
-0.11600644886493683,
-0.39287781715393066,
-0.040287792682647705,
0.1229911670088768,
-0.29471197724342346,
0.14197678864002228,
-0.45927926898002625,
0.1178656741976738,
-0.12656326591968536,
-0.013210064731538296,
-0.1652894914150238,
-0.21604958176612854,
-0.16198165714740753,
0.013073259964585304,
-0.03126467764377594,
-0.15887199342250824,
-0.014159347862005234,
-0.24843141436576843,
-0.31445077061653137,
-0.091304250061512,
-0.15309767425060272,
0.22412094473838806,
-0.2308594286441803,
0.7114479541778564,
-0.06415924429893494,
-0.29844215512275696,
-0.20776553452014923,
0.19098280370235443,
0.1160421296954155,
-0.20210614800453186,
0.06243123859167099,
-0.10678178817033768,
-0.0023863452952355146,
0.043608225882053375,
-0.030229633674025536,
-0.12061484903097153,
0.190331369638443,
0.10352376848459244,
-0.2395179271697998,
0.11216232925653458,
-0.05872483178973198,
-0.33592700958251953,
0.049803417176008224,
0.33672821521759033,
0.07347986847162247,
-0.1848011463880539,
-0.1993734985589981,
0.20473475754261017,
0.03423599898815155,
-0.08933008462190628,
0.09722239524126053,
0.1633283793926239,
-0.1373356133699417,
0.11539594829082489,
-0.22874559462070465,
-0.34221506118774414,
-0.03661142662167549,
0.536350429058075,
0.3310489058494568,
0.17689862847328186,
0.5639305114746094,
-0.25129976868629456,
-0.011510555632412434,
-0.1210898905992508,
0.3575095236301422,
-0.048455461859703064,
-0.11711783707141876,
0.2420293241739273,
0.04649195820093155,
0.031642790883779526,
-0.1686173379421234,
0.0865354984998703,
0.4298754334449768,
0.2080882340669632,
-0.11150640994310379,
-0.3559650182723999,
-0.5394128561019897,
0.3848752975463867,
-0.1338527798652649,
0.2295486032962799,
-0.09436796605587006,
0.018809255212545395,
-0.21780164539813995,
-0.14289464056491852,
-0.23197157680988312,
0.004023726098239422,
-0.2592308223247528,
0.046057745814323425,
0.14327389001846313,
-0.05422044172883034,
0.13752451539039612,
-0.0019388418877497315,
0.11710259318351746,
-0.053086522966623306,
-0.055987127125263214,
-0.10222417116165161,
0.14517582952976227,
0.1476069837808609,
0.10748889297246933,
-0.22965237498283386,
-0.10949638485908508,
-0.35541048645973206,
-0.0964423194527626,
-0.14278589189052582,
-0.1945216804742813,
0.14739616215229034,
-0.06960663944482803,
0.09598861634731293,
0.02842605486512184,
0.16976329684257507,
-0.08422530442476273,
0.17736761271953583,
-0.007818601094186306,
0.12234126031398773,
-0.1652572602033615,
0.32268527150154114,
-0.10201895236968994,
-0.10350248962640762,
-0.5782648324966431,
0.008041505701839924,
-0.11383874714374542,
-0.1187392994761467,
0.19466181099414825,
-0.23553630709648132,
-0.1824669986963272,
-0.06589585542678833,
0.1693888008594513,
0.42387625575065613,
-0.2421950250864029,
0.05386629328131676,
0.0671146884560585,
0.11560925096273422,
-0.14540086686611176,
-0.23784661293029785,
-0.4377293288707733,
-0.16793857514858246,
-0.2898409962654114,
0.017974169924855232,
0.02646493725478649,
0.021435542032122612,
-0.14763297140598297,
0.04717147350311279,
0.2570030093193054,
-0.03312669321894646,
0.3051678538322449,
0.46174347400665283,
0.12236946821212769,
0.04979543015360832,
0.1322660893201828,
0.24849945306777954,
0.3821694850921631,
0.30371007323265076,
-0.1484188437461853,
0.2287614494562149,
0.1643526405096054,
-0.21518635749816895,
0.0003152066492475569,
-0.29520174860954285,
0.00826417189091444,
0.21861529350280762,
-0.15525157749652863,
-0.11986871063709259,
-0.019284039735794067,
0.11784534156322479,
-0.30188262462615967,
-0.27929583191871643,
-0.15895207226276398,
0.17228585481643677,
-0.0979042649269104,
-0.038444407284259796,
-0.09086623042821884,
-0.16824711859226227,
-0.057713497430086136,
-0.1306227743625641,
0.15837663412094116,
-0.14639031887054443,
0.3186442255973816,
0.1499689370393753,
-0.2276843637228012,
-0.14260950684547424,
0.22739370167255402,
0.6780188679695129,
-0.06400591880083084,
-0.35320234298706055,
0.1663101464509964,
0.47717776894569397,
0.07670032232999802,
0.10966108739376068,
0.22680307924747467,
0.626504123210907,
0.611481785774231,
0.06252630800008774,
-0.09975466132164001,
0.2163287103176117,
-0.18718478083610535,
0.1355878710746765,
0.16797207295894623,
0.0278326366096735,
-0.2090846300125122,
0.2076057642698288,
0.19351279735565186,
-0.045594945549964905,
0.1615619957447052,
0.14688575267791748,
0.2199597954750061,
-0.30955711007118225,
0.1947540044784546,
-0.31781500577926636,
-0.20080140233039856,
0.08132199943065643,
0.019271744415163994,
-0.35698091983795166,
0.04972241818904877,
0.6105669140815735,
0.08520600944757462,
0.12317463755607605,
0.31970733404159546,
0.02370617352426052,
0.02342289872467518,
0.3911936283111572,
0.45900943875312805,
0.14059755206108093,
-0.45429205894470215,
-0.1931885927915573,
-0.3783896565437317,
-0.05332443118095398,
0.24002234637737274,
0.09847670793533325,
-0.12065138667821884,
0.28327441215515137,
0.2563627362251282,
-0.005638225469738245,
0.1536625325679779,
0.26941531896591187,
-0.08837707340717316,
-0.09588373452425003,
-0.434492290019989,
-0.13295145332813263,
0.12469343096017838,
-0.019476862624287605,
0.022135669365525246,
-0.5010998845100403,
0.17182210087776184,
0.17362569272518158,
0.011649051681160927,
-0.0122559554874897,
0.21229250729084015,
0.27480724453926086,
0.5003045201301575,
0.37911325693130493,
0.15555612742900848,
0.47568586468696594,
-0.026323093101382256,
-0.16170915961265564,
0.025298282504081726,
-0.6679955720901489,
-0.17316073179244995,
0.1567954272031784,
0.0030108019709587097,
0.23588228225708008,
-0.3328933119773865,
-0.05051529407501221,
-0.1813407838344574,
0.22132346034049988,
-0.11841908097267151,
-0.23708616197109222,
-0.16636255383491516,
-0.0157356858253479,
0.043630532920360565,
-0.22969572246074677,
0.1340022087097168,
0.1197354719042778,
0.023528259247541428,
0.40174391865730286,
-0.09754061698913574,
-0.2917836904525757,
0.45672133564949036,
-0.07646915316581726,
-0.1883588582277298,
-0.019035350531339645,
0.09826654940843582,
0.08955357223749161,
0.28539690375328064,
-0.555975615978241,
-0.0551314651966095,
0.492731511592865,
-0.18367214500904083,
-0.431985467672348,
0.07861948013305664,
0.08167344331741333,
0.043545469641685486,
-0.01739794760942459,
0.6414547562599182,
-0.28353387117385864,
-0.5346692800521851,
-0.02492036670446396,
-0.20456376671791077
] |
https://github.com/huggingface/datasets/issues/848 | Error when concatenate_datasets | @lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it) | Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
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.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks! | 31 | Error when concatenate_datasets
Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
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.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks!
@lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it) | [
-0.09119009971618652,
-0.1483130007982254,
-0.04474862664937973,
0.6809359788894653,
0.10687576979398727,
0.2218789905309677,
0.31290537118911743,
0.22910870611667633,
-0.12348383665084839,
0.12460477650165558,
-0.10832247883081436,
0.27360260486602783,
-0.08168939501047134,
-0.1234089657664299,
-0.30136629939079285,
-0.09740178287029266,
0.19849257171154022,
0.1485706865787506,
-0.5059522390365601,
-0.0316762737929821,
-0.35063937306404114,
0.16024570167064667,
-0.3358776569366455,
0.039867106825113297,
-0.4097849726676941,
0.04924559220671654,
-0.13179075717926025,
0.27618247270584106,
-0.0312031377106905,
-0.18386408686637878,
0.4585871696472168,
-0.34888726472854614,
0.18642643094062805,
0.5364499092102051,
-0.00011763785005314276,
0.17008614540100098,
0.27409547567367554,
-0.17238245904445648,
-0.37838396430015564,
-0.2567191421985626,
-0.36212971806526184,
-0.10041501373052597,
-0.002940510865300894,
-0.12345831096172333,
0.2076510488986969,
-0.14812064170837402,
-0.25838571786880493,
-0.5043874382972717,
0.3307150602340698,
0.22644838690757751,
0.11047952622175217,
0.3941423296928406,
0.09120544791221619,
-0.09806009382009506,
0.0378849059343338,
0.15339843928813934,
0.06594546884298325,
0.4203859567642212,
-0.18985898792743683,
-0.06170950084924698,
0.21082936227321625,
0.06706098467111588,
-0.12466703355312347,
0.1450284868478775,
0.07803703099489212,
0.30991092324256897,
0.15759974718093872,
-0.3968757688999176,
-0.12527768313884735,
0.10791175812482834,
0.525313675403595,
-0.3321695029735565,
-0.31784704327583313,
-0.08615909516811371,
0.13881979882717133,
-0.3995232880115509,
0.21788792312145233,
0.2979130446910858,
-0.14709052443504333,
0.11746274679899216,
-0.09073899686336517,
0.07714579254388809,
-0.2191733568906784,
0.1846294403076172,
-0.18065145611763,
0.11452024430036545,
-0.16109666228294373,
0.24070191383361816,
0.1381707787513733,
-0.0730409249663353,
0.5286442041397095,
-0.3571857810020447,
-0.1269245743751526,
0.15919555723667145,
-0.34229740500450134,
0.03218771889805794,
-0.1896209418773651,
-0.7045969367027283,
0.08900967240333557,
0.05582113191485405,
0.10370174050331116,
-0.22045868635177612,
0.0773700401186943,
0.2818922996520996,
0.40177810192108154,
0.149289071559906,
-0.037381935864686966,
0.5497027635574341,
-0.020275820046663284,
-0.06169695779681206,
0.19937023520469666,
0.009052439592778683,
-0.2867644131183624,
-0.21140940487384796,
0.11543043702840805,
-0.16468842327594757,
0.08365553617477417,
-0.001333349966444075,
-0.49712643027305603,
-0.15189270675182343,
-0.12786085903644562,
-0.14049381017684937,
0.19656021893024445,
0.03019420988857746,
0.12389988452196121,
0.5308151841163635,
0.13073816895484924,
0.44097596406936646,
0.2173488438129425,
0.017421502619981766,
-0.22650915384292603,
0.022214077413082123,
-0.045117031782865524,
0.21043553948402405,
0.10341406613588333,
0.004444025456905365,
0.08212237060070038,
0.17758698761463165,
0.10875608772039413,
0.006450354587286711,
0.07688518613576889,
-0.49485960602760315,
0.05832667276263237,
0.31147047877311707,
0.021164754405617714,
0.07500330358743668,
0.2738741934299469,
-0.05031433328986168,
-0.14390255510807037,
0.3170155882835388,
-0.4437067210674286,
-0.2742711901664734,
-0.5135645270347595,
0.09688171744346619,
0.09895548969507217,
0.23291565477848053,
-0.32036256790161133,
-0.11133147031068802,
0.6928232908248901,
0.1045665368437767,
-0.06835804134607315,
-0.0662887692451477,
-0.1984153389930725,
-0.3195585012435913,
0.3204246759414673,
0.20071212947368622,
-0.2164674699306488,
-0.03304483741521835,
-0.018493246287107468,
-0.06779708713293076,
0.3604027032852173,
0.505466878414154,
-0.3153640925884247,
0.1992003619670868,
-0.38550177216529846,
-0.03318190202116966,
0.3084051012992859,
-0.43667691946029663,
-0.14022020995616913,
0.21540223062038422,
0.0032158284448087215,
-0.07358640432357788,
0.2376118004322052,
0.008283558301627636,
0.13142341375350952,
0.1472160667181015,
0.8280867338180542,
0.31325456500053406,
0.06390061229467392,
-0.1781878024339676,
-0.097612664103508,
-0.13833622634410858,
0.265977144241333,
0.10001017153263092,
-0.2323940098285675,
0.035079460591077805,
-0.1362985223531723,
-0.4177926480770111,
0.3237214684486389,
-0.10169504582881927,
0.03967703506350517,
0.3689119517803192,
0.03515469282865524,
-0.34318074584007263,
-0.1154860109090805,
0.0461801253259182,
-0.19547347724437714,
0.04835253581404686,
0.03796159476041794,
-0.08521442115306854,
-0.2998003363609314,
0.09154395759105682,
-0.12289386987686157,
0.07692158967256546,
-0.07233548909425735,
0.049854718148708344,
0.01761229895055294,
0.23527809977531433,
-0.17259883880615234,
-0.24803203344345093,
-0.16533151268959045,
0.42371347546577454,
-0.27778273820877075,
-0.02691853605210781,
-0.20736007392406464,
0.568687379360199,
-0.064517542719841,
-0.03209793195128441,
-0.17634624242782593,
-0.03937371447682381,
0.0589345246553421,
0.11640193313360214,
-0.05410078540444374,
0.5149715542793274,
0.05206654965877533,
-0.16847780346870422,
0.025942150503396988,
-0.2057822197675705,
0.22902143001556396,
-0.07724973559379578,
0.1399115025997162,
-0.1201847568154335,
0.13092775642871857,
-0.09698894619941711,
0.07233176380395889,
0.422721803188324,
-0.1323702186346054,
0.2828259766101837,
-0.021570634096860886,
0.09008970111608505,
0.16952793300151825,
0.14529769122600555,
-0.05832568183541298,
-0.41771259903907776,
-0.0745217353105545,
0.16754204034805298,
0.21888190507888794,
0.25041723251342773,
-0.46558070182800293,
-0.23471501469612122,
0.33882471919059753,
0.024676650762557983,
0.04220902919769287,
0.12246988713741302,
-0.39127054810523987,
-0.04060979560017586,
-0.02842330001294613,
0.34918519854545593,
0.7707191109657288,
0.12764407694339752,
0.03345920518040657,
-0.12033651769161224,
-0.03592449054121971,
0.007695368491113186,
0.3499155044555664,
0.06371064484119415,
0.3463790714740753,
0.311422735452652,
-0.017366820946335793,
0.06899514049291611,
-0.016656111925840378,
-0.08799316734075546,
0.0875868946313858,
0.06227622553706169,
-0.4036812484264374,
0.052863750606775284,
-0.18998615443706512,
-0.054312948137521744,
-0.30404847860336304,
-0.2463194727897644,
-0.10401208698749542,
-0.21191446483135223,
-0.4094064235687256,
0.22741225361824036,
-0.05454446002840996,
0.19563451409339905,
-0.1933857947587967,
0.054521504789590836,
0.15092816948890686,
-0.09174872189760208,
0.0003244795952923596,
0.009441754780709743,
-0.20656831562519073,
-0.032604116946458817,
0.22103746235370636,
-0.10533898323774338,
0.036282382905483246,
-0.1857273429632187,
0.030105069279670715,
-0.11809210479259491,
0.11544667184352875,
0.013830164447426796,
-0.07582850754261017,
0.19631454348564148,
0.0516776405274868,
0.20550307631492615,
-0.047308072447776794,
-0.6516988277435303,
0.1352369636297226,
0.5362841486930847,
-0.2745610475540161,
0.3799957036972046,
0.14905332028865814,
-0.09476031363010406,
-0.10532243549823761,
-0.2667202651500702,
-0.4566354751586914,
-0.36363881826400757,
-0.06514991819858551,
-0.14521276950836182,
0.2417420893907547,
0.285663366317749,
0.23686905205249786,
0.009170080535113811,
0.14594510197639465,
0.15381906926631927,
-0.09610483050346375,
-0.23916445672512054,
0.4765641391277313,
0.04412892460823059,
-0.17645952105522156,
-0.1454288810491562,
-0.06851335614919662,
0.2939203083515167,
0.2050095498561859,
-0.3704075217247009,
0.11824219673871994,
-0.08392994850873947,
0.07217462360858917,
-0.3724437952041626,
0.08169058710336685,
0.09550511837005615,
0.30712661147117615,
-0.049568817019462585,
-0.10565360635519028,
-0.1409311145544052,
0.12135213613510132,
0.05091812461614609,
0.3641844093799591,
-0.026990989223122597,
0.39825665950775146,
-0.08975284546613693,
0.4547500014305115,
0.2624274492263794,
-0.16175706684589386,
0.21309253573417664,
0.1749909371137619,
0.5188269019126892,
0.009832901880145073,
-0.4894421696662903,
-0.3085486888885498,
-0.10530934482812881,
-0.022277792915701866,
-0.1453583836555481,
-0.13144747912883759,
-0.21356816589832306,
-0.17157267034053802,
0.16775311529636383,
-0.20210419595241547,
-0.0977446511387825,
0.09347116947174072,
-0.48903709650039673,
0.27890902757644653,
-0.26716259121894836,
-0.01722779870033264,
-0.22554194927215576,
0.23680530488491058,
-0.3388524055480957,
-0.002813464729115367,
0.15307393670082092,
-0.10816962271928787,
-0.07584185898303986,
-0.053224679082632065,
-0.16712261736392975,
0.2889295518398285,
0.07080279290676117,
0.6286579370498657,
0.08713364601135254,
-0.36192092299461365,
-0.141357421875,
0.10619166493415833,
0.6050752997398376,
0.3731422424316406,
-0.3529820740222931,
0.34405413269996643,
0.14444366097450256,
-0.52784264087677,
-0.1323235183954239,
-0.14307276904582977,
0.24728162586688995,
-0.08006040006875992,
0.6192359924316406,
-0.2810612618923187,
-0.21028649806976318,
0.048355113714933395,
0.35655754804611206,
-0.05513592064380646,
-0.0701754093170166,
-0.3375283181667328,
-0.09485522657632828,
-0.265756219625473,
-0.17509819567203522,
-0.008599381893873215,
0.37275728583335876,
-0.117761991918087,
-0.030783114954829216,
-0.10241656005382538,
-0.20328472554683685,
0.09420556575059891,
-0.06156338378787041,
0.573679506778717,
-0.10580773651599884,
0.3382008969783783,
-0.040429551154375076,
0.27280741930007935,
0.7298620343208313,
0.3896465599536896,
0.04856511950492859,
-0.2766026556491852,
0.20844055712223053,
0.0665280893445015,
0.3524950444698334,
0.03255823627114296,
-0.07743827998638153,
0.027674159035086632,
-0.13960491120815277,
0.1097322478890419,
-0.0665157213807106,
0.08004731684923172,
0.357790470123291,
-0.021420257166028023,
-0.6502230763435364,
-0.24151112139225006,
0.34916818141937256,
0.21813006699085236,
-0.04460648447275162,
0.48575541377067566,
-0.18558871746063232,
-0.46104228496551514,
0.13228143751621246,
0.04882989823818207,
0.9176332354545593,
0.07885576039552689,
0.33880406618118286,
0.18194331228733063,
-0.232596293091774,
0.22113849222660065,
0.16565997898578644,
0.16699166595935822,
-0.2519560754299164,
-0.2050487995147705,
-0.11600644886493683,
-0.39287781715393066,
-0.040287792682647705,
0.1229911670088768,
-0.29471197724342346,
0.14197678864002228,
-0.45927926898002625,
0.1178656741976738,
-0.12656326591968536,
-0.013210064731538296,
-0.1652894914150238,
-0.21604958176612854,
-0.16198165714740753,
0.013073259964585304,
-0.03126467764377594,
-0.15887199342250824,
-0.014159347862005234,
-0.24843141436576843,
-0.31445077061653137,
-0.091304250061512,
-0.15309767425060272,
0.22412094473838806,
-0.2308594286441803,
0.7114479541778564,
-0.06415924429893494,
-0.29844215512275696,
-0.20776553452014923,
0.19098280370235443,
0.1160421296954155,
-0.20210614800453186,
0.06243123859167099,
-0.10678178817033768,
-0.0023863452952355146,
0.043608225882053375,
-0.030229633674025536,
-0.12061484903097153,
0.190331369638443,
0.10352376848459244,
-0.2395179271697998,
0.11216232925653458,
-0.05872483178973198,
-0.33592700958251953,
0.049803417176008224,
0.33672821521759033,
0.07347986847162247,
-0.1848011463880539,
-0.1993734985589981,
0.20473475754261017,
0.03423599898815155,
-0.08933008462190628,
0.09722239524126053,
0.1633283793926239,
-0.1373356133699417,
0.11539594829082489,
-0.22874559462070465,
-0.34221506118774414,
-0.03661142662167549,
0.536350429058075,
0.3310489058494568,
0.17689862847328186,
0.5639305114746094,
-0.25129976868629456,
-0.011510555632412434,
-0.1210898905992508,
0.3575095236301422,
-0.048455461859703064,
-0.11711783707141876,
0.2420293241739273,
0.04649195820093155,
0.031642790883779526,
-0.1686173379421234,
0.0865354984998703,
0.4298754334449768,
0.2080882340669632,
-0.11150640994310379,
-0.3559650182723999,
-0.5394128561019897,
0.3848752975463867,
-0.1338527798652649,
0.2295486032962799,
-0.09436796605587006,
0.018809255212545395,
-0.21780164539813995,
-0.14289464056491852,
-0.23197157680988312,
0.004023726098239422,
-0.2592308223247528,
0.046057745814323425,
0.14327389001846313,
-0.05422044172883034,
0.13752451539039612,
-0.0019388418877497315,
0.11710259318351746,
-0.053086522966623306,
-0.055987127125263214,
-0.10222417116165161,
0.14517582952976227,
0.1476069837808609,
0.10748889297246933,
-0.22965237498283386,
-0.10949638485908508,
-0.35541048645973206,
-0.0964423194527626,
-0.14278589189052582,
-0.1945216804742813,
0.14739616215229034,
-0.06960663944482803,
0.09598861634731293,
0.02842605486512184,
0.16976329684257507,
-0.08422530442476273,
0.17736761271953583,
-0.007818601094186306,
0.12234126031398773,
-0.1652572602033615,
0.32268527150154114,
-0.10201895236968994,
-0.10350248962640762,
-0.5782648324966431,
0.008041505701839924,
-0.11383874714374542,
-0.1187392994761467,
0.19466181099414825,
-0.23553630709648132,
-0.1824669986963272,
-0.06589585542678833,
0.1693888008594513,
0.42387625575065613,
-0.2421950250864029,
0.05386629328131676,
0.0671146884560585,
0.11560925096273422,
-0.14540086686611176,
-0.23784661293029785,
-0.4377293288707733,
-0.16793857514858246,
-0.2898409962654114,
0.017974169924855232,
0.02646493725478649,
0.021435542032122612,
-0.14763297140598297,
0.04717147350311279,
0.2570030093193054,
-0.03312669321894646,
0.3051678538322449,
0.46174347400665283,
0.12236946821212769,
0.04979543015360832,
0.1322660893201828,
0.24849945306777954,
0.3821694850921631,
0.30371007323265076,
-0.1484188437461853,
0.2287614494562149,
0.1643526405096054,
-0.21518635749816895,
0.0003152066492475569,
-0.29520174860954285,
0.00826417189091444,
0.21861529350280762,
-0.15525157749652863,
-0.11986871063709259,
-0.019284039735794067,
0.11784534156322479,
-0.30188262462615967,
-0.27929583191871643,
-0.15895207226276398,
0.17228585481643677,
-0.0979042649269104,
-0.038444407284259796,
-0.09086623042821884,
-0.16824711859226227,
-0.057713497430086136,
-0.1306227743625641,
0.15837663412094116,
-0.14639031887054443,
0.3186442255973816,
0.1499689370393753,
-0.2276843637228012,
-0.14260950684547424,
0.22739370167255402,
0.6780188679695129,
-0.06400591880083084,
-0.35320234298706055,
0.1663101464509964,
0.47717776894569397,
0.07670032232999802,
0.10966108739376068,
0.22680307924747467,
0.626504123210907,
0.611481785774231,
0.06252630800008774,
-0.09975466132164001,
0.2163287103176117,
-0.18718478083610535,
0.1355878710746765,
0.16797207295894623,
0.0278326366096735,
-0.2090846300125122,
0.2076057642698288,
0.19351279735565186,
-0.045594945549964905,
0.1615619957447052,
0.14688575267791748,
0.2199597954750061,
-0.30955711007118225,
0.1947540044784546,
-0.31781500577926636,
-0.20080140233039856,
0.08132199943065643,
0.019271744415163994,
-0.35698091983795166,
0.04972241818904877,
0.6105669140815735,
0.08520600944757462,
0.12317463755607605,
0.31970733404159546,
0.02370617352426052,
0.02342289872467518,
0.3911936283111572,
0.45900943875312805,
0.14059755206108093,
-0.45429205894470215,
-0.1931885927915573,
-0.3783896565437317,
-0.05332443118095398,
0.24002234637737274,
0.09847670793533325,
-0.12065138667821884,
0.28327441215515137,
0.2563627362251282,
-0.005638225469738245,
0.1536625325679779,
0.26941531896591187,
-0.08837707340717316,
-0.09588373452425003,
-0.434492290019989,
-0.13295145332813263,
0.12469343096017838,
-0.019476862624287605,
0.022135669365525246,
-0.5010998845100403,
0.17182210087776184,
0.17362569272518158,
0.011649051681160927,
-0.0122559554874897,
0.21229250729084015,
0.27480724453926086,
0.5003045201301575,
0.37911325693130493,
0.15555612742900848,
0.47568586468696594,
-0.026323093101382256,
-0.16170915961265564,
0.025298282504081726,
-0.6679955720901489,
-0.17316073179244995,
0.1567954272031784,
0.0030108019709587097,
0.23588228225708008,
-0.3328933119773865,
-0.05051529407501221,
-0.1813407838344574,
0.22132346034049988,
-0.11841908097267151,
-0.23708616197109222,
-0.16636255383491516,
-0.0157356858253479,
0.043630532920360565,
-0.22969572246074677,
0.1340022087097168,
0.1197354719042778,
0.023528259247541428,
0.40174391865730286,
-0.09754061698913574,
-0.2917836904525757,
0.45672133564949036,
-0.07646915316581726,
-0.1883588582277298,
-0.019035350531339645,
0.09826654940843582,
0.08955357223749161,
0.28539690375328064,
-0.555975615978241,
-0.0551314651966095,
0.492731511592865,
-0.18367214500904083,
-0.431985467672348,
0.07861948013305664,
0.08167344331741333,
0.043545469641685486,
-0.01739794760942459,
0.6414547562599182,
-0.28353387117385864,
-0.5346692800521851,
-0.02492036670446396,
-0.20456376671791077
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | It looks like an issue with wandb/tqdm here.
We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility.
Could you make a minimal script to reproduce or a google colab ? | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 46 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
It looks like an issue with wandb/tqdm here.
We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility.
Could you make a minimal script to reproduce or a google colab ? | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | hi facing the same issue here -
`AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__
return_token_type_ids=True
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies
"Truncation was not explicitly activated but `max_length` is provided a specific value, "
File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log
self.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit
self.handleError(record)
File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError
sys.stderr.write('--- Logging error ---\n')
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process`
| Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 293 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
hi facing the same issue here -
`AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__
return_token_type_ids=True
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies
"Truncation was not explicitly activated but `max_length` is provided a specific value, "
File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log
self.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit
self.handleError(record)
File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError
sys.stderr.write('--- Logging error ---\n')
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process`
| [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | It looks like this warning :
"Truncation was not explicitly activated but max_length is provided a specific value, "
is not handled well by wandb.
The error occurs when calling the tokenizer.
Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ?
Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ? | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 80 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
It looks like this warning :
"Truncation was not explicitly activated but max_length is provided a specific value, "
is not handled well by wandb.
The error occurs when calling the tokenizer.
Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ?
Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ? | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | I'm having a similar issue but when I try to do multiprocessing with the `DataLoader`
Code to reproduce:
```
from datasets import load_dataset
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])
from transformers import DataCollatorForWholeWordMask
from transformers import Trainer, TrainingArguments
data_collator = DataCollatorForWholeWordMask(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15)
training_args = TrainingArguments(
output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared",
overwrite_output_dir=True,
num_train_epochs=1,
per_device_train_batch_size=64,
save_steps=50,
save_total_limit=2,
logging_first_step=True,
warmup_steps=100,
logging_steps=50,
gradient_accumulation_steps=1,
fp16=True,
**dataloader_num_workers=10**,
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=book_corpus,
tokenizer=tokenizer)
trainer.train()
```
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<timed eval> in <module>
~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial)
869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control)
870
--> 871 for step, inputs in enumerate(epoch_iterator):
872
873 # Skip past any already trained steps if resuming training
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self)
433 if self._sampler_iter is None:
434 self._reset()
--> 435 data = self._next_data()
436 self._num_yielded += 1
437 if self._dataset_kind == _DatasetKind.Iterable and \
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self)
1083 else:
1084 del self._task_info[idx]
-> 1085 return self._process_data(data)
1086
1087 def _try_put_index(self):
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data)
1109 self._try_put_index()
1110 if isinstance(data, ExceptionWrapper):
-> 1111 data.reraise()
1112 return data
1113
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self)
426 # have message field
427 raise self.exc_type(message=msg)
--> 428 raise self.exc_type(msg)
429
430
AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem
format_kwargs=format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs
v = map_nested(command, v, **map_nested_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
return function(data_struct)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command
return torch.tensor(x, **format_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg
_showwarnmsg_impl(msg)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl
file.write(text)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
```
As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py` | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 383 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
I'm having a similar issue but when I try to do multiprocessing with the `DataLoader`
Code to reproduce:
```
from datasets import load_dataset
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])
from transformers import DataCollatorForWholeWordMask
from transformers import Trainer, TrainingArguments
data_collator = DataCollatorForWholeWordMask(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15)
training_args = TrainingArguments(
output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared",
overwrite_output_dir=True,
num_train_epochs=1,
per_device_train_batch_size=64,
save_steps=50,
save_total_limit=2,
logging_first_step=True,
warmup_steps=100,
logging_steps=50,
gradient_accumulation_steps=1,
fp16=True,
**dataloader_num_workers=10**,
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=book_corpus,
tokenizer=tokenizer)
trainer.train()
```
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<timed eval> in <module>
~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial)
869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control)
870
--> 871 for step, inputs in enumerate(epoch_iterator):
872
873 # Skip past any already trained steps if resuming training
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self)
433 if self._sampler_iter is None:
434 self._reset()
--> 435 data = self._next_data()
436 self._num_yielded += 1
437 if self._dataset_kind == _DatasetKind.Iterable and \
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self)
1083 else:
1084 del self._task_info[idx]
-> 1085 return self._process_data(data)
1086
1087 def _try_put_index(self):
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data)
1109 self._try_put_index()
1110 if isinstance(data, ExceptionWrapper):
-> 1111 data.reraise()
1112 return data
1113
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self)
426 # have message field
427 raise self.exc_type(message=msg)
--> 428 raise self.exc_type(msg)
429
430
AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem
format_kwargs=format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs
v = map_nested(command, v, **map_nested_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
return function(data_struct)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command
return torch.tensor(x, **format_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg
_showwarnmsg_impl(msg)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl
file.write(text)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
```
As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py` | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()` | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 29 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()` | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | Yep this time this is a warning from pytorch that causes wandb to not work properly.
Could this by a wandb issue ? | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 23 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
Yep this time this is a warning from pytorch that causes wandb to not work properly.
Could this by a wandb issue ? | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | Hi @timothyjlaurent @gaceladri
If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ?
This issue might be related to https://github.com/huggingface/transformers/issues/9623 | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 30 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
Hi @timothyjlaurent @gaceladri
If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ?
This issue might be related to https://github.com/huggingface/transformers/issues/9623 | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well. | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 45 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well. | [
-0.39569926261901855,
0.01562918722629547,
-0.1538686901330948,
-0.18502987921237946,
0.14179755747318268,
-0.05785640701651573,
0.5068990588188171,
0.3400261700153351,
-0.08340385556221008,
0.1681773066520691,
-0.018427539616823196,
0.337063193321228,
0.04750126972794533,
0.09183328598737717,
-0.2264436036348343,
0.10214698314666748,
-0.012360488064587116,
0.09469195455312729,
0.12901118397712708,
0.0473637729883194,
-0.17530940473079681,
0.10407599061727524,
-0.23025056719779968,
0.28595855832099915,
-0.4516961872577667,
-0.2857309877872467,
-0.01632152684032917,
-0.06231648102402687,
-0.2643238306045532,
-0.46964314579963684,
-0.14911319315433502,
0.285114586353302,
-0.18611139059066772,
0.6030860543251038,
-0.00010445584484841675,
0.0936727374792099,
0.262773722410202,
0.04465018957853317,
-0.054140519350767136,
-0.03007017821073532,
0.09513174742460251,
-0.05158587917685509,
-0.030999820679426193,
-0.40359798073768616,
-0.004478789400309324,
-0.2674304246902466,
0.17791350185871124,
-0.4431348145008087,
0.28783169388771057,
0.31896108388900757,
0.2665320336818695,
0.5655277967453003,
-0.20922286808490753,
-0.004720938857644796,
-0.20120124518871307,
-0.07836207002401352,
-0.035720549523830414,
-0.162554070353508,
0.2167162150144577,
-0.2403009831905365,
-0.3567936420440674,
0.24917422235012054,
-0.04302826523780823,
0.1743142455816269,
-0.329086571931839,
0.0007869176915846765,
0.2776493430137634,
-0.2374250590801239,
0.3172335624694824,
0.07923594862222672,
0.1507846713066101,
-0.267402321100235,
-0.34659314155578613,
-0.18201038241386414,
-0.2675665318965912,
-0.1380908340215683,
-0.08961735665798187,
0.08661151677370071,
-0.3090318739414215,
0.02379434183239937,
-0.23142902553081512,
0.06736130267381668,
-0.006942571606487036,
-0.09713449329137802,
-0.20974598824977875,
0.642157256603241,
0.02041020616889,
0.22581163048744202,
-0.058426275849342346,
0.04215775802731514,
0.13218460977077484,
-0.1236514300107956,
0.15500088036060333,
-0.028319595381617546,
-0.17675906419754028,
-0.13390111923217773,
0.1732698231935501,
-0.3608182668685913,
0.19349375367164612,
-0.05181393399834633,
-0.27026763558387756,
0.15695181488990784,
0.12109003961086273,
0.16579101979732513,
0.16127805411815643,
0.05051318183541298,
0.1559106707572937,
0.2796485424041748,
0.2925398051738739,
-0.19699551165103912,
-0.3908064663410187,
-0.012185744941234589,
0.027629628777503967,
-0.2749151289463043,
0.19010813534259796,
0.15878067910671234,
0.1859901249408722,
0.0203873161226511,
-0.3168944716453552,
-0.06742842495441437,
-0.13102078437805176,
-0.001109134522266686,
0.010948623530566692,
0.4655704200267792,
-0.0625770092010498,
0.2101195752620697,
-0.18698574602603912,
0.27661386132240295,
-0.19551831483840942,
-0.13356494903564453,
-0.26745298504829407,
0.15997539460659027,
-0.10524094104766846,
-0.0912756398320198,
0.08648793399333954,
0.22847819328308105,
0.3958972990512848,
0.05742240324616432,
0.07328197360038757,
-0.08521421253681183,
0.43254128098487854,
-0.21963447332382202,
0.24671760201454163,
0.05578409135341644,
0.0686212033033371,
0.13591496646404266,
0.26743990182876587,
-0.3098891079425812,
-0.1797688752412796,
-0.07488974928855896,
0.008568597957491875,
-0.1883709877729416,
-0.006065173540264368,
0.2934333086013794,
0.023470165207982063,
0.029438510537147522,
-0.15538130700588226,
0.13251134753227234,
0.2363230288028717,
0.04170598089694977,
0.008472049608826637,
-0.18361571431159973,
-0.21256686747074127,
-0.16116352379322052,
0.16596408188343048,
0.23320409655570984,
-0.12463604658842087,
-0.022733142599463463,
0.020911192521452904,
-0.14516311883926392,
0.27473750710487366,
0.22738692164421082,
-0.09133537858724594,
0.6480852365493774,
-0.1730043590068817,
0.5878831744194031,
0.18610912561416626,
-0.5310035943984985,
-0.19015377759933472,
0.20922288298606873,
-0.317712664604187,
-0.011194380931556225,
0.13179068267345428,
-0.16867884993553162,
0.3851615786552429,
0.08028703927993774,
0.18988071382045746,
0.24644847214221954,
-0.11047646403312683,
0.28802406787872314,
-0.28606730699539185,
-0.009603356011211872,
0.08494781702756882,
-0.07197000831365585,
0.23930633068084717,
-0.2704797685146332,
-0.04241017624735832,
-0.1621231734752655,
0.2372230738401413,
-0.1482035368680954,
0.2230832725763321,
-0.044385507702827454,
0.06252708286046982,
0.08184322714805603,
-0.03920065611600876,
-0.12155746668577194,
0.07880951464176178,
0.21578449010849,
0.04336896538734436,
0.041813381016254425,
-0.19059410691261292,
-0.19841207563877106,
-0.09637269377708435,
0.27606624364852905,
-0.29419663548469543,
-0.3430735766887665,
0.35051363706588745,
0.35717928409576416,
-0.01985129900276661,
-0.0224459245800972,
-0.07541358470916748,
0.12011904269456863,
0.15308231115341187,
0.006208288948982954,
0.07150056213140488,
-0.07855211198329926,
-0.19910231232643127,
-0.19746556878089905,
-0.011525110341608524,
0.07268421351909637,
0.16009633243083954,
0.0034863720647990704,
-0.07843586057424545,
0.402241051197052,
0.23859097063541412,
0.10093700140714645,
0.20989030599594116,
-0.17762330174446106,
-0.09642839431762695,
0.007138293236494064,
-0.07284035533666611,
0.11153077334165573,
0.038830045610666275,
-0.02649499662220478,
0.1444304883480072,
0.49329161643981934,
0.23655997216701508,
0.19323846697807312,
0.2239498794078827,
-0.010135865770280361,
0.23882296681404114,
-0.10691119730472565,
-0.06092740222811699,
-0.13412724435329437,
0.05779875069856644,
0.00313435192219913,
0.1119551882147789,
-0.135922372341156,
-0.20419536530971527,
0.17889876663684845,
0.31493568420410156,
-0.08562835305929184,
0.135298490524292,
-0.10588324815034866,
-0.08810441941022873,
-0.1929529458284378,
0.0814027264714241,
0.19267892837524414,
0.39432716369628906,
0.20048139989376068,
0.18566572666168213,
-0.038640957325696945,
-0.07745911180973053,
-0.07346785068511963,
0.14067696034908295,
0.02997276373207569,
0.1926373392343521,
0.27649986743927,
0.2475028783082962,
-0.21726872026920319,
-0.35489729046821594,
-0.24354614317417145,
0.17687907814979553,
0.1148344948887825,
-0.1390988528728485,
0.029977180063724518,
-0.31754225492477417,
0.0918787345290184,
-0.03234429284930229,
-0.06651987135410309,
0.20711731910705566,
-0.3488474488258362,
0.1094207689166069,
0.185267835855484,
-0.16941842436790466,
0.32201915979385376,
-0.1171383485198021,
0.08989756554365158,
-0.01348281279206276,
-0.021750902757048607,
-0.09880957007408142,
-0.14744198322296143,
-0.125417560338974,
0.13276687264442444,
0.16621574759483337,
0.1449761539697647,
0.4963170886039734,
0.0013360981829464436,
-0.2189735621213913,
-0.5480384826660156,
-0.2451717108488083,
0.09712938219308853,
-0.1633995920419693,
0.1954907923936844,
0.2778954803943634,
0.04275679588317871,
-0.0250689759850502,
-0.3409392237663269,
0.30024927854537964,
-0.4462932050228119,
-0.3732336759567261,
-0.21335074305534363,
0.09489823132753372,
-0.1722041219472885,
-0.033569224178791046,
-0.3764520287513733,
-0.3236236870288849,
-0.1813366562128067,
0.3523522615432739,
-0.09314919263124466,
0.17161118984222412,
-0.15545710921287537,
-0.10545171052217484,
0.14559084177017212,
-0.020367134362459183,
0.11214270442724228,
-0.21872766315937042,
-0.14481620490550995,
-0.019447218626737595,
-0.15104149281978607,
-0.2830694019794464,
-0.15604457259178162,
-0.14090605080127716,
0.43743640184402466,
-0.10340796411037445,
-0.17841827869415283,
-0.040750741958618164,
-0.16121453046798706,
0.4367102086544037,
0.02422955445945263,
-0.04900401458144188,
0.344215989112854,
0.2696903645992279,
-0.34813931584358215,
-0.08738252520561218,
-0.16058720648288727,
0.049643173813819885,
-0.2982185184955597,
-0.11030744761228561,
-0.1856849044561386,
0.42143118381500244,
0.2078024446964264,
0.5972416996955872,
0.028514407575130463,
-0.061388712376356125,
0.13243180513381958,
-0.4377177655696869,
-0.017274878919124603,
-0.03371982276439667,
-0.4259907007217407,
0.1626300811767578,
-0.2667846381664276,
-0.10148657858371735,
0.13507616519927979,
-0.16772952675819397,
-0.11508704721927643,
0.15140677988529205,
0.0009903829777613282,
-0.3835219740867615,
-0.20996616780757904,
0.037730176001787186,
-0.19257773458957672,
0.08604345470666885,
0.06033116579055786,
0.014109325595200062,
-0.4112585186958313,
0.22607243061065674,
-0.0721929669380188,
-0.02183624543249607,
-0.12374453246593475,
-0.3398275375366211,
-0.3464432954788208,
0.01757182739675045,
-0.6085759401321411,
0.35445675253868103,
0.1318601369857788,
0.48514819145202637,
0.1367790848016739,
0.0052998261526227,
0.04146553575992584,
-0.2825489342212677,
0.6524982452392578,
-0.21519756317138672,
0.07490057498216629,
0.18368124961853027,
-0.32771337032318115,
-0.2910262942314148,
-0.04365978017449379,
-0.3557530343532562,
0.4460594058036804,
0.3172534108161926,
0.48655566573143005,
-0.19183315336704254,
-0.35180163383483887,
0.12243132293224335,
-0.019951537251472473,
0.03347563371062279,
0.011867903172969818,
-0.28859809041023254,
-0.306087851524353,
-0.4088720679283142,
0.34703370928764343,
0.08871369808912277,
0.1813630908727646,
-0.06995095312595367,
-0.1245865747332573,
-0.1805429756641388,
-0.03529450297355652,
0.10698207467794418,
0.18738240003585815,
-0.06168229132890701,
-0.15728333592414856,
0.14087285101413727,
-0.021911419928073883,
0.21164537966251373,
0.2355050891637802,
0.05006079375743866,
-0.09510509669780731,
-0.11504362523555756,
0.09402051568031311,
0.020832831040024757,
0.4114656448364258,
0.2416527271270752,
-0.1685580313205719,
0.3699745535850525,
-0.1364516317844391,
0.28863394260406494,
-0.11083626747131348,
0.47397685050964355,
0.5543157458305359,
0.189957857131958,
-0.10460659861564636,
-0.10713501274585724,
0.03848101198673248,
0.1415001004934311,
-0.15660743415355682,
0.3062247931957245,
-0.2532045543193817,
-0.22881464660167694,
0.14763295650482178,
0.17791609466075897,
0.5770254731178284,
-0.09325044602155685,
0.08757618069648743,
0.0692828893661499,
-0.03396592661738396,
0.06642574816942215,
-0.32259616255760193,
0.1247427761554718,
-0.2881052494049072,
-0.12236832082271576,
0.06375064700841904,
-0.04897737875580788,
0.16195885837078094,
0.18762393295764923,
-0.3256686329841614,
0.13548658788204193,
0.2791849970817566,
0.18547923862934113,
0.02448316290974617,
0.43165040016174316,
0.007525866851210594,
-0.230083167552948,
-0.023363934829831123,
0.22795210778713226,
0.17968223989009857,
-0.05628712475299835,
-0.02793007157742977,
0.10048074275255203,
-0.06918410211801529,
-0.3762968182563782,
-0.1939993053674698,
0.02087291143834591,
-0.43129590153694153,
0.39423149824142456,
0.023780521005392075,
0.05946566164493561,
0.028133518993854523,
0.14587117731571198,
0.14479713141918182,
0.20503628253936768,
0.010779189877212048,
0.11702797561883926,
0.09324774891138077,
0.0910387933254242,
0.08385542780160904,
-0.29344937205314636,
0.26234933733940125,
-0.12499161809682846,
-0.45296186208724976,
0.056927070021629333,
-0.07049018889665604,
-0.25043395161628723,
0.02440507523715496,
0.10592319071292877,
0.2930751442909241,
-0.22477908432483673,
0.04231811314821243,
-0.046464864164590836,
-0.23834997415542603,
-0.3965625464916229,
0.20394442975521088,
-0.1147942766547203,
-0.19836701452732086,
0.2978394627571106,
-0.10707416385412216,
-0.30556443333625793,
-0.02805890329182148,
0.2836197316646576,
0.029985323548316956,
0.1521654576063156,
0.5996190905570984,
-0.07733074575662613,
-0.11564122885465622,
-0.43164515495300293,
0.09796019643545151,
0.3189346492290497,
0.14947539567947388,
0.24774011969566345,
-0.18954482674598694,
-0.24317926168441772,
0.07211880385875702,
0.18855077028274536,
0.03789208084344864,
0.145327627658844,
-0.24025830626487732,
-0.2921876311302185,
-0.4588644802570343,
0.004602379631251097,
-0.17039023339748383,
0.21147212386131287,
0.1943896859884262,
0.44132813811302185,
-0.13522377610206604,
0.2366546392440796,
-0.4279208481311798,
-0.0372963510453701,
-0.4685044586658478,
0.24837230145931244,
-0.04784021154046059,
-0.09035017341375351,
0.045087650418281555,
0.05139010772109032,
0.30589309334754944,
0.22088196873664856,
-0.057661235332489014,
-0.3870592415332794,
-0.0921495109796524,
0.0931527242064476,
0.10928041487932205,
0.014330522157251835,
0.19763894379138947,
0.21313261985778809,
-0.22416096925735474,
-0.2637850344181061,
0.10435886681079865,
0.12850911915302277,
-0.08723367005586624,
0.07877612113952637,
0.18168306350708008,
0.03261446952819824,
-0.025690948590636253,
-0.33613064885139465,
-0.0561857707798481,
0.03207751363515854,
-0.06676090508699417,
0.33044305443763733,
0.03132474794983864,
-0.05450893193483353,
0.09978052228689194,
0.05938117951154709,
0.2828299105167389,
0.22852474451065063,
0.030652955174446106,
-0.10304857790470123,
-0.3491647243499756,
-0.002898372942581773,
0.38467511534690857,
0.24404479563236237,
-0.24257676303386688,
-0.0939171314239502,
0.21903449296951294,
0.31673020124435425,
-0.2319253385066986,
-0.07277493178844452,
0.25969821214675903,
-0.38001176714897156,
0.3790823817253113,
0.2261146605014801,
0.00720652611926198,
0.18527035415172577,
0.11054456233978271,
0.0050977920182049274,
0.22658361494541168,
-0.39736807346343994,
-0.011979714035987854,
0.09004449844360352,
-0.141069695353508,
0.19856251776218414,
0.44924136996269226,
0.07346692681312561,
0.24628989398479462,
0.3410066068172455,
0.014755609445273876,
0.5114741921424866,
-0.12468603253364563,
0.07249420881271362,
0.05890935659408569,
-0.04156835377216339,
0.33118680119514465,
-0.0005667493096552789,
-0.03479746729135513,
0.008965354412794113,
-0.08801187574863434,
0.30547913908958435,
-0.33362603187561035,
-0.05286792293190956,
-0.21244435012340546,
0.3687889575958252,
-0.19148322939872742,
-0.38564035296440125,
-0.23804737627506256,
-0.08182977885007858,
-0.14134980738162994,
-0.07851611077785492,
-0.019069677218794823,
0.197313591837883,
0.04518941417336464,
-0.08204193413257599,
0.013133984990417957,
-0.22125379741191864,
-0.019214723259210587,
-0.0783584788441658,
0.13081981241703033,
-0.26260045170783997,
0.20014938712120056,
0.13147009909152985,
0.14044231176376343,
-0.16711142659187317,
0.6095545291900635,
0.5709314346313477,
0.3046991527080536,
-0.1988585889339447,
-0.1260322779417038,
-0.3344714641571045,
-0.13865430653095245,
-0.2002345770597458,
0.2863619327545166,
0.000316687801387161,
-0.1747991293668747,
0.26251569390296936,
0.27722451090812683,
-0.26587778329849243,
-0.15649691224098206,
0.41903528571128845,
-0.17714475095272064,
0.12258666753768921,
0.16750849783420563,
0.1353609263896942,
-0.2269662618637085,
0.07329605519771576,
0.10387030988931656,
-0.3389842212200165,
-0.034556545317173004,
0.29963502287864685,
-0.23579518496990204,
0.3266508877277374,
-0.13107527792453766,
0.1637846827507019,
0.0463034063577652,
0.45075130462646484,
0.0503232441842556,
0.173929825425148,
-0.3142850697040558,
-0.13315266370773315,
-0.5782245397567749,
0.2144247442483902,
-0.16886574029922485,
-0.36480411887168884,
-0.1931370347738266,
0.15718376636505127,
0.10294921696186066,
0.10655493289232254,
0.24093008041381836,
0.07789506018161774,
-0.1090172603726387,
0.21870985627174377,
-0.36192119121551514,
0.08695419132709503,
0.17559508979320526,
0.0519847571849823,
0.20431867241859436,
-0.4335595667362213,
0.20952384173870087,
-0.001467112684622407,
0.2383018583059311,
-0.01449754647910595,
0.034777045249938965,
0.18141983449459076,
-0.34012487530708313,
0.27462923526763916,
0.10931306332349777,
0.525728702545166,
-0.4383835792541504,
0.09104404598474503,
-0.1269073486328125,
0.16063080728054047,
-0.44192883372306824,
0.05747237801551819,
0.24140958487987518,
0.18923600018024445,
0.08728466182947159,
-0.03114742785692215,
-0.13156653940677643,
0.1188577264547348,
0.23625528812408447,
-0.09222303330898285,
-0.013923393562436104,
0.3029528260231018,
0.10600650310516357,
0.07488629966974258,
-0.10648848861455917,
0.3399720788002014,
-0.022549662739038467,
0.273177832365036,
-0.4903121292591095,
-0.4749886393547058,
0.3061774671077728,
-0.5121244192123413,
-0.49216610193252563,
-0.3859885334968567,
0.288735955953598,
-0.09396864473819733,
0.09359264373779297,
-0.3449762463569641,
-0.011236712336540222,
0.28837671875953674,
0.10603496432304382,
-0.5911827087402344,
0.18089622259140015,
0.08866006135940552,
-0.04504202678799629,
-0.08898356556892395,
0.32493600249290466,
0.007715357001870871,
-0.15119394659996033,
-0.021181318908929825,
-0.10206104815006256
] |
https://github.com/huggingface/datasets/issues/846 | Add HoVer multi-hop fact verification dataset | Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies? | ## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 23 | Add HoVer multi-hop fact verification dataset
## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies? | [
-0.2272990643978119,
-0.08233214169740677,
0.00033864332363009453,
0.1499359905719757,
-0.40595048666000366,
-0.03460044413805008,
0.1919763684272766,
0.10570194572210312,
0.09617801010608673,
-0.14476270973682404,
-0.047181613743305206,
-0.1035466343164444,
-0.2635313868522644,
0.2344668060541153,
0.21328479051589966,
-0.05957306921482086,
-0.15929140150547028,
-0.19479064643383026,
0.11156097054481506,
0.009325387887656689,
-0.011955386959016323,
0.013074756599962711,
-0.20156162977218628,
0.004505619872361422,
-0.5718674659729004,
0.033075135201215744,
-0.2534197270870209,
-0.15480342507362366,
0.08582932502031326,
-0.3601928651332855,
0.20603804290294647,
0.6282491683959961,
0.1120474711060524,
0.5196279883384705,
-0.00011653683759504929,
-0.3225642442703247,
0.16292501986026764,
0.05322392284870148,
-0.2220105528831482,
-0.08756642788648605,
-0.23451314866542816,
0.008583595044910908,
0.09813115745782852,
-0.1646173745393753,
0.0027160258032381535,
0.00036896957317367196,
-0.34506669640541077,
0.016951439902186394,
0.2611083984375,
0.14500276744365692,
0.17915405333042145,
0.20807933807373047,
-0.10051954537630081,
0.002297823317348957,
0.22886942327022552,
-0.05324627831578255,
0.024070732295513153,
0.5337883234024048,
0.12783296406269073,
0.008216959424316883,
-0.3305615186691284,
0.2556031346321106,
-0.04823413863778114,
0.0952410101890564,
0.02966877445578575,
-0.21658220887184143,
0.20728175342082977,
-0.02487981505692005,
-0.18476839363574982,
0.6821912527084351,
0.11132016032934189,
-0.1358938217163086,
-0.36268383264541626,
-0.17808681726455688,
0.14151182770729065,
0.19105561077594757,
0.010854803025722504,
0.08377864211797714,
-0.37189435958862305,
0.2523227632045746,
-0.20557312667369843,
-0.43190646171569824,
-0.05092228949069977,
0.061959195882081985,
0.3457695543766022,
0.17885734140872955,
-0.01374917384237051,
0.1511368751525879,
0.28332212567329407,
0.16855688393115997,
0.17218801379203796,
-0.3932563364505768,
0.1634170264005661,
-0.061280351132154465,
-0.24622032046318054,
-0.3360615074634552,
0.30166029930114746,
0.4368487298488617,
0.32932138442993164,
0.408415287733078,
0.19782225787639618,
0.14902262389659882,
-0.3179817497730255,
0.008550983853638172,
0.10675062984228134,
-0.1359967738389969,
-0.3658551573753357,
-0.4572271704673767,
0.34803155064582825,
0.041077546775341034,
0.17149758338928223,
0.08781766146421432,
0.08929422497749329,
0.28671762347221375,
-0.3137620687484741,
0.109637551009655,
0.12906692922115326,
-0.21296043694019318,
-0.1475042849779129,
0.11708790063858032,
-0.47807344794273376,
-0.41296622157096863,
0.12778927385807037,
-0.1038539856672287,
-0.05013328418135643,
0.31270939111709595,
0.23552608489990234,
0.16940933465957642,
0.16469164192676544,
-0.3821563124656677,
-0.10320168733596802,
0.35808584094047546,
-0.08517269045114517,
0.17193251848220825,
0.2503608167171478,
0.137854665517807,
-0.159897118806839,
-0.007885636761784554,
0.24751737713813782,
0.11924400925636292,
0.1588481068611145,
-0.292892724275589,
-0.09502803534269333,
-0.20734895765781403,
-0.22179760038852692,
-0.08616191148757935,
0.04052065312862396,
-0.17739658057689667,
-0.05801045894622803,
0.12054978311061859,
0.12899743020534515,
-0.27661097049713135,
-0.09559568017721176,
0.11327056586742401,
-0.504751980304718,
-0.07602642476558685,
-0.432344526052475,
0.5820619463920593,
-0.08950397372245789,
0.23449081182479858,
-0.006996575277298689,
0.16987711191177368,
0.028358960524201393,
-0.04244339093565941,
0.07306212931871414,
0.4558425545692444,
0.0693434402346611,
-0.06326659023761749,
-0.18610674142837524,
-0.020327124744653702,
-0.14980743825435638,
-0.14191526174545288,
-0.04073696210980415,
0.346203088760376,
-0.1862291544675827,
0.07489346712827682,
0.1125301793217659,
-0.4129195511341095,
-0.07666733860969543,
0.26782864332199097,
-0.3645823001861572,
0.07790233194828033,
0.34617698192596436,
0.16960106790065765,
0.015096493065357208,
-0.351581871509552,
-0.2433547079563141,
0.578918993473053,
-0.019144494086503983,
0.0034199324436485767,
-0.457888126373291,
-0.09630180895328522,
0.01293773390352726,
0.22650393843650818,
0.07874714583158493,
-0.3378923535346985,
-0.05352775752544403,
0.30430811643600464,
0.31115487217903137,
-0.03932900354266167,
0.22383283078670502,
-0.058061666786670685,
0.21084751188755035,
-0.6122572422027588,
-0.02779960446059704,
-0.19502943754196167,
-0.16230754554271698,
-0.08379361033439636,
0.29591917991638184,
0.4300268590450287,
0.3091979920864105,
-0.13488182425498962,
-0.12955385446548462,
-0.09975910931825638,
-0.2761281728744507,
-0.41818079352378845,
0.14648349583148956,
0.30871284008026123,
0.15754394233226776,
0.06183241680264473,
-0.0519818440079689,
-0.038178134709596634,
0.08857342600822449,
0.016005119308829308,
0.10074304044246674,
0.46835023164749146,
-0.011654917150735855,
0.0949854850769043,
0.008957655169069767,
0.37448838353157043,
-0.1441875696182251,
-0.27359530329704285,
0.04916755110025406,
0.43181800842285156,
-0.259318470954895,
-0.0692741870880127,
0.7123364806175232,
0.2589344382286072,
0.31654515862464905,
-0.43103280663490295,
0.21044017374515533,
-0.016712291166186333,
0.12576059997081757,
-0.14464981853961945,
-0.24686743319034576,
0.3453978896141052,
0.10532642900943756,
0.1579200178384781,
-0.06184791028499603,
0.14284975826740265,
0.07961413264274597,
-0.1416085809469223,
-0.2880893349647522,
-0.017371511086821556,
0.440011203289032,
0.012646479532122612,
0.22790172696113586,
-0.2999400794506073,
-0.07066147029399872,
0.2726605236530304,
-0.08128636330366135,
0.03993959352374077,
0.2333286851644516,
0.16114775836467743,
-0.043343525379896164,
-0.2864331901073456,
-0.02944479137659073,
0.1646224707365036,
0.3358064591884613,
0.17401878535747528,
0.2849568724632263,
-0.06597587466239929,
0.06293006241321564,
-0.09057144075632095,
0.20975306630134583,
-0.19039715826511383,
-0.2169685661792755,
0.04363396018743515,
0.0624600425362587,
0.02545100264251232,
-0.13613900542259216,
-0.49845173954963684,
0.23666608333587646,
0.36108577251434326,
-0.15825781226158142,
-0.11052405834197998,
-0.16881021857261658,
-0.30750757455825806,
-0.192227303981781,
-0.34181490540504456,
-0.21884381771087646,
-0.43178316950798035,
0.009506596252322197,
0.051006484776735306,
0.27498459815979004,
0.36184847354888916,
0.24754443764686584,
0.48541733622550964,
-0.048230141401290894,
0.40109580755233765,
-0.10884103178977966,
-0.15639740228652954,
-0.03411179035902023,
0.1446637213230133,
0.22567547857761383,
0.14142867922782898,
0.47246140241622925,
0.0736725851893425,
0.17838385701179504,
-0.23519191145896912,
-0.35865163803100586,
0.21056416630744934,
-0.01597648859024048,
0.22866976261138916,
0.23411114513874054,
0.049963075667619705,
0.2000393271446228,
0.21427814662456512,
0.15776456892490387,
0.001524916966445744,
-0.14171287417411804,
0.1305214911699295,
-0.13217413425445557,
0.009781072847545147,
-0.10546884685754776,
0.18493770062923431,
-0.2513539493083954,
-0.1153515949845314,
0.3771844208240509,
0.028877492994070053,
-0.08702854067087173,
0.02138771302998066,
-0.1146048828959465,
0.3248681128025055,
-0.1924210637807846,
0.029450692236423492,
-0.2875555157661438,
-0.5863475799560547,
-0.02350584790110588,
-0.0817512646317482,
-0.025594118982553482,
-0.3916584551334381,
-0.31420743465423584,
0.15211163461208344,
-0.1375468373298645,
-0.5253844261169434,
-0.33998405933380127,
0.0022228159941732883,
0.2595576345920563,
0.15217271447181702,
0.04313904419541359,
0.24126271903514862,
-0.10674429684877396,
-0.10256905108690262,
0.04142601415514946,
0.06722915172576904,
0.08828476816415787,
-0.1683744490146637,
0.3496380150318146,
0.22705350816249847,
-0.11187735199928284,
0.5127784609794617,
0.4072452485561371,
0.10616899281740189,
0.06392624974250793,
0.22012808918952942,
-0.06864272803068161,
0.07772921025753021,
0.1895666867494583,
-0.5597389936447144,
0.4821091294288635,
-0.031890518963336945,
-0.05082443729043007,
-0.03699560463428497,
-0.131505087018013,
0.24486364424228668,
-0.297107070684433,
0.07029999047517776,
-0.06702394038438797,
-0.2937929928302765,
0.12640082836151123,
-0.3778003454208374,
0.12396847456693649,
0.10893815755844116,
-0.3209063410758972,
-0.12429352104663849,
-0.21897603571414948,
0.14180287718772888,
0.2942289710044861,
0.22773873805999756,
-0.2954148054122925,
-0.06687605381011963,
-0.0950343906879425,
-0.3934739828109741,
0.3894406259059906,
0.06615789234638214,
-0.09003302454948425,
0.11268821358680725,
-0.004427550360560417,
-0.0039528738707304,
0.09221487492322922,
0.41806748509407043,
-0.5143921971321106,
0.1353331208229065,
0.1167924627661705,
0.03368810564279556,
-0.5341307520866394,
0.033939581364393234,
-0.4302004873752594,
-0.06276441365480423,
0.17732326686382294,
0.04358721897006035,
-0.4558318853378296,
-0.1331998109817505,
0.7585170865058899,
0.04486296325922012,
0.0005281037301756442,
-0.3360905647277832,
0.11096165329217911,
0.06611821055412292,
-0.24604026973247528,
0.0561072900891304,
-0.009907083585858345,
0.020870527252554893,
-0.06610288470983505,
0.03467438742518425,
0.22535297274589539,
0.11616937071084976,
0.39216431975364685,
0.02355058491230011,
-0.13760797679424286,
0.2696411609649658,
0.0850263461470604,
-0.21228337287902832,
-0.30363520979881287,
0.17364022135734558,
0.153845876455307,
-0.010286547243595123,
-0.08469392359256744,
0.07962951809167862,
-0.0378931500017643,
0.25714027881622314,
0.3785800337791443,
0.059766944497823715,
0.368582159280777,
0.07228977978229523,
0.2682339549064636,
-0.217176616191864,
0.17673859000205994,
-0.11007793992757797,
0.001099536195397377,
0.0037901217583566904,
-0.19435545802116394,
0.4577752947807312,
0.08860921114683151,
-0.1785667985677719,
-0.18373487889766693,
-0.10823854058980942,
-0.023682989180088043,
-0.0018278846982866526,
0.053235333412885666,
1.2627148628234863,
0.24548663198947906,
-0.013365690596401691,
0.2612294554710388,
0.18886390328407288,
0.4842992126941681,
-0.49831825494766235,
-0.27378523349761963,
-0.1867615133523941,
-0.02947310172021389,
-0.1651689112186432,
-0.32715481519699097,
-0.0046536605805158615,
0.1926649510860443,
-0.35921236872673035,
-0.11460591852664948,
0.12746915221214294,
0.021014194935560226,
0.044356945902109146,
0.5635523796081543,
-0.08758142590522766,
-0.2835758328437805,
0.24533474445343018,
0.16947710514068604,
-0.2909676730632782,
0.09915173798799515,
-0.1385646015405655,
-0.1920527219772339,
-0.14448301494121552,
-0.20572613179683685,
-0.4938209056854248,
-0.13060607016086578,
-0.10884413868188858,
0.11455226689577103,
-0.23448917269706726,
-0.3886842131614685,
-0.05012648552656174,
-0.556772768497467,
0.1295868307352066,
0.02992212399840355,
-0.20186559855937958,
-0.11303838342428207,
-0.15472961962223053,
-0.08670345693826675,
0.0413505844771862,
-0.28356361389160156,
0.2741185128688812,
0.015172187238931656,
-0.44937384128570557,
0.14591334760189056,
0.033993519842624664,
-0.13737960159778595,
0.44558361172676086,
-0.04263097792863846,
0.3611060678958893,
0.07611861824989319,
0.2114388346672058,
0.43440577387809753,
-0.2108473777770996,
-0.1954820156097412,
0.1394939124584198,
0.3742079436779022,
-0.30207449197769165,
0.14987382292747498,
0.07832697033882141,
0.04749847203493118,
-0.14048001170158386,
0.30553117394447327,
0.27632540464401245,
-0.12677593529224396,
0.12180323898792267,
0.17437122762203217,
-0.14804930984973907,
-0.26864346861839294,
0.4009837210178375,
0.08402395248413086,
-0.4870322346687317,
0.037053853273391724,
-0.17439475655555725,
-0.19998709857463837,
-0.2373298853635788,
0.23777568340301514,
0.4147130250930786,
0.4652636647224426,
0.04487891122698784,
-0.5292450189590454,
0.009429185651242733,
0.251182496547699,
-0.3439129889011383,
-0.04463796690106392,
-0.5093987584114075,
0.621228814125061,
0.2525547444820404,
0.23083196580410004,
-0.3422257602214813,
0.23472334444522858,
-0.13923807442188263,
-0.11071734875440598,
0.43953755497932434,
-0.25617435574531555,
0.12689630687236786,
0.09967268258333206,
0.09840721637010574,
0.12351195514202118,
-0.10386240482330322,
-0.18791255354881287,
-0.2445528209209442,
0.1251426339149475,
0.05260835960507393,
-0.06739819794893265,
0.1634921431541443,
0.04727589339017868,
-0.0400860533118248,
-0.024209123104810715,
-0.09849298745393753,
-0.10405638068914413,
0.03537549078464508,
0.08727353811264038,
-0.053979381918907166,
-0.046809323132038116,
-0.2468535602092743,
-0.05261029303073883,
0.15957237780094147,
0.18539385497570038,
0.0085848867893219,
0.058954156935214996,
-0.029448838904500008,
-0.08784875273704529,
-0.06073093041777611,
0.22670666873455048,
0.025972560048103333,
0.06329970061779022,
-0.0865546464920044,
-0.008277392014861107,
-0.07000995427370071,
0.4451746344566345,
0.4849706292152405,
0.23257631063461304,
-0.11891739070415497,
0.10473397374153137,
-0.11956595629453659,
0.18046151101589203,
-0.3028203547000885,
0.2973516583442688,
0.1752167046070099,
0.17315901815891266,
0.18615572154521942,
0.47838467359542847,
-0.03839115425944328,
0.03649072349071503,
0.18090133368968964,
-0.052531905472278595,
0.23584283888339996,
-0.2555926740169525,
-0.1147485077381134,
-0.1154722198843956,
-0.2953892648220062,
0.1107538640499115,
0.26946160197257996,
0.17862491309642792,
0.1760024130344391,
-0.12216690182685852,
0.006034516729414463,
0.05493590235710144,
0.09069371223449707,
0.08944573253393173,
0.2672555446624756,
-0.2129656970500946,
0.4202231168746948,
0.2588842511177063,
0.04998070001602173,
-0.09941942244768143,
0.08527414500713348,
0.6111461520195007,
-0.23405537009239197,
-0.033997248858213425,
-0.360817551612854,
0.22456391155719757,
0.023709075525403023,
0.11854122579097748,
0.014038979075849056,
-0.20337481796741486,
-0.3663739860057831,
-0.3091669976711273,
-0.07432886958122253,
-0.1315099149942398,
0.440682590007782,
0.11552634090185165,
0.21830013394355774,
-0.2886617183685303,
-0.3951534032821655,
0.08449432253837585,
0.2169116586446762,
-0.35210394859313965,
0.044131554663181305,
0.42303675413131714,
0.05238362029194832,
0.011110972613096237,
0.6570655703544617,
0.18667231500148773,
-0.13374412059783936,
-0.31928160786628723,
0.12013126909732819,
-0.33578550815582275,
0.03000910021364689,
-0.02761087566614151,
0.17264455556869507,
0.5718488693237305,
-0.09832988679409027,
0.19776183366775513,
0.0498352125287056,
-0.2692710757255554,
0.4436637759208679,
0.24081426858901978,
0.037160128355026245,
-0.5864853858947754,
0.05415606126189232,
0.038103312253952026,
0.16150231659412384,
-0.17077969014644623,
-0.007886362262070179,
-0.36888250708580017,
-0.14261074364185333,
0.049899447709321976,
-0.26345714926719666,
-0.08250225335359573,
-0.16834092140197754,
0.05255007743835449,
-0.13410153985023499,
0.22858880460262299,
0.44103237986564636,
-0.009619927033782005,
-0.3868287205696106,
-0.29210329055786133,
-0.6059039235115051,
0.0989549458026886,
0.02678086794912815,
-0.20235976576805115,
-0.4342106878757477,
0.2664535641670227,
0.17983436584472656,
0.7058992981910706,
0.1808883547782898,
-0.26683467626571655,
0.14243407547473907,
0.16243934631347656,
-0.38430193066596985,
0.16875645518302917,
0.09060478210449219,
-0.12432104349136353,
0.18928569555282593,
0.10488028079271317,
-0.017544621601700783,
0.33356326818466187,
0.056172728538513184,
-0.017239388078451157,
-0.5416665077209473,
0.322541207075119,
0.2993496358394623,
0.30922651290893555,
-0.02279340662062168,
0.49587246775627136,
0.0934569463133812,
-0.1722734272480011,
-0.06671962141990662,
0.09590205550193787,
0.1008075550198555,
0.5742013454437256,
-0.016035471111536026,
0.19342173635959625,
-0.011890275403857231,
-0.0537695549428463,
-0.09877262264490128,
-0.24745570123195648,
-0.09659884124994278,
0.010938327759504318,
-0.442147433757782,
0.005992316175252199,
-0.04987025260925293,
0.3267239034175873,
0.001891329069621861,
0.14540372788906097,
-0.055049799382686615,
0.34610113501548767,
-0.055059388279914856,
-0.19852681457996368,
0.3473353981971741,
0.15765021741390228,
-0.004852913320064545,
-0.27757224440574646,
0.3810523748397827,
-0.8294072151184082,
-0.19157908856868744,
-0.5885869860649109,
-0.3144221901893616,
0.36457109451293945,
0.09715056419372559,
-0.07419570535421371,
0.1580604612827301,
-0.21043136715888977,
0.027230219915509224,
0.030188435688614845,
0.3414422869682312,
-0.19166000187397003,
-0.1499207317829132,
-0.07010102272033691,
-0.0429636649787426
] |
https://github.com/huggingface/datasets/issues/846 | Add HoVer multi-hop fact verification dataset | Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here:
https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md | ## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 39 | Add HoVer multi-hop fact verification dataset
## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here:
https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md | [
-0.286743700504303,
-0.2775804400444031,
-0.08202367275953293,
0.022968648001551628,
-0.2790862023830414,
-0.12419363111257553,
0.1645181030035019,
0.11470865458250046,
0.09816402196884155,
0.14873318374156952,
-0.09630386531352997,
0.05982744321227074,
-0.09502258896827698,
0.29815196990966797,
0.2122938483953476,
-0.10315398871898651,
-0.13134820759296417,
-0.04845964163541794,
-0.07887594401836395,
0.038844507187604904,
0.03364132344722748,
0.13237716257572174,
-0.10980147868394852,
-0.0514858216047287,
-0.3951326608657837,
-0.011697666719555855,
-0.15286867320537567,
-0.14219185709953308,
0.17676661908626556,
-0.34709158539772034,
0.07900318503379822,
0.45573148131370544,
-0.03801465034484863,
0.3522498607635498,
-0.00010600549285300076,
-0.16245032846927643,
0.13360154628753662,
0.04366874322295189,
-0.2459268867969513,
0.08309079706668854,
-0.08094745129346848,
0.07289965450763702,
0.14751175045967102,
-0.09741882979869843,
-0.14654354751110077,
-0.04169633612036705,
-0.23588944971561432,
0.137357696890831,
0.35291194915771484,
0.1512063443660736,
0.2692034840583801,
0.37448757886886597,
-0.090969979763031,
-0.1768822968006134,
0.14661450684070587,
-0.11516696214675903,
0.03396378830075264,
0.474783718585968,
0.059978947043418884,
-0.01175595074892044,
-0.44768258929252625,
0.4065053164958954,
0.000920795660931617,
0.16964849829673767,
-0.11792828142642975,
-0.10645230114459991,
0.1529264748096466,
-0.07464321702718735,
-0.04373040050268173,
0.6290507316589355,
-0.13495860993862152,
-0.14677633345127106,
-0.3264872133731842,
-0.24911046028137207,
0.042812082916498184,
0.13434694707393646,
0.04430096223950386,
0.14908048510551453,
-0.2735668420791626,
0.20225019752979279,
-0.21493275463581085,
-0.09401198476552963,
-0.02987045794725418,
0.05262291431427002,
0.21327918767929077,
0.16905850172042847,
-0.10910827666521072,
-0.023435767740011215,
0.3585718870162964,
0.15951690077781677,
-0.035753682255744934,
-0.24319656193256378,
0.1687719076871872,
-0.18600328266620636,
-0.06060078367590904,
-0.2975720763206482,
0.289840966463089,
0.3649701476097107,
0.367105096578598,
0.3012630343437195,
0.2652044892311096,
0.15825046598911285,
-0.24830983579158783,
0.0941537395119667,
-0.06874680519104004,
-0.09530889242887497,
-0.2874860465526581,
-0.5833562016487122,
0.34750571846961975,
0.23141592741012573,
0.12969891726970673,
0.07800974696874619,
0.17832036316394806,
0.25159645080566406,
-0.39006489515304565,
0.08369407802820206,
-0.16118566691875458,
-0.14408473670482635,
-0.18613342940807343,
0.10619652271270752,
-0.32536134123802185,
-0.12504516541957855,
0.05488668754696846,
0.0711381807923317,
-0.10081878304481506,
0.3313430845737457,
0.18492722511291504,
0.09176718443632126,
0.08346877247095108,
-0.30772989988327026,
-0.21070583164691925,
0.33821606636047363,
-0.03270089253783226,
0.19338718056678772,
0.249116450548172,
0.08625016361474991,
0.1802135556936264,
0.11435391008853912,
0.22169074416160583,
0.030458709225058556,
0.16322241723537445,
-0.26516515016555786,
0.0008840470109134912,
-0.07099611312150955,
-0.09510587900876999,
-0.22645454108715057,
0.07638572156429291,
-0.18936176598072052,
-0.12720781564712524,
-0.10043197870254517,
0.10269226878881454,
-0.14653614163398743,
-0.1066596657037735,
0.21350465714931488,
-0.3886556327342987,
-0.1913704127073288,
-0.2606023848056793,
0.47593992948532104,
-0.17305825650691986,
0.26800471544265747,
0.09656959027051926,
0.23440082371234894,
0.11718524247407913,
0.008359123021364212,
0.16052912175655365,
0.3687475621700287,
0.12127808481454849,
-0.2506895661354065,
0.03312942013144493,
-0.0858481153845787,
-0.17671449482440948,
-0.0707862451672554,
-0.04860300198197365,
0.21609507501125336,
-0.21606315672397614,
0.18569807708263397,
-0.037908151745796204,
-0.31637871265411377,
-0.11670909821987152,
0.07206056267023087,
-0.3015661835670471,
0.08786627650260925,
0.26804494857788086,
0.08022645115852356,
0.054341383278369904,
-0.10529717803001404,
-0.16612471640110016,
0.5198565125465393,
0.09676827490329742,
0.19076664745807648,
-0.3441915810108185,
-0.16779384016990662,
-0.23221933841705322,
0.17963725328445435,
-0.013558117672801018,
-0.3202839493751526,
0.011875995434820652,
0.23932409286499023,
0.3109695315361023,
-0.09908875823020935,
0.13303683698177338,
0.07124096155166626,
0.10444983839988708,
-0.4205799698829651,
-0.10689324140548706,
-0.21722500026226044,
-0.08728527277708054,
-0.11557435989379883,
0.052144862711429596,
0.40671399235725403,
0.16214841604232788,
-0.22236885130405426,
-0.21389181911945343,
-0.06038174033164978,
-0.12633849680423737,
-0.4186025857925415,
0.315072238445282,
0.40574535727500916,
0.17840813100337982,
0.13477477431297302,
0.07227595150470734,
-0.05472750961780548,
0.0883350670337677,
0.1120368242263794,
0.10673174262046814,
0.28691864013671875,
-0.046447739005088806,
-0.05715512856841087,
0.2328544706106186,
0.2236228585243225,
-0.1332373321056366,
-0.20888853073120117,
0.10522349178791046,
0.4635673463344574,
-0.23984220623970032,
0.10555429011583328,
0.5500935316085815,
0.32640424370765686,
0.17263072729110718,
-0.31314340233802795,
0.10958714038133621,
0.07894378155469894,
0.06649550050497055,
0.08658472448587418,
-0.3467352092266083,
0.42701682448387146,
0.2828144431114197,
0.05564587190747261,
0.09295950829982758,
0.12657348811626434,
0.20599336922168732,
-0.11934585869312286,
-0.20361508429050446,
-0.1794459968805313,
0.3633715808391571,
-0.02553667686879635,
0.2383510172367096,
-0.2011656016111374,
-0.17283454537391663,
0.2690054774284363,
0.09631391614675522,
0.1139981746673584,
0.39393144845962524,
0.1579202264547348,
-0.3027704656124115,
-0.37432941794395447,
0.08895722031593323,
0.032221052795648575,
0.009488459676504135,
0.2932664752006531,
0.373600035905838,
-0.12316154688596725,
-0.06324845552444458,
-0.23459367454051971,
0.2791767418384552,
-0.2151179015636444,
-0.29669472575187683,
0.10722257941961288,
0.1757373809814453,
-0.07948602735996246,
-0.407374769449234,
-0.4114881157875061,
-0.037474896758794785,
0.08194293081760406,
-0.0628042072057724,
-0.07276745140552521,
-0.1820838302373886,
-0.336784303188324,
-0.10731100291013718,
-0.20509308576583862,
-0.20287354290485382,
-0.37386849522590637,
0.16554507613182068,
0.18471327424049377,
0.07968109101057053,
0.3150452971458435,
0.1682983785867691,
0.5256704688072205,
0.048397473990917206,
0.43004876375198364,
-0.11322247982025146,
-0.1184881180524826,
-0.0463092066347599,
0.22726571559906006,
-0.03511513024568558,
0.13833191990852356,
0.4301139712333679,
0.032306089997291565,
0.10551711171865463,
-0.13463187217712402,
-0.3381766676902771,
0.3274393081665039,
0.018978960812091827,
0.07846587896347046,
0.24994584918022156,
0.05619253218173981,
0.23569774627685547,
0.15940192341804504,
0.1428953856229782,
-0.15699702501296997,
-0.16309425234794617,
0.1478891372680664,
-0.126554474234581,
0.06575500220060349,
-0.22589609026908875,
0.17274318635463715,
-0.13133813440799713,
-0.19511717557907104,
0.4276387095451355,
0.041109632700681686,
-0.06474818289279938,
0.19866278767585754,
-0.028746433556079865,
0.3513505160808563,
-0.3559432029724121,
0.23933351039886475,
-0.2662971019744873,
-0.558060348033905,
0.04628811031579971,
-0.23788928985595703,
-0.07499738782644272,
-0.4700529873371124,
-0.39988046884536743,
0.13434761762619019,
-0.12884759902954102,
-0.47240784764289856,
-0.492214173078537,
-0.2050071656703949,
0.23396070301532745,
0.1317838877439499,
0.00749697582796216,
0.31998246908187866,
-0.11777610331773758,
-0.2865698039531708,
-0.013558984734117985,
0.07796992361545563,
0.17637182772159576,
-0.21826781332492828,
0.17915944755077362,
0.06883513182401657,
-0.17950934171676636,
0.5941288471221924,
0.33410635590553284,
0.05100240930914879,
-0.06257794052362442,
0.22475993633270264,
-0.161502406001091,
0.03837605565786362,
0.13825641572475433,
-0.28098025918006897,
0.25560617446899414,
-0.037905123084783554,
0.11966301500797272,
0.15818212926387787,
-0.1470266729593277,
0.24902266263961792,
-0.2720155119895935,
-0.009146235883235931,
-0.1886364370584488,
-0.34086108207702637,
0.08591067045927048,
-0.19386953115463257,
0.1196763888001442,
-0.058490555733442307,
-0.23997433483600616,
-0.015159618109464645,
-0.12194263935089111,
0.25620952248573303,
0.11717893928289413,
0.16710488498210907,
-0.28669294714927673,
-0.0003815049713011831,
-0.06842078268527985,
-0.3204258382320404,
0.3787929117679596,
0.11809592694044113,
-0.1601743847131729,
0.10362342745065689,
-0.18998464941978455,
-0.06983335316181183,
0.022060973569750786,
0.28068360686302185,
-0.3590145707130432,
0.1685781329870224,
-0.07367812097072601,
-0.12629951536655426,
-0.49301081895828247,
0.1724652796983719,
-0.6214958429336548,
-0.23099346458911896,
0.22845543920993805,
0.09479917585849762,
-0.5830438733100891,
-0.13534420728683472,
0.6615110039710999,
-0.03213103115558624,
0.04624960944056511,
-0.10486748814582825,
0.03951849043369293,
0.032097868621349335,
-0.21985399723052979,
0.14949405193328857,
-0.023657845333218575,
-0.08905421197414398,
-0.06537757068872452,
-0.05963469669222832,
0.1529758870601654,
-0.04614678770303726,
0.14301005005836487,
0.21166671812534332,
-0.08762330561876297,
0.24342133104801178,
-0.10068880021572113,
-0.210938960313797,
-0.13484522700309753,
0.07491328567266464,
0.07121866941452026,
0.08368401229381561,
-0.030553879216313362,
-0.12035389244556427,
0.026412151753902435,
0.058853913098573685,
0.3391483426094055,
0.056436073035001755,
0.4760083556175232,
0.035745784640312195,
0.36728519201278687,
-0.2276153713464737,
0.28973305225372314,
-0.0722121149301529,
-0.04541623592376709,
0.27440205216407776,
0.00042567969649098814,
0.5121606588363647,
0.07454101741313934,
-0.1095569059252739,
-0.2221311628818512,
-0.07299206405878067,
-0.1039227694272995,
0.03804856166243553,
0.13246041536331177,
1.1257492303848267,
0.32896262407302856,
0.03779256343841553,
0.32255104184150696,
0.10114561766386032,
0.4174521565437317,
-0.37234261631965637,
-0.07809101790189743,
-0.11759626865386963,
-0.1119004338979721,
-0.07548651099205017,
-0.10835199058055878,
-0.06850544363260269,
0.08305239677429199,
-0.411977618932724,
-0.0901862382888794,
0.09353840351104736,
-0.03786275535821915,
0.00575941102579236,
0.35823720693588257,
-0.22349503636360168,
-0.3446008861064911,
0.0054323505610227585,
0.252728670835495,
-0.25973424315452576,
0.12202352285385132,
-0.05104074627161026,
-0.1156577542424202,
-0.04209046810865402,
-0.21229009330272675,
-0.35576412081718445,
-0.07914216816425323,
-0.11584899574518204,
0.01639832928776741,
-0.1187102273106575,
-0.26031628251075745,
-0.39319485425949097,
-0.47221657633781433,
0.1464756727218628,
0.16688354313373566,
-0.23644135892391205,
-0.03383631259202957,
-0.21055150032043457,
-0.14736364781856537,
0.06039794906973839,
-0.13468141853809357,
0.19462552666664124,
-0.024295199662446976,
-0.33633336424827576,
0.07355603575706482,
0.05148216709494591,
-0.08995749801397324,
0.4749716520309448,
-0.1214456781744957,
0.10727106779813766,
0.13458886742591858,
0.35381489992141724,
0.26687073707580566,
-0.3107759356498718,
-0.2847302258014679,
0.213352233171463,
0.25418126583099365,
-0.2631848454475403,
0.0771745890378952,
0.09670843183994293,
-0.0011076140217483044,
-0.25682350993156433,
0.43687593936920166,
-0.05530128255486488,
-0.026105862110853195,
0.010700095444917679,
0.22155718505382538,
-0.19901111721992493,
-0.3756072223186493,
0.09229722619056702,
0.0463564395904541,
-0.44066929817199707,
0.24394291639328003,
-0.23616616427898407,
-0.3502999246120453,
-0.24190247058868408,
0.3663056492805481,
0.37582775950431824,
0.4089523255825043,
-0.024777093902230263,
-0.4372684061527252,
-0.06497584283351898,
0.3385905921459198,
-0.27529075741767883,
0.0909101665019989,
-0.23209144175052643,
0.5329761505126953,
0.2194463461637497,
0.17241783440113068,
-0.47022977471351624,
0.06673857569694519,
-0.3435591757297516,
-0.06251539289951324,
0.2846619784832001,
-0.37627583742141724,
0.25636395812034607,
0.20987315475940704,
0.22851818799972534,
0.19958332180976868,
-0.04185789078474045,
-0.3190549314022064,
-0.2192118763923645,
0.041325464844703674,
-0.08318573981523514,
0.05825282633304596,
0.12923239171504974,
0.26947271823883057,
-0.023493245244026184,
-0.18862107396125793,
0.11123117059469223,
-0.14885155856609344,
0.06500700861215591,
0.17027564346790314,
-0.16549278795719147,
0.07774878293275833,
-0.06857016682624817,
-0.24595202505588531,
0.05680868774652481,
0.06793467700481415,
-0.0006954444688744843,
-0.011312970891594887,
-0.189834326505661,
-0.17948852479457855,
0.0908636674284935,
0.3038335144519806,
0.15922005474567413,
0.01417776383459568,
-0.03174559772014618,
0.1759512722492218,
-0.27168741822242737,
0.38271746039390564,
0.4669647514820099,
0.16052484512329102,
-0.036591943353414536,
0.06632714718580246,
-0.12336509674787521,
0.3364461362361908,
-0.31789082288742065,
0.2393035590648651,
0.02914321795105934,
0.019066816195845604,
0.41455382108688354,
0.4714474081993103,
-0.07471566647291183,
-0.10812751203775406,
0.23668153584003448,
0.06671091914176941,
0.15519066154956818,
-0.24020807445049286,
-0.23825833201408386,
-0.08767138421535492,
-0.085927315056324,
0.047550782561302185,
0.19451682269573212,
0.11225023865699768,
0.47464802861213684,
-0.23542460799217224,
0.03761260583996773,
0.10028721392154694,
0.040599994361400604,
0.14289814233779907,
0.3279910981655121,
-0.040911104530096054,
0.256705641746521,
0.2584795355796814,
0.04553763195872307,
-0.020638639107346535,
0.03819258511066437,
0.5978515148162842,
-0.19811905920505524,
-0.0071808514185249805,
-0.45439043641090393,
0.28182438015937805,
0.10271238535642624,
-0.02863107994198799,
-0.1455942541360855,
-0.19282281398773193,
-0.4093616306781769,
-0.2367832213640213,
0.10667668282985687,
0.030399352312088013,
0.40835389494895935,
0.052001792937517166,
0.2306714951992035,
-0.39588361978530884,
-0.39821723103523254,
0.1973351240158081,
0.2946580648422241,
-0.31104785203933716,
0.002607994480058551,
0.5717424154281616,
0.05187264829874039,
-0.05037597194314003,
0.7172044515609741,
0.21388912200927734,
-0.22270691394805908,
-0.29315730929374695,
0.09568321704864502,
-0.3083189129829407,
-0.0713372677564621,
-0.20465020835399628,
0.004678875207901001,
0.48727086186408997,
-0.06673548370599747,
0.27899572253227234,
0.21490533649921417,
-0.3893035650253296,
0.36184296011924744,
-0.00752085167914629,
0.09174159169197083,
-0.3114089369773865,
-0.0006606284296140075,
0.16266122460365295,
0.22653475403785706,
-0.2334202527999878,
-0.08828242868185043,
-0.46489617228507996,
-0.12270751595497131,
-0.10918615013360977,
-0.2664312422275543,
-0.02808440662920475,
-0.169966459274292,
0.12033766508102417,
-0.03696078807115555,
0.3108157813549042,
0.42836111783981323,
0.015427188016474247,
-0.11311079561710358,
-0.3041282594203949,
-0.37454310059547424,
0.09715155512094498,
0.08031972497701645,
-0.21857181191444397,
-0.4832022488117218,
0.32678666710853577,
0.09399931132793427,
0.5921642184257507,
0.041766777634620667,
-0.24118538200855255,
0.21612612903118134,
0.03706933185458183,
-0.3163021206855774,
0.20479589700698853,
0.008810942992568016,
-0.1555594503879547,
0.30160215497016907,
0.04751758649945259,
0.011361418291926384,
0.18807967007160187,
0.20300118625164032,
0.11400483548641205,
-0.3534925878047943,
0.18262948095798492,
0.03131954371929169,
0.301246702671051,
0.059401657432317734,
0.26617616415023804,
-0.17056041955947876,
-0.2438608556985855,
-0.07756531238555908,
0.08248987793922424,
-0.044426292181015015,
0.3249351680278778,
0.02649354189634323,
0.26930752396583557,
0.10180184245109558,
-0.07905004173517227,
0.0145310303196311,
-0.05392301082611084,
0.1040874794125557,
-0.0490863062441349,
-0.2996728718280792,
0.02513660117983818,
-0.04130849242210388,
0.17293861508369446,
-0.05923956260085106,
0.20822912454605103,
-0.06819292902946472,
0.1640978902578354,
-0.050898656249046326,
-0.5344404578208923,
0.19760668277740479,
0.13055363297462463,
0.021102143451571465,
-0.21607761085033417,
0.4518181383609772,
-0.6408718228340149,
-0.1828155815601349,
-0.4566701352596283,
-0.1273539662361145,
0.25054699182510376,
0.19492247700691223,
-0.16032494604587555,
0.1837489902973175,
-0.18858177959918976,
0.0023344936780631542,
-0.0384717732667923,
0.3554104268550873,
0.11568079143762589,
-0.11338737607002258,
-0.10922470688819885,
-0.1269768327474594
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | Thanks for reporting ! That's a bug indeed
If you want to contribute, feel free to fix this issue and open a PR :) | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 24 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
Thanks for reporting ! That's a bug indeed
If you want to contribute, feel free to fix this issue and open a PR :) | [
-0.02370934747159481,
0.12972012162208557,
0.12809036672115326,
0.042228810489177704,
0.18126773834228516,
-0.06104787439107895,
0.4962114095687866,
0.05432983487844467,
-0.07811608910560608,
0.10937356948852539,
0.09238934516906738,
0.21730169653892517,
-0.21500280499458313,
-0.057322315871715546,
-0.3110678195953369,
-0.2098558247089386,
-0.11860048025846481,
0.25478142499923706,
0.09802446514368057,
-0.06322354823350906,
-0.5826327800750732,
0.0948997363448143,
-0.5061204433441162,
-0.21543362736701965,
-0.3565768599510193,
0.030672486871480942,
-0.13785845041275024,
0.09745736420154572,
-0.1915953904390335,
-0.43499717116355896,
0.38867008686065674,
0.2518528401851654,
-0.05044736713171005,
0.4357792139053345,
-0.00012166210217401385,
0.010391579940915108,
0.10381875932216644,
-0.2130180299282074,
0.08527735620737076,
-0.2657134532928467,
-0.32003656029701233,
0.2057955265045166,
-0.10553726553916931,
-0.2700327932834625,
-0.01870296336710453,
-0.08969856053590775,
-0.3070335388183594,
-0.21268877387046814,
0.24210840463638306,
0.4283304214477539,
0.10786858201026917,
0.1945306360721588,
-0.07358834892511368,
-0.35506147146224976,
0.08136045187711716,
-0.30176717042922974,
-0.14563237130641937,
0.43515047430992126,
-0.4142247438430786,
0.03777603432536125,
-0.10576276481151581,
0.024391500279307365,
0.03829125314950943,
0.28494247794151306,
0.4474447965621948,
0.10520673543214798,
0.15815700590610504,
0.038550667464733124,
0.10761071741580963,
0.3610636591911316,
-0.04745154082775116,
-0.21859146654605865,
-0.22872991859912872,
0.033824726939201355,
0.12877655029296875,
-0.7086323499679565,
0.06480896472930908,
-0.21465344727039337,
-0.13730782270431519,
0.018390720710158348,
-0.1703183352947235,
-0.22195780277252197,
-0.3350679576396942,
0.19995594024658203,
0.009901192039251328,
-0.05561157688498497,
-0.10812149196863174,
-0.011257534846663475,
0.5676794052124023,
-0.095088891685009,
0.15746568143367767,
-0.22509914636611938,
0.053505316376686096,
0.057457778602838516,
-0.20620468258857727,
-0.10973766446113586,
0.1205599308013916,
0.012041000649333,
0.05499240383505821,
-0.41865116357803345,
0.25801435112953186,
0.02771664783358574,
-0.042712680995464325,
0.0072117880918085575,
0.011344566941261292,
0.4146574139595032,
0.007568654604256153,
0.042195189744234085,
0.0975387841463089,
0.19130976498126984,
0.05828351154923439,
0.04209486395120621,
0.10644902288913727,
-0.2987896203994751,
0.4436660408973694,
0.14264598488807678,
0.04994596913456917,
-0.06508848071098328,
-0.07973373681306839,
-0.08661063760519028,
-0.3678118586540222,
-0.18217837810516357,
0.12325198203325272,
0.16149955987930298,
0.1791384369134903,
0.32821449637413025,
-0.22573645412921906,
0.3017471432685852,
-0.021272718906402588,
-0.09194063395261765,
-0.14665000140666962,
0.10267974436283112,
-0.42898890376091003,
0.26301518082618713,
0.3088882267475128,
-0.23184216022491455,
0.33882224559783936,
0.3215659558773041,
0.3396802842617035,
0.06683764606714249,
0.09257767349481583,
-0.2689788341522217,
0.14356936514377594,
-0.11732655763626099,
-0.058850355446338654,
-0.19882473349571228,
0.15357573330402374,
0.2831663489341736,
-0.13062642514705658,
0.15880483388900757,
-0.24816767871379852,
-0.2222670614719391,
0.20474888384342194,
0.07872888445854187,
-0.2645999491214752,
-0.05046321824193001,
-0.4324561357498169,
0.12345393747091293,
0.23070093989372253,
-0.04015609622001648,
-0.1669590324163437,
-0.21251466870307922,
-0.5594505071640015,
-0.1909613460302353,
0.24430273473262787,
0.15803682804107666,
-0.6430367827415466,
0.008755605667829514,
-0.327750027179718,
0.33203163743019104,
-0.0049077472649514675,
0.023063775151968002,
-0.1867525428533554,
0.5240610837936401,
-0.14465807378292084,
0.07814809679985046,
0.12068621814250946,
-0.34280720353126526,
-0.3460654318332672,
-0.30027785897254944,
0.27927249670028687,
-0.06984391808509827,
-0.00943672377616167,
-0.09234987199306488,
0.11013726890087128,
-0.0958160012960434,
0.27269265055656433,
-0.2665001451969147,
0.21598289906978607,
0.0485861711204052,
-0.1672808825969696,
-0.1360289603471756,
-0.09628356993198395,
-0.04889664426445961,
0.09961539506912231,
-0.08444876968860626,
-0.0817544013261795,
0.23191191256046295,
-0.23567773401737213,
-0.27964574098587036,
-0.01723039150238037,
0.1953895092010498,
0.18523383140563965,
-0.36433935165405273,
0.20124737918376923,
-0.03318561241030693,
-0.01303888950496912,
0.21654079854488373,
-0.034151338040828705,
0.30132338404655457,
0.1570085734128952,
-0.058636561036109924,
-0.41413453221321106,
-0.1540224403142929,
-0.16487376391887665,
-0.13675916194915771,
0.020873965695500374,
0.05258072540163994,
0.07986223697662354,
0.0717618316411972,
-0.26324406266212463,
-0.6167685389518738,
-0.2063765972852707,
-0.07479576766490936,
-0.12053567916154861,
0.14126989245414734,
0.009512541815638542,
-0.1113906130194664,
0.23246638476848602,
0.47104135155677795,
0.18146124482154846,
0.13292084634304047,
-0.14920784533023834,
0.3699563145637512,
0.06966618448495865,
-0.06898953765630722,
0.16759055852890015,
0.2383379340171814,
-0.021452032029628754,
-0.36036524176597595,
0.1581873744726181,
0.013030954636633396,
0.041463468223810196,
-0.05809483677148819,
0.03734608367085457,
0.459189236164093,
0.1649274080991745,
0.21143275499343872,
-0.14927604794502258,
-0.09834360331296921,
0.056031595915555954,
-0.08913037180900574,
-0.020359503105282784,
-0.4252583086490631,
0.05934753268957138,
0.046240806579589844,
0.16118861734867096,
-0.07801276445388794,
0.17070722579956055,
-0.15227311849594116,
0.6477607488632202,
0.23041081428527832,
0.3287092447280884,
0.2288498431444168,
0.027747867628932,
-0.18441958725452423,
-0.2881704568862915,
-0.2612561881542206,
0.6102737784385681,
0.11984726041555405,
-0.1168619766831398,
0.30027851462364197,
-0.00584859773516655,
-0.14544114470481873,
0.1483456790447235,
0.2962327301502228,
-0.15198811888694763,
-0.026105739176273346,
0.23582476377487183,
0.03368294611573219,
-0.03234207630157471,
0.017636923119425774,
-0.03645189851522446,
0.2214457243680954,
-0.43147093057632446,
0.1298581063747406,
-0.3040901720523834,
0.14820079505443573,
0.008921572007238865,
-0.48822158575057983,
-0.07187917083501816,
-0.23116208612918854,
0.06930069625377655,
-0.06749441474676132,
0.09230034053325653,
0.5150327682495117,
0.11938784271478653,
0.7285955548286438,
0.2180929183959961,
-0.0683991089463234,
-0.03949606046080589,
-0.35515594482421875,
-0.09895826131105423,
0.013084704987704754,
-0.20142164826393127,
-0.108474500477314,
0.24356336891651154,
-0.1952926218509674,
-0.18023377656936646,
0.1880684345960617,
-0.3187426030635834,
0.028164159506559372,
-0.08427241444587708,
0.3037751317024231,
0.5219173431396484,
-0.11949431151151657,
-0.15227091312408447,
0.143384650349617,
0.2648014426231384,
0.0178208127617836,
0.20428051054477692,
0.0669969767332077,
-0.2079889327287674,
0.029855791479349136,
-0.08942703902721405,
-0.276816725730896,
0.3283345401287079,
-0.14721529185771942,
-0.1486426293849945,
0.016293423250317574,
-0.016228072345256805,
-0.0395781509578228,
0.363763689994812,
0.2727849781513214,
0.1033838614821434,
-0.25505805015563965,
-0.14828072488307953,
-0.6655892729759216,
0.45151659846305847,
-0.29107505083084106,
-0.13594526052474976,
0.0890355259180069,
-0.23817791044712067,
0.5470315217971802,
0.09082651138305664,
-0.20573556423187256,
-0.5882262587547302,
0.07144256681203842,
0.2592979967594147,
-0.04184315726161003,
0.09595867246389389,
0.15918076038360596,
0.08619093149900436,
0.008000320754945278,
-0.16784308850765228,
-0.18757419288158417,
0.18884670734405518,
-0.32933247089385986,
0.19423644244670868,
0.15932762622833252,
0.27224233746528625,
0.13397911190986633,
0.8989214897155762,
0.27251821756362915,
-0.2730581760406494,
0.4387994110584259,
-0.06690177321434021,
0.38241052627563477,
-0.3949601352214813,
-0.3603944480419159,
-0.13869093358516693,
0.18520641326904297,
0.08973423391580582,
0.23085732758045197,
-0.08898358047008514,
0.3890802264213562,
-0.07274682074785233,
-0.25142768025398254,
-0.09153527021408081,
-0.33950743079185486,
-0.03381585329771042,
-0.05504081770777702,
0.5190785527229309,
0.053326983004808426,
0.30719393491744995,
-0.3714309334754944,
-0.20847289264202118,
-0.11860882490873337,
-0.16334909200668335,
0.06695301830768585,
-0.16058894991874695,
0.22986938059329987,
0.36106863617897034,
-0.45541495084762573,
0.44172415137290955,
0.08631832897663116,
0.1025705635547638,
0.06857185065746307,
0.42007529735565186,
-0.12461923807859421,
0.020734122022986412,
0.2103983759880066,
-0.4105682969093323,
0.03951611742377281,
0.008010613732039928,
0.13481798768043518,
-0.4824219346046448,
0.13232682645320892,
-0.059830442070961,
0.0011063735000789165,
0.2754395008087158,
0.6075907945632935,
-0.1760205626487732,
0.047816600650548935,
0.3029840588569641,
-0.10431146621704102,
-0.07967539131641388,
-0.29139214754104614,
-0.33731868863105774,
-0.1893276870250702,
-0.0420687273144722,
-0.04335694760084152,
0.02020268514752388,
0.24832384288311005,
-0.010846935212612152,
0.2280023694038391,
0.16027650237083435,
-0.34737735986709595,
0.13401265442371368,
0.2677551805973053,
0.1726616621017456,
-0.14011676609516144,
0.10126781463623047,
0.17393836379051208,
-0.6338843107223511,
0.5574398636817932,
0.2815367579460144,
-0.39785924553871155,
-0.61236572265625,
-0.07423565536737442,
-0.06958729773759842,
0.3827638030052185,
0.14465449750423431,
-0.2513594627380371,
0.04058598354458809,
-0.20111162960529327,
0.08785726130008698,
-0.1828407645225525,
0.32733845710754395,
0.45656028389930725,
-0.1059442013502121,
-0.17261627316474915,
-0.5024932026863098,
0.4625493288040161,
0.0861482098698616,
0.014351263642311096,
0.0512881726026535,
0.27182087302207947,
-0.3436954915523529,
0.2686667740345001,
0.07710554450750351,
0.534325897693634,
0.35869044065475464,
0.04334035888314247,
0.24175745248794556,
0.22444882988929749,
0.29284918308258057,
0.29805445671081543,
0.06085927411913872,
-0.15278677642345428,
-0.018655555322766304,
-0.021923325955867767,
-0.13156482577323914,
0.1438341736793518,
0.1072162538766861,
-0.2754095494747162,
0.5928208231925964,
-0.21265782415866852,
-0.1861465722322464,
0.035565223544836044,
-0.10290845483541489,
0.11435892432928085,
-0.2550800144672394,
-0.05738314241170883,
0.09817986935377121,
0.016752328723669052,
-0.11909537762403488,
-0.032132185995578766,
0.06320594251155853,
0.16722694039344788,
-0.2652077078819275,
-0.2593878209590912,
0.001591741805896163,
0.06191374361515045,
-0.135749951004982,
0.07500851899385452,
0.020769154652953148,
0.3008497953414917,
0.1344204694032669,
0.6360822916030884,
0.2668302655220032,
-0.1996305137872696,
0.13435034453868866,
-0.10559754818677902,
0.05450043827295303,
0.02888789214193821,
0.036678459495306015,
-0.17490002512931824,
-0.06650974601507187,
-0.2871817946434021,
0.18555040657520294,
0.103096604347229,
-0.26270216703414917,
-0.3800087571144104,
-0.2893662452697754,
0.060256630182266235,
-0.17842067778110504,
0.11856025457382202,
-0.1847490817308426,
0.13003762066364288,
-0.2566101551055908,
0.0846286341547966,
-0.14471188187599182,
0.02883368358016014,
0.15877588093280792,
-0.3751533627510071,
-0.24574777483940125,
0.07850401103496552,
0.39845964312553406,
-0.16688044369220734,
0.18267878890037537,
0.5197715759277344,
-0.1384221762418747,
0.06914853304624557,
-0.071860171854496,
0.10677535831928253,
0.06123324856162071,
-0.1613895744085312,
0.3675588369369507,
0.2718498408794403,
0.23571878671646118,
0.11651100218296051,
0.7036589980125427,
0.08347399532794952,
-0.20884108543395996,
0.17641666531562805,
-0.1835189312696457,
0.12199129164218903,
-0.17457856237888336,
0.04518378525972366,
0.07576151937246323,
0.03434751555323601,
0.18044205009937286,
-0.07175678759813309,
0.0012457412667572498,
-0.19928865134716034,
0.22009031474590302,
-0.06264432519674301,
-0.10845225304365158,
-0.07904324680566788,
-0.15889649093151093,
0.24696718156337738,
0.04277965798974037,
-0.023922249674797058,
0.32280829548835754,
-0.23350006341934204,
-0.13345485925674438,
-0.4277104139328003,
0.1314188838005066,
0.05553089454770088,
-0.10273868590593338,
0.030966881662607193,
-0.017036642879247665,
-0.23949207365512848,
-0.19012600183486938,
-0.04798330366611481,
0.4341009259223938,
0.019722601398825645,
0.4265177249908447,
0.059402160346508026,
0.2494656890630722,
0.12842877209186554,
-0.04009025916457176,
0.17990395426750183,
0.32751867175102234,
0.025981856510043144,
0.3166768252849579,
-0.07527870684862137,
-0.1005655899643898,
-0.04952974244952202,
0.0780813917517662,
0.3835342228412628,
-0.09282906353473663,
0.17345298826694489,
0.0398063026368618,
0.012974195182323456,
0.14885812997817993,
0.35094597935676575,
0.0870778039097786,
-0.4218040108680725,
-0.31427955627441406,
-0.06610072404146194,
0.07020432502031326,
-0.43285366892814636,
0.004368612077087164,
0.017202885821461678,
0.455310195684433,
0.09439383447170258,
0.2588646411895752,
0.15483330190181732,
-0.18706056475639343,
-0.09213408827781677,
-0.025204338133335114,
0.1609390377998352,
-0.2590942978858948,
0.2921088933944702,
0.0573970191180706,
-0.1557391732931137,
0.14252209663391113,
0.5906170010566711,
0.19239650666713715,
0.26868319511413574,
0.6254937648773193,
-0.16107411682605743,
0.5122525691986084,
-0.2839605510234833,
-0.15045155584812164,
-0.2018977850675583,
-0.21132305264472961,
0.19754940271377563,
0.26662877202033997,
0.1487216353416443,
0.12882579863071442,
-0.11324892938137054,
0.5228831768035889,
-0.012800640426576138,
-0.01695878431200981,
-0.42580685019493103,
-0.06856156885623932,
0.012879589572548866,
-0.2093353271484375,
-0.37191322445869446,
-0.2758210003376007,
0.015103628858923912,
-0.012664185836911201,
-0.038522087037563324,
0.043407537043094635,
0.18110331892967224,
-0.04458657652139664,
-0.059408724308013916,
-0.08480289578437805,
-0.12122742831707001,
0.14523476362228394,
0.19579963386058807,
-0.014511854387819767,
0.15911632776260376,
0.3156149387359619,
0.12717710435390472,
0.17706827819347382,
0.43398517370224,
0.24795670807361603,
0.21803352236747742,
-0.04521484300494194,
-0.2701667547225952,
-0.05408849939703941,
0.011694434098899364,
0.15860280394554138,
0.16650614142417908,
0.25352558493614197,
0.30108940601348877,
0.2748163938522339,
0.06018451973795891,
-0.14291256666183472,
0.5313391089439392,
-0.15504497289657593,
0.6881144046783447,
-0.5048004984855652,
0.5134902000427246,
0.050823140889406204,
0.18471284210681915,
0.24510911107063293,
0.0496637225151062,
-0.17784680426120758,
0.15603242814540863,
0.2319926768541336,
0.19724608957767487,
-0.14771293103694916,
-0.3273926377296448,
0.045955535024404526,
-0.12393789738416672,
0.41844692826271057,
0.34657353162765503,
-0.1592114418745041,
-0.649203896522522,
-0.0326099619269371,
-0.6483086943626404,
0.05203339457511902,
-0.11404096335172653,
0.2721143066883087,
0.052223820239305496,
-0.0635034441947937,
-0.10889210551977158,
0.4449108839035034,
0.15978111326694489,
-0.21901272237300873,
-0.32765108346939087,
0.0375857912003994,
-0.44450968503952026,
-0.0934092178940773,
-0.2396305948495865,
-0.47279393672943115,
0.190500870347023,
-0.2825446128845215,
-0.22040674090385437,
-0.16203460097312927,
0.021777577698230743,
-0.014891000464558601,
-0.1854909211397171,
0.32166510820388794,
0.3808985650539398,
0.44745734333992004,
0.177363321185112,
0.3423071503639221,
0.054210178554058075,
0.02949390932917595,
-0.08184778690338135,
0.010395808145403862,
-0.14003092050552368,
-0.018312042579054832,
-0.06837323307991028,
0.09400990605354309,
-0.3902928829193115,
-0.2314220815896988,
-0.3763725757598877,
0.13938547670841217,
0.1452987790107727,
-0.24365290999412537,
-0.4069201946258545,
0.15137732028961182,
0.08006751537322998,
-0.178511843085289,
-0.1112256646156311,
0.13069169223308563,
-0.14123813807964325,
0.489201158285141,
-0.15563209354877472,
0.03895733132958412,
0.5096229314804077,
-0.3619694113731384,
-0.30783000588417053,
-0.09886902570724487,
0.2756548225879669,
-0.10142844170331955,
-0.3412373960018158,
-0.7951289415359497,
0.16724003851413727,
0.5032970309257507,
0.1859321892261505,
-0.10840792208909988,
0.13402104377746582,
-0.29131412506103516,
0.18695798516273499,
0.0937093049287796,
0.2266322821378708,
-0.061869312077760696,
-0.2960379123687744,
0.09382900595664978,
-0.19181320071220398
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem. | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 27 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem. | [
-0.047540489584207535,
0.12642605602741241,
0.10102428495883942,
0.07860185950994492,
0.10257850587368011,
-0.11232966184616089,
0.37081268429756165,
0.00623772107064724,
-0.0859038382768631,
0.09649987518787384,
0.07316985726356506,
0.32716283202171326,
-0.16986176371574402,
-0.030480025336146355,
-0.31444019079208374,
-0.22134995460510254,
-0.05078250169754028,
0.2818051874637604,
0.06397826969623566,
-0.0864623412489891,
-0.525519609451294,
0.15297280251979828,
-0.42102017998695374,
-0.19245412945747375,
-0.25001540780067444,
0.05794128030538559,
-0.05252041667699814,
0.10600371658802032,
-0.28611549735069275,
-0.5162749290466309,
0.4373296797275543,
0.2641015648841858,
-0.044665973633527756,
0.517257809638977,
-0.00012442887236829847,
-0.009829327464103699,
0.09570927917957306,
-0.19252555072307587,
0.08837068825960159,
-0.2875191867351532,
-0.34826135635375977,
0.15046906471252441,
-0.06922227144241333,
-0.21166016161441803,
-0.004401586949825287,
-0.011811970733106136,
-0.27812525629997253,
-0.17515134811401367,
0.3080378472805023,
0.3524617552757263,
0.08745995163917542,
0.20121793448925018,
0.06530773639678955,
-0.3420534133911133,
0.19315935671329498,
-0.32990697026252747,
-0.13928671181201935,
0.3961027264595032,
-0.27092453837394714,
0.056483034044504166,
-0.06807266920804977,
0.03196363523602486,
0.005658469628542662,
0.2695562243461609,
0.48157840967178345,
0.0913681611418724,
0.10961152613162994,
-0.005541523918509483,
0.0920877531170845,
0.4091939926147461,
-0.0803012028336525,
-0.2674735486507416,
-0.31282511353492737,
0.03694218397140503,
0.03140682727098465,
-0.6414819955825806,
0.07907170802354813,
-0.3048745095729828,
-0.1437419354915619,
-0.008726198226213455,
-0.17056848108768463,
-0.2099006026983261,
-0.3400879204273224,
0.2357414811849594,
0.07957480847835541,
0.01741737686097622,
-0.10470335185527802,
-0.0014911892358213663,
0.5478115081787109,
-0.1566692739725113,
0.25361841917037964,
-0.2071748673915863,
0.08182189613580704,
0.07935745269060135,
-0.17650137841701508,
-0.0984940379858017,
0.09035031497478485,
0.05293664708733559,
0.06965775787830353,
-0.4432583451271057,
0.24922020733356476,
0.03126000985503197,
-0.04594552516937256,
0.02433062344789505,
-0.055871058255434036,
0.46400904655456543,
0.027809495106339455,
0.11704298108816147,
0.04769708961248398,
0.24041859805583954,
0.1034623309969902,
0.07060938328504562,
0.10227510333061218,
-0.2756900489330292,
0.3526832163333893,
0.12943385541439056,
-0.008399665355682373,
-0.09592802822589874,
-0.133121058344841,
-0.05681948363780975,
-0.3427054286003113,
-0.18304182589054108,
0.1160183846950531,
0.15686851739883423,
0.15791647136211395,
0.3257538378238678,
-0.22007815539836884,
0.33303213119506836,
-0.04093068093061447,
0.015213938429951668,
-0.08345916122198105,
0.10748352855443954,
-0.39945513010025024,
0.1989297717809677,
0.31282755732536316,
-0.2242770493030548,
0.3718510866165161,
0.2852114737033844,
0.3254767954349518,
0.17210149765014648,
0.13744501769542694,
-0.21682311594486237,
0.13654793798923492,
-0.10478181391954422,
-0.062174148857593536,
-0.14102375507354736,
0.16448168456554413,
0.30252742767333984,
-0.1387709528207779,
0.1754385232925415,
-0.22231972217559814,
-0.1910640299320221,
0.17179109156131744,
0.06801369041204453,
-0.26132678985595703,
-0.11207855492830276,
-0.42405298352241516,
0.05283180624246597,
0.22432860732078552,
-0.15296466648578644,
-0.1727680265903473,
-0.24116557836532593,
-0.457637220621109,
-0.1593731790781021,
0.25829461216926575,
0.1398146152496338,
-0.6280487775802612,
0.014894778840243816,
-0.34026041626930237,
0.3336734473705292,
0.03147592768073082,
0.037116389721632004,
-0.14158445596694946,
0.48624375462532043,
-0.07575429230928421,
0.06252232939004898,
0.17222724854946136,
-0.47906526923179626,
-0.40994468331336975,
-0.2716497778892517,
0.35220369696617126,
-0.08145543932914734,
0.06348764896392822,
-0.12951979041099548,
0.13141648471355438,
-0.088910311460495,
0.2282763123512268,
-0.29694831371307373,
0.21833419799804688,
0.04933853819966316,
-0.20322366058826447,
-0.21763379871845245,
-0.19495399296283722,
-0.06155570223927498,
0.14589470624923706,
-0.1838211566209793,
-0.10193905979394913,
0.26843395829200745,
-0.24211479723453522,
-0.25141435861587524,
-0.006849097087979317,
0.1727921962738037,
0.23943263292312622,
-0.23199093341827393,
0.20608581602573395,
-0.04339264705777168,
-0.026494689285755157,
0.22788085043430328,
-0.14406460523605347,
0.2700977027416229,
0.09719498455524445,
-0.08908004313707352,
-0.47751015424728394,
-0.16665370762348175,
-0.16909678280353546,
-0.1864432692527771,
0.020111288875341415,
0.09318770468235016,
0.1828802525997162,
-0.006780407391488552,
-0.26327943801879883,
-0.6373131275177002,
-0.13531890511512756,
-0.012235703878104687,
-0.1809571385383606,
0.0817297101020813,
-0.0653165951371193,
-0.15089644491672516,
0.22518476843833923,
0.4985392391681671,
0.16470591723918915,
0.09327523410320282,
-0.10046202689409256,
0.3833453953266144,
0.032517287880182266,
-0.04876993969082832,
0.1908474862575531,
0.19349361956119537,
-0.050540629774332047,
-0.35793226957321167,
0.1553335189819336,
0.07825340330600739,
0.05307246744632721,
0.05050205439329147,
-0.007135414518415928,
0.3536442518234253,
0.1620367467403412,
0.2635674774646759,
-0.05274323374032974,
-0.17158715426921844,
0.06012534722685814,
-0.08593426644802094,
-0.04069041460752487,
-0.45681032538414,
0.1455320566892624,
0.03037768043577671,
0.22304274141788483,
-0.10370031744241714,
0.269927442073822,
-0.09826018661260605,
0.595411479473114,
0.19170449674129486,
0.29431799054145813,
0.19945529103279114,
0.04987325891852379,
-0.16640983521938324,
-0.23267994821071625,
-0.1959204375743866,
0.5780512690544128,
0.15628957748413086,
-0.0870843231678009,
0.2507530152797699,
-0.046163856983184814,
-0.10744030028581619,
0.10282464325428009,
0.27607086300849915,
-0.2259880006313324,
0.022333374246954918,
0.22490926086902618,
0.07468690723180771,
0.0045517124235630035,
0.040713537484407425,
-0.07844612002372742,
0.2430473417043686,
-0.4302927255630493,
0.17077302932739258,
-0.2852002680301666,
0.11545758694410324,
-0.03652103245258331,
-0.5909371972084045,
-0.06897871941328049,
-0.20160414278507233,
0.09844742715358734,
-0.06954150646924973,
0.09409989416599274,
0.5627201199531555,
0.15886494517326355,
0.6345852017402649,
0.14558103680610657,
-0.13737154006958008,
-0.007717535365372896,
-0.3456174433231354,
-0.1424933671951294,
-0.015679441392421722,
-0.1727607548236847,
-0.07909281551837921,
0.26143643260002136,
-0.261717826128006,
-0.20886938273906708,
0.21035648882389069,
-0.4115683138370514,
0.043567221611738205,
-0.09284062683582306,
0.34666165709495544,
0.526464581489563,
-0.1340176910161972,
-0.17358452081680298,
0.10425212234258652,
0.26671329140663147,
-0.0165020152926445,
0.1917169690132141,
-0.007553498260676861,
-0.21391253173351288,
-0.027662500739097595,
-0.004232924431562424,
-0.37140005826950073,
0.3031688928604126,
-0.18563011288642883,
-0.14328734576702118,
0.05252514034509659,
-0.01699962466955185,
-0.15072223544120789,
0.37668636441230774,
0.3246976435184479,
0.01956145465373993,
-0.1791643351316452,
-0.09495373070240021,
-0.6065405607223511,
0.4005813002586365,
-0.25125306844711304,
-0.11877096444368362,
0.09931761771440506,
-0.24350038170814514,
0.5438971519470215,
0.08906111121177673,
-0.17217151820659637,
-0.6287646293640137,
0.018984507769346237,
0.16713844239711761,
0.013156970031559467,
0.15370531380176544,
0.18174630403518677,
0.13932818174362183,
0.005711870267987251,
-0.2012549191713333,
-0.1687324047088623,
0.19201427698135376,
-0.4219171404838562,
0.19104887545108795,
0.1683250516653061,
0.2982528805732727,
0.08290615677833557,
0.9984372854232788,
0.2949472665786743,
-0.23060229420661926,
0.41766685247421265,
-0.02613213285803795,
0.3826899230480194,
-0.4130403697490692,
-0.31214821338653564,
-0.16413164138793945,
0.23994269967079163,
0.14657945930957794,
0.2420157492160797,
-0.06129668653011322,
0.43898633122444153,
-0.0926675945520401,
-0.17209546267986298,
-0.1663753092288971,
-0.32728344202041626,
-0.010457636788487434,
0.020105184987187386,
0.5321359634399414,
0.08347506076097488,
0.2833070158958435,
-0.32683467864990234,
-0.2500028908252716,
-0.1058013066649437,
-0.1618320345878601,
-0.033357128500938416,
-0.07446065545082092,
0.2539098560810089,
0.27202364802360535,
-0.4521152377128601,
0.5129060745239258,
0.09672289341688156,
0.12864123284816742,
0.014480208978056908,
0.3394743800163269,
-0.09009912610054016,
-0.017288019880652428,
0.12779836356639862,
-0.405728280544281,
0.024943077936768532,
-0.04815760627388954,
0.1609792560338974,
-0.48469921946525574,
0.12155407667160034,
-0.0886702686548233,
-0.030744418501853943,
0.33862513303756714,
0.5947795510292053,
-0.29766008257865906,
0.06955264508724213,
0.3657418191432953,
-0.08622747659683228,
-0.014919288456439972,
-0.25033125281333923,
-0.3436200022697449,
-0.15209157764911652,
-0.15404358506202698,
-0.11983015388250351,
-0.004340231418609619,
0.22295290231704712,
0.05211799591779709,
0.19286684691905975,
0.15072417259216309,
-0.33603382110595703,
0.1529761552810669,
0.332876056432724,
0.1639513373374939,
-0.14907148480415344,
0.08321571350097656,
0.14564402401447296,
-0.6445593237876892,
0.5847190022468567,
0.33341529965400696,
-0.5383553504943848,
-0.600221574306488,
-0.11169975996017456,
-0.03578317537903786,
0.25272610783576965,
0.1808996945619583,
-0.21768158674240112,
0.03808746859431267,
-0.10429319739341736,
0.10296985507011414,
-0.08309440314769745,
0.3479172885417938,
0.4639829993247986,
-0.08744852244853973,
-0.15754900872707367,
-0.5294522643089294,
0.47996458411216736,
0.14552238583564758,
-0.022885005921125412,
-0.014787851832807064,
0.36565884947776794,
-0.32127124071121216,
0.3233954608440399,
0.07118675112724304,
0.5845333933830261,
0.35109183192253113,
0.06165628880262375,
0.22660310566425323,
0.18070702254772186,
0.3489799201488495,
0.3082764744758606,
0.04713810235261917,
-0.1556602567434311,
0.0970691367983818,
-0.05144162476062775,
-0.07078272849321365,
0.14444437623023987,
0.09549752622842789,
-0.31300294399261475,
0.6615697741508484,
-0.08015789091587067,
-0.17533129453659058,
0.04593517258763313,
-0.14208953082561493,
0.06930116564035416,
-0.23097191751003265,
-0.09232044219970703,
0.08704497665166855,
0.11096734553575516,
-0.06411947309970856,
-0.06262939423322678,
0.07767043262720108,
0.032369695603847504,
-0.3183477222919464,
-0.3015074133872986,
-0.05157027393579483,
-0.04574001953005791,
-0.1608876734972,
0.10070569813251495,
-0.1219300776720047,
0.24818789958953857,
0.0742621198296547,
0.6118414998054504,
0.21966329216957092,
-0.20115141570568085,
0.1219269260764122,
-0.08034935593605042,
-0.03636608272790909,
0.04188337177038193,
0.053952284157276154,
-0.1873031109571457,
-0.08470921963453293,
-0.1997784525156021,
0.16233138740062714,
0.07494600862264633,
-0.20910723507404327,
-0.28461137413978577,
-0.2393481731414795,
0.2234266847372055,
-0.17724789679050446,
0.06481673568487167,
-0.22254377603530884,
0.11366281658411026,
-0.22108353674411774,
0.07603573799133301,
-0.19220159947872162,
0.03705461323261261,
0.1392560452222824,
-0.38070714473724365,
-0.23177409172058105,
0.05472520366311073,
0.3735399544239044,
-0.17372897267341614,
0.14045825600624084,
0.5156523585319519,
-0.17125315964221954,
0.06943925470113754,
-0.033101458102464676,
0.04738717898726463,
0.057979535311460495,
-0.22301551699638367,
0.22848908603191376,
0.2958233952522278,
0.12869790196418762,
0.16651369631290436,
0.677121102809906,
0.19222509860992432,
-0.2087526023387909,
0.15401364862918854,
-0.20433473587036133,
0.14628152549266815,
-0.12068017572164536,
0.09320010244846344,
0.08072337508201599,
0.05456051230430603,
0.07112492620944977,
-0.08743792027235031,
-0.001255703391507268,
-0.1929500550031662,
0.19305916130542755,
-0.012172098271548748,
-0.07832793146371841,
-0.029033495113253593,
-0.11466650664806366,
0.2602449357509613,
0.0055252499878406525,
-0.041712671518325806,
0.2775156795978546,
-0.24288105964660645,
-0.12582631409168243,
-0.3876551687717438,
0.1283794343471527,
0.07455452531576157,
-0.1210663765668869,
-0.0004354588745627552,
0.04855722934007645,
-0.1436317265033722,
-0.175005242228508,
-0.011915779672563076,
0.37090572714805603,
0.036019209772348404,
0.38907328248023987,
0.0001862581557361409,
0.2678273916244507,
0.13566750288009644,
-0.0006346285226754844,
0.14316165447235107,
0.3406482934951782,
0.04720885679125786,
0.2938130795955658,
-0.050576500594615936,
-0.11085040867328644,
0.09562907367944717,
0.060414671897888184,
0.5085899829864502,
-0.09176672250032425,
0.1378829926252365,
0.006650789640843868,
0.041243769228458405,
0.16179995238780975,
0.3347966969013214,
0.20611119270324707,
-0.38802555203437805,
-0.33622655272483826,
0.04331882297992706,
0.06238143518567085,
-0.41448110342025757,
-0.017559625208377838,
-0.031129445880651474,
0.36788132786750793,
0.08294122666120529,
0.24160480499267578,
0.18162500858306885,
-0.2028319388628006,
-0.025402987375855446,
0.047530949115753174,
0.21928486227989197,
-0.24257291853427887,
0.31681451201438904,
0.1429433375597,
-0.1601441353559494,
0.17095795273780823,
0.5377205610275269,
0.1467389017343521,
0.3065434396266937,
0.556067943572998,
-0.17498180270195007,
0.5516894459724426,
-0.3667331039905548,
-0.08273672312498093,
-0.20972642302513123,
-0.22436656057834625,
0.11761943250894547,
0.18641223013401031,
0.2387372851371765,
0.16372503340244293,
-0.008942835032939911,
0.5908872485160828,
-0.05066922307014465,
0.017123764380812645,
-0.4279114603996277,
-0.07627611607313156,
0.07436497509479523,
-0.297432541847229,
-0.3414062559604645,
-0.25984057784080505,
0.005044423043727875,
-0.018773164600133896,
-0.09423257410526276,
0.04296126961708069,
0.15726913511753082,
-0.025623010471463203,
-0.09842057526111603,
-0.1696414351463318,
-0.19141151010990143,
0.13197506964206696,
0.10118776559829712,
0.006319059059023857,
0.2313847541809082,
0.3034433424472809,
0.06412777304649353,
0.1433521807193756,
0.5091140270233154,
0.33216533064842224,
0.2770749032497406,
-0.08550979942083359,
-0.23390117287635803,
-0.11356106400489807,
0.05407583341002464,
0.09892500191926956,
0.1439589411020279,
0.21088053286075592,
0.29659441113471985,
0.26348739862442017,
0.03789977356791496,
-0.1765950620174408,
0.46620872616767883,
-0.21522578597068787,
0.6183240413665771,
-0.41492778062820435,
0.5195437073707581,
-0.0124511132016778,
0.22822155058383942,
0.27581027150154114,
0.10065310448408127,
-0.35547080636024475,
0.23014183342456818,
0.13340553641319275,
0.21268586814403534,
-0.12032486498355865,
-0.31358397006988525,
0.03475578501820564,
-0.12345591187477112,
0.46521735191345215,
0.3406946659088135,
-0.09943205863237381,
-0.6055417656898499,
-0.0359828844666481,
-0.6710894107818604,
-0.02108088880777359,
-0.1803077906370163,
0.20581966638565063,
-0.02890707552433014,
-0.11196797341108322,
-0.12118228524923325,
0.47660666704177856,
0.16998212039470673,
-0.2435961216688156,
-0.28859952092170715,
0.09123752266168594,
-0.4174419939517975,
-0.08376022428274155,
-0.1503177285194397,
-0.49240976572036743,
0.2141641229391098,
-0.27059805393218994,
-0.22169873118400574,
-0.18429052829742432,
-0.02476557530462742,
0.014155937358736992,
-0.20340220630168915,
0.3416087031364441,
0.2944450080394745,
0.43950414657592773,
0.2000732719898224,
0.4376271069049835,
0.04450157284736633,
0.03437948226928711,
-0.06624298542737961,
0.014865987934172153,
-0.1716545969247818,
0.031192965805530548,
-0.04188298061490059,
0.08173320442438126,
-0.44283920526504517,
-0.3534298539161682,
-0.37206199765205383,
0.12896651029586792,
0.10013478994369507,
-0.23652279376983643,
-0.3508351445198059,
0.141426682472229,
0.1127922385931015,
-0.16390398144721985,
-0.1411023736000061,
0.10185492038726807,
-0.09694056957960129,
0.43921250104904175,
-0.2368864268064499,
-0.03873486444354057,
0.5047754645347595,
-0.3888804316520691,
-0.2466631680727005,
-0.1457580178976059,
0.2097213864326477,
-0.06878867745399475,
-0.3297356069087982,
-0.8442143797874451,
0.24206605553627014,
0.43013614416122437,
0.20468942821025848,
-0.12722109258174896,
0.11775773018598557,
-0.2999599874019623,
0.16083890199661255,
0.05659265071153641,
0.3699766993522644,
-0.0041963267140090466,
-0.26815006136894226,
0.08670669049024582,
-0.19394516944885254
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | Hello everyone,
I think the problem is not solved:
```
from datasets import load_metric
metric=load_metric('bertscore')
metric.compute(
predictions=predictions,
references=references,
lang='fr',
rescale_with_baseline=True
)
TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer'
```
This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10` | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 42 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
Hello everyone,
I think the problem is not solved:
```
from datasets import load_metric
metric=load_metric('bertscore')
metric.compute(
predictions=predictions,
references=references,
lang='fr',
rescale_with_baseline=True
)
TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer'
```
This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10` | [
0.01399239245802164,
0.04069599136710167,
0.09277040511369705,
0.07601725310087204,
0.1578616201877594,
-0.04843174293637276,
0.45957502722740173,
0.04065268486738205,
-0.07028165459632874,
0.09882186353206635,
0.05724063143134117,
0.24822388589382172,
-0.24298250675201416,
-0.09125873446464539,
-0.3137350082397461,
-0.204416885972023,
-0.12348687648773193,
0.2484206259250641,
0.12505851686000824,
-0.06822144240140915,
-0.613479733467102,
0.11497485637664795,
-0.526738166809082,
-0.2245674431324005,
-0.3061109185218811,
-0.007345029152929783,
-0.12974943220615387,
0.09400127828121185,
-0.16751067340373993,
-0.44306090474128723,
0.35663628578186035,
0.25937485694885254,
-0.02731497399508953,
0.504386842250824,
-0.00012365188740659505,
0.015140008181333542,
0.0650542825460434,
-0.22124457359313965,
0.10060618072748184,
-0.27542799711227417,
-0.3003542721271515,
0.20567810535430908,
-0.10892558842897415,
-0.30845150351524353,
-0.05670703575015068,
-0.09749423712491989,
-0.32915517687797546,
-0.22229057550430298,
0.29095810651779175,
0.4247184097766876,
0.09974424540996552,
0.1678159087896347,
-0.07012384384870529,
-0.31432604789733887,
0.07073388248682022,
-0.304108589887619,
-0.1328684389591217,
0.4761044979095459,
-0.38222697377204895,
0.090516097843647,
-0.04759867116808891,
0.015107782557606697,
0.008491447195410728,
0.2755855321884155,
0.4619064927101135,
0.06103856861591339,
0.1685640513896942,
0.029028864577412605,
0.10671838372945786,
0.3407551348209381,
-0.06263644993305206,
-0.19644416868686676,
-0.18969079852104187,
0.08913985639810562,
0.10159390419721603,
-0.7081444263458252,
0.07329221814870834,
-0.24685260653495789,
-0.10262414813041687,
0.015016009099781513,
-0.14639219641685486,
-0.23107858002185822,
-0.38406407833099365,
0.20575881004333496,
0.0964827761054039,
-0.022436203435063362,
-0.09366115927696228,
-0.01037754025310278,
0.5541225671768188,
-0.1331993043422699,
0.213392972946167,
-0.2867097854614258,
0.07616221904754639,
0.07395658642053604,
-0.21884913742542267,
-0.0774904415011406,
0.11129739135503769,
-0.014222433790564537,
0.03712599724531174,
-0.47027578949928284,
0.2807563245296478,
0.05194411799311638,
0.018090983852744102,
0.016400892287492752,
-0.08857972919940948,
0.41583070158958435,
0.031036311760544777,
0.06493450701236725,
0.08250107616186142,
0.21682073175907135,
-0.003239546436816454,
0.05643503740429878,
0.058280590921640396,
-0.3148386478424072,
0.4590701758861542,
0.20776432752609253,
0.07014194875955582,
-0.07283909618854523,
-0.0429895855486393,
-0.10284025967121124,
-0.40273088216781616,
-0.1958099752664566,
0.14907130599021912,
0.1796000599861145,
0.1914663314819336,
0.31299248337745667,
-0.1987798810005188,
0.27538010478019714,
-0.012533271685242653,
-0.06015196815133095,
-0.12334888428449631,
0.14538274705410004,
-0.38491687178611755,
0.26186099648475647,
0.2926681637763977,
-0.2601510286331177,
0.32550784945487976,
0.3089481294155121,
0.3424108624458313,
-0.004143190570175648,
0.07343955338001251,
-0.2821100950241089,
0.10133807361125946,
-0.1857384592294693,
-0.053338274359703064,
-0.22540900111198425,
0.17369668185710907,
0.29828202724456787,
-0.1498628407716751,
0.1796702742576599,
-0.2692434787750244,
-0.2601081132888794,
0.21539556980133057,
0.06301534175872803,
-0.2491663098335266,
-0.06888620555400848,
-0.46898508071899414,
0.13057002425193787,
0.2372387796640396,
0.0045826067216694355,
-0.1681930273771286,
-0.16901037096977234,
-0.5841554403305054,
-0.1867304891347885,
0.22472497820854187,
0.14870618283748627,
-0.6226083636283875,
0.01038710493594408,
-0.2680074870586395,
0.349962055683136,
0.029298486188054085,
0.02066691406071186,
-0.18416164815425873,
0.5567416548728943,
-0.13641133904457092,
0.048374243080616,
0.1785367727279663,
-0.4073663353919983,
-0.34322312474250793,
-0.3021989166736603,
0.3096632957458496,
-0.10789003223180771,
0.04893651604652405,
-0.10578203201293945,
0.1185818761587143,
-0.06338080763816833,
0.2802256643772125,
-0.2763058841228485,
0.26933762431144714,
0.04976516589522362,
-0.17411330342292786,
-0.1504567414522171,
-0.10334930568933487,
-0.055499959737062454,
0.10727789998054504,
-0.09305135160684586,
-0.0682106465101242,
0.24829213321208954,
-0.24341881275177002,
-0.2698497176170349,
-0.0465707927942276,
0.21163207292556763,
0.19406303763389587,
-0.3016173839569092,
0.19667717814445496,
0.006673245690762997,
-0.045915305614471436,
0.2049427181482315,
-0.08563142269849777,
0.3094465434551239,
0.11927109211683273,
-0.06333467364311218,
-0.47617074847221375,
-0.16598348319530487,
-0.1861744076013565,
-0.11531013250350952,
0.012197546660900116,
0.07602471113204956,
0.1235741674900055,
0.07233978807926178,
-0.25528189539909363,
-0.6563643217086792,
-0.24433653056621552,
-0.06645440310239792,
-0.11465572565793991,
0.15613389015197754,
-0.005522639490664005,
-0.14333511888980865,
0.2601361572742462,
0.46008819341659546,
0.26338326930999756,
0.0992787554860115,
-0.17471270263195038,
0.35264039039611816,
0.03725159913301468,
-0.055103033781051636,
0.1486089676618576,
0.24897848069667816,
-0.02544175274670124,
-0.4127580523490906,
0.1762648969888687,
0.02282380498945713,
0.05186087265610695,
-0.04106701537966728,
0.11398321390151978,
0.4497630298137665,
0.16841550171375275,
0.2445274442434311,
-0.14053106307983398,
-0.13733331859111786,
0.03153518959879875,
-0.09211014211177826,
0.02846912480890751,
-0.40441223978996277,
0.10032244026660919,
0.06902191042900085,
0.1901567280292511,
-0.05921333283185959,
0.22482754290103912,
-0.19677944481372833,
0.7020140290260315,
0.22957919538021088,
0.3146531283855438,
0.20030120015144348,
0.06124301254749298,
-0.17370906472206116,
-0.3064577877521515,
-0.2758396863937378,
0.5699102282524109,
0.12267859280109406,
-0.13191784918308258,
0.3084486722946167,
0.05091586709022522,
-0.10449475795030594,
0.15288224816322327,
0.29514285922050476,
-0.11052919179201126,
0.011959574185311794,
0.1853528767824173,
0.04845202714204788,
0.0022558022756129503,
-0.010293892584741116,
-0.0005143046146258712,
0.2762988805770874,
-0.44570857286453247,
0.10123278200626373,
-0.2893081605434418,
0.11609532684087753,
0.015384255908429623,
-0.44704094529151917,
-0.05008669197559357,
-0.2175883948802948,
0.022283347323536873,
-0.10537663102149963,
0.16900257766246796,
0.522066593170166,
0.1414785534143448,
0.7223021388053894,
0.22660331428050995,
-0.12144239246845245,
-0.04680049791932106,
-0.36085596680641174,
-0.06964830309152603,
-0.014793327078223228,
-0.16471616923809052,
-0.08898352086544037,
0.2091377079486847,
-0.2166951596736908,
-0.19473178684711456,
0.23748578131198883,
-0.32607707381248474,
0.033106278628110886,
-0.041586000472307205,
0.27375730872154236,
0.49321797490119934,
-0.11447224766016006,
-0.14397454261779785,
0.11492536962032318,
0.2683180570602417,
-0.0197642482817173,
0.2143017053604126,
0.07479609549045563,
-0.25199609994888306,
0.0253391582518816,
-0.050895657390356064,
-0.31077834963798523,
0.3045136332511902,
-0.18278038501739502,
-0.19885925948619843,
0.010753199458122253,
0.022668778896331787,
-0.04329875856637955,
0.35827186703681946,
0.33041346073150635,
0.12296681106090546,
-0.20948410034179688,
-0.11472510546445847,
-0.6629090905189514,
0.4382675886154175,
-0.2981931269168854,
-0.11302349716424942,
0.12291188538074493,
-0.25445619225502014,
0.585269033908844,
0.03902904689311981,
-0.20369194447994232,
-0.618441641330719,
0.03932693600654602,
0.25664690136909485,
-0.08096671104431152,
0.07439342141151428,
0.09192585200071335,
0.07799650728702545,
0.00860515795648098,
-0.14525413513183594,
-0.2045077681541443,
0.22253046929836273,
-0.31088659167289734,
0.1650233119726181,
0.24360518157482147,
0.3170930743217468,
0.15397046506404877,
0.910338282585144,
0.27061519026756287,
-0.2894459366798401,
0.47981077432632446,
-0.05939841270446777,
0.31435903906822205,
-0.35541287064552307,
-0.36912214756011963,
-0.16725370287895203,
0.23914691805839539,
0.13401085138320923,
0.24403205513954163,
-0.11024394631385803,
0.4330882728099823,
-0.07250655442476273,
-0.32332533597946167,
-0.16089339554309845,
-0.33068349957466125,
-0.05127941071987152,
-0.05709719657897949,
0.5392928123474121,
-0.0012504071928560734,
0.22852231562137604,
-0.3670795261859894,
-0.20145612955093384,
-0.09001987427473068,
-0.12140616029500961,
0.030715949833393097,
-0.1189364418387413,
0.20836402475833893,
0.4051838219165802,
-0.41392821073532104,
0.4988672435283661,
0.06697763502597809,
0.10792968422174454,
0.021499978378415108,
0.4737035036087036,
-0.08933676779270172,
0.033613406121730804,
0.16861113905906677,
-0.3760928809642792,
0.08614647388458252,
0.010659460909664631,
0.10862123966217041,
-0.4380440413951874,
0.15279461443424225,
-0.04008921608328819,
0.020740197971463203,
0.33565375208854675,
0.6264060139656067,
-0.18394020199775696,
0.032359253615140915,
0.2444843053817749,
-0.12188508361577988,
-0.10410451143980026,
-0.32338830828666687,
-0.3281172513961792,
-0.22280602157115936,
-0.08939091861248016,
-0.050423763692379,
0.031282175332307816,
0.3153294622898102,
0.023515967652201653,
0.18316584825515747,
0.1488298922777176,
-0.40037527680397034,
0.16127625107765198,
0.25910550355911255,
0.16271154582500458,
-0.08948386460542679,
0.05779457464814186,
0.16748201847076416,
-0.6602145433425903,
0.5150837302207947,
0.30281302332878113,
-0.4229431748390198,
-0.660774827003479,
-0.12094245851039886,
-0.05457598343491554,
0.4059807062149048,
0.09570814669132233,
-0.2597755789756775,
0.12474852800369263,
-0.1759485900402069,
0.09407872706651688,
-0.09821464866399765,
0.31459641456604004,
0.4231685698032379,
-0.10081789642572403,
-0.16939327120780945,
-0.5441932082176208,
0.40147146582603455,
0.06402254849672318,
0.017890863120555878,
0.03431132808327675,
0.2680590748786926,
-0.3483158349990845,
0.2627153992652893,
0.08030802756547928,
0.5774642825126648,
0.3167761266231537,
-0.019488805904984474,
0.23539234697818756,
0.20793703198432922,
0.3009338974952698,
0.3254626393318176,
0.01685437001287937,
-0.13577604293823242,
0.02588847279548645,
-0.025200091302394867,
-0.12510047852993011,
0.17697016894817352,
0.126072496175766,
-0.31573858857154846,
0.6133507490158081,
-0.2259567528963089,
-0.23259560763835907,
-0.010540769435465336,
-0.04365979880094528,
0.14953060448169708,
-0.2235095351934433,
-0.12704068422317505,
0.07963436841964722,
-0.022154688835144043,
-0.08843386918306351,
-0.01659165322780609,
0.05266599729657173,
0.16085241734981537,
-0.2936868369579315,
-0.2373051643371582,
-0.0411996990442276,
0.01283753290772438,
-0.11231222003698349,
0.05195806920528412,
0.012661046348512173,
0.314829558134079,
0.1824474036693573,
0.6069732904434204,
0.24932533502578735,
-0.16227290034294128,
0.092204250395298,
-0.11786573380231857,
-0.012797362171113491,
0.001834810827858746,
0.06109777092933655,
-0.20825405418872833,
-0.09533929079771042,
-0.33352887630462646,
0.20350529253482819,
0.14014290273189545,
-0.2949581742286682,
-0.3115859925746918,
-0.29785406589508057,
0.10019444674253464,
-0.15115617215633392,
0.05816565826535225,
-0.198563352227211,
0.05896729975938797,
-0.22536955773830414,
0.07929492741823196,
-0.15274792909622192,
-0.001303509110584855,
0.1458335518836975,
-0.3612085282802582,
-0.2589079439640045,
0.09286315739154816,
0.34157150983810425,
-0.17359648644924164,
0.20141562819480896,
0.5621203780174255,
-0.1293611228466034,
0.07186927646398544,
-0.061695266515016556,
0.10201124101877213,
0.013544867746531963,
-0.15096457302570343,
0.33954256772994995,
0.3096991777420044,
0.264044851064682,
0.11829665303230286,
0.6846898198127747,
0.10095915198326111,
-0.13953331112861633,
0.19830986857414246,
-0.18399757146835327,
0.09121835976839066,
-0.2021653652191162,
0.04574074596166611,
0.08305337280035019,
0.02087874710559845,
0.16706013679504395,
-0.04621889814734459,
0.0603758879005909,
-0.18368524312973022,
0.23243021965026855,
-0.12282023578882217,
-0.1392485350370407,
-0.042392972856760025,
-0.17068840563297272,
0.21012520790100098,
0.07354177534580231,
-0.03690789267420769,
0.2965260446071625,
-0.22183635830879211,
-0.12504863739013672,
-0.4624554216861725,
0.13674238324165344,
0.0681849867105484,
-0.09256299585103989,
0.005986521486192942,
-0.038207851350307465,
-0.21278226375579834,
-0.14123067259788513,
-0.08439026772975922,
0.4205979108810425,
0.02777191810309887,
0.4663684666156769,
0.08058176934719086,
0.26607421040534973,
0.05922187119722366,
-0.01731828786432743,
0.13760776817798615,
0.34752991795539856,
0.07433411478996277,
0.28015583753585815,
-0.033318955451250076,
-0.10433337837457657,
-0.10889361798763275,
0.012344923801720142,
0.4550779163837433,
-0.14004284143447876,
0.12886951863765717,
0.08338773250579834,
0.028017904609441757,
0.14374884963035583,
0.2597428560256958,
0.06045013293623924,
-0.4357892572879791,
-0.2595277428627014,
-0.05624248832464218,
0.038652438670396805,
-0.4195454716682434,
-0.00011963189172092825,
-0.007430505473166704,
0.38974353671073914,
0.08657912164926529,
0.26633450388908386,
0.14773029088974,
-0.14255550503730774,
-0.11657310277223587,
-0.046907104551792145,
0.16509857773780823,
-0.22782453894615173,
0.3007047176361084,
0.04604927450418472,
-0.13212041556835175,
0.14930148422718048,
0.5626956820487976,
0.21787576377391815,
0.22595477104187012,
0.5427417159080505,
-0.20354779064655304,
0.521511435508728,
-0.33088797330856323,
-0.12117866426706314,
-0.1570497751235962,
-0.2285768687725067,
0.18660509586334229,
0.2842146158218384,
0.1555817574262619,
0.14489682018756866,
-0.12073810398578644,
0.5115416049957275,
0.04092606529593468,
0.0316462405025959,
-0.3718786835670471,
-0.02036721259355545,
0.07844439893960953,
-0.21428422629833221,
-0.3626481294631958,
-0.21735641360282898,
-0.020614923909306526,
-0.03371409326791763,
-0.01535186730325222,
0.018039938062429428,
0.1275290846824646,
0.020771827548742294,
-0.05638442188501358,
-0.04069574549794197,
-0.14775307476520538,
0.18017274141311646,
0.20928439497947693,
-0.013768341392278671,
0.17708924412727356,
0.32633334398269653,
0.15095603466033936,
0.19397208094596863,
0.442727267742157,
0.2295701503753662,
0.24125328660011292,
-0.060165006667375565,
-0.24202445149421692,
-0.03854271024465561,
0.024976665154099464,
0.16570639610290527,
0.1447426676750183,
0.21920710802078247,
0.3229828178882599,
0.2372627556324005,
0.04013025760650635,
-0.1470799744129181,
0.5082956552505493,
-0.13725611567497253,
0.6505017280578613,
-0.431714802980423,
0.5439692139625549,
0.06322816759347916,
0.19063737988471985,
0.20602813363075256,
0.13211916387081146,
-0.24254187941551208,
0.13806195557117462,
0.211299329996109,
0.21430636942386627,
-0.1341811865568161,
-0.3158295750617981,
0.032232146710157394,
-0.1516745537519455,
0.41942113637924194,
0.32951852679252625,
-0.05758558213710785,
-0.6801507472991943,
-0.023964716121554375,
-0.6489642262458801,
0.02079174481332302,
-0.08960825949907303,
0.1807384490966797,
0.0731625184416771,
-0.09335450083017349,
-0.15654093027114868,
0.4147489070892334,
0.1558232605457306,
-0.2584223747253418,
-0.28803449869155884,
0.05689722299575806,
-0.47720158100128174,
-0.06263887882232666,
-0.20283709466457367,
-0.437426894903183,
0.19915226101875305,
-0.28513363003730774,
-0.22481751441955566,
-0.1306181699037552,
-0.0007865616935305297,
-0.051295824348926544,
-0.19945311546325684,
0.309157133102417,
0.40737682580947876,
0.44247034192085266,
0.12556779384613037,
0.36498427391052246,
0.034182753413915634,
0.05435686931014061,
-0.011363422498106956,
0.016852080821990967,
-0.10586091876029968,
-0.011144590564072132,
-0.019259076565504074,
0.04638607054948807,
-0.4178256690502167,
-0.25725290179252625,
-0.3420442044734955,
0.10455973446369171,
0.08249257504940033,
-0.30394622683525085,
-0.382914274930954,
0.14562788605690002,
0.0989886000752449,
-0.17602914571762085,
-0.08648153394460678,
0.1349320411682129,
-0.12080062180757523,
0.45231109857559204,
-0.20538212358951569,
0.09305439889431,
0.5157269835472107,
-0.3611711263656616,
-0.30024346709251404,
-0.05224156752228737,
0.306715726852417,
-0.10053913295269012,
-0.3011501729488373,
-0.7532256245613098,
0.1969093382358551,
0.5441913604736328,
0.17015019059181213,
-0.06422659009695053,
0.18284909427165985,
-0.2694280445575714,
0.22873498499393463,
0.0970768854022026,
0.11868958920240402,
-0.0839603990316391,
-0.24567003548145294,
0.026721101254224777,
-0.19847245514392853
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :)
In the meantime please use an older version of `bert_score` | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 30 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :)
In the meantime please use an older version of `bert_score` | [
-0.0653991773724556,
0.10557124018669128,
0.12522727251052856,
0.07913249731063843,
0.17582041025161743,
-0.10428115725517273,
0.42146965861320496,
0.018661171197891235,
-0.06677263975143433,
0.1184605285525322,
0.03066953271627426,
0.23698508739471436,
-0.19792155921459198,
0.03047849051654339,
-0.30292046070098877,
-0.20307320356369019,
-0.10653869807720184,
0.22900322079658508,
0.06023162230849266,
-0.0018439354607835412,
-0.5456941723823547,
0.12404236197471619,
-0.4763626158237457,
-0.17734263837337494,
-0.32329562306404114,
0.016603903844952583,
-0.09317779541015625,
0.09635896235704422,
-0.19384270906448364,
-0.4644753038883209,
0.3707921504974365,
0.2937929034233093,
-0.07834330201148987,
0.42738786339759827,
-0.00012025806790916249,
-0.017313731834292412,
0.09065929055213928,
-0.1919964700937271,
0.08239884674549103,
-0.3026832342147827,
-0.30792781710624695,
0.2507733702659607,
-0.07567587494850159,
-0.18813687562942505,
-0.056803666055202484,
-0.025487542152404785,
-0.27713045477867126,
-0.22930094599723816,
0.26105788350105286,
0.37488242983818054,
0.11891961097717285,
0.24876084923744202,
-0.014195703901350498,
-0.3966115415096283,
0.13915468752384186,
-0.28564685583114624,
-0.1170235201716423,
0.4653148949146271,
-0.41632163524627686,
0.032389406114816666,
-0.15259240567684174,
0.06557505577802658,
0.06915074586868286,
0.21318794786930084,
0.4943489730358124,
0.10906336456537247,
0.04121660441160202,
0.0574481338262558,
0.12847180664539337,
0.37406739592552185,
-0.05006873235106468,
-0.2580927014350891,
-0.26822227239608765,
-0.03490452840924263,
0.1512613743543625,
-0.6960837244987488,
0.08812685310840607,
-0.29889506101608276,
-0.054467372596263885,
0.010243958793580532,
-0.21333801746368408,
-0.14946217834949493,
-0.36200520396232605,
0.18465964496135712,
0.054070375859737396,
-0.11905618011951447,
-0.1737608015537262,
-0.006160100921988487,
0.6393910646438599,
-0.12622608244419098,
0.031247008591890335,
-0.16025310754776,
-0.008180071599781513,
0.07034004479646683,
-0.22269149124622345,
-0.11428243666887283,
0.11058799177408218,
-0.020159799605607986,
0.09195117652416229,
-0.36007389426231384,
0.2725135385990143,
0.030992137268185616,
-0.07683005183935165,
0.0010993381729349494,
0.030414311215281487,
0.4342125654220581,
0.08726666122674942,
-0.05641382932662964,
0.1268502175807953,
0.27002087235450745,
0.11539433896541595,
0.0258652213960886,
0.09556196630001068,
-0.24232269823551178,
0.36339443922042847,
0.11548341810703278,
0.0006461070734076202,
-0.10701119154691696,
-0.11450961232185364,
-0.04891573637723923,
-0.2870640754699707,
-0.19433772563934326,
0.17141108214855194,
0.248059943318367,
0.17659777402877808,
0.2997082471847534,
-0.2521530091762543,
0.27255526185035706,
0.003037915797904134,
-0.0681251585483551,
-0.14189305901527405,
0.08718952536582947,
-0.352224200963974,
0.29694682359695435,
0.3173726797103882,
-0.23963265120983124,
0.3552742600440979,
0.2791147828102112,
0.3951641321182251,
0.0837467610836029,
0.053285516798496246,
-0.26895469427108765,
0.15192653238773346,
-0.16231364011764526,
-0.08429303020238876,
-0.2084583342075348,
0.139553502202034,
0.27673009037971497,
-0.14741559326648712,
0.10423625260591507,
-0.2027215212583542,
-0.2549835741519928,
0.21483881771564484,
0.09104332327842712,
-0.29955530166625977,
-0.09008992463350296,
-0.4372723400592804,
0.1694343537092209,
0.1358773112297058,
-0.094205342233181,
-0.12959317862987518,
-0.17120707035064697,
-0.5282447934150696,
-0.14452850818634033,
0.3029250204563141,
0.21831418573856354,
-0.5863319635391235,
-0.030736448243260384,
-0.26817432045936584,
0.25098907947540283,
-0.05773087963461876,
0.04616716876626015,
-0.11692529916763306,
0.4635562598705292,
-0.09589120745658875,
0.09203631430864334,
0.03610527515411377,
-0.328422486782074,
-0.3902490437030792,
-0.32762813568115234,
0.31035682559013367,
-0.05771414563059807,
0.027413994073867798,
-0.09317352622747421,
0.03158552572131157,
-0.09970090538263321,
0.20246689021587372,
-0.26751822233200073,
0.1949838101863861,
0.06001642718911171,
-0.14903229475021362,
-0.16512127220630646,
-0.16751395165920258,
-0.01389673538506031,
0.08078474551439285,
-0.18486197292804718,
-0.07771822810173035,
0.304007887840271,
-0.23771420121192932,
-0.28871721029281616,
-0.025066664442420006,
0.1667807698249817,
0.16230328381061554,
-0.2954118847846985,
0.1781115084886551,
-0.040869615972042084,
-0.06516730785369873,
0.23095054924488068,
-0.08470375835895538,
0.28369930386543274,
0.1728591024875641,
-0.092502161860466,
-0.46059203147888184,
-0.1143951341509819,
-0.16281583905220032,
-0.1544783115386963,
0.03371821716427803,
0.020307017490267754,
0.1430739164352417,
0.11133842170238495,
-0.28739696741104126,
-0.6143473982810974,
-0.20770494639873505,
-0.05512477830052376,
-0.18739715218544006,
0.094035305082798,
0.028773801401257515,
-0.12541216611862183,
0.26860204339027405,
0.527169942855835,
0.1975511610507965,
0.13447275757789612,
-0.12806689739227295,
0.40880653262138367,
0.04642133787274361,
-0.043145403265953064,
0.13157108426094055,
0.21978777647018433,
0.01516252476722002,
-0.3446045219898224,
0.0824565514922142,
0.03675112873315811,
0.016955316066741943,
0.0046333447098731995,
-0.04711219295859337,
0.4674696922302246,
0.08544760942459106,
0.21559397876262665,
-0.06561975926160812,
-0.13018567860126495,
0.014337541535496712,
-0.02571096085011959,
-0.0032302401959896088,
-0.446957528591156,
0.10621889680624008,
-0.01563258096575737,
0.1746184378862381,
-0.10733345150947571,
0.16758272051811218,
-0.1494363397359848,
0.5737682580947876,
0.16850972175598145,
0.3206823766231537,
0.27105847001075745,
0.026110142469406128,
-0.20362456142902374,
-0.21021631360054016,
-0.3017737865447998,
0.5065487623214722,
0.1265648901462555,
-0.1132989302277565,
0.29864612221717834,
0.00859540794044733,
-0.12548929452896118,
0.1335161030292511,
0.24801340699195862,
-0.11313723772764206,
-0.01600160077214241,
0.2157009094953537,
0.047516658902168274,
-0.05095890909433365,
0.009092043153941631,
-0.1127002090215683,
0.2533239424228668,
-0.4297868013381958,
0.11043565720319748,
-0.3132549524307251,
0.06756361573934555,
-0.002046702429652214,
-0.4873186945915222,
-0.15345986187458038,
-0.2266826331615448,
0.11098208278417587,
-0.021897343918681145,
0.05060692876577377,
0.49098801612854004,
0.17217041552066803,
0.6954312324523926,
0.17584668099880219,
-0.02013172022998333,
-0.039287373423576355,
-0.40394413471221924,
-0.08064158260822296,
0.023544462397694588,
-0.16378390789031982,
-0.13261492550373077,
0.29366689920425415,
-0.20230916142463684,
-0.20844130218029022,
0.16529779136180878,
-0.3238099217414856,
0.0610867515206337,
-0.0988679975271225,
0.302675724029541,
0.5101534724235535,
-0.17562110722064972,
-0.24815969169139862,
0.11706113070249557,
0.2749005854129791,
-0.03807496279478073,
0.20955926179885864,
0.0698152706027031,
-0.21606503427028656,
0.06698769330978394,
-0.037815455347299576,
-0.26730841398239136,
0.3557490110397339,
-0.12567123770713806,
0.03742078319191933,
0.012987345457077026,
0.008314013481140137,
0.034192949533462524,
0.36687347292900085,
0.37273624539375305,
0.04998038709163666,
-0.16623422503471375,
-0.1761745661497116,
-0.6425840258598328,
0.37921008467674255,
-0.3096799850463867,
-0.1714019477367401,
0.028500130400061607,
-0.19411581754684448,
0.4604354202747345,
0.01389229390770197,
-0.1628638207912445,
-0.642967164516449,
0.03388546034693718,
0.22017021477222443,
-0.0202882532030344,
0.10863293707370758,
0.12794817984104156,
0.07019238919019699,
-0.03103255107998848,
-0.13630004227161407,
-0.17085406184196472,
0.21753422915935516,
-0.40942656993865967,
0.147141233086586,
0.162518709897995,
0.23548080027103424,
0.12289561331272125,
0.8513764142990112,
0.2858026325702667,
-0.1723720282316208,
0.4137633442878723,
-0.06929167360067368,
0.40692463517189026,
-0.4315741956233978,
-0.30844298005104065,
-0.0779515877366066,
0.1519484668970108,
0.17010800540447235,
0.25659120082855225,
-0.07206704467535019,
0.4978995621204376,
-0.07735195010900497,
-0.2730075716972351,
-0.0725356861948967,
-0.34796595573425293,
-0.006714866030961275,
0.011999836191534996,
0.46215182542800903,
0.05311135947704315,
0.3101491630077362,
-0.31847909092903137,
-0.25859954953193665,
-0.0800904631614685,
-0.19238696992397308,
0.0593598410487175,
-0.16210238635540009,
0.2538944482803345,
0.30430763959884644,
-0.5376894474029541,
0.4907965362071991,
0.13245375454425812,
0.08417873829603195,
0.011515919119119644,
0.3476766049861908,
-0.11148171871900558,
-0.00169521220959723,
0.16122503578662872,
-0.32057657837867737,
0.051980964839458466,
0.007848832756280899,
0.08938399702310562,
-0.4751476049423218,
0.19583368301391602,
-0.09154821932315826,
-0.0450601652264595,
0.2846352458000183,
0.6144077777862549,
-0.2590409219264984,
0.020902112126350403,
0.3384501338005066,
-0.08822116255760193,
-0.05203968286514282,
-0.28903844952583313,
-0.31441256403923035,
-0.15843375027179718,
-0.08574216812849045,
-0.06953860819339752,
0.03347526490688324,
0.25946494936943054,
0.00989244319498539,
0.2843877375125885,
0.14270776510238647,
-0.3517606556415558,
0.1875327229499817,
0.3193560540676117,
0.19103902578353882,
-0.09498447179794312,
0.09764525294303894,
0.2399769276380539,
-0.6102174520492554,
0.5049683451652527,
0.30009031295776367,
-0.41404592990875244,
-0.6082891225814819,
-0.0720817819237709,
-0.023780614137649536,
0.34447214007377625,
0.16108998656272888,
-0.23459084331989288,
0.09682304412126541,
-0.14308671653270721,
0.1310020536184311,
-0.24066713452339172,
0.32529908418655396,
0.4248118996620178,
-0.13672126829624176,
-0.1481281965970993,
-0.422730028629303,
0.5183259844779968,
0.10188570618629456,
0.0071886866353452206,
-0.003897220827639103,
0.3827882409095764,
-0.31821009516716003,
0.27919599413871765,
0.08468550443649292,
0.4901050329208374,
0.27536606788635254,
0.024534152820706367,
0.29004308581352234,
0.1830846071243286,
0.3743008077144623,
0.3055671155452728,
0.03356559947133064,
-0.18019361793994904,
-0.022512715309858322,
0.0362514965236187,
-0.0294745285063982,
0.12545622885227203,
0.07170858979225159,
-0.2818482220172882,
0.6017310619354248,
-0.1307421773672104,
-0.163916677236557,
-0.005362961441278458,
-0.06501685827970505,
0.07588722556829453,
-0.3066626191139221,
-0.13378508388996124,
0.10889362543821335,
0.03499157354235649,
-0.11305342614650726,
-0.0032096561044454575,
0.10666640847921371,
0.15199226140975952,
-0.2874346673488617,
-0.2890518307685852,
-0.021242011338472366,
0.07005802541971207,
-0.18932224810123444,
0.10211687535047531,
-0.03416843339800835,
0.3054371178150177,
0.1074923723936081,
0.6377584934234619,
0.24603994190692902,
-0.20747654139995575,
0.12625938653945923,
-0.1689179688692093,
0.033899106085300446,
0.014783985912799835,
0.07169739156961441,
-0.1978403776884079,
-0.09631679207086563,
-0.2559715211391449,
0.14244723320007324,
0.12607941031455994,
-0.19262191653251648,
-0.31248968839645386,
-0.3262651562690735,
0.07658108323812485,
-0.1488463431596756,
0.13704855740070343,
-0.24899333715438843,
0.1425115317106247,
-0.2460164874792099,
0.09488029778003693,
-0.14825166761875153,
0.04636598005890846,
0.055311333388090134,
-0.3352035582065582,
-0.20872867107391357,
0.058032650500535965,
0.4250163435935974,
-0.25541993975639343,
0.14692428708076477,
0.49830859899520874,
-0.08734379708766937,
0.04718558490276337,
-0.06362342089414597,
0.11860274523496628,
0.1683366298675537,
-0.24625743925571442,
0.2997986972332001,
0.31040698289871216,
0.15275095403194427,
0.09157194197177887,
0.7438472509384155,
0.1266750991344452,
-0.21943669021129608,
0.20817692577838898,
-0.1710689663887024,
0.09632658958435059,
-0.12485256046056747,
0.11016396433115005,
0.08008400350809097,
0.08510445803403854,
0.13069327175617218,
-0.1125175878405571,
0.04724409431219101,
-0.21219369769096375,
0.2070276141166687,
-0.113493412733078,
-0.15019673109054565,
-0.04655909538269043,
-0.17637984454631805,
0.29958754777908325,
0.028971433639526367,
-0.003154247999191284,
0.34457752108573914,
-0.20781347155570984,
-0.13466878235340118,
-0.43935754895210266,
0.1065453439950943,
0.0074745784513652325,
-0.09470010548830032,
-0.009529302828013897,
0.05014834925532341,
-0.22357605397701263,
-0.23412349820137024,
-0.01937752775847912,
0.4133853316307068,
0.061204638332128525,
0.43343859910964966,
0.0264653991907835,
0.2277650684118271,
0.11732737720012665,
-0.04734786972403526,
0.22343778610229492,
0.3463307321071625,
-0.012547630816698074,
0.29228609800338745,
-0.11845345050096512,
-0.11452320218086243,
0.011573308147490025,
0.11527905613183975,
0.4361109435558319,
-0.15342186391353607,
0.13952666521072388,
0.054985079914331436,
-0.053112681955099106,
0.16157184541225433,
0.3761325180530548,
0.06714674085378647,
-0.35525232553482056,
-0.3730354905128479,
-0.039014533162117004,
0.06750047206878662,
-0.4121430516242981,
0.014147171750664711,
-0.061987850815057755,
0.38270506262779236,
0.09407403320074081,
0.28495121002197266,
0.1263645738363266,
-0.15240205824375153,
-0.08321022242307663,
-0.006398115772753954,
0.13208089768886566,
-0.17038719356060028,
0.23631642758846283,
0.035684458911418915,
-0.10924572497606277,
0.10197773575782776,
0.5675434470176697,
0.17366860806941986,
0.37193727493286133,
0.48257288336753845,
-0.21718154847621918,
0.47978755831718445,
-0.42712995409965515,
-0.03665393218398094,
-0.16330638527870178,
-0.23614685237407684,
0.19922640919685364,
0.2894113063812256,
0.1696045845746994,
0.0940023809671402,
-0.13540321588516235,
0.6976355910301208,
-0.056467603892087936,
-0.041311006993055344,
-0.3993125855922699,
-0.0470610074698925,
0.05995166301727295,
-0.264456570148468,
-0.32171353697776794,
-0.2762300968170166,
-0.009479324333369732,
-0.000055213618907146156,
-0.07735154777765274,
0.003715444589033723,
0.16880036890506744,
-0.03015805222094059,
-0.01763690821826458,
-0.14365053176879883,
-0.1962628960609436,
0.12652724981307983,
0.2020414024591446,
0.02049904689192772,
0.18886078894138336,
0.36939746141433716,
0.15877869725227356,
0.21838060021400452,
0.4889179766178131,
0.25575050711631775,
0.14600497484207153,
-0.024648437276482582,
-0.1974700391292572,
-0.12070584297180176,
0.04642858728766441,
0.16156919300556183,
0.15371406078338623,
0.29548928141593933,
0.22863203287124634,
0.32177600264549255,
0.05557331070303917,
-0.1409091055393219,
0.4595597982406616,
-0.128928080201149,
0.6855304837226868,
-0.49200814962387085,
0.4960342347621918,
0.020603204146027565,
0.21433518826961517,
0.2529298663139343,
0.02484024502336979,
-0.21068914234638214,
0.25552403926849365,
0.1016039177775383,
0.20239152014255524,
-0.13192182779312134,
-0.29835787415504456,
0.0570167638361454,
-0.049417365342378616,
0.4805619716644287,
0.24331679940223694,
-0.15693692862987518,
-0.6128855347633362,
-0.05597541481256485,
-0.7017796635627747,
0.016539178788661957,
-0.03223622962832451,
0.29553449153900146,
0.06171899661421776,
-0.12609829008579254,
-0.1343744993209839,
0.4902205765247345,
0.1386628895998001,
-0.23640313744544983,
-0.30394986271858215,
0.008761297911405563,
-0.38117924332618713,
-0.060672126710414886,
-0.19996199011802673,
-0.4957594573497772,
0.19418950378894806,
-0.22054654359817505,
-0.19015160202980042,
-0.1369558572769165,
-0.003914775792509317,
-0.002713980618864298,
-0.15563693642616272,
0.19154728949069977,
0.3085135817527771,
0.41049107909202576,
0.19466742873191833,
0.3023008108139038,
0.021182861179113388,
0.007380506489425898,
-0.06170155480504036,
-0.001275453600101173,
-0.127500519156456,
-0.0074594696052372456,
-0.08714975416660309,
0.08972485363483429,
-0.3511873185634613,
-0.26277878880500793,
-0.36532044410705566,
0.18327391147613525,
0.10866544395685196,
-0.23780187964439392,
-0.45092934370040894,
0.1449364721775055,
0.11938995122909546,
-0.2026015818119049,
-0.16608034074306488,
0.13672660291194916,
-0.12088426947593689,
0.5144051909446716,
-0.19655466079711914,
0.02171054482460022,
0.5324782729148865,
-0.4166591763496399,
-0.22755436599254608,
-0.0542859211564064,
0.2549728751182556,
-0.03970658779144287,
-0.38138630986213684,
-0.8497495055198669,
0.25734445452690125,
0.4507562518119812,
0.22043931484222412,
-0.12652482092380524,
0.08519040793180466,
-0.3977726399898529,
0.14674533903598785,
0.05947522819042206,
0.32388466596603394,
0.010037371888756752,
-0.2801131308078766,
0.11924168467521667,
-0.18221814930438995
] |
https://github.com/huggingface/datasets/issues/842 | How to enable `.map()` pre-processing pipelines to support multi-node parallelism? | Right now multiprocessing only runs on single node.
However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos).
If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :) | Hi,
Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish?
Thanks! | 76 | How to enable `.map()` pre-processing pipelines to support multi-node parallelism?
Hi,
Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish?
Thanks!
Right now multiprocessing only runs on single node.
However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos).
If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :) | [
-0.3369056284427643,
-0.3196839988231659,
-0.16863512992858887,
-0.07855023443698883,
-0.13222838938236237,
0.033465418964624405,
0.0507950633764267,
-0.0447823628783226,
0.23892061412334442,
0.23582929372787476,
0.2544298470020294,
0.5422919988632202,
-0.15785205364227295,
0.3227919340133667,
0.00881749764084816,
-0.40161219239234924,
0.0359967015683651,
-0.03694399446249008,
-0.006383707746863365,
0.26831695437431335,
-0.08243685215711594,
0.03307192027568817,
-0.3741094172000885,
0.042058657854795456,
-0.09995010495185852,
-0.15511855483055115,
-0.1367378979921341,
-0.029817132279276848,
-0.043684955686330795,
-0.2958488166332245,
-0.22033023834228516,
0.3011392652988434,
0.031290337443351746,
0.352068156003952,
-0.0001225285668624565,
0.0020045314449816942,
0.2021491676568985,
0.13646233081817627,
0.263863205909729,
-0.20304639637470245,
-0.2922288775444031,
-0.11166034638881683,
0.20721420645713806,
-0.14126339554786682,
-0.057250238955020905,
0.12940026819705963,
0.22969046235084534,
-0.4878688454627991,
0.06062387302517891,
-0.19149596989154816,
0.0673571452498436,
0.3336280584335327,
0.07117960602045059,
0.2239813655614853,
-0.5225391387939453,
0.16761718690395355,
-0.05759879946708679,
-0.10182546824216843,
0.6528368592262268,
-0.37686723470687866,
-0.11623787134885788,
-0.047888875007629395,
0.0505259670317173,
0.14814472198486328,
0.017873350530862808,
-0.21977448463439941,
0.5481134653091431,
-0.6776025891304016,
-0.13639186322689056,
0.19811595976352692,
-0.09676739573478699,
0.09110591560602188,
-0.2966388165950775,
-0.0853985846042633,
-0.32297277450561523,
-0.23324759304523468,
-0.1775844842195511,
-0.00012154950672993436,
0.0031390085350722075,
-0.11749532073736191,
-0.5662783980369568,
-0.41025471687316895,
0.07052862644195557,
0.29572904109954834,
0.18345578014850616,
0.6211111545562744,
0.22724255919456482,
0.26783326268196106,
0.3702200651168823,
0.13261474668979645,
0.03909304738044739,
0.02036026120185852,
0.36104968190193176,
0.2500998377799988,
-0.3338700234889984,
0.0637047216296196,
0.058984413743019104,
-0.16922004520893097,
-0.21339038014411926,
-0.2581842839717865,
0.21639235317707062,
0.29935258626937866,
-0.26645341515541077,
0.44578471779823303,
0.15773174166679382,
-0.1810767948627472,
0.08756360411643982,
0.3615334630012512,
0.12244360893964767,
-0.24128563702106476,
-0.09811951220035553,
0.0740632489323616,
-0.03646954521536827,
-0.48291680216789246,
-0.4006956219673157,
0.3822460472583771,
-0.30583277344703674,
0.3852478861808777,
0.354858934879303,
-0.37826859951019287,
-0.14104866981506348,
-0.24023525416851044,
0.3023349642753601,
-0.2119239717721939,
0.44224798679351807,
0.3982142508029938,
0.06317408382892609,
0.20841430127620697,
-0.1993977278470993,
-0.2483128160238266,
0.06380777060985565,
-0.025891035795211792,
-0.1408361792564392,
0.15869693458080292,
-0.025982188060879707,
0.015085352584719658,
0.02095196023583412,
-0.1133030578494072,
0.10742025077342987,
-0.07295669615268707,
0.41149210929870605,
0.09061900526285172,
0.08630626648664474,
0.3343430459499359,
0.036416951566934586,
-0.012797039933502674,
0.0399882011115551,
0.6484881043434143,
-0.1837860345840454,
0.2720240652561188,
-0.45917728543281555,
-0.30279916524887085,
0.26623988151550293,
-0.061308182775974274,
0.25643932819366455,
0.09698989242315292,
-0.34695300459861755,
0.18637362122535706,
0.300337016582489,
-0.2851768434047699,
0.2693241238594055,
-0.18202169239521027,
-0.6244843006134033,
-0.170014888048172,
0.3108028769493103,
0.02003866620361805,
0.1818702667951584,
-0.023772448301315308,
-0.15023042261600494,
-0.06579164415597916,
0.27365642786026,
0.04461989179253578,
-0.29552751779556274,
0.15071475505828857,
0.1166546419262886,
0.31677329540252686,
0.06567075848579407,
-0.35265210270881653,
0.4236590564250946,
0.3865174353122711,
-0.3203391432762146,
0.02352881245315075,
-0.2047756314277649,
0.014123816043138504,
-0.15350213646888733,
0.1601708084344864,
-0.043437231332063675,
0.2964768409729004,
-0.021105539053678513,
0.0839054211974144,
-0.11538039147853851,
-0.2237195074558258,
0.15039919316768646,
0.018808813765645027,
0.2296515256166458,
0.16365209221839905,
-0.02922758460044861,
-0.4754524528980255,
0.3516523540019989,
-0.0050841039046645164,
0.3887659013271332,
0.035322729498147964,
-0.2026078999042511,
0.15787725150585175,
-0.15698792040348053,
-0.2968684136867523,
0.27424100041389465,
0.22676044702529907,
-0.3845555782318115,
-0.26672670245170593,
0.194401353597641,
-0.02813548967242241,
0.6583572030067444,
-0.020372562110424042,
0.01323533896356821,
-0.013306943699717522,
0.021838132292032242,
-0.15586189925670624,
-0.13862216472625732,
-0.27706485986709595,
-0.1314104050397873,
0.16610506176948547,
0.16532081365585327,
-0.012366550043225288,
-0.11401412636041641,
0.24908575415611267,
0.007622637320309877,
0.10424915701150894,
-0.37743818759918213,
0.011493127793073654,
0.040949318557977676,
-0.09347082674503326,
0.05812738463282585,
0.2879985272884369,
0.1392395794391632,
0.3358108401298523,
0.2157697081565857,
0.33590176701545715,
0.38639357686042786,
-0.10827948153018951,
-0.006182110868394375,
-0.10448811948299408,
-0.13608430325984955,
-0.2529003918170929,
0.46676337718963623,
0.21415114402770996,
-0.04216402769088745,
0.26366114616394043,
0.059815894812345505,
0.19849303364753723,
-0.07910405099391937,
0.19465014338493347,
-0.1260088086128235,
0.1594269871711731,
0.12352772057056427,
0.001431126962415874,
-0.19641920924186707,
-0.18509499728679657,
-0.2523140013217926,
-0.03650911897420883,
-0.19162435829639435,
0.07732726633548737,
-0.1236758902668953,
-0.17944401502609253,
0.09060006588697433,
0.15492179989814758,
0.2646670341491699,
-0.2878614366054535,
0.2626062333583832,
-0.10829583555459976,
0.3512685000896454,
0.08050429821014404,
0.0600421205163002,
-0.05564691498875618,
-0.02196458727121353,
0.1413630098104477,
0.4599143862724304,
-0.12378338724374771,
0.06150246039032936,
-0.03944918140769005,
0.15517233312129974,
-0.1666535586118698,
0.3832472860813141,
-0.14526031911373138,
-0.08250261843204498,
0.3208311200141907,
-0.2554079592227936,
0.0117314038798213,
0.08006781339645386,
-0.4001929461956024,
0.028389113023877144,
0.056695643812417984,
0.09593883901834488,
0.20105142891407013,
-0.1413590908050537,
0.2351788431406021,
0.27164024114608765,
0.1544083207845688,
-0.16688944399356842,
-0.2972886860370636,
0.15662240982055664,
-0.07173622399568558,
0.3108201026916504,
-0.020900174975395203,
0.09741818159818649,
0.05601661279797554,
-0.15439465641975403,
0.3162543475627899,
-0.17215470969676971,
-0.16251419484615326,
-0.10710266977548599,
-0.10856008529663086,
0.1113179624080658,
-0.12708121538162231,
-0.045795731246471405,
-0.16871771216392517,
0.03151911497116089,
-0.19784153997898102,
0.19658714532852173,
-0.28075549006462097,
-0.07752498239278793,
-0.131900817155838,
0.04245816916227341,
-0.31487971544265747,
-0.2894262969493866,
-0.016179824247956276,
-0.32747048139572144,
-0.23857808113098145,
0.5306857824325562,
-0.11350249499082565,
0.26784050464630127,
-0.307674765586853,
0.06079506129026413,
-0.27772119641304016,
-0.2799750566482544,
-0.2050081193447113,
0.3062931299209595,
-0.4266136586666107,
0.0779464840888977,
-0.28613343834877014,
0.042037900537252426,
0.08885767310857773,
0.10369208455085754,
0.33863723278045654,
0.4227595627307892,
0.11035909503698349,
0.2011970430612564,
0.1311052292585373,
0.1691945642232895,
0.07405202835798264,
0.010688522830605507,
0.4992431700229645,
0.004892795346677303,
0.15495237708091736,
0.09849391132593155,
0.14534327387809753,
0.20187292993068695,
0.31493574380874634,
-0.023479411378502846,
0.3149954378604889,
-0.05447201803326607,
0.0026230611838400364,
0.6437374353408813,
0.18635599315166473,
-0.04209306091070175,
0.19196385145187378,
0.0683293342590332,
-0.33841222524642944,
0.1102449893951416,
-0.19586710631847382,
-0.0822979137301445,
-0.2924409508705139,
-0.2481648176908493,
0.027650343254208565,
-0.0030348338186740875,
-0.49987727403640747,
-0.2921271026134491,
0.05637192353606224,
-0.3272608518600464,
0.008356747217476368,
-0.13885442912578583,
-0.22006581723690033,
0.7672844529151917,
-0.22897523641586304,
-0.3485982120037079,
-0.2488136887550354,
0.32788699865341187,
-0.20510147511959076,
0.11459215730428696,
0.4850688874721527,
-0.12156694382429123,
-0.24255748093128204,
-0.26853322982788086,
-0.16038967669010162,
0.15943217277526855,
0.24814307689666748,
0.2303038239479065,
-0.14448235929012299,
0.09740310907363892,
0.2635604739189148,
-0.08550292253494263,
0.34545671939849854,
-0.4574621617794037,
-0.23197130858898163,
-0.02453158050775528,
-0.5518502593040466,
0.15443193912506104,
-0.057817522436380386,
0.13783085346221924,
0.4147220253944397,
0.4971224069595337,
0.06220012530684471,
0.1970854103565216,
-0.07795082032680511,
-0.2383120208978653,
-0.3341006934642792,
-0.013030772097408772,
-0.23947735130786896,
-0.11399894207715988,
0.18756653368473053,
0.018708819523453712,
0.1372365951538086,
0.09224189072847366,
0.04440696910023689,
-0.08252086490392685,
-0.053653355687856674,
0.2551806569099426,
0.09136507660150528,
-0.1172083169221878,
0.07858123630285263,
-0.2555149793624878,
-0.11666001379489899,
-0.038508445024490356,
0.33230307698249817,
-0.27928999066352844,
0.24400602281093597,
-0.0023077698424458504,
-0.26963695883750916,
0.1186041459441185,
0.01868247613310814,
0.05757366493344307,
0.5479562282562256,
-0.006347371265292168,
0.0025868145748972893,
0.24687737226486206,
0.3662623167037964,
-0.07535167783498764,
-0.4279349148273468,
-0.1515333205461502,
0.28495633602142334,
0.18963120877742767,
-0.0807337537407875,
-0.19947941601276398,
0.23322556912899017,
0.31736424565315247,
-0.13350450992584229,
0.5590897798538208,
-0.7157694101333618,
-0.15146128833293915,
-0.058099377900362015,
0.11863573640584946,
0.41467273235321045,
-0.3008108139038086,
-0.18214653432369232,
-0.5093063116073608,
-0.05420336872339249,
0.04050518572330475,
-0.6150130033493042,
0.4420185387134552,
-0.009268189780414104,
-0.14476872980594635,
-0.10183028876781464,
-0.020612752065062523,
0.504596471786499,
0.5729453563690186,
-0.029571743682026863,
0.1001843586564064,
0.33524033427238464,
-0.4507003426551819,
-0.1239360123872757,
0.09449540078639984,
0.5542974472045898,
-0.1666267216205597,
0.5189485549926758,
-0.014008902944624424,
0.1069432944059372,
0.13525910675525665,
-0.04730289429426193,
-0.12906037271022797,
0.1321745216846466,
0.0707654133439064,
-0.28021520376205444,
-0.22747449576854706,
-0.28052571415901184,
0.03181590512394905,
0.02667243964970112,
0.2813253402709961,
0.4023772180080414,
0.4176657199859619,
-0.11050278693437576,
-0.056822095066308975,
-0.15436716377735138,
-0.17126931250095367,
0.24997293949127197,
-0.11613820493221283,
-0.4350855052471161,
-0.11700861155986786,
-0.20855939388275146,
-0.07014937698841095,
-0.35502365231513977,
-0.011020149104297161,
-0.0848323404788971,
-0.5259231925010681,
-0.21727430820465088,
0.40132999420166016,
0.1704328954219818,
0.5439362525939941,
0.041407834738492966,
0.35896962881088257,
-0.02728445455431938,
0.048428721725940704,
0.024372583255171776,
0.23538845777511597,
-0.38883715867996216,
0.42021796107292175,
-0.42288562655448914,
-0.1100677028298378,
0.1594161093235016,
0.2093493789434433,
0.06896570324897766,
0.0010665352456271648,
-0.34702804684638977,
0.4052498936653137,
-0.16678808629512787,
-0.08883639425039291,
-0.3233775496482849,
-0.12960249185562134,
0.60138338804245,
0.026730114594101906,
0.31273773312568665,
-0.07067427784204483,
0.10875510424375534,
-0.12040508538484573,
-0.12224766612052917,
0.3277975916862488,
-0.2691647410392761,
-0.202010378241539,
-0.16392925381660461,
0.010207237675786018,
-0.44684305787086487,
0.03895564749836922,
0.25576910376548767,
0.17916452884674072,
0.3046799302101135,
0.5270442962646484,
-0.10955692827701569,
0.09723228216171265,
0.1379774510860443,
0.13901294767856598,
0.22242672741413116,
0.06520581990480423,
-0.21219521760940552,
0.015199223533272743,
-0.0929199755191803,
0.07561256736516953,
-0.08609974384307861,
-0.037770841270685196,
0.2506556212902069,
0.17672209441661835,
0.19256579875946045,
-0.10691501945257187,
0.39037391543388367,
-0.16862842440605164,
-0.20948053896427155,
-0.17312383651733398,
-0.031253881752491,
0.03094935230910778,
-0.10182175785303116,
0.20185166597366333,
0.23338636755943298,
-0.04857419431209564,
-0.39153921604156494,
0.3528502583503723,
0.10575948655605316,
-0.10729068517684937,
-0.1105402484536171,
0.15567223727703094,
0.2883763909339905,
-0.1442367285490036,
-0.085094153881073,
-0.26781022548675537,
0.2005624920129776,
-0.050822217017412186,
0.3649410605430603,
0.15074872970581055,
-0.04746689274907112,
-0.4286777973175049,
0.3698692321777344,
0.11836115270853043,
0.06106569990515709,
0.31078892946243286,
-0.03473121300339699,
0.0024826847948133945,
-0.0003459948638919741,
-0.04976113885641098,
0.3888867199420929,
0.22132790088653564,
0.2612664997577667,
0.2090933471918106,
0.47445714473724365,
0.1417672485113144,
-0.10240580141544342,
0.15064790844917297,
-0.23023416101932526,
-0.38462063670158386,
0.14839957654476166,
-0.08405890315771103,
0.11187594383955002,
0.06535311788320541,
0.1206890419125557,
0.1489320546388626,
-0.16945858299732208,
-0.026250800117850304,
0.04636945202946663,
0.614006757736206,
0.4706127941608429,
-0.02345544844865799,
0.2348858267068863,
-0.21297964453697205,
-0.3037586808204651,
-0.08549187332391739,
0.06868245452642441,
0.20773553848266602,
-0.17160603404045105,
0.23821140825748444,
-0.24560599029064178,
-0.3759758472442627,
-0.010618618689477444,
0.41443243622779846,
-0.14197199046611786,
-0.1881617307662964,
-0.32130810618400574,
0.0009074491099454463,
-0.03162303566932678,
-0.10634561628103256,
0.18987615406513214,
0.15175925195217133,
1.0623282194137573,
0.06338388472795486,
0.09914779663085938,
-0.06413744390010834,
0.05151180922985077,
-0.09438503533601761,
0.22049957513809204,
-0.07403423637151718,
0.202374666929245,
-0.21331755816936493,
-0.3748238682746887,
-0.1249229833483696,
0.14346198737621307,
0.0070965709164738655,
0.10840094089508057,
-0.13208000361919403,
0.13156798481941223,
-0.21574360132217407,
0.1091264858841896,
0.07462979108095169,
0.25105541944503784,
0.12449442595243454,
-0.016333255916833878,
-0.006266919430345297,
-0.04683854058384895,
-0.04489121958613396,
0.21598510444164276,
0.0012291143648326397,
0.5676509141921997,
-0.046030621975660324,
0.28202468156814575,
0.08422403037548065,
0.06187207251787186,
0.14704719185829163,
0.006116202101111412,
-0.2501157522201538,
0.12268713861703873,
0.21147093176841736,
-0.46491777896881104,
-0.2161208987236023,
-0.020547710359096527,
-0.04451272636651993,
-0.16392606496810913,
0.2474396526813507,
0.36283281445503235,
0.16254644095897675,
-0.23491618037223816,
-0.2758200168609619,
-0.19813570380210876,
0.05299503356218338,
-0.33416748046875,
0.17720647156238556,
-0.1068425104022026,
0.02871866710484028,
0.06042051687836647,
0.16469942033290863,
0.29093047976493835,
-0.6244518756866455,
-0.010124154388904572,
0.6283125877380371,
-0.0689731314778328,
0.3195916414260864,
-0.1501971185207367,
0.004378314595669508,
0.2291318029165268,
-0.027565360069274902,
0.22003383934497833,
0.10528290271759033,
-0.180122971534729,
-0.03748582676053047,
-0.05839720368385315,
0.08084159344434738,
-0.09907214343547821,
0.1811191290616989,
0.06382095068693161,
0.2293650209903717,
-0.15350326895713806,
0.26008403301239014,
-0.18091274797916412,
0.08719778805971146,
-0.14134064316749573,
0.06140099838376045,
-0.16814573109149933,
0.2067476063966751,
-0.5416620969772339,
-0.2201777696609497,
-0.11807028949260712,
-0.2511603534221649,
-0.27175408601760864,
-0.22614330053329468,
-0.12668776512145996,
-0.17362381517887115,
-0.16965779662132263,
0.012438408099114895,
0.2903866767883301,
0.30109113454818726,
0.1507919430732727,
-0.20555920898914337,
-0.21488362550735474,
0.061983998864889145,
-0.1120365634560585,
-0.41726964712142944,
0.020355932414531708,
-0.5614668726921082,
-0.12289556115865707,
0.06367321312427521,
0.28790777921676636,
-0.23662641644477844,
-0.4211463928222656,
0.2118508368730545,
0.02560635842382908,
-0.09193342179059982,
0.28612619638442993,
-0.3022788166999817,
-0.2326253056526184,
-0.2141355723142624,
0.020548241212964058,
0.03492086008191109,
0.11821562051773071,
-0.10459823906421661,
-0.2701585292816162
] |
https://github.com/huggingface/datasets/issues/841 | Can not reuse datasets already downloaded | It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py'
Where and how to assign this ```wikipedia.py``` after I manually download it ? | Hello,
I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on).
I successfully downloaded and reuse the wikipedia datasets in a frontal node.
When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error.
On frontal node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd)
/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
```
On gpu node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
```
Any advice?Thanks!
| 19 | Can not reuse datasets already downloaded
Hello,
I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on).
I successfully downloaded and reuse the wikipedia datasets in a frontal node.
When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error.
On frontal node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd)
/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
```
On gpu node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
```
Any advice?Thanks!
It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py'
Where and how to assign this ```wikipedia.py``` after I manually download it ? | [
-0.15487243235111237,
-0.23765875399112701,
-0.09354013204574585,
0.2473086267709732,
0.3116976022720337,
0.09384498000144958,
0.2028711587190628,
0.054930660873651505,
0.43617942929267883,
-0.1159731075167656,
0.05712587758898735,
-0.06967675685882568,
0.46847039461135864,
-0.01351985428482294,
0.037993911653757095,
-0.03264464810490608,
-0.13004004955291748,
-0.1004902571439743,
0.043640270829200745,
-0.1173638254404068,
-0.06784304231405258,
0.05123959481716156,
0.09873363375663757,
-0.19736024737358093,
-0.5170295834541321,
-0.036662470549345016,
0.069586843252182,
0.025712953880429268,
0.12798084318637848,
-0.32920950651168823,
0.4963112473487854,
0.15194733440876007,
0.3188909888267517,
0.3908819854259491,
-0.00012275857443455607,
0.03316323459148407,
0.030148426070809364,
-0.008672114461660385,
-0.2577650249004364,
-0.21752336621284485,
-0.05834008380770683,
-0.022179771214723587,
0.29830631613731384,
-0.3426145911216736,
-0.33257898688316345,
0.10167042911052704,
0.10094743221998215,
-0.5310967564582825,
0.532662570476532,
0.026515038684010506,
0.09909652918577194,
-0.22454684972763062,
0.19646701216697693,
-0.1530514657497406,
-0.14162874221801758,
0.16416826844215393,
0.002109674271196127,
0.17256490886211395,
0.19441519677639008,
-0.03513935208320618,
0.24067462980747223,
0.09090611338615417,
-0.057565536350011826,
0.2920190989971161,
0.4881071150302887,
-0.041038427501916885,
0.15931905806064606,
-0.4436327815055847,
-0.005662132054567337,
0.12685269117355347,
0.7601926922798157,
-0.1796581745147705,
-0.0926002562046051,
-0.12819713354110718,
-0.2547181248664856,
-0.21471184492111206,
-0.024781370535492897,
0.0598493330180645,
-0.2936774492263794,
0.10416728258132935,
-0.051280949264764786,
-0.3261171877384186,
-0.11290089786052704,
0.3657034635543823,
0.05248802900314331,
0.08058024197816849,
0.2111366093158722,
0.29922690987586975,
0.13002383708953857,
0.03847450017929077,
0.14022444188594818,
-0.2005084902048111,
0.13214334845542908,
-0.03260629624128342,
-0.40055108070373535,
0.04038817435503006,
0.01986537128686905,
-0.01980823650956154,
0.0059410263784229755,
0.43561676144599915,
-0.004915920551866293,
0.1558225005865097,
0.06896763294935226,
0.03488229587674141,
-0.12097476422786713,
0.09793141484260559,
0.012146341614425182,
0.06792596727609634,
0.22951050102710724,
0.09809229522943497,
-0.30037954449653625,
-0.1996251344680786,
0.21480390429496765,
-0.08263283222913742,
-0.17594799399375916,
0.04584188386797905,
0.27121204137802124,
-0.16573190689086914,
-0.014850940555334091,
0.025069069117307663,
-0.11292815208435059,
-0.01030049193650484,
-0.04080221429467201,
0.3777109682559967,
-0.11839935183525085,
0.25159287452697754,
0.34869715571403503,
0.007392185740172863,
-0.2008041888475418,
-0.15180781483650208,
-0.09988918900489807,
-0.00009539868915453553,
-0.1795949786901474,
0.24725213646888733,
0.3716268241405487,
-0.02905103750526905,
0.1782626062631607,
-0.06073305755853653,
0.10729682445526123,
-0.1576450914144516,
0.5114760994911194,
-0.21325190365314484,
0.1165531575679779,
-0.003091631457209587,
0.18300171196460724,
0.400869220495224,
0.23191410303115845,
0.09437592327594757,
0.022821912541985512,
0.023588337004184723,
-0.2802009582519531,
-0.3750861883163452,
0.008578670211136341,
0.10514528304338455,
0.12370729446411133,
0.13305482268333435,
0.03968706727027893,
-0.19552068412303925,
0.32791489362716675,
-0.20951096713542938,
-0.0007527389097958803,
-0.002433924935758114,
-0.41690370440483093,
-0.2892305552959442,
0.24411872029304504,
0.5860953330993652,
-0.4188295006752014,
0.010705921798944473,
0.1581707000732422,
0.11577705293893814,
0.12402834743261337,
0.6433212161064148,
-0.35103026032447815,
0.13192014396190643,
-0.16178679466247559,
-0.1739807426929474,
0.2686307728290558,
-0.5118987560272217,
-0.31029415130615234,
0.13031044602394104,
-0.015740470960736275,
0.17431801557540894,
0.07659262418746948,
0.29131725430488586,
0.07833889871835709,
0.06816241890192032,
0.11490081995725632,
0.4836629033088684,
-0.017120126634836197,
-0.21838240325450897,
-0.1767851710319519,
-0.2592068612575531,
0.3600459098815918,
-0.1000051349401474,
0.17630384862422943,
0.13007935881614685,
0.0545266829431057,
0.19955909252166748,
0.2683357894420624,
-0.15962377190589905,
0.283175528049469,
0.2313869744539261,
0.17339091002941132,
0.260677307844162,
0.0332905612885952,
0.017174944281578064,
-0.403064101934433,
0.33025476336479187,
-0.24612732231616974,
0.0058932737447321415,
-0.23330512642860413,
-0.32323700189590454,
-0.19352807104587555,
-0.27464404702186584,
-0.0030135689303278923,
-0.021753758192062378,
0.03678249567747116,
0.246628999710083,
0.208759605884552,
0.1449090987443924,
0.2628288269042969,
0.4253349006175995,
-0.2703685760498047,
0.045790739357471466,
-0.3987371623516083,
0.3691844940185547,
-0.22552458941936493,
0.018924541771411896,
-0.20208296179771423,
-0.02712596394121647,
0.3046056926250458,
0.008226861245930195,
0.2096116691827774,
0.04916774481534958,
-0.14071689546108246,
0.30162709951400757,
0.02095290832221508,
0.12914593517780304,
0.327227920293808,
-0.34006762504577637,
0.05462280660867691,
0.346152126789093,
0.3550489842891693,
-0.35732436180114746,
-0.1212393194437027,
0.0814284160733223,
0.253120094537735,
0.17747527360916138,
-0.07384713739156723,
0.011652588844299316,
0.10819590836763382,
-0.007021739613264799,
0.15954965353012085,
-0.021557249128818512,
0.18967482447624207,
0.40425628423690796,
-0.24269632995128632,
-0.06465767323970795,
-0.2098245769739151,
0.2700275182723999,
0.05608320236206055,
0.19395524263381958,
0.03760053589940071,
-0.12233339995145798,
0.059559401124715805,
-0.2091468721628189,
0.35000860691070557,
-0.32355794310569763,
-0.07739128172397614,
0.09559459239244461,
0.32791340351104736,
0.10280883312225342,
-0.11009113490581512,
-0.16285067796707153,
-0.012446078471839428,
-0.18161143362522125,
0.2727845311164856,
-0.05136182904243469,
0.013319576159119606,
-0.09201119840145111,
0.04336162656545639,
-0.05538097769021988,
0.39554333686828613,
0.16000787913799286,
-0.3600957691669464,
0.1393885761499405,
-0.3536381125450134,
-0.48454466462135315,
0.13537847995758057,
-0.17268146574497223,
-0.0969470664858818,
-0.3000207543373108,
-0.118442602455616,
0.5529574751853943,
0.23412631452083588,
0.2936709225177765,
-0.01863996312022209,
0.2825279235839844,
0.24666468799114227,
-0.22996436059474945,
-0.23268066346645355,
-0.36727020144462585,
0.06906473636627197,
0.026399724185466766,
0.3404128849506378,
0.19961856305599213,
0.21532532572746277,
-0.13095207512378693,
-0.25507938861846924,
-0.4913634955883026,
-0.08555660396814346,
-0.09097867459058762,
0.1733046919107437,
0.1972343623638153,
-0.3326897621154785,
0.34900331497192383,
-0.06261143088340759,
-0.21033354103565216,
0.19828616082668304,
-0.07722507417201996,
0.09636885672807693,
-0.26575425267219543,
-0.2588168680667877,
0.11320675164461136,
-0.056703586131334305,
-0.34673693776130676,
-0.39916619658470154,
-0.3085106909275055,
-0.04704241454601288,
0.1668824851512909,
0.07262697070837021,
-0.06838156282901764,
0.17866267263889313,
0.0022528611589223146,
0.18584901094436646,
0.20695827901363373,
-0.3619481027126312,
-0.30475857853889465,
0.24335628747940063,
-0.13961459696292877,
-0.31524431705474854,
0.1756564825773239,
0.11725861579179764,
-0.021244334056973457,
0.4711760878562927,
-0.477333664894104,
-0.329117089509964,
-0.05741342902183533,
0.3427010178565979,
0.024375924840569496,
-0.14686381816864014,
0.3705313801765442,
-0.34197676181793213,
-0.029272766783833504,
0.08760887384414673,
0.009292928501963615,
0.005517755169421434,
-0.3076898455619812,
0.4178672134876251,
0.1014430969953537,
0.3604355752468109,
0.06913990527391434,
0.9451532363891602,
0.12411779910326004,
-0.23065370321273804,
0.3185611665248871,
-0.10474073886871338,
0.22981397807598114,
-0.1036171093583107,
-0.1561470478773117,
0.07442320883274078,
-0.33902689814567566,
0.23276200890541077,
-0.3644365966320038,
-0.12785117328166962,
-0.27091720700263977,
-0.3345795273780823,
0.19867093861103058,
-0.32123392820358276,
-0.47581925988197327,
-0.13831478357315063,
-0.21972723305225372,
0.38259977102279663,
0.36864012479782104,
-0.01227941457182169,
-0.23555083572864532,
-0.1893036961555481,
0.09686998277902603,
0.18509197235107422,
0.1408933848142624,
0.14712674915790558,
-0.41597825288772583,
0.21126426756381989,
-0.3479147255420685,
0.4394700825214386,
0.0835309699177742,
0.10600665211677551,
-0.1756969690322876,
0.05947555601596832,
0.10064441710710526,
-0.12199065089225769,
0.7283741235733032,
-0.3127956986427307,
0.13151279091835022,
0.20716635882854462,
-0.282092422246933,
-0.46842271089553833,
0.296636700630188,
0.012467672117054462,
0.11716558039188385,
0.3558489978313446,
-0.08004308491945267,
-0.20301777124404907,
-0.07691342383623123,
-0.3034849166870117,
0.2625684142112732,
-0.23903527855873108,
0.13145792484283447,
0.07527639716863632,
-0.2807820439338684,
-0.6343671679496765,
-0.061931561678647995,
-0.030771302059292793,
0.20579685270786285,
-0.07823994010686874,
-0.04003648832440376,
-0.292502224445343,
0.4315604865550995,
0.07500338554382324,
-0.018484344705939293,
0.2736264765262604,
0.054887812584638596,
0.20372016727924347,
0.09496789425611496,
0.16742576658725739,
0.13885743916034698,
0.26004189252853394,
0.23617947101593018,
-0.04873869940638542,
0.05852974206209183,
0.160757377743721,
-0.4420766234397888,
0.4043964147567749,
0.11651289463043213,
0.3205904960632324,
0.10228510946035385,
-0.07985995709896088,
-0.22303470969200134,
0.19195672869682312,
-0.05293688550591469,
0.2260248214006424,
-0.3468128442764282,
-0.6021744012832642,
0.07377170771360397,
0.1368921399116516,
-0.14811183512210846,
0.4638579487800598,
0.13070721924304962,
-0.10340871661901474,
-0.010093387216329575,
0.13301551342010498,
1.136993646621704,
-0.10970736294984818,
0.24941813945770264,
0.05491429567337036,
0.05438416451215744,
0.7935970425605774,
-0.3770439326763153,
0.3242083191871643,
-0.23235180974006653,
0.14885854721069336,
-0.11808525770902634,
-0.11008786410093307,
0.1324557662010193,
-0.14067833125591278,
-0.048583902418613434,
0.19244292378425598,
0.13122141361236572,
0.08812370151281357,
-0.11386194080114365,
0.3052189350128174,
-0.049561500549316406,
-0.14739423990249634,
0.2064676582813263,
0.05887531116604805,
-0.03453715518116951,
0.38904768228530884,
-0.34101465344429016,
0.22555196285247803,
0.1073005273938179,
-0.14291036128997803,
-0.18983973562717438,
0.0651276633143425,
-0.3222649097442627,
0.5679986476898193,
-0.40353918075561523,
-0.5870122909545898,
0.07783764600753784,
0.2357514649629593,
0.2954041361808777,
0.0649518072605133,
-0.36941611766815186,
0.0318315327167511,
-0.3367697298526764,
-0.2194247841835022,
-0.2801858186721802,
-0.10223713517189026,
0.22820888459682465,
-0.09314067661762238,
-0.4943186044692993,
0.4344154894351959,
0.16263622045516968,
-0.3901787996292114,
-0.13350151479244232,
0.006176051218062639,
-0.3375347852706909,
-0.061242640018463135,
-0.2839338481426239,
0.20130223035812378,
-0.17080767452716827,
-0.11551088839769363,
0.037212736904621124,
-0.053951285779476166,
-0.15070262551307678,
0.014087599702179432,
0.11881900578737259,
-0.16760803759098053,
0.04375641793012619,
0.6288123726844788,
0.32836878299713135,
-0.1268271505832672,
0.4865681827068329,
0.38521456718444824,
-0.34511616826057434,
-0.0897153839468956,
-0.5433740019798279,
-0.2771347463130951,
-0.44991615414619446,
-0.10044091939926147,
-0.0599113292992115,
0.2556524872779846,
-0.07107309997081757,
-0.16187943518161774,
0.11169425398111343,
0.1838758885860443,
0.2296096533536911,
-0.41396403312683105,
-0.22967348992824554,
0.13535328209400177,
-0.22524622082710266,
0.22510963678359985,
0.36669573187828064,
-0.06680254638195038,
0.1139814481139183,
0.14450286328792572,
-0.22934654355049133,
0.3229385018348694,
-0.19818341732025146,
0.259937047958374,
-0.041198667138814926,
-0.26178374886512756,
-0.025721896439790726,
-0.15223874151706696,
-0.10322054475545883,
0.10686463117599487,
-0.25642484426498413,
-0.12049895524978638,
-0.019375760108232498,
0.16831952333450317,
0.08621805161237717,
-0.3023172914981842,
0.04523751884698868,
-0.541349470615387,
0.1897812783718109,
-0.05643996596336365,
0.32832804322242737,
0.2563537061214447,
-0.005987539421766996,
-0.0656556636095047,
0.14608150720596313,
0.026009539142251015,
-0.42610636353492737,
0.2824685871601105,
0.17896845936775208,
0.07378846406936646,
0.2832487225532532,
0.18184314668178558,
0.018246760591864586,
0.09274374693632126,
-0.3297596275806427,
0.06069476529955864,
0.3552809953689575,
-0.15430431067943573,
0.35069695115089417,
-0.164005309343338,
-0.10876458138227463,
-0.017438456416130066,
0.1831093281507492,
0.07155867666006088,
-0.17041847109794617,
0.29691797494888306,
0.00395779637619853,
0.0945935845375061,
-0.2185349464416504,
0.15255148708820343,
0.2713686227798462,
-0.1579950600862503,
0.05031981319189072,
0.11342128366231918,
0.4863114356994629,
0.011420046910643578,
0.2574238181114197,
0.1771300882101059,
0.3620303273200989,
-0.25167590379714966,
0.2153894305229187,
-0.164755716919899,
0.01807558722794056,
-0.14101524651050568,
0.14268244802951813,
0.402987003326416,
0.06527726352214813,
0.10332819819450378,
-0.14586153626441956,
0.3220047652721405,
-0.12250091880559921,
0.36132383346557617,
-0.1696135550737381,
-0.40612950921058655,
-0.08811856061220169,
0.035223785787820816,
-0.24896562099456787,
-0.016379941254854202,
-0.2956750690937042,
-0.1304602473974228,
0.17379528284072876,
-0.22612835466861725,
-0.04012714698910713,
0.40482407808303833,
-0.26873064041137695,
-0.28276729583740234,
-0.3352329432964325,
-0.34634456038475037,
0.17843972146511078,
-0.04298248514533043,
0.2153523862361908,
-0.3309490382671356,
0.24422568082809448,
0.04666588455438614,
-0.4038800895214081,
-0.3088330328464508,
0.3640611171722412,
-0.003634018125012517,
0.10839439183473587,
-0.048248518258333206,
0.05218849703669548,
0.13865721225738525,
-0.2849009931087494,
-0.08898510783910751,
0.30528536438941956,
0.43537241220474243,
0.08989112079143524,
-0.19280824065208435,
0.5962463021278381,
0.19440025091171265,
0.0021678018383681774,
-0.13040469586849213,
0.06472156196832657,
0.412421852350235,
-0.02040269412100315,
0.2085273116827011,
0.1300187110900879,
-0.09246248751878738,
-0.04214717075228691,
0.11487630009651184,
0.4866252839565277,
-0.37338167428970337,
0.2650314271450043,
-0.17986327409744263,
-0.06898778676986694,
-0.09017197042703629,
0.23357203602790833,
-0.2867177724838257,
0.28851741552352905,
0.6113156080245972,
-0.06391516327857971,
0.14861825108528137,
-0.14381198585033417,
0.01868479698896408,
-0.29012331366539,
0.4194193482398987,
0.11105535924434662,
0.30197271704673767,
-0.36129653453826904,
-0.14540192484855652,
-0.4733637571334839,
0.2039210945367813,
-0.4668930172920227,
0.05939849838614464,
-0.05800240859389305,
0.4289112687110901,
0.06490420550107956,
0.12866611778736115,
-0.10163017362356186,
-0.04979749023914337,
0.10851000249385834,
0.10720039159059525,
-0.21015360951423645,
-0.28656017780303955,
-0.38602346181869507,
-0.028703849762678146,
-0.06048160791397095,
-0.4726719856262207,
0.08914362639188766,
0.06319955736398697,
-0.047504886984825134,
-0.07833854854106903,
-0.15577895939350128,
0.1945844143629074,
0.20420750975608826,
0.4846566617488861,
0.16912081837654114,
0.6330028176307678,
0.23424002528190613,
0.09235115349292755,
-0.24784356355667114,
-0.39684388041496277,
0.07410729676485062,
0.10582971572875977,
0.186802938580513,
0.047878291457891464,
-0.5410250425338745,
-0.20975778996944427,
-0.28719455003738403,
0.3450891971588135,
-0.0004358671430964023,
-0.12662918865680695,
-0.08141729235649109,
-0.2556200921535492,
-0.1839202344417572,
0.21472172439098358,
0.11970578134059906,
0.3353785276412964,
0.007009435910731554,
0.2591792941093445,
-0.2700033187866211,
-0.19047662615776062,
0.7102392315864563,
-0.13479262590408325,
-0.1052471250295639,
-0.3297401964664459,
0.07636743038892746,
0.10474909096956253,
-0.003194291377440095,
-0.34887441992759705,
0.0254379790276289,
0.26822027564048767,
-0.18378044664859772,
-0.11110235005617142,
0.028118722140789032,
-0.21834133565425873,
0.1376701146364212,
-0.26949459314346313,
0.06911955773830414,
0.01821279339492321,
-0.22715622186660767,
-0.3523169755935669,
-0.28035736083984375
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Which version of pyarrow do you have ? Could you try to update pyarrow and try again ? | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 18 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Which version of pyarrow do you have ? Could you try to update pyarrow and try again ? | [
-0.24118328094482422,
-0.3198656737804413,
-0.06815572828054428,
0.43160730600357056,
0.3625253736972809,
0.01915484294295311,
0.5210208296775818,
0.43771326541900635,
0.29491308331489563,
0.03277552127838135,
0.016962869092822075,
-0.11870472133159637,
0.09059187024831772,
0.18028980493545532,
0.03506607934832573,
0.11300940811634064,
0.07302846014499664,
0.39882132411003113,
0.031720396131277084,
0.06997229903936386,
-0.21886058151721954,
0.12086963653564453,
0.005867550615221262,
0.05751494690775871,
-0.12442246824502945,
0.0723639652132988,
-0.00820865761488676,
0.1169142946600914,
-0.23435114324092865,
-0.4013203978538513,
0.4197230935096741,
0.07845430076122284,
0.3328506350517273,
0.52076655626297,
-0.00011690512474160641,
0.1564730405807495,
0.26544874906539917,
-0.18562592566013336,
-0.04419953376054764,
-0.5195809006690979,
0.030129535123705864,
-0.5329570174217224,
0.27766624093055725,
-0.16720233857631683,
-0.014489161781966686,
-0.17868056893348694,
-0.11099930107593536,
-0.035805970430374146,
0.3014127016067505,
0.3175452649593353,
0.18049591779708862,
-0.2607497572898865,
0.0598919577896595,
-0.01001912821084261,
0.20529192686080933,
0.037179186940193176,
-0.015685727819800377,
0.4175470173358917,
0.11739544570446014,
-0.12676116824150085,
-0.04873064160346985,
-0.1936672031879425,
-0.23924316465854645,
0.35819920897483826,
0.3196348249912262,
0.13994011282920837,
0.07096739113330841,
-0.10896703600883484,
0.26807063817977905,
0.10550523549318314,
0.6067357659339905,
-0.30764222145080566,
-0.14854714274406433,
-0.015400628559291363,
-0.020296940580010414,
-0.4886515438556671,
0.2558157742023468,
0.4044944941997528,
-0.1521599292755127,
0.11733322590589523,
-0.21221256256103516,
0.24844683706760406,
-0.26639294624328613,
0.20286187529563904,
-0.06734729558229446,
-0.3531903028488159,
-0.2522074580192566,
0.26931819319725037,
0.25234028697013855,
0.07374785095453262,
0.33363965153694153,
-0.09374990314245224,
0.02685411088168621,
0.18069684505462646,
-0.5556497573852539,
0.2796492576599121,
-0.11766058206558228,
-0.09043681621551514,
0.1637403517961502,
0.09621904045343399,
0.4014219045639038,
0.13706235587596893,
0.04234488308429718,
0.19469791650772095,
0.3191303014755249,
0.18613260984420776,
-0.042814552783966064,
0.06910472363233566,
0.027385590597987175,
0.34621769189834595,
-0.22978368401527405,
-0.2338583618402481,
-0.3881368041038513,
-0.5049573183059692,
0.23814234137535095,
-0.15383809804916382,
0.26744401454925537,
-0.27043357491493225,
-0.24793300032615662,
-0.0960201546549797,
-0.03613270819187164,
-0.009423329494893551,
-0.05283444747328758,
0.5738204717636108,
0.21583421528339386,
0.3802047669887543,
-0.05421007424592972,
0.25720903277397156,
-0.21127571165561676,
-0.09865453839302063,
-0.08035237342119217,
0.020115729421377182,
-0.057602543383836746,
0.05229124054312706,
0.37774842977523804,
-0.2166886329650879,
0.12146084010601044,
0.17629574239253998,
-0.04351634159684181,
-0.29387468099594116,
-0.1455053836107254,
-0.41772258281707764,
0.03672437742352486,
0.2833081781864166,
0.20247413218021393,
0.09795285016298294,
0.2341531366109848,
-0.2812096178531647,
-0.060687996447086334,
0.38054099678993225,
-0.23011918365955353,
-0.1685691624879837,
0.09726446121931076,
0.09630231559276581,
-0.06611702591180801,
0.16567829251289368,
-0.39563146233558655,
0.15635089576244354,
0.3519504964351654,
-0.43849414587020874,
0.033467378467321396,
-0.2134845107793808,
-0.24112306535243988,
-0.35248100757598877,
0.20189052820205688,
0.27905920147895813,
-0.7854663729667664,
0.3429478108882904,
0.053906410932540894,
-0.03174852952361107,
0.11499883979558945,
0.42371514439582825,
-0.14831706881523132,
0.06117837131023407,
-0.27098697423934937,
0.09215248376131058,
0.14062419533729553,
0.007542762905359268,
-0.6293670535087585,
0.3307563066482544,
-0.04602754861116409,
0.0895458236336708,
0.31206417083740234,
0.06455276906490326,
0.05121524631977081,
0.08917734026908875,
-0.10802217572927475,
0.018553977832198143,
0.023134613409638405,
0.04400574788451195,
-0.2607475817203522,
-0.12919268012046814,
0.31875085830688477,
0.14262457191944122,
-0.06477401405572891,
-0.06767303496599197,
0.2388889342546463,
-0.40873926877975464,
0.2025448977947235,
-0.01808738149702549,
0.1416160762310028,
0.17524681985378265,
0.17913149297237396,
-0.1968235820531845,
0.03497389703989029,
0.010433362796902657,
-0.44934946298599243,
0.14338213205337524,
0.284880667924881,
-0.16870099306106567,
-0.21594460308551788,
-0.07973092794418335,
-0.38411810994148254,
-0.02970108389854431,
-0.2681601643562317,
-0.12419972568750381,
-0.024652713909745216,
0.0725151002407074,
0.05951970815658569,
-0.1440531611442566,
-0.18574000895023346,
0.11611957848072052,
-0.22377683222293854,
-0.011276056990027428,
-0.015843937173485756,
0.14221921563148499,
0.05879932641983032,
-0.124988853931427,
0.10647231340408325,
-0.0629006177186966,
0.20716817677021027,
-0.04833386093378067,
-0.2763521671295166,
0.2495911419391632,
0.14568684995174408,
0.04561539739370346,
-0.2857955992221832,
-0.1747877597808838,
0.08302020281553268,
-0.24150553345680237,
-0.0872013196349144,
0.023738281801342964,
0.3663713335990906,
-0.18254680931568146,
-0.3392810821533203,
0.27062347531318665,
-0.1567005068063736,
0.30151399970054626,
0.18797588348388672,
-0.358071506023407,
0.3065018951892853,
0.016720233485102654,
0.17819398641586304,
0.07049191743135452,
0.13808564841747284,
0.07365412265062332,
0.4947434663772583,
0.29954156279563904,
-0.09684158116579056,
-0.15625007450580597,
0.5009903311729431,
-0.047043848782777786,
-0.21856330335140228,
0.31125980615615845,
-0.11817745864391327,
-0.19453494250774384,
0.0684313252568245,
0.08874527364969254,
0.37982177734375,
0.129376620054245,
-0.19153106212615967,
0.014664051122963428,
0.1435023993253708,
-0.25002944469451904,
0.12040587514638901,
-0.22043456137180328,
0.14736151695251465,
0.3965647518634796,
0.12700994312763214,
-0.12728583812713623,
-0.19514448940753937,
0.03774420544505119,
0.08758530765771866,
0.32572367787361145,
-0.41195550560951233,
-0.06754524260759354,
-0.0734538659453392,
-0.00520607503131032,
-0.18028461933135986,
0.09860336780548096,
-0.05557971075177193,
0.0971229299902916,
-0.3996107280254364,
0.33282431960105896,
0.2897825241088867,
-0.0790662169456482,
-0.24312594532966614,
0.0886346697807312,
0.21581262350082397,
-0.33705565333366394,
-0.0034609611611813307,
-0.04899057745933533,
-0.2919398546218872,
-0.026176292449235916,
0.33071011304855347,
0.10981899499893188,
-0.0008769872365519404,
-0.021766064688563347,
0.02802499197423458,
-0.054845232516527176,
-0.09253321588039398,
-0.04392470419406891,
-0.07322972267866135,
0.020921776071190834,
-0.051166389137506485,
0.41933107376098633,
0.007607900537550449,
-0.144631028175354,
0.4017487168312073,
-0.25366106629371643,
-0.048924800008535385,
0.35013547539711,
0.06369376927614212,
-0.09587976336479187,
-0.1087077260017395,
-0.349889874458313,
-0.13988769054412842,
-0.42933720350265503,
0.39106279611587524,
0.08475610613822937,
0.041931621730327606,
0.0926312729716301,
0.4331050515174866,
-0.026085056364536285,
0.3013545274734497,
-0.031216595321893692,
-0.08480541408061981,
-0.2977057099342346,
0.3645738363265991,
-0.05611651390790939,
-0.4676561653614044,
0.011941715143620968,
0.0828355997800827,
0.35919055342674255,
0.16382671892642975,
-0.42524710297584534,
0.3267478942871094,
-0.15090735256671906,
0.16282014548778534,
0.0011052140034735203,
-0.024227632209658623,
0.06095466762781143,
-0.0872274860739708,
-0.021823471412062645,
0.036430519074201584,
-0.24171596765518188,
-0.01417996920645237,
-0.032044410705566406,
0.1475837230682373,
0.05136847868561745,
0.4584294855594635,
-0.03719279542565346,
0.6513357758522034,
0.08746417611837387,
-0.08823138475418091,
0.4855556786060333,
-0.30823996663093567,
0.38187792897224426,
-0.20967096090316772,
-0.373745322227478,
-0.08557498455047607,
-0.3519817292690277,
-0.19244645535945892,
0.26774877309799194,
-0.03358382359147072,
-0.033414993435144424,
-0.12577596306800842,
0.003517948789522052,
-0.4046858549118042,
-0.03770316392183304,
0.18363207578659058,
0.030697034671902657,
-0.014829985797405243,
-0.10059560835361481,
-0.0133008798584342,
-0.011645855382084846,
-0.23736286163330078,
-0.19425863027572632,
0.27396413683891296,
-0.15134243667125702,
0.06338711082935333,
-0.2242484986782074,
-0.06158057227730751,
-0.3029373586177826,
0.3292049765586853,
-0.013623470440506935,
0.31028637290000916,
0.010614469647407532,
-0.017695080488920212,
0.09729672223329544,
-0.12522217631340027,
0.7449791431427002,
0.18928571045398712,
-0.15507036447525024,
0.12782905995845795,
-0.02411402203142643,
-0.44158339500427246,
-0.12176128476858139,
0.19063137471675873,
0.3073364794254303,
0.0744616687297821,
0.3548656702041626,
-0.07032588869333267,
-0.009693858213722706,
-0.144343301653862,
0.3546774685382843,
0.04325278475880623,
-0.3951282203197479,
-0.5194916725158691,
-0.23497912287712097,
-0.3830534815788269,
-0.21213534474372864,
-0.08986669778823853,
0.28827884793281555,
-0.3244076371192932,
-0.14238668978214264,
0.11836138367652893,
-0.29905372858047485,
0.06015709787607193,
0.1533813178539276,
0.29738959670066833,
-0.11291433125734329,
0.1448960304260254,
0.04683511704206467,
0.069804847240448,
0.3769119679927826,
0.7987183332443237,
-0.07857611030340195,
-0.6220773458480835,
0.08484339714050293,
-0.20502661168575287,
0.38534846901893616,
0.047819897532463074,
-0.20320534706115723,
0.12898707389831543,
0.09073479473590851,
0.06203382462263107,
0.037948235869407654,
0.014437259174883366,
0.3036864995956421,
0.04965538904070854,
-0.3454543650150299,
-0.5439224243164062,
0.48741868138313293,
-0.1259079873561859,
0.21025902032852173,
0.30208030343055725,
-0.2120000571012497,
-0.10998117923736572,
0.15552282333374023,
-0.33462491631507874,
0.6592137813568115,
-0.42182981967926025,
0.1938304603099823,
0.30733662843704224,
0.05633584409952164,
0.2584291994571686,
-0.4451972246170044,
0.1323075145483017,
-0.39196813106536865,
-0.21090373396873474,
-0.10431220382452011,
-0.07120317965745926,
0.23938605189323425,
0.43218994140625,
-0.12124570459127426,
0.31186407804489136,
-0.07414999604225159,
0.33255627751350403,
0.11313419044017792,
0.243825301527977,
-0.1005159243941307,
-0.08646856248378754,
-0.30102118849754333,
0.01042383722960949,
-0.1430809646844864,
-0.034951888024806976,
0.028959080576896667,
0.0544644333422184,
-0.180567666888237,
-0.20164556801319122,
-0.24611222743988037,
0.22002477943897247,
-0.2911674380302429,
0.11540484428405762,
-0.11095461994409561,
-0.46866485476493835,
0.1963638812303543,
0.23806707561016083,
-0.2087021917104721,
-0.08517897129058838,
-0.12408510595560074,
0.15505379438400269,
0.1596345156431198,
-0.04017554968595505,
-0.2083745002746582,
-0.053695764392614365,
-0.015885639935731888,
0.07612629234790802,
-0.2351236790418625,
0.15455135703086853,
-0.12227892875671387,
-0.09567457437515259,
0.2780734598636627,
0.23765769600868225,
-0.08480718731880188,
-0.5452091693878174,
-0.532619297504425,
-0.42841580510139465,
0.07598097622394562,
-0.19573217630386353,
0.06519818305969238,
-0.04207875207066536,
0.09834135323762894,
-0.16163481771945953,
0.18593527376651764,
-0.4688694179058075,
-0.10202683508396149,
0.39181265234947205,
-0.11168676614761353,
0.0939541757106781,
0.5907297730445862,
0.21935012936592102,
-0.016892874613404274,
-0.14115259051322937,
0.06424059718847275,
0.3081054985523224,
-0.35318848490715027,
0.11706629395484924,
0.1141490787267685,
0.31594985723495483,
0.13925305008888245,
0.29174545407295227,
0.15658053755760193,
-0.07767266780138016,
0.07445463538169861,
-0.5115906596183777,
-0.32496926188468933,
-0.016528883948922157,
-0.0015315862838178873,
0.2479579895734787,
0.16721919178962708,
0.0818668007850647,
0.17267778515815735,
0.2032967358827591,
-0.1562303602695465,
0.1004619300365448,
0.10592912137508392,
-0.0869574248790741,
0.21063292026519775,
0.14201612770557404,
-0.1338723599910736,
-0.10381940007209778,
0.09349783509969711,
0.17764000594615936,
-0.05344485491514206,
-0.18875108659267426,
-0.07985583692789078,
0.15010018646717072,
0.09836076945066452,
0.02328583598136902,
-0.20344536006450653,
-0.25268879532814026,
-0.14970612525939941,
-0.19280564785003662,
0.06640884280204773,
0.02978229708969593,
-0.09811203181743622,
0.0717599168419838,
-0.29876530170440674,
-0.08465413749217987,
-0.5091866254806519,
0.0271220114082098,
-0.5075392723083496,
0.22313232719898224,
0.299269437789917,
0.04858221858739853,
0.12175736576318741,
0.2004556804895401,
-0.1724262535572052,
-0.031158387660980225,
0.15162667632102966,
-0.13661924004554749,
0.3009468615055084,
-0.40147584676742554,
0.20350652933120728,
-0.051065169274806976,
0.3403376042842865,
0.48486098647117615,
-0.20764142274856567,
0.21971096098423004,
0.03758656233549118,
0.1341150999069214,
-0.3825283646583557,
0.27547669410705566,
0.11723203957080841,
-0.06162978336215019,
-0.02748439833521843,
0.16967540979385376,
0.19921153783798218,
-0.20830745995044708,
-0.0957765206694603,
0.006910542957484722,
0.47598904371261597,
-0.00782269798219204,
-0.03395090997219086,
0.4135631322860718,
0.0027142611797899008,
0.17896944284439087,
0.24033525586128235,
0.13563746213912964,
0.01962045393884182,
0.7002615928649902,
-0.2602291703224182,
-0.003965036943554878,
-0.23526832461357117,
0.301481693983078,
-0.32787004113197327,
-0.7641029357910156,
0.16166482865810394,
0.23555037379264832,
-0.353310227394104,
-0.16765117645263672,
0.12589789927005768,
0.6017507314682007,
-0.02337493561208248,
0.011493019759654999,
-0.11459319293498993,
-0.04483534395694733,
0.014054806903004646,
0.048389654606580734,
-0.06621383130550385,
-0.2536705434322357,
-0.07082367688417435,
0.18568316102027893,
-0.05955559387803078,
0.01455992553383112,
0.27498161792755127,
0.1876642405986786,
-0.14948338270187378,
-0.4457591474056244,
0.06577521562576294,
0.1728488802909851,
0.06654299050569534,
-0.2748386561870575,
0.36661168932914734,
0.2653484344482422,
-0.08599161356687546,
0.18050527572631836,
-0.041344936937093735,
0.6402475833892822,
0.504192054271698,
0.09241160750389099,
-0.061740633100271225,
-0.12157168239355087,
-0.1139908879995346,
-0.17941829562187195,
0.17781689763069153,
0.3488177955150604,
0.42126908898353577,
0.1485438197851181,
0.11359865218400955,
-0.04018512740731239,
0.31608882546424866,
0.20678871870040894,
0.09960091859102249,
-0.5459765791893005,
-0.11891994625329971,
-0.20831166207790375,
-0.2577386796474457,
-0.22663293778896332,
0.024151301011443138,
-0.28905969858169556,
0.020943105220794678,
0.4277471601963043,
0.07391539216041565,
0.2772267460823059,
-0.02682262286543846,
0.03456752374768257,
0.074334055185318,
0.31421977281570435,
0.23977594077587128,
0.4022899866104126,
-0.4218083918094635,
-0.03541852906346321,
-0.7509752511978149,
0.11652783304452896,
-0.3764895498752594,
0.009592805057764053,
-0.03185893967747688,
0.1585380733013153,
0.13774138689041138,
0.08386081457138062,
0.15917234122753143,
0.2994239330291748,
0.11672339588403702,
0.22207777202129364,
-0.056184589862823486,
-0.1846201866865158,
-0.3380703628063202,
0.026485688984394073,
-0.1750924289226532,
-0.46551379561424255,
0.22136037051677704,
-0.1279323846101761,
0.009210983291268349,
-0.22518587112426758,
0.22398854792118073,
0.2559671700000763,
-0.005987231619656086,
0.47772902250289917,
-0.11201148480176926,
0.6255967617034912,
-0.08501806110143661,
0.3190011978149414,
-0.3009389042854309,
-0.08018997311592102,
-0.1928057223558426,
0.5200992822647095,
0.20615030825138092,
0.27139976620674133,
-0.17799293994903564,
-0.1079161986708641,
-0.21530449390411377,
0.1574099063873291,
-0.006548059172928333,
-0.07054726779460907,
0.06672760099172592,
-0.15106044709682465,
-0.0018240452045574784,
-0.05849021300673485,
0.152231365442276,
0.09204785525798798,
-0.2229386419057846,
-0.0781729519367218,
-0.17455333471298218,
-0.18018513917922974,
0.18108227849006653,
-0.40432897210121155,
-0.34110361337661743,
0.14871783554553986,
0.12612628936767578,
0.1018664687871933,
0.13969221711158752,
-0.45242124795913696,
0.1217893585562706,
0.4244746267795563,
-0.12801693379878998,
-0.417426198720932,
0.13403181731700897,
-0.21161890029907227,
0.10057053714990616,
-0.12185259908437729,
0.47650185227394104,
0.14110933244228363,
-0.3705090880393982,
-0.1615714728832245,
-0.3583211898803711
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Thanks for the fast response. I have the latest version '2.0.0' (I tried to update)
I am working with Python 3.8.5 | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 21 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Thanks for the fast response. I have the latest version '2.0.0' (I tried to update)
I am working with Python 3.8.5 | [
-0.24118328094482422,
-0.3198656737804413,
-0.06815572828054428,
0.43160730600357056,
0.3625253736972809,
0.01915484294295311,
0.5210208296775818,
0.43771326541900635,
0.29491308331489563,
0.03277552127838135,
0.016962869092822075,
-0.11870472133159637,
0.09059187024831772,
0.18028980493545532,
0.03506607934832573,
0.11300940811634064,
0.07302846014499664,
0.39882132411003113,
0.031720396131277084,
0.06997229903936386,
-0.21886058151721954,
0.12086963653564453,
0.005867550615221262,
0.05751494690775871,
-0.12442246824502945,
0.0723639652132988,
-0.00820865761488676,
0.1169142946600914,
-0.23435114324092865,
-0.4013203978538513,
0.4197230935096741,
0.07845430076122284,
0.3328506350517273,
0.52076655626297,
-0.00011690512474160641,
0.1564730405807495,
0.26544874906539917,
-0.18562592566013336,
-0.04419953376054764,
-0.5195809006690979,
0.030129535123705864,
-0.5329570174217224,
0.27766624093055725,
-0.16720233857631683,
-0.014489161781966686,
-0.17868056893348694,
-0.11099930107593536,
-0.035805970430374146,
0.3014127016067505,
0.3175452649593353,
0.18049591779708862,
-0.2607497572898865,
0.0598919577896595,
-0.01001912821084261,
0.20529192686080933,
0.037179186940193176,
-0.015685727819800377,
0.4175470173358917,
0.11739544570446014,
-0.12676116824150085,
-0.04873064160346985,
-0.1936672031879425,
-0.23924316465854645,
0.35819920897483826,
0.3196348249912262,
0.13994011282920837,
0.07096739113330841,
-0.10896703600883484,
0.26807063817977905,
0.10550523549318314,
0.6067357659339905,
-0.30764222145080566,
-0.14854714274406433,
-0.015400628559291363,
-0.020296940580010414,
-0.4886515438556671,
0.2558157742023468,
0.4044944941997528,
-0.1521599292755127,
0.11733322590589523,
-0.21221256256103516,
0.24844683706760406,
-0.26639294624328613,
0.20286187529563904,
-0.06734729558229446,
-0.3531903028488159,
-0.2522074580192566,
0.26931819319725037,
0.25234028697013855,
0.07374785095453262,
0.33363965153694153,
-0.09374990314245224,
0.02685411088168621,
0.18069684505462646,
-0.5556497573852539,
0.2796492576599121,
-0.11766058206558228,
-0.09043681621551514,
0.1637403517961502,
0.09621904045343399,
0.4014219045639038,
0.13706235587596893,
0.04234488308429718,
0.19469791650772095,
0.3191303014755249,
0.18613260984420776,
-0.042814552783966064,
0.06910472363233566,
0.027385590597987175,
0.34621769189834595,
-0.22978368401527405,
-0.2338583618402481,
-0.3881368041038513,
-0.5049573183059692,
0.23814234137535095,
-0.15383809804916382,
0.26744401454925537,
-0.27043357491493225,
-0.24793300032615662,
-0.0960201546549797,
-0.03613270819187164,
-0.009423329494893551,
-0.05283444747328758,
0.5738204717636108,
0.21583421528339386,
0.3802047669887543,
-0.05421007424592972,
0.25720903277397156,
-0.21127571165561676,
-0.09865453839302063,
-0.08035237342119217,
0.020115729421377182,
-0.057602543383836746,
0.05229124054312706,
0.37774842977523804,
-0.2166886329650879,
0.12146084010601044,
0.17629574239253998,
-0.04351634159684181,
-0.29387468099594116,
-0.1455053836107254,
-0.41772258281707764,
0.03672437742352486,
0.2833081781864166,
0.20247413218021393,
0.09795285016298294,
0.2341531366109848,
-0.2812096178531647,
-0.060687996447086334,
0.38054099678993225,
-0.23011918365955353,
-0.1685691624879837,
0.09726446121931076,
0.09630231559276581,
-0.06611702591180801,
0.16567829251289368,
-0.39563146233558655,
0.15635089576244354,
0.3519504964351654,
-0.43849414587020874,
0.033467378467321396,
-0.2134845107793808,
-0.24112306535243988,
-0.35248100757598877,
0.20189052820205688,
0.27905920147895813,
-0.7854663729667664,
0.3429478108882904,
0.053906410932540894,
-0.03174852952361107,
0.11499883979558945,
0.42371514439582825,
-0.14831706881523132,
0.06117837131023407,
-0.27098697423934937,
0.09215248376131058,
0.14062419533729553,
0.007542762905359268,
-0.6293670535087585,
0.3307563066482544,
-0.04602754861116409,
0.0895458236336708,
0.31206417083740234,
0.06455276906490326,
0.05121524631977081,
0.08917734026908875,
-0.10802217572927475,
0.018553977832198143,
0.023134613409638405,
0.04400574788451195,
-0.2607475817203522,
-0.12919268012046814,
0.31875085830688477,
0.14262457191944122,
-0.06477401405572891,
-0.06767303496599197,
0.2388889342546463,
-0.40873926877975464,
0.2025448977947235,
-0.01808738149702549,
0.1416160762310028,
0.17524681985378265,
0.17913149297237396,
-0.1968235820531845,
0.03497389703989029,
0.010433362796902657,
-0.44934946298599243,
0.14338213205337524,
0.284880667924881,
-0.16870099306106567,
-0.21594460308551788,
-0.07973092794418335,
-0.38411810994148254,
-0.02970108389854431,
-0.2681601643562317,
-0.12419972568750381,
-0.024652713909745216,
0.0725151002407074,
0.05951970815658569,
-0.1440531611442566,
-0.18574000895023346,
0.11611957848072052,
-0.22377683222293854,
-0.011276056990027428,
-0.015843937173485756,
0.14221921563148499,
0.05879932641983032,
-0.124988853931427,
0.10647231340408325,
-0.0629006177186966,
0.20716817677021027,
-0.04833386093378067,
-0.2763521671295166,
0.2495911419391632,
0.14568684995174408,
0.04561539739370346,
-0.2857955992221832,
-0.1747877597808838,
0.08302020281553268,
-0.24150553345680237,
-0.0872013196349144,
0.023738281801342964,
0.3663713335990906,
-0.18254680931568146,
-0.3392810821533203,
0.27062347531318665,
-0.1567005068063736,
0.30151399970054626,
0.18797588348388672,
-0.358071506023407,
0.3065018951892853,
0.016720233485102654,
0.17819398641586304,
0.07049191743135452,
0.13808564841747284,
0.07365412265062332,
0.4947434663772583,
0.29954156279563904,
-0.09684158116579056,
-0.15625007450580597,
0.5009903311729431,
-0.047043848782777786,
-0.21856330335140228,
0.31125980615615845,
-0.11817745864391327,
-0.19453494250774384,
0.0684313252568245,
0.08874527364969254,
0.37982177734375,
0.129376620054245,
-0.19153106212615967,
0.014664051122963428,
0.1435023993253708,
-0.25002944469451904,
0.12040587514638901,
-0.22043456137180328,
0.14736151695251465,
0.3965647518634796,
0.12700994312763214,
-0.12728583812713623,
-0.19514448940753937,
0.03774420544505119,
0.08758530765771866,
0.32572367787361145,
-0.41195550560951233,
-0.06754524260759354,
-0.0734538659453392,
-0.00520607503131032,
-0.18028461933135986,
0.09860336780548096,
-0.05557971075177193,
0.0971229299902916,
-0.3996107280254364,
0.33282431960105896,
0.2897825241088867,
-0.0790662169456482,
-0.24312594532966614,
0.0886346697807312,
0.21581262350082397,
-0.33705565333366394,
-0.0034609611611813307,
-0.04899057745933533,
-0.2919398546218872,
-0.026176292449235916,
0.33071011304855347,
0.10981899499893188,
-0.0008769872365519404,
-0.021766064688563347,
0.02802499197423458,
-0.054845232516527176,
-0.09253321588039398,
-0.04392470419406891,
-0.07322972267866135,
0.020921776071190834,
-0.051166389137506485,
0.41933107376098633,
0.007607900537550449,
-0.144631028175354,
0.4017487168312073,
-0.25366106629371643,
-0.048924800008535385,
0.35013547539711,
0.06369376927614212,
-0.09587976336479187,
-0.1087077260017395,
-0.349889874458313,
-0.13988769054412842,
-0.42933720350265503,
0.39106279611587524,
0.08475610613822937,
0.041931621730327606,
0.0926312729716301,
0.4331050515174866,
-0.026085056364536285,
0.3013545274734497,
-0.031216595321893692,
-0.08480541408061981,
-0.2977057099342346,
0.3645738363265991,
-0.05611651390790939,
-0.4676561653614044,
0.011941715143620968,
0.0828355997800827,
0.35919055342674255,
0.16382671892642975,
-0.42524710297584534,
0.3267478942871094,
-0.15090735256671906,
0.16282014548778534,
0.0011052140034735203,
-0.024227632209658623,
0.06095466762781143,
-0.0872274860739708,
-0.021823471412062645,
0.036430519074201584,
-0.24171596765518188,
-0.01417996920645237,
-0.032044410705566406,
0.1475837230682373,
0.05136847868561745,
0.4584294855594635,
-0.03719279542565346,
0.6513357758522034,
0.08746417611837387,
-0.08823138475418091,
0.4855556786060333,
-0.30823996663093567,
0.38187792897224426,
-0.20967096090316772,
-0.373745322227478,
-0.08557498455047607,
-0.3519817292690277,
-0.19244645535945892,
0.26774877309799194,
-0.03358382359147072,
-0.033414993435144424,
-0.12577596306800842,
0.003517948789522052,
-0.4046858549118042,
-0.03770316392183304,
0.18363207578659058,
0.030697034671902657,
-0.014829985797405243,
-0.10059560835361481,
-0.0133008798584342,
-0.011645855382084846,
-0.23736286163330078,
-0.19425863027572632,
0.27396413683891296,
-0.15134243667125702,
0.06338711082935333,
-0.2242484986782074,
-0.06158057227730751,
-0.3029373586177826,
0.3292049765586853,
-0.013623470440506935,
0.31028637290000916,
0.010614469647407532,
-0.017695080488920212,
0.09729672223329544,
-0.12522217631340027,
0.7449791431427002,
0.18928571045398712,
-0.15507036447525024,
0.12782905995845795,
-0.02411402203142643,
-0.44158339500427246,
-0.12176128476858139,
0.19063137471675873,
0.3073364794254303,
0.0744616687297821,
0.3548656702041626,
-0.07032588869333267,
-0.009693858213722706,
-0.144343301653862,
0.3546774685382843,
0.04325278475880623,
-0.3951282203197479,
-0.5194916725158691,
-0.23497912287712097,
-0.3830534815788269,
-0.21213534474372864,
-0.08986669778823853,
0.28827884793281555,
-0.3244076371192932,
-0.14238668978214264,
0.11836138367652893,
-0.29905372858047485,
0.06015709787607193,
0.1533813178539276,
0.29738959670066833,
-0.11291433125734329,
0.1448960304260254,
0.04683511704206467,
0.069804847240448,
0.3769119679927826,
0.7987183332443237,
-0.07857611030340195,
-0.6220773458480835,
0.08484339714050293,
-0.20502661168575287,
0.38534846901893616,
0.047819897532463074,
-0.20320534706115723,
0.12898707389831543,
0.09073479473590851,
0.06203382462263107,
0.037948235869407654,
0.014437259174883366,
0.3036864995956421,
0.04965538904070854,
-0.3454543650150299,
-0.5439224243164062,
0.48741868138313293,
-0.1259079873561859,
0.21025902032852173,
0.30208030343055725,
-0.2120000571012497,
-0.10998117923736572,
0.15552282333374023,
-0.33462491631507874,
0.6592137813568115,
-0.42182981967926025,
0.1938304603099823,
0.30733662843704224,
0.05633584409952164,
0.2584291994571686,
-0.4451972246170044,
0.1323075145483017,
-0.39196813106536865,
-0.21090373396873474,
-0.10431220382452011,
-0.07120317965745926,
0.23938605189323425,
0.43218994140625,
-0.12124570459127426,
0.31186407804489136,
-0.07414999604225159,
0.33255627751350403,
0.11313419044017792,
0.243825301527977,
-0.1005159243941307,
-0.08646856248378754,
-0.30102118849754333,
0.01042383722960949,
-0.1430809646844864,
-0.034951888024806976,
0.028959080576896667,
0.0544644333422184,
-0.180567666888237,
-0.20164556801319122,
-0.24611222743988037,
0.22002477943897247,
-0.2911674380302429,
0.11540484428405762,
-0.11095461994409561,
-0.46866485476493835,
0.1963638812303543,
0.23806707561016083,
-0.2087021917104721,
-0.08517897129058838,
-0.12408510595560074,
0.15505379438400269,
0.1596345156431198,
-0.04017554968595505,
-0.2083745002746582,
-0.053695764392614365,
-0.015885639935731888,
0.07612629234790802,
-0.2351236790418625,
0.15455135703086853,
-0.12227892875671387,
-0.09567457437515259,
0.2780734598636627,
0.23765769600868225,
-0.08480718731880188,
-0.5452091693878174,
-0.532619297504425,
-0.42841580510139465,
0.07598097622394562,
-0.19573217630386353,
0.06519818305969238,
-0.04207875207066536,
0.09834135323762894,
-0.16163481771945953,
0.18593527376651764,
-0.4688694179058075,
-0.10202683508396149,
0.39181265234947205,
-0.11168676614761353,
0.0939541757106781,
0.5907297730445862,
0.21935012936592102,
-0.016892874613404274,
-0.14115259051322937,
0.06424059718847275,
0.3081054985523224,
-0.35318848490715027,
0.11706629395484924,
0.1141490787267685,
0.31594985723495483,
0.13925305008888245,
0.29174545407295227,
0.15658053755760193,
-0.07767266780138016,
0.07445463538169861,
-0.5115906596183777,
-0.32496926188468933,
-0.016528883948922157,
-0.0015315862838178873,
0.2479579895734787,
0.16721919178962708,
0.0818668007850647,
0.17267778515815735,
0.2032967358827591,
-0.1562303602695465,
0.1004619300365448,
0.10592912137508392,
-0.0869574248790741,
0.21063292026519775,
0.14201612770557404,
-0.1338723599910736,
-0.10381940007209778,
0.09349783509969711,
0.17764000594615936,
-0.05344485491514206,
-0.18875108659267426,
-0.07985583692789078,
0.15010018646717072,
0.09836076945066452,
0.02328583598136902,
-0.20344536006450653,
-0.25268879532814026,
-0.14970612525939941,
-0.19280564785003662,
0.06640884280204773,
0.02978229708969593,
-0.09811203181743622,
0.0717599168419838,
-0.29876530170440674,
-0.08465413749217987,
-0.5091866254806519,
0.0271220114082098,
-0.5075392723083496,
0.22313232719898224,
0.299269437789917,
0.04858221858739853,
0.12175736576318741,
0.2004556804895401,
-0.1724262535572052,
-0.031158387660980225,
0.15162667632102966,
-0.13661924004554749,
0.3009468615055084,
-0.40147584676742554,
0.20350652933120728,
-0.051065169274806976,
0.3403376042842865,
0.48486098647117615,
-0.20764142274856567,
0.21971096098423004,
0.03758656233549118,
0.1341150999069214,
-0.3825283646583557,
0.27547669410705566,
0.11723203957080841,
-0.06162978336215019,
-0.02748439833521843,
0.16967540979385376,
0.19921153783798218,
-0.20830745995044708,
-0.0957765206694603,
0.006910542957484722,
0.47598904371261597,
-0.00782269798219204,
-0.03395090997219086,
0.4135631322860718,
0.0027142611797899008,
0.17896944284439087,
0.24033525586128235,
0.13563746213912964,
0.01962045393884182,
0.7002615928649902,
-0.2602291703224182,
-0.003965036943554878,
-0.23526832461357117,
0.301481693983078,
-0.32787004113197327,
-0.7641029357910156,
0.16166482865810394,
0.23555037379264832,
-0.353310227394104,
-0.16765117645263672,
0.12589789927005768,
0.6017507314682007,
-0.02337493561208248,
0.011493019759654999,
-0.11459319293498993,
-0.04483534395694733,
0.014054806903004646,
0.048389654606580734,
-0.06621383130550385,
-0.2536705434322357,
-0.07082367688417435,
0.18568316102027893,
-0.05955559387803078,
0.01455992553383112,
0.27498161792755127,
0.1876642405986786,
-0.14948338270187378,
-0.4457591474056244,
0.06577521562576294,
0.1728488802909851,
0.06654299050569534,
-0.2748386561870575,
0.36661168932914734,
0.2653484344482422,
-0.08599161356687546,
0.18050527572631836,
-0.041344936937093735,
0.6402475833892822,
0.504192054271698,
0.09241160750389099,
-0.061740633100271225,
-0.12157168239355087,
-0.1139908879995346,
-0.17941829562187195,
0.17781689763069153,
0.3488177955150604,
0.42126908898353577,
0.1485438197851181,
0.11359865218400955,
-0.04018512740731239,
0.31608882546424866,
0.20678871870040894,
0.09960091859102249,
-0.5459765791893005,
-0.11891994625329971,
-0.20831166207790375,
-0.2577386796474457,
-0.22663293778896332,
0.024151301011443138,
-0.28905969858169556,
0.020943105220794678,
0.4277471601963043,
0.07391539216041565,
0.2772267460823059,
-0.02682262286543846,
0.03456752374768257,
0.074334055185318,
0.31421977281570435,
0.23977594077587128,
0.4022899866104126,
-0.4218083918094635,
-0.03541852906346321,
-0.7509752511978149,
0.11652783304452896,
-0.3764895498752594,
0.009592805057764053,
-0.03185893967747688,
0.1585380733013153,
0.13774138689041138,
0.08386081457138062,
0.15917234122753143,
0.2994239330291748,
0.11672339588403702,
0.22207777202129364,
-0.056184589862823486,
-0.1846201866865158,
-0.3380703628063202,
0.026485688984394073,
-0.1750924289226532,
-0.46551379561424255,
0.22136037051677704,
-0.1279323846101761,
0.009210983291268349,
-0.22518587112426758,
0.22398854792118073,
0.2559671700000763,
-0.005987231619656086,
0.47772902250289917,
-0.11201148480176926,
0.6255967617034912,
-0.08501806110143661,
0.3190011978149414,
-0.3009389042854309,
-0.08018997311592102,
-0.1928057223558426,
0.5200992822647095,
0.20615030825138092,
0.27139976620674133,
-0.17799293994903564,
-0.1079161986708641,
-0.21530449390411377,
0.1574099063873291,
-0.006548059172928333,
-0.07054726779460907,
0.06672760099172592,
-0.15106044709682465,
-0.0018240452045574784,
-0.05849021300673485,
0.152231365442276,
0.09204785525798798,
-0.2229386419057846,
-0.0781729519367218,
-0.17455333471298218,
-0.18018513917922974,
0.18108227849006653,
-0.40432897210121155,
-0.34110361337661743,
0.14871783554553986,
0.12612628936767578,
0.1018664687871933,
0.13969221711158752,
-0.45242124795913696,
0.1217893585562706,
0.4244746267795563,
-0.12801693379878998,
-0.417426198720932,
0.13403181731700897,
-0.21161890029907227,
0.10057053714990616,
-0.12185259908437729,
0.47650185227394104,
0.14110933244228363,
-0.3705090880393982,
-0.1615714728832245,
-0.3583211898803711
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612
The problem is in arrow when the column data contains long strings.
Any ideas on how to bypass this? | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 29 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612
The problem is in arrow when the column data contains long strings.
Any ideas on how to bypass this? | [
-0.24118328094482422,
-0.3198656737804413,
-0.06815572828054428,
0.43160730600357056,
0.3625253736972809,
0.01915484294295311,
0.5210208296775818,
0.43771326541900635,
0.29491308331489563,
0.03277552127838135,
0.016962869092822075,
-0.11870472133159637,
0.09059187024831772,
0.18028980493545532,
0.03506607934832573,
0.11300940811634064,
0.07302846014499664,
0.39882132411003113,
0.031720396131277084,
0.06997229903936386,
-0.21886058151721954,
0.12086963653564453,
0.005867550615221262,
0.05751494690775871,
-0.12442246824502945,
0.0723639652132988,
-0.00820865761488676,
0.1169142946600914,
-0.23435114324092865,
-0.4013203978538513,
0.4197230935096741,
0.07845430076122284,
0.3328506350517273,
0.52076655626297,
-0.00011690512474160641,
0.1564730405807495,
0.26544874906539917,
-0.18562592566013336,
-0.04419953376054764,
-0.5195809006690979,
0.030129535123705864,
-0.5329570174217224,
0.27766624093055725,
-0.16720233857631683,
-0.014489161781966686,
-0.17868056893348694,
-0.11099930107593536,
-0.035805970430374146,
0.3014127016067505,
0.3175452649593353,
0.18049591779708862,
-0.2607497572898865,
0.0598919577896595,
-0.01001912821084261,
0.20529192686080933,
0.037179186940193176,
-0.015685727819800377,
0.4175470173358917,
0.11739544570446014,
-0.12676116824150085,
-0.04873064160346985,
-0.1936672031879425,
-0.23924316465854645,
0.35819920897483826,
0.3196348249912262,
0.13994011282920837,
0.07096739113330841,
-0.10896703600883484,
0.26807063817977905,
0.10550523549318314,
0.6067357659339905,
-0.30764222145080566,
-0.14854714274406433,
-0.015400628559291363,
-0.020296940580010414,
-0.4886515438556671,
0.2558157742023468,
0.4044944941997528,
-0.1521599292755127,
0.11733322590589523,
-0.21221256256103516,
0.24844683706760406,
-0.26639294624328613,
0.20286187529563904,
-0.06734729558229446,
-0.3531903028488159,
-0.2522074580192566,
0.26931819319725037,
0.25234028697013855,
0.07374785095453262,
0.33363965153694153,
-0.09374990314245224,
0.02685411088168621,
0.18069684505462646,
-0.5556497573852539,
0.2796492576599121,
-0.11766058206558228,
-0.09043681621551514,
0.1637403517961502,
0.09621904045343399,
0.4014219045639038,
0.13706235587596893,
0.04234488308429718,
0.19469791650772095,
0.3191303014755249,
0.18613260984420776,
-0.042814552783966064,
0.06910472363233566,
0.027385590597987175,
0.34621769189834595,
-0.22978368401527405,
-0.2338583618402481,
-0.3881368041038513,
-0.5049573183059692,
0.23814234137535095,
-0.15383809804916382,
0.26744401454925537,
-0.27043357491493225,
-0.24793300032615662,
-0.0960201546549797,
-0.03613270819187164,
-0.009423329494893551,
-0.05283444747328758,
0.5738204717636108,
0.21583421528339386,
0.3802047669887543,
-0.05421007424592972,
0.25720903277397156,
-0.21127571165561676,
-0.09865453839302063,
-0.08035237342119217,
0.020115729421377182,
-0.057602543383836746,
0.05229124054312706,
0.37774842977523804,
-0.2166886329650879,
0.12146084010601044,
0.17629574239253998,
-0.04351634159684181,
-0.29387468099594116,
-0.1455053836107254,
-0.41772258281707764,
0.03672437742352486,
0.2833081781864166,
0.20247413218021393,
0.09795285016298294,
0.2341531366109848,
-0.2812096178531647,
-0.060687996447086334,
0.38054099678993225,
-0.23011918365955353,
-0.1685691624879837,
0.09726446121931076,
0.09630231559276581,
-0.06611702591180801,
0.16567829251289368,
-0.39563146233558655,
0.15635089576244354,
0.3519504964351654,
-0.43849414587020874,
0.033467378467321396,
-0.2134845107793808,
-0.24112306535243988,
-0.35248100757598877,
0.20189052820205688,
0.27905920147895813,
-0.7854663729667664,
0.3429478108882904,
0.053906410932540894,
-0.03174852952361107,
0.11499883979558945,
0.42371514439582825,
-0.14831706881523132,
0.06117837131023407,
-0.27098697423934937,
0.09215248376131058,
0.14062419533729553,
0.007542762905359268,
-0.6293670535087585,
0.3307563066482544,
-0.04602754861116409,
0.0895458236336708,
0.31206417083740234,
0.06455276906490326,
0.05121524631977081,
0.08917734026908875,
-0.10802217572927475,
0.018553977832198143,
0.023134613409638405,
0.04400574788451195,
-0.2607475817203522,
-0.12919268012046814,
0.31875085830688477,
0.14262457191944122,
-0.06477401405572891,
-0.06767303496599197,
0.2388889342546463,
-0.40873926877975464,
0.2025448977947235,
-0.01808738149702549,
0.1416160762310028,
0.17524681985378265,
0.17913149297237396,
-0.1968235820531845,
0.03497389703989029,
0.010433362796902657,
-0.44934946298599243,
0.14338213205337524,
0.284880667924881,
-0.16870099306106567,
-0.21594460308551788,
-0.07973092794418335,
-0.38411810994148254,
-0.02970108389854431,
-0.2681601643562317,
-0.12419972568750381,
-0.024652713909745216,
0.0725151002407074,
0.05951970815658569,
-0.1440531611442566,
-0.18574000895023346,
0.11611957848072052,
-0.22377683222293854,
-0.011276056990027428,
-0.015843937173485756,
0.14221921563148499,
0.05879932641983032,
-0.124988853931427,
0.10647231340408325,
-0.0629006177186966,
0.20716817677021027,
-0.04833386093378067,
-0.2763521671295166,
0.2495911419391632,
0.14568684995174408,
0.04561539739370346,
-0.2857955992221832,
-0.1747877597808838,
0.08302020281553268,
-0.24150553345680237,
-0.0872013196349144,
0.023738281801342964,
0.3663713335990906,
-0.18254680931568146,
-0.3392810821533203,
0.27062347531318665,
-0.1567005068063736,
0.30151399970054626,
0.18797588348388672,
-0.358071506023407,
0.3065018951892853,
0.016720233485102654,
0.17819398641586304,
0.07049191743135452,
0.13808564841747284,
0.07365412265062332,
0.4947434663772583,
0.29954156279563904,
-0.09684158116579056,
-0.15625007450580597,
0.5009903311729431,
-0.047043848782777786,
-0.21856330335140228,
0.31125980615615845,
-0.11817745864391327,
-0.19453494250774384,
0.0684313252568245,
0.08874527364969254,
0.37982177734375,
0.129376620054245,
-0.19153106212615967,
0.014664051122963428,
0.1435023993253708,
-0.25002944469451904,
0.12040587514638901,
-0.22043456137180328,
0.14736151695251465,
0.3965647518634796,
0.12700994312763214,
-0.12728583812713623,
-0.19514448940753937,
0.03774420544505119,
0.08758530765771866,
0.32572367787361145,
-0.41195550560951233,
-0.06754524260759354,
-0.0734538659453392,
-0.00520607503131032,
-0.18028461933135986,
0.09860336780548096,
-0.05557971075177193,
0.0971229299902916,
-0.3996107280254364,
0.33282431960105896,
0.2897825241088867,
-0.0790662169456482,
-0.24312594532966614,
0.0886346697807312,
0.21581262350082397,
-0.33705565333366394,
-0.0034609611611813307,
-0.04899057745933533,
-0.2919398546218872,
-0.026176292449235916,
0.33071011304855347,
0.10981899499893188,
-0.0008769872365519404,
-0.021766064688563347,
0.02802499197423458,
-0.054845232516527176,
-0.09253321588039398,
-0.04392470419406891,
-0.07322972267866135,
0.020921776071190834,
-0.051166389137506485,
0.41933107376098633,
0.007607900537550449,
-0.144631028175354,
0.4017487168312073,
-0.25366106629371643,
-0.048924800008535385,
0.35013547539711,
0.06369376927614212,
-0.09587976336479187,
-0.1087077260017395,
-0.349889874458313,
-0.13988769054412842,
-0.42933720350265503,
0.39106279611587524,
0.08475610613822937,
0.041931621730327606,
0.0926312729716301,
0.4331050515174866,
-0.026085056364536285,
0.3013545274734497,
-0.031216595321893692,
-0.08480541408061981,
-0.2977057099342346,
0.3645738363265991,
-0.05611651390790939,
-0.4676561653614044,
0.011941715143620968,
0.0828355997800827,
0.35919055342674255,
0.16382671892642975,
-0.42524710297584534,
0.3267478942871094,
-0.15090735256671906,
0.16282014548778534,
0.0011052140034735203,
-0.024227632209658623,
0.06095466762781143,
-0.0872274860739708,
-0.021823471412062645,
0.036430519074201584,
-0.24171596765518188,
-0.01417996920645237,
-0.032044410705566406,
0.1475837230682373,
0.05136847868561745,
0.4584294855594635,
-0.03719279542565346,
0.6513357758522034,
0.08746417611837387,
-0.08823138475418091,
0.4855556786060333,
-0.30823996663093567,
0.38187792897224426,
-0.20967096090316772,
-0.373745322227478,
-0.08557498455047607,
-0.3519817292690277,
-0.19244645535945892,
0.26774877309799194,
-0.03358382359147072,
-0.033414993435144424,
-0.12577596306800842,
0.003517948789522052,
-0.4046858549118042,
-0.03770316392183304,
0.18363207578659058,
0.030697034671902657,
-0.014829985797405243,
-0.10059560835361481,
-0.0133008798584342,
-0.011645855382084846,
-0.23736286163330078,
-0.19425863027572632,
0.27396413683891296,
-0.15134243667125702,
0.06338711082935333,
-0.2242484986782074,
-0.06158057227730751,
-0.3029373586177826,
0.3292049765586853,
-0.013623470440506935,
0.31028637290000916,
0.010614469647407532,
-0.017695080488920212,
0.09729672223329544,
-0.12522217631340027,
0.7449791431427002,
0.18928571045398712,
-0.15507036447525024,
0.12782905995845795,
-0.02411402203142643,
-0.44158339500427246,
-0.12176128476858139,
0.19063137471675873,
0.3073364794254303,
0.0744616687297821,
0.3548656702041626,
-0.07032588869333267,
-0.009693858213722706,
-0.144343301653862,
0.3546774685382843,
0.04325278475880623,
-0.3951282203197479,
-0.5194916725158691,
-0.23497912287712097,
-0.3830534815788269,
-0.21213534474372864,
-0.08986669778823853,
0.28827884793281555,
-0.3244076371192932,
-0.14238668978214264,
0.11836138367652893,
-0.29905372858047485,
0.06015709787607193,
0.1533813178539276,
0.29738959670066833,
-0.11291433125734329,
0.1448960304260254,
0.04683511704206467,
0.069804847240448,
0.3769119679927826,
0.7987183332443237,
-0.07857611030340195,
-0.6220773458480835,
0.08484339714050293,
-0.20502661168575287,
0.38534846901893616,
0.047819897532463074,
-0.20320534706115723,
0.12898707389831543,
0.09073479473590851,
0.06203382462263107,
0.037948235869407654,
0.014437259174883366,
0.3036864995956421,
0.04965538904070854,
-0.3454543650150299,
-0.5439224243164062,
0.48741868138313293,
-0.1259079873561859,
0.21025902032852173,
0.30208030343055725,
-0.2120000571012497,
-0.10998117923736572,
0.15552282333374023,
-0.33462491631507874,
0.6592137813568115,
-0.42182981967926025,
0.1938304603099823,
0.30733662843704224,
0.05633584409952164,
0.2584291994571686,
-0.4451972246170044,
0.1323075145483017,
-0.39196813106536865,
-0.21090373396873474,
-0.10431220382452011,
-0.07120317965745926,
0.23938605189323425,
0.43218994140625,
-0.12124570459127426,
0.31186407804489136,
-0.07414999604225159,
0.33255627751350403,
0.11313419044017792,
0.243825301527977,
-0.1005159243941307,
-0.08646856248378754,
-0.30102118849754333,
0.01042383722960949,
-0.1430809646844864,
-0.034951888024806976,
0.028959080576896667,
0.0544644333422184,
-0.180567666888237,
-0.20164556801319122,
-0.24611222743988037,
0.22002477943897247,
-0.2911674380302429,
0.11540484428405762,
-0.11095461994409561,
-0.46866485476493835,
0.1963638812303543,
0.23806707561016083,
-0.2087021917104721,
-0.08517897129058838,
-0.12408510595560074,
0.15505379438400269,
0.1596345156431198,
-0.04017554968595505,
-0.2083745002746582,
-0.053695764392614365,
-0.015885639935731888,
0.07612629234790802,
-0.2351236790418625,
0.15455135703086853,
-0.12227892875671387,
-0.09567457437515259,
0.2780734598636627,
0.23765769600868225,
-0.08480718731880188,
-0.5452091693878174,
-0.532619297504425,
-0.42841580510139465,
0.07598097622394562,
-0.19573217630386353,
0.06519818305969238,
-0.04207875207066536,
0.09834135323762894,
-0.16163481771945953,
0.18593527376651764,
-0.4688694179058075,
-0.10202683508396149,
0.39181265234947205,
-0.11168676614761353,
0.0939541757106781,
0.5907297730445862,
0.21935012936592102,
-0.016892874613404274,
-0.14115259051322937,
0.06424059718847275,
0.3081054985523224,
-0.35318848490715027,
0.11706629395484924,
0.1141490787267685,
0.31594985723495483,
0.13925305008888245,
0.29174545407295227,
0.15658053755760193,
-0.07767266780138016,
0.07445463538169861,
-0.5115906596183777,
-0.32496926188468933,
-0.016528883948922157,
-0.0015315862838178873,
0.2479579895734787,
0.16721919178962708,
0.0818668007850647,
0.17267778515815735,
0.2032967358827591,
-0.1562303602695465,
0.1004619300365448,
0.10592912137508392,
-0.0869574248790741,
0.21063292026519775,
0.14201612770557404,
-0.1338723599910736,
-0.10381940007209778,
0.09349783509969711,
0.17764000594615936,
-0.05344485491514206,
-0.18875108659267426,
-0.07985583692789078,
0.15010018646717072,
0.09836076945066452,
0.02328583598136902,
-0.20344536006450653,
-0.25268879532814026,
-0.14970612525939941,
-0.19280564785003662,
0.06640884280204773,
0.02978229708969593,
-0.09811203181743622,
0.0717599168419838,
-0.29876530170440674,
-0.08465413749217987,
-0.5091866254806519,
0.0271220114082098,
-0.5075392723083496,
0.22313232719898224,
0.299269437789917,
0.04858221858739853,
0.12175736576318741,
0.2004556804895401,
-0.1724262535572052,
-0.031158387660980225,
0.15162667632102966,
-0.13661924004554749,
0.3009468615055084,
-0.40147584676742554,
0.20350652933120728,
-0.051065169274806976,
0.3403376042842865,
0.48486098647117615,
-0.20764142274856567,
0.21971096098423004,
0.03758656233549118,
0.1341150999069214,
-0.3825283646583557,
0.27547669410705566,
0.11723203957080841,
-0.06162978336215019,
-0.02748439833521843,
0.16967540979385376,
0.19921153783798218,
-0.20830745995044708,
-0.0957765206694603,
0.006910542957484722,
0.47598904371261597,
-0.00782269798219204,
-0.03395090997219086,
0.4135631322860718,
0.0027142611797899008,
0.17896944284439087,
0.24033525586128235,
0.13563746213912964,
0.01962045393884182,
0.7002615928649902,
-0.2602291703224182,
-0.003965036943554878,
-0.23526832461357117,
0.301481693983078,
-0.32787004113197327,
-0.7641029357910156,
0.16166482865810394,
0.23555037379264832,
-0.353310227394104,
-0.16765117645263672,
0.12589789927005768,
0.6017507314682007,
-0.02337493561208248,
0.011493019759654999,
-0.11459319293498993,
-0.04483534395694733,
0.014054806903004646,
0.048389654606580734,
-0.06621383130550385,
-0.2536705434322357,
-0.07082367688417435,
0.18568316102027893,
-0.05955559387803078,
0.01455992553383112,
0.27498161792755127,
0.1876642405986786,
-0.14948338270187378,
-0.4457591474056244,
0.06577521562576294,
0.1728488802909851,
0.06654299050569534,
-0.2748386561870575,
0.36661168932914734,
0.2653484344482422,
-0.08599161356687546,
0.18050527572631836,
-0.041344936937093735,
0.6402475833892822,
0.504192054271698,
0.09241160750389099,
-0.061740633100271225,
-0.12157168239355087,
-0.1139908879995346,
-0.17941829562187195,
0.17781689763069153,
0.3488177955150604,
0.42126908898353577,
0.1485438197851181,
0.11359865218400955,
-0.04018512740731239,
0.31608882546424866,
0.20678871870040894,
0.09960091859102249,
-0.5459765791893005,
-0.11891994625329971,
-0.20831166207790375,
-0.2577386796474457,
-0.22663293778896332,
0.024151301011443138,
-0.28905969858169556,
0.020943105220794678,
0.4277471601963043,
0.07391539216041565,
0.2772267460823059,
-0.02682262286543846,
0.03456752374768257,
0.074334055185318,
0.31421977281570435,
0.23977594077587128,
0.4022899866104126,
-0.4218083918094635,
-0.03541852906346321,
-0.7509752511978149,
0.11652783304452896,
-0.3764895498752594,
0.009592805057764053,
-0.03185893967747688,
0.1585380733013153,
0.13774138689041138,
0.08386081457138062,
0.15917234122753143,
0.2994239330291748,
0.11672339588403702,
0.22207777202129364,
-0.056184589862823486,
-0.1846201866865158,
-0.3380703628063202,
0.026485688984394073,
-0.1750924289226532,
-0.46551379561424255,
0.22136037051677704,
-0.1279323846101761,
0.009210983291268349,
-0.22518587112426758,
0.22398854792118073,
0.2559671700000763,
-0.005987231619656086,
0.47772902250289917,
-0.11201148480176926,
0.6255967617034912,
-0.08501806110143661,
0.3190011978149414,
-0.3009389042854309,
-0.08018997311592102,
-0.1928057223558426,
0.5200992822647095,
0.20615030825138092,
0.27139976620674133,
-0.17799293994903564,
-0.1079161986708641,
-0.21530449390411377,
0.1574099063873291,
-0.006548059172928333,
-0.07054726779460907,
0.06672760099172592,
-0.15106044709682465,
-0.0018240452045574784,
-0.05849021300673485,
0.152231365442276,
0.09204785525798798,
-0.2229386419057846,
-0.0781729519367218,
-0.17455333471298218,
-0.18018513917922974,
0.18108227849006653,
-0.40432897210121155,
-0.34110361337661743,
0.14871783554553986,
0.12612628936767578,
0.1018664687871933,
0.13969221711158752,
-0.45242124795913696,
0.1217893585562706,
0.4244746267795563,
-0.12801693379878998,
-0.417426198720932,
0.13403181731700897,
-0.21161890029907227,
0.10057053714990616,
-0.12185259908437729,
0.47650185227394104,
0.14110933244228363,
-0.3705090880393982,
-0.1615714728832245,
-0.3583211898803711
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
In the meantime you can specify yourself the `ReadOptions` config like this:
```python
import pyarrow.csv as pac # PyArrow is installed with `datasets`
read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
dataset = load_dataset('csv', data_files=files, read_options=read_options)
```
| Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 56 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
In the meantime you can specify yourself the `ReadOptions` config like this:
```python
import pyarrow.csv as pac # PyArrow is installed with `datasets`
read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
dataset = load_dataset('csv', data_files=files, read_options=read_options)
```
| [
-0.24118328094482422,
-0.3198656737804413,
-0.06815572828054428,
0.43160730600357056,
0.3625253736972809,
0.01915484294295311,
0.5210208296775818,
0.43771326541900635,
0.29491308331489563,
0.03277552127838135,
0.016962869092822075,
-0.11870472133159637,
0.09059187024831772,
0.18028980493545532,
0.03506607934832573,
0.11300940811634064,
0.07302846014499664,
0.39882132411003113,
0.031720396131277084,
0.06997229903936386,
-0.21886058151721954,
0.12086963653564453,
0.005867550615221262,
0.05751494690775871,
-0.12442246824502945,
0.0723639652132988,
-0.00820865761488676,
0.1169142946600914,
-0.23435114324092865,
-0.4013203978538513,
0.4197230935096741,
0.07845430076122284,
0.3328506350517273,
0.52076655626297,
-0.00011690512474160641,
0.1564730405807495,
0.26544874906539917,
-0.18562592566013336,
-0.04419953376054764,
-0.5195809006690979,
0.030129535123705864,
-0.5329570174217224,
0.27766624093055725,
-0.16720233857631683,
-0.014489161781966686,
-0.17868056893348694,
-0.11099930107593536,
-0.035805970430374146,
0.3014127016067505,
0.3175452649593353,
0.18049591779708862,
-0.2607497572898865,
0.0598919577896595,
-0.01001912821084261,
0.20529192686080933,
0.037179186940193176,
-0.015685727819800377,
0.4175470173358917,
0.11739544570446014,
-0.12676116824150085,
-0.04873064160346985,
-0.1936672031879425,
-0.23924316465854645,
0.35819920897483826,
0.3196348249912262,
0.13994011282920837,
0.07096739113330841,
-0.10896703600883484,
0.26807063817977905,
0.10550523549318314,
0.6067357659339905,
-0.30764222145080566,
-0.14854714274406433,
-0.015400628559291363,
-0.020296940580010414,
-0.4886515438556671,
0.2558157742023468,
0.4044944941997528,
-0.1521599292755127,
0.11733322590589523,
-0.21221256256103516,
0.24844683706760406,
-0.26639294624328613,
0.20286187529563904,
-0.06734729558229446,
-0.3531903028488159,
-0.2522074580192566,
0.26931819319725037,
0.25234028697013855,
0.07374785095453262,
0.33363965153694153,
-0.09374990314245224,
0.02685411088168621,
0.18069684505462646,
-0.5556497573852539,
0.2796492576599121,
-0.11766058206558228,
-0.09043681621551514,
0.1637403517961502,
0.09621904045343399,
0.4014219045639038,
0.13706235587596893,
0.04234488308429718,
0.19469791650772095,
0.3191303014755249,
0.18613260984420776,
-0.042814552783966064,
0.06910472363233566,
0.027385590597987175,
0.34621769189834595,
-0.22978368401527405,
-0.2338583618402481,
-0.3881368041038513,
-0.5049573183059692,
0.23814234137535095,
-0.15383809804916382,
0.26744401454925537,
-0.27043357491493225,
-0.24793300032615662,
-0.0960201546549797,
-0.03613270819187164,
-0.009423329494893551,
-0.05283444747328758,
0.5738204717636108,
0.21583421528339386,
0.3802047669887543,
-0.05421007424592972,
0.25720903277397156,
-0.21127571165561676,
-0.09865453839302063,
-0.08035237342119217,
0.020115729421377182,
-0.057602543383836746,
0.05229124054312706,
0.37774842977523804,
-0.2166886329650879,
0.12146084010601044,
0.17629574239253998,
-0.04351634159684181,
-0.29387468099594116,
-0.1455053836107254,
-0.41772258281707764,
0.03672437742352486,
0.2833081781864166,
0.20247413218021393,
0.09795285016298294,
0.2341531366109848,
-0.2812096178531647,
-0.060687996447086334,
0.38054099678993225,
-0.23011918365955353,
-0.1685691624879837,
0.09726446121931076,
0.09630231559276581,
-0.06611702591180801,
0.16567829251289368,
-0.39563146233558655,
0.15635089576244354,
0.3519504964351654,
-0.43849414587020874,
0.033467378467321396,
-0.2134845107793808,
-0.24112306535243988,
-0.35248100757598877,
0.20189052820205688,
0.27905920147895813,
-0.7854663729667664,
0.3429478108882904,
0.053906410932540894,
-0.03174852952361107,
0.11499883979558945,
0.42371514439582825,
-0.14831706881523132,
0.06117837131023407,
-0.27098697423934937,
0.09215248376131058,
0.14062419533729553,
0.007542762905359268,
-0.6293670535087585,
0.3307563066482544,
-0.04602754861116409,
0.0895458236336708,
0.31206417083740234,
0.06455276906490326,
0.05121524631977081,
0.08917734026908875,
-0.10802217572927475,
0.018553977832198143,
0.023134613409638405,
0.04400574788451195,
-0.2607475817203522,
-0.12919268012046814,
0.31875085830688477,
0.14262457191944122,
-0.06477401405572891,
-0.06767303496599197,
0.2388889342546463,
-0.40873926877975464,
0.2025448977947235,
-0.01808738149702549,
0.1416160762310028,
0.17524681985378265,
0.17913149297237396,
-0.1968235820531845,
0.03497389703989029,
0.010433362796902657,
-0.44934946298599243,
0.14338213205337524,
0.284880667924881,
-0.16870099306106567,
-0.21594460308551788,
-0.07973092794418335,
-0.38411810994148254,
-0.02970108389854431,
-0.2681601643562317,
-0.12419972568750381,
-0.024652713909745216,
0.0725151002407074,
0.05951970815658569,
-0.1440531611442566,
-0.18574000895023346,
0.11611957848072052,
-0.22377683222293854,
-0.011276056990027428,
-0.015843937173485756,
0.14221921563148499,
0.05879932641983032,
-0.124988853931427,
0.10647231340408325,
-0.0629006177186966,
0.20716817677021027,
-0.04833386093378067,
-0.2763521671295166,
0.2495911419391632,
0.14568684995174408,
0.04561539739370346,
-0.2857955992221832,
-0.1747877597808838,
0.08302020281553268,
-0.24150553345680237,
-0.0872013196349144,
0.023738281801342964,
0.3663713335990906,
-0.18254680931568146,
-0.3392810821533203,
0.27062347531318665,
-0.1567005068063736,
0.30151399970054626,
0.18797588348388672,
-0.358071506023407,
0.3065018951892853,
0.016720233485102654,
0.17819398641586304,
0.07049191743135452,
0.13808564841747284,
0.07365412265062332,
0.4947434663772583,
0.29954156279563904,
-0.09684158116579056,
-0.15625007450580597,
0.5009903311729431,
-0.047043848782777786,
-0.21856330335140228,
0.31125980615615845,
-0.11817745864391327,
-0.19453494250774384,
0.0684313252568245,
0.08874527364969254,
0.37982177734375,
0.129376620054245,
-0.19153106212615967,
0.014664051122963428,
0.1435023993253708,
-0.25002944469451904,
0.12040587514638901,
-0.22043456137180328,
0.14736151695251465,
0.3965647518634796,
0.12700994312763214,
-0.12728583812713623,
-0.19514448940753937,
0.03774420544505119,
0.08758530765771866,
0.32572367787361145,
-0.41195550560951233,
-0.06754524260759354,
-0.0734538659453392,
-0.00520607503131032,
-0.18028461933135986,
0.09860336780548096,
-0.05557971075177193,
0.0971229299902916,
-0.3996107280254364,
0.33282431960105896,
0.2897825241088867,
-0.0790662169456482,
-0.24312594532966614,
0.0886346697807312,
0.21581262350082397,
-0.33705565333366394,
-0.0034609611611813307,
-0.04899057745933533,
-0.2919398546218872,
-0.026176292449235916,
0.33071011304855347,
0.10981899499893188,
-0.0008769872365519404,
-0.021766064688563347,
0.02802499197423458,
-0.054845232516527176,
-0.09253321588039398,
-0.04392470419406891,
-0.07322972267866135,
0.020921776071190834,
-0.051166389137506485,
0.41933107376098633,
0.007607900537550449,
-0.144631028175354,
0.4017487168312073,
-0.25366106629371643,
-0.048924800008535385,
0.35013547539711,
0.06369376927614212,
-0.09587976336479187,
-0.1087077260017395,
-0.349889874458313,
-0.13988769054412842,
-0.42933720350265503,
0.39106279611587524,
0.08475610613822937,
0.041931621730327606,
0.0926312729716301,
0.4331050515174866,
-0.026085056364536285,
0.3013545274734497,
-0.031216595321893692,
-0.08480541408061981,
-0.2977057099342346,
0.3645738363265991,
-0.05611651390790939,
-0.4676561653614044,
0.011941715143620968,
0.0828355997800827,
0.35919055342674255,
0.16382671892642975,
-0.42524710297584534,
0.3267478942871094,
-0.15090735256671906,
0.16282014548778534,
0.0011052140034735203,
-0.024227632209658623,
0.06095466762781143,
-0.0872274860739708,
-0.021823471412062645,
0.036430519074201584,
-0.24171596765518188,
-0.01417996920645237,
-0.032044410705566406,
0.1475837230682373,
0.05136847868561745,
0.4584294855594635,
-0.03719279542565346,
0.6513357758522034,
0.08746417611837387,
-0.08823138475418091,
0.4855556786060333,
-0.30823996663093567,
0.38187792897224426,
-0.20967096090316772,
-0.373745322227478,
-0.08557498455047607,
-0.3519817292690277,
-0.19244645535945892,
0.26774877309799194,
-0.03358382359147072,
-0.033414993435144424,
-0.12577596306800842,
0.003517948789522052,
-0.4046858549118042,
-0.03770316392183304,
0.18363207578659058,
0.030697034671902657,
-0.014829985797405243,
-0.10059560835361481,
-0.0133008798584342,
-0.011645855382084846,
-0.23736286163330078,
-0.19425863027572632,
0.27396413683891296,
-0.15134243667125702,
0.06338711082935333,
-0.2242484986782074,
-0.06158057227730751,
-0.3029373586177826,
0.3292049765586853,
-0.013623470440506935,
0.31028637290000916,
0.010614469647407532,
-0.017695080488920212,
0.09729672223329544,
-0.12522217631340027,
0.7449791431427002,
0.18928571045398712,
-0.15507036447525024,
0.12782905995845795,
-0.02411402203142643,
-0.44158339500427246,
-0.12176128476858139,
0.19063137471675873,
0.3073364794254303,
0.0744616687297821,
0.3548656702041626,
-0.07032588869333267,
-0.009693858213722706,
-0.144343301653862,
0.3546774685382843,
0.04325278475880623,
-0.3951282203197479,
-0.5194916725158691,
-0.23497912287712097,
-0.3830534815788269,
-0.21213534474372864,
-0.08986669778823853,
0.28827884793281555,
-0.3244076371192932,
-0.14238668978214264,
0.11836138367652893,
-0.29905372858047485,
0.06015709787607193,
0.1533813178539276,
0.29738959670066833,
-0.11291433125734329,
0.1448960304260254,
0.04683511704206467,
0.069804847240448,
0.3769119679927826,
0.7987183332443237,
-0.07857611030340195,
-0.6220773458480835,
0.08484339714050293,
-0.20502661168575287,
0.38534846901893616,
0.047819897532463074,
-0.20320534706115723,
0.12898707389831543,
0.09073479473590851,
0.06203382462263107,
0.037948235869407654,
0.014437259174883366,
0.3036864995956421,
0.04965538904070854,
-0.3454543650150299,
-0.5439224243164062,
0.48741868138313293,
-0.1259079873561859,
0.21025902032852173,
0.30208030343055725,
-0.2120000571012497,
-0.10998117923736572,
0.15552282333374023,
-0.33462491631507874,
0.6592137813568115,
-0.42182981967926025,
0.1938304603099823,
0.30733662843704224,
0.05633584409952164,
0.2584291994571686,
-0.4451972246170044,
0.1323075145483017,
-0.39196813106536865,
-0.21090373396873474,
-0.10431220382452011,
-0.07120317965745926,
0.23938605189323425,
0.43218994140625,
-0.12124570459127426,
0.31186407804489136,
-0.07414999604225159,
0.33255627751350403,
0.11313419044017792,
0.243825301527977,
-0.1005159243941307,
-0.08646856248378754,
-0.30102118849754333,
0.01042383722960949,
-0.1430809646844864,
-0.034951888024806976,
0.028959080576896667,
0.0544644333422184,
-0.180567666888237,
-0.20164556801319122,
-0.24611222743988037,
0.22002477943897247,
-0.2911674380302429,
0.11540484428405762,
-0.11095461994409561,
-0.46866485476493835,
0.1963638812303543,
0.23806707561016083,
-0.2087021917104721,
-0.08517897129058838,
-0.12408510595560074,
0.15505379438400269,
0.1596345156431198,
-0.04017554968595505,
-0.2083745002746582,
-0.053695764392614365,
-0.015885639935731888,
0.07612629234790802,
-0.2351236790418625,
0.15455135703086853,
-0.12227892875671387,
-0.09567457437515259,
0.2780734598636627,
0.23765769600868225,
-0.08480718731880188,
-0.5452091693878174,
-0.532619297504425,
-0.42841580510139465,
0.07598097622394562,
-0.19573217630386353,
0.06519818305969238,
-0.04207875207066536,
0.09834135323762894,
-0.16163481771945953,
0.18593527376651764,
-0.4688694179058075,
-0.10202683508396149,
0.39181265234947205,
-0.11168676614761353,
0.0939541757106781,
0.5907297730445862,
0.21935012936592102,
-0.016892874613404274,
-0.14115259051322937,
0.06424059718847275,
0.3081054985523224,
-0.35318848490715027,
0.11706629395484924,
0.1141490787267685,
0.31594985723495483,
0.13925305008888245,
0.29174545407295227,
0.15658053755760193,
-0.07767266780138016,
0.07445463538169861,
-0.5115906596183777,
-0.32496926188468933,
-0.016528883948922157,
-0.0015315862838178873,
0.2479579895734787,
0.16721919178962708,
0.0818668007850647,
0.17267778515815735,
0.2032967358827591,
-0.1562303602695465,
0.1004619300365448,
0.10592912137508392,
-0.0869574248790741,
0.21063292026519775,
0.14201612770557404,
-0.1338723599910736,
-0.10381940007209778,
0.09349783509969711,
0.17764000594615936,
-0.05344485491514206,
-0.18875108659267426,
-0.07985583692789078,
0.15010018646717072,
0.09836076945066452,
0.02328583598136902,
-0.20344536006450653,
-0.25268879532814026,
-0.14970612525939941,
-0.19280564785003662,
0.06640884280204773,
0.02978229708969593,
-0.09811203181743622,
0.0717599168419838,
-0.29876530170440674,
-0.08465413749217987,
-0.5091866254806519,
0.0271220114082098,
-0.5075392723083496,
0.22313232719898224,
0.299269437789917,
0.04858221858739853,
0.12175736576318741,
0.2004556804895401,
-0.1724262535572052,
-0.031158387660980225,
0.15162667632102966,
-0.13661924004554749,
0.3009468615055084,
-0.40147584676742554,
0.20350652933120728,
-0.051065169274806976,
0.3403376042842865,
0.48486098647117615,
-0.20764142274856567,
0.21971096098423004,
0.03758656233549118,
0.1341150999069214,
-0.3825283646583557,
0.27547669410705566,
0.11723203957080841,
-0.06162978336215019,
-0.02748439833521843,
0.16967540979385376,
0.19921153783798218,
-0.20830745995044708,
-0.0957765206694603,
0.006910542957484722,
0.47598904371261597,
-0.00782269798219204,
-0.03395090997219086,
0.4135631322860718,
0.0027142611797899008,
0.17896944284439087,
0.24033525586128235,
0.13563746213912964,
0.01962045393884182,
0.7002615928649902,
-0.2602291703224182,
-0.003965036943554878,
-0.23526832461357117,
0.301481693983078,
-0.32787004113197327,
-0.7641029357910156,
0.16166482865810394,
0.23555037379264832,
-0.353310227394104,
-0.16765117645263672,
0.12589789927005768,
0.6017507314682007,
-0.02337493561208248,
0.011493019759654999,
-0.11459319293498993,
-0.04483534395694733,
0.014054806903004646,
0.048389654606580734,
-0.06621383130550385,
-0.2536705434322357,
-0.07082367688417435,
0.18568316102027893,
-0.05955559387803078,
0.01455992553383112,
0.27498161792755127,
0.1876642405986786,
-0.14948338270187378,
-0.4457591474056244,
0.06577521562576294,
0.1728488802909851,
0.06654299050569534,
-0.2748386561870575,
0.36661168932914734,
0.2653484344482422,
-0.08599161356687546,
0.18050527572631836,
-0.041344936937093735,
0.6402475833892822,
0.504192054271698,
0.09241160750389099,
-0.061740633100271225,
-0.12157168239355087,
-0.1139908879995346,
-0.17941829562187195,
0.17781689763069153,
0.3488177955150604,
0.42126908898353577,
0.1485438197851181,
0.11359865218400955,
-0.04018512740731239,
0.31608882546424866,
0.20678871870040894,
0.09960091859102249,
-0.5459765791893005,
-0.11891994625329971,
-0.20831166207790375,
-0.2577386796474457,
-0.22663293778896332,
0.024151301011443138,
-0.28905969858169556,
0.020943105220794678,
0.4277471601963043,
0.07391539216041565,
0.2772267460823059,
-0.02682262286543846,
0.03456752374768257,
0.074334055185318,
0.31421977281570435,
0.23977594077587128,
0.4022899866104126,
-0.4218083918094635,
-0.03541852906346321,
-0.7509752511978149,
0.11652783304452896,
-0.3764895498752594,
0.009592805057764053,
-0.03185893967747688,
0.1585380733013153,
0.13774138689041138,
0.08386081457138062,
0.15917234122753143,
0.2994239330291748,
0.11672339588403702,
0.22207777202129364,
-0.056184589862823486,
-0.1846201866865158,
-0.3380703628063202,
0.026485688984394073,
-0.1750924289226532,
-0.46551379561424255,
0.22136037051677704,
-0.1279323846101761,
0.009210983291268349,
-0.22518587112426758,
0.22398854792118073,
0.2559671700000763,
-0.005987231619656086,
0.47772902250289917,
-0.11201148480176926,
0.6255967617034912,
-0.08501806110143661,
0.3190011978149414,
-0.3009389042854309,
-0.08018997311592102,
-0.1928057223558426,
0.5200992822647095,
0.20615030825138092,
0.27139976620674133,
-0.17799293994903564,
-0.1079161986708641,
-0.21530449390411377,
0.1574099063873291,
-0.006548059172928333,
-0.07054726779460907,
0.06672760099172592,
-0.15106044709682465,
-0.0018240452045574784,
-0.05849021300673485,
0.152231365442276,
0.09204785525798798,
-0.2229386419057846,
-0.0781729519367218,
-0.17455333471298218,
-0.18018513917922974,
0.18108227849006653,
-0.40432897210121155,
-0.34110361337661743,
0.14871783554553986,
0.12612628936767578,
0.1018664687871933,
0.13969221711158752,
-0.45242124795913696,
0.1217893585562706,
0.4244746267795563,
-0.12801693379878998,
-0.417426198720932,
0.13403181731700897,
-0.21161890029907227,
0.10057053714990616,
-0.12185259908437729,
0.47650185227394104,
0.14110933244228363,
-0.3705090880393982,
-0.1615714728832245,
-0.3583211898803711
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | This did help to load the data. But the problem now is that I get:
ArrowInvalid: CSV parse error: Expected 5 columns, got 187
It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow
But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
| Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 66 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
This did help to load the data. But the problem now is that I get:
ArrowInvalid: CSV parse error: Expected 5 columns, got 187
It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow
But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
| [
-0.24118328094482422,
-0.3198656737804413,
-0.06815572828054428,
0.43160730600357056,
0.3625253736972809,
0.01915484294295311,
0.5210208296775818,
0.43771326541900635,
0.29491308331489563,
0.03277552127838135,
0.016962869092822075,
-0.11870472133159637,
0.09059187024831772,
0.18028980493545532,
0.03506607934832573,
0.11300940811634064,
0.07302846014499664,
0.39882132411003113,
0.031720396131277084,
0.06997229903936386,
-0.21886058151721954,
0.12086963653564453,
0.005867550615221262,
0.05751494690775871,
-0.12442246824502945,
0.0723639652132988,
-0.00820865761488676,
0.1169142946600914,
-0.23435114324092865,
-0.4013203978538513,
0.4197230935096741,
0.07845430076122284,
0.3328506350517273,
0.52076655626297,
-0.00011690512474160641,
0.1564730405807495,
0.26544874906539917,
-0.18562592566013336,
-0.04419953376054764,
-0.5195809006690979,
0.030129535123705864,
-0.5329570174217224,
0.27766624093055725,
-0.16720233857631683,
-0.014489161781966686,
-0.17868056893348694,
-0.11099930107593536,
-0.035805970430374146,
0.3014127016067505,
0.3175452649593353,
0.18049591779708862,
-0.2607497572898865,
0.0598919577896595,
-0.01001912821084261,
0.20529192686080933,
0.037179186940193176,
-0.015685727819800377,
0.4175470173358917,
0.11739544570446014,
-0.12676116824150085,
-0.04873064160346985,
-0.1936672031879425,
-0.23924316465854645,
0.35819920897483826,
0.3196348249912262,
0.13994011282920837,
0.07096739113330841,
-0.10896703600883484,
0.26807063817977905,
0.10550523549318314,
0.6067357659339905,
-0.30764222145080566,
-0.14854714274406433,
-0.015400628559291363,
-0.020296940580010414,
-0.4886515438556671,
0.2558157742023468,
0.4044944941997528,
-0.1521599292755127,
0.11733322590589523,
-0.21221256256103516,
0.24844683706760406,
-0.26639294624328613,
0.20286187529563904,
-0.06734729558229446,
-0.3531903028488159,
-0.2522074580192566,
0.26931819319725037,
0.25234028697013855,
0.07374785095453262,
0.33363965153694153,
-0.09374990314245224,
0.02685411088168621,
0.18069684505462646,
-0.5556497573852539,
0.2796492576599121,
-0.11766058206558228,
-0.09043681621551514,
0.1637403517961502,
0.09621904045343399,
0.4014219045639038,
0.13706235587596893,
0.04234488308429718,
0.19469791650772095,
0.3191303014755249,
0.18613260984420776,
-0.042814552783966064,
0.06910472363233566,
0.027385590597987175,
0.34621769189834595,
-0.22978368401527405,
-0.2338583618402481,
-0.3881368041038513,
-0.5049573183059692,
0.23814234137535095,
-0.15383809804916382,
0.26744401454925537,
-0.27043357491493225,
-0.24793300032615662,
-0.0960201546549797,
-0.03613270819187164,
-0.009423329494893551,
-0.05283444747328758,
0.5738204717636108,
0.21583421528339386,
0.3802047669887543,
-0.05421007424592972,
0.25720903277397156,
-0.21127571165561676,
-0.09865453839302063,
-0.08035237342119217,
0.020115729421377182,
-0.057602543383836746,
0.05229124054312706,
0.37774842977523804,
-0.2166886329650879,
0.12146084010601044,
0.17629574239253998,
-0.04351634159684181,
-0.29387468099594116,
-0.1455053836107254,
-0.41772258281707764,
0.03672437742352486,
0.2833081781864166,
0.20247413218021393,
0.09795285016298294,
0.2341531366109848,
-0.2812096178531647,
-0.060687996447086334,
0.38054099678993225,
-0.23011918365955353,
-0.1685691624879837,
0.09726446121931076,
0.09630231559276581,
-0.06611702591180801,
0.16567829251289368,
-0.39563146233558655,
0.15635089576244354,
0.3519504964351654,
-0.43849414587020874,
0.033467378467321396,
-0.2134845107793808,
-0.24112306535243988,
-0.35248100757598877,
0.20189052820205688,
0.27905920147895813,
-0.7854663729667664,
0.3429478108882904,
0.053906410932540894,
-0.03174852952361107,
0.11499883979558945,
0.42371514439582825,
-0.14831706881523132,
0.06117837131023407,
-0.27098697423934937,
0.09215248376131058,
0.14062419533729553,
0.007542762905359268,
-0.6293670535087585,
0.3307563066482544,
-0.04602754861116409,
0.0895458236336708,
0.31206417083740234,
0.06455276906490326,
0.05121524631977081,
0.08917734026908875,
-0.10802217572927475,
0.018553977832198143,
0.023134613409638405,
0.04400574788451195,
-0.2607475817203522,
-0.12919268012046814,
0.31875085830688477,
0.14262457191944122,
-0.06477401405572891,
-0.06767303496599197,
0.2388889342546463,
-0.40873926877975464,
0.2025448977947235,
-0.01808738149702549,
0.1416160762310028,
0.17524681985378265,
0.17913149297237396,
-0.1968235820531845,
0.03497389703989029,
0.010433362796902657,
-0.44934946298599243,
0.14338213205337524,
0.284880667924881,
-0.16870099306106567,
-0.21594460308551788,
-0.07973092794418335,
-0.38411810994148254,
-0.02970108389854431,
-0.2681601643562317,
-0.12419972568750381,
-0.024652713909745216,
0.0725151002407074,
0.05951970815658569,
-0.1440531611442566,
-0.18574000895023346,
0.11611957848072052,
-0.22377683222293854,
-0.011276056990027428,
-0.015843937173485756,
0.14221921563148499,
0.05879932641983032,
-0.124988853931427,
0.10647231340408325,
-0.0629006177186966,
0.20716817677021027,
-0.04833386093378067,
-0.2763521671295166,
0.2495911419391632,
0.14568684995174408,
0.04561539739370346,
-0.2857955992221832,
-0.1747877597808838,
0.08302020281553268,
-0.24150553345680237,
-0.0872013196349144,
0.023738281801342964,
0.3663713335990906,
-0.18254680931568146,
-0.3392810821533203,
0.27062347531318665,
-0.1567005068063736,
0.30151399970054626,
0.18797588348388672,
-0.358071506023407,
0.3065018951892853,
0.016720233485102654,
0.17819398641586304,
0.07049191743135452,
0.13808564841747284,
0.07365412265062332,
0.4947434663772583,
0.29954156279563904,
-0.09684158116579056,
-0.15625007450580597,
0.5009903311729431,
-0.047043848782777786,
-0.21856330335140228,
0.31125980615615845,
-0.11817745864391327,
-0.19453494250774384,
0.0684313252568245,
0.08874527364969254,
0.37982177734375,
0.129376620054245,
-0.19153106212615967,
0.014664051122963428,
0.1435023993253708,
-0.25002944469451904,
0.12040587514638901,
-0.22043456137180328,
0.14736151695251465,
0.3965647518634796,
0.12700994312763214,
-0.12728583812713623,
-0.19514448940753937,
0.03774420544505119,
0.08758530765771866,
0.32572367787361145,
-0.41195550560951233,
-0.06754524260759354,
-0.0734538659453392,
-0.00520607503131032,
-0.18028461933135986,
0.09860336780548096,
-0.05557971075177193,
0.0971229299902916,
-0.3996107280254364,
0.33282431960105896,
0.2897825241088867,
-0.0790662169456482,
-0.24312594532966614,
0.0886346697807312,
0.21581262350082397,
-0.33705565333366394,
-0.0034609611611813307,
-0.04899057745933533,
-0.2919398546218872,
-0.026176292449235916,
0.33071011304855347,
0.10981899499893188,
-0.0008769872365519404,
-0.021766064688563347,
0.02802499197423458,
-0.054845232516527176,
-0.09253321588039398,
-0.04392470419406891,
-0.07322972267866135,
0.020921776071190834,
-0.051166389137506485,
0.41933107376098633,
0.007607900537550449,
-0.144631028175354,
0.4017487168312073,
-0.25366106629371643,
-0.048924800008535385,
0.35013547539711,
0.06369376927614212,
-0.09587976336479187,
-0.1087077260017395,
-0.349889874458313,
-0.13988769054412842,
-0.42933720350265503,
0.39106279611587524,
0.08475610613822937,
0.041931621730327606,
0.0926312729716301,
0.4331050515174866,
-0.026085056364536285,
0.3013545274734497,
-0.031216595321893692,
-0.08480541408061981,
-0.2977057099342346,
0.3645738363265991,
-0.05611651390790939,
-0.4676561653614044,
0.011941715143620968,
0.0828355997800827,
0.35919055342674255,
0.16382671892642975,
-0.42524710297584534,
0.3267478942871094,
-0.15090735256671906,
0.16282014548778534,
0.0011052140034735203,
-0.024227632209658623,
0.06095466762781143,
-0.0872274860739708,
-0.021823471412062645,
0.036430519074201584,
-0.24171596765518188,
-0.01417996920645237,
-0.032044410705566406,
0.1475837230682373,
0.05136847868561745,
0.4584294855594635,
-0.03719279542565346,
0.6513357758522034,
0.08746417611837387,
-0.08823138475418091,
0.4855556786060333,
-0.30823996663093567,
0.38187792897224426,
-0.20967096090316772,
-0.373745322227478,
-0.08557498455047607,
-0.3519817292690277,
-0.19244645535945892,
0.26774877309799194,
-0.03358382359147072,
-0.033414993435144424,
-0.12577596306800842,
0.003517948789522052,
-0.4046858549118042,
-0.03770316392183304,
0.18363207578659058,
0.030697034671902657,
-0.014829985797405243,
-0.10059560835361481,
-0.0133008798584342,
-0.011645855382084846,
-0.23736286163330078,
-0.19425863027572632,
0.27396413683891296,
-0.15134243667125702,
0.06338711082935333,
-0.2242484986782074,
-0.06158057227730751,
-0.3029373586177826,
0.3292049765586853,
-0.013623470440506935,
0.31028637290000916,
0.010614469647407532,
-0.017695080488920212,
0.09729672223329544,
-0.12522217631340027,
0.7449791431427002,
0.18928571045398712,
-0.15507036447525024,
0.12782905995845795,
-0.02411402203142643,
-0.44158339500427246,
-0.12176128476858139,
0.19063137471675873,
0.3073364794254303,
0.0744616687297821,
0.3548656702041626,
-0.07032588869333267,
-0.009693858213722706,
-0.144343301653862,
0.3546774685382843,
0.04325278475880623,
-0.3951282203197479,
-0.5194916725158691,
-0.23497912287712097,
-0.3830534815788269,
-0.21213534474372864,
-0.08986669778823853,
0.28827884793281555,
-0.3244076371192932,
-0.14238668978214264,
0.11836138367652893,
-0.29905372858047485,
0.06015709787607193,
0.1533813178539276,
0.29738959670066833,
-0.11291433125734329,
0.1448960304260254,
0.04683511704206467,
0.069804847240448,
0.3769119679927826,
0.7987183332443237,
-0.07857611030340195,
-0.6220773458480835,
0.08484339714050293,
-0.20502661168575287,
0.38534846901893616,
0.047819897532463074,
-0.20320534706115723,
0.12898707389831543,
0.09073479473590851,
0.06203382462263107,
0.037948235869407654,
0.014437259174883366,
0.3036864995956421,
0.04965538904070854,
-0.3454543650150299,
-0.5439224243164062,
0.48741868138313293,
-0.1259079873561859,
0.21025902032852173,
0.30208030343055725,
-0.2120000571012497,
-0.10998117923736572,
0.15552282333374023,
-0.33462491631507874,
0.6592137813568115,
-0.42182981967926025,
0.1938304603099823,
0.30733662843704224,
0.05633584409952164,
0.2584291994571686,
-0.4451972246170044,
0.1323075145483017,
-0.39196813106536865,
-0.21090373396873474,
-0.10431220382452011,
-0.07120317965745926,
0.23938605189323425,
0.43218994140625,
-0.12124570459127426,
0.31186407804489136,
-0.07414999604225159,
0.33255627751350403,
0.11313419044017792,
0.243825301527977,
-0.1005159243941307,
-0.08646856248378754,
-0.30102118849754333,
0.01042383722960949,
-0.1430809646844864,
-0.034951888024806976,
0.028959080576896667,
0.0544644333422184,
-0.180567666888237,
-0.20164556801319122,
-0.24611222743988037,
0.22002477943897247,
-0.2911674380302429,
0.11540484428405762,
-0.11095461994409561,
-0.46866485476493835,
0.1963638812303543,
0.23806707561016083,
-0.2087021917104721,
-0.08517897129058838,
-0.12408510595560074,
0.15505379438400269,
0.1596345156431198,
-0.04017554968595505,
-0.2083745002746582,
-0.053695764392614365,
-0.015885639935731888,
0.07612629234790802,
-0.2351236790418625,
0.15455135703086853,
-0.12227892875671387,
-0.09567457437515259,
0.2780734598636627,
0.23765769600868225,
-0.08480718731880188,
-0.5452091693878174,
-0.532619297504425,
-0.42841580510139465,
0.07598097622394562,
-0.19573217630386353,
0.06519818305969238,
-0.04207875207066536,
0.09834135323762894,
-0.16163481771945953,
0.18593527376651764,
-0.4688694179058075,
-0.10202683508396149,
0.39181265234947205,
-0.11168676614761353,
0.0939541757106781,
0.5907297730445862,
0.21935012936592102,
-0.016892874613404274,
-0.14115259051322937,
0.06424059718847275,
0.3081054985523224,
-0.35318848490715027,
0.11706629395484924,
0.1141490787267685,
0.31594985723495483,
0.13925305008888245,
0.29174545407295227,
0.15658053755760193,
-0.07767266780138016,
0.07445463538169861,
-0.5115906596183777,
-0.32496926188468933,
-0.016528883948922157,
-0.0015315862838178873,
0.2479579895734787,
0.16721919178962708,
0.0818668007850647,
0.17267778515815735,
0.2032967358827591,
-0.1562303602695465,
0.1004619300365448,
0.10592912137508392,
-0.0869574248790741,
0.21063292026519775,
0.14201612770557404,
-0.1338723599910736,
-0.10381940007209778,
0.09349783509969711,
0.17764000594615936,
-0.05344485491514206,
-0.18875108659267426,
-0.07985583692789078,
0.15010018646717072,
0.09836076945066452,
0.02328583598136902,
-0.20344536006450653,
-0.25268879532814026,
-0.14970612525939941,
-0.19280564785003662,
0.06640884280204773,
0.02978229708969593,
-0.09811203181743622,
0.0717599168419838,
-0.29876530170440674,
-0.08465413749217987,
-0.5091866254806519,
0.0271220114082098,
-0.5075392723083496,
0.22313232719898224,
0.299269437789917,
0.04858221858739853,
0.12175736576318741,
0.2004556804895401,
-0.1724262535572052,
-0.031158387660980225,
0.15162667632102966,
-0.13661924004554749,
0.3009468615055084,
-0.40147584676742554,
0.20350652933120728,
-0.051065169274806976,
0.3403376042842865,
0.48486098647117615,
-0.20764142274856567,
0.21971096098423004,
0.03758656233549118,
0.1341150999069214,
-0.3825283646583557,
0.27547669410705566,
0.11723203957080841,
-0.06162978336215019,
-0.02748439833521843,
0.16967540979385376,
0.19921153783798218,
-0.20830745995044708,
-0.0957765206694603,
0.006910542957484722,
0.47598904371261597,
-0.00782269798219204,
-0.03395090997219086,
0.4135631322860718,
0.0027142611797899008,
0.17896944284439087,
0.24033525586128235,
0.13563746213912964,
0.01962045393884182,
0.7002615928649902,
-0.2602291703224182,
-0.003965036943554878,
-0.23526832461357117,
0.301481693983078,
-0.32787004113197327,
-0.7641029357910156,
0.16166482865810394,
0.23555037379264832,
-0.353310227394104,
-0.16765117645263672,
0.12589789927005768,
0.6017507314682007,
-0.02337493561208248,
0.011493019759654999,
-0.11459319293498993,
-0.04483534395694733,
0.014054806903004646,
0.048389654606580734,
-0.06621383130550385,
-0.2536705434322357,
-0.07082367688417435,
0.18568316102027893,
-0.05955559387803078,
0.01455992553383112,
0.27498161792755127,
0.1876642405986786,
-0.14948338270187378,
-0.4457591474056244,
0.06577521562576294,
0.1728488802909851,
0.06654299050569534,
-0.2748386561870575,
0.36661168932914734,
0.2653484344482422,
-0.08599161356687546,
0.18050527572631836,
-0.041344936937093735,
0.6402475833892822,
0.504192054271698,
0.09241160750389099,
-0.061740633100271225,
-0.12157168239355087,
-0.1139908879995346,
-0.17941829562187195,
0.17781689763069153,
0.3488177955150604,
0.42126908898353577,
0.1485438197851181,
0.11359865218400955,
-0.04018512740731239,
0.31608882546424866,
0.20678871870040894,
0.09960091859102249,
-0.5459765791893005,
-0.11891994625329971,
-0.20831166207790375,
-0.2577386796474457,
-0.22663293778896332,
0.024151301011443138,
-0.28905969858169556,
0.020943105220794678,
0.4277471601963043,
0.07391539216041565,
0.2772267460823059,
-0.02682262286543846,
0.03456752374768257,
0.074334055185318,
0.31421977281570435,
0.23977594077587128,
0.4022899866104126,
-0.4218083918094635,
-0.03541852906346321,
-0.7509752511978149,
0.11652783304452896,
-0.3764895498752594,
0.009592805057764053,
-0.03185893967747688,
0.1585380733013153,
0.13774138689041138,
0.08386081457138062,
0.15917234122753143,
0.2994239330291748,
0.11672339588403702,
0.22207777202129364,
-0.056184589862823486,
-0.1846201866865158,
-0.3380703628063202,
0.026485688984394073,
-0.1750924289226532,
-0.46551379561424255,
0.22136037051677704,
-0.1279323846101761,
0.009210983291268349,
-0.22518587112426758,
0.22398854792118073,
0.2559671700000763,
-0.005987231619656086,
0.47772902250289917,
-0.11201148480176926,
0.6255967617034912,
-0.08501806110143661,
0.3190011978149414,
-0.3009389042854309,
-0.08018997311592102,
-0.1928057223558426,
0.5200992822647095,
0.20615030825138092,
0.27139976620674133,
-0.17799293994903564,
-0.1079161986708641,
-0.21530449390411377,
0.1574099063873291,
-0.006548059172928333,
-0.07054726779460907,
0.06672760099172592,
-0.15106044709682465,
-0.0018240452045574784,
-0.05849021300673485,
0.152231365442276,
0.09204785525798798,
-0.2229386419057846,
-0.0781729519367218,
-0.17455333471298218,
-0.18018513917922974,
0.18108227849006653,
-0.40432897210121155,
-0.34110361337661743,
0.14871783554553986,
0.12612628936767578,
0.1018664687871933,
0.13969221711158752,
-0.45242124795913696,
0.1217893585562706,
0.4244746267795563,
-0.12801693379878998,
-0.417426198720932,
0.13403181731700897,
-0.21161890029907227,
0.10057053714990616,
-0.12185259908437729,
0.47650185227394104,
0.14110933244228363,
-0.3705090880393982,
-0.1615714728832245,
-0.3583211898803711
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error. | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 32 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error. | [
-0.24118328094482422,
-0.3198656737804413,
-0.06815572828054428,
0.43160730600357056,
0.3625253736972809,
0.01915484294295311,
0.5210208296775818,
0.43771326541900635,
0.29491308331489563,
0.03277552127838135,
0.016962869092822075,
-0.11870472133159637,
0.09059187024831772,
0.18028980493545532,
0.03506607934832573,
0.11300940811634064,
0.07302846014499664,
0.39882132411003113,
0.031720396131277084,
0.06997229903936386,
-0.21886058151721954,
0.12086963653564453,
0.005867550615221262,
0.05751494690775871,
-0.12442246824502945,
0.0723639652132988,
-0.00820865761488676,
0.1169142946600914,
-0.23435114324092865,
-0.4013203978538513,
0.4197230935096741,
0.07845430076122284,
0.3328506350517273,
0.52076655626297,
-0.00011690512474160641,
0.1564730405807495,
0.26544874906539917,
-0.18562592566013336,
-0.04419953376054764,
-0.5195809006690979,
0.030129535123705864,
-0.5329570174217224,
0.27766624093055725,
-0.16720233857631683,
-0.014489161781966686,
-0.17868056893348694,
-0.11099930107593536,
-0.035805970430374146,
0.3014127016067505,
0.3175452649593353,
0.18049591779708862,
-0.2607497572898865,
0.0598919577896595,
-0.01001912821084261,
0.20529192686080933,
0.037179186940193176,
-0.015685727819800377,
0.4175470173358917,
0.11739544570446014,
-0.12676116824150085,
-0.04873064160346985,
-0.1936672031879425,
-0.23924316465854645,
0.35819920897483826,
0.3196348249912262,
0.13994011282920837,
0.07096739113330841,
-0.10896703600883484,
0.26807063817977905,
0.10550523549318314,
0.6067357659339905,
-0.30764222145080566,
-0.14854714274406433,
-0.015400628559291363,
-0.020296940580010414,
-0.4886515438556671,
0.2558157742023468,
0.4044944941997528,
-0.1521599292755127,
0.11733322590589523,
-0.21221256256103516,
0.24844683706760406,
-0.26639294624328613,
0.20286187529563904,
-0.06734729558229446,
-0.3531903028488159,
-0.2522074580192566,
0.26931819319725037,
0.25234028697013855,
0.07374785095453262,
0.33363965153694153,
-0.09374990314245224,
0.02685411088168621,
0.18069684505462646,
-0.5556497573852539,
0.2796492576599121,
-0.11766058206558228,
-0.09043681621551514,
0.1637403517961502,
0.09621904045343399,
0.4014219045639038,
0.13706235587596893,
0.04234488308429718,
0.19469791650772095,
0.3191303014755249,
0.18613260984420776,
-0.042814552783966064,
0.06910472363233566,
0.027385590597987175,
0.34621769189834595,
-0.22978368401527405,
-0.2338583618402481,
-0.3881368041038513,
-0.5049573183059692,
0.23814234137535095,
-0.15383809804916382,
0.26744401454925537,
-0.27043357491493225,
-0.24793300032615662,
-0.0960201546549797,
-0.03613270819187164,
-0.009423329494893551,
-0.05283444747328758,
0.5738204717636108,
0.21583421528339386,
0.3802047669887543,
-0.05421007424592972,
0.25720903277397156,
-0.21127571165561676,
-0.09865453839302063,
-0.08035237342119217,
0.020115729421377182,
-0.057602543383836746,
0.05229124054312706,
0.37774842977523804,
-0.2166886329650879,
0.12146084010601044,
0.17629574239253998,
-0.04351634159684181,
-0.29387468099594116,
-0.1455053836107254,
-0.41772258281707764,
0.03672437742352486,
0.2833081781864166,
0.20247413218021393,
0.09795285016298294,
0.2341531366109848,
-0.2812096178531647,
-0.060687996447086334,
0.38054099678993225,
-0.23011918365955353,
-0.1685691624879837,
0.09726446121931076,
0.09630231559276581,
-0.06611702591180801,
0.16567829251289368,
-0.39563146233558655,
0.15635089576244354,
0.3519504964351654,
-0.43849414587020874,
0.033467378467321396,
-0.2134845107793808,
-0.24112306535243988,
-0.35248100757598877,
0.20189052820205688,
0.27905920147895813,
-0.7854663729667664,
0.3429478108882904,
0.053906410932540894,
-0.03174852952361107,
0.11499883979558945,
0.42371514439582825,
-0.14831706881523132,
0.06117837131023407,
-0.27098697423934937,
0.09215248376131058,
0.14062419533729553,
0.007542762905359268,
-0.6293670535087585,
0.3307563066482544,
-0.04602754861116409,
0.0895458236336708,
0.31206417083740234,
0.06455276906490326,
0.05121524631977081,
0.08917734026908875,
-0.10802217572927475,
0.018553977832198143,
0.023134613409638405,
0.04400574788451195,
-0.2607475817203522,
-0.12919268012046814,
0.31875085830688477,
0.14262457191944122,
-0.06477401405572891,
-0.06767303496599197,
0.2388889342546463,
-0.40873926877975464,
0.2025448977947235,
-0.01808738149702549,
0.1416160762310028,
0.17524681985378265,
0.17913149297237396,
-0.1968235820531845,
0.03497389703989029,
0.010433362796902657,
-0.44934946298599243,
0.14338213205337524,
0.284880667924881,
-0.16870099306106567,
-0.21594460308551788,
-0.07973092794418335,
-0.38411810994148254,
-0.02970108389854431,
-0.2681601643562317,
-0.12419972568750381,
-0.024652713909745216,
0.0725151002407074,
0.05951970815658569,
-0.1440531611442566,
-0.18574000895023346,
0.11611957848072052,
-0.22377683222293854,
-0.011276056990027428,
-0.015843937173485756,
0.14221921563148499,
0.05879932641983032,
-0.124988853931427,
0.10647231340408325,
-0.0629006177186966,
0.20716817677021027,
-0.04833386093378067,
-0.2763521671295166,
0.2495911419391632,
0.14568684995174408,
0.04561539739370346,
-0.2857955992221832,
-0.1747877597808838,
0.08302020281553268,
-0.24150553345680237,
-0.0872013196349144,
0.023738281801342964,
0.3663713335990906,
-0.18254680931568146,
-0.3392810821533203,
0.27062347531318665,
-0.1567005068063736,
0.30151399970054626,
0.18797588348388672,
-0.358071506023407,
0.3065018951892853,
0.016720233485102654,
0.17819398641586304,
0.07049191743135452,
0.13808564841747284,
0.07365412265062332,
0.4947434663772583,
0.29954156279563904,
-0.09684158116579056,
-0.15625007450580597,
0.5009903311729431,
-0.047043848782777786,
-0.21856330335140228,
0.31125980615615845,
-0.11817745864391327,
-0.19453494250774384,
0.0684313252568245,
0.08874527364969254,
0.37982177734375,
0.129376620054245,
-0.19153106212615967,
0.014664051122963428,
0.1435023993253708,
-0.25002944469451904,
0.12040587514638901,
-0.22043456137180328,
0.14736151695251465,
0.3965647518634796,
0.12700994312763214,
-0.12728583812713623,
-0.19514448940753937,
0.03774420544505119,
0.08758530765771866,
0.32572367787361145,
-0.41195550560951233,
-0.06754524260759354,
-0.0734538659453392,
-0.00520607503131032,
-0.18028461933135986,
0.09860336780548096,
-0.05557971075177193,
0.0971229299902916,
-0.3996107280254364,
0.33282431960105896,
0.2897825241088867,
-0.0790662169456482,
-0.24312594532966614,
0.0886346697807312,
0.21581262350082397,
-0.33705565333366394,
-0.0034609611611813307,
-0.04899057745933533,
-0.2919398546218872,
-0.026176292449235916,
0.33071011304855347,
0.10981899499893188,
-0.0008769872365519404,
-0.021766064688563347,
0.02802499197423458,
-0.054845232516527176,
-0.09253321588039398,
-0.04392470419406891,
-0.07322972267866135,
0.020921776071190834,
-0.051166389137506485,
0.41933107376098633,
0.007607900537550449,
-0.144631028175354,
0.4017487168312073,
-0.25366106629371643,
-0.048924800008535385,
0.35013547539711,
0.06369376927614212,
-0.09587976336479187,
-0.1087077260017395,
-0.349889874458313,
-0.13988769054412842,
-0.42933720350265503,
0.39106279611587524,
0.08475610613822937,
0.041931621730327606,
0.0926312729716301,
0.4331050515174866,
-0.026085056364536285,
0.3013545274734497,
-0.031216595321893692,
-0.08480541408061981,
-0.2977057099342346,
0.3645738363265991,
-0.05611651390790939,
-0.4676561653614044,
0.011941715143620968,
0.0828355997800827,
0.35919055342674255,
0.16382671892642975,
-0.42524710297584534,
0.3267478942871094,
-0.15090735256671906,
0.16282014548778534,
0.0011052140034735203,
-0.024227632209658623,
0.06095466762781143,
-0.0872274860739708,
-0.021823471412062645,
0.036430519074201584,
-0.24171596765518188,
-0.01417996920645237,
-0.032044410705566406,
0.1475837230682373,
0.05136847868561745,
0.4584294855594635,
-0.03719279542565346,
0.6513357758522034,
0.08746417611837387,
-0.08823138475418091,
0.4855556786060333,
-0.30823996663093567,
0.38187792897224426,
-0.20967096090316772,
-0.373745322227478,
-0.08557498455047607,
-0.3519817292690277,
-0.19244645535945892,
0.26774877309799194,
-0.03358382359147072,
-0.033414993435144424,
-0.12577596306800842,
0.003517948789522052,
-0.4046858549118042,
-0.03770316392183304,
0.18363207578659058,
0.030697034671902657,
-0.014829985797405243,
-0.10059560835361481,
-0.0133008798584342,
-0.011645855382084846,
-0.23736286163330078,
-0.19425863027572632,
0.27396413683891296,
-0.15134243667125702,
0.06338711082935333,
-0.2242484986782074,
-0.06158057227730751,
-0.3029373586177826,
0.3292049765586853,
-0.013623470440506935,
0.31028637290000916,
0.010614469647407532,
-0.017695080488920212,
0.09729672223329544,
-0.12522217631340027,
0.7449791431427002,
0.18928571045398712,
-0.15507036447525024,
0.12782905995845795,
-0.02411402203142643,
-0.44158339500427246,
-0.12176128476858139,
0.19063137471675873,
0.3073364794254303,
0.0744616687297821,
0.3548656702041626,
-0.07032588869333267,
-0.009693858213722706,
-0.144343301653862,
0.3546774685382843,
0.04325278475880623,
-0.3951282203197479,
-0.5194916725158691,
-0.23497912287712097,
-0.3830534815788269,
-0.21213534474372864,
-0.08986669778823853,
0.28827884793281555,
-0.3244076371192932,
-0.14238668978214264,
0.11836138367652893,
-0.29905372858047485,
0.06015709787607193,
0.1533813178539276,
0.29738959670066833,
-0.11291433125734329,
0.1448960304260254,
0.04683511704206467,
0.069804847240448,
0.3769119679927826,
0.7987183332443237,
-0.07857611030340195,
-0.6220773458480835,
0.08484339714050293,
-0.20502661168575287,
0.38534846901893616,
0.047819897532463074,
-0.20320534706115723,
0.12898707389831543,
0.09073479473590851,
0.06203382462263107,
0.037948235869407654,
0.014437259174883366,
0.3036864995956421,
0.04965538904070854,
-0.3454543650150299,
-0.5439224243164062,
0.48741868138313293,
-0.1259079873561859,
0.21025902032852173,
0.30208030343055725,
-0.2120000571012497,
-0.10998117923736572,
0.15552282333374023,
-0.33462491631507874,
0.6592137813568115,
-0.42182981967926025,
0.1938304603099823,
0.30733662843704224,
0.05633584409952164,
0.2584291994571686,
-0.4451972246170044,
0.1323075145483017,
-0.39196813106536865,
-0.21090373396873474,
-0.10431220382452011,
-0.07120317965745926,
0.23938605189323425,
0.43218994140625,
-0.12124570459127426,
0.31186407804489136,
-0.07414999604225159,
0.33255627751350403,
0.11313419044017792,
0.243825301527977,
-0.1005159243941307,
-0.08646856248378754,
-0.30102118849754333,
0.01042383722960949,
-0.1430809646844864,
-0.034951888024806976,
0.028959080576896667,
0.0544644333422184,
-0.180567666888237,
-0.20164556801319122,
-0.24611222743988037,
0.22002477943897247,
-0.2911674380302429,
0.11540484428405762,
-0.11095461994409561,
-0.46866485476493835,
0.1963638812303543,
0.23806707561016083,
-0.2087021917104721,
-0.08517897129058838,
-0.12408510595560074,
0.15505379438400269,
0.1596345156431198,
-0.04017554968595505,
-0.2083745002746582,
-0.053695764392614365,
-0.015885639935731888,
0.07612629234790802,
-0.2351236790418625,
0.15455135703086853,
-0.12227892875671387,
-0.09567457437515259,
0.2780734598636627,
0.23765769600868225,
-0.08480718731880188,
-0.5452091693878174,
-0.532619297504425,
-0.42841580510139465,
0.07598097622394562,
-0.19573217630386353,
0.06519818305969238,
-0.04207875207066536,
0.09834135323762894,
-0.16163481771945953,
0.18593527376651764,
-0.4688694179058075,
-0.10202683508396149,
0.39181265234947205,
-0.11168676614761353,
0.0939541757106781,
0.5907297730445862,
0.21935012936592102,
-0.016892874613404274,
-0.14115259051322937,
0.06424059718847275,
0.3081054985523224,
-0.35318848490715027,
0.11706629395484924,
0.1141490787267685,
0.31594985723495483,
0.13925305008888245,
0.29174545407295227,
0.15658053755760193,
-0.07767266780138016,
0.07445463538169861,
-0.5115906596183777,
-0.32496926188468933,
-0.016528883948922157,
-0.0015315862838178873,
0.2479579895734787,
0.16721919178962708,
0.0818668007850647,
0.17267778515815735,
0.2032967358827591,
-0.1562303602695465,
0.1004619300365448,
0.10592912137508392,
-0.0869574248790741,
0.21063292026519775,
0.14201612770557404,
-0.1338723599910736,
-0.10381940007209778,
0.09349783509969711,
0.17764000594615936,
-0.05344485491514206,
-0.18875108659267426,
-0.07985583692789078,
0.15010018646717072,
0.09836076945066452,
0.02328583598136902,
-0.20344536006450653,
-0.25268879532814026,
-0.14970612525939941,
-0.19280564785003662,
0.06640884280204773,
0.02978229708969593,
-0.09811203181743622,
0.0717599168419838,
-0.29876530170440674,
-0.08465413749217987,
-0.5091866254806519,
0.0271220114082098,
-0.5075392723083496,
0.22313232719898224,
0.299269437789917,
0.04858221858739853,
0.12175736576318741,
0.2004556804895401,
-0.1724262535572052,
-0.031158387660980225,
0.15162667632102966,
-0.13661924004554749,
0.3009468615055084,
-0.40147584676742554,
0.20350652933120728,
-0.051065169274806976,
0.3403376042842865,
0.48486098647117615,
-0.20764142274856567,
0.21971096098423004,
0.03758656233549118,
0.1341150999069214,
-0.3825283646583557,
0.27547669410705566,
0.11723203957080841,
-0.06162978336215019,
-0.02748439833521843,
0.16967540979385376,
0.19921153783798218,
-0.20830745995044708,
-0.0957765206694603,
0.006910542957484722,
0.47598904371261597,
-0.00782269798219204,
-0.03395090997219086,
0.4135631322860718,
0.0027142611797899008,
0.17896944284439087,
0.24033525586128235,
0.13563746213912964,
0.01962045393884182,
0.7002615928649902,
-0.2602291703224182,
-0.003965036943554878,
-0.23526832461357117,
0.301481693983078,
-0.32787004113197327,
-0.7641029357910156,
0.16166482865810394,
0.23555037379264832,
-0.353310227394104,
-0.16765117645263672,
0.12589789927005768,
0.6017507314682007,
-0.02337493561208248,
0.011493019759654999,
-0.11459319293498993,
-0.04483534395694733,
0.014054806903004646,
0.048389654606580734,
-0.06621383130550385,
-0.2536705434322357,
-0.07082367688417435,
0.18568316102027893,
-0.05955559387803078,
0.01455992553383112,
0.27498161792755127,
0.1876642405986786,
-0.14948338270187378,
-0.4457591474056244,
0.06577521562576294,
0.1728488802909851,
0.06654299050569534,
-0.2748386561870575,
0.36661168932914734,
0.2653484344482422,
-0.08599161356687546,
0.18050527572631836,
-0.041344936937093735,
0.6402475833892822,
0.504192054271698,
0.09241160750389099,
-0.061740633100271225,
-0.12157168239355087,
-0.1139908879995346,
-0.17941829562187195,
0.17781689763069153,
0.3488177955150604,
0.42126908898353577,
0.1485438197851181,
0.11359865218400955,
-0.04018512740731239,
0.31608882546424866,
0.20678871870040894,
0.09960091859102249,
-0.5459765791893005,
-0.11891994625329971,
-0.20831166207790375,
-0.2577386796474457,
-0.22663293778896332,
0.024151301011443138,
-0.28905969858169556,
0.020943105220794678,
0.4277471601963043,
0.07391539216041565,
0.2772267460823059,
-0.02682262286543846,
0.03456752374768257,
0.074334055185318,
0.31421977281570435,
0.23977594077587128,
0.4022899866104126,
-0.4218083918094635,
-0.03541852906346321,
-0.7509752511978149,
0.11652783304452896,
-0.3764895498752594,
0.009592805057764053,
-0.03185893967747688,
0.1585380733013153,
0.13774138689041138,
0.08386081457138062,
0.15917234122753143,
0.2994239330291748,
0.11672339588403702,
0.22207777202129364,
-0.056184589862823486,
-0.1846201866865158,
-0.3380703628063202,
0.026485688984394073,
-0.1750924289226532,
-0.46551379561424255,
0.22136037051677704,
-0.1279323846101761,
0.009210983291268349,
-0.22518587112426758,
0.22398854792118073,
0.2559671700000763,
-0.005987231619656086,
0.47772902250289917,
-0.11201148480176926,
0.6255967617034912,
-0.08501806110143661,
0.3190011978149414,
-0.3009389042854309,
-0.08018997311592102,
-0.1928057223558426,
0.5200992822647095,
0.20615030825138092,
0.27139976620674133,
-0.17799293994903564,
-0.1079161986708641,
-0.21530449390411377,
0.1574099063873291,
-0.006548059172928333,
-0.07054726779460907,
0.06672760099172592,
-0.15106044709682465,
-0.0018240452045574784,
-0.05849021300673485,
0.152231365442276,
0.09204785525798798,
-0.2229386419057846,
-0.0781729519367218,
-0.17455333471298218,
-0.18018513917922974,
0.18108227849006653,
-0.40432897210121155,
-0.34110361337661743,
0.14871783554553986,
0.12612628936767578,
0.1018664687871933,
0.13969221711158752,
-0.45242124795913696,
0.1217893585562706,
0.4244746267795563,
-0.12801693379878998,
-0.417426198720932,
0.13403181731700897,
-0.21161890029907227,
0.10057053714990616,
-0.12185259908437729,
0.47650185227394104,
0.14110933244228363,
-0.3705090880393982,
-0.1615714728832245,
-0.3583211898803711
] |
https://github.com/huggingface/datasets/issues/835 | Wikipedia postprocessing | Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect.
As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool | Hi, thanks for this library!
Running this code:
```py
import datasets
wikipedia = datasets.load_dataset("wikipedia", "20200501.de")
print(wikipedia['train']['text'][0])
```
I get:
```
mini|Ricardo Flores Magón
mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930.
Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World.
Politische Biografie
Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde.
mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917
[...]
```
so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup?
Apologies if this has been asked before. | 38 | Wikipedia postprocessing
Hi, thanks for this library!
Running this code:
```py
import datasets
wikipedia = datasets.load_dataset("wikipedia", "20200501.de")
print(wikipedia['train']['text'][0])
```
I get:
```
mini|Ricardo Flores Magón
mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930.
Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World.
Politische Biografie
Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde.
mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917
[...]
```
so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup?
Apologies if this has been asked before.
Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect.
As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool | [
-0.037630122154951096,
0.11600078642368317,
-0.1909409910440445,
0.4500380754470825,
0.29546478390693665,
-0.2197374403476715,
0.3712627589702606,
0.2625179886817932,
-0.002885247115045786,
0.0670771449804306,
0.16373232007026672,
0.36848798394203186,
0.04031369462609291,
-0.06343391537666321,
-0.052520669996738434,
-0.2800579071044922,
0.001012339605949819,
0.10886950045824051,
-0.2758774161338806,
-0.21415318548679352,
-0.2710892856121063,
0.17248263955116272,
-0.2704938054084778,
0.19909538328647614,
-0.3585418164730072,
0.08350023627281189,
0.03802802413702011,
-0.16642917692661285,
-0.13402751088142395,
0.05899086967110634,
-0.1230926588177681,
-0.011390936560928822,
-0.2323267161846161,
0.5959071516990662,
-0.00010385645146016032,
0.09380181133747101,
0.2659807801246643,
-0.1483355462551117,
0.16510042548179626,
-0.2740632891654968,
0.03815886750817299,
0.132096529006958,
-0.018274445086717606,
-0.4883696138858795,
-0.1506609320640564,
-0.09731412678956985,
-0.10264675319194794,
-0.008019796572625637,
0.16422882676124573,
0.10896564275026321,
0.277966171503067,
-0.26083022356033325,
0.09904488921165466,
-0.08155327290296555,
0.4071272611618042,
-0.039158981293439865,
0.0021230163984000683,
-0.056793615221977234,
-0.10487605631351471,
0.07401461154222488,
0.08532708138227463,
0.45334360003471375,
-0.06691297143697739,
-0.15270161628723145,
-0.03905962035059929,
-0.08014070987701416,
0.11496245861053467,
-0.2299121916294098,
0.3598323166370392,
0.39708420634269714,
0.48234301805496216,
-0.2370188981294632,
-0.0033177388831973076,
0.134933739900589,
-0.05627890303730965,
-0.06274843215942383,
0.13822130858898163,
0.24851703643798828,
-0.24639923870563507,
0.19988267123699188,
0.10861283540725708,
-0.04250241816043854,
-0.15706463158130646,
0.3849436342716217,
-0.34866634011268616,
0.7615576982498169,
-0.1470624953508377,
0.0890359878540039,
-0.07138384133577347,
-0.0618579275906086,
-0.2655576467514038,
0.0647554025053978,
0.4067403972148895,
0.11511390656232834,
0.22935794293880463,
0.0623621940612793,
0.09520091116428375,
-0.18791890144348145,
-0.15811043977737427,
-0.22979603707790375,
-0.30737295746803284,
-0.030552299693226814,
-0.0009036013507284224,
0.03129119426012039,
0.09517061710357666,
-0.06777668744325638,
-0.18822278082370758,
0.14485624432563782,
0.12710219621658325,
0.19561690092086792,
-0.3205268681049347,
0.13410623371601105,
-0.0726407915353775,
-0.05885690823197365,
-0.010966443456709385,
0.04939137026667595,
0.18807978928089142,
-0.15100538730621338,
-0.050171270966529846,
0.1197860985994339,
-0.4061349034309387,
-0.13290901482105255,
-0.26250019669532776,
0.3644145429134369,
-0.3537258803844452,
0.3217248022556305,
0.13394437730312347,
-0.04107161611318588,
0.0427071675658226,
0.2019064873456955,
-0.3462703227996826,
0.3184954822063446,
-0.2574845254421234,
0.02149532362818718,
-0.08061715960502625,
-0.11439207941293716,
0.32686251401901245,
0.018394973129034042,
-0.05530934780836105,
-0.3175843060016632,
-0.09002052992582321,
-0.4657151997089386,
0.3773738741874695,
0.11645574122667313,
-0.13730987906455994,
0.08536828309297562,
0.18213996291160583,
-0.42036381363868713,
-0.061105698347091675,
0.0739959329366684,
-0.011776803992688656,
-0.043092500418424606,
-0.1845545619726181,
0.2914005517959595,
0.12533830106258392,
0.11421900242567062,
0.23240897059440613,
0.3484155535697937,
0.3461153209209442,
0.1279001533985138,
0.20486882328987122,
0.07987711578607559,
-0.29362982511520386,
-0.1988721489906311,
0.3602201044559479,
0.13983799517154694,
-0.48229172825813293,
-0.12393664568662643,
0.154209166765213,
0.11740444600582123,
0.4012047052383423,
0.09025813639163971,
-0.030721837654709816,
0.5387798547744751,
-0.05755629390478134,
0.25036346912384033,
0.06930845975875854,
-0.13907678425312042,
0.017772508785128593,
-0.00949763972312212,
-0.005656478926539421,
-0.033023618161678314,
0.20786219835281372,
-0.051377397030591965,
0.19356980919837952,
0.21203534305095673,
0.523993730545044,
0.07951218634843826,
0.24284110963344574,
0.186505526304245,
-0.17700304090976715,
-0.16952675580978394,
0.19126562774181366,
-0.013138768263161182,
0.17840155959129333,
-0.086769238114357,
-0.06578114628791809,
0.27855873107910156,
0.39170411229133606,
-0.01770748756825924,
0.03367975726723671,
0.274884432554245,
-0.15719763934612274,
-0.04024040326476097,
0.15080669522285461,
-0.18684954941272736,
0.25863155722618103,
-0.0947318747639656,
0.30097660422325134,
0.37398096919059753,
-0.27934327721595764,
-0.32150623202323914,
-0.44204798340797424,
-0.030616523697972298,
-0.08593805879354477,
-0.12592065334320068,
0.36219725012779236,
-0.007593980524688959,
-0.14336372911930084,
0.16673214733600616,
0.14752784371376038,
-0.04814649373292923,
-0.4452185332775116,
-0.062342315912246704,
-0.3474649488925934,
0.20080053806304932,
-0.28425437211990356,
-0.07039567828178406,
-0.17806518077850342,
0.37388530373573303,
0.08640456199645996,
0.0987282544374466,
0.03668930381536484,
0.06813991069793701,
0.16142642498016357,
0.19514426589012146,
0.08720210194587708,
0.1368028074502945,
-0.13544467091560364,
-0.3788893520832062,
0.10416451096534729,
0.44651269912719727,
0.21201005578041077,
-0.08768832683563232,
-0.2107890099287033,
0.4056069254875183,
0.20712484419345856,
-0.024010468274354935,
0.10081901401281357,
-0.21865221858024597,
0.1274811178445816,
0.06698694825172424,
-0.1606176495552063,
-0.3407883644104004,
-0.022819524630904198,
0.35353052616119385,
-0.12065966427326202,
0.23332777619361877,
-0.3192090094089508,
0.07477867603302002,
0.538690984249115,
0.13435174524784088,
0.4133017957210541,
-0.09017005562782288,
-0.5303303599357605,
-0.1579623818397522,
-0.016101336106657982,
0.17995858192443848,
-0.10504069924354553,
0.18753866851329803,
0.17148195207118988,
0.07865332812070847,
-0.01890913024544716,
-0.14085069298744202,
0.35546445846557617,
0.29649633169174194,
0.4085935950279236,
0.27114546298980713,
0.03597685694694519,
0.1682438999414444,
-0.25185534358024597,
-0.034159161150455475,
-0.20957522094249725,
0.3795396089553833,
-0.2574422061443329,
0.12055442482233047,
-0.12076257914304733,
-0.07120140641927719,
-0.08849272131919861,
-0.2095501571893692,
-0.21828743815422058,
-0.13730062544345856,
-0.04135008528828621,
-0.12369716167449951,
0.042756740003824234,
0.22434236109256744,
-0.12039435654878616,
-0.04271357133984566,
0.2501511871814728,
-0.1579011082649231,
-0.026358190923929214,
-0.27799034118652344,
-0.0228659026324749,
0.1925876885652542,
-0.19251710176467896,
0.1851533204317093,
0.11409135162830353,
-0.11334579437971115,
-0.33167925477027893,
0.024759743362665176,
-0.45910874009132385,
0.30765295028686523,
-0.2841240167617798,
0.017808761447668076,
0.13158170878887177,
0.2630501985549927,
-0.186281219124794,
-0.2981848418712616,
0.12607118487358093,
-0.10227564722299576,
-0.07185088098049164,
-0.07292018085718155,
-0.21297354996204376,
0.11517424881458282,
-0.05494987219572067,
-0.6069827079772949,
-0.18439881503582,
-0.252226859331131,
0.17534230649471283,
0.41333913803100586,
0.17656870186328888,
0.4491932690143585,
0.28992441296577454,
0.14994105696678162,
0.2895771861076355,
0.18583206832408905,
-0.36908119916915894,
-0.08209465444087982,
0.38195639848709106,
0.18319274485111237,
-0.10031121969223022,
-0.04037604108452797,
-0.12143019586801529,
-0.15551048517227173,
0.03503177687525749,
-0.3284410238265991,
-0.07801371812820435,
0.1545449048280716,
0.009956748224794865,
0.06034006178379059,
0.0701201781630516,
0.338159441947937,
0.05996450409293175,
-0.23738069832324982,
-0.07418372482061386,
-0.05430281534790993,
-0.06725086271762848,
-0.18042081594467163,
0.12280255556106567,
-0.22155103087425232,
0.1971711963415146,
0.07453759759664536,
0.5646960139274597,
-0.02190469391644001,
-0.09455551207065582,
-0.13015137612819672,
-0.10984615236520767,
0.04678714647889137,
0.014261286705732346,
-0.172540083527565,
0.11838585883378983,
-0.06572194397449493,
-0.11288408190011978,
0.2858285903930664,
0.02189810387790203,
-0.3113710284233093,
-0.08233910799026489,
0.24344635009765625,
-0.5951212644577026,
-0.23375694453716278,
0.07388558983802795,
0.20721358060836792,
0.3250173032283783,
-0.22424452006816864,
0.018139997497200966,
-0.1529427170753479,
-0.19852036237716675,
-0.07430882751941681,
0.2720817029476166,
-0.12949180603027344,
-0.18008758127689362,
-0.003994007594883442,
0.04553639888763428,
-0.3112500011920929,
0.08975981175899506,
0.10630252212285995,
-0.2374594509601593,
0.01940092444419861,
-0.32812342047691345,
0.1842595785856247,
-0.1281687468290329,
0.20436209440231323,
-0.16404689848423004,
-0.10164511948823929,
0.23064035177230835,
0.026648325845599174,
-0.21656644344329834,
-0.017609762027859688,
-0.36301788687705994,
0.1319015771150589,
0.5669854879379272,
0.4043782949447632,
-0.4217730760574341,
-0.15305164456367493,
0.5155638456344604,
-0.09205835312604904,
-0.03687015548348427,
-0.11384663730859756,
-0.21316055953502655,
-0.10642634332180023,
-0.2825678884983063,
0.2626234292984009,
0.03995034843683243,
0.12825460731983185,
-0.00027042810688726604,
-0.14414750039577484,
0.30492499470710754,
0.3409055769443512,
0.10481471568346024,
0.1139116883277893,
0.16598905622959137,
0.15086326003074646,
-0.2560136020183563,
-0.2157396525144577,
0.08270417898893356,
-0.316841185092926,
0.12270548194646835,
0.09640847146511078,
-0.0023285197094082832,
-0.09338799864053726,
-0.45829296112060547,
0.14201506972312927,
0.2253698855638504,
-0.19541765749454498,
0.20622393488883972,
0.12366360425949097,
0.04877641424536705,
0.011187920346856117,
0.10063651204109192,
0.35777774453163147,
-0.1785045564174652,
-0.016064897179603577,
-0.38246220350265503,
0.3698532283306122,
-0.04427865520119667,
-0.11382146179676056,
0.007945877499878407,
-0.31915709376335144,
-0.2880118787288666,
0.23508910834789276,
-0.02337074466049671,
1.090063452720642,
0.1916280835866928,
0.06018035486340523,
0.07984784990549088,
0.335788756608963,
0.4070531725883484,
0.050385262817144394,
-0.03573254868388176,
-0.42939943075180054,
0.18309181928634644,
-0.10922134667634964,
0.18704646825790405,
-0.03231192007660866,
-0.006355459336191416,
-0.32011717557907104,
-0.028861021623015404,
-0.22330692410469055,
0.04163703694939613,
-0.002293618628755212,
-0.2610441744327545,
0.2794053852558136,
-0.07144695520401001,
-0.19406194984912872,
0.18435174226760864,
-0.008548358455300331,
0.013244115747511387,
0.008396786637604237,
0.11594550311565399,
-0.24183781445026398,
-0.14553558826446533,
-0.39455997943878174,
-0.05654475837945938,
-0.3439757525920868,
0.2061207890510559,
0.17367281019687653,
-0.40402624011039734,
-0.12350676953792572,
0.03246869519352913,
0.12901301681995392,
0.3851499557495117,
-0.04019225761294365,
0.12452670931816101,
-0.01499531976878643,
-0.11534568667411804,
0.1051425039768219,
0.1275208294391632,
0.30209070444107056,
-0.059636980295181274,
-0.3325282633304596,
0.04742848873138428,
-0.0684780701994896,
-0.2840803265571594,
-0.11407753080129623,
-0.12027619034051895,
0.18802066147327423,
-0.07758082449436188,
-0.09440245479345322,
0.2715238630771637,
-0.16598904132843018,
-0.3825521171092987,
0.22036613523960114,
-0.1223529577255249,
-0.21464380621910095,
0.11289454251527786,
0.24874432384967804,
-0.4793303310871124,
0.07014096528291702,
0.26789391040802,
0.39935827255249023,
0.26829904317855835,
0.3634389042854309,
0.44024837017059326,
-0.31783637404441833,
-0.41937077045440674,
-0.3453827500343323,
-0.34438878297805786,
-0.3034398853778839,
-0.22730064392089844,
0.1275659054517746,
-0.044207509607076645,
0.03227444738149643,
0.25281140208244324,
0.12679432332515717,
-0.0456002838909626,
-0.1809593141078949,
-0.4442613422870636,
-0.13788878917694092,
0.17699943482875824,
-0.007820935919880867,
0.10693798214197159,
0.26016882061958313,
-0.00035171463969163597,
0.131475031375885,
0.07180807739496231,
-0.45963630080223083,
0.09546121954917908,
-0.40109869837760925,
0.29111915826797485,
0.2498662918806076,
-0.24247650802135468,
-0.19119416177272797,
0.00791311077773571,
0.3404126763343811,
-0.08433594554662704,
-0.12272368371486664,
-0.4186244010925293,
-0.12758159637451172,
0.07919879257678986,
0.039014216512441635,
-0.2021331936120987,
0.14408861100673676,
0.13279443979263306,
-0.23549401760101318,
-0.1377093344926834,
-0.09160967916250229,
0.1327192336320877,
0.15286307036876678,
0.26103687286376953,
-0.057755157351493835,
0.36097827553749084,
-0.2998995780944824,
-0.2252095341682434,
0.045332036912441254,
0.2198771983385086,
0.08759158849716187,
0.13924112915992737,
0.11419563740491867,
-0.06573985517024994,
-0.3645971119403839,
0.08501775562763214,
-0.020392445847392082,
0.3905951678752899,
0.35121282935142517,
-0.050347864627838135,
-0.04277624189853668,
0.3029697835445404,
0.23771819472312927,
0.24427615106105804,
-0.20005923509597778,
-0.09554287046194077,
-0.04121517017483711,
0.34433338046073914,
-0.3381032347679138,
0.2190656214952469,
0.4438178241252899,
-0.279685914516449,
0.15342432260513306,
0.3051406741142273,
0.11399293690919876,
0.06466706097126007,
0.17229576408863068,
0.12307573109865189,
-0.028941331431269646,
-0.3710556626319885,
0.14935649931430817,
0.08027757704257965,
0.14465782046318054,
0.08206882327795029,
0.008329955860972404,
0.32752352952957153,
0.19212587177753448,
0.41570910811424255,
0.5534648895263672,
0.04582252353429794,
0.04852282628417015,
0.09340760111808777,
-0.2124033421278,
-0.1737225502729416,
0.3782322108745575,
0.2508522868156433,
-0.3872354328632355,
-0.04257650673389435,
0.06901873648166656,
-0.09577645361423492,
0.19581785798072815,
0.2206192910671234,
-0.12589944899082184,
0.20727002620697021,
-0.10612660646438599,
-0.2802642583847046,
-0.2669958770275116,
-0.2162385731935501,
-0.12545683979988098,
-0.22407598793506622,
0.19852705299854279,
0.0819859653711319,
0.04285922273993492,
0.0007932700682431459,
-0.16527053713798523,
-0.3171617388725281,
0.1963718682527542,
-0.3757815659046173,
0.37764686346054077,
-0.24757744371891022,
0.10262933373451233,
-0.18021853268146515,
0.26402443647384644,
-0.3552977740764618,
0.4572232961654663,
0.18672382831573486,
-0.03975549340248108,
-0.35679692029953003,
-0.13453520834445953,
-0.18196499347686768,
-0.13607844710350037,
-0.10036850720643997,
-0.05086924135684967,
0.4067133963108063,
0.004941348452121019,
0.16460777819156647,
0.29868000745773315,
-0.3479202687740326,
0.035278212279081345,
0.35359275341033936,
0.033141180872917175,
0.08747558295726776,
-0.08712781965732574,
0.1985788345336914,
-0.15335245430469513,
-0.18705813586711884,
0.0449053980410099,
-0.3499831259250641,
0.24257005751132965,
0.31850379705429077,
0.1421520859003067,
0.20898741483688354,
-0.17968609929084778,
0.1499054729938507,
0.08747541904449463,
0.1393529623746872,
0.45062410831451416,
0.14688649773597717,
0.016089702025055885,
-0.1277969628572464,
-0.2883234918117523,
0.34579649567604065,
0.00650592427700758,
0.038130100816488266,
0.00906867440789938,
0.3338782489299774,
0.2970460057258606,
0.10663917660713196,
0.02006121538579464,
-0.25539425015449524,
0.07143965363502502,
0.05637923628091812,
-0.17831481993198395,
0.08413255959749222,
-0.017306087538599968,
-0.13602766394615173,
-0.04983917996287346,
-0.17776371538639069,
-0.14651867747306824,
-0.28322717547416687,
0.30316776037216187,
-0.062472254037857056,
-0.3920106291770935,
0.024140216410160065,
0.15905168652534485,
0.38412103056907654,
-0.13182808458805084,
0.17542755603790283,
-0.3827267289161682,
0.08205311000347137,
-0.0026537603698670864,
-0.07959192991256714,
0.01052383054047823,
0.543672502040863,
0.11639851331710815,
0.11790014058351517,
0.17437432706356049,
-0.026804447174072266,
-0.014670834876596928,
0.2737034857273102,
-0.039673466235399246,
-0.34054115414619446,
-0.1938304603099823,
-0.059483956545591354,
0.06999407708644867,
0.06808122247457504,
-0.26320555806159973,
0.12692640721797943,
-0.15162263810634613,
0.03319912776350975,
-0.20770350098609924,
-0.5855806469917297,
0.21620826423168182,
-0.0780525654554367,
-0.5391713380813599,
-0.39369916915893555,
0.16472651064395905,
0.06639602035284042,
0.49913790822029114,
-0.43313077092170715,
0.18305161595344543,
0.36605754494667053,
-0.1315494030714035,
-0.3380318582057953,
-0.05781425163149834,
-0.13943126797676086,
0.1607728898525238,
-0.10687252134084702,
0.05115051940083504,
-0.20778489112854004,
-0.1916949450969696,
-0.2590874433517456,
-0.3279494047164917
] |
https://github.com/huggingface/datasets/issues/834 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset | Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl? | ## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 48 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset
## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl? | [
-0.20528936386108398,
0.31998881697654724,
0.07221487909555435,
0.5395575761795044,
0.13003748655319214,
0.21938076615333557,
0.12780003249645233,
-0.18642424046993256,
-0.028953509405255318,
-0.06992631405591965,
0.2743758261203766,
0.000888182723429054,
-0.4298545718193054,
0.2057962417602539,
0.30813416838645935,
-0.2922172546386719,
0.005448991898447275,
-0.20331336557865143,
0.020582327619194984,
-0.18204903602600098,
-0.16739103198051453,
0.4652561843395233,
0.11991468816995621,
0.05033661797642708,
-0.46859949827194214,
-0.026656458154320717,
-0.22141903638839722,
0.43151602149009705,
-0.09263443201780319,
-0.19537943601608276,
-0.03455672785639763,
0.03964442014694214,
0.1316579282283783,
0.43540218472480774,
-0.00012477945710998029,
-0.1571822315454483,
0.26069313287734985,
-0.20819254219532013,
-0.09278512001037598,
-0.22355346381664276,
-0.33000484108924866,
-0.19960623979568481,
-0.1916082501411438,
-0.12804386019706726,
0.17592351138591766,
0.12831048667430878,
-0.0804148018360138,
0.1652434766292572,
-0.290243536233902,
0.042632997035980225,
0.11849554628133774,
-0.05469227954745293,
0.1770835965871811,
-0.02812420390546322,
0.33768123388290405,
-0.23122330009937286,
-0.027202008292078972,
0.5546999573707581,
-0.0733494684100151,
0.11992616951465607,
-0.12266872078180313,
0.414436936378479,
-0.1018921285867691,
-0.18968820571899414,
0.008397345431149006,
0.2109396606683731,
0.0017842663219198585,
-0.07744285464286804,
0.13753411173820496,
0.281803697347641,
0.8164932131767273,
-0.2318718135356903,
-0.06239309534430504,
-0.11281077563762665,
-0.15599177777767181,
-0.17653757333755493,
0.4124317467212677,
0.16128040850162506,
-0.02717653289437294,
0.05349507927894592,
0.053536150604486465,
-0.5035980939865112,
-0.13520585000514984,
0.22287611663341522,
-0.020496951416134834,
0.40111199021339417,
0.06534428149461746,
0.023537596687674522,
0.43624383211135864,
0.24807043373584747,
-0.18706464767456055,
-0.0965685173869133,
-0.3789021670818329,
0.15656355023384094,
0.018784791231155396,
-0.250907838344574,
0.02383863925933838,
0.2325570285320282,
0.11420745402574539,
-0.09795019775629044,
0.03921031206846237,
0.048120707273483276,
-0.09541772305965424,
0.0808630958199501,
0.3494338393211365,
0.23026670515537262,
-0.28534406423568726,
-0.032355137169361115,
0.2578541934490204,
-0.1746077984571457,
0.19032689929008484,
-0.024763820692896843,
-0.11244505643844604,
-0.15190771222114563,
-0.3518645763397217,
-0.15811669826507568,
-0.33664003014564514,
0.12243619561195374,
0.07587336748838425,
0.10926167666912079,
-0.22498519718647003,
-0.21286024153232574,
0.10060188174247742,
0.08717416226863861,
0.2883945107460022,
-0.2428627610206604,
-0.061218805611133575,
0.39983850717544556,
0.2928888499736786,
0.17778515815734863,
0.05843021348118782,
0.2694647014141083,
-0.08287031203508377,
0.20985887944698334,
-0.1889798790216446,
0.08467452228069305,
0.12403565645217896,
-0.08540800958871841,
-0.20841223001480103,
-0.1505700647830963,
0.010884529910981655,
0.06656648963689804,
-0.18338967859745026,
0.15589827299118042,
0.3799425959587097,
0.3868768811225891,
0.006977986544370651,
-0.6324939131736755,
-0.3096872866153717,
0.1332535594701767,
-0.17161110043525696,
-0.3060249090194702,
-0.27274981141090393,
-0.021411921828985214,
-0.20760007202625275,
-0.3338615596294403,
-0.28298014402389526,
0.5032008290290833,
0.09784005582332611,
-0.3781306743621826,
0.09740088135004044,
0.42587611079216003,
0.03819366171956062,
-0.17415882647037506,
-0.2004806399345398,
0.3255681097507477,
-0.2859550714492798,
0.04912092909216881,
-0.22338855266571045,
-0.006354831159114838,
0.36079177260398865,
0.23277494311332703,
-0.04935302957892418,
0.08604931831359863,
-0.2695145010948181,
0.49791020154953003,
0.2523215711116791,
-0.11209508031606674,
-0.14197835326194763,
0.15146960318088531,
-0.4574856460094452,
0.013493958860635757,
0.19281113147735596,
0.3532479703426361,
-0.07077891379594803,
-0.12763908505439758,
-0.12204357981681824,
0.255014568567276,
0.1740979701280594,
0.04411569982767105,
-0.3670467436313629,
-0.436099648475647,
0.2277001142501831,
0.12961167097091675,
0.2096010446548462,
-0.14167042076587677,
0.3847235143184662,
0.35072019696235657,
0.20133766531944275,
-0.2545938491821289,
0.14329193532466888,
0.13561968505382538,
0.20108714699745178,
0.04708367958664894,
-0.07009567320346832,
0.08785032480955124,
-0.4258348047733307,
0.03981113061308861,
0.4841703176498413,
0.4287416636943817,
0.2425023913383484,
-0.043710581958293915,
0.11106762290000916,
-0.06406288594007492,
-0.21433503925800323,
-0.17033405601978302,
-0.0034961868077516556,
0.39950791001319885,
-0.07881104201078415,
0.23764948546886444,
-0.07324201613664627,
-0.23411878943443298,
-0.2306235283613205,
-0.12148237228393555,
0.03819587081670761,
0.31707268953323364,
-0.11879312247037888,
0.07988979667425156,
-0.1165800616145134,
0.29724839329719543,
-0.2057970017194748,
-0.047299642115831375,
-0.034513961523771286,
0.16235074400901794,
-0.10370276123285294,
0.361639142036438,
0.6724395155906677,
0.714131236076355,
0.08225490897893906,
-0.2385074347257614,
0.3458836078643799,
-0.06271404027938843,
0.24497981369495392,
-0.1494482308626175,
-0.0729832872748375,
0.26595088839530945,
-0.00393989123404026,
0.06680125743150711,
0.07375668734312057,
0.23552468419075012,
0.293262243270874,
-0.019925236701965332,
-0.04405822604894638,
-0.33057814836502075,
0.3704816401004791,
0.2180638462305069,
-0.2417214959859848,
0.12675969302654266,
-0.2977871000766754,
0.007666161749511957,
0.4142892360687256,
-0.05028505250811577,
0.47854548692703247,
0.2185741662979126,
-0.30428823828697205,
-0.3060281574726105,
-0.02492419257760048,
0.610375165939331,
0.3237772583961487,
0.08085521310567856,
0.37841320037841797,
0.06172718480229378,
0.10762552171945572,
-0.18828698992729187,
0.36580872535705566,
0.08724811673164368,
-0.07825431227684021,
0.5172117352485657,
-0.10134294629096985,
-0.06577353179454803,
-0.2807047963142395,
0.12972168624401093,
0.032755181193351746,
0.20474568009376526,
-0.14998766779899597,
-0.021675636991858482,
-0.05121350660920143,
-0.11576582491397858,
-0.13551296293735504,
-0.7797607183456421,
-0.6879055500030518,
-0.32522571086883545,
0.14520327746868134,
-0.1766127198934555,
-0.10350392013788223,
0.02335171028971672,
0.1382455974817276,
0.19640815258026123,
-0.48097142577171326,
-0.39891317486763,
-0.08776894211769104,
-0.42597514390945435,
-0.12957388162612915,
-0.03611064329743385,
0.4199085831642151,
-0.03130520135164261,
0.2916492819786072,
0.019221443682909012,
0.1689298152923584,
-0.24392448365688324,
-0.49002835154533386,
0.3283202052116394,
-0.16851696372032166,
0.2541860342025757,
0.07567046582698822,
-0.11802428960800171,
0.08988939970731735,
-0.46927499771118164,
0.18696005642414093,
0.2557254433631897,
0.1016538143157959,
-0.04970360919833183,
0.004675400443375111,
-0.022975392639636993,
0.04500129073858261,
0.04119317606091499,
-0.2943651080131531,
-0.2600291669368744,
-0.08585753291845322,
0.08225913345813751,
0.10400456935167313,
-0.21546539664268494,
-0.040058981627225876,
0.28808480501174927,
0.06359130144119263,
-0.15827852487564087,
-0.38318657875061035,
-0.13782227039337158,
0.3207925856113434,
-0.11829275637865067,
-0.2465812712907791,
0.272031307220459,
-0.2453189641237259,
0.3434217870235443,
-0.08151663839817047,
-0.47440239787101746,
-0.2974781394004822,
0.14566348493099213,
-0.011608042754232883,
0.4878695011138916,
0.1211169958114624,
0.32668617367744446,
0.11659879982471466,
-0.013117427006363869,
-0.034004952758550644,
-0.28838834166526794,
0.10659198462963104,
0.36479389667510986,
0.28177642822265625,
0.13087309896945953,
0.33226051926612854,
0.19528265297412872,
0.6535813212394714,
-0.07460787147283554,
0.23401987552642822,
0.25764748454093933,
-0.2271137237548828,
0.3407440483570099,
-0.09390505403280258,
-0.1010734960436821,
-0.037745725363492966,
-0.12385116517543793,
-0.41583240032196045,
0.31408408284187317,
0.2167857140302658,
-0.5161980986595154,
-0.08977165818214417,
0.0016281857388094068,
-0.29283231496810913,
-0.29467496275901794,
0.2758502662181854,
0.09458919614553452,
0.024147167801856995,
-0.12342093884944916,
-0.24130834639072418,
-0.050390664488077164,
-0.2646072208881378,
0.11669927090406418,
0.8497214317321777,
-0.21439474821090698,
0.0782410204410553,
-0.37031394243240356,
-0.25125738978385925,
-0.1082792580127716,
0.17504069209098816,
0.25748878717422485,
-0.04865504056215286,
-0.34610515832901,
-0.11421224474906921,
0.15859922766685486,
-0.3126896321773529,
0.10288717597723007,
-0.5930874943733215,
-0.1834147572517395,
0.05850132927298546,
-0.1729307472705841,
0.4593808948993683,
0.21657073497772217,
0.034656960517168045,
-0.2776297330856323,
0.5621846914291382,
-0.2314658910036087,
-0.2311914712190628,
0.03517628088593483,
0.2557695508003235,
0.006830146536231041,
-0.22773101925849915,
0.1719498336315155,
-0.08798211812973022,
-0.4606231153011322,
-0.4878261387348175,
-0.20784927904605865,
-0.041936006397008896,
0.04940947890281677,
0.2344490885734558,
0.10141640156507492,
0.03817056864500046,
-0.14550386369228363,
0.029703808948397636,
-0.1796230971813202,
0.040442220866680145,
0.18856409192085266,
-0.23324421048164368,
0.249419704079628,
0.1618938446044922,
-0.015109192579984665,
0.21666476130485535,
0.11740642786026001,
0.38969892263412476,
0.17418459057807922,
-0.5150282979011536,
0.6288021206855774,
0.36091548204421997,
0.08631688356399536,
-0.07620503008365631,
0.10403846204280853,
-0.27893495559692383,
-0.3891700804233551,
0.0016888483660295606,
0.08448874205350876,
0.22167754173278809,
-0.22436369955539703,
-0.2750697731971741,
0.5395462512969971,
0.034562136977910995,
-0.2513056695461273,
0.14928819239139557,
0.2535792291164398,
-0.4851571023464203,
0.05595536530017853,
0.12287155538797379,
1.2584294080734253,
0.1731722503900528,
0.27151817083358765,
0.17338626086711884,
-0.10962049663066864,
0.08591079711914062,
0.05614179000258446,
0.19983084499835968,
-0.3550167679786682,
0.555221676826477,
-0.22700536251068115,
0.04510409012436867,
-0.18721505999565125,
-0.08584174513816833,
-0.1615121066570282,
-0.03764885663986206,
-0.048919692635536194,
0.09345154464244843,
-0.16448703408241272,
0.30353546142578125,
-0.24913057684898376,
-0.23791851103305817,
0.04875541478395462,
-0.017787648364901543,
0.23212087154388428,
0.2364140897989273,
-0.12328420579433441,
-0.40042778849601746,
-0.09267254918813705,
-0.32295656204223633,
-0.7480208873748779,
-0.14622615277767181,
0.016425980255007744,
-0.024724120274186134,
-0.4567168354988098,
-0.5324656367301941,
-0.10038204491138458,
0.33049333095550537,
-0.2378312051296234,
-0.13384200632572174,
-0.19630053639411926,
0.021886378526687622,
-0.5718810558319092,
-0.05439043045043945,
0.24092097580432892,
-0.002545856637880206,
0.14206574857234955,
-0.10236576199531555,
0.13030272722244263,
0.01926328055560589,
0.004667246714234352,
-0.47037437558174133,
-0.15944114327430725,
-0.18926726281642914,
0.03613416478037834,
0.24552923440933228,
-0.025801997631788254,
0.49703454971313477,
-0.19069607555866241,
-0.2556156814098358,
0.03353743627667427,
0.07218290120363235,
0.11860144138336182,
-0.01515172142535448,
-0.09993778169155121,
0.012991297990083694,
-0.16185098886489868,
0.26067915558815,
-0.07992517203092575,
-0.26777008175849915,
0.1365799605846405,
0.2739427983760834,
-0.2539980411529541,
-0.15616075694561005,
0.04968114197254181,
0.028919560834765434,
-0.298362135887146,
-0.10932782292366028,
0.11467471718788147,
-0.1720045506954193,
-0.1853494495153427,
0.2532091438770294,
0.3053186237812042,
0.009273199364542961,
-0.32138460874557495,
-0.41742241382598877,
-0.13865965604782104,
0.31391313672065735,
-0.13475173711776733,
0.37849369645118713,
-0.7157741785049438,
-0.31949034333229065,
0.2560019791126251,
0.07395745068788528,
-0.1883508563041687,
0.05776456370949745,
-0.1561155766248703,
-0.15096959471702576,
0.6616246700286865,
0.11794938147068024,
0.30817583203315735,
0.16881011426448822,
-0.061006881296634674,
-0.4879087507724762,
-0.15591548383235931,
0.0641435831785202,
-0.12426981329917908,
0.2141110897064209,
0.419116348028183,
-0.0905526727437973,
0.0314498208463192,
-0.38981324434280396,
-0.13372090458869934,
0.12040402740240097,
0.21081000566482544,
-0.1571483165025711,
-0.285866916179657,
0.01732305809855461,
-0.1569107323884964,
0.28818681836128235,
-0.19987276196479797,
0.07621792703866959,
0.11887895315885544,
0.5915833115577698,
0.15839190781116486,
-0.03141618147492409,
0.0030103796161711216,
-0.045666392892599106,
0.4624195396900177,
0.4269460439682007,
0.1892704963684082,
0.0728674978017807,
0.17127183079719543,
0.015587921254336834,
0.11977384984493256,
0.31511029601097107,
0.1932167410850525,
0.014500565826892853,
-0.13900688290596008,
-0.04339601472020149,
0.18499016761779785,
0.0005184432375244796,
0.029346339404582977,
-0.3166526257991791,
-0.23967081308364868,
-0.13440196216106415,
-0.06026478111743927,
0.22850877046585083,
0.4845854640007019,
0.04890149459242821,
-0.13279469311237335,
-0.17686550319194794,
0.5035766363143921,
-0.22421060502529144,
-0.10810350626707077,
0.11325343698263168,
-0.4795016944408417,
0.5232341885566711,
0.1773429811000824,
0.3323850631713867,
0.21910624206066132,
0.10330206900835037,
-0.1309676617383957,
0.05493093654513359,
0.38814055919647217,
0.01424430962651968,
-0.07087483257055283,
-0.19777214527130127,
0.05580113083124161,
0.2556621730327606,
0.3525899052619934,
-0.019886890426278114,
0.09490106254816055,
0.03652498871088028,
0.2033003568649292,
0.462101548910141,
-0.2480403184890747,
0.2013392597436905,
-0.039263974875211716,
-0.07659584283828735,
-0.22754375636577606,
-0.28059908747673035,
-0.3251708447933197,
0.4158678948879242,
-0.22216986119747162,
-0.18135453760623932,
0.055677857249975204,
-0.023571323603391647,
0.20052212476730347,
-0.13094764947891235,
0.2222488820552826,
-0.027143070474267006,
-0.3678203523159027,
-0.2760505974292755,
0.09574009478092194,
0.1604190468788147,
0.18757276237010956,
0.011954954825341702,
0.050594549626111984,
0.18830464780330658,
0.09126999229192734,
-0.07135633379220963,
-0.07081840932369232,
-0.28978079557418823,
0.18854232132434845,
-0.16393128037452698,
0.5140029788017273,
0.1508892923593521,
0.00025549839483574033,
0.12885771691799164,
-0.02401132881641388,
-0.08344479650259018,
0.17770430445671082,
0.36469584703445435,
-0.0815739557147026,
0.2900405824184418,
0.49895188212394714,
-0.006933631841093302,
0.061648812144994736,
-0.10755418241024017,
0.011959051713347435,
-0.299543172121048,
-0.18399783968925476,
0.40805697441101074,
-0.08617427945137024,
0.10353545844554901,
-0.01988667994737625,
-0.027610018849372864,
0.22685080766677856,
0.3466986119747162,
0.16516321897506714,
0.23255091905593872,
-0.1531083583831787,
-0.14601673185825348,
-0.5308954119682312,
-0.06768258661031723,
0.30161845684051514,
0.04270775988698006,
-0.19041739404201508,
0.14688116312026978,
0.2609978914260864,
0.37239333987236023,
0.10109641402959824,
0.2840651273727417,
-0.03580712527036667,
-0.03694973140954971,
0.006053308490663767,
0.298329621553421,
0.24341437220573425,
0.18280085921287537,
-0.27558282017707825,
0.012773103080689907,
-0.06518722325563431,
-0.14982055127620697,
-0.09016389399766922,
-0.2980971336364746,
0.14322149753570557,
-0.374891459941864,
0.16403023898601532,
0.3807445466518402,
-0.10492747277021408,
0.5162326097488403,
-0.22713875770568848,
0.060725852847099304,
-0.31344932317733765,
-0.06318788975477219,
-0.17612379789352417,
-0.149233877658844,
-0.02567337639629841,
0.08781909942626953,
-0.28927022218704224,
0.4012245237827301,
-0.1729554682970047,
-0.16986484825611115,
-0.08857917785644531,
0.5634939670562744,
-0.18659748136997223,
0.08590096235275269,
0.00045814673649147153,
0.02169765532016754,
0.4482544958591461,
0.23924362659454346,
0.16352321207523346,
0.045623380690813065,
-0.21020275354385376,
0.058891043066978455,
0.09383973479270935,
0.04580271244049072,
-0.04693379998207092,
0.01480581983923912,
0.1403074413537979,
0.3675571084022522,
0.1528906226158142,
-0.3563583791255951,
-0.09936496615409851,
0.20286503434181213,
0.28687983751296997,
-0.18863077461719513,
0.1483280211687088,
0.28387781977653503,
-0.3120300769805908,
0.027750995010137558,
-0.3410727083683014,
-0.05031329765915871,
-0.27969059348106384,
-0.19440284371376038,
-0.26099756360054016
] |
https://github.com/huggingface/datasets/issues/834 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset | Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem)
You can use it for example to load the French to English translation with:
```python
from datasets import load_dataset
wikilingua = load_dataset("gem", "wiki_lingua_french_fr")
```
Closed by https://github.com/huggingface/datasets/pull/1807 | ## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 42 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset
## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem)
You can use it for example to load the French to English translation with:
```python
from datasets import load_dataset
wikilingua = load_dataset("gem", "wiki_lingua_french_fr")
```
Closed by https://github.com/huggingface/datasets/pull/1807 | [
-0.2764139473438263,
0.002688318956643343,
-0.10010240972042084,
0.3107094466686249,
-0.11341528594493866,
0.14023438096046448,
0.010671926662325859,
0.2736698389053345,
-0.049723438918590546,
0.14254416525363922,
-0.06661218404769897,
0.2388453632593155,
0.03321676328778267,
0.3290540874004364,
0.10077754408121109,
-0.5720512270927429,
0.012426009401679039,
0.050639938563108444,
-0.18946918845176697,
-0.09385877102613449,
0.049656398594379425,
0.2917683720588684,
-0.15411369502544403,
0.034482441842556,
-0.07429017126560211,
0.16732816398143768,
-0.2920972406864166,
-0.062164898961782455,
0.05806452035903931,
-0.16945196688175201,
-0.04944995418190956,
0.10799300670623779,
0.11473200470209122,
0.11207805573940277,
-0.00009707689605420455,
-0.23571379482746124,
0.11734902113676071,
-0.09347739070653915,
-0.08322983235120773,
-0.33549046516418457,
0.056894585490226746,
-0.48674726486206055,
-0.08984173834323883,
-0.1527293175458908,
-0.02867972105741501,
-0.07993543893098831,
-0.022538958117365837,
0.36183616518974304,
0.17118726670742035,
-0.01632336527109146,
0.3015848398208618,
-0.24136510491371155,
0.1877075880765915,
-0.09825056791305542,
0.04097940772771835,
-0.3352949619293213,
-0.18769687414169312,
0.16406865417957306,
-0.02432435192167759,
-0.05625956133008003,
-0.21118630468845367,
0.5608847737312317,
-0.050936151295900345,
-0.2531583905220032,
-0.29006147384643555,
-0.012695010751485825,
-0.10527259856462479,
-0.06496042013168335,
0.11656370013952255,
0.4845498204231262,
0.5298594236373901,
-0.16814959049224854,
-0.2733718156814575,
-0.011978726834058762,
-0.10286509990692139,
-0.1336415410041809,
-0.06890635937452316,
0.1995880901813507,
0.06820923089981079,
0.2821741998195648,
0.11977248638868332,
-0.2527921497821808,
-0.10054905712604523,
0.22517678141593933,
0.12478431314229965,
0.4762439727783203,
-0.05820830538868904,
-0.04419611766934395,
0.29888641834259033,
-0.16750448942184448,
-0.5653132200241089,
0.1359979212284088,
-0.10746186971664429,
0.23731951415538788,
-0.08557257801294327,
-0.12352732568979263,
0.15287771821022034,
0.07998109608888626,
0.19662277400493622,
-0.25330284237861633,
-0.15283150970935822,
0.48557019233703613,
0.05062142014503479,
0.18057292699813843,
0.21769212186336517,
0.1750592291355133,
0.07594644278287888,
-0.054725874215364456,
-0.014844413846731186,
0.12781654298305511,
-0.04115241393446922,
0.029295356944203377,
-0.024341797456145287,
0.06436793506145477,
-0.2445610761642456,
-0.08198823034763336,
-0.43782082200050354,
0.06863494217395782,
0.2060537040233612,
0.23397012054920197,
0.12687842547893524,
-0.12932364642620087,
-0.1584433615207672,
0.3530855178833008,
0.09576310962438583,
0.23727668821811676,
-0.07811056077480316,
0.2695083022117615,
-0.21405096352100372,
-0.12612047791481018,
-0.1236305683851242,
0.2545529901981354,
-0.1758842170238495,
0.19461488723754883,
-0.17697502672672272,
0.08412274718284607,
0.22076912224292755,
0.011975619941949844,
0.26743683218955994,
-0.19199082255363464,
0.07563826441764832,
0.05225599557161331,
-0.08069197833538055,
-0.2325187474489212,
0.294480562210083,
0.06887394189834595,
0.25381603837013245,
-0.4139411747455597,
-0.2517582178115845,
-0.12961792945861816,
-0.2286815196275711,
-0.08998444676399231,
-0.34031015634536743,
0.27852192521095276,
0.037857092916965485,
-0.24254179000854492,
-0.27791792154312134,
0.7183288335800171,
0.12147440761327744,
-0.3903105556964874,
0.09702768921852112,
0.2184334546327591,
-0.2372535914182663,
0.026287425309419632,
0.10791516304016113,
0.42625710368156433,
-0.08575110882520676,
-0.13688671588897705,
-0.009469505399465561,
-0.08782567828893661,
0.08174943923950195,
0.17718540132045746,
-0.07131440937519073,
-0.1179259791970253,
-0.13249681890010834,
0.42852506041526794,
0.1194247230887413,
-0.15092413127422333,
-0.17361576855182648,
0.020185742527246475,
-0.10531529784202576,
0.28856387734413147,
-0.0036450366023927927,
0.07644251734018326,
0.026394633576273918,
-0.028359144926071167,
0.130196213722229,
0.10246020555496216,
0.15603139996528625,
0.13532590866088867,
-0.22205398976802826,
-0.327781081199646,
0.09019017964601517,
0.19360709190368652,
0.032461974769830704,
-0.1908341646194458,
0.21952907741069794,
0.19911129772663116,
0.2937735319137573,
-0.27926257252693176,
0.12364918738603592,
0.21306510269641876,
-0.15290142595767975,
0.14650499820709229,
0.05468067154288292,
-0.26417773962020874,
0.025185871869325638,
0.11132300645112991,
0.3206303119659424,
0.3576340079307556,
0.22892513871192932,
-0.2382941097021103,
-0.04648596793413162,
-0.17052088677883148,
-0.30597203969955444,
-0.21314381062984467,
0.3340741693973541,
0.12075567990541458,
0.02987297996878624,
0.35049140453338623,
0.057147279381752014,
-0.27220022678375244,
-0.3950471878051758,
-0.27958887815475464,
-0.0788680762052536,
0.0020737654995173216,
-0.15849219262599945,
-0.06422380357980728,
-0.09971214830875397,
0.3893687129020691,
-0.2712368667125702,
0.09832066297531128,
0.015433312393724918,
0.15174907445907593,
-0.05508413910865784,
0.49825841188430786,
0.45694249868392944,
0.20204049348831177,
-0.07170842587947845,
-0.5005131363868713,
0.10146334022283554,
-0.12695316970348358,
0.04055717960000038,
0.014175072312355042,
0.0026555934455245733,
0.459909051656723,
0.2683028280735016,
0.12849269807338715,
0.17289386689662933,
0.0776900202035904,
0.43817436695098877,
0.06491097062826157,
-0.1373220831155777,
-0.3299254775047302,
0.3048831522464752,
0.07827605307102203,
-0.43332192301750183,
-0.12211021780967712,
-0.17124372720718384,
0.17326146364212036,
0.5744443535804749,
0.13778027892112732,
0.5119510293006897,
0.21643829345703125,
-0.09746769070625305,
-0.20438173413276672,
-0.014423748478293419,
-0.055818960070610046,
-0.1734180450439453,
0.27017003297805786,
0.3225535452365875,
0.1384958028793335,
0.12929239869117737,
0.041036807000637054,
0.25126171112060547,
-0.08562521636486053,
0.045263227075338364,
0.19730927050113678,
0.09132105857133865,
-0.11873731762170792,
-0.34448862075805664,
0.068583182990551,
-0.23776566982269287,
-0.030747318640351295,
0.13568085432052612,
0.10759273916482925,
-0.07175314426422119,
-0.04454728588461876,
-0.18384921550750732,
-0.3029922842979431,
-0.23440389335155487,
-0.16165021061897278,
0.2162354588508606,
-0.22007595002651215,
-0.24005942046642303,
0.12845279276371002,
0.11678355187177658,
-0.11293457448482513,
-0.2529802918434143,
-0.10243131220340729,
-0.013842879794538021,
-0.5788551568984985,
-0.25555428862571716,
0.18014860153198242,
0.04823227599263191,
-0.04500801861286163,
0.39949488639831543,
-0.40125730633735657,
-0.15521353483200073,
0.035605717450380325,
-0.6449292898178101,
0.27204471826553345,
-0.16221405565738678,
0.020054087042808533,
-0.010630912147462368,
-0.0697958916425705,
-0.36052921414375305,
-0.3130761682987213,
0.3076895475387573,
0.0325356163084507,
-0.028960080817341805,
0.12614068388938904,
0.037702225148677826,
0.011711998842656612,
-0.0352809801697731,
-0.5705174803733826,
-0.19807368516921997,
-0.40709397196769714,
0.30774545669555664,
0.05456288903951645,
0.14866793155670166,
-0.3104325830936432,
0.29559290409088135,
0.19082346558570862,
-0.17590095102787018,
0.342891126871109,
-0.3420238792896271,
-0.09230038523674011,
0.11209362745285034,
-0.15273019671440125,
-0.3790642023086548,
0.0731659084558487,
-0.2005583792924881,
0.3650986850261688,
-0.10576163232326508,
-0.25889351963996887,
-0.10581745207309723,
0.17911599576473236,
0.03263387084007263,
0.18196110427379608,
0.23680774867534637,
0.2737874388694763,
0.1304391473531723,
-0.20748144388198853,
0.07251561433076859,
0.03776426613330841,
-0.03181732818484306,
-0.12068793922662735,
0.0855492427945137,
-0.21008199453353882,
0.3565777540206909,
0.23254376649856567,
0.698783278465271,
0.16900965571403503,
0.399588942527771,
0.303180456161499,
-0.1493191123008728,
0.12141294777393341,
-0.37278714776039124,
-0.11833275854587555,
-0.06676564365625381,
-0.16181567311286926,
-0.0017634648829698563,
0.4374343454837799,
0.2114104926586151,
-0.6284600496292114,
-0.19206394255161285,
-0.2594236433506012,
-0.42234328389167786,
-0.2361973077058792,
0.30576086044311523,
0.09233754873275757,
0.3545750677585602,
-0.10092649608850479,
-0.258864164352417,
0.015134141780436039,
-0.1767124980688095,
0.16950033605098724,
0.39793193340301514,
-0.2794199287891388,
0.1074102595448494,
-0.4918292164802551,
-0.19029094278812408,
0.06738406419754028,
0.17288877069950104,
0.44744959473609924,
-0.08079497516155243,
-0.22054383158683777,
-0.13007164001464844,
-0.13024067878723145,
-0.29776373505592346,
-0.03145413100719452,
-0.2745261788368225,
-0.25665122270584106,
-0.09251424670219421,
-0.2993517518043518,
0.055825140327215195,
0.08358000963926315,
-0.16842196881771088,
-0.39516574144363403,
0.5567393898963928,
0.1419665664434433,
-0.30974081158638,
0.02604536898434162,
0.114501953125,
0.38115638494491577,
-0.26333361864089966,
0.22271113097667694,
-0.26941826939582825,
-0.1932816356420517,
-0.5281088352203369,
0.16913850605487823,
-0.03996950387954712,
0.04658431187272072,
0.1690194457769394,
0.032197367399930954,
0.08846227079629898,
0.08042943477630615,
-0.05948968604207039,
0.06163064390420914,
0.2686174511909485,
0.12302668392658234,
-0.10827939957380295,
-0.040636371821165085,
-0.23641715943813324,
-0.10765472799539566,
0.27830633521080017,
0.07753948122262955,
-0.1844501942396164,
-0.33066409826278687,
-0.2572510242462158,
0.31013253331184387,
0.003528473898768425,
0.22626633942127228,
0.010780679062008858,
0.19836586713790894,
-0.13056528568267822,
-0.35971778631210327,
-0.03556090593338013,
-0.011604009196162224,
0.3058978319168091,
-0.10584231466054916,
-0.43166041374206543,
0.4495396316051483,
-0.10733182728290558,
0.015891656279563904,
-0.02634299360215664,
0.2421526312828064,
-0.26528608798980713,
0.23031191527843475,
0.07787498831748962,
0.9278436303138733,
0.23548734188079834,
0.2578747868537903,
0.10341507196426392,
0.10181794315576553,
0.17263102531433105,
0.06182186305522919,
0.02043313905596733,
-0.25022798776626587,
0.27774086594581604,
-0.003972070291638374,
0.30776140093803406,
-0.2442103624343872,
-0.005733177997171879,
-0.4587951898574829,
0.16285890340805054,
-0.21380619704723358,
-0.06948579102754593,
-0.03572994843125343,
0.03891577199101448,
-0.38529953360557556,
-0.2546163499355316,
-0.07492121309041977,
0.2158121019601822,
0.16086991131305695,
-0.14273443818092346,
-0.09688311070203781,
-0.1639653593301773,
0.0675174668431282,
-0.11555107682943344,
-0.575061023235321,
0.20376388728618622,
0.3043476939201355,
0.09765499085187912,
-0.26667946577072144,
-0.13273248076438904,
0.050123993307352066,
0.3451719582080841,
-0.19380812346935272,
0.025229161605238914,
-0.08239557594060898,
-0.03415194898843765,
-0.4138200581073761,
-0.15235480666160583,
0.1776978224515915,
0.05732499435544014,
0.2658069133758545,
-0.18141776323318481,
-0.25106462836265564,
0.06416695564985275,
0.13399823009967804,
0.05570695549249649,
-0.29978320002555847,
-0.13337302207946777,
0.3854409158229828,
0.18514922261238098,
-0.09516455978155136,
0.4663965106010437,
-0.26128295063972473,
-0.3155134618282318,
0.2619304060935974,
0.07028786092996597,
-0.22862204909324646,
-0.11062942445278168,
0.14301081001758575,
0.0036536443512886763,
0.07399657368659973,
0.22120866179466248,
0.2505517601966858,
-0.3267934024333954,
0.2621974050998688,
0.32973340153694153,
-0.2598975896835327,
-0.32720947265625,
-0.2419424057006836,
-0.12529456615447998,
-0.3335343599319458,
-0.13878124952316284,
0.07489392161369324,
-0.11598990857601166,
-0.14521679282188416,
0.09492088854312897,
0.03135254606604576,
0.04805615916848183,
-0.20625799894332886,
-0.27429184317588806,
0.03709259629249573,
0.33914339542388916,
0.1259649246931076,
0.1663532555103302,
-0.03849214315414429,
-0.23755040764808655,
-0.032500963658094406,
0.2613564431667328,
-0.4619375169277191,
-0.14431367814540863,
-0.13483920693397522,
-0.045817770063877106,
0.46087127923965454,
0.1276097148656845,
-0.0003697618958540261,
0.19959883391857147,
0.20017088949680328,
-0.0017001860542222857,
-0.2089053839445114,
-0.3422905504703522,
-0.31162187457084656,
0.05226109176874161,
0.05388033017516136,
0.20888428390026093,
0.1513405740261078,
-0.1388469785451889,
0.18148869276046753,
-0.3803018629550934,
0.1357375830411911,
-0.13919159770011902,
-0.16684883832931519,
0.3987882435321808,
-0.215624138712883,
0.41157951951026917,
-0.09300705790519714,
-0.15413163602352142,
0.021098826080560684,
0.24264822900295258,
0.03621099144220352,
-0.0763922855257988,
0.02332388050854206,
-0.09440372884273529,
0.15072840452194214,
0.20315520465373993,
0.17408487200737,
0.17674756050109863,
0.1257217824459076,
0.25381729006767273,
0.21547555923461914,
0.1199660375714302,
0.22611680626869202,
-0.006514411419630051,
-0.11902088671922684,
-0.11538418382406235,
0.1623837947845459,
0.3639620840549469,
-0.2695581316947937,
-0.10944904386997223,
-0.18999528884887695,
-0.30897125601768494,
0.1934007853269577,
0.24680332839488983,
0.15799257159233093,
-0.0653853490948677,
0.0884060338139534,
-0.13753819465637207,
-0.08796891570091248,
-0.34784457087516785,
0.18633943796157837,
0.13997387886047363,
-0.09002400189638138,
0.12396177649497986,
-0.1945772022008896,
-0.02402034029364586,
0.20981670916080475,
0.18133091926574707,
-0.13639777898788452,
0.3350525498390198,
0.1722571700811386,
0.3454722464084625,
-0.14017371833324432,
0.011257888749241829,
0.3753677308559418,
0.22065982222557068,
0.33334872126579285,
0.2926024794578552,
0.037637341767549515,
0.030217448249459267,
0.3496359884738922,
0.2469123899936676,
-0.19017714262008667,
0.33464834094047546,
-0.10677213966846466,
-0.2746526300907135,
-0.0019902531057596207,
-0.29649248719215393,
-0.24009233713150024,
0.13277895748615265,
0.11898764967918396,
0.0631735622882843,
0.08431464433670044,
0.12646202743053436,
0.188215970993042,
-0.24655546247959137,
0.07111994922161102,
0.0024901425931602716,
0.14691448211669922,
-0.2575463652610779,
-0.003993884194642305,
0.3881652355194092,
-0.015042376704514027,
-0.2881395220756531,
0.16520175337791443,
0.215708389878273,
0.03870026767253876,
-0.11212654411792755,
0.22154362499713898,
-0.05798761174082756,
0.09887656569480896,
-0.14751675724983215,
0.08604875206947327,
0.1966520994901657,
0.20502245426177979,
0.12412885576486588,
0.24337050318717957,
-0.3616890013217926,
0.08294130861759186,
0.2663656771183014,
-0.09368081390857697,
0.007012003101408482,
0.17932294309139252,
0.04999374598264694,
0.33265551924705505,
-0.24428114295005798,
0.1301928609609604,
-0.40373679995536804,
-0.09277335554361343,
0.3473380208015442,
0.1063145324587822,
-0.03241132199764252,
-0.13381171226501465,
0.1636233776807785,
0.3008711636066437,
0.28633925318717957,
0.23913201689720154,
0.17174063622951508,
0.05511287972331047,
-0.14677871763706207,
-0.3187095522880554,
0.07492619007825851,
0.1380315124988556,
0.006469537504017353,
0.03533804789185524,
0.3323950171470642,
0.25155559182167053,
0.4170932173728943,
-0.029296662658452988,
-0.1962985098361969,
-0.017417125403881073,
0.15137381851673126,
-0.03382804989814758,
0.12291694432497025,
0.14771291613578796,
0.15130262076854706,
0.05092792212963104,
-0.11688567698001862,
-0.25033023953437805,
-0.07869891077280045,
0.1806660294532776,
-0.24515780806541443,
-0.024823885411024094,
-0.15878111124038696,
-0.30331405997276306,
0.27249443531036377,
-0.084801584482193,
0.20592066645622253,
-0.38826775550842285,
-0.0711866095662117,
0.10931968688964844,
-0.28377923369407654,
-0.018402324989438057,
0.3539356589317322,
-0.04922929406166077,
0.21335969865322113,
-0.060217954218387604,
0.012498363852500916,
0.055126190185546875,
-0.11497649550437927,
0.0985492393374443,
0.1641899049282074,
-0.15214818716049194,
-0.01042894646525383,
0.4137110710144043,
-0.22939208149909973,
-0.0354563444852829,
0.6886965036392212,
0.07792538404464722,
-0.0594685822725296,
-0.023343898355960846,
-0.18270359933376312,
-0.08375362306833267,
-0.13092975318431854,
-0.2704121172428131,
0.05650375038385391,
0.034685537219047546,
0.10692708194255829,
-0.04410191997885704,
-0.4928300082683563,
0.07255914807319641,
0.2490634173154831,
0.4061501622200012,
-0.07929733395576477,
0.2087537944316864,
0.1567540466785431,
-0.1536521017551422,
-0.050405021756887436,
-0.08005595952272415,
0.04365751892328262,
-0.1664244681596756,
-0.020954346284270287,
-0.3597683906555176
] |
https://github.com/huggingface/datasets/issues/827 | [GEM] MultiWOZ dialogue dataset | Hi @yjernite can I help in adding this dataset?
I am excited about this because this will be my first contribution to the datasets library as well as to hugginface. | ## Adding a Dataset
- **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz)
- **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side.
- **Paper:** https://arxiv.org/pdf/2007.12720.pdf
- **Data:** https://github.com/budzianowski/multiwoz
- **Motivation:** Will likely be part of the GEM shared task
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 30 | [GEM] MultiWOZ dialogue dataset
## Adding a Dataset
- **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz)
- **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side.
- **Paper:** https://arxiv.org/pdf/2007.12720.pdf
- **Data:** https://github.com/budzianowski/multiwoz
- **Motivation:** Will likely be part of the GEM shared task
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @yjernite can I help in adding this dataset?
I am excited about this because this will be my first contribution to the datasets library as well as to hugginface. | [
-0.049559466540813446,
-0.12617550790309906,
0.048442542552948,
0.5216317772865295,
0.028047097846865654,
0.2442048043012619,
0.22579002380371094,
-0.12951326370239258,
-0.07643046975135803,
-0.03523027151823044,
-0.3937833607196808,
0.02837585099041462,
-0.41572850942611694,
0.37123554944992065,
0.2753159701824188,
-0.48786479234695435,
-0.04013160988688469,
-0.18472808599472046,
-0.057380735874176025,
-0.06621599942445755,
0.054446205496788025,
0.26526448130607605,
-0.08374964445829391,
-0.014165176078677177,
-0.708276629447937,
-0.2576466500759125,
-0.24596360325813293,
0.5358039140701294,
-0.05936724692583084,
-0.21356536448001862,
-0.10258860141038895,
-0.025392355397343636,
-0.10535957664251328,
0.478770911693573,
-0.00011666065256576985,
-0.2765083909034729,
0.24153710901737213,
-0.07049509137868881,
-0.15846025943756104,
-0.1901419311761856,
-0.3039592206478119,
-0.10108939558267593,
-0.15780045092105865,
0.04852600023150444,
-0.06728492677211761,
0.11104021966457367,
-0.2357473075389862,
0.07208019495010376,
0.1161288395524025,
0.21362023055553436,
0.1436247080564499,
0.1713847517967224,
0.22927355766296387,
-0.14131523668766022,
-0.07956168800592422,
0.17547890543937683,
-0.13600803911685944,
0.12175421416759491,
0.16606764495372772,
0.12985371053218842,
0.13394109904766083,
0.2862461805343628,
-0.2868771553039551,
-0.338758260011673,
0.03786993399262428,
-0.15657344460487366,
-0.11373835802078247,
-0.20211689174175262,
-0.12083349376916885,
0.6377719044685364,
0.7825867533683777,
-0.046033795922994614,
-0.458758145570755,
-0.18238884210586548,
0.16621817648410797,
0.18907149136066437,
-0.015108941122889519,
0.20748108625411987,
-0.19023975729942322,
0.08808101713657379,
-0.4997957646846771,
-0.3024016320705414,
-0.11178608983755112,
0.15204839408397675,
0.16944314539432526,
0.4894137978553772,
-0.004837407730519772,
0.14982062578201294,
0.040699124336242676,
-0.01293592993170023,
-0.6592088937759399,
0.046183258295059204,
-0.16322916746139526,
-0.07825608551502228,
-0.5269984602928162,
-0.23132121562957764,
0.005497310310602188,
0.27646511793136597,
0.2792699933052063,
0.24186433851718903,
0.19333577156066895,
0.03438583388924599,
-0.48581695556640625,
-0.09636083990335464,
0.35654518008232117,
-0.03575529903173447,
0.23550941050052643,
-0.48369187116622925,
-0.07681230455636978,
-0.3012525141239166,
0.23713253438472748,
0.12385836243629456,
-0.2489853799343109,
0.05686206370592117,
-0.04543555527925491,
-0.19125886261463165,
0.07785502821207047,
0.009876037947833538,
0.1015385091304779,
-0.004685338120907545,
-0.1881653219461441,
-0.19040095806121826,
0.39876043796539307,
0.30845773220062256,
-0.21767903864383698,
0.03102388232946396,
-0.2466757744550705,
0.5173608064651489,
0.21409673988819122,
-0.2750444710254669,
-0.1006627231836319,
0.20847037434577942,
-0.018594076856970787,
0.25779885053634644,
0.04165240749716759,
-0.1372455507516861,
0.30896449089050293,
0.0768449530005455,
0.403755247592926,
0.02513841539621353,
0.03575124591588974,
0.07236810028553009,
0.030920246616005898,
0.061165500432252884,
0.026569383218884468,
0.20061062276363373,
0.12791873514652252,
0.1385939121246338,
-0.025920530781149864,
0.05559546872973442,
-0.054170649498701096,
-0.4240857660770416,
-0.8219959735870361,
0.04196314886212349,
-0.3433516323566437,
-0.45221567153930664,
-0.09663133323192596,
0.2801697254180908,
0.0758950337767601,
-0.11191866546869278,
0.08984822779893875,
0.19271670281887054,
-0.20061302185058594,
-0.2603941559791565,
0.11810529232025146,
0.4660359025001526,
-0.07393568754196167,
0.019990909844636917,
-0.005179396830499172,
0.04893269017338753,
0.15146730840206146,
0.22659477591514587,
-0.2079218477010727,
0.002090055262669921,
0.0370473638176918,
0.5209832787513733,
0.09747633337974548,
-0.13544517755508423,
-0.009141767397522926,
0.12619370222091675,
-0.15794426202774048,
0.4558429718017578,
0.22698380053043365,
0.4218328595161438,
0.04012584313750267,
-0.07352320104837418,
0.23793554306030273,
0.21384748816490173,
0.08579713851213455,
0.00934157706797123,
-0.12745052576065063,
-0.21497240662574768,
0.3545290529727936,
0.14506419003009796,
-0.14849776029586792,
-0.27154043316841125,
0.021877218037843704,
-0.05330430716276169,
0.3994189202785492,
-0.072808638215065,
0.2140677124261856,
0.1887441724538803,
-0.04590141028165817,
0.3278734087944031,
0.006484245881438255,
-0.35883551836013794,
-0.04015432670712471,
0.046324506402015686,
0.4060174524784088,
0.36422646045684814,
0.21335923671722412,
-0.09134554862976074,
-0.05937984585762024,
0.020901348441839218,
-0.1971767097711563,
-0.30144330859184265,
-0.020997749641537666,
0.3040894865989685,
0.019214607775211334,
-0.21103616058826447,
-0.3215515911579132,
0.6143248677253723,
0.234730526804924,
-0.023854447528719902,
-0.3885960876941681,
0.15351569652557373,
0.06428302824497223,
-0.0954657569527626,
-0.04938819631934166,
0.46579891443252563,
-0.10185682028532028,
-0.1015433743596077,
0.025635242462158203,
0.3633400499820709,
-0.38104701042175293,
-0.01916693150997162,
0.2527378499507904,
0.21156010031700134,
0.1455545723438263,
-0.037693873047828674,
0.3808535039424896,
-0.357417494058609,
0.09353647381067276,
-0.16663199663162231,
-0.031677164137363434,
0.02378634363412857,
0.06880752742290497,
-0.1138605922460556,
-0.34258681535720825,
0.3334614932537079,
0.1323537826538086,
-0.060071542859077454,
-0.23784400522708893,
-0.05019892007112503,
0.2843129634857178,
-0.39680904150009155,
-0.20879362523555756,
0.08618861436843872,
-0.5717889666557312,
0.25532713532447815,
0.2885811924934387,
-0.2681141793727875,
0.3120870888233185,
-0.007546836510300636,
-0.278226375579834,
-0.22802557051181793,
-0.06771901994943619,
-0.23924300074577332,
0.13109073042869568,
0.30737656354904175,
0.026866622269153595,
-0.22624070942401886,
0.007741662207990885,
0.046137865632772446,
0.11795785278081894,
0.1477186232805252,
0.14210577309131622,
0.2155926376581192,
0.13174036145210266,
0.19539880752563477,
-0.060035206377506256,
-0.18588322401046753,
0.09173423051834106,
0.06127052381634712,
-0.22027060389518738,
-0.3777100145816803,
-0.2315758466720581,
0.02065872959792614,
-0.0031800810247659683,
-0.8598549962043762,
-0.377617210149765,
0.021087076514959335,
0.1854078620672226,
-0.20863693952560425,
0.18648754060268402,
0.14099782705307007,
0.1710364669561386,
0.0905531570315361,
-0.1613754779100418,
-0.096727155148983,
-0.2473042756319046,
-0.4741034209728241,
0.05991557985544205,
0.07063445448875427,
0.1254865527153015,
-0.07127252966165543,
0.33662283420562744,
0.14794248342514038,
0.1586923748254776,
-0.12485042959451675,
-0.3355083465576172,
-0.047523707151412964,
-0.32140329480171204,
0.36329731345176697,
0.18610483407974243,
0.004500841721892357,
0.17361323535442352,
-0.5391615033149719,
0.0940193235874176,
0.06364068388938904,
-0.10325246304273605,
0.0796104297041893,
-0.05865488573908806,
-0.3287821114063263,
0.034388162195682526,
-0.13300850987434387,
-0.2042253315448761,
-0.44641387462615967,
0.2932300269603729,
-0.082225002348423,
0.06810728460550308,
0.13885729014873505,
-0.2183089256286621,
0.3125789761543274,
-0.22824105620384216,
0.29302728176116943,
-0.2374429702758789,
-0.4391103684902191,
0.3867263197898865,
-0.15435582399368286,
-0.15795379877090454,
-0.0408223420381546,
-0.25972241163253784,
0.2749282419681549,
-0.20689204335212708,
-0.12639151513576508,
-0.2367943823337555,
-0.11961488425731659,
-0.12238121032714844,
0.15486788749694824,
0.007425606716424227,
0.3379836678504944,
0.15043796598911285,
-0.11306601762771606,
-0.07591141760349274,
-0.4116910398006439,
0.10021019726991653,
0.47978082299232483,
0.3220478296279907,
-0.02241636998951435,
0.015180522575974464,
0.02782987430691719,
0.42630860209465027,
0.2595111131668091,
0.1940469741821289,
0.1456068903207779,
-0.04165954515337944,
-0.050338372588157654,
-0.12766033411026,
-0.6021881103515625,
0.36203548312187195,
-0.1072278693318367,
0.18035003542900085,
0.3086298406124115,
0.35063937306404114,
0.029750622808933258,
0.00517479982227087,
-0.3613118827342987,
-0.40429770946502686,
-0.24869489669799805,
0.030837679281830788,
-0.13754555583000183,
-0.16569241881370544,
-0.303528755903244,
-0.3996587097644806,
-0.2994043529033661,
-0.24511952698230743,
0.25516799092292786,
0.4556032717227936,
-0.1871858537197113,
0.06742200255393982,
-0.05540570989251137,
0.20807965099811554,
-0.1167583018541336,
0.28832751512527466,
0.2834441661834717,
-0.24261444807052612,
-0.3276437222957611,
-0.00680818036198616,
0.10106425732374191,
0.2707676291465759,
0.8676866888999939,
-0.3521384298801422,
-0.4406838119029999,
-0.01899191550910473,
-0.07738404721021652,
-0.11042004823684692,
0.20622165501117706,
0.06789358705282211,
0.21545788645744324,
0.2241029441356659,
0.4616439640522003,
-0.08059954643249512,
-0.04212690517306328,
0.4925209879875183,
0.24513202905654907,
0.0402822308242321,
-0.09428735077381134,
0.11541195213794708,
-0.20073416829109192,
-0.4446723461151123,
0.04826434329152107,
-0.12066207826137543,
0.22483229637145996,
0.41229644417762756,
-0.25884974002838135,
0.1395409107208252,
0.2476581633090973,
0.46592608094215393,
-0.2856919765472412,
-0.07635123282670975,
0.4765971601009369,
0.12371958792209625,
0.15714864432811737,
-0.006900610867887735,
-0.04675336182117462,
0.2670632004737854,
0.34915611147880554,
-0.00735686719417572,
-0.28861165046691895,
-0.3671671450138092,
0.6399356722831726,
0.24582791328430176,
0.2599234879016876,
-0.0043928115628659725,
-0.0496906042098999,
0.2666393518447876,
-0.07027336955070496,
0.0905362144112587,
-0.03801082819700241,
0.21933972835540771,
-0.3569740653038025,
-0.2911622226238251,
0.25422993302345276,
-0.05667180195450783,
-0.10891798883676529,
0.3481283187866211,
0.13936525583267212,
0.09175334125757217,
0.057512179017066956,
-0.07080920785665512,
1.220823884010315,
-0.12197468429803848,
0.23850880563259125,
0.18320505321025848,
0.11858759075403214,
0.30626726150512695,
-0.3133832514286041,
0.04340077564120293,
-0.08879267424345016,
0.4918665289878845,
-0.10586024075746536,
0.05004145950078964,
0.07738302648067474,
0.06891703605651855,
-0.2723090648651123,
-0.12006093561649323,
-0.12556961178779602,
-0.31805601716041565,
-0.17284604907035828,
0.1763085424900055,
0.16790935397148132,
-0.4396864175796509,
0.1948033720254898,
0.09140477329492569,
0.0268142968416214,
0.09911636263132095,
0.19320189952850342,
-0.47064533829689026,
-0.24781948328018188,
-0.006186842452734709,
-0.5756502747535706,
-0.10301361978054047,
-0.17779044806957245,
-0.0751585066318512,
0.1510765254497528,
-0.41257625818252563,
0.2650752365589142,
0.6566471457481384,
-0.04583612084388733,
-0.036484844982624054,
-0.19065441191196442,
-0.027059176936745644,
-0.30976518988609314,
-0.18004465103149414,
-0.02907129004597664,
0.014604683965444565,
0.562534511089325,
-0.08564694225788116,
-0.46163082122802734,
0.19136859476566315,
-0.040545754134655,
-0.15743187069892883,
-0.2143806368112564,
0.09393568336963654,
0.3514002561569214,
-0.12341306358575821,
0.08407354354858398,
0.4758817255496979,
0.16323460638523102,
-0.1882021129131317,
0.058733027428388596,
0.375267893075943,
-0.27262043952941895,
0.10034436732530594,
-0.0824422761797905,
-0.20022052526474,
-0.19213734567165375,
0.10645247250795364,
-0.0451691634953022,
0.06491126865148544,
0.3358597159385681,
0.2078390270471573,
0.0046555595472455025,
-0.16522791981697083,
-0.11716780066490173,
0.012606637552380562,
-0.02976965345442295,
-0.2118086814880371,
0.5123298168182373,
-0.18699541687965393,
-0.04498840123414993,
0.01609164848923683,
0.16032813489437103,
0.16774235665798187,
-0.08149198442697525,
-0.3418286144733429,
-0.17187850177288055,
0.15770936012268066,
0.015029787085950375,
0.03576023876667023,
-0.20855744183063507,
0.11394545435905457,
0.2710702419281006,
0.469958633184433,
-0.2757551074028015,
0.016769982874393463,
-0.28065741062164307,
-0.02905287593603134,
0.5896812081336975,
-0.23007282614707947,
0.14881622791290283,
-0.0789913535118103,
0.07719751447439194,
-0.42007121443748474,
-0.11014382541179657,
-0.08854084461927414,
-0.3610192835330963,
0.16844965517520905,
0.07487213611602783,
-0.15407687425613403,
0.27068185806274414,
0.01580658368766308,
-0.08948065340518951,
-0.2250722497701645,
0.33200541138648987,
0.2376990169286728,
-0.07032231241464615,
0.0462866947054863,
-0.24844762682914734,
-0.0196934025734663,
-0.30482473969459534,
0.1348234862089157,
0.19871242344379425,
0.07256462424993515,
-0.03848213702440262,
-0.07032036036252975,
0.04900285601615906,
-0.2940416634082794,
0.2146623432636261,
0.2510719299316406,
0.14166733622550964,
-0.056803084909915924,
-0.03308199346065521,
0.14401042461395264,
-0.025385800749063492,
0.30454593896865845,
0.3379087746143341,
-0.2967103123664856,
0.11204681545495987,
0.28421565890312195,
0.07079629600048065,
0.043912000954151154,
-0.20232947170734406,
-0.14327895641326904,
0.1610296666622162,
-0.24417483806610107,
0.05296587944030762,
0.1319923847913742,
-0.05118590593338013,
0.13435706496238708,
0.008550787344574928,
-0.337132066488266,
0.09456898272037506,
-0.17361703515052795,
-0.05588732287287712,
0.04129572957754135,
-0.44681137800216675,
-0.13861598074436188,
0.31727489829063416,
0.24802663922309875,
0.28947901725769043,
0.1697862446308136,
0.013189466670155525,
0.23502488434314728,
0.01406486053019762,
0.08100894838571548,
0.0222414992749691,
-0.13086284697055817,
0.2727150321006775,
-0.06211478263139725,
0.1389017254114151,
-0.09646628051996231,
-0.012795127928256989,
0.8489482998847961,
-0.05316551402211189,
0.09395423531532288,
-0.18235337734222412,
0.4093397855758667,
-0.03856503963470459,
0.01986115425825119,
0.18632233142852783,
-0.19020266830921173,
-0.28193268179893494,
-0.18897372484207153,
0.03045842982828617,
-0.19395270943641663,
0.5753383636474609,
0.10229538381099701,
0.1599065363407135,
-0.524725615978241,
-0.11948663741350174,
0.06229793652892113,
-0.21868839859962463,
-0.33287376165390015,
0.1273478865623474,
0.41762182116508484,
-0.23353935778141022,
0.2680814266204834,
0.2843914031982422,
0.5901279449462891,
0.05816646292805672,
0.059219151735305786,
0.32453620433807373,
-0.25793546438217163,
-0.0714360922574997,
0.04023801535367966,
0.36000964045524597,
0.1942010074853897,
0.12069934606552124,
0.1378459930419922,
-0.005047698970884085,
-0.1075204387307167,
0.2780386209487915,
-0.09807754307985306,
-0.06319057196378708,
-0.32606205344200134,
0.27016741037368774,
-0.17114372551441193,
-0.32032835483551025,
-0.28235962986946106,
0.009437918663024902,
-0.45591968297958374,
-0.4043712019920349,
0.33265620470046997,
0.02350008487701416,
-0.26650044322013855,
-0.23152825236320496,
0.052577823400497437,
0.04101686179637909,
0.4059998095035553,
0.3472778797149658,
0.1792748123407364,
0.0704648345708847,
0.295987993478775,
-0.6454320549964905,
-0.15854327380657196,
0.3647209107875824,
-0.08004401624202728,
-0.015973370522260666,
-0.1301049441099167,
0.5115667581558228,
0.19025197625160217,
0.0810144692659378,
-0.3565253019332886,
-0.07543545216321945,
0.0700322762131691,
-0.1761052906513214,
0.44188618659973145,
0.40036213397979736,
0.17969608306884766,
0.29142987728118896,
0.23232217133045197,
0.02749701961874962,
-0.013661853037774563,
-0.06434019654989243,
-0.09573356807231903,
-0.10599343478679657,
0.008534327149391174,
-0.39827126264572144,
0.23329415917396545,
-0.1317206621170044,
0.63905268907547,
-0.13946419954299927,
0.10828619450330734,
-0.09358129650354385,
-0.0011768615804612637,
-0.15515750646591187,
0.11792156845331192,
0.044415876269340515,
0.6158029437065125,
-0.15106844902038574,
0.06702324002981186,
0.012199124321341515,
-0.12793363630771637,
-0.2693745791912079,
0.33733174204826355,
0.012192864902317524,
0.145860955119133,
-0.09135032445192337,
-0.11882758885622025,
0.3091869354248047,
0.262458473443985,
-0.05213075503706932,
0.10513465106487274,
0.0185579564422369,
-0.07952974736690521,
0.5583523511886597,
-0.070338673889637,
-0.25768545269966125,
-0.41206997632980347,
0.1972283273935318,
0.09154792875051498,
-0.051930028945207596,
-0.5948375463485718,
0.02843453362584114,
0.18021029233932495,
0.30532306432724,
-0.22468842566013336,
0.40319690108299255,
0.12770840525627136,
-0.18630152940750122,
-0.0024882431607693434,
0.04751031845808029,
-0.03975284472107887,
0.04464995488524437,
0.21816277503967285,
-0.05626047030091286
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;) | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 72 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;) | [
-0.6300708651542664,
0.20589101314544678,
-0.010249721817672253,
0.13883249461650848,
0.19344668090343475,
-0.1737719476222992,
0.5314207673072815,
0.08316382765769958,
0.3500733971595764,
0.23671187460422516,
0.13064807653427124,
-0.0646166130900383,
-0.1149483397603035,
0.4892581105232239,
-0.06132402643561363,
-0.03587682917714119,
-0.16644778847694397,
-0.037064328789711,
-0.20752215385437012,
0.16657663881778717,
-0.1922239363193512,
-0.16346308588981628,
-0.5264272093772888,
-0.1563563495874405,
-0.2378029078245163,
-0.28212207555770874,
-0.050795670598745346,
0.14344339072704315,
-0.06754955649375916,
-0.3244418799877167,
0.2889087498188019,
0.1382352113723755,
0.22350209951400757,
0.44493457674980164,
-0.00010756037227110937,
0.04597162827849388,
0.08171209692955017,
0.04249955713748932,
-0.21935957670211792,
-0.3220709264278412,
-0.27401700615882874,
-0.5323525667190552,
0.179214209318161,
-0.3614761233329773,
-0.22614020109176636,
-0.10602026432752609,
-0.0022871072869747877,
-0.4843772053718567,
0.35584762692451477,
0.28958189487457275,
0.1922077089548111,
0.6198389530181885,
-0.2299233078956604,
-0.2431984543800354,
-0.1677202731370926,
-0.1656208336353302,
-0.1867387741804123,
0.3589763641357422,
0.164250448346138,
-0.038412127643823624,
-0.07064516842365265,
0.09211992472410202,
-0.10443459451198578,
0.09724468737840652,
0.4349207580089569,
0.09935661405324936,
-0.1420595496892929,
-0.0717148631811142,
0.17416788637638092,
0.5084937810897827,
0.5811340808868408,
-0.23777595162391663,
-0.23522430658340454,
-0.20792220532894135,
-0.11210134625434875,
-0.47876742482185364,
0.08849142491817474,
0.1763008087873459,
0.04405859112739563,
0.3034048080444336,
-0.4777001738548279,
-0.254540354013443,
-0.3263361155986786,
0.19429653882980347,
-0.40162068605422974,
0.20139268040657043,
-0.19172383844852448,
0.10689311474561691,
-0.18274594843387604,
0.15338999032974243,
-0.007583881262689829,
-0.23370210826396942,
0.155029758810997,
-0.13029208779335022,
-0.3167189955711365,
-0.014024529606103897,
0.0825170949101448,
0.2733766436576843,
0.03941968455910683,
0.17265376448631287,
0.16442982852458954,
0.029657283797860146,
0.07031027972698212,
0.03881458193063736,
0.3789531886577606,
0.21983793377876282,
-0.12092216312885284,
-0.3116758167743683,
0.629206657409668,
0.006875120103359222,
0.029025323688983917,
-0.24221213161945343,
0.3572410047054291,
-0.33223095536231995,
0.12502701580524445,
-0.0004763099714182317,
0.34011155366897583,
-0.09635802358388901,
-0.12813115119934082,
0.06240105256438255,
0.18315641582012177,
-0.1575583964586258,
0.08854059875011444,
0.2160647064447403,
-0.26177600026130676,
0.03057190030813217,
0.14204885065555573,
0.41521307826042175,
-0.2527974247932434,
-0.3033894896507263,
-0.07049570232629776,
-0.17856904864311218,
-0.08968743681907654,
0.13402727246284485,
0.31636714935302734,
0.25986725091934204,
0.025487925857305527,
-0.034384727478027344,
0.17149442434310913,
-0.013373112305998802,
0.4245753586292267,
-0.09018784761428833,
0.13615790009498596,
0.30183130502700806,
0.11570815742015839,
-0.06005546823143959,
0.059158846735954285,
-0.11812622100114822,
0.05986786633729935,
0.012716355733573437,
-0.11565946787595749,
-0.3404824733734131,
0.2708466947078705,
0.21293401718139648,
-0.5129674077033997,
-0.10994593054056168,
-0.3253319561481476,
0.06779995560646057,
-0.33221399784088135,
-0.11214606463909149,
-0.0031905847135931253,
-0.15885180234909058,
-0.30204880237579346,
-0.21838781237602234,
0.28503677248954773,
0.6506158709526062,
-0.536461591720581,
0.1531352996826172,
-0.03369039669632912,
-0.13713425397872925,
-0.14964282512664795,
0.09439291059970856,
-0.33623042702674866,
0.6654824614524841,
-0.011888988316059113,
-0.3396769165992737,
0.4533728063106537,
-0.40856826305389404,
-0.25886070728302,
0.2776842713356018,
-0.3286612927913666,
-0.0729338750243187,
-0.06540475785732269,
0.2060270756483078,
0.42113733291625977,
0.06577745825052261,
0.09295548498630524,
0.18746937811374664,
-0.051974646747112274,
-0.024404624477028847,
-0.1945667713880539,
-0.2632910907268524,
0.2911950647830963,
0.2045402228832245,
0.3346414566040039,
0.06694132089614868,
0.30812111496925354,
-0.17368006706237793,
0.04351719841361046,
-0.18464861810207367,
0.252841055393219,
0.01540773268789053,
0.17284664511680603,
-0.021774785593152046,
-0.1127806156873703,
-0.17365652322769165,
-0.6063699126243591,
0.30642518401145935,
0.023169999942183495,
0.09688064455986023,
-0.18692852556705475,
-0.11879605799913406,
0.024095997214317322,
-0.1919628232717514,
-0.09548856317996979,
0.05047742649912834,
0.10247749835252762,
-0.22549080848693848,
0.08084948360919952,
0.12836769223213196,
-0.2564831078052521,
0.20296689867973328,
-0.11895689368247986,
-0.009911338798701763,
0.04384426400065422,
0.2811492085456848,
-0.04895909130573273,
0.029020756483078003,
0.038103945553302765,
0.0005989680648781359,
0.02143966779112816,
-0.2149714231491089,
-0.017181051895022392,
0.4893760681152344,
0.0006061923922970891,
0.13988496363162994,
0.2435285449028015,
0.47668972611427307,
0.3864597976207733,
-0.15457557141780853,
0.5698556900024414,
-0.02095847763121128,
0.2697750926017761,
-0.2345479130744934,
-0.25906944274902344,
0.5913995504379272,
-0.19499711692333221,
0.2110200971364975,
0.08512882143259048,
-0.0037555592134594917,
0.14914189279079437,
-0.01652824506163597,
-0.4646925628185272,
-0.07183404266834259,
-0.00750240171328187,
0.0016718985280022025,
0.1255856305360794,
-0.10014153271913528,
-0.3027394413948059,
0.07621248066425323,
0.3309546709060669,
0.0889345034956932,
0.25625377893447876,
-0.1848621368408203,
-0.08068675547838211,
0.09444499015808105,
-0.014333787374198437,
0.020772529765963554,
0.5388504266738892,
0.1315515637397766,
0.048894550651311874,
0.28172731399536133,
-0.01580357551574707,
-0.34727245569229126,
0.12460848689079285,
0.21989454329013824,
-0.02287113666534424,
0.09089293330907822,
0.03113711252808571,
-0.029392553493380547,
-0.12876887619495392,
0.02646109089255333,
0.012082593515515327,
-0.028605867177248,
-0.25548020005226135,
0.24542035162448883,
-0.3986749053001404,
0.0395878329873085,
-0.056514762341976166,
0.09324279427528381,
-0.37123188376426697,
-0.23911112546920776,
0.04685254395008087,
0.1336500197649002,
-0.2514073848724365,
0.14895708858966827,
-0.1666213870048523,
0.5206559896469116,
-0.24187590181827545,
-0.1473502367734909,
0.1968584507703781,
-0.5571702122688293,
-0.11493215709924698,
0.08467071503400803,
0.3601272404193878,
0.2178109586238861,
0.464565634727478,
-0.04898882284760475,
-0.08494586497545242,
-0.35219502449035645,
-0.14366236329078674,
0.025949468836188316,
-0.037247322499752045,
0.3027527928352356,
0.04372122883796692,
0.21295899152755737,
-0.03094060905277729,
0.21633951365947723,
0.3268575370311737,
-0.34768304228782654,
0.26100969314575195,
0.014596948400139809,
0.012082268483936787,
-0.14285992085933685,
-0.32492032647132874,
-0.5815709233283997,
-0.5232009887695312,
-0.3354819118976593,
0.15991713106632233,
0.00597618380561471,
-0.06020721048116684,
0.04779254272580147,
0.0959361121058464,
0.048662275075912476,
0.06341442465782166,
0.05416427180171013,
-0.1572212129831314,
-0.41330596804618835,
0.1801300197839737,
-0.1736980378627777,
-0.5983694195747375,
0.4090825319290161,
0.14456486701965332,
0.18663041293621063,
0.4446814954280853,
-0.4329781234264374,
-0.17863334715366364,
0.09994756430387497,
0.4149424135684967,
0.21946072578430176,
0.36986827850341797,
0.41591504216194153,
-0.02635863609611988,
-0.004490429535508156,
-0.10178590565919876,
0.16042597591876984,
0.2131546437740326,
-0.05015934631228447,
-0.07273045927286148,
0.19464989006519318,
0.1170220598578453,
-0.09093035012483597,
0.5493084192276001,
-0.05984297767281532,
0.06260433048009872,
0.2284744530916214,
-0.11739656329154968,
0.6396971344947815,
-0.16416147351264954,
-0.08310070633888245,
0.13868913054466248,
-0.06559522449970245,
-0.23004192113876343,
0.2599750757217407,
-0.06578055769205093,
0.040644142776727676,
-0.6198846101760864,
0.0020190433133393526,
-0.3696756362915039,
-0.4392198622226715,
0.09879674762487411,
0.26682138442993164,
0.4354862570762634,
0.21883173286914825,
0.23445197939872742,
-0.20261988043785095,
-0.14014287292957306,
-0.04322906956076622,
0.29503288865089417,
0.11437754333019257,
-0.009511918760836124,
-0.16620096564292908,
0.07182251662015915,
-0.3588621914386749,
0.31795039772987366,
-0.13878080248832703,
0.3281271457672119,
-0.04747714847326279,
-0.018320942297577858,
-0.06091109290719032,
-0.04837578162550926,
0.3537317216396332,
-0.42965632677078247,
0.008043509908020496,
0.23102962970733643,
-0.08944161236286163,
-0.2590506374835968,
0.04813098534941673,
-0.3023553788661957,
-0.10707200318574905,
0.12329430133104324,
0.23126554489135742,
-0.00906168483197689,
-0.28905072808265686,
-0.09357541799545288,
0.43949273228645325,
-0.330691933631897,
-0.1491357982158661,
-0.13003890216350555,
-0.026464343070983887,
-0.2965613603591919,
0.11532481759786606,
-0.11981140822172165,
-0.01729831099510193,
-0.23137761652469635,
0.09640941768884659,
-0.17049247026443481,
0.1686468869447708,
-0.05812469869852066,
0.06910880655050278,
0.06910037994384766,
-0.23439539968967438,
0.26247790455818176,
0.25589054822921753,
0.1509253829717636,
0.5121373534202576,
0.24539263546466827,
-0.05569041892886162,
-0.08110742270946503,
0.15705721080303192,
-0.07040722668170929,
0.41123485565185547,
0.492360383272171,
-0.11256755888462067,
-0.1765354573726654,
0.24346590042114258,
0.258806437253952,
-0.5872605443000793,
-0.09392045438289642,
0.08925680816173553,
0.1318998783826828,
-0.1381254643201828,
-0.2807334363460541,
0.21458576619625092,
0.14363521337509155,
-0.049834538251161575,
-0.028027856722474098,
0.2752501964569092,
-0.24845390021800995,
0.04563535377383232,
-0.05977937579154968,
0.7471337914466858,
-0.05035461112856865,
0.2299506813287735,
0.17104129493236542,
0.13450749218463898,
0.3820539116859436,
-0.3570563495159149,
0.02425769343972206,
0.008344012312591076,
-0.2609068751335144,
-0.11216644942760468,
-0.15179772675037384,
0.39890533685684204,
0.11965182423591614,
-0.15894505381584167,
0.5752493143081665,
-0.048813436180353165,
0.37875664234161377,
-0.30569201707839966,
0.23537208139896393,
-0.06900203227996826,
-0.1509353220462799,
-0.2804444134235382,
0.1945444792509079,
0.08410514891147614,
0.13250623643398285,
-0.29654940962791443,
-0.19993872940540314,
0.08050094544887543,
0.10320522636175156,
0.019974498078227043,
-0.16057948768138885,
-0.09080323576927185,
0.07508915662765503,
-0.20808100700378418,
0.011015566065907478,
0.1845136284828186,
0.07235464453697205,
0.44888362288475037,
0.2354969084262848,
-0.4055704176425934,
0.023927539587020874,
-0.47459298372268677,
0.16891445219516754,
-0.014764368534088135,
0.2257872372865677,
0.21196244657039642,
-0.2073981761932373,
-0.27589482069015503,
0.0584932379424572,
-0.09012728929519653,
0.05208225175738335,
0.4216805100440979,
-0.09121832251548767,
-0.11359523236751556,
-0.2078428864479065,
0.14003615081310272,
0.23370082676410675,
0.1270940750837326,
-0.1188964694738388,
0.13028012216091156,
0.1750441938638687,
0.11431713402271271,
0.43481382727622986,
-0.048992615193128586,
-0.11535818874835968,
-0.2252299189567566,
0.30773481726646423,
-0.119825080037117,
-0.15282605588436127,
-0.08789953589439392,
0.27354156970977783,
-0.20318932831287384,
-0.33840546011924744,
0.19644829630851746,
0.04651685059070587,
0.0449066236615181,
0.22586017847061157,
0.40770331025123596,
0.4182562530040741,
-0.11939487606287003,
0.45940640568733215,
0.034866638481616974,
-0.17338208854198456,
-0.13168244063854218,
-0.33363211154937744,
-0.311543732881546,
0.2858285903930664,
0.4760401248931885,
0.13190650939941406,
0.04295860230922699,
0.013514530844986439,
0.08008379489183426,
-0.1690981686115265,
-0.37567028403282166,
-0.008009172044694424,
-0.03018910065293312,
0.08056583255529404,
0.17343991994857788,
-0.16461056470870972,
0.318439245223999,
-0.1392020285129547,
-0.003144829999655485,
-0.1964246928691864,
-0.4073610007762909,
-0.21969135105609894,
-0.005601787474006414,
0.21712271869182587,
0.07291339337825775,
-0.4410375952720642,
0.0773470401763916,
-0.5827113389968872,
-0.24327096343040466,
-0.16123005747795105,
0.28872767090797424,
0.4088554084300995,
-0.1986241489648819,
0.013257562182843685,
-0.03238791972398758,
0.3897838592529297,
-0.1986432522535324,
0.13789615035057068,
0.08113081008195877,
0.25170886516571045,
-0.11562053114175797,
0.20894740521907806,
0.11446588486433029,
0.04556500166654587,
0.08765508234500885,
0.08930782228708267,
0.16646653413772583,
0.16183790564537048,
0.4194568395614624,
-0.22427380084991455,
0.025538839399814606,
0.15120941400527954,
0.5265104174613953,
0.25310495495796204,
-0.04037638008594513,
0.11892054229974747,
0.12351306527853012,
0.1960499882698059,
-0.39905813336372375,
0.034119997173547745,
0.12564824521541595,
0.16306766867637634,
0.34315046668052673,
0.06985824555158615,
0.4620228409767151,
-0.04085098206996918,
-0.20965953171253204,
0.017809269949793816,
0.2600047290325165,
-0.2919553816318512,
0.21901383996009827,
0.023189706727862358,
0.013569164089858532,
0.14649978280067444,
0.020375322550535202,
0.3932594060897827,
-0.060255266726017,
0.24684830009937286,
-0.33392003178596497,
0.23506054282188416,
0.07476963847875595,
0.12309519946575165,
-0.19126038253307343,
-0.4348837733268738,
0.24127642810344696,
-0.07318456470966339,
-0.18556374311447144,
-0.2716338336467743,
-0.2943277955055237,
0.03324763849377632,
-0.39441198110580444,
-0.06907554715871811,
-0.18657274544239044,
0.09166623651981354,
-0.12385658174753189,
0.010789686813950539,
-0.38347187638282776,
-0.3246235251426697,
0.034896135330200195,
0.10556196421384811,
0.09627735614776611,
-0.04373263567686081,
-0.006471362430602312,
0.08199268579483032,
0.07595352828502655,
-0.10923957079648972,
0.1654796302318573,
-0.07992655783891678,
0.043489012867212296,
-0.030207080766558647,
-0.039267342537641525,
0.2523208260536194,
0.07016874104738235,
0.14733867347240448,
0.3580792248249054,
0.2618347108364105,
0.038681551814079285,
-0.2227414846420288,
0.2019042670726776,
-0.010304100811481476,
-0.11178595572710037,
-0.16314052045345306,
0.17227596044540405,
0.006302701309323311,
0.030220801010727882,
0.3716367185115814,
0.12454104423522949,
-0.11983177810907364,
0.344097763299942,
-0.13383308053016663,
-0.17426232993602753,
-0.45635202527046204,
0.22292070090770721,
0.17969849705696106,
-0.1642238050699234,
-0.10598010569810867,
-0.1711054891347885,
-0.0731738954782486,
0.05505284294486046,
0.433576762676239,
0.011454001069068909,
0.1584358960390091,
-0.20451565086841583,
0.09112830460071564,
0.0008951447671279311,
0.5557252168655396,
0.16654260456562042,
0.2724839746952057,
-0.29187488555908203,
0.04347257688641548,
-0.8117443323135376,
-0.1683027297258377,
-0.21911966800689697,
0.4150376319885254,
-0.07442794740200043,
0.08999867737293243,
0.09127230942249298,
0.4602128565311432,
0.09219621121883392,
0.16430728137493134,
0.042702656239271164,
-0.19500774145126343,
-0.3067812919616699,
-0.0896468311548233,
-0.12563763558864594,
-0.04479067027568817,
-0.04254386946558952,
-0.25630027055740356,
0.13804377615451813,
-0.352814257144928,
-0.02544311434030533,
0.02787511982023716,
0.19309471547603607,
-0.15982234477996826,
-0.09960052371025085,
0.4608583450317383,
0.11999800056219101,
0.44144129753112793,
0.1976628601551056,
-0.01575380004942417,
-0.19625483453273773,
0.07384680211544037,
-0.07166670262813568,
0.12750808894634247,
-0.028934603556990623,
-0.005290715489536524,
-0.17572645843029022,
-0.1376701444387436,
-0.18859301507472992,
0.18718329071998596,
0.029352732002735138,
0.08233092725276947,
-0.0889895111322403,
-0.12226001918315887,
-0.07350031286478043,
0.13611170649528503,
0.05416112020611763,
0.02813652530312538,
-0.14151807129383087,
0.167080357670784,
-0.19070176780223846,
-0.06346789002418518,
0.3272375762462616,
-0.09474135935306549,
0.012625796720385551,
-0.5545055866241455,
0.33337464928627014,
0.05278448387980461,
0.0571754015982151,
-0.3271177113056183,
0.15053711831569672,
0.26961901783943176,
-0.21434800326824188,
-0.11047109216451645,
0.2254096418619156,
-0.24659363925457,
-0.2582940459251404,
-0.035663314163684845,
0.28656235337257385,
-0.2709170877933502,
-0.22240707278251648,
-0.1685856282711029,
-0.12922215461730957
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine.
@mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like? | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 57 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine.
@mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like? | [
-0.4731806814670563,
0.24578382074832916,
-0.01263077650219202,
0.14121387898921967,
0.2833555042743683,
-0.14702095091342926,
0.6012279987335205,
0.012776016257703304,
0.2687808573246002,
0.13127794861793518,
-0.024036703631281853,
-0.02398514188826084,
-0.024662259966135025,
0.40210655331611633,
-0.09124036878347397,
-0.10213790088891983,
-0.17223316431045532,
0.03887716308236122,
-0.1540049910545349,
0.13259463012218475,
-0.14081087708473206,
-0.12811928987503052,
-0.3727089762687683,
-0.028236214071512222,
-0.1628141701221466,
-0.18658749759197235,
0.009141822345554829,
0.14202149212360382,
-0.157231867313385,
-0.2762967050075531,
0.2854102551937103,
0.18052443861961365,
0.22389578819274902,
0.47912493348121643,
-0.00010423076309962198,
0.14376679062843323,
0.054555103182792664,
-0.01348861213773489,
-0.20690254867076874,
-0.3381868004798889,
-0.19177500903606415,
-0.3979364335536957,
0.23375773429870605,
-0.40073758363723755,
-0.21508458256721497,
0.03653722256422043,
-0.07347280532121658,
-0.39583784341812134,
0.3150741159915924,
0.30793827772140503,
0.25268858671188354,
0.6633722186088562,
-0.14806121587753296,
-0.322870135307312,
-0.1723313182592392,
0.010202174074947834,
-0.23923426866531372,
0.39254677295684814,
0.06179116293787956,
-0.07088654488325119,
-0.11109861731529236,
0.11631771922111511,
-0.1192910373210907,
0.011944424360990524,
0.3592294752597809,
0.09901510924100876,
-0.043606195598840714,
-0.09265761077404022,
0.12865473330020905,
0.45499008893966675,
0.3857678472995758,
-0.22564664483070374,
-0.32339170575141907,
-0.41150274872779846,
-0.12132839113473892,
-0.3992849588394165,
0.07776404917240143,
0.0915818139910698,
-0.05180197209119797,
0.28596311807632446,
-0.4508606493473053,
-0.27706101536750793,
-0.36881229281425476,
0.08663354814052582,
-0.3436933159828186,
0.12905898690223694,
-0.2209809124469757,
0.051859792321920395,
-0.059452127665281296,
0.1764984428882599,
-0.178376242518425,
-0.2810506820678711,
0.13426494598388672,
-0.13189208507537842,
-0.26535674929618835,
-0.07102583348751068,
0.16602446138858795,
0.048950254917144775,
0.13250184059143066,
0.08357050269842148,
0.2456042766571045,
0.013486520387232304,
0.0630621388554573,
0.07287217676639557,
0.49310123920440674,
0.27011847496032715,
-0.06640510261058807,
-0.16545189917087555,
0.5901674032211304,
0.16802768409252167,
0.015406841412186623,
-0.29846253991127014,
0.34388110041618347,
-0.2474089413881302,
0.05114378035068512,
-0.0044535426422953606,
0.3934408128261566,
-0.2904767692089081,
-0.07055892050266266,
-0.028939107432961464,
0.26095694303512573,
-0.04225018993020058,
0.23024746775627136,
0.2531339228153229,
-0.20073559880256653,
0.023908942937850952,
0.0023876407649368048,
0.3707030415534973,
-0.2583317458629608,
-0.2877786457538605,
-0.06917781382799149,
-0.25147780776023865,
-0.1524573415517807,
0.09091464430093765,
0.19420480728149414,
0.09884823858737946,
0.09316466003656387,
-0.0352785661816597,
0.27991625666618347,
0.0193173810839653,
0.2784256041049957,
-0.06133450195193291,
-0.0014956664526835084,
0.30235981941223145,
0.11023365706205368,
-0.06810878217220306,
0.12143748998641968,
-0.18612325191497803,
0.025751877576112747,
0.05654217675328255,
-0.06533411145210266,
-0.4622018337249756,
0.17617851495742798,
0.21972058713436127,
-0.673206090927124,
-0.2223999947309494,
-0.27303385734558105,
0.15556570887565613,
-0.23693598806858063,
-0.2124960869550705,
0.02358686551451683,
0.018460867926478386,
-0.21189448237419128,
-0.21170613169670105,
0.28787678480148315,
0.5173380374908447,
-0.46038857102394104,
0.012950154952704906,
0.044710662215948105,
-0.21360747516155243,
-0.20716474950313568,
0.10191825777292252,
-0.41491934657096863,
0.628939151763916,
0.010753538459539413,
-0.38167500495910645,
0.5595378279685974,
-0.30481910705566406,
-0.31402894854545593,
0.27264174818992615,
-0.1605726182460785,
-0.004586786963045597,
-0.053432393819093704,
0.10875460505485535,
0.46035274863243103,
0.08486741781234741,
-0.09082353115081787,
0.2521170973777771,
-0.12814515829086304,
-0.01300976611673832,
-0.2615108788013458,
-0.31725600361824036,
0.195614293217659,
0.32601791620254517,
0.3225418031215668,
0.17080867290496826,
0.2575956881046295,
-0.1861370950937271,
-0.008525101467967033,
-0.16226935386657715,
0.12020476907491684,
0.04238780215382576,
0.22556205093860626,
0.06719619035720825,
-0.010231309570372105,
-0.16534067690372467,
-0.5502772927284241,
0.2796308696269989,
-0.02870921604335308,
0.21882742643356323,
-0.21580228209495544,
-0.21077798306941986,
-0.027634600177407265,
-0.19524192810058594,
-0.18108725547790527,
-0.07955989986658096,
0.11711058020591736,
-0.19782622158527374,
0.08592197299003601,
0.09828901290893555,
-0.2900712788105011,
0.11372993141412735,
-0.011981341056525707,
0.021742627024650574,
-0.15843641757965088,
0.3012227714061737,
-0.049839284271001816,
0.08366242796182632,
-0.1551094353199005,
0.056289441883563995,
-0.054599013179540634,
-0.16224364936351776,
-0.09545886516571045,
0.5110428333282471,
-0.023885762318968773,
0.056326065212488174,
0.23493924736976624,
0.5590960383415222,
0.3679669201374054,
0.004375963471829891,
0.4956289529800415,
-0.05021296441555023,
0.3213087320327759,
-0.11147033423185349,
-0.39841997623443604,
0.7357345819473267,
-0.14405131340026855,
0.25747326016426086,
0.09899387508630753,
-0.01645641401410103,
0.2910699248313904,
-0.02650449611246586,
-0.4488826096057892,
-0.022036775946617126,
0.01836540922522545,
0.014575615525245667,
0.21398745477199554,
-0.0351545512676239,
-0.30720794200897217,
0.0073907081969082355,
0.36606889963150024,
0.06533322483301163,
0.15091398358345032,
-0.0016660041874274611,
-0.07140107452869415,
0.06185626983642578,
-0.08471053838729858,
0.09613866358995438,
0.5059413313865662,
0.22251057624816895,
-0.002084595151245594,
0.22226867079734802,
-0.07521820813417435,
-0.2918922007083893,
0.1622450351715088,
0.2784022092819214,
0.01177924033254385,
0.09482145309448242,
0.11065024137496948,
-0.013544196262955666,
-0.2606649696826935,
-0.08511965721845627,
0.01041470468044281,
0.052130408585071564,
-0.31714335083961487,
0.3023550808429718,
-0.19214119017124176,
0.04467961937189102,
0.0116660101339221,
0.10387911647558212,
-0.5033852458000183,
-0.19162946939468384,
0.173893541097641,
0.0866980254650116,
-0.27683892846107483,
0.16115063428878784,
-0.08169253170490265,
0.5301485657691956,
-0.18624170124530792,
-0.17227086424827576,
0.17858731746673584,
-0.5872231721878052,
-0.061841826885938644,
0.09926623851060867,
0.329129159450531,
0.03159281983971596,
0.46972134709358215,
0.11053159087896347,
-0.10048867017030716,
-0.22675025463104248,
-0.2593652904033661,
0.07752908766269684,
-0.04443264380097389,
0.34556952118873596,
0.0793805718421936,
0.04276959225535393,
0.07554002106189728,
0.2921113073825836,
0.4025549292564392,
-0.29502323269844055,
0.25151899456977844,
0.1761239916086197,
-0.12414392083883286,
-0.04017345979809761,
-0.37648454308509827,
-0.4320443868637085,
-0.38034945726394653,
-0.4162006378173828,
0.2004626989364624,
-0.040246978402137756,
-0.04219414293766022,
0.28949740529060364,
0.18043406307697296,
0.06995618343353271,
-0.07126179337501526,
0.09051768481731415,
-0.13966645300388336,
-0.44039350748062134,
0.2246844619512558,
-0.15724854171276093,
-0.5371840596199036,
0.20842108130455017,
0.1666211634874344,
0.1439090371131897,
0.2761148512363434,
-0.5148003101348877,
-0.30842891335487366,
0.05916820093989372,
0.3579506576061249,
0.18133647739887238,
0.2270391583442688,
0.3989451825618744,
-0.10222472250461578,
-0.022411417216062546,
-0.08096669614315033,
0.06943105161190033,
0.25518304109573364,
0.04150102660059929,
-0.014629285782575607,
0.04076293855905533,
0.32040858268737793,
0.012463427148759365,
0.4728301167488098,
-0.06553760170936584,
0.062002308666706085,
0.24073708057403564,
-0.0948779508471489,
0.647426426410675,
-0.259633868932724,
-0.14854270219802856,
-0.07322866469621658,
-0.046905338764190674,
-0.3458385765552521,
0.2646626830101013,
0.02857288531959057,
-0.01579621620476246,
-0.5687810182571411,
-0.01631873846054077,
-0.24866269528865814,
-0.444013774394989,
0.184907928109169,
0.22546698153018951,
0.3417711853981018,
0.14934125542640686,
0.26871252059936523,
-0.2899605333805084,
-0.03779798373579979,
-0.05548495799303055,
0.2830598056316376,
0.06359443813562393,
-0.11718069761991501,
-0.24029454588890076,
0.08818955719470978,
-0.36292555928230286,
0.2781028151512146,
-0.20161449909210205,
0.17613308131694794,
-0.039338789880275726,
-0.05416037514805794,
0.05599287897348404,
-0.07584439218044281,
0.47821804881095886,
-0.38191932439804077,
-0.11644534766674042,
0.25264430046081543,
-0.10346529632806778,
-0.3154052495956421,
0.04721984267234802,
-0.20720255374908447,
-0.011010952293872833,
0.18806113302707672,
0.27897244691848755,
-0.09352521598339081,
-0.2863282859325409,
-0.014317947439849377,
0.2607755661010742,
-0.3398857116699219,
-0.22574490308761597,
-0.22404906153678894,
-0.047337040305137634,
-0.3530590236186981,
0.050126682966947556,
-0.16760587692260742,
-0.02378738671541214,
-0.09883028268814087,
0.10710228979587555,
-0.15963274240493774,
0.1846584528684616,
-0.07270592451095581,
0.15553177893161774,
0.09379778802394867,
-0.3015156388282776,
0.20171530544757843,
0.2891569137573242,
0.05543096363544464,
0.24392147362232208,
0.31305554509162903,
-0.0757674127817154,
-0.2507784366607666,
0.21849285066127777,
-0.04491344094276428,
0.37438032031059265,
0.4474985599517822,
-0.007546390872448683,
-0.15036801993846893,
0.23597878217697144,
0.2909383177757263,
-0.43079107999801636,
-0.132485494017601,
0.1148860901594162,
0.07833182066679001,
-0.13668352365493774,
-0.4067748486995697,
0.24734410643577576,
-0.004963258281350136,
-0.05120857432484627,
-0.09436390548944473,
0.1585390716791153,
-0.23933501541614532,
0.31746160984039307,
-0.10686523467302322,
0.7930579781532288,
-0.06379735469818115,
0.24429118633270264,
0.2223539799451828,
-0.011960351839661598,
0.49882224202156067,
-0.3252682685852051,
-0.022949017584323883,
-0.034001823514699936,
-0.1787109225988388,
-0.031382005661726,
-0.0793323665857315,
0.4078507125377655,
0.05487199127674103,
-0.1353469043970108,
0.5168305039405823,
-0.033894430845975876,
0.3856008052825928,
-0.2857426702976227,
0.12908244132995605,
0.05017947405576706,
-0.26912710070610046,
-0.5489073395729065,
0.20346567034721375,
0.09185376763343811,
0.0732090026140213,
-0.222426176071167,
-0.27949124574661255,
0.06744273006916046,
0.06276330351829529,
-0.02667093090713024,
-0.18819168210029602,
-0.032516565173864365,
0.07577618211507797,
-0.13961365818977356,
0.051858969032764435,
0.07644566148519516,
0.12277170270681381,
0.4003409147262573,
0.12157969921827316,
-0.4199983775615692,
0.0589224211871624,
-0.3985016942024231,
0.15472722053527832,
0.022546643391251564,
0.17790810763835907,
0.18130861222743988,
-0.18881654739379883,
-0.24970415234565735,
-0.008885550312697887,
-0.10917150229215622,
-0.10673097521066666,
0.4405536651611328,
-0.12163425981998444,
0.007392100524157286,
-0.32267728447914124,
0.17373041808605194,
0.18594232201576233,
0.21774031221866608,
-0.164535254240036,
0.1630951464176178,
0.20322801172733307,
0.0897037610411644,
0.3784293830394745,
-0.1469394415616989,
-0.19359225034713745,
-0.24168795347213745,
0.2845247685909271,
-0.11098349839448929,
-0.14885708689689636,
-0.07575977593660355,
0.2245463877916336,
-0.1876360923051834,
-0.30618008971214294,
0.2268289178609848,
0.07378703355789185,
-0.2808648645877838,
0.2850722074508667,
0.376793771982193,
0.23318910598754883,
-0.11650470644235611,
0.2991286814212799,
0.06431984156370163,
-0.28711915016174316,
-0.16111646592617035,
-0.3281608819961548,
-0.3837016820907593,
0.24285335838794708,
0.41401800513267517,
0.16100795567035675,
0.0781944990158081,
-0.03976327180862427,
-0.006338017527014017,
-0.18761934340000153,
-0.40737947821617126,
0.021793780848383904,
-0.05920363590121269,
0.06519897282123566,
0.26166462898254395,
-0.21078859269618988,
0.3878106474876404,
-0.20935453474521637,
0.053587932139635086,
-0.18860508501529694,
-0.41141992807388306,
-0.2793823182582855,
-0.03712428733706474,
0.18726415932178497,
0.03429825231432915,
-0.32168450951576233,
-0.04843859747052193,
-0.4539426863193512,
-0.391136109828949,
-0.1426023542881012,
0.2971315085887909,
0.45229873061180115,
-0.14003713428974152,
0.01196227502077818,
-0.1794688105583191,
0.4436798393726349,
-0.1515534669160843,
0.09331627935171127,
0.053843073546886444,
0.27223318815231323,
0.07948121428489685,
0.24185463786125183,
-0.12428438663482666,
0.0662919357419014,
0.005219614133238792,
0.18621273338794708,
0.24578548967838287,
0.1565164178609848,
0.4803646206855774,
-0.1563785821199417,
0.14234155416488647,
0.3202059864997864,
0.5329151749610901,
0.1267693191766739,
-0.05542440339922905,
0.18965040147304535,
0.07508912682533264,
0.26187220215797424,
-0.4182623326778412,
0.05551313981413841,
0.05591156706213951,
0.06920754909515381,
0.3451642394065857,
0.1656794548034668,
0.4651870131492615,
0.1580531746149063,
-0.01203132700175047,
0.04495682194828987,
0.37921497225761414,
-0.08369649201631546,
0.23139545321464539,
0.13901585340499878,
0.05454832687973976,
0.1466519981622696,
0.09786365181207657,
0.3678915202617645,
0.027954714372754097,
0.2849605083465576,
-0.321475088596344,
0.1772390455007553,
0.04468145966529846,
0.10182742774486542,
-0.15813501179218292,
-0.41243407130241394,
0.2898588478565216,
-0.04971485212445259,
-0.0546012707054615,
-0.1823638677597046,
-0.2525887191295624,
0.18638160824775696,
-0.43262979388237,
0.011693786829710007,
-0.21567188203334808,
0.06467051059007645,
-0.07989908009767532,
0.01031172089278698,
-0.372207373380661,
-0.3459404408931732,
-0.02167738787829876,
0.11335431039333344,
0.03383248299360275,
-0.012865334749221802,
0.04881051927804947,
-0.08184904605150223,
0.09189517796039581,
-0.21119028329849243,
0.1460547149181366,
0.05804533138871193,
0.07766128331422806,
-0.030753953382372856,
0.0314859040081501,
0.23070140182971954,
0.029500357806682587,
0.15513752400875092,
0.49248194694519043,
0.2937014698982239,
0.03062821552157402,
-0.21662640571594238,
0.19122877717018127,
-0.0251140296459198,
-0.09476227313280106,
-0.11528342217206955,
0.11651845276355743,
0.057202816009521484,
0.1724909096956253,
0.31647971272468567,
0.1543087512254715,
-0.20098774135112762,
0.3622324764728546,
-0.20382237434387207,
-0.06954985111951828,
-0.495908260345459,
0.31630319356918335,
0.17312252521514893,
-0.14835399389266968,
-0.04045327752828598,
-0.26296085119247437,
-0.1618155688047409,
-0.24255560338497162,
0.3993489742279053,
-0.018727604299783707,
0.1477477103471756,
-0.19695746898651123,
0.1060572937130928,
0.027129212394356728,
0.4453117549419403,
0.15252897143363953,
0.258076936006546,
-0.2704787850379944,
0.22323967516422272,
-0.7864074110984802,
-0.15928617119789124,
-0.07892992347478867,
0.3429843783378601,
-0.01797058805823326,
0.10013222694396973,
0.11753710359334946,
0.4013323187828064,
0.057860326021909714,
0.06575632095336914,
0.14404131472110748,
-0.1705748736858368,
-0.2648237943649292,
-0.08721094578504562,
-0.13769181072711945,
-0.05961970239877701,
-0.02288040705025196,
-0.25123172998428345,
0.11766713112592697,
-0.24882206320762634,
-0.01152602955698967,
0.010707644745707512,
0.14541630446910858,
-0.114122174680233,
-0.06540828198194504,
0.438848078250885,
0.10178735852241516,
0.3600197434425354,
0.2547401189804077,
-0.06510256975889206,
-0.1099720224738121,
0.013844918459653854,
-0.09835417568683624,
0.0416438952088356,
-0.08221255987882614,
0.02321678027510643,
-0.17899540066719055,
-0.18895158171653748,
-0.19354239106178284,
0.13953432440757751,
0.09017369896173477,
-0.0838332399725914,
-0.20448511838912964,
0.022094881162047386,
0.003296801820397377,
0.13416838645935059,
0.0018573242705315351,
0.07419560104608536,
-0.10655206441879272,
0.17237132787704468,
-0.15707287192344666,
0.06434644758701324,
0.3616630434989929,
-0.015810001641511917,
-0.051304228603839874,
-0.3619368374347687,
0.28459402918815613,
0.2454405575990677,
0.01601666398346424,
-0.6187484264373779,
0.05920073017477989,
0.26031211018562317,
-0.17047421634197235,
-0.10797962546348572,
0.29657191038131714,
-0.18775911629199982,
-0.23386910557746887,
-0.01896275207400322,
0.2834101915359497,
-0.26333847641944885,
-0.24726182222366333,
0.0018668663688004017,
-0.1285080909729004
] |
Subsets and Splits